1#! /bin/sh 2# From configure.ac Id: configure.ac 184 2006-09-26 14:30:57Z csl . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.60 for a2png 0.1.5. 5# 6# Report bugs to <csl@sublevel3.org>. 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 10# This configure script is free software; the Free Software Foundation 11# gives unlimited permission to copy, distribute and modify it. 12## --------------------- ## 13## M4sh Initialization. ## 14## --------------------- ## 15 16# Be Bourne compatible 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 26fi 27BIN_SH=xpg4; export BIN_SH # for Tru64 28DUALCASE=1; export DUALCASE # for MKS sh 29 30 31# PATH needs CR 32# Avoid depending upon Character Ranges. 33as_cr_letters='abcdefghijklmnopqrstuvwxyz' 34as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 35as_cr_Letters=$as_cr_letters$as_cr_LETTERS 36as_cr_digits='0123456789' 37as_cr_alnum=$as_cr_Letters$as_cr_digits 38 39# The user is always right. 40if test "${PATH_SEPARATOR+set}" != set; then 41 echo "#! /bin/sh" >conf$$.sh 42 echo "exit 0" >>conf$$.sh 43 chmod +x conf$$.sh 44 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 45 PATH_SEPARATOR=';' 46 else 47 PATH_SEPARATOR=: 48 fi 49 rm -f conf$$.sh 50fi 51 52# Support unset when possible. 53if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 54 as_unset=unset 55else 56 as_unset=false 57fi 58 59 60# IFS 61# We need space, tab and new line, in precisely that order. Quoting is 62# there to prevent editors from complaining about space-tab. 63# (If _AS_PATH_WALK were called with IFS unset, it would disable word 64# splitting by setting IFS to empty value.) 65as_nl=' 66' 67IFS=" "" $as_nl" 68 69# Find who we are. Look in the path if we contain no directory separator. 70case $0 in 71 *[\\/]* ) as_myself=$0 ;; 72 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 73for as_dir in $PATH 74do 75 IFS=$as_save_IFS 76 test -z "$as_dir" && as_dir=. 77 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 78done 79IFS=$as_save_IFS 80 81 ;; 82esac 83# We did not find ourselves, most probably we were run as `sh COMMAND' 84# in which case we are not to be found in the path. 85if test "x$as_myself" = x; then 86 as_myself=$0 87fi 88if test ! -f "$as_myself"; then 89 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 90 { (exit 1); exit 1; } 91fi 92 93# Work around bugs in pre-3.0 UWIN ksh. 94for as_var in ENV MAIL MAILPATH 95do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 96done 97PS1='$ ' 98PS2='> ' 99PS4='+ ' 100 101# NLS nuisances. 102for as_var in \ 103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 105 LC_TELEPHONE LC_TIME 106do 107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 108 eval $as_var=C; export $as_var 109 else 110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 111 fi 112done 113 114# Required to use basename. 115if expr a : '\(a\)' >/dev/null 2>&1 && 116 test "X`expr 00001 : '.*\(...\)'`" = X001; then 117 as_expr=expr 118else 119 as_expr=false 120fi 121 122if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 123 as_basename=basename 124else 125 as_basename=false 126fi 127 128 129# Name of the executable. 130as_me=`$as_basename -- "$0" || 131$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 132 X"$0" : 'X\(//\)$' \| \ 133 X"$0" : 'X\(/\)' \| . 2>/dev/null || 134echo X/"$0" | 135 sed '/^.*\/\([^/][^/]*\)\/*$/{ 136 s//\1/ 137 q 138 } 139 /^X\/\(\/\/\)$/{ 140 s//\1/ 141 q 142 } 143 /^X\/\(\/\).*/{ 144 s//\1/ 145 q 146 } 147 s/.*/./; q'` 148 149# CDPATH. 150$as_unset CDPATH 151 152 153if test "x$CONFIG_SHELL" = x; then 154 if (eval ":") 2>/dev/null; then 155 as_have_required=yes 156else 157 as_have_required=no 158fi 159 160 if test $as_have_required = yes && (eval ": 161(as_func_return () { 162 (exit \$1) 163} 164as_func_success () { 165 as_func_return 0 166} 167as_func_failure () { 168 as_func_return 1 169} 170as_func_ret_success () { 171 return 0 172} 173as_func_ret_failure () { 174 return 1 175} 176 177exitcode=0 178if as_func_success; then 179 : 180else 181 exitcode=1 182 echo as_func_success failed. 183fi 184 185if as_func_failure; then 186 exitcode=1 187 echo as_func_failure succeeded. 188fi 189 190if as_func_ret_success; then 191 : 192else 193 exitcode=1 194 echo as_func_ret_success failed. 195fi 196 197if as_func_ret_failure; then 198 exitcode=1 199 echo as_func_ret_failure succeeded. 200fi 201 202if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 203 : 204else 205 exitcode=1 206 echo positional parameters were not saved. 207fi 208 209test \$exitcode = 0) || { (exit 1); exit 1; } 210 211( 212 as_lineno_1=\$LINENO 213 as_lineno_2=\$LINENO 214 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 215 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 216") 2> /dev/null; then 217 : 218else 219 as_candidate_shells= 220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 221for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 222do 223 IFS=$as_save_IFS 224 test -z "$as_dir" && as_dir=. 225 case $as_dir in 226 /*) 227 for as_base in sh bash ksh sh5; do 228 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 229 done;; 230 esac 231done 232IFS=$as_save_IFS 233 234 235 for as_shell in $as_candidate_shells $SHELL; do 236 # Try only shells that exist, to save several forks. 237 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 238 { ("$as_shell") 2> /dev/null <<\_ASEOF 239# Be Bourne compatible 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 249fi 250BIN_SH=xpg4; export BIN_SH # for Tru64 251DUALCASE=1; export DUALCASE # for MKS sh 252 253: 254_ASEOF 255}; then 256 CONFIG_SHELL=$as_shell 257 as_have_required=yes 258 if { "$as_shell" 2> /dev/null <<\_ASEOF 259# Be Bourne compatible 260if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 261 emulate sh 262 NULLCMD=: 263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 264 # is contrary to our usage. Disable this feature. 265 alias -g '${1+"$@"}'='"$@"' 266 setopt NO_GLOB_SUBST 267else 268 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 269fi 270BIN_SH=xpg4; export BIN_SH # for Tru64 271DUALCASE=1; export DUALCASE # for MKS sh 272 273: 274(as_func_return () { 275 (exit $1) 276} 277as_func_success () { 278 as_func_return 0 279} 280as_func_failure () { 281 as_func_return 1 282} 283as_func_ret_success () { 284 return 0 285} 286as_func_ret_failure () { 287 return 1 288} 289 290exitcode=0 291if as_func_success; then 292 : 293else 294 exitcode=1 295 echo as_func_success failed. 296fi 297 298if as_func_failure; then 299 exitcode=1 300 echo as_func_failure succeeded. 301fi 302 303if as_func_ret_success; then 304 : 305else 306 exitcode=1 307 echo as_func_ret_success failed. 308fi 309 310if as_func_ret_failure; then 311 exitcode=1 312 echo as_func_ret_failure succeeded. 313fi 314 315if ( set x; as_func_ret_success y && test x = "$1" ); then 316 : 317else 318 exitcode=1 319 echo positional parameters were not saved. 320fi 321 322test $exitcode = 0) || { (exit 1); exit 1; } 323 324( 325 as_lineno_1=$LINENO 326 as_lineno_2=$LINENO 327 test "x$as_lineno_1" != "x$as_lineno_2" && 328 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 329 330_ASEOF 331}; then 332 break 333fi 334 335fi 336 337 done 338 339 if test "x$CONFIG_SHELL" != x; then 340 for as_var in BASH_ENV ENV 341 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 342 done 343 export CONFIG_SHELL 344 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 345fi 346 347 348 if test $as_have_required = no; then 349 echo This script requires a shell more modern than all the 350 echo shells that I found on your system. Please install a 351 echo modern shell, or manually run the script under such a 352 echo shell if you do have one. 353 { (exit 1); exit 1; } 354fi 355 356 357fi 358 359fi 360 361 362 363(eval "as_func_return () { 364 (exit \$1) 365} 366as_func_success () { 367 as_func_return 0 368} 369as_func_failure () { 370 as_func_return 1 371} 372as_func_ret_success () { 373 return 0 374} 375as_func_ret_failure () { 376 return 1 377} 378 379exitcode=0 380if as_func_success; then 381 : 382else 383 exitcode=1 384 echo as_func_success failed. 385fi 386 387if as_func_failure; then 388 exitcode=1 389 echo as_func_failure succeeded. 390fi 391 392if as_func_ret_success; then 393 : 394else 395 exitcode=1 396 echo as_func_ret_success failed. 397fi 398 399if as_func_ret_failure; then 400 exitcode=1 401 echo as_func_ret_failure succeeded. 402fi 403 404if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 405 : 406else 407 exitcode=1 408 echo positional parameters were not saved. 409fi 410 411test \$exitcode = 0") || { 412 echo No shell found that supports shell functions. 413 echo Please tell autoconf@gnu.org about your system, 414 echo including any error possibly output before this 415 echo message 416} 417 418 419 420 as_lineno_1=$LINENO 421 as_lineno_2=$LINENO 422 test "x$as_lineno_1" != "x$as_lineno_2" && 423 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 424 425 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 426 # uniformly replaced by the line number. The first 'sed' inserts a 427 # line-number line after each line using $LINENO; the second 'sed' 428 # does the real work. The second script uses 'N' to pair each 429 # line-number line with the line containing $LINENO, and appends 430 # trailing '-' during substitution so that $LINENO is not a special 431 # case at line end. 432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 433 # scripts with optimization help from Paolo Bonzini. Blame Lee 434 # E. McMahon (1931-1989) for sed's syntax. :-) 435 sed -n ' 436 p 437 /[$]LINENO/= 438 ' <$as_myself | 439 sed ' 440 s/[$]LINENO.*/&-/ 441 t lineno 442 b 443 :lineno 444 N 445 :loop 446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 447 t loop 448 s/-\n.*// 449 ' >$as_me.lineno && 450 chmod +x "$as_me.lineno" || 451 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 452 { (exit 1); exit 1; }; } 453 454 # Don't try to exec as it changes $[0], causing all sort of problems 455 # (the dirname of $[0] is not the place where we might find the 456 # original and so on. Autoconf is especially sensitive to this). 457 . "./$as_me.lineno" 458 # Exit status is that of the last command. 459 exit 460} 461 462 463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 464 as_dirname=dirname 465else 466 as_dirname=false 467fi 468 469ECHO_C= ECHO_N= ECHO_T= 470case `echo -n x` in 471-n*) 472 case `echo 'x\c'` in 473 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 474 *) ECHO_C='\c';; 475 esac;; 476*) 477 ECHO_N='-n';; 478esac 479 480if expr a : '\(a\)' >/dev/null 2>&1 && 481 test "X`expr 00001 : '.*\(...\)'`" = X001; then 482 as_expr=expr 483else 484 as_expr=false 485fi 486 487rm -f conf$$ conf$$.exe conf$$.file 488if test -d conf$$.dir; then 489 rm -f conf$$.dir/conf$$.file 490else 491 rm -f conf$$.dir 492 mkdir conf$$.dir 493fi 494echo >conf$$.file 495if ln -s conf$$.file conf$$ 2>/dev/null; then 496 as_ln_s='ln -s' 497 # ... but there are two gotchas: 498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 500 # In both cases, we have to default to `cp -p'. 501 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 502 as_ln_s='cp -p' 503elif ln conf$$.file conf$$ 2>/dev/null; then 504 as_ln_s=ln 505else 506 as_ln_s='cp -p' 507fi 508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 509rmdir conf$$.dir 2>/dev/null 510 511if mkdir -p . 2>/dev/null; then 512 as_mkdir_p=: 513else 514 test -d ./-p && rmdir ./-p 515 as_mkdir_p=false 516fi 517 518# Find out whether ``test -x'' works. Don't use a zero-byte file, as 519# systems may use methods other than mode bits to determine executability. 520cat >conf$$.file <<_ASEOF 521#! /bin/sh 522exit 0 523_ASEOF 524chmod +x conf$$.file 525if test -x conf$$.file >/dev/null 2>&1; then 526 as_executable_p="test -x" 527else 528 as_executable_p=: 529fi 530rm -f conf$$.file 531 532# Sed expression to map a string onto a valid CPP name. 533as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 534 535# Sed expression to map a string onto a valid variable name. 536as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 537 538 539 540exec 7<&0 </dev/null 6>&1 541 542# Name of the host. 543# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 544# so uname gets run too. 545ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 546 547# 548# Initializations. 549# 550ac_default_prefix=/usr/local 551ac_clean_files= 552ac_config_libobj_dir=. 553LIBOBJS= 554cross_compiling=no 555subdirs= 556MFLAGS= 557MAKEFLAGS= 558SHELL=${CONFIG_SHELL-/bin/sh} 559 560# Identity of this package. 561PACKAGE_NAME='a2png' 562PACKAGE_TARNAME='a2png' 563PACKAGE_VERSION='0.1.5' 564PACKAGE_STRING='a2png 0.1.5' 565PACKAGE_BUGREPORT='csl@sublevel3.org' 566 567ac_unique_file="src/a2png.c" 568# Factoring default headers for most tests. 569ac_includes_default="\ 570#include <stdio.h> 571#if HAVE_SYS_TYPES_H 572# include <sys/types.h> 573#endif 574#if HAVE_SYS_STAT_H 575# include <sys/stat.h> 576#endif 577#if STDC_HEADERS 578# include <stdlib.h> 579# include <stddef.h> 580#else 581# if HAVE_STDLIB_H 582# include <stdlib.h> 583# endif 584#endif 585#if HAVE_STRING_H 586# if !STDC_HEADERS && HAVE_MEMORY_H 587# include <memory.h> 588# endif 589# include <string.h> 590#endif 591#if HAVE_STRINGS_H 592# include <strings.h> 593#endif 594#if HAVE_INTTYPES_H 595# include <inttypes.h> 596#endif 597#if HAVE_STDINT_H 598# include <stdint.h> 599#endif 600#if HAVE_UNISTD_H 601# include <unistd.h> 602#endif" 603 604ac_subst_vars='SHELL 605PATH_SEPARATOR 606PACKAGE_NAME 607PACKAGE_TARNAME 608PACKAGE_VERSION 609PACKAGE_STRING 610PACKAGE_BUGREPORT 611exec_prefix 612prefix 613program_transform_name 614bindir 615sbindir 616libexecdir 617datarootdir 618datadir 619sysconfdir 620sharedstatedir 621localstatedir 622includedir 623oldincludedir 624docdir 625infodir 626htmldir 627dvidir 628pdfdir 629psdir 630libdir 631localedir 632mandir 633DEFS 634ECHO_C 635ECHO_N 636ECHO_T 637LIBS 638build_alias 639host_alias 640target_alias 641INSTALL_PROGRAM 642INSTALL_SCRIPT 643INSTALL_DATA 644CYGPATH_W 645PACKAGE 646VERSION 647ACLOCAL 648AUTOCONF 649AUTOMAKE 650AUTOHEADER 651MAKEINFO 652install_sh 653STRIP 654INSTALL_STRIP_PROGRAM 655mkdir_p 656AWK 657SET_MAKE 658am__leading_dot 659AMTAR 660am__tar 661am__untar 662CC 663CFLAGS 664LDFLAGS 665CPPFLAGS 666ac_ct_CC 667EXEEXT 668OBJEXT 669DEPDIR 670am__include 671am__quote 672AMDEP_TRUE 673AMDEP_FALSE 674AMDEPBACKSLASH 675CCDEPMODE 676am__fastdepCC_TRUE 677am__fastdepCC_FALSE 678gdlib_config 679CPP 680GREP 681EGREP 682ALLOCA 683LIBOBJS 684LTLIBOBJS' 685ac_subst_files='' 686 ac_precious_vars='build_alias 687host_alias 688target_alias 689CC 690CFLAGS 691LDFLAGS 692CPPFLAGS 693CPP' 694 695 696# Initialize some variables set by options. 697ac_init_help= 698ac_init_version=false 699# The variables have the same names as the options, with 700# dashes changed to underlines. 701cache_file=/dev/null 702exec_prefix=NONE 703no_create= 704no_recursion= 705prefix=NONE 706program_prefix=NONE 707program_suffix=NONE 708program_transform_name=s,x,x, 709silent= 710site= 711srcdir= 712verbose= 713x_includes=NONE 714x_libraries=NONE 715 716# Installation directory options. 717# These are left unexpanded so users can "make install exec_prefix=/foo" 718# and all the variables that are supposed to be based on exec_prefix 719# by default will actually change. 720# Use braces instead of parens because sh, perl, etc. also accept them. 721# (The list follows the same order as the GNU Coding Standards.) 722bindir='${exec_prefix}/bin' 723sbindir='${exec_prefix}/sbin' 724libexecdir='${exec_prefix}/libexec' 725datarootdir='${prefix}/share' 726datadir='${datarootdir}' 727sysconfdir='${prefix}/etc' 728sharedstatedir='${prefix}/com' 729localstatedir='${prefix}/var' 730includedir='${prefix}/include' 731oldincludedir='/usr/include' 732docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 733infodir='${datarootdir}/info' 734htmldir='${docdir}' 735dvidir='${docdir}' 736pdfdir='${docdir}' 737psdir='${docdir}' 738libdir='${exec_prefix}/lib' 739localedir='${datarootdir}/locale' 740mandir='${datarootdir}/man' 741 742ac_prev= 743ac_dashdash= 744for ac_option 745do 746 # If the previous option needs an argument, assign it. 747 if test -n "$ac_prev"; then 748 eval $ac_prev=\$ac_option 749 ac_prev= 750 continue 751 fi 752 753 case $ac_option in 754 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 755 *) ac_optarg=yes ;; 756 esac 757 758 # Accept the important Cygnus configure options, so we can diagnose typos. 759 760 case $ac_dashdash$ac_option in 761 --) 762 ac_dashdash=yes ;; 763 764 -bindir | --bindir | --bindi | --bind | --bin | --bi) 765 ac_prev=bindir ;; 766 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 767 bindir=$ac_optarg ;; 768 769 -build | --build | --buil | --bui | --bu) 770 ac_prev=build_alias ;; 771 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 772 build_alias=$ac_optarg ;; 773 774 -cache-file | --cache-file | --cache-fil | --cache-fi \ 775 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 776 ac_prev=cache_file ;; 777 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 778 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 779 cache_file=$ac_optarg ;; 780 781 --config-cache | -C) 782 cache_file=config.cache ;; 783 784 -datadir | --datadir | --datadi | --datad) 785 ac_prev=datadir ;; 786 -datadir=* | --datadir=* | --datadi=* | --datad=*) 787 datadir=$ac_optarg ;; 788 789 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 790 | --dataroo | --dataro | --datar) 791 ac_prev=datarootdir ;; 792 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 793 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 794 datarootdir=$ac_optarg ;; 795 796 -disable-* | --disable-*) 797 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 798 # Reject names that are not valid shell variable names. 799 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 800 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 801 { (exit 1); exit 1; }; } 802 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 803 eval enable_$ac_feature=no ;; 804 805 -docdir | --docdir | --docdi | --doc | --do) 806 ac_prev=docdir ;; 807 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 808 docdir=$ac_optarg ;; 809 810 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 811 ac_prev=dvidir ;; 812 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 813 dvidir=$ac_optarg ;; 814 815 -enable-* | --enable-*) 816 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 817 # Reject names that are not valid shell variable names. 818 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 819 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 820 { (exit 1); exit 1; }; } 821 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 822 eval enable_$ac_feature=\$ac_optarg ;; 823 824 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 825 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 826 | --exec | --exe | --ex) 827 ac_prev=exec_prefix ;; 828 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 829 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 830 | --exec=* | --exe=* | --ex=*) 831 exec_prefix=$ac_optarg ;; 832 833 -gas | --gas | --ga | --g) 834 # Obsolete; use --with-gas. 835 with_gas=yes ;; 836 837 -help | --help | --hel | --he | -h) 838 ac_init_help=long ;; 839 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 840 ac_init_help=recursive ;; 841 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 842 ac_init_help=short ;; 843 844 -host | --host | --hos | --ho) 845 ac_prev=host_alias ;; 846 -host=* | --host=* | --hos=* | --ho=*) 847 host_alias=$ac_optarg ;; 848 849 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 850 ac_prev=htmldir ;; 851 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 852 | --ht=*) 853 htmldir=$ac_optarg ;; 854 855 -includedir | --includedir | --includedi | --included | --include \ 856 | --includ | --inclu | --incl | --inc) 857 ac_prev=includedir ;; 858 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 859 | --includ=* | --inclu=* | --incl=* | --inc=*) 860 includedir=$ac_optarg ;; 861 862 -infodir | --infodir | --infodi | --infod | --info | --inf) 863 ac_prev=infodir ;; 864 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 865 infodir=$ac_optarg ;; 866 867 -libdir | --libdir | --libdi | --libd) 868 ac_prev=libdir ;; 869 -libdir=* | --libdir=* | --libdi=* | --libd=*) 870 libdir=$ac_optarg ;; 871 872 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 873 | --libexe | --libex | --libe) 874 ac_prev=libexecdir ;; 875 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 876 | --libexe=* | --libex=* | --libe=*) 877 libexecdir=$ac_optarg ;; 878 879 -localedir | --localedir | --localedi | --localed | --locale) 880 ac_prev=localedir ;; 881 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 882 localedir=$ac_optarg ;; 883 884 -localstatedir | --localstatedir | --localstatedi | --localstated \ 885 | --localstate | --localstat | --localsta | --localst | --locals) 886 ac_prev=localstatedir ;; 887 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 888 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 889 localstatedir=$ac_optarg ;; 890 891 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 892 ac_prev=mandir ;; 893 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 894 mandir=$ac_optarg ;; 895 896 -nfp | --nfp | --nf) 897 # Obsolete; use --without-fp. 898 with_fp=no ;; 899 900 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 901 | --no-cr | --no-c | -n) 902 no_create=yes ;; 903 904 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 905 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 906 no_recursion=yes ;; 907 908 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 909 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 910 | --oldin | --oldi | --old | --ol | --o) 911 ac_prev=oldincludedir ;; 912 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 913 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 914 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 915 oldincludedir=$ac_optarg ;; 916 917 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 918 ac_prev=prefix ;; 919 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 920 prefix=$ac_optarg ;; 921 922 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 923 | --program-pre | --program-pr | --program-p) 924 ac_prev=program_prefix ;; 925 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 926 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 927 program_prefix=$ac_optarg ;; 928 929 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 930 | --program-suf | --program-su | --program-s) 931 ac_prev=program_suffix ;; 932 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 933 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 934 program_suffix=$ac_optarg ;; 935 936 -program-transform-name | --program-transform-name \ 937 | --program-transform-nam | --program-transform-na \ 938 | --program-transform-n | --program-transform- \ 939 | --program-transform | --program-transfor \ 940 | --program-transfo | --program-transf \ 941 | --program-trans | --program-tran \ 942 | --progr-tra | --program-tr | --program-t) 943 ac_prev=program_transform_name ;; 944 -program-transform-name=* | --program-transform-name=* \ 945 | --program-transform-nam=* | --program-transform-na=* \ 946 | --program-transform-n=* | --program-transform-=* \ 947 | --program-transform=* | --program-transfor=* \ 948 | --program-transfo=* | --program-transf=* \ 949 | --program-trans=* | --program-tran=* \ 950 | --progr-tra=* | --program-tr=* | --program-t=*) 951 program_transform_name=$ac_optarg ;; 952 953 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 954 ac_prev=pdfdir ;; 955 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 956 pdfdir=$ac_optarg ;; 957 958 -psdir | --psdir | --psdi | --psd | --ps) 959 ac_prev=psdir ;; 960 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 961 psdir=$ac_optarg ;; 962 963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 964 | -silent | --silent | --silen | --sile | --sil) 965 silent=yes ;; 966 967 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 968 ac_prev=sbindir ;; 969 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 970 | --sbi=* | --sb=*) 971 sbindir=$ac_optarg ;; 972 973 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 974 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 975 | --sharedst | --shareds | --shared | --share | --shar \ 976 | --sha | --sh) 977 ac_prev=sharedstatedir ;; 978 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 979 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 980 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 981 | --sha=* | --sh=*) 982 sharedstatedir=$ac_optarg ;; 983 984 -site | --site | --sit) 985 ac_prev=site ;; 986 -site=* | --site=* | --sit=*) 987 site=$ac_optarg ;; 988 989 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 990 ac_prev=srcdir ;; 991 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 992 srcdir=$ac_optarg ;; 993 994 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 995 | --syscon | --sysco | --sysc | --sys | --sy) 996 ac_prev=sysconfdir ;; 997 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 998 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 999 sysconfdir=$ac_optarg ;; 1000 1001 -target | --target | --targe | --targ | --tar | --ta | --t) 1002 ac_prev=target_alias ;; 1003 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1004 target_alias=$ac_optarg ;; 1005 1006 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1007 verbose=yes ;; 1008 1009 -version | --version | --versio | --versi | --vers | -V) 1010 ac_init_version=: ;; 1011 1012 -with-* | --with-*) 1013 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1014 # Reject names that are not valid shell variable names. 1015 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1016 { echo "$as_me: error: invalid package name: $ac_package" >&2 1017 { (exit 1); exit 1; }; } 1018 ac_package=`echo $ac_package| sed 's/-/_/g'` 1019 eval with_$ac_package=\$ac_optarg ;; 1020 1021 -without-* | --without-*) 1022 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1023 # Reject names that are not valid shell variable names. 1024 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1025 { echo "$as_me: error: invalid package name: $ac_package" >&2 1026 { (exit 1); exit 1; }; } 1027 ac_package=`echo $ac_package | sed 's/-/_/g'` 1028 eval with_$ac_package=no ;; 1029 1030 --x) 1031 # Obsolete; use --with-x. 1032 with_x=yes ;; 1033 1034 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1035 | --x-incl | --x-inc | --x-in | --x-i) 1036 ac_prev=x_includes ;; 1037 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1038 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1039 x_includes=$ac_optarg ;; 1040 1041 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1042 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1043 ac_prev=x_libraries ;; 1044 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1045 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1046 x_libraries=$ac_optarg ;; 1047 1048 -*) { echo "$as_me: error: unrecognized option: $ac_option 1049Try \`$0 --help' for more information." >&2 1050 { (exit 1); exit 1; }; } 1051 ;; 1052 1053 *=*) 1054 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1055 # Reject names that are not valid shell variable names. 1056 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1057 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1058 { (exit 1); exit 1; }; } 1059 eval $ac_envvar=\$ac_optarg 1060 export $ac_envvar ;; 1061 1062 *) 1063 # FIXME: should be removed in autoconf 3.0. 1064 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1065 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1066 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1067 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1068 ;; 1069 1070 esac 1071done 1072 1073if test -n "$ac_prev"; then 1074 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1075 { echo "$as_me: error: missing argument to $ac_option" >&2 1076 { (exit 1); exit 1; }; } 1077fi 1078 1079# Be sure to have absolute directory names. 1080for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1081 datadir sysconfdir sharedstatedir localstatedir includedir \ 1082 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1083 libdir localedir mandir 1084do 1085 eval ac_val=\$$ac_var 1086 case $ac_val in 1087 [\\/$]* | ?:[\\/]* ) continue;; 1088 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1089 esac 1090 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1091 { (exit 1); exit 1; }; } 1092done 1093 1094# There might be people who depend on the old broken behavior: `$host' 1095# used to hold the argument of --host etc. 1096# FIXME: To remove some day. 1097build=$build_alias 1098host=$host_alias 1099target=$target_alias 1100 1101# FIXME: To remove some day. 1102if test "x$host_alias" != x; then 1103 if test "x$build_alias" = x; then 1104 cross_compiling=maybe 1105 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1106 If a cross compiler is detected then cross compile mode will be used." >&2 1107 elif test "x$build_alias" != "x$host_alias"; then 1108 cross_compiling=yes 1109 fi 1110fi 1111 1112ac_tool_prefix= 1113test -n "$host_alias" && ac_tool_prefix=$host_alias- 1114 1115test "$silent" = yes && exec 6>/dev/null 1116 1117 1118ac_pwd=`pwd` && test -n "$ac_pwd" && 1119ac_ls_di=`ls -di .` && 1120ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1121 { echo "$as_me: error: Working directory cannot be determined" >&2 1122 { (exit 1); exit 1; }; } 1123test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1124 { echo "$as_me: error: pwd does not report name of working directory" >&2 1125 { (exit 1); exit 1; }; } 1126 1127 1128# Find the source files, if location was not specified. 1129if test -z "$srcdir"; then 1130 ac_srcdir_defaulted=yes 1131 # Try the directory containing this script, then the parent directory. 1132 ac_confdir=`$as_dirname -- "$0" || 1133$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1134 X"$0" : 'X\(//\)[^/]' \| \ 1135 X"$0" : 'X\(//\)$' \| \ 1136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1137echo X"$0" | 1138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1139 s//\1/ 1140 q 1141 } 1142 /^X\(\/\/\)[^/].*/{ 1143 s//\1/ 1144 q 1145 } 1146 /^X\(\/\/\)$/{ 1147 s//\1/ 1148 q 1149 } 1150 /^X\(\/\).*/{ 1151 s//\1/ 1152 q 1153 } 1154 s/.*/./; q'` 1155 srcdir=$ac_confdir 1156 if test ! -r "$srcdir/$ac_unique_file"; then 1157 srcdir=.. 1158 fi 1159else 1160 ac_srcdir_defaulted=no 1161fi 1162if test ! -r "$srcdir/$ac_unique_file"; then 1163 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1164 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1165 { (exit 1); exit 1; }; } 1166fi 1167ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1168ac_abs_confdir=`( 1169 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1170 { (exit 1); exit 1; }; } 1171 pwd)` 1172# When building in place, set srcdir=. 1173if test "$ac_abs_confdir" = "$ac_pwd"; then 1174 srcdir=. 1175fi 1176# Remove unnecessary trailing slashes from srcdir. 1177# Double slashes in file names in object file debugging info 1178# mess up M-x gdb in Emacs. 1179case $srcdir in 1180*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1181esac 1182for ac_var in $ac_precious_vars; do 1183 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1184 eval ac_env_${ac_var}_value=\$${ac_var} 1185 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1186 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1187done 1188 1189# 1190# Report the --help message. 1191# 1192if test "$ac_init_help" = "long"; then 1193 # Omit some internal or obsolete options to make the list less imposing. 1194 # This message is too long to be a string in the A/UX 3.1 sh. 1195 cat <<_ACEOF 1196\`configure' configures a2png 0.1.5 to adapt to many kinds of systems. 1197 1198Usage: $0 [OPTION]... [VAR=VALUE]... 1199 1200To assign environment variables (e.g., CC, CFLAGS...), specify them as 1201VAR=VALUE. See below for descriptions of some of the useful variables. 1202 1203Defaults for the options are specified in brackets. 1204 1205Configuration: 1206 -h, --help display this help and exit 1207 --help=short display options specific to this package 1208 --help=recursive display the short help of all the included packages 1209 -V, --version display version information and exit 1210 -q, --quiet, --silent do not print \`checking...' messages 1211 --cache-file=FILE cache test results in FILE [disabled] 1212 -C, --config-cache alias for \`--cache-file=config.cache' 1213 -n, --no-create do not create output files 1214 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1215 1216Installation directories: 1217 --prefix=PREFIX install architecture-independent files in PREFIX 1218 [$ac_default_prefix] 1219 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1220 [PREFIX] 1221 1222By default, \`make install' will install all the files in 1223\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1224an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1225for instance \`--prefix=\$HOME'. 1226 1227For better control, use the options below. 1228 1229Fine tuning of the installation directories: 1230 --bindir=DIR user executables [EPREFIX/bin] 1231 --sbindir=DIR system admin executables [EPREFIX/sbin] 1232 --libexecdir=DIR program executables [EPREFIX/libexec] 1233 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1234 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1235 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1236 --libdir=DIR object code libraries [EPREFIX/lib] 1237 --includedir=DIR C header files [PREFIX/include] 1238 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1239 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1240 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1241 --infodir=DIR info documentation [DATAROOTDIR/info] 1242 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1243 --mandir=DIR man documentation [DATAROOTDIR/man] 1244 --docdir=DIR documentation root [DATAROOTDIR/doc/a2png] 1245 --htmldir=DIR html documentation [DOCDIR] 1246 --dvidir=DIR dvi documentation [DOCDIR] 1247 --pdfdir=DIR pdf documentation [DOCDIR] 1248 --psdir=DIR ps documentation [DOCDIR] 1249_ACEOF 1250 1251 cat <<\_ACEOF 1252 1253Program names: 1254 --program-prefix=PREFIX prepend PREFIX to installed program names 1255 --program-suffix=SUFFIX append SUFFIX to installed program names 1256 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1257_ACEOF 1258fi 1259 1260if test -n "$ac_init_help"; then 1261 case $ac_init_help in 1262 short | recursive ) echo "Configuration of a2png 0.1.5:";; 1263 esac 1264 cat <<\_ACEOF 1265 1266Optional Features: 1267 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1268 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1269 --enable-cairo to use the Cairo Graphics Library, http://www.cairographics.org (default: disable) 1270 --enable-gd to use the GD library, http://www.boutell.com/gd/ (default: enable) 1271 --disable-dependency-tracking speeds up one-time build 1272 --enable-dependency-tracking do not reject slow dependency extractors 1273 1274Optional Packages: 1275 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1276 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1277 --with-gdlib-config-path=PATH to gdlib-config -- http://www.boutell.com/gd/ 1278 --with-cairo-include=PATH to directory containing cairo.h -- http://www.cairographics.org 1279 --with-cairo-lib=PATH to directory containing libcairo -- http://www.cairographics.org 1280 --with-cairo-prefix=PATH to directory prefix that contains cairo/cairo.h and libcairo -- http://www.cairographics.org 1281 1282Some influential environment variables: 1283 CC C compiler command 1284 CFLAGS C compiler flags 1285 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1286 nonstandard directory <lib dir> 1287 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1288 you have headers in a nonstandard directory <include dir> 1289 CPP C preprocessor 1290 1291Use these variables to override the choices made by `configure' or to help 1292it to find libraries and programs with nonstandard names/locations. 1293 1294Report bugs to <csl@sublevel3.org>. 1295_ACEOF 1296ac_status=$? 1297fi 1298 1299if test "$ac_init_help" = "recursive"; then 1300 # If there are subdirs, report their specific --help. 1301 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1302 test -d "$ac_dir" || continue 1303 ac_builddir=. 1304 1305case "$ac_dir" in 1306.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1307*) 1308 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1309 # A ".." for each directory in $ac_dir_suffix. 1310 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1311 case $ac_top_builddir_sub in 1312 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1313 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1314 esac ;; 1315esac 1316ac_abs_top_builddir=$ac_pwd 1317ac_abs_builddir=$ac_pwd$ac_dir_suffix 1318# for backward compatibility: 1319ac_top_builddir=$ac_top_build_prefix 1320 1321case $srcdir in 1322 .) # We are building in place. 1323 ac_srcdir=. 1324 ac_top_srcdir=$ac_top_builddir_sub 1325 ac_abs_top_srcdir=$ac_pwd ;; 1326 [\\/]* | ?:[\\/]* ) # Absolute name. 1327 ac_srcdir=$srcdir$ac_dir_suffix; 1328 ac_top_srcdir=$srcdir 1329 ac_abs_top_srcdir=$srcdir ;; 1330 *) # Relative name. 1331 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1332 ac_top_srcdir=$ac_top_build_prefix$srcdir 1333 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1334esac 1335ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1336 1337 cd "$ac_dir" || { ac_status=$?; continue; } 1338 # Check for guested configure. 1339 if test -f "$ac_srcdir/configure.gnu"; then 1340 echo && 1341 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1342 elif test -f "$ac_srcdir/configure"; then 1343 echo && 1344 $SHELL "$ac_srcdir/configure" --help=recursive 1345 else 1346 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1347 fi || ac_status=$? 1348 cd "$ac_pwd" || { ac_status=$?; break; } 1349 done 1350fi 1351 1352test -n "$ac_init_help" && exit $ac_status 1353if $ac_init_version; then 1354 cat <<\_ACEOF 1355a2png configure 0.1.5 1356generated by GNU Autoconf 2.60 1357 1358Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 13592002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1360This configure script is free software; the Free Software Foundation 1361gives unlimited permission to copy, distribute and modify it. 1362_ACEOF 1363 exit 1364fi 1365cat >config.log <<_ACEOF 1366This file contains any messages produced by compilers while 1367running configure, to aid debugging if configure makes a mistake. 1368 1369It was created by a2png $as_me 0.1.5, which was 1370generated by GNU Autoconf 2.60. Invocation command line was 1371 1372 $ $0 $@ 1373 1374_ACEOF 1375exec 5>>config.log 1376{ 1377cat <<_ASUNAME 1378## --------- ## 1379## Platform. ## 1380## --------- ## 1381 1382hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1383uname -m = `(uname -m) 2>/dev/null || echo unknown` 1384uname -r = `(uname -r) 2>/dev/null || echo unknown` 1385uname -s = `(uname -s) 2>/dev/null || echo unknown` 1386uname -v = `(uname -v) 2>/dev/null || echo unknown` 1387 1388/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1389/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1390 1391/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1392/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1393/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1394/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1395/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1396/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1397/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1398 1399_ASUNAME 1400 1401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1402for as_dir in $PATH 1403do 1404 IFS=$as_save_IFS 1405 test -z "$as_dir" && as_dir=. 1406 echo "PATH: $as_dir" 1407done 1408IFS=$as_save_IFS 1409 1410} >&5 1411 1412cat >&5 <<_ACEOF 1413 1414 1415## ----------- ## 1416## Core tests. ## 1417## ----------- ## 1418 1419_ACEOF 1420 1421 1422# Keep a trace of the command line. 1423# Strip out --no-create and --no-recursion so they do not pile up. 1424# Strip out --silent because we don't want to record it for future runs. 1425# Also quote any args containing shell meta-characters. 1426# Make two passes to allow for proper duplicate-argument suppression. 1427ac_configure_args= 1428ac_configure_args0= 1429ac_configure_args1= 1430ac_must_keep_next=false 1431for ac_pass in 1 2 1432do 1433 for ac_arg 1434 do 1435 case $ac_arg in 1436 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1438 | -silent | --silent | --silen | --sile | --sil) 1439 continue ;; 1440 *\'*) 1441 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1442 esac 1443 case $ac_pass in 1444 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1445 2) 1446 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1447 if test $ac_must_keep_next = true; then 1448 ac_must_keep_next=false # Got value, back to normal. 1449 else 1450 case $ac_arg in 1451 *=* | --config-cache | -C | -disable-* | --disable-* \ 1452 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1453 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1454 | -with-* | --with-* | -without-* | --without-* | --x) 1455 case "$ac_configure_args0 " in 1456 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1457 esac 1458 ;; 1459 -* ) ac_must_keep_next=true ;; 1460 esac 1461 fi 1462 ac_configure_args="$ac_configure_args '$ac_arg'" 1463 ;; 1464 esac 1465 done 1466done 1467$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1468$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1469 1470# When interrupted or exit'd, cleanup temporary files, and complete 1471# config.log. We remove comments because anyway the quotes in there 1472# would cause problems or look ugly. 1473# WARNING: Use '\'' to represent an apostrophe within the trap. 1474# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1475trap 'exit_status=$? 1476 # Save into config.log some information that might help in debugging. 1477 { 1478 echo 1479 1480 cat <<\_ASBOX 1481## ---------------- ## 1482## Cache variables. ## 1483## ---------------- ## 1484_ASBOX 1485 echo 1486 # The following way of writing the cache mishandles newlines in values, 1487( 1488 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1489 eval ac_val=\$$ac_var 1490 case $ac_val in #( 1491 *${as_nl}*) 1492 case $ac_var in #( 1493 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1494echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1495 esac 1496 case $ac_var in #( 1497 _ | IFS | as_nl) ;; #( 1498 *) $as_unset $ac_var ;; 1499 esac ;; 1500 esac 1501 done 1502 (set) 2>&1 | 1503 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1504 *${as_nl}ac_space=\ *) 1505 sed -n \ 1506 "s/'\''/'\''\\\\'\'''\''/g; 1507 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1508 ;; #( 1509 *) 1510 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1511 ;; 1512 esac | 1513 sort 1514) 1515 echo 1516 1517 cat <<\_ASBOX 1518## ----------------- ## 1519## Output variables. ## 1520## ----------------- ## 1521_ASBOX 1522 echo 1523 for ac_var in $ac_subst_vars 1524 do 1525 eval ac_val=\$$ac_var 1526 case $ac_val in 1527 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1528 esac 1529 echo "$ac_var='\''$ac_val'\''" 1530 done | sort 1531 echo 1532 1533 if test -n "$ac_subst_files"; then 1534 cat <<\_ASBOX 1535## ------------------- ## 1536## File substitutions. ## 1537## ------------------- ## 1538_ASBOX 1539 echo 1540 for ac_var in $ac_subst_files 1541 do 1542 eval ac_val=\$$ac_var 1543 case $ac_val in 1544 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1545 esac 1546 echo "$ac_var='\''$ac_val'\''" 1547 done | sort 1548 echo 1549 fi 1550 1551 if test -s confdefs.h; then 1552 cat <<\_ASBOX 1553## ----------- ## 1554## confdefs.h. ## 1555## ----------- ## 1556_ASBOX 1557 echo 1558 cat confdefs.h 1559 echo 1560 fi 1561 test "$ac_signal" != 0 && 1562 echo "$as_me: caught signal $ac_signal" 1563 echo "$as_me: exit $exit_status" 1564 } >&5 1565 rm -f core *.core core.conftest.* && 1566 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1567 exit $exit_status 1568' 0 1569for ac_signal in 1 2 13 15; do 1570 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1571done 1572ac_signal=0 1573 1574# confdefs.h avoids OS command line length limits that DEFS can exceed. 1575rm -f -r conftest* confdefs.h 1576 1577# Predefined preprocessor variables. 1578 1579cat >>confdefs.h <<_ACEOF 1580#define PACKAGE_NAME "$PACKAGE_NAME" 1581_ACEOF 1582 1583 1584cat >>confdefs.h <<_ACEOF 1585#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1586_ACEOF 1587 1588 1589cat >>confdefs.h <<_ACEOF 1590#define PACKAGE_VERSION "$PACKAGE_VERSION" 1591_ACEOF 1592 1593 1594cat >>confdefs.h <<_ACEOF 1595#define PACKAGE_STRING "$PACKAGE_STRING" 1596_ACEOF 1597 1598 1599cat >>confdefs.h <<_ACEOF 1600#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1601_ACEOF 1602 1603 1604# Let the site file select an alternate cache file if it wants to. 1605# Prefer explicitly selected file to automatically selected ones. 1606if test -n "$CONFIG_SITE"; then 1607 set x "$CONFIG_SITE" 1608elif test "x$prefix" != xNONE; then 1609 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1610else 1611 set x "$ac_default_prefix/share/config.site" \ 1612 "$ac_default_prefix/etc/config.site" 1613fi 1614shift 1615for ac_site_file 1616do 1617 if test -r "$ac_site_file"; then 1618 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1619echo "$as_me: loading site script $ac_site_file" >&6;} 1620 sed 's/^/| /' "$ac_site_file" >&5 1621 . "$ac_site_file" 1622 fi 1623done 1624 1625if test -r "$cache_file"; then 1626 # Some versions of bash will fail to source /dev/null (special 1627 # files actually), so we avoid doing that. 1628 if test -f "$cache_file"; then 1629 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1630echo "$as_me: loading cache $cache_file" >&6;} 1631 case $cache_file in 1632 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1633 *) . "./$cache_file";; 1634 esac 1635 fi 1636else 1637 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1638echo "$as_me: creating cache $cache_file" >&6;} 1639 >$cache_file 1640fi 1641 1642# Check that the precious variables saved in the cache have kept the same 1643# value. 1644ac_cache_corrupted=false 1645for ac_var in $ac_precious_vars; do 1646 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1647 eval ac_new_set=\$ac_env_${ac_var}_set 1648 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1649 eval ac_new_val=\$ac_env_${ac_var}_value 1650 case $ac_old_set,$ac_new_set in 1651 set,) 1652 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1653echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1654 ac_cache_corrupted=: ;; 1655 ,set) 1656 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1657echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1658 ac_cache_corrupted=: ;; 1659 ,);; 1660 *) 1661 if test "x$ac_old_val" != "x$ac_new_val"; then 1662 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1663echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1664 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1665echo "$as_me: former value: $ac_old_val" >&2;} 1666 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1667echo "$as_me: current value: $ac_new_val" >&2;} 1668 ac_cache_corrupted=: 1669 fi;; 1670 esac 1671 # Pass precious variables to config.status. 1672 if test "$ac_new_set" = set; then 1673 case $ac_new_val in 1674 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1675 *) ac_arg=$ac_var=$ac_new_val ;; 1676 esac 1677 case " $ac_configure_args " in 1678 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1679 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1680 esac 1681 fi 1682done 1683if $ac_cache_corrupted; then 1684 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1685echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1686 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1687echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1688 { (exit 1); exit 1; }; } 1689fi 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715ac_ext=c 1716ac_cpp='$CPP $CPPFLAGS' 1717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1719ac_compiler_gnu=$ac_cv_c_compiler_gnu 1720 1721 1722am__api_version="1.9" 1723ac_aux_dir= 1724for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1725 if test -f "$ac_dir/install-sh"; then 1726 ac_aux_dir=$ac_dir 1727 ac_install_sh="$ac_aux_dir/install-sh -c" 1728 break 1729 elif test -f "$ac_dir/install.sh"; then 1730 ac_aux_dir=$ac_dir 1731 ac_install_sh="$ac_aux_dir/install.sh -c" 1732 break 1733 elif test -f "$ac_dir/shtool"; then 1734 ac_aux_dir=$ac_dir 1735 ac_install_sh="$ac_aux_dir/shtool install -c" 1736 break 1737 fi 1738done 1739if test -z "$ac_aux_dir"; then 1740 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1741echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1742 { (exit 1); exit 1; }; } 1743fi 1744 1745# These three variables are undocumented and unsupported, 1746# and are intended to be withdrawn in a future Autoconf release. 1747# They can cause serious problems if a builder's source tree is in a directory 1748# whose full name contains unusual characters. 1749ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1750ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1751ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1752 1753 1754# Find a good install program. We prefer a C program (faster), 1755# so one script is as good as another. But avoid the broken or 1756# incompatible versions: 1757# SysV /etc/install, /usr/sbin/install 1758# SunOS /usr/etc/install 1759# IRIX /sbin/install 1760# AIX /bin/install 1761# AmigaOS /C/install, which installs bootblocks on floppy discs 1762# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1763# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1764# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1765# OS/2's system install, which has a completely different semantic 1766# ./install, which can be erroneously created by make from ./install.sh. 1767{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1768echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1769if test -z "$INSTALL"; then 1770if test "${ac_cv_path_install+set}" = set; then 1771 echo $ECHO_N "(cached) $ECHO_C" >&6 1772else 1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1774for as_dir in $PATH 1775do 1776 IFS=$as_save_IFS 1777 test -z "$as_dir" && as_dir=. 1778 # Account for people who put trailing slashes in PATH elements. 1779case $as_dir/ in 1780 ./ | .// | /cC/* | \ 1781 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1782 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1783 /usr/ucb/* ) ;; 1784 *) 1785 # OSF1 and SCO ODT 3.0 have their own names for install. 1786 # Don't use installbsd from OSF since it installs stuff as root 1787 # by default. 1788 for ac_prog in ginstall scoinst install; do 1789 for ac_exec_ext in '' $ac_executable_extensions; do 1790 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 1791 if test $ac_prog = install && 1792 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1793 # AIX install. It has an incompatible calling convention. 1794 : 1795 elif test $ac_prog = install && 1796 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1797 # program-specific install script used by HP pwplus--don't use. 1798 : 1799 else 1800 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1801 break 3 1802 fi 1803 fi 1804 done 1805 done 1806 ;; 1807esac 1808done 1809IFS=$as_save_IFS 1810 1811 1812fi 1813 if test "${ac_cv_path_install+set}" = set; then 1814 INSTALL=$ac_cv_path_install 1815 else 1816 # As a last resort, use the slow shell script. Don't cache a 1817 # value for INSTALL within a source directory, because that will 1818 # break other packages using the cache if that directory is 1819 # removed, or if the value is a relative name. 1820 INSTALL=$ac_install_sh 1821 fi 1822fi 1823{ echo "$as_me:$LINENO: result: $INSTALL" >&5 1824echo "${ECHO_T}$INSTALL" >&6; } 1825 1826# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1827# It thinks the first close brace ends the variable substitution. 1828test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1829 1830test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1831 1832test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1833 1834{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1835echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 1836# Just in case 1837sleep 1 1838echo timestamp > conftest.file 1839# Do `set' in a subshell so we don't clobber the current shell's 1840# arguments. Must try -L first in case configure is actually a 1841# symlink; some systems play weird games with the mod time of symlinks 1842# (eg FreeBSD returns the mod time of the symlink's containing 1843# directory). 1844if ( 1845 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1846 if test "$*" = "X"; then 1847 # -L didn't work. 1848 set X `ls -t $srcdir/configure conftest.file` 1849 fi 1850 rm -f conftest.file 1851 if test "$*" != "X $srcdir/configure conftest.file" \ 1852 && test "$*" != "X conftest.file $srcdir/configure"; then 1853 1854 # If neither matched, then we have a broken ls. This can happen 1855 # if, for instance, CONFIG_SHELL is bash and it inherits a 1856 # broken ls alias from the environment. This has actually 1857 # happened. Such a system could not be considered "sane". 1858 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1859alias in your environment" >&5 1860echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1861alias in your environment" >&2;} 1862 { (exit 1); exit 1; }; } 1863 fi 1864 1865 test "$2" = conftest.file 1866 ) 1867then 1868 # Ok. 1869 : 1870else 1871 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1872Check your system clock" >&5 1873echo "$as_me: error: newly created file is older than distributed files! 1874Check your system clock" >&2;} 1875 { (exit 1); exit 1; }; } 1876fi 1877{ echo "$as_me:$LINENO: result: yes" >&5 1878echo "${ECHO_T}yes" >&6; } 1879test "$program_prefix" != NONE && 1880 program_transform_name="s&^&$program_prefix&;$program_transform_name" 1881# Use a double $ so make ignores it. 1882test "$program_suffix" != NONE && 1883 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 1884# Double any \ or $. echo might interpret backslashes. 1885# By default was `s,x,x', remove it if useless. 1886cat <<\_ACEOF >conftest.sed 1887s/[\\$]/&&/g;s/;s,x,x,$// 1888_ACEOF 1889program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1890rm -f conftest.sed 1891 1892# expand $ac_aux_dir to an absolute path 1893am_aux_dir=`cd $ac_aux_dir && pwd` 1894 1895test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1896# Use eval to expand $SHELL 1897if eval "$MISSING --run true"; then 1898 am_missing_run="$MISSING --run " 1899else 1900 am_missing_run= 1901 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1902echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1903fi 1904 1905if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1906 # We used to keeping the `.' as first argument, in order to 1907 # allow $(mkdir_p) to be used without argument. As in 1908 # $(mkdir_p) $(somedir) 1909 # where $(somedir) is conditionally defined. However this is wrong 1910 # for two reasons: 1911 # 1. if the package is installed by a user who cannot write `.' 1912 # make install will fail, 1913 # 2. the above comment should most certainly read 1914 # $(mkdir_p) $(DESTDIR)$(somedir) 1915 # so it does not work when $(somedir) is undefined and 1916 # $(DESTDIR) is not. 1917 # To support the latter case, we have to write 1918 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1919 # so the `.' trick is pointless. 1920 mkdir_p='mkdir -p --' 1921else 1922 # On NextStep and OpenStep, the `mkdir' command does not 1923 # recognize any option. It will interpret all options as 1924 # directories to create, and then abort because `.' already 1925 # exists. 1926 for d in ./-p ./--version; 1927 do 1928 test -d $d && rmdir $d 1929 done 1930 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1931 if test -f "$ac_aux_dir/mkinstalldirs"; then 1932 mkdir_p='$(mkinstalldirs)' 1933 else 1934 mkdir_p='$(install_sh) -d' 1935 fi 1936fi 1937 1938for ac_prog in gawk mawk nawk awk 1939do 1940 # Extract the first word of "$ac_prog", so it can be a program name with args. 1941set dummy $ac_prog; ac_word=$2 1942{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1944if test "${ac_cv_prog_AWK+set}" = set; then 1945 echo $ECHO_N "(cached) $ECHO_C" >&6 1946else 1947 if test -n "$AWK"; then 1948 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1949else 1950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1951for as_dir in $PATH 1952do 1953 IFS=$as_save_IFS 1954 test -z "$as_dir" && as_dir=. 1955 for ac_exec_ext in '' $ac_executable_extensions; do 1956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 1957 ac_cv_prog_AWK="$ac_prog" 1958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1959 break 2 1960 fi 1961done 1962done 1963IFS=$as_save_IFS 1964 1965fi 1966fi 1967AWK=$ac_cv_prog_AWK 1968if test -n "$AWK"; then 1969 { echo "$as_me:$LINENO: result: $AWK" >&5 1970echo "${ECHO_T}$AWK" >&6; } 1971else 1972 { echo "$as_me:$LINENO: result: no" >&5 1973echo "${ECHO_T}no" >&6; } 1974fi 1975 1976 1977 test -n "$AWK" && break 1978done 1979 1980{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1981echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 1982set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 1983if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 1984 echo $ECHO_N "(cached) $ECHO_C" >&6 1985else 1986 cat >conftest.make <<\_ACEOF 1987SHELL = /bin/sh 1988all: 1989 @echo '@@@%%%=$(MAKE)=@@@%%%' 1990_ACEOF 1991# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1992case `${MAKE-make} -f conftest.make 2>/dev/null` in 1993 *@@@%%%=?*=@@@%%%*) 1994 eval ac_cv_prog_make_${ac_make}_set=yes;; 1995 *) 1996 eval ac_cv_prog_make_${ac_make}_set=no;; 1997esac 1998rm -f conftest.make 1999fi 2000if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2001 { echo "$as_me:$LINENO: result: yes" >&5 2002echo "${ECHO_T}yes" >&6; } 2003 SET_MAKE= 2004else 2005 { echo "$as_me:$LINENO: result: no" >&5 2006echo "${ECHO_T}no" >&6; } 2007 SET_MAKE="MAKE=${MAKE-make}" 2008fi 2009 2010rm -rf .tst 2>/dev/null 2011mkdir .tst 2>/dev/null 2012if test -d .tst; then 2013 am__leading_dot=. 2014else 2015 am__leading_dot=_ 2016fi 2017rmdir .tst 2>/dev/null 2018 2019# test to see if srcdir already configured 2020if test "`cd $srcdir && pwd`" != "`pwd`" && 2021 test -f $srcdir/config.status; then 2022 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2023echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2024 { (exit 1); exit 1; }; } 2025fi 2026 2027# test whether we have cygpath 2028if test -z "$CYGPATH_W"; then 2029 if (cygpath --version) >/dev/null 2>/dev/null; then 2030 CYGPATH_W='cygpath -w' 2031 else 2032 CYGPATH_W=echo 2033 fi 2034fi 2035 2036 2037# Define the identity of the package. 2038 PACKAGE='a2png' 2039 VERSION='0.1.5' 2040 2041 2042cat >>confdefs.h <<_ACEOF 2043#define PACKAGE "$PACKAGE" 2044_ACEOF 2045 2046 2047cat >>confdefs.h <<_ACEOF 2048#define VERSION "$VERSION" 2049_ACEOF 2050 2051# Some tools Automake needs. 2052 2053ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2054 2055 2056AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2057 2058 2059AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2060 2061 2062AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2063 2064 2065MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2066 2067install_sh=${install_sh-"$am_aux_dir/install-sh"} 2068 2069# Installed binaries are usually stripped using `strip' when the user 2070# run `make install-strip'. However `strip' might not be the right 2071# tool to use in cross-compilation environments, therefore Automake 2072# will honor the `STRIP' environment variable to overrule this program. 2073if test "$cross_compiling" != no; then 2074 if test -n "$ac_tool_prefix"; then 2075 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2076set dummy ${ac_tool_prefix}strip; ac_word=$2 2077{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2079if test "${ac_cv_prog_STRIP+set}" = set; then 2080 echo $ECHO_N "(cached) $ECHO_C" >&6 2081else 2082 if test -n "$STRIP"; then 2083 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2084else 2085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2086for as_dir in $PATH 2087do 2088 IFS=$as_save_IFS 2089 test -z "$as_dir" && as_dir=. 2090 for ac_exec_ext in '' $ac_executable_extensions; do 2091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2092 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2094 break 2 2095 fi 2096done 2097done 2098IFS=$as_save_IFS 2099 2100fi 2101fi 2102STRIP=$ac_cv_prog_STRIP 2103if test -n "$STRIP"; then 2104 { echo "$as_me:$LINENO: result: $STRIP" >&5 2105echo "${ECHO_T}$STRIP" >&6; } 2106else 2107 { echo "$as_me:$LINENO: result: no" >&5 2108echo "${ECHO_T}no" >&6; } 2109fi 2110 2111 2112fi 2113if test -z "$ac_cv_prog_STRIP"; then 2114 ac_ct_STRIP=$STRIP 2115 # Extract the first word of "strip", so it can be a program name with args. 2116set dummy strip; ac_word=$2 2117{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2119if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2120 echo $ECHO_N "(cached) $ECHO_C" >&6 2121else 2122 if test -n "$ac_ct_STRIP"; then 2123 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2124else 2125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2126for as_dir in $PATH 2127do 2128 IFS=$as_save_IFS 2129 test -z "$as_dir" && as_dir=. 2130 for ac_exec_ext in '' $ac_executable_extensions; do 2131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2132 ac_cv_prog_ac_ct_STRIP="strip" 2133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2134 break 2 2135 fi 2136done 2137done 2138IFS=$as_save_IFS 2139 2140fi 2141fi 2142ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2143if test -n "$ac_ct_STRIP"; then 2144 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2145echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2146else 2147 { echo "$as_me:$LINENO: result: no" >&5 2148echo "${ECHO_T}no" >&6; } 2149fi 2150 2151 if test "x$ac_ct_STRIP" = x; then 2152 STRIP=":" 2153 else 2154 case $cross_compiling:$ac_tool_warned in 2155yes:) 2156{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2157whose name does not start with the host triplet. If you think this 2158configuration is useful to you, please write to autoconf@gnu.org." >&5 2159echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2160whose name does not start with the host triplet. If you think this 2161configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2162ac_tool_warned=yes ;; 2163esac 2164 STRIP=$ac_ct_STRIP 2165 fi 2166else 2167 STRIP="$ac_cv_prog_STRIP" 2168fi 2169 2170fi 2171INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2172 2173# We need awk for the "check" target. The system "awk" is bad on 2174# some platforms. 2175# Always define AMTAR for backward compatibility. 2176 2177AMTAR=${AMTAR-"${am_missing_run}tar"} 2178 2179am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2180 2181 2182 2183 2184 2185 2186ac_config_headers="$ac_config_headers src/config.h" 2187 2188 2189 2190# Check whether --enable-cairo was given. 2191if test "${enable_cairo+set}" = set; then 2192 enableval=$enable_cairo; enable_cairo=$enableval 2193else 2194 enable_cairo="no" 2195fi 2196 2197 2198# Check whether --enable-gd was given. 2199if test "${enable_gd+set}" = set; then 2200 enableval=$enable_gd; enable_gd=$enableval 2201else 2202 enable_gd="no" 2203fi 2204 2205 2206 2207# Check whether --with-gdlib-config-path was given. 2208if test "${with_gdlib_config_path+set}" = set; then 2209 withval=$with_gdlib_config_path; gdlib_config_path=$withval 2210else 2211 2212 gdlib_config_path=$PATH 2213 enable_gd="yes" 2214 2215fi 2216 2217 2218 2219# Check whether --with-cairo-include was given. 2220if test "${with_cairo_include+set}" = set; then 2221 withval=$with_cairo_include; 2222 CPPFLAGS="$CPPFLAGS -I$withval" 2223 enable_cairo="yes" 2224 enable_gd="no" 2225 2226fi 2227 2228 2229 2230# Check whether --with-cairo-lib was given. 2231if test "${with_cairo_lib+set}" = set; then 2232 withval=$with_cairo_lib; 2233 LDFLAGS="$LDFLAGS -L$withval" 2234 enable_cairo="yes" 2235 enable_gd="no" 2236 2237fi 2238 2239 2240 2241# Check whether --with-cairo-prefix was given. 2242if test "${with_cairo_prefix+set}" = set; then 2243 withval=$with_cairo_prefix; 2244 CPPFLAGS="$CPPFLAGS -I$withval/include/cairo/" 2245 LDFLAGS="$LDFLAGS -L$withval/lib/" 2246 enable_cairo="yes" 2247 enable_gd="no" 2248 2249fi 2250 2251 2252{ echo "$as_me:$LINENO: checking --enable-cairo" >&5 2253echo $ECHO_N "checking --enable-cairo... $ECHO_C" >&6; } 2254{ echo "$as_me:$LINENO: result: $enable_cairo" >&5 2255echo "${ECHO_T}$enable_cairo" >&6; } 2256 2257{ echo "$as_me:$LINENO: checking --enable-gd" >&5 2258echo $ECHO_N "checking --enable-gd... $ECHO_C" >&6; } 2259{ echo "$as_me:$LINENO: result: $enable_gd" >&5 2260echo "${ECHO_T}$enable_gd" >&6; } 2261 2262# If nothing specified, try building with GD 2263if test "$enable_cairo" = "no" && test "$enable_gd" = "no" ; then 2264 enable_gd=yes 2265 { echo "$as_me:$LINENO: WARNING: neither of --enable-gd or --enable-cairo specified, continuing with --enable-gd" >&5 2266echo "$as_me: WARNING: neither of --enable-gd or --enable-cairo specified, continuing with --enable-gd" >&2;} 2267fi 2268 2269if test "x$enable_cairo" != "xno" ; then 2270 2271cat >>confdefs.h <<\_ACEOF 2272#define ENABLE_CAIRO 1 2273_ACEOF 2274 2275fi 2276 2277# Checks for programs. 2278ac_ext=c 2279ac_cpp='$CPP $CPPFLAGS' 2280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2282ac_compiler_gnu=$ac_cv_c_compiler_gnu 2283if test -n "$ac_tool_prefix"; then 2284 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2285set dummy ${ac_tool_prefix}gcc; ac_word=$2 2286{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2288if test "${ac_cv_prog_CC+set}" = set; then 2289 echo $ECHO_N "(cached) $ECHO_C" >&6 2290else 2291 if test -n "$CC"; then 2292 ac_cv_prog_CC="$CC" # Let the user override the test. 2293else 2294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2295for as_dir in $PATH 2296do 2297 IFS=$as_save_IFS 2298 test -z "$as_dir" && as_dir=. 2299 for ac_exec_ext in '' $ac_executable_extensions; do 2300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2301 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2303 break 2 2304 fi 2305done 2306done 2307IFS=$as_save_IFS 2308 2309fi 2310fi 2311CC=$ac_cv_prog_CC 2312if test -n "$CC"; then 2313 { echo "$as_me:$LINENO: result: $CC" >&5 2314echo "${ECHO_T}$CC" >&6; } 2315else 2316 { echo "$as_me:$LINENO: result: no" >&5 2317echo "${ECHO_T}no" >&6; } 2318fi 2319 2320 2321fi 2322if test -z "$ac_cv_prog_CC"; then 2323 ac_ct_CC=$CC 2324 # Extract the first word of "gcc", so it can be a program name with args. 2325set dummy gcc; ac_word=$2 2326{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2328if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2329 echo $ECHO_N "(cached) $ECHO_C" >&6 2330else 2331 if test -n "$ac_ct_CC"; then 2332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2333else 2334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2335for as_dir in $PATH 2336do 2337 IFS=$as_save_IFS 2338 test -z "$as_dir" && as_dir=. 2339 for ac_exec_ext in '' $ac_executable_extensions; do 2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2341 ac_cv_prog_ac_ct_CC="gcc" 2342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2343 break 2 2344 fi 2345done 2346done 2347IFS=$as_save_IFS 2348 2349fi 2350fi 2351ac_ct_CC=$ac_cv_prog_ac_ct_CC 2352if test -n "$ac_ct_CC"; then 2353 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2354echo "${ECHO_T}$ac_ct_CC" >&6; } 2355else 2356 { echo "$as_me:$LINENO: result: no" >&5 2357echo "${ECHO_T}no" >&6; } 2358fi 2359 2360 if test "x$ac_ct_CC" = x; then 2361 CC="" 2362 else 2363 case $cross_compiling:$ac_tool_warned in 2364yes:) 2365{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2366whose name does not start with the host triplet. If you think this 2367configuration is useful to you, please write to autoconf@gnu.org." >&5 2368echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2369whose name does not start with the host triplet. If you think this 2370configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2371ac_tool_warned=yes ;; 2372esac 2373 CC=$ac_ct_CC 2374 fi 2375else 2376 CC="$ac_cv_prog_CC" 2377fi 2378 2379if test -z "$CC"; then 2380 if test -n "$ac_tool_prefix"; then 2381 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2382set dummy ${ac_tool_prefix}cc; ac_word=$2 2383{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2385if test "${ac_cv_prog_CC+set}" = set; then 2386 echo $ECHO_N "(cached) $ECHO_C" >&6 2387else 2388 if test -n "$CC"; then 2389 ac_cv_prog_CC="$CC" # Let the user override the test. 2390else 2391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2392for as_dir in $PATH 2393do 2394 IFS=$as_save_IFS 2395 test -z "$as_dir" && as_dir=. 2396 for ac_exec_ext in '' $ac_executable_extensions; do 2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2398 ac_cv_prog_CC="${ac_tool_prefix}cc" 2399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2400 break 2 2401 fi 2402done 2403done 2404IFS=$as_save_IFS 2405 2406fi 2407fi 2408CC=$ac_cv_prog_CC 2409if test -n "$CC"; then 2410 { echo "$as_me:$LINENO: result: $CC" >&5 2411echo "${ECHO_T}$CC" >&6; } 2412else 2413 { echo "$as_me:$LINENO: result: no" >&5 2414echo "${ECHO_T}no" >&6; } 2415fi 2416 2417 2418 fi 2419fi 2420if test -z "$CC"; then 2421 # Extract the first word of "cc", so it can be a program name with args. 2422set dummy cc; ac_word=$2 2423{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2425if test "${ac_cv_prog_CC+set}" = set; then 2426 echo $ECHO_N "(cached) $ECHO_C" >&6 2427else 2428 if test -n "$CC"; then 2429 ac_cv_prog_CC="$CC" # Let the user override the test. 2430else 2431 ac_prog_rejected=no 2432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2433for as_dir in $PATH 2434do 2435 IFS=$as_save_IFS 2436 test -z "$as_dir" && as_dir=. 2437 for ac_exec_ext in '' $ac_executable_extensions; do 2438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2439 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2440 ac_prog_rejected=yes 2441 continue 2442 fi 2443 ac_cv_prog_CC="cc" 2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2445 break 2 2446 fi 2447done 2448done 2449IFS=$as_save_IFS 2450 2451if test $ac_prog_rejected = yes; then 2452 # We found a bogon in the path, so make sure we never use it. 2453 set dummy $ac_cv_prog_CC 2454 shift 2455 if test $# != 0; then 2456 # We chose a different compiler from the bogus one. 2457 # However, it has the same basename, so the bogon will be chosen 2458 # first if we set CC to just the basename; use the full file name. 2459 shift 2460 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2461 fi 2462fi 2463fi 2464fi 2465CC=$ac_cv_prog_CC 2466if test -n "$CC"; then 2467 { echo "$as_me:$LINENO: result: $CC" >&5 2468echo "${ECHO_T}$CC" >&6; } 2469else 2470 { echo "$as_me:$LINENO: result: no" >&5 2471echo "${ECHO_T}no" >&6; } 2472fi 2473 2474 2475fi 2476if test -z "$CC"; then 2477 if test -n "$ac_tool_prefix"; then 2478 for ac_prog in cl.exe 2479 do 2480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2481set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2482{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2484if test "${ac_cv_prog_CC+set}" = set; then 2485 echo $ECHO_N "(cached) $ECHO_C" >&6 2486else 2487 if test -n "$CC"; then 2488 ac_cv_prog_CC="$CC" # Let the user override the test. 2489else 2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2491for as_dir in $PATH 2492do 2493 IFS=$as_save_IFS 2494 test -z "$as_dir" && as_dir=. 2495 for ac_exec_ext in '' $ac_executable_extensions; do 2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2497 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2499 break 2 2500 fi 2501done 2502done 2503IFS=$as_save_IFS 2504 2505fi 2506fi 2507CC=$ac_cv_prog_CC 2508if test -n "$CC"; then 2509 { echo "$as_me:$LINENO: result: $CC" >&5 2510echo "${ECHO_T}$CC" >&6; } 2511else 2512 { echo "$as_me:$LINENO: result: no" >&5 2513echo "${ECHO_T}no" >&6; } 2514fi 2515 2516 2517 test -n "$CC" && break 2518 done 2519fi 2520if test -z "$CC"; then 2521 ac_ct_CC=$CC 2522 for ac_prog in cl.exe 2523do 2524 # Extract the first word of "$ac_prog", so it can be a program name with args. 2525set dummy $ac_prog; ac_word=$2 2526{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2528if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2529 echo $ECHO_N "(cached) $ECHO_C" >&6 2530else 2531 if test -n "$ac_ct_CC"; then 2532 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2533else 2534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2535for as_dir in $PATH 2536do 2537 IFS=$as_save_IFS 2538 test -z "$as_dir" && as_dir=. 2539 for ac_exec_ext in '' $ac_executable_extensions; do 2540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2541 ac_cv_prog_ac_ct_CC="$ac_prog" 2542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2543 break 2 2544 fi 2545done 2546done 2547IFS=$as_save_IFS 2548 2549fi 2550fi 2551ac_ct_CC=$ac_cv_prog_ac_ct_CC 2552if test -n "$ac_ct_CC"; then 2553 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2554echo "${ECHO_T}$ac_ct_CC" >&6; } 2555else 2556 { echo "$as_me:$LINENO: result: no" >&5 2557echo "${ECHO_T}no" >&6; } 2558fi 2559 2560 2561 test -n "$ac_ct_CC" && break 2562done 2563 2564 if test "x$ac_ct_CC" = x; then 2565 CC="" 2566 else 2567 case $cross_compiling:$ac_tool_warned in 2568yes:) 2569{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2570whose name does not start with the host triplet. If you think this 2571configuration is useful to you, please write to autoconf@gnu.org." >&5 2572echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2573whose name does not start with the host triplet. If you think this 2574configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2575ac_tool_warned=yes ;; 2576esac 2577 CC=$ac_ct_CC 2578 fi 2579fi 2580 2581fi 2582 2583 2584test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2585See \`config.log' for more details." >&5 2586echo "$as_me: error: no acceptable C compiler found in \$PATH 2587See \`config.log' for more details." >&2;} 2588 { (exit 1); exit 1; }; } 2589 2590# Provide some information about the compiler. 2591echo "$as_me:$LINENO: checking for C compiler version" >&5 2592ac_compiler=`set X $ac_compile; echo $2` 2593{ (ac_try="$ac_compiler --version >&5" 2594case "(($ac_try" in 2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2596 *) ac_try_echo=$ac_try;; 2597esac 2598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2599 (eval "$ac_compiler --version >&5") 2>&5 2600 ac_status=$? 2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2602 (exit $ac_status); } 2603{ (ac_try="$ac_compiler -v >&5" 2604case "(($ac_try" in 2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2606 *) ac_try_echo=$ac_try;; 2607esac 2608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2609 (eval "$ac_compiler -v >&5") 2>&5 2610 ac_status=$? 2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2612 (exit $ac_status); } 2613{ (ac_try="$ac_compiler -V >&5" 2614case "(($ac_try" in 2615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2616 *) ac_try_echo=$ac_try;; 2617esac 2618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2619 (eval "$ac_compiler -V >&5") 2>&5 2620 ac_status=$? 2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2622 (exit $ac_status); } 2623 2624cat >conftest.$ac_ext <<_ACEOF 2625/* confdefs.h. */ 2626_ACEOF 2627cat confdefs.h >>conftest.$ac_ext 2628cat >>conftest.$ac_ext <<_ACEOF 2629/* end confdefs.h. */ 2630 2631int 2632main () 2633{ 2634 2635 ; 2636 return 0; 2637} 2638_ACEOF 2639ac_clean_files_save=$ac_clean_files 2640ac_clean_files="$ac_clean_files a.out a.exe b.out" 2641# Try to create an executable without -o first, disregard a.out. 2642# It will help us diagnose broken compilers, and finding out an intuition 2643# of exeext. 2644{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2645echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2646ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2647# 2648# List of possible output files, starting from the most likely. 2649# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2650# only as a last resort. b.out is created by i960 compilers. 2651ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2652# 2653# The IRIX 6 linker writes into existing files which may not be 2654# executable, retaining their permissions. Remove them first so a 2655# subsequent execution test works. 2656ac_rmfiles= 2657for ac_file in $ac_files 2658do 2659 case $ac_file in 2660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2661 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2662 esac 2663done 2664rm -f $ac_rmfiles 2665 2666if { (ac_try="$ac_link_default" 2667case "(($ac_try" in 2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2669 *) ac_try_echo=$ac_try;; 2670esac 2671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2672 (eval "$ac_link_default") 2>&5 2673 ac_status=$? 2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2675 (exit $ac_status); }; then 2676 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2677# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2678# in a Makefile. We should not override ac_cv_exeext if it was cached, 2679# so that the user can short-circuit this test for compilers unknown to 2680# Autoconf. 2681for ac_file in $ac_files 2682do 2683 test -f "$ac_file" || continue 2684 case $ac_file in 2685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2686 ;; 2687 [ab].out ) 2688 # We found the default executable, but exeext='' is most 2689 # certainly right. 2690 break;; 2691 *.* ) 2692 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2693 then :; else 2694 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2695 fi 2696 # We set ac_cv_exeext here because the later test for it is not 2697 # safe: cross compilers may not add the suffix if given an `-o' 2698 # argument, so we may need to know it at that point already. 2699 # Even if this section looks crufty: it has the advantage of 2700 # actually working. 2701 break;; 2702 * ) 2703 break;; 2704 esac 2705done 2706test "$ac_cv_exeext" = no && ac_cv_exeext= 2707 2708else 2709 echo "$as_me: failed program was:" >&5 2710sed 's/^/| /' conftest.$ac_ext >&5 2711 2712{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2713See \`config.log' for more details." >&5 2714echo "$as_me: error: C compiler cannot create executables 2715See \`config.log' for more details." >&2;} 2716 { (exit 77); exit 77; }; } 2717fi 2718 2719ac_exeext=$ac_cv_exeext 2720{ echo "$as_me:$LINENO: result: $ac_file" >&5 2721echo "${ECHO_T}$ac_file" >&6; } 2722 2723# Check that the compiler produces executables we can run. If not, either 2724# the compiler is broken, or we cross compile. 2725{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2726echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2727# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2728# If not cross compiling, check that we can run a simple program. 2729if test "$cross_compiling" != yes; then 2730 if { ac_try='./$ac_file' 2731 { (case "(($ac_try" in 2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2733 *) ac_try_echo=$ac_try;; 2734esac 2735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2736 (eval "$ac_try") 2>&5 2737 ac_status=$? 2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2739 (exit $ac_status); }; }; then 2740 cross_compiling=no 2741 else 2742 if test "$cross_compiling" = maybe; then 2743 cross_compiling=yes 2744 else 2745 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2746If you meant to cross compile, use \`--host'. 2747See \`config.log' for more details." >&5 2748echo "$as_me: error: cannot run C compiled programs. 2749If you meant to cross compile, use \`--host'. 2750See \`config.log' for more details." >&2;} 2751 { (exit 1); exit 1; }; } 2752 fi 2753 fi 2754fi 2755{ echo "$as_me:$LINENO: result: yes" >&5 2756echo "${ECHO_T}yes" >&6; } 2757 2758rm -f a.out a.exe conftest$ac_cv_exeext b.out 2759ac_clean_files=$ac_clean_files_save 2760# Check that the compiler produces executables we can run. If not, either 2761# the compiler is broken, or we cross compile. 2762{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2763echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2764{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2765echo "${ECHO_T}$cross_compiling" >&6; } 2766 2767{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2768echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2769if { (ac_try="$ac_link" 2770case "(($ac_try" in 2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2772 *) ac_try_echo=$ac_try;; 2773esac 2774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2775 (eval "$ac_link") 2>&5 2776 ac_status=$? 2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2778 (exit $ac_status); }; then 2779 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2780# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2781# work properly (i.e., refer to `conftest.exe'), while it won't with 2782# `rm'. 2783for ac_file in conftest.exe conftest conftest.*; do 2784 test -f "$ac_file" || continue 2785 case $ac_file in 2786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2787 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2788 break;; 2789 * ) break;; 2790 esac 2791done 2792else 2793 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2794See \`config.log' for more details." >&5 2795echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2796See \`config.log' for more details." >&2;} 2797 { (exit 1); exit 1; }; } 2798fi 2799 2800rm -f conftest$ac_cv_exeext 2801{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2802echo "${ECHO_T}$ac_cv_exeext" >&6; } 2803 2804rm -f conftest.$ac_ext 2805EXEEXT=$ac_cv_exeext 2806ac_exeext=$EXEEXT 2807{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2808echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2809if test "${ac_cv_objext+set}" = set; then 2810 echo $ECHO_N "(cached) $ECHO_C" >&6 2811else 2812 cat >conftest.$ac_ext <<_ACEOF 2813/* confdefs.h. */ 2814_ACEOF 2815cat confdefs.h >>conftest.$ac_ext 2816cat >>conftest.$ac_ext <<_ACEOF 2817/* end confdefs.h. */ 2818 2819int 2820main () 2821{ 2822 2823 ; 2824 return 0; 2825} 2826_ACEOF 2827rm -f conftest.o conftest.obj 2828if { (ac_try="$ac_compile" 2829case "(($ac_try" in 2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2831 *) ac_try_echo=$ac_try;; 2832esac 2833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2834 (eval "$ac_compile") 2>&5 2835 ac_status=$? 2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2837 (exit $ac_status); }; then 2838 for ac_file in conftest.o conftest.obj conftest.*; do 2839 test -f "$ac_file" || continue; 2840 case $ac_file in 2841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2842 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2843 break;; 2844 esac 2845done 2846else 2847 echo "$as_me: failed program was:" >&5 2848sed 's/^/| /' conftest.$ac_ext >&5 2849 2850{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2851See \`config.log' for more details." >&5 2852echo "$as_me: error: cannot compute suffix of object files: cannot compile 2853See \`config.log' for more details." >&2;} 2854 { (exit 1); exit 1; }; } 2855fi 2856 2857rm -f conftest.$ac_cv_objext conftest.$ac_ext 2858fi 2859{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2860echo "${ECHO_T}$ac_cv_objext" >&6; } 2861OBJEXT=$ac_cv_objext 2862ac_objext=$OBJEXT 2863{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2864echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2865if test "${ac_cv_c_compiler_gnu+set}" = set; then 2866 echo $ECHO_N "(cached) $ECHO_C" >&6 2867else 2868 cat >conftest.$ac_ext <<_ACEOF 2869/* confdefs.h. */ 2870_ACEOF 2871cat confdefs.h >>conftest.$ac_ext 2872cat >>conftest.$ac_ext <<_ACEOF 2873/* end confdefs.h. */ 2874 2875int 2876main () 2877{ 2878#ifndef __GNUC__ 2879 choke me 2880#endif 2881 2882 ; 2883 return 0; 2884} 2885_ACEOF 2886rm -f conftest.$ac_objext 2887if { (ac_try="$ac_compile" 2888case "(($ac_try" in 2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2890 *) ac_try_echo=$ac_try;; 2891esac 2892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2893 (eval "$ac_compile") 2>conftest.er1 2894 ac_status=$? 2895 grep -v '^ *+' conftest.er1 >conftest.err 2896 rm -f conftest.er1 2897 cat conftest.err >&5 2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2899 (exit $ac_status); } && 2900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2901 { (case "(($ac_try" in 2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2903 *) ac_try_echo=$ac_try;; 2904esac 2905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2906 (eval "$ac_try") 2>&5 2907 ac_status=$? 2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2909 (exit $ac_status); }; } && 2910 { ac_try='test -s conftest.$ac_objext' 2911 { (case "(($ac_try" in 2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2913 *) ac_try_echo=$ac_try;; 2914esac 2915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2916 (eval "$ac_try") 2>&5 2917 ac_status=$? 2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2919 (exit $ac_status); }; }; then 2920 ac_compiler_gnu=yes 2921else 2922 echo "$as_me: failed program was:" >&5 2923sed 's/^/| /' conftest.$ac_ext >&5 2924 2925 ac_compiler_gnu=no 2926fi 2927 2928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2929ac_cv_c_compiler_gnu=$ac_compiler_gnu 2930 2931fi 2932{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2933echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2934GCC=`test $ac_compiler_gnu = yes && echo yes` 2935ac_test_CFLAGS=${CFLAGS+set} 2936ac_save_CFLAGS=$CFLAGS 2937{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2938echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2939if test "${ac_cv_prog_cc_g+set}" = set; then 2940 echo $ECHO_N "(cached) $ECHO_C" >&6 2941else 2942 ac_save_c_werror_flag=$ac_c_werror_flag 2943 ac_c_werror_flag=yes 2944 ac_cv_prog_cc_g=no 2945 CFLAGS="-g" 2946 cat >conftest.$ac_ext <<_ACEOF 2947/* confdefs.h. */ 2948_ACEOF 2949cat confdefs.h >>conftest.$ac_ext 2950cat >>conftest.$ac_ext <<_ACEOF 2951/* end confdefs.h. */ 2952 2953int 2954main () 2955{ 2956 2957 ; 2958 return 0; 2959} 2960_ACEOF 2961rm -f conftest.$ac_objext 2962if { (ac_try="$ac_compile" 2963case "(($ac_try" in 2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2965 *) ac_try_echo=$ac_try;; 2966esac 2967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2968 (eval "$ac_compile") 2>conftest.er1 2969 ac_status=$? 2970 grep -v '^ *+' conftest.er1 >conftest.err 2971 rm -f conftest.er1 2972 cat conftest.err >&5 2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2974 (exit $ac_status); } && 2975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2976 { (case "(($ac_try" in 2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2978 *) ac_try_echo=$ac_try;; 2979esac 2980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2981 (eval "$ac_try") 2>&5 2982 ac_status=$? 2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2984 (exit $ac_status); }; } && 2985 { ac_try='test -s conftest.$ac_objext' 2986 { (case "(($ac_try" in 2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2988 *) ac_try_echo=$ac_try;; 2989esac 2990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2991 (eval "$ac_try") 2>&5 2992 ac_status=$? 2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2994 (exit $ac_status); }; }; then 2995 ac_cv_prog_cc_g=yes 2996else 2997 echo "$as_me: failed program was:" >&5 2998sed 's/^/| /' conftest.$ac_ext >&5 2999 3000 CFLAGS="" 3001 cat >conftest.$ac_ext <<_ACEOF 3002/* confdefs.h. */ 3003_ACEOF 3004cat confdefs.h >>conftest.$ac_ext 3005cat >>conftest.$ac_ext <<_ACEOF 3006/* end confdefs.h. */ 3007 3008int 3009main () 3010{ 3011 3012 ; 3013 return 0; 3014} 3015_ACEOF 3016rm -f conftest.$ac_objext 3017if { (ac_try="$ac_compile" 3018case "(($ac_try" in 3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3020 *) ac_try_echo=$ac_try;; 3021esac 3022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3023 (eval "$ac_compile") 2>conftest.er1 3024 ac_status=$? 3025 grep -v '^ *+' conftest.er1 >conftest.err 3026 rm -f conftest.er1 3027 cat conftest.err >&5 3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3029 (exit $ac_status); } && 3030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3031 { (case "(($ac_try" in 3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3033 *) ac_try_echo=$ac_try;; 3034esac 3035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3036 (eval "$ac_try") 2>&5 3037 ac_status=$? 3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3039 (exit $ac_status); }; } && 3040 { ac_try='test -s conftest.$ac_objext' 3041 { (case "(($ac_try" in 3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3043 *) ac_try_echo=$ac_try;; 3044esac 3045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3046 (eval "$ac_try") 2>&5 3047 ac_status=$? 3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3049 (exit $ac_status); }; }; then 3050 : 3051else 3052 echo "$as_me: failed program was:" >&5 3053sed 's/^/| /' conftest.$ac_ext >&5 3054 3055 ac_c_werror_flag=$ac_save_c_werror_flag 3056 CFLAGS="-g" 3057 cat >conftest.$ac_ext <<_ACEOF 3058/* confdefs.h. */ 3059_ACEOF 3060cat confdefs.h >>conftest.$ac_ext 3061cat >>conftest.$ac_ext <<_ACEOF 3062/* end confdefs.h. */ 3063 3064int 3065main () 3066{ 3067 3068 ; 3069 return 0; 3070} 3071_ACEOF 3072rm -f conftest.$ac_objext 3073if { (ac_try="$ac_compile" 3074case "(($ac_try" in 3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3076 *) ac_try_echo=$ac_try;; 3077esac 3078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3079 (eval "$ac_compile") 2>conftest.er1 3080 ac_status=$? 3081 grep -v '^ *+' conftest.er1 >conftest.err 3082 rm -f conftest.er1 3083 cat conftest.err >&5 3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3085 (exit $ac_status); } && 3086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3087 { (case "(($ac_try" in 3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3089 *) ac_try_echo=$ac_try;; 3090esac 3091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3092 (eval "$ac_try") 2>&5 3093 ac_status=$? 3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3095 (exit $ac_status); }; } && 3096 { ac_try='test -s conftest.$ac_objext' 3097 { (case "(($ac_try" in 3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3099 *) ac_try_echo=$ac_try;; 3100esac 3101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3102 (eval "$ac_try") 2>&5 3103 ac_status=$? 3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3105 (exit $ac_status); }; }; then 3106 ac_cv_prog_cc_g=yes 3107else 3108 echo "$as_me: failed program was:" >&5 3109sed 's/^/| /' conftest.$ac_ext >&5 3110 3111 3112fi 3113 3114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3115fi 3116 3117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3118fi 3119 3120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3121 ac_c_werror_flag=$ac_save_c_werror_flag 3122fi 3123{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3124echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3125if test "$ac_test_CFLAGS" = set; then 3126 CFLAGS=$ac_save_CFLAGS 3127elif test $ac_cv_prog_cc_g = yes; then 3128 if test "$GCC" = yes; then 3129 CFLAGS="-g -O2" 3130 else 3131 CFLAGS="-g" 3132 fi 3133else 3134 if test "$GCC" = yes; then 3135 CFLAGS="-O2" 3136 else 3137 CFLAGS= 3138 fi 3139fi 3140{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3141echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3142if test "${ac_cv_prog_cc_c89+set}" = set; then 3143 echo $ECHO_N "(cached) $ECHO_C" >&6 3144else 3145 ac_cv_prog_cc_c89=no 3146ac_save_CC=$CC 3147cat >conftest.$ac_ext <<_ACEOF 3148/* confdefs.h. */ 3149_ACEOF 3150cat confdefs.h >>conftest.$ac_ext 3151cat >>conftest.$ac_ext <<_ACEOF 3152/* end confdefs.h. */ 3153#include <stdarg.h> 3154#include <stdio.h> 3155#include <sys/types.h> 3156#include <sys/stat.h> 3157/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3158struct buf { int x; }; 3159FILE * (*rcsopen) (struct buf *, struct stat *, int); 3160static char *e (p, i) 3161 char **p; 3162 int i; 3163{ 3164 return p[i]; 3165} 3166static char *f (char * (*g) (char **, int), char **p, ...) 3167{ 3168 char *s; 3169 va_list v; 3170 va_start (v,p); 3171 s = g (p, va_arg (v,int)); 3172 va_end (v); 3173 return s; 3174} 3175 3176/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3177 function prototypes and stuff, but not '\xHH' hex character constants. 3178 These don't provoke an error unfortunately, instead are silently treated 3179 as 'x'. The following induces an error, until -std is added to get 3180 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3181 array size at least. It's necessary to write '\x00'==0 to get something 3182 that's true only with -std. */ 3183int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3184 3185/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3186 inside strings and character constants. */ 3187#define FOO(x) 'x' 3188int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3189 3190int test (int i, double x); 3191struct s1 {int (*f) (int a);}; 3192struct s2 {int (*f) (double a);}; 3193int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3194int argc; 3195char **argv; 3196int 3197main () 3198{ 3199return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3200 ; 3201 return 0; 3202} 3203_ACEOF 3204for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3205 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3206do 3207 CC="$ac_save_CC $ac_arg" 3208 rm -f conftest.$ac_objext 3209if { (ac_try="$ac_compile" 3210case "(($ac_try" in 3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3212 *) ac_try_echo=$ac_try;; 3213esac 3214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3215 (eval "$ac_compile") 2>conftest.er1 3216 ac_status=$? 3217 grep -v '^ *+' conftest.er1 >conftest.err 3218 rm -f conftest.er1 3219 cat conftest.err >&5 3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3221 (exit $ac_status); } && 3222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3223 { (case "(($ac_try" in 3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3225 *) ac_try_echo=$ac_try;; 3226esac 3227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3228 (eval "$ac_try") 2>&5 3229 ac_status=$? 3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3231 (exit $ac_status); }; } && 3232 { ac_try='test -s conftest.$ac_objext' 3233 { (case "(($ac_try" in 3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3235 *) ac_try_echo=$ac_try;; 3236esac 3237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3238 (eval "$ac_try") 2>&5 3239 ac_status=$? 3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3241 (exit $ac_status); }; }; then 3242 ac_cv_prog_cc_c89=$ac_arg 3243else 3244 echo "$as_me: failed program was:" >&5 3245sed 's/^/| /' conftest.$ac_ext >&5 3246 3247 3248fi 3249 3250rm -f core conftest.err conftest.$ac_objext 3251 test "x$ac_cv_prog_cc_c89" != "xno" && break 3252done 3253rm -f conftest.$ac_ext 3254CC=$ac_save_CC 3255 3256fi 3257# AC_CACHE_VAL 3258case "x$ac_cv_prog_cc_c89" in 3259 x) 3260 { echo "$as_me:$LINENO: result: none needed" >&5 3261echo "${ECHO_T}none needed" >&6; } ;; 3262 xno) 3263 { echo "$as_me:$LINENO: result: unsupported" >&5 3264echo "${ECHO_T}unsupported" >&6; } ;; 3265 *) 3266 CC="$CC $ac_cv_prog_cc_c89" 3267 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3268echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3269esac 3270 3271 3272ac_ext=c 3273ac_cpp='$CPP $CPPFLAGS' 3274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3276ac_compiler_gnu=$ac_cv_c_compiler_gnu 3277DEPDIR="${am__leading_dot}deps" 3278 3279ac_config_commands="$ac_config_commands depfiles" 3280 3281 3282am_make=${MAKE-make} 3283cat > confinc << 'END' 3284am__doit: 3285 @echo done 3286.PHONY: am__doit 3287END 3288# If we don't find an include directive, just comment out the code. 3289{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3290echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3291am__include="#" 3292am__quote= 3293_am_result=none 3294# First try GNU make style include. 3295echo "include confinc" > confmf 3296# We grep out `Entering directory' and `Leaving directory' 3297# messages which can occur if `w' ends up in MAKEFLAGS. 3298# In particular we don't look at `^make:' because GNU make might 3299# be invoked under some other name (usually "gmake"), in which 3300# case it prints its new name instead of `make'. 3301if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3302 am__include=include 3303 am__quote= 3304 _am_result=GNU 3305fi 3306# Now try BSD make style include. 3307if test "$am__include" = "#"; then 3308 echo '.include "confinc"' > confmf 3309 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3310 am__include=.include 3311 am__quote="\"" 3312 _am_result=BSD 3313 fi 3314fi 3315 3316 3317{ echo "$as_me:$LINENO: result: $_am_result" >&5 3318echo "${ECHO_T}$_am_result" >&6; } 3319rm -f confinc confmf 3320 3321# Check whether --enable-dependency-tracking was given. 3322if test "${enable_dependency_tracking+set}" = set; then 3323 enableval=$enable_dependency_tracking; 3324fi 3325 3326if test "x$enable_dependency_tracking" != xno; then 3327 am_depcomp="$ac_aux_dir/depcomp" 3328 AMDEPBACKSLASH='\' 3329fi 3330 3331 3332if test "x$enable_dependency_tracking" != xno; then 3333 AMDEP_TRUE= 3334 AMDEP_FALSE='#' 3335else 3336 AMDEP_TRUE='#' 3337 AMDEP_FALSE= 3338fi 3339 3340 3341 3342 3343depcc="$CC" am_compiler_list= 3344 3345{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3346echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3347if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3348 echo $ECHO_N "(cached) $ECHO_C" >&6 3349else 3350 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3351 # We make a subdir and do the tests there. Otherwise we can end up 3352 # making bogus files that we don't know about and never remove. For 3353 # instance it was reported that on HP-UX the gcc test will end up 3354 # making a dummy file named `D' -- because `-MD' means `put the output 3355 # in D'. 3356 mkdir conftest.dir 3357 # Copy depcomp to subdir because otherwise we won't find it if we're 3358 # using a relative directory. 3359 cp "$am_depcomp" conftest.dir 3360 cd conftest.dir 3361 # We will build objects and dependencies in a subdirectory because 3362 # it helps to detect inapplicable dependency modes. For instance 3363 # both Tru64's cc and ICC support -MD to output dependencies as a 3364 # side effect of compilation, but ICC will put the dependencies in 3365 # the current directory while Tru64 will put them in the object 3366 # directory. 3367 mkdir sub 3368 3369 am_cv_CC_dependencies_compiler_type=none 3370 if test "$am_compiler_list" = ""; then 3371 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3372 fi 3373 for depmode in $am_compiler_list; do 3374 # Setup a source with many dependencies, because some compilers 3375 # like to wrap large dependency lists on column 80 (with \), and 3376 # we should not choose a depcomp mode which is confused by this. 3377 # 3378 # We need to recreate these files for each test, as the compiler may 3379 # overwrite some of them when testing with obscure command lines. 3380 # This happens at least with the AIX C compiler. 3381 : > sub/conftest.c 3382 for i in 1 2 3 4 5 6; do 3383 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3384 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3385 # Solaris 8's {/usr,}/bin/sh. 3386 touch sub/conftst$i.h 3387 done 3388 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3389 3390 case $depmode in 3391 nosideeffect) 3392 # after this tag, mechanisms are not by side-effect, so they'll 3393 # only be used when explicitly requested 3394 if test "x$enable_dependency_tracking" = xyes; then 3395 continue 3396 else 3397 break 3398 fi 3399 ;; 3400 none) break ;; 3401 esac 3402 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3403 # mode. It turns out that the SunPro C++ compiler does not properly 3404 # handle `-M -o', and we need to detect this. 3405 if depmode=$depmode \ 3406 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3407 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3408 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3409 >/dev/null 2>conftest.err && 3410 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3411 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3412 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3413 # icc doesn't choke on unknown options, it will just issue warnings 3414 # or remarks (even with -Werror). So we grep stderr for any message 3415 # that says an option was ignored or not supported. 3416 # When given -MP, icc 7.0 and 7.1 complain thusly: 3417 # icc: Command line warning: ignoring option '-M'; no argument required 3418 # The diagnosis changed in icc 8.0: 3419 # icc: Command line remark: option '-MP' not supported 3420 if (grep 'ignoring option' conftest.err || 3421 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3422 am_cv_CC_dependencies_compiler_type=$depmode 3423 break 3424 fi 3425 fi 3426 done 3427 3428 cd .. 3429 rm -rf conftest.dir 3430else 3431 am_cv_CC_dependencies_compiler_type=none 3432fi 3433 3434fi 3435{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3436echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3437CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3438 3439 3440 3441if 3442 test "x$enable_dependency_tracking" != xno \ 3443 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3444 am__fastdepCC_TRUE= 3445 am__fastdepCC_FALSE='#' 3446else 3447 am__fastdepCC_TRUE='#' 3448 am__fastdepCC_FALSE= 3449fi 3450 3451 3452 3453if test "x$enable_gd" != "xno" ; then 3454 3455 3456cat >>confdefs.h <<\_ACEOF 3457#define ENABLE_GD 1 3458_ACEOF 3459 3460 for ac_prog in gdlib-config 3461do 3462 # Extract the first word of "$ac_prog", so it can be a program name with args. 3463set dummy $ac_prog; ac_word=$2 3464{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3466if test "${ac_cv_path_gdlib_config+set}" = set; then 3467 echo $ECHO_N "(cached) $ECHO_C" >&6 3468else 3469 case $gdlib_config in 3470 [\\/]* | ?:[\\/]*) 3471 ac_cv_path_gdlib_config="$gdlib_config" # Let the user override the test with a path. 3472 ;; 3473 *) 3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3475for as_dir in $gdlib_config_path 3476do 3477 IFS=$as_save_IFS 3478 test -z "$as_dir" && as_dir=. 3479 for ac_exec_ext in '' $ac_executable_extensions; do 3480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3481 ac_cv_path_gdlib_config="$as_dir/$ac_word$ac_exec_ext" 3482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3483 break 2 3484 fi 3485done 3486done 3487IFS=$as_save_IFS 3488 3489 ;; 3490esac 3491fi 3492gdlib_config=$ac_cv_path_gdlib_config 3493if test -n "$gdlib_config"; then 3494 { echo "$as_me:$LINENO: result: $gdlib_config" >&5 3495echo "${ECHO_T}$gdlib_config" >&6; } 3496else 3497 { echo "$as_me:$LINENO: result: no" >&5 3498echo "${ECHO_T}no" >&6; } 3499fi 3500 3501 3502 test -n "$gdlib_config" && break 3503done 3504test -n "$gdlib_config" || gdlib_config="no" 3505 3506 3507 if test "x$gdlib_config" != "xno" ; then 3508 CPPFLAGS="$CPPFLAGS `$gdlib_config --cflags`" 3509 LDFLAGS="$LDFLAGS `$gdlib_config --ldflags` `$gdlib_config --libs`" 3510 else 3511 { { echo "$as_me:$LINENO: error: could not find gdlib-config; use --with-gdlib-config-path or try using --enable-gd" >&5 3512echo "$as_me: error: could not find gdlib-config; use --with-gdlib-config-path or try using --enable-gd" >&2;} 3513 { (exit 1); exit 1; }; } 3514 fi 3515fi 3516 3517# Checks for libraries. 3518if test "$enable_cairo" = "yes" && test "$enable_gd" = "yes" ; then 3519 { { echo "$as_me:$LINENO: error: you can only use _either_ of --enable-gd and --enable-cairo, not both." >&5 3520echo "$as_me: error: you can only use _either_ of --enable-gd and --enable-cairo, not both." >&2;} 3521 { (exit 1); exit 1; }; } 3522fi 3523 3524if test "x$enable_cairo" != "xno" ; then 3525 3526 3527{ echo "$as_me:$LINENO: checking for cairo_create in -lcairo" >&5 3528echo $ECHO_N "checking for cairo_create in -lcairo... $ECHO_C" >&6; } 3529if test "${ac_cv_lib_cairo_cairo_create+set}" = set; then 3530 echo $ECHO_N "(cached) $ECHO_C" >&6 3531else 3532 ac_check_lib_save_LIBS=$LIBS 3533LIBS="-lcairo $LIBS" 3534cat >conftest.$ac_ext <<_ACEOF 3535/* confdefs.h. */ 3536_ACEOF 3537cat confdefs.h >>conftest.$ac_ext 3538cat >>conftest.$ac_ext <<_ACEOF 3539/* end confdefs.h. */ 3540 3541/* Override any GCC internal prototype to avoid an error. 3542 Use char because int might match the return type of a GCC 3543 builtin and then its argument prototype would still apply. */ 3544#ifdef __cplusplus 3545extern "C" 3546#endif 3547char cairo_create (); 3548int 3549main () 3550{ 3551return cairo_create (); 3552 ; 3553 return 0; 3554} 3555_ACEOF 3556rm -f conftest.$ac_objext conftest$ac_exeext 3557if { (ac_try="$ac_link" 3558case "(($ac_try" in 3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3560 *) ac_try_echo=$ac_try;; 3561esac 3562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3563 (eval "$ac_link") 2>conftest.er1 3564 ac_status=$? 3565 grep -v '^ *+' conftest.er1 >conftest.err 3566 rm -f conftest.er1 3567 cat conftest.err >&5 3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3569 (exit $ac_status); } && 3570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3571 { (case "(($ac_try" in 3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3573 *) ac_try_echo=$ac_try;; 3574esac 3575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3576 (eval "$ac_try") 2>&5 3577 ac_status=$? 3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3579 (exit $ac_status); }; } && 3580 { ac_try='test -s conftest$ac_exeext' 3581 { (case "(($ac_try" in 3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3583 *) ac_try_echo=$ac_try;; 3584esac 3585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3586 (eval "$ac_try") 2>&5 3587 ac_status=$? 3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3589 (exit $ac_status); }; }; then 3590 ac_cv_lib_cairo_cairo_create=yes 3591else 3592 echo "$as_me: failed program was:" >&5 3593sed 's/^/| /' conftest.$ac_ext >&5 3594 3595 ac_cv_lib_cairo_cairo_create=no 3596fi 3597 3598rm -f core conftest.err conftest.$ac_objext \ 3599 conftest$ac_exeext conftest.$ac_ext 3600LIBS=$ac_check_lib_save_LIBS 3601fi 3602{ echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_create" >&5 3603echo "${ECHO_T}$ac_cv_lib_cairo_cairo_create" >&6; } 3604if test $ac_cv_lib_cairo_cairo_create = yes; then 3605 cat >>confdefs.h <<_ACEOF 3606#define HAVE_LIBCAIRO 1 3607_ACEOF 3608 3609 LIBS="-lcairo $LIBS" 3610 3611fi 3612 3613 3614 if test "x$ac_cv_lib_cairo_cairo_create" != "xyes" ; then 3615 { { echo "$as_me:$LINENO: error: you need the cairo graphics library to compile a2png. use --with-cairo-prefix or see http://www.cairographics.org" >&5 3616echo "$as_me: error: you need the cairo graphics library to compile a2png. use --with-cairo-prefix or see http://www.cairographics.org" >&2;} 3617 { (exit 1); exit 1; }; } 3618 fi 3619fi 3620 3621if test "x$enable_gd" != "xno" ; then 3622 3623{ echo "$as_me:$LINENO: checking for gdImageCreate in -lgd" >&5 3624echo $ECHO_N "checking for gdImageCreate in -lgd... $ECHO_C" >&6; } 3625if test "${ac_cv_lib_gd_gdImageCreate+set}" = set; then 3626 echo $ECHO_N "(cached) $ECHO_C" >&6 3627else 3628 ac_check_lib_save_LIBS=$LIBS 3629LIBS="-lgd $LIBS" 3630cat >conftest.$ac_ext <<_ACEOF 3631/* confdefs.h. */ 3632_ACEOF 3633cat confdefs.h >>conftest.$ac_ext 3634cat >>conftest.$ac_ext <<_ACEOF 3635/* end confdefs.h. */ 3636 3637/* Override any GCC internal prototype to avoid an error. 3638 Use char because int might match the return type of a GCC 3639 builtin and then its argument prototype would still apply. */ 3640#ifdef __cplusplus 3641extern "C" 3642#endif 3643char gdImageCreate (); 3644int 3645main () 3646{ 3647return gdImageCreate (); 3648 ; 3649 return 0; 3650} 3651_ACEOF 3652rm -f conftest.$ac_objext conftest$ac_exeext 3653if { (ac_try="$ac_link" 3654case "(($ac_try" in 3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3656 *) ac_try_echo=$ac_try;; 3657esac 3658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3659 (eval "$ac_link") 2>conftest.er1 3660 ac_status=$? 3661 grep -v '^ *+' conftest.er1 >conftest.err 3662 rm -f conftest.er1 3663 cat conftest.err >&5 3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3665 (exit $ac_status); } && 3666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3667 { (case "(($ac_try" in 3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3669 *) ac_try_echo=$ac_try;; 3670esac 3671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3672 (eval "$ac_try") 2>&5 3673 ac_status=$? 3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3675 (exit $ac_status); }; } && 3676 { ac_try='test -s conftest$ac_exeext' 3677 { (case "(($ac_try" in 3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3679 *) ac_try_echo=$ac_try;; 3680esac 3681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3682 (eval "$ac_try") 2>&5 3683 ac_status=$? 3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3685 (exit $ac_status); }; }; then 3686 ac_cv_lib_gd_gdImageCreate=yes 3687else 3688 echo "$as_me: failed program was:" >&5 3689sed 's/^/| /' conftest.$ac_ext >&5 3690 3691 ac_cv_lib_gd_gdImageCreate=no 3692fi 3693 3694rm -f core conftest.err conftest.$ac_objext \ 3695 conftest$ac_exeext conftest.$ac_ext 3696LIBS=$ac_check_lib_save_LIBS 3697fi 3698{ echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreate" >&5 3699echo "${ECHO_T}$ac_cv_lib_gd_gdImageCreate" >&6; } 3700if test $ac_cv_lib_gd_gdImageCreate = yes; then 3701 cat >>confdefs.h <<_ACEOF 3702#define HAVE_LIBGD 1 3703_ACEOF 3704 3705 LIBS="-lgd $LIBS" 3706 3707fi 3708 3709 3710 if test "x$ac_cv_lib_gd_gdImageCreate" != "xyes" ; then 3711 { { echo "$as_me:$LINENO: error: you need a working GD library to compile a2png, see http://www.boutell.com/gd/\"" >&5 3712echo "$as_me: error: you need a working GD library to compile a2png, see http://www.boutell.com/gd/\"" >&2;} 3713 { (exit 1); exit 1; }; } 3714 fi 3715fi 3716 3717# Checks for header files. 3718ac_ext=c 3719ac_cpp='$CPP $CPPFLAGS' 3720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3722ac_compiler_gnu=$ac_cv_c_compiler_gnu 3723{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3724echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3725# On Suns, sometimes $CPP names a directory. 3726if test -n "$CPP" && test -d "$CPP"; then 3727 CPP= 3728fi 3729if test -z "$CPP"; then 3730 if test "${ac_cv_prog_CPP+set}" = set; then 3731 echo $ECHO_N "(cached) $ECHO_C" >&6 3732else 3733 # Double quotes because CPP needs to be expanded 3734 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3735 do 3736 ac_preproc_ok=false 3737for ac_c_preproc_warn_flag in '' yes 3738do 3739 # Use a header file that comes with gcc, so configuring glibc 3740 # with a fresh cross-compiler works. 3741 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3742 # <limits.h> exists even on freestanding compilers. 3743 # On the NeXT, cc -E runs the code through the compiler's parser, 3744 # not just through cpp. "Syntax error" is here to catch this case. 3745 cat >conftest.$ac_ext <<_ACEOF 3746/* confdefs.h. */ 3747_ACEOF 3748cat confdefs.h >>conftest.$ac_ext 3749cat >>conftest.$ac_ext <<_ACEOF 3750/* end confdefs.h. */ 3751#ifdef __STDC__ 3752# include <limits.h> 3753#else 3754# include <assert.h> 3755#endif 3756 Syntax error 3757_ACEOF 3758if { (ac_try="$ac_cpp conftest.$ac_ext" 3759case "(($ac_try" in 3760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3761 *) ac_try_echo=$ac_try;; 3762esac 3763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3765 ac_status=$? 3766 grep -v '^ *+' conftest.er1 >conftest.err 3767 rm -f conftest.er1 3768 cat conftest.err >&5 3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3770 (exit $ac_status); } >/dev/null; then 3771 if test -s conftest.err; then 3772 ac_cpp_err=$ac_c_preproc_warn_flag 3773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3774 else 3775 ac_cpp_err= 3776 fi 3777else 3778 ac_cpp_err=yes 3779fi 3780if test -z "$ac_cpp_err"; then 3781 : 3782else 3783 echo "$as_me: failed program was:" >&5 3784sed 's/^/| /' conftest.$ac_ext >&5 3785 3786 # Broken: fails on valid input. 3787continue 3788fi 3789 3790rm -f conftest.err conftest.$ac_ext 3791 3792 # OK, works on sane cases. Now check whether nonexistent headers 3793 # can be detected and how. 3794 cat >conftest.$ac_ext <<_ACEOF 3795/* confdefs.h. */ 3796_ACEOF 3797cat confdefs.h >>conftest.$ac_ext 3798cat >>conftest.$ac_ext <<_ACEOF 3799/* end confdefs.h. */ 3800#include <ac_nonexistent.h> 3801_ACEOF 3802if { (ac_try="$ac_cpp conftest.$ac_ext" 3803case "(($ac_try" in 3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3805 *) ac_try_echo=$ac_try;; 3806esac 3807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3809 ac_status=$? 3810 grep -v '^ *+' conftest.er1 >conftest.err 3811 rm -f conftest.er1 3812 cat conftest.err >&5 3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3814 (exit $ac_status); } >/dev/null; then 3815 if test -s conftest.err; then 3816 ac_cpp_err=$ac_c_preproc_warn_flag 3817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3818 else 3819 ac_cpp_err= 3820 fi 3821else 3822 ac_cpp_err=yes 3823fi 3824if test -z "$ac_cpp_err"; then 3825 # Broken: success on invalid input. 3826continue 3827else 3828 echo "$as_me: failed program was:" >&5 3829sed 's/^/| /' conftest.$ac_ext >&5 3830 3831 # Passes both tests. 3832ac_preproc_ok=: 3833break 3834fi 3835 3836rm -f conftest.err conftest.$ac_ext 3837 3838done 3839# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3840rm -f conftest.err conftest.$ac_ext 3841if $ac_preproc_ok; then 3842 break 3843fi 3844 3845 done 3846 ac_cv_prog_CPP=$CPP 3847 3848fi 3849 CPP=$ac_cv_prog_CPP 3850else 3851 ac_cv_prog_CPP=$CPP 3852fi 3853{ echo "$as_me:$LINENO: result: $CPP" >&5 3854echo "${ECHO_T}$CPP" >&6; } 3855ac_preproc_ok=false 3856for ac_c_preproc_warn_flag in '' yes 3857do 3858 # Use a header file that comes with gcc, so configuring glibc 3859 # with a fresh cross-compiler works. 3860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3861 # <limits.h> exists even on freestanding compilers. 3862 # On the NeXT, cc -E runs the code through the compiler's parser, 3863 # not just through cpp. "Syntax error" is here to catch this case. 3864 cat >conftest.$ac_ext <<_ACEOF 3865/* confdefs.h. */ 3866_ACEOF 3867cat confdefs.h >>conftest.$ac_ext 3868cat >>conftest.$ac_ext <<_ACEOF 3869/* end confdefs.h. */ 3870#ifdef __STDC__ 3871# include <limits.h> 3872#else 3873# include <assert.h> 3874#endif 3875 Syntax error 3876_ACEOF 3877if { (ac_try="$ac_cpp conftest.$ac_ext" 3878case "(($ac_try" in 3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3880 *) ac_try_echo=$ac_try;; 3881esac 3882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3884 ac_status=$? 3885 grep -v '^ *+' conftest.er1 >conftest.err 3886 rm -f conftest.er1 3887 cat conftest.err >&5 3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3889 (exit $ac_status); } >/dev/null; then 3890 if test -s conftest.err; then 3891 ac_cpp_err=$ac_c_preproc_warn_flag 3892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3893 else 3894 ac_cpp_err= 3895 fi 3896else 3897 ac_cpp_err=yes 3898fi 3899if test -z "$ac_cpp_err"; then 3900 : 3901else 3902 echo "$as_me: failed program was:" >&5 3903sed 's/^/| /' conftest.$ac_ext >&5 3904 3905 # Broken: fails on valid input. 3906continue 3907fi 3908 3909rm -f conftest.err conftest.$ac_ext 3910 3911 # OK, works on sane cases. Now check whether nonexistent headers 3912 # can be detected and how. 3913 cat >conftest.$ac_ext <<_ACEOF 3914/* confdefs.h. */ 3915_ACEOF 3916cat confdefs.h >>conftest.$ac_ext 3917cat >>conftest.$ac_ext <<_ACEOF 3918/* end confdefs.h. */ 3919#include <ac_nonexistent.h> 3920_ACEOF 3921if { (ac_try="$ac_cpp conftest.$ac_ext" 3922case "(($ac_try" in 3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3924 *) ac_try_echo=$ac_try;; 3925esac 3926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3928 ac_status=$? 3929 grep -v '^ *+' conftest.er1 >conftest.err 3930 rm -f conftest.er1 3931 cat conftest.err >&5 3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3933 (exit $ac_status); } >/dev/null; then 3934 if test -s conftest.err; then 3935 ac_cpp_err=$ac_c_preproc_warn_flag 3936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3937 else 3938 ac_cpp_err= 3939 fi 3940else 3941 ac_cpp_err=yes 3942fi 3943if test -z "$ac_cpp_err"; then 3944 # Broken: success on invalid input. 3945continue 3946else 3947 echo "$as_me: failed program was:" >&5 3948sed 's/^/| /' conftest.$ac_ext >&5 3949 3950 # Passes both tests. 3951ac_preproc_ok=: 3952break 3953fi 3954 3955rm -f conftest.err conftest.$ac_ext 3956 3957done 3958# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3959rm -f conftest.err conftest.$ac_ext 3960if $ac_preproc_ok; then 3961 : 3962else 3963 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3964See \`config.log' for more details." >&5 3965echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3966See \`config.log' for more details." >&2;} 3967 { (exit 1); exit 1; }; } 3968fi 3969 3970ac_ext=c 3971ac_cpp='$CPP $CPPFLAGS' 3972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3974ac_compiler_gnu=$ac_cv_c_compiler_gnu 3975 3976 3977{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3978echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3979if test "${ac_cv_path_GREP+set}" = set; then 3980 echo $ECHO_N "(cached) $ECHO_C" >&6 3981else 3982 # Extract the first word of "grep ggrep" to use in msg output 3983if test -z "$GREP"; then 3984set dummy grep ggrep; ac_prog_name=$2 3985if test "${ac_cv_path_GREP+set}" = set; then 3986 echo $ECHO_N "(cached) $ECHO_C" >&6 3987else 3988 ac_path_GREP_found=false 3989# Loop through the user's path and test for each of PROGNAME-LIST 3990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3991for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3992do 3993 IFS=$as_save_IFS 3994 test -z "$as_dir" && as_dir=. 3995 for ac_prog in grep ggrep; do 3996 for ac_exec_ext in '' $ac_executable_extensions; do 3997 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3998 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3999 # Check for GNU ac_path_GREP and select it if it is found. 4000 # Check for GNU $ac_path_GREP 4001case `"$ac_path_GREP" --version 2>&1` in 4002*GNU*) 4003 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4004*) 4005 ac_count=0 4006 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4007 while : 4008 do 4009 cat "conftest.in" "conftest.in" >"conftest.tmp" 4010 mv "conftest.tmp" "conftest.in" 4011 cp "conftest.in" "conftest.nl" 4012 echo 'GREP' >> "conftest.nl" 4013 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4015 ac_count=`expr $ac_count + 1` 4016 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4017 # Best one so far, save it but keep looking for a better one 4018 ac_cv_path_GREP="$ac_path_GREP" 4019 ac_path_GREP_max=$ac_count 4020 fi 4021 # 10*(2^10) chars as input seems more than enough 4022 test $ac_count -gt 10 && break 4023 done 4024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4025esac 4026 4027 4028 $ac_path_GREP_found && break 3 4029 done 4030done 4031 4032done 4033IFS=$as_save_IFS 4034 4035 4036fi 4037 4038GREP="$ac_cv_path_GREP" 4039if test -z "$GREP"; then 4040 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4041echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4042 { (exit 1); exit 1; }; } 4043fi 4044 4045else 4046 ac_cv_path_GREP=$GREP 4047fi 4048 4049 4050fi 4051{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4052echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4053 GREP="$ac_cv_path_GREP" 4054 4055 4056{ echo "$as_me:$LINENO: checking for egrep" >&5 4057echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4058if test "${ac_cv_path_EGREP+set}" = set; then 4059 echo $ECHO_N "(cached) $ECHO_C" >&6 4060else 4061 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4062 then ac_cv_path_EGREP="$GREP -E" 4063 else 4064 # Extract the first word of "egrep" to use in msg output 4065if test -z "$EGREP"; then 4066set dummy egrep; ac_prog_name=$2 4067if test "${ac_cv_path_EGREP+set}" = set; then 4068 echo $ECHO_N "(cached) $ECHO_C" >&6 4069else 4070 ac_path_EGREP_found=false 4071# Loop through the user's path and test for each of PROGNAME-LIST 4072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4073for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4074do 4075 IFS=$as_save_IFS 4076 test -z "$as_dir" && as_dir=. 4077 for ac_prog in egrep; do 4078 for ac_exec_ext in '' $ac_executable_extensions; do 4079 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4080 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 4081 # Check for GNU ac_path_EGREP and select it if it is found. 4082 # Check for GNU $ac_path_EGREP 4083case `"$ac_path_EGREP" --version 2>&1` in 4084*GNU*) 4085 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4086*) 4087 ac_count=0 4088 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4089 while : 4090 do 4091 cat "conftest.in" "conftest.in" >"conftest.tmp" 4092 mv "conftest.tmp" "conftest.in" 4093 cp "conftest.in" "conftest.nl" 4094 echo 'EGREP' >> "conftest.nl" 4095 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4097 ac_count=`expr $ac_count + 1` 4098 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4099 # Best one so far, save it but keep looking for a better one 4100 ac_cv_path_EGREP="$ac_path_EGREP" 4101 ac_path_EGREP_max=$ac_count 4102 fi 4103 # 10*(2^10) chars as input seems more than enough 4104 test $ac_count -gt 10 && break 4105 done 4106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4107esac 4108 4109 4110 $ac_path_EGREP_found && break 3 4111 done 4112done 4113 4114done 4115IFS=$as_save_IFS 4116 4117 4118fi 4119 4120EGREP="$ac_cv_path_EGREP" 4121if test -z "$EGREP"; then 4122 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4123echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4124 { (exit 1); exit 1; }; } 4125fi 4126 4127else 4128 ac_cv_path_EGREP=$EGREP 4129fi 4130 4131 4132 fi 4133fi 4134{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4135echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4136 EGREP="$ac_cv_path_EGREP" 4137 4138 4139{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4140echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4141if test "${ac_cv_header_stdc+set}" = set; then 4142 echo $ECHO_N "(cached) $ECHO_C" >&6 4143else 4144 cat >conftest.$ac_ext <<_ACEOF 4145/* confdefs.h. */ 4146_ACEOF 4147cat confdefs.h >>conftest.$ac_ext 4148cat >>conftest.$ac_ext <<_ACEOF 4149/* end confdefs.h. */ 4150#include <stdlib.h> 4151#include <stdarg.h> 4152#include <string.h> 4153#include <float.h> 4154 4155int 4156main () 4157{ 4158 4159 ; 4160 return 0; 4161} 4162_ACEOF 4163rm -f conftest.$ac_objext 4164if { (ac_try="$ac_compile" 4165case "(($ac_try" in 4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4167 *) ac_try_echo=$ac_try;; 4168esac 4169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4170 (eval "$ac_compile") 2>conftest.er1 4171 ac_status=$? 4172 grep -v '^ *+' conftest.er1 >conftest.err 4173 rm -f conftest.er1 4174 cat conftest.err >&5 4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4176 (exit $ac_status); } && 4177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4178 { (case "(($ac_try" in 4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4180 *) ac_try_echo=$ac_try;; 4181esac 4182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4183 (eval "$ac_try") 2>&5 4184 ac_status=$? 4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4186 (exit $ac_status); }; } && 4187 { ac_try='test -s conftest.$ac_objext' 4188 { (case "(($ac_try" in 4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4190 *) ac_try_echo=$ac_try;; 4191esac 4192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4193 (eval "$ac_try") 2>&5 4194 ac_status=$? 4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4196 (exit $ac_status); }; }; then 4197 ac_cv_header_stdc=yes 4198else 4199 echo "$as_me: failed program was:" >&5 4200sed 's/^/| /' conftest.$ac_ext >&5 4201 4202 ac_cv_header_stdc=no 4203fi 4204 4205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4206 4207if test $ac_cv_header_stdc = yes; then 4208 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4209 cat >conftest.$ac_ext <<_ACEOF 4210/* confdefs.h. */ 4211_ACEOF 4212cat confdefs.h >>conftest.$ac_ext 4213cat >>conftest.$ac_ext <<_ACEOF 4214/* end confdefs.h. */ 4215#include <string.h> 4216 4217_ACEOF 4218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4219 $EGREP "memchr" >/dev/null 2>&1; then 4220 : 4221else 4222 ac_cv_header_stdc=no 4223fi 4224rm -f conftest* 4225 4226fi 4227 4228if test $ac_cv_header_stdc = yes; then 4229 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4230 cat >conftest.$ac_ext <<_ACEOF 4231/* confdefs.h. */ 4232_ACEOF 4233cat confdefs.h >>conftest.$ac_ext 4234cat >>conftest.$ac_ext <<_ACEOF 4235/* end confdefs.h. */ 4236#include <stdlib.h> 4237 4238_ACEOF 4239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4240 $EGREP "free" >/dev/null 2>&1; then 4241 : 4242else 4243 ac_cv_header_stdc=no 4244fi 4245rm -f conftest* 4246 4247fi 4248 4249if test $ac_cv_header_stdc = yes; then 4250 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4251 if test "$cross_compiling" = yes; then 4252 : 4253else 4254 cat >conftest.$ac_ext <<_ACEOF 4255/* confdefs.h. */ 4256_ACEOF 4257cat confdefs.h >>conftest.$ac_ext 4258cat >>conftest.$ac_ext <<_ACEOF 4259/* end confdefs.h. */ 4260#include <ctype.h> 4261#include <stdlib.h> 4262#if ((' ' & 0x0FF) == 0x020) 4263# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4264# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4265#else 4266# define ISLOWER(c) \ 4267 (('a' <= (c) && (c) <= 'i') \ 4268 || ('j' <= (c) && (c) <= 'r') \ 4269 || ('s' <= (c) && (c) <= 'z')) 4270# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4271#endif 4272 4273#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4274int 4275main () 4276{ 4277 int i; 4278 for (i = 0; i < 256; i++) 4279 if (XOR (islower (i), ISLOWER (i)) 4280 || toupper (i) != TOUPPER (i)) 4281 return 2; 4282 return 0; 4283} 4284_ACEOF 4285rm -f conftest$ac_exeext 4286if { (ac_try="$ac_link" 4287case "(($ac_try" in 4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4289 *) ac_try_echo=$ac_try;; 4290esac 4291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4292 (eval "$ac_link") 2>&5 4293 ac_status=$? 4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4296 { (case "(($ac_try" in 4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4298 *) ac_try_echo=$ac_try;; 4299esac 4300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4301 (eval "$ac_try") 2>&5 4302 ac_status=$? 4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4304 (exit $ac_status); }; }; then 4305 : 4306else 4307 echo "$as_me: program exited with status $ac_status" >&5 4308echo "$as_me: failed program was:" >&5 4309sed 's/^/| /' conftest.$ac_ext >&5 4310 4311( exit $ac_status ) 4312ac_cv_header_stdc=no 4313fi 4314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4315fi 4316 4317 4318fi 4319fi 4320{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4321echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4322if test $ac_cv_header_stdc = yes; then 4323 4324cat >>confdefs.h <<\_ACEOF 4325#define STDC_HEADERS 1 4326_ACEOF 4327 4328fi 4329 4330# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4341 inttypes.h stdint.h unistd.h 4342do 4343as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4344{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4347 echo $ECHO_N "(cached) $ECHO_C" >&6 4348else 4349 cat >conftest.$ac_ext <<_ACEOF 4350/* confdefs.h. */ 4351_ACEOF 4352cat confdefs.h >>conftest.$ac_ext 4353cat >>conftest.$ac_ext <<_ACEOF 4354/* end confdefs.h. */ 4355$ac_includes_default 4356 4357#include <$ac_header> 4358_ACEOF 4359rm -f conftest.$ac_objext 4360if { (ac_try="$ac_compile" 4361case "(($ac_try" in 4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4363 *) ac_try_echo=$ac_try;; 4364esac 4365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4366 (eval "$ac_compile") 2>conftest.er1 4367 ac_status=$? 4368 grep -v '^ *+' conftest.er1 >conftest.err 4369 rm -f conftest.er1 4370 cat conftest.err >&5 4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4372 (exit $ac_status); } && 4373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4374 { (case "(($ac_try" in 4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4376 *) ac_try_echo=$ac_try;; 4377esac 4378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4379 (eval "$ac_try") 2>&5 4380 ac_status=$? 4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4382 (exit $ac_status); }; } && 4383 { ac_try='test -s conftest.$ac_objext' 4384 { (case "(($ac_try" in 4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4386 *) ac_try_echo=$ac_try;; 4387esac 4388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4389 (eval "$ac_try") 2>&5 4390 ac_status=$? 4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4392 (exit $ac_status); }; }; then 4393 eval "$as_ac_Header=yes" 4394else 4395 echo "$as_me: failed program was:" >&5 4396sed 's/^/| /' conftest.$ac_ext >&5 4397 4398 eval "$as_ac_Header=no" 4399fi 4400 4401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4402fi 4403ac_res=`eval echo '${'$as_ac_Header'}'` 4404 { echo "$as_me:$LINENO: result: $ac_res" >&5 4405echo "${ECHO_T}$ac_res" >&6; } 4406if test `eval echo '${'$as_ac_Header'}'` = yes; then 4407 cat >>confdefs.h <<_ACEOF 4408#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4409_ACEOF 4410 4411fi 4412 4413done 4414 4415 4416 4417 4418for ac_header in stdlib.h string.h 4419do 4420as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4421if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4422 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4424if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4425 echo $ECHO_N "(cached) $ECHO_C" >&6 4426fi 4427ac_res=`eval echo '${'$as_ac_Header'}'` 4428 { echo "$as_me:$LINENO: result: $ac_res" >&5 4429echo "${ECHO_T}$ac_res" >&6; } 4430else 4431 # Is the header compilable? 4432{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4433echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4434cat >conftest.$ac_ext <<_ACEOF 4435/* confdefs.h. */ 4436_ACEOF 4437cat confdefs.h >>conftest.$ac_ext 4438cat >>conftest.$ac_ext <<_ACEOF 4439/* end confdefs.h. */ 4440$ac_includes_default 4441#include <$ac_header> 4442_ACEOF 4443rm -f conftest.$ac_objext 4444if { (ac_try="$ac_compile" 4445case "(($ac_try" in 4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4447 *) ac_try_echo=$ac_try;; 4448esac 4449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4450 (eval "$ac_compile") 2>conftest.er1 4451 ac_status=$? 4452 grep -v '^ *+' conftest.er1 >conftest.err 4453 rm -f conftest.er1 4454 cat conftest.err >&5 4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4456 (exit $ac_status); } && 4457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4458 { (case "(($ac_try" in 4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4460 *) ac_try_echo=$ac_try;; 4461esac 4462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4463 (eval "$ac_try") 2>&5 4464 ac_status=$? 4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4466 (exit $ac_status); }; } && 4467 { ac_try='test -s conftest.$ac_objext' 4468 { (case "(($ac_try" in 4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4470 *) ac_try_echo=$ac_try;; 4471esac 4472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4473 (eval "$ac_try") 2>&5 4474 ac_status=$? 4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4476 (exit $ac_status); }; }; then 4477 ac_header_compiler=yes 4478else 4479 echo "$as_me: failed program was:" >&5 4480sed 's/^/| /' conftest.$ac_ext >&5 4481 4482 ac_header_compiler=no 4483fi 4484 4485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4486{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4487echo "${ECHO_T}$ac_header_compiler" >&6; } 4488 4489# Is the header present? 4490{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 4491echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4492cat >conftest.$ac_ext <<_ACEOF 4493/* confdefs.h. */ 4494_ACEOF 4495cat confdefs.h >>conftest.$ac_ext 4496cat >>conftest.$ac_ext <<_ACEOF 4497/* end confdefs.h. */ 4498#include <$ac_header> 4499_ACEOF 4500if { (ac_try="$ac_cpp conftest.$ac_ext" 4501case "(($ac_try" in 4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4503 *) ac_try_echo=$ac_try;; 4504esac 4505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4507 ac_status=$? 4508 grep -v '^ *+' conftest.er1 >conftest.err 4509 rm -f conftest.er1 4510 cat conftest.err >&5 4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4512 (exit $ac_status); } >/dev/null; then 4513 if test -s conftest.err; then 4514 ac_cpp_err=$ac_c_preproc_warn_flag 4515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4516 else 4517 ac_cpp_err= 4518 fi 4519else 4520 ac_cpp_err=yes 4521fi 4522if test -z "$ac_cpp_err"; then 4523 ac_header_preproc=yes 4524else 4525 echo "$as_me: failed program was:" >&5 4526sed 's/^/| /' conftest.$ac_ext >&5 4527 4528 ac_header_preproc=no 4529fi 4530 4531rm -f conftest.err conftest.$ac_ext 4532{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4533echo "${ECHO_T}$ac_header_preproc" >&6; } 4534 4535# So? What about this header? 4536case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4537 yes:no: ) 4538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4539echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4541echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4542 ac_header_preproc=yes 4543 ;; 4544 no:yes:* ) 4545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4546echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4548echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4550echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4552echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4554echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4556echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4557 ( cat <<\_ASBOX 4558## -------------------------------- ## 4559## Report this to csl@sublevel3.org ## 4560## -------------------------------- ## 4561_ASBOX 4562 ) | sed "s/^/$as_me: WARNING: /" >&2 4563 ;; 4564esac 4565{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4567if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4568 echo $ECHO_N "(cached) $ECHO_C" >&6 4569else 4570 eval "$as_ac_Header=\$ac_header_preproc" 4571fi 4572ac_res=`eval echo '${'$as_ac_Header'}'` 4573 { echo "$as_me:$LINENO: result: $ac_res" >&5 4574echo "${ECHO_T}$ac_res" >&6; } 4575 4576fi 4577if test `eval echo '${'$as_ac_Header'}'` = yes; then 4578 cat >>confdefs.h <<_ACEOF 4579#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4580_ACEOF 4581 4582fi 4583 4584done 4585 4586 4587if test "$enable_cairo" = "yes"; then 4588 4589for ac_header in cairo.h 4590do 4591as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4592if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4593 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4595if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4596 echo $ECHO_N "(cached) $ECHO_C" >&6 4597fi 4598ac_res=`eval echo '${'$as_ac_Header'}'` 4599 { echo "$as_me:$LINENO: result: $ac_res" >&5 4600echo "${ECHO_T}$ac_res" >&6; } 4601else 4602 # Is the header compilable? 4603{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4604echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4605cat >conftest.$ac_ext <<_ACEOF 4606/* confdefs.h. */ 4607_ACEOF 4608cat confdefs.h >>conftest.$ac_ext 4609cat >>conftest.$ac_ext <<_ACEOF 4610/* end confdefs.h. */ 4611$ac_includes_default 4612#include <$ac_header> 4613_ACEOF 4614rm -f conftest.$ac_objext 4615if { (ac_try="$ac_compile" 4616case "(($ac_try" in 4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4618 *) ac_try_echo=$ac_try;; 4619esac 4620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4621 (eval "$ac_compile") 2>conftest.er1 4622 ac_status=$? 4623 grep -v '^ *+' conftest.er1 >conftest.err 4624 rm -f conftest.er1 4625 cat conftest.err >&5 4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4627 (exit $ac_status); } && 4628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4629 { (case "(($ac_try" in 4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4631 *) ac_try_echo=$ac_try;; 4632esac 4633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4634 (eval "$ac_try") 2>&5 4635 ac_status=$? 4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4637 (exit $ac_status); }; } && 4638 { ac_try='test -s conftest.$ac_objext' 4639 { (case "(($ac_try" in 4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4641 *) ac_try_echo=$ac_try;; 4642esac 4643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4644 (eval "$ac_try") 2>&5 4645 ac_status=$? 4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4647 (exit $ac_status); }; }; then 4648 ac_header_compiler=yes 4649else 4650 echo "$as_me: failed program was:" >&5 4651sed 's/^/| /' conftest.$ac_ext >&5 4652 4653 ac_header_compiler=no 4654fi 4655 4656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4657{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4658echo "${ECHO_T}$ac_header_compiler" >&6; } 4659 4660# Is the header present? 4661{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 4662echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4663cat >conftest.$ac_ext <<_ACEOF 4664/* confdefs.h. */ 4665_ACEOF 4666cat confdefs.h >>conftest.$ac_ext 4667cat >>conftest.$ac_ext <<_ACEOF 4668/* end confdefs.h. */ 4669#include <$ac_header> 4670_ACEOF 4671if { (ac_try="$ac_cpp conftest.$ac_ext" 4672case "(($ac_try" in 4673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4674 *) ac_try_echo=$ac_try;; 4675esac 4676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4678 ac_status=$? 4679 grep -v '^ *+' conftest.er1 >conftest.err 4680 rm -f conftest.er1 4681 cat conftest.err >&5 4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4683 (exit $ac_status); } >/dev/null; then 4684 if test -s conftest.err; then 4685 ac_cpp_err=$ac_c_preproc_warn_flag 4686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4687 else 4688 ac_cpp_err= 4689 fi 4690else 4691 ac_cpp_err=yes 4692fi 4693if test -z "$ac_cpp_err"; then 4694 ac_header_preproc=yes 4695else 4696 echo "$as_me: failed program was:" >&5 4697sed 's/^/| /' conftest.$ac_ext >&5 4698 4699 ac_header_preproc=no 4700fi 4701 4702rm -f conftest.err conftest.$ac_ext 4703{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4704echo "${ECHO_T}$ac_header_preproc" >&6; } 4705 4706# So? What about this header? 4707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4708 yes:no: ) 4709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4710echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4712echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4713 ac_header_preproc=yes 4714 ;; 4715 no:yes:* ) 4716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4717echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4719echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4721echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4723echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4727echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4728 ( cat <<\_ASBOX 4729## -------------------------------- ## 4730## Report this to csl@sublevel3.org ## 4731## -------------------------------- ## 4732_ASBOX 4733 ) | sed "s/^/$as_me: WARNING: /" >&2 4734 ;; 4735esac 4736{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4738if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4739 echo $ECHO_N "(cached) $ECHO_C" >&6 4740else 4741 eval "$as_ac_Header=\$ac_header_preproc" 4742fi 4743ac_res=`eval echo '${'$as_ac_Header'}'` 4744 { echo "$as_me:$LINENO: result: $ac_res" >&5 4745echo "${ECHO_T}$ac_res" >&6; } 4746 4747fi 4748if test `eval echo '${'$as_ac_Header'}'` = yes; then 4749 cat >>confdefs.h <<_ACEOF 4750#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4751_ACEOF 4752 4753fi 4754 4755done 4756 4757fi 4758 4759if test "$enable_gd" = "yes"; then 4760 4761for ac_header in gd.h 4762do 4763as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4764if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4765 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4767if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4768 echo $ECHO_N "(cached) $ECHO_C" >&6 4769fi 4770ac_res=`eval echo '${'$as_ac_Header'}'` 4771 { echo "$as_me:$LINENO: result: $ac_res" >&5 4772echo "${ECHO_T}$ac_res" >&6; } 4773else 4774 # Is the header compilable? 4775{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4776echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4777cat >conftest.$ac_ext <<_ACEOF 4778/* confdefs.h. */ 4779_ACEOF 4780cat confdefs.h >>conftest.$ac_ext 4781cat >>conftest.$ac_ext <<_ACEOF 4782/* end confdefs.h. */ 4783$ac_includes_default 4784#include <$ac_header> 4785_ACEOF 4786rm -f conftest.$ac_objext 4787if { (ac_try="$ac_compile" 4788case "(($ac_try" in 4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4790 *) ac_try_echo=$ac_try;; 4791esac 4792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4793 (eval "$ac_compile") 2>conftest.er1 4794 ac_status=$? 4795 grep -v '^ *+' conftest.er1 >conftest.err 4796 rm -f conftest.er1 4797 cat conftest.err >&5 4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4799 (exit $ac_status); } && 4800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4801 { (case "(($ac_try" in 4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4803 *) ac_try_echo=$ac_try;; 4804esac 4805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4806 (eval "$ac_try") 2>&5 4807 ac_status=$? 4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4809 (exit $ac_status); }; } && 4810 { ac_try='test -s conftest.$ac_objext' 4811 { (case "(($ac_try" in 4812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4813 *) ac_try_echo=$ac_try;; 4814esac 4815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4816 (eval "$ac_try") 2>&5 4817 ac_status=$? 4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4819 (exit $ac_status); }; }; then 4820 ac_header_compiler=yes 4821else 4822 echo "$as_me: failed program was:" >&5 4823sed 's/^/| /' conftest.$ac_ext >&5 4824 4825 ac_header_compiler=no 4826fi 4827 4828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4829{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4830echo "${ECHO_T}$ac_header_compiler" >&6; } 4831 4832# Is the header present? 4833{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 4834echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4835cat >conftest.$ac_ext <<_ACEOF 4836/* confdefs.h. */ 4837_ACEOF 4838cat confdefs.h >>conftest.$ac_ext 4839cat >>conftest.$ac_ext <<_ACEOF 4840/* end confdefs.h. */ 4841#include <$ac_header> 4842_ACEOF 4843if { (ac_try="$ac_cpp conftest.$ac_ext" 4844case "(($ac_try" in 4845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4846 *) ac_try_echo=$ac_try;; 4847esac 4848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4850 ac_status=$? 4851 grep -v '^ *+' conftest.er1 >conftest.err 4852 rm -f conftest.er1 4853 cat conftest.err >&5 4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4855 (exit $ac_status); } >/dev/null; then 4856 if test -s conftest.err; then 4857 ac_cpp_err=$ac_c_preproc_warn_flag 4858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4859 else 4860 ac_cpp_err= 4861 fi 4862else 4863 ac_cpp_err=yes 4864fi 4865if test -z "$ac_cpp_err"; then 4866 ac_header_preproc=yes 4867else 4868 echo "$as_me: failed program was:" >&5 4869sed 's/^/| /' conftest.$ac_ext >&5 4870 4871 ac_header_preproc=no 4872fi 4873 4874rm -f conftest.err conftest.$ac_ext 4875{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4876echo "${ECHO_T}$ac_header_preproc" >&6; } 4877 4878# So? What about this header? 4879case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4880 yes:no: ) 4881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4882echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4884echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4885 ac_header_preproc=yes 4886 ;; 4887 no:yes:* ) 4888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4889echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4891echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4893echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4895echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4897echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4899echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4900 ( cat <<\_ASBOX 4901## -------------------------------- ## 4902## Report this to csl@sublevel3.org ## 4903## -------------------------------- ## 4904_ASBOX 4905 ) | sed "s/^/$as_me: WARNING: /" >&2 4906 ;; 4907esac 4908{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4911 echo $ECHO_N "(cached) $ECHO_C" >&6 4912else 4913 eval "$as_ac_Header=\$ac_header_preproc" 4914fi 4915ac_res=`eval echo '${'$as_ac_Header'}'` 4916 { echo "$as_me:$LINENO: result: $ac_res" >&5 4917echo "${ECHO_T}$ac_res" >&6; } 4918 4919fi 4920if test `eval echo '${'$as_ac_Header'}'` = yes; then 4921 cat >>confdefs.h <<_ACEOF 4922#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4923_ACEOF 4924 4925fi 4926 4927done 4928 4929fi 4930 4931# Checks for typedefs, structures, and compiler characteristics. 4932{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 4933echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 4934if test "${ac_cv_c_const+set}" = set; then 4935 echo $ECHO_N "(cached) $ECHO_C" >&6 4936else 4937 cat >conftest.$ac_ext <<_ACEOF 4938/* confdefs.h. */ 4939_ACEOF 4940cat confdefs.h >>conftest.$ac_ext 4941cat >>conftest.$ac_ext <<_ACEOF 4942/* end confdefs.h. */ 4943 4944int 4945main () 4946{ 4947/* FIXME: Include the comments suggested by Paul. */ 4948#ifndef __cplusplus 4949 /* Ultrix mips cc rejects this. */ 4950 typedef int charset[2]; 4951 const charset x; 4952 /* SunOS 4.1.1 cc rejects this. */ 4953 char const *const *ccp; 4954 char **p; 4955 /* NEC SVR4.0.2 mips cc rejects this. */ 4956 struct point {int x, y;}; 4957 static struct point const zero = {0,0}; 4958 /* AIX XL C 1.02.0.0 rejects this. 4959 It does not let you subtract one const X* pointer from another in 4960 an arm of an if-expression whose if-part is not a constant 4961 expression */ 4962 const char *g = "string"; 4963 ccp = &g + (g ? g-g : 0); 4964 /* HPUX 7.0 cc rejects these. */ 4965 ++ccp; 4966 p = (char**) ccp; 4967 ccp = (char const *const *) p; 4968 { /* SCO 3.2v4 cc rejects this. */ 4969 char *t; 4970 char const *s = 0 ? (char *) 0 : (char const *) 0; 4971 4972 *t++ = 0; 4973 if (s) return 0; 4974 } 4975 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4976 int x[] = {25, 17}; 4977 const int *foo = &x[0]; 4978 ++foo; 4979 } 4980 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4981 typedef const int *iptr; 4982 iptr p = 0; 4983 ++p; 4984 } 4985 { /* AIX XL C 1.02.0.0 rejects this saying 4986 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4987 struct s { int j; const int *ap[3]; }; 4988 struct s *b; b->j = 5; 4989 } 4990 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4991 const int foo = 10; 4992 if (!foo) return 0; 4993 } 4994 return !x[0] && !zero.x; 4995#endif 4996 4997 ; 4998 return 0; 4999} 5000_ACEOF 5001rm -f conftest.$ac_objext 5002if { (ac_try="$ac_compile" 5003case "(($ac_try" in 5004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5005 *) ac_try_echo=$ac_try;; 5006esac 5007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5008 (eval "$ac_compile") 2>conftest.er1 5009 ac_status=$? 5010 grep -v '^ *+' conftest.er1 >conftest.err 5011 rm -f conftest.er1 5012 cat conftest.err >&5 5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5014 (exit $ac_status); } && 5015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5016 { (case "(($ac_try" in 5017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5018 *) ac_try_echo=$ac_try;; 5019esac 5020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5021 (eval "$ac_try") 2>&5 5022 ac_status=$? 5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5024 (exit $ac_status); }; } && 5025 { ac_try='test -s conftest.$ac_objext' 5026 { (case "(($ac_try" in 5027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5028 *) ac_try_echo=$ac_try;; 5029esac 5030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5031 (eval "$ac_try") 2>&5 5032 ac_status=$? 5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5034 (exit $ac_status); }; }; then 5035 ac_cv_c_const=yes 5036else 5037 echo "$as_me: failed program was:" >&5 5038sed 's/^/| /' conftest.$ac_ext >&5 5039 5040 ac_cv_c_const=no 5041fi 5042 5043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5044fi 5045{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 5046echo "${ECHO_T}$ac_cv_c_const" >&6; } 5047if test $ac_cv_c_const = no; then 5048 5049cat >>confdefs.h <<\_ACEOF 5050#define const 5051_ACEOF 5052 5053fi 5054 5055{ echo "$as_me:$LINENO: checking for inline" >&5 5056echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 5057if test "${ac_cv_c_inline+set}" = set; then 5058 echo $ECHO_N "(cached) $ECHO_C" >&6 5059else 5060 ac_cv_c_inline=no 5061for ac_kw in inline __inline__ __inline; do 5062 cat >conftest.$ac_ext <<_ACEOF 5063/* confdefs.h. */ 5064_ACEOF 5065cat confdefs.h >>conftest.$ac_ext 5066cat >>conftest.$ac_ext <<_ACEOF 5067/* end confdefs.h. */ 5068#ifndef __cplusplus 5069typedef int foo_t; 5070static $ac_kw foo_t static_foo () {return 0; } 5071$ac_kw foo_t foo () {return 0; } 5072#endif 5073 5074_ACEOF 5075rm -f conftest.$ac_objext 5076if { (ac_try="$ac_compile" 5077case "(($ac_try" in 5078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5079 *) ac_try_echo=$ac_try;; 5080esac 5081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5082 (eval "$ac_compile") 2>conftest.er1 5083 ac_status=$? 5084 grep -v '^ *+' conftest.er1 >conftest.err 5085 rm -f conftest.er1 5086 cat conftest.err >&5 5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5088 (exit $ac_status); } && 5089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5090 { (case "(($ac_try" in 5091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5092 *) ac_try_echo=$ac_try;; 5093esac 5094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5095 (eval "$ac_try") 2>&5 5096 ac_status=$? 5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5098 (exit $ac_status); }; } && 5099 { ac_try='test -s conftest.$ac_objext' 5100 { (case "(($ac_try" in 5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5102 *) ac_try_echo=$ac_try;; 5103esac 5104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5105 (eval "$ac_try") 2>&5 5106 ac_status=$? 5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5108 (exit $ac_status); }; }; then 5109 ac_cv_c_inline=$ac_kw 5110else 5111 echo "$as_me: failed program was:" >&5 5112sed 's/^/| /' conftest.$ac_ext >&5 5113 5114 5115fi 5116 5117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5118 test "$ac_cv_c_inline" != no && break 5119done 5120 5121fi 5122{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 5123echo "${ECHO_T}$ac_cv_c_inline" >&6; } 5124 5125 5126case $ac_cv_c_inline in 5127 inline | yes) ;; 5128 *) 5129 case $ac_cv_c_inline in 5130 no) ac_val=;; 5131 *) ac_val=$ac_cv_c_inline;; 5132 esac 5133 cat >>confdefs.h <<_ACEOF 5134#ifndef __cplusplus 5135#define inline $ac_val 5136#endif 5137_ACEOF 5138 ;; 5139esac 5140 5141{ echo "$as_me:$LINENO: checking for size_t" >&5 5142echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 5143if test "${ac_cv_type_size_t+set}" = set; then 5144 echo $ECHO_N "(cached) $ECHO_C" >&6 5145else 5146 cat >conftest.$ac_ext <<_ACEOF 5147/* confdefs.h. */ 5148_ACEOF 5149cat confdefs.h >>conftest.$ac_ext 5150cat >>conftest.$ac_ext <<_ACEOF 5151/* end confdefs.h. */ 5152$ac_includes_default 5153typedef size_t ac__type_new_; 5154int 5155main () 5156{ 5157if ((ac__type_new_ *) 0) 5158 return 0; 5159if (sizeof (ac__type_new_)) 5160 return 0; 5161 ; 5162 return 0; 5163} 5164_ACEOF 5165rm -f conftest.$ac_objext 5166if { (ac_try="$ac_compile" 5167case "(($ac_try" in 5168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5169 *) ac_try_echo=$ac_try;; 5170esac 5171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5172 (eval "$ac_compile") 2>conftest.er1 5173 ac_status=$? 5174 grep -v '^ *+' conftest.er1 >conftest.err 5175 rm -f conftest.er1 5176 cat conftest.err >&5 5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5178 (exit $ac_status); } && 5179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5180 { (case "(($ac_try" in 5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5182 *) ac_try_echo=$ac_try;; 5183esac 5184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5185 (eval "$ac_try") 2>&5 5186 ac_status=$? 5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5188 (exit $ac_status); }; } && 5189 { ac_try='test -s conftest.$ac_objext' 5190 { (case "(($ac_try" in 5191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5192 *) ac_try_echo=$ac_try;; 5193esac 5194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5195 (eval "$ac_try") 2>&5 5196 ac_status=$? 5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5198 (exit $ac_status); }; }; then 5199 ac_cv_type_size_t=yes 5200else 5201 echo "$as_me: failed program was:" >&5 5202sed 's/^/| /' conftest.$ac_ext >&5 5203 5204 ac_cv_type_size_t=no 5205fi 5206 5207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5208fi 5209{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 5210echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 5211if test $ac_cv_type_size_t = yes; then 5212 : 5213else 5214 5215cat >>confdefs.h <<_ACEOF 5216#define size_t unsigned int 5217_ACEOF 5218 5219fi 5220 5221 5222# Checks for library functions. 5223 5224for ac_func in memset 5225do 5226as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5227{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5228echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5229if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5230 echo $ECHO_N "(cached) $ECHO_C" >&6 5231else 5232 cat >conftest.$ac_ext <<_ACEOF 5233/* confdefs.h. */ 5234_ACEOF 5235cat confdefs.h >>conftest.$ac_ext 5236cat >>conftest.$ac_ext <<_ACEOF 5237/* end confdefs.h. */ 5238/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5239 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5240#define $ac_func innocuous_$ac_func 5241 5242/* System header to define __stub macros and hopefully few prototypes, 5243 which can conflict with char $ac_func (); below. 5244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5245 <limits.h> exists even on freestanding compilers. */ 5246 5247#ifdef __STDC__ 5248# include <limits.h> 5249#else 5250# include <assert.h> 5251#endif 5252 5253#undef $ac_func 5254 5255/* Override any GCC internal prototype to avoid an error. 5256 Use char because int might match the return type of a GCC 5257 builtin and then its argument prototype would still apply. */ 5258#ifdef __cplusplus 5259extern "C" 5260#endif 5261char $ac_func (); 5262/* The GNU C library defines this for functions which it implements 5263 to always fail with ENOSYS. Some functions are actually named 5264 something starting with __ and the normal name is an alias. */ 5265#if defined __stub_$ac_func || defined __stub___$ac_func 5266choke me 5267#endif 5268 5269int 5270main () 5271{ 5272return $ac_func (); 5273 ; 5274 return 0; 5275} 5276_ACEOF 5277rm -f conftest.$ac_objext conftest$ac_exeext 5278if { (ac_try="$ac_link" 5279case "(($ac_try" in 5280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5281 *) ac_try_echo=$ac_try;; 5282esac 5283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5284 (eval "$ac_link") 2>conftest.er1 5285 ac_status=$? 5286 grep -v '^ *+' conftest.er1 >conftest.err 5287 rm -f conftest.er1 5288 cat conftest.err >&5 5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5290 (exit $ac_status); } && 5291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5292 { (case "(($ac_try" in 5293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5294 *) ac_try_echo=$ac_try;; 5295esac 5296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5297 (eval "$ac_try") 2>&5 5298 ac_status=$? 5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5300 (exit $ac_status); }; } && 5301 { ac_try='test -s conftest$ac_exeext' 5302 { (case "(($ac_try" in 5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5304 *) ac_try_echo=$ac_try;; 5305esac 5306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5307 (eval "$ac_try") 2>&5 5308 ac_status=$? 5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5310 (exit $ac_status); }; }; then 5311 eval "$as_ac_var=yes" 5312else 5313 echo "$as_me: failed program was:" >&5 5314sed 's/^/| /' conftest.$ac_ext >&5 5315 5316 eval "$as_ac_var=no" 5317fi 5318 5319rm -f core conftest.err conftest.$ac_objext \ 5320 conftest$ac_exeext conftest.$ac_ext 5321fi 5322ac_res=`eval echo '${'$as_ac_var'}'` 5323 { echo "$as_me:$LINENO: result: $ac_res" >&5 5324echo "${ECHO_T}$ac_res" >&6; } 5325if test `eval echo '${'$as_ac_var'}'` = yes; then 5326 cat >>confdefs.h <<_ACEOF 5327#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5328_ACEOF 5329 5330fi 5331done 5332 5333 5334for ac_func in strcasecmp 5335do 5336as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5337{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5338echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5339if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5340 echo $ECHO_N "(cached) $ECHO_C" >&6 5341else 5342 cat >conftest.$ac_ext <<_ACEOF 5343/* confdefs.h. */ 5344_ACEOF 5345cat confdefs.h >>conftest.$ac_ext 5346cat >>conftest.$ac_ext <<_ACEOF 5347/* end confdefs.h. */ 5348/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5349 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5350#define $ac_func innocuous_$ac_func 5351 5352/* System header to define __stub macros and hopefully few prototypes, 5353 which can conflict with char $ac_func (); below. 5354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5355 <limits.h> exists even on freestanding compilers. */ 5356 5357#ifdef __STDC__ 5358# include <limits.h> 5359#else 5360# include <assert.h> 5361#endif 5362 5363#undef $ac_func 5364 5365/* Override any GCC internal prototype to avoid an error. 5366 Use char because int might match the return type of a GCC 5367 builtin and then its argument prototype would still apply. */ 5368#ifdef __cplusplus 5369extern "C" 5370#endif 5371char $ac_func (); 5372/* The GNU C library defines this for functions which it implements 5373 to always fail with ENOSYS. Some functions are actually named 5374 something starting with __ and the normal name is an alias. */ 5375#if defined __stub_$ac_func || defined __stub___$ac_func 5376choke me 5377#endif 5378 5379int 5380main () 5381{ 5382return $ac_func (); 5383 ; 5384 return 0; 5385} 5386_ACEOF 5387rm -f conftest.$ac_objext conftest$ac_exeext 5388if { (ac_try="$ac_link" 5389case "(($ac_try" in 5390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5391 *) ac_try_echo=$ac_try;; 5392esac 5393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5394 (eval "$ac_link") 2>conftest.er1 5395 ac_status=$? 5396 grep -v '^ *+' conftest.er1 >conftest.err 5397 rm -f conftest.er1 5398 cat conftest.err >&5 5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5400 (exit $ac_status); } && 5401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5402 { (case "(($ac_try" in 5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5404 *) ac_try_echo=$ac_try;; 5405esac 5406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5407 (eval "$ac_try") 2>&5 5408 ac_status=$? 5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5410 (exit $ac_status); }; } && 5411 { ac_try='test -s conftest$ac_exeext' 5412 { (case "(($ac_try" in 5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5414 *) ac_try_echo=$ac_try;; 5415esac 5416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5417 (eval "$ac_try") 2>&5 5418 ac_status=$? 5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5420 (exit $ac_status); }; }; then 5421 eval "$as_ac_var=yes" 5422else 5423 echo "$as_me: failed program was:" >&5 5424sed 's/^/| /' conftest.$ac_ext >&5 5425 5426 eval "$as_ac_var=no" 5427fi 5428 5429rm -f core conftest.err conftest.$ac_objext \ 5430 conftest$ac_exeext conftest.$ac_ext 5431fi 5432ac_res=`eval echo '${'$as_ac_var'}'` 5433 { echo "$as_me:$LINENO: result: $ac_res" >&5 5434echo "${ECHO_T}$ac_res" >&6; } 5435if test `eval echo '${'$as_ac_var'}'` = yes; then 5436 cat >>confdefs.h <<_ACEOF 5437#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5438_ACEOF 5439 5440fi 5441done 5442 5443# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5444# for constant arguments. Useless! 5445{ echo "$as_me:$LINENO: checking for working alloca.h" >&5 5446echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } 5447if test "${ac_cv_working_alloca_h+set}" = set; then 5448 echo $ECHO_N "(cached) $ECHO_C" >&6 5449else 5450 cat >conftest.$ac_ext <<_ACEOF 5451/* confdefs.h. */ 5452_ACEOF 5453cat confdefs.h >>conftest.$ac_ext 5454cat >>conftest.$ac_ext <<_ACEOF 5455/* end confdefs.h. */ 5456#include <alloca.h> 5457int 5458main () 5459{ 5460char *p = (char *) alloca (2 * sizeof (int)); 5461 if (p) return 0; 5462 ; 5463 return 0; 5464} 5465_ACEOF 5466rm -f conftest.$ac_objext conftest$ac_exeext 5467if { (ac_try="$ac_link" 5468case "(($ac_try" in 5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5470 *) ac_try_echo=$ac_try;; 5471esac 5472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5473 (eval "$ac_link") 2>conftest.er1 5474 ac_status=$? 5475 grep -v '^ *+' conftest.er1 >conftest.err 5476 rm -f conftest.er1 5477 cat conftest.err >&5 5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5479 (exit $ac_status); } && 5480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5481 { (case "(($ac_try" in 5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5483 *) ac_try_echo=$ac_try;; 5484esac 5485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5486 (eval "$ac_try") 2>&5 5487 ac_status=$? 5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5489 (exit $ac_status); }; } && 5490 { ac_try='test -s conftest$ac_exeext' 5491 { (case "(($ac_try" in 5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5493 *) ac_try_echo=$ac_try;; 5494esac 5495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5496 (eval "$ac_try") 2>&5 5497 ac_status=$? 5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5499 (exit $ac_status); }; }; then 5500 ac_cv_working_alloca_h=yes 5501else 5502 echo "$as_me: failed program was:" >&5 5503sed 's/^/| /' conftest.$ac_ext >&5 5504 5505 ac_cv_working_alloca_h=no 5506fi 5507 5508rm -f core conftest.err conftest.$ac_objext \ 5509 conftest$ac_exeext conftest.$ac_ext 5510fi 5511{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 5512echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } 5513if test $ac_cv_working_alloca_h = yes; then 5514 5515cat >>confdefs.h <<\_ACEOF 5516#define HAVE_ALLOCA_H 1 5517_ACEOF 5518 5519fi 5520 5521{ echo "$as_me:$LINENO: checking for alloca" >&5 5522echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } 5523if test "${ac_cv_func_alloca_works+set}" = set; then 5524 echo $ECHO_N "(cached) $ECHO_C" >&6 5525else 5526 cat >conftest.$ac_ext <<_ACEOF 5527/* confdefs.h. */ 5528_ACEOF 5529cat confdefs.h >>conftest.$ac_ext 5530cat >>conftest.$ac_ext <<_ACEOF 5531/* end confdefs.h. */ 5532#ifdef __GNUC__ 5533# define alloca __builtin_alloca 5534#else 5535# ifdef _MSC_VER 5536# include <malloc.h> 5537# define alloca _alloca 5538# else 5539# if HAVE_ALLOCA_H 5540# include <alloca.h> 5541# else 5542# ifdef _AIX 5543 #pragma alloca 5544# else 5545# ifndef alloca /* predefined by HP cc +Olibcalls */ 5546char *alloca (); 5547# endif 5548# endif 5549# endif 5550# endif 5551#endif 5552 5553int 5554main () 5555{ 5556char *p = (char *) alloca (1); 5557 if (p) return 0; 5558 ; 5559 return 0; 5560} 5561_ACEOF 5562rm -f conftest.$ac_objext conftest$ac_exeext 5563if { (ac_try="$ac_link" 5564case "(($ac_try" in 5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5566 *) ac_try_echo=$ac_try;; 5567esac 5568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5569 (eval "$ac_link") 2>conftest.er1 5570 ac_status=$? 5571 grep -v '^ *+' conftest.er1 >conftest.err 5572 rm -f conftest.er1 5573 cat conftest.err >&5 5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5575 (exit $ac_status); } && 5576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5577 { (case "(($ac_try" in 5578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5579 *) ac_try_echo=$ac_try;; 5580esac 5581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5582 (eval "$ac_try") 2>&5 5583 ac_status=$? 5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5585 (exit $ac_status); }; } && 5586 { ac_try='test -s conftest$ac_exeext' 5587 { (case "(($ac_try" in 5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5589 *) ac_try_echo=$ac_try;; 5590esac 5591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5592 (eval "$ac_try") 2>&5 5593 ac_status=$? 5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5595 (exit $ac_status); }; }; then 5596 ac_cv_func_alloca_works=yes 5597else 5598 echo "$as_me: failed program was:" >&5 5599sed 's/^/| /' conftest.$ac_ext >&5 5600 5601 ac_cv_func_alloca_works=no 5602fi 5603 5604rm -f core conftest.err conftest.$ac_objext \ 5605 conftest$ac_exeext conftest.$ac_ext 5606fi 5607{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 5608echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } 5609 5610if test $ac_cv_func_alloca_works = yes; then 5611 5612cat >>confdefs.h <<\_ACEOF 5613#define HAVE_ALLOCA 1 5614_ACEOF 5615 5616else 5617 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 5618# that cause trouble. Some versions do not even contain alloca or 5619# contain a buggy version. If you still want to use their alloca, 5620# use ar to extract alloca.o from them instead of compiling alloca.c. 5621 5622ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 5623 5624cat >>confdefs.h <<\_ACEOF 5625#define C_ALLOCA 1 5626_ACEOF 5627 5628 5629{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 5630echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } 5631if test "${ac_cv_os_cray+set}" = set; then 5632 echo $ECHO_N "(cached) $ECHO_C" >&6 5633else 5634 cat >conftest.$ac_ext <<_ACEOF 5635/* confdefs.h. */ 5636_ACEOF 5637cat confdefs.h >>conftest.$ac_ext 5638cat >>conftest.$ac_ext <<_ACEOF 5639/* end confdefs.h. */ 5640#if defined CRAY && ! defined CRAY2 5641webecray 5642#else 5643wenotbecray 5644#endif 5645 5646_ACEOF 5647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5648 $EGREP "webecray" >/dev/null 2>&1; then 5649 ac_cv_os_cray=yes 5650else 5651 ac_cv_os_cray=no 5652fi 5653rm -f conftest* 5654 5655fi 5656{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 5657echo "${ECHO_T}$ac_cv_os_cray" >&6; } 5658if test $ac_cv_os_cray = yes; then 5659 for ac_func in _getb67 GETB67 getb67; do 5660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5661{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5662echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5663if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5664 echo $ECHO_N "(cached) $ECHO_C" >&6 5665else 5666 cat >conftest.$ac_ext <<_ACEOF 5667/* confdefs.h. */ 5668_ACEOF 5669cat confdefs.h >>conftest.$ac_ext 5670cat >>conftest.$ac_ext <<_ACEOF 5671/* end confdefs.h. */ 5672/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5673 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5674#define $ac_func innocuous_$ac_func 5675 5676/* System header to define __stub macros and hopefully few prototypes, 5677 which can conflict with char $ac_func (); below. 5678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5679 <limits.h> exists even on freestanding compilers. */ 5680 5681#ifdef __STDC__ 5682# include <limits.h> 5683#else 5684# include <assert.h> 5685#endif 5686 5687#undef $ac_func 5688 5689/* Override any GCC internal prototype to avoid an error. 5690 Use char because int might match the return type of a GCC 5691 builtin and then its argument prototype would still apply. */ 5692#ifdef __cplusplus 5693extern "C" 5694#endif 5695char $ac_func (); 5696/* The GNU C library defines this for functions which it implements 5697 to always fail with ENOSYS. Some functions are actually named 5698 something starting with __ and the normal name is an alias. */ 5699#if defined __stub_$ac_func || defined __stub___$ac_func 5700choke me 5701#endif 5702 5703int 5704main () 5705{ 5706return $ac_func (); 5707 ; 5708 return 0; 5709} 5710_ACEOF 5711rm -f conftest.$ac_objext conftest$ac_exeext 5712if { (ac_try="$ac_link" 5713case "(($ac_try" in 5714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5715 *) ac_try_echo=$ac_try;; 5716esac 5717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5718 (eval "$ac_link") 2>conftest.er1 5719 ac_status=$? 5720 grep -v '^ *+' conftest.er1 >conftest.err 5721 rm -f conftest.er1 5722 cat conftest.err >&5 5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5724 (exit $ac_status); } && 5725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5726 { (case "(($ac_try" in 5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5728 *) ac_try_echo=$ac_try;; 5729esac 5730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5731 (eval "$ac_try") 2>&5 5732 ac_status=$? 5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5734 (exit $ac_status); }; } && 5735 { ac_try='test -s conftest$ac_exeext' 5736 { (case "(($ac_try" in 5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5738 *) ac_try_echo=$ac_try;; 5739esac 5740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5741 (eval "$ac_try") 2>&5 5742 ac_status=$? 5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5744 (exit $ac_status); }; }; then 5745 eval "$as_ac_var=yes" 5746else 5747 echo "$as_me: failed program was:" >&5 5748sed 's/^/| /' conftest.$ac_ext >&5 5749 5750 eval "$as_ac_var=no" 5751fi 5752 5753rm -f core conftest.err conftest.$ac_objext \ 5754 conftest$ac_exeext conftest.$ac_ext 5755fi 5756ac_res=`eval echo '${'$as_ac_var'}'` 5757 { echo "$as_me:$LINENO: result: $ac_res" >&5 5758echo "${ECHO_T}$ac_res" >&6; } 5759if test `eval echo '${'$as_ac_var'}'` = yes; then 5760 5761cat >>confdefs.h <<_ACEOF 5762#define CRAY_STACKSEG_END $ac_func 5763_ACEOF 5764 5765 break 5766fi 5767 5768 done 5769fi 5770 5771{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 5772echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } 5773if test "${ac_cv_c_stack_direction+set}" = set; then 5774 echo $ECHO_N "(cached) $ECHO_C" >&6 5775else 5776 if test "$cross_compiling" = yes; then 5777 ac_cv_c_stack_direction=0 5778else 5779 cat >conftest.$ac_ext <<_ACEOF 5780/* confdefs.h. */ 5781_ACEOF 5782cat confdefs.h >>conftest.$ac_ext 5783cat >>conftest.$ac_ext <<_ACEOF 5784/* end confdefs.h. */ 5785$ac_includes_default 5786int 5787find_stack_direction () 5788{ 5789 static char *addr = 0; 5790 auto char dummy; 5791 if (addr == 0) 5792 { 5793 addr = &dummy; 5794 return find_stack_direction (); 5795 } 5796 else 5797 return (&dummy > addr) ? 1 : -1; 5798} 5799 5800int 5801main () 5802{ 5803 return find_stack_direction () < 0; 5804} 5805_ACEOF 5806rm -f conftest$ac_exeext 5807if { (ac_try="$ac_link" 5808case "(($ac_try" in 5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5810 *) ac_try_echo=$ac_try;; 5811esac 5812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5813 (eval "$ac_link") 2>&5 5814 ac_status=$? 5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5817 { (case "(($ac_try" in 5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5819 *) ac_try_echo=$ac_try;; 5820esac 5821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5822 (eval "$ac_try") 2>&5 5823 ac_status=$? 5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5825 (exit $ac_status); }; }; then 5826 ac_cv_c_stack_direction=1 5827else 5828 echo "$as_me: program exited with status $ac_status" >&5 5829echo "$as_me: failed program was:" >&5 5830sed 's/^/| /' conftest.$ac_ext >&5 5831 5832( exit $ac_status ) 5833ac_cv_c_stack_direction=-1 5834fi 5835rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5836fi 5837 5838 5839fi 5840{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 5841echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } 5842 5843cat >>confdefs.h <<_ACEOF 5844#define STACK_DIRECTION $ac_cv_c_stack_direction 5845_ACEOF 5846 5847 5848fi 5849 5850{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 5851echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; } 5852if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then 5853 echo $ECHO_N "(cached) $ECHO_C" >&6 5854else 5855 rm -f conftest.sym conftest.file 5856echo >conftest.file 5857if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 5858 if test "$cross_compiling" = yes; then 5859 ac_cv_func_lstat_dereferences_slashed_symlink=no 5860else 5861 cat >conftest.$ac_ext <<_ACEOF 5862/* confdefs.h. */ 5863_ACEOF 5864cat confdefs.h >>conftest.$ac_ext 5865cat >>conftest.$ac_ext <<_ACEOF 5866/* end confdefs.h. */ 5867$ac_includes_default 5868int 5869main () 5870{ 5871struct stat sbuf; 5872 /* Linux will dereference the symlink and fail. 5873 That is better in the sense that it means we will not 5874 have to compile and use the lstat wrapper. */ 5875 return lstat ("conftest.sym/", &sbuf) == 0; 5876 ; 5877 return 0; 5878} 5879_ACEOF 5880rm -f conftest$ac_exeext 5881if { (ac_try="$ac_link" 5882case "(($ac_try" in 5883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5884 *) ac_try_echo=$ac_try;; 5885esac 5886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5887 (eval "$ac_link") 2>&5 5888 ac_status=$? 5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5891 { (case "(($ac_try" in 5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5893 *) ac_try_echo=$ac_try;; 5894esac 5895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5896 (eval "$ac_try") 2>&5 5897 ac_status=$? 5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5899 (exit $ac_status); }; }; then 5900 ac_cv_func_lstat_dereferences_slashed_symlink=yes 5901else 5902 echo "$as_me: program exited with status $ac_status" >&5 5903echo "$as_me: failed program was:" >&5 5904sed 's/^/| /' conftest.$ac_ext >&5 5905 5906( exit $ac_status ) 5907ac_cv_func_lstat_dereferences_slashed_symlink=no 5908fi 5909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5910fi 5911 5912 5913else 5914 # If the `ln -s' command failed, then we probably don't even 5915 # have an lstat function. 5916 ac_cv_func_lstat_dereferences_slashed_symlink=no 5917fi 5918rm -f conftest.sym conftest.file 5919 5920fi 5921{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 5922echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 5923 5924test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 5925 5926cat >>confdefs.h <<_ACEOF 5927#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 5928_ACEOF 5929 5930 5931if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then 5932 case " $LIBOBJS " in 5933 *" lstat.$ac_objext "* ) ;; 5934 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 5935 ;; 5936esac 5937 5938fi 5939 5940{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 5941echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; } 5942if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then 5943 echo $ECHO_N "(cached) $ECHO_C" >&6 5944else 5945 if test "$cross_compiling" = yes; then 5946 ac_cv_func_stat_empty_string_bug=yes 5947else 5948 cat >conftest.$ac_ext <<_ACEOF 5949/* confdefs.h. */ 5950_ACEOF 5951cat confdefs.h >>conftest.$ac_ext 5952cat >>conftest.$ac_ext <<_ACEOF 5953/* end confdefs.h. */ 5954$ac_includes_default 5955int 5956main () 5957{ 5958struct stat sbuf; 5959 return stat ("", &sbuf) == 0; 5960 ; 5961 return 0; 5962} 5963_ACEOF 5964rm -f conftest$ac_exeext 5965if { (ac_try="$ac_link" 5966case "(($ac_try" in 5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5968 *) ac_try_echo=$ac_try;; 5969esac 5970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5971 (eval "$ac_link") 2>&5 5972 ac_status=$? 5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5975 { (case "(($ac_try" in 5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5977 *) ac_try_echo=$ac_try;; 5978esac 5979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5980 (eval "$ac_try") 2>&5 5981 ac_status=$? 5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5983 (exit $ac_status); }; }; then 5984 ac_cv_func_stat_empty_string_bug=no 5985else 5986 echo "$as_me: program exited with status $ac_status" >&5 5987echo "$as_me: failed program was:" >&5 5988sed 's/^/| /' conftest.$ac_ext >&5 5989 5990( exit $ac_status ) 5991ac_cv_func_stat_empty_string_bug=yes 5992fi 5993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5994fi 5995 5996 5997fi 5998{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 5999echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; } 6000if test $ac_cv_func_stat_empty_string_bug = yes; then 6001 case " $LIBOBJS " in 6002 *" stat.$ac_objext "* ) ;; 6003 *) LIBOBJS="$LIBOBJS stat.$ac_objext" 6004 ;; 6005esac 6006 6007 6008cat >>confdefs.h <<_ACEOF 6009#define HAVE_STAT_EMPTY_STRING_BUG 1 6010_ACEOF 6011 6012fi 6013 6014# Find a good install program. We prefer a C program (faster), 6015# so one script is as good as another. But avoid the broken or 6016# incompatible versions: 6017# SysV /etc/install, /usr/sbin/install 6018# SunOS /usr/etc/install 6019# IRIX /sbin/install 6020# AIX /bin/install 6021# AmigaOS /C/install, which installs bootblocks on floppy discs 6022# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 6023# AFS /usr/afsws/bin/install, which mishandles nonexistent args 6024# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 6025# OS/2's system install, which has a completely different semantic 6026# ./install, which can be erroneously created by make from ./install.sh. 6027{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 6028echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 6029if test -z "$INSTALL"; then 6030if test "${ac_cv_path_install+set}" = set; then 6031 echo $ECHO_N "(cached) $ECHO_C" >&6 6032else 6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6034for as_dir in $PATH 6035do 6036 IFS=$as_save_IFS 6037 test -z "$as_dir" && as_dir=. 6038 # Account for people who put trailing slashes in PATH elements. 6039case $as_dir/ in 6040 ./ | .// | /cC/* | \ 6041 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 6042 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 6043 /usr/ucb/* ) ;; 6044 *) 6045 # OSF1 and SCO ODT 3.0 have their own names for install. 6046 # Don't use installbsd from OSF since it installs stuff as root 6047 # by default. 6048 for ac_prog in ginstall scoinst install; do 6049 for ac_exec_ext in '' $ac_executable_extensions; do 6050 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 6051 if test $ac_prog = install && 6052 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6053 # AIX install. It has an incompatible calling convention. 6054 : 6055 elif test $ac_prog = install && 6056 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6057 # program-specific install script used by HP pwplus--don't use. 6058 : 6059 else 6060 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 6061 break 3 6062 fi 6063 fi 6064 done 6065 done 6066 ;; 6067esac 6068done 6069IFS=$as_save_IFS 6070 6071 6072fi 6073 if test "${ac_cv_path_install+set}" = set; then 6074 INSTALL=$ac_cv_path_install 6075 else 6076 # As a last resort, use the slow shell script. Don't cache a 6077 # value for INSTALL within a source directory, because that will 6078 # break other packages using the cache if that directory is 6079 # removed, or if the value is a relative name. 6080 INSTALL=$ac_install_sh 6081 fi 6082fi 6083{ echo "$as_me:$LINENO: result: $INSTALL" >&5 6084echo "${ECHO_T}$INSTALL" >&6; } 6085 6086# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 6087# It thinks the first close brace ends the variable substitution. 6088test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 6089 6090test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 6091 6092test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 6093 6094{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 6095echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 6096set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 6097if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 6098 echo $ECHO_N "(cached) $ECHO_C" >&6 6099else 6100 cat >conftest.make <<\_ACEOF 6101SHELL = /bin/sh 6102all: 6103 @echo '@@@%%%=$(MAKE)=@@@%%%' 6104_ACEOF 6105# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 6106case `${MAKE-make} -f conftest.make 2>/dev/null` in 6107 *@@@%%%=?*=@@@%%%*) 6108 eval ac_cv_prog_make_${ac_make}_set=yes;; 6109 *) 6110 eval ac_cv_prog_make_${ac_make}_set=no;; 6111esac 6112rm -f conftest.make 6113fi 6114if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 6115 { echo "$as_me:$LINENO: result: yes" >&5 6116echo "${ECHO_T}yes" >&6; } 6117 SET_MAKE= 6118else 6119 { echo "$as_me:$LINENO: result: no" >&5 6120echo "${ECHO_T}no" >&6; } 6121 SET_MAKE="MAKE=${MAKE-make}" 6122fi 6123 6124 6125ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile" 6126 6127cat >confcache <<\_ACEOF 6128# This file is a shell script that caches the results of configure 6129# tests run on this system so they can be shared between configure 6130# scripts and configure runs, see configure's option --config-cache. 6131# It is not useful on other systems. If it contains results you don't 6132# want to keep, you may remove or edit it. 6133# 6134# config.status only pays attention to the cache file if you give it 6135# the --recheck option to rerun configure. 6136# 6137# `ac_cv_env_foo' variables (set or unset) will be overridden when 6138# loading this file, other *unset* `ac_cv_foo' will be assigned the 6139# following values. 6140 6141_ACEOF 6142 6143# The following way of writing the cache mishandles newlines in values, 6144# but we know of no workaround that is simple, portable, and efficient. 6145# So, we kill variables containing newlines. 6146# Ultrix sh set writes to stderr and can't be redirected directly, 6147# and sets the high bit in the cache file unless we assign to the vars. 6148( 6149 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 6150 eval ac_val=\$$ac_var 6151 case $ac_val in #( 6152 *${as_nl}*) 6153 case $ac_var in #( 6154 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 6155echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 6156 esac 6157 case $ac_var in #( 6158 _ | IFS | as_nl) ;; #( 6159 *) $as_unset $ac_var ;; 6160 esac ;; 6161 esac 6162 done 6163 6164 (set) 2>&1 | 6165 case $as_nl`(ac_space=' '; set) 2>&1` in #( 6166 *${as_nl}ac_space=\ *) 6167 # `set' does not quote correctly, so add quotes (double-quote 6168 # substitution turns \\\\ into \\, and sed turns \\ into \). 6169 sed -n \ 6170 "s/'/'\\\\''/g; 6171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 6172 ;; #( 6173 *) 6174 # `set' quotes correctly as required by POSIX, so do not add quotes. 6175 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 6176 ;; 6177 esac | 6178 sort 6179) | 6180 sed ' 6181 /^ac_cv_env_/b end 6182 t clear 6183 :clear 6184 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 6185 t end 6186 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 6187 :end' >>confcache 6188if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 6189 if test -w "$cache_file"; then 6190 test "x$cache_file" != "x/dev/null" && 6191 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 6192echo "$as_me: updating cache $cache_file" >&6;} 6193 cat confcache >$cache_file 6194 else 6195 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 6196echo "$as_me: not updating unwritable cache $cache_file" >&6;} 6197 fi 6198fi 6199rm -f confcache 6200 6201test "x$prefix" = xNONE && prefix=$ac_default_prefix 6202# Let make expand exec_prefix. 6203test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6204 6205DEFS=-DHAVE_CONFIG_H 6206 6207ac_libobjs= 6208ac_ltlibobjs= 6209for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 6210 # 1. Remove the extension, and $U if already installed. 6211 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 6212 ac_i=`echo "$ac_i" | sed "$ac_script"` 6213 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 6214 # will be set to the directory where LIBOBJS objects are built. 6215 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 6216 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 6217done 6218LIBOBJS=$ac_libobjs 6219 6220LTLIBOBJS=$ac_ltlibobjs 6221 6222 6223if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 6224 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 6225Usually this means the macro was only invoked conditionally." >&5 6226echo "$as_me: error: conditional \"AMDEP\" was never defined. 6227Usually this means the macro was only invoked conditionally." >&2;} 6228 { (exit 1); exit 1; }; } 6229fi 6230if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 6231 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 6232Usually this means the macro was only invoked conditionally." >&5 6233echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 6234Usually this means the macro was only invoked conditionally." >&2;} 6235 { (exit 1); exit 1; }; } 6236fi 6237 6238: ${CONFIG_STATUS=./config.status} 6239ac_clean_files_save=$ac_clean_files 6240ac_clean_files="$ac_clean_files $CONFIG_STATUS" 6241{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 6242echo "$as_me: creating $CONFIG_STATUS" >&6;} 6243cat >$CONFIG_STATUS <<_ACEOF 6244#! $SHELL 6245# Generated by $as_me. 6246# Run this file to recreate the current configuration. 6247# Compiler output produced by configure, useful for debugging 6248# configure, is in config.log if it exists. 6249 6250debug=false 6251ac_cs_recheck=false 6252ac_cs_silent=false 6253SHELL=\${CONFIG_SHELL-$SHELL} 6254_ACEOF 6255 6256cat >>$CONFIG_STATUS <<\_ACEOF 6257## --------------------- ## 6258## M4sh Initialization. ## 6259## --------------------- ## 6260 6261# Be Bourne compatible 6262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 6263 emulate sh 6264 NULLCMD=: 6265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 6266 # is contrary to our usage. Disable this feature. 6267 alias -g '${1+"$@"}'='"$@"' 6268 setopt NO_GLOB_SUBST 6269else 6270 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 6271fi 6272BIN_SH=xpg4; export BIN_SH # for Tru64 6273DUALCASE=1; export DUALCASE # for MKS sh 6274 6275 6276# PATH needs CR 6277# Avoid depending upon Character Ranges. 6278as_cr_letters='abcdefghijklmnopqrstuvwxyz' 6279as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 6280as_cr_Letters=$as_cr_letters$as_cr_LETTERS 6281as_cr_digits='0123456789' 6282as_cr_alnum=$as_cr_Letters$as_cr_digits 6283 6284# The user is always right. 6285if test "${PATH_SEPARATOR+set}" != set; then 6286 echo "#! /bin/sh" >conf$$.sh 6287 echo "exit 0" >>conf$$.sh 6288 chmod +x conf$$.sh 6289 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6290 PATH_SEPARATOR=';' 6291 else 6292 PATH_SEPARATOR=: 6293 fi 6294 rm -f conf$$.sh 6295fi 6296 6297# Support unset when possible. 6298if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6299 as_unset=unset 6300else 6301 as_unset=false 6302fi 6303 6304 6305# IFS 6306# We need space, tab and new line, in precisely that order. Quoting is 6307# there to prevent editors from complaining about space-tab. 6308# (If _AS_PATH_WALK were called with IFS unset, it would disable word 6309# splitting by setting IFS to empty value.) 6310as_nl=' 6311' 6312IFS=" "" $as_nl" 6313 6314# Find who we are. Look in the path if we contain no directory separator. 6315case $0 in 6316 *[\\/]* ) as_myself=$0 ;; 6317 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6318for as_dir in $PATH 6319do 6320 IFS=$as_save_IFS 6321 test -z "$as_dir" && as_dir=. 6322 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 6323done 6324IFS=$as_save_IFS 6325 6326 ;; 6327esac 6328# We did not find ourselves, most probably we were run as `sh COMMAND' 6329# in which case we are not to be found in the path. 6330if test "x$as_myself" = x; then 6331 as_myself=$0 6332fi 6333if test ! -f "$as_myself"; then 6334 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 6335 { (exit 1); exit 1; } 6336fi 6337 6338# Work around bugs in pre-3.0 UWIN ksh. 6339for as_var in ENV MAIL MAILPATH 6340do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 6341done 6342PS1='$ ' 6343PS2='> ' 6344PS4='+ ' 6345 6346# NLS nuisances. 6347for as_var in \ 6348 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 6349 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 6350 LC_TELEPHONE LC_TIME 6351do 6352 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 6353 eval $as_var=C; export $as_var 6354 else 6355 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 6356 fi 6357done 6358 6359# Required to use basename. 6360if expr a : '\(a\)' >/dev/null 2>&1 && 6361 test "X`expr 00001 : '.*\(...\)'`" = X001; then 6362 as_expr=expr 6363else 6364 as_expr=false 6365fi 6366 6367if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 6368 as_basename=basename 6369else 6370 as_basename=false 6371fi 6372 6373 6374# Name of the executable. 6375as_me=`$as_basename -- "$0" || 6376$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 6377 X"$0" : 'X\(//\)$' \| \ 6378 X"$0" : 'X\(/\)' \| . 2>/dev/null || 6379echo X/"$0" | 6380 sed '/^.*\/\([^/][^/]*\)\/*$/{ 6381 s//\1/ 6382 q 6383 } 6384 /^X\/\(\/\/\)$/{ 6385 s//\1/ 6386 q 6387 } 6388 /^X\/\(\/\).*/{ 6389 s//\1/ 6390 q 6391 } 6392 s/.*/./; q'` 6393 6394# CDPATH. 6395$as_unset CDPATH 6396 6397 6398 6399 as_lineno_1=$LINENO 6400 as_lineno_2=$LINENO 6401 test "x$as_lineno_1" != "x$as_lineno_2" && 6402 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 6403 6404 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 6405 # uniformly replaced by the line number. The first 'sed' inserts a 6406 # line-number line after each line using $LINENO; the second 'sed' 6407 # does the real work. The second script uses 'N' to pair each 6408 # line-number line with the line containing $LINENO, and appends 6409 # trailing '-' during substitution so that $LINENO is not a special 6410 # case at line end. 6411 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 6412 # scripts with optimization help from Paolo Bonzini. Blame Lee 6413 # E. McMahon (1931-1989) for sed's syntax. :-) 6414 sed -n ' 6415 p 6416 /[$]LINENO/= 6417 ' <$as_myself | 6418 sed ' 6419 s/[$]LINENO.*/&-/ 6420 t lineno 6421 b 6422 :lineno 6423 N 6424 :loop 6425 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 6426 t loop 6427 s/-\n.*// 6428 ' >$as_me.lineno && 6429 chmod +x "$as_me.lineno" || 6430 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 6431 { (exit 1); exit 1; }; } 6432 6433 # Don't try to exec as it changes $[0], causing all sort of problems 6434 # (the dirname of $[0] is not the place where we might find the 6435 # original and so on. Autoconf is especially sensitive to this). 6436 . "./$as_me.lineno" 6437 # Exit status is that of the last command. 6438 exit 6439} 6440 6441 6442if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 6443 as_dirname=dirname 6444else 6445 as_dirname=false 6446fi 6447 6448ECHO_C= ECHO_N= ECHO_T= 6449case `echo -n x` in 6450-n*) 6451 case `echo 'x\c'` in 6452 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 6453 *) ECHO_C='\c';; 6454 esac;; 6455*) 6456 ECHO_N='-n';; 6457esac 6458 6459if expr a : '\(a\)' >/dev/null 2>&1 && 6460 test "X`expr 00001 : '.*\(...\)'`" = X001; then 6461 as_expr=expr 6462else 6463 as_expr=false 6464fi 6465 6466rm -f conf$$ conf$$.exe conf$$.file 6467if test -d conf$$.dir; then 6468 rm -f conf$$.dir/conf$$.file 6469else 6470 rm -f conf$$.dir 6471 mkdir conf$$.dir 6472fi 6473echo >conf$$.file 6474if ln -s conf$$.file conf$$ 2>/dev/null; then 6475 as_ln_s='ln -s' 6476 # ... but there are two gotchas: 6477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 6478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 6479 # In both cases, we have to default to `cp -p'. 6480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 6481 as_ln_s='cp -p' 6482elif ln conf$$.file conf$$ 2>/dev/null; then 6483 as_ln_s=ln 6484else 6485 as_ln_s='cp -p' 6486fi 6487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 6488rmdir conf$$.dir 2>/dev/null 6489 6490if mkdir -p . 2>/dev/null; then 6491 as_mkdir_p=: 6492else 6493 test -d ./-p && rmdir ./-p 6494 as_mkdir_p=false 6495fi 6496 6497# Find out whether ``test -x'' works. Don't use a zero-byte file, as 6498# systems may use methods other than mode bits to determine executability. 6499cat >conf$$.file <<_ASEOF 6500#! /bin/sh 6501exit 0 6502_ASEOF 6503chmod +x conf$$.file 6504if test -x conf$$.file >/dev/null 2>&1; then 6505 as_executable_p="test -x" 6506else 6507 as_executable_p=: 6508fi 6509rm -f conf$$.file 6510 6511# Sed expression to map a string onto a valid CPP name. 6512as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 6513 6514# Sed expression to map a string onto a valid variable name. 6515as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 6516 6517 6518exec 6>&1 6519 6520# Save the log message, to keep $[0] and so on meaningful, and to 6521# report actual input values of CONFIG_FILES etc. instead of their 6522# values after options handling. 6523ac_log=" 6524This file was extended by a2png $as_me 0.1.5, which was 6525generated by GNU Autoconf 2.60. Invocation command line was 6526 6527 CONFIG_FILES = $CONFIG_FILES 6528 CONFIG_HEADERS = $CONFIG_HEADERS 6529 CONFIG_LINKS = $CONFIG_LINKS 6530 CONFIG_COMMANDS = $CONFIG_COMMANDS 6531 $ $0 $@ 6532 6533on `(hostname || uname -n) 2>/dev/null | sed 1q` 6534" 6535 6536_ACEOF 6537 6538cat >>$CONFIG_STATUS <<_ACEOF 6539# Files that config.status was made for. 6540config_files="$ac_config_files" 6541config_headers="$ac_config_headers" 6542config_commands="$ac_config_commands" 6543 6544_ACEOF 6545 6546cat >>$CONFIG_STATUS <<\_ACEOF 6547ac_cs_usage="\ 6548\`$as_me' instantiates files from templates according to the 6549current configuration. 6550 6551Usage: $0 [OPTIONS] [FILE]... 6552 6553 -h, --help print this help, then exit 6554 -V, --version print version number, then exit 6555 -q, --quiet do not print progress messages 6556 -d, --debug don't remove temporary files 6557 --recheck update $as_me by reconfiguring in the same conditions 6558 --file=FILE[:TEMPLATE] 6559 instantiate the configuration file FILE 6560 --header=FILE[:TEMPLATE] 6561 instantiate the configuration header FILE 6562 6563Configuration files: 6564$config_files 6565 6566Configuration headers: 6567$config_headers 6568 6569Configuration commands: 6570$config_commands 6571 6572Report bugs to <bug-autoconf@gnu.org>." 6573 6574_ACEOF 6575cat >>$CONFIG_STATUS <<_ACEOF 6576ac_cs_version="\\ 6577a2png config.status 0.1.5 6578configured by $0, generated by GNU Autoconf 2.60, 6579 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 6580 6581Copyright (C) 2006 Free Software Foundation, Inc. 6582This config.status script is free software; the Free Software Foundation 6583gives unlimited permission to copy, distribute and modify it." 6584 6585ac_pwd='$ac_pwd' 6586srcdir='$srcdir' 6587INSTALL='$INSTALL' 6588_ACEOF 6589 6590cat >>$CONFIG_STATUS <<\_ACEOF 6591# If no file are specified by the user, then we need to provide default 6592# value. By we need to know if files were specified by the user. 6593ac_need_defaults=: 6594while test $# != 0 6595do 6596 case $1 in 6597 --*=*) 6598 ac_option=`expr "X$1" : 'X\([^=]*\)='` 6599 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 6600 ac_shift=: 6601 ;; 6602 *) 6603 ac_option=$1 6604 ac_optarg=$2 6605 ac_shift=shift 6606 ;; 6607 esac 6608 6609 case $ac_option in 6610 # Handling of the options. 6611 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 6612 ac_cs_recheck=: ;; 6613 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 6614 echo "$ac_cs_version"; exit ;; 6615 --debug | --debu | --deb | --de | --d | -d ) 6616 debug=: ;; 6617 --file | --fil | --fi | --f ) 6618 $ac_shift 6619 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 6620 ac_need_defaults=false;; 6621 --header | --heade | --head | --hea ) 6622 $ac_shift 6623 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 6624 ac_need_defaults=false;; 6625 --he | --h) 6626 # Conflict between --help and --header 6627 { echo "$as_me: error: ambiguous option: $1 6628Try \`$0 --help' for more information." >&2 6629 { (exit 1); exit 1; }; };; 6630 --help | --hel | -h ) 6631 echo "$ac_cs_usage"; exit ;; 6632 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 6633 | -silent | --silent | --silen | --sile | --sil | --si | --s) 6634 ac_cs_silent=: ;; 6635 6636 # This is an error. 6637 -*) { echo "$as_me: error: unrecognized option: $1 6638Try \`$0 --help' for more information." >&2 6639 { (exit 1); exit 1; }; } ;; 6640 6641 *) ac_config_targets="$ac_config_targets $1" 6642 ac_need_defaults=false ;; 6643 6644 esac 6645 shift 6646done 6647 6648ac_configure_extra_args= 6649 6650if $ac_cs_silent; then 6651 exec 6>/dev/null 6652 ac_configure_extra_args="$ac_configure_extra_args --silent" 6653fi 6654 6655_ACEOF 6656cat >>$CONFIG_STATUS <<_ACEOF 6657if \$ac_cs_recheck; then 6658 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 6659 CONFIG_SHELL=$SHELL 6660 export CONFIG_SHELL 6661 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6662fi 6663 6664_ACEOF 6665cat >>$CONFIG_STATUS <<\_ACEOF 6666exec 5>>config.log 6667{ 6668 echo 6669 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6670## Running $as_me. ## 6671_ASBOX 6672 echo "$ac_log" 6673} >&5 6674 6675_ACEOF 6676cat >>$CONFIG_STATUS <<_ACEOF 6677# 6678# INIT-COMMANDS 6679# 6680AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 6681 6682_ACEOF 6683 6684cat >>$CONFIG_STATUS <<\_ACEOF 6685 6686# Handling of arguments. 6687for ac_config_target in $ac_config_targets 6688do 6689 case $ac_config_target in 6690 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 6691 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 6692 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6693 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 6694 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 6695 6696 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 6697echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 6698 { (exit 1); exit 1; }; };; 6699 esac 6700done 6701 6702 6703# If the user did not use the arguments to specify the items to instantiate, 6704# then the envvar interface is used. Set only those that are not. 6705# We use the long form for the default assignment because of an extremely 6706# bizarre bug on SunOS 4.1.3. 6707if $ac_need_defaults; then 6708 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 6709 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 6710 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 6711fi 6712 6713# Have a temporary directory for convenience. Make it in the build tree 6714# simply because there is no reason against having it here, and in addition, 6715# creating and moving files from /tmp can sometimes cause problems. 6716# Hook for its removal unless debugging. 6717# Note that there is a small window in which the directory will not be cleaned: 6718# after its creation but before its name has been assigned to `$tmp'. 6719$debug || 6720{ 6721 tmp= 6722 trap 'exit_status=$? 6723 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 6724' 0 6725 trap '{ (exit 1); exit 1; }' 1 2 13 15 6726} 6727# Create a (secure) tmp directory for tmp files. 6728 6729{ 6730 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 6731 test -n "$tmp" && test -d "$tmp" 6732} || 6733{ 6734 tmp=./conf$$-$RANDOM 6735 (umask 077 && mkdir "$tmp") 6736} || 6737{ 6738 echo "$me: cannot create a temporary directory in ." >&2 6739 { (exit 1); exit 1; } 6740} 6741 6742# 6743# Set up the sed scripts for CONFIG_FILES section. 6744# 6745 6746# No need to generate the scripts if there are no CONFIG_FILES. 6747# This happens for instance when ./config.status config.h 6748if test -n "$CONFIG_FILES"; then 6749 6750_ACEOF 6751 6752 6753 6754ac_delim='%!_!# ' 6755for ac_last_try in false false false false false :; do 6756 cat >conf$$subs.sed <<_ACEOF 6757SHELL!$SHELL$ac_delim 6758PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 6759PACKAGE_NAME!$PACKAGE_NAME$ac_delim 6760PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 6761PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 6762PACKAGE_STRING!$PACKAGE_STRING$ac_delim 6763PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 6764exec_prefix!$exec_prefix$ac_delim 6765prefix!$prefix$ac_delim 6766program_transform_name!$program_transform_name$ac_delim 6767bindir!$bindir$ac_delim 6768sbindir!$sbindir$ac_delim 6769libexecdir!$libexecdir$ac_delim 6770datarootdir!$datarootdir$ac_delim 6771datadir!$datadir$ac_delim 6772sysconfdir!$sysconfdir$ac_delim 6773sharedstatedir!$sharedstatedir$ac_delim 6774localstatedir!$localstatedir$ac_delim 6775includedir!$includedir$ac_delim 6776oldincludedir!$oldincludedir$ac_delim 6777docdir!$docdir$ac_delim 6778infodir!$infodir$ac_delim 6779htmldir!$htmldir$ac_delim 6780dvidir!$dvidir$ac_delim 6781pdfdir!$pdfdir$ac_delim 6782psdir!$psdir$ac_delim 6783libdir!$libdir$ac_delim 6784localedir!$localedir$ac_delim 6785mandir!$mandir$ac_delim 6786DEFS!$DEFS$ac_delim 6787ECHO_C!$ECHO_C$ac_delim 6788ECHO_N!$ECHO_N$ac_delim 6789ECHO_T!$ECHO_T$ac_delim 6790LIBS!$LIBS$ac_delim 6791build_alias!$build_alias$ac_delim 6792host_alias!$host_alias$ac_delim 6793target_alias!$target_alias$ac_delim 6794INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 6795INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 6796INSTALL_DATA!$INSTALL_DATA$ac_delim 6797CYGPATH_W!$CYGPATH_W$ac_delim 6798PACKAGE!$PACKAGE$ac_delim 6799VERSION!$VERSION$ac_delim 6800ACLOCAL!$ACLOCAL$ac_delim 6801AUTOCONF!$AUTOCONF$ac_delim 6802AUTOMAKE!$AUTOMAKE$ac_delim 6803AUTOHEADER!$AUTOHEADER$ac_delim 6804MAKEINFO!$MAKEINFO$ac_delim 6805install_sh!$install_sh$ac_delim 6806STRIP!$STRIP$ac_delim 6807INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 6808mkdir_p!$mkdir_p$ac_delim 6809AWK!$AWK$ac_delim 6810SET_MAKE!$SET_MAKE$ac_delim 6811am__leading_dot!$am__leading_dot$ac_delim 6812AMTAR!$AMTAR$ac_delim 6813am__tar!$am__tar$ac_delim 6814am__untar!$am__untar$ac_delim 6815CC!$CC$ac_delim 6816CFLAGS!$CFLAGS$ac_delim 6817LDFLAGS!$LDFLAGS$ac_delim 6818CPPFLAGS!$CPPFLAGS$ac_delim 6819ac_ct_CC!$ac_ct_CC$ac_delim 6820EXEEXT!$EXEEXT$ac_delim 6821OBJEXT!$OBJEXT$ac_delim 6822DEPDIR!$DEPDIR$ac_delim 6823am__include!$am__include$ac_delim 6824am__quote!$am__quote$ac_delim 6825AMDEP_TRUE!$AMDEP_TRUE$ac_delim 6826AMDEP_FALSE!$AMDEP_FALSE$ac_delim 6827AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 6828CCDEPMODE!$CCDEPMODE$ac_delim 6829am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 6830am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 6831gdlib_config!$gdlib_config$ac_delim 6832CPP!$CPP$ac_delim 6833GREP!$GREP$ac_delim 6834EGREP!$EGREP$ac_delim 6835ALLOCA!$ALLOCA$ac_delim 6836LIBOBJS!$LIBOBJS$ac_delim 6837LTLIBOBJS!$LTLIBOBJS$ac_delim 6838_ACEOF 6839 6840 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then 6841 break 6842 elif $ac_last_try; then 6843 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 6844echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 6845 { (exit 1); exit 1; }; } 6846 else 6847 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6848 fi 6849done 6850 6851ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 6852if test -n "$ac_eof"; then 6853 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 6854 ac_eof=`expr $ac_eof + 1` 6855fi 6856 6857cat >>$CONFIG_STATUS <<_ACEOF 6858cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 6859/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 6860_ACEOF 6861sed ' 6862s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 6863s/^/s,@/; s/!/@,|#_!!_#|/ 6864:n 6865t n 6866s/'"$ac_delim"'$/,g/; t 6867s/$/\\/; p 6868N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 6869' >>$CONFIG_STATUS <conf$$subs.sed 6870rm -f conf$$subs.sed 6871cat >>$CONFIG_STATUS <<_ACEOF 6872:end 6873s/|#_!!_#|//g 6874CEOF$ac_eof 6875_ACEOF 6876 6877 6878# VPATH may cause trouble with some makes, so we remove $(srcdir), 6879# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 6880# trailing colons and then remove the whole line if VPATH becomes empty 6881# (actually we leave an empty line to preserve line numbers). 6882if test "x$srcdir" = x.; then 6883 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 6884s/:*\$(srcdir):*/:/ 6885s/:*\${srcdir}:*/:/ 6886s/:*@srcdir@:*/:/ 6887s/^\([^=]*=[ ]*\):*/\1/ 6888s/:*$// 6889s/^[^=]*=[ ]*$// 6890}' 6891fi 6892 6893cat >>$CONFIG_STATUS <<\_ACEOF 6894fi # test -n "$CONFIG_FILES" 6895 6896 6897for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 6898do 6899 case $ac_tag in 6900 :[FHLC]) ac_mode=$ac_tag; continue;; 6901 esac 6902 case $ac_mode$ac_tag in 6903 :[FHL]*:*);; 6904 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 6905echo "$as_me: error: Invalid tag $ac_tag." >&2;} 6906 { (exit 1); exit 1; }; };; 6907 :[FH]-) ac_tag=-:-;; 6908 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 6909 esac 6910 ac_save_IFS=$IFS 6911 IFS=: 6912 set x $ac_tag 6913 IFS=$ac_save_IFS 6914 shift 6915 ac_file=$1 6916 shift 6917 6918 case $ac_mode in 6919 :L) ac_source=$1;; 6920 :[FH]) 6921 ac_file_inputs= 6922 for ac_f 6923 do 6924 case $ac_f in 6925 -) ac_f="$tmp/stdin";; 6926 *) # Look for the file first in the build tree, then in the source tree 6927 # (if the path is not absolute). The absolute path cannot be DOS-style, 6928 # because $ac_f cannot contain `:'. 6929 test -f "$ac_f" || 6930 case $ac_f in 6931 [\\/$]*) false;; 6932 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6933 esac || 6934 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 6935echo "$as_me: error: cannot find input file: $ac_f" >&2;} 6936 { (exit 1); exit 1; }; };; 6937 esac 6938 ac_file_inputs="$ac_file_inputs $ac_f" 6939 done 6940 6941 # Let's still pretend it is `configure' which instantiates (i.e., don't 6942 # use $as_me), people would be surprised to read: 6943 # /* config.h. Generated by config.status. */ 6944 configure_input="Generated from "`IFS=: 6945 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 6946 if test x"$ac_file" != x-; then 6947 configure_input="$ac_file. $configure_input" 6948 { echo "$as_me:$LINENO: creating $ac_file" >&5 6949echo "$as_me: creating $ac_file" >&6;} 6950 fi 6951 6952 case $ac_tag in 6953 *:-:* | *:-) cat >"$tmp/stdin";; 6954 esac 6955 ;; 6956 esac 6957 6958 ac_dir=`$as_dirname -- "$ac_file" || 6959$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6960 X"$ac_file" : 'X\(//\)[^/]' \| \ 6961 X"$ac_file" : 'X\(//\)$' \| \ 6962 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6963echo X"$ac_file" | 6964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6965 s//\1/ 6966 q 6967 } 6968 /^X\(\/\/\)[^/].*/{ 6969 s//\1/ 6970 q 6971 } 6972 /^X\(\/\/\)$/{ 6973 s//\1/ 6974 q 6975 } 6976 /^X\(\/\).*/{ 6977 s//\1/ 6978 q 6979 } 6980 s/.*/./; q'` 6981 { as_dir="$ac_dir" 6982 case $as_dir in #( 6983 -*) as_dir=./$as_dir;; 6984 esac 6985 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 6986 as_dirs= 6987 while :; do 6988 case $as_dir in #( 6989 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 6990 *) as_qdir=$as_dir;; 6991 esac 6992 as_dirs="'$as_qdir' $as_dirs" 6993 as_dir=`$as_dirname -- "$as_dir" || 6994$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6995 X"$as_dir" : 'X\(//\)[^/]' \| \ 6996 X"$as_dir" : 'X\(//\)$' \| \ 6997 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 6998echo X"$as_dir" | 6999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7000 s//\1/ 7001 q 7002 } 7003 /^X\(\/\/\)[^/].*/{ 7004 s//\1/ 7005 q 7006 } 7007 /^X\(\/\/\)$/{ 7008 s//\1/ 7009 q 7010 } 7011 /^X\(\/\).*/{ 7012 s//\1/ 7013 q 7014 } 7015 s/.*/./; q'` 7016 test -d "$as_dir" && break 7017 done 7018 test -z "$as_dirs" || eval "mkdir $as_dirs" 7019 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 7020echo "$as_me: error: cannot create directory $as_dir" >&2;} 7021 { (exit 1); exit 1; }; }; } 7022 ac_builddir=. 7023 7024case "$ac_dir" in 7025.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 7026*) 7027 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 7028 # A ".." for each directory in $ac_dir_suffix. 7029 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 7030 case $ac_top_builddir_sub in 7031 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 7032 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 7033 esac ;; 7034esac 7035ac_abs_top_builddir=$ac_pwd 7036ac_abs_builddir=$ac_pwd$ac_dir_suffix 7037# for backward compatibility: 7038ac_top_builddir=$ac_top_build_prefix 7039 7040case $srcdir in 7041 .) # We are building in place. 7042 ac_srcdir=. 7043 ac_top_srcdir=$ac_top_builddir_sub 7044 ac_abs_top_srcdir=$ac_pwd ;; 7045 [\\/]* | ?:[\\/]* ) # Absolute name. 7046 ac_srcdir=$srcdir$ac_dir_suffix; 7047 ac_top_srcdir=$srcdir 7048 ac_abs_top_srcdir=$srcdir ;; 7049 *) # Relative name. 7050 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 7051 ac_top_srcdir=$ac_top_build_prefix$srcdir 7052 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 7053esac 7054ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 7055 7056 7057 case $ac_mode in 7058 :F) 7059 # 7060 # CONFIG_FILE 7061 # 7062 7063 case $INSTALL in 7064 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 7065 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 7066 esac 7067_ACEOF 7068 7069cat >>$CONFIG_STATUS <<\_ACEOF 7070# If the template does not know about datarootdir, expand it. 7071# FIXME: This hack should be removed a few years after 2.60. 7072ac_datarootdir_hack=; ac_datarootdir_seen= 7073 7074case `sed -n '/datarootdir/ { 7075 p 7076 q 7077} 7078/@datadir@/p 7079/@docdir@/p 7080/@infodir@/p 7081/@localedir@/p 7082/@mandir@/p 7083' $ac_file_inputs` in 7084*datarootdir*) ac_datarootdir_seen=yes;; 7085*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 7086 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 7087echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 7088_ACEOF 7089cat >>$CONFIG_STATUS <<_ACEOF 7090 ac_datarootdir_hack=' 7091 s&@datadir@&$datadir&g 7092 s&@docdir@&$docdir&g 7093 s&@infodir@&$infodir&g 7094 s&@localedir@&$localedir&g 7095 s&@mandir@&$mandir&g 7096 s&\\\${datarootdir}&$datarootdir&g' ;; 7097esac 7098_ACEOF 7099 7100# Neutralize VPATH when `$srcdir' = `.'. 7101# Shell code in configure.ac might set extrasub. 7102# FIXME: do we really want to maintain this feature? 7103cat >>$CONFIG_STATUS <<_ACEOF 7104 sed "$ac_vpsub 7105$extrasub 7106_ACEOF 7107cat >>$CONFIG_STATUS <<\_ACEOF 7108:t 7109/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 7110s&@configure_input@&$configure_input&;t t 7111s&@top_builddir@&$ac_top_builddir_sub&;t t 7112s&@srcdir@&$ac_srcdir&;t t 7113s&@abs_srcdir@&$ac_abs_srcdir&;t t 7114s&@top_srcdir@&$ac_top_srcdir&;t t 7115s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 7116s&@builddir@&$ac_builddir&;t t 7117s&@abs_builddir@&$ac_abs_builddir&;t t 7118s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 7119s&@INSTALL@&$ac_INSTALL&;t t 7120$ac_datarootdir_hack 7121" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 7122 7123test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 7124 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 7125 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 7126 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7127which seems to be undefined. Please make sure it is defined." >&5 7128echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7129which seems to be undefined. Please make sure it is defined." >&2;} 7130 7131 rm -f "$tmp/stdin" 7132 case $ac_file in 7133 -) cat "$tmp/out"; rm -f "$tmp/out";; 7134 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 7135 esac 7136 ;; 7137 :H) 7138 # 7139 # CONFIG_HEADER 7140 # 7141_ACEOF 7142 7143# Transform confdefs.h into a sed script `conftest.defines', that 7144# substitutes the proper values into config.h.in to produce config.h. 7145rm -f conftest.defines conftest.tail 7146# First, append a space to every undef/define line, to ease matching. 7147echo 's/$/ /' >conftest.defines 7148# Then, protect against being on the right side of a sed subst, or in 7149# an unquoted here document, in config.status. If some macros were 7150# called several times there might be several #defines for the same 7151# symbol, which is useless. But do not sort them, since the last 7152# AC_DEFINE must be honored. 7153ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 7154# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 7155# NAME is the cpp macro being defined, VALUE is the value it is being given. 7156# PARAMS is the parameter list in the macro definition--in most cases, it's 7157# just an empty string. 7158ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 7159ac_dB='\\)[ (].*,\\1define\\2' 7160ac_dC=' ' 7161ac_dD=' ,' 7162 7163uniq confdefs.h | 7164 sed -n ' 7165 t rset 7166 :rset 7167 s/^[ ]*#[ ]*define[ ][ ]*// 7168 t ok 7169 d 7170 :ok 7171 s/[\\&,]/\\&/g 7172 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 7173 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 7174 ' >>conftest.defines 7175 7176# Remove the space that was appended to ease matching. 7177# Then replace #undef with comments. This is necessary, for 7178# example, in the case of _POSIX_SOURCE, which is predefined and required 7179# on some systems where configure will not decide to define it. 7180# (The regexp can be short, since the line contains either #define or #undef.) 7181echo 's/ $// 7182s,^[ #]*u.*,/* & */,' >>conftest.defines 7183 7184# Break up conftest.defines: 7185ac_max_sed_lines=50 7186 7187# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 7188# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 7189# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 7190# et cetera. 7191ac_in='$ac_file_inputs' 7192ac_out='"$tmp/out1"' 7193ac_nxt='"$tmp/out2"' 7194 7195while : 7196do 7197 # Write a here document: 7198 cat >>$CONFIG_STATUS <<_ACEOF 7199 # First, check the format of the line: 7200 cat >"\$tmp/defines.sed" <<\\CEOF 7201/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 7202/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 7203b 7204:def 7205_ACEOF 7206 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 7207 echo 'CEOF 7208 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 7209 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 7210 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 7211 grep . conftest.tail >/dev/null || break 7212 rm -f conftest.defines 7213 mv conftest.tail conftest.defines 7214done 7215rm -f conftest.defines conftest.tail 7216 7217echo "ac_result=$ac_in" >>$CONFIG_STATUS 7218cat >>$CONFIG_STATUS <<\_ACEOF 7219 if test x"$ac_file" != x-; then 7220 echo "/* $configure_input */" >"$tmp/config.h" 7221 cat "$ac_result" >>"$tmp/config.h" 7222 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 7223 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 7224echo "$as_me: $ac_file is unchanged" >&6;} 7225 else 7226 rm -f $ac_file 7227 mv "$tmp/config.h" $ac_file 7228 fi 7229 else 7230 echo "/* $configure_input */" 7231 cat "$ac_result" 7232 fi 7233 rm -f "$tmp/out12" 7234# Compute $ac_file's index in $config_headers. 7235_am_stamp_count=1 7236for _am_header in $config_headers :; do 7237 case $_am_header in 7238 $ac_file | $ac_file:* ) 7239 break ;; 7240 * ) 7241 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 7242 esac 7243done 7244echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 7245$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7246 X$ac_file : 'X\(//\)[^/]' \| \ 7247 X$ac_file : 'X\(//\)$' \| \ 7248 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 7249echo X$ac_file | 7250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7251 s//\1/ 7252 q 7253 } 7254 /^X\(\/\/\)[^/].*/{ 7255 s//\1/ 7256 q 7257 } 7258 /^X\(\/\/\)$/{ 7259 s//\1/ 7260 q 7261 } 7262 /^X\(\/\).*/{ 7263 s//\1/ 7264 q 7265 } 7266 s/.*/./; q'`/stamp-h$_am_stamp_count 7267 ;; 7268 7269 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 7270echo "$as_me: executing $ac_file commands" >&6;} 7271 ;; 7272 esac 7273 7274 7275 case $ac_file$ac_mode in 7276 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 7277 # Strip MF so we end up with the name of the file. 7278 mf=`echo "$mf" | sed -e 's/:.*$//'` 7279 # Check whether this is an Automake generated Makefile or not. 7280 # We used to match only the files named `Makefile.in', but 7281 # some people rename them; so instead we look at the file content. 7282 # Grep'ing the first line is not enough: some people post-process 7283 # each Makefile.in and add a new line on top of each file to say so. 7284 # So let's grep whole file. 7285 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 7286 dirpart=`$as_dirname -- "$mf" || 7287$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7288 X"$mf" : 'X\(//\)[^/]' \| \ 7289 X"$mf" : 'X\(//\)$' \| \ 7290 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 7291echo X"$mf" | 7292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7293 s//\1/ 7294 q 7295 } 7296 /^X\(\/\/\)[^/].*/{ 7297 s//\1/ 7298 q 7299 } 7300 /^X\(\/\/\)$/{ 7301 s//\1/ 7302 q 7303 } 7304 /^X\(\/\).*/{ 7305 s//\1/ 7306 q 7307 } 7308 s/.*/./; q'` 7309 else 7310 continue 7311 fi 7312 # Extract the definition of DEPDIR, am__include, and am__quote 7313 # from the Makefile without running `make'. 7314 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 7315 test -z "$DEPDIR" && continue 7316 am__include=`sed -n 's/^am__include = //p' < "$mf"` 7317 test -z "am__include" && continue 7318 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 7319 # When using ansi2knr, U may be empty or an underscore; expand it 7320 U=`sed -n 's/^U = //p' < "$mf"` 7321 # Find all dependency output files, they are included files with 7322 # $(DEPDIR) in their names. We invoke sed twice because it is the 7323 # simplest approach to changing $(DEPDIR) to its actual value in the 7324 # expansion. 7325 for file in `sed -n " 7326 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 7327 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 7328 # Make sure the directory exists. 7329 test -f "$dirpart/$file" && continue 7330 fdir=`$as_dirname -- "$file" || 7331$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7332 X"$file" : 'X\(//\)[^/]' \| \ 7333 X"$file" : 'X\(//\)$' \| \ 7334 X"$file" : 'X\(/\)' \| . 2>/dev/null || 7335echo X"$file" | 7336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7337 s//\1/ 7338 q 7339 } 7340 /^X\(\/\/\)[^/].*/{ 7341 s//\1/ 7342 q 7343 } 7344 /^X\(\/\/\)$/{ 7345 s//\1/ 7346 q 7347 } 7348 /^X\(\/\).*/{ 7349 s//\1/ 7350 q 7351 } 7352 s/.*/./; q'` 7353 { as_dir=$dirpart/$fdir 7354 case $as_dir in #( 7355 -*) as_dir=./$as_dir;; 7356 esac 7357 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 7358 as_dirs= 7359 while :; do 7360 case $as_dir in #( 7361 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 7362 *) as_qdir=$as_dir;; 7363 esac 7364 as_dirs="'$as_qdir' $as_dirs" 7365 as_dir=`$as_dirname -- "$as_dir" || 7366$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7367 X"$as_dir" : 'X\(//\)[^/]' \| \ 7368 X"$as_dir" : 'X\(//\)$' \| \ 7369 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 7370echo X"$as_dir" | 7371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7372 s//\1/ 7373 q 7374 } 7375 /^X\(\/\/\)[^/].*/{ 7376 s//\1/ 7377 q 7378 } 7379 /^X\(\/\/\)$/{ 7380 s//\1/ 7381 q 7382 } 7383 /^X\(\/\).*/{ 7384 s//\1/ 7385 q 7386 } 7387 s/.*/./; q'` 7388 test -d "$as_dir" && break 7389 done 7390 test -z "$as_dirs" || eval "mkdir $as_dirs" 7391 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 7392echo "$as_me: error: cannot create directory $as_dir" >&2;} 7393 { (exit 1); exit 1; }; }; } 7394 # echo "creating $dirpart/$file" 7395 echo '# dummy' > "$dirpart/$file" 7396 done 7397done 7398 ;; 7399 7400 esac 7401done # for ac_tag 7402 7403 7404{ (exit 0); exit 0; } 7405_ACEOF 7406chmod +x $CONFIG_STATUS 7407ac_clean_files=$ac_clean_files_save 7408 7409 7410# configure is writing to config.log, and then calls config.status. 7411# config.status does its own redirection, appending to config.log. 7412# Unfortunately, on DOS this fails, as config.log is still kept open 7413# by configure, so config.status won't be able to write to it; its 7414# output is simply discarded. So we exec the FD to /dev/null, 7415# effectively closing config.log, so it can be properly (re)opened and 7416# appended to by config.status. When coming back to configure, we 7417# need to make the FD available again. 7418if test "$no_create" != yes; then 7419 ac_cs_success=: 7420 ac_config_status_args= 7421 test "$silent" = yes && 7422 ac_config_status_args="$ac_config_status_args --quiet" 7423 exec 5>/dev/null 7424 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 7425 exec 5>>config.log 7426 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 7427 # would make configure fail if this is the last instruction. 7428 $ac_cs_success || { (exit 1); exit 1; } 7429fi 7430 7431 7432echo "" 7433echo "Build settings:" 7434echo "" 7435echo "Use cairo graphics ........ $enable_cairo" 7436echo "Use gdlib ................. $enable_gd" 7437echo "" 7438echo "CFLAGS = $CFLAGS" 7439echo "CPPFLAGS = $CPPFLAGS" 7440echo "LDFLAGS = $LDFLAGS" 7441echo "" 7442echo "You can now make a2png and test it by typing: make check" 7443