2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for gzip 1.3.12.
5 # Report bugs to <bug-gzip@gnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix=/usr/local
566 ac_config_libobj_dir=.
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
576 PACKAGE_TARNAME='gzip'
577 PACKAGE_VERSION='1.3.12'
578 PACKAGE_STRING='gzip 1.3.12'
579 PACKAGE_BUGREPORT='bug-gzip@gnu.org'
581 ac_unique_file="gzip.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
629 program_transform_name
671 INSTALL_STRIP_PROGRAM
702 GL_COND_LIBTOOL_FALSE
729 TIME_H_DEFINES_STRUCT_TIMESPEC
730 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
758 ac_precious_vars='build_alias
769 # Initialize some variables set by options.
771 ac_init_version=false
772 # The variables have the same names as the options, with
773 # dashes changed to underlines.
781 program_transform_name=s,x,x,
789 # Installation directory options.
790 # These are left unexpanded so users can "make install exec_prefix=/foo"
791 # and all the variables that are supposed to be based on exec_prefix
792 # by default will actually change.
793 # Use braces instead of parens because sh, perl, etc. also accept them.
794 # (The list follows the same order as the GNU Coding Standards.)
795 bindir='${exec_prefix}/bin'
796 sbindir='${exec_prefix}/sbin'
797 libexecdir='${exec_prefix}/libexec'
798 datarootdir='${prefix}/share'
799 datadir='${datarootdir}'
800 sysconfdir='${prefix}/etc'
801 sharedstatedir='${prefix}/com'
802 localstatedir='${prefix}/var'
803 includedir='${prefix}/include'
804 oldincludedir='/usr/include'
805 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
806 infodir='${datarootdir}/info'
811 libdir='${exec_prefix}/lib'
812 localedir='${datarootdir}/locale'
813 mandir='${datarootdir}/man'
819 # If the previous option needs an argument, assign it.
820 if test -n "$ac_prev"; then
821 eval $ac_prev=\$ac_option
827 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
831 # Accept the important Cygnus configure options, so we can diagnose typos.
833 case $ac_dashdash$ac_option in
837 -bindir | --bindir | --bindi | --bind | --bin | --bi)
839 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842 -build | --build | --buil | --bui | --bu)
843 ac_prev=build_alias ;;
844 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845 build_alias=$ac_optarg ;;
847 -cache-file | --cache-file | --cache-fil | --cache-fi \
848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849 ac_prev=cache_file ;;
850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852 cache_file=$ac_optarg ;;
855 cache_file=config.cache ;;
857 -datadir | --datadir | --datadi | --datad)
859 -datadir=* | --datadir=* | --datadi=* | --datad=*)
860 datadir=$ac_optarg ;;
862 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863 | --dataroo | --dataro | --datar)
864 ac_prev=datarootdir ;;
865 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867 datarootdir=$ac_optarg ;;
869 -disable-* | --disable-*)
870 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
873 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
874 { (exit 1); exit 1; }; }
875 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
876 eval enable_$ac_feature=no ;;
878 -docdir | --docdir | --docdi | --doc | --do)
880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888 -enable-* | --enable-*)
889 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
892 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
893 { (exit 1); exit 1; }; }
894 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
895 eval enable_$ac_feature=\$ac_optarg ;;
897 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899 | --exec | --exe | --ex)
900 ac_prev=exec_prefix ;;
901 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903 | --exec=* | --exe=* | --ex=*)
904 exec_prefix=$ac_optarg ;;
906 -gas | --gas | --ga | --g)
907 # Obsolete; use --with-gas.
910 -help | --help | --hel | --he | -h)
912 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913 ac_init_help=recursive ;;
914 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915 ac_init_help=short ;;
917 -host | --host | --hos | --ho)
918 ac_prev=host_alias ;;
919 -host=* | --host=* | --hos=* | --ho=*)
920 host_alias=$ac_optarg ;;
922 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
924 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
926 htmldir=$ac_optarg ;;
928 -includedir | --includedir | --includedi | --included | --include \
929 | --includ | --inclu | --incl | --inc)
930 ac_prev=includedir ;;
931 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932 | --includ=* | --inclu=* | --incl=* | --inc=*)
933 includedir=$ac_optarg ;;
935 -infodir | --infodir | --infodi | --infod | --info | --inf)
937 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938 infodir=$ac_optarg ;;
940 -libdir | --libdir | --libdi | --libd)
942 -libdir=* | --libdir=* | --libdi=* | --libd=*)
945 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946 | --libexe | --libex | --libe)
947 ac_prev=libexecdir ;;
948 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949 | --libexe=* | --libex=* | --libe=*)
950 libexecdir=$ac_optarg ;;
952 -localedir | --localedir | --localedi | --localed | --locale)
954 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955 localedir=$ac_optarg ;;
957 -localstatedir | --localstatedir | --localstatedi | --localstated \
958 | --localstate | --localstat | --localsta | --localst | --locals)
959 ac_prev=localstatedir ;;
960 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962 localstatedir=$ac_optarg ;;
964 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
966 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
970 # Obsolete; use --without-fp.
973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974 | --no-cr | --no-c | -n)
977 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
981 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983 | --oldin | --oldi | --old | --ol | --o)
984 ac_prev=oldincludedir ;;
985 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988 oldincludedir=$ac_optarg ;;
990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
995 -program-prefix | --program-prefix | --program-prefi | --program-pref \
996 | --program-pre | --program-pr | --program-p)
997 ac_prev=program_prefix ;;
998 -program-prefix=* | --program-prefix=* | --program-prefi=* \
999 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000 program_prefix=$ac_optarg ;;
1002 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003 | --program-suf | --program-su | --program-s)
1004 ac_prev=program_suffix ;;
1005 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007 program_suffix=$ac_optarg ;;
1009 -program-transform-name | --program-transform-name \
1010 | --program-transform-nam | --program-transform-na \
1011 | --program-transform-n | --program-transform- \
1012 | --program-transform | --program-transfor \
1013 | --program-transfo | --program-transf \
1014 | --program-trans | --program-tran \
1015 | --progr-tra | --program-tr | --program-t)
1016 ac_prev=program_transform_name ;;
1017 -program-transform-name=* | --program-transform-name=* \
1018 | --program-transform-nam=* | --program-transform-na=* \
1019 | --program-transform-n=* | --program-transform-=* \
1020 | --program-transform=* | --program-transfor=* \
1021 | --program-transfo=* | --program-transf=* \
1022 | --program-trans=* | --program-tran=* \
1023 | --progr-tra=* | --program-tr=* | --program-t=*)
1024 program_transform_name=$ac_optarg ;;
1026 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1028 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029 pdfdir=$ac_optarg ;;
1031 -psdir | --psdir | --psdi | --psd | --ps)
1033 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1044 sbindir=$ac_optarg ;;
1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048 | --sharedst | --shareds | --shared | --share | --shar \
1050 ac_prev=sharedstatedir ;;
1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1055 sharedstatedir=$ac_optarg ;;
1057 -site | --site | --sit)
1059 -site=* | --site=* | --sit=*)
1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065 srcdir=$ac_optarg ;;
1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068 | --syscon | --sysco | --sysc | --sys | --sy)
1069 ac_prev=sysconfdir ;;
1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072 sysconfdir=$ac_optarg ;;
1074 -target | --target | --targe | --targ | --tar | --ta | --t)
1075 ac_prev=target_alias ;;
1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077 target_alias=$ac_optarg ;;
1079 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1082 -version | --version | --versio | --versi | --vers | -V)
1083 ac_init_version=: ;;
1086 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1089 { echo "$as_me: error: invalid package name: $ac_package" >&2
1090 { (exit 1); exit 1; }; }
1091 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1092 eval with_$ac_package=\$ac_optarg ;;
1094 -without-* | --without-*)
1095 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1098 { echo "$as_me: error: invalid package name: $ac_package" >&2
1099 { (exit 1); exit 1; }; }
1100 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1101 eval with_$ac_package=no ;;
1104 # Obsolete; use --with-x.
1107 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1108 | --x-incl | --x-inc | --x-in | --x-i)
1109 ac_prev=x_includes ;;
1110 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1111 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1112 x_includes=$ac_optarg ;;
1114 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1115 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1116 ac_prev=x_libraries ;;
1117 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1118 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1119 x_libraries=$ac_optarg ;;
1121 -*) { echo "$as_me: error: unrecognized option: $ac_option
1122 Try \`$0 --help' for more information." >&2
1123 { (exit 1); exit 1; }; }
1127 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1130 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1131 { (exit 1); exit 1; }; }
1132 eval $ac_envvar=\$ac_optarg
1133 export $ac_envvar ;;
1136 # FIXME: should be removed in autoconf 3.0.
1137 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1138 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1139 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1140 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1146 if test -n "$ac_prev"; then
1147 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1148 { echo "$as_me: error: missing argument to $ac_option" >&2
1149 { (exit 1); exit 1; }; }
1152 # Be sure to have absolute directory names.
1153 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1154 datadir sysconfdir sharedstatedir localstatedir includedir \
1155 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1156 libdir localedir mandir
1158 eval ac_val=\$$ac_var
1160 [\\/$]* | ?:[\\/]* ) continue;;
1161 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1163 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1164 { (exit 1); exit 1; }; }
1167 # There might be people who depend on the old broken behavior: `$host'
1168 # used to hold the argument of --host etc.
1169 # FIXME: To remove some day.
1172 target=$target_alias
1174 # FIXME: To remove some day.
1175 if test "x$host_alias" != x; then
1176 if test "x$build_alias" = x; then
1177 cross_compiling=maybe
1178 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1179 If a cross compiler is detected then cross compile mode will be used." >&2
1180 elif test "x$build_alias" != "x$host_alias"; then
1186 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1188 test "$silent" = yes && exec 6>/dev/null
1191 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1192 ac_ls_di=`ls -di .` &&
1193 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1194 { echo "$as_me: error: Working directory cannot be determined" >&2
1195 { (exit 1); exit 1; }; }
1196 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1197 { echo "$as_me: error: pwd does not report name of working directory" >&2
1198 { (exit 1); exit 1; }; }
1201 # Find the source files, if location was not specified.
1202 if test -z "$srcdir"; then
1203 ac_srcdir_defaulted=yes
1204 # Try the directory containing this script, then the parent directory.
1205 ac_confdir=`$as_dirname -- "$0" ||
1206 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1207 X"$0" : 'X\(//\)[^/]' \| \
1208 X"$0" : 'X\(//\)$' \| \
1209 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1229 if test ! -r "$srcdir/$ac_unique_file"; then
1233 ac_srcdir_defaulted=no
1235 if test ! -r "$srcdir/$ac_unique_file"; then
1236 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1237 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1238 { (exit 1); exit 1; }; }
1240 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1242 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1243 { (exit 1); exit 1; }; }
1245 # When building in place, set srcdir=.
1246 if test "$ac_abs_confdir" = "$ac_pwd"; then
1249 # Remove unnecessary trailing slashes from srcdir.
1250 # Double slashes in file names in object file debugging info
1251 # mess up M-x gdb in Emacs.
1253 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1255 for ac_var in $ac_precious_vars; do
1256 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1257 eval ac_env_${ac_var}_value=\$${ac_var}
1258 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1259 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1263 # Report the --help message.
1265 if test "$ac_init_help" = "long"; then
1266 # Omit some internal or obsolete options to make the list less imposing.
1267 # This message is too long to be a string in the A/UX 3.1 sh.
1269 \`configure' configures gzip 1.3.12 to adapt to many kinds of systems.
1271 Usage: $0 [OPTION]... [VAR=VALUE]...
1273 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1274 VAR=VALUE. See below for descriptions of some of the useful variables.
1276 Defaults for the options are specified in brackets.
1279 -h, --help display this help and exit
1280 --help=short display options specific to this package
1281 --help=recursive display the short help of all the included packages
1282 -V, --version display version information and exit
1283 -q, --quiet, --silent do not print \`checking...' messages
1284 --cache-file=FILE cache test results in FILE [disabled]
1285 -C, --config-cache alias for \`--cache-file=config.cache'
1286 -n, --no-create do not create output files
1287 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1289 Installation directories:
1290 --prefix=PREFIX install architecture-independent files in PREFIX
1291 [$ac_default_prefix]
1292 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1295 By default, \`make install' will install all the files in
1296 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1297 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1298 for instance \`--prefix=\$HOME'.
1300 For better control, use the options below.
1302 Fine tuning of the installation directories:
1303 --bindir=DIR user executables [EPREFIX/bin]
1304 --sbindir=DIR system admin executables [EPREFIX/sbin]
1305 --libexecdir=DIR program executables [EPREFIX/libexec]
1306 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1307 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1308 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1309 --libdir=DIR object code libraries [EPREFIX/lib]
1310 --includedir=DIR C header files [PREFIX/include]
1311 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1312 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1313 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1314 --infodir=DIR info documentation [DATAROOTDIR/info]
1315 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1316 --mandir=DIR man documentation [DATAROOTDIR/man]
1317 --docdir=DIR documentation root [DATAROOTDIR/doc/gzip]
1318 --htmldir=DIR html documentation [DOCDIR]
1319 --dvidir=DIR dvi documentation [DOCDIR]
1320 --pdfdir=DIR pdf documentation [DOCDIR]
1321 --psdir=DIR ps documentation [DOCDIR]
1327 --program-prefix=PREFIX prepend PREFIX to installed program names
1328 --program-suffix=SUFFIX append SUFFIX to installed program names
1329 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1333 if test -n "$ac_init_help"; then
1334 case $ac_init_help in
1335 short | recursive ) echo "Configuration of gzip 1.3.12:";;
1340 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1341 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1342 --disable-dependency-tracking speeds up one-time build
1343 --enable-dependency-tracking do not reject slow dependency extractors
1344 --disable-largefile omit support for large files
1346 Some influential environment variables:
1347 CC C compiler command
1348 CFLAGS C compiler flags
1349 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1350 nonstandard directory <lib dir>
1351 LIBS libraries to pass to the linker, e.g. -l<library>
1352 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1353 you have headers in a nonstandard directory <include dir>
1356 Use these variables to override the choices made by `configure' or to help
1357 it to find libraries and programs with nonstandard names/locations.
1359 Report bugs to <bug-gzip@gnu.org>.
1364 if test "$ac_init_help" = "recursive"; then
1365 # If there are subdirs, report their specific --help.
1366 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1367 test -d "$ac_dir" || continue
1371 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1373 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1374 # A ".." for each directory in $ac_dir_suffix.
1375 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1376 case $ac_top_builddir_sub in
1377 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1381 ac_abs_top_builddir=$ac_pwd
1382 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1383 # for backward compatibility:
1384 ac_top_builddir=$ac_top_build_prefix
1387 .) # We are building in place.
1389 ac_top_srcdir=$ac_top_builddir_sub
1390 ac_abs_top_srcdir=$ac_pwd ;;
1391 [\\/]* | ?:[\\/]* ) # Absolute name.
1392 ac_srcdir=$srcdir$ac_dir_suffix;
1393 ac_top_srcdir=$srcdir
1394 ac_abs_top_srcdir=$srcdir ;;
1396 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1397 ac_top_srcdir=$ac_top_build_prefix$srcdir
1398 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1400 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1402 cd "$ac_dir" || { ac_status=$?; continue; }
1403 # Check for guested configure.
1404 if test -f "$ac_srcdir/configure.gnu"; then
1406 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1407 elif test -f "$ac_srcdir/configure"; then
1409 $SHELL "$ac_srcdir/configure" --help=recursive
1411 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1413 cd "$ac_pwd" || { ac_status=$?; break; }
1417 test -n "$ac_init_help" && exit $ac_status
1418 if $ac_init_version; then
1420 gzip configure 1.3.12
1421 generated by GNU Autoconf 2.61
1423 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1424 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1425 This configure script is free software; the Free Software Foundation
1426 gives unlimited permission to copy, distribute and modify it.
1430 cat >config.log <<_ACEOF
1431 This file contains any messages produced by compilers while
1432 running configure, to aid debugging if configure makes a mistake.
1434 It was created by gzip $as_me 1.3.12, which was
1435 generated by GNU Autoconf 2.61. Invocation command line was
1447 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1448 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1449 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1450 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1451 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1453 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1454 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1456 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1457 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1458 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1459 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1460 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1461 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1462 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1470 test -z "$as_dir" && as_dir=.
1471 echo "PATH: $as_dir"
1487 # Keep a trace of the command line.
1488 # Strip out --no-create and --no-recursion so they do not pile up.
1489 # Strip out --silent because we don't want to record it for future runs.
1490 # Also quote any args containing shell meta-characters.
1491 # Make two passes to allow for proper duplicate-argument suppression.
1495 ac_must_keep_next=false
1501 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1502 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1503 | -silent | --silent | --silen | --sile | --sil)
1506 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1509 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1511 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1512 if test $ac_must_keep_next = true; then
1513 ac_must_keep_next=false # Got value, back to normal.
1516 *=* | --config-cache | -C | -disable-* | --disable-* \
1517 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1518 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1519 | -with-* | --with-* | -without-* | --without-* | --x)
1520 case "$ac_configure_args0 " in
1521 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1524 -* ) ac_must_keep_next=true ;;
1527 ac_configure_args="$ac_configure_args '$ac_arg'"
1532 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1533 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1535 # When interrupted or exit'd, cleanup temporary files, and complete
1536 # config.log. We remove comments because anyway the quotes in there
1537 # would cause problems or look ugly.
1538 # WARNING: Use '\'' to represent an apostrophe within the trap.
1539 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1540 trap 'exit_status=$?
1541 # Save into config.log some information that might help in debugging.
1546 ## ---------------- ##
1547 ## Cache variables. ##
1548 ## ---------------- ##
1551 # The following way of writing the cache mishandles newlines in values,
1553 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1554 eval ac_val=\$$ac_var
1558 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1559 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1562 _ | IFS | as_nl) ;; #(
1563 *) $as_unset $ac_var ;;
1568 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1569 *${as_nl}ac_space=\ *)
1571 "s/'\''/'\''\\\\'\'''\''/g;
1572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1575 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1583 ## ----------------- ##
1584 ## Output variables. ##
1585 ## ----------------- ##
1588 for ac_var in $ac_subst_vars
1590 eval ac_val=\$$ac_var
1592 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1594 echo "$ac_var='\''$ac_val'\''"
1598 if test -n "$ac_subst_files"; then
1600 ## ------------------- ##
1601 ## File substitutions. ##
1602 ## ------------------- ##
1605 for ac_var in $ac_subst_files
1607 eval ac_val=\$$ac_var
1609 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1611 echo "$ac_var='\''$ac_val'\''"
1616 if test -s confdefs.h; then
1626 test "$ac_signal" != 0 &&
1627 echo "$as_me: caught signal $ac_signal"
1628 echo "$as_me: exit $exit_status"
1630 rm -f core *.core core.conftest.* &&
1631 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1634 for ac_signal in 1 2 13 15; do
1635 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1639 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1640 rm -f -r conftest* confdefs.h
1642 # Predefined preprocessor variables.
1644 cat >>confdefs.h <<_ACEOF
1645 #define PACKAGE_NAME "$PACKAGE_NAME"
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_STRING "$PACKAGE_STRING"
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1669 # Let the site file select an alternate cache file if it wants to.
1670 # Prefer explicitly selected file to automatically selected ones.
1671 if test -n "$CONFIG_SITE"; then
1672 set x "$CONFIG_SITE"
1673 elif test "x$prefix" != xNONE; then
1674 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1676 set x "$ac_default_prefix/share/config.site" \
1677 "$ac_default_prefix/etc/config.site"
1682 if test -r "$ac_site_file"; then
1683 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1684 echo "$as_me: loading site script $ac_site_file" >&6;}
1685 sed 's/^/| /' "$ac_site_file" >&5
1690 if test -r "$cache_file"; then
1691 # Some versions of bash will fail to source /dev/null (special
1692 # files actually), so we avoid doing that.
1693 if test -f "$cache_file"; then
1694 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1695 echo "$as_me: loading cache $cache_file" >&6;}
1697 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1698 *) . "./$cache_file";;
1702 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1703 echo "$as_me: creating cache $cache_file" >&6;}
1707 ac_header_list="$ac_header_list fcntl.h"
1708 ac_header_list="$ac_header_list sys/time.h"
1709 ac_header_list="$ac_header_list stdlib.h"
1710 ac_func_list="$ac_func_list lstat"
1711 ac_header_list="$ac_header_list sys/stat.h"
1712 ac_header_list="$ac_header_list time.h"
1713 ac_header_list="$ac_header_list unistd.h"
1714 ac_func_list="$ac_func_list pipe"
1715 ac_header_list="$ac_header_list utime.h"
1716 ac_func_list="$ac_func_list futimes"
1717 ac_func_list="$ac_func_list futimesat"
1718 ac_header_list="$ac_header_list limits.h"
1719 ac_header_list="$ac_header_list memory.h"
1720 ac_func_list="$ac_func_list chown"
1721 ac_func_list="$ac_func_list fchmod"
1722 ac_func_list="$ac_func_list fchown"
1723 ac_func_list="$ac_func_list fdopendir"
1724 ac_func_list="$ac_func_list siginterrupt"
1725 # Check that the precious variables saved in the cache have kept the same
1727 ac_cache_corrupted=false
1728 for ac_var in $ac_precious_vars; do
1729 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1730 eval ac_new_set=\$ac_env_${ac_var}_set
1731 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1732 eval ac_new_val=\$ac_env_${ac_var}_value
1733 case $ac_old_set,$ac_new_set in
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1736 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1737 ac_cache_corrupted=: ;;
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1740 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1744 if test "x$ac_old_val" != "x$ac_new_val"; then
1745 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1746 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1747 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1748 echo "$as_me: former value: $ac_old_val" >&2;}
1749 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1750 echo "$as_me: current value: $ac_new_val" >&2;}
1751 ac_cache_corrupted=:
1754 # Pass precious variables to config.status.
1755 if test "$ac_new_set" = set; then
1757 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1758 *) ac_arg=$ac_var=$ac_new_val ;;
1760 case " $ac_configure_args " in
1761 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1762 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1766 if $ac_cache_corrupted; then
1767 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1768 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1769 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1770 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1771 { (exit 1); exit 1; }; }
1799 ac_cpp='$CPP $CPPFLAGS'
1800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1807 for ac_dir in build-aux "$srcdir"/build-aux; do
1808 if test -f "$ac_dir/install-sh"; then
1810 ac_install_sh="$ac_aux_dir/install-sh -c"
1812 elif test -f "$ac_dir/install.sh"; then
1814 ac_install_sh="$ac_aux_dir/install.sh -c"
1816 elif test -f "$ac_dir/shtool"; then
1818 ac_install_sh="$ac_aux_dir/shtool install -c"
1822 if test -z "$ac_aux_dir"; then
1823 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
1824 echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
1825 { (exit 1); exit 1; }; }
1828 # These three variables are undocumented and unsupported,
1829 # and are intended to be withdrawn in a future Autoconf release.
1830 # They can cause serious problems if a builder's source tree is in a directory
1831 # whose full name contains unusual characters.
1832 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1833 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1834 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1837 ac_config_headers="$ac_config_headers lib/config.h:lib/config.hin"
1839 am__api_version='1.10'
1841 # Find a good install program. We prefer a C program (faster),
1842 # so one script is as good as another. But avoid the broken or
1843 # incompatible versions:
1844 # SysV /etc/install, /usr/sbin/install
1845 # SunOS /usr/etc/install
1846 # IRIX /sbin/install
1848 # AmigaOS /C/install, which installs bootblocks on floppy discs
1849 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1850 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1851 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1852 # OS/2's system install, which has a completely different semantic
1853 # ./install, which can be erroneously created by make from ./install.sh.
1854 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1855 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1856 if test -z "$INSTALL"; then
1857 if test "${ac_cv_path_install+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 test -z "$as_dir" && as_dir=.
1865 # Account for people who put trailing slashes in PATH elements.
1867 ./ | .// | /cC/* | \
1868 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1869 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1872 # OSF1 and SCO ODT 3.0 have their own names for install.
1873 # Don't use installbsd from OSF since it installs stuff as root
1875 for ac_prog in ginstall scoinst install; do
1876 for ac_exec_ext in '' $ac_executable_extensions; do
1877 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1878 if test $ac_prog = install &&
1879 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1880 # AIX install. It has an incompatible calling convention.
1882 elif test $ac_prog = install &&
1883 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1884 # program-specific install script used by HP pwplus--don't use.
1887 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1900 if test "${ac_cv_path_install+set}" = set; then
1901 INSTALL=$ac_cv_path_install
1903 # As a last resort, use the slow shell script. Don't cache a
1904 # value for INSTALL within a source directory, because that will
1905 # break other packages using the cache if that directory is
1906 # removed, or if the value is a relative name.
1907 INSTALL=$ac_install_sh
1910 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1911 echo "${ECHO_T}$INSTALL" >&6; }
1913 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1914 # It thinks the first close brace ends the variable substitution.
1915 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1917 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1919 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1921 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1922 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1925 echo timestamp > conftest.file
1926 # Do `set' in a subshell so we don't clobber the current shell's
1927 # arguments. Must try -L first in case configure is actually a
1928 # symlink; some systems play weird games with the mod time of symlinks
1929 # (eg FreeBSD returns the mod time of the symlink's containing
1932 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1933 if test "$*" = "X"; then
1935 set X `ls -t $srcdir/configure conftest.file`
1938 if test "$*" != "X $srcdir/configure conftest.file" \
1939 && test "$*" != "X conftest.file $srcdir/configure"; then
1941 # If neither matched, then we have a broken ls. This can happen
1942 # if, for instance, CONFIG_SHELL is bash and it inherits a
1943 # broken ls alias from the environment. This has actually
1944 # happened. Such a system could not be considered "sane".
1945 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1946 alias in your environment" >&5
1947 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1948 alias in your environment" >&2;}
1949 { (exit 1); exit 1; }; }
1952 test "$2" = conftest.file
1958 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1959 Check your system clock" >&5
1960 echo "$as_me: error: newly created file is older than distributed files!
1961 Check your system clock" >&2;}
1962 { (exit 1); exit 1; }; }
1964 { echo "$as_me:$LINENO: result: yes" >&5
1965 echo "${ECHO_T}yes" >&6; }
1966 test "$program_prefix" != NONE &&
1967 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1968 # Use a double $ so make ignores it.
1969 test "$program_suffix" != NONE &&
1970 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1971 # Double any \ or $. echo might interpret backslashes.
1972 # By default was `s,x,x', remove it if useless.
1973 cat <<\_ACEOF >conftest.sed
1974 s/[\\$]/&&/g;s/;s,x,x,$//
1976 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1979 # expand $ac_aux_dir to an absolute path
1980 am_aux_dir=`cd $ac_aux_dir && pwd`
1982 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1983 # Use eval to expand $SHELL
1984 if eval "$MISSING --run true"; then
1985 am_missing_run="$MISSING --run "
1988 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1989 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1992 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1993 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1994 if test -z "$MKDIR_P"; then
1995 if test "${ac_cv_path_mkdir+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2002 test -z "$as_dir" && as_dir=.
2003 for ac_prog in mkdir gmkdir; do
2004 for ac_exec_ext in '' $ac_executable_extensions; do
2005 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2006 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2007 'mkdir (GNU coreutils) '* | \
2008 'mkdir (coreutils) '* | \
2009 'mkdir (fileutils) '4.1*)
2010 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2020 if test "${ac_cv_path_mkdir+set}" = set; then
2021 MKDIR_P="$ac_cv_path_mkdir -p"
2023 # As a last resort, use the slow shell script. Don't cache a
2024 # value for MKDIR_P within a source directory, because that will
2025 # break other packages using the cache if that directory is
2026 # removed, or if the value is a relative name.
2027 test -d ./--version && rmdir ./--version
2028 MKDIR_P="$ac_install_sh -d"
2031 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2032 echo "${ECHO_T}$MKDIR_P" >&6; }
2036 [\\/$]* | ?:[\\/]*) ;;
2037 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2040 for ac_prog in gawk mawk nawk awk
2042 # Extract the first word of "$ac_prog", so it can be a program name with args.
2043 set dummy $ac_prog; ac_word=$2
2044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2046 if test "${ac_cv_prog_AWK+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 if test -n "$AWK"; then
2050 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 test -z "$as_dir" && as_dir=.
2057 for ac_exec_ext in '' $ac_executable_extensions; do
2058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2059 ac_cv_prog_AWK="$ac_prog"
2060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 if test -n "$AWK"; then
2071 { echo "$as_me:$LINENO: result: $AWK" >&5
2072 echo "${ECHO_T}$AWK" >&6; }
2074 { echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6; }
2079 test -n "$AWK" && break
2082 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2083 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2084 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2085 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 cat >conftest.make <<\_ACEOF
2091 @echo '@@@%%%=$(MAKE)=@@@%%%'
2093 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2094 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2096 eval ac_cv_prog_make_${ac_make}_set=yes;;
2098 eval ac_cv_prog_make_${ac_make}_set=no;;
2102 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2103 { echo "$as_me:$LINENO: result: yes" >&5
2104 echo "${ECHO_T}yes" >&6; }
2107 { echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6; }
2109 SET_MAKE="MAKE=${MAKE-make}"
2112 rm -rf .tst 2>/dev/null
2113 mkdir .tst 2>/dev/null
2114 if test -d .tst; then
2119 rmdir .tst 2>/dev/null
2121 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2122 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2123 # is not polluted with repeated "-I."
2124 am__isrc=' -I$(srcdir)'
2125 # test to see if srcdir already configured
2126 if test -f $srcdir/config.status; then
2127 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2128 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2129 { (exit 1); exit 1; }; }
2133 # test whether we have cygpath
2134 if test -z "$CYGPATH_W"; then
2135 if (cygpath --version) >/dev/null 2>/dev/null; then
2136 CYGPATH_W='cygpath -w'
2143 # Define the identity of the package.
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE "$PACKAGE"
2153 cat >>confdefs.h <<_ACEOF
2154 #define VERSION "$VERSION"
2157 # Some tools Automake needs.
2159 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2162 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2165 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2168 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2171 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2173 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2175 # Installed binaries are usually stripped using `strip' when the user
2176 # run `make install-strip'. However `strip' might not be the right
2177 # tool to use in cross-compilation environments, therefore Automake
2178 # will honor the `STRIP' environment variable to overrule this program.
2179 if test "$cross_compiling" != no; then
2180 if test -n "$ac_tool_prefix"; then
2181 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2182 set dummy ${ac_tool_prefix}strip; ac_word=$2
2183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2185 if test "${ac_cv_prog_STRIP+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2188 if test -n "$STRIP"; then
2189 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 test -z "$as_dir" && as_dir=.
2196 for ac_exec_ext in '' $ac_executable_extensions; do
2197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2198 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2208 STRIP=$ac_cv_prog_STRIP
2209 if test -n "$STRIP"; then
2210 { echo "$as_me:$LINENO: result: $STRIP" >&5
2211 echo "${ECHO_T}$STRIP" >&6; }
2213 { echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6; }
2219 if test -z "$ac_cv_prog_STRIP"; then
2221 # Extract the first word of "strip", so it can be a program name with args.
2222 set dummy strip; ac_word=$2
2223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2225 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2228 if test -n "$ac_ct_STRIP"; then
2229 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 test -z "$as_dir" && as_dir=.
2236 for ac_exec_ext in '' $ac_executable_extensions; do
2237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2238 ac_cv_prog_ac_ct_STRIP="strip"
2239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2249 if test -n "$ac_ct_STRIP"; then
2250 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2251 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2253 { echo "$as_me:$LINENO: result: no" >&5
2254 echo "${ECHO_T}no" >&6; }
2257 if test "x$ac_ct_STRIP" = x; then
2260 case $cross_compiling:$ac_tool_warned in
2262 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2263 whose name does not start with the host triplet. If you think this
2264 configuration is useful to you, please write to autoconf@gnu.org." >&5
2265 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2266 whose name does not start with the host triplet. If you think this
2267 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2268 ac_tool_warned=yes ;;
2273 STRIP="$ac_cv_prog_STRIP"
2277 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2279 # We need awk for the "check" target. The system "awk" is bad on
2281 # Always define AMTAR for backward compatibility.
2283 AMTAR=${AMTAR-"${am_missing_run}tar"}
2285 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2292 DEPDIR="${am__leading_dot}deps"
2294 ac_config_commands="$ac_config_commands depfiles"
2297 am_make=${MAKE-make}
2298 cat > confinc << 'END'
2303 # If we don't find an include directive, just comment out the code.
2304 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2305 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2309 # First try GNU make style include.
2310 echo "include confinc" > confmf
2311 # We grep out `Entering directory' and `Leaving directory'
2312 # messages which can occur if `w' ends up in MAKEFLAGS.
2313 # In particular we don't look at `^make:' because GNU make might
2314 # be invoked under some other name (usually "gmake"), in which
2315 # case it prints its new name instead of `make'.
2316 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2321 # Now try BSD make style include.
2322 if test "$am__include" = "#"; then
2323 echo '.include "confinc"' > confmf
2324 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2325 am__include=.include
2332 { echo "$as_me:$LINENO: result: $_am_result" >&5
2333 echo "${ECHO_T}$_am_result" >&6; }
2334 rm -f confinc confmf
2336 # Check whether --enable-dependency-tracking was given.
2337 if test "${enable_dependency_tracking+set}" = set; then
2338 enableval=$enable_dependency_tracking;
2341 if test "x$enable_dependency_tracking" != xno; then
2342 am_depcomp="$ac_aux_dir/depcomp"
2345 if test "x$enable_dependency_tracking" != xno; then
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359 if test -n "$ac_tool_prefix"; then
2360 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2361 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364 if test "${ac_cv_prog_CC+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 if test -n "$CC"; then
2368 ac_cv_prog_CC="$CC" # Let the user override the test.
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2377 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 if test -n "$CC"; then
2389 { echo "$as_me:$LINENO: result: $CC" >&5
2390 echo "${ECHO_T}$CC" >&6; }
2392 { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2398 if test -z "$ac_cv_prog_CC"; then
2400 # Extract the first word of "gcc", so it can be a program name with args.
2401 set dummy gcc; ac_word=$2
2402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2404 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 if test -n "$ac_ct_CC"; then
2408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 test -z "$as_dir" && as_dir=.
2415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2417 ac_cv_prog_ac_ct_CC="gcc"
2418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2428 if test -n "$ac_ct_CC"; then
2429 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2430 echo "${ECHO_T}$ac_ct_CC" >&6; }
2432 { echo "$as_me:$LINENO: result: no" >&5
2433 echo "${ECHO_T}no" >&6; }
2436 if test "x$ac_ct_CC" = x; then
2439 case $cross_compiling:$ac_tool_warned in
2441 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2442 whose name does not start with the host triplet. If you think this
2443 configuration is useful to you, please write to autoconf@gnu.org." >&5
2444 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2445 whose name does not start with the host triplet. If you think this
2446 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2447 ac_tool_warned=yes ;;
2455 if test -z "$CC"; then
2456 if test -n "$ac_tool_prefix"; then
2457 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2458 set dummy ${ac_tool_prefix}cc; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_CC+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474 ac_cv_prog_CC="${ac_tool_prefix}cc"
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 if test -n "$CC"; then
2486 { echo "$as_me:$LINENO: result: $CC" >&5
2487 echo "${ECHO_T}$CC" >&6; }
2489 { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2496 if test -z "$CC"; then
2497 # Extract the first word of "cc", so it can be a program name with args.
2498 set dummy cc; ac_word=$2
2499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2501 if test "${ac_cv_prog_CC+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 if test -n "$CC"; then
2505 ac_cv_prog_CC="$CC" # Let the user override the test.
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2515 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2516 ac_prog_rejected=yes
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 if test $ac_prog_rejected = yes; then
2528 # We found a bogon in the path, so make sure we never use it.
2529 set dummy $ac_cv_prog_CC
2531 if test $# != 0; then
2532 # We chose a different compiler from the bogus one.
2533 # However, it has the same basename, so the bogon will be chosen
2534 # first if we set CC to just the basename; use the full file name.
2536 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2542 if test -n "$CC"; then
2543 { echo "$as_me:$LINENO: result: $CC" >&5
2544 echo "${ECHO_T}$CC" >&6; }
2546 { echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6; }
2552 if test -z "$CC"; then
2553 if test -n "$ac_tool_prefix"; then
2554 for ac_prog in cl.exe
2556 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2557 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2560 if test "${ac_cv_prog_CC+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 if test -n "$CC"; then
2564 ac_cv_prog_CC="$CC" # Let the user override the test.
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 if test -n "$CC"; then
2585 { echo "$as_me:$LINENO: result: $CC" >&5
2586 echo "${ECHO_T}$CC" >&6; }
2588 { echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6; }
2593 test -n "$CC" && break
2596 if test -z "$CC"; then
2598 for ac_prog in cl.exe
2600 # Extract the first word of "$ac_prog", so it can be a program name with args.
2601 set dummy $ac_prog; ac_word=$2
2602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 if test -n "$ac_ct_CC"; then
2608 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617 ac_cv_prog_ac_ct_CC="$ac_prog"
2618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2628 if test -n "$ac_ct_CC"; then
2629 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2630 echo "${ECHO_T}$ac_ct_CC" >&6; }
2632 { echo "$as_me:$LINENO: result: no" >&5
2633 echo "${ECHO_T}no" >&6; }
2637 test -n "$ac_ct_CC" && break
2640 if test "x$ac_ct_CC" = x; then
2643 case $cross_compiling:$ac_tool_warned in
2645 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2646 whose name does not start with the host triplet. If you think this
2647 configuration is useful to you, please write to autoconf@gnu.org." >&5
2648 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2649 whose name does not start with the host triplet. If you think this
2650 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2651 ac_tool_warned=yes ;;
2660 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2661 See \`config.log' for more details." >&5
2662 echo "$as_me: error: no acceptable C compiler found in \$PATH
2663 See \`config.log' for more details." >&2;}
2664 { (exit 1); exit 1; }; }
2666 # Provide some information about the compiler.
2667 echo "$as_me:$LINENO: checking for C compiler version" >&5
2668 ac_compiler=`set X $ac_compile; echo $2`
2669 { (ac_try="$ac_compiler --version >&5"
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675 (eval "$ac_compiler --version >&5") 2>&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }
2679 { (ac_try="$ac_compiler -v >&5"
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685 (eval "$ac_compiler -v >&5") 2>&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }
2689 { (ac_try="$ac_compiler -V >&5"
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compiler -V >&5") 2>&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }
2700 cat >conftest.$ac_ext <<_ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2715 ac_clean_files_save=$ac_clean_files
2716 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2717 # Try to create an executable without -o first, disregard a.out.
2718 # It will help us diagnose broken compilers, and finding out an intuition
2720 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2721 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2722 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2724 # List of possible output files, starting from the most likely.
2725 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2726 # only as a last resort. b.out is created by i960 compilers.
2727 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2729 # The IRIX 6 linker writes into existing files which may not be
2730 # executable, retaining their permissions. Remove them first so a
2731 # subsequent execution test works.
2733 for ac_file in $ac_files
2736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2737 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2742 if { (ac_try="$ac_link_default"
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_link_default") 2>&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; then
2752 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2753 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2754 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2755 # so that the user can short-circuit this test for compilers unknown to
2757 for ac_file in $ac_files ''
2759 test -f "$ac_file" || continue
2761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2764 # We found the default executable, but exeext='' is most
2768 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2770 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2772 # We set ac_cv_exeext here because the later test for it is not
2773 # safe: cross compilers may not add the suffix if given an `-o'
2774 # argument, so we may need to know it at that point already.
2775 # Even if this section looks crufty: it has the advantage of
2782 test "$ac_cv_exeext" = no && ac_cv_exeext=
2788 { echo "$as_me:$LINENO: result: $ac_file" >&5
2789 echo "${ECHO_T}$ac_file" >&6; }
2790 if test -z "$ac_file"; then
2791 echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2794 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2795 See \`config.log' for more details." >&5
2796 echo "$as_me: error: C compiler cannot create executables
2797 See \`config.log' for more details." >&2;}
2798 { (exit 77); exit 77; }; }
2801 ac_exeext=$ac_cv_exeext
2803 # Check that the compiler produces executables we can run. If not, either
2804 # the compiler is broken, or we cross compile.
2805 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2806 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2807 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2808 # If not cross compiling, check that we can run a simple program.
2809 if test "$cross_compiling" != yes; then
2810 if { ac_try='./$ac_file'
2811 { (case "(($ac_try" in
2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816 (eval "$ac_try") 2>&5
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }; }; then
2822 if test "$cross_compiling" = maybe; then
2825 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2826 If you meant to cross compile, use \`--host'.
2827 See \`config.log' for more details." >&5
2828 echo "$as_me: error: cannot run C compiled programs.
2829 If you meant to cross compile, use \`--host'.
2830 See \`config.log' for more details." >&2;}
2831 { (exit 1); exit 1; }; }
2835 { echo "$as_me:$LINENO: result: yes" >&5
2836 echo "${ECHO_T}yes" >&6; }
2838 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2839 ac_clean_files=$ac_clean_files_save
2840 # Check that the compiler produces executables we can run. If not, either
2841 # the compiler is broken, or we cross compile.
2842 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2843 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2844 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2845 echo "${ECHO_T}$cross_compiling" >&6; }
2847 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2848 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2849 if { (ac_try="$ac_link"
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_link") 2>&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; then
2859 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2860 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2861 # work properly (i.e., refer to `conftest.exe'), while it won't with
2863 for ac_file in conftest.exe conftest conftest.*; do
2864 test -f "$ac_file" || continue
2866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2867 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2873 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2874 See \`config.log' for more details." >&5
2875 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2876 See \`config.log' for more details." >&2;}
2877 { (exit 1); exit 1; }; }
2880 rm -f conftest$ac_cv_exeext
2881 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2882 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2884 rm -f conftest.$ac_ext
2885 EXEEXT=$ac_cv_exeext
2887 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2888 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2889 if test "${ac_cv_objext+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 cat >conftest.$ac_ext <<_ACEOF
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h. */
2907 rm -f conftest.o conftest.obj
2908 if { (ac_try="$ac_compile"
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compile") 2>&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; then
2918 for ac_file in conftest.o conftest.obj conftest.*; do
2919 test -f "$ac_file" || continue;
2921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2922 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2927 echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2930 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2931 See \`config.log' for more details." >&5
2932 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2933 See \`config.log' for more details." >&2;}
2934 { (exit 1); exit 1; }; }
2937 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2939 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2940 echo "${ECHO_T}$ac_cv_objext" >&6; }
2941 OBJEXT=$ac_cv_objext
2943 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2944 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2945 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 cat >conftest.$ac_ext <<_ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h. */
2966 rm -f conftest.$ac_objext
2967 if { (ac_try="$ac_compile"
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_compile") 2>conftest.er1
2975 grep -v '^ *+' conftest.er1 >conftest.err
2977 cat conftest.err >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } && {
2980 test -z "$ac_c_werror_flag" ||
2981 test ! -s conftest.err
2982 } && test -s conftest.$ac_objext; then
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2995 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2996 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2997 GCC=`test $ac_compiler_gnu = yes && echo yes`
2998 ac_test_CFLAGS=${CFLAGS+set}
2999 ac_save_CFLAGS=$CFLAGS
3000 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3001 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3002 if test "${ac_cv_prog_cc_g+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 ac_save_c_werror_flag=$ac_c_werror_flag
3006 ac_c_werror_flag=yes
3009 cat >conftest.$ac_ext <<_ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.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
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3047 cat >conftest.$ac_ext <<_ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3062 rm -f conftest.$ac_objext
3063 if { (ac_try="$ac_compile"
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_compile") 2>conftest.er1
3071 grep -v '^ *+' conftest.er1 >conftest.err
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } && {
3076 test -z "$ac_c_werror_flag" ||
3077 test ! -s conftest.err
3078 } && test -s conftest.$ac_objext; then
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3084 ac_c_werror_flag=$ac_save_c_werror_flag
3086 cat >conftest.$ac_ext <<_ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_compile") 2>conftest.er1
3110 grep -v '^ *+' conftest.er1 >conftest.err
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } && {
3115 test -z "$ac_c_werror_flag" ||
3116 test ! -s conftest.err
3117 } && test -s conftest.$ac_objext; then
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.$ac_ext
3129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3133 ac_c_werror_flag=$ac_save_c_werror_flag
3135 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3136 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3137 if test "$ac_test_CFLAGS" = set; then
3138 CFLAGS=$ac_save_CFLAGS
3139 elif test $ac_cv_prog_cc_g = yes; then
3140 if test "$GCC" = yes; then
3146 if test "$GCC" = yes; then
3152 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3153 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3154 if test "${ac_cv_prog_cc_c89+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 ac_cv_prog_cc_c89=no
3159 cat >conftest.$ac_ext <<_ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3167 #include <sys/types.h>
3168 #include <sys/stat.h>
3169 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3170 struct buf { int x; };
3171 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3172 static char *e (p, i)
3178 static char *f (char * (*g) (char **, int), char **p, ...)
3183 s = g (p, va_arg (v,int));
3188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3189 function prototypes and stuff, but not '\xHH' hex character constants.
3190 These don't provoke an error unfortunately, instead are silently treated
3191 as 'x'. The following induces an error, until -std is added to get
3192 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3193 array size at least. It's necessary to write '\x00'==0 to get something
3194 that's true only with -std. */
3195 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3198 inside strings and character constants. */
3200 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3202 int test (int i, double x);
3203 struct s1 {int (*f) (int a);};
3204 struct s2 {int (*f) (double a);};
3205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3211 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3216 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3217 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3219 CC="$ac_save_CC $ac_arg"
3220 rm -f conftest.$ac_objext
3221 if { (ac_try="$ac_compile"
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_compile") 2>conftest.er1
3229 grep -v '^ *+' conftest.er1 >conftest.err
3231 cat conftest.err >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } && {
3234 test -z "$ac_c_werror_flag" ||
3235 test ! -s conftest.err
3236 } && test -s conftest.$ac_objext; then
3237 ac_cv_prog_cc_c89=$ac_arg
3239 echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3245 rm -f core conftest.err conftest.$ac_objext
3246 test "x$ac_cv_prog_cc_c89" != "xno" && break
3248 rm -f conftest.$ac_ext
3253 case "x$ac_cv_prog_cc_c89" in
3255 { echo "$as_me:$LINENO: result: none needed" >&5
3256 echo "${ECHO_T}none needed" >&6; } ;;
3258 { echo "$as_me:$LINENO: result: unsupported" >&5
3259 echo "${ECHO_T}unsupported" >&6; } ;;
3261 CC="$CC $ac_cv_prog_cc_c89"
3262 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3263 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3268 ac_cpp='$CPP $CPPFLAGS'
3269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273 depcc="$CC" am_compiler_list=
3275 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3276 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3277 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3281 # We make a subdir and do the tests there. Otherwise we can end up
3282 # making bogus files that we don't know about and never remove. For
3283 # instance it was reported that on HP-UX the gcc test will end up
3284 # making a dummy file named `D' -- because `-MD' means `put the output
3287 # Copy depcomp to subdir because otherwise we won't find it if we're
3288 # using a relative directory.
3289 cp "$am_depcomp" conftest.dir
3291 # We will build objects and dependencies in a subdirectory because
3292 # it helps to detect inapplicable dependency modes. For instance
3293 # both Tru64's cc and ICC support -MD to output dependencies as a
3294 # side effect of compilation, but ICC will put the dependencies in
3295 # the current directory while Tru64 will put them in the object
3299 am_cv_CC_dependencies_compiler_type=none
3300 if test "$am_compiler_list" = ""; then
3301 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3303 for depmode in $am_compiler_list; do
3304 # Setup a source with many dependencies, because some compilers
3305 # like to wrap large dependency lists on column 80 (with \), and
3306 # we should not choose a depcomp mode which is confused by this.
3308 # We need to recreate these files for each test, as the compiler may
3309 # overwrite some of them when testing with obscure command lines.
3310 # This happens at least with the AIX C compiler.
3312 for i in 1 2 3 4 5 6; do
3313 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3314 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3315 # Solaris 8's {/usr,}/bin/sh.
3316 touch sub/conftst$i.h
3318 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3322 # after this tag, mechanisms are not by side-effect, so they'll
3323 # only be used when explicitly requested
3324 if test "x$enable_dependency_tracking" = xyes; then
3332 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3333 # mode. It turns out that the SunPro C++ compiler does not properly
3334 # handle `-M -o', and we need to detect this.
3335 if depmode=$depmode \
3336 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3337 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3338 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3339 >/dev/null 2>conftest.err &&
3340 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3341 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3342 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3343 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3344 # icc doesn't choke on unknown options, it will just issue warnings
3345 # or remarks (even with -Werror). So we grep stderr for any message
3346 # that says an option was ignored or not supported.
3347 # When given -MP, icc 7.0 and 7.1 complain thusly:
3348 # icc: Command line warning: ignoring option '-M'; no argument required
3349 # The diagnosis changed in icc 8.0:
3350 # icc: Command line remark: option '-MP' not supported
3351 if (grep 'ignoring option' conftest.err ||
3352 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3353 am_cv_CC_dependencies_compiler_type=$depmode
3362 am_cv_CC_dependencies_compiler_type=none
3366 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3367 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3368 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3371 test "x$enable_dependency_tracking" != xno \
3372 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3374 am__fastdepCC_FALSE='#'
3376 am__fastdepCC_TRUE='#'
3377 am__fastdepCC_FALSE=
3381 case $ac_cv_prog_cc_stdc in
3382 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3383 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3384 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3385 if test "${ac_cv_prog_cc_c99+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 ac_cv_prog_cc_c99=no
3390 cat >conftest.$ac_ext <<_ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3397 #include <stdbool.h>
3402 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3403 #define debug(...) fprintf (stderr, __VA_ARGS__)
3404 #define showlist(...) puts (#__VA_ARGS__)
3405 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3407 test_varargs_macros (void)
3412 debug ("X = %d\n", x);
3413 showlist (The first, second, and third items.);
3414 report (x>y, "x is %d but y is %d", x, y);
3417 // Check long long types.
3418 #define BIG64 18446744073709551615ull
3419 #define BIG32 4294967295ul
3420 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3422 your preprocessor is broken;
3426 your preprocessor is broken;
3428 static long long int bignum = -9223372036854775807LL;
3429 static unsigned long long int ubignum = BIG64;
3431 struct incomplete_array
3439 const wchar_t *name;
3443 typedef const char *ccp;
3446 test_restrict (ccp restrict text)
3448 // See if C++-style comments work.
3449 // Iterate through items via the restricted pointer.
3450 // Also check for declarations in for loops.
3451 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3456 // Check varargs and va_copy.
3458 test_varargs (const char *format, ...)
3461 va_start (args, format);
3463 va_copy (args_copy, args);
3474 str = va_arg (args_copy, const char *);
3477 number = va_arg (args_copy, int);
3480 fnumber = va_arg (args_copy, double);
3495 _Bool success = false;
3498 if (test_restrict ("String literal") == 0)
3500 char *restrict newvar = "Another string";
3503 test_varargs ("s, d' f .", "string", 65, 34.234);
3504 test_varargs_macros ();
3506 // Check flexible array members.
3507 struct incomplete_array *ia =
3508 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3510 for (int i = 0; i < ia->datasize; ++i)
3511 ia->data[i] = i * 1.234;
3513 // Check named initializers.
3514 struct named_init ni = {
3516 .name = L"Test wide string",
3517 .average = 543.34343,
3522 int dynamic_array[ni.number];
3523 dynamic_array[ni.number - 1] = 543;
3525 // work around unused variable warnings
3526 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3527 || dynamic_array[ni.number - 1] != 543);
3533 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3535 CC="$ac_save_CC $ac_arg"
3536 rm -f conftest.$ac_objext
3537 if { (ac_try="$ac_compile"
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543 (eval "$ac_compile") 2>conftest.er1
3545 grep -v '^ *+' conftest.er1 >conftest.err
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } && {
3550 test -z "$ac_c_werror_flag" ||
3551 test ! -s conftest.err
3552 } && test -s conftest.$ac_objext; then
3553 ac_cv_prog_cc_c99=$ac_arg
3555 echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3561 rm -f core conftest.err conftest.$ac_objext
3562 test "x$ac_cv_prog_cc_c99" != "xno" && break
3564 rm -f conftest.$ac_ext
3569 case "x$ac_cv_prog_cc_c99" in
3571 { echo "$as_me:$LINENO: result: none needed" >&5
3572 echo "${ECHO_T}none needed" >&6; } ;;
3574 { echo "$as_me:$LINENO: result: unsupported" >&5
3575 echo "${ECHO_T}unsupported" >&6; } ;;
3577 CC="$CC $ac_cv_prog_cc_c99"
3578 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3579 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3581 if test "x$ac_cv_prog_cc_c99" != xno; then
3582 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3584 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3585 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3586 if test "${ac_cv_prog_cc_c89+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 ac_cv_prog_cc_c89=no
3591 cat >conftest.$ac_ext <<_ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3599 #include <sys/types.h>
3600 #include <sys/stat.h>
3601 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3602 struct buf { int x; };
3603 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3604 static char *e (p, i)
3610 static char *f (char * (*g) (char **, int), char **p, ...)
3615 s = g (p, va_arg (v,int));
3620 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3621 function prototypes and stuff, but not '\xHH' hex character constants.
3622 These don't provoke an error unfortunately, instead are silently treated
3623 as 'x'. The following induces an error, until -std is added to get
3624 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3625 array size at least. It's necessary to write '\x00'==0 to get something
3626 that's true only with -std. */
3627 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3629 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3630 inside strings and character constants. */
3632 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3634 int test (int i, double x);
3635 struct s1 {int (*f) (int a);};
3636 struct s2 {int (*f) (double a);};
3637 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3643 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3648 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3649 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3651 CC="$ac_save_CC $ac_arg"
3652 rm -f conftest.$ac_objext
3653 if { (ac_try="$ac_compile"
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3659 (eval "$ac_compile") 2>conftest.er1
3661 grep -v '^ *+' conftest.er1 >conftest.err
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } && {
3666 test -z "$ac_c_werror_flag" ||
3667 test ! -s conftest.err
3668 } && test -s conftest.$ac_objext; then
3669 ac_cv_prog_cc_c89=$ac_arg
3671 echo "$as_me: failed program was:" >&5
3672 sed 's/^/| /' conftest.$ac_ext >&5
3677 rm -f core conftest.err conftest.$ac_objext
3678 test "x$ac_cv_prog_cc_c89" != "xno" && break
3680 rm -f conftest.$ac_ext
3685 case "x$ac_cv_prog_cc_c89" in
3687 { echo "$as_me:$LINENO: result: none needed" >&5
3688 echo "${ECHO_T}none needed" >&6; } ;;
3690 { echo "$as_me:$LINENO: result: unsupported" >&5
3691 echo "${ECHO_T}unsupported" >&6; } ;;
3693 CC="$CC $ac_cv_prog_cc_c89"
3694 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3695 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3697 if test "x$ac_cv_prog_cc_c89" != xno; then
3698 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3700 ac_cv_prog_cc_stdc=no
3708 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3709 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3710 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 case $ac_cv_prog_cc_stdc in
3715 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3716 echo "${ECHO_T}unsupported" >&6; } ;;
3717 '') { echo "$as_me:$LINENO: result: none needed" >&5
3718 echo "${ECHO_T}none needed" >&6; } ;;
3719 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3720 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3724 if test "x$CC" != xcc; then
3725 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3726 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3728 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3729 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3731 set dummy $CC; ac_cc=`echo $2 |
3732 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3733 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 cat >conftest.$ac_ext <<_ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3751 # Make sure it works both with $CC and with simple cc.
3752 # We do the test twice because some compilers refuse to overwrite an
3753 # existing .o file with -o, though they will create one.
3754 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3756 if { (case "(($ac_try" in
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3761 (eval "$ac_try") 2>&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); } &&
3765 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767 *) ac_try_echo=$ac_try;;
3769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3770 (eval "$ac_try") 2>&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); };
3775 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3776 if test "x$CC" != xcc; then
3777 # Test first that cc exists at all.
3778 if { ac_try='cc -c conftest.$ac_ext >&5'
3779 { (case "(($ac_try" in
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3784 (eval "$ac_try") 2>&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; }; then
3788 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3790 if { (case "(($ac_try" in
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795 (eval "$ac_try") 2>&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804 (eval "$ac_try") 2>&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); };
3812 # cc exists but doesn't like -o.
3813 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3818 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3820 rm -f core conftest*
3823 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3824 { echo "$as_me:$LINENO: result: yes" >&5
3825 echo "${ECHO_T}yes" >&6; }
3827 { echo "$as_me:$LINENO: result: no" >&5
3828 echo "${ECHO_T}no" >&6; }
3830 cat >>confdefs.h <<\_ACEOF
3831 #define NO_MINUS_C_MINUS_O 1
3836 # FIXME: we rely on the cache variable name because
3837 # there is no other way.
3839 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3840 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3841 # Losing compiler, so override with the script.
3842 # FIXME: It is wrong to rewrite CC.
3843 # But if we don't then we get into trouble of one sort or another.
3844 # A longer-term fix would be to have automake use am__CC in this case,
3845 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3846 CC="$am_aux_dir/compile $CC"
3851 ac_cpp='$CPP $CPPFLAGS'
3852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3855 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3856 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3857 # On Suns, sometimes $CPP names a directory.
3858 if test -n "$CPP" && test -d "$CPP"; then
3861 if test -z "$CPP"; then
3862 if test "${ac_cv_prog_CPP+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 # Double quotes because CPP needs to be expanded
3866 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3869 for ac_c_preproc_warn_flag in '' yes
3871 # Use a header file that comes with gcc, so configuring glibc
3872 # with a fresh cross-compiler works.
3873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874 # <limits.h> exists even on freestanding compilers.
3875 # On the NeXT, cc -E runs the code through the compiler's parser,
3876 # not just through cpp. "Syntax error" is here to catch this case.
3877 cat >conftest.$ac_ext <<_ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3884 # include <limits.h>
3886 # include <assert.h>
3890 if { (ac_try="$ac_cpp conftest.$ac_ext"
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3898 grep -v '^ *+' conftest.er1 >conftest.err
3900 cat conftest.err >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } >/dev/null && {
3903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3911 # Broken: fails on valid input.
3915 rm -f conftest.err conftest.$ac_ext
3917 # OK, works on sane cases. Now check whether nonexistent headers
3918 # can be detected and how.
3919 cat >conftest.$ac_ext <<_ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3925 #include <ac_nonexistent.h>
3927 if { (ac_try="$ac_cpp conftest.$ac_ext"
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3935 grep -v '^ *+' conftest.er1 >conftest.err
3937 cat conftest.err >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } >/dev/null && {
3940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3941 test ! -s conftest.err
3943 # Broken: success on invalid input.
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3949 # Passes both tests.
3954 rm -f conftest.err conftest.$ac_ext
3957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3958 rm -f conftest.err conftest.$ac_ext
3959 if $ac_preproc_ok; then
3971 { echo "$as_me:$LINENO: result: $CPP" >&5
3972 echo "${ECHO_T}$CPP" >&6; }
3974 for ac_c_preproc_warn_flag in '' yes
3976 # Use a header file that comes with gcc, so configuring glibc
3977 # with a fresh cross-compiler works.
3978 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3979 # <limits.h> exists even on freestanding compilers.
3980 # On the NeXT, cc -E runs the code through the compiler's parser,
3981 # not just through cpp. "Syntax error" is here to catch this case.
3982 cat >conftest.$ac_ext <<_ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3989 # include <limits.h>
3991 # include <assert.h>
3995 if { (ac_try="$ac_cpp conftest.$ac_ext"
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
4000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4003 grep -v '^ *+' conftest.er1 >conftest.err
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } >/dev/null && {
4008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4009 test ! -s conftest.err
4013 echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4016 # Broken: fails on valid input.
4020 rm -f conftest.err conftest.$ac_ext
4022 # OK, works on sane cases. Now check whether nonexistent headers
4023 # can be detected and how.
4024 cat >conftest.$ac_ext <<_ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4030 #include <ac_nonexistent.h>
4032 if { (ac_try="$ac_cpp conftest.$ac_ext"
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4040 grep -v '^ *+' conftest.er1 >conftest.err
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } >/dev/null && {
4045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4046 test ! -s conftest.err
4048 # Broken: success on invalid input.
4051 echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4054 # Passes both tests.
4059 rm -f conftest.err conftest.$ac_ext
4062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4063 rm -f conftest.err conftest.$ac_ext
4064 if $ac_preproc_ok; then
4067 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4068 See \`config.log' for more details." >&5
4069 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4070 See \`config.log' for more details." >&2;}
4071 { (exit 1); exit 1; }; }
4075 ac_cpp='$CPP $CPPFLAGS'
4076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080 if test -n "$ac_tool_prefix"; then
4081 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4082 set dummy ${ac_tool_prefix}nm; ac_word=$2
4083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4085 if test "${ac_cv_prog_NM+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 if test -n "$NM"; then
4089 ac_cv_prog_NM="$NM" # Let the user override the test.
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 test -z "$as_dir" && as_dir=.
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4098 ac_cv_prog_NM="${ac_tool_prefix}nm"
4099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 if test -n "$NM"; then
4110 { echo "$as_me:$LINENO: result: $NM" >&5
4111 echo "${ECHO_T}$NM" >&6; }
4113 { echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6; }
4119 if test -z "$ac_cv_prog_NM"; then
4121 # Extract the first word of "nm", so it can be a program name with args.
4122 set dummy nm; ac_word=$2
4123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4125 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 if test -n "$ac_ct_NM"; then
4129 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4138 ac_cv_prog_ac_ct_NM="nm"
4139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4149 if test -n "$ac_ct_NM"; then
4150 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
4151 echo "${ECHO_T}$ac_ct_NM" >&6; }
4153 { echo "$as_me:$LINENO: result: no" >&5
4154 echo "${ECHO_T}no" >&6; }
4157 if test "x$ac_ct_NM" = x; then
4160 case $cross_compiling:$ac_tool_warned in
4162 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4163 whose name does not start with the host triplet. If you think this
4164 configuration is useful to you, please write to autoconf@gnu.org." >&5
4165 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4166 whose name does not start with the host triplet. If you think this
4167 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4168 ac_tool_warned=yes ;;
4176 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4177 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4179 if test "$LN_S" = "ln -s"; then
4180 { echo "$as_me:$LINENO: result: yes" >&5
4181 echo "${ECHO_T}yes" >&6; }
4183 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4184 echo "${ECHO_T}no, using $LN_S" >&6; }
4187 if test -n "$ac_tool_prefix"; then
4188 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4189 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4192 if test "${ac_cv_prog_RANLIB+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 if test -n "$RANLIB"; then
4196 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4205 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 RANLIB=$ac_cv_prog_RANLIB
4216 if test -n "$RANLIB"; then
4217 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4218 echo "${ECHO_T}$RANLIB" >&6; }
4220 { echo "$as_me:$LINENO: result: no" >&5
4221 echo "${ECHO_T}no" >&6; }
4226 if test -z "$ac_cv_prog_RANLIB"; then
4227 ac_ct_RANLIB=$RANLIB
4228 # Extract the first word of "ranlib", so it can be a program name with args.
4229 set dummy ranlib; ac_word=$2
4230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4232 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 if test -n "$ac_ct_RANLIB"; then
4236 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4245 ac_cv_prog_ac_ct_RANLIB="ranlib"
4246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4256 if test -n "$ac_ct_RANLIB"; then
4257 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4258 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4260 { echo "$as_me:$LINENO: result: no" >&5
4261 echo "${ECHO_T}no" >&6; }
4264 if test "x$ac_ct_RANLIB" = x; then
4267 case $cross_compiling:$ac_tool_warned in
4269 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4270 whose name does not start with the host triplet. If you think this
4271 configuration is useful to you, please write to autoconf@gnu.org." >&5
4272 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4273 whose name does not start with the host triplet. If you think this
4274 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4275 ac_tool_warned=yes ;;
4277 RANLIB=$ac_ct_RANLIB
4280 RANLIB="$ac_cv_prog_RANLIB"
4283 { echo "$as_me:$LINENO: checking for a POSIX-compliant shell" >&5
4284 echo $ECHO_N "checking for a POSIX-compliant shell... $ECHO_C" >&6; }
4285 if test "${ac_cv_path_shell+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 # Test the noclobber option, using the portable POSIX.2 syntax.
4293 >|conftest.c || exit
4294 !>conftest.c || exit
4295 # Test that $(...) works.
4296 test "$(expr 3 + 4)" -eq 7 || exit
4303 if ("$SHELL" -c "$ac_command") 2>/dev/null; then
4304 ac_cv_path_shell=$SHELL
4308 case $ac_cv_path_shell in
4310 # Prefer shells that are more likely to be installed in the
4311 # same place on all hosts of this platform. Therefore, prefer
4312 # shells in /bin and /usr/bin to shells in the installer's
4313 # PATH. Also, loop through PATH first and then through
4314 # shells, since less-"nice" shells in /bin and /usr/bin are
4315 # more likely to be installed than "nicer" shells elsewhere.
4316 as_save_IFS=$IFS; IFS=:
4317 for as_dir in /bin /usr/bin $PATH
4322 for ac_base in sh bash ksh sh5; do
4324 if ("$as_dir/$ac_base" -c "$ac_command") 2>/dev/null; then
4325 ac_cv_path_shell=$as_dir/$ac_base
4329 case $ac_cv_path_shell in
4338 { echo "$as_me:$LINENO: result: $ac_cv_path_shell" >&5
4339 echo "${ECHO_T}$ac_cv_path_shell" >&6; }
4340 SHELL=$ac_cv_path_shell
4341 if test "$SHELL" = no; then
4343 { echo "$as_me:$LINENO: WARNING: using $SHELL, even though it does not conform to POSIX" >&5
4344 echo "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;}
4349 cat >>confdefs.h <<\_ACEOF
4350 #define _GNU_SOURCE 1
4356 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4357 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4358 if test "${ac_cv_path_GREP+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 # Extract the first word of "grep ggrep" to use in msg output
4362 if test -z "$GREP"; then
4363 set dummy grep ggrep; ac_prog_name=$2
4364 if test "${ac_cv_path_GREP+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 ac_path_GREP_found=false
4368 # Loop through the user's path and test for each of PROGNAME-LIST
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4373 test -z "$as_dir" && as_dir=.
4374 for ac_prog in grep ggrep; do
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4377 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4378 # Check for GNU ac_path_GREP and select it if it is found.
4379 # Check for GNU $ac_path_GREP
4380 case `"$ac_path_GREP" --version 2>&1` in
4382 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4385 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4388 cat "conftest.in" "conftest.in" >"conftest.tmp"
4389 mv "conftest.tmp" "conftest.in"
4390 cp "conftest.in" "conftest.nl"
4391 echo 'GREP' >> "conftest.nl"
4392 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4394 ac_count=`expr $ac_count + 1`
4395 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4396 # Best one so far, save it but keep looking for a better one
4397 ac_cv_path_GREP="$ac_path_GREP"
4398 ac_path_GREP_max=$ac_count
4400 # 10*(2^10) chars as input seems more than enough
4401 test $ac_count -gt 10 && break
4403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4407 $ac_path_GREP_found && break 3
4417 GREP="$ac_cv_path_GREP"
4418 if test -z "$GREP"; then
4419 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4420 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4421 { (exit 1); exit 1; }; }
4425 ac_cv_path_GREP=$GREP
4430 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4431 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4432 GREP="$ac_cv_path_GREP"
4435 { echo "$as_me:$LINENO: checking for egrep" >&5
4436 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4437 if test "${ac_cv_path_EGREP+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4441 then ac_cv_path_EGREP="$GREP -E"
4443 # Extract the first word of "egrep" to use in msg output
4444 if test -z "$EGREP"; then
4445 set dummy egrep; ac_prog_name=$2
4446 if test "${ac_cv_path_EGREP+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 ac_path_EGREP_found=false
4450 # Loop through the user's path and test for each of PROGNAME-LIST
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4455 test -z "$as_dir" && as_dir=.
4456 for ac_prog in egrep; do
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4459 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4460 # Check for GNU ac_path_EGREP and select it if it is found.
4461 # Check for GNU $ac_path_EGREP
4462 case `"$ac_path_EGREP" --version 2>&1` in
4464 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4467 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4470 cat "conftest.in" "conftest.in" >"conftest.tmp"
4471 mv "conftest.tmp" "conftest.in"
4472 cp "conftest.in" "conftest.nl"
4473 echo 'EGREP' >> "conftest.nl"
4474 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4475 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4476 ac_count=`expr $ac_count + 1`
4477 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4478 # Best one so far, save it but keep looking for a better one
4479 ac_cv_path_EGREP="$ac_path_EGREP"
4480 ac_path_EGREP_max=$ac_count
4482 # 10*(2^10) chars as input seems more than enough
4483 test $ac_count -gt 10 && break
4485 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4489 $ac_path_EGREP_found && break 3
4499 EGREP="$ac_cv_path_EGREP"
4500 if test -z "$EGREP"; then
4501 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4502 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4503 { (exit 1); exit 1; }; }
4507 ac_cv_path_EGREP=$EGREP
4513 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4514 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4515 EGREP="$ac_cv_path_EGREP"
4519 { echo "$as_me:$LINENO: checking for AIX" >&5
4520 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4521 cat >conftest.$ac_ext <<_ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4533 $EGREP "yes" >/dev/null 2>&1; then
4534 { echo "$as_me:$LINENO: result: yes" >&5
4535 echo "${ECHO_T}yes" >&6; }
4536 cat >>confdefs.h <<\_ACEOF
4537 #define _ALL_SOURCE 1
4541 { echo "$as_me:$LINENO: result: no" >&5
4542 echo "${ECHO_T}no" >&6; }
4547 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4548 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4549 if test "${ac_cv_header_stdc+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 cat >conftest.$ac_ext <<_ACEOF
4555 cat confdefs.h >>conftest.$ac_ext
4556 cat >>conftest.$ac_ext <<_ACEOF
4557 /* end confdefs.h. */
4571 rm -f conftest.$ac_objext
4572 if { (ac_try="$ac_compile"
4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575 *) ac_try_echo=$ac_try;;
4577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4578 (eval "$ac_compile") 2>conftest.er1
4580 grep -v '^ *+' conftest.er1 >conftest.err
4582 cat conftest.err >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); } && {
4585 test -z "$ac_c_werror_flag" ||
4586 test ! -s conftest.err
4587 } && test -s conftest.$ac_objext; then
4588 ac_cv_header_stdc=yes
4590 echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4593 ac_cv_header_stdc=no
4596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598 if test $ac_cv_header_stdc = yes; then
4599 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4600 cat >conftest.$ac_ext <<_ACEOF
4603 cat confdefs.h >>conftest.$ac_ext
4604 cat >>conftest.$ac_ext <<_ACEOF
4605 /* end confdefs.h. */
4609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4610 $EGREP "memchr" >/dev/null 2>&1; then
4613 ac_cv_header_stdc=no
4619 if test $ac_cv_header_stdc = yes; then
4620 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4621 cat >conftest.$ac_ext <<_ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h. */
4630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4631 $EGREP "free" >/dev/null 2>&1; then
4634 ac_cv_header_stdc=no
4640 if test $ac_cv_header_stdc = yes; then
4641 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4642 if test "$cross_compiling" = yes; then
4645 cat >conftest.$ac_ext <<_ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4653 #if ((' ' & 0x0FF) == 0x020)
4654 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4655 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4657 # define ISLOWER(c) \
4658 (('a' <= (c) && (c) <= 'i') \
4659 || ('j' <= (c) && (c) <= 'r') \
4660 || ('s' <= (c) && (c) <= 'z'))
4661 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4664 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4669 for (i = 0; i < 256; i++)
4670 if (XOR (islower (i), ISLOWER (i))
4671 || toupper (i) != TOUPPER (i))
4676 rm -f conftest$ac_exeext
4677 if { (ac_try="$ac_link"
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_link") 2>&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4687 { (case "(($ac_try" in
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692 (eval "$ac_try") 2>&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4698 echo "$as_me: program exited with status $ac_status" >&5
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4703 ac_cv_header_stdc=no
4705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4711 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4712 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4713 if test $ac_cv_header_stdc = yes; then
4715 cat >>confdefs.h <<\_ACEOF
4716 #define STDC_HEADERS 1
4721 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4731 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4732 inttypes.h stdint.h unistd.h
4734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 cat >conftest.$ac_ext <<_ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4746 $ac_includes_default
4748 #include <$ac_header>
4750 rm -f conftest.$ac_objext
4751 if { (ac_try="$ac_compile"
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757 (eval "$ac_compile") 2>conftest.er1
4759 grep -v '^ *+' conftest.er1 >conftest.err
4761 cat conftest.err >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } && {
4764 test -z "$ac_c_werror_flag" ||
4765 test ! -s conftest.err
4766 } && test -s conftest.$ac_objext; then
4767 eval "$as_ac_Header=yes"
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4772 eval "$as_ac_Header=no"
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777 ac_res=`eval echo '${'$as_ac_Header'}'`
4778 { echo "$as_me:$LINENO: result: $ac_res" >&5
4779 echo "${ECHO_T}$ac_res" >&6; }
4780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4781 cat >>confdefs.h <<_ACEOF
4782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4790 if test "${ac_cv_header_minix_config_h+set}" = set; then
4791 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4792 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4793 if test "${ac_cv_header_minix_config_h+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4797 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4799 # Is the header compilable?
4800 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4801 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4802 cat >conftest.$ac_ext <<_ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h. */
4808 $ac_includes_default
4809 #include <minix/config.h>
4811 rm -f conftest.$ac_objext
4812 if { (ac_try="$ac_compile"
4814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4815 *) ac_try_echo=$ac_try;;
4817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4818 (eval "$ac_compile") 2>conftest.er1
4820 grep -v '^ *+' conftest.er1 >conftest.err
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } && {
4825 test -z "$ac_c_werror_flag" ||
4826 test ! -s conftest.err
4827 } && test -s conftest.$ac_objext; then
4828 ac_header_compiler=yes
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4833 ac_header_compiler=no
4836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4838 echo "${ECHO_T}$ac_header_compiler" >&6; }
4840 # Is the header present?
4841 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4842 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4843 cat >conftest.$ac_ext <<_ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4849 #include <minix/config.h>
4851 if { (ac_try="$ac_cpp conftest.$ac_ext"
4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854 *) ac_try_echo=$ac_try;;
4856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4859 grep -v '^ *+' conftest.er1 >conftest.err
4861 cat conftest.err >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } >/dev/null && {
4864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4865 test ! -s conftest.err
4867 ac_header_preproc=yes
4869 echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4872 ac_header_preproc=no
4875 rm -f conftest.err conftest.$ac_ext
4876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4877 echo "${ECHO_T}$ac_header_preproc" >&6; }
4879 # So? What about this header?
4880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4882 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4883 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4885 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4886 ac_header_preproc=yes
4889 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4890 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4891 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4892 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4893 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4894 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4895 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4896 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4897 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4898 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4899 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4900 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4902 ## ------------------------------- ##
4903 ## Report this to bug-gzip@gnu.org ##
4904 ## ------------------------------- ##
4906 ) | sed "s/^/$as_me: WARNING: /" >&2
4909 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4910 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4911 if test "${ac_cv_header_minix_config_h+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 ac_cv_header_minix_config_h=$ac_header_preproc
4916 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4917 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4920 if test $ac_cv_header_minix_config_h = yes; then
4927 if test "$MINIX" = yes; then
4929 cat >>confdefs.h <<\_ACEOF
4930 #define _POSIX_SOURCE 1
4934 cat >>confdefs.h <<\_ACEOF
4935 #define _POSIX_1_SOURCE 2
4939 cat >>confdefs.h <<\_ACEOF
4955 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4956 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4957 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4960 cat >conftest.$ac_ext <<_ACEOF
4963 cat confdefs.h >>conftest.$ac_ext
4964 cat >>conftest.$ac_ext <<_ACEOF
4965 /* end confdefs.h. */
4967 # define __EXTENSIONS__ 1
4968 $ac_includes_default
4977 rm -f conftest.$ac_objext
4978 if { (ac_try="$ac_compile"
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4984 (eval "$ac_compile") 2>conftest.er1
4986 grep -v '^ *+' conftest.er1 >conftest.err
4988 cat conftest.err >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } && {
4991 test -z "$ac_c_werror_flag" ||
4992 test ! -s conftest.err
4993 } && test -s conftest.$ac_objext; then
4994 ac_cv_safe_to_define___extensions__=yes
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4999 ac_cv_safe_to_define___extensions__=no
5002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5004 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5005 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
5006 test $ac_cv_safe_to_define___extensions__ = yes &&
5007 cat >>confdefs.h <<\_ACEOF
5008 #define __EXTENSIONS__ 1
5011 cat >>confdefs.h <<\_ACEOF
5012 #define _POSIX_PTHREAD_SEMANTICS 1
5015 cat >>confdefs.h <<\_ACEOF
5016 #define _TANDEM_SOURCE 1
5026 # Check whether --enable-largefile was given.
5027 if test "${enable_largefile+set}" = set; then
5028 enableval=$enable_largefile;
5031 if test "$enable_largefile" != no; then
5033 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5034 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5035 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 ac_cv_sys_largefile_CC=no
5039 if test "$GCC" != yes; then
5042 # IRIX 6.2 and later do not support large files by default,
5043 # so use the C compiler's -n32 option if that helps.
5044 cat >conftest.$ac_ext <<_ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5050 #include <sys/types.h>
5051 /* Check that off_t can represent 2**63 - 1 correctly.
5052 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5053 since some C++ compilers masquerading as C compilers
5054 incorrectly reject 9223372036854775807. */
5055 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5056 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5057 && LARGE_OFF_T % 2147483647 == 1)
5067 rm -f conftest.$ac_objext
5068 if { (ac_try="$ac_compile"
5070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5071 *) ac_try_echo=$ac_try;;
5073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5074 (eval "$ac_compile") 2>conftest.er1
5076 grep -v '^ *+' conftest.er1 >conftest.err
5078 cat conftest.err >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); } && {
5081 test -z "$ac_c_werror_flag" ||
5082 test ! -s conftest.err
5083 } && test -s conftest.$ac_objext; then
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5092 rm -f core conftest.err conftest.$ac_objext
5094 rm -f conftest.$ac_objext
5095 if { (ac_try="$ac_compile"
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5101 (eval "$ac_compile") 2>conftest.er1
5103 grep -v '^ *+' conftest.er1 >conftest.err
5105 cat conftest.err >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } && {
5108 test -z "$ac_c_werror_flag" ||
5109 test ! -s conftest.err
5110 } && test -s conftest.$ac_objext; then
5111 ac_cv_sys_largefile_CC=' -n32'; break
5113 echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5119 rm -f core conftest.err conftest.$ac_objext
5123 rm -f conftest.$ac_ext
5126 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5127 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5128 if test "$ac_cv_sys_largefile_CC" != no; then
5129 CC=$CC$ac_cv_sys_largefile_CC
5132 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5133 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5134 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 cat >conftest.$ac_ext <<_ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5144 #include <sys/types.h>
5145 /* Check that off_t can represent 2**63 - 1 correctly.
5146 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5147 since some C++ compilers masquerading as C compilers
5148 incorrectly reject 9223372036854775807. */
5149 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5150 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5151 && LARGE_OFF_T % 2147483647 == 1)
5161 rm -f conftest.$ac_objext
5162 if { (ac_try="$ac_compile"
5164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5165 *) ac_try_echo=$ac_try;;
5167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5168 (eval "$ac_compile") 2>conftest.er1
5170 grep -v '^ *+' conftest.er1 >conftest.err
5172 cat conftest.err >&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } && {
5175 test -z "$ac_c_werror_flag" ||
5176 test ! -s conftest.err
5177 } && test -s conftest.$ac_objext; then
5178 ac_cv_sys_file_offset_bits=no; break
5180 echo "$as_me: failed program was:" >&5
5181 sed 's/^/| /' conftest.$ac_ext >&5
5186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5187 cat >conftest.$ac_ext <<_ACEOF
5190 cat confdefs.h >>conftest.$ac_ext
5191 cat >>conftest.$ac_ext <<_ACEOF
5192 /* end confdefs.h. */
5193 #define _FILE_OFFSET_BITS 64
5194 #include <sys/types.h>
5195 /* Check that off_t can represent 2**63 - 1 correctly.
5196 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5197 since some C++ compilers masquerading as C compilers
5198 incorrectly reject 9223372036854775807. */
5199 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5200 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5201 && LARGE_OFF_T % 2147483647 == 1)
5211 rm -f conftest.$ac_objext
5212 if { (ac_try="$ac_compile"
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218 (eval "$ac_compile") 2>conftest.er1
5220 grep -v '^ *+' conftest.er1 >conftest.err
5222 cat conftest.err >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } && {
5225 test -z "$ac_c_werror_flag" ||
5226 test ! -s conftest.err
5227 } && test -s conftest.$ac_objext; then
5228 ac_cv_sys_file_offset_bits=64; break
5230 echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5237 ac_cv_sys_file_offset_bits=unknown
5241 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5242 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5243 case $ac_cv_sys_file_offset_bits in #(
5246 cat >>confdefs.h <<_ACEOF
5247 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5252 if test $ac_cv_sys_file_offset_bits = unknown; then
5253 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5254 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5255 if test "${ac_cv_sys_large_files+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 cat >conftest.$ac_ext <<_ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h. */
5265 #include <sys/types.h>
5266 /* Check that off_t can represent 2**63 - 1 correctly.
5267 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5268 since some C++ compilers masquerading as C compilers
5269 incorrectly reject 9223372036854775807. */
5270 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5271 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5272 && LARGE_OFF_T % 2147483647 == 1)
5282 rm -f conftest.$ac_objext
5283 if { (ac_try="$ac_compile"
5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289 (eval "$ac_compile") 2>conftest.er1
5291 grep -v '^ *+' conftest.er1 >conftest.err
5293 cat conftest.err >&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); } && {
5296 test -z "$ac_c_werror_flag" ||
5297 test ! -s conftest.err
5298 } && test -s conftest.$ac_objext; then
5299 ac_cv_sys_large_files=no; break
5301 echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308 cat >conftest.$ac_ext <<_ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 #define _LARGE_FILES 1
5315 #include <sys/types.h>
5316 /* Check that off_t can represent 2**63 - 1 correctly.
5317 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5318 since some C++ compilers masquerading as C compilers
5319 incorrectly reject 9223372036854775807. */
5320 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5321 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5322 && LARGE_OFF_T % 2147483647 == 1)
5332 rm -f conftest.$ac_objext
5333 if { (ac_try="$ac_compile"
5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339 (eval "$ac_compile") 2>conftest.er1
5341 grep -v '^ *+' conftest.er1 >conftest.err
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } && {
5346 test -z "$ac_c_werror_flag" ||
5347 test ! -s conftest.err
5348 } && test -s conftest.$ac_objext; then
5349 ac_cv_sys_large_files=1; break
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 ac_cv_sys_large_files=unknown
5362 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5363 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5364 case $ac_cv_sys_large_files in #(
5367 cat >>confdefs.h <<_ACEOF
5368 #define _LARGE_FILES $ac_cv_sys_large_files
5377 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
5378 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
5379 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 cat >conftest.$ac_ext <<_ACEOF
5385 cat confdefs.h >>conftest.$ac_ext
5386 cat >>conftest.$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5388 $ac_includes_default
5400 rm -f conftest.$ac_objext
5401 if { (ac_try="$ac_compile"
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407 (eval "$ac_compile") 2>conftest.er1
5409 grep -v '^ *+' conftest.er1 >conftest.err
5411 cat conftest.err >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } && {
5414 test -z "$ac_c_werror_flag" ||
5415 test ! -s conftest.err
5416 } && test -s conftest.$ac_objext; then
5417 ac_cv_have_decl_strerror_r=yes
5419 echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5422 ac_cv_have_decl_strerror_r=no
5425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
5428 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
5429 if test $ac_cv_have_decl_strerror_r = yes; then
5431 cat >>confdefs.h <<_ACEOF
5432 #define HAVE_DECL_STRERROR_R 1
5437 cat >>confdefs.h <<_ACEOF
5438 #define HAVE_DECL_STRERROR_R 0
5446 for ac_func in strerror_r
5448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5449 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5451 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 cat >conftest.$ac_ext <<_ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5462 #define $ac_func innocuous_$ac_func
5464 /* System header to define __stub macros and hopefully few prototypes,
5465 which can conflict with char $ac_func (); below.
5466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5467 <limits.h> exists even on freestanding compilers. */
5470 # include <limits.h>
5472 # include <assert.h>
5477 /* Override any GCC internal prototype to avoid an error.
5478 Use char because int might match the return type of a GCC
5479 builtin and then its argument prototype would still apply. */
5484 /* The GNU C library defines this for functions which it implements
5485 to always fail with ENOSYS. Some functions are actually named
5486 something starting with __ and the normal name is an alias. */
5487 #if defined __stub_$ac_func || defined __stub___$ac_func
5499 rm -f conftest.$ac_objext conftest$ac_exeext
5500 if { (ac_try="$ac_link"
5502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503 *) ac_try_echo=$ac_try;;
5505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506 (eval "$ac_link") 2>conftest.er1
5508 grep -v '^ *+' conftest.er1 >conftest.err
5510 cat conftest.err >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); } && {
5513 test -z "$ac_c_werror_flag" ||
5514 test ! -s conftest.err
5515 } && test -s conftest$ac_exeext &&
5516 $as_test_x conftest$ac_exeext; then
5517 eval "$as_ac_var=yes"
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5522 eval "$as_ac_var=no"
5525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5526 conftest$ac_exeext conftest.$ac_ext
5528 ac_res=`eval echo '${'$as_ac_var'}'`
5529 { echo "$as_me:$LINENO: result: $ac_res" >&5
5530 echo "${ECHO_T}$ac_res" >&6; }
5531 if test `eval echo '${'$as_ac_var'}'` = yes; then
5532 cat >>confdefs.h <<_ACEOF
5533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5539 { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
5540 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
5541 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 ac_cv_func_strerror_r_char_p=no
5546 if test $ac_cv_have_decl_strerror_r = yes; then
5547 cat >conftest.$ac_ext <<_ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5553 $ac_includes_default
5559 char x = *strerror_r (0, buf, sizeof buf);
5560 char *p = strerror_r (0, buf, sizeof buf);
5567 rm -f conftest.$ac_objext
5568 if { (ac_try="$ac_compile"
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5574 (eval "$ac_compile") 2>conftest.er1
5576 grep -v '^ *+' conftest.er1 >conftest.err
5578 cat conftest.err >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } && {
5581 test -z "$ac_c_werror_flag" ||
5582 test ! -s conftest.err
5583 } && test -s conftest.$ac_objext; then
5584 ac_cv_func_strerror_r_char_p=yes
5586 echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 # strerror_r is not declared. Choose between
5595 # systems that have relatively inaccessible declarations for the
5596 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
5597 # former has a strerror_r that returns char*, while the latter
5598 # has a strerror_r that returns `int'.
5599 # This test should segfault on the DEC system.
5600 if test "$cross_compiling" = yes; then
5603 cat >conftest.$ac_ext <<_ACEOF
5606 cat confdefs.h >>conftest.$ac_ext
5607 cat >>conftest.$ac_ext <<_ACEOF
5608 /* end confdefs.h. */
5609 $ac_includes_default
5610 extern char *strerror_r ();
5615 char x = *strerror_r (0, buf, sizeof buf);
5616 return ! isalpha (x);
5621 rm -f conftest$ac_exeext
5622 if { (ac_try="$ac_link"
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_link") 2>&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5632 { (case "(($ac_try" in
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637 (eval "$ac_try") 2>&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; }; then
5641 ac_cv_func_strerror_r_char_p=yes
5643 echo "$as_me: program exited with status $ac_status" >&5
5644 echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5655 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
5656 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
5657 if test $ac_cv_func_strerror_r_char_p = yes; then
5659 cat >>confdefs.h <<\_ACEOF
5660 #define STRERROR_R_CHAR_P 1
5669 for ac_header in $ac_header_list
5671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 ac_res=`eval echo '${'$as_ac_Header'}'`
5679 { echo "$as_me:$LINENO: result: $ac_res" >&5
5680 echo "${ECHO_T}$ac_res" >&6; }
5682 # Is the header compilable?
5683 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5684 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5685 cat >conftest.$ac_ext <<_ACEOF
5688 cat confdefs.h >>conftest.$ac_ext
5689 cat >>conftest.$ac_ext <<_ACEOF
5690 /* end confdefs.h. */
5691 $ac_includes_default
5692 #include <$ac_header>
5694 rm -f conftest.$ac_objext
5695 if { (ac_try="$ac_compile"
5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698 *) ac_try_echo=$ac_try;;
5700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701 (eval "$ac_compile") 2>conftest.er1
5703 grep -v '^ *+' conftest.er1 >conftest.err
5705 cat conftest.err >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } && {
5708 test -z "$ac_c_werror_flag" ||
5709 test ! -s conftest.err
5710 } && test -s conftest.$ac_objext; then
5711 ac_header_compiler=yes
5713 echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5716 ac_header_compiler=no
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5721 echo "${ECHO_T}$ac_header_compiler" >&6; }
5723 # Is the header present?
5724 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5725 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5726 cat >conftest.$ac_ext <<_ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5732 #include <$ac_header>
5734 if { (ac_try="$ac_cpp conftest.$ac_ext"
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5742 grep -v '^ *+' conftest.er1 >conftest.err
5744 cat conftest.err >&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); } >/dev/null && {
5747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5748 test ! -s conftest.err
5750 ac_header_preproc=yes
5752 echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5755 ac_header_preproc=no
5758 rm -f conftest.err conftest.$ac_ext
5759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5760 echo "${ECHO_T}$ac_header_preproc" >&6; }
5762 # So? What about this header?
5763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5769 ac_header_preproc=yes
5772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5779 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5785 ## ------------------------------- ##
5786 ## Report this to bug-gzip@gnu.org ##
5787 ## ------------------------------- ##
5789 ) | sed "s/^/$as_me: WARNING: /" >&2
5792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 eval "$as_ac_Header=\$ac_header_preproc"
5799 ac_res=`eval echo '${'$as_ac_Header'}'`
5800 { echo "$as_me:$LINENO: result: $ac_res" >&5
5801 echo "${ECHO_T}$ac_res" >&6; }
5804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5805 cat >>confdefs.h <<_ACEOF
5806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5816 if test -z "$GETOPT_H"; then
5818 for ac_header in getopt.h
5820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 ac_res=`eval echo '${'$as_ac_Header'}'`
5828 { echo "$as_me:$LINENO: result: $ac_res" >&5
5829 echo "${ECHO_T}$ac_res" >&6; }
5831 # Is the header compilable?
5832 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5834 cat >conftest.$ac_ext <<_ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5840 $ac_includes_default
5841 #include <$ac_header>
5843 rm -f conftest.$ac_objext
5844 if { (ac_try="$ac_compile"
5846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847 *) ac_try_echo=$ac_try;;
5849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5850 (eval "$ac_compile") 2>conftest.er1
5852 grep -v '^ *+' conftest.er1 >conftest.err
5854 cat conftest.err >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } && {
5857 test -z "$ac_c_werror_flag" ||
5858 test ! -s conftest.err
5859 } && test -s conftest.$ac_objext; then
5860 ac_header_compiler=yes
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5865 ac_header_compiler=no
5868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5870 echo "${ECHO_T}$ac_header_compiler" >&6; }
5872 # Is the header present?
5873 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5875 cat >conftest.$ac_ext <<_ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5881 #include <$ac_header>
5883 if { (ac_try="$ac_cpp conftest.$ac_ext"
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5891 grep -v '^ *+' conftest.er1 >conftest.err
5893 cat conftest.err >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } >/dev/null && {
5896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5897 test ! -s conftest.err
5899 ac_header_preproc=yes
5901 echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5904 ac_header_preproc=no
5907 rm -f conftest.err conftest.$ac_ext
5908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5909 echo "${ECHO_T}$ac_header_preproc" >&6; }
5911 # So? What about this header?
5912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5918 ac_header_preproc=yes
5921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5928 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5934 ## ------------------------------- ##
5935 ## Report this to bug-gzip@gnu.org ##
5936 ## ------------------------------- ##
5938 ) | sed "s/^/$as_me: WARNING: /" >&2
5941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 eval "$as_ac_Header=\$ac_header_preproc"
5948 ac_res=`eval echo '${'$as_ac_Header'}'`
5949 { echo "$as_me:$LINENO: result: $ac_res" >&5
5950 echo "${ECHO_T}$ac_res" >&6; }
5953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5954 cat >>confdefs.h <<_ACEOF
5955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5966 if test -z "$GETOPT_H"; then
5968 for ac_func in getopt_long_only
5970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 cat >conftest.$ac_ext <<_ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5984 #define $ac_func innocuous_$ac_func
5986 /* System header to define __stub macros and hopefully few prototypes,
5987 which can conflict with char $ac_func (); below.
5988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5989 <limits.h> exists even on freestanding compilers. */
5992 # include <limits.h>
5994 # include <assert.h>
5999 /* Override any GCC internal prototype to avoid an error.
6000 Use char because int might match the return type of a GCC
6001 builtin and then its argument prototype would still apply. */
6006 /* The GNU C library defines this for functions which it implements
6007 to always fail with ENOSYS. Some functions are actually named
6008 something starting with __ and the normal name is an alias. */
6009 #if defined __stub_$ac_func || defined __stub___$ac_func
6021 rm -f conftest.$ac_objext conftest$ac_exeext
6022 if { (ac_try="$ac_link"
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_link") 2>conftest.er1
6030 grep -v '^ *+' conftest.er1 >conftest.err
6032 cat conftest.err >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); } && {
6035 test -z "$ac_c_werror_flag" ||
6036 test ! -s conftest.err
6037 } && test -s conftest$ac_exeext &&
6038 $as_test_x conftest$ac_exeext; then
6039 eval "$as_ac_var=yes"
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6044 eval "$as_ac_var=no"
6047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6048 conftest$ac_exeext conftest.$ac_ext
6050 ac_res=`eval echo '${'$as_ac_var'}'`
6051 { echo "$as_me:$LINENO: result: $ac_res" >&5
6052 echo "${ECHO_T}$ac_res" >&6; }
6053 if test `eval echo '${'$as_ac_var'}'` = yes; then
6054 cat >>confdefs.h <<_ACEOF
6055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6065 if test -z "$GETOPT_H"; then
6066 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
6067 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
6068 if test "${ac_cv_have_decl_optreset+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 cat >conftest.$ac_ext <<_ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6090 rm -f conftest.$ac_objext
6091 if { (ac_try="$ac_compile"
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097 (eval "$ac_compile") 2>conftest.er1
6099 grep -v '^ *+' conftest.er1 >conftest.err
6101 cat conftest.err >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } && {
6104 test -z "$ac_c_werror_flag" ||
6105 test ! -s conftest.err
6106 } && test -s conftest.$ac_objext; then
6107 ac_cv_have_decl_optreset=yes
6109 echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6112 ac_cv_have_decl_optreset=no
6115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6117 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
6118 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
6119 if test $ac_cv_have_decl_optreset = yes; then
6125 if test -z "$GETOPT_H"; then
6126 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
6127 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
6128 if test "${gl_cv_func_gnu_getopt+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 if test "$cross_compiling" = yes; then
6132 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
6133 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
6134 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 cat >conftest.$ac_ext <<_ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6156 rm -f conftest.$ac_objext
6157 if { (ac_try="$ac_compile"
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6163 (eval "$ac_compile") 2>conftest.er1
6165 grep -v '^ *+' conftest.er1 >conftest.err
6167 cat conftest.err >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } && {
6170 test -z "$ac_c_werror_flag" ||
6171 test ! -s conftest.err
6172 } && test -s conftest.$ac_objext; then
6173 ac_cv_have_decl_getopt_clip=yes
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6178 ac_cv_have_decl_getopt_clip=no
6181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
6184 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
6185 if test $ac_cv_have_decl_getopt_clip = yes; then
6186 gl_cv_func_gnu_getopt=no
6188 gl_cv_func_gnu_getopt=yes
6192 cat >conftest.$ac_ext <<_ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6204 myargv[0] = "conftest";
6207 return getopt (2, myargv, "+a") != '?';
6213 rm -f conftest$ac_exeext
6214 if { (ac_try="$ac_link"
6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220 (eval "$ac_link") 2>&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6224 { (case "(($ac_try" in
6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226 *) ac_try_echo=$ac_try;;
6228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6229 (eval "$ac_try") 2>&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; }; then
6233 gl_cv_func_gnu_getopt=yes
6235 echo "$as_me: program exited with status $ac_status" >&5
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6240 gl_cv_func_gnu_getopt=no
6242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6247 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
6248 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
6249 if test "$gl_cv_func_gnu_getopt" = "no"; then
6254 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
6255 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
6256 if test "${ac_cv_have_decl_getenv+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 cat >conftest.$ac_ext <<_ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6265 $ac_includes_default
6277 rm -f conftest.$ac_objext
6278 if { (ac_try="$ac_compile"
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_compile") 2>conftest.er1
6286 grep -v '^ *+' conftest.er1 >conftest.err
6288 cat conftest.err >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && {
6291 test -z "$ac_c_werror_flag" ||
6292 test ! -s conftest.err
6293 } && test -s conftest.$ac_objext; then
6294 ac_cv_have_decl_getenv=yes
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6299 ac_cv_have_decl_getenv=no
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6304 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
6305 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
6306 if test $ac_cv_have_decl_getenv = yes; then
6308 cat >>confdefs.h <<_ACEOF
6309 #define HAVE_DECL_GETENV 1
6314 cat >>confdefs.h <<_ACEOF
6315 #define HAVE_DECL_GETENV 0
6322 { echo "$as_me:$LINENO: checking for inline" >&5
6323 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
6324 if test "${ac_cv_c_inline+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 for ac_kw in inline __inline__ __inline; do
6329 cat >conftest.$ac_ext <<_ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6337 static $ac_kw foo_t static_foo () {return 0; }
6338 $ac_kw foo_t foo () {return 0; }
6342 rm -f conftest.$ac_objext
6343 if { (ac_try="$ac_compile"
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_compile") 2>conftest.er1
6351 grep -v '^ *+' conftest.er1 >conftest.err
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } && {
6356 test -z "$ac_c_werror_flag" ||
6357 test ! -s conftest.err
6358 } && test -s conftest.$ac_objext; then
6359 ac_cv_c_inline=$ac_kw
6361 echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 test "$ac_cv_c_inline" != no && break
6372 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6373 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
6376 case $ac_cv_c_inline in
6379 case $ac_cv_c_inline in
6381 *) ac_val=$ac_cv_c_inline;;
6383 cat >>confdefs.h <<_ACEOF
6385 #define inline $ac_val
6393 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6394 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
6395 if test "${ac_cv_header_stdbool_h+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 cat >conftest.$ac_ext <<_ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6405 #include <stdbool.h>
6407 "error: bool is not defined"
6410 "error: false is not defined"
6413 "error: false is not 0"
6416 "error: true is not defined"
6419 "error: true is not 1"
6421 #ifndef __bool_true_false_are_defined
6422 "error: __bool_true_false_are_defined is not defined"
6425 struct s { _Bool s: 1; _Bool t; } s;
6427 char a[true == 1 ? 1 : -1];
6428 char b[false == 0 ? 1 : -1];
6429 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6430 char d[(bool) 0.5 == true ? 1 : -1];
6432 char f[(_Bool) 0.0 == false ? 1 : -1];
6434 char h[sizeof (_Bool)];
6436 enum { j = false, k = true, l = false * true, m = true * 256 };
6438 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6439 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6440 #if defined __xlc__ || defined __GNUC__
6441 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
6442 reported by James Lemley on 2005-10-05; see
6443 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
6444 This test is not quite right, since xlc is allowed to
6445 reject this program, as the initializer for xlcbug is
6446 not one of the forms that C requires support for.
6447 However, doing the test right would require a run-time
6448 test, and that would make cross-compilation harder.
6449 Let us hope that IBM fixes the xlc bug, and also adds
6450 support for this kind of constant expression. In the
6451 meantime, this test will reject xlc, which is OK, since
6452 our stdbool.h substitute should suffice. We also test
6453 this with GCC, where it should work, to detect more
6454 quickly whether someone messes up the test in the
6456 char digs[] = "0123456789";
6457 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
6459 /* Catch a bug in an HP-UX C compiler. See
6460 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6461 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6472 /* Refer to every declared value, to avoid compiler optimizations. */
6473 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6474 + !m + !n + !o + !p + !q + !pq);
6480 rm -f conftest.$ac_objext
6481 if { (ac_try="$ac_compile"
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487 (eval "$ac_compile") 2>conftest.er1
6489 grep -v '^ *+' conftest.er1 >conftest.err
6491 cat conftest.err >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } && {
6494 test -z "$ac_c_werror_flag" ||
6495 test ! -s conftest.err
6496 } && test -s conftest.$ac_objext; then
6497 ac_cv_header_stdbool_h=yes
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6502 ac_cv_header_stdbool_h=no
6505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6508 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
6509 { echo "$as_me:$LINENO: checking for _Bool" >&5
6510 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
6511 if test "${ac_cv_type__Bool+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 cat >conftest.$ac_ext <<_ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h. */
6520 $ac_includes_default
6521 typedef _Bool ac__type_new_;
6525 if ((ac__type_new_ *) 0)
6527 if (sizeof (ac__type_new_))
6533 rm -f conftest.$ac_objext
6534 if { (ac_try="$ac_compile"
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_compile") 2>conftest.er1
6542 grep -v '^ *+' conftest.er1 >conftest.err
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } && {
6547 test -z "$ac_c_werror_flag" ||
6548 test ! -s conftest.err
6549 } && test -s conftest.$ac_objext; then
6550 ac_cv_type__Bool=yes
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6560 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6561 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
6562 if test $ac_cv_type__Bool = yes; then
6564 cat >>confdefs.h <<_ACEOF
6565 #define HAVE__BOOL 1
6571 if test $ac_cv_header_stdbool_h = yes; then
6573 cat >>confdefs.h <<\_ACEOF
6574 #define HAVE_STDBOOL_H 1
6592 for ac_func in $ac_func_list
6594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6595 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6597 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 cat >conftest.$ac_ext <<_ACEOF
6603 cat confdefs.h >>conftest.$ac_ext
6604 cat >>conftest.$ac_ext <<_ACEOF
6605 /* end confdefs.h. */
6606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6608 #define $ac_func innocuous_$ac_func
6610 /* System header to define __stub macros and hopefully few prototypes,
6611 which can conflict with char $ac_func (); below.
6612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6613 <limits.h> exists even on freestanding compilers. */
6616 # include <limits.h>
6618 # include <assert.h>
6623 /* Override any GCC internal prototype to avoid an error.
6624 Use char because int might match the return type of a GCC
6625 builtin and then its argument prototype would still apply. */
6630 /* The GNU C library defines this for functions which it implements
6631 to always fail with ENOSYS. Some functions are actually named
6632 something starting with __ and the normal name is an alias. */
6633 #if defined __stub_$ac_func || defined __stub___$ac_func
6645 rm -f conftest.$ac_objext conftest$ac_exeext
6646 if { (ac_try="$ac_link"
6648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649 *) ac_try_echo=$ac_try;;
6651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6652 (eval "$ac_link") 2>conftest.er1
6654 grep -v '^ *+' conftest.er1 >conftest.err
6656 cat conftest.err >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } && {
6659 test -z "$ac_c_werror_flag" ||
6660 test ! -s conftest.err
6661 } && test -s conftest$ac_exeext &&
6662 $as_test_x conftest$ac_exeext; then
6663 eval "$as_ac_var=yes"
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6668 eval "$as_ac_var=no"
6671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6672 conftest$ac_exeext conftest.$ac_ext
6674 ac_res=`eval echo '${'$as_ac_var'}'`
6675 { echo "$as_me:$LINENO: result: $ac_res" >&5
6676 echo "${ECHO_T}$ac_res" >&6; }
6677 if test `eval echo '${'$as_ac_var'}'` = yes; then
6678 cat >>confdefs.h <<_ACEOF
6679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6687 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6688 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
6689 if test "${ac_cv_header_stat_broken+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 cat >conftest.$ac_ext <<_ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 #include <sys/types.h>
6699 #include <sys/stat.h>
6701 #if defined S_ISBLK && defined S_IFDIR
6702 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6705 #if defined S_ISBLK && defined S_IFCHR
6706 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6709 #if defined S_ISLNK && defined S_IFREG
6710 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6713 #if defined S_ISSOCK && defined S_IFREG
6714 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6718 rm -f conftest.$ac_objext
6719 if { (ac_try="$ac_compile"
6721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6722 *) ac_try_echo=$ac_try;;
6724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6725 (eval "$ac_compile") 2>conftest.er1
6727 grep -v '^ *+' conftest.er1 >conftest.err
6729 cat conftest.err >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } && {
6732 test -z "$ac_c_werror_flag" ||
6733 test ! -s conftest.err
6734 } && test -s conftest.$ac_objext; then
6735 ac_cv_header_stat_broken=no
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6740 ac_cv_header_stat_broken=yes
6743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6746 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6747 if test $ac_cv_header_stat_broken = yes; then
6749 cat >>confdefs.h <<\_ACEOF
6750 #define STAT_MACROS_BROKEN 1
6757 { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
6758 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
6759 if test "${ac_cv_c_restrict+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 # Try the official restrict keyword, then gcc's __restrict, and
6764 # the less common variants.
6765 for ac_kw in restrict __restrict __restrict__ _Restrict; do
6766 cat >conftest.$ac_ext <<_ACEOF
6769 cat confdefs.h >>conftest.$ac_ext
6770 cat >>conftest.$ac_ext <<_ACEOF
6771 /* end confdefs.h. */
6772 typedef int * int_ptr;
6773 int foo (int_ptr $ac_kw ip) {
6787 rm -f conftest.$ac_objext
6788 if { (ac_try="$ac_compile"
6790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6791 *) ac_try_echo=$ac_try;;
6793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6794 (eval "$ac_compile") 2>conftest.er1
6796 grep -v '^ *+' conftest.er1 >conftest.err
6798 cat conftest.err >&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } && {
6801 test -z "$ac_c_werror_flag" ||
6802 test ! -s conftest.err
6803 } && test -s conftest.$ac_objext; then
6804 ac_cv_c_restrict=$ac_kw
6806 echo "$as_me: failed program was:" >&5
6807 sed 's/^/| /' conftest.$ac_ext >&5
6812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 test "$ac_cv_c_restrict" != no && break
6817 { echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
6818 echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
6819 case $ac_cv_c_restrict in
6822 cat >>confdefs.h <<\_ACEOF
6826 *) cat >>confdefs.h <<_ACEOF
6827 #define restrict $ac_cv_c_restrict
6841 if test $ac_cv_header_sys_time_h = yes; then
6842 { echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
6843 echo $ECHO_N "checking absolute name of <sys/time.h>... $ECHO_C" >&6; }
6844 if test "${gl_cv_absolute_sys_time_h+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6852 if test $ac_cv_header_sys_time_h = yes; then
6853 cat >conftest.$ac_ext <<_ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h. */
6859 #include <sys/time.h>
6861 gl_cv_absolute_sys_time_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6862 sed -n '\#/sys/time.h#{s#.*"\(.*/sys/time.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
6866 { echo "$as_me:$LINENO: result: $gl_cv_absolute_sys_time_h" >&5
6867 echo "${ECHO_T}$gl_cv_absolute_sys_time_h" >&6; }
6868 cat >>confdefs.h <<_ACEOF
6869 #define ABSOLUTE_SYS_TIME_H "$gl_cv_absolute_sys_time_h"
6873 ABSOLUTE_SYS_TIME_H=\"$gl_cv_absolute_sys_time_h\"
6876 ABSOLUTE_SYS_TIME_H=\"no/such/file/sys/time.h\"
6882 { echo "$as_me:$LINENO: checking for struct timeval" >&5
6883 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
6884 if test "${gl_cv_sys_struct_timeval+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 cat >conftest.$ac_ext <<_ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6894 #include <sys/time.h>
6901 static struct timeval x; x.tv_sec = x.tv_usec;
6906 rm -f conftest.$ac_objext
6907 if { (ac_try="$ac_compile"
6909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910 *) ac_try_echo=$ac_try;;
6912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6913 (eval "$ac_compile") 2>conftest.er1
6915 grep -v '^ *+' conftest.er1 >conftest.err
6917 cat conftest.err >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } && {
6920 test -z "$ac_c_werror_flag" ||
6921 test ! -s conftest.err
6922 } && test -s conftest.$ac_objext; then
6923 gl_cv_sys_struct_timeval=yes
6925 echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6928 gl_cv_sys_struct_timeval=no
6931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
6934 echo "${ECHO_T}$gl_cv_sys_struct_timeval" >&6; }
6935 if test $gl_cv_sys_struct_timeval = yes; then
6936 HAVE_STRUCT_TIMEVAL=1
6938 HAVE_STRUCT_TIMEVAL=0
6942 REPLACE_GETTIMEOFDAY=0
6944 if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
6945 SYS_TIME_H=sys/time.h
6952 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
6953 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
6954 REPLACE_STRPTIME=GNULIB_PORTCHECK;
6955 REPLACE_TIMEGM=GNULIB_PORTCHECK;
6966 { echo "$as_me:$LINENO: checking for struct timespec in <time.h>" >&5
6967 echo $ECHO_N "checking for struct timespec in <time.h>... $ECHO_C" >&6; }
6968 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 cat >conftest.$ac_ext <<_ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6982 static struct timespec x; x.tv_sec = x.tv_nsec;
6987 rm -f conftest.$ac_objext
6988 if { (ac_try="$ac_compile"
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6994 (eval "$ac_compile") 2>conftest.er1
6996 grep -v '^ *+' conftest.er1 >conftest.err
6998 cat conftest.err >&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && {
7001 test -z "$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 } && test -s conftest.$ac_objext; then
7004 gl_cv_sys_struct_timespec_in_time_h=yes
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 gl_cv_sys_struct_timespec_in_time_h=no
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
7015 echo "${ECHO_T}$gl_cv_sys_struct_timespec_in_time_h" >&6; }
7017 TIME_H_DEFINES_STRUCT_TIMESPEC=0
7018 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
7019 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
7020 TIME_H_DEFINES_STRUCT_TIMESPEC=1
7022 { echo "$as_me:$LINENO: checking for struct timespec in <sys/time.h>" >&5
7023 echo $ECHO_N "checking for struct timespec in <sys/time.h>... $ECHO_C" >&6; }
7024 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 cat >conftest.$ac_ext <<_ACEOF
7030 cat confdefs.h >>conftest.$ac_ext
7031 cat >>conftest.$ac_ext <<_ACEOF
7032 /* end confdefs.h. */
7033 #include <sys/time.h>
7038 static struct timespec x; x.tv_sec = x.tv_nsec;
7043 rm -f conftest.$ac_objext
7044 if { (ac_try="$ac_compile"
7046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050 (eval "$ac_compile") 2>conftest.er1
7052 grep -v '^ *+' conftest.er1 >conftest.err
7054 cat conftest.err >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } && {
7057 test -z "$ac_c_werror_flag" ||
7058 test ! -s conftest.err
7059 } && test -s conftest.$ac_objext; then
7060 gl_cv_sys_struct_timespec_in_sys_time_h=yes
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7065 gl_cv_sys_struct_timespec_in_sys_time_h=no
7068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7070 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
7071 echo "${ECHO_T}$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
7072 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
7073 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
7082 { echo "$as_me:$LINENO: checking absolute name of <time.h>" >&5
7083 echo $ECHO_N "checking absolute name of <time.h>... $ECHO_C" >&6; }
7084 if test "${gl_cv_absolute_time_h+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 if test $ac_cv_header_time_h = yes; then
7093 cat >conftest.$ac_ext <<_ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7101 gl_cv_absolute_time_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7102 sed -n '\#/time.h#{s#.*"\(.*/time.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
7106 { echo "$as_me:$LINENO: result: $gl_cv_absolute_time_h" >&5
7107 echo "${ECHO_T}$gl_cv_absolute_time_h" >&6; }
7108 cat >>confdefs.h <<_ACEOF
7109 #define ABSOLUTE_TIME_H "$gl_cv_absolute_time_h"
7113 ABSOLUTE_TIME_H=\"$gl_cv_absolute_time_h\"
7123 GNULIB_GETLOGIN_R=0;
7128 HAVE_DECL_GETLOGIN_R=1;
7138 { echo "$as_me:$LINENO: checking determine whether the utimes function works" >&5
7139 echo $ECHO_N "checking determine whether the utimes function works... $ECHO_C" >&6; }
7140 if test "${gl_cv_func_working_utimes+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 if test "$cross_compiling" = yes; then
7145 gl_cv_func_working_utimes=no
7147 cat >conftest.$ac_ext <<_ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h. */
7154 #include <sys/types.h>
7155 #include <sys/stat.h>
7157 #include <sys/time.h>
7167 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
7169 char const *file = "conftest.utimes";
7174 int ok = ((f = fopen (file, "w"))
7176 && utimes (file, timeval) == 0
7177 && lstat (file, &sbuf) == 0
7178 && sbuf.st_atime == timeval[0].tv_sec
7179 && sbuf.st_mtime == timeval[1].tv_sec);
7185 ((f = fopen (file, "w"))
7187 && time (&now) != (time_t)-1
7188 && utimes (file, NULL) == 0
7189 && lstat (file, &sbuf) == 0
7190 && now - sbuf.st_atime <= 2
7191 && now - sbuf.st_mtime <= 2);
7196 ok = (0 <= (fd = open (file, O_WRONLY|O_CREAT, 0444))
7198 && utimes (file, NULL) == 0);
7205 rm -f conftest$ac_exeext
7206 if { (ac_try="$ac_link"
7208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7209 *) ac_try_echo=$ac_try;;
7211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7212 (eval "$ac_link") 2>&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7216 { (case "(($ac_try" in
7217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7218 *) ac_try_echo=$ac_try;;
7220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7221 (eval "$ac_try") 2>&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }; }; then
7225 gl_cv_func_working_utimes=yes
7227 echo "$as_me: program exited with status $ac_status" >&5
7228 echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7232 gl_cv_func_working_utimes=no
7234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7239 { echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
7240 echo "${ECHO_T}$gl_cv_func_working_utimes" >&6; }
7242 if test $gl_cv_func_working_utimes = yes; then
7244 cat >>confdefs.h <<\_ACEOF
7245 #define HAVE_WORKING_UTIMES 1
7261 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7262 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7263 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 cat >conftest.$ac_ext <<_ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h. */
7273 #include <sys/time.h>
7283 static struct utimbuf x; x.actime = x.modtime;
7288 rm -f conftest.$ac_objext
7289 if { (ac_try="$ac_compile"
7291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7292 *) ac_try_echo=$ac_try;;
7294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7295 (eval "$ac_compile") 2>conftest.er1
7297 grep -v '^ *+' conftest.er1 >conftest.err
7299 cat conftest.err >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } && {
7302 test -z "$ac_c_werror_flag" ||
7303 test ! -s conftest.err
7304 } && test -s conftest.$ac_objext; then
7305 gl_cv_sys_struct_utimbuf=yes
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7310 gl_cv_sys_struct_utimbuf=no
7313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_utimbuf" >&5
7316 echo "${ECHO_T}$gl_cv_sys_struct_utimbuf" >&6; }
7318 if test $gl_cv_sys_struct_utimbuf = yes; then
7320 cat >>confdefs.h <<\_ACEOF
7321 #define HAVE_STRUCT_UTIMBUF 1
7335 GL_COND_LIBTOOL_TRUE=
7336 GL_COND_LIBTOOL_FALSE='#'
7338 GL_COND_LIBTOOL_TRUE='#'
7339 GL_COND_LIBTOOL_FALSE=
7342 gl_cond_libtool=false
7345 gl_source_base='lib'
7347 { echo "$as_me:$LINENO: checking for error_at_line" >&5
7348 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
7349 if test "${ac_cv_lib_error_at_line+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 cat >conftest.$ac_ext <<_ACEOF
7355 cat confdefs.h >>conftest.$ac_ext
7356 cat >>conftest.$ac_ext <<_ACEOF
7357 /* end confdefs.h. */
7362 error_at_line (0, 0, "", 0, "an error occurred");
7367 rm -f conftest.$ac_objext conftest$ac_exeext
7368 if { (ac_try="$ac_link"
7370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7371 *) ac_try_echo=$ac_try;;
7373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7374 (eval "$ac_link") 2>conftest.er1
7376 grep -v '^ *+' conftest.er1 >conftest.err
7378 cat conftest.err >&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } && {
7381 test -z "$ac_c_werror_flag" ||
7382 test ! -s conftest.err
7383 } && test -s conftest$ac_exeext &&
7384 $as_test_x conftest$ac_exeext; then
7385 ac_cv_lib_error_at_line=yes
7387 echo "$as_me: failed program was:" >&5
7388 sed 's/^/| /' conftest.$ac_ext >&5
7390 ac_cv_lib_error_at_line=no
7393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7394 conftest$ac_exeext conftest.$ac_ext
7396 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
7397 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
7398 if test $ac_cv_lib_error_at_line = no; then
7399 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
7408 gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext"
7413 { echo "$as_me:$LINENO: checking for working fcntl.h" >&5
7414 echo $ECHO_N "checking for working fcntl.h... $ECHO_C" >&6; }
7415 if test "${gl_cv_header_working_fcntl_h+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 if test "$cross_compiling" = yes; then
7419 gl_cv_header_working_fcntl_h=cross-compiling
7421 cat >conftest.$ac_ext <<_ACEOF
7424 cat confdefs.h >>conftest.$ac_ext
7425 cat >>conftest.$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7427 #include <sys/types.h>
7428 #include <sys/stat.h>
7435 #define O_NOFOLLOW 0
7437 static int const constants[] =
7439 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
7440 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
7447 int status = !constants;
7449 static char const sym[] = "conftest.sym";
7450 if (symlink (".", sym) != 0
7451 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
7455 static char const file[] = "confdefs.h";
7456 int fd = open (file, O_RDONLY | O_NOATIME);
7458 struct stat st0, st1;
7460 || fstat (fd, &st0) != 0
7462 || read (fd, &c, 1) != 1
7464 || stat (file, &st1) != 0
7465 || st0.st_atime != st1.st_atime)
7473 rm -f conftest$ac_exeext
7474 if { (ac_try="$ac_link"
7476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7477 *) ac_try_echo=$ac_try;;
7479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7480 (eval "$ac_link") 2>&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7484 { (case "(($ac_try" in
7485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7486 *) ac_try_echo=$ac_try;;
7488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7489 (eval "$ac_try") 2>&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); }; }; then
7493 gl_cv_header_working_fcntl_h=yes
7495 echo "$as_me: program exited with status $ac_status" >&5
7496 echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.$ac_ext >&5
7501 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
7502 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
7503 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
7504 *) gl_cv_header_working_fcntl_h='no';;
7507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7512 { echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
7513 echo "${ECHO_T}$gl_cv_header_working_fcntl_h" >&6; }
7515 case $gl_cv_header_working_fcntl_h in #(
7516 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
7520 cat >>confdefs.h <<_ACEOF
7521 #define HAVE_WORKING_O_NOATIME $ac_val
7525 case $gl_cv_header_working_fcntl_h in #(
7526 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
7530 cat >>confdefs.h <<_ACEOF
7531 #define HAVE_WORKING_O_NOFOLLOW $ac_val
7535 { echo "$as_me:$LINENO: checking absolute name of <fcntl.h>" >&5
7536 echo $ECHO_N "checking absolute name of <fcntl.h>... $ECHO_C" >&6; }
7537 if test "${gl_cv_absolute_fcntl_h+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 if test $ac_cv_header_fcntl_h = yes; then
7546 cat >conftest.$ac_ext <<_ACEOF
7549 cat confdefs.h >>conftest.$ac_ext
7550 cat >>conftest.$ac_ext <<_ACEOF
7551 /* end confdefs.h. */
7554 gl_cv_absolute_fcntl_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7555 sed -n '\#/fcntl.h#{s#.*"\(.*/fcntl.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
7559 { echo "$as_me:$LINENO: result: $gl_cv_absolute_fcntl_h" >&5
7560 echo "${ECHO_T}$gl_cv_absolute_fcntl_h" >&6; }
7561 cat >>confdefs.h <<_ACEOF
7562 #define ABSOLUTE_FCNTL_H "$gl_cv_absolute_fcntl_h"
7566 ABSOLUTE_FCNTL_H=\"$gl_cv_absolute_fcntl_h\"
7572 gl_LIBOBJS="$gl_LIBOBJS open-safer.$ac_objext"
7573 gl_LIBOBJS="$gl_LIBOBJS creat-safer.$ac_objext"
7577 cat >>confdefs.h <<\_ACEOF
7578 #define GNULIB_FCNTL_SAFER 1
7584 if test -n "$GETOPT_H"; then
7586 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
7587 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
7591 cat >>confdefs.h <<\_ACEOF
7592 #define __GETOPT_PREFIX rpl_
7611 { echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
7612 echo $ECHO_N "checking whether the compiler generally respects inline... $ECHO_C" >&6; }
7613 if test "${gl_cv_c_inline_effective+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7616 if test $ac_cv_c_inline = no; then
7617 gl_cv_c_inline_effective=no
7619 cat >conftest.$ac_ext <<_ACEOF
7622 cat confdefs.h >>conftest.$ac_ext
7623 cat >>conftest.$ac_ext <<_ACEOF
7624 /* end confdefs.h. */
7629 #ifdef __NO_INLINE__
7630 #error "inline is not effective"
7636 rm -f conftest.$ac_objext
7637 if { (ac_try="$ac_compile"
7639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7640 *) ac_try_echo=$ac_try;;
7642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7643 (eval "$ac_compile") 2>conftest.er1
7645 grep -v '^ *+' conftest.er1 >conftest.err
7647 cat conftest.err >&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } && {
7650 test -z "$ac_c_werror_flag" ||
7651 test ! -s conftest.err
7652 } && test -s conftest.$ac_objext; then
7653 gl_cv_c_inline_effective=yes
7655 echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7658 gl_cv_c_inline_effective=no
7661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7665 { echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
7666 echo "${ECHO_T}$gl_cv_c_inline_effective" >&6; }
7667 if test $gl_cv_c_inline_effective = yes; then
7669 cat >>confdefs.h <<\_ACEOF
7670 #define HAVE_INLINE 1
7685 { echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
7686 echo $ECHO_N "checking for struct stat.st_atim.tv_nsec... $ECHO_C" >&6; }
7687 if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 cat >conftest.$ac_ext <<_ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7696 #include <sys/types.h>
7697 #include <sys/stat.h>
7702 static struct stat ac_aggr;
7703 if (ac_aggr.st_atim.tv_nsec)
7709 rm -f conftest.$ac_objext
7710 if { (ac_try="$ac_compile"
7712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7713 *) ac_try_echo=$ac_try;;
7715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7716 (eval "$ac_compile") 2>conftest.er1
7718 grep -v '^ *+' conftest.er1 >conftest.err
7720 cat conftest.err >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); } && {
7723 test -z "$ac_c_werror_flag" ||
7724 test ! -s conftest.err
7725 } && test -s conftest.$ac_objext; then
7726 ac_cv_member_struct_stat_st_atim_tv_nsec=yes
7728 echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7731 cat >conftest.$ac_ext <<_ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7737 #include <sys/types.h>
7738 #include <sys/stat.h>
7743 static struct stat ac_aggr;
7744 if (sizeof ac_aggr.st_atim.tv_nsec)
7750 rm -f conftest.$ac_objext
7751 if { (ac_try="$ac_compile"
7753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7754 *) ac_try_echo=$ac_try;;
7756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7757 (eval "$ac_compile") 2>conftest.er1
7759 grep -v '^ *+' conftest.er1 >conftest.err
7761 cat conftest.err >&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } && {
7764 test -z "$ac_c_werror_flag" ||
7765 test ! -s conftest.err
7766 } && test -s conftest.$ac_objext; then
7767 ac_cv_member_struct_stat_st_atim_tv_nsec=yes
7769 echo "$as_me: failed program was:" >&5
7770 sed 's/^/| /' conftest.$ac_ext >&5
7772 ac_cv_member_struct_stat_st_atim_tv_nsec=no
7775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
7781 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
7782 if test $ac_cv_member_struct_stat_st_atim_tv_nsec = yes; then
7784 cat >>confdefs.h <<_ACEOF
7785 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
7788 { echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
7789 echo $ECHO_N "checking whether struct stat.st_atim is of type struct timespec... $ECHO_C" >&6; }
7790 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7793 cat >conftest.$ac_ext <<_ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7800 #include <sys/types.h>
7801 #include <sys/stat.h>
7803 # include <sys/time.h>
7819 rm -f conftest.$ac_objext
7820 if { (ac_try="$ac_compile"
7822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823 *) ac_try_echo=$ac_try;;
7825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826 (eval "$ac_compile") 2>conftest.er1
7828 grep -v '^ *+' conftest.er1 >conftest.err
7830 cat conftest.err >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } && {
7833 test -z "$ac_c_werror_flag" ||
7834 test ! -s conftest.err
7835 } && test -s conftest.$ac_objext; then
7836 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
7838 echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.$ac_ext >&5
7841 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
7844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7846 { echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
7847 echo "${ECHO_T}$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
7848 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
7850 cat >>confdefs.h <<\_ACEOF
7851 #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
7856 { echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
7857 echo $ECHO_N "checking for struct stat.st_atimespec.tv_nsec... $ECHO_C" >&6; }
7858 if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7861 cat >conftest.$ac_ext <<_ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 #include <sys/types.h>
7868 #include <sys/stat.h>
7873 static struct stat ac_aggr;
7874 if (ac_aggr.st_atimespec.tv_nsec)
7880 rm -f conftest.$ac_objext
7881 if { (ac_try="$ac_compile"
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_compile") 2>conftest.er1
7889 grep -v '^ *+' conftest.er1 >conftest.err
7891 cat conftest.err >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } && {
7894 test -z "$ac_c_werror_flag" ||
7895 test ! -s conftest.err
7896 } && test -s conftest.$ac_objext; then
7897 ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7902 cat >conftest.$ac_ext <<_ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h. */
7908 #include <sys/types.h>
7909 #include <sys/stat.h>
7914 static struct stat ac_aggr;
7915 if (sizeof ac_aggr.st_atimespec.tv_nsec)
7921 rm -f conftest.$ac_objext
7922 if { (ac_try="$ac_compile"
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928 (eval "$ac_compile") 2>conftest.er1
7930 grep -v '^ *+' conftest.er1 >conftest.err
7932 cat conftest.err >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } && {
7935 test -z "$ac_c_werror_flag" ||
7936 test ! -s conftest.err
7937 } && test -s conftest.$ac_objext; then
7938 ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
7940 echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7943 ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
7946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7951 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
7952 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
7953 if test $ac_cv_member_struct_stat_st_atimespec_tv_nsec = yes; then
7955 cat >>confdefs.h <<_ACEOF
7956 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
7961 { echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
7962 echo $ECHO_N "checking for struct stat.st_atimensec... $ECHO_C" >&6; }
7963 if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 cat >conftest.$ac_ext <<_ACEOF
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h. */
7972 #include <sys/types.h>
7973 #include <sys/stat.h>
7978 static struct stat ac_aggr;
7979 if (ac_aggr.st_atimensec)
7985 rm -f conftest.$ac_objext
7986 if { (ac_try="$ac_compile"
7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989 *) ac_try_echo=$ac_try;;
7991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992 (eval "$ac_compile") 2>conftest.er1
7994 grep -v '^ *+' conftest.er1 >conftest.err
7996 cat conftest.err >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } && {
7999 test -z "$ac_c_werror_flag" ||
8000 test ! -s conftest.err
8001 } && test -s conftest.$ac_objext; then
8002 ac_cv_member_struct_stat_st_atimensec=yes
8004 echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8007 cat >conftest.$ac_ext <<_ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8013 #include <sys/types.h>
8014 #include <sys/stat.h>
8019 static struct stat ac_aggr;
8020 if (sizeof ac_aggr.st_atimensec)
8026 rm -f conftest.$ac_objext
8027 if { (ac_try="$ac_compile"
8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030 *) ac_try_echo=$ac_try;;
8032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8033 (eval "$ac_compile") 2>conftest.er1
8035 grep -v '^ *+' conftest.er1 >conftest.err
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } && {
8040 test -z "$ac_c_werror_flag" ||
8041 test ! -s conftest.err
8042 } && test -s conftest.$ac_objext; then
8043 ac_cv_member_struct_stat_st_atimensec=yes
8045 echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8048 ac_cv_member_struct_stat_st_atimensec=no
8051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8056 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
8057 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimensec" >&6; }
8058 if test $ac_cv_member_struct_stat_st_atimensec = yes; then
8060 cat >>confdefs.h <<_ACEOF
8061 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
8066 { echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
8067 echo $ECHO_N "checking for struct stat.st_atim.st__tim.tv_nsec... $ECHO_C" >&6; }
8068 if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 cat >conftest.$ac_ext <<_ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8077 #include <sys/types.h>
8078 #include <sys/stat.h>
8083 static struct stat ac_aggr;
8084 if (ac_aggr.st_atim.st__tim.tv_nsec)
8090 rm -f conftest.$ac_objext
8091 if { (ac_try="$ac_compile"
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_compile") 2>conftest.er1
8099 grep -v '^ *+' conftest.er1 >conftest.err
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } && {
8104 test -z "$ac_c_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest.$ac_objext; then
8107 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
8109 echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8112 cat >conftest.$ac_ext <<_ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8118 #include <sys/types.h>
8119 #include <sys/stat.h>
8124 static struct stat ac_aggr;
8125 if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
8131 rm -f conftest.$ac_objext
8132 if { (ac_try="$ac_compile"
8134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135 *) ac_try_echo=$ac_try;;
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138 (eval "$ac_compile") 2>conftest.er1
8140 grep -v '^ *+' conftest.er1 >conftest.err
8142 cat conftest.err >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } && {
8145 test -z "$ac_c_werror_flag" ||
8146 test ! -s conftest.err
8147 } && test -s conftest.$ac_objext; then
8148 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8153 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
8156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8161 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
8162 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
8163 if test $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec = yes; then
8165 cat >>confdefs.h <<_ACEOF
8166 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
8188 { echo "$as_me:$LINENO: checking for struct stat.st_birthtimespec.tv_nsec" >&5
8189 echo $ECHO_N "checking for struct stat.st_birthtimespec.tv_nsec... $ECHO_C" >&6; }
8190 if test "${ac_cv_member_struct_stat_st_birthtimespec_tv_nsec+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8193 cat >conftest.$ac_ext <<_ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8199 #include <sys/types.h>
8200 #include <sys/stat.h>
8205 static struct stat ac_aggr;
8206 if (ac_aggr.st_birthtimespec.tv_nsec)
8212 rm -f conftest.$ac_objext
8213 if { (ac_try="$ac_compile"
8215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8216 *) ac_try_echo=$ac_try;;
8218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8219 (eval "$ac_compile") 2>conftest.er1
8221 grep -v '^ *+' conftest.er1 >conftest.err
8223 cat conftest.err >&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); } && {
8226 test -z "$ac_c_werror_flag" ||
8227 test ! -s conftest.err
8228 } && test -s conftest.$ac_objext; then
8229 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
8231 echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8234 cat >conftest.$ac_ext <<_ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8240 #include <sys/types.h>
8241 #include <sys/stat.h>
8246 static struct stat ac_aggr;
8247 if (sizeof ac_aggr.st_birthtimespec.tv_nsec)
8253 rm -f conftest.$ac_objext
8254 if { (ac_try="$ac_compile"
8256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8257 *) ac_try_echo=$ac_try;;
8259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8260 (eval "$ac_compile") 2>conftest.er1
8262 grep -v '^ *+' conftest.er1 >conftest.err
8264 cat conftest.err >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } && {
8267 test -z "$ac_c_werror_flag" ||
8268 test ! -s conftest.err
8269 } && test -s conftest.$ac_objext; then
8270 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
8272 echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.$ac_ext >&5
8275 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=no
8278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8283 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&5
8284 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&6; }
8285 if test $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec = yes; then
8287 cat >>confdefs.h <<_ACEOF
8288 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
8293 { echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5
8294 echo $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6; }
8295 if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 cat >conftest.$ac_ext <<_ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h. */
8304 #include <sys/types.h>
8305 #include <sys/stat.h>
8310 static struct stat ac_aggr;
8311 if (ac_aggr.st_birthtimensec)
8317 rm -f conftest.$ac_objext
8318 if { (ac_try="$ac_compile"
8320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8321 *) ac_try_echo=$ac_try;;
8323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8324 (eval "$ac_compile") 2>conftest.er1
8326 grep -v '^ *+' conftest.er1 >conftest.err
8328 cat conftest.err >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } && {
8331 test -z "$ac_c_werror_flag" ||
8332 test ! -s conftest.err
8333 } && test -s conftest.$ac_objext; then
8334 ac_cv_member_struct_stat_st_birthtimensec=yes
8336 echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8339 cat >conftest.$ac_ext <<_ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8345 #include <sys/types.h>
8346 #include <sys/stat.h>
8351 static struct stat ac_aggr;
8352 if (sizeof ac_aggr.st_birthtimensec)
8358 rm -f conftest.$ac_objext
8359 if { (ac_try="$ac_compile"
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_compile") 2>conftest.er1
8367 grep -v '^ *+' conftest.er1 >conftest.err
8369 cat conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } && {
8372 test -z "$ac_c_werror_flag" ||
8373 test ! -s conftest.err
8374 } && test -s conftest.$ac_objext; then
8375 ac_cv_member_struct_stat_st_birthtimensec=yes
8377 echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8380 ac_cv_member_struct_stat_st_birthtimensec=no
8383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8388 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
8389 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6; }
8390 if test $ac_cv_member_struct_stat_st_birthtimensec = yes; then
8392 cat >>confdefs.h <<_ACEOF
8393 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
8398 { echo "$as_me:$LINENO: checking for struct stat.st_birthtim.tv_nsec" >&5
8399 echo $ECHO_N "checking for struct stat.st_birthtim.tv_nsec... $ECHO_C" >&6; }
8400 if test "${ac_cv_member_struct_stat_st_birthtim_tv_nsec+set}" = set; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
8403 cat >conftest.$ac_ext <<_ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8409 #include <sys/types.h>
8410 #include <sys/stat.h>
8415 static struct stat ac_aggr;
8416 if (ac_aggr.st_birthtim.tv_nsec)
8422 rm -f conftest.$ac_objext
8423 if { (ac_try="$ac_compile"
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_compile") 2>conftest.er1
8431 grep -v '^ *+' conftest.er1 >conftest.err
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } && {
8436 test -z "$ac_c_werror_flag" ||
8437 test ! -s conftest.err
8438 } && test -s conftest.$ac_objext; then
8439 ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8444 cat >conftest.$ac_ext <<_ACEOF
8447 cat confdefs.h >>conftest.$ac_ext
8448 cat >>conftest.$ac_ext <<_ACEOF
8449 /* end confdefs.h. */
8450 #include <sys/types.h>
8451 #include <sys/stat.h>
8456 static struct stat ac_aggr;
8457 if (sizeof ac_aggr.st_birthtim.tv_nsec)
8463 rm -f conftest.$ac_objext
8464 if { (ac_try="$ac_compile"
8466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467 *) ac_try_echo=$ac_try;;
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470 (eval "$ac_compile") 2>conftest.er1
8472 grep -v '^ *+' conftest.er1 >conftest.err
8474 cat conftest.err >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } && {
8477 test -z "$ac_c_werror_flag" ||
8478 test ! -s conftest.err
8479 } && test -s conftest.$ac_objext; then
8480 ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
8482 echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8485 ac_cv_member_struct_stat_st_birthtim_tv_nsec=no
8488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8493 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&5
8494 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&6; }
8495 if test $ac_cv_member_struct_stat_st_birthtim_tv_nsec = yes; then
8497 cat >>confdefs.h <<_ACEOF
8498 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
8512 # Define two additional variables used in the Makefile substitution.
8514 if test "$ac_cv_header_stdbool_h" = yes; then
8517 STDBOOL_H='stdbool.h'
8521 if test "$ac_cv_type__Bool" = yes; then
8530 { echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
8531 echo $ECHO_N "checking absolute name of <stdlib.h>... $ECHO_C" >&6; }
8532 if test "${gl_cv_absolute_stdlib_h+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8540 if test $ac_cv_header_stdlib_h = yes; then
8541 cat >conftest.$ac_ext <<_ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8549 gl_cv_absolute_stdlib_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8550 sed -n '\#/stdlib.h#{s#.*"\(.*/stdlib.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
8554 { echo "$as_me:$LINENO: result: $gl_cv_absolute_stdlib_h" >&5
8555 echo "${ECHO_T}$gl_cv_absolute_stdlib_h" >&6; }
8556 cat >>confdefs.h <<_ACEOF
8557 #define ABSOLUTE_STDLIB_H "$gl_cv_absolute_stdlib_h"
8561 ABSOLUTE_STDLIB_H=\"$gl_cv_absolute_stdlib_h\"
8572 { echo "$as_me:$LINENO: checking whether mkdir is declared" >&5
8573 echo $ECHO_N "checking whether mkdir is declared... $ECHO_C" >&6; }
8574 if test "${ac_cv_have_decl_mkdir+set}" = set; then
8575 echo $ECHO_N "(cached) $ECHO_C" >&6
8577 cat >conftest.$ac_ext <<_ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8583 #include <sys/stat.h>
8596 rm -f conftest.$ac_objext
8597 if { (ac_try="$ac_compile"
8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603 (eval "$ac_compile") 2>conftest.er1
8605 grep -v '^ *+' conftest.er1 >conftest.err
8607 cat conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } && {
8610 test -z "$ac_c_werror_flag" ||
8611 test ! -s conftest.err
8612 } && test -s conftest.$ac_objext; then
8613 ac_cv_have_decl_mkdir=yes
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8618 ac_cv_have_decl_mkdir=no
8621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_mkdir" >&5
8624 echo "${ECHO_T}$ac_cv_have_decl_mkdir" >&6; }
8625 if test $ac_cv_have_decl_mkdir = yes; then
8627 cat >>confdefs.h <<_ACEOF
8628 #define HAVE_DECL_MKDIR 1
8633 cat >>confdefs.h <<_ACEOF
8634 #define HAVE_DECL_MKDIR 0
8638 for ac_header in io.h
8640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8645 echo $ECHO_N "(cached) $ECHO_C" >&6
8647 ac_res=`eval echo '${'$as_ac_Header'}'`
8648 { echo "$as_me:$LINENO: result: $ac_res" >&5
8649 echo "${ECHO_T}$ac_res" >&6; }
8651 # Is the header compilable?
8652 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8654 cat >conftest.$ac_ext <<_ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8660 $ac_includes_default
8661 #include <$ac_header>
8663 rm -f conftest.$ac_objext
8664 if { (ac_try="$ac_compile"
8666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667 *) ac_try_echo=$ac_try;;
8669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670 (eval "$ac_compile") 2>conftest.er1
8672 grep -v '^ *+' conftest.er1 >conftest.err
8674 cat conftest.err >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); } && {
8677 test -z "$ac_c_werror_flag" ||
8678 test ! -s conftest.err
8679 } && test -s conftest.$ac_objext; then
8680 ac_header_compiler=yes
8682 echo "$as_me: failed program was:" >&5
8683 sed 's/^/| /' conftest.$ac_ext >&5
8685 ac_header_compiler=no
8688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8689 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8690 echo "${ECHO_T}$ac_header_compiler" >&6; }
8692 # Is the header present?
8693 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8695 cat >conftest.$ac_ext <<_ACEOF
8698 cat confdefs.h >>conftest.$ac_ext
8699 cat >>conftest.$ac_ext <<_ACEOF
8700 /* end confdefs.h. */
8701 #include <$ac_header>
8703 if { (ac_try="$ac_cpp conftest.$ac_ext"
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8711 grep -v '^ *+' conftest.er1 >conftest.err
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } >/dev/null && {
8716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8717 test ! -s conftest.err
8719 ac_header_preproc=yes
8721 echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8724 ac_header_preproc=no
8727 rm -f conftest.err conftest.$ac_ext
8728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8729 echo "${ECHO_T}$ac_header_preproc" >&6; }
8731 # So? What about this header?
8732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8734 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8735 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8737 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8738 ac_header_preproc=yes
8741 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8742 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8743 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8744 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8745 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8746 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8747 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8748 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8751 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8752 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8754 ## ------------------------------- ##
8755 ## Report this to bug-gzip@gnu.org ##
8756 ## ------------------------------- ##
8758 ) | sed "s/^/$as_me: WARNING: /" >&2
8761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8766 eval "$as_ac_Header=\$ac_header_preproc"
8768 ac_res=`eval echo '${'$as_ac_Header'}'`
8769 { echo "$as_me:$LINENO: result: $ac_res" >&5
8770 echo "${ECHO_T}$ac_res" >&6; }
8773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8774 cat >>confdefs.h <<_ACEOF
8775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8789 { echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
8790 echo $ECHO_N "checking absolute name of <sys/stat.h>... $ECHO_C" >&6; }
8791 if test "${gl_cv_absolute_sys_stat_h+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 if test $ac_cv_header_sys_stat_h = yes; then
8800 cat >conftest.$ac_ext <<_ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8806 #include <sys/stat.h>
8808 gl_cv_absolute_sys_stat_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8809 sed -n '\#/sys/stat.h#{s#.*"\(.*/sys/stat.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
8813 { echo "$as_me:$LINENO: result: $gl_cv_absolute_sys_stat_h" >&5
8814 echo "${ECHO_T}$gl_cv_absolute_sys_stat_h" >&6; }
8815 cat >>confdefs.h <<_ACEOF
8816 #define ABSOLUTE_SYS_STAT_H "$gl_cv_absolute_sys_stat_h"
8820 ABSOLUTE_SYS_STAT_H=\"$gl_cv_absolute_sys_stat_h\"
8822 SYS_STAT_H='sys/stat.h'
8825 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
8826 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
8827 if test -z "$MKDIR_P"; then
8828 if test "${ac_cv_path_mkdir+set}" = set; then
8829 echo $ECHO_N "(cached) $ECHO_C" >&6
8831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8835 test -z "$as_dir" && as_dir=.
8836 for ac_prog in mkdir gmkdir; do
8837 for ac_exec_ext in '' $ac_executable_extensions; do
8838 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
8839 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
8840 'mkdir (GNU coreutils) '* | \
8841 'mkdir (coreutils) '* | \
8842 'mkdir (fileutils) '4.1*)
8843 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
8853 if test "${ac_cv_path_mkdir+set}" = set; then
8854 MKDIR_P="$ac_cv_path_mkdir -p"
8856 # As a last resort, use the slow shell script. Don't cache a
8857 # value for MKDIR_P within a source directory, because that will
8858 # break other packages using the cache if that directory is
8859 # removed, or if the value is a relative name.
8860 test -d ./--version && rmdir ./--version
8861 MKDIR_P="$ac_install_sh -d"
8864 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
8865 echo "${ECHO_T}$MKDIR_P" >&6; }
8870 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
8871 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
8872 if test -z "$MKDIR_P"; then
8873 if test "${ac_cv_path_mkdir+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8880 test -z "$as_dir" && as_dir=.
8881 for ac_prog in mkdir gmkdir; do
8882 for ac_exec_ext in '' $ac_executable_extensions; do
8883 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
8884 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
8885 'mkdir (GNU coreutils) '* | \
8886 'mkdir (coreutils) '* | \
8887 'mkdir (fileutils) '4.1*)
8888 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
8898 if test "${ac_cv_path_mkdir+set}" = set; then
8899 MKDIR_P="$ac_cv_path_mkdir -p"
8901 # As a last resort, use the slow shell script. Don't cache a
8902 # value for MKDIR_P within a source directory, because that will
8903 # break other packages using the cache if that directory is
8904 # removed, or if the value is a relative name.
8905 test -d ./--version && rmdir ./--version
8906 MKDIR_P="$ac_install_sh -d"
8909 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
8910 echo "${ECHO_T}$MKDIR_P" >&6; }
8924 if test $ac_cv_header_unistd_h = yes; then
8926 { echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
8927 echo $ECHO_N "checking absolute name of <unistd.h>... $ECHO_C" >&6; }
8928 if test "${gl_cv_absolute_unistd_h+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 if test $ac_cv_header_unistd_h = yes; then
8937 cat >conftest.$ac_ext <<_ACEOF
8940 cat confdefs.h >>conftest.$ac_ext
8941 cat >>conftest.$ac_ext <<_ACEOF
8942 /* end confdefs.h. */
8945 gl_cv_absolute_unistd_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8946 sed -n '\#/unistd.h#{s#.*"\(.*/unistd.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
8950 { echo "$as_me:$LINENO: result: $gl_cv_absolute_unistd_h" >&5
8951 echo "${ECHO_T}$gl_cv_absolute_unistd_h" >&6; }
8952 cat >>confdefs.h <<_ACEOF
8953 #define ABSOLUTE_UNISTD_H "$gl_cv_absolute_unistd_h"
8957 ABSOLUTE_UNISTD_H=\"$gl_cv_absolute_unistd_h\"
8971 gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext"
8972 gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext"
8973 gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
8976 gl_LIBOBJS="$gl_LIBOBJS utimens.$ac_objext"
8991 gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
9002 gl_LIBOBJS="$gl_LIBOBJS yesno.$ac_objext"
9006 LIBGZIP_LIBDEPS="$gl_libdeps"
9008 LIBGZIP_LTLIBDEPS="$gl_ltlibdeps"
9016 # cc -E produces incorrect asm files on SVR4, so postprocess it.
9017 ASCPPPOST="sed '/^ *#/d; s,//.*,,; s/% /%/g; s/\\. /./g'"
9020 { echo "$as_me:$LINENO: checking for underline in external names" >&5
9021 echo $ECHO_N "checking for underline in external names... $ECHO_C" >&6; }
9022 if test "${gzip_cv_underline+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 gzip_cv_underline=yes
9026 cat >conftest.$ac_ext <<_ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9032 int foo() {return 0;}
9041 rm -f conftest.$ac_objext
9042 if { (ac_try="$ac_compile"
9044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9045 *) ac_try_echo=$ac_try;;
9047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9048 (eval "$ac_compile") 2>conftest.er1
9050 grep -v '^ *+' conftest.er1 >conftest.err
9052 cat conftest.err >&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } && {
9055 test -z "$ac_c_werror_flag" ||
9056 test ! -s conftest.err
9057 } && test -s conftest.$ac_objext; then
9058 $NM conftest.$OBJEXT | grep _foo >/dev/null 2>&1 ||
9059 gzip_cv_underline=no
9061 echo "$as_me: failed program was:" >&5
9062 sed 's/^/| /' conftest.$ac_ext >&5
9067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9069 { echo "$as_me:$LINENO: result: $gzip_cv_underline" >&5
9070 echo "${ECHO_T}$gzip_cv_underline" >&6; }
9072 if test $gzip_cv_underline = no; then
9073 ASCPPFLAGS='-DNO_UNDERLINE'
9078 # Try to assemble match.S.
9079 # "gcc -E match.s" ignores -E, so we must use _match.S.
9080 { echo "$as_me:$LINENO: checking for an assembler syntax supported by this package" >&5
9081 echo $ECHO_N "checking for an assembler syntax supported by this package... $ECHO_C" >&6; }
9082 if test "${gzip_cv_assembler+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 gzip_cv_assembler=no
9089 if cp $srcdir/lib/match.c _match.S &&
9090 eval "$CPP $CPPFLAGS $ASCPPFLAGS _match.S > _match.i" 2>/dev/null &&
9091 eval "$ASCPPPOST < _match.i > match_.s" 2>/dev/null; then
9092 if test ! -s match_.s || grep error < match_.s > /dev/null; then
9094 elif eval "$CC $CPPFLAGS $CFLAGS -c match_.s >/dev/null 2>&1" &&
9095 test -f match_.$OBJEXT; then
9096 rm -f match_.$OBJEXT
9097 gzip_cv_assembler=yes
9098 if echo 'void foo (void) {}' > conftest.c &&
9099 eval "$CC $CPPFLAGS $CFLAGS -S conftest.c >/dev/null 2>&1" &&
9100 grep '\.note\.GNU-stack' conftest.s >/dev/null 2>&1 &&
9101 eval "$CC $CPPFLAGS $CFLAGS -c -Wa,--noexecstack match_.s >/dev/null 2>&1" &&
9102 test -f match_.$OBJEXT; then
9103 gzip_cv_assembler='yes, with -Wa,--noexecstack'
9107 rm -f conftest* _match.i _match.S match_.s match_.$OBJEXT;;
9110 { echo "$as_me:$LINENO: result: $gzip_cv_assembler" >&5
9111 echo "${ECHO_T}$gzip_cv_assembler" >&6; }
9112 if test "$gzip_cv_assembler" != no; then
9114 cat >>confdefs.h <<\_ACEOF
9118 case " $LIBOBJS " in
9119 *" match.$ac_objext "* ) ;;
9120 *) LIBOBJS="$LIBOBJS match.$ac_objext"
9125 if test "$gzip_cv_assembler" = 'yes, with -Wa,--noexecstack'; then
9126 ASFLAGS_config='-Wa,--noexecstack'
9132 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
9133 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
9134 if test "${ac_cv_search_strerror+set}" = set; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
9137 ac_func_search_save_LIBS=$LIBS
9138 cat >conftest.$ac_ext <<_ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9145 /* Override any GCC internal prototype to avoid an error.
9146 Use char because int might match the return type of a GCC
9147 builtin and then its argument prototype would still apply. */
9160 for ac_lib in '' cposix; do
9161 if test -z "$ac_lib"; then
9162 ac_res="none required"
9165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9167 rm -f conftest.$ac_objext conftest$ac_exeext
9168 if { (ac_try="$ac_link"
9170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9174 (eval "$ac_link") 2>conftest.er1
9176 grep -v '^ *+' conftest.er1 >conftest.err
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } && {
9181 test -z "$ac_c_werror_flag" ||
9182 test ! -s conftest.err
9183 } && test -s conftest$ac_exeext &&
9184 $as_test_x conftest$ac_exeext; then
9185 ac_cv_search_strerror=$ac_res
9187 echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9195 if test "${ac_cv_search_strerror+set}" = set; then
9199 if test "${ac_cv_search_strerror+set}" = set; then
9202 ac_cv_search_strerror=no
9205 LIBS=$ac_func_search_save_LIBS
9207 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
9208 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
9209 ac_res=$ac_cv_search_strerror
9210 if test "$ac_res" != no; then
9211 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9215 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9216 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9217 if test "${ac_cv_c_const+set}" = set; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9220 cat >conftest.$ac_ext <<_ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h. */
9230 /* FIXME: Include the comments suggested by Paul. */
9232 /* Ultrix mips cc rejects this. */
9233 typedef int charset[2];
9235 /* SunOS 4.1.1 cc rejects this. */
9236 char const *const *pcpcc;
9238 /* NEC SVR4.0.2 mips cc rejects this. */
9239 struct point {int x, y;};
9240 static struct point const zero = {0,0};
9241 /* AIX XL C 1.02.0.0 rejects this.
9242 It does not let you subtract one const X* pointer from another in
9243 an arm of an if-expression whose if-part is not a constant
9245 const char *g = "string";
9246 pcpcc = &g + (g ? g-g : 0);
9247 /* HPUX 7.0 cc rejects these. */
9249 ppc = (char**) pcpcc;
9250 pcpcc = (char const *const *) ppc;
9251 { /* SCO 3.2v4 cc rejects this. */
9253 char const *s = 0 ? (char *) 0 : (char const *) 0;
9258 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9260 const int *foo = &x[0];
9263 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9264 typedef const int *iptr;
9268 { /* AIX XL C 1.02.0.0 rejects this saying
9269 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9270 struct s { int j; const int *ap[3]; };
9271 struct s *b; b->j = 5;
9273 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9277 return !cs[0] && !zero.x;
9284 rm -f conftest.$ac_objext
9285 if { (ac_try="$ac_compile"
9287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9288 *) ac_try_echo=$ac_try;;
9290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291 (eval "$ac_compile") 2>conftest.er1
9293 grep -v '^ *+' conftest.er1 >conftest.err
9295 cat conftest.err >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } && {
9298 test -z "$ac_c_werror_flag" ||
9299 test ! -s conftest.err
9300 } && test -s conftest.$ac_objext; then
9303 echo "$as_me: failed program was:" >&5
9304 sed 's/^/| /' conftest.$ac_ext >&5
9309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9311 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9312 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9313 if test $ac_cv_c_const = no; then
9315 cat >>confdefs.h <<\_ACEOF
9321 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9322 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9323 if test "${ac_cv_header_stdc+set}" = set; then
9324 echo $ECHO_N "(cached) $ECHO_C" >&6
9326 cat >conftest.$ac_ext <<_ACEOF
9329 cat confdefs.h >>conftest.$ac_ext
9330 cat >>conftest.$ac_ext <<_ACEOF
9331 /* end confdefs.h. */
9345 rm -f conftest.$ac_objext
9346 if { (ac_try="$ac_compile"
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352 (eval "$ac_compile") 2>conftest.er1
9354 grep -v '^ *+' conftest.er1 >conftest.err
9356 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } && {
9359 test -z "$ac_c_werror_flag" ||
9360 test ! -s conftest.err
9361 } && test -s conftest.$ac_objext; then
9362 ac_cv_header_stdc=yes
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9367 ac_cv_header_stdc=no
9370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9372 if test $ac_cv_header_stdc = yes; then
9373 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9374 cat >conftest.$ac_ext <<_ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h. */
9383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9384 $EGREP "memchr" >/dev/null 2>&1; then
9387 ac_cv_header_stdc=no
9393 if test $ac_cv_header_stdc = yes; then
9394 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9395 cat >conftest.$ac_ext <<_ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9405 $EGREP "free" >/dev/null 2>&1; then
9408 ac_cv_header_stdc=no
9414 if test $ac_cv_header_stdc = yes; then
9415 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9416 if test "$cross_compiling" = yes; then
9419 cat >conftest.$ac_ext <<_ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9427 #if ((' ' & 0x0FF) == 0x020)
9428 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9429 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9431 # define ISLOWER(c) \
9432 (('a' <= (c) && (c) <= 'i') \
9433 || ('j' <= (c) && (c) <= 'r') \
9434 || ('s' <= (c) && (c) <= 'z'))
9435 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9438 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9443 for (i = 0; i < 256; i++)
9444 if (XOR (islower (i), ISLOWER (i))
9445 || toupper (i) != TOUPPER (i))
9450 rm -f conftest$ac_exeext
9451 if { (ac_try="$ac_link"
9453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9454 *) ac_try_echo=$ac_try;;
9456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9457 (eval "$ac_link") 2>&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9461 { (case "(($ac_try" in
9462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463 *) ac_try_echo=$ac_try;;
9465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9466 (eval "$ac_try") 2>&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); }; }; then
9472 echo "$as_me: program exited with status $ac_status" >&5
9473 echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.$ac_ext >&5
9477 ac_cv_header_stdc=no
9479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9485 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9486 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9487 if test $ac_cv_header_stdc = yes; then
9489 cat >>confdefs.h <<\_ACEOF
9490 #define STDC_HEADERS 1
9543 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9544 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9545 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9546 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 cat >conftest.$ac_ext <<_ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9556 #include <sys/types.h>
9568 rm -f conftest.$ac_objext
9569 if { (ac_try="$ac_compile"
9571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9572 *) ac_try_echo=$ac_try;;
9574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9575 (eval "$ac_compile") 2>conftest.er1
9577 grep -v '^ *+' conftest.er1 >conftest.err
9579 cat conftest.err >&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } && {
9582 test -z "$ac_c_werror_flag" ||
9583 test ! -s conftest.err
9584 } && test -s conftest.$ac_objext; then
9585 eval "$as_ac_Header=yes"
9587 echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.$ac_ext >&5
9590 eval "$as_ac_Header=no"
9593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9595 ac_res=`eval echo '${'$as_ac_Header'}'`
9596 { echo "$as_me:$LINENO: result: $ac_res" >&5
9597 echo "${ECHO_T}$ac_res" >&6; }
9598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9599 cat >>confdefs.h <<_ACEOF
9600 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9603 ac_header_dirent=$ac_hdr; break
9607 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9608 if test $ac_header_dirent = dirent.h; then
9609 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9610 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9611 if test "${ac_cv_search_opendir+set}" = set; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 ac_func_search_save_LIBS=$LIBS
9615 cat >conftest.$ac_ext <<_ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9622 /* Override any GCC internal prototype to avoid an error.
9623 Use char because int might match the return type of a GCC
9624 builtin and then its argument prototype would still apply. */
9637 for ac_lib in '' dir; do
9638 if test -z "$ac_lib"; then
9639 ac_res="none required"
9642 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9644 rm -f conftest.$ac_objext conftest$ac_exeext
9645 if { (ac_try="$ac_link"
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_link") 2>conftest.er1
9653 grep -v '^ *+' conftest.er1 >conftest.err
9655 cat conftest.err >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } && {
9658 test -z "$ac_c_werror_flag" ||
9659 test ! -s conftest.err
9660 } && test -s conftest$ac_exeext &&
9661 $as_test_x conftest$ac_exeext; then
9662 ac_cv_search_opendir=$ac_res
9664 echo "$as_me: failed program was:" >&5
9665 sed 's/^/| /' conftest.$ac_ext >&5
9670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9672 if test "${ac_cv_search_opendir+set}" = set; then
9676 if test "${ac_cv_search_opendir+set}" = set; then
9679 ac_cv_search_opendir=no
9682 LIBS=$ac_func_search_save_LIBS
9684 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9685 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9686 ac_res=$ac_cv_search_opendir
9687 if test "$ac_res" != no; then
9688 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9693 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9694 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9695 if test "${ac_cv_search_opendir+set}" = set; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9698 ac_func_search_save_LIBS=$LIBS
9699 cat >conftest.$ac_ext <<_ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9706 /* Override any GCC internal prototype to avoid an error.
9707 Use char because int might match the return type of a GCC
9708 builtin and then its argument prototype would still apply. */
9721 for ac_lib in '' x; do
9722 if test -z "$ac_lib"; then
9723 ac_res="none required"
9726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (ac_try="$ac_link"
9731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735 (eval "$ac_link") 2>conftest.er1
9737 grep -v '^ *+' conftest.er1 >conftest.err
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } && {
9742 test -z "$ac_c_werror_flag" ||
9743 test ! -s conftest.err
9744 } && test -s conftest$ac_exeext &&
9745 $as_test_x conftest$ac_exeext; then
9746 ac_cv_search_opendir=$ac_res
9748 echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9756 if test "${ac_cv_search_opendir+set}" = set; then
9760 if test "${ac_cv_search_opendir+set}" = set; then
9763 ac_cv_search_opendir=no
9766 LIBS=$ac_func_search_save_LIBS
9768 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9769 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9770 ac_res=$ac_cv_search_opendir
9771 if test "$ac_res" != no; then
9772 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9778 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9779 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
9780 if test "${ac_cv_type_signal+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 cat >conftest.$ac_ext <<_ACEOF
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h. */
9789 #include <sys/types.h>
9795 return *(signal (0, 0)) (0) == 1;
9800 rm -f conftest.$ac_objext
9801 if { (ac_try="$ac_compile"
9803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9804 *) ac_try_echo=$ac_try;;
9806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9807 (eval "$ac_compile") 2>conftest.er1
9809 grep -v '^ *+' conftest.er1 >conftest.err
9811 cat conftest.err >&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); } && {
9814 test -z "$ac_c_werror_flag" ||
9815 test ! -s conftest.err
9816 } && test -s conftest.$ac_objext; then
9817 ac_cv_type_signal=int
9819 echo "$as_me: failed program was:" >&5
9820 sed 's/^/| /' conftest.$ac_ext >&5
9822 ac_cv_type_signal=void
9825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9827 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9828 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
9830 cat >>confdefs.h <<_ACEOF
9831 #define RETSIGTYPE $ac_cv_type_signal
9835 { echo "$as_me:$LINENO: checking for size_t" >&5
9836 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9837 if test "${ac_cv_type_size_t+set}" = set; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9840 cat >conftest.$ac_ext <<_ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9846 $ac_includes_default
9847 typedef size_t ac__type_new_;
9851 if ((ac__type_new_ *) 0)
9853 if (sizeof (ac__type_new_))
9859 rm -f conftest.$ac_objext
9860 if { (ac_try="$ac_compile"
9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866 (eval "$ac_compile") 2>conftest.er1
9868 grep -v '^ *+' conftest.er1 >conftest.err
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } && {
9873 test -z "$ac_c_werror_flag" ||
9874 test ! -s conftest.err
9875 } && test -s conftest.$ac_objext; then
9876 ac_cv_type_size_t=yes
9878 echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9881 ac_cv_type_size_t=no
9884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9886 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9887 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9888 if test $ac_cv_type_size_t = yes; then
9892 cat >>confdefs.h <<_ACEOF
9893 #define size_t unsigned int
9898 { echo "$as_me:$LINENO: checking for off_t" >&5
9899 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
9900 if test "${ac_cv_type_off_t+set}" = set; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 cat >conftest.$ac_ext <<_ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9909 $ac_includes_default
9910 typedef off_t ac__type_new_;
9914 if ((ac__type_new_ *) 0)
9916 if (sizeof (ac__type_new_))
9922 rm -f conftest.$ac_objext
9923 if { (ac_try="$ac_compile"
9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926 *) ac_try_echo=$ac_try;;
9928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9929 (eval "$ac_compile") 2>conftest.er1
9931 grep -v '^ *+' conftest.er1 >conftest.err
9933 cat conftest.err >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } && {
9936 test -z "$ac_c_werror_flag" ||
9937 test ! -s conftest.err
9938 } && test -s conftest.$ac_objext; then
9939 ac_cv_type_off_t=yes
9941 echo "$as_me: failed program was:" >&5
9942 sed 's/^/| /' conftest.$ac_ext >&5
9947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9949 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9950 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
9951 if test $ac_cv_type_off_t = yes; then
9955 cat >>confdefs.h <<_ACEOF
9956 #define off_t long int
9962 if test "x$prefix" = xNONE; then
9963 echo $ECHO_N "checking for prefix by $ECHO_C" >&6
9964 # Extract the first word of "gzip", so it can be a program name with args.
9965 set dummy gzip; ac_word=$2
9966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9968 if test "${ac_cv_path_ac_prefix_program+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 case $ac_prefix_program in
9973 ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
9976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9980 test -z "$as_dir" && as_dir=.
9981 for ac_exec_ext in '' $ac_executable_extensions; do
9982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9983 ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
9984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9994 ac_prefix_program=$ac_cv_path_ac_prefix_program
9995 if test -n "$ac_prefix_program"; then
9996 { echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
9997 echo "${ECHO_T}$ac_prefix_program" >&6; }
9999 { echo "$as_me:$LINENO: result: no" >&5
10000 echo "${ECHO_T}no" >&6; }
10004 if test -n "$ac_prefix_program"; then
10005 prefix=`$as_dirname -- "$ac_prefix_program" ||
10006 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10007 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
10008 X"$ac_prefix_program" : 'X\(//\)$' \| \
10009 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
10010 echo X"$ac_prefix_program" |
10011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10015 /^X\(\/\/\)[^/].*/{
10028 prefix=`$as_dirname -- "$prefix" ||
10029 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10030 X"$prefix" : 'X\(//\)[^/]' \| \
10031 X"$prefix" : 'X\(//\)$' \| \
10032 X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
10034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10038 /^X\(\/\/\)[^/].*/{
10055 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile"
10057 cat >confcache <<\_ACEOF
10058 # This file is a shell script that caches the results of configure
10059 # tests run on this system so they can be shared between configure
10060 # scripts and configure runs, see configure's option --config-cache.
10061 # It is not useful on other systems. If it contains results you don't
10062 # want to keep, you may remove or edit it.
10064 # config.status only pays attention to the cache file if you give it
10065 # the --recheck option to rerun configure.
10067 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10068 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10069 # following values.
10073 # The following way of writing the cache mishandles newlines in values,
10074 # but we know of no workaround that is simple, portable, and efficient.
10075 # So, we kill variables containing newlines.
10076 # Ultrix sh set writes to stderr and can't be redirected directly,
10077 # and sets the high bit in the cache file unless we assign to the vars.
10079 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10080 eval ac_val=\$$ac_var
10084 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10085 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10088 _ | IFS | as_nl) ;; #(
10089 *) $as_unset $ac_var ;;
10095 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10096 *${as_nl}ac_space=\ *)
10097 # `set' does not quote correctly, so add quotes (double-quote
10098 # substitution turns \\\\ into \\, and sed turns \\ into \).
10101 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10104 # `set' quotes correctly as required by POSIX, so do not add quotes.
10105 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10114 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10116 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10118 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10119 if test -w "$cache_file"; then
10120 test "x$cache_file" != "x/dev/null" &&
10121 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10122 echo "$as_me: updating cache $cache_file" >&6;}
10123 cat confcache >$cache_file
10125 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10126 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10131 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10132 # Let make expand exec_prefix.
10133 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10135 DEFS=-DHAVE_CONFIG_H
10139 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10140 # 1. Remove the extension, and $U if already installed.
10141 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10142 ac_i=`echo "$ac_i" | sed "$ac_script"`
10143 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10144 # will be set to the directory where LIBOBJS objects are built.
10145 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10146 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10148 LIBOBJS=$ac_libobjs
10150 LTLIBOBJS=$ac_ltlibobjs
10153 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10154 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10155 Usually this means the macro was only invoked conditionally." >&5
10156 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10157 Usually this means the macro was only invoked conditionally." >&2;}
10158 { (exit 1); exit 1; }; }
10160 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10161 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10162 Usually this means the macro was only invoked conditionally." >&5
10163 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10164 Usually this means the macro was only invoked conditionally." >&2;}
10165 { (exit 1); exit 1; }; }
10167 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
10168 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
10169 Usually this means the macro was only invoked conditionally." >&5
10170 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
10171 Usually this means the macro was only invoked conditionally." >&2;}
10172 { (exit 1); exit 1; }; }
10177 if test -n "$gl_LIBOBJS"; then
10178 # Remove the extension.
10179 sed_drop_objext='s/\.o$//;s/\.obj$//'
10180 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
10181 gl_libobjs="$gl_libobjs $i.$ac_objext"
10182 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
10185 gl_LIBOBJS=$gl_libobjs
10187 gl_LTLIBOBJS=$gl_ltlibobjs
10191 : ${CONFIG_STATUS=./config.status}
10192 ac_clean_files_save=$ac_clean_files
10193 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10194 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10195 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10196 cat >$CONFIG_STATUS <<_ACEOF
10198 # Generated by $as_me.
10199 # Run this file to recreate the current configuration.
10200 # Compiler output produced by configure, useful for debugging
10201 # configure, is in config.log if it exists.
10204 ac_cs_recheck=false
10206 SHELL=\${CONFIG_SHELL-$SHELL}
10209 cat >>$CONFIG_STATUS <<\_ACEOF
10210 ## --------------------- ##
10211 ## M4sh Initialization. ##
10212 ## --------------------- ##
10214 # Be more Bourne compatible
10215 DUALCASE=1; export DUALCASE # for MKS sh
10216 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10219 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10220 # is contrary to our usage. Disable this feature.
10221 alias -g '${1+"$@"}'='"$@"'
10222 setopt NO_GLOB_SUBST
10224 case `(set -o) 2>/dev/null` in
10225 *posix*) set -o posix ;;
10234 # Avoid depending upon Character Ranges.
10235 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10236 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10237 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10238 as_cr_digits='0123456789'
10239 as_cr_alnum=$as_cr_Letters$as_cr_digits
10241 # The user is always right.
10242 if test "${PATH_SEPARATOR+set}" != set; then
10243 echo "#! /bin/sh" >conf$$.sh
10244 echo "exit 0" >>conf$$.sh
10246 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10254 # Support unset when possible.
10255 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10263 # We need space, tab and new line, in precisely that order. Quoting is
10264 # there to prevent editors from complaining about space-tab.
10265 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10266 # splitting by setting IFS to empty value.)
10271 # Find who we are. Look in the path if we contain no directory separator.
10273 *[\\/]* ) as_myself=$0 ;;
10274 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10275 for as_dir in $PATH
10278 test -z "$as_dir" && as_dir=.
10279 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10285 # We did not find ourselves, most probably we were run as `sh COMMAND'
10286 # in which case we are not to be found in the path.
10287 if test "x$as_myself" = x; then
10290 if test ! -f "$as_myself"; then
10291 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10292 { (exit 1); exit 1; }
10295 # Work around bugs in pre-3.0 UWIN ksh.
10296 for as_var in ENV MAIL MAILPATH
10297 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10305 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10306 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10307 LC_TELEPHONE LC_TIME
10309 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10310 eval $as_var=C; export $as_var
10312 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10316 # Required to use basename.
10317 if expr a : '\(a\)' >/dev/null 2>&1 &&
10318 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10324 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10325 as_basename=basename
10331 # Name of the executable.
10332 as_me=`$as_basename -- "$0" ||
10333 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10334 X"$0" : 'X\(//\)$' \| \
10335 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10337 sed '/^.*\/\([^/][^/]*\)\/*$/{
10356 as_lineno_1=$LINENO
10357 as_lineno_2=$LINENO
10358 test "x$as_lineno_1" != "x$as_lineno_2" &&
10359 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10361 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10362 # uniformly replaced by the line number. The first 'sed' inserts a
10363 # line-number line after each line using $LINENO; the second 'sed'
10364 # does the real work. The second script uses 'N' to pair each
10365 # line-number line with the line containing $LINENO, and appends
10366 # trailing '-' during substitution so that $LINENO is not a special
10367 # case at line end.
10368 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10369 # scripts with optimization help from Paolo Bonzini. Blame Lee
10370 # E. McMahon (1931-1989) for sed's syntax. :-)
10382 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10385 ' >$as_me.lineno &&
10386 chmod +x "$as_me.lineno" ||
10387 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10388 { (exit 1); exit 1; }; }
10390 # Don't try to exec as it changes $[0], causing all sort of problems
10391 # (the dirname of $[0] is not the place where we might find the
10392 # original and so on. Autoconf is especially sensitive to this).
10393 . "./$as_me.lineno"
10394 # Exit status is that of the last command.
10399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10405 ECHO_C= ECHO_N= ECHO_T=
10406 case `echo -n x` in
10408 case `echo 'x\c'` in
10409 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10416 if expr a : '\(a\)' >/dev/null 2>&1 &&
10417 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10423 rm -f conf$$ conf$$.exe conf$$.file
10424 if test -d conf$$.dir; then
10425 rm -f conf$$.dir/conf$$.file
10431 if ln -s conf$$.file conf$$ 2>/dev/null; then
10433 # ... but there are two gotchas:
10434 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10435 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10436 # In both cases, we have to default to `cp -p'.
10437 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10439 elif ln conf$$.file conf$$ 2>/dev/null; then
10444 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10445 rmdir conf$$.dir 2>/dev/null
10447 if mkdir -p . 2>/dev/null; then
10450 test -d ./-p && rmdir ./-p
10454 if test -x / >/dev/null 2>&1; then
10455 as_test_x='test -x'
10457 if ls -dL / >/dev/null 2>&1; then
10464 if test -d "$1"; then
10470 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10471 ???[sx]*):;;*)false;;esac;fi
10475 as_executable_p=$as_test_x
10477 # Sed expression to map a string onto a valid CPP name.
10478 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10480 # Sed expression to map a string onto a valid variable name.
10481 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10486 # Save the log message, to keep $[0] and so on meaningful, and to
10487 # report actual input values of CONFIG_FILES etc. instead of their
10488 # values after options handling.
10490 This file was extended by gzip $as_me 1.3.12, which was
10491 generated by GNU Autoconf 2.61. Invocation command line was
10493 CONFIG_FILES = $CONFIG_FILES
10494 CONFIG_HEADERS = $CONFIG_HEADERS
10495 CONFIG_LINKS = $CONFIG_LINKS
10496 CONFIG_COMMANDS = $CONFIG_COMMANDS
10499 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10504 cat >>$CONFIG_STATUS <<_ACEOF
10505 # Files that config.status was made for.
10506 config_files="$ac_config_files"
10507 config_headers="$ac_config_headers"
10508 config_commands="$ac_config_commands"
10512 cat >>$CONFIG_STATUS <<\_ACEOF
10514 \`$as_me' instantiates files from templates according to the
10515 current configuration.
10517 Usage: $0 [OPTIONS] [FILE]...
10519 -h, --help print this help, then exit
10520 -V, --version print version number and configuration settings, then exit
10521 -q, --quiet do not print progress messages
10522 -d, --debug don't remove temporary files
10523 --recheck update $as_me by reconfiguring in the same conditions
10524 --file=FILE[:TEMPLATE]
10525 instantiate the configuration file FILE
10526 --header=FILE[:TEMPLATE]
10527 instantiate the configuration header FILE
10529 Configuration files:
10532 Configuration headers:
10535 Configuration commands:
10538 Report bugs to <bug-autoconf@gnu.org>."
10541 cat >>$CONFIG_STATUS <<_ACEOF
10543 gzip config.status 1.3.12
10544 configured by $0, generated by GNU Autoconf 2.61,
10545 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10547 Copyright (C) 2006 Free Software Foundation, Inc.
10548 This config.status script is free software; the Free Software Foundation
10549 gives unlimited permission to copy, distribute and modify it."
10557 cat >>$CONFIG_STATUS <<\_ACEOF
10558 # If no file are specified by the user, then we need to provide default
10559 # value. By we need to know if files were specified by the user.
10565 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10566 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10577 # Handling of the options.
10578 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10580 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10581 echo "$ac_cs_version"; exit ;;
10582 --debug | --debu | --deb | --de | --d | -d )
10584 --file | --fil | --fi | --f )
10586 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10587 ac_need_defaults=false;;
10588 --header | --heade | --head | --hea )
10590 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10591 ac_need_defaults=false;;
10593 # Conflict between --help and --header
10594 { echo "$as_me: error: ambiguous option: $1
10595 Try \`$0 --help' for more information." >&2
10596 { (exit 1); exit 1; }; };;
10597 --help | --hel | -h )
10598 echo "$ac_cs_usage"; exit ;;
10599 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10600 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10603 # This is an error.
10604 -*) { echo "$as_me: error: unrecognized option: $1
10605 Try \`$0 --help' for more information." >&2
10606 { (exit 1); exit 1; }; } ;;
10608 *) ac_config_targets="$ac_config_targets $1"
10609 ac_need_defaults=false ;;
10615 ac_configure_extra_args=
10617 if $ac_cs_silent; then
10619 ac_configure_extra_args="$ac_configure_extra_args --silent"
10623 cat >>$CONFIG_STATUS <<_ACEOF
10624 if \$ac_cs_recheck; then
10625 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10626 CONFIG_SHELL=$SHELL
10627 export CONFIG_SHELL
10628 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10632 cat >>$CONFIG_STATUS <<\_ACEOF
10636 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10637 ## Running $as_me. ##
10643 cat >>$CONFIG_STATUS <<_ACEOF
10647 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10651 cat >>$CONFIG_STATUS <<\_ACEOF
10653 # Handling of arguments.
10654 for ac_config_target in $ac_config_targets
10656 case $ac_config_target in
10657 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h:lib/config.hin" ;;
10658 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10659 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10660 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10661 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
10663 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10664 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10665 { (exit 1); exit 1; }; };;
10670 # If the user did not use the arguments to specify the items to instantiate,
10671 # then the envvar interface is used. Set only those that are not.
10672 # We use the long form for the default assignment because of an extremely
10673 # bizarre bug on SunOS 4.1.3.
10674 if $ac_need_defaults; then
10675 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10676 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10677 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10680 # Have a temporary directory for convenience. Make it in the build tree
10681 # simply because there is no reason against having it here, and in addition,
10682 # creating and moving files from /tmp can sometimes cause problems.
10683 # Hook for its removal unless debugging.
10684 # Note that there is a small window in which the directory will not be cleaned:
10685 # after its creation but before its name has been assigned to `$tmp'.
10689 trap 'exit_status=$?
10690 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10692 trap '{ (exit 1); exit 1; }' 1 2 13 15
10694 # Create a (secure) tmp directory for tmp files.
10697 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10698 test -n "$tmp" && test -d "$tmp"
10701 tmp=./conf$$-$RANDOM
10702 (umask 077 && mkdir "$tmp")
10705 echo "$me: cannot create a temporary directory in ." >&2
10706 { (exit 1); exit 1; }
10710 # Set up the sed scripts for CONFIG_FILES section.
10713 # No need to generate the scripts if there are no CONFIG_FILES.
10714 # This happens for instance when ./config.status config.h
10715 if test -n "$CONFIG_FILES"; then
10722 for ac_last_try in false false false false false :; do
10723 cat >conf$$subs.sed <<_ACEOF
10724 SHELL!$SHELL$ac_delim
10725 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10726 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10727 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10728 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10729 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10730 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10731 exec_prefix!$exec_prefix$ac_delim
10732 prefix!$prefix$ac_delim
10733 program_transform_name!$program_transform_name$ac_delim
10734 bindir!$bindir$ac_delim
10735 sbindir!$sbindir$ac_delim
10736 libexecdir!$libexecdir$ac_delim
10737 datarootdir!$datarootdir$ac_delim
10738 datadir!$datadir$ac_delim
10739 sysconfdir!$sysconfdir$ac_delim
10740 sharedstatedir!$sharedstatedir$ac_delim
10741 localstatedir!$localstatedir$ac_delim
10742 includedir!$includedir$ac_delim
10743 oldincludedir!$oldincludedir$ac_delim
10744 docdir!$docdir$ac_delim
10745 infodir!$infodir$ac_delim
10746 htmldir!$htmldir$ac_delim
10747 dvidir!$dvidir$ac_delim
10748 pdfdir!$pdfdir$ac_delim
10749 psdir!$psdir$ac_delim
10750 libdir!$libdir$ac_delim
10751 localedir!$localedir$ac_delim
10752 mandir!$mandir$ac_delim
10753 DEFS!$DEFS$ac_delim
10754 ECHO_C!$ECHO_C$ac_delim
10755 ECHO_N!$ECHO_N$ac_delim
10756 ECHO_T!$ECHO_T$ac_delim
10757 LIBS!$LIBS$ac_delim
10758 build_alias!$build_alias$ac_delim
10759 host_alias!$host_alias$ac_delim
10760 target_alias!$target_alias$ac_delim
10761 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10762 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10763 INSTALL_DATA!$INSTALL_DATA$ac_delim
10764 am__isrc!$am__isrc$ac_delim
10765 CYGPATH_W!$CYGPATH_W$ac_delim
10766 PACKAGE!$PACKAGE$ac_delim
10767 VERSION!$VERSION$ac_delim
10768 ACLOCAL!$ACLOCAL$ac_delim
10769 AUTOCONF!$AUTOCONF$ac_delim
10770 AUTOMAKE!$AUTOMAKE$ac_delim
10771 AUTOHEADER!$AUTOHEADER$ac_delim
10772 MAKEINFO!$MAKEINFO$ac_delim
10773 install_sh!$install_sh$ac_delim
10774 STRIP!$STRIP$ac_delim
10775 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
10776 mkdir_p!$mkdir_p$ac_delim
10778 SET_MAKE!$SET_MAKE$ac_delim
10779 am__leading_dot!$am__leading_dot$ac_delim
10780 AMTAR!$AMTAR$ac_delim
10781 am__tar!$am__tar$ac_delim
10782 am__untar!$am__untar$ac_delim
10784 CFLAGS!$CFLAGS$ac_delim
10785 LDFLAGS!$LDFLAGS$ac_delim
10786 CPPFLAGS!$CPPFLAGS$ac_delim
10787 ac_ct_CC!$ac_ct_CC$ac_delim
10788 EXEEXT!$EXEEXT$ac_delim
10789 OBJEXT!$OBJEXT$ac_delim
10790 DEPDIR!$DEPDIR$ac_delim
10791 am__include!$am__include$ac_delim
10792 am__quote!$am__quote$ac_delim
10793 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
10794 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
10795 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
10796 CCDEPMODE!$CCDEPMODE$ac_delim
10797 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
10798 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
10801 LN_S!$LN_S$ac_delim
10802 RANLIB!$RANLIB$ac_delim
10803 GREP!$GREP$ac_delim
10804 EGREP!$EGREP$ac_delim
10805 GL_COND_LIBTOOL_TRUE!$GL_COND_LIBTOOL_TRUE$ac_delim
10806 GL_COND_LIBTOOL_FALSE!$GL_COND_LIBTOOL_FALSE$ac_delim
10807 ABSOLUTE_FCNTL_H!$ABSOLUTE_FCNTL_H$ac_delim
10808 FCNTL_H!$FCNTL_H$ac_delim
10809 GETOPT_H!$GETOPT_H$ac_delim
10810 LIBINTL!$LIBINTL$ac_delim
10811 LTLIBINTL!$LTLIBINTL$ac_delim
10812 STDBOOL_H!$STDBOOL_H$ac_delim
10813 HAVE__BOOL!$HAVE__BOOL$ac_delim
10814 GNULIB_GETSUBOPT!$GNULIB_GETSUBOPT$ac_delim
10815 GNULIB_MKDTEMP!$GNULIB_MKDTEMP$ac_delim
10816 GNULIB_MKSTEMP!$GNULIB_MKSTEMP$ac_delim
10817 HAVE_GETSUBOPT!$HAVE_GETSUBOPT$ac_delim
10818 HAVE_MKDTEMP!$HAVE_MKDTEMP$ac_delim
10819 REPLACE_MKSTEMP!$REPLACE_MKSTEMP$ac_delim
10820 ABSOLUTE_STDLIB_H!$ABSOLUTE_STDLIB_H$ac_delim
10823 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10825 elif $ac_last_try; then
10826 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10827 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10828 { (exit 1); exit 1; }; }
10830 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10834 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10835 if test -n "$ac_eof"; then
10836 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10837 ac_eof=`expr $ac_eof + 1`
10840 cat >>$CONFIG_STATUS <<_ACEOF
10841 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10842 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10845 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10846 s/^/s,@/; s/!/@,|#_!!_#|/
10849 s/'"$ac_delim"'$/,g/; t
10851 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10852 ' >>$CONFIG_STATUS <conf$$subs.sed
10853 rm -f conf$$subs.sed
10854 cat >>$CONFIG_STATUS <<_ACEOF
10860 for ac_last_try in false false false false false :; do
10861 cat >conf$$subs.sed <<_ACEOF
10862 ABSOLUTE_SYS_STAT_H!$ABSOLUTE_SYS_STAT_H$ac_delim
10863 SYS_STAT_H!$SYS_STAT_H$ac_delim
10864 ABSOLUTE_SYS_TIME_H!$ABSOLUTE_SYS_TIME_H$ac_delim
10865 HAVE_SYS_TIME_H!$HAVE_SYS_TIME_H$ac_delim
10866 HAVE_STRUCT_TIMEVAL!$HAVE_STRUCT_TIMEVAL$ac_delim
10867 REPLACE_GETTIMEOFDAY!$REPLACE_GETTIMEOFDAY$ac_delim
10868 SYS_TIME_H!$SYS_TIME_H$ac_delim
10869 REPLACE_LOCALTIME_R!$REPLACE_LOCALTIME_R$ac_delim
10870 REPLACE_NANOSLEEP!$REPLACE_NANOSLEEP$ac_delim
10871 REPLACE_STRPTIME!$REPLACE_STRPTIME$ac_delim
10872 REPLACE_TIMEGM!$REPLACE_TIMEGM$ac_delim
10873 ABSOLUTE_TIME_H!$ABSOLUTE_TIME_H$ac_delim
10874 TIME_H_DEFINES_STRUCT_TIMESPEC!$TIME_H_DEFINES_STRUCT_TIMESPEC$ac_delim
10875 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC!$SYS_TIME_H_DEFINES_STRUCT_TIMESPEC$ac_delim
10876 GNULIB_CHOWN!$GNULIB_CHOWN$ac_delim
10877 GNULIB_DUP2!$GNULIB_DUP2$ac_delim
10878 GNULIB_FCHDIR!$GNULIB_FCHDIR$ac_delim
10879 GNULIB_FTRUNCATE!$GNULIB_FTRUNCATE$ac_delim
10880 GNULIB_GETCWD!$GNULIB_GETCWD$ac_delim
10881 GNULIB_GETLOGIN_R!$GNULIB_GETLOGIN_R$ac_delim
10882 GNULIB_READLINK!$GNULIB_READLINK$ac_delim
10883 HAVE_DUP2!$HAVE_DUP2$ac_delim
10884 HAVE_FTRUNCATE!$HAVE_FTRUNCATE$ac_delim
10885 HAVE_READLINK!$HAVE_READLINK$ac_delim
10886 HAVE_DECL_GETLOGIN_R!$HAVE_DECL_GETLOGIN_R$ac_delim
10887 REPLACE_CHOWN!$REPLACE_CHOWN$ac_delim
10888 REPLACE_FCHDIR!$REPLACE_FCHDIR$ac_delim
10889 REPLACE_GETCWD!$REPLACE_GETCWD$ac_delim
10890 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
10891 ABSOLUTE_UNISTD_H!$ABSOLUTE_UNISTD_H$ac_delim
10892 LIBGZIP_LIBDEPS!$LIBGZIP_LIBDEPS$ac_delim
10893 LIBGZIP_LTLIBDEPS!$LIBGZIP_LTLIBDEPS$ac_delim
10894 ASCPPPOST!$ASCPPPOST$ac_delim
10895 ASCPPFLAGS!$ASCPPFLAGS$ac_delim
10896 LIBOBJS!$LIBOBJS$ac_delim
10897 ASFLAGS_config!$ASFLAGS_config$ac_delim
10898 ac_prefix_program!$ac_prefix_program$ac_delim
10899 LTLIBOBJS!$LTLIBOBJS$ac_delim
10900 gl_LIBOBJS!$gl_LIBOBJS$ac_delim
10901 gl_LTLIBOBJS!$gl_LTLIBOBJS$ac_delim
10904 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then
10906 elif $ac_last_try; then
10907 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10908 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10909 { (exit 1); exit 1; }; }
10911 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10915 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10916 if test -n "$ac_eof"; then
10917 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10918 ac_eof=`expr $ac_eof + 1`
10921 cat >>$CONFIG_STATUS <<_ACEOF
10922 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10923 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10926 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10927 s/^/s,@/; s/!/@,|#_!!_#|/
10930 s/'"$ac_delim"'$/,g/; t
10932 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10933 ' >>$CONFIG_STATUS <conf$$subs.sed
10934 rm -f conf$$subs.sed
10935 cat >>$CONFIG_STATUS <<_ACEOF
10942 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10943 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10944 # trailing colons and then remove the whole line if VPATH becomes empty
10945 # (actually we leave an empty line to preserve line numbers).
10946 if test "x$srcdir" = x.; then
10947 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10948 s/:*\$(srcdir):*/:/
10949 s/:*\${srcdir}:*/:/
10951 s/^\([^=]*=[ ]*\):*/\1/
10957 cat >>$CONFIG_STATUS <<\_ACEOF
10958 fi # test -n "$CONFIG_FILES"
10961 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
10964 :[FHLC]) ac_mode=$ac_tag; continue;;
10966 case $ac_mode$ac_tag in
10968 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10969 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10970 { (exit 1); exit 1; }; };;
10971 :[FH]-) ac_tag=-:-;;
10972 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10989 -) ac_f="$tmp/stdin";;
10990 *) # Look for the file first in the build tree, then in the source tree
10991 # (if the path is not absolute). The absolute path cannot be DOS-style,
10992 # because $ac_f cannot contain `:'.
10996 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10998 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10999 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11000 { (exit 1); exit 1; }; };;
11002 ac_file_inputs="$ac_file_inputs $ac_f"
11005 # Let's still pretend it is `configure' which instantiates (i.e., don't
11006 # use $as_me), people would be surprised to read:
11007 # /* config.h. Generated by config.status. */
11008 configure_input="Generated from "`IFS=:
11009 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11010 if test x"$ac_file" != x-; then
11011 configure_input="$ac_file. $configure_input"
11012 { echo "$as_me:$LINENO: creating $ac_file" >&5
11013 echo "$as_me: creating $ac_file" >&6;}
11017 *:-:* | *:-) cat >"$tmp/stdin";;
11022 ac_dir=`$as_dirname -- "$ac_file" ||
11023 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11024 X"$ac_file" : 'X\(//\)[^/]' \| \
11025 X"$ac_file" : 'X\(//\)$' \| \
11026 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11032 /^X\(\/\/\)[^/].*/{
11047 -*) as_dir=./$as_dir;;
11049 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11053 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11054 *) as_qdir=$as_dir;;
11056 as_dirs="'$as_qdir' $as_dirs"
11057 as_dir=`$as_dirname -- "$as_dir" ||
11058 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11059 X"$as_dir" : 'X\(//\)[^/]' \| \
11060 X"$as_dir" : 'X\(//\)$' \| \
11061 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11067 /^X\(\/\/\)[^/].*/{
11080 test -d "$as_dir" && break
11082 test -z "$as_dirs" || eval "mkdir $as_dirs"
11083 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11084 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11085 { (exit 1); exit 1; }; }; }
11089 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11091 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11092 # A ".." for each directory in $ac_dir_suffix.
11093 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11094 case $ac_top_builddir_sub in
11095 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11096 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11099 ac_abs_top_builddir=$ac_pwd
11100 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11101 # for backward compatibility:
11102 ac_top_builddir=$ac_top_build_prefix
11105 .) # We are building in place.
11107 ac_top_srcdir=$ac_top_builddir_sub
11108 ac_abs_top_srcdir=$ac_pwd ;;
11109 [\\/]* | ?:[\\/]* ) # Absolute name.
11110 ac_srcdir=$srcdir$ac_dir_suffix;
11111 ac_top_srcdir=$srcdir
11112 ac_abs_top_srcdir=$srcdir ;;
11113 *) # Relative name.
11114 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11115 ac_top_srcdir=$ac_top_build_prefix$srcdir
11116 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11118 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11128 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11129 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11131 ac_MKDIR_P=$MKDIR_P
11133 [\\/$]* | ?:[\\/]* ) ;;
11134 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11138 cat >>$CONFIG_STATUS <<\_ACEOF
11139 # If the template does not know about datarootdir, expand it.
11140 # FIXME: This hack should be removed a few years after 2.60.
11141 ac_datarootdir_hack=; ac_datarootdir_seen=
11143 case `sed -n '/datarootdir/ {
11152 ' $ac_file_inputs` in
11153 *datarootdir*) ac_datarootdir_seen=yes;;
11154 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11155 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11156 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11158 cat >>$CONFIG_STATUS <<_ACEOF
11159 ac_datarootdir_hack='
11160 s&@datadir@&$datadir&g
11161 s&@docdir@&$docdir&g
11162 s&@infodir@&$infodir&g
11163 s&@localedir@&$localedir&g
11164 s&@mandir@&$mandir&g
11165 s&\\\${datarootdir}&$datarootdir&g' ;;
11169 # Neutralize VPATH when `$srcdir' = `.'.
11170 # Shell code in configure.ac might set extrasub.
11171 # FIXME: do we really want to maintain this feature?
11172 cat >>$CONFIG_STATUS <<_ACEOF
11176 cat >>$CONFIG_STATUS <<\_ACEOF
11178 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11179 s&@configure_input@&$configure_input&;t t
11180 s&@top_builddir@&$ac_top_builddir_sub&;t t
11181 s&@srcdir@&$ac_srcdir&;t t
11182 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11183 s&@top_srcdir@&$ac_top_srcdir&;t t
11184 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11185 s&@builddir@&$ac_builddir&;t t
11186 s&@abs_builddir@&$ac_abs_builddir&;t t
11187 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11188 s&@INSTALL@&$ac_INSTALL&;t t
11189 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11190 $ac_datarootdir_hack
11191 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11193 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11194 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11195 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11196 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11197 which seems to be undefined. Please make sure it is defined." >&5
11198 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11199 which seems to be undefined. Please make sure it is defined." >&2;}
11203 -) cat "$tmp/out"; rm -f "$tmp/out";;
11204 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11213 # Transform confdefs.h into a sed script `conftest.defines', that
11214 # substitutes the proper values into config.h.in to produce config.h.
11215 rm -f conftest.defines conftest.tail
11216 # First, append a space to every undef/define line, to ease matching.
11217 echo 's/$/ /' >conftest.defines
11218 # Then, protect against being on the right side of a sed subst, or in
11219 # an unquoted here document, in config.status. If some macros were
11220 # called several times there might be several #defines for the same
11221 # symbol, which is useless. But do not sort them, since the last
11222 # AC_DEFINE must be honored.
11223 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11224 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11225 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11226 # PARAMS is the parameter list in the macro definition--in most cases, it's
11227 # just an empty string.
11228 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11229 ac_dB='\\)[ (].*,\\1define\\2'
11237 s/^[ ]*#[ ]*define[ ][ ]*//
11242 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11243 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11244 ' >>conftest.defines
11246 # Remove the space that was appended to ease matching.
11247 # Then replace #undef with comments. This is necessary, for
11248 # example, in the case of _POSIX_SOURCE, which is predefined and required
11249 # on some systems where configure will not decide to define it.
11250 # (The regexp can be short, since the line contains either #define or #undef.)
11252 s,^[ #]*u.*,/* & */,' >>conftest.defines
11254 # Break up conftest.defines:
11255 ac_max_sed_lines=50
11257 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11258 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11259 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11261 ac_in='$ac_file_inputs'
11262 ac_out='"$tmp/out1"'
11263 ac_nxt='"$tmp/out2"'
11267 # Write a here document:
11268 cat >>$CONFIG_STATUS <<_ACEOF
11269 # First, check the format of the line:
11270 cat >"\$tmp/defines.sed" <<\\CEOF
11271 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11272 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11276 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11278 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11279 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11280 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11281 grep . conftest.tail >/dev/null || break
11282 rm -f conftest.defines
11283 mv conftest.tail conftest.defines
11285 rm -f conftest.defines conftest.tail
11287 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11288 cat >>$CONFIG_STATUS <<\_ACEOF
11289 if test x"$ac_file" != x-; then
11290 echo "/* $configure_input */" >"$tmp/config.h"
11291 cat "$ac_result" >>"$tmp/config.h"
11292 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11293 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11294 echo "$as_me: $ac_file is unchanged" >&6;}
11297 mv "$tmp/config.h" $ac_file
11300 echo "/* $configure_input */"
11304 # Compute $ac_file's index in $config_headers.
11306 for _am_header in $config_headers :; do
11307 case $_am_header in
11308 $ac_file | $ac_file:* )
11311 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11314 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
11315 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11316 X$ac_file : 'X\(//\)[^/]' \| \
11317 X$ac_file : 'X\(//\)$' \| \
11318 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
11320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11324 /^X\(\/\/\)[^/].*/{
11336 s/.*/./; q'`/stamp-h$_am_stamp_count
11339 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11340 echo "$as_me: executing $ac_file commands" >&6;}
11345 case $ac_file$ac_mode in
11346 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11347 # Strip MF so we end up with the name of the file.
11348 mf=`echo "$mf" | sed -e 's/:.*$//'`
11349 # Check whether this is an Automake generated Makefile or not.
11350 # We used to match only the files named `Makefile.in', but
11351 # some people rename them; so instead we look at the file content.
11352 # Grep'ing the first line is not enough: some people post-process
11353 # each Makefile.in and add a new line on top of each file to say so.
11354 # Grep'ing the whole file is not good either: AIX grep has a line
11355 # limit of 2048, but all sed's we know have understand at least 4000.
11356 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
11357 dirpart=`$as_dirname -- "$mf" ||
11358 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11359 X"$mf" : 'X\(//\)[^/]' \| \
11360 X"$mf" : 'X\(//\)$' \| \
11361 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11367 /^X\(\/\/\)[^/].*/{
11383 # Extract the definition of DEPDIR, am__include, and am__quote
11384 # from the Makefile without running `make'.
11385 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11386 test -z "$DEPDIR" && continue
11387 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11388 test -z "am__include" && continue
11389 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11390 # When using ansi2knr, U may be empty or an underscore; expand it
11391 U=`sed -n 's/^U = //p' < "$mf"`
11392 # Find all dependency output files, they are included files with
11393 # $(DEPDIR) in their names. We invoke sed twice because it is the
11394 # simplest approach to changing $(DEPDIR) to its actual value in the
11396 for file in `sed -n "
11397 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11398 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11399 # Make sure the directory exists.
11400 test -f "$dirpart/$file" && continue
11401 fdir=`$as_dirname -- "$file" ||
11402 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11403 X"$file" : 'X\(//\)[^/]' \| \
11404 X"$file" : 'X\(//\)$' \| \
11405 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11411 /^X\(\/\/\)[^/].*/{
11424 { as_dir=$dirpart/$fdir
11426 -*) as_dir=./$as_dir;;
11428 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11432 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11433 *) as_qdir=$as_dir;;
11435 as_dirs="'$as_qdir' $as_dirs"
11436 as_dir=`$as_dirname -- "$as_dir" ||
11437 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11438 X"$as_dir" : 'X\(//\)[^/]' \| \
11439 X"$as_dir" : 'X\(//\)$' \| \
11440 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11446 /^X\(\/\/\)[^/].*/{
11459 test -d "$as_dir" && break
11461 test -z "$as_dirs" || eval "mkdir $as_dirs"
11462 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11463 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11464 { (exit 1); exit 1; }; }; }
11465 # echo "creating $dirpart/$file"
11466 echo '# dummy' > "$dirpart/$file"
11475 { (exit 0); exit 0; }
11477 chmod +x $CONFIG_STATUS
11478 ac_clean_files=$ac_clean_files_save
11481 # configure is writing to config.log, and then calls config.status.
11482 # config.status does its own redirection, appending to config.log.
11483 # Unfortunately, on DOS this fails, as config.log is still kept open
11484 # by configure, so config.status won't be able to write to it; its
11485 # output is simply discarded. So we exec the FD to /dev/null,
11486 # effectively closing config.log, so it can be properly (re)opened and
11487 # appended to by config.status. When coming back to configure, we
11488 # need to make the FD available again.
11489 if test "$no_create" != yes; then
11491 ac_config_status_args=
11492 test "$silent" = yes &&
11493 ac_config_status_args="$ac_config_status_args --quiet"
11495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11498 # would make configure fail if this is the last instruction.
11499 $ac_cs_success || { (exit 1); exit 1; }