2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for ccache-swig 0.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME='ccache-swig'
574 PACKAGE_TARNAME='ccache-swig'
575 PACKAGE_VERSION='0.0'
576 PACKAGE_STRING='ccache-swig 0.0'
579 ac_unique_file="ccache.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
669 ac_precious_vars='build_alias
680 # Initialize some variables set by options.
682 ac_init_version=false
683 # The variables have the same names as the options, with
684 # dashes changed to underlines.
692 program_transform_name=s,x,x,
700 # Installation directory options.
701 # These are left unexpanded so users can "make install exec_prefix=/foo"
702 # and all the variables that are supposed to be based on exec_prefix
703 # by default will actually change.
704 # Use braces instead of parens because sh, perl, etc. also accept them.
705 # (The list follows the same order as the GNU Coding Standards.)
706 bindir='${exec_prefix}/bin'
707 sbindir='${exec_prefix}/sbin'
708 libexecdir='${exec_prefix}/libexec'
709 datarootdir='${prefix}/share'
710 datadir='${datarootdir}'
711 sysconfdir='${prefix}/etc'
712 sharedstatedir='${prefix}/com'
713 localstatedir='${prefix}/var'
714 includedir='${prefix}/include'
715 oldincludedir='/usr/include'
716 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
717 infodir='${datarootdir}/info'
722 libdir='${exec_prefix}/lib'
723 localedir='${datarootdir}/locale'
724 mandir='${datarootdir}/man'
730 # If the previous option needs an argument, assign it.
731 if test -n "$ac_prev"; then
732 eval $ac_prev=\$ac_option
738 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
742 # Accept the important Cygnus configure options, so we can diagnose typos.
744 case $ac_dashdash$ac_option in
748 -bindir | --bindir | --bindi | --bind | --bin | --bi)
750 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
753 -build | --build | --buil | --bui | --bu)
754 ac_prev=build_alias ;;
755 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
756 build_alias=$ac_optarg ;;
758 -cache-file | --cache-file | --cache-fil | --cache-fi \
759 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
760 ac_prev=cache_file ;;
761 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
762 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
763 cache_file=$ac_optarg ;;
766 cache_file=config.cache ;;
768 -datadir | --datadir | --datadi | --datad)
770 -datadir=* | --datadir=* | --datadi=* | --datad=*)
771 datadir=$ac_optarg ;;
773 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
774 | --dataroo | --dataro | --datar)
775 ac_prev=datarootdir ;;
776 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
777 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
778 datarootdir=$ac_optarg ;;
780 -disable-* | --disable-*)
781 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
785 { (exit 1); exit 1; }; }
786 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
787 eval enable_$ac_feature=no ;;
789 -docdir | --docdir | --docdi | --doc | --do)
791 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
794 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
796 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
799 -enable-* | --enable-*)
800 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
801 # Reject names that are not valid shell variable names.
802 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
804 { (exit 1); exit 1; }; }
805 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
806 eval enable_$ac_feature=\$ac_optarg ;;
808 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
809 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
810 | --exec | --exe | --ex)
811 ac_prev=exec_prefix ;;
812 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
813 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
814 | --exec=* | --exe=* | --ex=*)
815 exec_prefix=$ac_optarg ;;
817 -gas | --gas | --ga | --g)
818 # Obsolete; use --with-gas.
821 -help | --help | --hel | --he | -h)
823 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
824 ac_init_help=recursive ;;
825 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
826 ac_init_help=short ;;
828 -host | --host | --hos | --ho)
829 ac_prev=host_alias ;;
830 -host=* | --host=* | --hos=* | --ho=*)
831 host_alias=$ac_optarg ;;
833 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
835 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
837 htmldir=$ac_optarg ;;
839 -includedir | --includedir | --includedi | --included | --include \
840 | --includ | --inclu | --incl | --inc)
841 ac_prev=includedir ;;
842 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
843 | --includ=* | --inclu=* | --incl=* | --inc=*)
844 includedir=$ac_optarg ;;
846 -infodir | --infodir | --infodi | --infod | --info | --inf)
848 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
849 infodir=$ac_optarg ;;
851 -libdir | --libdir | --libdi | --libd)
853 -libdir=* | --libdir=* | --libdi=* | --libd=*)
856 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
857 | --libexe | --libex | --libe)
858 ac_prev=libexecdir ;;
859 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
860 | --libexe=* | --libex=* | --libe=*)
861 libexecdir=$ac_optarg ;;
863 -localedir | --localedir | --localedi | --localed | --locale)
865 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
866 localedir=$ac_optarg ;;
868 -localstatedir | --localstatedir | --localstatedi | --localstated \
869 | --localstate | --localstat | --localsta | --localst | --locals)
870 ac_prev=localstatedir ;;
871 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
872 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
873 localstatedir=$ac_optarg ;;
875 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
877 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
881 # Obsolete; use --without-fp.
884 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
885 | --no-cr | --no-c | -n)
888 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
889 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
892 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
893 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
894 | --oldin | --oldi | --old | --ol | --o)
895 ac_prev=oldincludedir ;;
896 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
897 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
898 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
899 oldincludedir=$ac_optarg ;;
901 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
903 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
906 -program-prefix | --program-prefix | --program-prefi | --program-pref \
907 | --program-pre | --program-pr | --program-p)
908 ac_prev=program_prefix ;;
909 -program-prefix=* | --program-prefix=* | --program-prefi=* \
910 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
911 program_prefix=$ac_optarg ;;
913 -program-suffix | --program-suffix | --program-suffi | --program-suff \
914 | --program-suf | --program-su | --program-s)
915 ac_prev=program_suffix ;;
916 -program-suffix=* | --program-suffix=* | --program-suffi=* \
917 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
918 program_suffix=$ac_optarg ;;
920 -program-transform-name | --program-transform-name \
921 | --program-transform-nam | --program-transform-na \
922 | --program-transform-n | --program-transform- \
923 | --program-transform | --program-transfor \
924 | --program-transfo | --program-transf \
925 | --program-trans | --program-tran \
926 | --progr-tra | --program-tr | --program-t)
927 ac_prev=program_transform_name ;;
928 -program-transform-name=* | --program-transform-name=* \
929 | --program-transform-nam=* | --program-transform-na=* \
930 | --program-transform-n=* | --program-transform-=* \
931 | --program-transform=* | --program-transfor=* \
932 | --program-transfo=* | --program-transf=* \
933 | --program-trans=* | --program-tran=* \
934 | --progr-tra=* | --program-tr=* | --program-t=*)
935 program_transform_name=$ac_optarg ;;
937 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
939 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
942 -psdir | --psdir | --psdi | --psd | --ps)
944 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
948 | -silent | --silent | --silen | --sile | --sil)
951 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
953 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
955 sbindir=$ac_optarg ;;
957 -sharedstatedir | --sharedstatedir | --sharedstatedi \
958 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
959 | --sharedst | --shareds | --shared | --share | --shar \
961 ac_prev=sharedstatedir ;;
962 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
963 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
964 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
966 sharedstatedir=$ac_optarg ;;
968 -site | --site | --sit)
970 -site=* | --site=* | --sit=*)
973 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
975 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
978 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
979 | --syscon | --sysco | --sysc | --sys | --sy)
980 ac_prev=sysconfdir ;;
981 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
982 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
983 sysconfdir=$ac_optarg ;;
985 -target | --target | --targe | --targ | --tar | --ta | --t)
986 ac_prev=target_alias ;;
987 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
988 target_alias=$ac_optarg ;;
990 -v | -verbose | --verbose | --verbos | --verbo | --verb)
993 -version | --version | --versio | --versi | --vers | -V)
997 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1000 { echo "$as_me: error: invalid package name: $ac_package" >&2
1001 { (exit 1); exit 1; }; }
1002 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1003 eval with_$ac_package=\$ac_optarg ;;
1005 -without-* | --without-*)
1006 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1009 { echo "$as_me: error: invalid package name: $ac_package" >&2
1010 { (exit 1); exit 1; }; }
1011 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1012 eval with_$ac_package=no ;;
1015 # Obsolete; use --with-x.
1018 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1019 | --x-incl | --x-inc | --x-in | --x-i)
1020 ac_prev=x_includes ;;
1021 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1022 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1023 x_includes=$ac_optarg ;;
1025 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1026 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1027 ac_prev=x_libraries ;;
1028 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1029 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1030 x_libraries=$ac_optarg ;;
1032 -*) { echo "$as_me: error: unrecognized option: $ac_option
1033 Try \`$0 --help' for more information." >&2
1034 { (exit 1); exit 1; }; }
1038 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1041 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1042 { (exit 1); exit 1; }; }
1043 eval $ac_envvar=\$ac_optarg
1044 export $ac_envvar ;;
1047 # FIXME: should be removed in autoconf 3.0.
1048 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1049 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1050 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1051 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1057 if test -n "$ac_prev"; then
1058 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1059 { echo "$as_me: error: missing argument to $ac_option" >&2
1060 { (exit 1); exit 1; }; }
1063 # Be sure to have absolute directory names.
1064 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1065 datadir sysconfdir sharedstatedir localstatedir includedir \
1066 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1067 libdir localedir mandir
1069 eval ac_val=\$$ac_var
1071 [\\/$]* | ?:[\\/]* ) continue;;
1072 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1074 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1075 { (exit 1); exit 1; }; }
1078 # There might be people who depend on the old broken behavior: `$host'
1079 # used to hold the argument of --host etc.
1080 # FIXME: To remove some day.
1083 target=$target_alias
1085 # FIXME: To remove some day.
1086 if test "x$host_alias" != x; then
1087 if test "x$build_alias" = x; then
1088 cross_compiling=maybe
1089 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1090 If a cross compiler is detected then cross compile mode will be used." >&2
1091 elif test "x$build_alias" != "x$host_alias"; then
1097 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1099 test "$silent" = yes && exec 6>/dev/null
1102 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1103 ac_ls_di=`ls -di .` &&
1104 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1105 { echo "$as_me: error: Working directory cannot be determined" >&2
1106 { (exit 1); exit 1; }; }
1107 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1108 { echo "$as_me: error: pwd does not report name of working directory" >&2
1109 { (exit 1); exit 1; }; }
1112 # Find the source files, if location was not specified.
1113 if test -z "$srcdir"; then
1114 ac_srcdir_defaulted=yes
1115 # Try the directory containing this script, then the parent directory.
1116 ac_confdir=`$as_dirname -- "$0" ||
1117 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1118 X"$0" : 'X\(//\)[^/]' \| \
1119 X"$0" : 'X\(//\)$' \| \
1120 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1140 if test ! -r "$srcdir/$ac_unique_file"; then
1144 ac_srcdir_defaulted=no
1146 if test ! -r "$srcdir/$ac_unique_file"; then
1147 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1148 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1149 { (exit 1); exit 1; }; }
1151 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1153 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1154 { (exit 1); exit 1; }; }
1156 # When building in place, set srcdir=.
1157 if test "$ac_abs_confdir" = "$ac_pwd"; then
1160 # Remove unnecessary trailing slashes from srcdir.
1161 # Double slashes in file names in object file debugging info
1162 # mess up M-x gdb in Emacs.
1164 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1166 for ac_var in $ac_precious_vars; do
1167 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1168 eval ac_env_${ac_var}_value=\$${ac_var}
1169 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1170 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1174 # Report the --help message.
1176 if test "$ac_init_help" = "long"; then
1177 # Omit some internal or obsolete options to make the list less imposing.
1178 # This message is too long to be a string in the A/UX 3.1 sh.
1180 \`configure' configures ccache-swig 0.0 to adapt to many kinds of systems.
1182 Usage: $0 [OPTION]... [VAR=VALUE]...
1184 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1185 VAR=VALUE. See below for descriptions of some of the useful variables.
1187 Defaults for the options are specified in brackets.
1190 -h, --help display this help and exit
1191 --help=short display options specific to this package
1192 --help=recursive display the short help of all the included packages
1193 -V, --version display version information and exit
1194 -q, --quiet, --silent do not print \`checking...' messages
1195 --cache-file=FILE cache test results in FILE [disabled]
1196 -C, --config-cache alias for \`--cache-file=config.cache'
1197 -n, --no-create do not create output files
1198 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1200 Installation directories:
1201 --prefix=PREFIX install architecture-independent files in PREFIX
1202 [$ac_default_prefix]
1203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1206 By default, \`make install' will install all the files in
1207 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1208 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1209 for instance \`--prefix=\$HOME'.
1211 For better control, use the options below.
1213 Fine tuning of the installation directories:
1214 --bindir=DIR user executables [EPREFIX/bin]
1215 --sbindir=DIR system admin executables [EPREFIX/sbin]
1216 --libexecdir=DIR program executables [EPREFIX/libexec]
1217 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1218 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1219 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1220 --libdir=DIR object code libraries [EPREFIX/lib]
1221 --includedir=DIR C header files [PREFIX/include]
1222 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1223 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1224 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1225 --infodir=DIR info documentation [DATAROOTDIR/info]
1226 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1227 --mandir=DIR man documentation [DATAROOTDIR/man]
1228 --docdir=DIR documentation root [DATAROOTDIR/doc/ccache-swig]
1229 --htmldir=DIR html documentation [DOCDIR]
1230 --dvidir=DIR dvi documentation [DOCDIR]
1231 --pdfdir=DIR pdf documentation [DOCDIR]
1232 --psdir=DIR ps documentation [DOCDIR]
1238 --program-prefix=PREFIX prepend PREFIX to installed program names
1239 --program-suffix=SUFFIX append SUFFIX to installed program names
1240 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1244 if test -n "$ac_init_help"; then
1245 case $ac_init_help in
1246 short | recursive ) echo "Configuration of ccache-swig 0.0:";;
1251 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1252 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1253 --enable-zlib enable zlib support for ccache compression
1255 Some influential environment variables:
1256 CC C compiler command
1257 CFLAGS C compiler flags
1258 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1259 nonstandard directory <lib dir>
1260 LIBS libraries to pass to the linker, e.g. -l<library>
1261 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1262 you have headers in a nonstandard directory <include dir>
1265 Use these variables to override the choices made by `configure' or to help
1266 it to find libraries and programs with nonstandard names/locations.
1272 if test "$ac_init_help" = "recursive"; then
1273 # If there are subdirs, report their specific --help.
1274 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1275 test -d "$ac_dir" || continue
1279 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1281 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1282 # A ".." for each directory in $ac_dir_suffix.
1283 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1284 case $ac_top_builddir_sub in
1285 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1286 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1289 ac_abs_top_builddir=$ac_pwd
1290 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1291 # for backward compatibility:
1292 ac_top_builddir=$ac_top_build_prefix
1295 .) # We are building in place.
1297 ac_top_srcdir=$ac_top_builddir_sub
1298 ac_abs_top_srcdir=$ac_pwd ;;
1299 [\\/]* | ?:[\\/]* ) # Absolute name.
1300 ac_srcdir=$srcdir$ac_dir_suffix;
1301 ac_top_srcdir=$srcdir
1302 ac_abs_top_srcdir=$srcdir ;;
1304 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1305 ac_top_srcdir=$ac_top_build_prefix$srcdir
1306 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1308 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1310 cd "$ac_dir" || { ac_status=$?; continue; }
1311 # Check for guested configure.
1312 if test -f "$ac_srcdir/configure.gnu"; then
1314 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1315 elif test -f "$ac_srcdir/configure"; then
1317 $SHELL "$ac_srcdir/configure" --help=recursive
1319 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1321 cd "$ac_pwd" || { ac_status=$?; break; }
1325 test -n "$ac_init_help" && exit $ac_status
1326 if $ac_init_version; then
1328 ccache-swig configure 0.0
1329 generated by GNU Autoconf 2.61
1331 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1332 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1333 This configure script is free software; the Free Software Foundation
1334 gives unlimited permission to copy, distribute and modify it.
1338 cat >config.log <<_ACEOF
1339 This file contains any messages produced by compilers while
1340 running configure, to aid debugging if configure makes a mistake.
1342 It was created by ccache-swig $as_me 0.0, which was
1343 generated by GNU Autoconf 2.61. Invocation command line was
1355 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1356 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1357 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1358 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1359 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1361 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1362 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1364 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1365 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1366 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1367 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1368 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1369 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1370 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1378 test -z "$as_dir" && as_dir=.
1379 echo "PATH: $as_dir"
1395 # Keep a trace of the command line.
1396 # Strip out --no-create and --no-recursion so they do not pile up.
1397 # Strip out --silent because we don't want to record it for future runs.
1398 # Also quote any args containing shell meta-characters.
1399 # Make two passes to allow for proper duplicate-argument suppression.
1403 ac_must_keep_next=false
1409 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1410 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1411 | -silent | --silent | --silen | --sile | --sil)
1414 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1417 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1419 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1420 if test $ac_must_keep_next = true; then
1421 ac_must_keep_next=false # Got value, back to normal.
1424 *=* | --config-cache | -C | -disable-* | --disable-* \
1425 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1426 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1427 | -with-* | --with-* | -without-* | --without-* | --x)
1428 case "$ac_configure_args0 " in
1429 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1432 -* ) ac_must_keep_next=true ;;
1435 ac_configure_args="$ac_configure_args '$ac_arg'"
1440 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1441 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1443 # When interrupted or exit'd, cleanup temporary files, and complete
1444 # config.log. We remove comments because anyway the quotes in there
1445 # would cause problems or look ugly.
1446 # WARNING: Use '\'' to represent an apostrophe within the trap.
1447 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1448 trap 'exit_status=$?
1449 # Save into config.log some information that might help in debugging.
1454 ## ---------------- ##
1455 ## Cache variables. ##
1456 ## ---------------- ##
1459 # The following way of writing the cache mishandles newlines in values,
1461 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1462 eval ac_val=\$$ac_var
1466 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1467 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1470 _ | IFS | as_nl) ;; #(
1471 *) $as_unset $ac_var ;;
1476 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1477 *${as_nl}ac_space=\ *)
1479 "s/'\''/'\''\\\\'\'''\''/g;
1480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1483 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1491 ## ----------------- ##
1492 ## Output variables. ##
1493 ## ----------------- ##
1496 for ac_var in $ac_subst_vars
1498 eval ac_val=\$$ac_var
1500 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1502 echo "$ac_var='\''$ac_val'\''"
1506 if test -n "$ac_subst_files"; then
1508 ## ------------------- ##
1509 ## File substitutions. ##
1510 ## ------------------- ##
1513 for ac_var in $ac_subst_files
1515 eval ac_val=\$$ac_var
1517 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1519 echo "$ac_var='\''$ac_val'\''"
1524 if test -s confdefs.h; then
1534 test "$ac_signal" != 0 &&
1535 echo "$as_me: caught signal $ac_signal"
1536 echo "$as_me: exit $exit_status"
1538 rm -f core *.core core.conftest.* &&
1539 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1542 for ac_signal in 1 2 13 15; do
1543 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1547 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1548 rm -f -r conftest* confdefs.h
1550 # Predefined preprocessor variables.
1552 cat >>confdefs.h <<_ACEOF
1553 #define PACKAGE_NAME "$PACKAGE_NAME"
1557 cat >>confdefs.h <<_ACEOF
1558 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1562 cat >>confdefs.h <<_ACEOF
1563 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1567 cat >>confdefs.h <<_ACEOF
1568 #define PACKAGE_STRING "$PACKAGE_STRING"
1572 cat >>confdefs.h <<_ACEOF
1573 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1577 # Let the site file select an alternate cache file if it wants to.
1578 # Prefer explicitly selected file to automatically selected ones.
1579 if test -n "$CONFIG_SITE"; then
1580 set x "$CONFIG_SITE"
1581 elif test "x$prefix" != xNONE; then
1582 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1584 set x "$ac_default_prefix/share/config.site" \
1585 "$ac_default_prefix/etc/config.site"
1590 if test -r "$ac_site_file"; then
1591 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1592 echo "$as_me: loading site script $ac_site_file" >&6;}
1593 sed 's/^/| /' "$ac_site_file" >&5
1598 if test -r "$cache_file"; then
1599 # Some versions of bash will fail to source /dev/null (special
1600 # files actually), so we avoid doing that.
1601 if test -f "$cache_file"; then
1602 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1603 echo "$as_me: loading cache $cache_file" >&6;}
1605 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1606 *) . "./$cache_file";;
1610 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1611 echo "$as_me: creating cache $cache_file" >&6;}
1615 # Check that the precious variables saved in the cache have kept the same
1617 ac_cache_corrupted=false
1618 for ac_var in $ac_precious_vars; do
1619 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1620 eval ac_new_set=\$ac_env_${ac_var}_set
1621 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1622 eval ac_new_val=\$ac_env_${ac_var}_value
1623 case $ac_old_set,$ac_new_set in
1625 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1626 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1627 ac_cache_corrupted=: ;;
1629 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1630 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1631 ac_cache_corrupted=: ;;
1634 if test "x$ac_old_val" != "x$ac_new_val"; then
1635 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1636 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1637 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1638 echo "$as_me: former value: $ac_old_val" >&2;}
1639 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1640 echo "$as_me: current value: $ac_new_val" >&2;}
1641 ac_cache_corrupted=:
1644 # Pass precious variables to config.status.
1645 if test "$ac_new_set" = set; then
1647 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1648 *) ac_arg=$ac_var=$ac_new_val ;;
1650 case " $ac_configure_args " in
1651 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1652 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1656 if $ac_cache_corrupted; then
1657 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1658 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1659 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1660 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1661 { (exit 1); exit 1; }; }
1689 ac_cpp='$CPP $CPPFLAGS'
1690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1694 # Get version from SWIG in ccache_swig_config.h.in
1698 { echo "$as_me:$LINENO: Configuring ccache" >&5
1699 echo "$as_me: Configuring ccache" >&6;}
1701 ac_config_headers="$ac_config_headers config.h"
1705 ac_cpp='$CPP $CPPFLAGS'
1706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1709 if test -n "$ac_tool_prefix"; then
1710 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1711 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1714 if test "${ac_cv_prog_CC+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1717 if test -n "$CC"; then
1718 ac_cv_prog_CC="$CC" # Let the user override the test.
1720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724 test -z "$as_dir" && as_dir=.
1725 for ac_exec_ext in '' $ac_executable_extensions; do
1726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1727 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738 if test -n "$CC"; then
1739 { echo "$as_me:$LINENO: result: $CC" >&5
1740 echo "${ECHO_T}$CC" >&6; }
1742 { echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6; }
1748 if test -z "$ac_cv_prog_CC"; then
1750 # Extract the first word of "gcc", so it can be a program name with args.
1751 set dummy gcc; ac_word=$2
1752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1754 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1755 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 if test -n "$ac_ct_CC"; then
1758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 test -z "$as_dir" && as_dir=.
1765 for ac_exec_ext in '' $ac_executable_extensions; do
1766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1767 ac_cv_prog_ac_ct_CC="gcc"
1768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1778 if test -n "$ac_ct_CC"; then
1779 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1780 echo "${ECHO_T}$ac_ct_CC" >&6; }
1782 { echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6; }
1786 if test "x$ac_ct_CC" = x; then
1789 case $cross_compiling:$ac_tool_warned in
1791 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1792 whose name does not start with the host triplet. If you think this
1793 configuration is useful to you, please write to autoconf@gnu.org." >&5
1794 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1795 whose name does not start with the host triplet. If you think this
1796 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1797 ac_tool_warned=yes ;;
1805 if test -z "$CC"; then
1806 if test -n "$ac_tool_prefix"; then
1807 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1808 set dummy ${ac_tool_prefix}cc; ac_word=$2
1809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1811 if test "${ac_cv_prog_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 if test -n "$CC"; then
1815 ac_cv_prog_CC="$CC" # Let the user override the test.
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1824 ac_cv_prog_CC="${ac_tool_prefix}cc"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835 if test -n "$CC"; then
1836 { echo "$as_me:$LINENO: result: $CC" >&5
1837 echo "${ECHO_T}$CC" >&6; }
1839 { echo "$as_me:$LINENO: result: no" >&5
1840 echo "${ECHO_T}no" >&6; }
1846 if test -z "$CC"; then
1847 # Extract the first word of "cc", so it can be a program name with args.
1848 set dummy cc; ac_word=$2
1849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1851 if test "${ac_cv_prog_CC+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 if test -n "$CC"; then
1855 ac_cv_prog_CC="$CC" # Let the user override the test.
1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862 test -z "$as_dir" && as_dir=.
1863 for ac_exec_ext in '' $ac_executable_extensions; do
1864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1865 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1866 ac_prog_rejected=yes
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 if test $ac_prog_rejected = yes; then
1878 # We found a bogon in the path, so make sure we never use it.
1879 set dummy $ac_cv_prog_CC
1881 if test $# != 0; then
1882 # We chose a different compiler from the bogus one.
1883 # However, it has the same basename, so the bogon will be chosen
1884 # first if we set CC to just the basename; use the full file name.
1886 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1892 if test -n "$CC"; then
1893 { echo "$as_me:$LINENO: result: $CC" >&5
1894 echo "${ECHO_T}$CC" >&6; }
1896 { echo "$as_me:$LINENO: result: no" >&5
1897 echo "${ECHO_T}no" >&6; }
1902 if test -z "$CC"; then
1903 if test -n "$ac_tool_prefix"; then
1904 for ac_prog in cl.exe
1906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1907 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1910 if test "${ac_cv_prog_CC+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 if test -n "$CC"; then
1914 ac_cv_prog_CC="$CC" # Let the user override the test.
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 test -z "$as_dir" && as_dir=.
1921 for ac_exec_ext in '' $ac_executable_extensions; do
1922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1923 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 if test -n "$CC"; then
1935 { echo "$as_me:$LINENO: result: $CC" >&5
1936 echo "${ECHO_T}$CC" >&6; }
1938 { echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6; }
1943 test -n "$CC" && break
1946 if test -z "$CC"; then
1948 for ac_prog in cl.exe
1950 # Extract the first word of "$ac_prog", so it can be a program name with args.
1951 set dummy $ac_prog; ac_word=$2
1952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 if test -n "$ac_ct_CC"; then
1958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 test -z "$as_dir" && as_dir=.
1965 for ac_exec_ext in '' $ac_executable_extensions; do
1966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1967 ac_cv_prog_ac_ct_CC="$ac_prog"
1968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1978 if test -n "$ac_ct_CC"; then
1979 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1980 echo "${ECHO_T}$ac_ct_CC" >&6; }
1982 { echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6; }
1987 test -n "$ac_ct_CC" && break
1990 if test "x$ac_ct_CC" = x; then
1993 case $cross_compiling:$ac_tool_warned in
1995 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1996 whose name does not start with the host triplet. If you think this
1997 configuration is useful to you, please write to autoconf@gnu.org." >&5
1998 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1999 whose name does not start with the host triplet. If you think this
2000 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2001 ac_tool_warned=yes ;;
2010 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2011 See \`config.log' for more details." >&5
2012 echo "$as_me: error: no acceptable C compiler found in \$PATH
2013 See \`config.log' for more details." >&2;}
2014 { (exit 1); exit 1; }; }
2016 # Provide some information about the compiler.
2017 echo "$as_me:$LINENO: checking for C compiler version" >&5
2018 ac_compiler=`set X $ac_compile; echo $2`
2019 { (ac_try="$ac_compiler --version >&5"
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2025 (eval "$ac_compiler --version >&5") 2>&5
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); }
2029 { (ac_try="$ac_compiler -v >&5"
2031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032 *) ac_try_echo=$ac_try;;
2034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2035 (eval "$ac_compiler -v >&5") 2>&5
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }
2039 { (ac_try="$ac_compiler -V >&5"
2041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2042 *) ac_try_echo=$ac_try;;
2044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2045 (eval "$ac_compiler -V >&5") 2>&5
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }
2050 cat >conftest.$ac_ext <<_ACEOF
2053 cat confdefs.h >>conftest.$ac_ext
2054 cat >>conftest.$ac_ext <<_ACEOF
2055 /* end confdefs.h. */
2065 ac_clean_files_save=$ac_clean_files
2066 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2067 # Try to create an executable without -o first, disregard a.out.
2068 # It will help us diagnose broken compilers, and finding out an intuition
2070 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2071 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2072 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2074 # List of possible output files, starting from the most likely.
2075 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2076 # only as a last resort. b.out is created by i960 compilers.
2077 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2079 # The IRIX 6 linker writes into existing files which may not be
2080 # executable, retaining their permissions. Remove them first so a
2081 # subsequent execution test works.
2083 for ac_file in $ac_files
2086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2087 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2092 if { (ac_try="$ac_link_default"
2094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2095 *) ac_try_echo=$ac_try;;
2097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2098 (eval "$ac_link_default") 2>&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }; then
2102 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2103 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2104 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2105 # so that the user can short-circuit this test for compilers unknown to
2107 for ac_file in $ac_files ''
2109 test -f "$ac_file" || continue
2111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2114 # We found the default executable, but exeext='' is most
2118 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2120 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2122 # We set ac_cv_exeext here because the later test for it is not
2123 # safe: cross compilers may not add the suffix if given an `-o'
2124 # argument, so we may need to know it at that point already.
2125 # Even if this section looks crufty: it has the advantage of
2132 test "$ac_cv_exeext" = no && ac_cv_exeext=
2138 { echo "$as_me:$LINENO: result: $ac_file" >&5
2139 echo "${ECHO_T}$ac_file" >&6; }
2140 if test -z "$ac_file"; then
2141 echo "$as_me: failed program was:" >&5
2142 sed 's/^/| /' conftest.$ac_ext >&5
2144 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2145 See \`config.log' for more details." >&5
2146 echo "$as_me: error: C compiler cannot create executables
2147 See \`config.log' for more details." >&2;}
2148 { (exit 77); exit 77; }; }
2151 ac_exeext=$ac_cv_exeext
2153 # Check that the compiler produces executables we can run. If not, either
2154 # the compiler is broken, or we cross compile.
2155 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2156 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2157 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2158 # If not cross compiling, check that we can run a simple program.
2159 if test "$cross_compiling" != yes; then
2160 if { ac_try='./$ac_file'
2161 { (case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2166 (eval "$ac_try") 2>&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; }; then
2172 if test "$cross_compiling" = maybe; then
2175 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2176 If you meant to cross compile, use \`--host'.
2177 See \`config.log' for more details." >&5
2178 echo "$as_me: error: cannot run C compiled programs.
2179 If you meant to cross compile, use \`--host'.
2180 See \`config.log' for more details." >&2;}
2181 { (exit 1); exit 1; }; }
2185 { echo "$as_me:$LINENO: result: yes" >&5
2186 echo "${ECHO_T}yes" >&6; }
2188 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2189 ac_clean_files=$ac_clean_files_save
2190 # Check that the compiler produces executables we can run. If not, either
2191 # the compiler is broken, or we cross compile.
2192 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2193 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2194 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2195 echo "${ECHO_T}$cross_compiling" >&6; }
2197 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2198 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2199 if { (ac_try="$ac_link"
2201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2202 *) ac_try_echo=$ac_try;;
2204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2205 (eval "$ac_link") 2>&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; then
2209 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2210 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2211 # work properly (i.e., refer to `conftest.exe'), while it won't with
2213 for ac_file in conftest.exe conftest conftest.*; do
2214 test -f "$ac_file" || continue
2216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2217 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2223 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2224 See \`config.log' for more details." >&5
2225 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2226 See \`config.log' for more details." >&2;}
2227 { (exit 1); exit 1; }; }
2230 rm -f conftest$ac_cv_exeext
2231 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2232 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2234 rm -f conftest.$ac_ext
2235 EXEEXT=$ac_cv_exeext
2237 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2238 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2239 if test "${ac_cv_objext+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 cat >conftest.$ac_ext <<_ACEOF
2245 cat confdefs.h >>conftest.$ac_ext
2246 cat >>conftest.$ac_ext <<_ACEOF
2247 /* end confdefs.h. */
2257 rm -f conftest.o conftest.obj
2258 if { (ac_try="$ac_compile"
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;;
2263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2264 (eval "$ac_compile") 2>&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; then
2268 for ac_file in conftest.o conftest.obj conftest.*; do
2269 test -f "$ac_file" || continue;
2271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2272 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2277 echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2280 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2281 See \`config.log' for more details." >&5
2282 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2283 See \`config.log' for more details." >&2;}
2284 { (exit 1); exit 1; }; }
2287 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2289 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2290 echo "${ECHO_T}$ac_cv_objext" >&6; }
2291 OBJEXT=$ac_cv_objext
2293 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2294 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2295 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 cat >conftest.$ac_ext <<_ACEOF
2301 cat confdefs.h >>conftest.$ac_ext
2302 cat >>conftest.$ac_ext <<_ACEOF
2303 /* end confdefs.h. */
2316 rm -f conftest.$ac_objext
2317 if { (ac_try="$ac_compile"
2319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2320 *) ac_try_echo=$ac_try;;
2322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2323 (eval "$ac_compile") 2>conftest.er1
2325 grep -v '^ *+' conftest.er1 >conftest.err
2327 cat conftest.err >&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); } && {
2330 test -z "$ac_c_werror_flag" ||
2331 test ! -s conftest.err
2332 } && test -s conftest.$ac_objext; then
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2345 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2346 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2347 GCC=`test $ac_compiler_gnu = yes && echo yes`
2348 ac_test_CFLAGS=${CFLAGS+set}
2349 ac_save_CFLAGS=$CFLAGS
2350 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2351 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2352 if test "${ac_cv_prog_cc_g+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 ac_save_c_werror_flag=$ac_c_werror_flag
2356 ac_c_werror_flag=yes
2359 cat >conftest.$ac_ext <<_ACEOF
2362 cat confdefs.h >>conftest.$ac_ext
2363 cat >>conftest.$ac_ext <<_ACEOF
2364 /* end confdefs.h. */
2374 rm -f conftest.$ac_objext
2375 if { (ac_try="$ac_compile"
2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378 *) ac_try_echo=$ac_try;;
2380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2381 (eval "$ac_compile") 2>conftest.er1
2383 grep -v '^ *+' conftest.er1 >conftest.err
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } && {
2388 test -z "$ac_c_werror_flag" ||
2389 test ! -s conftest.err
2390 } && test -s conftest.$ac_objext; then
2393 echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2397 cat >conftest.$ac_ext <<_ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2412 rm -f conftest.$ac_objext
2413 if { (ac_try="$ac_compile"
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419 (eval "$ac_compile") 2>conftest.er1
2421 grep -v '^ *+' conftest.er1 >conftest.err
2423 cat conftest.err >&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); } && {
2426 test -z "$ac_c_werror_flag" ||
2427 test ! -s conftest.err
2428 } && test -s conftest.$ac_objext; then
2431 echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2434 ac_c_werror_flag=$ac_save_c_werror_flag
2436 cat >conftest.$ac_ext <<_ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h. */
2451 rm -f conftest.$ac_objext
2452 if { (ac_try="$ac_compile"
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458 (eval "$ac_compile") 2>conftest.er1
2460 grep -v '^ *+' conftest.er1 >conftest.err
2462 cat conftest.err >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); } && {
2465 test -z "$ac_c_werror_flag" ||
2466 test ! -s conftest.err
2467 } && test -s conftest.$ac_objext; then
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2483 ac_c_werror_flag=$ac_save_c_werror_flag
2485 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2486 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2487 if test "$ac_test_CFLAGS" = set; then
2488 CFLAGS=$ac_save_CFLAGS
2489 elif test $ac_cv_prog_cc_g = yes; then
2490 if test "$GCC" = yes; then
2496 if test "$GCC" = yes; then
2502 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2503 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2504 if test "${ac_cv_prog_cc_c89+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 ac_cv_prog_cc_c89=no
2509 cat >conftest.$ac_ext <<_ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2517 #include <sys/types.h>
2518 #include <sys/stat.h>
2519 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2520 struct buf { int x; };
2521 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2522 static char *e (p, i)
2528 static char *f (char * (*g) (char **, int), char **p, ...)
2533 s = g (p, va_arg (v,int));
2538 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2539 function prototypes and stuff, but not '\xHH' hex character constants.
2540 These don't provoke an error unfortunately, instead are silently treated
2541 as 'x'. The following induces an error, until -std is added to get
2542 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2543 array size at least. It's necessary to write '\x00'==0 to get something
2544 that's true only with -std. */
2545 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2547 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2548 inside strings and character constants. */
2550 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2552 int test (int i, double x);
2553 struct s1 {int (*f) (int a);};
2554 struct s2 {int (*f) (double a);};
2555 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2561 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2566 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2567 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2569 CC="$ac_save_CC $ac_arg"
2570 rm -f conftest.$ac_objext
2571 if { (ac_try="$ac_compile"
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 (eval "$ac_compile") 2>conftest.er1
2579 grep -v '^ *+' conftest.er1 >conftest.err
2581 cat conftest.err >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); } && {
2584 test -z "$ac_c_werror_flag" ||
2585 test ! -s conftest.err
2586 } && test -s conftest.$ac_objext; then
2587 ac_cv_prog_cc_c89=$ac_arg
2589 echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2595 rm -f core conftest.err conftest.$ac_objext
2596 test "x$ac_cv_prog_cc_c89" != "xno" && break
2598 rm -f conftest.$ac_ext
2603 case "x$ac_cv_prog_cc_c89" in
2605 { echo "$as_me:$LINENO: result: none needed" >&5
2606 echo "${ECHO_T}none needed" >&6; } ;;
2608 { echo "$as_me:$LINENO: result: unsupported" >&5
2609 echo "${ECHO_T}unsupported" >&6; } ;;
2611 CC="$CC $ac_cv_prog_cc_c89"
2612 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2613 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2624 ac_cpp='$CPP $CPPFLAGS'
2625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2628 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2629 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2630 # On Suns, sometimes $CPP names a directory.
2631 if test -n "$CPP" && test -d "$CPP"; then
2634 if test -z "$CPP"; then
2635 if test "${ac_cv_prog_CPP+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 # Double quotes because CPP needs to be expanded
2639 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2642 for ac_c_preproc_warn_flag in '' yes
2644 # Use a header file that comes with gcc, so configuring glibc
2645 # with a fresh cross-compiler works.
2646 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2647 # <limits.h> exists even on freestanding compilers.
2648 # On the NeXT, cc -E runs the code through the compiler's parser,
2649 # not just through cpp. "Syntax error" is here to catch this case.
2650 cat >conftest.$ac_ext <<_ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h. */
2657 # include <limits.h>
2659 # include <assert.h>
2663 if { (ac_try="$ac_cpp conftest.$ac_ext"
2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666 *) ac_try_echo=$ac_try;;
2668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2671 grep -v '^ *+' conftest.er1 >conftest.err
2673 cat conftest.err >&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); } >/dev/null && {
2676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2677 test ! -s conftest.err
2681 echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2684 # Broken: fails on valid input.
2688 rm -f conftest.err conftest.$ac_ext
2690 # OK, works on sane cases. Now check whether nonexistent headers
2691 # can be detected and how.
2692 cat >conftest.$ac_ext <<_ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h. */
2698 #include <ac_nonexistent.h>
2700 if { (ac_try="$ac_cpp conftest.$ac_ext"
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2708 grep -v '^ *+' conftest.er1 >conftest.err
2710 cat conftest.err >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); } >/dev/null && {
2713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2714 test ! -s conftest.err
2716 # Broken: success on invalid input.
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2722 # Passes both tests.
2727 rm -f conftest.err conftest.$ac_ext
2730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2731 rm -f conftest.err conftest.$ac_ext
2732 if $ac_preproc_ok; then
2744 { echo "$as_me:$LINENO: result: $CPP" >&5
2745 echo "${ECHO_T}$CPP" >&6; }
2747 for ac_c_preproc_warn_flag in '' yes
2749 # Use a header file that comes with gcc, so configuring glibc
2750 # with a fresh cross-compiler works.
2751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2752 # <limits.h> exists even on freestanding compilers.
2753 # On the NeXT, cc -E runs the code through the compiler's parser,
2754 # not just through cpp. "Syntax error" is here to catch this case.
2755 cat >conftest.$ac_ext <<_ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2762 # include <limits.h>
2764 # include <assert.h>
2768 if { (ac_try="$ac_cpp conftest.$ac_ext"
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2776 grep -v '^ *+' conftest.er1 >conftest.err
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } >/dev/null && {
2781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2782 test ! -s conftest.err
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2789 # Broken: fails on valid input.
2793 rm -f conftest.err conftest.$ac_ext
2795 # OK, works on sane cases. Now check whether nonexistent headers
2796 # can be detected and how.
2797 cat >conftest.$ac_ext <<_ACEOF
2800 cat confdefs.h >>conftest.$ac_ext
2801 cat >>conftest.$ac_ext <<_ACEOF
2802 /* end confdefs.h. */
2803 #include <ac_nonexistent.h>
2805 if { (ac_try="$ac_cpp conftest.$ac_ext"
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2813 grep -v '^ *+' conftest.er1 >conftest.err
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } >/dev/null && {
2818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2819 test ! -s conftest.err
2821 # Broken: success on invalid input.
2824 echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2827 # Passes both tests.
2832 rm -f conftest.err conftest.$ac_ext
2835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2836 rm -f conftest.err conftest.$ac_ext
2837 if $ac_preproc_ok; then
2840 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2841 See \`config.log' for more details." >&5
2842 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2843 See \`config.log' for more details." >&2;}
2844 { (exit 1); exit 1; }; }
2848 ac_cpp='$CPP $CPPFLAGS'
2849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2855 if test -f "$ac_dir/install-sh"; then
2857 ac_install_sh="$ac_aux_dir/install-sh -c"
2859 elif test -f "$ac_dir/install.sh"; then
2861 ac_install_sh="$ac_aux_dir/install.sh -c"
2863 elif test -f "$ac_dir/shtool"; then
2865 ac_install_sh="$ac_aux_dir/shtool install -c"
2869 if test -z "$ac_aux_dir"; then
2870 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2871 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2872 { (exit 1); exit 1; }; }
2875 # These three variables are undocumented and unsupported,
2876 # and are intended to be withdrawn in a future Autoconf release.
2877 # They can cause serious problems if a builder's source tree is in a directory
2878 # whose full name contains unusual characters.
2879 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2880 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2881 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2884 # Find a good install program. We prefer a C program (faster),
2885 # so one script is as good as another. But avoid the broken or
2886 # incompatible versions:
2887 # SysV /etc/install, /usr/sbin/install
2888 # SunOS /usr/etc/install
2889 # IRIX /sbin/install
2891 # AmigaOS /C/install, which installs bootblocks on floppy discs
2892 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2893 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2894 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2895 # OS/2's system install, which has a completely different semantic
2896 # ./install, which can be erroneously created by make from ./install.sh.
2897 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2898 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2899 if test -z "$INSTALL"; then
2900 if test "${ac_cv_path_install+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 test -z "$as_dir" && as_dir=.
2908 # Account for people who put trailing slashes in PATH elements.
2910 ./ | .// | /cC/* | \
2911 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2912 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2915 # OSF1 and SCO ODT 3.0 have their own names for install.
2916 # Don't use installbsd from OSF since it installs stuff as root
2918 for ac_prog in ginstall scoinst install; do
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2921 if test $ac_prog = install &&
2922 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2923 # AIX install. It has an incompatible calling convention.
2925 elif test $ac_prog = install &&
2926 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2927 # program-specific install script used by HP pwplus--don't use.
2930 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2943 if test "${ac_cv_path_install+set}" = set; then
2944 INSTALL=$ac_cv_path_install
2946 # As a last resort, use the slow shell script. Don't cache a
2947 # value for INSTALL within a source directory, because that will
2948 # break other packages using the cache if that directory is
2949 # removed, or if the value is a relative name.
2950 INSTALL=$ac_install_sh
2953 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2954 echo "${ECHO_T}$INSTALL" >&6; }
2956 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2957 # It thinks the first close brace ends the variable substitution.
2958 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2960 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2962 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2964 test "$program_prefix" != NONE &&
2965 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2966 # Use a double $ so make ignores it.
2967 test "$program_suffix" != NONE &&
2968 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2969 # Double any \ or $. echo might interpret backslashes.
2970 # By default was `s,x,x', remove it if useless.
2971 cat <<\_ACEOF >conftest.sed
2972 s/[\\$]/&&/g;s/;s,x,x,$//
2974 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2976 # for program_transform_name
2979 cat >>confdefs.h <<\_ACEOF
2980 #define _GNU_SOURCE 1
2984 # If GCC, turn on warnings.
2985 if test "x$GCC" = "xyes"
2987 CFLAGS="$CFLAGS -Wall -W"
2999 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3000 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3001 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3002 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
3003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 cat >conftest.$ac_ext <<_ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3012 #include <sys/types.h>
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compile") 2>conftest.er1
3033 grep -v '^ *+' conftest.er1 >conftest.err
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } && {
3038 test -z "$ac_c_werror_flag" ||
3039 test ! -s conftest.err
3040 } && test -s conftest.$ac_objext; then
3041 eval "$as_ac_Header=yes"
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3046 eval "$as_ac_Header=no"
3049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3051 ac_res=`eval echo '${'$as_ac_Header'}'`
3052 { echo "$as_me:$LINENO: result: $ac_res" >&5
3053 echo "${ECHO_T}$ac_res" >&6; }
3054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3055 cat >>confdefs.h <<_ACEOF
3056 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3059 ac_header_dirent=$ac_hdr; break
3063 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3064 if test $ac_header_dirent = dirent.h; then
3065 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3066 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3067 if test "${ac_cv_search_opendir+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 ac_func_search_save_LIBS=$LIBS
3071 cat >conftest.$ac_ext <<_ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3078 /* Override any GCC internal prototype to avoid an error.
3079 Use char because int might match the return type of a GCC
3080 builtin and then its argument prototype would still apply. */
3093 for ac_lib in '' dir; do
3094 if test -z "$ac_lib"; then
3095 ac_res="none required"
3098 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3100 rm -f conftest.$ac_objext conftest$ac_exeext
3101 if { (ac_try="$ac_link"
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_link") 2>conftest.er1
3109 grep -v '^ *+' conftest.er1 >conftest.err
3111 cat conftest.err >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } && {
3114 test -z "$ac_c_werror_flag" ||
3115 test ! -s conftest.err
3116 } && test -s conftest$ac_exeext &&
3117 $as_test_x conftest$ac_exeext; then
3118 ac_cv_search_opendir=$ac_res
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3128 if test "${ac_cv_search_opendir+set}" = set; then
3132 if test "${ac_cv_search_opendir+set}" = set; then
3135 ac_cv_search_opendir=no
3138 LIBS=$ac_func_search_save_LIBS
3140 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3141 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3142 ac_res=$ac_cv_search_opendir
3143 if test "$ac_res" != no; then
3144 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3149 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3150 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3151 if test "${ac_cv_search_opendir+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 ac_func_search_save_LIBS=$LIBS
3155 cat >conftest.$ac_ext <<_ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3162 /* Override any GCC internal prototype to avoid an error.
3163 Use char because int might match the return type of a GCC
3164 builtin and then its argument prototype would still apply. */
3177 for ac_lib in '' x; do
3178 if test -z "$ac_lib"; then
3179 ac_res="none required"
3182 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3184 rm -f conftest.$ac_objext conftest$ac_exeext
3185 if { (ac_try="$ac_link"
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191 (eval "$ac_link") 2>conftest.er1
3193 grep -v '^ *+' conftest.er1 >conftest.err
3195 cat conftest.err >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } && {
3198 test -z "$ac_c_werror_flag" ||
3199 test ! -s conftest.err
3200 } && test -s conftest$ac_exeext &&
3201 $as_test_x conftest$ac_exeext; then
3202 ac_cv_search_opendir=$ac_res
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3212 if test "${ac_cv_search_opendir+set}" = set; then
3216 if test "${ac_cv_search_opendir+set}" = set; then
3219 ac_cv_search_opendir=no
3222 LIBS=$ac_func_search_save_LIBS
3224 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3225 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3226 ac_res=$ac_cv_search_opendir
3227 if test "$ac_res" != no; then
3228 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3234 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3235 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
3236 if test "${ac_cv_header_time+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 cat >conftest.$ac_ext <<_ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h. */
3245 #include <sys/types.h>
3246 #include <sys/time.h>
3252 if ((struct tm *) 0)
3258 rm -f conftest.$ac_objext
3259 if { (ac_try="$ac_compile"
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265 (eval "$ac_compile") 2>conftest.er1
3267 grep -v '^ *+' conftest.er1 >conftest.err
3269 cat conftest.err >&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } && {
3272 test -z "$ac_c_werror_flag" ||
3273 test ! -s conftest.err
3274 } && test -s conftest.$ac_objext; then
3275 ac_cv_header_time=yes
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3280 ac_cv_header_time=no
3283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3286 echo "${ECHO_T}$ac_cv_header_time" >&6; }
3287 if test $ac_cv_header_time = yes; then
3289 cat >>confdefs.h <<\_ACEOF
3290 #define TIME_WITH_SYS_TIME 1
3295 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3296 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
3297 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 cat >conftest.$ac_ext <<_ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3306 #include <sys/types.h>
3307 #include <sys/wait.h>
3309 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3312 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3320 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3325 rm -f conftest.$ac_objext
3326 if { (ac_try="$ac_compile"
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3332 (eval "$ac_compile") 2>conftest.er1
3334 grep -v '^ *+' conftest.er1 >conftest.err
3336 cat conftest.err >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } && {
3339 test -z "$ac_c_werror_flag" ||
3340 test ! -s conftest.err
3341 } && test -s conftest.$ac_objext; then
3342 ac_cv_header_sys_wait_h=yes
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3347 ac_cv_header_sys_wait_h=no
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3353 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
3354 if test $ac_cv_header_sys_wait_h = yes; then
3356 cat >>confdefs.h <<\_ACEOF
3357 #define HAVE_SYS_WAIT_H 1
3364 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3365 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3366 if test "${ac_cv_path_GREP+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 # Extract the first word of "grep ggrep" to use in msg output
3370 if test -z "$GREP"; then
3371 set dummy grep ggrep; ac_prog_name=$2
3372 if test "${ac_cv_path_GREP+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 ac_path_GREP_found=false
3376 # Loop through the user's path and test for each of PROGNAME-LIST
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3381 test -z "$as_dir" && as_dir=.
3382 for ac_prog in grep ggrep; do
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3385 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3386 # Check for GNU ac_path_GREP and select it if it is found.
3387 # Check for GNU $ac_path_GREP
3388 case `"$ac_path_GREP" --version 2>&1` in
3390 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3393 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3396 cat "conftest.in" "conftest.in" >"conftest.tmp"
3397 mv "conftest.tmp" "conftest.in"
3398 cp "conftest.in" "conftest.nl"
3399 echo 'GREP' >> "conftest.nl"
3400 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3402 ac_count=`expr $ac_count + 1`
3403 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3404 # Best one so far, save it but keep looking for a better one
3405 ac_cv_path_GREP="$ac_path_GREP"
3406 ac_path_GREP_max=$ac_count
3408 # 10*(2^10) chars as input seems more than enough
3409 test $ac_count -gt 10 && break
3411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3415 $ac_path_GREP_found && break 3
3425 GREP="$ac_cv_path_GREP"
3426 if test -z "$GREP"; then
3427 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3428 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3429 { (exit 1); exit 1; }; }
3433 ac_cv_path_GREP=$GREP
3438 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3439 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3440 GREP="$ac_cv_path_GREP"
3443 { echo "$as_me:$LINENO: checking for egrep" >&5
3444 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3445 if test "${ac_cv_path_EGREP+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3449 then ac_cv_path_EGREP="$GREP -E"
3451 # Extract the first word of "egrep" to use in msg output
3452 if test -z "$EGREP"; then
3453 set dummy egrep; ac_prog_name=$2
3454 if test "${ac_cv_path_EGREP+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 ac_path_EGREP_found=false
3458 # Loop through the user's path and test for each of PROGNAME-LIST
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3463 test -z "$as_dir" && as_dir=.
3464 for ac_prog in egrep; do
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3467 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3468 # Check for GNU ac_path_EGREP and select it if it is found.
3469 # Check for GNU $ac_path_EGREP
3470 case `"$ac_path_EGREP" --version 2>&1` in
3472 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3475 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3478 cat "conftest.in" "conftest.in" >"conftest.tmp"
3479 mv "conftest.tmp" "conftest.in"
3480 cp "conftest.in" "conftest.nl"
3481 echo 'EGREP' >> "conftest.nl"
3482 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3484 ac_count=`expr $ac_count + 1`
3485 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3486 # Best one so far, save it but keep looking for a better one
3487 ac_cv_path_EGREP="$ac_path_EGREP"
3488 ac_path_EGREP_max=$ac_count
3490 # 10*(2^10) chars as input seems more than enough
3491 test $ac_count -gt 10 && break
3493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3497 $ac_path_EGREP_found && break 3
3507 EGREP="$ac_cv_path_EGREP"
3508 if test -z "$EGREP"; then
3509 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3510 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3511 { (exit 1); exit 1; }; }
3515 ac_cv_path_EGREP=$EGREP
3521 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3522 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3523 EGREP="$ac_cv_path_EGREP"
3526 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3527 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3528 if test "${ac_cv_header_stdc+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 cat >conftest.$ac_ext <<_ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3550 rm -f conftest.$ac_objext
3551 if { (ac_try="$ac_compile"
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_compile") 2>conftest.er1
3559 grep -v '^ *+' conftest.er1 >conftest.err
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } && {
3564 test -z "$ac_c_werror_flag" ||
3565 test ! -s conftest.err
3566 } && test -s conftest.$ac_objext; then
3567 ac_cv_header_stdc=yes
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3572 ac_cv_header_stdc=no
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 if test $ac_cv_header_stdc = yes; then
3578 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3579 cat >conftest.$ac_ext <<_ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3589 $EGREP "memchr" >/dev/null 2>&1; then
3592 ac_cv_header_stdc=no
3598 if test $ac_cv_header_stdc = yes; then
3599 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3600 cat >conftest.$ac_ext <<_ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3610 $EGREP "free" >/dev/null 2>&1; then
3613 ac_cv_header_stdc=no
3619 if test $ac_cv_header_stdc = yes; then
3620 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3621 if test "$cross_compiling" = yes; then
3624 cat >conftest.$ac_ext <<_ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3632 #if ((' ' & 0x0FF) == 0x020)
3633 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3634 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3636 # define ISLOWER(c) \
3637 (('a' <= (c) && (c) <= 'i') \
3638 || ('j' <= (c) && (c) <= 'r') \
3639 || ('s' <= (c) && (c) <= 'z'))
3640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3643 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3648 for (i = 0; i < 256; i++)
3649 if (XOR (islower (i), ISLOWER (i))
3650 || toupper (i) != TOUPPER (i))
3655 rm -f conftest$ac_exeext
3656 if { (ac_try="$ac_link"
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662 (eval "$ac_link") 2>&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3666 { (case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_try") 2>&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; }; then
3677 echo "$as_me: program exited with status $ac_status" >&5
3678 echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3682 ac_cv_header_stdc=no
3684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3690 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3691 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3692 if test $ac_cv_header_stdc = yes; then
3694 cat >>confdefs.h <<\_ACEOF
3695 #define STDC_HEADERS 1
3700 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3710 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3711 inttypes.h stdint.h unistd.h
3713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 cat >conftest.$ac_ext <<_ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3725 $ac_includes_default
3727 #include <$ac_header>
3729 rm -f conftest.$ac_objext
3730 if { (ac_try="$ac_compile"
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736 (eval "$ac_compile") 2>conftest.er1
3738 grep -v '^ *+' conftest.er1 >conftest.err
3740 cat conftest.err >&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } && {
3743 test -z "$ac_c_werror_flag" ||
3744 test ! -s conftest.err
3745 } && test -s conftest.$ac_objext; then
3746 eval "$as_ac_Header=yes"
3748 echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3751 eval "$as_ac_Header=no"
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756 ac_res=`eval echo '${'$as_ac_Header'}'`
3757 { echo "$as_me:$LINENO: result: $ac_res" >&5
3758 echo "${ECHO_T}$ac_res" >&6; }
3759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3760 cat >>confdefs.h <<_ACEOF
3761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3775 for ac_header in ctype.h strings.h stdlib.h string.h pwd.h sys/time.h
3777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3779 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 ac_res=`eval echo '${'$as_ac_Header'}'`
3785 { echo "$as_me:$LINENO: result: $ac_res" >&5
3786 echo "${ECHO_T}$ac_res" >&6; }
3788 # Is the header compilable?
3789 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3791 cat >conftest.$ac_ext <<_ACEOF
3794 cat confdefs.h >>conftest.$ac_ext
3795 cat >>conftest.$ac_ext <<_ACEOF
3796 /* end confdefs.h. */
3797 $ac_includes_default
3798 #include <$ac_header>
3800 rm -f conftest.$ac_objext
3801 if { (ac_try="$ac_compile"
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807 (eval "$ac_compile") 2>conftest.er1
3809 grep -v '^ *+' conftest.er1 >conftest.err
3811 cat conftest.err >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } && {
3814 test -z "$ac_c_werror_flag" ||
3815 test ! -s conftest.err
3816 } && test -s conftest.$ac_objext; then
3817 ac_header_compiler=yes
3819 echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3822 ac_header_compiler=no
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3827 echo "${ECHO_T}$ac_header_compiler" >&6; }
3829 # Is the header present?
3830 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3832 cat >conftest.$ac_ext <<_ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3838 #include <$ac_header>
3840 if { (ac_try="$ac_cpp conftest.$ac_ext"
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3848 grep -v '^ *+' conftest.er1 >conftest.err
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } >/dev/null && {
3853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3854 test ! -s conftest.err
3856 ac_header_preproc=yes
3858 echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3861 ac_header_preproc=no
3864 rm -f conftest.err conftest.$ac_ext
3865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3866 echo "${ECHO_T}$ac_header_preproc" >&6; }
3868 # So? What about this header?
3869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3875 ac_header_preproc=yes
3878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3885 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 eval "$as_ac_Header=\$ac_header_preproc"
3900 ac_res=`eval echo '${'$as_ac_Header'}'`
3901 { echo "$as_me:$LINENO: result: $ac_res" >&5
3902 echo "${ECHO_T}$ac_res" >&6; }
3905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3906 cat >>confdefs.h <<_ACEOF
3907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3921 for ac_func in realpath snprintf vsnprintf vasprintf asprintf mkstemp
3923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 cat >conftest.$ac_ext <<_ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3937 #define $ac_func innocuous_$ac_func
3939 /* System header to define __stub macros and hopefully few prototypes,
3940 which can conflict with char $ac_func (); below.
3941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3942 <limits.h> exists even on freestanding compilers. */
3945 # include <limits.h>
3947 # include <assert.h>
3952 /* Override any GCC internal prototype to avoid an error.
3953 Use char because int might match the return type of a GCC
3954 builtin and then its argument prototype would still apply. */
3959 /* The GNU C library defines this for functions which it implements
3960 to always fail with ENOSYS. Some functions are actually named
3961 something starting with __ and the normal name is an alias. */
3962 #if defined __stub_$ac_func || defined __stub___$ac_func
3974 rm -f conftest.$ac_objext conftest$ac_exeext
3975 if { (ac_try="$ac_link"
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981 (eval "$ac_link") 2>conftest.er1
3983 grep -v '^ *+' conftest.er1 >conftest.err
3985 cat conftest.err >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } && {
3988 test -z "$ac_c_werror_flag" ||
3989 test ! -s conftest.err
3990 } && test -s conftest$ac_exeext &&
3991 $as_test_x conftest$ac_exeext; then
3992 eval "$as_ac_var=yes"
3994 echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3997 eval "$as_ac_var=no"
4000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4001 conftest$ac_exeext conftest.$ac_ext
4003 ac_res=`eval echo '${'$as_ac_var'}'`
4004 { echo "$as_me:$LINENO: result: $ac_res" >&5
4005 echo "${ECHO_T}$ac_res" >&6; }
4006 if test `eval echo '${'$as_ac_var'}'` = yes; then
4007 cat >>confdefs.h <<_ACEOF
4008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4016 for ac_func in gethostname getpwuid
4018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 cat >conftest.$ac_ext <<_ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4032 #define $ac_func innocuous_$ac_func
4034 /* System header to define __stub macros and hopefully few prototypes,
4035 which can conflict with char $ac_func (); below.
4036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4037 <limits.h> exists even on freestanding compilers. */
4040 # include <limits.h>
4042 # include <assert.h>
4047 /* Override any GCC internal prototype to avoid an error.
4048 Use char because int might match the return type of a GCC
4049 builtin and then its argument prototype would still apply. */
4054 /* The GNU C library defines this for functions which it implements
4055 to always fail with ENOSYS. Some functions are actually named
4056 something starting with __ and the normal name is an alias. */
4057 #if defined __stub_$ac_func || defined __stub___$ac_func
4069 rm -f conftest.$ac_objext conftest$ac_exeext
4070 if { (ac_try="$ac_link"
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_link") 2>conftest.er1
4078 grep -v '^ *+' conftest.er1 >conftest.err
4080 cat conftest.err >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } && {
4083 test -z "$ac_c_werror_flag" ||
4084 test ! -s conftest.err
4085 } && test -s conftest$ac_exeext &&
4086 $as_test_x conftest$ac_exeext; then
4087 eval "$as_ac_var=yes"
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4092 eval "$as_ac_var=no"
4095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4096 conftest$ac_exeext conftest.$ac_ext
4098 ac_res=`eval echo '${'$as_ac_var'}'`
4099 { echo "$as_me:$LINENO: result: $ac_res" >&5
4100 echo "${ECHO_T}$ac_res" >&6; }
4101 if test `eval echo '${'$as_ac_var'}'` = yes; then
4102 cat >>confdefs.h <<_ACEOF
4103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4110 for ac_func in utimes
4112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4113 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 cat >conftest.$ac_ext <<_ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4126 #define $ac_func innocuous_$ac_func
4128 /* System header to define __stub macros and hopefully few prototypes,
4129 which can conflict with char $ac_func (); below.
4130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4131 <limits.h> exists even on freestanding compilers. */
4134 # include <limits.h>
4136 # include <assert.h>
4141 /* Override any GCC internal prototype to avoid an error.
4142 Use char because int might match the return type of a GCC
4143 builtin and then its argument prototype would still apply. */
4148 /* The GNU C library defines this for functions which it implements
4149 to always fail with ENOSYS. Some functions are actually named
4150 something starting with __ and the normal name is an alias. */
4151 #if defined __stub_$ac_func || defined __stub___$ac_func
4163 rm -f conftest.$ac_objext conftest$ac_exeext
4164 if { (ac_try="$ac_link"
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_link") 2>conftest.er1
4172 grep -v '^ *+' conftest.er1 >conftest.err
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } && {
4177 test -z "$ac_c_werror_flag" ||
4178 test ! -s conftest.err
4179 } && test -s conftest$ac_exeext &&
4180 $as_test_x conftest$ac_exeext; then
4181 eval "$as_ac_var=yes"
4183 echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4186 eval "$as_ac_var=no"
4189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4190 conftest$ac_exeext conftest.$ac_ext
4192 ac_res=`eval echo '${'$as_ac_var'}'`
4193 { echo "$as_me:$LINENO: result: $ac_res" >&5
4194 echo "${ECHO_T}$ac_res" >&6; }
4195 if test `eval echo '${'$as_ac_var'}'` = yes; then
4196 cat >>confdefs.h <<_ACEOF
4197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4204 { echo "$as_me:$LINENO: checking for compar_fn_t in stdlib.h" >&5
4205 echo $ECHO_N "checking for compar_fn_t in stdlib.h... $ECHO_C" >&6; }
4206 if test "${ccache_cv_COMPAR_FN_T+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 cat >conftest.$ac_ext <<_ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4221 void test_fn(void) { qsort(NULL, 0, 0, (__compar_fn_t)NULL); }
4227 rm -f conftest.$ac_objext
4228 if { (ac_try="$ac_compile"
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_compile") 2>conftest.er1
4236 grep -v '^ *+' conftest.er1 >conftest.err
4238 cat conftest.err >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } && {
4241 test -z "$ac_c_werror_flag" ||
4242 test ! -s conftest.err
4243 } && test -s conftest.$ac_objext; then
4244 ccache_cv_COMPAR_FN_T=yes
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4249 ccache_cv_COMPAR_FN_T=no
4252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254 { echo "$as_me:$LINENO: result: $ccache_cv_COMPAR_FN_T" >&5
4255 echo "${ECHO_T}$ccache_cv_COMPAR_FN_T" >&6; }
4256 if test x"$ccache_cv_COMPAR_FN_T" = x"yes"; then
4258 cat >>confdefs.h <<\_ACEOF
4259 #define HAVE_COMPAR_FN_T 1
4264 { echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
4265 echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6; }
4266 if test "${ccache_cv_HAVE_C99_VSNPRINTF+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 if test "$cross_compiling" = yes; then
4271 ccache_cv_HAVE_C99_VSNPRINTF=cross
4273 cat >conftest.$ac_ext <<_ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h. */
4280 #include <sys/types.h>
4282 void foo(const char *format, ...) {
4287 va_start(ap, format);
4288 len = vsnprintf(0, 0, format, ap);
4290 if (len != 5) exit(1);
4292 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
4296 main() { foo("hello"); }
4299 rm -f conftest$ac_exeext
4300 if { (ac_try="$ac_link"
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_link") 2>&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4310 { (case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_try") 2>&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 ccache_cv_HAVE_C99_VSNPRINTF=yes
4321 echo "$as_me: program exited with status $ac_status" >&5
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4326 ccache_cv_HAVE_C99_VSNPRINTF=no
4328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4333 { echo "$as_me:$LINENO: result: $ccache_cv_HAVE_C99_VSNPRINTF" >&5
4334 echo "${ECHO_T}$ccache_cv_HAVE_C99_VSNPRINTF" >&6; }
4335 if test x"$ccache_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
4337 cat >>confdefs.h <<\_ACEOF
4338 #define HAVE_C99_VSNPRINTF 1
4343 # Check whether --enable-zlib was given.
4344 if test "${enable_zlib+set}" = set; then
4345 enableval=$enable_zlib;
4351 if test x"$enable_zlib" = x"yes"; then
4352 if test "${ac_cv_header_zlib_h+set}" = set; then
4353 { echo "$as_me:$LINENO: checking for zlib.h" >&5
4354 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
4355 if test "${ac_cv_header_zlib_h+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
4359 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
4361 # Is the header compilable?
4362 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
4363 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
4364 cat >conftest.$ac_ext <<_ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 $ac_includes_default
4373 rm -f conftest.$ac_objext
4374 if { (ac_try="$ac_compile"
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380 (eval "$ac_compile") 2>conftest.er1
4382 grep -v '^ *+' conftest.er1 >conftest.err
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } && {
4387 test -z "$ac_c_werror_flag" ||
4388 test ! -s conftest.err
4389 } && test -s conftest.$ac_objext; then
4390 ac_header_compiler=yes
4392 echo "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.$ac_ext >&5
4395 ac_header_compiler=no
4398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4400 echo "${ECHO_T}$ac_header_compiler" >&6; }
4402 # Is the header present?
4403 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
4404 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
4405 cat >conftest.$ac_ext <<_ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4413 if { (ac_try="$ac_cpp conftest.$ac_ext"
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4421 grep -v '^ *+' conftest.er1 >conftest.err
4423 cat conftest.err >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } >/dev/null && {
4426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4427 test ! -s conftest.err
4429 ac_header_preproc=yes
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4434 ac_header_preproc=no
4437 rm -f conftest.err conftest.$ac_ext
4438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4439 echo "${ECHO_T}$ac_header_preproc" >&6; }
4441 # So? What about this header?
4442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4444 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
4445 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4446 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
4447 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
4448 ac_header_preproc=yes
4451 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
4452 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
4453 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
4454 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
4455 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
4456 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
4457 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
4458 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
4459 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
4460 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
4461 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
4462 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
4466 { echo "$as_me:$LINENO: checking for zlib.h" >&5
4467 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
4468 if test "${ac_cv_header_zlib_h+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4471 ac_cv_header_zlib_h=$ac_header_preproc
4473 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
4474 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
4477 if test $ac_cv_header_zlib_h = yes; then
4478 { echo "$as_me:$LINENO: checking for gzdopen in -lz" >&5
4479 echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6; }
4480 if test "${ac_cv_lib_z_gzdopen+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 ac_check_lib_save_LIBS=$LIBS
4485 cat >conftest.$ac_ext <<_ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4492 /* Override any GCC internal prototype to avoid an error.
4493 Use char because int might match the return type of a GCC
4494 builtin and then its argument prototype would still apply. */
4507 rm -f conftest.$ac_objext conftest$ac_exeext
4508 if { (ac_try="$ac_link"
4510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4511 *) ac_try_echo=$ac_try;;
4513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4514 (eval "$ac_link") 2>conftest.er1
4516 grep -v '^ *+' conftest.er1 >conftest.err
4518 cat conftest.err >&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); } && {
4521 test -z "$ac_c_werror_flag" ||
4522 test ! -s conftest.err
4523 } && test -s conftest$ac_exeext &&
4524 $as_test_x conftest$ac_exeext; then
4525 ac_cv_lib_z_gzdopen=yes
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4530 ac_cv_lib_z_gzdopen=no
4533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4534 conftest$ac_exeext conftest.$ac_ext
4535 LIBS=$ac_check_lib_save_LIBS
4537 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzdopen" >&5
4538 echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6; }
4539 if test $ac_cv_lib_z_gzdopen = yes; then
4542 cat >>confdefs.h <<\_ACEOF
4543 #define ENABLE_ZLIB 1
4553 ac_config_files="$ac_config_files Makefile"
4555 cat >confcache <<\_ACEOF
4556 # This file is a shell script that caches the results of configure
4557 # tests run on this system so they can be shared between configure
4558 # scripts and configure runs, see configure's option --config-cache.
4559 # It is not useful on other systems. If it contains results you don't
4560 # want to keep, you may remove or edit it.
4562 # config.status only pays attention to the cache file if you give it
4563 # the --recheck option to rerun configure.
4565 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4566 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4571 # The following way of writing the cache mishandles newlines in values,
4572 # but we know of no workaround that is simple, portable, and efficient.
4573 # So, we kill variables containing newlines.
4574 # Ultrix sh set writes to stderr and can't be redirected directly,
4575 # and sets the high bit in the cache file unless we assign to the vars.
4577 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4578 eval ac_val=\$$ac_var
4582 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
4583 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
4586 _ | IFS | as_nl) ;; #(
4587 *) $as_unset $ac_var ;;
4593 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4594 *${as_nl}ac_space=\ *)
4595 # `set' does not quote correctly, so add quotes (double-quote
4596 # substitution turns \\\\ into \\, and sed turns \\ into \).
4599 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4602 # `set' quotes correctly as required by POSIX, so do not add quotes.
4603 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4612 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4614 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4616 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4617 if test -w "$cache_file"; then
4618 test "x$cache_file" != "x/dev/null" &&
4619 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
4620 echo "$as_me: updating cache $cache_file" >&6;}
4621 cat confcache >$cache_file
4623 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4624 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4629 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4630 # Let make expand exec_prefix.
4631 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4633 DEFS=-DHAVE_CONFIG_H
4637 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4638 # 1. Remove the extension, and $U if already installed.
4639 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4640 ac_i=`echo "$ac_i" | sed "$ac_script"`
4641 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4642 # will be set to the directory where LIBOBJS objects are built.
4643 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4644 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
4648 LTLIBOBJS=$ac_ltlibobjs
4652 : ${CONFIG_STATUS=./config.status}
4653 ac_clean_files_save=$ac_clean_files
4654 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4655 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4656 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4657 cat >$CONFIG_STATUS <<_ACEOF
4659 # Generated by $as_me.
4660 # Run this file to recreate the current configuration.
4661 # Compiler output produced by configure, useful for debugging
4662 # configure, is in config.log if it exists.
4667 SHELL=\${CONFIG_SHELL-$SHELL}
4670 cat >>$CONFIG_STATUS <<\_ACEOF
4671 ## --------------------- ##
4672 ## M4sh Initialization. ##
4673 ## --------------------- ##
4675 # Be more Bourne compatible
4676 DUALCASE=1; export DUALCASE # for MKS sh
4677 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4680 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4681 # is contrary to our usage. Disable this feature.
4682 alias -g '${1+"$@"}'='"$@"'
4683 setopt NO_GLOB_SUBST
4685 case `(set -o) 2>/dev/null` in
4686 *posix*) set -o posix ;;
4695 # Avoid depending upon Character Ranges.
4696 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4697 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4698 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4699 as_cr_digits='0123456789'
4700 as_cr_alnum=$as_cr_Letters$as_cr_digits
4702 # The user is always right.
4703 if test "${PATH_SEPARATOR+set}" != set; then
4704 echo "#! /bin/sh" >conf$$.sh
4705 echo "exit 0" >>conf$$.sh
4707 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4715 # Support unset when possible.
4716 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4724 # We need space, tab and new line, in precisely that order. Quoting is
4725 # there to prevent editors from complaining about space-tab.
4726 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4727 # splitting by setting IFS to empty value.)
4732 # Find who we are. Look in the path if we contain no directory separator.
4734 *[\\/]* ) as_myself=$0 ;;
4735 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 test -z "$as_dir" && as_dir=.
4740 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4746 # We did not find ourselves, most probably we were run as `sh COMMAND'
4747 # in which case we are not to be found in the path.
4748 if test "x$as_myself" = x; then
4751 if test ! -f "$as_myself"; then
4752 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4753 { (exit 1); exit 1; }
4756 # Work around bugs in pre-3.0 UWIN ksh.
4757 for as_var in ENV MAIL MAILPATH
4758 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4766 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4767 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4768 LC_TELEPHONE LC_TIME
4770 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4771 eval $as_var=C; export $as_var
4773 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4777 # Required to use basename.
4778 if expr a : '\(a\)' >/dev/null 2>&1 &&
4779 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4785 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4786 as_basename=basename
4792 # Name of the executable.
4793 as_me=`$as_basename -- "$0" ||
4794 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4795 X"$0" : 'X\(//\)$' \| \
4796 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4798 sed '/^.*\/\([^/][^/]*\)\/*$/{
4819 test "x$as_lineno_1" != "x$as_lineno_2" &&
4820 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4822 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4823 # uniformly replaced by the line number. The first 'sed' inserts a
4824 # line-number line after each line using $LINENO; the second 'sed'
4825 # does the real work. The second script uses 'N' to pair each
4826 # line-number line with the line containing $LINENO, and appends
4827 # trailing '-' during substitution so that $LINENO is not a special
4829 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4830 # scripts with optimization help from Paolo Bonzini. Blame Lee
4831 # E. McMahon (1931-1989) for sed's syntax. :-)
4843 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4847 chmod +x "$as_me.lineno" ||
4848 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4849 { (exit 1); exit 1; }; }
4851 # Don't try to exec as it changes $[0], causing all sort of problems
4852 # (the dirname of $[0] is not the place where we might find the
4853 # original and so on. Autoconf is especially sensitive to this).
4855 # Exit status is that of the last command.
4860 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4866 ECHO_C= ECHO_N= ECHO_T=
4869 case `echo 'x\c'` in
4870 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4877 if expr a : '\(a\)' >/dev/null 2>&1 &&
4878 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4884 rm -f conf$$ conf$$.exe conf$$.file
4885 if test -d conf$$.dir; then
4886 rm -f conf$$.dir/conf$$.file
4892 if ln -s conf$$.file conf$$ 2>/dev/null; then
4894 # ... but there are two gotchas:
4895 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4896 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4897 # In both cases, we have to default to `cp -p'.
4898 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4900 elif ln conf$$.file conf$$ 2>/dev/null; then
4905 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4906 rmdir conf$$.dir 2>/dev/null
4908 if mkdir -p . 2>/dev/null; then
4911 test -d ./-p && rmdir ./-p
4915 if test -x / >/dev/null 2>&1; then
4918 if ls -dL / >/dev/null 2>&1; then
4925 if test -d "$1"; then
4931 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
4932 ???[sx]*):;;*)false;;esac;fi
4936 as_executable_p=$as_test_x
4938 # Sed expression to map a string onto a valid CPP name.
4939 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4941 # Sed expression to map a string onto a valid variable name.
4942 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4947 # Save the log message, to keep $[0] and so on meaningful, and to
4948 # report actual input values of CONFIG_FILES etc. instead of their
4949 # values after options handling.
4951 This file was extended by ccache-swig $as_me 0.0, which was
4952 generated by GNU Autoconf 2.61. Invocation command line was
4954 CONFIG_FILES = $CONFIG_FILES
4955 CONFIG_HEADERS = $CONFIG_HEADERS
4956 CONFIG_LINKS = $CONFIG_LINKS
4957 CONFIG_COMMANDS = $CONFIG_COMMANDS
4960 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4965 cat >>$CONFIG_STATUS <<_ACEOF
4966 # Files that config.status was made for.
4967 config_files="$ac_config_files"
4968 config_headers="$ac_config_headers"
4972 cat >>$CONFIG_STATUS <<\_ACEOF
4974 \`$as_me' instantiates files from templates according to the
4975 current configuration.
4977 Usage: $0 [OPTIONS] [FILE]...
4979 -h, --help print this help, then exit
4980 -V, --version print version number and configuration settings, then exit
4981 -q, --quiet do not print progress messages
4982 -d, --debug don't remove temporary files
4983 --recheck update $as_me by reconfiguring in the same conditions
4984 --file=FILE[:TEMPLATE]
4985 instantiate the configuration file FILE
4986 --header=FILE[:TEMPLATE]
4987 instantiate the configuration header FILE
4989 Configuration files:
4992 Configuration headers:
4995 Report bugs to <bug-autoconf@gnu.org>."
4998 cat >>$CONFIG_STATUS <<_ACEOF
5000 ccache-swig config.status 0.0
5001 configured by $0, generated by GNU Autoconf 2.61,
5002 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5004 Copyright (C) 2006 Free Software Foundation, Inc.
5005 This config.status script is free software; the Free Software Foundation
5006 gives unlimited permission to copy, distribute and modify it."
5013 cat >>$CONFIG_STATUS <<\_ACEOF
5014 # If no file are specified by the user, then we need to provide default
5015 # value. By we need to know if files were specified by the user.
5021 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5022 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5033 # Handling of the options.
5034 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5036 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5037 echo "$ac_cs_version"; exit ;;
5038 --debug | --debu | --deb | --de | --d | -d )
5040 --file | --fil | --fi | --f )
5042 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5043 ac_need_defaults=false;;
5044 --header | --heade | --head | --hea )
5046 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5047 ac_need_defaults=false;;
5049 # Conflict between --help and --header
5050 { echo "$as_me: error: ambiguous option: $1
5051 Try \`$0 --help' for more information." >&2
5052 { (exit 1); exit 1; }; };;
5053 --help | --hel | -h )
5054 echo "$ac_cs_usage"; exit ;;
5055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5056 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5060 -*) { echo "$as_me: error: unrecognized option: $1
5061 Try \`$0 --help' for more information." >&2
5062 { (exit 1); exit 1; }; } ;;
5064 *) ac_config_targets="$ac_config_targets $1"
5065 ac_need_defaults=false ;;
5071 ac_configure_extra_args=
5073 if $ac_cs_silent; then
5075 ac_configure_extra_args="$ac_configure_extra_args --silent"
5079 cat >>$CONFIG_STATUS <<_ACEOF
5080 if \$ac_cs_recheck; then
5081 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5084 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5088 cat >>$CONFIG_STATUS <<\_ACEOF
5092 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5093 ## Running $as_me. ##
5099 cat >>$CONFIG_STATUS <<_ACEOF
5102 cat >>$CONFIG_STATUS <<\_ACEOF
5104 # Handling of arguments.
5105 for ac_config_target in $ac_config_targets
5107 case $ac_config_target in
5108 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5109 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5111 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5112 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5113 { (exit 1); exit 1; }; };;
5118 # If the user did not use the arguments to specify the items to instantiate,
5119 # then the envvar interface is used. Set only those that are not.
5120 # We use the long form for the default assignment because of an extremely
5121 # bizarre bug on SunOS 4.1.3.
5122 if $ac_need_defaults; then
5123 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5124 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5127 # Have a temporary directory for convenience. Make it in the build tree
5128 # simply because there is no reason against having it here, and in addition,
5129 # creating and moving files from /tmp can sometimes cause problems.
5130 # Hook for its removal unless debugging.
5131 # Note that there is a small window in which the directory will not be cleaned:
5132 # after its creation but before its name has been assigned to `$tmp'.
5136 trap 'exit_status=$?
5137 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5139 trap '{ (exit 1); exit 1; }' 1 2 13 15
5141 # Create a (secure) tmp directory for tmp files.
5144 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5145 test -n "$tmp" && test -d "$tmp"
5148 tmp=./conf$$-$RANDOM
5149 (umask 077 && mkdir "$tmp")
5152 echo "$me: cannot create a temporary directory in ." >&2
5153 { (exit 1); exit 1; }
5157 # Set up the sed scripts for CONFIG_FILES section.
5160 # No need to generate the scripts if there are no CONFIG_FILES.
5161 # This happens for instance when ./config.status config.h
5162 if test -n "$CONFIG_FILES"; then
5169 for ac_last_try in false false false false false :; do
5170 cat >conf$$subs.sed <<_ACEOF
5171 SHELL!$SHELL$ac_delim
5172 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5173 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5174 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5175 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5176 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5177 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5178 exec_prefix!$exec_prefix$ac_delim
5179 prefix!$prefix$ac_delim
5180 program_transform_name!$program_transform_name$ac_delim
5181 bindir!$bindir$ac_delim
5182 sbindir!$sbindir$ac_delim
5183 libexecdir!$libexecdir$ac_delim
5184 datarootdir!$datarootdir$ac_delim
5185 datadir!$datadir$ac_delim
5186 sysconfdir!$sysconfdir$ac_delim
5187 sharedstatedir!$sharedstatedir$ac_delim
5188 localstatedir!$localstatedir$ac_delim
5189 includedir!$includedir$ac_delim
5190 oldincludedir!$oldincludedir$ac_delim
5191 docdir!$docdir$ac_delim
5192 infodir!$infodir$ac_delim
5193 htmldir!$htmldir$ac_delim
5194 dvidir!$dvidir$ac_delim
5195 pdfdir!$pdfdir$ac_delim
5196 psdir!$psdir$ac_delim
5197 libdir!$libdir$ac_delim
5198 localedir!$localedir$ac_delim
5199 mandir!$mandir$ac_delim
5201 ECHO_C!$ECHO_C$ac_delim
5202 ECHO_N!$ECHO_N$ac_delim
5203 ECHO_T!$ECHO_T$ac_delim
5205 build_alias!$build_alias$ac_delim
5206 host_alias!$host_alias$ac_delim
5207 target_alias!$target_alias$ac_delim
5209 CFLAGS!$CFLAGS$ac_delim
5210 LDFLAGS!$LDFLAGS$ac_delim
5211 CPPFLAGS!$CPPFLAGS$ac_delim
5212 ac_ct_CC!$ac_ct_CC$ac_delim
5213 EXEEXT!$EXEEXT$ac_delim
5214 OBJEXT!$OBJEXT$ac_delim
5216 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
5217 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
5218 INSTALL_DATA!$INSTALL_DATA$ac_delim
5220 EGREP!$EGREP$ac_delim
5221 LIBOBJS!$LIBOBJS$ac_delim
5222 LTLIBOBJS!$LTLIBOBJS$ac_delim
5225 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then
5227 elif $ac_last_try; then
5228 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5229 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5230 { (exit 1); exit 1; }; }
5232 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5236 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5237 if test -n "$ac_eof"; then
5238 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5239 ac_eof=`expr $ac_eof + 1`
5242 cat >>$CONFIG_STATUS <<_ACEOF
5243 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5244 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
5247 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5248 s/^/s,@/; s/!/@,|#_!!_#|/
5251 s/'"$ac_delim"'$/,g/; t
5253 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5254 ' >>$CONFIG_STATUS <conf$$subs.sed
5255 rm -f conf$$subs.sed
5256 cat >>$CONFIG_STATUS <<_ACEOF
5263 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5264 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5265 # trailing colons and then remove the whole line if VPATH becomes empty
5266 # (actually we leave an empty line to preserve line numbers).
5267 if test "x$srcdir" = x.; then
5268 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5272 s/^\([^=]*=[ ]*\):*/\1/
5278 cat >>$CONFIG_STATUS <<\_ACEOF
5279 fi # test -n "$CONFIG_FILES"
5282 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
5285 :[FHLC]) ac_mode=$ac_tag; continue;;
5287 case $ac_mode$ac_tag in
5289 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5290 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5291 { (exit 1); exit 1; }; };;
5292 :[FH]-) ac_tag=-:-;;
5293 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5310 -) ac_f="$tmp/stdin";;
5311 *) # Look for the file first in the build tree, then in the source tree
5312 # (if the path is not absolute). The absolute path cannot be DOS-style,
5313 # because $ac_f cannot contain `:'.
5317 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5319 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5320 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5321 { (exit 1); exit 1; }; };;
5323 ac_file_inputs="$ac_file_inputs $ac_f"
5326 # Let's still pretend it is `configure' which instantiates (i.e., don't
5327 # use $as_me), people would be surprised to read:
5328 # /* config.h. Generated by config.status. */
5329 configure_input="Generated from "`IFS=:
5330 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
5331 if test x"$ac_file" != x-; then
5332 configure_input="$ac_file. $configure_input"
5333 { echo "$as_me:$LINENO: creating $ac_file" >&5
5334 echo "$as_me: creating $ac_file" >&6;}
5338 *:-:* | *:-) cat >"$tmp/stdin";;
5343 ac_dir=`$as_dirname -- "$ac_file" ||
5344 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5345 X"$ac_file" : 'X\(//\)[^/]' \| \
5346 X"$ac_file" : 'X\(//\)$' \| \
5347 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5368 -*) as_dir=./$as_dir;;
5370 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5374 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5375 *) as_qdir=$as_dir;;
5377 as_dirs="'$as_qdir' $as_dirs"
5378 as_dir=`$as_dirname -- "$as_dir" ||
5379 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5380 X"$as_dir" : 'X\(//\)[^/]' \| \
5381 X"$as_dir" : 'X\(//\)$' \| \
5382 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5401 test -d "$as_dir" && break
5403 test -z "$as_dirs" || eval "mkdir $as_dirs"
5404 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5405 echo "$as_me: error: cannot create directory $as_dir" >&2;}
5406 { (exit 1); exit 1; }; }; }
5410 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5412 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5413 # A ".." for each directory in $ac_dir_suffix.
5414 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5415 case $ac_top_builddir_sub in
5416 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5417 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5420 ac_abs_top_builddir=$ac_pwd
5421 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5422 # for backward compatibility:
5423 ac_top_builddir=$ac_top_build_prefix
5426 .) # We are building in place.
5428 ac_top_srcdir=$ac_top_builddir_sub
5429 ac_abs_top_srcdir=$ac_pwd ;;
5430 [\\/]* | ?:[\\/]* ) # Absolute name.
5431 ac_srcdir=$srcdir$ac_dir_suffix;
5432 ac_top_srcdir=$srcdir
5433 ac_abs_top_srcdir=$srcdir ;;
5435 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5436 ac_top_srcdir=$ac_top_build_prefix$srcdir
5437 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5439 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5449 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5450 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5454 cat >>$CONFIG_STATUS <<\_ACEOF
5455 # If the template does not know about datarootdir, expand it.
5456 # FIXME: This hack should be removed a few years after 2.60.
5457 ac_datarootdir_hack=; ac_datarootdir_seen=
5459 case `sed -n '/datarootdir/ {
5468 ' $ac_file_inputs` in
5469 *datarootdir*) ac_datarootdir_seen=yes;;
5470 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5471 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5472 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5474 cat >>$CONFIG_STATUS <<_ACEOF
5475 ac_datarootdir_hack='
5476 s&@datadir@&$datadir&g
5477 s&@docdir@&$docdir&g
5478 s&@infodir@&$infodir&g
5479 s&@localedir@&$localedir&g
5480 s&@mandir@&$mandir&g
5481 s&\\\${datarootdir}&$datarootdir&g' ;;
5485 # Neutralize VPATH when `$srcdir' = `.'.
5486 # Shell code in configure.ac might set extrasub.
5487 # FIXME: do we really want to maintain this feature?
5488 cat >>$CONFIG_STATUS <<_ACEOF
5492 cat >>$CONFIG_STATUS <<\_ACEOF
5494 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5495 s&@configure_input@&$configure_input&;t t
5496 s&@top_builddir@&$ac_top_builddir_sub&;t t
5497 s&@srcdir@&$ac_srcdir&;t t
5498 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5499 s&@top_srcdir@&$ac_top_srcdir&;t t
5500 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5501 s&@builddir@&$ac_builddir&;t t
5502 s&@abs_builddir@&$ac_abs_builddir&;t t
5503 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5504 s&@INSTALL@&$ac_INSTALL&;t t
5505 $ac_datarootdir_hack
5506 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
5508 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5509 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5510 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5511 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5512 which seems to be undefined. Please make sure it is defined." >&5
5513 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5514 which seems to be undefined. Please make sure it is defined." >&2;}
5518 -) cat "$tmp/out"; rm -f "$tmp/out";;
5519 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
5528 # Transform confdefs.h into a sed script `conftest.defines', that
5529 # substitutes the proper values into config.h.in to produce config.h.
5530 rm -f conftest.defines conftest.tail
5531 # First, append a space to every undef/define line, to ease matching.
5532 echo 's/$/ /' >conftest.defines
5533 # Then, protect against being on the right side of a sed subst, or in
5534 # an unquoted here document, in config.status. If some macros were
5535 # called several times there might be several #defines for the same
5536 # symbol, which is useless. But do not sort them, since the last
5537 # AC_DEFINE must be honored.
5538 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5539 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
5540 # NAME is the cpp macro being defined, VALUE is the value it is being given.
5541 # PARAMS is the parameter list in the macro definition--in most cases, it's
5542 # just an empty string.
5543 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
5544 ac_dB='\\)[ (].*,\\1define\\2'
5552 s/^[ ]*#[ ]*define[ ][ ]*//
5557 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
5558 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
5559 ' >>conftest.defines
5561 # Remove the space that was appended to ease matching.
5562 # Then replace #undef with comments. This is necessary, for
5563 # example, in the case of _POSIX_SOURCE, which is predefined and required
5564 # on some systems where configure will not decide to define it.
5565 # (The regexp can be short, since the line contains either #define or #undef.)
5567 s,^[ #]*u.*,/* & */,' >>conftest.defines
5569 # Break up conftest.defines:
5572 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
5573 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
5574 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
5576 ac_in='$ac_file_inputs'
5577 ac_out='"$tmp/out1"'
5578 ac_nxt='"$tmp/out2"'
5582 # Write a here document:
5583 cat >>$CONFIG_STATUS <<_ACEOF
5584 # First, check the format of the line:
5585 cat >"\$tmp/defines.sed" <<\\CEOF
5586 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
5587 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
5591 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
5593 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
5594 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
5595 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
5596 grep . conftest.tail >/dev/null || break
5597 rm -f conftest.defines
5598 mv conftest.tail conftest.defines
5600 rm -f conftest.defines conftest.tail
5602 echo "ac_result=$ac_in" >>$CONFIG_STATUS
5603 cat >>$CONFIG_STATUS <<\_ACEOF
5604 if test x"$ac_file" != x-; then
5605 echo "/* $configure_input */" >"$tmp/config.h"
5606 cat "$ac_result" >>"$tmp/config.h"
5607 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
5608 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5609 echo "$as_me: $ac_file is unchanged" >&6;}
5612 mv "$tmp/config.h" $ac_file
5615 echo "/* $configure_input */"
5627 { (exit 0); exit 0; }
5629 chmod +x $CONFIG_STATUS
5630 ac_clean_files=$ac_clean_files_save
5633 # configure is writing to config.log, and then calls config.status.
5634 # config.status does its own redirection, appending to config.log.
5635 # Unfortunately, on DOS this fails, as config.log is still kept open
5636 # by configure, so config.status won't be able to write to it; its
5637 # output is simply discarded. So we exec the FD to /dev/null,
5638 # effectively closing config.log, so it can be properly (re)opened and
5639 # appended to by config.status. When coming back to configure, we
5640 # need to make the FD available again.
5641 if test "$no_create" != yes; then
5643 ac_config_status_args=
5644 test "$silent" = yes &&
5645 ac_config_status_args="$ac_config_status_args --quiet"
5647 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5649 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5650 # would make configure fail if this is the last instruction.
5651 $ac_cs_success || { (exit 1); exit 1; }