2 @%:@ From configure.in for Bash 4.0, version 4.005.
3 @%:@ Guess values for system-dependent variables and create Makefiles.
4 @%:@ Generated by GNU Autoconf 2.60 for bash 4.0-alpha.
6 @%:@ Report bugs to <bug-bash@gnu.org>.
8 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 @%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 @%:@ This configure script is free software; the Free Software Foundation
11 @%:@ gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
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 *posix*) set -o posix;; esac
27 BIN_SH=xpg4; export BIN_SH # for Tru64
28 DUALCASE=1; export DUALCASE # for MKS sh
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41 echo "#! /bin/sh" >conf$$.sh
42 echo "exit 0" >>conf$$.sh
44 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
61 # We need space, tab and new line, in precisely that order. Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
69 # Find who we are. Look in the path if we contain no directory separator.
71 *[\\/]* ) as_myself=$0 ;;
72 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 test -z "$as_dir" && as_dir=.
77 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
88 if test ! -f "$as_myself"; then
89 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108 eval $as_var=C; export $as_var
110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132 X"$0" : 'X\(//\)$' \| \
133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 sed '/^.*\/\([^/][^/]*\)\/*$/{
153 if test "x$CONFIG_SHELL" = x; then
154 if (eval ":") 2>/dev/null; then
160 if test $as_have_required = yes && (eval ":
170 as_func_ret_success () {
173 as_func_ret_failure () {
178 if as_func_success; then
182 echo as_func_success failed.
185 if as_func_failure; then
187 echo as_func_failure succeeded.
190 if as_func_ret_success; then
194 echo as_func_ret_success failed.
197 if as_func_ret_failure; then
199 echo as_func_ret_failure succeeded.
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 echo positional parameters were not saved.
209 test \$exitcode = 0) || { (exit 1); exit 1; }
214 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
235 for as_shell in $as_candidate_shells $SHELL; do
236 # Try only shells that exist, to save several forks.
237 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 # Be Bourne compatible
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 BIN_SH=xpg4; export BIN_SH # for Tru64
251 DUALCASE=1; export DUALCASE # for MKS sh
256 CONFIG_SHELL=$as_shell
258 if { "$as_shell" 2> /dev/null <<\_ASEOF
259 # Be Bourne compatible
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
268 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 BIN_SH=xpg4; export BIN_SH # for Tru64
271 DUALCASE=1; export DUALCASE # for MKS sh
283 as_func_ret_success () {
286 as_func_ret_failure () {
291 if as_func_success; then
295 echo as_func_success failed.
298 if as_func_failure; then
300 echo as_func_failure succeeded.
303 if as_func_ret_success; then
307 echo as_func_ret_success failed.
310 if as_func_ret_failure; then
312 echo as_func_ret_failure succeeded.
315 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 echo positional parameters were not saved.
322 test $exitcode = 0) || { (exit 1); exit 1; }
327 test "x$as_lineno_1" != "x$as_lineno_2" &&
328 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
339 if test "x$CONFIG_SHELL" != x; then
340 for as_var in BASH_ENV ENV
341 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
344 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 if test $as_have_required = no; then
349 echo This script requires a shell more modern than all the
350 echo shells that I found on your system. Please install a
351 echo modern shell, or manually run the script under such a
352 echo shell if you do have one.
353 { (exit 1); exit 1; }
363 (eval "as_func_return () {
372 as_func_ret_success () {
375 as_func_ret_failure () {
380 if as_func_success; then
384 echo as_func_success failed.
387 if as_func_failure; then
389 echo as_func_failure succeeded.
392 if as_func_ret_success; then
396 echo as_func_ret_success failed.
399 if as_func_ret_failure; then
401 echo as_func_ret_failure succeeded.
404 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 echo positional parameters were not saved.
411 test \$exitcode = 0") || {
412 echo No shell found that supports shell functions.
413 echo Please tell autoconf@gnu.org about your system,
414 echo including any error possibly output before this
422 test "x$as_lineno_1" != "x$as_lineno_2" &&
423 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
426 # uniformly replaced by the line number. The first 'sed' inserts a
427 # line-number line after each line using $LINENO; the second 'sed'
428 # does the real work. The second script uses 'N' to pair each
429 # line-number line with the line containing $LINENO, and appends
430 # trailing '-' during substitution so that $LINENO is not a special
432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
433 # scripts with optimization help from Paolo Bonzini. Blame Lee
434 # E. McMahon (1931-1989) for sed's syntax. :-)
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 chmod +x "$as_me.lineno" ||
451 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
452 { (exit 1); exit 1; }; }
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
458 # Exit status is that of the last command.
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 ECHO_C= ECHO_N= ECHO_T=
473 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 if expr a : '\(a\)' >/dev/null 2>&1 &&
481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 rm -f conf$$ conf$$.exe conf$$.file
488 if test -d conf$$.dir; then
489 rm -f conf$$.dir/conf$$.file
495 if ln -s conf$$.file conf$$ 2>/dev/null; then
497 # ... but there are two gotchas:
498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500 # In both cases, we have to default to `cp -p'.
501 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
514 test -d ./-p && rmdir ./-p
518 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
519 # systems may use methods other than mode bits to determine executability.
520 cat >conf$$.file <<_ASEOF
525 if test -x conf$$.file >/dev/null 2>&1; then
526 as_executable_p="test -x"
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 exec 7<&0 </dev/null 6>&1
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
550 ac_default_prefix=/usr/local
552 ac_config_libobj_dir=.
558 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Identity of this package.
562 PACKAGE_TARNAME='bash'
563 PACKAGE_VERSION='4.0-alpha'
564 PACKAGE_STRING='bash 4.0-alpha'
565 PACKAGE_BUGREPORT='bug-bash@gnu.org'
567 ac_unique_file="shell.h"
568 # Factoring default headers for most tests.
569 ac_includes_default="\
572 # include <sys/types.h>
575 # include <sys/stat.h>
586 # if !STDC_HEADERS && HAVE_MEMORY_H
592 # include <strings.h>
595 # include <inttypes.h>
614 program_transform_name
716 BUILD_INCLUDED_LIBINTL
723 INTL_LIBTOOL_SUFFIX_PREFIX
757 ac_precious_vars='build_alias
770 # Initialize some variables set by options.
772 ac_init_version=false
773 # The variables have the same names as the options, with
774 # dashes changed to underlines.
782 program_transform_name=s,x,x,
790 # Installation directory options.
791 # These are left unexpanded so users can "make install exec_prefix=/foo"
792 # and all the variables that are supposed to be based on exec_prefix
793 # by default will actually change.
794 # Use braces instead of parens because sh, perl, etc. also accept them.
795 # (The list follows the same order as the GNU Coding Standards.)
796 bindir='${exec_prefix}/bin'
797 sbindir='${exec_prefix}/sbin'
798 libexecdir='${exec_prefix}/libexec'
799 datarootdir='${prefix}/share'
800 datadir='${datarootdir}'
801 sysconfdir='${prefix}/etc'
802 sharedstatedir='${prefix}/com'
803 localstatedir='${prefix}/var'
804 includedir='${prefix}/include'
805 oldincludedir='/usr/include'
806 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
807 infodir='${datarootdir}/info'
812 libdir='${exec_prefix}/lib'
813 localedir='${datarootdir}/locale'
814 mandir='${datarootdir}/man'
820 # If the previous option needs an argument, assign it.
821 if test -n "$ac_prev"; then
822 eval $ac_prev=\$ac_option
828 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832 # Accept the important Cygnus configure options, so we can diagnose typos.
834 case $ac_dashdash$ac_option in
838 -bindir | --bindir | --bindi | --bind | --bin | --bi)
840 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
843 -build | --build | --buil | --bui | --bu)
844 ac_prev=build_alias ;;
845 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
846 build_alias=$ac_optarg ;;
848 -cache-file | --cache-file | --cache-fil | --cache-fi \
849 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
850 ac_prev=cache_file ;;
851 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
852 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
853 cache_file=$ac_optarg ;;
856 cache_file=config.cache ;;
858 -datadir | --datadir | --datadi | --datad)
860 -datadir=* | --datadir=* | --datadi=* | --datad=*)
861 datadir=$ac_optarg ;;
863 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
864 | --dataroo | --dataro | --datar)
865 ac_prev=datarootdir ;;
866 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
867 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
868 datarootdir=$ac_optarg ;;
870 -disable-* | --disable-*)
871 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
877 eval enable_$ac_feature=no ;;
879 -docdir | --docdir | --docdi | --doc | --do)
881 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889 -enable-* | --enable-*)
890 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
893 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
894 { (exit 1); exit 1; }; }
895 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
896 eval enable_$ac_feature=\$ac_optarg ;;
898 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
899 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
900 | --exec | --exe | --ex)
901 ac_prev=exec_prefix ;;
902 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
903 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
904 | --exec=* | --exe=* | --ex=*)
905 exec_prefix=$ac_optarg ;;
907 -gas | --gas | --ga | --g)
908 # Obsolete; use --with-gas.
911 -help | --help | --hel | --he | -h)
913 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
914 ac_init_help=recursive ;;
915 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
916 ac_init_help=short ;;
918 -host | --host | --hos | --ho)
919 ac_prev=host_alias ;;
920 -host=* | --host=* | --hos=* | --ho=*)
921 host_alias=$ac_optarg ;;
923 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
925 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
927 htmldir=$ac_optarg ;;
929 -includedir | --includedir | --includedi | --included | --include \
930 | --includ | --inclu | --incl | --inc)
931 ac_prev=includedir ;;
932 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
933 | --includ=* | --inclu=* | --incl=* | --inc=*)
934 includedir=$ac_optarg ;;
936 -infodir | --infodir | --infodi | --infod | --info | --inf)
938 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
939 infodir=$ac_optarg ;;
941 -libdir | --libdir | --libdi | --libd)
943 -libdir=* | --libdir=* | --libdi=* | --libd=*)
946 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
947 | --libexe | --libex | --libe)
948 ac_prev=libexecdir ;;
949 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
950 | --libexe=* | --libex=* | --libe=*)
951 libexecdir=$ac_optarg ;;
953 -localedir | --localedir | --localedi | --localed | --locale)
955 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
956 localedir=$ac_optarg ;;
958 -localstatedir | --localstatedir | --localstatedi | --localstated \
959 | --localstate | --localstat | --localsta | --localst | --locals)
960 ac_prev=localstatedir ;;
961 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
962 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
963 localstatedir=$ac_optarg ;;
965 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
967 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
971 # Obsolete; use --without-fp.
974 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
975 | --no-cr | --no-c | -n)
978 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
979 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
982 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
983 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
984 | --oldin | --oldi | --old | --ol | --o)
985 ac_prev=oldincludedir ;;
986 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
987 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
988 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
989 oldincludedir=$ac_optarg ;;
991 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
993 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
996 -program-prefix | --program-prefix | --program-prefi | --program-pref \
997 | --program-pre | --program-pr | --program-p)
998 ac_prev=program_prefix ;;
999 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1000 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1001 program_prefix=$ac_optarg ;;
1003 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1004 | --program-suf | --program-su | --program-s)
1005 ac_prev=program_suffix ;;
1006 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1007 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1008 program_suffix=$ac_optarg ;;
1010 -program-transform-name | --program-transform-name \
1011 | --program-transform-nam | --program-transform-na \
1012 | --program-transform-n | --program-transform- \
1013 | --program-transform | --program-transfor \
1014 | --program-transfo | --program-transf \
1015 | --program-trans | --program-tran \
1016 | --progr-tra | --program-tr | --program-t)
1017 ac_prev=program_transform_name ;;
1018 -program-transform-name=* | --program-transform-name=* \
1019 | --program-transform-nam=* | --program-transform-na=* \
1020 | --program-transform-n=* | --program-transform-=* \
1021 | --program-transform=* | --program-transfor=* \
1022 | --program-transfo=* | --program-transf=* \
1023 | --program-trans=* | --program-tran=* \
1024 | --progr-tra=* | --program-tr=* | --program-t=*)
1025 program_transform_name=$ac_optarg ;;
1027 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1029 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1030 pdfdir=$ac_optarg ;;
1032 -psdir | --psdir | --psdi | --psd | --ps)
1034 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038 | -silent | --silent | --silen | --sile | --sil)
1041 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1043 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1045 sbindir=$ac_optarg ;;
1047 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1048 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1049 | --sharedst | --shareds | --shared | --share | --shar \
1051 ac_prev=sharedstatedir ;;
1052 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1053 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1054 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1056 sharedstatedir=$ac_optarg ;;
1058 -site | --site | --sit)
1060 -site=* | --site=* | --sit=*)
1063 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1065 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1066 srcdir=$ac_optarg ;;
1068 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1069 | --syscon | --sysco | --sysc | --sys | --sy)
1070 ac_prev=sysconfdir ;;
1071 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1072 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1073 sysconfdir=$ac_optarg ;;
1075 -target | --target | --targe | --targ | --tar | --ta | --t)
1076 ac_prev=target_alias ;;
1077 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1078 target_alias=$ac_optarg ;;
1080 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1083 -version | --version | --versio | --versi | --vers | -V)
1084 ac_init_version=: ;;
1087 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1090 { echo "$as_me: error: invalid package name: $ac_package" >&2
1091 { (exit 1); exit 1; }; }
1092 ac_package=`echo $ac_package| sed 's/-/_/g'`
1093 eval with_$ac_package=\$ac_optarg ;;
1095 -without-* | --without-*)
1096 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1099 { echo "$as_me: error: invalid package name: $ac_package" >&2
1100 { (exit 1); exit 1; }; }
1101 ac_package=`echo $ac_package | sed 's/-/_/g'`
1102 eval with_$ac_package=no ;;
1105 # Obsolete; use --with-x.
1108 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1109 | --x-incl | --x-inc | --x-in | --x-i)
1110 ac_prev=x_includes ;;
1111 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1112 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1113 x_includes=$ac_optarg ;;
1115 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1116 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1117 ac_prev=x_libraries ;;
1118 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1119 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1120 x_libraries=$ac_optarg ;;
1122 -*) { echo "$as_me: error: unrecognized option: $ac_option
1123 Try \`$0 --help' for more information." >&2
1124 { (exit 1); exit 1; }; }
1128 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1131 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1132 { (exit 1); exit 1; }; }
1133 eval $ac_envvar=\$ac_optarg
1134 export $ac_envvar ;;
1137 # FIXME: should be removed in autoconf 3.0.
1138 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1139 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1140 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1141 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1147 if test -n "$ac_prev"; then
1148 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1149 { echo "$as_me: error: missing argument to $ac_option" >&2
1150 { (exit 1); exit 1; }; }
1153 # Be sure to have absolute directory names.
1154 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1155 datadir sysconfdir sharedstatedir localstatedir includedir \
1156 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1157 libdir localedir mandir
1159 eval ac_val=\$$ac_var
1161 [\\/$]* | ?:[\\/]* ) continue;;
1162 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1164 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1165 { (exit 1); exit 1; }; }
1168 # There might be people who depend on the old broken behavior: `$host'
1169 # used to hold the argument of --host etc.
1170 # FIXME: To remove some day.
1173 target=$target_alias
1175 # FIXME: To remove some day.
1176 if test "x$host_alias" != x; then
1177 if test "x$build_alias" = x; then
1178 cross_compiling=maybe
1179 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1180 If a cross compiler is detected then cross compile mode will be used." >&2
1181 elif test "x$build_alias" != "x$host_alias"; then
1187 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1189 test "$silent" = yes && exec 6>/dev/null
1192 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1193 ac_ls_di=`ls -di .` &&
1194 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1195 { echo "$as_me: error: Working directory cannot be determined" >&2
1196 { (exit 1); exit 1; }; }
1197 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1198 { echo "$as_me: error: pwd does not report name of working directory" >&2
1199 { (exit 1); exit 1; }; }
1202 # Find the source files, if location was not specified.
1203 if test -z "$srcdir"; then
1204 ac_srcdir_defaulted=yes
1205 # Try the directory containing this script, then the parent directory.
1206 ac_confdir=`$as_dirname -- "$0" ||
1207 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1208 X"$0" : 'X\(//\)[^/]' \| \
1209 X"$0" : 'X\(//\)$' \| \
1210 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1230 if test ! -r "$srcdir/$ac_unique_file"; then
1234 ac_srcdir_defaulted=no
1236 if test ! -r "$srcdir/$ac_unique_file"; then
1237 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1238 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1239 { (exit 1); exit 1; }; }
1241 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1243 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1244 { (exit 1); exit 1; }; }
1246 # When building in place, set srcdir=.
1247 if test "$ac_abs_confdir" = "$ac_pwd"; then
1250 # Remove unnecessary trailing slashes from srcdir.
1251 # Double slashes in file names in object file debugging info
1252 # mess up M-x gdb in Emacs.
1254 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1256 for ac_var in $ac_precious_vars; do
1257 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1258 eval ac_env_${ac_var}_value=\$${ac_var}
1259 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1260 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1264 # Report the --help message.
1266 if test "$ac_init_help" = "long"; then
1267 # Omit some internal or obsolete options to make the list less imposing.
1268 # This message is too long to be a string in the A/UX 3.1 sh.
1270 \`configure' configures bash 4.0-alpha to adapt to many kinds of systems.
1272 Usage: $0 [OPTION]... [VAR=VALUE]...
1274 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1275 VAR=VALUE. See below for descriptions of some of the useful variables.
1277 Defaults for the options are specified in brackets.
1280 -h, --help display this help and exit
1281 --help=short display options specific to this package
1282 --help=recursive display the short help of all the included packages
1283 -V, --version display version information and exit
1284 -q, --quiet, --silent do not print \`checking...' messages
1285 --cache-file=FILE cache test results in FILE [disabled]
1286 -C, --config-cache alias for \`--cache-file=config.cache'
1287 -n, --no-create do not create output files
1288 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1290 Installation directories:
1291 --prefix=PREFIX install architecture-independent files in PREFIX
1292 [$ac_default_prefix]
1293 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1296 By default, \`make install' will install all the files in
1297 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1298 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1299 for instance \`--prefix=\$HOME'.
1301 For better control, use the options below.
1303 Fine tuning of the installation directories:
1304 --bindir=DIR user executables [EPREFIX/bin]
1305 --sbindir=DIR system admin executables [EPREFIX/sbin]
1306 --libexecdir=DIR program executables [EPREFIX/libexec]
1307 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1308 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1309 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1310 --libdir=DIR object code libraries [EPREFIX/lib]
1311 --includedir=DIR C header files [PREFIX/include]
1312 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1313 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1314 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1315 --infodir=DIR info documentation [DATAROOTDIR/info]
1316 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1317 --mandir=DIR man documentation [DATAROOTDIR/man]
1318 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/bash@:>@
1319 --htmldir=DIR html documentation [DOCDIR]
1320 --dvidir=DIR dvi documentation [DOCDIR]
1321 --pdfdir=DIR pdf documentation [DOCDIR]
1322 --psdir=DIR ps documentation [DOCDIR]
1328 --build=BUILD configure for building on BUILD [guessed]
1329 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1333 if test -n "$ac_init_help"; then
1334 case $ac_init_help in
1335 short | recursive ) echo "Configuration of bash 4.0-alpha:";;
1340 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1341 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1342 --enable-minimal-config a minimal sh-like configuration
1343 --enable-alias enable shell aliases
1344 --enable-arith-for-command
1345 enable arithmetic for command
1346 --enable-array-variables
1347 include shell array variables
1348 --enable-bang-history turn on csh-style history substitution
1349 --enable-brace-expansion
1350 include brace expansion
1351 --enable-casemod-attributes
1352 include case-modifying variable attributes
1353 --enable-casemod-expansions
1354 include case-modifying word expansions
1355 --enable-command-timing enable the time reserved word and command timing
1356 --enable-cond-command enable the conditional command
1357 --enable-cond-regexp enable extended regular expression matching in
1358 conditional commands
1359 --enable-coprocesses enable coprocess support and the coproc reserved
1361 --enable-debugger enable support for bash debugger
1362 --enable-directory-stack
1363 enable builtins pushd/popd/dirs
1364 --enable-disabled-builtins
1365 allow disabled builtins to still be invoked
1366 --enable-dparen-arithmetic
1367 include ((...)) command
1368 --enable-extended-glob include ksh-style extended pattern matching
1369 --enable-help-builtin include the help builtin
1370 --enable-history turn on command history
1371 --enable-job-control enable job control features
1372 --enable-multibyte enable multibyte characters if OS supports them
1373 --enable-net-redirections
1374 enable /dev/tcp/host/port redirection
1375 --enable-process-substitution
1376 enable process substitution
1377 --enable-progcomp enable programmable completion and the complete
1379 --enable-prompt-string-decoding
1380 turn on escape character decoding in prompts
1381 --enable-readline turn on command line editing
1382 --enable-restricted enable a restricted shell
1383 --enable-select include select command
1384 --enable-separate-helpfiles
1385 use external files for help builtin documentation
1386 --enable-single-help-strings
1387 store help documentation as a single string to ease
1389 --enable-strict-posix-default
1390 configure bash to be posix-conformant by default
1391 --enable-usg-echo-default
1392 a synonym for --enable-xpg-echo-default
1393 --enable-xpg-echo-default
1394 make the echo builtin expand escape sequences by
1396 --enable-mem-scramble scramble memory on calls to malloc and free
1397 --enable-profiling allow profiling with gprof
1398 --enable-static-link link bash statically, for use as a root shell
1399 --disable-largefile omit support for large files
1400 --disable-nls do not use Native Language Support
1401 --disable-rpath do not hardcode runtime library paths
1404 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1405 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1406 --with-lispdir override the default lisp directory
1407 --with-afs if you are running AFS
1408 --with-bash-malloc use the Bash version of malloc
1409 --with-curses use the curses library instead of the termcap
1411 --with-gnu-malloc synonym for --with-bash-malloc
1412 --with-installed-readline
1413 use a version of the readline library that is
1415 --with-purecov configure to postprocess with pure coverage
1416 --with-purify configure to postprocess with purify
1417 --with-gnu-ld assume the C compiler uses GNU ld default=no
1418 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1419 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1420 --with-included-gettext use the GNU gettext library included here
1421 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1422 --without-libintl-prefix don't search for libintl in includedir and libdir
1424 Some influential environment variables:
1426 location of bash debugger initialization file
1427 CC C compiler command
1428 CFLAGS C compiler flags
1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1430 nonstandard directory <lib dir>
1431 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1432 you have headers in a nonstandard directory <include dir>
1434 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1435 the first program found out of: `bison -y', `byacc', `yacc'.
1436 YFLAGS The list of arguments that will be passed by default to $YACC.
1437 This script will default YFLAGS to the empty string to avoid a
1438 default value of `-d' given by some make applications.
1440 Use these variables to override the choices made by `configure' or to help
1441 it to find libraries and programs with nonstandard names/locations.
1443 Report bugs to <bug-bash@gnu.org>.
1448 if test "$ac_init_help" = "recursive"; then
1449 # If there are subdirs, report their specific --help.
1450 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1451 test -d "$ac_dir" || continue
1455 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1458 # A ".." for each directory in $ac_dir_suffix.
1459 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1460 case $ac_top_builddir_sub in
1461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1465 ac_abs_top_builddir=$ac_pwd
1466 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1467 # for backward compatibility:
1468 ac_top_builddir=$ac_top_build_prefix
1471 .) # We are building in place.
1473 ac_top_srcdir=$ac_top_builddir_sub
1474 ac_abs_top_srcdir=$ac_pwd ;;
1475 [\\/]* | ?:[\\/]* ) # Absolute name.
1476 ac_srcdir=$srcdir$ac_dir_suffix;
1477 ac_top_srcdir=$srcdir
1478 ac_abs_top_srcdir=$srcdir ;;
1480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1481 ac_top_srcdir=$ac_top_build_prefix$srcdir
1482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1484 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1486 cd "$ac_dir" || { ac_status=$?; continue; }
1487 # Check for guested configure.
1488 if test -f "$ac_srcdir/configure.gnu"; then
1490 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1491 elif test -f "$ac_srcdir/configure"; then
1493 $SHELL "$ac_srcdir/configure" --help=recursive
1495 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1497 cd "$ac_pwd" || { ac_status=$?; break; }
1501 test -n "$ac_init_help" && exit $ac_status
1502 if $ac_init_version; then
1504 bash configure 4.0-alpha
1505 generated by GNU Autoconf 2.60
1507 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1508 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1509 This configure script is free software; the Free Software Foundation
1510 gives unlimited permission to copy, distribute and modify it.
1514 cat >config.log <<_ACEOF
1515 This file contains any messages produced by compilers while
1516 running configure, to aid debugging if configure makes a mistake.
1518 It was created by bash $as_me 4.0-alpha, which was
1519 generated by GNU Autoconf 2.60. Invocation command line was
1527 @%:@@%:@ --------- @%:@@%:@
1528 @%:@@%:@ Platform. @%:@@%:@
1529 @%:@@%:@ --------- @%:@@%:@
1531 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1532 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1533 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1534 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1535 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1537 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1538 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1540 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1541 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1542 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1543 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1544 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1545 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1546 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 test -z "$as_dir" && as_dir=.
1555 echo "PATH: $as_dir"
1564 @%:@@%:@ ----------- @%:@@%:@
1565 @%:@@%:@ Core tests. @%:@@%:@
1566 @%:@@%:@ ----------- @%:@@%:@
1571 # Keep a trace of the command line.
1572 # Strip out --no-create and --no-recursion so they do not pile up.
1573 # Strip out --silent because we don't want to record it for future runs.
1574 # Also quote any args containing shell meta-characters.
1575 # Make two passes to allow for proper duplicate-argument suppression.
1579 ac_must_keep_next=false
1585 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1587 | -silent | --silent | --silen | --sile | --sil)
1590 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1593 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1595 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1596 if test $ac_must_keep_next = true; then
1597 ac_must_keep_next=false # Got value, back to normal.
1600 *=* | --config-cache | -C | -disable-* | --disable-* \
1601 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1602 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1603 | -with-* | --with-* | -without-* | --without-* | --x)
1604 case "$ac_configure_args0 " in
1605 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1608 -* ) ac_must_keep_next=true ;;
1611 ac_configure_args="$ac_configure_args '$ac_arg'"
1616 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1617 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1619 # When interrupted or exit'd, cleanup temporary files, and complete
1620 # config.log. We remove comments because anyway the quotes in there
1621 # would cause problems or look ugly.
1622 # WARNING: Use '\'' to represent an apostrophe within the trap.
1623 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1624 trap 'exit_status=$?
1625 # Save into config.log some information that might help in debugging.
1630 @%:@@%:@ ---------------- @%:@@%:@
1631 @%:@@%:@ Cache variables. @%:@@%:@
1632 @%:@@%:@ ---------------- @%:@@%:@
1635 # The following way of writing the cache mishandles newlines in values,
1637 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1638 eval ac_val=\$$ac_var
1642 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1643 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1646 _ | IFS | as_nl) ;; #(
1647 *) $as_unset $ac_var ;;
1652 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1653 *${as_nl}ac_space=\ *)
1655 "s/'\''/'\''\\\\'\'''\''/g;
1656 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1659 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1667 @%:@@%:@ ----------------- @%:@@%:@
1668 @%:@@%:@ Output variables. @%:@@%:@
1669 @%:@@%:@ ----------------- @%:@@%:@
1672 for ac_var in $ac_subst_vars
1674 eval ac_val=\$$ac_var
1676 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1678 echo "$ac_var='\''$ac_val'\''"
1682 if test -n "$ac_subst_files"; then
1684 @%:@@%:@ ------------------- @%:@@%:@
1685 @%:@@%:@ File substitutions. @%:@@%:@
1686 @%:@@%:@ ------------------- @%:@@%:@
1689 for ac_var in $ac_subst_files
1691 eval ac_val=\$$ac_var
1693 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1695 echo "$ac_var='\''$ac_val'\''"
1700 if test -s confdefs.h; then
1702 @%:@@%:@ ----------- @%:@@%:@
1703 @%:@@%:@ confdefs.h. @%:@@%:@
1704 @%:@@%:@ ----------- @%:@@%:@
1710 test "$ac_signal" != 0 &&
1711 echo "$as_me: caught signal $ac_signal"
1712 echo "$as_me: exit $exit_status"
1714 rm -f core *.core core.conftest.* &&
1715 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1718 for ac_signal in 1 2 13 15; do
1719 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1723 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1724 rm -f -r conftest* confdefs.h
1726 # Predefined preprocessor variables.
1728 cat >>confdefs.h <<_ACEOF
1729 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1733 cat >>confdefs.h <<_ACEOF
1734 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1738 cat >>confdefs.h <<_ACEOF
1739 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1743 cat >>confdefs.h <<_ACEOF
1744 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1748 cat >>confdefs.h <<_ACEOF
1749 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1753 # Let the site file select an alternate cache file if it wants to.
1754 # Prefer explicitly selected file to automatically selected ones.
1755 if test -n "$CONFIG_SITE"; then
1756 set x "$CONFIG_SITE"
1757 elif test "x$prefix" != xNONE; then
1758 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1760 set x "$ac_default_prefix/share/config.site" \
1761 "$ac_default_prefix/etc/config.site"
1766 if test -r "$ac_site_file"; then
1767 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1768 echo "$as_me: loading site script $ac_site_file" >&6;}
1769 sed 's/^/| /' "$ac_site_file" >&5
1774 if test -r "$cache_file"; then
1775 # Some versions of bash will fail to source /dev/null (special
1776 # files actually), so we avoid doing that.
1777 if test -f "$cache_file"; then
1778 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1779 echo "$as_me: loading cache $cache_file" >&6;}
1781 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1782 *) . "./$cache_file";;
1786 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1787 echo "$as_me: creating cache $cache_file" >&6;}
1791 ac_func_list="$ac_func_list fpurge"
1792 ac_func_list="$ac_func_list __fpurge"
1793 # Check that the precious variables saved in the cache have kept the same
1795 ac_cache_corrupted=false
1796 for ac_var in $ac_precious_vars; do
1797 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1798 eval ac_new_set=\$ac_env_${ac_var}_set
1799 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1800 eval ac_new_val=\$ac_env_${ac_var}_value
1801 case $ac_old_set,$ac_new_set in
1803 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1804 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1805 ac_cache_corrupted=: ;;
1807 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1808 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1809 ac_cache_corrupted=: ;;
1812 if test "x$ac_old_val" != "x$ac_new_val"; then
1813 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1814 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1815 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1816 echo "$as_me: former value: $ac_old_val" >&2;}
1817 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1818 echo "$as_me: current value: $ac_new_val" >&2;}
1819 ac_cache_corrupted=:
1822 # Pass precious variables to config.status.
1823 if test "$ac_new_set" = set; then
1825 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1826 *) ac_arg=$ac_var=$ac_new_val ;;
1828 case " $ac_configure_args " in
1829 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1830 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1834 if $ac_cache_corrupted; then
1835 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1836 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1837 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1838 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1839 { (exit 1); exit 1; }; }
1867 ac_cpp='$CPP $CPPFLAGS'
1868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1878 for ac_dir in ./support "$srcdir"/./support; do
1879 if test -f "$ac_dir/install-sh"; then
1881 ac_install_sh="$ac_aux_dir/install-sh -c"
1883 elif test -f "$ac_dir/install.sh"; then
1885 ac_install_sh="$ac_aux_dir/install.sh -c"
1887 elif test -f "$ac_dir/shtool"; then
1889 ac_install_sh="$ac_aux_dir/shtool install -c"
1893 if test -z "$ac_aux_dir"; then
1894 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&5
1895 echo "$as_me: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&2;}
1896 { (exit 1); exit 1; }; }
1899 # These three variables are undocumented and unsupported,
1900 # and are intended to be withdrawn in a future Autoconf release.
1901 # They can cause serious problems if a builder's source tree is in a directory
1902 # whose full name contains unusual characters.
1903 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1904 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1905 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1908 ac_config_headers="$ac_config_headers config.h"
1914 case "$RELSTATUS" in
1915 alp*|bet*|dev*|rc*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
1916 *) DEBUG= MALLOC_DEBUG= ;;
1919 # Make sure we can run config.sub.
1920 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1921 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1922 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1923 { (exit 1); exit 1; }; }
1925 { echo "$as_me:$LINENO: checking build system type" >&5
1926 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1927 if test "${ac_cv_build+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
1930 ac_build_alias=$build_alias
1931 test "x$ac_build_alias" = x &&
1932 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1933 test "x$ac_build_alias" = x &&
1934 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1935 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1936 { (exit 1); exit 1; }; }
1937 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1938 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1939 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1940 { (exit 1); exit 1; }; }
1943 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1944 echo "${ECHO_T}$ac_cv_build" >&6; }
1945 case $ac_cv_build in
1947 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1948 echo "$as_me: error: invalid value of canonical build" >&2;}
1949 { (exit 1); exit 1; }; };;
1952 ac_save_IFS=$IFS; IFS='-'
1958 # Remember, the first character of IFS is used to create $*,
1959 # except with old shells:
1962 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1965 { echo "$as_me:$LINENO: checking host system type" >&5
1966 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1967 if test "${ac_cv_host+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 if test "x$host_alias" = x; then
1971 ac_cv_host=$ac_cv_build
1973 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1974 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1975 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1976 { (exit 1); exit 1; }; }
1980 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1981 echo "${ECHO_T}$ac_cv_host" >&6; }
1984 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1985 echo "$as_me: error: invalid value of canonical host" >&2;}
1986 { (exit 1); exit 1; }; };;
1989 ac_save_IFS=$IFS; IFS='-'
1995 # Remember, the first character of IFS is used to create $*,
1996 # except with old shells:
1999 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2008 opt_with_installed_readline=no
2012 case "${host_cpu}-${host_os}" in
2013 alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
2014 *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
2015 *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
2016 sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
2017 sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
2018 mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
2019 m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
2020 sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
2021 #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
2022 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
2023 *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
2024 *-aix*) opt_bash_malloc=no ;; # AIX machines
2025 *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
2026 *-macos*) opt_bash_malloc=no ;; # Apple MacOS X
2027 *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
2028 *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
2029 *-dgux*) opt_bash_malloc=no ;; # DG/UX machines
2030 *-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x
2031 *-machten4) opt_bash_malloc=no ;; # MachTen 4.x
2032 *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
2033 *-beos*) opt_bash_malloc=no ;; # they say it's suitable
2034 *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
2035 *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
2038 # memory scrambling on free()
2039 case "${host_os}" in
2040 sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
2041 *) opt_memscramble=yes ;;
2045 # Check whether --with-lispdir was given.
2046 if test "${with_lispdir+set}" = set; then
2047 withval=$with_lispdir; lispdir="$withval"
2048 { echo "$as_me:$LINENO: checking where .elc files should go" >&5
2049 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6; }
2050 { echo "$as_me:$LINENO: result: $lispdir" >&5
2051 echo "${ECHO_T}$lispdir" >&6; }
2054 # If set to t, that means we are running in a shell under Emacs.
2055 # If you have an Emacs named "t", then use the full path.
2056 test x"$EMACS" = xt && EMACS=
2057 for ac_prog in emacs xemacs
2059 # Extract the first word of "$ac_prog", so it can be a program name with args.
2060 set dummy $ac_prog; ac_word=$2
2061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2063 if test "${ac_cv_prog_EMACS+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 if test -n "$EMACS"; then
2067 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 test -z "$as_dir" && as_dir=.
2074 for ac_exec_ext in '' $ac_executable_extensions; do
2075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2076 ac_cv_prog_EMACS="$ac_prog"
2077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086 EMACS=$ac_cv_prog_EMACS
2087 if test -n "$EMACS"; then
2088 { echo "$as_me:$LINENO: result: $EMACS" >&5
2089 echo "${ECHO_T}$EMACS" >&6; }
2091 { echo "$as_me:$LINENO: result: no" >&5
2092 echo "${ECHO_T}no" >&6; }
2096 test -n "$EMACS" && break
2098 test -n "$EMACS" || EMACS="no"
2100 if test $EMACS != "no"; then
2101 if test x${lispdir+set} != xset; then
2102 { echo "$as_me:$LINENO: checking where .elc files should go" >&5
2103 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6; }
2104 if test "${am_cv_lispdir+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 am_cv_lispdir=`$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' | sed -n -e 's,/$,,' -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}'`
2108 if test -z "$am_cv_lispdir"; then
2109 am_cv_lispdir='${datadir}/emacs/site-lisp'
2113 { echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2114 echo "${ECHO_T}$am_cv_lispdir" >&6; }
2115 lispdir="$am_cv_lispdir"
2126 # Check whether --with-afs was given.
2127 if test "${with_afs+set}" = set; then
2128 withval=$with_afs; opt_afs=$withval
2132 # Check whether --with-bash-malloc was given.
2133 if test "${with_bash_malloc+set}" = set; then
2134 withval=$with_bash_malloc; opt_bash_malloc=$withval
2138 # Check whether --with-curses was given.
2139 if test "${with_curses+set}" = set; then
2140 withval=$with_curses; opt_curses=$withval
2144 # Check whether --with-gnu-malloc was given.
2145 if test "${with_gnu_malloc+set}" = set; then
2146 withval=$with_gnu_malloc; opt_bash_malloc=$withval
2150 # Check whether --with-installed-readline was given.
2151 if test "${with_installed_readline+set}" = set; then
2152 withval=$with_installed_readline; opt_with_installed_readline=$withval
2156 # Check whether --with-purecov was given.
2157 if test "${with_purecov+set}" = set; then
2158 withval=$with_purecov; opt_purecov=$withval
2162 # Check whether --with-purify was given.
2163 if test "${with_purify+set}" = set; then
2164 withval=$with_purify; opt_purify=$withval
2168 if test "$opt_bash_malloc" = yes; then
2169 MALLOC_TARGET=malloc
2172 MALLOC_LIB='-lmalloc'
2173 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
2174 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
2175 MALLOC_DEP='$(MALLOC_LIBRARY)'
2177 cat >>confdefs.h <<\_ACEOF
2178 @%:@define USING_BASH_MALLOC 1
2188 if test "$opt_purify" = yes; then
2190 cat >>confdefs.h <<\_ACEOF
2191 @%:@define DISABLE_MALLOC_WRAPPERS 1
2198 if test "$opt_purecov" = yes; then
2199 PURIFY="${PURIFY}purecov"
2202 if test "$opt_afs" = yes; then
2203 cat >>confdefs.h <<\_ACEOF
2209 if test "$opt_curses" = yes; then
2213 if test -z "${DEBUGGER_START_FILE}"; then
2214 DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc'
2217 opt_minimal_config=no
2223 opt_bang_history=yes
2226 opt_process_subst=yes
2227 opt_prompt_decoding=yes
2230 opt_array_variables=yes
2231 opt_dparen_arith=yes
2232 opt_extended_glob=yes
2233 opt_brace_expansion=yes
2234 opt_disabled_builtins=no
2235 opt_command_timing=yes
2238 opt_cond_command=yes
2241 opt_arith_for_command=yes
2244 opt_separate_help=no
2247 opt_single_longdoc_strings=yes
2248 opt_casemod_attrs=yes
2249 opt_casemod_expansions=yes
2254 # Check whether --enable-minimal-config was given.
2255 if test "${enable_minimal_config+set}" = set; then
2256 enableval=$enable_minimal_config; opt_minimal_config=$enableval
2260 if test $opt_minimal_config = yes; then
2261 opt_job_control=no opt_alias=no opt_readline=no
2262 opt_history=no opt_bang_history=no opt_dirstack=no
2263 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
2264 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
2265 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
2266 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
2267 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
2268 opt_multibyte=yes opt_cond_regexp=no opt_coproc=no
2269 opt_casemod_attrs=no opt_casemod_expansions=no
2272 # Check whether --enable-alias was given.
2273 if test "${enable_alias+set}" = set; then
2274 enableval=$enable_alias; opt_alias=$enableval
2277 # Check whether --enable-arith-for-command was given.
2278 if test "${enable_arith_for_command+set}" = set; then
2279 enableval=$enable_arith_for_command; opt_arith_for_command=$enableval
2282 # Check whether --enable-array-variables was given.
2283 if test "${enable_array_variables+set}" = set; then
2284 enableval=$enable_array_variables; opt_array_variables=$enableval
2287 # Check whether --enable-bang-history was given.
2288 if test "${enable_bang_history+set}" = set; then
2289 enableval=$enable_bang_history; opt_bang_history=$enableval
2292 # Check whether --enable-brace-expansion was given.
2293 if test "${enable_brace_expansion+set}" = set; then
2294 enableval=$enable_brace_expansion; opt_brace_expansion=$enableval
2297 # Check whether --enable-casemod-attributes was given.
2298 if test "${enable_casemod_attributes+set}" = set; then
2299 enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval
2302 # Check whether --enable-casemod-expansions was given.
2303 if test "${enable_casemod_expansions+set}" = set; then
2304 enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval
2307 # Check whether --enable-command-timing was given.
2308 if test "${enable_command_timing+set}" = set; then
2309 enableval=$enable_command_timing; opt_command_timing=$enableval
2312 # Check whether --enable-cond-command was given.
2313 if test "${enable_cond_command+set}" = set; then
2314 enableval=$enable_cond_command; opt_cond_command=$enableval
2317 # Check whether --enable-cond-regexp was given.
2318 if test "${enable_cond_regexp+set}" = set; then
2319 enableval=$enable_cond_regexp; opt_cond_regexp=$enableval
2322 # Check whether --enable-coprocesses was given.
2323 if test "${enable_coprocesses+set}" = set; then
2324 enableval=$enable_coprocesses; opt_coproc=$enableval
2327 # Check whether --enable-debugger was given.
2328 if test "${enable_debugger+set}" = set; then
2329 enableval=$enable_debugger; opt_debugger=$enableval
2332 # Check whether --enable-directory-stack was given.
2333 if test "${enable_directory_stack+set}" = set; then
2334 enableval=$enable_directory_stack; opt_dirstack=$enableval
2337 # Check whether --enable-disabled-builtins was given.
2338 if test "${enable_disabled_builtins+set}" = set; then
2339 enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval
2342 # Check whether --enable-dparen-arithmetic was given.
2343 if test "${enable_dparen_arithmetic+set}" = set; then
2344 enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval
2347 # Check whether --enable-extended-glob was given.
2348 if test "${enable_extended_glob+set}" = set; then
2349 enableval=$enable_extended_glob; opt_extended_glob=$enableval
2352 # Check whether --enable-help-builtin was given.
2353 if test "${enable_help_builtin+set}" = set; then
2354 enableval=$enable_help_builtin; opt_help=$enableval
2357 # Check whether --enable-history was given.
2358 if test "${enable_history+set}" = set; then
2359 enableval=$enable_history; opt_history=$enableval
2362 # Check whether --enable-job-control was given.
2363 if test "${enable_job_control+set}" = set; then
2364 enableval=$enable_job_control; opt_job_control=$enableval
2367 # Check whether --enable-multibyte was given.
2368 if test "${enable_multibyte+set}" = set; then
2369 enableval=$enable_multibyte; opt_multibyte=$enableval
2372 # Check whether --enable-net-redirections was given.
2373 if test "${enable_net_redirections+set}" = set; then
2374 enableval=$enable_net_redirections; opt_net_redirs=$enableval
2377 # Check whether --enable-process-substitution was given.
2378 if test "${enable_process_substitution+set}" = set; then
2379 enableval=$enable_process_substitution; opt_process_subst=$enableval
2382 # Check whether --enable-progcomp was given.
2383 if test "${enable_progcomp+set}" = set; then
2384 enableval=$enable_progcomp; opt_progcomp=$enableval
2387 # Check whether --enable-prompt-string-decoding was given.
2388 if test "${enable_prompt_string_decoding+set}" = set; then
2389 enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval
2392 # Check whether --enable-readline was given.
2393 if test "${enable_readline+set}" = set; then
2394 enableval=$enable_readline; opt_readline=$enableval
2397 # Check whether --enable-restricted was given.
2398 if test "${enable_restricted+set}" = set; then
2399 enableval=$enable_restricted; opt_restricted=$enableval
2402 # Check whether --enable-select was given.
2403 if test "${enable_select+set}" = set; then
2404 enableval=$enable_select; opt_select=$enableval
2407 # Check whether --enable-separate-helpfiles was given.
2408 if test "${enable_separate_helpfiles+set}" = set; then
2409 enableval=$enable_separate_helpfiles; opt_separate_help=$enableval
2412 # Check whether --enable-single-help-strings was given.
2413 if test "${enable_single_help_strings+set}" = set; then
2414 enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval
2417 # Check whether --enable-strict-posix-default was given.
2418 if test "${enable_strict_posix_default+set}" = set; then
2419 enableval=$enable_strict_posix_default; opt_strict_posix=$enableval
2422 # Check whether --enable-usg-echo-default was given.
2423 if test "${enable_usg_echo_default+set}" = set; then
2424 enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval
2427 # Check whether --enable-xpg-echo-default was given.
2428 if test "${enable_xpg_echo_default+set}" = set; then
2429 enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval
2433 # Check whether --enable-mem-scramble was given.
2434 if test "${enable_mem_scramble+set}" = set; then
2435 enableval=$enable_mem_scramble; opt_memscramble=$enableval
2438 # Check whether --enable-profiling was given.
2439 if test "${enable_profiling+set}" = set; then
2440 enableval=$enable_profiling; opt_profiling=$enableval
2443 # Check whether --enable-static-link was given.
2444 if test "${enable_static_link+set}" = set; then
2445 enableval=$enable_static_link; opt_static_link=$enableval
2451 if test $opt_alias = yes; then
2452 cat >>confdefs.h <<\_ACEOF
2457 if test $opt_dirstack = yes; then
2458 cat >>confdefs.h <<\_ACEOF
2459 @%:@define PUSHD_AND_POPD 1
2463 if test $opt_restricted = yes; then
2464 cat >>confdefs.h <<\_ACEOF
2465 @%:@define RESTRICTED_SHELL 1
2469 if test $opt_process_subst = yes; then
2470 cat >>confdefs.h <<\_ACEOF
2471 @%:@define PROCESS_SUBSTITUTION 1
2475 if test $opt_prompt_decoding = yes; then
2476 cat >>confdefs.h <<\_ACEOF
2477 @%:@define PROMPT_STRING_DECODE 1
2481 if test $opt_select = yes; then
2482 cat >>confdefs.h <<\_ACEOF
2483 @%:@define SELECT_COMMAND 1
2487 if test $opt_help = yes; then
2488 cat >>confdefs.h <<\_ACEOF
2489 @%:@define HELP_BUILTIN 1
2493 if test $opt_array_variables = yes; then
2494 cat >>confdefs.h <<\_ACEOF
2495 @%:@define ARRAY_VARS 1
2499 if test $opt_dparen_arith = yes; then
2500 cat >>confdefs.h <<\_ACEOF
2501 @%:@define DPAREN_ARITHMETIC 1
2505 if test $opt_brace_expansion = yes; then
2506 cat >>confdefs.h <<\_ACEOF
2507 @%:@define BRACE_EXPANSION 1
2511 if test $opt_disabled_builtins = yes; then
2512 cat >>confdefs.h <<\_ACEOF
2513 @%:@define DISABLED_BUILTINS 1
2517 if test $opt_command_timing = yes; then
2518 cat >>confdefs.h <<\_ACEOF
2519 @%:@define COMMAND_TIMING 1
2523 if test $opt_xpg_echo = yes ; then
2524 cat >>confdefs.h <<\_ACEOF
2525 @%:@define DEFAULT_ECHO_TO_XPG 1
2529 if test $opt_strict_posix = yes; then
2530 cat >>confdefs.h <<\_ACEOF
2531 @%:@define STRICT_POSIX 1
2535 if test $opt_extended_glob = yes ; then
2536 cat >>confdefs.h <<\_ACEOF
2537 @%:@define EXTENDED_GLOB 1
2541 if test $opt_cond_command = yes ; then
2542 cat >>confdefs.h <<\_ACEOF
2543 @%:@define COND_COMMAND 1
2547 if test $opt_cond_regexp = yes ; then
2548 cat >>confdefs.h <<\_ACEOF
2549 @%:@define COND_REGEXP 1
2553 if test $opt_coproc = yes; then
2554 cat >>confdefs.h <<\_ACEOF
2555 @%:@define COPROCESS_SUPPORT 1
2559 if test $opt_arith_for_command = yes; then
2560 cat >>confdefs.h <<\_ACEOF
2561 @%:@define ARITH_FOR_COMMAND 1
2565 if test $opt_net_redirs = yes; then
2566 cat >>confdefs.h <<\_ACEOF
2567 @%:@define NETWORK_REDIRECTIONS 1
2571 if test $opt_progcomp = yes; then
2572 cat >>confdefs.h <<\_ACEOF
2573 @%:@define PROGRAMMABLE_COMPLETION 1
2577 if test $opt_multibyte = no; then
2578 cat >>confdefs.h <<\_ACEOF
2579 @%:@define NO_MULTIBYTE_SUPPORT 1
2583 if test $opt_debugger = yes; then
2584 cat >>confdefs.h <<\_ACEOF
2585 @%:@define DEBUGGER 1
2589 if test $opt_casemod_attrs = yes; then
2590 cat >>confdefs.h <<\_ACEOF
2591 @%:@define CASEMOD_ATTRS 1
2595 if test $opt_casemod_expansions = yes; then
2596 cat >>confdefs.h <<\_ACEOF
2597 @%:@define CASEMOD_EXPANSIONS 1
2602 if test $opt_memscramble = yes; then
2603 cat >>confdefs.h <<\_ACEOF
2604 @%:@define MEMSCRAMBLE 1
2609 if test "$opt_minimal_config" = yes; then
2610 TESTSCRIPT=run-minimal
2615 HELPDIR= HELPDIRDEFINE= HELPINSTALL=
2616 if test "$opt_separate_help" != no; then
2617 if test "$opt_separate_help" = "yes" ; then
2618 HELPDIR='${datadir}/bash'
2620 HELPDIR=$opt_separate_help
2622 HELPDIRDEFINE='-H ${HELPDIR}'
2623 HELPINSTALL='install-help'
2626 if test "$opt_single_longdoc_strings" != "yes"; then
2648 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656 if test -n "$ac_tool_prefix"; then
2657 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2658 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2661 if test "${ac_cv_prog_CC+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 if test -n "$CC"; then
2665 ac_cv_prog_CC="$CC" # Let the user override the test.
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2674 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 if test -n "$CC"; then
2686 { echo "$as_me:$LINENO: result: $CC" >&5
2687 echo "${ECHO_T}$CC" >&6; }
2689 { echo "$as_me:$LINENO: result: no" >&5
2690 echo "${ECHO_T}no" >&6; }
2695 if test -z "$ac_cv_prog_CC"; then
2697 # Extract the first word of "gcc", so it can be a program name with args.
2698 set dummy gcc; ac_word=$2
2699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2704 if test -n "$ac_ct_CC"; then
2705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2714 ac_cv_prog_ac_ct_CC="gcc"
2715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2725 if test -n "$ac_ct_CC"; then
2726 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2727 echo "${ECHO_T}$ac_ct_CC" >&6; }
2729 { echo "$as_me:$LINENO: result: no" >&5
2730 echo "${ECHO_T}no" >&6; }
2733 if test "x$ac_ct_CC" = x; then
2736 case $cross_compiling:$ac_tool_warned in
2738 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2739 whose name does not start with the host triplet. If you think this
2740 configuration is useful to you, please write to autoconf@gnu.org." >&5
2741 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2742 whose name does not start with the host triplet. If you think this
2743 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2744 ac_tool_warned=yes ;;
2752 if test -z "$CC"; then
2753 if test -n "$ac_tool_prefix"; then
2754 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2755 set dummy ${ac_tool_prefix}cc; ac_word=$2
2756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2758 if test "${ac_cv_prog_CC+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 if test -n "$CC"; then
2762 ac_cv_prog_CC="$CC" # Let the user override the test.
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2771 ac_cv_prog_CC="${ac_tool_prefix}cc"
2772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 if test -n "$CC"; then
2783 { echo "$as_me:$LINENO: result: $CC" >&5
2784 echo "${ECHO_T}$CC" >&6; }
2786 { echo "$as_me:$LINENO: result: no" >&5
2787 echo "${ECHO_T}no" >&6; }
2793 if test -z "$CC"; then
2794 # Extract the first word of "cc", so it can be a program name with args.
2795 set dummy cc; ac_word=$2
2796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2798 if test "${ac_cv_prog_CC+set}" = set; then
2799 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 if test -n "$CC"; then
2802 ac_cv_prog_CC="$CC" # Let the user override the test.
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2813 ac_prog_rejected=yes
2817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 if test $ac_prog_rejected = yes; then
2825 # We found a bogon in the path, so make sure we never use it.
2826 set dummy $ac_cv_prog_CC
2828 if test $@%:@ != 0; then
2829 # We chose a different compiler from the bogus one.
2830 # However, it has the same basename, so the bogon will be chosen
2831 # first if we set CC to just the basename; use the full file name.
2833 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2839 if test -n "$CC"; then
2840 { echo "$as_me:$LINENO: result: $CC" >&5
2841 echo "${ECHO_T}$CC" >&6; }
2843 { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2849 if test -z "$CC"; then
2850 if test -n "$ac_tool_prefix"; then
2851 for ac_prog in cl.exe
2853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2857 if test "${ac_cv_prog_CC+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 if test -n "$CC"; then
2861 ac_cv_prog_CC="$CC" # Let the user override the test.
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 if test -n "$CC"; then
2882 { echo "$as_me:$LINENO: result: $CC" >&5
2883 echo "${ECHO_T}$CC" >&6; }
2885 { echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6; }
2890 test -n "$CC" && break
2893 if test -z "$CC"; then
2895 for ac_prog in cl.exe
2897 # Extract the first word of "$ac_prog", so it can be a program name with args.
2898 set dummy $ac_prog; ac_word=$2
2899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2901 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2904 if test -n "$ac_ct_CC"; then
2905 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2914 ac_cv_prog_ac_ct_CC="$ac_prog"
2915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2925 if test -n "$ac_ct_CC"; then
2926 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2927 echo "${ECHO_T}$ac_ct_CC" >&6; }
2929 { echo "$as_me:$LINENO: result: no" >&5
2930 echo "${ECHO_T}no" >&6; }
2934 test -n "$ac_ct_CC" && break
2937 if test "x$ac_ct_CC" = x; then
2940 case $cross_compiling:$ac_tool_warned in
2942 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2943 whose name does not start with the host triplet. If you think this
2944 configuration is useful to you, please write to autoconf@gnu.org." >&5
2945 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2946 whose name does not start with the host triplet. If you think this
2947 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2948 ac_tool_warned=yes ;;
2957 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2958 See \`config.log' for more details." >&5
2959 echo "$as_me: error: no acceptable C compiler found in \$PATH
2960 See \`config.log' for more details." >&2;}
2961 { (exit 1); exit 1; }; }
2963 # Provide some information about the compiler.
2964 echo "$as_me:$LINENO: checking for C compiler version" >&5
2965 ac_compiler=`set X $ac_compile; echo $2`
2966 { (ac_try="$ac_compiler --version >&5"
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_compiler --version >&5") 2>&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }
2976 { (ac_try="$ac_compiler -v >&5"
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_compiler -v >&5") 2>&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }
2986 { (ac_try="$ac_compiler -V >&5"
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_compiler -V >&5") 2>&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }
2997 cat >conftest.$ac_ext <<_ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3012 ac_clean_files_save=$ac_clean_files
3013 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3014 # Try to create an executable without -o first, disregard a.out.
3015 # It will help us diagnose broken compilers, and finding out an intuition
3017 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3018 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3019 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3021 # List of possible output files, starting from the most likely.
3022 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3023 # only as a last resort. b.out is created by i960 compilers.
3024 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3026 # The IRIX 6 linker writes into existing files which may not be
3027 # executable, retaining their permissions. Remove them first so a
3028 # subsequent execution test works.
3030 for ac_file in $ac_files
3033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3034 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3039 if { (ac_try="$ac_link_default"
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_link_default") 2>&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; then
3049 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3050 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3051 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3052 # so that the user can short-circuit this test for compilers unknown to
3054 for ac_file in $ac_files
3056 test -f "$ac_file" || continue
3058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3061 # We found the default executable, but exeext='' is most
3065 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3067 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3069 # We set ac_cv_exeext here because the later test for it is not
3070 # safe: cross compilers may not add the suffix if given an `-o'
3071 # argument, so we may need to know it at that point already.
3072 # Even if this section looks crufty: it has the advantage of
3079 test "$ac_cv_exeext" = no && ac_cv_exeext=
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3086 See \`config.log' for more details." >&5
3087 echo "$as_me: error: C compiler cannot create executables
3088 See \`config.log' for more details." >&2;}
3089 { (exit 77); exit 77; }; }
3092 ac_exeext=$ac_cv_exeext
3093 { echo "$as_me:$LINENO: result: $ac_file" >&5
3094 echo "${ECHO_T}$ac_file" >&6; }
3096 # Check that the compiler produces executables we can run. If not, either
3097 # the compiler is broken, or we cross compile.
3098 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3099 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3100 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3101 # If not cross compiling, check that we can run a simple program.
3102 if test "$cross_compiling" != yes; then
3103 if { ac_try='./$ac_file'
3104 { (case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109 (eval "$ac_try") 2>&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3115 if test "$cross_compiling" = maybe; then
3118 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3119 If you meant to cross compile, use \`--host'.
3120 See \`config.log' for more details." >&5
3121 echo "$as_me: error: cannot run C compiled programs.
3122 If you meant to cross compile, use \`--host'.
3123 See \`config.log' for more details." >&2;}
3124 { (exit 1); exit 1; }; }
3128 { echo "$as_me:$LINENO: result: yes" >&5
3129 echo "${ECHO_T}yes" >&6; }
3131 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3132 ac_clean_files=$ac_clean_files_save
3133 # Check that the compiler produces executables we can run. If not, either
3134 # the compiler is broken, or we cross compile.
3135 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3136 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3137 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3138 echo "${ECHO_T}$cross_compiling" >&6; }
3140 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3141 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3142 if { (ac_try="$ac_link"
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_link") 2>&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; then
3152 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3153 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3154 # work properly (i.e., refer to `conftest.exe'), while it won't with
3156 for ac_file in conftest.exe conftest conftest.*; do
3157 test -f "$ac_file" || continue
3159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3160 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3166 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3167 See \`config.log' for more details." >&5
3168 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3169 See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }
3173 rm -f conftest$ac_cv_exeext
3174 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3175 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3177 rm -f conftest.$ac_ext
3178 EXEEXT=$ac_cv_exeext
3180 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3181 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3182 if test "${ac_cv_objext+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 cat >conftest.$ac_ext <<_ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3200 rm -f conftest.o conftest.obj
3201 if { (ac_try="$ac_compile"
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_compile") 2>&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; then
3211 for ac_file in conftest.o conftest.obj conftest.*; do
3212 test -f "$ac_file" || continue;
3214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3215 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3223 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3224 See \`config.log' for more details." >&5
3225 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3226 See \`config.log' for more details." >&2;}
3227 { (exit 1); exit 1; }; }
3230 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3232 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3233 echo "${ECHO_T}$ac_cv_objext" >&6; }
3234 OBJEXT=$ac_cv_objext
3236 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3237 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3238 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 cat >conftest.$ac_ext <<_ACEOF
3244 cat confdefs.h >>conftest.$ac_ext
3245 cat >>conftest.$ac_ext <<_ACEOF
3246 /* end confdefs.h. */
3259 rm -f conftest.$ac_objext
3260 if { (ac_try="$ac_compile"
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266 (eval "$ac_compile") 2>conftest.er1
3268 grep -v '^ *+' conftest.er1 >conftest.err
3270 cat conftest.err >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3274 { (case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279 (eval "$ac_try") 2>&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; } &&
3283 { ac_try='test -s conftest.$ac_objext'
3284 { (case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_try") 2>&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3305 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3306 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3307 GCC=`test $ac_compiler_gnu = yes && echo yes`
3308 ac_test_CFLAGS=${CFLAGS+set}
3309 ac_save_CFLAGS=$CFLAGS
3310 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3311 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3312 if test "${ac_cv_prog_cc_g+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 ac_save_c_werror_flag=$ac_c_werror_flag
3316 ac_c_werror_flag=yes
3319 cat >conftest.$ac_ext <<_ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3334 rm -f conftest.$ac_objext
3335 if { (ac_try="$ac_compile"
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_compile") 2>conftest.er1
3343 grep -v '^ *+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } &&
3348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3349 { (case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354 (eval "$ac_try") 2>&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; } &&
3358 { ac_try='test -s conftest.$ac_objext'
3359 { (case "(($ac_try" in
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3364 (eval "$ac_try") 2>&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; }; then
3370 echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3374 cat >conftest.$ac_ext <<_ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3389 rm -f conftest.$ac_objext
3390 if { (ac_try="$ac_compile"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_compile") 2>conftest.er1
3398 grep -v '^ *+' conftest.er1 >conftest.err
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } &&
3403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3404 { (case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409 (eval "$ac_try") 2>&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; } &&
3413 { ac_try='test -s conftest.$ac_objext'
3414 { (case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419 (eval "$ac_try") 2>&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }; }; then
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 ac_c_werror_flag=$ac_save_c_werror_flag
3430 cat >conftest.$ac_ext <<_ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3445 rm -f conftest.$ac_objext
3446 if { (ac_try="$ac_compile"
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_compile") 2>conftest.er1
3454 grep -v '^ *+' conftest.er1 >conftest.err
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } &&
3459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3460 { (case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465 (eval "$ac_try") 2>&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; } &&
3469 { ac_try='test -s conftest.$ac_objext'
3470 { (case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3475 (eval "$ac_try") 2>&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; }; then
3481 echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 ac_c_werror_flag=$ac_save_c_werror_flag
3496 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3497 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3498 if test "$ac_test_CFLAGS" = set; then
3499 CFLAGS=$ac_save_CFLAGS
3500 elif test $ac_cv_prog_cc_g = yes; then
3501 if test "$GCC" = yes; then
3507 if test "$GCC" = yes; then
3513 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3514 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3515 if test "${ac_cv_prog_cc_c89+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 ac_cv_prog_cc_c89=no
3520 cat >conftest.$ac_ext <<_ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3528 #include <sys/types.h>
3529 #include <sys/stat.h>
3530 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3531 struct buf { int x; };
3532 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3533 static char *e (p, i)
3539 static char *f (char * (*g) (char **, int), char **p, ...)
3544 s = g (p, va_arg (v,int));
3549 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3550 function prototypes and stuff, but not '\xHH' hex character constants.
3551 These don't provoke an error unfortunately, instead are silently treated
3552 as 'x'. The following induces an error, until -std is added to get
3553 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3554 array size at least. It's necessary to write '\x00'==0 to get something
3555 that's true only with -std. */
3556 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3558 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3559 inside strings and character constants. */
3561 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3563 int test (int i, double x);
3564 struct s1 {int (*f) (int a);};
3565 struct s2 {int (*f) (double a);};
3566 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3572 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3577 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3578 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3580 CC="$ac_save_CC $ac_arg"
3581 rm -f conftest.$ac_objext
3582 if { (ac_try="$ac_compile"
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588 (eval "$ac_compile") 2>conftest.er1
3590 grep -v '^ *+' conftest.er1 >conftest.err
3592 cat conftest.err >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } &&
3595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3596 { (case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_try") 2>&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; } &&
3605 { ac_try='test -s conftest.$ac_objext'
3606 { (case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611 (eval "$ac_try") 2>&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; }; then
3615 ac_cv_prog_cc_c89=$ac_arg
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3623 rm -f core conftest.err conftest.$ac_objext
3624 test "x$ac_cv_prog_cc_c89" != "xno" && break
3626 rm -f conftest.$ac_ext
3631 case "x$ac_cv_prog_cc_c89" in
3633 { echo "$as_me:$LINENO: result: none needed" >&5
3634 echo "${ECHO_T}none needed" >&6; } ;;
3636 { echo "$as_me:$LINENO: result: unsupported" >&5
3637 echo "${ECHO_T}unsupported" >&6; } ;;
3639 CC="$CC $ac_cv_prog_cc_c89"
3640 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3641 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3655 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3656 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 ac_check_lib_save_LIBS=$LIBS
3660 LIBS="-lcposix $LIBS"
3661 cat >conftest.$ac_ext <<_ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3668 /* Override any GCC internal prototype to avoid an error.
3669 Use char because int might match the return type of a GCC
3670 builtin and then its argument prototype would still apply. */
3683 rm -f conftest.$ac_objext conftest$ac_exeext
3684 if { (ac_try="$ac_link"
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690 (eval "$ac_link") 2>conftest.er1
3692 grep -v '^ *+' conftest.er1 >conftest.err
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } &&
3697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3698 { (case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3703 (eval "$ac_try") 2>&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; } &&
3707 { ac_try='test -s conftest$ac_exeext'
3708 { (case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713 (eval "$ac_try") 2>&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; }; then
3717 ac_cv_lib_cposix_strerror=yes
3719 echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3722 ac_cv_lib_cposix_strerror=no
3725 rm -f core conftest.err conftest.$ac_objext \
3726 conftest$ac_exeext conftest.$ac_ext
3727 LIBS=$ac_check_lib_save_LIBS
3729 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3730 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3731 if test $ac_cv_lib_cposix_strerror = yes; then
3732 LIBS="$LIBS -lcposix"
3738 ac_cpp='$CPP $CPPFLAGS'
3739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3742 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3743 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3744 # On Suns, sometimes $CPP names a directory.
3745 if test -n "$CPP" && test -d "$CPP"; then
3748 if test -z "$CPP"; then
3749 if test "${ac_cv_prog_CPP+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 # Double quotes because CPP needs to be expanded
3753 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3756 for ac_c_preproc_warn_flag in '' yes
3758 # Use a header file that comes with gcc, so configuring glibc
3759 # with a fresh cross-compiler works.
3760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3761 # <limits.h> exists even on freestanding compilers.
3762 # On the NeXT, cc -E runs the code through the compiler's parser,
3763 # not just through cpp. "Syntax error" is here to catch this case.
3764 cat >conftest.$ac_ext <<_ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3771 @%:@ include <limits.h>
3773 @%:@ include <assert.h>
3777 if { (ac_try="$ac_cpp conftest.$ac_ext"
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3785 grep -v '^ *+' conftest.er1 >conftest.err
3787 cat conftest.err >&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); } >/dev/null; then
3790 if test -s conftest.err; then
3791 ac_cpp_err=$ac_c_preproc_warn_flag
3792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3799 if test -z "$ac_cpp_err"; then
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3805 # Broken: fails on valid input.
3809 rm -f conftest.err conftest.$ac_ext
3811 # OK, works on sane cases. Now check whether nonexistent headers
3812 # can be detected and how.
3813 cat >conftest.$ac_ext <<_ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3819 @%:@include <ac_nonexistent.h>
3821 if { (ac_try="$ac_cpp conftest.$ac_ext"
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3829 grep -v '^ *+' conftest.er1 >conftest.err
3831 cat conftest.err >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } >/dev/null; then
3834 if test -s conftest.err; then
3835 ac_cpp_err=$ac_c_preproc_warn_flag
3836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3843 if test -z "$ac_cpp_err"; then
3844 # Broken: success on invalid input.
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 # Passes both tests.
3855 rm -f conftest.err conftest.$ac_ext
3858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3859 rm -f conftest.err conftest.$ac_ext
3860 if $ac_preproc_ok; then
3872 { echo "$as_me:$LINENO: result: $CPP" >&5
3873 echo "${ECHO_T}$CPP" >&6; }
3875 for ac_c_preproc_warn_flag in '' yes
3877 # Use a header file that comes with gcc, so configuring glibc
3878 # with a fresh cross-compiler works.
3879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3880 # <limits.h> exists even on freestanding compilers.
3881 # On the NeXT, cc -E runs the code through the compiler's parser,
3882 # not just through cpp. "Syntax error" is here to catch this case.
3883 cat >conftest.$ac_ext <<_ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3890 @%:@ include <limits.h>
3892 @%:@ include <assert.h>
3896 if { (ac_try="$ac_cpp conftest.$ac_ext"
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3904 grep -v '^ *+' conftest.er1 >conftest.err
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } >/dev/null; then
3909 if test -s conftest.err; then
3910 ac_cpp_err=$ac_c_preproc_warn_flag
3911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3918 if test -z "$ac_cpp_err"; then
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3924 # Broken: fails on valid input.
3928 rm -f conftest.err conftest.$ac_ext
3930 # OK, works on sane cases. Now check whether nonexistent headers
3931 # can be detected and how.
3932 cat >conftest.$ac_ext <<_ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3938 @%:@include <ac_nonexistent.h>
3940 if { (ac_try="$ac_cpp conftest.$ac_ext"
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3948 grep -v '^ *+' conftest.er1 >conftest.err
3950 cat conftest.err >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } >/dev/null; then
3953 if test -s conftest.err; then
3954 ac_cpp_err=$ac_c_preproc_warn_flag
3955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3962 if test -z "$ac_cpp_err"; then
3963 # Broken: success on invalid input.
3966 echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3969 # Passes both tests.
3974 rm -f conftest.err conftest.$ac_ext
3977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3978 rm -f conftest.err conftest.$ac_ext
3979 if $ac_preproc_ok; then
3982 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3983 See \`config.log' for more details." >&5
3984 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3985 See \`config.log' for more details." >&2;}
3986 { (exit 1); exit 1; }; }
3990 ac_cpp='$CPP $CPPFLAGS'
3991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3996 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3997 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3998 if test "${ac_cv_path_GREP+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 # Extract the first word of "grep ggrep" to use in msg output
4002 if test -z "$GREP"; then
4003 set dummy grep ggrep; ac_prog_name=$2
4004 if test "${ac_cv_path_GREP+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 ac_path_GREP_found=false
4008 # Loop through the user's path and test for each of PROGNAME-LIST
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4013 test -z "$as_dir" && as_dir=.
4014 for ac_prog in grep ggrep; do
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4017 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4018 # Check for GNU ac_path_GREP and select it if it is found.
4019 # Check for GNU $ac_path_GREP
4020 case `"$ac_path_GREP" --version 2>&1` in
4022 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4025 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4028 cat "conftest.in" "conftest.in" >"conftest.tmp"
4029 mv "conftest.tmp" "conftest.in"
4030 cp "conftest.in" "conftest.nl"
4031 echo 'GREP' >> "conftest.nl"
4032 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4033 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4034 ac_count=`expr $ac_count + 1`
4035 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4036 # Best one so far, save it but keep looking for a better one
4037 ac_cv_path_GREP="$ac_path_GREP"
4038 ac_path_GREP_max=$ac_count
4040 # 10*(2^10) chars as input seems more than enough
4041 test $ac_count -gt 10 && break
4043 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4047 $ac_path_GREP_found && break 3
4057 GREP="$ac_cv_path_GREP"
4058 if test -z "$GREP"; then
4059 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4060 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4061 { (exit 1); exit 1; }; }
4065 ac_cv_path_GREP=$GREP
4070 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4071 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4072 GREP="$ac_cv_path_GREP"
4075 { echo "$as_me:$LINENO: checking for egrep" >&5
4076 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4077 if test "${ac_cv_path_EGREP+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4081 then ac_cv_path_EGREP="$GREP -E"
4083 # Extract the first word of "egrep" to use in msg output
4084 if test -z "$EGREP"; then
4085 set dummy egrep; ac_prog_name=$2
4086 if test "${ac_cv_path_EGREP+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 ac_path_EGREP_found=false
4090 # Loop through the user's path and test for each of PROGNAME-LIST
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4095 test -z "$as_dir" && as_dir=.
4096 for ac_prog in egrep; do
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4099 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4100 # Check for GNU ac_path_EGREP and select it if it is found.
4101 # Check for GNU $ac_path_EGREP
4102 case `"$ac_path_EGREP" --version 2>&1` in
4104 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4107 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4110 cat "conftest.in" "conftest.in" >"conftest.tmp"
4111 mv "conftest.tmp" "conftest.in"
4112 cp "conftest.in" "conftest.nl"
4113 echo 'EGREP' >> "conftest.nl"
4114 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4116 ac_count=`expr $ac_count + 1`
4117 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4118 # Best one so far, save it but keep looking for a better one
4119 ac_cv_path_EGREP="$ac_path_EGREP"
4120 ac_path_EGREP_max=$ac_count
4122 # 10*(2^10) chars as input seems more than enough
4123 test $ac_count -gt 10 && break
4125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4129 $ac_path_EGREP_found && break 3
4139 EGREP="$ac_cv_path_EGREP"
4140 if test -z "$EGREP"; then
4141 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4142 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4143 { (exit 1); exit 1; }; }
4147 ac_cv_path_EGREP=$EGREP
4153 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4154 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4155 EGREP="$ac_cv_path_EGREP"
4158 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4159 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4160 if test "${ac_cv_header_stdc+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 cat >conftest.$ac_ext <<_ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4182 rm -f conftest.$ac_objext
4183 if { (ac_try="$ac_compile"
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_compile") 2>conftest.er1
4191 grep -v '^ *+' conftest.er1 >conftest.err
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } &&
4196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4197 { (case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_try") 2>&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; } &&
4206 { ac_try='test -s conftest.$ac_objext'
4207 { (case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_try") 2>&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; }; then
4216 ac_cv_header_stdc=yes
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4221 ac_cv_header_stdc=no
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 if test $ac_cv_header_stdc = yes; then
4227 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4228 cat >conftest.$ac_ext <<_ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4238 $EGREP "memchr" >/dev/null 2>&1; then
4241 ac_cv_header_stdc=no
4247 if test $ac_cv_header_stdc = yes; then
4248 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4249 cat >conftest.$ac_ext <<_ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4259 $EGREP "free" >/dev/null 2>&1; then
4262 ac_cv_header_stdc=no
4268 if test $ac_cv_header_stdc = yes; then
4269 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4270 if test "$cross_compiling" = yes; then
4273 cat >conftest.$ac_ext <<_ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h. */
4281 #if ((' ' & 0x0FF) == 0x020)
4282 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4283 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4285 # define ISLOWER(c) \
4286 (('a' <= (c) && (c) <= 'i') \
4287 || ('j' <= (c) && (c) <= 'r') \
4288 || ('s' <= (c) && (c) <= 'z'))
4289 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4292 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4297 for (i = 0; i < 256; i++)
4298 if (XOR (islower (i), ISLOWER (i))
4299 || toupper (i) != TOUPPER (i))
4304 rm -f conftest$ac_exeext
4305 if { (ac_try="$ac_link"
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_link") 2>&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4315 { (case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_try") 2>&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4326 echo "$as_me: program exited with status $ac_status" >&5
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4331 ac_cv_header_stdc=no
4333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4339 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4340 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4341 if test $ac_cv_header_stdc = yes; then
4343 cat >>confdefs.h <<\_ACEOF
4344 @%:@define STDC_HEADERS 1
4349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4359 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4360 inttypes.h stdint.h unistd.h
4362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 cat >conftest.$ac_ext <<_ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4374 $ac_includes_default
4376 @%:@include <$ac_header>
4378 rm -f conftest.$ac_objext
4379 if { (ac_try="$ac_compile"
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4385 (eval "$ac_compile") 2>conftest.er1
4387 grep -v '^ *+' conftest.er1 >conftest.err
4389 cat conftest.err >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } &&
4392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4393 { (case "(($ac_try" in
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4398 (eval "$ac_try") 2>&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; } &&
4402 { ac_try='test -s conftest.$ac_objext'
4403 { (case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4408 (eval "$ac_try") 2>&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; }; then
4412 eval "$as_ac_Header=yes"
4414 echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4417 eval "$as_ac_Header=no"
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422 ac_res=`eval echo '${'$as_ac_Header'}'`
4423 { echo "$as_me:$LINENO: result: $ac_res" >&5
4424 echo "${ECHO_T}$ac_res" >&6; }
4425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4426 cat >>confdefs.h <<_ACEOF
4427 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4435 if test "${ac_cv_header_minix_config_h+set}" = set; then
4436 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4437 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4438 if test "${ac_cv_header_minix_config_h+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4442 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4444 # Is the header compilable?
4445 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4446 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4447 cat >conftest.$ac_ext <<_ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 $ac_includes_default
4454 @%:@include <minix/config.h>
4456 rm -f conftest.$ac_objext
4457 if { (ac_try="$ac_compile"
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_compile") 2>conftest.er1
4465 grep -v '^ *+' conftest.er1 >conftest.err
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4471 { (case "(($ac_try" in
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_try") 2>&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; } &&
4480 { ac_try='test -s conftest.$ac_objext'
4481 { (case "(($ac_try" in
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486 (eval "$ac_try") 2>&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4490 ac_header_compiler=yes
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4495 ac_header_compiler=no
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4500 echo "${ECHO_T}$ac_header_compiler" >&6; }
4502 # Is the header present?
4503 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4504 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4505 cat >conftest.$ac_ext <<_ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4511 @%:@include <minix/config.h>
4513 if { (ac_try="$ac_cpp conftest.$ac_ext"
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4521 grep -v '^ *+' conftest.er1 >conftest.err
4523 cat conftest.err >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); } >/dev/null; then
4526 if test -s conftest.err; then
4527 ac_cpp_err=$ac_c_preproc_warn_flag
4528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4535 if test -z "$ac_cpp_err"; then
4536 ac_header_preproc=yes
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4541 ac_header_preproc=no
4544 rm -f conftest.err conftest.$ac_ext
4545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4546 echo "${ECHO_T}$ac_header_preproc" >&6; }
4548 # So? What about this header?
4549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4551 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4552 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4553 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4554 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4555 ac_header_preproc=yes
4558 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4559 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4560 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4561 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4562 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4563 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4564 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4565 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4566 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4567 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4568 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4569 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4571 @%:@@%:@ ------------------------------- @%:@@%:@
4572 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
4573 @%:@@%:@ ------------------------------- @%:@@%:@
4575 ) | sed "s/^/$as_me: WARNING: /" >&2
4578 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4579 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4580 if test "${ac_cv_header_minix_config_h+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 ac_cv_header_minix_config_h=$ac_header_preproc
4585 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4586 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4589 if test $ac_cv_header_minix_config_h = yes; then
4596 if test "$MINIX" = yes; then
4598 cat >>confdefs.h <<\_ACEOF
4599 @%:@define _POSIX_SOURCE 1
4603 cat >>confdefs.h <<\_ACEOF
4604 @%:@define _POSIX_1_SOURCE 2
4608 cat >>confdefs.h <<\_ACEOF
4615 # Check whether --enable-largefile was given.
4616 if test "${enable_largefile+set}" = set; then
4617 enableval=$enable_largefile;
4620 if test "$enable_largefile" != no; then
4622 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4623 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4624 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 ac_cv_sys_largefile_CC=no
4628 if test "$GCC" != yes; then
4631 # IRIX 6.2 and later do not support large files by default,
4632 # so use the C compiler's -n32 option if that helps.
4633 cat >conftest.$ac_ext <<_ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4639 @%:@include <sys/types.h>
4640 /* Check that off_t can represent 2**63 - 1 correctly.
4641 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4642 since some C++ compilers masquerading as C compilers
4643 incorrectly reject 9223372036854775807. */
4644 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4645 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4646 && LARGE_OFF_T % 2147483647 == 1)
4656 rm -f conftest.$ac_objext
4657 if { (ac_try="$ac_compile"
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4663 (eval "$ac_compile") 2>conftest.er1
4665 grep -v '^ *+' conftest.er1 >conftest.err
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4671 { (case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676 (eval "$ac_try") 2>&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; } &&
4680 { ac_try='test -s conftest.$ac_objext'
4681 { (case "(($ac_try" in
4682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4686 (eval "$ac_try") 2>&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
4692 echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4698 rm -f core conftest.err conftest.$ac_objext
4700 rm -f conftest.$ac_objext
4701 if { (ac_try="$ac_compile"
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707 (eval "$ac_compile") 2>conftest.er1
4709 grep -v '^ *+' conftest.er1 >conftest.err
4711 cat conftest.err >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } &&
4714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4715 { (case "(($ac_try" in
4716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717 *) ac_try_echo=$ac_try;;
4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720 (eval "$ac_try") 2>&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; } &&
4724 { ac_try='test -s conftest.$ac_objext'
4725 { (case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_try") 2>&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4734 ac_cv_sys_largefile_CC=' -n32'; break
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4742 rm -f core conftest.err conftest.$ac_objext
4746 rm -f conftest.$ac_ext
4749 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4750 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4751 if test "$ac_cv_sys_largefile_CC" != no; then
4752 CC=$CC$ac_cv_sys_largefile_CC
4755 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4756 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4757 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 ac_cv_sys_file_offset_bits=no
4762 cat >conftest.$ac_ext <<_ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 @%:@include <sys/types.h>
4769 /* Check that off_t can represent 2**63 - 1 correctly.
4770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4771 since some C++ compilers masquerading as C compilers
4772 incorrectly reject 9223372036854775807. */
4773 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4775 && LARGE_OFF_T % 2147483647 == 1)
4785 rm -f conftest.$ac_objext
4786 if { (ac_try="$ac_compile"
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4792 (eval "$ac_compile") 2>conftest.er1
4794 grep -v '^ *+' conftest.er1 >conftest.err
4796 cat conftest.err >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } &&
4799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4800 { (case "(($ac_try" in
4801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4802 *) ac_try_echo=$ac_try;;
4804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4805 (eval "$ac_try") 2>&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; } &&
4809 { ac_try='test -s conftest.$ac_objext'
4810 { (case "(($ac_try" in
4811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4812 *) ac_try_echo=$ac_try;;
4814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4815 (eval "$ac_try") 2>&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; }; then
4821 echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.$ac_ext >&5
4827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828 cat >conftest.$ac_ext <<_ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4834 @%:@define _FILE_OFFSET_BITS 64
4835 @%:@include <sys/types.h>
4836 /* Check that off_t can represent 2**63 - 1 correctly.
4837 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4838 since some C++ compilers masquerading as C compilers
4839 incorrectly reject 9223372036854775807. */
4840 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4841 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4842 && LARGE_OFF_T % 2147483647 == 1)
4852 rm -f conftest.$ac_objext
4853 if { (ac_try="$ac_compile"
4855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4859 (eval "$ac_compile") 2>conftest.er1
4861 grep -v '^ *+' conftest.er1 >conftest.err
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } &&
4866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4867 { (case "(($ac_try" in
4868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869 *) ac_try_echo=$ac_try;;
4871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4872 (eval "$ac_try") 2>&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; } &&
4876 { ac_try='test -s conftest.$ac_objext'
4877 { (case "(($ac_try" in
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_try") 2>&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_sys_file_offset_bits=64; break
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4899 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4900 if test "$ac_cv_sys_file_offset_bits" != no; then
4902 cat >>confdefs.h <<_ACEOF
4903 @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4908 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4909 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4910 if test "${ac_cv_sys_large_files+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 ac_cv_sys_large_files=no
4915 cat >conftest.$ac_ext <<_ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 @%:@include <sys/types.h>
4922 /* Check that off_t can represent 2**63 - 1 correctly.
4923 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4924 since some C++ compilers masquerading as C compilers
4925 incorrectly reject 9223372036854775807. */
4926 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4927 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4928 && LARGE_OFF_T % 2147483647 == 1)
4938 rm -f conftest.$ac_objext
4939 if { (ac_try="$ac_compile"
4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 *) ac_try_echo=$ac_try;;
4944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4945 (eval "$ac_compile") 2>conftest.er1
4947 grep -v '^ *+' conftest.er1 >conftest.err
4949 cat conftest.err >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } &&
4952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4953 { (case "(($ac_try" in
4954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955 *) ac_try_echo=$ac_try;;
4957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4958 (eval "$ac_try") 2>&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; } &&
4962 { ac_try='test -s conftest.$ac_objext'
4963 { (case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4968 (eval "$ac_try") 2>&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; }; then
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4981 cat >conftest.$ac_ext <<_ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h. */
4987 @%:@define _LARGE_FILES 1
4988 @%:@include <sys/types.h>
4989 /* Check that off_t can represent 2**63 - 1 correctly.
4990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4991 since some C++ compilers masquerading as C compilers
4992 incorrectly reject 9223372036854775807. */
4993 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4995 && LARGE_OFF_T % 2147483647 == 1)
5005 rm -f conftest.$ac_objext
5006 if { (ac_try="$ac_compile"
5008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009 *) ac_try_echo=$ac_try;;
5011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5012 (eval "$ac_compile") 2>conftest.er1
5014 grep -v '^ *+' conftest.er1 >conftest.err
5016 cat conftest.err >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } &&
5019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5020 { (case "(($ac_try" in
5021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5022 *) ac_try_echo=$ac_try;;
5024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5025 (eval "$ac_try") 2>&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; } &&
5029 { ac_try='test -s conftest.$ac_objext'
5030 { (case "(($ac_try" in
5031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032 *) ac_try_echo=$ac_try;;
5034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5035 (eval "$ac_try") 2>&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; }; then
5039 ac_cv_sys_large_files=1; break
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5052 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5053 if test "$ac_cv_sys_large_files" != no; then
5055 cat >>confdefs.h <<_ACEOF
5056 @%:@define _LARGE_FILES $ac_cv_sys_large_files
5066 SIGNAMES_H=lsignames.h
5071 if test "x$cross_compiling" = "xyes"; then
5074 cross_cache=${srcdir}/cross-build/cygwin32.cache
5077 cross_cache=${srcdir}/cross-build/cygwin32.cache
5080 cross_cache=${srcdir}/cross-build/x86-beos.cache
5082 *) echo "configure: cross-compiling for $host is not supported" >&2
5085 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
5086 echo "loading cross-build cache file ${cross_cache}"
5090 SIGNAMES_O='signames.o'
5091 CROSS_COMPILE='-DCROSS_COMPILING'
5097 if test -z "$CC_FOR_BUILD"; then
5098 if test "x$cross_compiling" = "xno"; then
5099 CC_FOR_BUILD='$(CC)'
5107 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
5109 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
5111 if test "$opt_profiling" = "yes"; then
5115 *) opt_static_link=yes ;;
5117 DEBUG= MALLOC_DEBUG=
5120 if test "$opt_static_link" = yes; then
5121 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
5122 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
5126 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
5131 if test "X$cross_compiling" = "Xno"; then
5132 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
5133 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
5135 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
5136 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
5139 test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
5150 if test $ac_cv_c_compiler_gnu = yes; then
5151 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5152 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
5153 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 ac_pattern="Autoconf.*'x'"
5157 cat >conftest.$ac_ext <<_ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h. */
5166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5167 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5168 ac_cv_prog_gcc_traditional=yes
5170 ac_cv_prog_gcc_traditional=no
5175 if test $ac_cv_prog_gcc_traditional = no; then
5176 cat >conftest.$ac_ext <<_ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5186 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5187 ac_cv_prog_gcc_traditional=yes
5193 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5194 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
5195 if test $ac_cv_prog_gcc_traditional = yes; then
5196 CC="$CC -traditional"
5202 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
5204 # If the user specified --with-installed-readline=PREFIX and PREFIX
5205 # is not `yes', set ac_cv_rl_prefix to PREFIX
5206 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
5209 if test "X$bash_cv_termcap_lib" = "X"; then
5212 { echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5213 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6; }
5216 if test "${bash_cv_termcap_lib+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 { echo "$as_me:$LINENO: checking for tgetent" >&5
5220 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6; }
5221 if test "${ac_cv_func_tgetent+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 cat >conftest.$ac_ext <<_ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5230 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
5231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5232 #define tgetent innocuous_tgetent
5234 /* System header to define __stub macros and hopefully few prototypes,
5235 which can conflict with char tgetent (); below.
5236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5237 <limits.h> exists even on freestanding compilers. */
5240 # include <limits.h>
5242 # include <assert.h>
5247 /* Override any GCC internal prototype to avoid an error.
5248 Use char because int might match the return type of a GCC
5249 builtin and then its argument prototype would still apply. */
5254 /* The GNU C library defines this for functions which it implements
5255 to always fail with ENOSYS. Some functions are actually named
5256 something starting with __ and the normal name is an alias. */
5257 #if defined __stub_tgetent || defined __stub___tgetent
5269 rm -f conftest.$ac_objext conftest$ac_exeext
5270 if { (ac_try="$ac_link"
5272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276 (eval "$ac_link") 2>conftest.er1
5278 grep -v '^ *+' conftest.er1 >conftest.err
5280 cat conftest.err >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } &&
5283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5284 { (case "(($ac_try" in
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_try") 2>&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; } &&
5293 { ac_try='test -s conftest$ac_exeext'
5294 { (case "(($ac_try" in
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299 (eval "$ac_try") 2>&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5303 ac_cv_func_tgetent=yes
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5308 ac_cv_func_tgetent=no
5311 rm -f core conftest.err conftest.$ac_objext \
5312 conftest$ac_exeext conftest.$ac_ext
5314 { echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
5315 echo "${ECHO_T}$ac_cv_func_tgetent" >&6; }
5316 if test $ac_cv_func_tgetent = yes; then
5317 bash_cv_termcap_lib=libc
5319 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5320 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
5321 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 ac_check_lib_save_LIBS=$LIBS
5325 LIBS="-ltermcap $LIBS"
5326 cat >conftest.$ac_ext <<_ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5333 /* Override any GCC internal prototype to avoid an error.
5334 Use char because int might match the return type of a GCC
5335 builtin and then its argument prototype would still apply. */
5348 rm -f conftest.$ac_objext conftest$ac_exeext
5349 if { (ac_try="$ac_link"
5351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5352 *) ac_try_echo=$ac_try;;
5354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5355 (eval "$ac_link") 2>conftest.er1
5357 grep -v '^ *+' conftest.er1 >conftest.err
5359 cat conftest.err >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); } &&
5362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5363 { (case "(($ac_try" in
5364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365 *) ac_try_echo=$ac_try;;
5367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5368 (eval "$ac_try") 2>&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; } &&
5372 { ac_try='test -s conftest$ac_exeext'
5373 { (case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_try") 2>&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }; }; then
5382 ac_cv_lib_termcap_tgetent=yes
5384 echo "$as_me: failed program was:" >&5
5385 sed 's/^/| /' conftest.$ac_ext >&5
5387 ac_cv_lib_termcap_tgetent=no
5390 rm -f core conftest.err conftest.$ac_objext \
5391 conftest$ac_exeext conftest.$ac_ext
5392 LIBS=$ac_check_lib_save_LIBS
5394 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5395 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
5396 if test $ac_cv_lib_termcap_tgetent = yes; then
5397 bash_cv_termcap_lib=libtermcap
5399 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
5400 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
5401 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 ac_check_lib_save_LIBS=$LIBS
5405 LIBS="-ltinfo $LIBS"
5406 cat >conftest.$ac_ext <<_ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5413 /* Override any GCC internal prototype to avoid an error.
5414 Use char because int might match the return type of a GCC
5415 builtin and then its argument prototype would still apply. */
5428 rm -f conftest.$ac_objext conftest$ac_exeext
5429 if { (ac_try="$ac_link"
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_link") 2>conftest.er1
5437 grep -v '^ *+' conftest.er1 >conftest.err
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } &&
5442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5443 { (case "(($ac_try" in
5444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5445 *) ac_try_echo=$ac_try;;
5447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5448 (eval "$ac_try") 2>&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; } &&
5452 { ac_try='test -s conftest$ac_exeext'
5453 { (case "(($ac_try" in
5454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455 *) ac_try_echo=$ac_try;;
5457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5458 (eval "$ac_try") 2>&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; }; then
5462 ac_cv_lib_tinfo_tgetent=yes
5464 echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5467 ac_cv_lib_tinfo_tgetent=no
5470 rm -f core conftest.err conftest.$ac_objext \
5471 conftest$ac_exeext conftest.$ac_ext
5472 LIBS=$ac_check_lib_save_LIBS
5474 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
5475 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
5476 if test $ac_cv_lib_tinfo_tgetent = yes; then
5477 bash_cv_termcap_lib=libtinfo
5479 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5480 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
5481 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 ac_check_lib_save_LIBS=$LIBS
5485 LIBS="-lcurses $LIBS"
5486 cat >conftest.$ac_ext <<_ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5493 /* Override any GCC internal prototype to avoid an error.
5494 Use char because int might match the return type of a GCC
5495 builtin and then its argument prototype would still apply. */
5508 rm -f conftest.$ac_objext conftest$ac_exeext
5509 if { (ac_try="$ac_link"
5511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512 *) ac_try_echo=$ac_try;;
5514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515 (eval "$ac_link") 2>conftest.er1
5517 grep -v '^ *+' conftest.er1 >conftest.err
5519 cat conftest.err >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } &&
5522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5523 { (case "(($ac_try" in
5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525 *) ac_try_echo=$ac_try;;
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528 (eval "$ac_try") 2>&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; } &&
5532 { ac_try='test -s conftest$ac_exeext'
5533 { (case "(($ac_try" in
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_try") 2>&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }; }; then
5542 ac_cv_lib_curses_tgetent=yes
5544 echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5547 ac_cv_lib_curses_tgetent=no
5550 rm -f core conftest.err conftest.$ac_objext \
5551 conftest$ac_exeext conftest.$ac_ext
5552 LIBS=$ac_check_lib_save_LIBS
5554 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5555 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
5556 if test $ac_cv_lib_curses_tgetent = yes; then
5557 bash_cv_termcap_lib=libcurses
5559 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5560 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
5561 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 ac_check_lib_save_LIBS=$LIBS
5565 LIBS="-lncurses $LIBS"
5566 cat >conftest.$ac_ext <<_ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h. */
5573 /* Override any GCC internal prototype to avoid an error.
5574 Use char because int might match the return type of a GCC
5575 builtin and then its argument prototype would still apply. */
5588 rm -f conftest.$ac_objext conftest$ac_exeext
5589 if { (ac_try="$ac_link"
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595 (eval "$ac_link") 2>conftest.er1
5597 grep -v '^ *+' conftest.er1 >conftest.err
5599 cat conftest.err >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } &&
5602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5603 { (case "(($ac_try" in
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_try") 2>&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; } &&
5612 { ac_try='test -s conftest$ac_exeext'
5613 { (case "(($ac_try" in
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618 (eval "$ac_try") 2>&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 ac_cv_lib_ncurses_tgetent=yes
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5627 ac_cv_lib_ncurses_tgetent=no
5630 rm -f core conftest.err conftest.$ac_objext \
5631 conftest$ac_exeext conftest.$ac_ext
5632 LIBS=$ac_check_lib_save_LIBS
5634 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5635 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
5636 if test $ac_cv_lib_ncurses_tgetent = yes; then
5637 bash_cv_termcap_lib=libncurses
5639 bash_cv_termcap_lib=gnutermcap
5652 if test "X$_bash_needmsg" = "Xyes"; then
5653 { echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5654 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6; }
5656 { echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
5657 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6; }
5658 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5659 LDFLAGS="$LDFLAGS -L./lib/termcap"
5660 TERMCAP_LIB="./lib/termcap/libtermcap.a"
5661 TERMCAP_DEP="./lib/termcap/libtermcap.a"
5662 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5663 TERMCAP_LIB=-ltermcap
5665 elif test $bash_cv_termcap_lib = libtinfo; then
5668 elif test $bash_cv_termcap_lib = libncurses; then
5669 TERMCAP_LIB=-lncurses
5671 elif test $bash_cv_termcap_lib = libc; then
5675 TERMCAP_LIB=-lcurses
5682 { echo "$as_me:$LINENO: checking version of installed readline library" >&5
5683 echo $ECHO_N "checking version of installed readline library... $ECHO_C" >&6; }
5685 # What a pain in the ass this is.
5687 # save cpp and ld options
5688 _save_CFLAGS="$CFLAGS"
5689 _save_LDFLAGS="$LDFLAGS"
5692 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5693 # allows the caller to do something like $_rl_prefix=$withval if the user
5694 # specifies --with-installed-readline=PREFIX as an argument to configure
5696 if test -z "$ac_cv_rl_prefix"; then
5697 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
5700 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
5701 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
5703 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
5704 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
5705 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
5707 if test "${ac_cv_rl_version+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 if test "$cross_compiling" = yes; then
5711 ac_cv_rl_version='4.2'
5713 cat >conftest.$ac_ext <<_ACEOF
5716 cat confdefs.h >>conftest.$ac_ext
5717 cat >>conftest.$ac_ext <<_ACEOF
5718 /* end confdefs.h. */
5721 #include <readline/readline.h>
5723 extern int rl_gnu_readline_p;
5728 fp = fopen("conftest.rlv", "w");
5731 if (rl_gnu_readline_p != 1)
5732 fprintf(fp, "0.0\n");
5734 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
5740 rm -f conftest$ac_exeext
5741 if { (ac_try="$ac_link"
5743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744 *) ac_try_echo=$ac_try;;
5746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747 (eval "$ac_link") 2>&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5751 { (case "(($ac_try" in
5752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753 *) ac_try_echo=$ac_try;;
5755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5756 (eval "$ac_try") 2>&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); }; }; then
5760 ac_cv_rl_version=`cat conftest.rlv`
5762 echo "$as_me: program exited with status $ac_status" >&5
5763 echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.$ac_ext >&5
5767 ac_cv_rl_version='0.0'
5769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5776 CFLAGS="$_save_CFLAGS"
5777 LDFLAGS="$_save_LDFLAGS"
5784 case "$ac_cv_rl_version" in
5785 2*|3*|4*|5*|6*|7*|8*|9*)
5786 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
5787 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
5793 [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
5794 [0-9]) _RL_MAJOR=0$RL_MAJOR ;;
5800 [0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
5801 [0-9]) _RL_MINOR=0$RL_MINOR ;;
5805 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
5807 # Readline versions greater than 4.2 have these defines in readline.h
5809 if test $ac_cv_rl_version = '0.0' ; then
5810 { echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
5811 echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
5812 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
5813 # set these for use by the caller
5814 RL_PREFIX=$ac_cv_rl_prefix
5815 RL_LIBDIR=$ac_cv_rl_libdir
5816 RL_INCLUDEDIR=$ac_cv_rl_includedir
5817 { echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5818 echo "${ECHO_T}$ac_cv_rl_version" >&6; }
5822 cat >>confdefs.h <<_ACEOF
5823 @%:@define RL_READLINE_VERSION $RL_VERSION
5827 cat >>confdefs.h <<_ACEOF
5828 @%:@define RL_VERSION_MAJOR $RL_MAJOR
5832 cat >>confdefs.h <<_ACEOF
5833 @%:@define RL_VERSION_MINOR $RL_MINOR
5841 # set these for use by the caller
5842 RL_PREFIX=$ac_cv_rl_prefix
5843 RL_LIBDIR=$ac_cv_rl_libdir
5844 RL_INCLUDEDIR=$ac_cv_rl_includedir
5846 { echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5847 echo "${ECHO_T}$ac_cv_rl_version" >&6; }
5852 case "$ac_cv_rl_version" in
5854 *) opt_with_installed_readline=no
5855 { echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
5856 echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
5857 { echo "$as_me:$LINENO: WARNING: using private bash version" >&5
5858 echo "$as_me: WARNING: using private bash version" >&2;}
5864 if test $opt_readline = yes; then
5865 cat >>confdefs.h <<\_ACEOF
5866 @%:@define READLINE 1
5869 if test "$opt_with_installed_readline" != "no" ; then
5870 case "$opt_with_installed_readline" in
5872 *) case "$RL_INCLUDEDIR" in
5874 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5879 READLINE_LIB=-lreadline
5880 # section for OS versions that don't allow unresolved symbols
5881 # to be compiled into dynamic libraries.
5883 cygwin*) TILDE_LIB= ;;
5886 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5887 READLINE_DEP='$(READLINE_LIBRARY)'
5888 # section for OS versions that ship an older/broken version of
5889 # readline as a standard dynamic library and don't allow a
5890 # static version specified as -llibname to override the
5892 case "${host_os}" in
5893 darwin[89]*) READLINE_LIB='${READLINE_LIBRARY}' ;;
5894 *) READLINE_LIB=-lreadline ;;
5898 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5899 READLINE_LIB= READLINE_DEP=
5901 if test $opt_history = yes || test $opt_bang_history = yes; then
5902 if test $opt_history = yes; then
5903 cat >>confdefs.h <<\_ACEOF
5904 @%:@define HISTORY 1
5908 if test $opt_bang_history = yes; then
5909 cat >>confdefs.h <<\_ACEOF
5910 @%:@define BANG_HISTORY 1
5914 if test "$opt_with_installed_readline" != "no"; then
5915 HIST_LIBDIR=$RL_LIBDIR
5917 HISTORY_LIB=-lhistory
5918 case "$opt_with_installed_readline" in
5920 *) case "$RL_INCLUDEDIR" in
5922 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5927 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5928 HISTORY_DEP='$(HISTORY_LIBRARY)'
5929 # section for OS versions that ship an older version of
5930 # readline as a standard dynamic library and don't allow a
5931 # static version specified as -llibname to override the
5933 case "${host_os}" in
5934 darwin[89]*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
5935 *) HISTORY_LIB=-lhistory ;;
5939 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5940 HISTORY_LIB= HISTORY_DEP=
5953 # Find a good install program. We prefer a C program (faster),
5954 # so one script is as good as another. But avoid the broken or
5955 # incompatible versions:
5956 # SysV /etc/install, /usr/sbin/install
5957 # SunOS /usr/etc/install
5958 # IRIX /sbin/install
5960 # AmigaOS /C/install, which installs bootblocks on floppy discs
5961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5964 # OS/2's system install, which has a completely different semantic
5965 # ./install, which can be erroneously created by make from ./install.sh.
5966 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5967 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5968 if test -z "$INSTALL"; then
5969 if test "${ac_cv_path_install+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 test -z "$as_dir" && as_dir=.
5977 # Account for people who put trailing slashes in PATH elements.
5979 ./ | .// | /cC/* | \
5980 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5981 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5984 # OSF1 and SCO ODT 3.0 have their own names for install.
5985 # Don't use installbsd from OSF since it installs stuff as root
5987 for ac_prog in ginstall scoinst install; do
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
5990 if test $ac_prog = install &&
5991 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5992 # AIX install. It has an incompatible calling convention.
5994 elif test $ac_prog = install &&
5995 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5996 # program-specific install script used by HP pwplus--don't use.
5999 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6012 if test "${ac_cv_path_install+set}" = set; then
6013 INSTALL=$ac_cv_path_install
6015 # As a last resort, use the slow shell script. Don't cache a
6016 # value for INSTALL within a source directory, because that will
6017 # break other packages using the cache if that directory is
6018 # removed, or if the value is a relative name.
6019 INSTALL=$ac_install_sh
6022 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6023 echo "${ECHO_T}$INSTALL" >&6; }
6025 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6026 # It thinks the first close brace ends the variable substitution.
6027 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6029 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6031 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6033 # Extract the first word of "ar", so it can be a program name with args.
6034 set dummy ar; ac_word=$2
6035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6037 if test "${ac_cv_prog_AR+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 if test -n "$AR"; then
6041 ac_cv_prog_AR="$AR" # Let the user override the test.
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6062 if test -n "$AR"; then
6063 { echo "$as_me:$LINENO: result: $AR" >&5
6064 echo "${ECHO_T}$AR" >&6; }
6066 { echo "$as_me:$LINENO: result: no" >&5
6067 echo "${ECHO_T}no" >&6; }
6071 test -n "$ARFLAGS" || ARFLAGS="cr"
6072 if test -n "$ac_tool_prefix"; then
6073 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6074 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6077 if test "${ac_cv_prog_RANLIB+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 if test -n "$RANLIB"; then
6081 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6090 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6100 RANLIB=$ac_cv_prog_RANLIB
6101 if test -n "$RANLIB"; then
6102 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6103 echo "${ECHO_T}$RANLIB" >&6; }
6105 { echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6; }
6111 if test -z "$ac_cv_prog_RANLIB"; then
6112 ac_ct_RANLIB=$RANLIB
6113 # Extract the first word of "ranlib", so it can be a program name with args.
6114 set dummy ranlib; ac_word=$2
6115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6117 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 if test -n "$ac_ct_RANLIB"; then
6121 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6130 ac_cv_prog_ac_ct_RANLIB="ranlib"
6131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6141 if test -n "$ac_ct_RANLIB"; then
6142 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6143 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6145 { echo "$as_me:$LINENO: result: no" >&5
6146 echo "${ECHO_T}no" >&6; }
6149 if test "x$ac_ct_RANLIB" = x; then
6152 case $cross_compiling:$ac_tool_warned in
6154 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6155 whose name does not start with the host triplet. If you think this
6156 configuration is useful to you, please write to autoconf@gnu.org." >&5
6157 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6158 whose name does not start with the host triplet. If you think this
6159 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6160 ac_tool_warned=yes ;;
6162 RANLIB=$ac_ct_RANLIB
6165 RANLIB="$ac_cv_prog_RANLIB"
6168 for ac_prog in 'bison -y' byacc
6170 # Extract the first word of "$ac_prog", so it can be a program name with args.
6171 set dummy $ac_prog; ac_word=$2
6172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6174 if test "${ac_cv_prog_YACC+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 if test -n "$YACC"; then
6178 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6187 ac_cv_prog_YACC="$ac_prog"
6188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 YACC=$ac_cv_prog_YACC
6198 if test -n "$YACC"; then
6199 { echo "$as_me:$LINENO: result: $YACC" >&5
6200 echo "${ECHO_T}$YACC" >&6; }
6202 { echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6; }
6207 test -n "$YACC" && break
6209 test -n "$YACC" || YACC="yacc"
6211 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6212 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
6213 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6214 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 cat >conftest.make <<\_ACEOF
6220 @echo '@@@%%%=$(MAKE)=@@@%%%'
6222 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6223 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6225 eval ac_cv_prog_make_${ac_make}_set=yes;;
6227 eval ac_cv_prog_make_${ac_make}_set=no;;
6231 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6232 { echo "$as_me:$LINENO: result: yes" >&5
6233 echo "${ECHO_T}yes" >&6; }
6236 { echo "$as_me:$LINENO: result: no" >&5
6237 echo "${ECHO_T}no" >&6; }
6238 SET_MAKE="MAKE=${MAKE-make}"
6243 opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
6244 *) MAKE_SHELL=/bin/sh ;;
6248 if test x$SIZE = x; then
6249 if test x$ac_tool_prefix = x; then
6252 SIZE=${ac_tool_prefix}size
6253 save_IFS=$IFS ; IFS=:
6255 for dir in $PATH; do
6256 if test -x $dir/$SIZE ; then
6261 if test $size_found -eq 0; then
6269 cat >>confdefs.h <<\_ACEOF
6270 @%:@define _GNU_SOURCE 1
6274 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6275 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
6276 if test "${ac_cv_c_const+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 cat >conftest.$ac_ext <<_ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6289 /* FIXME: Include the comments suggested by Paul. */
6291 /* Ultrix mips cc rejects this. */
6292 typedef int charset[2];
6294 /* SunOS 4.1.1 cc rejects this. */
6295 char const *const *ccp;
6297 /* NEC SVR4.0.2 mips cc rejects this. */
6298 struct point {int x, y;};
6299 static struct point const zero = {0,0};
6300 /* AIX XL C 1.02.0.0 rejects this.
6301 It does not let you subtract one const X* pointer from another in
6302 an arm of an if-expression whose if-part is not a constant
6304 const char *g = "string";
6305 ccp = &g + (g ? g-g : 0);
6306 /* HPUX 7.0 cc rejects these. */
6309 ccp = (char const *const *) p;
6310 { /* SCO 3.2v4 cc rejects this. */
6312 char const *s = 0 ? (char *) 0 : (char const *) 0;
6317 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6319 const int *foo = &x[0];
6322 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6323 typedef const int *iptr;
6327 { /* AIX XL C 1.02.0.0 rejects this saying
6328 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6329 struct s { int j; const int *ap[3]; };
6330 struct s *b; b->j = 5;
6332 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6336 return !x[0] && !zero.x;
6343 rm -f conftest.$ac_objext
6344 if { (ac_try="$ac_compile"
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_compile") 2>conftest.er1
6352 grep -v '^ *+' conftest.er1 >conftest.err
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } &&
6357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6358 { (case "(($ac_try" in
6359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360 *) ac_try_echo=$ac_try;;
6362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6363 (eval "$ac_try") 2>&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; } &&
6367 { ac_try='test -s conftest.$ac_objext'
6368 { (case "(($ac_try" in
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373 (eval "$ac_try") 2>&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; }; then
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6387 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6388 echo "${ECHO_T}$ac_cv_c_const" >&6; }
6389 if test $ac_cv_c_const = no; then
6391 cat >>confdefs.h <<\_ACEOF
6397 { echo "$as_me:$LINENO: checking for inline" >&5
6398 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
6399 if test "${ac_cv_c_inline+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 for ac_kw in inline __inline__ __inline; do
6404 cat >conftest.$ac_ext <<_ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6412 static $ac_kw foo_t static_foo () {return 0; }
6413 $ac_kw foo_t foo () {return 0; }
6417 rm -f conftest.$ac_objext
6418 if { (ac_try="$ac_compile"
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_compile") 2>conftest.er1
6426 grep -v '^ *+' conftest.er1 >conftest.err
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6432 { (case "(($ac_try" in
6433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434 *) ac_try_echo=$ac_try;;
6436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6437 (eval "$ac_try") 2>&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; } &&
6441 { ac_try='test -s conftest.$ac_objext'
6442 { (case "(($ac_try" in
6443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444 *) ac_try_echo=$ac_try;;
6446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6447 (eval "$ac_try") 2>&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
6451 ac_cv_c_inline=$ac_kw
6453 echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6460 test "$ac_cv_c_inline" != no && break
6464 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6465 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
6468 case $ac_cv_c_inline in
6471 case $ac_cv_c_inline in
6473 *) ac_val=$ac_cv_c_inline;;
6475 cat >>confdefs.h <<_ACEOF
6477 #define inline $ac_val
6483 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6484 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
6485 if test "${ac_cv_c_bigendian+set}" = set; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 # See if sys/param.h defines the BYTE_ORDER macro.
6489 cat >conftest.$ac_ext <<_ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h. */
6495 #include <sys/types.h>
6496 #include <sys/param.h>
6501 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6509 rm -f conftest.$ac_objext
6510 if { (ac_try="$ac_compile"
6512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6513 *) ac_try_echo=$ac_try;;
6515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516 (eval "$ac_compile") 2>conftest.er1
6518 grep -v '^ *+' conftest.er1 >conftest.err
6520 cat conftest.err >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } &&
6523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6524 { (case "(($ac_try" in
6525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6526 *) ac_try_echo=$ac_try;;
6528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6529 (eval "$ac_try") 2>&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; } &&
6533 { ac_try='test -s conftest.$ac_objext'
6534 { (case "(($ac_try" in
6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_try") 2>&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 # It does; now see whether it defined to BIG_ENDIAN or not.
6544 cat >conftest.$ac_ext <<_ACEOF
6547 cat confdefs.h >>conftest.$ac_ext
6548 cat >>conftest.$ac_ext <<_ACEOF
6549 /* end confdefs.h. */
6550 #include <sys/types.h>
6551 #include <sys/param.h>
6556 #if BYTE_ORDER != BIG_ENDIAN
6564 rm -f conftest.$ac_objext
6565 if { (ac_try="$ac_compile"
6567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568 *) ac_try_echo=$ac_try;;
6570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6571 (eval "$ac_compile") 2>conftest.er1
6573 grep -v '^ *+' conftest.er1 >conftest.err
6575 cat conftest.err >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } &&
6578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6579 { (case "(($ac_try" in
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584 (eval "$ac_try") 2>&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; } &&
6588 { ac_try='test -s conftest.$ac_objext'
6589 { (case "(($ac_try" in
6590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6591 *) ac_try_echo=$ac_try;;
6593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6594 (eval "$ac_try") 2>&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; }; then
6598 ac_cv_c_bigendian=yes
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6603 ac_cv_c_bigendian=no
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608 echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.$ac_ext >&5
6611 # It does not; compile a test program.
6612 if test "$cross_compiling" = yes; then
6613 # try to guess the endianness by grepping values into an object file
6614 ac_cv_c_bigendian=unknown
6615 cat >conftest.$ac_ext <<_ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6621 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6622 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6623 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6624 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6625 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6626 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6630 _ascii (); _ebcdic ();
6635 rm -f conftest.$ac_objext
6636 if { (ac_try="$ac_compile"
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6642 (eval "$ac_compile") 2>conftest.er1
6644 grep -v '^ *+' conftest.er1 >conftest.err
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6650 { (case "(($ac_try" in
6651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6652 *) ac_try_echo=$ac_try;;
6654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6655 (eval "$ac_try") 2>&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; } &&
6659 { ac_try='test -s conftest.$ac_objext'
6660 { (case "(($ac_try" in
6661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6662 *) ac_try_echo=$ac_try;;
6664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6665 (eval "$ac_try") 2>&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; }; then
6669 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6670 ac_cv_c_bigendian=yes
6672 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6673 if test "$ac_cv_c_bigendian" = unknown; then
6674 ac_cv_c_bigendian=no
6676 # finding both strings is unlikely to happen, but who knows?
6677 ac_cv_c_bigendian=unknown
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689 cat >conftest.$ac_ext <<_ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695 $ac_includes_default
6700 /* Are we little or big endian? From Harbison&Steele. */
6704 char c[sizeof (long int)];
6707 return u.c[sizeof (long int) - 1] == 1;
6713 rm -f conftest$ac_exeext
6714 if { (ac_try="$ac_link"
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_link") 2>&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6724 { (case "(($ac_try" in
6725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729 (eval "$ac_try") 2>&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; }; then
6733 ac_cv_c_bigendian=no
6735 echo "$as_me: program exited with status $ac_status" >&5
6736 echo "$as_me: failed program was:" >&5
6737 sed 's/^/| /' conftest.$ac_ext >&5
6740 ac_cv_c_bigendian=yes
6742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6750 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6751 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
6752 case $ac_cv_c_bigendian in
6755 cat >>confdefs.h <<\_ACEOF
6756 @%:@define WORDS_BIGENDIAN 1
6762 { { echo "$as_me:$LINENO: error: unknown endianness
6763 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6764 echo "$as_me: error: unknown endianness
6765 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6766 { (exit 1); exit 1; }; } ;;
6769 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
6770 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
6771 if test "${ac_cv_c_stringize+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 cat >conftest.$ac_ext <<_ACEOF
6777 cat confdefs.h >>conftest.$ac_ext
6778 cat >>conftest.$ac_ext <<_ACEOF
6779 /* end confdefs.h. */
6782 char *s = x(teststring);
6784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6785 $EGREP "@%:@teststring" >/dev/null 2>&1; then
6786 ac_cv_c_stringize=no
6788 ac_cv_c_stringize=yes
6793 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
6794 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
6795 if test $ac_cv_c_stringize = yes; then
6797 cat >>confdefs.h <<\_ACEOF
6798 @%:@define HAVE_STRINGIZE 1
6805 { echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
6806 echo $ECHO_N "checking for long double with more range or precision than double... $ECHO_C" >&6; }
6807 if test "${ac_cv_type_long_double_wider+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6810 cat >conftest.$ac_ext <<_ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6817 long double const a[] =
6819 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6820 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6825 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6826 + (x ? f (x) : 'c'));
6832 static int test_array @<:@1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6833 + (DBL_MANT_DIG < LDBL_MANT_DIG)
6834 - (LDBL_MAX_EXP < DBL_MAX_EXP)
6835 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6836 && (int) LDBL_EPSILON == 0
6838 test_array @<:@0@:>@ = 0
6844 rm -f conftest.$ac_objext
6845 if { (ac_try="$ac_compile"
6847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848 *) ac_try_echo=$ac_try;;
6850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6851 (eval "$ac_compile") 2>conftest.er1
6853 grep -v '^ *+' conftest.er1 >conftest.err
6855 cat conftest.err >&5
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); } &&
6858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6859 { (case "(($ac_try" in
6860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861 *) ac_try_echo=$ac_try;;
6863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6864 (eval "$ac_try") 2>&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; } &&
6868 { ac_try='test -s conftest.$ac_objext'
6869 { (case "(($ac_try" in
6870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871 *) ac_try_echo=$ac_try;;
6873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6874 (eval "$ac_try") 2>&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); }; }; then
6878 ac_cv_type_long_double_wider=yes
6880 echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.$ac_ext >&5
6883 ac_cv_type_long_double_wider=no
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
6889 echo "${ECHO_T}$ac_cv_type_long_double_wider" >&6; }
6890 if test $ac_cv_type_long_double_wider = yes; then
6892 cat >>confdefs.h <<\_ACEOF
6893 @%:@define HAVE_LONG_DOUBLE_WIDER 1
6898 ac_cv_c_long_double=$ac_cv_type_long_double_wider
6899 if test $ac_cv_c_long_double = yes; then
6901 cat >>confdefs.h <<\_ACEOF
6902 @%:@define HAVE_LONG_DOUBLE 1
6907 { echo "$as_me:$LINENO: checking for function prototypes" >&5
6908 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
6909 if test "$ac_cv_prog_cc_c89" != no; then
6910 { echo "$as_me:$LINENO: result: yes" >&5
6911 echo "${ECHO_T}yes" >&6; }
6913 cat >>confdefs.h <<\_ACEOF
6914 @%:@define PROTOTYPES 1
6918 cat >>confdefs.h <<\_ACEOF
6919 @%:@define __PROTOTYPES 1
6923 { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6928 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
6929 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
6930 if test "${ac_cv_c_char_unsigned+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 cat >conftest.$ac_ext <<_ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h. */
6939 $ac_includes_default
6943 static int test_array @<:@1 - 2 * !(((char) -1) < 0)@:>@;
6944 test_array @<:@0@:>@ = 0
6950 rm -f conftest.$ac_objext
6951 if { (ac_try="$ac_compile"
6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954 *) ac_try_echo=$ac_try;;
6956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6957 (eval "$ac_compile") 2>conftest.er1
6959 grep -v '^ *+' conftest.er1 >conftest.err
6961 cat conftest.err >&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } &&
6964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6965 { (case "(($ac_try" in
6966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6967 *) ac_try_echo=$ac_try;;
6969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6970 (eval "$ac_try") 2>&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }; } &&
6974 { ac_try='test -s conftest.$ac_objext'
6975 { (case "(($ac_try" in
6976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6977 *) ac_try_echo=$ac_try;;
6979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6980 (eval "$ac_try") 2>&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; }; then
6984 ac_cv_c_char_unsigned=no
6986 echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.$ac_ext >&5
6989 ac_cv_c_char_unsigned=yes
6992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6994 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
6995 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
6996 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
6997 cat >>confdefs.h <<\_ACEOF
6998 @%:@define __CHAR_UNSIGNED__ 1
7006 if test -n "$ac_aux_dir"; then
7007 case "$ac_aux_dir" in
7008 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7009 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7012 if test -z "$MKINSTALLDIRS"; then
7013 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7018 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7019 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
7020 # Check whether --enable-nls was given.
7021 if test "${enable_nls+set}" = set; then
7022 enableval=$enable_nls; USE_NLS=$enableval
7027 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7028 echo "${ECHO_T}$USE_NLS" >&6; }
7035 # Prepare PATH_SEPARATOR.
7036 # The user is always right.
7037 if test "${PATH_SEPARATOR+set}" != set; then
7038 echo "#! /bin/sh" >conf$$.sh
7039 echo "exit 0" >>conf$$.sh
7041 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7049 # Find out how to test for executable files. Don't use a zero-byte file,
7050 # as systems may use methods other than mode bits to determine executability.
7051 cat >conf$$.file <<_ASEOF
7055 chmod +x conf$$.file
7056 if test -x conf$$.file >/dev/null 2>&1; then
7057 ac_executable_p="test -x"
7059 ac_executable_p="test -f"
7063 # Extract the first word of "msgfmt", so it can be a program name with args.
7064 set dummy msgfmt; ac_word=$2
7065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7067 if test "${ac_cv_path_MSGFMT+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7075 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7076 for ac_dir in $PATH; do
7078 test -z "$ac_dir" && ac_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7081 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7082 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7083 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7090 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7094 MSGFMT="$ac_cv_path_MSGFMT"
7095 if test "$MSGFMT" != ":"; then
7096 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7097 echo "${ECHO_T}$MSGFMT" >&6; }
7099 { echo "$as_me:$LINENO: result: no" >&5
7100 echo "${ECHO_T}no" >&6; }
7103 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7104 set dummy gmsgfmt; ac_word=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7122 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7134 GMSGFMT=$ac_cv_path_GMSGFMT
7135 if test -n "$GMSGFMT"; then
7136 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7137 echo "${ECHO_T}$GMSGFMT" >&6; }
7139 { echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6; }
7146 # Prepare PATH_SEPARATOR.
7147 # The user is always right.
7148 if test "${PATH_SEPARATOR+set}" != set; then
7149 echo "#! /bin/sh" >conf$$.sh
7150 echo "exit 0" >>conf$$.sh
7152 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7160 # Find out how to test for executable files. Don't use a zero-byte file,
7161 # as systems may use methods other than mode bits to determine executability.
7162 cat >conf$$.file <<_ASEOF
7166 chmod +x conf$$.file
7167 if test -x conf$$.file >/dev/null 2>&1; then
7168 ac_executable_p="test -x"
7170 ac_executable_p="test -f"
7174 # Extract the first word of "xgettext", so it can be a program name with args.
7175 set dummy xgettext; ac_word=$2
7176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7178 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7183 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7186 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7187 for ac_dir in $PATH; do
7189 test -z "$ac_dir" && ac_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7192 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7193 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7194 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7201 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7205 XGETTEXT="$ac_cv_path_XGETTEXT"
7206 if test "$XGETTEXT" != ":"; then
7207 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7208 echo "${ECHO_T}$XGETTEXT" >&6; }
7210 { echo "$as_me:$LINENO: result: no" >&5
7211 echo "${ECHO_T}no" >&6; }
7217 # Prepare PATH_SEPARATOR.
7218 # The user is always right.
7219 if test "${PATH_SEPARATOR+set}" != set; then
7220 echo "#! /bin/sh" >conf$$.sh
7221 echo "exit 0" >>conf$$.sh
7223 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7231 # Find out how to test for executable files. Don't use a zero-byte file,
7232 # as systems may use methods other than mode bits to determine executability.
7233 cat >conf$$.file <<_ASEOF
7237 chmod +x conf$$.file
7238 if test -x conf$$.file >/dev/null 2>&1; then
7239 ac_executable_p="test -x"
7241 ac_executable_p="test -f"
7245 # Extract the first word of "msgmerge", so it can be a program name with args.
7246 set dummy msgmerge; ac_word=$2
7247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7249 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7254 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7257 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7258 for ac_dir in $PATH; do
7260 test -z "$ac_dir" && ac_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7263 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7264 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7271 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7275 MSGMERGE="$ac_cv_path_MSGMERGE"
7276 if test "$MSGMERGE" != ":"; then
7277 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7278 echo "${ECHO_T}$MSGMERGE" >&6; }
7280 { echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6; }
7285 if test "$GMSGFMT" != ":"; then
7286 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7287 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7290 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7291 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7292 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7297 if test "$XGETTEXT" != ":"; then
7298 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7299 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7302 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7303 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
7309 ac_config_commands="$ac_config_commands default-1"
7312 { echo "$as_me:$LINENO: checking for off_t" >&5
7313 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7314 if test "${ac_cv_type_off_t+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
7317 cat >conftest.$ac_ext <<_ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7323 $ac_includes_default
7324 typedef off_t ac__type_new_;
7328 if ((ac__type_new_ *) 0)
7330 if (sizeof (ac__type_new_))
7336 rm -f conftest.$ac_objext
7337 if { (ac_try="$ac_compile"
7339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7340 *) ac_try_echo=$ac_try;;
7342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7343 (eval "$ac_compile") 2>conftest.er1
7345 grep -v '^ *+' conftest.er1 >conftest.err
7347 cat conftest.err >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } &&
7350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7351 { (case "(($ac_try" in
7352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7353 *) ac_try_echo=$ac_try;;
7355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7356 (eval "$ac_try") 2>&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; } &&
7360 { ac_try='test -s conftest.$ac_objext'
7361 { (case "(($ac_try" in
7362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7363 *) ac_try_echo=$ac_try;;
7365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7366 (eval "$ac_try") 2>&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); }; }; then
7370 ac_cv_type_off_t=yes
7372 echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7381 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7382 if test $ac_cv_type_off_t = yes; then
7386 cat >>confdefs.h <<_ACEOF
7387 @%:@define off_t long int
7392 { echo "$as_me:$LINENO: checking for size_t" >&5
7393 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7394 if test "${ac_cv_type_size_t+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7397 cat >conftest.$ac_ext <<_ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 $ac_includes_default
7404 typedef size_t ac__type_new_;
7408 if ((ac__type_new_ *) 0)
7410 if (sizeof (ac__type_new_))
7416 rm -f conftest.$ac_objext
7417 if { (ac_try="$ac_compile"
7419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420 *) ac_try_echo=$ac_try;;
7422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7423 (eval "$ac_compile") 2>conftest.er1
7425 grep -v '^ *+' conftest.er1 >conftest.err
7427 cat conftest.err >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } &&
7430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7431 { (case "(($ac_try" in
7432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7433 *) ac_try_echo=$ac_try;;
7435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7436 (eval "$ac_try") 2>&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); }; } &&
7440 { ac_try='test -s conftest.$ac_objext'
7441 { (case "(($ac_try" in
7442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443 *) ac_try_echo=$ac_try;;
7445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446 (eval "$ac_try") 2>&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; }; then
7450 ac_cv_type_size_t=yes
7452 echo "$as_me: failed program was:" >&5
7453 sed 's/^/| /' conftest.$ac_ext >&5
7455 ac_cv_type_size_t=no
7458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7461 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7462 if test $ac_cv_type_size_t = yes; then
7466 cat >>confdefs.h <<_ACEOF
7467 @%:@define size_t unsigned int
7472 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7473 # for constant arguments. Useless!
7474 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
7475 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
7476 if test "${ac_cv_working_alloca_h+set}" = set; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 cat >conftest.$ac_ext <<_ACEOF
7482 cat confdefs.h >>conftest.$ac_ext
7483 cat >>conftest.$ac_ext <<_ACEOF
7484 /* end confdefs.h. */
7485 @%:@include <alloca.h>
7489 char *p = (char *) alloca (2 * sizeof (int));
7495 rm -f conftest.$ac_objext conftest$ac_exeext
7496 if { (ac_try="$ac_link"
7498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7499 *) ac_try_echo=$ac_try;;
7501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7502 (eval "$ac_link") 2>conftest.er1
7504 grep -v '^ *+' conftest.er1 >conftest.err
7506 cat conftest.err >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } &&
7509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7510 { (case "(($ac_try" in
7511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7512 *) ac_try_echo=$ac_try;;
7514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7515 (eval "$ac_try") 2>&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); }; } &&
7519 { ac_try='test -s conftest$ac_exeext'
7520 { (case "(($ac_try" in
7521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7522 *) ac_try_echo=$ac_try;;
7524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7525 (eval "$ac_try") 2>&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 ac_cv_working_alloca_h=yes
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7534 ac_cv_working_alloca_h=no
7537 rm -f core conftest.err conftest.$ac_objext \
7538 conftest$ac_exeext conftest.$ac_ext
7540 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7541 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
7542 if test $ac_cv_working_alloca_h = yes; then
7544 cat >>confdefs.h <<\_ACEOF
7545 @%:@define HAVE_ALLOCA_H 1
7550 { echo "$as_me:$LINENO: checking for alloca" >&5
7551 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
7552 if test "${ac_cv_func_alloca_works+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 cat >conftest.$ac_ext <<_ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7562 # define alloca __builtin_alloca
7565 # include <malloc.h>
7566 # define alloca _alloca
7569 # include <alloca.h>
7574 # ifndef alloca /* predefined by HP cc +Olibcalls */
7585 char *p = (char *) alloca (1);
7591 rm -f conftest.$ac_objext conftest$ac_exeext
7592 if { (ac_try="$ac_link"
7594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7595 *) ac_try_echo=$ac_try;;
7597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7598 (eval "$ac_link") 2>conftest.er1
7600 grep -v '^ *+' conftest.er1 >conftest.err
7602 cat conftest.err >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } &&
7605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7606 { (case "(($ac_try" in
7607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7608 *) ac_try_echo=$ac_try;;
7610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7611 (eval "$ac_try") 2>&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); }; } &&
7615 { ac_try='test -s conftest$ac_exeext'
7616 { (case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7621 (eval "$ac_try") 2>&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; }; then
7625 ac_cv_func_alloca_works=yes
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7630 ac_cv_func_alloca_works=no
7633 rm -f core conftest.err conftest.$ac_objext \
7634 conftest$ac_exeext conftest.$ac_ext
7636 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7637 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
7639 if test $ac_cv_func_alloca_works = yes; then
7641 cat >>confdefs.h <<\_ACEOF
7642 @%:@define HAVE_ALLOCA 1
7646 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7647 # that cause trouble. Some versions do not even contain alloca or
7648 # contain a buggy version. If you still want to use their alloca,
7649 # use ar to extract alloca.o from them instead of compiling alloca.c.
7651 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7653 cat >>confdefs.h <<\_ACEOF
7654 @%:@define C_ALLOCA 1
7658 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7659 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
7660 if test "${ac_cv_os_cray+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 cat >conftest.$ac_ext <<_ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h. */
7669 #if defined CRAY && ! defined CRAY2
7676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7677 $EGREP "webecray" >/dev/null 2>&1; then
7685 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7686 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
7687 if test $ac_cv_os_cray = yes; then
7688 for ac_func in _getb67 GETB67 getb67; do
7689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7690 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 cat >conftest.$ac_ext <<_ACEOF
7698 cat confdefs.h >>conftest.$ac_ext
7699 cat >>conftest.$ac_ext <<_ACEOF
7700 /* end confdefs.h. */
7701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7703 #define $ac_func innocuous_$ac_func
7705 /* System header to define __stub macros and hopefully few prototypes,
7706 which can conflict with char $ac_func (); below.
7707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7708 <limits.h> exists even on freestanding compilers. */
7711 # include <limits.h>
7713 # include <assert.h>
7718 /* Override any GCC internal prototype to avoid an error.
7719 Use char because int might match the return type of a GCC
7720 builtin and then its argument prototype would still apply. */
7725 /* The GNU C library defines this for functions which it implements
7726 to always fail with ENOSYS. Some functions are actually named
7727 something starting with __ and the normal name is an alias. */
7728 #if defined __stub_$ac_func || defined __stub___$ac_func
7740 rm -f conftest.$ac_objext conftest$ac_exeext
7741 if { (ac_try="$ac_link"
7743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7744 *) ac_try_echo=$ac_try;;
7746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7747 (eval "$ac_link") 2>conftest.er1
7749 grep -v '^ *+' conftest.er1 >conftest.err
7751 cat conftest.err >&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); } &&
7754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7755 { (case "(($ac_try" in
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760 (eval "$ac_try") 2>&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; } &&
7764 { ac_try='test -s conftest$ac_exeext'
7765 { (case "(($ac_try" in
7766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767 *) ac_try_echo=$ac_try;;
7769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7770 (eval "$ac_try") 2>&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; }; then
7774 eval "$as_ac_var=yes"
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7779 eval "$as_ac_var=no"
7782 rm -f core conftest.err conftest.$ac_objext \
7783 conftest$ac_exeext conftest.$ac_ext
7785 ac_res=`eval echo '${'$as_ac_var'}'`
7786 { echo "$as_me:$LINENO: result: $ac_res" >&5
7787 echo "${ECHO_T}$ac_res" >&6; }
7788 if test `eval echo '${'$as_ac_var'}'` = yes; then
7790 cat >>confdefs.h <<_ACEOF
7791 @%:@define CRAY_STACKSEG_END $ac_func
7800 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7801 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
7802 if test "${ac_cv_c_stack_direction+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 if test "$cross_compiling" = yes; then
7806 ac_cv_c_stack_direction=0
7808 cat >conftest.$ac_ext <<_ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h. */
7814 $ac_includes_default
7816 find_stack_direction ()
7818 static char *addr = 0;
7823 return find_stack_direction ();
7826 return (&dummy > addr) ? 1 : -1;
7832 return find_stack_direction () < 0;
7835 rm -f conftest$ac_exeext
7836 if { (ac_try="$ac_link"
7838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842 (eval "$ac_link") 2>&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7846 { (case "(($ac_try" in
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851 (eval "$ac_try") 2>&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; }; then
7855 ac_cv_c_stack_direction=1
7857 echo "$as_me: program exited with status $ac_status" >&5
7858 echo "$as_me: failed program was:" >&5
7859 sed 's/^/| /' conftest.$ac_ext >&5
7862 ac_cv_c_stack_direction=-1
7864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7869 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7870 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
7872 cat >>confdefs.h <<_ACEOF
7873 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
7881 for ac_header in stdlib.h unistd.h
7883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7890 ac_res=`eval echo '${'$as_ac_Header'}'`
7891 { echo "$as_me:$LINENO: result: $ac_res" >&5
7892 echo "${ECHO_T}$ac_res" >&6; }
7894 # Is the header compilable?
7895 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7897 cat >conftest.$ac_ext <<_ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903 $ac_includes_default
7904 @%:@include <$ac_header>
7906 rm -f conftest.$ac_objext
7907 if { (ac_try="$ac_compile"
7909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910 *) ac_try_echo=$ac_try;;
7912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913 (eval "$ac_compile") 2>conftest.er1
7915 grep -v '^ *+' conftest.er1 >conftest.err
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } &&
7920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7921 { (case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_try") 2>&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; } &&
7930 { ac_try='test -s conftest.$ac_objext'
7931 { (case "(($ac_try" in
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_try") 2>&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; }; then
7940 ac_header_compiler=yes
7942 echo "$as_me: failed program was:" >&5
7943 sed 's/^/| /' conftest.$ac_ext >&5
7945 ac_header_compiler=no
7948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7950 echo "${ECHO_T}$ac_header_compiler" >&6; }
7952 # Is the header present?
7953 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7955 cat >conftest.$ac_ext <<_ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7961 @%:@include <$ac_header>
7963 if { (ac_try="$ac_cpp conftest.$ac_ext"
7965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966 *) ac_try_echo=$ac_try;;
7968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7971 grep -v '^ *+' conftest.er1 >conftest.err
7973 cat conftest.err >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } >/dev/null; then
7976 if test -s conftest.err; then
7977 ac_cpp_err=$ac_c_preproc_warn_flag
7978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7985 if test -z "$ac_cpp_err"; then
7986 ac_header_preproc=yes
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7991 ac_header_preproc=no
7994 rm -f conftest.err conftest.$ac_ext
7995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7996 echo "${ECHO_T}$ac_header_preproc" >&6; }
7998 # So? What about this header?
7999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8005 ac_header_preproc=yes
8008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8015 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8021 @%:@@%:@ ------------------------------- @%:@@%:@
8022 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
8023 @%:@@%:@ ------------------------------- @%:@@%:@
8025 ) | sed "s/^/$as_me: WARNING: /" >&2
8028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8033 eval "$as_ac_Header=\$ac_header_preproc"
8035 ac_res=`eval echo '${'$as_ac_Header'}'`
8036 { echo "$as_me:$LINENO: result: $ac_res" >&5
8037 echo "${ECHO_T}$ac_res" >&6; }
8040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8041 cat >>confdefs.h <<_ACEOF
8042 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8050 for ac_func in getpagesize
8052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8053 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 cat >conftest.$ac_ext <<_ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8066 #define $ac_func innocuous_$ac_func
8068 /* System header to define __stub macros and hopefully few prototypes,
8069 which can conflict with char $ac_func (); below.
8070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8071 <limits.h> exists even on freestanding compilers. */
8074 # include <limits.h>
8076 # include <assert.h>
8081 /* Override any GCC internal prototype to avoid an error.
8082 Use char because int might match the return type of a GCC
8083 builtin and then its argument prototype would still apply. */
8088 /* The GNU C library defines this for functions which it implements
8089 to always fail with ENOSYS. Some functions are actually named
8090 something starting with __ and the normal name is an alias. */
8091 #if defined __stub_$ac_func || defined __stub___$ac_func
8103 rm -f conftest.$ac_objext conftest$ac_exeext
8104 if { (ac_try="$ac_link"
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110 (eval "$ac_link") 2>conftest.er1
8112 grep -v '^ *+' conftest.er1 >conftest.err
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } &&
8117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8118 { (case "(($ac_try" in
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_try") 2>&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; } &&
8127 { ac_try='test -s conftest$ac_exeext'
8128 { (case "(($ac_try" in
8129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130 *) ac_try_echo=$ac_try;;
8132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8133 (eval "$ac_try") 2>&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); }; }; then
8137 eval "$as_ac_var=yes"
8139 echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.$ac_ext >&5
8142 eval "$as_ac_var=no"
8145 rm -f core conftest.err conftest.$ac_objext \
8146 conftest$ac_exeext conftest.$ac_ext
8148 ac_res=`eval echo '${'$as_ac_var'}'`
8149 { echo "$as_me:$LINENO: result: $ac_res" >&5
8150 echo "${ECHO_T}$ac_res" >&6; }
8151 if test `eval echo '${'$as_ac_var'}'` = yes; then
8152 cat >>confdefs.h <<_ACEOF
8153 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8159 { echo "$as_me:$LINENO: checking for working mmap" >&5
8160 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
8161 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8164 if test "$cross_compiling" = yes; then
8165 ac_cv_func_mmap_fixed_mapped=no
8167 cat >conftest.$ac_ext <<_ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8173 $ac_includes_default
8174 /* malloc might have been renamed as rpl_malloc. */
8177 /* Thanks to Mike Haertel and Jim Avera for this test.
8178 Here is a matrix of mmap possibilities:
8179 mmap private not fixed
8180 mmap private fixed at somewhere currently unmapped
8181 mmap private fixed at somewhere already mapped
8182 mmap shared not fixed
8183 mmap shared fixed at somewhere currently unmapped
8184 mmap shared fixed at somewhere already mapped
8185 For private mappings, we should verify that changes cannot be read()
8186 back from the file, nor mmap's back from the file at a different
8187 address. (There have been systems where private was not correctly
8188 implemented like the infamous i386 svr4.0, and systems where the
8189 VM page cache was not coherent with the file system buffer cache
8190 like early versions of FreeBSD and possibly contemporary NetBSD.)
8191 For shared mappings, we should conversely verify that changes get
8192 propagated back to all the places they're supposed to be.
8194 Grep wants private fixed already mapped.
8195 The main things grep needs to know about mmap are:
8196 * does it exist and is it safe to write into the mmap'd area
8197 * how to use it (BSD variants) */
8200 #include <sys/mman.h>
8202 #if !STDC_HEADERS && !HAVE_STDLIB_H
8206 /* This mess was copied from the GNU getpagesize.h. */
8207 #if !HAVE_GETPAGESIZE
8208 /* Assume that all systems that can run configure have sys/param.h. */
8209 # if !HAVE_SYS_PARAM_H
8210 # define HAVE_SYS_PARAM_H 1
8213 # ifdef _SC_PAGESIZE
8214 # define getpagesize() sysconf(_SC_PAGESIZE)
8215 # else /* no _SC_PAGESIZE */
8216 # if HAVE_SYS_PARAM_H
8217 # include <sys/param.h>
8218 # ifdef EXEC_PAGESIZE
8219 # define getpagesize() EXEC_PAGESIZE
8220 # else /* no EXEC_PAGESIZE */
8222 # define getpagesize() NBPG * CLSIZE
8225 # endif /* no CLSIZE */
8226 # else /* no NBPG */
8228 # define getpagesize() NBPC
8229 # else /* no NBPC */
8231 # define getpagesize() PAGESIZE
8232 # endif /* PAGESIZE */
8233 # endif /* no NBPC */
8234 # endif /* no NBPG */
8235 # endif /* no EXEC_PAGESIZE */
8236 # else /* no HAVE_SYS_PARAM_H */
8237 # define getpagesize() 8192 /* punt totally */
8238 # endif /* no HAVE_SYS_PARAM_H */
8239 # endif /* no _SC_PAGESIZE */
8241 #endif /* no HAVE_GETPAGESIZE */
8246 char *data, *data2, *data3;
8250 pagesize = getpagesize ();
8252 /* First, make a file with some known garbage in it. */
8253 data = (char *) malloc (pagesize);
8256 for (i = 0; i < pagesize; ++i)
8257 *(data + i) = rand ();
8259 fd = creat ("conftest.mmap", 0600);
8262 if (write (fd, data, pagesize) != pagesize)
8266 /* Next, try to mmap the file at a fixed address which already has
8267 something else allocated at it. If we can, also make sure that
8268 we see the same garbage. */
8269 fd = open ("conftest.mmap", O_RDWR);
8272 data2 = (char *) malloc (2 * pagesize);
8275 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8276 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8277 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8279 for (i = 0; i < pagesize; ++i)
8280 if (*(data + i) != *(data2 + i))
8283 /* Finally, make sure that changes to the mapped area do not
8284 percolate back to the file as seen by read(). (This is a bug on
8285 some variants of i386 svr4.0.) */
8286 for (i = 0; i < pagesize; ++i)
8287 *(data2 + i) = *(data2 + i) + 1;
8288 data3 = (char *) malloc (pagesize);
8291 if (read (fd, data3, pagesize) != pagesize)
8293 for (i = 0; i < pagesize; ++i)
8294 if (*(data + i) != *(data3 + i))
8300 rm -f conftest$ac_exeext
8301 if { (ac_try="$ac_link"
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_link") 2>&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8311 { (case "(($ac_try" in
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_try") 2>&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; }; then
8320 ac_cv_func_mmap_fixed_mapped=yes
8322 echo "$as_me: program exited with status $ac_status" >&5
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8327 ac_cv_func_mmap_fixed_mapped=no
8329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8334 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8335 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
8336 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8338 cat >>confdefs.h <<\_ACEOF
8339 @%:@define HAVE_MMAP 1
8346 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8347 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
8348 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 cat >conftest.$ac_ext <<_ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8358 #include <features.h>
8359 #ifdef __GNU_LIBRARY__
8360 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8367 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8368 ac_cv_gnu_library_2_1=yes
8370 ac_cv_gnu_library_2_1=no
8377 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8378 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
8380 GLIBC21="$ac_cv_gnu_library_2_1"
8385 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8386 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
8387 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8391 if test "$cross_compiling" = yes; then
8393 # Guess based on the CPU.
8395 alpha* | i3456786 | m68k | s390*)
8396 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8398 gt_cv_int_divbyzero_sigfpe="guessing no";;
8402 cat >conftest.$ac_ext <<_ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8414 sigfpe_handler (int sig)
8416 sigfpe_handler (sig) int sig;
8419 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8420 exit (sig != SIGFPE);
8430 signal (SIGFPE, sigfpe_handler);
8431 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8432 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8433 signal (SIGTRAP, sigfpe_handler);
8435 /* Linux/SPARC yields signal SIGILL. */
8436 #if defined (__sparc__) && defined (__linux__)
8437 signal (SIGILL, sigfpe_handler);
8446 rm -f conftest$ac_exeext
8447 if { (ac_try="$ac_link"
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453 (eval "$ac_link") 2>&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8457 { (case "(($ac_try" in
8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 *) ac_try_echo=$ac_try;;
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462 (eval "$ac_try") 2>&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 gt_cv_int_divbyzero_sigfpe=yes
8468 echo "$as_me: program exited with status $ac_status" >&5
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8473 gt_cv_int_divbyzero_sigfpe=no
8475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8481 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
8482 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
8483 case "$gt_cv_int_divbyzero_sigfpe" in
8488 cat >>confdefs.h <<_ACEOF
8489 @%:@define INTDIV0_RAISES_SIGFPE $value
8494 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8495 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8496 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 cat >conftest.$ac_ext <<_ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8505 #include <sys/types.h>
8506 #include <inttypes.h>
8510 uintmax_t i = (uintmax_t) -1;
8515 rm -f conftest.$ac_objext
8516 if { (ac_try="$ac_compile"
8518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8519 *) ac_try_echo=$ac_try;;
8521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8522 (eval "$ac_compile") 2>conftest.er1
8524 grep -v '^ *+' conftest.er1 >conftest.err
8526 cat conftest.err >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } &&
8529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8530 { (case "(($ac_try" in
8531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8532 *) ac_try_echo=$ac_try;;
8534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8535 (eval "$ac_try") 2>&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; } &&
8539 { ac_try='test -s conftest.$ac_objext'
8540 { (case "(($ac_try" in
8541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542 *) ac_try_echo=$ac_try;;
8544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8545 (eval "$ac_try") 2>&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 jm_ac_cv_header_inttypes_h=yes
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8554 jm_ac_cv_header_inttypes_h=no
8557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8559 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
8560 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
8561 if test $jm_ac_cv_header_inttypes_h = yes; then
8563 cat >>confdefs.h <<_ACEOF
8564 @%:@define HAVE_INTTYPES_H_WITH_UINTMAX 1
8570 { echo "$as_me:$LINENO: checking for stdint.h" >&5
8571 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8572 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8575 cat >conftest.$ac_ext <<_ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8581 #include <sys/types.h>
8586 uintmax_t i = (uintmax_t) -1;
8591 rm -f conftest.$ac_objext
8592 if { (ac_try="$ac_compile"
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598 (eval "$ac_compile") 2>conftest.er1
8600 grep -v '^ *+' conftest.er1 >conftest.err
8602 cat conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } &&
8605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8606 { (case "(($ac_try" in
8607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608 *) ac_try_echo=$ac_try;;
8610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8611 (eval "$ac_try") 2>&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; } &&
8615 { ac_try='test -s conftest.$ac_objext'
8616 { (case "(($ac_try" in
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_try") 2>&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 jm_ac_cv_header_stdint_h=yes
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8630 jm_ac_cv_header_stdint_h=no
8633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8635 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
8636 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
8637 if test $jm_ac_cv_header_stdint_h = yes; then
8639 cat >>confdefs.h <<_ACEOF
8640 @%:@define HAVE_STDINT_H_WITH_UINTMAX 1
8646 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
8647 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
8648 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 cat >conftest.$ac_ext <<_ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657 unsigned long long ull = 1; int i = 63;
8661 unsigned long long ullmax = (unsigned long long) -1;
8662 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8667 rm -f conftest.$ac_objext conftest$ac_exeext
8668 if { (ac_try="$ac_link"
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674 (eval "$ac_link") 2>conftest.er1
8676 grep -v '^ *+' conftest.er1 >conftest.err
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } &&
8681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8682 { (case "(($ac_try" in
8683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8684 *) ac_try_echo=$ac_try;;
8686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8687 (eval "$ac_try") 2>&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; } &&
8691 { ac_try='test -s conftest$ac_exeext'
8692 { (case "(($ac_try" in
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697 (eval "$ac_try") 2>&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8701 ac_cv_type_unsigned_long_long=yes
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8706 ac_cv_type_unsigned_long_long=no
8709 rm -f core conftest.err conftest.$ac_objext \
8710 conftest$ac_exeext conftest.$ac_ext
8712 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
8713 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
8714 if test $ac_cv_type_unsigned_long_long = yes; then
8716 cat >>confdefs.h <<\_ACEOF
8717 @%:@define HAVE_UNSIGNED_LONG_LONG 1
8725 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
8727 test $ac_cv_type_unsigned_long_long = yes \
8728 && ac_type='unsigned long long' \
8729 || ac_type='unsigned long'
8731 cat >>confdefs.h <<_ACEOF
8732 @%:@define uintmax_t $ac_type
8737 cat >>confdefs.h <<\_ACEOF
8738 @%:@define HAVE_UINTMAX_T 1
8744 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8745 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8746 if test "${gt_cv_header_inttypes_h+set}" = set; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
8750 cat >conftest.$ac_ext <<_ACEOF
8753 cat confdefs.h >>conftest.$ac_ext
8754 cat >>conftest.$ac_ext <<_ACEOF
8755 /* end confdefs.h. */
8756 #include <sys/types.h>
8757 #include <inttypes.h>
8766 rm -f conftest.$ac_objext
8767 if { (ac_try="$ac_compile"
8769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770 *) ac_try_echo=$ac_try;;
8772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8773 (eval "$ac_compile") 2>conftest.er1
8775 grep -v '^ *+' conftest.er1 >conftest.err
8777 cat conftest.err >&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); } &&
8780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8781 { (case "(($ac_try" in
8782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783 *) ac_try_echo=$ac_try;;
8785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8786 (eval "$ac_try") 2>&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; } &&
8790 { ac_try='test -s conftest.$ac_objext'
8791 { (case "(($ac_try" in
8792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8793 *) ac_try_echo=$ac_try;;
8795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8796 (eval "$ac_try") 2>&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); }; }; then
8800 gt_cv_header_inttypes_h=yes
8802 echo "$as_me: failed program was:" >&5
8803 sed 's/^/| /' conftest.$ac_ext >&5
8805 gt_cv_header_inttypes_h=no
8808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8811 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
8812 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
8813 if test $gt_cv_header_inttypes_h = yes; then
8815 cat >>confdefs.h <<_ACEOF
8816 @%:@define HAVE_INTTYPES_H 1
8823 if test $gt_cv_header_inttypes_h = yes; then
8824 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
8825 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
8826 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
8830 cat >conftest.$ac_ext <<_ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8836 #include <inttypes.h>
8849 rm -f conftest.$ac_objext
8850 if { (ac_try="$ac_compile"
8852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853 *) ac_try_echo=$ac_try;;
8855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8856 (eval "$ac_compile") 2>conftest.er1
8858 grep -v '^ *+' conftest.er1 >conftest.err
8860 cat conftest.err >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } &&
8863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8864 { (case "(($ac_try" in
8865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866 *) ac_try_echo=$ac_try;;
8868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8869 (eval "$ac_try") 2>&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; } &&
8873 { ac_try='test -s conftest.$ac_objext'
8874 { (case "(($ac_try" in
8875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8876 *) ac_try_echo=$ac_try;;
8878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8879 (eval "$ac_try") 2>&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; }; then
8883 gt_cv_inttypes_pri_broken=no
8885 echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8888 gt_cv_inttypes_pri_broken=yes
8891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8894 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
8895 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
8897 if test "$gt_cv_inttypes_pri_broken" = yes; then
8899 cat >>confdefs.h <<_ACEOF
8900 @%:@define PRI_MACROS_BROKEN 1
8906 if test "X$prefix" = "XNONE"; then
8907 acl_final_prefix="$ac_default_prefix"
8909 acl_final_prefix="$prefix"
8911 if test "X$exec_prefix" = "XNONE"; then
8912 acl_final_exec_prefix='${prefix}'
8914 acl_final_exec_prefix="$exec_prefix"
8916 acl_save_prefix="$prefix"
8917 prefix="$acl_final_prefix"
8918 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8919 prefix="$acl_save_prefix"
8922 # Check whether --with-gnu-ld was given.
8923 if test "${with_gnu_ld+set}" = set; then
8924 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8929 # Prepare PATH_SEPARATOR.
8930 # The user is always right.
8931 if test "${PATH_SEPARATOR+set}" != set; then
8932 echo "#! /bin/sh" >conf$$.sh
8933 echo "exit 0" >>conf$$.sh
8935 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8943 if test "$GCC" = yes; then
8944 # Check if gcc -print-prog-name=ld gives a path.
8945 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8946 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8949 # gcc leaves a trailing carriage return which upsets mingw
8950 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8952 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8955 # Accept absolute paths.
8956 [\\/]* | [A-Za-z]:[\\/]*)
8957 re_direlt='/[^/][^/]*/\.\./'
8958 # Canonicalize the path of ld
8959 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8960 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8961 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8963 test -z "$LD" && LD="$ac_prog"
8966 # If it fails, then pretend we aren't using GCC.
8970 # If it is relative, then search for the first ld in PATH.
8974 elif test "$with_gnu_ld" = yes; then
8975 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8976 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8978 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8979 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8981 if test "${acl_cv_path_LD+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8984 if test -z "$LD"; then
8985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8986 for ac_dir in $PATH; do
8987 test -z "$ac_dir" && ac_dir=.
8988 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8989 acl_cv_path_LD="$ac_dir/$ac_prog"
8990 # Check to see if the program is GNU ld. I'd rather use --version,
8991 # but apparently some GNU ld's only accept -v.
8992 # Break only if it was the GNU/non-GNU ld that we prefer.
8993 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8994 test "$with_gnu_ld" != no && break
8996 test "$with_gnu_ld" != yes && break
9002 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9006 LD="$acl_cv_path_LD"
9007 if test -n "$LD"; then
9008 { echo "$as_me:$LINENO: result: $LD" >&5
9009 echo "${ECHO_T}$LD" >&6; }
9011 { echo "$as_me:$LINENO: result: no" >&5
9012 echo "${ECHO_T}no" >&6; }
9014 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9015 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9016 { (exit 1); exit 1; }; }
9017 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9018 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9019 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9022 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9023 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9024 acl_cv_prog_gnu_ld=yes
9026 acl_cv_prog_gnu_ld=no
9029 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9030 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
9031 with_gnu_ld=$acl_cv_prog_gnu_ld
9035 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9036 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
9037 if test "${acl_cv_rpath+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9041 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9042 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9048 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9049 echo "${ECHO_T}$acl_cv_rpath" >&6; }
9051 libext="$acl_cv_libext"
9052 shlibext="$acl_cv_shlibext"
9053 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9054 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9055 hardcode_direct="$acl_cv_hardcode_direct"
9056 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9057 # Check whether --enable-rpath was given.
9058 if test "${enable_rpath+set}" = set; then
9059 enableval=$enable_rpath; :
9073 acl_save_prefix="$prefix"
9074 prefix="$acl_final_prefix"
9075 acl_save_exec_prefix="$exec_prefix"
9076 exec_prefix="$acl_final_exec_prefix"
9078 eval additional_includedir=\"$includedir\"
9079 eval additional_libdir=\"$libdir\"
9081 exec_prefix="$acl_save_exec_prefix"
9082 prefix="$acl_save_prefix"
9085 # Check whether --with-libiconv-prefix was given.
9086 if test "${with_libiconv_prefix+set}" = set; then
9087 withval=$with_libiconv_prefix;
9088 if test "X$withval" = "Xno"; then
9091 if test "X$withval" = "X"; then
9093 acl_save_prefix="$prefix"
9094 prefix="$acl_final_prefix"
9095 acl_save_exec_prefix="$exec_prefix"
9096 exec_prefix="$acl_final_exec_prefix"
9098 eval additional_includedir=\"$includedir\"
9099 eval additional_libdir=\"$libdir\"
9101 exec_prefix="$acl_save_exec_prefix"
9102 prefix="$acl_save_prefix"
9105 additional_includedir="$withval/include"
9106 additional_libdir="$withval/lib"
9117 names_already_handled=
9118 names_next_round='iconv '
9119 while test -n "$names_next_round"; do
9120 names_this_round="$names_next_round"
9122 for name in $names_this_round; do
9124 for n in $names_already_handled; do
9125 if test "$n" = "$name"; then
9130 if test -z "$already_handled"; then
9131 names_already_handled="$names_already_handled $name"
9132 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9133 eval value=\"\$HAVE_LIB$uppername\"
9134 if test -n "$value"; then
9135 if test "$value" = yes; then
9136 eval value=\"\$LIB$uppername\"
9137 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9138 eval value=\"\$LTLIB$uppername\"
9139 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9148 if test $use_additional = yes; then
9149 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9150 found_dir="$additional_libdir"
9151 found_so="$additional_libdir/lib$name.$shlibext"
9152 if test -f "$additional_libdir/lib$name.la"; then
9153 found_la="$additional_libdir/lib$name.la"
9156 if test -f "$additional_libdir/lib$name.$libext"; then
9157 found_dir="$additional_libdir"
9158 found_a="$additional_libdir/lib$name.$libext"
9159 if test -f "$additional_libdir/lib$name.la"; then
9160 found_la="$additional_libdir/lib$name.la"
9165 if test "X$found_dir" = "X"; then
9166 for x in $LDFLAGS $LTLIBICONV; do
9168 acl_save_prefix="$prefix"
9169 prefix="$acl_final_prefix"
9170 acl_save_exec_prefix="$exec_prefix"
9171 exec_prefix="$acl_final_exec_prefix"
9173 exec_prefix="$acl_save_exec_prefix"
9174 prefix="$acl_save_prefix"
9178 dir=`echo "X$x" | sed -e 's/^X-L//'`
9179 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9181 found_so="$dir/lib$name.$shlibext"
9182 if test -f "$dir/lib$name.la"; then
9183 found_la="$dir/lib$name.la"
9186 if test -f "$dir/lib$name.$libext"; then
9188 found_a="$dir/lib$name.$libext"
9189 if test -f "$dir/lib$name.la"; then
9190 found_la="$dir/lib$name.la"
9196 if test "X$found_dir" != "X"; then
9201 if test "X$found_dir" != "X"; then
9202 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9203 if test "X$found_so" != "X"; then
9204 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9205 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9208 for x in $ltrpathdirs; do
9209 if test "X$x" = "X$found_dir"; then
9214 if test -z "$haveit"; then
9215 ltrpathdirs="$ltrpathdirs $found_dir"
9217 if test "$hardcode_direct" = yes; then
9218 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9220 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9221 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9223 for x in $rpathdirs; do
9224 if test "X$x" = "X$found_dir"; then
9229 if test -z "$haveit"; then
9230 rpathdirs="$rpathdirs $found_dir"
9234 for x in $LDFLAGS $LIBICONV; do
9236 acl_save_prefix="$prefix"
9237 prefix="$acl_final_prefix"
9238 acl_save_exec_prefix="$exec_prefix"
9239 exec_prefix="$acl_final_exec_prefix"
9241 exec_prefix="$acl_save_exec_prefix"
9242 prefix="$acl_save_prefix"
9244 if test "X$x" = "X-L$found_dir"; then
9249 if test -z "$haveit"; then
9250 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9252 if test "$hardcode_minus_L" != no; then
9253 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9255 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9261 if test "X$found_a" != "X"; then
9262 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9264 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9267 additional_includedir=
9268 case "$found_dir" in
9270 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9271 additional_includedir="$basedir/include"
9274 if test "X$additional_includedir" != "X"; then
9275 if test "X$additional_includedir" != "X/usr/include"; then
9277 if test "X$additional_includedir" = "X/usr/local/include"; then
9278 if test -n "$GCC"; then
9280 linux*) haveit=yes;;
9284 if test -z "$haveit"; then
9285 for x in $CPPFLAGS $INCICONV; do
9287 acl_save_prefix="$prefix"
9288 prefix="$acl_final_prefix"
9289 acl_save_exec_prefix="$exec_prefix"
9290 exec_prefix="$acl_final_exec_prefix"
9292 exec_prefix="$acl_save_exec_prefix"
9293 prefix="$acl_save_prefix"
9295 if test "X$x" = "X-I$additional_includedir"; then
9300 if test -z "$haveit"; then
9301 if test -d "$additional_includedir"; then
9302 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9308 if test -n "$found_la"; then
9309 save_libdir="$libdir"
9311 */* | *\\*) . "$found_la" ;;
9312 *) . "./$found_la" ;;
9314 libdir="$save_libdir"
9315 for dep in $dependency_libs; do
9318 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9319 if test "X$additional_libdir" != "X/usr/lib"; then
9321 if test "X$additional_libdir" = "X/usr/local/lib"; then
9322 if test -n "$GCC"; then
9324 linux*) haveit=yes;;
9328 if test -z "$haveit"; then
9330 for x in $LDFLAGS $LIBICONV; do
9332 acl_save_prefix="$prefix"
9333 prefix="$acl_final_prefix"
9334 acl_save_exec_prefix="$exec_prefix"
9335 exec_prefix="$acl_final_exec_prefix"
9337 exec_prefix="$acl_save_exec_prefix"
9338 prefix="$acl_save_prefix"
9340 if test "X$x" = "X-L$additional_libdir"; then
9345 if test -z "$haveit"; then
9346 if test -d "$additional_libdir"; then
9347 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9351 for x in $LDFLAGS $LTLIBICONV; do
9353 acl_save_prefix="$prefix"
9354 prefix="$acl_final_prefix"
9355 acl_save_exec_prefix="$exec_prefix"
9356 exec_prefix="$acl_final_exec_prefix"
9358 exec_prefix="$acl_save_exec_prefix"
9359 prefix="$acl_save_prefix"
9361 if test "X$x" = "X-L$additional_libdir"; then
9366 if test -z "$haveit"; then
9367 if test -d "$additional_libdir"; then
9368 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9375 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9376 if test "$enable_rpath" != no; then
9378 for x in $rpathdirs; do
9379 if test "X$x" = "X$dir"; then
9384 if test -z "$haveit"; then
9385 rpathdirs="$rpathdirs $dir"
9388 for x in $ltrpathdirs; do
9389 if test "X$x" = "X$dir"; then
9394 if test -z "$haveit"; then
9395 ltrpathdirs="$ltrpathdirs $dir"
9400 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9403 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9406 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9407 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9413 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9414 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9420 if test "X$rpathdirs" != "X"; then
9421 if test -n "$hardcode_libdir_separator"; then
9423 for found_dir in $rpathdirs; do
9424 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9426 acl_save_libdir="$libdir"
9428 eval flag=\"$hardcode_libdir_flag_spec\"
9429 libdir="$acl_save_libdir"
9430 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9432 for found_dir in $rpathdirs; do
9433 acl_save_libdir="$libdir"
9435 eval flag=\"$hardcode_libdir_flag_spec\"
9436 libdir="$acl_save_libdir"
9437 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9441 if test "X$ltrpathdirs" != "X"; then
9442 for found_dir in $ltrpathdirs; do
9443 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9460 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9461 stdlib.h string.h unistd.h sys/param.h
9463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
9470 ac_res=`eval echo '${'$as_ac_Header'}'`
9471 { echo "$as_me:$LINENO: result: $ac_res" >&5
9472 echo "${ECHO_T}$ac_res" >&6; }
9474 # Is the header compilable?
9475 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9477 cat >conftest.$ac_ext <<_ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h. */
9483 $ac_includes_default
9484 @%:@include <$ac_header>
9486 rm -f conftest.$ac_objext
9487 if { (ac_try="$ac_compile"
9489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9490 *) ac_try_echo=$ac_try;;
9492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9493 (eval "$ac_compile") 2>conftest.er1
9495 grep -v '^ *+' conftest.er1 >conftest.err
9497 cat conftest.err >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } &&
9500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9501 { (case "(($ac_try" in
9502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9503 *) ac_try_echo=$ac_try;;
9505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9506 (eval "$ac_try") 2>&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); }; } &&
9510 { ac_try='test -s conftest.$ac_objext'
9511 { (case "(($ac_try" in
9512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513 *) ac_try_echo=$ac_try;;
9515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9516 (eval "$ac_try") 2>&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; }; then
9520 ac_header_compiler=yes
9522 echo "$as_me: failed program was:" >&5
9523 sed 's/^/| /' conftest.$ac_ext >&5
9525 ac_header_compiler=no
9528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9529 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9530 echo "${ECHO_T}$ac_header_compiler" >&6; }
9532 # Is the header present?
9533 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9535 cat >conftest.$ac_ext <<_ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9541 @%:@include <$ac_header>
9543 if { (ac_try="$ac_cpp conftest.$ac_ext"
9545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546 *) ac_try_echo=$ac_try;;
9548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9551 grep -v '^ *+' conftest.er1 >conftest.err
9553 cat conftest.err >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } >/dev/null; then
9556 if test -s conftest.err; then
9557 ac_cpp_err=$ac_c_preproc_warn_flag
9558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9565 if test -z "$ac_cpp_err"; then
9566 ac_header_preproc=yes
9568 echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9571 ac_header_preproc=no
9574 rm -f conftest.err conftest.$ac_ext
9575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9576 echo "${ECHO_T}$ac_header_preproc" >&6; }
9578 # So? What about this header?
9579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9585 ac_header_preproc=yes
9588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9601 @%:@@%:@ ------------------------------- @%:@@%:@
9602 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
9603 @%:@@%:@ ------------------------------- @%:@@%:@
9605 ) | sed "s/^/$as_me: WARNING: /" >&2
9608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9613 eval "$as_ac_Header=\$ac_header_preproc"
9615 ac_res=`eval echo '${'$as_ac_Header'}'`
9616 { echo "$as_me:$LINENO: result: $ac_res" >&5
9617 echo "${ECHO_T}$ac_res" >&6; }
9620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9621 cat >>confdefs.h <<_ACEOF
9622 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9652 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
9653 geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \
9654 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
9657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9658 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 cat >conftest.$ac_ext <<_ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9671 #define $ac_func innocuous_$ac_func
9673 /* System header to define __stub macros and hopefully few prototypes,
9674 which can conflict with char $ac_func (); below.
9675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9676 <limits.h> exists even on freestanding compilers. */
9679 # include <limits.h>
9681 # include <assert.h>
9686 /* Override any GCC internal prototype to avoid an error.
9687 Use char because int might match the return type of a GCC
9688 builtin and then its argument prototype would still apply. */
9693 /* The GNU C library defines this for functions which it implements
9694 to always fail with ENOSYS. Some functions are actually named
9695 something starting with __ and the normal name is an alias. */
9696 #if defined __stub_$ac_func || defined __stub___$ac_func
9708 rm -f conftest.$ac_objext conftest$ac_exeext
9709 if { (ac_try="$ac_link"
9711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715 (eval "$ac_link") 2>conftest.er1
9717 grep -v '^ *+' conftest.er1 >conftest.err
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
9722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9723 { (case "(($ac_try" in
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_try") 2>&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; } &&
9732 { ac_try='test -s conftest$ac_exeext'
9733 { (case "(($ac_try" in
9734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9735 *) ac_try_echo=$ac_try;;
9737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9738 (eval "$ac_try") 2>&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; }; then
9742 eval "$as_ac_var=yes"
9744 echo "$as_me: failed program was:" >&5
9745 sed 's/^/| /' conftest.$ac_ext >&5
9747 eval "$as_ac_var=no"
9750 rm -f core conftest.err conftest.$ac_objext \
9751 conftest$ac_exeext conftest.$ac_ext
9753 ac_res=`eval echo '${'$as_ac_var'}'`
9754 { echo "$as_me:$LINENO: result: $ac_res" >&5
9755 echo "${ECHO_T}$ac_res" >&6; }
9756 if test `eval echo '${'$as_ac_var'}'` = yes; then
9757 cat >>confdefs.h <<_ACEOF
9758 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9770 am_save_CPPFLAGS="$CPPFLAGS"
9772 for element in $INCICONV; do
9774 for x in $CPPFLAGS; do
9776 acl_save_prefix="$prefix"
9777 prefix="$acl_final_prefix"
9778 acl_save_exec_prefix="$exec_prefix"
9779 exec_prefix="$acl_final_exec_prefix"
9781 exec_prefix="$acl_save_exec_prefix"
9782 prefix="$acl_save_prefix"
9784 if test "X$x" = "X$element"; then
9789 if test -z "$haveit"; then
9790 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9795 { echo "$as_me:$LINENO: checking for iconv" >&5
9796 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9797 if test "${am_cv_func_iconv+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 am_cv_func_iconv="no, consider installing GNU libiconv"
9803 cat >conftest.$ac_ext <<_ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9814 iconv_t cd = iconv_open("","");
9815 iconv(cd,NULL,NULL,NULL,NULL);
9821 rm -f conftest.$ac_objext conftest$ac_exeext
9822 if { (ac_try="$ac_link"
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_link") 2>conftest.er1
9830 grep -v '^ *+' conftest.er1 >conftest.err
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } &&
9835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9836 { (case "(($ac_try" in
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_try") 2>&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; } &&
9845 { ac_try='test -s conftest$ac_exeext'
9846 { (case "(($ac_try" in
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_try") 2>&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; }; then
9855 am_cv_func_iconv=yes
9857 echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9863 rm -f core conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9865 if test "$am_cv_func_iconv" != yes; then
9866 am_save_LIBS="$LIBS"
9867 LIBS="$LIBS $LIBICONV"
9868 cat >conftest.$ac_ext <<_ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9879 iconv_t cd = iconv_open("","");
9880 iconv(cd,NULL,NULL,NULL,NULL);
9886 rm -f conftest.$ac_objext conftest$ac_exeext
9887 if { (ac_try="$ac_link"
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_link") 2>conftest.er1
9895 grep -v '^ *+' conftest.er1 >conftest.err
9897 cat conftest.err >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9901 { (case "(($ac_try" in
9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9906 (eval "$ac_try") 2>&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; } &&
9910 { ac_try='test -s conftest$ac_exeext'
9911 { (case "(($ac_try" in
9912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913 *) ac_try_echo=$ac_try;;
9915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916 (eval "$ac_try") 2>&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9921 am_cv_func_iconv=yes
9923 echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9929 rm -f core conftest.err conftest.$ac_objext \
9930 conftest$ac_exeext conftest.$ac_ext
9931 LIBS="$am_save_LIBS"
9935 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9936 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9937 if test "$am_cv_func_iconv" = yes; then
9939 cat >>confdefs.h <<\_ACEOF
9940 @%:@define HAVE_ICONV 1
9944 if test "$am_cv_lib_iconv" = yes; then
9945 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9946 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9947 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9948 echo "${ECHO_T}$LIBICONV" >&6; }
9950 CPPFLAGS="$am_save_CPPFLAGS"
9957 if test "$am_cv_func_iconv" = yes; then
9958 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9959 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9960 if test "${am_cv_proto_iconv+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 cat >conftest.$ac_ext <<_ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9977 #if defined(__STDC__) || defined(__cplusplus)
9978 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9991 rm -f conftest.$ac_objext
9992 if { (ac_try="$ac_compile"
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998 (eval "$ac_compile") 2>conftest.er1
10000 grep -v '^ *+' conftest.er1 >conftest.err
10002 cat conftest.err >&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } &&
10005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10006 { (case "(($ac_try" in
10007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10008 *) ac_try_echo=$ac_try;;
10010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10011 (eval "$ac_try") 2>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; } &&
10015 { ac_try='test -s conftest.$ac_objext'
10016 { (case "(($ac_try" in
10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018 *) ac_try_echo=$ac_try;;
10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021 (eval "$ac_try") 2>&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; }; then
10025 am_cv_proto_iconv_arg1=""
10027 echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.$ac_ext >&5
10030 am_cv_proto_iconv_arg1="const"
10033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10034 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10037 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10038 { echo "$as_me:$LINENO: result: ${ac_t:-
10039 }$am_cv_proto_iconv" >&5
10040 echo "${ECHO_T}${ac_t:-
10041 }$am_cv_proto_iconv" >&6; }
10043 cat >>confdefs.h <<_ACEOF
10044 @%:@define ICONV_CONST $am_cv_proto_iconv_arg1
10050 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10051 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
10052 if test "${am_cv_langinfo_codeset+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10055 cat >conftest.$ac_ext <<_ACEOF
10058 cat confdefs.h >>conftest.$ac_ext
10059 cat >>conftest.$ac_ext <<_ACEOF
10060 /* end confdefs.h. */
10061 #include <langinfo.h>
10065 char* cs = nl_langinfo(CODESET);
10070 rm -f conftest.$ac_objext conftest$ac_exeext
10071 if { (ac_try="$ac_link"
10072 case "(($ac_try" in
10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077 (eval "$ac_link") 2>conftest.er1
10079 grep -v '^ *+' conftest.er1 >conftest.err
10081 cat conftest.err >&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); } &&
10084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10085 { (case "(($ac_try" in
10086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087 *) ac_try_echo=$ac_try;;
10089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10090 (eval "$ac_try") 2>&5
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); }; } &&
10094 { ac_try='test -s conftest$ac_exeext'
10095 { (case "(($ac_try" in
10096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097 *) ac_try_echo=$ac_try;;
10099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10100 (eval "$ac_try") 2>&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; }; then
10104 am_cv_langinfo_codeset=yes
10106 echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10109 am_cv_langinfo_codeset=no
10112 rm -f core conftest.err conftest.$ac_objext \
10113 conftest$ac_exeext conftest.$ac_ext
10116 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10117 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
10118 if test $am_cv_langinfo_codeset = yes; then
10120 cat >>confdefs.h <<\_ACEOF
10121 @%:@define HAVE_LANGINFO_CODESET 1
10126 if test $ac_cv_header_locale_h = yes; then
10128 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10129 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
10130 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 cat >conftest.$ac_ext <<_ACEOF
10136 cat confdefs.h >>conftest.$ac_ext
10137 cat >>conftest.$ac_ext <<_ACEOF
10138 /* end confdefs.h. */
10139 #include <locale.h>
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (ac_try="$ac_link"
10150 case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155 (eval "$ac_link") 2>conftest.er1
10157 grep -v '^ *+' conftest.er1 >conftest.err
10159 cat conftest.err >&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); } &&
10162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10163 { (case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168 (eval "$ac_try") 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; } &&
10172 { ac_try='test -s conftest$ac_exeext'
10173 { (case "(($ac_try" in
10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178 (eval "$ac_try") 2>&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; }; then
10182 am_cv_val_LC_MESSAGES=yes
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10187 am_cv_val_LC_MESSAGES=no
10190 rm -f core conftest.err conftest.$ac_objext \
10191 conftest$ac_exeext conftest.$ac_ext
10193 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10194 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
10195 if test $am_cv_val_LC_MESSAGES = yes; then
10197 cat >>confdefs.h <<\_ACEOF
10198 @%:@define HAVE_LC_MESSAGES 1
10205 for ac_prog in bison
10207 # Extract the first word of "$ac_prog", so it can be a program name with args.
10208 set dummy $ac_prog; ac_word=$2
10209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10211 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 if test -n "$INTLBISON"; then
10215 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218 for as_dir in $PATH
10221 test -z "$as_dir" && as_dir=.
10222 for ac_exec_ext in '' $ac_executable_extensions; do
10223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10224 ac_cv_prog_INTLBISON="$ac_prog"
10225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10234 INTLBISON=$ac_cv_prog_INTLBISON
10235 if test -n "$INTLBISON"; then
10236 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10237 echo "${ECHO_T}$INTLBISON" >&6; }
10239 { echo "$as_me:$LINENO: result: no" >&5
10240 echo "${ECHO_T}no" >&6; }
10244 test -n "$INTLBISON" && break
10247 if test -z "$INTLBISON"; then
10250 { echo "$as_me:$LINENO: checking version of bison" >&5
10251 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10252 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10253 case $ac_prog_version in
10254 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10255 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10256 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10257 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10259 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10260 echo "${ECHO_T}$ac_prog_version" >&6; }
10262 if test $ac_verc_fail = yes; then
10281 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10282 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10283 # Check whether --enable-nls was given.
10284 if test "${enable_nls+set}" = set; then
10285 enableval=$enable_nls; USE_NLS=$enableval
10290 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10291 echo "${ECHO_T}$USE_NLS" >&6; }
10296 BUILD_INCLUDED_LIBINTL=no
10297 USE_INCLUDED_LIBINTL=no
10303 if test "$USE_NLS" = "yes"; then
10304 gt_use_preinstalled_gnugettext=no
10306 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10307 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10309 # Check whether --with-included-gettext was given.
10310 if test "${with_included_gettext+set}" = set; then
10311 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10313 nls_cv_force_use_gnu_gettext=no
10316 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10317 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10319 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10320 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10327 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10328 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10329 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
10330 echo $ECHO_N "(cached) $ECHO_C" >&6
10332 cat >conftest.$ac_ext <<_ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10338 #include <libintl.h>
10339 extern int _nl_msg_cat_cntr;
10340 extern int *_nl_domain_bindings;
10344 bindtextdomain ("", "");
10345 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
10350 rm -f conftest.$ac_objext conftest$ac_exeext
10351 if { (ac_try="$ac_link"
10352 case "(($ac_try" in
10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357 (eval "$ac_link") 2>conftest.er1
10359 grep -v '^ *+' conftest.er1 >conftest.err
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } &&
10364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10365 { (case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370 (eval "$ac_try") 2>&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; } &&
10374 { ac_try='test -s conftest$ac_exeext'
10375 { (case "(($ac_try" in
10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_try") 2>&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); }; }; then
10384 gt_cv_func_gnugettext2_libc=yes
10386 echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10389 gt_cv_func_gnugettext2_libc=no
10392 rm -f core conftest.err conftest.$ac_objext \
10393 conftest$ac_exeext conftest.$ac_ext
10395 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
10396 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6; }
10398 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
10404 acl_save_prefix="$prefix"
10405 prefix="$acl_final_prefix"
10406 acl_save_exec_prefix="$exec_prefix"
10407 exec_prefix="$acl_final_exec_prefix"
10409 eval additional_includedir=\"$includedir\"
10410 eval additional_libdir=\"$libdir\"
10412 exec_prefix="$acl_save_exec_prefix"
10413 prefix="$acl_save_prefix"
10416 # Check whether --with-libintl-prefix was given.
10417 if test "${with_libintl_prefix+set}" = set; then
10418 withval=$with_libintl_prefix;
10419 if test "X$withval" = "Xno"; then
10422 if test "X$withval" = "X"; then
10424 acl_save_prefix="$prefix"
10425 prefix="$acl_final_prefix"
10426 acl_save_exec_prefix="$exec_prefix"
10427 exec_prefix="$acl_final_exec_prefix"
10429 eval additional_includedir=\"$includedir\"
10430 eval additional_libdir=\"$libdir\"
10432 exec_prefix="$acl_save_exec_prefix"
10433 prefix="$acl_save_prefix"
10436 additional_includedir="$withval/include"
10437 additional_libdir="$withval/lib"
10448 names_already_handled=
10449 names_next_round='intl '
10450 while test -n "$names_next_round"; do
10451 names_this_round="$names_next_round"
10453 for name in $names_this_round; do
10455 for n in $names_already_handled; do
10456 if test "$n" = "$name"; then
10457 already_handled=yes
10461 if test -z "$already_handled"; then
10462 names_already_handled="$names_already_handled $name"
10463 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10464 eval value=\"\$HAVE_LIB$uppername\"
10465 if test -n "$value"; then
10466 if test "$value" = yes; then
10467 eval value=\"\$LIB$uppername\"
10468 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10469 eval value=\"\$LTLIB$uppername\"
10470 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10479 if test $use_additional = yes; then
10480 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10481 found_dir="$additional_libdir"
10482 found_so="$additional_libdir/lib$name.$shlibext"
10483 if test -f "$additional_libdir/lib$name.la"; then
10484 found_la="$additional_libdir/lib$name.la"
10487 if test -f "$additional_libdir/lib$name.$libext"; then
10488 found_dir="$additional_libdir"
10489 found_a="$additional_libdir/lib$name.$libext"
10490 if test -f "$additional_libdir/lib$name.la"; then
10491 found_la="$additional_libdir/lib$name.la"
10496 if test "X$found_dir" = "X"; then
10497 for x in $LDFLAGS $LTLIBINTL; do
10499 acl_save_prefix="$prefix"
10500 prefix="$acl_final_prefix"
10501 acl_save_exec_prefix="$exec_prefix"
10502 exec_prefix="$acl_final_exec_prefix"
10504 exec_prefix="$acl_save_exec_prefix"
10505 prefix="$acl_save_prefix"
10509 dir=`echo "X$x" | sed -e 's/^X-L//'`
10510 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10512 found_so="$dir/lib$name.$shlibext"
10513 if test -f "$dir/lib$name.la"; then
10514 found_la="$dir/lib$name.la"
10517 if test -f "$dir/lib$name.$libext"; then
10519 found_a="$dir/lib$name.$libext"
10520 if test -f "$dir/lib$name.la"; then
10521 found_la="$dir/lib$name.la"
10527 if test "X$found_dir" != "X"; then
10532 if test "X$found_dir" != "X"; then
10533 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10534 if test "X$found_so" != "X"; then
10535 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10536 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10539 for x in $ltrpathdirs; do
10540 if test "X$x" = "X$found_dir"; then
10545 if test -z "$haveit"; then
10546 ltrpathdirs="$ltrpathdirs $found_dir"
10548 if test "$hardcode_direct" = yes; then
10549 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10551 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10552 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10554 for x in $rpathdirs; do
10555 if test "X$x" = "X$found_dir"; then
10560 if test -z "$haveit"; then
10561 rpathdirs="$rpathdirs $found_dir"
10565 for x in $LDFLAGS $LIBINTL; do
10567 acl_save_prefix="$prefix"
10568 prefix="$acl_final_prefix"
10569 acl_save_exec_prefix="$exec_prefix"
10570 exec_prefix="$acl_final_exec_prefix"
10572 exec_prefix="$acl_save_exec_prefix"
10573 prefix="$acl_save_prefix"
10575 if test "X$x" = "X-L$found_dir"; then
10580 if test -z "$haveit"; then
10581 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10583 if test "$hardcode_minus_L" != no; then
10584 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10586 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10592 if test "X$found_a" != "X"; then
10593 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10595 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10598 additional_includedir=
10599 case "$found_dir" in
10601 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10602 additional_includedir="$basedir/include"
10605 if test "X$additional_includedir" != "X"; then
10606 if test "X$additional_includedir" != "X/usr/include"; then
10608 if test "X$additional_includedir" = "X/usr/local/include"; then
10609 if test -n "$GCC"; then
10611 linux*) haveit=yes;;
10615 if test -z "$haveit"; then
10616 for x in $CPPFLAGS $INCINTL; do
10618 acl_save_prefix="$prefix"
10619 prefix="$acl_final_prefix"
10620 acl_save_exec_prefix="$exec_prefix"
10621 exec_prefix="$acl_final_exec_prefix"
10623 exec_prefix="$acl_save_exec_prefix"
10624 prefix="$acl_save_prefix"
10626 if test "X$x" = "X-I$additional_includedir"; then
10631 if test -z "$haveit"; then
10632 if test -d "$additional_includedir"; then
10633 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10639 if test -n "$found_la"; then
10640 save_libdir="$libdir"
10641 case "$found_la" in
10642 */* | *\\*) . "$found_la" ;;
10643 *) . "./$found_la" ;;
10645 libdir="$save_libdir"
10646 for dep in $dependency_libs; do
10649 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10650 if test "X$additional_libdir" != "X/usr/lib"; then
10652 if test "X$additional_libdir" = "X/usr/local/lib"; then
10653 if test -n "$GCC"; then
10655 linux*) haveit=yes;;
10659 if test -z "$haveit"; then
10661 for x in $LDFLAGS $LIBINTL; do
10663 acl_save_prefix="$prefix"
10664 prefix="$acl_final_prefix"
10665 acl_save_exec_prefix="$exec_prefix"
10666 exec_prefix="$acl_final_exec_prefix"
10668 exec_prefix="$acl_save_exec_prefix"
10669 prefix="$acl_save_prefix"
10671 if test "X$x" = "X-L$additional_libdir"; then
10676 if test -z "$haveit"; then
10677 if test -d "$additional_libdir"; then
10678 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10682 for x in $LDFLAGS $LTLIBINTL; do
10684 acl_save_prefix="$prefix"
10685 prefix="$acl_final_prefix"
10686 acl_save_exec_prefix="$exec_prefix"
10687 exec_prefix="$acl_final_exec_prefix"
10689 exec_prefix="$acl_save_exec_prefix"
10690 prefix="$acl_save_prefix"
10692 if test "X$x" = "X-L$additional_libdir"; then
10697 if test -z "$haveit"; then
10698 if test -d "$additional_libdir"; then
10699 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10706 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10707 if test "$enable_rpath" != no; then
10709 for x in $rpathdirs; do
10710 if test "X$x" = "X$dir"; then
10715 if test -z "$haveit"; then
10716 rpathdirs="$rpathdirs $dir"
10719 for x in $ltrpathdirs; do
10720 if test "X$x" = "X$dir"; then
10725 if test -z "$haveit"; then
10726 ltrpathdirs="$ltrpathdirs $dir"
10731 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10734 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10737 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10738 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10744 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10745 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10751 if test "X$rpathdirs" != "X"; then
10752 if test -n "$hardcode_libdir_separator"; then
10754 for found_dir in $rpathdirs; do
10755 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10757 acl_save_libdir="$libdir"
10759 eval flag=\"$hardcode_libdir_flag_spec\"
10760 libdir="$acl_save_libdir"
10761 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10763 for found_dir in $rpathdirs; do
10764 acl_save_libdir="$libdir"
10765 libdir="$found_dir"
10766 eval flag=\"$hardcode_libdir_flag_spec\"
10767 libdir="$acl_save_libdir"
10768 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10772 if test "X$ltrpathdirs" != "X"; then
10773 for found_dir in $ltrpathdirs; do
10774 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10778 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10779 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10780 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
10781 echo $ECHO_N "(cached) $ECHO_C" >&6
10783 gt_save_CPPFLAGS="$CPPFLAGS"
10784 CPPFLAGS="$CPPFLAGS $INCINTL"
10785 gt_save_LIBS="$LIBS"
10786 LIBS="$LIBS $LIBINTL"
10787 cat >conftest.$ac_ext <<_ACEOF
10790 cat confdefs.h >>conftest.$ac_ext
10791 cat >>conftest.$ac_ext <<_ACEOF
10792 /* end confdefs.h. */
10793 #include <libintl.h>
10794 extern int _nl_msg_cat_cntr;
10799 const char *_nl_expand_alias ();
10803 bindtextdomain ("", "");
10804 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10809 rm -f conftest.$ac_objext conftest$ac_exeext
10810 if { (ac_try="$ac_link"
10811 case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_link") 2>conftest.er1
10818 grep -v '^ *+' conftest.er1 >conftest.err
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
10823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10824 { (case "(($ac_try" in
10825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826 *) ac_try_echo=$ac_try;;
10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829 (eval "$ac_try") 2>&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; } &&
10833 { ac_try='test -s conftest$ac_exeext'
10834 { (case "(($ac_try" in
10835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10836 *) ac_try_echo=$ac_try;;
10838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10839 (eval "$ac_try") 2>&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; }; then
10843 gt_cv_func_gnugettext2_libintl=yes
10845 echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.$ac_ext >&5
10848 gt_cv_func_gnugettext2_libintl=no
10851 rm -f core conftest.err conftest.$ac_objext \
10852 conftest$ac_exeext conftest.$ac_ext
10853 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
10854 LIBS="$LIBS $LIBICONV"
10855 cat >conftest.$ac_ext <<_ACEOF
10858 cat confdefs.h >>conftest.$ac_ext
10859 cat >>conftest.$ac_ext <<_ACEOF
10860 /* end confdefs.h. */
10861 #include <libintl.h>
10862 extern int _nl_msg_cat_cntr;
10867 const char *_nl_expand_alias ();
10871 bindtextdomain ("", "");
10872 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10877 rm -f conftest.$ac_objext conftest$ac_exeext
10878 if { (ac_try="$ac_link"
10879 case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_link") 2>conftest.er1
10886 grep -v '^ *+' conftest.er1 >conftest.err
10888 cat conftest.err >&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } &&
10891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10892 { (case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_try") 2>&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); }; } &&
10901 { ac_try='test -s conftest$ac_exeext'
10902 { (case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_try") 2>&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; }; then
10911 LIBINTL="$LIBINTL $LIBICONV"
10912 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10913 gt_cv_func_gnugettext2_libintl=yes
10916 echo "$as_me: failed program was:" >&5
10917 sed 's/^/| /' conftest.$ac_ext >&5
10922 rm -f core conftest.err conftest.$ac_objext \
10923 conftest$ac_exeext conftest.$ac_ext
10925 CPPFLAGS="$gt_save_CPPFLAGS"
10926 LIBS="$gt_save_LIBS"
10928 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
10929 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6; }
10932 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
10933 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
10934 && test "$PACKAGE" != gettext-runtime \
10935 && test "$PACKAGE" != gettext-tools; }; then
10936 gt_use_preinstalled_gnugettext=yes
10944 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10945 nls_cv_use_gnu_gettext=yes
10949 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10950 BUILD_INCLUDED_LIBINTL=yes
10951 USE_INCLUDED_LIBINTL=yes
10952 LIBINTL="lib/intl/libintl.a $LIBICONV"
10953 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
10954 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10957 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10958 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10963 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10964 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10966 cat >>confdefs.h <<\_ACEOF
10967 @%:@define ENABLE_NLS 1
10975 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10976 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10977 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10978 echo "${ECHO_T}$USE_NLS" >&6; }
10979 if test "$USE_NLS" = "yes"; then
10980 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10981 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10982 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10983 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10984 gt_source="external libintl"
10989 gt_source="included intl directory"
10991 { echo "$as_me:$LINENO: result: $gt_source" >&5
10992 echo "${ECHO_T}$gt_source" >&6; }
10995 if test "$USE_NLS" = "yes"; then
10997 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10998 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10999 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
11000 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
11001 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
11002 echo "${ECHO_T}$LIBINTL" >&6; }
11004 for element in $INCINTL; do
11006 for x in $CPPFLAGS; do
11008 acl_save_prefix="$prefix"
11009 prefix="$acl_final_prefix"
11010 acl_save_exec_prefix="$exec_prefix"
11011 exec_prefix="$acl_final_exec_prefix"
11013 exec_prefix="$acl_save_exec_prefix"
11014 prefix="$acl_save_prefix"
11016 if test "X$x" = "X$element"; then
11021 if test -z "$haveit"; then
11022 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11029 cat >>confdefs.h <<\_ACEOF
11030 @%:@define HAVE_GETTEXT 1
11034 cat >>confdefs.h <<\_ACEOF
11035 @%:@define HAVE_DCGETTEXT 1
11044 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11045 BUILD_INCLUDED_LIBINTL=yes
11052 nls_cv_header_intl=
11053 nls_cv_header_libgt=
11064 if test "$USE_INCLUDED_LIBINTL" = yes; then
11065 INTLOBJS="\$(GETTOBJS)"
11069 INTL_LIBTOOL_SUFFIX_PREFIX=
11073 INTLLIBS="$LIBINTL"
11086 ac_header_dirent=no
11087 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11088 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11089 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11090 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
11091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11094 cat >conftest.$ac_ext <<_ACEOF
11097 cat confdefs.h >>conftest.$ac_ext
11098 cat >>conftest.$ac_ext <<_ACEOF
11099 /* end confdefs.h. */
11100 #include <sys/types.h>
11112 rm -f conftest.$ac_objext
11113 if { (ac_try="$ac_compile"
11114 case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_compile") 2>conftest.er1
11121 grep -v '^ *+' conftest.er1 >conftest.err
11123 cat conftest.err >&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } &&
11126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11127 { (case "(($ac_try" in
11128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129 *) ac_try_echo=$ac_try;;
11131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11132 (eval "$ac_try") 2>&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); }; } &&
11136 { ac_try='test -s conftest.$ac_objext'
11137 { (case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142 (eval "$ac_try") 2>&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); }; }; then
11146 eval "$as_ac_Header=yes"
11148 echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11151 eval "$as_ac_Header=no"
11154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11156 ac_res=`eval echo '${'$as_ac_Header'}'`
11157 { echo "$as_me:$LINENO: result: $ac_res" >&5
11158 echo "${ECHO_T}$ac_res" >&6; }
11159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11160 cat >>confdefs.h <<_ACEOF
11161 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11164 ac_header_dirent=$ac_hdr; break
11168 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11169 if test $ac_header_dirent = dirent.h; then
11170 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11171 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11172 if test "${ac_cv_search_opendir+set}" = set; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11175 ac_func_search_save_LIBS=$LIBS
11176 cat >conftest.$ac_ext <<_ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h. */
11183 /* Override any GCC internal prototype to avoid an error.
11184 Use char because int might match the return type of a GCC
11185 builtin and then its argument prototype would still apply. */
11198 for ac_lib in '' dir; do
11199 if test -z "$ac_lib"; then
11200 ac_res="none required"
11203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11205 rm -f conftest.$ac_objext conftest$ac_exeext
11206 if { (ac_try="$ac_link"
11207 case "(($ac_try" in
11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209 *) ac_try_echo=$ac_try;;
11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212 (eval "$ac_link") 2>conftest.er1
11214 grep -v '^ *+' conftest.er1 >conftest.err
11216 cat conftest.err >&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } &&
11219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11220 { (case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_try") 2>&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; } &&
11229 { ac_try='test -s conftest$ac_exeext'
11230 { (case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_try") 2>&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
11239 ac_cv_search_opendir=$ac_res
11241 echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.$ac_ext >&5
11247 rm -f core conftest.err conftest.$ac_objext \
11249 if test "${ac_cv_search_opendir+set}" = set; then
11253 if test "${ac_cv_search_opendir+set}" = set; then
11256 ac_cv_search_opendir=no
11258 rm conftest.$ac_ext
11259 LIBS=$ac_func_search_save_LIBS
11261 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11262 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11263 ac_res=$ac_cv_search_opendir
11264 if test "$ac_res" != no; then
11265 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11270 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11271 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11272 if test "${ac_cv_search_opendir+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 ac_func_search_save_LIBS=$LIBS
11276 cat >conftest.$ac_ext <<_ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11283 /* Override any GCC internal prototype to avoid an error.
11284 Use char because int might match the return type of a GCC
11285 builtin and then its argument prototype would still apply. */
11298 for ac_lib in '' x; do
11299 if test -z "$ac_lib"; then
11300 ac_res="none required"
11303 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11305 rm -f conftest.$ac_objext conftest$ac_exeext
11306 if { (ac_try="$ac_link"
11307 case "(($ac_try" in
11308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309 *) ac_try_echo=$ac_try;;
11311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312 (eval "$ac_link") 2>conftest.er1
11314 grep -v '^ *+' conftest.er1 >conftest.err
11316 cat conftest.err >&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); } &&
11319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11320 { (case "(($ac_try" in
11321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322 *) ac_try_echo=$ac_try;;
11324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11325 (eval "$ac_try") 2>&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; } &&
11329 { ac_try='test -s conftest$ac_exeext'
11330 { (case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 (eval "$ac_try") 2>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; }; then
11339 ac_cv_search_opendir=$ac_res
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11347 rm -f core conftest.err conftest.$ac_objext \
11349 if test "${ac_cv_search_opendir+set}" = set; then
11353 if test "${ac_cv_search_opendir+set}" = set; then
11356 ac_cv_search_opendir=no
11358 rm conftest.$ac_ext
11359 LIBS=$ac_func_search_save_LIBS
11361 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11362 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11363 ac_res=$ac_cv_search_opendir
11364 if test "$ac_res" != no; then
11365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11371 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11372 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11373 if test "${ac_cv_header_time+set}" = set; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 cat >conftest.$ac_ext <<_ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 #include <sys/types.h>
11383 #include <sys/time.h>
11389 if ((struct tm *) 0)
11395 rm -f conftest.$ac_objext
11396 if { (ac_try="$ac_compile"
11397 case "(($ac_try" in
11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399 *) ac_try_echo=$ac_try;;
11401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11402 (eval "$ac_compile") 2>conftest.er1
11404 grep -v '^ *+' conftest.er1 >conftest.err
11406 cat conftest.err >&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } &&
11409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11410 { (case "(($ac_try" in
11411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11412 *) ac_try_echo=$ac_try;;
11414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11415 (eval "$ac_try") 2>&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; } &&
11419 { ac_try='test -s conftest.$ac_objext'
11420 { (case "(($ac_try" in
11421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422 *) ac_try_echo=$ac_try;;
11424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11425 (eval "$ac_try") 2>&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; }; then
11429 ac_cv_header_time=yes
11431 echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.$ac_ext >&5
11434 ac_cv_header_time=no
11437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11439 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11440 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11441 if test $ac_cv_header_time = yes; then
11443 cat >>confdefs.h <<\_ACEOF
11444 @%:@define TIME_WITH_SYS_TIME 1
11452 for ac_header in inttypes.h
11454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 ac_res=`eval echo '${'$as_ac_Header'}'`
11462 { echo "$as_me:$LINENO: result: $ac_res" >&5
11463 echo "${ECHO_T}$ac_res" >&6; }
11465 # Is the header compilable?
11466 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11468 cat >conftest.$ac_ext <<_ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11474 $ac_includes_default
11475 @%:@include <$ac_header>
11477 rm -f conftest.$ac_objext
11478 if { (ac_try="$ac_compile"
11479 case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_compile") 2>conftest.er1
11486 grep -v '^ *+' conftest.er1 >conftest.err
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11492 { (case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497 (eval "$ac_try") 2>&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; } &&
11501 { ac_try='test -s conftest.$ac_objext'
11502 { (case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_try") 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 ac_header_compiler=yes
11513 echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11516 ac_header_compiler=no
11519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11521 echo "${ECHO_T}$ac_header_compiler" >&6; }
11523 # Is the header present?
11524 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11526 cat >conftest.$ac_ext <<_ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11532 @%:@include <$ac_header>
11534 if { (ac_try="$ac_cpp conftest.$ac_ext"
11535 case "(($ac_try" in
11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537 *) ac_try_echo=$ac_try;;
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11542 grep -v '^ *+' conftest.er1 >conftest.err
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } >/dev/null; then
11547 if test -s conftest.err; then
11548 ac_cpp_err=$ac_c_preproc_warn_flag
11549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11556 if test -z "$ac_cpp_err"; then
11557 ac_header_preproc=yes
11559 echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.$ac_ext >&5
11562 ac_header_preproc=no
11565 rm -f conftest.err conftest.$ac_ext
11566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11567 echo "${ECHO_T}$ac_header_preproc" >&6; }
11569 # So? What about this header?
11570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11576 ac_header_preproc=yes
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11586 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11592 @%:@@%:@ ------------------------------- @%:@@%:@
11593 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
11594 @%:@@%:@ ------------------------------- @%:@@%:@
11596 ) | sed "s/^/$as_me: WARNING: /" >&2
11599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 eval "$as_ac_Header=\$ac_header_preproc"
11606 ac_res=`eval echo '${'$as_ac_Header'}'`
11607 { echo "$as_me:$LINENO: result: $ac_res" >&5
11608 echo "${ECHO_T}$ac_res" >&6; }
11611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11612 cat >>confdefs.h <<_ACEOF
11613 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11641 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
11642 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
11643 stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h
11645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11650 echo $ECHO_N "(cached) $ECHO_C" >&6
11652 ac_res=`eval echo '${'$as_ac_Header'}'`
11653 { echo "$as_me:$LINENO: result: $ac_res" >&5
11654 echo "${ECHO_T}$ac_res" >&6; }
11656 # Is the header compilable?
11657 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11659 cat >conftest.$ac_ext <<_ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11665 $ac_includes_default
11666 @%:@include <$ac_header>
11668 rm -f conftest.$ac_objext
11669 if { (ac_try="$ac_compile"
11670 case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_compile") 2>conftest.er1
11677 grep -v '^ *+' conftest.er1 >conftest.err
11679 cat conftest.err >&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } &&
11682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11683 { (case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688 (eval "$ac_try") 2>&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); }; } &&
11692 { ac_try='test -s conftest.$ac_objext'
11693 { (case "(($ac_try" in
11694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695 *) ac_try_echo=$ac_try;;
11697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11698 (eval "$ac_try") 2>&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); }; }; then
11702 ac_header_compiler=yes
11704 echo "$as_me: failed program was:" >&5
11705 sed 's/^/| /' conftest.$ac_ext >&5
11707 ac_header_compiler=no
11710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11712 echo "${ECHO_T}$ac_header_compiler" >&6; }
11714 # Is the header present?
11715 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11717 cat >conftest.$ac_ext <<_ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11723 @%:@include <$ac_header>
11725 if { (ac_try="$ac_cpp conftest.$ac_ext"
11726 case "(($ac_try" in
11727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728 *) ac_try_echo=$ac_try;;
11730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11733 grep -v '^ *+' conftest.er1 >conftest.err
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } >/dev/null; then
11738 if test -s conftest.err; then
11739 ac_cpp_err=$ac_c_preproc_warn_flag
11740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11747 if test -z "$ac_cpp_err"; then
11748 ac_header_preproc=yes
11750 echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11753 ac_header_preproc=no
11756 rm -f conftest.err conftest.$ac_ext
11757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11758 echo "${ECHO_T}$ac_header_preproc" >&6; }
11760 # So? What about this header?
11761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11767 ac_header_preproc=yes
11770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11777 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11783 @%:@@%:@ ------------------------------- @%:@@%:@
11784 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
11785 @%:@@%:@ ------------------------------- @%:@@%:@
11787 ) | sed "s/^/$as_me: WARNING: /" >&2
11790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 eval "$as_ac_Header=\$ac_header_preproc"
11797 ac_res=`eval echo '${'$as_ac_Header'}'`
11798 { echo "$as_me:$LINENO: result: $ac_res" >&5
11799 echo "${ECHO_T}$ac_res" >&6; }
11802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11803 cat >>confdefs.h <<_ACEOF
11804 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11823 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
11824 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
11825 sys/time.h sys/times.h sys/types.h sys/wait.h
11827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11834 ac_res=`eval echo '${'$as_ac_Header'}'`
11835 { echo "$as_me:$LINENO: result: $ac_res" >&5
11836 echo "${ECHO_T}$ac_res" >&6; }
11838 # Is the header compilable?
11839 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11841 cat >conftest.$ac_ext <<_ACEOF
11844 cat confdefs.h >>conftest.$ac_ext
11845 cat >>conftest.$ac_ext <<_ACEOF
11846 /* end confdefs.h. */
11847 $ac_includes_default
11848 @%:@include <$ac_header>
11850 rm -f conftest.$ac_objext
11851 if { (ac_try="$ac_compile"
11852 case "(($ac_try" in
11853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11854 *) ac_try_echo=$ac_try;;
11856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857 (eval "$ac_compile") 2>conftest.er1
11859 grep -v '^ *+' conftest.er1 >conftest.err
11861 cat conftest.err >&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } &&
11864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11865 { (case "(($ac_try" in
11866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11867 *) ac_try_echo=$ac_try;;
11869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11870 (eval "$ac_try") 2>&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; } &&
11874 { ac_try='test -s conftest.$ac_objext'
11875 { (case "(($ac_try" in
11876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877 *) ac_try_echo=$ac_try;;
11879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880 (eval "$ac_try") 2>&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; }; then
11884 ac_header_compiler=yes
11886 echo "$as_me: failed program was:" >&5
11887 sed 's/^/| /' conftest.$ac_ext >&5
11889 ac_header_compiler=no
11892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11894 echo "${ECHO_T}$ac_header_compiler" >&6; }
11896 # Is the header present?
11897 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11899 cat >conftest.$ac_ext <<_ACEOF
11902 cat confdefs.h >>conftest.$ac_ext
11903 cat >>conftest.$ac_ext <<_ACEOF
11904 /* end confdefs.h. */
11905 @%:@include <$ac_header>
11907 if { (ac_try="$ac_cpp conftest.$ac_ext"
11908 case "(($ac_try" in
11909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11910 *) ac_try_echo=$ac_try;;
11912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11915 grep -v '^ *+' conftest.er1 >conftest.err
11917 cat conftest.err >&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } >/dev/null; then
11920 if test -s conftest.err; then
11921 ac_cpp_err=$ac_c_preproc_warn_flag
11922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11929 if test -z "$ac_cpp_err"; then
11930 ac_header_preproc=yes
11932 echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11935 ac_header_preproc=no
11938 rm -f conftest.err conftest.$ac_ext
11939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11940 echo "${ECHO_T}$ac_header_preproc" >&6; }
11942 # So? What about this header?
11943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11949 ac_header_preproc=yes
11952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11965 @%:@@%:@ ------------------------------- @%:@@%:@
11966 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
11967 @%:@@%:@ ------------------------------- @%:@@%:@
11969 ) | sed "s/^/$as_me: WARNING: /" >&2
11972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11977 eval "$as_ac_Header=\$ac_header_preproc"
11979 ac_res=`eval echo '${'$as_ac_Header'}'`
11980 { echo "$as_me:$LINENO: result: $ac_res" >&5
11981 echo "${ECHO_T}$ac_res" >&6; }
11984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11985 cat >>confdefs.h <<_ACEOF
11986 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11995 for ac_header in netinet/in.h arpa/inet.h
11997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12004 ac_res=`eval echo '${'$as_ac_Header'}'`
12005 { echo "$as_me:$LINENO: result: $ac_res" >&5
12006 echo "${ECHO_T}$ac_res" >&6; }
12008 # Is the header compilable?
12009 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12011 cat >conftest.$ac_ext <<_ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12017 $ac_includes_default
12018 @%:@include <$ac_header>
12020 rm -f conftest.$ac_objext
12021 if { (ac_try="$ac_compile"
12022 case "(($ac_try" in
12023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024 *) ac_try_echo=$ac_try;;
12026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027 (eval "$ac_compile") 2>conftest.er1
12029 grep -v '^ *+' conftest.er1 >conftest.err
12031 cat conftest.err >&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } &&
12034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12035 { (case "(($ac_try" in
12036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037 *) ac_try_echo=$ac_try;;
12039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12040 (eval "$ac_try") 2>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; } &&
12044 { ac_try='test -s conftest.$ac_objext'
12045 { (case "(($ac_try" in
12046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_try") 2>&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; }; then
12054 ac_header_compiler=yes
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12059 ac_header_compiler=no
12062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12064 echo "${ECHO_T}$ac_header_compiler" >&6; }
12066 # Is the header present?
12067 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12069 cat >conftest.$ac_ext <<_ACEOF
12072 cat confdefs.h >>conftest.$ac_ext
12073 cat >>conftest.$ac_ext <<_ACEOF
12074 /* end confdefs.h. */
12075 @%:@include <$ac_header>
12077 if { (ac_try="$ac_cpp conftest.$ac_ext"
12078 case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12085 grep -v '^ *+' conftest.er1 >conftest.err
12087 cat conftest.err >&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } >/dev/null; then
12090 if test -s conftest.err; then
12091 ac_cpp_err=$ac_c_preproc_warn_flag
12092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12099 if test -z "$ac_cpp_err"; then
12100 ac_header_preproc=yes
12102 echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12105 ac_header_preproc=no
12108 rm -f conftest.err conftest.$ac_ext
12109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12110 echo "${ECHO_T}$ac_header_preproc" >&6; }
12112 # So? What about this header?
12113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12119 ac_header_preproc=yes
12122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12125 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12129 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12135 @%:@@%:@ ------------------------------- @%:@@%:@
12136 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
12137 @%:@@%:@ ------------------------------- @%:@@%:@
12139 ) | sed "s/^/$as_me: WARNING: /" >&2
12142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12145 echo $ECHO_N "(cached) $ECHO_C" >&6
12147 eval "$as_ac_Header=\$ac_header_preproc"
12149 ac_res=`eval echo '${'$as_ac_Header'}'`
12150 { echo "$as_me:$LINENO: result: $ac_res" >&5
12151 echo "${ECHO_T}$ac_res" >&6; }
12154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12155 cat >>confdefs.h <<_ACEOF
12156 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12164 { echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
12165 echo $ECHO_N "checking for sys/ptem.h... $ECHO_C" >&6; }
12166 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 cat >conftest.$ac_ext <<_ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12176 #if HAVE_SYS_STREAM_H
12177 # include <sys/stream.h>
12181 @%:@include <sys/ptem.h>
12183 rm -f conftest.$ac_objext
12184 if { (ac_try="$ac_compile"
12185 case "(($ac_try" in
12186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187 *) ac_try_echo=$ac_try;;
12189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190 (eval "$ac_compile") 2>conftest.er1
12192 grep -v '^ *+' conftest.er1 >conftest.err
12194 cat conftest.err >&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } &&
12197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12198 { (case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_try") 2>&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; } &&
12207 { ac_try='test -s conftest.$ac_objext'
12208 { (case "(($ac_try" in
12209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210 *) ac_try_echo=$ac_try;;
12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213 (eval "$ac_try") 2>&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; }; then
12217 ac_cv_header_sys_ptem_h=yes
12219 echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12222 ac_cv_header_sys_ptem_h=no
12225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12227 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
12228 echo "${ECHO_T}$ac_cv_header_sys_ptem_h" >&6; }
12232 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12233 # for constant arguments. Useless!
12234 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
12235 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
12236 if test "${ac_cv_working_alloca_h+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12239 cat >conftest.$ac_ext <<_ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245 @%:@include <alloca.h>
12249 char *p = (char *) alloca (2 * sizeof (int));
12255 rm -f conftest.$ac_objext conftest$ac_exeext
12256 if { (ac_try="$ac_link"
12257 case "(($ac_try" in
12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259 *) ac_try_echo=$ac_try;;
12261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262 (eval "$ac_link") 2>conftest.er1
12264 grep -v '^ *+' conftest.er1 >conftest.err
12266 cat conftest.err >&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } &&
12269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12270 { (case "(($ac_try" in
12271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12272 *) ac_try_echo=$ac_try;;
12274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12275 (eval "$ac_try") 2>&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; } &&
12279 { ac_try='test -s conftest$ac_exeext'
12280 { (case "(($ac_try" in
12281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282 *) ac_try_echo=$ac_try;;
12284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285 (eval "$ac_try") 2>&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; }; then
12289 ac_cv_working_alloca_h=yes
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12294 ac_cv_working_alloca_h=no
12297 rm -f core conftest.err conftest.$ac_objext \
12298 conftest$ac_exeext conftest.$ac_ext
12300 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12301 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
12302 if test $ac_cv_working_alloca_h = yes; then
12304 cat >>confdefs.h <<\_ACEOF
12305 @%:@define HAVE_ALLOCA_H 1
12310 { echo "$as_me:$LINENO: checking for alloca" >&5
12311 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
12312 if test "${ac_cv_func_alloca_works+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12315 cat >conftest.$ac_ext <<_ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12322 # define alloca __builtin_alloca
12325 # include <malloc.h>
12326 # define alloca _alloca
12329 # include <alloca.h>
12334 # ifndef alloca /* predefined by HP cc +Olibcalls */
12345 char *p = (char *) alloca (1);
12351 rm -f conftest.$ac_objext conftest$ac_exeext
12352 if { (ac_try="$ac_link"
12353 case "(($ac_try" in
12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_link") 2>conftest.er1
12360 grep -v '^ *+' conftest.er1 >conftest.err
12362 cat conftest.err >&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } &&
12365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12366 { (case "(($ac_try" in
12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371 (eval "$ac_try") 2>&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; } &&
12375 { ac_try='test -s conftest$ac_exeext'
12376 { (case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381 (eval "$ac_try") 2>&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
12385 ac_cv_func_alloca_works=yes
12387 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12390 ac_cv_func_alloca_works=no
12393 rm -f core conftest.err conftest.$ac_objext \
12394 conftest$ac_exeext conftest.$ac_ext
12396 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12397 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
12399 if test $ac_cv_func_alloca_works = yes; then
12401 cat >>confdefs.h <<\_ACEOF
12402 @%:@define HAVE_ALLOCA 1
12406 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12407 # that cause trouble. Some versions do not even contain alloca or
12408 # contain a buggy version. If you still want to use their alloca,
12409 # use ar to extract alloca.o from them instead of compiling alloca.c.
12411 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12413 cat >>confdefs.h <<\_ACEOF
12414 @%:@define C_ALLOCA 1
12418 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12419 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
12420 if test "${ac_cv_os_cray+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12423 cat >conftest.$ac_ext <<_ACEOF
12426 cat confdefs.h >>conftest.$ac_ext
12427 cat >>conftest.$ac_ext <<_ACEOF
12428 /* end confdefs.h. */
12429 #if defined CRAY && ! defined CRAY2
12436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12437 $EGREP "webecray" >/dev/null 2>&1; then
12445 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12446 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
12447 if test $ac_cv_os_cray = yes; then
12448 for ac_func in _getb67 GETB67 getb67; do
12449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12450 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12452 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12453 echo $ECHO_N "(cached) $ECHO_C" >&6
12455 cat >conftest.$ac_ext <<_ACEOF
12458 cat confdefs.h >>conftest.$ac_ext
12459 cat >>conftest.$ac_ext <<_ACEOF
12460 /* end confdefs.h. */
12461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12463 #define $ac_func innocuous_$ac_func
12465 /* System header to define __stub macros and hopefully few prototypes,
12466 which can conflict with char $ac_func (); below.
12467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12468 <limits.h> exists even on freestanding compilers. */
12471 # include <limits.h>
12473 # include <assert.h>
12478 /* Override any GCC internal prototype to avoid an error.
12479 Use char because int might match the return type of a GCC
12480 builtin and then its argument prototype would still apply. */
12485 /* The GNU C library defines this for functions which it implements
12486 to always fail with ENOSYS. Some functions are actually named
12487 something starting with __ and the normal name is an alias. */
12488 #if defined __stub_$ac_func || defined __stub___$ac_func
12495 return $ac_func ();
12500 rm -f conftest.$ac_objext conftest$ac_exeext
12501 if { (ac_try="$ac_link"
12502 case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507 (eval "$ac_link") 2>conftest.er1
12509 grep -v '^ *+' conftest.er1 >conftest.err
12511 cat conftest.err >&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } &&
12514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12515 { (case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520 (eval "$ac_try") 2>&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; } &&
12524 { ac_try='test -s conftest$ac_exeext'
12525 { (case "(($ac_try" in
12526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12527 *) ac_try_echo=$ac_try;;
12529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12530 (eval "$ac_try") 2>&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; }; then
12534 eval "$as_ac_var=yes"
12536 echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.$ac_ext >&5
12539 eval "$as_ac_var=no"
12542 rm -f core conftest.err conftest.$ac_objext \
12543 conftest$ac_exeext conftest.$ac_ext
12545 ac_res=`eval echo '${'$as_ac_var'}'`
12546 { echo "$as_me:$LINENO: result: $ac_res" >&5
12547 echo "${ECHO_T}$ac_res" >&6; }
12548 if test `eval echo '${'$as_ac_var'}'` = yes; then
12550 cat >>confdefs.h <<_ACEOF
12551 @%:@define CRAY_STACKSEG_END $ac_func
12560 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12561 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
12562 if test "${ac_cv_c_stack_direction+set}" = set; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12565 if test "$cross_compiling" = yes; then
12566 ac_cv_c_stack_direction=0
12568 cat >conftest.$ac_ext <<_ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h. */
12574 $ac_includes_default
12576 find_stack_direction ()
12578 static char *addr = 0;
12583 return find_stack_direction ();
12586 return (&dummy > addr) ? 1 : -1;
12592 return find_stack_direction () < 0;
12595 rm -f conftest$ac_exeext
12596 if { (ac_try="$ac_link"
12597 case "(($ac_try" in
12598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12599 *) ac_try_echo=$ac_try;;
12601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12602 (eval "$ac_link") 2>&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12606 { (case "(($ac_try" in
12607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608 *) ac_try_echo=$ac_try;;
12610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611 (eval "$ac_try") 2>&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; }; then
12615 ac_cv_c_stack_direction=1
12617 echo "$as_me: program exited with status $ac_status" >&5
12618 echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12621 ( exit $ac_status )
12622 ac_cv_c_stack_direction=-1
12624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12629 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12630 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
12632 cat >>confdefs.h <<_ACEOF
12633 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
12639 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
12640 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
12641 if test "${ac_cv_func_getpgrp_void+set}" = set; then
12642 echo $ECHO_N "(cached) $ECHO_C" >&6
12644 # Use it with a single arg.
12645 cat >conftest.$ac_ext <<_ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h. */
12651 $ac_includes_default
12660 rm -f conftest.$ac_objext
12661 if { (ac_try="$ac_compile"
12662 case "(($ac_try" in
12663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664 *) ac_try_echo=$ac_try;;
12666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667 (eval "$ac_compile") 2>conftest.er1
12669 grep -v '^ *+' conftest.er1 >conftest.err
12671 cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } &&
12674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12675 { (case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_try") 2>&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; } &&
12684 { ac_try='test -s conftest.$ac_objext'
12685 { (case "(($ac_try" in
12686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12687 *) ac_try_echo=$ac_try;;
12689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12690 (eval "$ac_try") 2>&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; }; then
12694 ac_cv_func_getpgrp_void=no
12696 echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.$ac_ext >&5
12699 ac_cv_func_getpgrp_void=yes
12702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12705 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
12706 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
12707 if test $ac_cv_func_getpgrp_void = yes; then
12709 cat >>confdefs.h <<\_ACEOF
12710 @%:@define GETPGRP_VOID 1
12715 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12716 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
12717 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12718 echo $ECHO_N "(cached) $ECHO_C" >&6
12720 ac_cv_func_setvbuf_reversed=no
12721 cat >conftest.$ac_ext <<_ACEOF
12724 cat confdefs.h >>conftest.$ac_ext
12725 cat >>conftest.$ac_ext <<_ACEOF
12726 /* end confdefs.h. */
12729 int (setvbuf) (FILE *, int, char *, size_t);
12734 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12739 rm -f conftest.$ac_objext conftest$ac_exeext
12740 if { (ac_try="$ac_link"
12741 case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_link") 2>conftest.er1
12748 grep -v '^ *+' conftest.er1 >conftest.err
12750 cat conftest.err >&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } &&
12753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12754 { (case "(($ac_try" in
12755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12756 *) ac_try_echo=$ac_try;;
12758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12759 (eval "$ac_try") 2>&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; } &&
12763 { ac_try='test -s conftest$ac_exeext'
12764 { (case "(($ac_try" in
12765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766 *) ac_try_echo=$ac_try;;
12768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769 (eval "$ac_try") 2>&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; }; then
12773 cat >conftest.$ac_ext <<_ACEOF
12776 cat confdefs.h >>conftest.$ac_ext
12777 cat >>conftest.$ac_ext <<_ACEOF
12778 /* end confdefs.h. */
12781 int (setvbuf) (FILE *, int, char *, size_t);
12786 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12791 rm -f conftest.$ac_objext conftest$ac_exeext
12792 if { (ac_try="$ac_link"
12793 case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_link") 2>conftest.er1
12800 grep -v '^ *+' conftest.er1 >conftest.err
12802 cat conftest.err >&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } &&
12805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12806 { (case "(($ac_try" in
12807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12808 *) ac_try_echo=$ac_try;;
12810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12811 (eval "$ac_try") 2>&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; } &&
12815 { ac_try='test -s conftest$ac_exeext'
12816 { (case "(($ac_try" in
12817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_try") 2>&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; }; then
12825 # It compiles and links either way, so it must not be declared
12826 # with a prototype and most likely this is a K&R C compiler.
12828 if test "$cross_compiling" = yes; then
12829 : # Assume setvbuf is not reversed when cross-compiling.
12831 cat >conftest.$ac_ext <<_ACEOF
12834 cat confdefs.h >>conftest.$ac_ext
12835 cat >>conftest.$ac_ext <<_ACEOF
12836 /* end confdefs.h. */
12837 $ac_includes_default
12841 /* This call has the arguments reversed.
12842 A reversed system may check and see that the address of buf
12843 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12845 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12848 return 0; /* Non-reversed systems SEGV here. */
12853 rm -f conftest$ac_exeext
12854 if { (ac_try="$ac_link"
12855 case "(($ac_try" in
12856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857 *) ac_try_echo=$ac_try;;
12859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12860 (eval "$ac_link") 2>&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12864 { (case "(($ac_try" in
12865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12866 *) ac_try_echo=$ac_try;;
12868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12869 (eval "$ac_try") 2>&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; }; then
12873 ac_cv_func_setvbuf_reversed=yes
12875 echo "$as_me: program exited with status $ac_status" >&5
12876 echo "$as_me: failed program was:" >&5
12877 sed 's/^/| /' conftest.$ac_ext >&5
12880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12884 ac_cv_func_setvbuf_reversed=yes
12886 echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.$ac_ext >&5
12892 rm -f core conftest.err conftest.$ac_objext \
12893 conftest$ac_exeext conftest.$ac_ext
12895 echo "$as_me: failed program was:" >&5
12896 sed 's/^/| /' conftest.$ac_ext >&5
12901 rm -f core conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12904 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12905 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
12906 if test $ac_cv_func_setvbuf_reversed = yes; then
12908 cat >>confdefs.h <<\_ACEOF
12909 @%:@define SETVBUF_REVERSED 1
12915 for ac_func in vprintf
12917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
12923 cat >conftest.$ac_ext <<_ACEOF
12926 cat confdefs.h >>conftest.$ac_ext
12927 cat >>conftest.$ac_ext <<_ACEOF
12928 /* end confdefs.h. */
12929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12931 #define $ac_func innocuous_$ac_func
12933 /* System header to define __stub macros and hopefully few prototypes,
12934 which can conflict with char $ac_func (); below.
12935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12936 <limits.h> exists even on freestanding compilers. */
12939 # include <limits.h>
12941 # include <assert.h>
12946 /* Override any GCC internal prototype to avoid an error.
12947 Use char because int might match the return type of a GCC
12948 builtin and then its argument prototype would still apply. */
12953 /* The GNU C library defines this for functions which it implements
12954 to always fail with ENOSYS. Some functions are actually named
12955 something starting with __ and the normal name is an alias. */
12956 #if defined __stub_$ac_func || defined __stub___$ac_func
12963 return $ac_func ();
12968 rm -f conftest.$ac_objext conftest$ac_exeext
12969 if { (ac_try="$ac_link"
12970 case "(($ac_try" in
12971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12972 *) ac_try_echo=$ac_try;;
12974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12975 (eval "$ac_link") 2>conftest.er1
12977 grep -v '^ *+' conftest.er1 >conftest.err
12979 cat conftest.err >&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } &&
12982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12983 { (case "(($ac_try" in
12984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985 *) ac_try_echo=$ac_try;;
12987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12988 (eval "$ac_try") 2>&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; } &&
12992 { ac_try='test -s conftest$ac_exeext'
12993 { (case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998 (eval "$ac_try") 2>&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; }; then
13002 eval "$as_ac_var=yes"
13004 echo "$as_me: failed program was:" >&5
13005 sed 's/^/| /' conftest.$ac_ext >&5
13007 eval "$as_ac_var=no"
13010 rm -f core conftest.err conftest.$ac_objext \
13011 conftest$ac_exeext conftest.$ac_ext
13013 ac_res=`eval echo '${'$as_ac_var'}'`
13014 { echo "$as_me:$LINENO: result: $ac_res" >&5
13015 echo "${ECHO_T}$ac_res" >&6; }
13016 if test `eval echo '${'$as_ac_var'}'` = yes; then
13017 cat >>confdefs.h <<_ACEOF
13018 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13021 { echo "$as_me:$LINENO: checking for _doprnt" >&5
13022 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
13023 if test "${ac_cv_func__doprnt+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13026 cat >conftest.$ac_ext <<_ACEOF
13029 cat confdefs.h >>conftest.$ac_ext
13030 cat >>conftest.$ac_ext <<_ACEOF
13031 /* end confdefs.h. */
13032 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13034 #define _doprnt innocuous__doprnt
13036 /* System header to define __stub macros and hopefully few prototypes,
13037 which can conflict with char _doprnt (); below.
13038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13039 <limits.h> exists even on freestanding compilers. */
13042 # include <limits.h>
13044 # include <assert.h>
13049 /* Override any GCC internal prototype to avoid an error.
13050 Use char because int might match the return type of a GCC
13051 builtin and then its argument prototype would still apply. */
13056 /* The GNU C library defines this for functions which it implements
13057 to always fail with ENOSYS. Some functions are actually named
13058 something starting with __ and the normal name is an alias. */
13059 #if defined __stub__doprnt || defined __stub____doprnt
13071 rm -f conftest.$ac_objext conftest$ac_exeext
13072 if { (ac_try="$ac_link"
13073 case "(($ac_try" in
13074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075 *) ac_try_echo=$ac_try;;
13077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13078 (eval "$ac_link") 2>conftest.er1
13080 grep -v '^ *+' conftest.er1 >conftest.err
13082 cat conftest.err >&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } &&
13085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13086 { (case "(($ac_try" in
13087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13088 *) ac_try_echo=$ac_try;;
13090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13091 (eval "$ac_try") 2>&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; } &&
13095 { ac_try='test -s conftest$ac_exeext'
13096 { (case "(($ac_try" in
13097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098 *) ac_try_echo=$ac_try;;
13100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13101 (eval "$ac_try") 2>&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; }; then
13105 ac_cv_func__doprnt=yes
13107 echo "$as_me: failed program was:" >&5
13108 sed 's/^/| /' conftest.$ac_ext >&5
13110 ac_cv_func__doprnt=no
13113 rm -f core conftest.err conftest.$ac_objext \
13114 conftest$ac_exeext conftest.$ac_ext
13116 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13117 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
13118 if test $ac_cv_func__doprnt = yes; then
13120 cat >>confdefs.h <<\_ACEOF
13121 @%:@define HAVE_DOPRNT 1
13130 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13131 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13132 if test "${ac_cv_func_strcoll_works+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13135 if test "$cross_compiling" = yes; then
13136 ac_cv_func_strcoll_works=no
13138 cat >conftest.$ac_ext <<_ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13144 $ac_includes_default
13148 return (strcoll ("abc", "def") >= 0 ||
13149 strcoll ("ABC", "DEF") >= 0 ||
13150 strcoll ("123", "456") >= 0)
13155 rm -f conftest$ac_exeext
13156 if { (ac_try="$ac_link"
13157 case "(($ac_try" in
13158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159 *) ac_try_echo=$ac_try;;
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162 (eval "$ac_link") 2>&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13166 { (case "(($ac_try" in
13167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168 *) ac_try_echo=$ac_try;;
13170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171 (eval "$ac_try") 2>&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; }; then
13175 ac_cv_func_strcoll_works=yes
13177 echo "$as_me: program exited with status $ac_status" >&5
13178 echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13181 ( exit $ac_status )
13182 ac_cv_func_strcoll_works=no
13184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13189 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13190 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13191 if test $ac_cv_func_strcoll_works = yes; then
13193 cat >>confdefs.h <<\_ACEOF
13194 @%:@define HAVE_STRCOLL 1
13201 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
13202 MALLOC_TARGET=alloca
13203 MALLOC_SRC=alloca.c
13205 MALLOC_LIB='-lmalloc'
13206 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
13207 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
13208 MALLOC_DEP='$(MALLOC_LIBRARY)'
13211 if test "$ac_cv_func_vprintf" = no; then
13212 { echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
13213 echo $ECHO_N "checking for declaration of vprintf in stdio.h... $ECHO_C" >&6; }
13214 cat >conftest.$ac_ext <<_ACEOF
13217 cat confdefs.h >>conftest.$ac_ext
13218 cat >>conftest.$ac_ext <<_ACEOF
13219 /* end confdefs.h. */
13223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13224 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
13225 ac_cv_func_vprintf=yes
13229 { echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
13230 echo "${ECHO_T}$ac_cv_func_vprintf" >&6; }
13231 if test $ac_cv_func_vprintf = yes; then
13232 cat >>confdefs.h <<\_ACEOF
13233 @%:@define HAVE_VPRINTF 1
13239 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
13240 case " $LIB@&t@OBJS " in
13241 *" vprint.$ac_objext "* ) ;;
13242 *) LIB@&t@OBJS="$LIB@&t@OBJS vprint.$ac_objext"
13248 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13249 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13250 if test "${ac_cv_type_signal+set}" = set; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13253 cat >conftest.$ac_ext <<_ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h. */
13259 #include <sys/types.h>
13260 #include <signal.h>
13265 return *(signal (0, 0)) (0) == 1;
13270 rm -f conftest.$ac_objext
13271 if { (ac_try="$ac_compile"
13272 case "(($ac_try" in
13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274 *) ac_try_echo=$ac_try;;
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277 (eval "$ac_compile") 2>conftest.er1
13279 grep -v '^ *+' conftest.er1 >conftest.err
13281 cat conftest.err >&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } &&
13284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13285 { (case "(($ac_try" in
13286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13287 *) ac_try_echo=$ac_try;;
13289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13290 (eval "$ac_try") 2>&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); }; } &&
13294 { ac_try='test -s conftest.$ac_objext'
13295 { (case "(($ac_try" in
13296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297 *) ac_try_echo=$ac_try;;
13299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300 (eval "$ac_try") 2>&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; }; then
13304 ac_cv_type_signal=int
13306 echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13309 ac_cv_type_signal=void
13312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13314 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13315 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13317 cat >>confdefs.h <<_ACEOF
13318 @%:@define RETSIGTYPE $ac_cv_type_signal
13323 { echo "$as_me:$LINENO: checking for __setostype" >&5
13324 echo $ECHO_N "checking for __setostype... $ECHO_C" >&6; }
13325 if test "${ac_cv_func___setostype+set}" = set; then
13326 echo $ECHO_N "(cached) $ECHO_C" >&6
13328 cat >conftest.$ac_ext <<_ACEOF
13331 cat confdefs.h >>conftest.$ac_ext
13332 cat >>conftest.$ac_ext <<_ACEOF
13333 /* end confdefs.h. */
13334 /* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
13335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13336 #define __setostype innocuous___setostype
13338 /* System header to define __stub macros and hopefully few prototypes,
13339 which can conflict with char __setostype (); below.
13340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13341 <limits.h> exists even on freestanding compilers. */
13344 # include <limits.h>
13346 # include <assert.h>
13351 /* Override any GCC internal prototype to avoid an error.
13352 Use char because int might match the return type of a GCC
13353 builtin and then its argument prototype would still apply. */
13357 char __setostype ();
13358 /* The GNU C library defines this for functions which it implements
13359 to always fail with ENOSYS. Some functions are actually named
13360 something starting with __ and the normal name is an alias. */
13361 #if defined __stub___setostype || defined __stub_____setostype
13368 return __setostype ();
13373 rm -f conftest.$ac_objext conftest$ac_exeext
13374 if { (ac_try="$ac_link"
13375 case "(($ac_try" in
13376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377 *) ac_try_echo=$ac_try;;
13379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13380 (eval "$ac_link") 2>conftest.er1
13382 grep -v '^ *+' conftest.er1 >conftest.err
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } &&
13387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13388 { (case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_try") 2>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest$ac_exeext'
13398 { (case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_try") 2>&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 ac_cv_func___setostype=yes
13409 echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13412 ac_cv_func___setostype=no
13415 rm -f core conftest.err conftest.$ac_objext \
13416 conftest$ac_exeext conftest.$ac_ext
13418 { echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
13419 echo "${ECHO_T}$ac_cv_func___setostype" >&6; }
13420 if test $ac_cv_func___setostype = yes; then
13421 cat >>confdefs.h <<\_ACEOF
13422 @%:@define HAVE_SETOSTYPE 1
13427 { echo "$as_me:$LINENO: checking for wait3" >&5
13428 echo $ECHO_N "checking for wait3... $ECHO_C" >&6; }
13429 if test "${ac_cv_func_wait3+set}" = set; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13432 cat >conftest.$ac_ext <<_ACEOF
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h. */
13438 /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
13439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13440 #define wait3 innocuous_wait3
13442 /* System header to define __stub macros and hopefully few prototypes,
13443 which can conflict with char wait3 (); below.
13444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13445 <limits.h> exists even on freestanding compilers. */
13448 # include <limits.h>
13450 # include <assert.h>
13455 /* Override any GCC internal prototype to avoid an error.
13456 Use char because int might match the return type of a GCC
13457 builtin and then its argument prototype would still apply. */
13462 /* The GNU C library defines this for functions which it implements
13463 to always fail with ENOSYS. Some functions are actually named
13464 something starting with __ and the normal name is an alias. */
13465 #if defined __stub_wait3 || defined __stub___wait3
13477 rm -f conftest.$ac_objext conftest$ac_exeext
13478 if { (ac_try="$ac_link"
13479 case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484 (eval "$ac_link") 2>conftest.er1
13486 grep -v '^ *+' conftest.er1 >conftest.err
13488 cat conftest.err >&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); } &&
13491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13492 { (case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_try") 2>&5
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; } &&
13501 { ac_try='test -s conftest$ac_exeext'
13502 { (case "(($ac_try" in
13503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13504 *) ac_try_echo=$ac_try;;
13506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13507 (eval "$ac_try") 2>&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }; then
13511 ac_cv_func_wait3=yes
13513 echo "$as_me: failed program was:" >&5
13514 sed 's/^/| /' conftest.$ac_ext >&5
13516 ac_cv_func_wait3=no
13519 rm -f core conftest.err conftest.$ac_objext \
13520 conftest$ac_exeext conftest.$ac_ext
13522 { echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
13523 echo "${ECHO_T}$ac_cv_func_wait3" >&6; }
13524 if test $ac_cv_func_wait3 = yes; then
13525 cat >>confdefs.h <<\_ACEOF
13526 @%:@define HAVE_WAIT3 1
13531 { echo "$as_me:$LINENO: checking for isinf" >&5
13532 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
13533 if test "${ac_cv_func_isinf+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13536 cat >conftest.$ac_ext <<_ACEOF
13539 cat confdefs.h >>conftest.$ac_ext
13540 cat >>conftest.$ac_ext <<_ACEOF
13541 /* end confdefs.h. */
13542 /* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
13543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13544 #define isinf innocuous_isinf
13546 /* System header to define __stub macros and hopefully few prototypes,
13547 which can conflict with char isinf (); below.
13548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13549 <limits.h> exists even on freestanding compilers. */
13552 # include <limits.h>
13554 # include <assert.h>
13559 /* Override any GCC internal prototype to avoid an error.
13560 Use char because int might match the return type of a GCC
13561 builtin and then its argument prototype would still apply. */
13566 /* The GNU C library defines this for functions which it implements
13567 to always fail with ENOSYS. Some functions are actually named
13568 something starting with __ and the normal name is an alias. */
13569 #if defined __stub_isinf || defined __stub___isinf
13581 rm -f conftest.$ac_objext conftest$ac_exeext
13582 if { (ac_try="$ac_link"
13583 case "(($ac_try" in
13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585 *) ac_try_echo=$ac_try;;
13587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588 (eval "$ac_link") 2>conftest.er1
13590 grep -v '^ *+' conftest.er1 >conftest.err
13592 cat conftest.err >&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); } &&
13595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13596 { (case "(($ac_try" in
13597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598 *) ac_try_echo=$ac_try;;
13600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601 (eval "$ac_try") 2>&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; } &&
13605 { ac_try='test -s conftest$ac_exeext'
13606 { (case "(($ac_try" in
13607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608 *) ac_try_echo=$ac_try;;
13610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611 (eval "$ac_try") 2>&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); }; }; then
13615 ac_cv_func_isinf=yes
13617 echo "$as_me: failed program was:" >&5
13618 sed 's/^/| /' conftest.$ac_ext >&5
13620 ac_cv_func_isinf=no
13623 rm -f core conftest.err conftest.$ac_objext \
13624 conftest$ac_exeext conftest.$ac_ext
13626 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
13627 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
13628 if test $ac_cv_func_isinf = yes; then
13629 cat >>confdefs.h <<\_ACEOF
13630 @%:@define HAVE_ISINF_IN_LIBC 1
13635 { echo "$as_me:$LINENO: checking for isnan" >&5
13636 echo $ECHO_N "checking for isnan... $ECHO_C" >&6; }
13637 if test "${ac_cv_func_isnan+set}" = set; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 cat >conftest.$ac_ext <<_ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h. */
13646 /* Define isnan to an innocuous variant, in case <limits.h> declares isnan.
13647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13648 #define isnan innocuous_isnan
13650 /* System header to define __stub macros and hopefully few prototypes,
13651 which can conflict with char isnan (); below.
13652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13653 <limits.h> exists even on freestanding compilers. */
13656 # include <limits.h>
13658 # include <assert.h>
13663 /* Override any GCC internal prototype to avoid an error.
13664 Use char because int might match the return type of a GCC
13665 builtin and then its argument prototype would still apply. */
13670 /* The GNU C library defines this for functions which it implements
13671 to always fail with ENOSYS. Some functions are actually named
13672 something starting with __ and the normal name is an alias. */
13673 #if defined __stub_isnan || defined __stub___isnan
13685 rm -f conftest.$ac_objext conftest$ac_exeext
13686 if { (ac_try="$ac_link"
13687 case "(($ac_try" in
13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692 (eval "$ac_link") 2>conftest.er1
13694 grep -v '^ *+' conftest.er1 >conftest.err
13696 cat conftest.err >&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } &&
13699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13700 { (case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_try") 2>&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; } &&
13709 { ac_try='test -s conftest$ac_exeext'
13710 { (case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_try") 2>&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }; then
13719 ac_cv_func_isnan=yes
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13724 ac_cv_func_isnan=no
13727 rm -f core conftest.err conftest.$ac_objext \
13728 conftest$ac_exeext conftest.$ac_ext
13730 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
13731 echo "${ECHO_T}$ac_cv_func_isnan" >&6; }
13732 if test $ac_cv_func_isnan = yes; then
13733 cat >>confdefs.h <<\_ACEOF
13734 @%:@define HAVE_ISNAN_IN_LIBC 1
13740 { echo "$as_me:$LINENO: checking for mkfifo" >&5
13741 echo $ECHO_N "checking for mkfifo... $ECHO_C" >&6; }
13742 if test "${ac_cv_func_mkfifo+set}" = set; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13745 cat >conftest.$ac_ext <<_ACEOF
13748 cat confdefs.h >>conftest.$ac_ext
13749 cat >>conftest.$ac_ext <<_ACEOF
13750 /* end confdefs.h. */
13751 /* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
13752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13753 #define mkfifo innocuous_mkfifo
13755 /* System header to define __stub macros and hopefully few prototypes,
13756 which can conflict with char mkfifo (); below.
13757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13758 <limits.h> exists even on freestanding compilers. */
13761 # include <limits.h>
13763 # include <assert.h>
13768 /* Override any GCC internal prototype to avoid an error.
13769 Use char because int might match the return type of a GCC
13770 builtin and then its argument prototype would still apply. */
13775 /* The GNU C library defines this for functions which it implements
13776 to always fail with ENOSYS. Some functions are actually named
13777 something starting with __ and the normal name is an alias. */
13778 #if defined __stub_mkfifo || defined __stub___mkfifo
13790 rm -f conftest.$ac_objext conftest$ac_exeext
13791 if { (ac_try="$ac_link"
13792 case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797 (eval "$ac_link") 2>conftest.er1
13799 grep -v '^ *+' conftest.er1 >conftest.err
13801 cat conftest.err >&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } &&
13804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13805 { (case "(($ac_try" in
13806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810 (eval "$ac_try") 2>&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; } &&
13814 { ac_try='test -s conftest$ac_exeext'
13815 { (case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820 (eval "$ac_try") 2>&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; }; then
13824 ac_cv_func_mkfifo=yes
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13829 ac_cv_func_mkfifo=no
13832 rm -f core conftest.err conftest.$ac_objext \
13833 conftest$ac_exeext conftest.$ac_ext
13835 { echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
13836 echo "${ECHO_T}$ac_cv_func_mkfifo" >&6; }
13837 if test $ac_cv_func_mkfifo = yes; then
13838 cat >>confdefs.h <<\_ACEOF
13839 @%:@define HAVE_MKFIFO 1
13843 cat >>confdefs.h <<\_ACEOF
13844 @%:@define MKFIFO_MISSING 1
13873 for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \
13874 getpagesize getpeername getrlimit getrusage gettimeofday \
13875 kill killpg lstat readlink sbrk select setdtablesize \
13876 setitimer tcgetpgrp uname ulimit waitpid
13878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13884 cat >conftest.$ac_ext <<_ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13892 #define $ac_func innocuous_$ac_func
13894 /* System header to define __stub macros and hopefully few prototypes,
13895 which can conflict with char $ac_func (); below.
13896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13897 <limits.h> exists even on freestanding compilers. */
13900 # include <limits.h>
13902 # include <assert.h>
13907 /* Override any GCC internal prototype to avoid an error.
13908 Use char because int might match the return type of a GCC
13909 builtin and then its argument prototype would still apply. */
13914 /* The GNU C library defines this for functions which it implements
13915 to always fail with ENOSYS. Some functions are actually named
13916 something starting with __ and the normal name is an alias. */
13917 #if defined __stub_$ac_func || defined __stub___$ac_func
13924 return $ac_func ();
13929 rm -f conftest.$ac_objext conftest$ac_exeext
13930 if { (ac_try="$ac_link"
13931 case "(($ac_try" in
13932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933 *) ac_try_echo=$ac_try;;
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936 (eval "$ac_link") 2>conftest.er1
13938 grep -v '^ *+' conftest.er1 >conftest.err
13940 cat conftest.err >&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } &&
13943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13944 { (case "(($ac_try" in
13945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946 *) ac_try_echo=$ac_try;;
13948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949 (eval "$ac_try") 2>&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; } &&
13953 { ac_try='test -s conftest$ac_exeext'
13954 { (case "(($ac_try" in
13955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13956 *) ac_try_echo=$ac_try;;
13958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13959 (eval "$ac_try") 2>&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); }; }; then
13963 eval "$as_ac_var=yes"
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13968 eval "$as_ac_var=no"
13971 rm -f core conftest.err conftest.$ac_objext \
13972 conftest$ac_exeext conftest.$ac_ext
13974 ac_res=`eval echo '${'$as_ac_var'}'`
13975 { echo "$as_me:$LINENO: result: $ac_res" >&5
13976 echo "${ECHO_T}$ac_res" >&6; }
13977 if test `eval echo '${'$as_ac_var'}'` = yes; then
13978 cat >>confdefs.h <<_ACEOF
13979 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13986 for ac_func in rename
13988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
13994 cat >conftest.$ac_ext <<_ACEOF
13997 cat confdefs.h >>conftest.$ac_ext
13998 cat >>conftest.$ac_ext <<_ACEOF
13999 /* end confdefs.h. */
14000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14002 #define $ac_func innocuous_$ac_func
14004 /* System header to define __stub macros and hopefully few prototypes,
14005 which can conflict with char $ac_func (); below.
14006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14007 <limits.h> exists even on freestanding compilers. */
14010 # include <limits.h>
14012 # include <assert.h>
14017 /* Override any GCC internal prototype to avoid an error.
14018 Use char because int might match the return type of a GCC
14019 builtin and then its argument prototype would still apply. */
14024 /* The GNU C library defines this for functions which it implements
14025 to always fail with ENOSYS. Some functions are actually named
14026 something starting with __ and the normal name is an alias. */
14027 #if defined __stub_$ac_func || defined __stub___$ac_func
14034 return $ac_func ();
14039 rm -f conftest.$ac_objext conftest$ac_exeext
14040 if { (ac_try="$ac_link"
14041 case "(($ac_try" in
14042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14043 *) ac_try_echo=$ac_try;;
14045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14046 (eval "$ac_link") 2>conftest.er1
14048 grep -v '^ *+' conftest.er1 >conftest.err
14050 cat conftest.err >&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } &&
14053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14054 { (case "(($ac_try" in
14055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056 *) ac_try_echo=$ac_try;;
14058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059 (eval "$ac_try") 2>&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; } &&
14063 { ac_try='test -s conftest$ac_exeext'
14064 { (case "(($ac_try" in
14065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14066 *) ac_try_echo=$ac_try;;
14068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14069 (eval "$ac_try") 2>&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); }; }; then
14073 eval "$as_ac_var=yes"
14075 echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14078 eval "$as_ac_var=no"
14081 rm -f core conftest.err conftest.$ac_objext \
14082 conftest$ac_exeext conftest.$ac_ext
14084 ac_res=`eval echo '${'$as_ac_var'}'`
14085 { echo "$as_me:$LINENO: result: $ac_res" >&5
14086 echo "${ECHO_T}$ac_res" >&6; }
14087 if test `eval echo '${'$as_ac_var'}'` = yes; then
14088 cat >>confdefs.h <<_ACEOF
14089 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14093 case " $LIB@&t@OBJS " in
14094 *" $ac_func.$ac_objext "* ) ;;
14095 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
14131 for ac_func in bcopy bzero confstr fnmatch \
14132 getaddrinfo gethostbyname getservbyname getservent inet_aton \
14133 memmove pathconf putenv raise regcomp regexec \
14134 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
14135 sysconf tcgetattr times ttyname tzset unsetenv
14137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
14143 cat >conftest.$ac_ext <<_ACEOF
14146 cat confdefs.h >>conftest.$ac_ext
14147 cat >>conftest.$ac_ext <<_ACEOF
14148 /* end confdefs.h. */
14149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14151 #define $ac_func innocuous_$ac_func
14153 /* System header to define __stub macros and hopefully few prototypes,
14154 which can conflict with char $ac_func (); below.
14155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14156 <limits.h> exists even on freestanding compilers. */
14159 # include <limits.h>
14161 # include <assert.h>
14166 /* Override any GCC internal prototype to avoid an error.
14167 Use char because int might match the return type of a GCC
14168 builtin and then its argument prototype would still apply. */
14173 /* The GNU C library defines this for functions which it implements
14174 to always fail with ENOSYS. Some functions are actually named
14175 something starting with __ and the normal name is an alias. */
14176 #if defined __stub_$ac_func || defined __stub___$ac_func
14183 return $ac_func ();
14188 rm -f conftest.$ac_objext conftest$ac_exeext
14189 if { (ac_try="$ac_link"
14190 case "(($ac_try" in
14191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14192 *) ac_try_echo=$ac_try;;
14194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14195 (eval "$ac_link") 2>conftest.er1
14197 grep -v '^ *+' conftest.er1 >conftest.err
14199 cat conftest.err >&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); } &&
14202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14203 { (case "(($ac_try" in
14204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205 *) ac_try_echo=$ac_try;;
14207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14208 (eval "$ac_try") 2>&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; } &&
14212 { ac_try='test -s conftest$ac_exeext'
14213 { (case "(($ac_try" in
14214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14215 *) ac_try_echo=$ac_try;;
14217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14218 (eval "$ac_try") 2>&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; }; then
14222 eval "$as_ac_var=yes"
14224 echo "$as_me: failed program was:" >&5
14225 sed 's/^/| /' conftest.$ac_ext >&5
14227 eval "$as_ac_var=no"
14230 rm -f core conftest.err conftest.$ac_objext \
14231 conftest$ac_exeext conftest.$ac_ext
14233 ac_res=`eval echo '${'$as_ac_var'}'`
14234 { echo "$as_me:$LINENO: result: $ac_res" >&5
14235 echo "${ECHO_T}$ac_res" >&6; }
14236 if test `eval echo '${'$as_ac_var'}'` = yes; then
14237 cat >>confdefs.h <<_ACEOF
14238 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14249 for ac_func in vsnprintf snprintf vasprintf asprintf
14251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14252 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14254 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14255 echo $ECHO_N "(cached) $ECHO_C" >&6
14257 cat >conftest.$ac_ext <<_ACEOF
14260 cat confdefs.h >>conftest.$ac_ext
14261 cat >>conftest.$ac_ext <<_ACEOF
14262 /* end confdefs.h. */
14263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14265 #define $ac_func innocuous_$ac_func
14267 /* System header to define __stub macros and hopefully few prototypes,
14268 which can conflict with char $ac_func (); below.
14269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14270 <limits.h> exists even on freestanding compilers. */
14273 # include <limits.h>
14275 # include <assert.h>
14280 /* Override any GCC internal prototype to avoid an error.
14281 Use char because int might match the return type of a GCC
14282 builtin and then its argument prototype would still apply. */
14287 /* The GNU C library defines this for functions which it implements
14288 to always fail with ENOSYS. Some functions are actually named
14289 something starting with __ and the normal name is an alias. */
14290 #if defined __stub_$ac_func || defined __stub___$ac_func
14297 return $ac_func ();
14302 rm -f conftest.$ac_objext conftest$ac_exeext
14303 if { (ac_try="$ac_link"
14304 case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_link") 2>conftest.er1
14311 grep -v '^ *+' conftest.er1 >conftest.err
14313 cat conftest.err >&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } &&
14316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14317 { (case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_try") 2>&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; } &&
14326 { ac_try='test -s conftest$ac_exeext'
14327 { (case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_try") 2>&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
14336 eval "$as_ac_var=yes"
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14341 eval "$as_ac_var=no"
14344 rm -f core conftest.err conftest.$ac_objext \
14345 conftest$ac_exeext conftest.$ac_ext
14347 ac_res=`eval echo '${'$as_ac_var'}'`
14348 { echo "$as_me:$LINENO: result: $ac_res" >&5
14349 echo "${ECHO_T}$ac_res" >&6; }
14350 if test `eval echo '${'$as_ac_var'}'` = yes; then
14351 cat >>confdefs.h <<_ACEOF
14352 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14364 for ac_func in isascii isblank isgraph isprint isspace isxdigit
14366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14367 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14369 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14372 cat >conftest.$ac_ext <<_ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14380 #define $ac_func innocuous_$ac_func
14382 /* System header to define __stub macros and hopefully few prototypes,
14383 which can conflict with char $ac_func (); below.
14384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14385 <limits.h> exists even on freestanding compilers. */
14388 # include <limits.h>
14390 # include <assert.h>
14395 /* Override any GCC internal prototype to avoid an error.
14396 Use char because int might match the return type of a GCC
14397 builtin and then its argument prototype would still apply. */
14402 /* The GNU C library defines this for functions which it implements
14403 to always fail with ENOSYS. Some functions are actually named
14404 something starting with __ and the normal name is an alias. */
14405 #if defined __stub_$ac_func || defined __stub___$ac_func
14412 return $ac_func ();
14417 rm -f conftest.$ac_objext conftest$ac_exeext
14418 if { (ac_try="$ac_link"
14419 case "(($ac_try" in
14420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421 *) ac_try_echo=$ac_try;;
14423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14424 (eval "$ac_link") 2>conftest.er1
14426 grep -v '^ *+' conftest.er1 >conftest.err
14428 cat conftest.err >&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); } &&
14431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14432 { (case "(($ac_try" in
14433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14434 *) ac_try_echo=$ac_try;;
14436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14437 (eval "$ac_try") 2>&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; } &&
14441 { ac_try='test -s conftest$ac_exeext'
14442 { (case "(($ac_try" in
14443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447 (eval "$ac_try") 2>&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; }; then
14451 eval "$as_ac_var=yes"
14453 echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14456 eval "$as_ac_var=no"
14459 rm -f core conftest.err conftest.$ac_objext \
14460 conftest$ac_exeext conftest.$ac_ext
14462 ac_res=`eval echo '${'$as_ac_var'}'`
14463 { echo "$as_me:$LINENO: result: $ac_res" >&5
14464 echo "${ECHO_T}$ac_res" >&6; }
14465 if test `eval echo '${'$as_ac_var'}'` = yes; then
14466 cat >>confdefs.h <<_ACEOF
14467 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14476 for ac_func in getpwent getpwnam getpwuid
14478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14484 cat >conftest.$ac_ext <<_ACEOF
14487 cat confdefs.h >>conftest.$ac_ext
14488 cat >>conftest.$ac_ext <<_ACEOF
14489 /* end confdefs.h. */
14490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14492 #define $ac_func innocuous_$ac_func
14494 /* System header to define __stub macros and hopefully few prototypes,
14495 which can conflict with char $ac_func (); below.
14496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14497 <limits.h> exists even on freestanding compilers. */
14500 # include <limits.h>
14502 # include <assert.h>
14507 /* Override any GCC internal prototype to avoid an error.
14508 Use char because int might match the return type of a GCC
14509 builtin and then its argument prototype would still apply. */
14514 /* The GNU C library defines this for functions which it implements
14515 to always fail with ENOSYS. Some functions are actually named
14516 something starting with __ and the normal name is an alias. */
14517 #if defined __stub_$ac_func || defined __stub___$ac_func
14524 return $ac_func ();
14529 rm -f conftest.$ac_objext conftest$ac_exeext
14530 if { (ac_try="$ac_link"
14531 case "(($ac_try" in
14532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533 *) ac_try_echo=$ac_try;;
14535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536 (eval "$ac_link") 2>conftest.er1
14538 grep -v '^ *+' conftest.er1 >conftest.err
14540 cat conftest.err >&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } &&
14543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14544 { (case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_try") 2>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; } &&
14553 { ac_try='test -s conftest$ac_exeext'
14554 { (case "(($ac_try" in
14555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14556 *) ac_try_echo=$ac_try;;
14558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14559 (eval "$ac_try") 2>&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; }; then
14563 eval "$as_ac_var=yes"
14565 echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14568 eval "$as_ac_var=no"
14571 rm -f core conftest.err conftest.$ac_objext \
14572 conftest$ac_exeext conftest.$ac_ext
14574 ac_res=`eval echo '${'$as_ac_var'}'`
14575 { echo "$as_me:$LINENO: result: $ac_res" >&5
14576 echo "${ECHO_T}$ac_res" >&6; }
14577 if test `eval echo '${'$as_ac_var'}'` = yes; then
14578 cat >>confdefs.h <<_ACEOF
14579 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14593 for ac_func in getcwd memset strcasecmp strerror strftime strnlen strpbrk strstr
14595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14596 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14601 cat >conftest.$ac_ext <<_ACEOF
14604 cat confdefs.h >>conftest.$ac_ext
14605 cat >>conftest.$ac_ext <<_ACEOF
14606 /* end confdefs.h. */
14607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14609 #define $ac_func innocuous_$ac_func
14611 /* System header to define __stub macros and hopefully few prototypes,
14612 which can conflict with char $ac_func (); below.
14613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14614 <limits.h> exists even on freestanding compilers. */
14617 # include <limits.h>
14619 # include <assert.h>
14624 /* Override any GCC internal prototype to avoid an error.
14625 Use char because int might match the return type of a GCC
14626 builtin and then its argument prototype would still apply. */
14631 /* The GNU C library defines this for functions which it implements
14632 to always fail with ENOSYS. Some functions are actually named
14633 something starting with __ and the normal name is an alias. */
14634 #if defined __stub_$ac_func || defined __stub___$ac_func
14641 return $ac_func ();
14646 rm -f conftest.$ac_objext conftest$ac_exeext
14647 if { (ac_try="$ac_link"
14648 case "(($ac_try" in
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653 (eval "$ac_link") 2>conftest.er1
14655 grep -v '^ *+' conftest.er1 >conftest.err
14657 cat conftest.err >&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } &&
14660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14661 { (case "(($ac_try" in
14662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666 (eval "$ac_try") 2>&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; } &&
14670 { ac_try='test -s conftest$ac_exeext'
14671 { (case "(($ac_try" in
14672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673 *) ac_try_echo=$ac_try;;
14675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676 (eval "$ac_try") 2>&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; }; then
14680 eval "$as_ac_var=yes"
14682 echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14685 eval "$as_ac_var=no"
14688 rm -f core conftest.err conftest.$ac_objext \
14689 conftest$ac_exeext conftest.$ac_ext
14691 ac_res=`eval echo '${'$as_ac_var'}'`
14692 { echo "$as_me:$LINENO: result: $ac_res" >&5
14693 echo "${ECHO_T}$ac_res" >&6; }
14694 if test `eval echo '${'$as_ac_var'}'` = yes; then
14695 cat >>confdefs.h <<_ACEOF
14696 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14700 case " $LIB@&t@OBJS " in
14701 *" $ac_func.$ac_objext "* ) ;;
14702 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
14717 for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
14719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14723 echo $ECHO_N "(cached) $ECHO_C" >&6
14725 cat >conftest.$ac_ext <<_ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14733 #define $ac_func innocuous_$ac_func
14735 /* System header to define __stub macros and hopefully few prototypes,
14736 which can conflict with char $ac_func (); below.
14737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14738 <limits.h> exists even on freestanding compilers. */
14741 # include <limits.h>
14743 # include <assert.h>
14748 /* Override any GCC internal prototype to avoid an error.
14749 Use char because int might match the return type of a GCC
14750 builtin and then its argument prototype would still apply. */
14755 /* The GNU C library defines this for functions which it implements
14756 to always fail with ENOSYS. Some functions are actually named
14757 something starting with __ and the normal name is an alias. */
14758 #if defined __stub_$ac_func || defined __stub___$ac_func
14765 return $ac_func ();
14770 rm -f conftest.$ac_objext conftest$ac_exeext
14771 if { (ac_try="$ac_link"
14772 case "(($ac_try" in
14773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14774 *) ac_try_echo=$ac_try;;
14776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14777 (eval "$ac_link") 2>conftest.er1
14779 grep -v '^ *+' conftest.er1 >conftest.err
14781 cat conftest.err >&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } &&
14784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14785 { (case "(($ac_try" in
14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790 (eval "$ac_try") 2>&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; } &&
14794 { ac_try='test -s conftest$ac_exeext'
14795 { (case "(($ac_try" in
14796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800 (eval "$ac_try") 2>&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }; then
14804 eval "$as_ac_var=yes"
14806 echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14809 eval "$as_ac_var=no"
14812 rm -f core conftest.err conftest.$ac_objext \
14813 conftest$ac_exeext conftest.$ac_ext
14815 ac_res=`eval echo '${'$as_ac_var'}'`
14816 { echo "$as_me:$LINENO: result: $ac_res" >&5
14817 echo "${ECHO_T}$ac_res" >&6; }
14818 if test `eval echo '${'$as_ac_var'}'` = yes; then
14819 cat >>confdefs.h <<_ACEOF
14820 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14824 case " $LIB@&t@OBJS " in
14825 *" $ac_func.$ac_objext "* ) ;;
14826 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
14835 for ac_func in fdprintf
14837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14838 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14843 cat >conftest.$ac_ext <<_ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14851 #define $ac_func innocuous_$ac_func
14853 /* System header to define __stub macros and hopefully few prototypes,
14854 which can conflict with char $ac_func (); below.
14855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14856 <limits.h> exists even on freestanding compilers. */
14859 # include <limits.h>
14861 # include <assert.h>
14866 /* Override any GCC internal prototype to avoid an error.
14867 Use char because int might match the return type of a GCC
14868 builtin and then its argument prototype would still apply. */
14873 /* The GNU C library defines this for functions which it implements
14874 to always fail with ENOSYS. Some functions are actually named
14875 something starting with __ and the normal name is an alias. */
14876 #if defined __stub_$ac_func || defined __stub___$ac_func
14883 return $ac_func ();
14888 rm -f conftest.$ac_objext conftest$ac_exeext
14889 if { (ac_try="$ac_link"
14890 case "(($ac_try" in
14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892 *) ac_try_echo=$ac_try;;
14894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_link") 2>conftest.er1
14897 grep -v '^ *+' conftest.er1 >conftest.err
14899 cat conftest.err >&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } &&
14902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14903 { (case "(($ac_try" in
14904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905 *) ac_try_echo=$ac_try;;
14907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908 (eval "$ac_try") 2>&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; } &&
14912 { ac_try='test -s conftest$ac_exeext'
14913 { (case "(($ac_try" in
14914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14915 *) ac_try_echo=$ac_try;;
14917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14918 (eval "$ac_try") 2>&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 eval "$as_ac_var=yes"
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14927 eval "$as_ac_var=no"
14930 rm -f core conftest.err conftest.$ac_objext \
14931 conftest$ac_exeext conftest.$ac_ext
14933 ac_res=`eval echo '${'$as_ac_var'}'`
14934 { echo "$as_me:$LINENO: result: $ac_res" >&5
14935 echo "${ECHO_T}$ac_res" >&6; }
14936 if test `eval echo '${'$as_ac_var'}'` = yes; then
14937 cat >>confdefs.h <<_ACEOF
14938 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14942 case " $LIB@&t@OBJS " in
14943 *" $ac_func.$ac_objext "* ) ;;
14944 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
14953 { echo "$as_me:$LINENO: checking whether confstr is declared" >&5
14954 echo $ECHO_N "checking whether confstr is declared... $ECHO_C" >&6; }
14955 if test "${ac_cv_have_decl_confstr+set}" = set; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14958 cat >conftest.$ac_ext <<_ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14964 $ac_includes_default
14969 char *p = (char *) confstr;
14977 rm -f conftest.$ac_objext
14978 if { (ac_try="$ac_compile"
14979 case "(($ac_try" in
14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981 *) ac_try_echo=$ac_try;;
14983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984 (eval "$ac_compile") 2>conftest.er1
14986 grep -v '^ *+' conftest.er1 >conftest.err
14988 cat conftest.err >&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } &&
14991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14992 { (case "(($ac_try" in
14993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14994 *) ac_try_echo=$ac_try;;
14996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14997 (eval "$ac_try") 2>&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; } &&
15001 { ac_try='test -s conftest.$ac_objext'
15002 { (case "(($ac_try" in
15003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15004 *) ac_try_echo=$ac_try;;
15006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15007 (eval "$ac_try") 2>&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; }; then
15011 ac_cv_have_decl_confstr=yes
15013 echo "$as_me: failed program was:" >&5
15014 sed 's/^/| /' conftest.$ac_ext >&5
15016 ac_cv_have_decl_confstr=no
15019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15021 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
15022 echo "${ECHO_T}$ac_cv_have_decl_confstr" >&6; }
15023 if test $ac_cv_have_decl_confstr = yes; then
15025 cat >>confdefs.h <<_ACEOF
15026 @%:@define HAVE_DECL_CONFSTR 1
15031 cat >>confdefs.h <<_ACEOF
15032 @%:@define HAVE_DECL_CONFSTR 0
15039 { echo "$as_me:$LINENO: checking whether printf is declared" >&5
15040 echo $ECHO_N "checking whether printf is declared... $ECHO_C" >&6; }
15041 if test "${ac_cv_have_decl_printf+set}" = set; then
15042 echo $ECHO_N "(cached) $ECHO_C" >&6
15044 cat >conftest.$ac_ext <<_ACEOF
15047 cat confdefs.h >>conftest.$ac_ext
15048 cat >>conftest.$ac_ext <<_ACEOF
15049 /* end confdefs.h. */
15050 $ac_includes_default
15055 char *p = (char *) printf;
15063 rm -f conftest.$ac_objext
15064 if { (ac_try="$ac_compile"
15065 case "(($ac_try" in
15066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067 *) ac_try_echo=$ac_try;;
15069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15070 (eval "$ac_compile") 2>conftest.er1
15072 grep -v '^ *+' conftest.er1 >conftest.err
15074 cat conftest.err >&5
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); } &&
15077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15078 { (case "(($ac_try" in
15079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080 *) ac_try_echo=$ac_try;;
15082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083 (eval "$ac_try") 2>&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; } &&
15087 { ac_try='test -s conftest.$ac_objext'
15088 { (case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_try") 2>&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; }; then
15097 ac_cv_have_decl_printf=yes
15099 echo "$as_me: failed program was:" >&5
15100 sed 's/^/| /' conftest.$ac_ext >&5
15102 ac_cv_have_decl_printf=no
15105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15107 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
15108 echo "${ECHO_T}$ac_cv_have_decl_printf" >&6; }
15109 if test $ac_cv_have_decl_printf = yes; then
15111 cat >>confdefs.h <<_ACEOF
15112 @%:@define HAVE_DECL_PRINTF 1
15117 cat >>confdefs.h <<_ACEOF
15118 @%:@define HAVE_DECL_PRINTF 0
15125 { echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
15126 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6; }
15127 if test "${ac_cv_have_decl_sbrk+set}" = set; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15130 cat >conftest.$ac_ext <<_ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15136 $ac_includes_default
15141 char *p = (char *) sbrk;
15149 rm -f conftest.$ac_objext
15150 if { (ac_try="$ac_compile"
15151 case "(($ac_try" in
15152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153 *) ac_try_echo=$ac_try;;
15155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15156 (eval "$ac_compile") 2>conftest.er1
15158 grep -v '^ *+' conftest.er1 >conftest.err
15160 cat conftest.err >&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); } &&
15163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15164 { (case "(($ac_try" in
15165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15166 *) ac_try_echo=$ac_try;;
15168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15169 (eval "$ac_try") 2>&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; } &&
15173 { ac_try='test -s conftest.$ac_objext'
15174 { (case "(($ac_try" in
15175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15176 *) ac_try_echo=$ac_try;;
15178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15179 (eval "$ac_try") 2>&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; }; then
15183 ac_cv_have_decl_sbrk=yes
15185 echo "$as_me: failed program was:" >&5
15186 sed 's/^/| /' conftest.$ac_ext >&5
15188 ac_cv_have_decl_sbrk=no
15191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15193 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
15194 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6; }
15195 if test $ac_cv_have_decl_sbrk = yes; then
15197 cat >>confdefs.h <<_ACEOF
15198 @%:@define HAVE_DECL_SBRK 1
15203 cat >>confdefs.h <<_ACEOF
15204 @%:@define HAVE_DECL_SBRK 0
15211 { echo "$as_me:$LINENO: checking whether setregid is declared" >&5
15212 echo $ECHO_N "checking whether setregid is declared... $ECHO_C" >&6; }
15213 if test "${ac_cv_have_decl_setregid+set}" = set; then
15214 echo $ECHO_N "(cached) $ECHO_C" >&6
15216 cat >conftest.$ac_ext <<_ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h. */
15222 $ac_includes_default
15227 char *p = (char *) setregid;
15235 rm -f conftest.$ac_objext
15236 if { (ac_try="$ac_compile"
15237 case "(($ac_try" in
15238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15239 *) ac_try_echo=$ac_try;;
15241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15242 (eval "$ac_compile") 2>conftest.er1
15244 grep -v '^ *+' conftest.er1 >conftest.err
15246 cat conftest.err >&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); } &&
15249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15250 { (case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_try") 2>&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; } &&
15259 { ac_try='test -s conftest.$ac_objext'
15260 { (case "(($ac_try" in
15261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262 *) ac_try_echo=$ac_try;;
15264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15265 (eval "$ac_try") 2>&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; }; then
15269 ac_cv_have_decl_setregid=yes
15271 echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15274 ac_cv_have_decl_setregid=no
15277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15279 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
15280 echo "${ECHO_T}$ac_cv_have_decl_setregid" >&6; }
15281 if test $ac_cv_have_decl_setregid = yes; then
15283 cat >>confdefs.h <<_ACEOF
15284 @%:@define HAVE_DECL_SETREGID 1
15289 cat >>confdefs.h <<_ACEOF
15290 @%:@define HAVE_DECL_SETREGID 0
15297 { echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
15298 echo $ECHO_N "checking whether strcpy is declared... $ECHO_C" >&6; }
15299 if test "${ac_cv_have_decl_strcpy+set}" = set; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15302 cat >conftest.$ac_ext <<_ACEOF
15305 cat confdefs.h >>conftest.$ac_ext
15306 cat >>conftest.$ac_ext <<_ACEOF
15307 /* end confdefs.h. */
15308 $ac_includes_default
15313 char *p = (char *) strcpy;
15321 rm -f conftest.$ac_objext
15322 if { (ac_try="$ac_compile"
15323 case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328 (eval "$ac_compile") 2>conftest.er1
15330 grep -v '^ *+' conftest.er1 >conftest.err
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
15335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15336 { (case "(($ac_try" in
15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341 (eval "$ac_try") 2>&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; } &&
15345 { ac_try='test -s conftest.$ac_objext'
15346 { (case "(($ac_try" in
15347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348 *) ac_try_echo=$ac_try;;
15350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15351 (eval "$ac_try") 2>&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; }; then
15355 ac_cv_have_decl_strcpy=yes
15357 echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15360 ac_cv_have_decl_strcpy=no
15363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15365 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
15366 echo "${ECHO_T}$ac_cv_have_decl_strcpy" >&6; }
15367 if test $ac_cv_have_decl_strcpy = yes; then
15369 cat >>confdefs.h <<_ACEOF
15370 @%:@define HAVE_DECL_STRCPY 1
15375 cat >>confdefs.h <<_ACEOF
15376 @%:@define HAVE_DECL_STRCPY 0
15383 { echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
15384 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6; }
15385 if test "${ac_cv_have_decl_strsignal+set}" = set; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15388 cat >conftest.$ac_ext <<_ACEOF
15391 cat confdefs.h >>conftest.$ac_ext
15392 cat >>conftest.$ac_ext <<_ACEOF
15393 /* end confdefs.h. */
15394 $ac_includes_default
15399 char *p = (char *) strsignal;
15407 rm -f conftest.$ac_objext
15408 if { (ac_try="$ac_compile"
15409 case "(($ac_try" in
15410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15411 *) ac_try_echo=$ac_try;;
15413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15414 (eval "$ac_compile") 2>conftest.er1
15416 grep -v '^ *+' conftest.er1 >conftest.err
15418 cat conftest.err >&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); } &&
15421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15422 { (case "(($ac_try" in
15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424 *) ac_try_echo=$ac_try;;
15426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15427 (eval "$ac_try") 2>&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; } &&
15431 { ac_try='test -s conftest.$ac_objext'
15432 { (case "(($ac_try" in
15433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15434 *) ac_try_echo=$ac_try;;
15436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15437 (eval "$ac_try") 2>&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; }; then
15441 ac_cv_have_decl_strsignal=yes
15443 echo "$as_me: failed program was:" >&5
15444 sed 's/^/| /' conftest.$ac_ext >&5
15446 ac_cv_have_decl_strsignal=no
15449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15451 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
15452 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6; }
15453 if test $ac_cv_have_decl_strsignal = yes; then
15455 cat >>confdefs.h <<_ACEOF
15456 @%:@define HAVE_DECL_STRSIGNAL 1
15461 cat >>confdefs.h <<_ACEOF
15462 @%:@define HAVE_DECL_STRSIGNAL 0
15470 { echo "$as_me:$LINENO: checking whether strtold is declared" >&5
15471 echo $ECHO_N "checking whether strtold is declared... $ECHO_C" >&6; }
15472 if test "${ac_cv_have_decl_strtold+set}" = set; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15475 cat >conftest.$ac_ext <<_ACEOF
15478 cat confdefs.h >>conftest.$ac_ext
15479 cat >>conftest.$ac_ext <<_ACEOF
15480 /* end confdefs.h. */
15481 $ac_includes_default
15486 char *p = (char *) strtold;
15494 rm -f conftest.$ac_objext
15495 if { (ac_try="$ac_compile"
15496 case "(($ac_try" in
15497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498 *) ac_try_echo=$ac_try;;
15500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501 (eval "$ac_compile") 2>conftest.er1
15503 grep -v '^ *+' conftest.er1 >conftest.err
15505 cat conftest.err >&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } &&
15508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15509 { (case "(($ac_try" in
15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514 (eval "$ac_try") 2>&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; } &&
15518 { ac_try='test -s conftest.$ac_objext'
15519 { (case "(($ac_try" in
15520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521 *) ac_try_echo=$ac_try;;
15523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524 (eval "$ac_try") 2>&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; }; then
15528 ac_cv_have_decl_strtold=yes
15530 echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15533 ac_cv_have_decl_strtold=no
15536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15538 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
15539 echo "${ECHO_T}$ac_cv_have_decl_strtold" >&6; }
15540 if test $ac_cv_have_decl_strtold = yes; then
15542 cat >>confdefs.h <<_ACEOF
15543 @%:@define HAVE_DECL_STRTOLD 1
15547 { echo "$as_me:$LINENO: checking for broken strtold" >&5
15548 echo $ECHO_N "checking for broken strtold... $ECHO_C" >&6; }
15549 if test "${bash_cv_strtold_broken+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 cat >conftest.$ac_ext <<_ACEOF
15555 cat confdefs.h >>conftest.$ac_ext
15556 cat >>conftest.$ac_ext <<_ACEOF
15557 /* end confdefs.h. */
15558 #include <stdlib.h>
15562 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
15567 rm -f conftest.$ac_objext
15568 if { (ac_try="$ac_compile"
15569 case "(($ac_try" in
15570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15571 *) ac_try_echo=$ac_try;;
15573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15574 (eval "$ac_compile") 2>conftest.er1
15576 grep -v '^ *+' conftest.er1 >conftest.err
15578 cat conftest.err >&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); } &&
15581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15582 { (case "(($ac_try" in
15583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15584 *) ac_try_echo=$ac_try;;
15586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15587 (eval "$ac_try") 2>&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; } &&
15591 { ac_try='test -s conftest.$ac_objext'
15592 { (case "(($ac_try" in
15593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594 *) ac_try_echo=$ac_try;;
15596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15597 (eval "$ac_try") 2>&5
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); }; }; then
15601 bash_cv_strtold_broken=no
15603 echo "$as_me: failed program was:" >&5
15604 sed 's/^/| /' conftest.$ac_ext >&5
15606 bash_cv_strtold_broken=yes
15609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15614 { echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
15615 echo "${ECHO_T}$bash_cv_strtold_broken" >&6; }
15616 if test "$bash_cv_strtold_broken" = "yes" ; then
15617 cat >>confdefs.h <<\_ACEOF
15618 @%:@define STRTOLD_BROKEN 1
15624 cat >>confdefs.h <<_ACEOF
15625 @%:@define HAVE_DECL_STRTOLD 0
15637 { echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
15638 echo $ECHO_N "checking for declaration of strtoimax... $ECHO_C" >&6; }
15639 if test "${bash_cv_decl_strtoimax+set}" = set; then
15640 echo $ECHO_N "(cached) $ECHO_C" >&6
15642 cat >conftest.$ac_ext <<_ACEOF
15645 cat confdefs.h >>conftest.$ac_ext
15646 cat >>conftest.$ac_ext <<_ACEOF
15647 /* end confdefs.h. */
15650 # include <stdlib.h>
15652 #if HAVE_INTTYPES_H
15653 # include <inttypes.h>
15664 rm -f conftest.$ac_objext conftest$ac_exeext
15665 if { (ac_try="$ac_link"
15666 case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_link") 2>conftest.er1
15673 grep -v '^ *+' conftest.er1 >conftest.err
15675 cat conftest.err >&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } &&
15678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15679 { (case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684 (eval "$ac_try") 2>&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; } &&
15688 { ac_try='test -s conftest$ac_exeext'
15689 { (case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_try") 2>&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 bash_cv_decl_strtoimax=yes
15700 echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15703 bash_cv_decl_strtoimax=no
15706 rm -f core conftest.err conftest.$ac_objext \
15707 conftest$ac_exeext conftest.$ac_ext
15709 { echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
15710 echo "${ECHO_T}$bash_cv_decl_strtoimax" >&6; }
15711 bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15712 if test $bash_cv_decl_strtoimax = yes; then
15713 cat >>confdefs.h <<_ACEOF
15714 @%:@define $bash_tr_func 1
15718 cat >>confdefs.h <<_ACEOF
15719 @%:@define $bash_tr_func 0
15727 { echo "$as_me:$LINENO: checking for declaration of strtol" >&5
15728 echo $ECHO_N "checking for declaration of strtol... $ECHO_C" >&6; }
15729 if test "${bash_cv_decl_strtol+set}" = set; then
15730 echo $ECHO_N "(cached) $ECHO_C" >&6
15732 cat >conftest.$ac_ext <<_ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15740 # include <stdlib.h>
15742 #if HAVE_INTTYPES_H
15743 # include <inttypes.h>
15754 rm -f conftest.$ac_objext conftest$ac_exeext
15755 if { (ac_try="$ac_link"
15756 case "(($ac_try" in
15757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758 *) ac_try_echo=$ac_try;;
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761 (eval "$ac_link") 2>conftest.er1
15763 grep -v '^ *+' conftest.er1 >conftest.err
15765 cat conftest.err >&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); } &&
15768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15769 { (case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_try") 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; } &&
15778 { ac_try='test -s conftest$ac_exeext'
15779 { (case "(($ac_try" in
15780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781 *) ac_try_echo=$ac_try;;
15783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784 (eval "$ac_try") 2>&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; }; then
15788 bash_cv_decl_strtol=yes
15790 echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.$ac_ext >&5
15793 bash_cv_decl_strtol=no
15796 rm -f core conftest.err conftest.$ac_objext \
15797 conftest$ac_exeext conftest.$ac_ext
15799 { echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
15800 echo "${ECHO_T}$bash_cv_decl_strtol" >&6; }
15801 bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15802 if test $bash_cv_decl_strtol = yes; then
15803 cat >>confdefs.h <<_ACEOF
15804 @%:@define $bash_tr_func 1
15808 cat >>confdefs.h <<_ACEOF
15809 @%:@define $bash_tr_func 0
15817 { echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
15818 echo $ECHO_N "checking for declaration of strtoll... $ECHO_C" >&6; }
15819 if test "${bash_cv_decl_strtoll+set}" = set; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15822 cat >conftest.$ac_ext <<_ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h. */
15830 # include <stdlib.h>
15832 #if HAVE_INTTYPES_H
15833 # include <inttypes.h>
15844 rm -f conftest.$ac_objext conftest$ac_exeext
15845 if { (ac_try="$ac_link"
15846 case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_link") 2>conftest.er1
15853 grep -v '^ *+' conftest.er1 >conftest.err
15855 cat conftest.err >&5
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); } &&
15858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15859 { (case "(($ac_try" in
15860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15861 *) ac_try_echo=$ac_try;;
15863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15864 (eval "$ac_try") 2>&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; } &&
15868 { ac_try='test -s conftest$ac_exeext'
15869 { (case "(($ac_try" in
15870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15871 *) ac_try_echo=$ac_try;;
15873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15874 (eval "$ac_try") 2>&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; }; then
15878 bash_cv_decl_strtoll=yes
15880 echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15883 bash_cv_decl_strtoll=no
15886 rm -f core conftest.err conftest.$ac_objext \
15887 conftest$ac_exeext conftest.$ac_ext
15889 { echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
15890 echo "${ECHO_T}$bash_cv_decl_strtoll" >&6; }
15891 bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15892 if test $bash_cv_decl_strtoll = yes; then
15893 cat >>confdefs.h <<_ACEOF
15894 @%:@define $bash_tr_func 1
15898 cat >>confdefs.h <<_ACEOF
15899 @%:@define $bash_tr_func 0
15907 { echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
15908 echo $ECHO_N "checking for declaration of strtoul... $ECHO_C" >&6; }
15909 if test "${bash_cv_decl_strtoul+set}" = set; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15912 cat >conftest.$ac_ext <<_ACEOF
15915 cat confdefs.h >>conftest.$ac_ext
15916 cat >>conftest.$ac_ext <<_ACEOF
15917 /* end confdefs.h. */
15920 # include <stdlib.h>
15922 #if HAVE_INTTYPES_H
15923 # include <inttypes.h>
15934 rm -f conftest.$ac_objext conftest$ac_exeext
15935 if { (ac_try="$ac_link"
15936 case "(($ac_try" in
15937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938 *) ac_try_echo=$ac_try;;
15940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941 (eval "$ac_link") 2>conftest.er1
15943 grep -v '^ *+' conftest.er1 >conftest.err
15945 cat conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } &&
15948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15949 { (case "(($ac_try" in
15950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15951 *) ac_try_echo=$ac_try;;
15953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15954 (eval "$ac_try") 2>&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; } &&
15958 { ac_try='test -s conftest$ac_exeext'
15959 { (case "(($ac_try" in
15960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964 (eval "$ac_try") 2>&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 bash_cv_decl_strtoul=yes
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15973 bash_cv_decl_strtoul=no
15976 rm -f core conftest.err conftest.$ac_objext \
15977 conftest$ac_exeext conftest.$ac_ext
15979 { echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
15980 echo "${ECHO_T}$bash_cv_decl_strtoul" >&6; }
15981 bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15982 if test $bash_cv_decl_strtoul = yes; then
15983 cat >>confdefs.h <<_ACEOF
15984 @%:@define $bash_tr_func 1
15988 cat >>confdefs.h <<_ACEOF
15989 @%:@define $bash_tr_func 0
15997 { echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
15998 echo $ECHO_N "checking for declaration of strtoull... $ECHO_C" >&6; }
15999 if test "${bash_cv_decl_strtoull+set}" = set; then
16000 echo $ECHO_N "(cached) $ECHO_C" >&6
16002 cat >conftest.$ac_ext <<_ACEOF
16005 cat confdefs.h >>conftest.$ac_ext
16006 cat >>conftest.$ac_ext <<_ACEOF
16007 /* end confdefs.h. */
16010 # include <stdlib.h>
16012 #if HAVE_INTTYPES_H
16013 # include <inttypes.h>
16024 rm -f conftest.$ac_objext conftest$ac_exeext
16025 if { (ac_try="$ac_link"
16026 case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_link") 2>conftest.er1
16033 grep -v '^ *+' conftest.er1 >conftest.err
16035 cat conftest.err >&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } &&
16038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16039 { (case "(($ac_try" in
16040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16041 *) ac_try_echo=$ac_try;;
16043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16044 (eval "$ac_try") 2>&5
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; } &&
16048 { ac_try='test -s conftest$ac_exeext'
16049 { (case "(($ac_try" in
16050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051 *) ac_try_echo=$ac_try;;
16053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16054 (eval "$ac_try") 2>&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 bash_cv_decl_strtoull=yes
16060 echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16063 bash_cv_decl_strtoull=no
16066 rm -f core conftest.err conftest.$ac_objext \
16067 conftest$ac_exeext conftest.$ac_ext
16069 { echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
16070 echo "${ECHO_T}$bash_cv_decl_strtoull" >&6; }
16071 bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16072 if test $bash_cv_decl_strtoull = yes; then
16073 cat >>confdefs.h <<_ACEOF
16074 @%:@define $bash_tr_func 1
16078 cat >>confdefs.h <<_ACEOF
16079 @%:@define $bash_tr_func 0
16087 { echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
16088 echo $ECHO_N "checking for declaration of strtoumax... $ECHO_C" >&6; }
16089 if test "${bash_cv_decl_strtoumax+set}" = set; then
16090 echo $ECHO_N "(cached) $ECHO_C" >&6
16092 cat >conftest.$ac_ext <<_ACEOF
16095 cat confdefs.h >>conftest.$ac_ext
16096 cat >>conftest.$ac_ext <<_ACEOF
16097 /* end confdefs.h. */
16100 # include <stdlib.h>
16102 #if HAVE_INTTYPES_H
16103 # include <inttypes.h>
16114 rm -f conftest.$ac_objext conftest$ac_exeext
16115 if { (ac_try="$ac_link"
16116 case "(($ac_try" in
16117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118 *) ac_try_echo=$ac_try;;
16120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16121 (eval "$ac_link") 2>conftest.er1
16123 grep -v '^ *+' conftest.er1 >conftest.err
16125 cat conftest.err >&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); } &&
16128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16129 { (case "(($ac_try" in
16130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16131 *) ac_try_echo=$ac_try;;
16133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16134 (eval "$ac_try") 2>&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; } &&
16138 { ac_try='test -s conftest$ac_exeext'
16139 { (case "(($ac_try" in
16140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16141 *) ac_try_echo=$ac_try;;
16143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16144 (eval "$ac_try") 2>&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; }; then
16148 bash_cv_decl_strtoumax=yes
16150 echo "$as_me: failed program was:" >&5
16151 sed 's/^/| /' conftest.$ac_ext >&5
16153 bash_cv_decl_strtoumax=no
16156 rm -f core conftest.err conftest.$ac_objext \
16157 conftest$ac_exeext conftest.$ac_ext
16159 { echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
16160 echo "${ECHO_T}$bash_cv_decl_strtoumax" >&6; }
16161 bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16162 if test $bash_cv_decl_strtoumax = yes; then
16163 cat >>confdefs.h <<_ACEOF
16164 @%:@define $bash_tr_func 1
16168 cat >>confdefs.h <<_ACEOF
16169 @%:@define $bash_tr_func 0
16178 for ac_header in stdlib.h sys/time.h unistd.h
16180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16185 echo $ECHO_N "(cached) $ECHO_C" >&6
16187 ac_res=`eval echo '${'$as_ac_Header'}'`
16188 { echo "$as_me:$LINENO: result: $ac_res" >&5
16189 echo "${ECHO_T}$ac_res" >&6; }
16191 # Is the header compilable?
16192 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16194 cat >conftest.$ac_ext <<_ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h. */
16200 $ac_includes_default
16201 @%:@include <$ac_header>
16203 rm -f conftest.$ac_objext
16204 if { (ac_try="$ac_compile"
16205 case "(($ac_try" in
16206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16207 *) ac_try_echo=$ac_try;;
16209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16210 (eval "$ac_compile") 2>conftest.er1
16212 grep -v '^ *+' conftest.er1 >conftest.err
16214 cat conftest.err >&5
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } &&
16217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16218 { (case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223 (eval "$ac_try") 2>&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; } &&
16227 { ac_try='test -s conftest.$ac_objext'
16228 { (case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16233 (eval "$ac_try") 2>&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; }; then
16237 ac_header_compiler=yes
16239 echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16242 ac_header_compiler=no
16245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16247 echo "${ECHO_T}$ac_header_compiler" >&6; }
16249 # Is the header present?
16250 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16252 cat >conftest.$ac_ext <<_ACEOF
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h. */
16258 @%:@include <$ac_header>
16260 if { (ac_try="$ac_cpp conftest.$ac_ext"
16261 case "(($ac_try" in
16262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263 *) ac_try_echo=$ac_try;;
16265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16268 grep -v '^ *+' conftest.er1 >conftest.err
16270 cat conftest.err >&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } >/dev/null; then
16273 if test -s conftest.err; then
16274 ac_cpp_err=$ac_c_preproc_warn_flag
16275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16282 if test -z "$ac_cpp_err"; then
16283 ac_header_preproc=yes
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16288 ac_header_preproc=no
16291 rm -f conftest.err conftest.$ac_ext
16292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16293 echo "${ECHO_T}$ac_header_preproc" >&6; }
16295 # So? What about this header?
16296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16302 ac_header_preproc=yes
16305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16309 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16310 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16312 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16315 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16316 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16318 @%:@@%:@ ------------------------------- @%:@@%:@
16319 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
16320 @%:@@%:@ ------------------------------- @%:@@%:@
16322 ) | sed "s/^/$as_me: WARNING: /" >&2
16325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16328 echo $ECHO_N "(cached) $ECHO_C" >&6
16330 eval "$as_ac_Header=\$ac_header_preproc"
16332 ac_res=`eval echo '${'$as_ac_Header'}'`
16333 { echo "$as_me:$LINENO: result: $ac_res" >&5
16334 echo "${ECHO_T}$ac_res" >&6; }
16337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16338 cat >>confdefs.h <<_ACEOF
16339 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16347 for ac_func in alarm
16349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16353 echo $ECHO_N "(cached) $ECHO_C" >&6
16355 cat >conftest.$ac_ext <<_ACEOF
16358 cat confdefs.h >>conftest.$ac_ext
16359 cat >>conftest.$ac_ext <<_ACEOF
16360 /* end confdefs.h. */
16361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16363 #define $ac_func innocuous_$ac_func
16365 /* System header to define __stub macros and hopefully few prototypes,
16366 which can conflict with char $ac_func (); below.
16367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16368 <limits.h> exists even on freestanding compilers. */
16371 # include <limits.h>
16373 # include <assert.h>
16378 /* Override any GCC internal prototype to avoid an error.
16379 Use char because int might match the return type of a GCC
16380 builtin and then its argument prototype would still apply. */
16385 /* The GNU C library defines this for functions which it implements
16386 to always fail with ENOSYS. Some functions are actually named
16387 something starting with __ and the normal name is an alias. */
16388 #if defined __stub_$ac_func || defined __stub___$ac_func
16395 return $ac_func ();
16400 rm -f conftest.$ac_objext conftest$ac_exeext
16401 if { (ac_try="$ac_link"
16402 case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_link") 2>conftest.er1
16409 grep -v '^ *+' conftest.er1 >conftest.err
16411 cat conftest.err >&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } &&
16414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16415 { (case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_try") 2>&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; } &&
16424 { ac_try='test -s conftest$ac_exeext'
16425 { (case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430 (eval "$ac_try") 2>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; }; then
16434 eval "$as_ac_var=yes"
16436 echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16439 eval "$as_ac_var=no"
16442 rm -f core conftest.err conftest.$ac_objext \
16443 conftest$ac_exeext conftest.$ac_ext
16445 ac_res=`eval echo '${'$as_ac_var'}'`
16446 { echo "$as_me:$LINENO: result: $ac_res" >&5
16447 echo "${ECHO_T}$ac_res" >&6; }
16448 if test `eval echo '${'$as_ac_var'}'` = yes; then
16449 cat >>confdefs.h <<_ACEOF
16450 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16456 { echo "$as_me:$LINENO: checking for working mktime" >&5
16457 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16458 if test "${ac_cv_func_working_mktime+set}" = set; then
16459 echo $ECHO_N "(cached) $ECHO_C" >&6
16461 if test "$cross_compiling" = yes; then
16462 ac_cv_func_working_mktime=no
16464 cat >conftest.$ac_ext <<_ACEOF
16467 cat confdefs.h >>conftest.$ac_ext
16468 cat >>conftest.$ac_ext <<_ACEOF
16469 /* end confdefs.h. */
16470 /* Test program from Paul Eggert and Tony Leneis. */
16471 #if TIME_WITH_SYS_TIME
16472 # include <sys/time.h>
16475 # if HAVE_SYS_TIME_H
16476 # include <sys/time.h>
16483 # include <stdlib.h>
16487 # include <unistd.h>
16491 # define alarm(X) /* empty */
16494 /* Work around redefinition to rpl_putenv by other config tests. */
16497 static time_t time_t_max;
16498 static time_t time_t_min;
16500 /* Values we'll use to set the TZ environment variable. */
16501 static char *tz_strings[] = {
16502 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16503 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16505 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16507 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16508 Based on a problem report from Andreas Jaeger. */
16510 spring_forward_gap ()
16512 /* glibc (up to about 1998-10-07) failed this test. */
16515 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16516 instead of "TZ=America/Vancouver" in order to detect the bug even
16517 on systems that don't support the Olson extension, or don't have the
16518 full zoneinfo tables installed. */
16519 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16528 return mktime (&tm) != (time_t) -1;
16536 return ! (lt = localtime (&now)) || mktime (lt) == now;
16543 return (mktime_test1 (now)
16544 && mktime_test1 ((time_t) (time_t_max - now))
16545 && mktime_test1 ((time_t) (time_t_min + now)));
16551 /* Based on code from Ariel Faigon. */
16561 return tm.tm_mon == 2 && tm.tm_mday == 31;
16570 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16571 now = mktime (&tm);
16572 if (now != (time_t) -1)
16574 struct tm *lt = localtime (&now);
16576 && lt->tm_year == tm.tm_year
16577 && lt->tm_mon == tm.tm_mon
16578 && lt->tm_mday == tm.tm_mday
16579 && lt->tm_hour == tm.tm_hour
16580 && lt->tm_min == tm.tm_min
16581 && lt->tm_sec == tm.tm_sec
16582 && lt->tm_yday == tm.tm_yday
16583 && lt->tm_wday == tm.tm_wday
16584 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16585 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16597 /* This test makes some buggy mktime implementations loop.
16598 Give up after 60 seconds; a mktime slower than that
16599 isn't worth using anyway. */
16602 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16605 if ((time_t) -1 < 0)
16606 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16608 delta = time_t_max / 997; /* a suitable prime number */
16609 for (i = 0; i < N_STRINGS; i++)
16612 putenv (tz_strings[i]);
16614 for (t = 0; t <= time_t_max - delta; t += delta)
16615 if (! mktime_test (t))
16617 if (! (mktime_test ((time_t) 1)
16618 && mktime_test ((time_t) (60 * 60))
16619 && mktime_test ((time_t) (60 * 60 * 24))))
16622 for (j = 1; 0 < j; j *= 2)
16623 if (! bigtime_test (j))
16625 if (! bigtime_test (j - 1))
16628 return ! (irix_6_4_bug () && spring_forward_gap ());
16631 rm -f conftest$ac_exeext
16632 if { (ac_try="$ac_link"
16633 case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_link") 2>&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16642 { (case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647 (eval "$ac_try") 2>&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; }; then
16651 ac_cv_func_working_mktime=yes
16653 echo "$as_me: program exited with status $ac_status" >&5
16654 echo "$as_me: failed program was:" >&5
16655 sed 's/^/| /' conftest.$ac_ext >&5
16657 ( exit $ac_status )
16658 ac_cv_func_working_mktime=no
16660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16665 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16666 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16667 if test $ac_cv_func_working_mktime = no; then
16668 case " $LIB@&t@OBJS " in
16669 *" mktime.$ac_objext "* ) ;;
16670 *) LIB@&t@OBJS="$LIB@&t@OBJS mktime.$ac_objext"
16683 for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
16685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16690 echo $ECHO_N "(cached) $ECHO_C" >&6
16692 ac_res=`eval echo '${'$as_ac_Header'}'`
16693 { echo "$as_me:$LINENO: result: $ac_res" >&5
16694 echo "${ECHO_T}$ac_res" >&6; }
16696 # Is the header compilable?
16697 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16699 cat >conftest.$ac_ext <<_ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16705 $ac_includes_default
16706 @%:@include <$ac_header>
16708 rm -f conftest.$ac_objext
16709 if { (ac_try="$ac_compile"
16710 case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_compile") 2>conftest.er1
16717 grep -v '^ *+' conftest.er1 >conftest.err
16719 cat conftest.err >&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); } &&
16722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16723 { (case "(($ac_try" in
16724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725 *) ac_try_echo=$ac_try;;
16727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16728 (eval "$ac_try") 2>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; } &&
16732 { ac_try='test -s conftest.$ac_objext'
16733 { (case "(($ac_try" in
16734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735 *) ac_try_echo=$ac_try;;
16737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738 (eval "$ac_try") 2>&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; }; then
16742 ac_header_compiler=yes
16744 echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16747 ac_header_compiler=no
16750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16752 echo "${ECHO_T}$ac_header_compiler" >&6; }
16754 # Is the header present?
16755 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16757 cat >conftest.$ac_ext <<_ACEOF
16760 cat confdefs.h >>conftest.$ac_ext
16761 cat >>conftest.$ac_ext <<_ACEOF
16762 /* end confdefs.h. */
16763 @%:@include <$ac_header>
16765 if { (ac_try="$ac_cpp conftest.$ac_ext"
16766 case "(($ac_try" in
16767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768 *) ac_try_echo=$ac_try;;
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16773 grep -v '^ *+' conftest.er1 >conftest.err
16775 cat conftest.err >&5
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); } >/dev/null; then
16778 if test -s conftest.err; then
16779 ac_cpp_err=$ac_c_preproc_warn_flag
16780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16787 if test -z "$ac_cpp_err"; then
16788 ac_header_preproc=yes
16790 echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16793 ac_header_preproc=no
16796 rm -f conftest.err conftest.$ac_ext
16797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16798 echo "${ECHO_T}$ac_header_preproc" >&6; }
16800 # So? What about this header?
16801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16807 ac_header_preproc=yes
16810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16823 @%:@@%:@ ------------------------------- @%:@@%:@
16824 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
16825 @%:@@%:@ ------------------------------- @%:@@%:@
16827 ) | sed "s/^/$as_me: WARNING: /" >&2
16830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16833 echo $ECHO_N "(cached) $ECHO_C" >&6
16835 eval "$as_ac_Header=\$ac_header_preproc"
16837 ac_res=`eval echo '${'$as_ac_Header'}'`
16838 { echo "$as_me:$LINENO: result: $ac_res" >&5
16839 echo "${ECHO_T}$ac_res" >&6; }
16842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16843 cat >>confdefs.h <<_ACEOF
16844 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16854 for ac_header in stdlib.h unistd.h
16856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16863 ac_res=`eval echo '${'$as_ac_Header'}'`
16864 { echo "$as_me:$LINENO: result: $ac_res" >&5
16865 echo "${ECHO_T}$ac_res" >&6; }
16867 # Is the header compilable?
16868 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16870 cat >conftest.$ac_ext <<_ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
16876 $ac_includes_default
16877 @%:@include <$ac_header>
16879 rm -f conftest.$ac_objext
16880 if { (ac_try="$ac_compile"
16881 case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_compile") 2>conftest.er1
16888 grep -v '^ *+' conftest.er1 >conftest.err
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16894 { (case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_try") 2>&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; } &&
16903 { ac_try='test -s conftest.$ac_objext'
16904 { (case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_try") 2>&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
16913 ac_header_compiler=yes
16915 echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16918 ac_header_compiler=no
16921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16923 echo "${ECHO_T}$ac_header_compiler" >&6; }
16925 # Is the header present?
16926 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16928 cat >conftest.$ac_ext <<_ACEOF
16931 cat confdefs.h >>conftest.$ac_ext
16932 cat >>conftest.$ac_ext <<_ACEOF
16933 /* end confdefs.h. */
16934 @%:@include <$ac_header>
16936 if { (ac_try="$ac_cpp conftest.$ac_ext"
16937 case "(($ac_try" in
16938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939 *) ac_try_echo=$ac_try;;
16941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16944 grep -v '^ *+' conftest.er1 >conftest.err
16946 cat conftest.err >&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } >/dev/null; then
16949 if test -s conftest.err; then
16950 ac_cpp_err=$ac_c_preproc_warn_flag
16951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16958 if test -z "$ac_cpp_err"; then
16959 ac_header_preproc=yes
16961 echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16964 ac_header_preproc=no
16967 rm -f conftest.err conftest.$ac_ext
16968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16969 echo "${ECHO_T}$ac_header_preproc" >&6; }
16971 # So? What about this header?
16972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16978 ac_header_preproc=yes
16981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16984 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16988 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16994 @%:@@%:@ ------------------------------- @%:@@%:@
16995 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
16996 @%:@@%:@ ------------------------------- @%:@@%:@
16998 ) | sed "s/^/$as_me: WARNING: /" >&2
17001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17006 eval "$as_ac_Header=\$ac_header_preproc"
17008 ac_res=`eval echo '${'$as_ac_Header'}'`
17009 { echo "$as_me:$LINENO: result: $ac_res" >&5
17010 echo "${ECHO_T}$ac_res" >&6; }
17013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17014 cat >>confdefs.h <<_ACEOF
17015 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17023 for ac_func in getpagesize
17025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17026 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17028 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17031 cat >conftest.$ac_ext <<_ACEOF
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h. */
17037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17039 #define $ac_func innocuous_$ac_func
17041 /* System header to define __stub macros and hopefully few prototypes,
17042 which can conflict with char $ac_func (); below.
17043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17044 <limits.h> exists even on freestanding compilers. */
17047 # include <limits.h>
17049 # include <assert.h>
17054 /* Override any GCC internal prototype to avoid an error.
17055 Use char because int might match the return type of a GCC
17056 builtin and then its argument prototype would still apply. */
17061 /* The GNU C library defines this for functions which it implements
17062 to always fail with ENOSYS. Some functions are actually named
17063 something starting with __ and the normal name is an alias. */
17064 #if defined __stub_$ac_func || defined __stub___$ac_func
17071 return $ac_func ();
17076 rm -f conftest.$ac_objext conftest$ac_exeext
17077 if { (ac_try="$ac_link"
17078 case "(($ac_try" in
17079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080 *) ac_try_echo=$ac_try;;
17082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083 (eval "$ac_link") 2>conftest.er1
17085 grep -v '^ *+' conftest.er1 >conftest.err
17087 cat conftest.err >&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } &&
17090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17091 { (case "(($ac_try" in
17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096 (eval "$ac_try") 2>&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); }; } &&
17100 { ac_try='test -s conftest$ac_exeext'
17101 { (case "(($ac_try" in
17102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103 *) ac_try_echo=$ac_try;;
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106 (eval "$ac_try") 2>&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; }; then
17110 eval "$as_ac_var=yes"
17112 echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17115 eval "$as_ac_var=no"
17118 rm -f core conftest.err conftest.$ac_objext \
17119 conftest$ac_exeext conftest.$ac_ext
17121 ac_res=`eval echo '${'$as_ac_var'}'`
17122 { echo "$as_me:$LINENO: result: $ac_res" >&5
17123 echo "${ECHO_T}$ac_res" >&6; }
17124 if test `eval echo '${'$as_ac_var'}'` = yes; then
17125 cat >>confdefs.h <<_ACEOF
17126 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17132 { echo "$as_me:$LINENO: checking for working mmap" >&5
17133 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17134 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17135 echo $ECHO_N "(cached) $ECHO_C" >&6
17137 if test "$cross_compiling" = yes; then
17138 ac_cv_func_mmap_fixed_mapped=no
17140 cat >conftest.$ac_ext <<_ACEOF
17143 cat confdefs.h >>conftest.$ac_ext
17144 cat >>conftest.$ac_ext <<_ACEOF
17145 /* end confdefs.h. */
17146 $ac_includes_default
17147 /* malloc might have been renamed as rpl_malloc. */
17150 /* Thanks to Mike Haertel and Jim Avera for this test.
17151 Here is a matrix of mmap possibilities:
17152 mmap private not fixed
17153 mmap private fixed at somewhere currently unmapped
17154 mmap private fixed at somewhere already mapped
17155 mmap shared not fixed
17156 mmap shared fixed at somewhere currently unmapped
17157 mmap shared fixed at somewhere already mapped
17158 For private mappings, we should verify that changes cannot be read()
17159 back from the file, nor mmap's back from the file at a different
17160 address. (There have been systems where private was not correctly
17161 implemented like the infamous i386 svr4.0, and systems where the
17162 VM page cache was not coherent with the file system buffer cache
17163 like early versions of FreeBSD and possibly contemporary NetBSD.)
17164 For shared mappings, we should conversely verify that changes get
17165 propagated back to all the places they're supposed to be.
17167 Grep wants private fixed already mapped.
17168 The main things grep needs to know about mmap are:
17169 * does it exist and is it safe to write into the mmap'd area
17170 * how to use it (BSD variants) */
17173 #include <sys/mman.h>
17175 #if !STDC_HEADERS && !HAVE_STDLIB_H
17179 /* This mess was copied from the GNU getpagesize.h. */
17180 #if !HAVE_GETPAGESIZE
17181 /* Assume that all systems that can run configure have sys/param.h. */
17182 # if !HAVE_SYS_PARAM_H
17183 # define HAVE_SYS_PARAM_H 1
17186 # ifdef _SC_PAGESIZE
17187 # define getpagesize() sysconf(_SC_PAGESIZE)
17188 # else /* no _SC_PAGESIZE */
17189 # if HAVE_SYS_PARAM_H
17190 # include <sys/param.h>
17191 # ifdef EXEC_PAGESIZE
17192 # define getpagesize() EXEC_PAGESIZE
17193 # else /* no EXEC_PAGESIZE */
17195 # define getpagesize() NBPG * CLSIZE
17198 # endif /* no CLSIZE */
17199 # else /* no NBPG */
17201 # define getpagesize() NBPC
17202 # else /* no NBPC */
17204 # define getpagesize() PAGESIZE
17205 # endif /* PAGESIZE */
17206 # endif /* no NBPC */
17207 # endif /* no NBPG */
17208 # endif /* no EXEC_PAGESIZE */
17209 # else /* no HAVE_SYS_PARAM_H */
17210 # define getpagesize() 8192 /* punt totally */
17211 # endif /* no HAVE_SYS_PARAM_H */
17212 # endif /* no _SC_PAGESIZE */
17214 #endif /* no HAVE_GETPAGESIZE */
17219 char *data, *data2, *data3;
17223 pagesize = getpagesize ();
17225 /* First, make a file with some known garbage in it. */
17226 data = (char *) malloc (pagesize);
17229 for (i = 0; i < pagesize; ++i)
17230 *(data + i) = rand ();
17232 fd = creat ("conftest.mmap", 0600);
17235 if (write (fd, data, pagesize) != pagesize)
17239 /* Next, try to mmap the file at a fixed address which already has
17240 something else allocated at it. If we can, also make sure that
17241 we see the same garbage. */
17242 fd = open ("conftest.mmap", O_RDWR);
17245 data2 = (char *) malloc (2 * pagesize);
17248 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17249 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17250 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17252 for (i = 0; i < pagesize; ++i)
17253 if (*(data + i) != *(data2 + i))
17256 /* Finally, make sure that changes to the mapped area do not
17257 percolate back to the file as seen by read(). (This is a bug on
17258 some variants of i386 svr4.0.) */
17259 for (i = 0; i < pagesize; ++i)
17260 *(data2 + i) = *(data2 + i) + 1;
17261 data3 = (char *) malloc (pagesize);
17264 if (read (fd, data3, pagesize) != pagesize)
17266 for (i = 0; i < pagesize; ++i)
17267 if (*(data + i) != *(data3 + i))
17273 rm -f conftest$ac_exeext
17274 if { (ac_try="$ac_link"
17275 case "(($ac_try" in
17276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17277 *) ac_try_echo=$ac_try;;
17279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280 (eval "$ac_link") 2>&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17284 { (case "(($ac_try" in
17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286 *) ac_try_echo=$ac_try;;
17288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289 (eval "$ac_try") 2>&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; }; then
17293 ac_cv_func_mmap_fixed_mapped=yes
17295 echo "$as_me: program exited with status $ac_status" >&5
17296 echo "$as_me: failed program was:" >&5
17297 sed 's/^/| /' conftest.$ac_ext >&5
17299 ( exit $ac_status )
17300 ac_cv_func_mmap_fixed_mapped=no
17302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17307 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17308 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17309 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17311 cat >>confdefs.h <<\_ACEOF
17312 @%:@define HAVE_MMAP 1
17316 rm -f conftest.mmap
17327 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
17328 munmap stpcpy strcspn strdup
17330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17331 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17333 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17334 echo $ECHO_N "(cached) $ECHO_C" >&6
17336 cat >conftest.$ac_ext <<_ACEOF
17339 cat confdefs.h >>conftest.$ac_ext
17340 cat >>conftest.$ac_ext <<_ACEOF
17341 /* end confdefs.h. */
17342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17344 #define $ac_func innocuous_$ac_func
17346 /* System header to define __stub macros and hopefully few prototypes,
17347 which can conflict with char $ac_func (); below.
17348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17349 <limits.h> exists even on freestanding compilers. */
17352 # include <limits.h>
17354 # include <assert.h>
17359 /* Override any GCC internal prototype to avoid an error.
17360 Use char because int might match the return type of a GCC
17361 builtin and then its argument prototype would still apply. */
17366 /* The GNU C library defines this for functions which it implements
17367 to always fail with ENOSYS. Some functions are actually named
17368 something starting with __ and the normal name is an alias. */
17369 #if defined __stub_$ac_func || defined __stub___$ac_func
17376 return $ac_func ();
17381 rm -f conftest.$ac_objext conftest$ac_exeext
17382 if { (ac_try="$ac_link"
17383 case "(($ac_try" in
17384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385 *) ac_try_echo=$ac_try;;
17387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388 (eval "$ac_link") 2>conftest.er1
17390 grep -v '^ *+' conftest.er1 >conftest.err
17392 cat conftest.err >&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } &&
17395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17396 { (case "(($ac_try" in
17397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398 *) ac_try_echo=$ac_try;;
17400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401 (eval "$ac_try") 2>&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; } &&
17405 { ac_try='test -s conftest$ac_exeext'
17406 { (case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_try") 2>&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; }; then
17415 eval "$as_ac_var=yes"
17417 echo "$as_me: failed program was:" >&5
17418 sed 's/^/| /' conftest.$ac_ext >&5
17420 eval "$as_ac_var=no"
17423 rm -f core conftest.err conftest.$ac_objext \
17424 conftest$ac_exeext conftest.$ac_ext
17426 ac_res=`eval echo '${'$as_ac_var'}'`
17427 { echo "$as_me:$LINENO: result: $ac_res" >&5
17428 echo "${ECHO_T}$ac_res" >&6; }
17429 if test `eval echo '${'$as_ac_var'}'` = yes; then
17430 cat >>confdefs.h <<_ACEOF
17431 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17438 INTL_DEP= INTL_INC= LIBINTL_H=
17439 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
17440 INTL_DEP='${INTL_LIBDIR}/libintl.a'
17441 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
17442 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
17451 for ac_header in wctype.h
17453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17458 echo $ECHO_N "(cached) $ECHO_C" >&6
17460 ac_res=`eval echo '${'$as_ac_Header'}'`
17461 { echo "$as_me:$LINENO: result: $ac_res" >&5
17462 echo "${ECHO_T}$ac_res" >&6; }
17464 # Is the header compilable?
17465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17467 cat >conftest.$ac_ext <<_ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17473 $ac_includes_default
17474 @%:@include <$ac_header>
17476 rm -f conftest.$ac_objext
17477 if { (ac_try="$ac_compile"
17478 case "(($ac_try" in
17479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480 *) ac_try_echo=$ac_try;;
17482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483 (eval "$ac_compile") 2>conftest.er1
17485 grep -v '^ *+' conftest.er1 >conftest.err
17487 cat conftest.err >&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } &&
17490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17491 { (case "(($ac_try" in
17492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493 *) ac_try_echo=$ac_try;;
17495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17496 (eval "$ac_try") 2>&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; } &&
17500 { ac_try='test -s conftest.$ac_objext'
17501 { (case "(($ac_try" in
17502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503 *) ac_try_echo=$ac_try;;
17505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506 (eval "$ac_try") 2>&5
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; }; then
17510 ac_header_compiler=yes
17512 echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17515 ac_header_compiler=no
17518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17520 echo "${ECHO_T}$ac_header_compiler" >&6; }
17522 # Is the header present?
17523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17525 cat >conftest.$ac_ext <<_ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531 @%:@include <$ac_header>
17533 if { (ac_try="$ac_cpp conftest.$ac_ext"
17534 case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17541 grep -v '^ *+' conftest.er1 >conftest.err
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } >/dev/null; then
17546 if test -s conftest.err; then
17547 ac_cpp_err=$ac_c_preproc_warn_flag
17548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17555 if test -z "$ac_cpp_err"; then
17556 ac_header_preproc=yes
17558 echo "$as_me: failed program was:" >&5
17559 sed 's/^/| /' conftest.$ac_ext >&5
17561 ac_header_preproc=no
17564 rm -f conftest.err conftest.$ac_ext
17565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17566 echo "${ECHO_T}$ac_header_preproc" >&6; }
17568 # So? What about this header?
17569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17575 ac_header_preproc=yes
17578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17585 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17591 @%:@@%:@ ------------------------------- @%:@@%:@
17592 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
17593 @%:@@%:@ ------------------------------- @%:@@%:@
17595 ) | sed "s/^/$as_me: WARNING: /" >&2
17598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17601 echo $ECHO_N "(cached) $ECHO_C" >&6
17603 eval "$as_ac_Header=\$ac_header_preproc"
17605 ac_res=`eval echo '${'$as_ac_Header'}'`
17606 { echo "$as_me:$LINENO: result: $ac_res" >&5
17607 echo "${ECHO_T}$ac_res" >&6; }
17610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17611 cat >>confdefs.h <<_ACEOF
17612 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17620 for ac_header in wchar.h
17622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17627 echo $ECHO_N "(cached) $ECHO_C" >&6
17629 ac_res=`eval echo '${'$as_ac_Header'}'`
17630 { echo "$as_me:$LINENO: result: $ac_res" >&5
17631 echo "${ECHO_T}$ac_res" >&6; }
17633 # Is the header compilable?
17634 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17636 cat >conftest.$ac_ext <<_ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h. */
17642 $ac_includes_default
17643 @%:@include <$ac_header>
17645 rm -f conftest.$ac_objext
17646 if { (ac_try="$ac_compile"
17647 case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652 (eval "$ac_compile") 2>conftest.er1
17654 grep -v '^ *+' conftest.er1 >conftest.err
17656 cat conftest.err >&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
17659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17660 { (case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_try") 2>&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; } &&
17669 { ac_try='test -s conftest.$ac_objext'
17670 { (case "(($ac_try" in
17671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672 *) ac_try_echo=$ac_try;;
17674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675 (eval "$ac_try") 2>&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679 ac_header_compiler=yes
17681 echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17684 ac_header_compiler=no
17687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17689 echo "${ECHO_T}$ac_header_compiler" >&6; }
17691 # Is the header present?
17692 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17694 cat >conftest.$ac_ext <<_ACEOF
17697 cat confdefs.h >>conftest.$ac_ext
17698 cat >>conftest.$ac_ext <<_ACEOF
17699 /* end confdefs.h. */
17700 @%:@include <$ac_header>
17702 if { (ac_try="$ac_cpp conftest.$ac_ext"
17703 case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17710 grep -v '^ *+' conftest.er1 >conftest.err
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } >/dev/null; then
17715 if test -s conftest.err; then
17716 ac_cpp_err=$ac_c_preproc_warn_flag
17717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17724 if test -z "$ac_cpp_err"; then
17725 ac_header_preproc=yes
17727 echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17730 ac_header_preproc=no
17733 rm -f conftest.err conftest.$ac_ext
17734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17735 echo "${ECHO_T}$ac_header_preproc" >&6; }
17737 # So? What about this header?
17738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17744 ac_header_preproc=yes
17747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17760 @%:@@%:@ ------------------------------- @%:@@%:@
17761 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
17762 @%:@@%:@ ------------------------------- @%:@@%:@
17764 ) | sed "s/^/$as_me: WARNING: /" >&2
17767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17770 echo $ECHO_N "(cached) $ECHO_C" >&6
17772 eval "$as_ac_Header=\$ac_header_preproc"
17774 ac_res=`eval echo '${'$as_ac_Header'}'`
17775 { echo "$as_me:$LINENO: result: $ac_res" >&5
17776 echo "${ECHO_T}$ac_res" >&6; }
17779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17780 cat >>confdefs.h <<_ACEOF
17781 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17789 for ac_header in langinfo.h
17791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17798 ac_res=`eval echo '${'$as_ac_Header'}'`
17799 { echo "$as_me:$LINENO: result: $ac_res" >&5
17800 echo "${ECHO_T}$ac_res" >&6; }
17802 # Is the header compilable?
17803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17805 cat >conftest.$ac_ext <<_ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17811 $ac_includes_default
17812 @%:@include <$ac_header>
17814 rm -f conftest.$ac_objext
17815 if { (ac_try="$ac_compile"
17816 case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_compile") 2>conftest.er1
17823 grep -v '^ *+' conftest.er1 >conftest.err
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
17828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17829 { (case "(($ac_try" in
17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831 *) ac_try_echo=$ac_try;;
17833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834 (eval "$ac_try") 2>&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; } &&
17838 { ac_try='test -s conftest.$ac_objext'
17839 { (case "(($ac_try" in
17840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841 *) ac_try_echo=$ac_try;;
17843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844 (eval "$ac_try") 2>&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; }; then
17848 ac_header_compiler=yes
17850 echo "$as_me: failed program was:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17853 ac_header_compiler=no
17856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17858 echo "${ECHO_T}$ac_header_compiler" >&6; }
17860 # Is the header present?
17861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17863 cat >conftest.$ac_ext <<_ACEOF
17866 cat confdefs.h >>conftest.$ac_ext
17867 cat >>conftest.$ac_ext <<_ACEOF
17868 /* end confdefs.h. */
17869 @%:@include <$ac_header>
17871 if { (ac_try="$ac_cpp conftest.$ac_ext"
17872 case "(($ac_try" in
17873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17874 *) ac_try_echo=$ac_try;;
17876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17879 grep -v '^ *+' conftest.er1 >conftest.err
17881 cat conftest.err >&5
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); } >/dev/null; then
17884 if test -s conftest.err; then
17885 ac_cpp_err=$ac_c_preproc_warn_flag
17886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17893 if test -z "$ac_cpp_err"; then
17894 ac_header_preproc=yes
17896 echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17899 ac_header_preproc=no
17902 rm -f conftest.err conftest.$ac_ext
17903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17904 echo "${ECHO_T}$ac_header_preproc" >&6; }
17906 # So? What about this header?
17907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17913 ac_header_preproc=yes
17916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17929 @%:@@%:@ ------------------------------- @%:@@%:@
17930 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
17931 @%:@@%:@ ------------------------------- @%:@@%:@
17933 ) | sed "s/^/$as_me: WARNING: /" >&2
17936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17939 echo $ECHO_N "(cached) $ECHO_C" >&6
17941 eval "$as_ac_Header=\$ac_header_preproc"
17943 ac_res=`eval echo '${'$as_ac_Header'}'`
17944 { echo "$as_me:$LINENO: result: $ac_res" >&5
17945 echo "${ECHO_T}$ac_res" >&6; }
17948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17949 cat >>confdefs.h <<_ACEOF
17950 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17958 { echo "$as_me:$LINENO: checking for mbrlen" >&5
17959 echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6; }
17960 if test "${ac_cv_func_mbrlen+set}" = set; then
17961 echo $ECHO_N "(cached) $ECHO_C" >&6
17963 cat >conftest.$ac_ext <<_ACEOF
17966 cat confdefs.h >>conftest.$ac_ext
17967 cat >>conftest.$ac_ext <<_ACEOF
17968 /* end confdefs.h. */
17969 /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
17970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17971 #define mbrlen innocuous_mbrlen
17973 /* System header to define __stub macros and hopefully few prototypes,
17974 which can conflict with char mbrlen (); below.
17975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17976 <limits.h> exists even on freestanding compilers. */
17979 # include <limits.h>
17981 # include <assert.h>
17986 /* Override any GCC internal prototype to avoid an error.
17987 Use char because int might match the return type of a GCC
17988 builtin and then its argument prototype would still apply. */
17993 /* The GNU C library defines this for functions which it implements
17994 to always fail with ENOSYS. Some functions are actually named
17995 something starting with __ and the normal name is an alias. */
17996 #if defined __stub_mbrlen || defined __stub___mbrlen
18008 rm -f conftest.$ac_objext conftest$ac_exeext
18009 if { (ac_try="$ac_link"
18010 case "(($ac_try" in
18011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18012 *) ac_try_echo=$ac_try;;
18014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18015 (eval "$ac_link") 2>conftest.er1
18017 grep -v '^ *+' conftest.er1 >conftest.err
18019 cat conftest.err >&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } &&
18022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18023 { (case "(($ac_try" in
18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025 *) ac_try_echo=$ac_try;;
18027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028 (eval "$ac_try") 2>&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; } &&
18032 { ac_try='test -s conftest$ac_exeext'
18033 { (case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038 (eval "$ac_try") 2>&5
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); }; }; then
18042 ac_cv_func_mbrlen=yes
18044 echo "$as_me: failed program was:" >&5
18045 sed 's/^/| /' conftest.$ac_ext >&5
18047 ac_cv_func_mbrlen=no
18050 rm -f core conftest.err conftest.$ac_objext \
18051 conftest$ac_exeext conftest.$ac_ext
18053 { echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
18054 echo "${ECHO_T}$ac_cv_func_mbrlen" >&6; }
18055 if test $ac_cv_func_mbrlen = yes; then
18056 cat >>confdefs.h <<\_ACEOF
18057 @%:@define HAVE_MBRLEN 1
18062 { echo "$as_me:$LINENO: checking for mbscmp" >&5
18063 echo $ECHO_N "checking for mbscmp... $ECHO_C" >&6; }
18064 if test "${ac_cv_func_mbscmp+set}" = set; then
18065 echo $ECHO_N "(cached) $ECHO_C" >&6
18067 cat >conftest.$ac_ext <<_ACEOF
18070 cat confdefs.h >>conftest.$ac_ext
18071 cat >>conftest.$ac_ext <<_ACEOF
18072 /* end confdefs.h. */
18073 /* Define mbscmp to an innocuous variant, in case <limits.h> declares mbscmp.
18074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18075 #define mbscmp innocuous_mbscmp
18077 /* System header to define __stub macros and hopefully few prototypes,
18078 which can conflict with char mbscmp (); below.
18079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18080 <limits.h> exists even on freestanding compilers. */
18083 # include <limits.h>
18085 # include <assert.h>
18090 /* Override any GCC internal prototype to avoid an error.
18091 Use char because int might match the return type of a GCC
18092 builtin and then its argument prototype would still apply. */
18097 /* The GNU C library defines this for functions which it implements
18098 to always fail with ENOSYS. Some functions are actually named
18099 something starting with __ and the normal name is an alias. */
18100 #if defined __stub_mbscmp || defined __stub___mbscmp
18112 rm -f conftest.$ac_objext conftest$ac_exeext
18113 if { (ac_try="$ac_link"
18114 case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119 (eval "$ac_link") 2>conftest.er1
18121 grep -v '^ *+' conftest.er1 >conftest.err
18123 cat conftest.err >&5
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); } &&
18126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18127 { (case "(($ac_try" in
18128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18129 *) ac_try_echo=$ac_try;;
18131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18132 (eval "$ac_try") 2>&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; } &&
18136 { ac_try='test -s conftest$ac_exeext'
18137 { (case "(($ac_try" in
18138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139 *) ac_try_echo=$ac_try;;
18141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18142 (eval "$ac_try") 2>&5
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; }; then
18146 ac_cv_func_mbscmp=yes
18148 echo "$as_me: failed program was:" >&5
18149 sed 's/^/| /' conftest.$ac_ext >&5
18151 ac_cv_func_mbscmp=no
18154 rm -f core conftest.err conftest.$ac_objext \
18155 conftest$ac_exeext conftest.$ac_ext
18157 { echo "$as_me:$LINENO: result: $ac_cv_func_mbscmp" >&5
18158 echo "${ECHO_T}$ac_cv_func_mbscmp" >&6; }
18159 if test $ac_cv_func_mbscmp = yes; then
18160 cat >>confdefs.h <<\_ACEOF
18161 @%:@define HAVE_MBSCMP 1
18166 { echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
18167 echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6; }
18168 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
18169 echo $ECHO_N "(cached) $ECHO_C" >&6
18171 cat >conftest.$ac_ext <<_ACEOF
18174 cat confdefs.h >>conftest.$ac_ext
18175 cat >>conftest.$ac_ext <<_ACEOF
18176 /* end confdefs.h. */
18177 /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
18178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18179 #define mbsrtowcs innocuous_mbsrtowcs
18181 /* System header to define __stub macros and hopefully few prototypes,
18182 which can conflict with char mbsrtowcs (); below.
18183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18184 <limits.h> exists even on freestanding compilers. */
18187 # include <limits.h>
18189 # include <assert.h>
18194 /* Override any GCC internal prototype to avoid an error.
18195 Use char because int might match the return type of a GCC
18196 builtin and then its argument prototype would still apply. */
18201 /* The GNU C library defines this for functions which it implements
18202 to always fail with ENOSYS. Some functions are actually named
18203 something starting with __ and the normal name is an alias. */
18204 #if defined __stub_mbsrtowcs || defined __stub___mbsrtowcs
18211 return mbsrtowcs ();
18216 rm -f conftest.$ac_objext conftest$ac_exeext
18217 if { (ac_try="$ac_link"
18218 case "(($ac_try" in
18219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220 *) ac_try_echo=$ac_try;;
18222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18223 (eval "$ac_link") 2>conftest.er1
18225 grep -v '^ *+' conftest.er1 >conftest.err
18227 cat conftest.err >&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); } &&
18230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18231 { (case "(($ac_try" in
18232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233 *) ac_try_echo=$ac_try;;
18235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236 (eval "$ac_try") 2>&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; } &&
18240 { ac_try='test -s conftest$ac_exeext'
18241 { (case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246 (eval "$ac_try") 2>&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; }; then
18250 ac_cv_func_mbsrtowcs=yes
18252 echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.$ac_ext >&5
18255 ac_cv_func_mbsrtowcs=no
18258 rm -f core conftest.err conftest.$ac_objext \
18259 conftest$ac_exeext conftest.$ac_ext
18261 { echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
18262 echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6; }
18263 if test $ac_cv_func_mbsrtowcs = yes; then
18264 cat >>confdefs.h <<\_ACEOF
18265 @%:@define HAVE_MBSRTOWCS 1
18271 { echo "$as_me:$LINENO: checking for wcrtomb" >&5
18272 echo $ECHO_N "checking for wcrtomb... $ECHO_C" >&6; }
18273 if test "${ac_cv_func_wcrtomb+set}" = set; then
18274 echo $ECHO_N "(cached) $ECHO_C" >&6
18276 cat >conftest.$ac_ext <<_ACEOF
18279 cat confdefs.h >>conftest.$ac_ext
18280 cat >>conftest.$ac_ext <<_ACEOF
18281 /* end confdefs.h. */
18282 /* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb.
18283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18284 #define wcrtomb innocuous_wcrtomb
18286 /* System header to define __stub macros and hopefully few prototypes,
18287 which can conflict with char wcrtomb (); below.
18288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18289 <limits.h> exists even on freestanding compilers. */
18292 # include <limits.h>
18294 # include <assert.h>
18299 /* Override any GCC internal prototype to avoid an error.
18300 Use char because int might match the return type of a GCC
18301 builtin and then its argument prototype would still apply. */
18306 /* The GNU C library defines this for functions which it implements
18307 to always fail with ENOSYS. Some functions are actually named
18308 something starting with __ and the normal name is an alias. */
18309 #if defined __stub_wcrtomb || defined __stub___wcrtomb
18321 rm -f conftest.$ac_objext conftest$ac_exeext
18322 if { (ac_try="$ac_link"
18323 case "(($ac_try" in
18324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325 *) ac_try_echo=$ac_try;;
18327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328 (eval "$ac_link") 2>conftest.er1
18330 grep -v '^ *+' conftest.er1 >conftest.err
18332 cat conftest.err >&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); } &&
18335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18336 { (case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_try") 2>&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; } &&
18345 { ac_try='test -s conftest$ac_exeext'
18346 { (case "(($ac_try" in
18347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348 *) ac_try_echo=$ac_try;;
18350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18351 (eval "$ac_try") 2>&5
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; }; then
18355 ac_cv_func_wcrtomb=yes
18357 echo "$as_me: failed program was:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18360 ac_cv_func_wcrtomb=no
18363 rm -f core conftest.err conftest.$ac_objext \
18364 conftest$ac_exeext conftest.$ac_ext
18366 { echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5
18367 echo "${ECHO_T}$ac_cv_func_wcrtomb" >&6; }
18368 if test $ac_cv_func_wcrtomb = yes; then
18369 cat >>confdefs.h <<\_ACEOF
18370 @%:@define HAVE_WCRTOMB 1
18375 { echo "$as_me:$LINENO: checking for wcscoll" >&5
18376 echo $ECHO_N "checking for wcscoll... $ECHO_C" >&6; }
18377 if test "${ac_cv_func_wcscoll+set}" = set; then
18378 echo $ECHO_N "(cached) $ECHO_C" >&6
18380 cat >conftest.$ac_ext <<_ACEOF
18383 cat confdefs.h >>conftest.$ac_ext
18384 cat >>conftest.$ac_ext <<_ACEOF
18385 /* end confdefs.h. */
18386 /* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll.
18387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18388 #define wcscoll innocuous_wcscoll
18390 /* System header to define __stub macros and hopefully few prototypes,
18391 which can conflict with char wcscoll (); below.
18392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18393 <limits.h> exists even on freestanding compilers. */
18396 # include <limits.h>
18398 # include <assert.h>
18403 /* Override any GCC internal prototype to avoid an error.
18404 Use char because int might match the return type of a GCC
18405 builtin and then its argument prototype would still apply. */
18410 /* The GNU C library defines this for functions which it implements
18411 to always fail with ENOSYS. Some functions are actually named
18412 something starting with __ and the normal name is an alias. */
18413 #if defined __stub_wcscoll || defined __stub___wcscoll
18425 rm -f conftest.$ac_objext conftest$ac_exeext
18426 if { (ac_try="$ac_link"
18427 case "(($ac_try" in
18428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18429 *) ac_try_echo=$ac_try;;
18431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18432 (eval "$ac_link") 2>conftest.er1
18434 grep -v '^ *+' conftest.er1 >conftest.err
18436 cat conftest.err >&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); } &&
18439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18440 { (case "(($ac_try" in
18441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_try") 2>&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; } &&
18449 { ac_try='test -s conftest$ac_exeext'
18450 { (case "(($ac_try" in
18451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452 *) ac_try_echo=$ac_try;;
18454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455 (eval "$ac_try") 2>&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; }; then
18459 ac_cv_func_wcscoll=yes
18461 echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.$ac_ext >&5
18464 ac_cv_func_wcscoll=no
18467 rm -f core conftest.err conftest.$ac_objext \
18468 conftest$ac_exeext conftest.$ac_ext
18470 { echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5
18471 echo "${ECHO_T}$ac_cv_func_wcscoll" >&6; }
18472 if test $ac_cv_func_wcscoll = yes; then
18473 cat >>confdefs.h <<\_ACEOF
18474 @%:@define HAVE_WCSCOLL 1
18479 { echo "$as_me:$LINENO: checking for wcsdup" >&5
18480 echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6; }
18481 if test "${ac_cv_func_wcsdup+set}" = set; then
18482 echo $ECHO_N "(cached) $ECHO_C" >&6
18484 cat >conftest.$ac_ext <<_ACEOF
18487 cat confdefs.h >>conftest.$ac_ext
18488 cat >>conftest.$ac_ext <<_ACEOF
18489 /* end confdefs.h. */
18490 /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
18491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18492 #define wcsdup innocuous_wcsdup
18494 /* System header to define __stub macros and hopefully few prototypes,
18495 which can conflict with char wcsdup (); below.
18496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18497 <limits.h> exists even on freestanding compilers. */
18500 # include <limits.h>
18502 # include <assert.h>
18507 /* Override any GCC internal prototype to avoid an error.
18508 Use char because int might match the return type of a GCC
18509 builtin and then its argument prototype would still apply. */
18514 /* The GNU C library defines this for functions which it implements
18515 to always fail with ENOSYS. Some functions are actually named
18516 something starting with __ and the normal name is an alias. */
18517 #if defined __stub_wcsdup || defined __stub___wcsdup
18529 rm -f conftest.$ac_objext conftest$ac_exeext
18530 if { (ac_try="$ac_link"
18531 case "(($ac_try" in
18532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533 *) ac_try_echo=$ac_try;;
18535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536 (eval "$ac_link") 2>conftest.er1
18538 grep -v '^ *+' conftest.er1 >conftest.err
18540 cat conftest.err >&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } &&
18543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18544 { (case "(($ac_try" in
18545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546 *) ac_try_echo=$ac_try;;
18548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549 (eval "$ac_try") 2>&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; } &&
18553 { ac_try='test -s conftest$ac_exeext'
18554 { (case "(($ac_try" in
18555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556 *) ac_try_echo=$ac_try;;
18558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559 (eval "$ac_try") 2>&5
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; }; then
18563 ac_cv_func_wcsdup=yes
18565 echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18568 ac_cv_func_wcsdup=no
18571 rm -f core conftest.err conftest.$ac_objext \
18572 conftest$ac_exeext conftest.$ac_ext
18574 { echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
18575 echo "${ECHO_T}$ac_cv_func_wcsdup" >&6; }
18576 if test $ac_cv_func_wcsdup = yes; then
18577 cat >>confdefs.h <<\_ACEOF
18578 @%:@define HAVE_WCSDUP 1
18583 { echo "$as_me:$LINENO: checking for wcwidth" >&5
18584 echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6; }
18585 if test "${ac_cv_func_wcwidth+set}" = set; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
18588 cat >conftest.$ac_ext <<_ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h. */
18594 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
18595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18596 #define wcwidth innocuous_wcwidth
18598 /* System header to define __stub macros and hopefully few prototypes,
18599 which can conflict with char wcwidth (); below.
18600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18601 <limits.h> exists even on freestanding compilers. */
18604 # include <limits.h>
18606 # include <assert.h>
18611 /* Override any GCC internal prototype to avoid an error.
18612 Use char because int might match the return type of a GCC
18613 builtin and then its argument prototype would still apply. */
18618 /* The GNU C library defines this for functions which it implements
18619 to always fail with ENOSYS. Some functions are actually named
18620 something starting with __ and the normal name is an alias. */
18621 #if defined __stub_wcwidth || defined __stub___wcwidth
18633 rm -f conftest.$ac_objext conftest$ac_exeext
18634 if { (ac_try="$ac_link"
18635 case "(($ac_try" in
18636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637 *) ac_try_echo=$ac_try;;
18639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640 (eval "$ac_link") 2>conftest.er1
18642 grep -v '^ *+' conftest.er1 >conftest.err
18644 cat conftest.err >&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); } &&
18647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18648 { (case "(($ac_try" in
18649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650 *) ac_try_echo=$ac_try;;
18652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653 (eval "$ac_try") 2>&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; } &&
18657 { ac_try='test -s conftest$ac_exeext'
18658 { (case "(($ac_try" in
18659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660 *) ac_try_echo=$ac_try;;
18662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663 (eval "$ac_try") 2>&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; }; then
18667 ac_cv_func_wcwidth=yes
18669 echo "$as_me: failed program was:" >&5
18670 sed 's/^/| /' conftest.$ac_ext >&5
18672 ac_cv_func_wcwidth=no
18675 rm -f core conftest.err conftest.$ac_objext \
18676 conftest$ac_exeext conftest.$ac_ext
18678 { echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
18679 echo "${ECHO_T}$ac_cv_func_wcwidth" >&6; }
18680 if test $ac_cv_func_wcwidth = yes; then
18681 cat >>confdefs.h <<\_ACEOF
18682 @%:@define HAVE_WCWIDTH 1
18687 { echo "$as_me:$LINENO: checking for wctype" >&5
18688 echo $ECHO_N "checking for wctype... $ECHO_C" >&6; }
18689 if test "${ac_cv_func_wctype+set}" = set; then
18690 echo $ECHO_N "(cached) $ECHO_C" >&6
18692 cat >conftest.$ac_ext <<_ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18698 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
18699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18700 #define wctype innocuous_wctype
18702 /* System header to define __stub macros and hopefully few prototypes,
18703 which can conflict with char wctype (); below.
18704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18705 <limits.h> exists even on freestanding compilers. */
18708 # include <limits.h>
18710 # include <assert.h>
18715 /* Override any GCC internal prototype to avoid an error.
18716 Use char because int might match the return type of a GCC
18717 builtin and then its argument prototype would still apply. */
18722 /* The GNU C library defines this for functions which it implements
18723 to always fail with ENOSYS. Some functions are actually named
18724 something starting with __ and the normal name is an alias. */
18725 #if defined __stub_wctype || defined __stub___wctype
18737 rm -f conftest.$ac_objext conftest$ac_exeext
18738 if { (ac_try="$ac_link"
18739 case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_link") 2>conftest.er1
18746 grep -v '^ *+' conftest.er1 >conftest.err
18748 cat conftest.err >&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); } &&
18751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18752 { (case "(($ac_try" in
18753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754 *) ac_try_echo=$ac_try;;
18756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757 (eval "$ac_try") 2>&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; } &&
18761 { ac_try='test -s conftest$ac_exeext'
18762 { (case "(($ac_try" in
18763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764 *) ac_try_echo=$ac_try;;
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767 (eval "$ac_try") 2>&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; }; then
18771 ac_cv_func_wctype=yes
18773 echo "$as_me: failed program was:" >&5
18774 sed 's/^/| /' conftest.$ac_ext >&5
18776 ac_cv_func_wctype=no
18779 rm -f core conftest.err conftest.$ac_objext \
18780 conftest$ac_exeext conftest.$ac_ext
18782 { echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
18783 echo "${ECHO_T}$ac_cv_func_wctype" >&6; }
18784 if test $ac_cv_func_wctype = yes; then
18785 cat >>confdefs.h <<\_ACEOF
18786 @%:@define HAVE_WCTYPE 1
18793 { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
18794 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
18795 if test "${ac_cv_func_mbrtowc+set}" = set; then
18796 echo $ECHO_N "(cached) $ECHO_C" >&6
18798 cat >conftest.$ac_ext <<_ACEOF
18801 cat confdefs.h >>conftest.$ac_ext
18802 cat >>conftest.$ac_ext <<_ACEOF
18803 /* end confdefs.h. */
18804 @%:@include <wchar.h>
18809 char const s[] = "";
18812 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
18817 rm -f conftest.$ac_objext conftest$ac_exeext
18818 if { (ac_try="$ac_link"
18819 case "(($ac_try" in
18820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18821 *) ac_try_echo=$ac_try;;
18823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18824 (eval "$ac_link") 2>conftest.er1
18826 grep -v '^ *+' conftest.er1 >conftest.err
18828 cat conftest.err >&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); } &&
18831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18832 { (case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837 (eval "$ac_try") 2>&5
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; } &&
18841 { ac_try='test -s conftest$ac_exeext'
18842 { (case "(($ac_try" in
18843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18844 *) ac_try_echo=$ac_try;;
18846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18847 (eval "$ac_try") 2>&5
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
18851 ac_cv_func_mbrtowc=yes
18853 echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18856 ac_cv_func_mbrtowc=no
18859 rm -f core conftest.err conftest.$ac_objext \
18860 conftest$ac_exeext conftest.$ac_ext
18862 { echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
18863 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6; }
18864 if test $ac_cv_func_mbrtowc = yes; then
18866 cat >>confdefs.h <<\_ACEOF
18867 @%:@define HAVE_MBRTOWC 1
18872 if test $ac_cv_func_mbrtowc = yes; then
18873 cat >>confdefs.h <<\_ACEOF
18874 @%:@define HAVE_MBSTATE_T 1
18884 for ac_func in iswlower iswupper towlower towupper iswctype
18886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18887 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18889 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18890 echo $ECHO_N "(cached) $ECHO_C" >&6
18892 cat >conftest.$ac_ext <<_ACEOF
18895 cat confdefs.h >>conftest.$ac_ext
18896 cat >>conftest.$ac_ext <<_ACEOF
18897 /* end confdefs.h. */
18898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18900 #define $ac_func innocuous_$ac_func
18902 /* System header to define __stub macros and hopefully few prototypes,
18903 which can conflict with char $ac_func (); below.
18904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18905 <limits.h> exists even on freestanding compilers. */
18908 # include <limits.h>
18910 # include <assert.h>
18915 /* Override any GCC internal prototype to avoid an error.
18916 Use char because int might match the return type of a GCC
18917 builtin and then its argument prototype would still apply. */
18922 /* The GNU C library defines this for functions which it implements
18923 to always fail with ENOSYS. Some functions are actually named
18924 something starting with __ and the normal name is an alias. */
18925 #if defined __stub_$ac_func || defined __stub___$ac_func
18932 return $ac_func ();
18937 rm -f conftest.$ac_objext conftest$ac_exeext
18938 if { (ac_try="$ac_link"
18939 case "(($ac_try" in
18940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941 *) ac_try_echo=$ac_try;;
18943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18944 (eval "$ac_link") 2>conftest.er1
18946 grep -v '^ *+' conftest.er1 >conftest.err
18948 cat conftest.err >&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); } &&
18951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18952 { (case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_try") 2>&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } &&
18961 { ac_try='test -s conftest$ac_exeext'
18962 { (case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_try") 2>&5
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; }; then
18971 eval "$as_ac_var=yes"
18973 echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.$ac_ext >&5
18976 eval "$as_ac_var=no"
18979 rm -f core conftest.err conftest.$ac_objext \
18980 conftest$ac_exeext conftest.$ac_ext
18982 ac_res=`eval echo '${'$as_ac_var'}'`
18983 { echo "$as_me:$LINENO: result: $ac_res" >&5
18984 echo "${ECHO_T}$ac_res" >&6; }
18985 if test `eval echo '${'$as_ac_var'}'` = yes; then
18986 cat >>confdefs.h <<_ACEOF
18987 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18994 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
18995 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
18996 if test "${bash_cv_langinfo_codeset+set}" = set; then
18997 echo $ECHO_N "(cached) $ECHO_C" >&6
18999 cat >conftest.$ac_ext <<_ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h. */
19005 #include <langinfo.h>
19009 char* cs = nl_langinfo(CODESET);
19014 rm -f conftest.$ac_objext conftest$ac_exeext
19015 if { (ac_try="$ac_link"
19016 case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021 (eval "$ac_link") 2>conftest.er1
19023 grep -v '^ *+' conftest.er1 >conftest.err
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } &&
19028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19029 { (case "(($ac_try" in
19030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031 *) ac_try_echo=$ac_try;;
19033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034 (eval "$ac_try") 2>&5
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); }; } &&
19038 { ac_try='test -s conftest$ac_exeext'
19039 { (case "(($ac_try" in
19040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19041 *) ac_try_echo=$ac_try;;
19043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19044 (eval "$ac_try") 2>&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; }; then
19048 bash_cv_langinfo_codeset=yes
19050 echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.$ac_ext >&5
19053 bash_cv_langinfo_codeset=no
19056 rm -f core conftest.err conftest.$ac_objext \
19057 conftest$ac_exeext conftest.$ac_ext
19059 { echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
19060 echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6; }
19061 if test $bash_cv_langinfo_codeset = yes; then
19062 cat >>confdefs.h <<\_ACEOF
19063 @%:@define HAVE_LANGINFO_CODESET 1
19068 { echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5
19069 echo $ECHO_N "checking for wchar_t in wchar.h... $ECHO_C" >&6; }
19070 if test "${bash_cv_type_wchar_t+set}" = set; then
19071 echo $ECHO_N "(cached) $ECHO_C" >&6
19073 cat >conftest.$ac_ext <<_ACEOF
19076 cat confdefs.h >>conftest.$ac_ext
19077 cat >>conftest.$ac_ext <<_ACEOF
19078 /* end confdefs.h. */
19092 rm -f conftest.$ac_objext
19093 if { (ac_try="$ac_compile"
19094 case "(($ac_try" in
19095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096 *) ac_try_echo=$ac_try;;
19098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099 (eval "$ac_compile") 2>conftest.er1
19101 grep -v '^ *+' conftest.er1 >conftest.err
19103 cat conftest.err >&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } &&
19106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19107 { (case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_try") 2>&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; } &&
19116 { ac_try='test -s conftest.$ac_objext'
19117 { (case "(($ac_try" in
19118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119 *) ac_try_echo=$ac_try;;
19121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19122 (eval "$ac_try") 2>&5
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; }; then
19126 bash_cv_type_wchar_t=yes
19128 echo "$as_me: failed program was:" >&5
19129 sed 's/^/| /' conftest.$ac_ext >&5
19131 bash_cv_type_wchar_t=no
19134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19136 { echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5
19137 echo "${ECHO_T}$bash_cv_type_wchar_t" >&6; }
19138 if test $bash_cv_type_wchar_t = yes; then
19140 cat >>confdefs.h <<\_ACEOF
19141 @%:@define HAVE_WCHAR_T 1
19146 { echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5
19147 echo $ECHO_N "checking for wctype_t in wctype.h... $ECHO_C" >&6; }
19148 if test "${bash_cv_type_wctype_t+set}" = set; then
19149 echo $ECHO_N "(cached) $ECHO_C" >&6
19151 cat >conftest.$ac_ext <<_ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h. */
19157 #include <wctype.h>
19169 rm -f conftest.$ac_objext
19170 if { (ac_try="$ac_compile"
19171 case "(($ac_try" in
19172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19173 *) ac_try_echo=$ac_try;;
19175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19176 (eval "$ac_compile") 2>conftest.er1
19178 grep -v '^ *+' conftest.er1 >conftest.err
19180 cat conftest.err >&5
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); } &&
19183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19184 { (case "(($ac_try" in
19185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186 *) ac_try_echo=$ac_try;;
19188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189 (eval "$ac_try") 2>&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; } &&
19193 { ac_try='test -s conftest.$ac_objext'
19194 { (case "(($ac_try" in
19195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196 *) ac_try_echo=$ac_try;;
19198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199 (eval "$ac_try") 2>&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; }; then
19203 bash_cv_type_wctype_t=yes
19205 echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19208 bash_cv_type_wctype_t=no
19211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19213 { echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5
19214 echo "${ECHO_T}$bash_cv_type_wctype_t" >&6; }
19215 if test $bash_cv_type_wctype_t = yes; then
19217 cat >>confdefs.h <<\_ACEOF
19218 @%:@define HAVE_WCTYPE_T 1
19223 { echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5
19224 echo $ECHO_N "checking for wint_t in wctype.h... $ECHO_C" >&6; }
19225 if test "${bash_cv_type_wint_t+set}" = set; then
19226 echo $ECHO_N "(cached) $ECHO_C" >&6
19228 cat >conftest.$ac_ext <<_ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h. */
19234 #include <wctype.h>
19246 rm -f conftest.$ac_objext
19247 if { (ac_try="$ac_compile"
19248 case "(($ac_try" in
19249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250 *) ac_try_echo=$ac_try;;
19252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19253 (eval "$ac_compile") 2>conftest.er1
19255 grep -v '^ *+' conftest.er1 >conftest.err
19257 cat conftest.err >&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); } &&
19260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19261 { (case "(($ac_try" in
19262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263 *) ac_try_echo=$ac_try;;
19265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266 (eval "$ac_try") 2>&5
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; } &&
19270 { ac_try='test -s conftest.$ac_objext'
19271 { (case "(($ac_try" in
19272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19273 *) ac_try_echo=$ac_try;;
19275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19276 (eval "$ac_try") 2>&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); }; }; then
19280 bash_cv_type_wint_t=yes
19282 echo "$as_me: failed program was:" >&5
19283 sed 's/^/| /' conftest.$ac_ext >&5
19285 bash_cv_type_wint_t=no
19288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19290 { echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5
19291 echo "${ECHO_T}$bash_cv_type_wint_t" >&6; }
19292 if test $bash_cv_type_wint_t = yes; then
19294 cat >>confdefs.h <<\_ACEOF
19295 @%:@define HAVE_WINT_T 1
19302 if test "$opt_static_link" != yes; then
19304 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19305 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
19306 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19307 echo $ECHO_N "(cached) $ECHO_C" >&6
19309 ac_check_lib_save_LIBS=$LIBS
19311 cat >conftest.$ac_ext <<_ACEOF
19314 cat confdefs.h >>conftest.$ac_ext
19315 cat >>conftest.$ac_ext <<_ACEOF
19316 /* end confdefs.h. */
19318 /* Override any GCC internal prototype to avoid an error.
19319 Use char because int might match the return type of a GCC
19320 builtin and then its argument prototype would still apply. */
19333 rm -f conftest.$ac_objext conftest$ac_exeext
19334 if { (ac_try="$ac_link"
19335 case "(($ac_try" in
19336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19337 *) ac_try_echo=$ac_try;;
19339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19340 (eval "$ac_link") 2>conftest.er1
19342 grep -v '^ *+' conftest.er1 >conftest.err
19344 cat conftest.err >&5
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); } &&
19347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19348 { (case "(($ac_try" in
19349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19350 *) ac_try_echo=$ac_try;;
19352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19353 (eval "$ac_try") 2>&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); }; } &&
19357 { ac_try='test -s conftest$ac_exeext'
19358 { (case "(($ac_try" in
19359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360 *) ac_try_echo=$ac_try;;
19362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363 (eval "$ac_try") 2>&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; }; then
19367 ac_cv_lib_dl_dlopen=yes
19369 echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19372 ac_cv_lib_dl_dlopen=no
19375 rm -f core conftest.err conftest.$ac_objext \
19376 conftest$ac_exeext conftest.$ac_ext
19377 LIBS=$ac_check_lib_save_LIBS
19379 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19380 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19381 if test $ac_cv_lib_dl_dlopen = yes; then
19382 cat >>confdefs.h <<_ACEOF
19383 @%:@define HAVE_LIBDL 1
19393 for ac_func in dlopen dlclose dlsym
19395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19396 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19399 echo $ECHO_N "(cached) $ECHO_C" >&6
19401 cat >conftest.$ac_ext <<_ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19409 #define $ac_func innocuous_$ac_func
19411 /* System header to define __stub macros and hopefully few prototypes,
19412 which can conflict with char $ac_func (); below.
19413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19414 <limits.h> exists even on freestanding compilers. */
19417 # include <limits.h>
19419 # include <assert.h>
19424 /* Override any GCC internal prototype to avoid an error.
19425 Use char because int might match the return type of a GCC
19426 builtin and then its argument prototype would still apply. */
19431 /* The GNU C library defines this for functions which it implements
19432 to always fail with ENOSYS. Some functions are actually named
19433 something starting with __ and the normal name is an alias. */
19434 #if defined __stub_$ac_func || defined __stub___$ac_func
19441 return $ac_func ();
19446 rm -f conftest.$ac_objext conftest$ac_exeext
19447 if { (ac_try="$ac_link"
19448 case "(($ac_try" in
19449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450 *) ac_try_echo=$ac_try;;
19452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19453 (eval "$ac_link") 2>conftest.er1
19455 grep -v '^ *+' conftest.er1 >conftest.err
19457 cat conftest.err >&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); } &&
19460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19461 { (case "(($ac_try" in
19462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463 *) ac_try_echo=$ac_try;;
19465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19466 (eval "$ac_try") 2>&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; } &&
19470 { ac_try='test -s conftest$ac_exeext'
19471 { (case "(($ac_try" in
19472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473 *) ac_try_echo=$ac_try;;
19475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476 (eval "$ac_try") 2>&5
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); }; }; then
19480 eval "$as_ac_var=yes"
19482 echo "$as_me: failed program was:" >&5
19483 sed 's/^/| /' conftest.$ac_ext >&5
19485 eval "$as_ac_var=no"
19488 rm -f core conftest.err conftest.$ac_objext \
19489 conftest$ac_exeext conftest.$ac_ext
19491 ac_res=`eval echo '${'$as_ac_var'}'`
19492 { echo "$as_me:$LINENO: result: $ac_res" >&5
19493 echo "${ECHO_T}$ac_res" >&6; }
19494 if test `eval echo '${'$as_ac_var'}'` = yes; then
19495 cat >>confdefs.h <<_ACEOF
19496 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19504 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
19505 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
19506 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
19507 echo $ECHO_N "(cached) $ECHO_C" >&6
19509 cat >conftest.$ac_ext <<_ACEOF
19512 cat confdefs.h >>conftest.$ac_ext
19513 cat >>conftest.$ac_ext <<_ACEOF
19514 /* end confdefs.h. */
19515 #include <signal.h>
19516 /* NetBSD declares sys_siglist in unistd.h. */
19518 # include <unistd.h>
19525 #ifndef sys_siglist
19526 char *p = (char *) sys_siglist;
19534 rm -f conftest.$ac_objext
19535 if { (ac_try="$ac_compile"
19536 case "(($ac_try" in
19537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538 *) ac_try_echo=$ac_try;;
19540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541 (eval "$ac_compile") 2>conftest.er1
19543 grep -v '^ *+' conftest.er1 >conftest.err
19545 cat conftest.err >&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); } &&
19548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19549 { (case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_try") 2>&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try='test -s conftest.$ac_objext'
19559 { (case "(($ac_try" in
19560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561 *) ac_try_echo=$ac_try;;
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564 (eval "$ac_try") 2>&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
19568 ac_cv_have_decl_sys_siglist=yes
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19573 ac_cv_have_decl_sys_siglist=no
19576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19578 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
19579 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
19580 if test $ac_cv_have_decl_sys_siglist = yes; then
19582 cat >>confdefs.h <<_ACEOF
19583 @%:@define HAVE_DECL_SYS_SIGLIST 1
19588 cat >>confdefs.h <<_ACEOF
19589 @%:@define HAVE_DECL_SYS_SIGLIST 0
19598 if test "$ac_cv_func_inet_aton" != 'yes'; then
19600 { echo "$as_me:$LINENO: checking for inet_aton" >&5
19601 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
19602 if test "${bash_cv_func_inet_aton+set}" = set; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19605 cat >conftest.$ac_ext <<_ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19612 #include <sys/types.h>
19613 #include <netinet/in.h>
19614 #include <arpa/inet.h>
19619 inet_aton("127.0.0.1", &ap);
19624 rm -f conftest.$ac_objext conftest$ac_exeext
19625 if { (ac_try="$ac_link"
19626 case "(($ac_try" in
19627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628 *) ac_try_echo=$ac_try;;
19630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631 (eval "$ac_link") 2>conftest.er1
19633 grep -v '^ *+' conftest.er1 >conftest.err
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19639 { (case "(($ac_try" in
19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644 (eval "$ac_try") 2>&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; } &&
19648 { ac_try='test -s conftest$ac_exeext'
19649 { (case "(($ac_try" in
19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654 (eval "$ac_try") 2>&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; }; then
19658 bash_cv_func_inet_aton=yes
19660 echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19663 bash_cv_func_inet_aton=no
19666 rm -f core conftest.err conftest.$ac_objext \
19667 conftest$ac_exeext conftest.$ac_ext
19669 { echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
19670 echo "${ECHO_T}$bash_cv_func_inet_aton" >&6; }
19671 if test $bash_cv_func_inet_aton = yes; then
19672 cat >>confdefs.h <<\_ACEOF
19673 @%:@define HAVE_INET_ATON 1
19677 case " $LIB@&t@OBJS " in
19678 *" inet_aton.$ac_objext "* ) ;;
19679 *) LIB@&t@OBJS="$LIB@&t@OBJS inet_aton.$ac_objext"
19689 { echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
19690 echo $ECHO_N "checking for getpwent in -lsun... $ECHO_C" >&6; }
19691 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
19692 echo $ECHO_N "(cached) $ECHO_C" >&6
19694 ac_check_lib_save_LIBS=$LIBS
19696 cat >conftest.$ac_ext <<_ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h. */
19703 /* Override any GCC internal prototype to avoid an error.
19704 Use char because int might match the return type of a GCC
19705 builtin and then its argument prototype would still apply. */
19713 return getpwent ();
19718 rm -f conftest.$ac_objext conftest$ac_exeext
19719 if { (ac_try="$ac_link"
19720 case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_link") 2>conftest.er1
19727 grep -v '^ *+' conftest.er1 >conftest.err
19729 cat conftest.err >&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } &&
19732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19733 { (case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_try") 2>&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; } &&
19742 { ac_try='test -s conftest$ac_exeext'
19743 { (case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_try") 2>&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; }; then
19752 ac_cv_lib_sun_getpwent=yes
19754 echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19757 ac_cv_lib_sun_getpwent=no
19760 rm -f core conftest.err conftest.$ac_objext \
19761 conftest$ac_exeext conftest.$ac_ext
19762 LIBS=$ac_check_lib_save_LIBS
19764 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
19765 echo "${ECHO_T}$ac_cv_lib_sun_getpwent" >&6; }
19766 if test $ac_cv_lib_sun_getpwent = yes; then
19767 cat >>confdefs.h <<_ACEOF
19768 @%:@define HAVE_LIBSUN 1
19777 if test "$ac_cv_func_getpeername" = no; then
19779 if test "X$bash_cv_have_socklib" = "X"; then
19782 { echo "$as_me:$LINENO: checking for socket library" >&5
19783 echo $ECHO_N "checking for socket library... $ECHO_C" >&6; }
19786 if test "${bash_cv_have_socklib+set}" = set; then
19787 echo $ECHO_N "(cached) $ECHO_C" >&6
19789 { echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
19790 echo $ECHO_N "checking for getpeername in -lsocket... $ECHO_C" >&6; }
19791 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
19792 echo $ECHO_N "(cached) $ECHO_C" >&6
19794 ac_check_lib_save_LIBS=$LIBS
19795 LIBS="-lsocket -lnsl $LIBS"
19796 cat >conftest.$ac_ext <<_ACEOF
19799 cat confdefs.h >>conftest.$ac_ext
19800 cat >>conftest.$ac_ext <<_ACEOF
19801 /* end confdefs.h. */
19803 /* Override any GCC internal prototype to avoid an error.
19804 Use char because int might match the return type of a GCC
19805 builtin and then its argument prototype would still apply. */
19809 char getpeername ();
19813 return getpeername ();
19818 rm -f conftest.$ac_objext conftest$ac_exeext
19819 if { (ac_try="$ac_link"
19820 case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_link") 2>conftest.er1
19827 grep -v '^ *+' conftest.er1 >conftest.err
19829 cat conftest.err >&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } &&
19832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19833 { (case "(($ac_try" in
19834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835 *) ac_try_echo=$ac_try;;
19837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838 (eval "$ac_try") 2>&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; } &&
19842 { ac_try='test -s conftest$ac_exeext'
19843 { (case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_try") 2>&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); }; }; then
19852 ac_cv_lib_socket_getpeername=yes
19854 echo "$as_me: failed program was:" >&5
19855 sed 's/^/| /' conftest.$ac_ext >&5
19857 ac_cv_lib_socket_getpeername=no
19860 rm -f core conftest.err conftest.$ac_objext \
19861 conftest$ac_exeext conftest.$ac_ext
19862 LIBS=$ac_check_lib_save_LIBS
19864 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
19865 echo "${ECHO_T}$ac_cv_lib_socket_getpeername" >&6; }
19866 if test $ac_cv_lib_socket_getpeername = yes; then
19867 bash_cv_have_socklib=yes
19869 bash_cv_have_socklib=no
19874 if test "X$_bash_needmsg" = Xyes; then
19875 { echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
19876 echo "${ECHO_T}$bash_cv_have_socklib" >&6; }
19879 if test $bash_cv_have_socklib = yes; then
19880 # check for libnsl, add it to LIBS if present
19881 if test "X$bash_cv_have_libnsl" = "X"; then
19884 { echo "$as_me:$LINENO: checking for libnsl" >&5
19885 echo $ECHO_N "checking for libnsl... $ECHO_C" >&6; }
19888 if test "${bash_cv_have_libnsl+set}" = set; then
19889 echo $ECHO_N "(cached) $ECHO_C" >&6
19891 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
19892 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
19893 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19896 ac_check_lib_save_LIBS=$LIBS
19898 cat >conftest.$ac_ext <<_ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h. */
19905 /* Override any GCC internal prototype to avoid an error.
19906 Use char because int might match the return type of a GCC
19907 builtin and then its argument prototype would still apply. */
19920 rm -f conftest.$ac_objext conftest$ac_exeext
19921 if { (ac_try="$ac_link"
19922 case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_link") 2>conftest.er1
19929 grep -v '^ *+' conftest.er1 >conftest.err
19931 cat conftest.err >&5
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); } &&
19934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19935 { (case "(($ac_try" in
19936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937 *) ac_try_echo=$ac_try;;
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940 (eval "$ac_try") 2>&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; } &&
19944 { ac_try='test -s conftest$ac_exeext'
19945 { (case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950 (eval "$ac_try") 2>&5
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); }; }; then
19954 ac_cv_lib_nsl_t_open=yes
19956 echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19959 ac_cv_lib_nsl_t_open=no
19962 rm -f core conftest.err conftest.$ac_objext \
19963 conftest$ac_exeext conftest.$ac_ext
19964 LIBS=$ac_check_lib_save_LIBS
19966 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
19967 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
19968 if test $ac_cv_lib_nsl_t_open = yes; then
19969 bash_cv_have_libnsl=yes
19971 bash_cv_have_libnsl=no
19976 if test "X$_bash_needmsg" = Xyes; then
19977 { echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
19978 echo "${ECHO_T}$bash_cv_have_libnsl" >&6; }
19981 if test $bash_cv_have_libnsl = yes; then
19982 LIBS="-lsocket -lnsl $LIBS"
19984 LIBS="-lsocket $LIBS"
19986 cat >>confdefs.h <<\_ACEOF
19987 @%:@define HAVE_LIBSOCKET 1
19990 cat >>confdefs.h <<\_ACEOF
19991 @%:@define HAVE_GETPEERNAME 1
19997 if test "$ac_cv_func_gethostbyname" = no; then
19998 if test "X$bash_cv_have_gethostbyname" = "X"; then
20001 { echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
20002 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6; }
20005 if test "${bash_cv_have_gethostbyname+set}" = set; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20008 cat >conftest.$ac_ext <<_ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h. */
20018 struct hostent *hp;
20019 hp = gethostbyname("localhost");
20025 rm -f conftest.$ac_objext conftest$ac_exeext
20026 if { (ac_try="$ac_link"
20027 case "(($ac_try" in
20028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029 *) ac_try_echo=$ac_try;;
20031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032 (eval "$ac_link") 2>conftest.er1
20034 grep -v '^ *+' conftest.er1 >conftest.err
20036 cat conftest.err >&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); } &&
20039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20040 { (case "(($ac_try" in
20041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042 *) ac_try_echo=$ac_try;;
20044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20045 (eval "$ac_try") 2>&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; } &&
20049 { ac_try='test -s conftest$ac_exeext'
20050 { (case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_try") 2>&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; }; then
20059 bash_cv_have_gethostbyname=yes
20061 echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20064 bash_cv_have_gethostbyname=no
20067 rm -f core conftest.err conftest.$ac_objext \
20068 conftest$ac_exeext conftest.$ac_ext
20072 if test "X$_bash_needmsg" = Xyes; then
20073 { echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
20074 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6; }
20076 { echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
20077 echo "${ECHO_T}$bash_cv_have_gethostbyname" >&6; }
20078 if test "$bash_cv_have_gethostbyname" = yes; then
20079 cat >>confdefs.h <<\_ACEOF
20080 @%:@define HAVE_GETHOSTBYNAME 1
20087 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20088 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
20089 if test "${ac_cv_type_uid_t+set}" = set; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20092 cat >conftest.$ac_ext <<_ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h. */
20098 #include <sys/types.h>
20101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20102 $EGREP "uid_t" >/dev/null 2>&1; then
20103 ac_cv_type_uid_t=yes
20105 ac_cv_type_uid_t=no
20110 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20111 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
20112 if test $ac_cv_type_uid_t = no; then
20114 cat >>confdefs.h <<\_ACEOF
20115 @%:@define uid_t int
20119 cat >>confdefs.h <<\_ACEOF
20120 @%:@define gid_t int
20125 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
20126 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
20127 if test "${ac_cv_type_getgroups+set}" = set; then
20128 echo $ECHO_N "(cached) $ECHO_C" >&6
20130 if test "$cross_compiling" = yes; then
20131 ac_cv_type_getgroups=cross
20133 cat >conftest.$ac_ext <<_ACEOF
20136 cat confdefs.h >>conftest.$ac_ext
20137 cat >>conftest.$ac_ext <<_ACEOF
20138 /* end confdefs.h. */
20139 /* Thanks to Mike Rendell for this test. */
20140 $ac_includes_default
20143 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20148 gid_t gidset[NGID];
20150 union { gid_t gval; long int lval; } val;
20153 for (i = 0; i < NGID; i++)
20154 gidset[i] = val.gval;
20155 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20157 /* Exit non-zero if getgroups seems to require an array of ints. This
20158 happens when gid_t is short int but getgroups modifies an array
20160 return n > 0 && gidset[n] != val.gval;
20163 rm -f conftest$ac_exeext
20164 if { (ac_try="$ac_link"
20165 case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_link") 2>&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20174 { (case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_try") 2>&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; }; then
20183 ac_cv_type_getgroups=gid_t
20185 echo "$as_me: program exited with status $ac_status" >&5
20186 echo "$as_me: failed program was:" >&5
20187 sed 's/^/| /' conftest.$ac_ext >&5
20189 ( exit $ac_status )
20190 ac_cv_type_getgroups=int
20192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20196 if test $ac_cv_type_getgroups = cross; then
20197 cat >conftest.$ac_ext <<_ACEOF
20200 cat confdefs.h >>conftest.$ac_ext
20201 cat >>conftest.$ac_ext <<_ACEOF
20202 /* end confdefs.h. */
20203 #include <unistd.h>
20206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20207 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
20208 ac_cv_type_getgroups=gid_t
20210 ac_cv_type_getgroups=int
20216 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
20217 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
20219 cat >>confdefs.h <<_ACEOF
20220 @%:@define GETGROUPS_T $ac_cv_type_getgroups
20224 { echo "$as_me:$LINENO: checking for off_t" >&5
20225 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
20226 if test "${ac_cv_type_off_t+set}" = set; then
20227 echo $ECHO_N "(cached) $ECHO_C" >&6
20229 cat >conftest.$ac_ext <<_ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20235 $ac_includes_default
20236 typedef off_t ac__type_new_;
20240 if ((ac__type_new_ *) 0)
20242 if (sizeof (ac__type_new_))
20248 rm -f conftest.$ac_objext
20249 if { (ac_try="$ac_compile"
20250 case "(($ac_try" in
20251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252 *) ac_try_echo=$ac_try;;
20254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20255 (eval "$ac_compile") 2>conftest.er1
20257 grep -v '^ *+' conftest.er1 >conftest.err
20259 cat conftest.err >&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); } &&
20262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20263 { (case "(($ac_try" in
20264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265 *) ac_try_echo=$ac_try;;
20267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20268 (eval "$ac_try") 2>&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; } &&
20272 { ac_try='test -s conftest.$ac_objext'
20273 { (case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_try") 2>&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; }; then
20282 ac_cv_type_off_t=yes
20284 echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20287 ac_cv_type_off_t=no
20290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20292 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20293 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
20294 if test $ac_cv_type_off_t = yes; then
20298 cat >>confdefs.h <<_ACEOF
20299 @%:@define off_t long int
20304 { echo "$as_me:$LINENO: checking for mode_t" >&5
20305 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
20306 if test "${ac_cv_type_mode_t+set}" = set; then
20307 echo $ECHO_N "(cached) $ECHO_C" >&6
20309 cat >conftest.$ac_ext <<_ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h. */
20315 $ac_includes_default
20316 typedef mode_t ac__type_new_;
20320 if ((ac__type_new_ *) 0)
20322 if (sizeof (ac__type_new_))
20328 rm -f conftest.$ac_objext
20329 if { (ac_try="$ac_compile"
20330 case "(($ac_try" in
20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_compile") 2>conftest.er1
20337 grep -v '^ *+' conftest.er1 >conftest.err
20339 cat conftest.err >&5
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); } &&
20342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20343 { (case "(($ac_try" in
20344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345 *) ac_try_echo=$ac_try;;
20347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20348 (eval "$ac_try") 2>&5
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); }; } &&
20352 { ac_try='test -s conftest.$ac_objext'
20353 { (case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358 (eval "$ac_try") 2>&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; }; then
20362 ac_cv_type_mode_t=yes
20364 echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20367 ac_cv_type_mode_t=no
20370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20372 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
20373 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
20374 if test $ac_cv_type_mode_t = yes; then
20378 cat >>confdefs.h <<_ACEOF
20379 @%:@define mode_t int
20384 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20385 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
20386 if test "${ac_cv_type_uid_t+set}" = set; then
20387 echo $ECHO_N "(cached) $ECHO_C" >&6
20389 cat >conftest.$ac_ext <<_ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h. */
20395 #include <sys/types.h>
20398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20399 $EGREP "uid_t" >/dev/null 2>&1; then
20400 ac_cv_type_uid_t=yes
20402 ac_cv_type_uid_t=no
20407 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20408 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
20409 if test $ac_cv_type_uid_t = no; then
20411 cat >>confdefs.h <<\_ACEOF
20412 @%:@define uid_t int
20416 cat >>confdefs.h <<\_ACEOF
20417 @%:@define gid_t int
20422 { echo "$as_me:$LINENO: checking for pid_t" >&5
20423 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
20424 if test "${ac_cv_type_pid_t+set}" = set; then
20425 echo $ECHO_N "(cached) $ECHO_C" >&6
20427 cat >conftest.$ac_ext <<_ACEOF
20430 cat confdefs.h >>conftest.$ac_ext
20431 cat >>conftest.$ac_ext <<_ACEOF
20432 /* end confdefs.h. */
20433 $ac_includes_default
20434 typedef pid_t ac__type_new_;
20438 if ((ac__type_new_ *) 0)
20440 if (sizeof (ac__type_new_))
20446 rm -f conftest.$ac_objext
20447 if { (ac_try="$ac_compile"
20448 case "(($ac_try" in
20449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20450 *) ac_try_echo=$ac_try;;
20452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20453 (eval "$ac_compile") 2>conftest.er1
20455 grep -v '^ *+' conftest.er1 >conftest.err
20457 cat conftest.err >&5
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); } &&
20460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20461 { (case "(($ac_try" in
20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463 *) ac_try_echo=$ac_try;;
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466 (eval "$ac_try") 2>&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }; } &&
20470 { ac_try='test -s conftest.$ac_objext'
20471 { (case "(($ac_try" in
20472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473 *) ac_try_echo=$ac_try;;
20475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476 (eval "$ac_try") 2>&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; }; then
20480 ac_cv_type_pid_t=yes
20482 echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20485 ac_cv_type_pid_t=no
20488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20490 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20491 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
20492 if test $ac_cv_type_pid_t = yes; then
20496 cat >>confdefs.h <<_ACEOF
20497 @%:@define pid_t int
20502 { echo "$as_me:$LINENO: checking for size_t" >&5
20503 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20504 if test "${ac_cv_type_size_t+set}" = set; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
20507 cat >conftest.$ac_ext <<_ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20513 $ac_includes_default
20514 typedef size_t ac__type_new_;
20518 if ((ac__type_new_ *) 0)
20520 if (sizeof (ac__type_new_))
20526 rm -f conftest.$ac_objext
20527 if { (ac_try="$ac_compile"
20528 case "(($ac_try" in
20529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530 *) ac_try_echo=$ac_try;;
20532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20533 (eval "$ac_compile") 2>conftest.er1
20535 grep -v '^ *+' conftest.er1 >conftest.err
20537 cat conftest.err >&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); } &&
20540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20541 { (case "(($ac_try" in
20542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20543 *) ac_try_echo=$ac_try;;
20545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20546 (eval "$ac_try") 2>&5
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; } &&
20550 { ac_try='test -s conftest.$ac_objext'
20551 { (case "(($ac_try" in
20552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553 *) ac_try_echo=$ac_try;;
20555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556 (eval "$ac_try") 2>&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; }; then
20560 ac_cv_type_size_t=yes
20562 echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20565 ac_cv_type_size_t=no
20568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20570 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20571 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20572 if test $ac_cv_type_size_t = yes; then
20576 cat >>confdefs.h <<_ACEOF
20577 @%:@define size_t unsigned int
20582 { echo "$as_me:$LINENO: checking for ssize_t" >&5
20583 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
20584 if test "${ac_cv_type_ssize_t+set}" = set; then
20585 echo $ECHO_N "(cached) $ECHO_C" >&6
20587 cat >conftest.$ac_ext <<_ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20593 $ac_includes_default
20594 typedef ssize_t ac__type_new_;
20598 if ((ac__type_new_ *) 0)
20600 if (sizeof (ac__type_new_))
20606 rm -f conftest.$ac_objext
20607 if { (ac_try="$ac_compile"
20608 case "(($ac_try" in
20609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20610 *) ac_try_echo=$ac_try;;
20612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20613 (eval "$ac_compile") 2>conftest.er1
20615 grep -v '^ *+' conftest.er1 >conftest.err
20617 cat conftest.err >&5
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); } &&
20620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20621 { (case "(($ac_try" in
20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623 *) ac_try_echo=$ac_try;;
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626 (eval "$ac_try") 2>&5
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); }; } &&
20630 { ac_try='test -s conftest.$ac_objext'
20631 { (case "(($ac_try" in
20632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633 *) ac_try_echo=$ac_try;;
20635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636 (eval "$ac_try") 2>&5
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); }; }; then
20640 ac_cv_type_ssize_t=yes
20642 echo "$as_me: failed program was:" >&5
20643 sed 's/^/| /' conftest.$ac_ext >&5
20645 ac_cv_type_ssize_t=no
20648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20650 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20651 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
20652 if test $ac_cv_type_ssize_t = yes; then
20656 cat >>confdefs.h <<_ACEOF
20657 @%:@define ssize_t int
20662 { echo "$as_me:$LINENO: checking for time_t" >&5
20663 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
20664 if test "${ac_cv_type_time_t+set}" = set; then
20665 echo $ECHO_N "(cached) $ECHO_C" >&6
20667 cat >conftest.$ac_ext <<_ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h. */
20673 $ac_includes_default
20674 typedef time_t ac__type_new_;
20678 if ((ac__type_new_ *) 0)
20680 if (sizeof (ac__type_new_))
20686 rm -f conftest.$ac_objext
20687 if { (ac_try="$ac_compile"
20688 case "(($ac_try" in
20689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690 *) ac_try_echo=$ac_try;;
20692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20693 (eval "$ac_compile") 2>conftest.er1
20695 grep -v '^ *+' conftest.er1 >conftest.err
20697 cat conftest.err >&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); } &&
20700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20701 { (case "(($ac_try" in
20702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703 *) ac_try_echo=$ac_try;;
20705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20706 (eval "$ac_try") 2>&5
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); }; } &&
20710 { ac_try='test -s conftest.$ac_objext'
20711 { (case "(($ac_try" in
20712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713 *) ac_try_echo=$ac_try;;
20715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716 (eval "$ac_try") 2>&5
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); }; }; then
20720 ac_cv_type_time_t=yes
20722 echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20725 ac_cv_type_time_t=no
20728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20730 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
20731 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
20732 if test $ac_cv_type_time_t = yes; then
20736 cat >>confdefs.h <<_ACEOF
20737 @%:@define time_t long
20744 { echo "$as_me:$LINENO: checking for long long" >&5
20745 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
20746 if test "${bash_cv_type_long_long+set}" = set; then
20747 echo $ECHO_N "(cached) $ECHO_C" >&6
20749 cat >conftest.$ac_ext <<_ACEOF
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h. */
20756 long long ll = 1; int i = 63;
20761 long long llm = (long long) -1;
20762 return ll << i | ll >> i | llm / ll | llm % ll;
20768 rm -f conftest.$ac_objext conftest$ac_exeext
20769 if { (ac_try="$ac_link"
20770 case "(($ac_try" in
20771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772 *) ac_try_echo=$ac_try;;
20774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20775 (eval "$ac_link") 2>conftest.er1
20777 grep -v '^ *+' conftest.er1 >conftest.err
20779 cat conftest.err >&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); } &&
20782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20783 { (case "(($ac_try" in
20784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20785 *) ac_try_echo=$ac_try;;
20787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20788 (eval "$ac_try") 2>&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); }; } &&
20792 { ac_try='test -s conftest$ac_exeext'
20793 { (case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_try") 2>&5
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); }; }; then
20802 bash_cv_type_long_long='long long'
20804 echo "$as_me: failed program was:" >&5
20805 sed 's/^/| /' conftest.$ac_ext >&5
20807 bash_cv_type_long_long='long'
20810 rm -f core conftest.err conftest.$ac_objext \
20811 conftest$ac_exeext conftest.$ac_ext
20813 { echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
20814 echo "${ECHO_T}$bash_cv_type_long_long" >&6; }
20815 if test "$bash_cv_type_long_long" = 'long long'; then
20816 cat >>confdefs.h <<\_ACEOF
20817 @%:@define HAVE_LONG_LONG 1
20823 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20824 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20825 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
20826 echo $ECHO_N "(cached) $ECHO_C" >&6
20828 cat >conftest.$ac_ext <<_ACEOF
20831 cat confdefs.h >>conftest.$ac_ext
20832 cat >>conftest.$ac_ext <<_ACEOF
20833 /* end confdefs.h. */
20835 unsigned long long ull = 1; int i = 63;
20840 unsigned long long ullmax = (unsigned long long) -1;
20841 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20847 rm -f conftest.$ac_objext conftest$ac_exeext
20848 if { (ac_try="$ac_link"
20849 case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854 (eval "$ac_link") 2>conftest.er1
20856 grep -v '^ *+' conftest.er1 >conftest.err
20858 cat conftest.err >&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } &&
20861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20862 { (case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20867 (eval "$ac_try") 2>&5
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); }; } &&
20871 { ac_try='test -s conftest$ac_exeext'
20872 { (case "(($ac_try" in
20873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874 *) ac_try_echo=$ac_try;;
20876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877 (eval "$ac_try") 2>&5
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); }; }; then
20881 bash_cv_type_unsigned_long_long='unsigned long long'
20883 echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.$ac_ext >&5
20886 bash_cv_type_unsigned_long_long='unsigned long'
20889 rm -f core conftest.err conftest.$ac_objext \
20890 conftest$ac_exeext conftest.$ac_ext
20892 { echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
20893 echo "${ECHO_T}$bash_cv_type_unsigned_long_long" >&6; }
20894 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
20895 cat >>confdefs.h <<\_ACEOF
20896 @%:@define HAVE_UNSIGNED_LONG_LONG 1
20902 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20903 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
20904 if test "${ac_cv_type_signal+set}" = set; then
20905 echo $ECHO_N "(cached) $ECHO_C" >&6
20907 cat >conftest.$ac_ext <<_ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h. */
20913 #include <sys/types.h>
20914 #include <signal.h>
20919 return *(signal (0, 0)) (0) == 1;
20924 rm -f conftest.$ac_objext
20925 if { (ac_try="$ac_compile"
20926 case "(($ac_try" in
20927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928 *) ac_try_echo=$ac_try;;
20930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20931 (eval "$ac_compile") 2>conftest.er1
20933 grep -v '^ *+' conftest.er1 >conftest.err
20935 cat conftest.err >&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } &&
20938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20939 { (case "(($ac_try" in
20940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941 *) ac_try_echo=$ac_try;;
20943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944 (eval "$ac_try") 2>&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); }; } &&
20948 { ac_try='test -s conftest.$ac_objext'
20949 { (case "(($ac_try" in
20950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20951 *) ac_try_echo=$ac_try;;
20953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20954 (eval "$ac_try") 2>&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; }; then
20958 ac_cv_type_signal=int
20960 echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20963 ac_cv_type_signal=void
20966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20968 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20969 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
20971 cat >>confdefs.h <<_ACEOF
20972 @%:@define RETSIGTYPE $ac_cv_type_signal
20977 { echo "$as_me:$LINENO: checking for char" >&5
20978 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
20979 if test "${ac_cv_type_char+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20982 cat >conftest.$ac_ext <<_ACEOF
20985 cat confdefs.h >>conftest.$ac_ext
20986 cat >>conftest.$ac_ext <<_ACEOF
20987 /* end confdefs.h. */
20988 $ac_includes_default
20989 typedef char ac__type_new_;
20993 if ((ac__type_new_ *) 0)
20995 if (sizeof (ac__type_new_))
21001 rm -f conftest.$ac_objext
21002 if { (ac_try="$ac_compile"
21003 case "(($ac_try" in
21004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21005 *) ac_try_echo=$ac_try;;
21007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21008 (eval "$ac_compile") 2>conftest.er1
21010 grep -v '^ *+' conftest.er1 >conftest.err
21012 cat conftest.err >&5
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); } &&
21015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21016 { (case "(($ac_try" in
21017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018 *) ac_try_echo=$ac_try;;
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021 (eval "$ac_try") 2>&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; } &&
21025 { ac_try='test -s conftest.$ac_objext'
21026 { (case "(($ac_try" in
21027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028 *) ac_try_echo=$ac_try;;
21030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21031 (eval "$ac_try") 2>&5
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; }; then
21035 ac_cv_type_char=yes
21037 echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21045 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
21046 echo "${ECHO_T}$ac_cv_type_char" >&6; }
21048 { echo "$as_me:$LINENO: checking size of char" >&5
21049 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
21050 if test "${ac_cv_sizeof_char+set}" = set; then
21051 echo $ECHO_N "(cached) $ECHO_C" >&6
21053 if test "$ac_cv_type_char" = yes; then
21054 # The cast to long int works around a bug in the HP C Compiler
21055 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21056 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21057 # This bug is HP SR number 8606223364.
21058 if test "$cross_compiling" = yes; then
21059 # Depending upon the size, compute the lo and hi bounds.
21060 cat >conftest.$ac_ext <<_ACEOF
21063 cat confdefs.h >>conftest.$ac_ext
21064 cat >>conftest.$ac_ext <<_ACEOF
21065 /* end confdefs.h. */
21066 $ac_includes_default
21067 typedef char ac__type_sizeof_;
21071 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
21072 test_array @<:@0@:>@ = 0
21078 rm -f conftest.$ac_objext
21079 if { (ac_try="$ac_compile"
21080 case "(($ac_try" in
21081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21082 *) ac_try_echo=$ac_try;;
21084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21085 (eval "$ac_compile") 2>conftest.er1
21087 grep -v '^ *+' conftest.er1 >conftest.err
21089 cat conftest.err >&5
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); } &&
21092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21093 { (case "(($ac_try" in
21094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095 *) ac_try_echo=$ac_try;;
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098 (eval "$ac_try") 2>&5
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); }; } &&
21102 { ac_try='test -s conftest.$ac_objext'
21103 { (case "(($ac_try" in
21104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105 *) ac_try_echo=$ac_try;;
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108 (eval "$ac_try") 2>&5
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); }; }; then
21114 cat >conftest.$ac_ext <<_ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21120 $ac_includes_default
21121 typedef char ac__type_sizeof_;
21125 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
21126 test_array @<:@0@:>@ = 0
21132 rm -f conftest.$ac_objext
21133 if { (ac_try="$ac_compile"
21134 case "(($ac_try" in
21135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136 *) ac_try_echo=$ac_try;;
21138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21139 (eval "$ac_compile") 2>conftest.er1
21141 grep -v '^ *+' conftest.er1 >conftest.err
21143 cat conftest.err >&5
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); } &&
21146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21147 { (case "(($ac_try" in
21148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149 *) ac_try_echo=$ac_try;;
21151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152 (eval "$ac_try") 2>&5
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); }; } &&
21156 { ac_try='test -s conftest.$ac_objext'
21157 { (case "(($ac_try" in
21158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159 *) ac_try_echo=$ac_try;;
21161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162 (eval "$ac_try") 2>&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; }; then
21166 ac_hi=$ac_mid; break
21168 echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21171 ac_lo=`expr $ac_mid + 1`
21172 if test $ac_lo -le $ac_mid; then
21176 ac_mid=`expr 2 '*' $ac_mid + 1`
21179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21182 echo "$as_me: failed program was:" >&5
21183 sed 's/^/| /' conftest.$ac_ext >&5
21185 cat >conftest.$ac_ext <<_ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h. */
21191 $ac_includes_default
21192 typedef char ac__type_sizeof_;
21196 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
21197 test_array @<:@0@:>@ = 0
21203 rm -f conftest.$ac_objext
21204 if { (ac_try="$ac_compile"
21205 case "(($ac_try" in
21206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21207 *) ac_try_echo=$ac_try;;
21209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21210 (eval "$ac_compile") 2>conftest.er1
21212 grep -v '^ *+' conftest.er1 >conftest.err
21214 cat conftest.err >&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); } &&
21217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21218 { (case "(($ac_try" in
21219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220 *) ac_try_echo=$ac_try;;
21222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223 (eval "$ac_try") 2>&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); }; } &&
21227 { ac_try='test -s conftest.$ac_objext'
21228 { (case "(($ac_try" in
21229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230 *) ac_try_echo=$ac_try;;
21232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233 (eval "$ac_try") 2>&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; }; then
21239 cat >conftest.$ac_ext <<_ACEOF
21242 cat confdefs.h >>conftest.$ac_ext
21243 cat >>conftest.$ac_ext <<_ACEOF
21244 /* end confdefs.h. */
21245 $ac_includes_default
21246 typedef char ac__type_sizeof_;
21250 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
21251 test_array @<:@0@:>@ = 0
21257 rm -f conftest.$ac_objext
21258 if { (ac_try="$ac_compile"
21259 case "(($ac_try" in
21260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21261 *) ac_try_echo=$ac_try;;
21263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21264 (eval "$ac_compile") 2>conftest.er1
21266 grep -v '^ *+' conftest.er1 >conftest.err
21268 cat conftest.err >&5
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); } &&
21271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21272 { (case "(($ac_try" in
21273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21274 *) ac_try_echo=$ac_try;;
21276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21277 (eval "$ac_try") 2>&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; } &&
21281 { ac_try='test -s conftest.$ac_objext'
21282 { (case "(($ac_try" in
21283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21284 *) ac_try_echo=$ac_try;;
21286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21287 (eval "$ac_try") 2>&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); }; }; then
21291 ac_lo=$ac_mid; break
21293 echo "$as_me: failed program was:" >&5
21294 sed 's/^/| /' conftest.$ac_ext >&5
21296 ac_hi=`expr '(' $ac_mid ')' - 1`
21297 if test $ac_mid -le $ac_hi; then
21301 ac_mid=`expr 2 '*' $ac_mid`
21304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21307 echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21317 # Binary search between lo and hi bounds.
21318 while test "x$ac_lo" != "x$ac_hi"; do
21319 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21320 cat >conftest.$ac_ext <<_ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h. */
21326 $ac_includes_default
21327 typedef char ac__type_sizeof_;
21331 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
21332 test_array @<:@0@:>@ = 0
21338 rm -f conftest.$ac_objext
21339 if { (ac_try="$ac_compile"
21340 case "(($ac_try" in
21341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21342 *) ac_try_echo=$ac_try;;
21344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21345 (eval "$ac_compile") 2>conftest.er1
21347 grep -v '^ *+' conftest.er1 >conftest.err
21349 cat conftest.err >&5
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); } &&
21352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21353 { (case "(($ac_try" in
21354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355 *) ac_try_echo=$ac_try;;
21357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358 (eval "$ac_try") 2>&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); }; } &&
21362 { ac_try='test -s conftest.$ac_objext'
21363 { (case "(($ac_try" in
21364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365 *) ac_try_echo=$ac_try;;
21367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21368 (eval "$ac_try") 2>&5
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); }; }; then
21374 echo "$as_me: failed program was:" >&5
21375 sed 's/^/| /' conftest.$ac_ext >&5
21377 ac_lo=`expr '(' $ac_mid ')' + 1`
21380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21383 ?*) ac_cv_sizeof_char=$ac_lo;;
21384 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
21385 See \`config.log' for more details." >&5
21386 echo "$as_me: error: cannot compute sizeof (char)
21387 See \`config.log' for more details." >&2;}
21388 { (exit 77); exit 77; }; } ;;
21391 cat >conftest.$ac_ext <<_ACEOF
21394 cat confdefs.h >>conftest.$ac_ext
21395 cat >>conftest.$ac_ext <<_ACEOF
21396 /* end confdefs.h. */
21397 $ac_includes_default
21398 typedef char ac__type_sizeof_;
21399 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21400 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21401 @%:@include <stdio.h>
21402 @%:@include <stdlib.h>
21407 FILE *f = fopen ("conftest.val", "w");
21410 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21412 long int i = longval ();
21413 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21415 fprintf (f, "%ld\n", i);
21419 unsigned long int i = ulongval ();
21420 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21422 fprintf (f, "%lu\n", i);
21424 return ferror (f) || fclose (f) != 0;
21430 rm -f conftest$ac_exeext
21431 if { (ac_try="$ac_link"
21432 case "(($ac_try" in
21433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21434 *) ac_try_echo=$ac_try;;
21436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21437 (eval "$ac_link") 2>&5
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21441 { (case "(($ac_try" in
21442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21443 *) ac_try_echo=$ac_try;;
21445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21446 (eval "$ac_try") 2>&5
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; }; then
21450 ac_cv_sizeof_char=`cat conftest.val`
21452 echo "$as_me: program exited with status $ac_status" >&5
21453 echo "$as_me: failed program was:" >&5
21454 sed 's/^/| /' conftest.$ac_ext >&5
21456 ( exit $ac_status )
21457 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
21458 See \`config.log' for more details." >&5
21459 echo "$as_me: error: cannot compute sizeof (char)
21460 See \`config.log' for more details." >&2;}
21461 { (exit 77); exit 77; }; }
21463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21467 ac_cv_sizeof_char=0
21470 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
21471 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
21472 cat >>confdefs.h <<_ACEOF
21473 @%:@define SIZEOF_CHAR $ac_cv_sizeof_char
21477 { echo "$as_me:$LINENO: checking for short" >&5
21478 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21479 if test "${ac_cv_type_short+set}" = set; then
21480 echo $ECHO_N "(cached) $ECHO_C" >&6
21482 cat >conftest.$ac_ext <<_ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h. */
21488 $ac_includes_default
21489 typedef short ac__type_new_;
21493 if ((ac__type_new_ *) 0)
21495 if (sizeof (ac__type_new_))
21501 rm -f conftest.$ac_objext
21502 if { (ac_try="$ac_compile"
21503 case "(($ac_try" in
21504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21505 *) ac_try_echo=$ac_try;;
21507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21508 (eval "$ac_compile") 2>conftest.er1
21510 grep -v '^ *+' conftest.er1 >conftest.err
21512 cat conftest.err >&5
21513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514 (exit $ac_status); } &&
21515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21516 { (case "(($ac_try" in
21517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518 *) ac_try_echo=$ac_try;;
21520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21521 (eval "$ac_try") 2>&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); }; } &&
21525 { ac_try='test -s conftest.$ac_objext'
21526 { (case "(($ac_try" in
21527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21528 *) ac_try_echo=$ac_try;;
21530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21531 (eval "$ac_try") 2>&5
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); }; }; then
21535 ac_cv_type_short=yes
21537 echo "$as_me: failed program was:" >&5
21538 sed 's/^/| /' conftest.$ac_ext >&5
21540 ac_cv_type_short=no
21543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21545 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21546 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21548 { echo "$as_me:$LINENO: checking size of short" >&5
21549 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
21550 if test "${ac_cv_sizeof_short+set}" = set; then
21551 echo $ECHO_N "(cached) $ECHO_C" >&6
21553 if test "$ac_cv_type_short" = yes; then
21554 # The cast to long int works around a bug in the HP C Compiler
21555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21557 # This bug is HP SR number 8606223364.
21558 if test "$cross_compiling" = yes; then
21559 # Depending upon the size, compute the lo and hi bounds.
21560 cat >conftest.$ac_ext <<_ACEOF
21563 cat confdefs.h >>conftest.$ac_ext
21564 cat >>conftest.$ac_ext <<_ACEOF
21565 /* end confdefs.h. */
21566 $ac_includes_default
21567 typedef short ac__type_sizeof_;
21571 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
21572 test_array @<:@0@:>@ = 0
21578 rm -f conftest.$ac_objext
21579 if { (ac_try="$ac_compile"
21580 case "(($ac_try" in
21581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582 *) ac_try_echo=$ac_try;;
21584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585 (eval "$ac_compile") 2>conftest.er1
21587 grep -v '^ *+' conftest.er1 >conftest.err
21589 cat conftest.err >&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } &&
21592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21593 { (case "(($ac_try" in
21594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21595 *) ac_try_echo=$ac_try;;
21597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21598 (eval "$ac_try") 2>&5
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); }; } &&
21602 { ac_try='test -s conftest.$ac_objext'
21603 { (case "(($ac_try" in
21604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605 *) ac_try_echo=$ac_try;;
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608 (eval "$ac_try") 2>&5
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; }; then
21614 cat >conftest.$ac_ext <<_ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h. */
21620 $ac_includes_default
21621 typedef short ac__type_sizeof_;
21625 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
21626 test_array @<:@0@:>@ = 0
21632 rm -f conftest.$ac_objext
21633 if { (ac_try="$ac_compile"
21634 case "(($ac_try" in
21635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21636 *) ac_try_echo=$ac_try;;
21638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21639 (eval "$ac_compile") 2>conftest.er1
21641 grep -v '^ *+' conftest.er1 >conftest.err
21643 cat conftest.err >&5
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); } &&
21646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21647 { (case "(($ac_try" in
21648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21649 *) ac_try_echo=$ac_try;;
21651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21652 (eval "$ac_try") 2>&5
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); }; } &&
21656 { ac_try='test -s conftest.$ac_objext'
21657 { (case "(($ac_try" in
21658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21659 *) ac_try_echo=$ac_try;;
21661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21662 (eval "$ac_try") 2>&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); }; }; then
21666 ac_hi=$ac_mid; break
21668 echo "$as_me: failed program was:" >&5
21669 sed 's/^/| /' conftest.$ac_ext >&5
21671 ac_lo=`expr $ac_mid + 1`
21672 if test $ac_lo -le $ac_mid; then
21676 ac_mid=`expr 2 '*' $ac_mid + 1`
21679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21682 echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21685 cat >conftest.$ac_ext <<_ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h. */
21691 $ac_includes_default
21692 typedef short ac__type_sizeof_;
21696 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
21697 test_array @<:@0@:>@ = 0
21703 rm -f conftest.$ac_objext
21704 if { (ac_try="$ac_compile"
21705 case "(($ac_try" in
21706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21707 *) ac_try_echo=$ac_try;;
21709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21710 (eval "$ac_compile") 2>conftest.er1
21712 grep -v '^ *+' conftest.er1 >conftest.err
21714 cat conftest.err >&5
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); } &&
21717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21718 { (case "(($ac_try" in
21719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21720 *) ac_try_echo=$ac_try;;
21722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21723 (eval "$ac_try") 2>&5
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); }; } &&
21727 { ac_try='test -s conftest.$ac_objext'
21728 { (case "(($ac_try" in
21729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21730 *) ac_try_echo=$ac_try;;
21732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21733 (eval "$ac_try") 2>&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); }; }; then
21739 cat >conftest.$ac_ext <<_ACEOF
21742 cat confdefs.h >>conftest.$ac_ext
21743 cat >>conftest.$ac_ext <<_ACEOF
21744 /* end confdefs.h. */
21745 $ac_includes_default
21746 typedef short ac__type_sizeof_;
21750 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
21751 test_array @<:@0@:>@ = 0
21757 rm -f conftest.$ac_objext
21758 if { (ac_try="$ac_compile"
21759 case "(($ac_try" in
21760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21761 *) ac_try_echo=$ac_try;;
21763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21764 (eval "$ac_compile") 2>conftest.er1
21766 grep -v '^ *+' conftest.er1 >conftest.err
21768 cat conftest.err >&5
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); } &&
21771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21772 { (case "(($ac_try" in
21773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21774 *) ac_try_echo=$ac_try;;
21776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21777 (eval "$ac_try") 2>&5
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); }; } &&
21781 { ac_try='test -s conftest.$ac_objext'
21782 { (case "(($ac_try" in
21783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21784 *) ac_try_echo=$ac_try;;
21786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21787 (eval "$ac_try") 2>&5
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); }; }; then
21791 ac_lo=$ac_mid; break
21793 echo "$as_me: failed program was:" >&5
21794 sed 's/^/| /' conftest.$ac_ext >&5
21796 ac_hi=`expr '(' $ac_mid ')' - 1`
21797 if test $ac_mid -le $ac_hi; then
21801 ac_mid=`expr 2 '*' $ac_mid`
21804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21807 echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21817 # Binary search between lo and hi bounds.
21818 while test "x$ac_lo" != "x$ac_hi"; do
21819 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21820 cat >conftest.$ac_ext <<_ACEOF
21823 cat confdefs.h >>conftest.$ac_ext
21824 cat >>conftest.$ac_ext <<_ACEOF
21825 /* end confdefs.h. */
21826 $ac_includes_default
21827 typedef short ac__type_sizeof_;
21831 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
21832 test_array @<:@0@:>@ = 0
21838 rm -f conftest.$ac_objext
21839 if { (ac_try="$ac_compile"
21840 case "(($ac_try" in
21841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842 *) ac_try_echo=$ac_try;;
21844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21845 (eval "$ac_compile") 2>conftest.er1
21847 grep -v '^ *+' conftest.er1 >conftest.err
21849 cat conftest.err >&5
21850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851 (exit $ac_status); } &&
21852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21853 { (case "(($ac_try" in
21854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21855 *) ac_try_echo=$ac_try;;
21857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21858 (eval "$ac_try") 2>&5
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); }; } &&
21862 { ac_try='test -s conftest.$ac_objext'
21863 { (case "(($ac_try" in
21864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21865 *) ac_try_echo=$ac_try;;
21867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21868 (eval "$ac_try") 2>&5
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); }; }; then
21874 echo "$as_me: failed program was:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21877 ac_lo=`expr '(' $ac_mid ')' + 1`
21880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21883 ?*) ac_cv_sizeof_short=$ac_lo;;
21884 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21885 See \`config.log' for more details." >&5
21886 echo "$as_me: error: cannot compute sizeof (short)
21887 See \`config.log' for more details." >&2;}
21888 { (exit 77); exit 77; }; } ;;
21891 cat >conftest.$ac_ext <<_ACEOF
21894 cat confdefs.h >>conftest.$ac_ext
21895 cat >>conftest.$ac_ext <<_ACEOF
21896 /* end confdefs.h. */
21897 $ac_includes_default
21898 typedef short ac__type_sizeof_;
21899 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21900 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21901 @%:@include <stdio.h>
21902 @%:@include <stdlib.h>
21907 FILE *f = fopen ("conftest.val", "w");
21910 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21912 long int i = longval ();
21913 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21915 fprintf (f, "%ld\n", i);
21919 unsigned long int i = ulongval ();
21920 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21922 fprintf (f, "%lu\n", i);
21924 return ferror (f) || fclose (f) != 0;
21930 rm -f conftest$ac_exeext
21931 if { (ac_try="$ac_link"
21932 case "(($ac_try" in
21933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21934 *) ac_try_echo=$ac_try;;
21936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21937 (eval "$ac_link") 2>&5
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21941 { (case "(($ac_try" in
21942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21943 *) ac_try_echo=$ac_try;;
21945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21946 (eval "$ac_try") 2>&5
21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); }; }; then
21950 ac_cv_sizeof_short=`cat conftest.val`
21952 echo "$as_me: program exited with status $ac_status" >&5
21953 echo "$as_me: failed program was:" >&5
21954 sed 's/^/| /' conftest.$ac_ext >&5
21956 ( exit $ac_status )
21957 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21958 See \`config.log' for more details." >&5
21959 echo "$as_me: error: cannot compute sizeof (short)
21960 See \`config.log' for more details." >&2;}
21961 { (exit 77); exit 77; }; }
21963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21967 ac_cv_sizeof_short=0
21970 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21971 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21972 cat >>confdefs.h <<_ACEOF
21973 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
21977 { echo "$as_me:$LINENO: checking for int" >&5
21978 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21979 if test "${ac_cv_type_int+set}" = set; then
21980 echo $ECHO_N "(cached) $ECHO_C" >&6
21982 cat >conftest.$ac_ext <<_ACEOF
21985 cat confdefs.h >>conftest.$ac_ext
21986 cat >>conftest.$ac_ext <<_ACEOF
21987 /* end confdefs.h. */
21988 $ac_includes_default
21989 typedef int ac__type_new_;
21993 if ((ac__type_new_ *) 0)
21995 if (sizeof (ac__type_new_))
22001 rm -f conftest.$ac_objext
22002 if { (ac_try="$ac_compile"
22003 case "(($ac_try" in
22004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22005 *) ac_try_echo=$ac_try;;
22007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008 (eval "$ac_compile") 2>conftest.er1
22010 grep -v '^ *+' conftest.er1 >conftest.err
22012 cat conftest.err >&5
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); } &&
22015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22016 { (case "(($ac_try" in
22017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018 *) ac_try_echo=$ac_try;;
22020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021 (eval "$ac_try") 2>&5
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); }; } &&
22025 { ac_try='test -s conftest.$ac_objext'
22026 { (case "(($ac_try" in
22027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22028 *) ac_try_echo=$ac_try;;
22030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22031 (eval "$ac_try") 2>&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); }; }; then
22037 echo "$as_me: failed program was:" >&5
22038 sed 's/^/| /' conftest.$ac_ext >&5
22043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22045 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22046 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22048 { echo "$as_me:$LINENO: checking size of int" >&5
22049 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22050 if test "${ac_cv_sizeof_int+set}" = set; then
22051 echo $ECHO_N "(cached) $ECHO_C" >&6
22053 if test "$ac_cv_type_int" = yes; then
22054 # The cast to long int works around a bug in the HP C Compiler
22055 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22056 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22057 # This bug is HP SR number 8606223364.
22058 if test "$cross_compiling" = yes; then
22059 # Depending upon the size, compute the lo and hi bounds.
22060 cat >conftest.$ac_ext <<_ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h. */
22066 $ac_includes_default
22067 typedef int ac__type_sizeof_;
22071 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
22072 test_array @<:@0@:>@ = 0
22078 rm -f conftest.$ac_objext
22079 if { (ac_try="$ac_compile"
22080 case "(($ac_try" in
22081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082 *) ac_try_echo=$ac_try;;
22084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22085 (eval "$ac_compile") 2>conftest.er1
22087 grep -v '^ *+' conftest.er1 >conftest.err
22089 cat conftest.err >&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } &&
22092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22093 { (case "(($ac_try" in
22094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095 *) ac_try_echo=$ac_try;;
22097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22098 (eval "$ac_try") 2>&5
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); }; } &&
22102 { ac_try='test -s conftest.$ac_objext'
22103 { (case "(($ac_try" in
22104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105 *) ac_try_echo=$ac_try;;
22107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108 (eval "$ac_try") 2>&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; }; then
22114 cat >conftest.$ac_ext <<_ACEOF
22117 cat confdefs.h >>conftest.$ac_ext
22118 cat >>conftest.$ac_ext <<_ACEOF
22119 /* end confdefs.h. */
22120 $ac_includes_default
22121 typedef int ac__type_sizeof_;
22125 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
22126 test_array @<:@0@:>@ = 0
22132 rm -f conftest.$ac_objext
22133 if { (ac_try="$ac_compile"
22134 case "(($ac_try" in
22135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22136 *) ac_try_echo=$ac_try;;
22138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22139 (eval "$ac_compile") 2>conftest.er1
22141 grep -v '^ *+' conftest.er1 >conftest.err
22143 cat conftest.err >&5
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); } &&
22146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22147 { (case "(($ac_try" in
22148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149 *) ac_try_echo=$ac_try;;
22151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22152 (eval "$ac_try") 2>&5
22154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155 (exit $ac_status); }; } &&
22156 { ac_try='test -s conftest.$ac_objext'
22157 { (case "(($ac_try" in
22158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22159 *) ac_try_echo=$ac_try;;
22161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22162 (eval "$ac_try") 2>&5
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); }; }; then
22166 ac_hi=$ac_mid; break
22168 echo "$as_me: failed program was:" >&5
22169 sed 's/^/| /' conftest.$ac_ext >&5
22171 ac_lo=`expr $ac_mid + 1`
22172 if test $ac_lo -le $ac_mid; then
22176 ac_mid=`expr 2 '*' $ac_mid + 1`
22179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22182 echo "$as_me: failed program was:" >&5
22183 sed 's/^/| /' conftest.$ac_ext >&5
22185 cat >conftest.$ac_ext <<_ACEOF
22188 cat confdefs.h >>conftest.$ac_ext
22189 cat >>conftest.$ac_ext <<_ACEOF
22190 /* end confdefs.h. */
22191 $ac_includes_default
22192 typedef int ac__type_sizeof_;
22196 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
22197 test_array @<:@0@:>@ = 0
22203 rm -f conftest.$ac_objext
22204 if { (ac_try="$ac_compile"
22205 case "(($ac_try" in
22206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22207 *) ac_try_echo=$ac_try;;
22209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22210 (eval "$ac_compile") 2>conftest.er1
22212 grep -v '^ *+' conftest.er1 >conftest.err
22214 cat conftest.err >&5
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); } &&
22217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22218 { (case "(($ac_try" in
22219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22220 *) ac_try_echo=$ac_try;;
22222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22223 (eval "$ac_try") 2>&5
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); }; } &&
22227 { ac_try='test -s conftest.$ac_objext'
22228 { (case "(($ac_try" in
22229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22230 *) ac_try_echo=$ac_try;;
22232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22233 (eval "$ac_try") 2>&5
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); }; }; then
22239 cat >conftest.$ac_ext <<_ACEOF
22242 cat confdefs.h >>conftest.$ac_ext
22243 cat >>conftest.$ac_ext <<_ACEOF
22244 /* end confdefs.h. */
22245 $ac_includes_default
22246 typedef int ac__type_sizeof_;
22250 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
22251 test_array @<:@0@:>@ = 0
22257 rm -f conftest.$ac_objext
22258 if { (ac_try="$ac_compile"
22259 case "(($ac_try" in
22260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261 *) ac_try_echo=$ac_try;;
22263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22264 (eval "$ac_compile") 2>conftest.er1
22266 grep -v '^ *+' conftest.er1 >conftest.err
22268 cat conftest.err >&5
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); } &&
22271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22272 { (case "(($ac_try" in
22273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274 *) ac_try_echo=$ac_try;;
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277 (eval "$ac_try") 2>&5
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); }; } &&
22281 { ac_try='test -s conftest.$ac_objext'
22282 { (case "(($ac_try" in
22283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22284 *) ac_try_echo=$ac_try;;
22286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22287 (eval "$ac_try") 2>&5
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); }; }; then
22291 ac_lo=$ac_mid; break
22293 echo "$as_me: failed program was:" >&5
22294 sed 's/^/| /' conftest.$ac_ext >&5
22296 ac_hi=`expr '(' $ac_mid ')' - 1`
22297 if test $ac_mid -le $ac_hi; then
22301 ac_mid=`expr 2 '*' $ac_mid`
22304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22307 echo "$as_me: failed program was:" >&5
22308 sed 's/^/| /' conftest.$ac_ext >&5
22313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22317 # Binary search between lo and hi bounds.
22318 while test "x$ac_lo" != "x$ac_hi"; do
22319 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22320 cat >conftest.$ac_ext <<_ACEOF
22323 cat confdefs.h >>conftest.$ac_ext
22324 cat >>conftest.$ac_ext <<_ACEOF
22325 /* end confdefs.h. */
22326 $ac_includes_default
22327 typedef int ac__type_sizeof_;
22331 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
22332 test_array @<:@0@:>@ = 0
22338 rm -f conftest.$ac_objext
22339 if { (ac_try="$ac_compile"
22340 case "(($ac_try" in
22341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22342 *) ac_try_echo=$ac_try;;
22344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22345 (eval "$ac_compile") 2>conftest.er1
22347 grep -v '^ *+' conftest.er1 >conftest.err
22349 cat conftest.err >&5
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); } &&
22352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22353 { (case "(($ac_try" in
22354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22355 *) ac_try_echo=$ac_try;;
22357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22358 (eval "$ac_try") 2>&5
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); }; } &&
22362 { ac_try='test -s conftest.$ac_objext'
22363 { (case "(($ac_try" in
22364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365 *) ac_try_echo=$ac_try;;
22367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22368 (eval "$ac_try") 2>&5
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); }; }; then
22374 echo "$as_me: failed program was:" >&5
22375 sed 's/^/| /' conftest.$ac_ext >&5
22377 ac_lo=`expr '(' $ac_mid ')' + 1`
22380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22383 ?*) ac_cv_sizeof_int=$ac_lo;;
22384 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22385 See \`config.log' for more details." >&5
22386 echo "$as_me: error: cannot compute sizeof (int)
22387 See \`config.log' for more details." >&2;}
22388 { (exit 77); exit 77; }; } ;;
22391 cat >conftest.$ac_ext <<_ACEOF
22394 cat confdefs.h >>conftest.$ac_ext
22395 cat >>conftest.$ac_ext <<_ACEOF
22396 /* end confdefs.h. */
22397 $ac_includes_default
22398 typedef int ac__type_sizeof_;
22399 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22400 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22401 @%:@include <stdio.h>
22402 @%:@include <stdlib.h>
22407 FILE *f = fopen ("conftest.val", "w");
22410 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22412 long int i = longval ();
22413 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22415 fprintf (f, "%ld\n", i);
22419 unsigned long int i = ulongval ();
22420 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22422 fprintf (f, "%lu\n", i);
22424 return ferror (f) || fclose (f) != 0;
22430 rm -f conftest$ac_exeext
22431 if { (ac_try="$ac_link"
22432 case "(($ac_try" in
22433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22434 *) ac_try_echo=$ac_try;;
22436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22437 (eval "$ac_link") 2>&5
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22441 { (case "(($ac_try" in
22442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22443 *) ac_try_echo=$ac_try;;
22445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22446 (eval "$ac_try") 2>&5
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); }; }; then
22450 ac_cv_sizeof_int=`cat conftest.val`
22452 echo "$as_me: program exited with status $ac_status" >&5
22453 echo "$as_me: failed program was:" >&5
22454 sed 's/^/| /' conftest.$ac_ext >&5
22456 ( exit $ac_status )
22457 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22458 See \`config.log' for more details." >&5
22459 echo "$as_me: error: cannot compute sizeof (int)
22460 See \`config.log' for more details." >&2;}
22461 { (exit 77); exit 77; }; }
22463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22470 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22471 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
22472 cat >>confdefs.h <<_ACEOF
22473 @%:@define SIZEOF_INT $ac_cv_sizeof_int
22477 { echo "$as_me:$LINENO: checking for long" >&5
22478 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22479 if test "${ac_cv_type_long+set}" = set; then
22480 echo $ECHO_N "(cached) $ECHO_C" >&6
22482 cat >conftest.$ac_ext <<_ACEOF
22485 cat confdefs.h >>conftest.$ac_ext
22486 cat >>conftest.$ac_ext <<_ACEOF
22487 /* end confdefs.h. */
22488 $ac_includes_default
22489 typedef long ac__type_new_;
22493 if ((ac__type_new_ *) 0)
22495 if (sizeof (ac__type_new_))
22501 rm -f conftest.$ac_objext
22502 if { (ac_try="$ac_compile"
22503 case "(($ac_try" in
22504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505 *) ac_try_echo=$ac_try;;
22507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22508 (eval "$ac_compile") 2>conftest.er1
22510 grep -v '^ *+' conftest.er1 >conftest.err
22512 cat conftest.err >&5
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); } &&
22515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22516 { (case "(($ac_try" in
22517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22518 *) ac_try_echo=$ac_try;;
22520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22521 (eval "$ac_try") 2>&5
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); }; } &&
22525 { ac_try='test -s conftest.$ac_objext'
22526 { (case "(($ac_try" in
22527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22528 *) ac_try_echo=$ac_try;;
22530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22531 (eval "$ac_try") 2>&5
22533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534 (exit $ac_status); }; }; then
22535 ac_cv_type_long=yes
22537 echo "$as_me: failed program was:" >&5
22538 sed 's/^/| /' conftest.$ac_ext >&5
22543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22545 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22546 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22548 { echo "$as_me:$LINENO: checking size of long" >&5
22549 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
22550 if test "${ac_cv_sizeof_long+set}" = set; then
22551 echo $ECHO_N "(cached) $ECHO_C" >&6
22553 if test "$ac_cv_type_long" = yes; then
22554 # The cast to long int works around a bug in the HP C Compiler
22555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22557 # This bug is HP SR number 8606223364.
22558 if test "$cross_compiling" = yes; then
22559 # Depending upon the size, compute the lo and hi bounds.
22560 cat >conftest.$ac_ext <<_ACEOF
22563 cat confdefs.h >>conftest.$ac_ext
22564 cat >>conftest.$ac_ext <<_ACEOF
22565 /* end confdefs.h. */
22566 $ac_includes_default
22567 typedef long ac__type_sizeof_;
22571 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
22572 test_array @<:@0@:>@ = 0
22578 rm -f conftest.$ac_objext
22579 if { (ac_try="$ac_compile"
22580 case "(($ac_try" in
22581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22582 *) ac_try_echo=$ac_try;;
22584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22585 (eval "$ac_compile") 2>conftest.er1
22587 grep -v '^ *+' conftest.er1 >conftest.err
22589 cat conftest.err >&5
22590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591 (exit $ac_status); } &&
22592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22593 { (case "(($ac_try" in
22594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22595 *) ac_try_echo=$ac_try;;
22597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22598 (eval "$ac_try") 2>&5
22600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); }; } &&
22602 { ac_try='test -s conftest.$ac_objext'
22603 { (case "(($ac_try" in
22604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22605 *) ac_try_echo=$ac_try;;
22607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22608 (eval "$ac_try") 2>&5
22610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); }; }; then
22614 cat >conftest.$ac_ext <<_ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h. */
22620 $ac_includes_default
22621 typedef long ac__type_sizeof_;
22625 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
22626 test_array @<:@0@:>@ = 0
22632 rm -f conftest.$ac_objext
22633 if { (ac_try="$ac_compile"
22634 case "(($ac_try" in
22635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22636 *) ac_try_echo=$ac_try;;
22638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22639 (eval "$ac_compile") 2>conftest.er1
22641 grep -v '^ *+' conftest.er1 >conftest.err
22643 cat conftest.err >&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); } &&
22646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22647 { (case "(($ac_try" in
22648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22649 *) ac_try_echo=$ac_try;;
22651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22652 (eval "$ac_try") 2>&5
22654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); }; } &&
22656 { ac_try='test -s conftest.$ac_objext'
22657 { (case "(($ac_try" in
22658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22659 *) ac_try_echo=$ac_try;;
22661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22662 (eval "$ac_try") 2>&5
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); }; }; then
22666 ac_hi=$ac_mid; break
22668 echo "$as_me: failed program was:" >&5
22669 sed 's/^/| /' conftest.$ac_ext >&5
22671 ac_lo=`expr $ac_mid + 1`
22672 if test $ac_lo -le $ac_mid; then
22676 ac_mid=`expr 2 '*' $ac_mid + 1`
22679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22682 echo "$as_me: failed program was:" >&5
22683 sed 's/^/| /' conftest.$ac_ext >&5
22685 cat >conftest.$ac_ext <<_ACEOF
22688 cat confdefs.h >>conftest.$ac_ext
22689 cat >>conftest.$ac_ext <<_ACEOF
22690 /* end confdefs.h. */
22691 $ac_includes_default
22692 typedef long ac__type_sizeof_;
22696 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
22697 test_array @<:@0@:>@ = 0
22703 rm -f conftest.$ac_objext
22704 if { (ac_try="$ac_compile"
22705 case "(($ac_try" in
22706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22707 *) ac_try_echo=$ac_try;;
22709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22710 (eval "$ac_compile") 2>conftest.er1
22712 grep -v '^ *+' conftest.er1 >conftest.err
22714 cat conftest.err >&5
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); } &&
22717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22718 { (case "(($ac_try" in
22719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22720 *) ac_try_echo=$ac_try;;
22722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22723 (eval "$ac_try") 2>&5
22725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726 (exit $ac_status); }; } &&
22727 { ac_try='test -s conftest.$ac_objext'
22728 { (case "(($ac_try" in
22729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22730 *) ac_try_echo=$ac_try;;
22732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22733 (eval "$ac_try") 2>&5
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); }; }; then
22739 cat >conftest.$ac_ext <<_ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22745 $ac_includes_default
22746 typedef long ac__type_sizeof_;
22750 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
22751 test_array @<:@0@:>@ = 0
22757 rm -f conftest.$ac_objext
22758 if { (ac_try="$ac_compile"
22759 case "(($ac_try" in
22760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22761 *) ac_try_echo=$ac_try;;
22763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22764 (eval "$ac_compile") 2>conftest.er1
22766 grep -v '^ *+' conftest.er1 >conftest.err
22768 cat conftest.err >&5
22769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 (exit $ac_status); } &&
22771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22772 { (case "(($ac_try" in
22773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22774 *) ac_try_echo=$ac_try;;
22776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22777 (eval "$ac_try") 2>&5
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); }; } &&
22781 { ac_try='test -s conftest.$ac_objext'
22782 { (case "(($ac_try" in
22783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784 *) ac_try_echo=$ac_try;;
22786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22787 (eval "$ac_try") 2>&5
22789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); }; }; then
22791 ac_lo=$ac_mid; break
22793 echo "$as_me: failed program was:" >&5
22794 sed 's/^/| /' conftest.$ac_ext >&5
22796 ac_hi=`expr '(' $ac_mid ')' - 1`
22797 if test $ac_mid -le $ac_hi; then
22801 ac_mid=`expr 2 '*' $ac_mid`
22804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22807 echo "$as_me: failed program was:" >&5
22808 sed 's/^/| /' conftest.$ac_ext >&5
22813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22817 # Binary search between lo and hi bounds.
22818 while test "x$ac_lo" != "x$ac_hi"; do
22819 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22820 cat >conftest.$ac_ext <<_ACEOF
22823 cat confdefs.h >>conftest.$ac_ext
22824 cat >>conftest.$ac_ext <<_ACEOF
22825 /* end confdefs.h. */
22826 $ac_includes_default
22827 typedef long ac__type_sizeof_;
22831 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
22832 test_array @<:@0@:>@ = 0
22838 rm -f conftest.$ac_objext
22839 if { (ac_try="$ac_compile"
22840 case "(($ac_try" in
22841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22842 *) ac_try_echo=$ac_try;;
22844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22845 (eval "$ac_compile") 2>conftest.er1
22847 grep -v '^ *+' conftest.er1 >conftest.err
22849 cat conftest.err >&5
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); } &&
22852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22853 { (case "(($ac_try" in
22854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22855 *) ac_try_echo=$ac_try;;
22857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22858 (eval "$ac_try") 2>&5
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); }; } &&
22862 { ac_try='test -s conftest.$ac_objext'
22863 { (case "(($ac_try" in
22864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22865 *) ac_try_echo=$ac_try;;
22867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22868 (eval "$ac_try") 2>&5
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); }; }; then
22874 echo "$as_me: failed program was:" >&5
22875 sed 's/^/| /' conftest.$ac_ext >&5
22877 ac_lo=`expr '(' $ac_mid ')' + 1`
22880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22883 ?*) ac_cv_sizeof_long=$ac_lo;;
22884 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22885 See \`config.log' for more details." >&5
22886 echo "$as_me: error: cannot compute sizeof (long)
22887 See \`config.log' for more details." >&2;}
22888 { (exit 77); exit 77; }; } ;;
22891 cat >conftest.$ac_ext <<_ACEOF
22894 cat confdefs.h >>conftest.$ac_ext
22895 cat >>conftest.$ac_ext <<_ACEOF
22896 /* end confdefs.h. */
22897 $ac_includes_default
22898 typedef long ac__type_sizeof_;
22899 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22900 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22901 @%:@include <stdio.h>
22902 @%:@include <stdlib.h>
22907 FILE *f = fopen ("conftest.val", "w");
22910 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22912 long int i = longval ();
22913 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22915 fprintf (f, "%ld\n", i);
22919 unsigned long int i = ulongval ();
22920 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22922 fprintf (f, "%lu\n", i);
22924 return ferror (f) || fclose (f) != 0;
22930 rm -f conftest$ac_exeext
22931 if { (ac_try="$ac_link"
22932 case "(($ac_try" in
22933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22934 *) ac_try_echo=$ac_try;;
22936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22937 (eval "$ac_link") 2>&5
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22941 { (case "(($ac_try" in
22942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22943 *) ac_try_echo=$ac_try;;
22945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22946 (eval "$ac_try") 2>&5
22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); }; }; then
22950 ac_cv_sizeof_long=`cat conftest.val`
22952 echo "$as_me: program exited with status $ac_status" >&5
22953 echo "$as_me: failed program was:" >&5
22954 sed 's/^/| /' conftest.$ac_ext >&5
22956 ( exit $ac_status )
22957 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22958 See \`config.log' for more details." >&5
22959 echo "$as_me: error: cannot compute sizeof (long)
22960 See \`config.log' for more details." >&2;}
22961 { (exit 77); exit 77; }; }
22963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22967 ac_cv_sizeof_long=0
22970 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22971 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22972 cat >>confdefs.h <<_ACEOF
22973 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
22977 { echo "$as_me:$LINENO: checking for char *" >&5
22978 echo $ECHO_N "checking for char *... $ECHO_C" >&6; }
22979 if test "${ac_cv_type_char_p+set}" = set; then
22980 echo $ECHO_N "(cached) $ECHO_C" >&6
22982 cat >conftest.$ac_ext <<_ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h. */
22988 $ac_includes_default
22989 typedef char * ac__type_new_;
22993 if ((ac__type_new_ *) 0)
22995 if (sizeof (ac__type_new_))
23001 rm -f conftest.$ac_objext
23002 if { (ac_try="$ac_compile"
23003 case "(($ac_try" in
23004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23005 *) ac_try_echo=$ac_try;;
23007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23008 (eval "$ac_compile") 2>conftest.er1
23010 grep -v '^ *+' conftest.er1 >conftest.err
23012 cat conftest.err >&5
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); } &&
23015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23016 { (case "(($ac_try" in
23017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23018 *) ac_try_echo=$ac_try;;
23020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23021 (eval "$ac_try") 2>&5
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); }; } &&
23025 { ac_try='test -s conftest.$ac_objext'
23026 { (case "(($ac_try" in
23027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23028 *) ac_try_echo=$ac_try;;
23030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23031 (eval "$ac_try") 2>&5
23033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034 (exit $ac_status); }; }; then
23035 ac_cv_type_char_p=yes
23037 echo "$as_me: failed program was:" >&5
23038 sed 's/^/| /' conftest.$ac_ext >&5
23040 ac_cv_type_char_p=no
23043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23045 { echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
23046 echo "${ECHO_T}$ac_cv_type_char_p" >&6; }
23048 { echo "$as_me:$LINENO: checking size of char *" >&5
23049 echo $ECHO_N "checking size of char *... $ECHO_C" >&6; }
23050 if test "${ac_cv_sizeof_char_p+set}" = set; then
23051 echo $ECHO_N "(cached) $ECHO_C" >&6
23053 if test "$ac_cv_type_char_p" = yes; then
23054 # The cast to long int works around a bug in the HP C Compiler
23055 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23056 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23057 # This bug is HP SR number 8606223364.
23058 if test "$cross_compiling" = yes; then
23059 # Depending upon the size, compute the lo and hi bounds.
23060 cat >conftest.$ac_ext <<_ACEOF
23063 cat confdefs.h >>conftest.$ac_ext
23064 cat >>conftest.$ac_ext <<_ACEOF
23065 /* end confdefs.h. */
23066 $ac_includes_default
23067 typedef char * ac__type_sizeof_;
23071 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
23072 test_array @<:@0@:>@ = 0
23078 rm -f conftest.$ac_objext
23079 if { (ac_try="$ac_compile"
23080 case "(($ac_try" in
23081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23082 *) ac_try_echo=$ac_try;;
23084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23085 (eval "$ac_compile") 2>conftest.er1
23087 grep -v '^ *+' conftest.er1 >conftest.err
23089 cat conftest.err >&5
23090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091 (exit $ac_status); } &&
23092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23093 { (case "(($ac_try" in
23094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23095 *) ac_try_echo=$ac_try;;
23097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23098 (eval "$ac_try") 2>&5
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); }; } &&
23102 { ac_try='test -s conftest.$ac_objext'
23103 { (case "(($ac_try" in
23104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23105 *) ac_try_echo=$ac_try;;
23107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23108 (eval "$ac_try") 2>&5
23110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111 (exit $ac_status); }; }; then
23114 cat >conftest.$ac_ext <<_ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h. */
23120 $ac_includes_default
23121 typedef char * ac__type_sizeof_;
23125 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23126 test_array @<:@0@:>@ = 0
23132 rm -f conftest.$ac_objext
23133 if { (ac_try="$ac_compile"
23134 case "(($ac_try" in
23135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136 *) ac_try_echo=$ac_try;;
23138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139 (eval "$ac_compile") 2>conftest.er1
23141 grep -v '^ *+' conftest.er1 >conftest.err
23143 cat conftest.err >&5
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); } &&
23146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23147 { (case "(($ac_try" in
23148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23149 *) ac_try_echo=$ac_try;;
23151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23152 (eval "$ac_try") 2>&5
23154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); }; } &&
23156 { ac_try='test -s conftest.$ac_objext'
23157 { (case "(($ac_try" in
23158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23159 *) ac_try_echo=$ac_try;;
23161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23162 (eval "$ac_try") 2>&5
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); }; }; then
23166 ac_hi=$ac_mid; break
23168 echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23171 ac_lo=`expr $ac_mid + 1`
23172 if test $ac_lo -le $ac_mid; then
23176 ac_mid=`expr 2 '*' $ac_mid + 1`
23179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23182 echo "$as_me: failed program was:" >&5
23183 sed 's/^/| /' conftest.$ac_ext >&5
23185 cat >conftest.$ac_ext <<_ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h. */
23191 $ac_includes_default
23192 typedef char * ac__type_sizeof_;
23196 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
23197 test_array @<:@0@:>@ = 0
23203 rm -f conftest.$ac_objext
23204 if { (ac_try="$ac_compile"
23205 case "(($ac_try" in
23206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23207 *) ac_try_echo=$ac_try;;
23209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23210 (eval "$ac_compile") 2>conftest.er1
23212 grep -v '^ *+' conftest.er1 >conftest.err
23214 cat conftest.err >&5
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); } &&
23217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23218 { (case "(($ac_try" in
23219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23220 *) ac_try_echo=$ac_try;;
23222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23223 (eval "$ac_try") 2>&5
23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226 (exit $ac_status); }; } &&
23227 { ac_try='test -s conftest.$ac_objext'
23228 { (case "(($ac_try" in
23229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23230 *) ac_try_echo=$ac_try;;
23232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23233 (eval "$ac_try") 2>&5
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); }; }; then
23239 cat >conftest.$ac_ext <<_ACEOF
23242 cat confdefs.h >>conftest.$ac_ext
23243 cat >>conftest.$ac_ext <<_ACEOF
23244 /* end confdefs.h. */
23245 $ac_includes_default
23246 typedef char * ac__type_sizeof_;
23250 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
23251 test_array @<:@0@:>@ = 0
23257 rm -f conftest.$ac_objext
23258 if { (ac_try="$ac_compile"
23259 case "(($ac_try" in
23260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23261 *) ac_try_echo=$ac_try;;
23263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23264 (eval "$ac_compile") 2>conftest.er1
23266 grep -v '^ *+' conftest.er1 >conftest.err
23268 cat conftest.err >&5
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); } &&
23271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23272 { (case "(($ac_try" in
23273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23274 *) ac_try_echo=$ac_try;;
23276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23277 (eval "$ac_try") 2>&5
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; } &&
23281 { ac_try='test -s conftest.$ac_objext'
23282 { (case "(($ac_try" in
23283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23284 *) ac_try_echo=$ac_try;;
23286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23287 (eval "$ac_try") 2>&5
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); }; }; then
23291 ac_lo=$ac_mid; break
23293 echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23296 ac_hi=`expr '(' $ac_mid ')' - 1`
23297 if test $ac_mid -le $ac_hi; then
23301 ac_mid=`expr 2 '*' $ac_mid`
23304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23307 echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23317 # Binary search between lo and hi bounds.
23318 while test "x$ac_lo" != "x$ac_hi"; do
23319 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23320 cat >conftest.$ac_ext <<_ACEOF
23323 cat confdefs.h >>conftest.$ac_ext
23324 cat >>conftest.$ac_ext <<_ACEOF
23325 /* end confdefs.h. */
23326 $ac_includes_default
23327 typedef char * ac__type_sizeof_;
23331 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23332 test_array @<:@0@:>@ = 0
23338 rm -f conftest.$ac_objext
23339 if { (ac_try="$ac_compile"
23340 case "(($ac_try" in
23341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23342 *) ac_try_echo=$ac_try;;
23344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23345 (eval "$ac_compile") 2>conftest.er1
23347 grep -v '^ *+' conftest.er1 >conftest.err
23349 cat conftest.err >&5
23350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); } &&
23352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23353 { (case "(($ac_try" in
23354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355 *) ac_try_echo=$ac_try;;
23357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23358 (eval "$ac_try") 2>&5
23360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); }; } &&
23362 { ac_try='test -s conftest.$ac_objext'
23363 { (case "(($ac_try" in
23364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23365 *) ac_try_echo=$ac_try;;
23367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23368 (eval "$ac_try") 2>&5
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); }; }; then
23374 echo "$as_me: failed program was:" >&5
23375 sed 's/^/| /' conftest.$ac_ext >&5
23377 ac_lo=`expr '(' $ac_mid ')' + 1`
23380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23383 ?*) ac_cv_sizeof_char_p=$ac_lo;;
23384 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
23385 See \`config.log' for more details." >&5
23386 echo "$as_me: error: cannot compute sizeof (char *)
23387 See \`config.log' for more details." >&2;}
23388 { (exit 77); exit 77; }; } ;;
23391 cat >conftest.$ac_ext <<_ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h. */
23397 $ac_includes_default
23398 typedef char * ac__type_sizeof_;
23399 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23400 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23401 @%:@include <stdio.h>
23402 @%:@include <stdlib.h>
23407 FILE *f = fopen ("conftest.val", "w");
23410 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23412 long int i = longval ();
23413 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23415 fprintf (f, "%ld\n", i);
23419 unsigned long int i = ulongval ();
23420 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23422 fprintf (f, "%lu\n", i);
23424 return ferror (f) || fclose (f) != 0;
23430 rm -f conftest$ac_exeext
23431 if { (ac_try="$ac_link"
23432 case "(($ac_try" in
23433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434 *) ac_try_echo=$ac_try;;
23436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437 (eval "$ac_link") 2>&5
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23441 { (case "(($ac_try" in
23442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23443 *) ac_try_echo=$ac_try;;
23445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23446 (eval "$ac_try") 2>&5
23448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449 (exit $ac_status); }; }; then
23450 ac_cv_sizeof_char_p=`cat conftest.val`
23452 echo "$as_me: program exited with status $ac_status" >&5
23453 echo "$as_me: failed program was:" >&5
23454 sed 's/^/| /' conftest.$ac_ext >&5
23456 ( exit $ac_status )
23457 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
23458 See \`config.log' for more details." >&5
23459 echo "$as_me: error: cannot compute sizeof (char *)
23460 See \`config.log' for more details." >&2;}
23461 { (exit 77); exit 77; }; }
23463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23467 ac_cv_sizeof_char_p=0
23470 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
23471 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6; }
23472 cat >>confdefs.h <<_ACEOF
23473 @%:@define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
23477 { echo "$as_me:$LINENO: checking for double" >&5
23478 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
23479 if test "${ac_cv_type_double+set}" = set; then
23480 echo $ECHO_N "(cached) $ECHO_C" >&6
23482 cat >conftest.$ac_ext <<_ACEOF
23485 cat confdefs.h >>conftest.$ac_ext
23486 cat >>conftest.$ac_ext <<_ACEOF
23487 /* end confdefs.h. */
23488 $ac_includes_default
23489 typedef double ac__type_new_;
23493 if ((ac__type_new_ *) 0)
23495 if (sizeof (ac__type_new_))
23501 rm -f conftest.$ac_objext
23502 if { (ac_try="$ac_compile"
23503 case "(($ac_try" in
23504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23505 *) ac_try_echo=$ac_try;;
23507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23508 (eval "$ac_compile") 2>conftest.er1
23510 grep -v '^ *+' conftest.er1 >conftest.err
23512 cat conftest.err >&5
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); } &&
23515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23516 { (case "(($ac_try" in
23517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23518 *) ac_try_echo=$ac_try;;
23520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23521 (eval "$ac_try") 2>&5
23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524 (exit $ac_status); }; } &&
23525 { ac_try='test -s conftest.$ac_objext'
23526 { (case "(($ac_try" in
23527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23528 *) ac_try_echo=$ac_try;;
23530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23531 (eval "$ac_try") 2>&5
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); }; }; then
23535 ac_cv_type_double=yes
23537 echo "$as_me: failed program was:" >&5
23538 sed 's/^/| /' conftest.$ac_ext >&5
23540 ac_cv_type_double=no
23543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23545 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
23546 echo "${ECHO_T}$ac_cv_type_double" >&6; }
23548 { echo "$as_me:$LINENO: checking size of double" >&5
23549 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
23550 if test "${ac_cv_sizeof_double+set}" = set; then
23551 echo $ECHO_N "(cached) $ECHO_C" >&6
23553 if test "$ac_cv_type_double" = yes; then
23554 # The cast to long int works around a bug in the HP C Compiler
23555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23557 # This bug is HP SR number 8606223364.
23558 if test "$cross_compiling" = yes; then
23559 # Depending upon the size, compute the lo and hi bounds.
23560 cat >conftest.$ac_ext <<_ACEOF
23563 cat confdefs.h >>conftest.$ac_ext
23564 cat >>conftest.$ac_ext <<_ACEOF
23565 /* end confdefs.h. */
23566 $ac_includes_default
23567 typedef double ac__type_sizeof_;
23571 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
23572 test_array @<:@0@:>@ = 0
23578 rm -f conftest.$ac_objext
23579 if { (ac_try="$ac_compile"
23580 case "(($ac_try" in
23581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23582 *) ac_try_echo=$ac_try;;
23584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23585 (eval "$ac_compile") 2>conftest.er1
23587 grep -v '^ *+' conftest.er1 >conftest.err
23589 cat conftest.err >&5
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); } &&
23592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23593 { (case "(($ac_try" in
23594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23595 *) ac_try_echo=$ac_try;;
23597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23598 (eval "$ac_try") 2>&5
23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601 (exit $ac_status); }; } &&
23602 { ac_try='test -s conftest.$ac_objext'
23603 { (case "(($ac_try" in
23604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23605 *) ac_try_echo=$ac_try;;
23607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23608 (eval "$ac_try") 2>&5
23610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23611 (exit $ac_status); }; }; then
23614 cat >conftest.$ac_ext <<_ACEOF
23617 cat confdefs.h >>conftest.$ac_ext
23618 cat >>conftest.$ac_ext <<_ACEOF
23619 /* end confdefs.h. */
23620 $ac_includes_default
23621 typedef double ac__type_sizeof_;
23625 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23626 test_array @<:@0@:>@ = 0
23632 rm -f conftest.$ac_objext
23633 if { (ac_try="$ac_compile"
23634 case "(($ac_try" in
23635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23636 *) ac_try_echo=$ac_try;;
23638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23639 (eval "$ac_compile") 2>conftest.er1
23641 grep -v '^ *+' conftest.er1 >conftest.err
23643 cat conftest.err >&5
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); } &&
23646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23647 { (case "(($ac_try" in
23648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23649 *) ac_try_echo=$ac_try;;
23651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23652 (eval "$ac_try") 2>&5
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); }; } &&
23656 { ac_try='test -s conftest.$ac_objext'
23657 { (case "(($ac_try" in
23658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23659 *) ac_try_echo=$ac_try;;
23661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23662 (eval "$ac_try") 2>&5
23664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665 (exit $ac_status); }; }; then
23666 ac_hi=$ac_mid; break
23668 echo "$as_me: failed program was:" >&5
23669 sed 's/^/| /' conftest.$ac_ext >&5
23671 ac_lo=`expr $ac_mid + 1`
23672 if test $ac_lo -le $ac_mid; then
23676 ac_mid=`expr 2 '*' $ac_mid + 1`
23679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23682 echo "$as_me: failed program was:" >&5
23683 sed 's/^/| /' conftest.$ac_ext >&5
23685 cat >conftest.$ac_ext <<_ACEOF
23688 cat confdefs.h >>conftest.$ac_ext
23689 cat >>conftest.$ac_ext <<_ACEOF
23690 /* end confdefs.h. */
23691 $ac_includes_default
23692 typedef double ac__type_sizeof_;
23696 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
23697 test_array @<:@0@:>@ = 0
23703 rm -f conftest.$ac_objext
23704 if { (ac_try="$ac_compile"
23705 case "(($ac_try" in
23706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23707 *) ac_try_echo=$ac_try;;
23709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23710 (eval "$ac_compile") 2>conftest.er1
23712 grep -v '^ *+' conftest.er1 >conftest.err
23714 cat conftest.err >&5
23715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716 (exit $ac_status); } &&
23717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23718 { (case "(($ac_try" in
23719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23720 *) ac_try_echo=$ac_try;;
23722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23723 (eval "$ac_try") 2>&5
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); }; } &&
23727 { ac_try='test -s conftest.$ac_objext'
23728 { (case "(($ac_try" in
23729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730 *) ac_try_echo=$ac_try;;
23732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23733 (eval "$ac_try") 2>&5
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); }; }; then
23739 cat >conftest.$ac_ext <<_ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h. */
23745 $ac_includes_default
23746 typedef double ac__type_sizeof_;
23750 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
23751 test_array @<:@0@:>@ = 0
23757 rm -f conftest.$ac_objext
23758 if { (ac_try="$ac_compile"
23759 case "(($ac_try" in
23760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23761 *) ac_try_echo=$ac_try;;
23763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23764 (eval "$ac_compile") 2>conftest.er1
23766 grep -v '^ *+' conftest.er1 >conftest.err
23768 cat conftest.err >&5
23769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770 (exit $ac_status); } &&
23771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23772 { (case "(($ac_try" in
23773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23774 *) ac_try_echo=$ac_try;;
23776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23777 (eval "$ac_try") 2>&5
23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); }; } &&
23781 { ac_try='test -s conftest.$ac_objext'
23782 { (case "(($ac_try" in
23783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23784 *) ac_try_echo=$ac_try;;
23786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23787 (eval "$ac_try") 2>&5
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); }; }; then
23791 ac_lo=$ac_mid; break
23793 echo "$as_me: failed program was:" >&5
23794 sed 's/^/| /' conftest.$ac_ext >&5
23796 ac_hi=`expr '(' $ac_mid ')' - 1`
23797 if test $ac_mid -le $ac_hi; then
23801 ac_mid=`expr 2 '*' $ac_mid`
23804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23807 echo "$as_me: failed program was:" >&5
23808 sed 's/^/| /' conftest.$ac_ext >&5
23813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23817 # Binary search between lo and hi bounds.
23818 while test "x$ac_lo" != "x$ac_hi"; do
23819 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23820 cat >conftest.$ac_ext <<_ACEOF
23823 cat confdefs.h >>conftest.$ac_ext
23824 cat >>conftest.$ac_ext <<_ACEOF
23825 /* end confdefs.h. */
23826 $ac_includes_default
23827 typedef double ac__type_sizeof_;
23831 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23832 test_array @<:@0@:>@ = 0
23838 rm -f conftest.$ac_objext
23839 if { (ac_try="$ac_compile"
23840 case "(($ac_try" in
23841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23842 *) ac_try_echo=$ac_try;;
23844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23845 (eval "$ac_compile") 2>conftest.er1
23847 grep -v '^ *+' conftest.er1 >conftest.err
23849 cat conftest.err >&5
23850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); } &&
23852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23853 { (case "(($ac_try" in
23854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23855 *) ac_try_echo=$ac_try;;
23857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23858 (eval "$ac_try") 2>&5
23860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861 (exit $ac_status); }; } &&
23862 { ac_try='test -s conftest.$ac_objext'
23863 { (case "(($ac_try" in
23864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23865 *) ac_try_echo=$ac_try;;
23867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23868 (eval "$ac_try") 2>&5
23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871 (exit $ac_status); }; }; then
23874 echo "$as_me: failed program was:" >&5
23875 sed 's/^/| /' conftest.$ac_ext >&5
23877 ac_lo=`expr '(' $ac_mid ')' + 1`
23880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23883 ?*) ac_cv_sizeof_double=$ac_lo;;
23884 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
23885 See \`config.log' for more details." >&5
23886 echo "$as_me: error: cannot compute sizeof (double)
23887 See \`config.log' for more details." >&2;}
23888 { (exit 77); exit 77; }; } ;;
23891 cat >conftest.$ac_ext <<_ACEOF
23894 cat confdefs.h >>conftest.$ac_ext
23895 cat >>conftest.$ac_ext <<_ACEOF
23896 /* end confdefs.h. */
23897 $ac_includes_default
23898 typedef double ac__type_sizeof_;
23899 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23900 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23901 @%:@include <stdio.h>
23902 @%:@include <stdlib.h>
23907 FILE *f = fopen ("conftest.val", "w");
23910 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23912 long int i = longval ();
23913 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23915 fprintf (f, "%ld\n", i);
23919 unsigned long int i = ulongval ();
23920 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23922 fprintf (f, "%lu\n", i);
23924 return ferror (f) || fclose (f) != 0;
23930 rm -f conftest$ac_exeext
23931 if { (ac_try="$ac_link"
23932 case "(($ac_try" in
23933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23934 *) ac_try_echo=$ac_try;;
23936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23937 (eval "$ac_link") 2>&5
23939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23941 { (case "(($ac_try" in
23942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23943 *) ac_try_echo=$ac_try;;
23945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23946 (eval "$ac_try") 2>&5
23948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); }; }; then
23950 ac_cv_sizeof_double=`cat conftest.val`
23952 echo "$as_me: program exited with status $ac_status" >&5
23953 echo "$as_me: failed program was:" >&5
23954 sed 's/^/| /' conftest.$ac_ext >&5
23956 ( exit $ac_status )
23957 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
23958 See \`config.log' for more details." >&5
23959 echo "$as_me: error: cannot compute sizeof (double)
23960 See \`config.log' for more details." >&2;}
23961 { (exit 77); exit 77; }; }
23963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23967 ac_cv_sizeof_double=0
23970 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
23971 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
23972 cat >>confdefs.h <<_ACEOF
23973 @%:@define SIZEOF_DOUBLE $ac_cv_sizeof_double
23977 { echo "$as_me:$LINENO: checking for long long" >&5
23978 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23979 if test "${ac_cv_type_long_long+set}" = set; then
23980 echo $ECHO_N "(cached) $ECHO_C" >&6
23982 cat >conftest.$ac_ext <<_ACEOF
23985 cat confdefs.h >>conftest.$ac_ext
23986 cat >>conftest.$ac_ext <<_ACEOF
23987 /* end confdefs.h. */
23988 $ac_includes_default
23989 typedef long long ac__type_new_;
23993 if ((ac__type_new_ *) 0)
23995 if (sizeof (ac__type_new_))
24001 rm -f conftest.$ac_objext
24002 if { (ac_try="$ac_compile"
24003 case "(($ac_try" in
24004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24005 *) ac_try_echo=$ac_try;;
24007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24008 (eval "$ac_compile") 2>conftest.er1
24010 grep -v '^ *+' conftest.er1 >conftest.err
24012 cat conftest.err >&5
24013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 (exit $ac_status); } &&
24015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24016 { (case "(($ac_try" in
24017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24018 *) ac_try_echo=$ac_try;;
24020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24021 (eval "$ac_try") 2>&5
24023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024 (exit $ac_status); }; } &&
24025 { ac_try='test -s conftest.$ac_objext'
24026 { (case "(($ac_try" in
24027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24028 *) ac_try_echo=$ac_try;;
24030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24031 (eval "$ac_try") 2>&5
24033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034 (exit $ac_status); }; }; then
24035 ac_cv_type_long_long=yes
24037 echo "$as_me: failed program was:" >&5
24038 sed 's/^/| /' conftest.$ac_ext >&5
24040 ac_cv_type_long_long=no
24043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24045 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24046 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24048 { echo "$as_me:$LINENO: checking size of long long" >&5
24049 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24050 if test "${ac_cv_sizeof_long_long+set}" = set; then
24051 echo $ECHO_N "(cached) $ECHO_C" >&6
24053 if test "$ac_cv_type_long_long" = yes; then
24054 # The cast to long int works around a bug in the HP C Compiler
24055 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24056 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24057 # This bug is HP SR number 8606223364.
24058 if test "$cross_compiling" = yes; then
24059 # Depending upon the size, compute the lo and hi bounds.
24060 cat >conftest.$ac_ext <<_ACEOF
24063 cat confdefs.h >>conftest.$ac_ext
24064 cat >>conftest.$ac_ext <<_ACEOF
24065 /* end confdefs.h. */
24066 $ac_includes_default
24067 typedef long long ac__type_sizeof_;
24071 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
24072 test_array @<:@0@:>@ = 0
24078 rm -f conftest.$ac_objext
24079 if { (ac_try="$ac_compile"
24080 case "(($ac_try" in
24081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24082 *) ac_try_echo=$ac_try;;
24084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24085 (eval "$ac_compile") 2>conftest.er1
24087 grep -v '^ *+' conftest.er1 >conftest.err
24089 cat conftest.err >&5
24090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091 (exit $ac_status); } &&
24092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24093 { (case "(($ac_try" in
24094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24095 *) ac_try_echo=$ac_try;;
24097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24098 (eval "$ac_try") 2>&5
24100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); }; } &&
24102 { ac_try='test -s conftest.$ac_objext'
24103 { (case "(($ac_try" in
24104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24105 *) ac_try_echo=$ac_try;;
24107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24108 (eval "$ac_try") 2>&5
24110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); }; }; then
24114 cat >conftest.$ac_ext <<_ACEOF
24117 cat confdefs.h >>conftest.$ac_ext
24118 cat >>conftest.$ac_ext <<_ACEOF
24119 /* end confdefs.h. */
24120 $ac_includes_default
24121 typedef long long ac__type_sizeof_;
24125 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24126 test_array @<:@0@:>@ = 0
24132 rm -f conftest.$ac_objext
24133 if { (ac_try="$ac_compile"
24134 case "(($ac_try" in
24135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24136 *) ac_try_echo=$ac_try;;
24138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24139 (eval "$ac_compile") 2>conftest.er1
24141 grep -v '^ *+' conftest.er1 >conftest.err
24143 cat conftest.err >&5
24144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145 (exit $ac_status); } &&
24146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24147 { (case "(($ac_try" in
24148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24149 *) ac_try_echo=$ac_try;;
24151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24152 (eval "$ac_try") 2>&5
24154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 (exit $ac_status); }; } &&
24156 { ac_try='test -s conftest.$ac_objext'
24157 { (case "(($ac_try" in
24158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24159 *) ac_try_echo=$ac_try;;
24161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24162 (eval "$ac_try") 2>&5
24164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165 (exit $ac_status); }; }; then
24166 ac_hi=$ac_mid; break
24168 echo "$as_me: failed program was:" >&5
24169 sed 's/^/| /' conftest.$ac_ext >&5
24171 ac_lo=`expr $ac_mid + 1`
24172 if test $ac_lo -le $ac_mid; then
24176 ac_mid=`expr 2 '*' $ac_mid + 1`
24179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24182 echo "$as_me: failed program was:" >&5
24183 sed 's/^/| /' conftest.$ac_ext >&5
24185 cat >conftest.$ac_ext <<_ACEOF
24188 cat confdefs.h >>conftest.$ac_ext
24189 cat >>conftest.$ac_ext <<_ACEOF
24190 /* end confdefs.h. */
24191 $ac_includes_default
24192 typedef long long ac__type_sizeof_;
24196 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
24197 test_array @<:@0@:>@ = 0
24203 rm -f conftest.$ac_objext
24204 if { (ac_try="$ac_compile"
24205 case "(($ac_try" in
24206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24207 *) ac_try_echo=$ac_try;;
24209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24210 (eval "$ac_compile") 2>conftest.er1
24212 grep -v '^ *+' conftest.er1 >conftest.err
24214 cat conftest.err >&5
24215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24216 (exit $ac_status); } &&
24217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24218 { (case "(($ac_try" in
24219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24220 *) ac_try_echo=$ac_try;;
24222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24223 (eval "$ac_try") 2>&5
24225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226 (exit $ac_status); }; } &&
24227 { ac_try='test -s conftest.$ac_objext'
24228 { (case "(($ac_try" in
24229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24230 *) ac_try_echo=$ac_try;;
24232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24233 (eval "$ac_try") 2>&5
24235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236 (exit $ac_status); }; }; then
24239 cat >conftest.$ac_ext <<_ACEOF
24242 cat confdefs.h >>conftest.$ac_ext
24243 cat >>conftest.$ac_ext <<_ACEOF
24244 /* end confdefs.h. */
24245 $ac_includes_default
24246 typedef long long ac__type_sizeof_;
24250 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
24251 test_array @<:@0@:>@ = 0
24257 rm -f conftest.$ac_objext
24258 if { (ac_try="$ac_compile"
24259 case "(($ac_try" in
24260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24261 *) ac_try_echo=$ac_try;;
24263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24264 (eval "$ac_compile") 2>conftest.er1
24266 grep -v '^ *+' conftest.er1 >conftest.err
24268 cat conftest.err >&5
24269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270 (exit $ac_status); } &&
24271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24272 { (case "(($ac_try" in
24273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24274 *) ac_try_echo=$ac_try;;
24276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24277 (eval "$ac_try") 2>&5
24279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280 (exit $ac_status); }; } &&
24281 { ac_try='test -s conftest.$ac_objext'
24282 { (case "(($ac_try" in
24283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24284 *) ac_try_echo=$ac_try;;
24286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24287 (eval "$ac_try") 2>&5
24289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290 (exit $ac_status); }; }; then
24291 ac_lo=$ac_mid; break
24293 echo "$as_me: failed program was:" >&5
24294 sed 's/^/| /' conftest.$ac_ext >&5
24296 ac_hi=`expr '(' $ac_mid ')' - 1`
24297 if test $ac_mid -le $ac_hi; then
24301 ac_mid=`expr 2 '*' $ac_mid`
24304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24307 echo "$as_me: failed program was:" >&5
24308 sed 's/^/| /' conftest.$ac_ext >&5
24313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24317 # Binary search between lo and hi bounds.
24318 while test "x$ac_lo" != "x$ac_hi"; do
24319 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24320 cat >conftest.$ac_ext <<_ACEOF
24323 cat confdefs.h >>conftest.$ac_ext
24324 cat >>conftest.$ac_ext <<_ACEOF
24325 /* end confdefs.h. */
24326 $ac_includes_default
24327 typedef long long ac__type_sizeof_;
24331 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24332 test_array @<:@0@:>@ = 0
24338 rm -f conftest.$ac_objext
24339 if { (ac_try="$ac_compile"
24340 case "(($ac_try" in
24341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24342 *) ac_try_echo=$ac_try;;
24344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24345 (eval "$ac_compile") 2>conftest.er1
24347 grep -v '^ *+' conftest.er1 >conftest.err
24349 cat conftest.err >&5
24350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); } &&
24352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24353 { (case "(($ac_try" in
24354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24355 *) ac_try_echo=$ac_try;;
24357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24358 (eval "$ac_try") 2>&5
24360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361 (exit $ac_status); }; } &&
24362 { ac_try='test -s conftest.$ac_objext'
24363 { (case "(($ac_try" in
24364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24365 *) ac_try_echo=$ac_try;;
24367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24368 (eval "$ac_try") 2>&5
24370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); }; }; then
24374 echo "$as_me: failed program was:" >&5
24375 sed 's/^/| /' conftest.$ac_ext >&5
24377 ac_lo=`expr '(' $ac_mid ')' + 1`
24380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24383 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24384 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24385 See \`config.log' for more details." >&5
24386 echo "$as_me: error: cannot compute sizeof (long long)
24387 See \`config.log' for more details." >&2;}
24388 { (exit 77); exit 77; }; } ;;
24391 cat >conftest.$ac_ext <<_ACEOF
24394 cat confdefs.h >>conftest.$ac_ext
24395 cat >>conftest.$ac_ext <<_ACEOF
24396 /* end confdefs.h. */
24397 $ac_includes_default
24398 typedef long long ac__type_sizeof_;
24399 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24400 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24401 @%:@include <stdio.h>
24402 @%:@include <stdlib.h>
24407 FILE *f = fopen ("conftest.val", "w");
24410 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24412 long int i = longval ();
24413 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24415 fprintf (f, "%ld\n", i);
24419 unsigned long int i = ulongval ();
24420 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24422 fprintf (f, "%lu\n", i);
24424 return ferror (f) || fclose (f) != 0;
24430 rm -f conftest$ac_exeext
24431 if { (ac_try="$ac_link"
24432 case "(($ac_try" in
24433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24434 *) ac_try_echo=$ac_try;;
24436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24437 (eval "$ac_link") 2>&5
24439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24441 { (case "(($ac_try" in
24442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443 *) ac_try_echo=$ac_try;;
24445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24446 (eval "$ac_try") 2>&5
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); }; }; then
24450 ac_cv_sizeof_long_long=`cat conftest.val`
24452 echo "$as_me: program exited with status $ac_status" >&5
24453 echo "$as_me: failed program was:" >&5
24454 sed 's/^/| /' conftest.$ac_ext >&5
24456 ( exit $ac_status )
24457 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24458 See \`config.log' for more details." >&5
24459 echo "$as_me: error: cannot compute sizeof (long long)
24460 See \`config.log' for more details." >&2;}
24461 { (exit 77); exit 77; }; }
24463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24467 ac_cv_sizeof_long_long=0
24470 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24471 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24472 cat >>confdefs.h <<_ACEOF
24473 @%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24478 { echo "$as_me:$LINENO: checking for u_int" >&5
24479 echo $ECHO_N "checking for u_int... $ECHO_C" >&6; }
24480 if test "${ac_cv_type_u_int+set}" = set; then
24481 echo $ECHO_N "(cached) $ECHO_C" >&6
24483 cat >conftest.$ac_ext <<_ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h. */
24489 $ac_includes_default
24490 typedef u_int ac__type_new_;
24494 if ((ac__type_new_ *) 0)
24496 if (sizeof (ac__type_new_))
24502 rm -f conftest.$ac_objext
24503 if { (ac_try="$ac_compile"
24504 case "(($ac_try" in
24505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24506 *) ac_try_echo=$ac_try;;
24508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24509 (eval "$ac_compile") 2>conftest.er1
24511 grep -v '^ *+' conftest.er1 >conftest.err
24513 cat conftest.err >&5
24514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515 (exit $ac_status); } &&
24516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24517 { (case "(($ac_try" in
24518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519 *) ac_try_echo=$ac_try;;
24521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24522 (eval "$ac_try") 2>&5
24524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); }; } &&
24526 { ac_try='test -s conftest.$ac_objext'
24527 { (case "(($ac_try" in
24528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24529 *) ac_try_echo=$ac_try;;
24531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24532 (eval "$ac_try") 2>&5
24534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); }; }; then
24536 ac_cv_type_u_int=yes
24538 echo "$as_me: failed program was:" >&5
24539 sed 's/^/| /' conftest.$ac_ext >&5
24541 ac_cv_type_u_int=no
24544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24546 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
24547 echo "${ECHO_T}$ac_cv_type_u_int" >&6; }
24548 if test $ac_cv_type_u_int = yes; then
24552 cat >>confdefs.h <<_ACEOF
24553 @%:@define u_int unsigned int
24558 { echo "$as_me:$LINENO: checking for u_long" >&5
24559 echo $ECHO_N "checking for u_long... $ECHO_C" >&6; }
24560 if test "${ac_cv_type_u_long+set}" = set; then
24561 echo $ECHO_N "(cached) $ECHO_C" >&6
24563 cat >conftest.$ac_ext <<_ACEOF
24566 cat confdefs.h >>conftest.$ac_ext
24567 cat >>conftest.$ac_ext <<_ACEOF
24568 /* end confdefs.h. */
24569 $ac_includes_default
24570 typedef u_long ac__type_new_;
24574 if ((ac__type_new_ *) 0)
24576 if (sizeof (ac__type_new_))
24582 rm -f conftest.$ac_objext
24583 if { (ac_try="$ac_compile"
24584 case "(($ac_try" in
24585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24586 *) ac_try_echo=$ac_try;;
24588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24589 (eval "$ac_compile") 2>conftest.er1
24591 grep -v '^ *+' conftest.er1 >conftest.err
24593 cat conftest.err >&5
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); } &&
24596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24597 { (case "(($ac_try" in
24598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599 *) ac_try_echo=$ac_try;;
24601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24602 (eval "$ac_try") 2>&5
24604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605 (exit $ac_status); }; } &&
24606 { ac_try='test -s conftest.$ac_objext'
24607 { (case "(($ac_try" in
24608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24609 *) ac_try_echo=$ac_try;;
24611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24612 (eval "$ac_try") 2>&5
24614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615 (exit $ac_status); }; }; then
24616 ac_cv_type_u_long=yes
24618 echo "$as_me: failed program was:" >&5
24619 sed 's/^/| /' conftest.$ac_ext >&5
24621 ac_cv_type_u_long=no
24624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24626 { echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
24627 echo "${ECHO_T}$ac_cv_type_u_long" >&6; }
24628 if test $ac_cv_type_u_long = yes; then
24632 cat >>confdefs.h <<_ACEOF
24633 @%:@define u_long unsigned long
24640 if test "$ac_cv_sizeof_short" = 2; then
24641 { echo "$as_me:$LINENO: checking for bits16_t" >&5
24642 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6; }
24643 if test "${ac_cv_type_bits16_t+set}" = set; then
24644 echo $ECHO_N "(cached) $ECHO_C" >&6
24646 cat >conftest.$ac_ext <<_ACEOF
24649 cat confdefs.h >>conftest.$ac_ext
24650 cat >>conftest.$ac_ext <<_ACEOF
24651 /* end confdefs.h. */
24652 $ac_includes_default
24653 typedef bits16_t ac__type_new_;
24657 if ((ac__type_new_ *) 0)
24659 if (sizeof (ac__type_new_))
24665 rm -f conftest.$ac_objext
24666 if { (ac_try="$ac_compile"
24667 case "(($ac_try" in
24668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24669 *) ac_try_echo=$ac_try;;
24671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24672 (eval "$ac_compile") 2>conftest.er1
24674 grep -v '^ *+' conftest.er1 >conftest.err
24676 cat conftest.err >&5
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); } &&
24679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24680 { (case "(($ac_try" in
24681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24682 *) ac_try_echo=$ac_try;;
24684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24685 (eval "$ac_try") 2>&5
24687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688 (exit $ac_status); }; } &&
24689 { ac_try='test -s conftest.$ac_objext'
24690 { (case "(($ac_try" in
24691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24692 *) ac_try_echo=$ac_try;;
24694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24695 (eval "$ac_try") 2>&5
24697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698 (exit $ac_status); }; }; then
24699 ac_cv_type_bits16_t=yes
24701 echo "$as_me: failed program was:" >&5
24702 sed 's/^/| /' conftest.$ac_ext >&5
24704 ac_cv_type_bits16_t=no
24707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24709 { echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
24710 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6; }
24711 if test $ac_cv_type_bits16_t = yes; then
24715 cat >>confdefs.h <<_ACEOF
24716 @%:@define bits16_t short
24721 elif test "$ac_cv_sizeof_char" = 2; then
24722 { echo "$as_me:$LINENO: checking for bits16_t" >&5
24723 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6; }
24724 if test "${ac_cv_type_bits16_t+set}" = set; then
24725 echo $ECHO_N "(cached) $ECHO_C" >&6
24727 cat >conftest.$ac_ext <<_ACEOF
24730 cat confdefs.h >>conftest.$ac_ext
24731 cat >>conftest.$ac_ext <<_ACEOF
24732 /* end confdefs.h. */
24733 $ac_includes_default
24734 typedef bits16_t ac__type_new_;
24738 if ((ac__type_new_ *) 0)
24740 if (sizeof (ac__type_new_))
24746 rm -f conftest.$ac_objext
24747 if { (ac_try="$ac_compile"
24748 case "(($ac_try" in
24749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24750 *) ac_try_echo=$ac_try;;
24752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24753 (eval "$ac_compile") 2>conftest.er1
24755 grep -v '^ *+' conftest.er1 >conftest.err
24757 cat conftest.err >&5
24758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759 (exit $ac_status); } &&
24760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24761 { (case "(($ac_try" in
24762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24763 *) ac_try_echo=$ac_try;;
24765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24766 (eval "$ac_try") 2>&5
24768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); }; } &&
24770 { ac_try='test -s conftest.$ac_objext'
24771 { (case "(($ac_try" in
24772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773 *) ac_try_echo=$ac_try;;
24775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24776 (eval "$ac_try") 2>&5
24778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779 (exit $ac_status); }; }; then
24780 ac_cv_type_bits16_t=yes
24782 echo "$as_me: failed program was:" >&5
24783 sed 's/^/| /' conftest.$ac_ext >&5
24785 ac_cv_type_bits16_t=no
24788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24790 { echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
24791 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6; }
24792 if test $ac_cv_type_bits16_t = yes; then
24796 cat >>confdefs.h <<_ACEOF
24797 @%:@define bits16_t char
24803 { echo "$as_me:$LINENO: checking for bits16_t" >&5
24804 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6; }
24805 if test "${ac_cv_type_bits16_t+set}" = set; then
24806 echo $ECHO_N "(cached) $ECHO_C" >&6
24808 cat >conftest.$ac_ext <<_ACEOF
24811 cat confdefs.h >>conftest.$ac_ext
24812 cat >>conftest.$ac_ext <<_ACEOF
24813 /* end confdefs.h. */
24814 $ac_includes_default
24815 typedef bits16_t ac__type_new_;
24819 if ((ac__type_new_ *) 0)
24821 if (sizeof (ac__type_new_))
24827 rm -f conftest.$ac_objext
24828 if { (ac_try="$ac_compile"
24829 case "(($ac_try" in
24830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24831 *) ac_try_echo=$ac_try;;
24833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24834 (eval "$ac_compile") 2>conftest.er1
24836 grep -v '^ *+' conftest.er1 >conftest.err
24838 cat conftest.err >&5
24839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840 (exit $ac_status); } &&
24841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24842 { (case "(($ac_try" in
24843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24844 *) ac_try_echo=$ac_try;;
24846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24847 (eval "$ac_try") 2>&5
24849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850 (exit $ac_status); }; } &&
24851 { ac_try='test -s conftest.$ac_objext'
24852 { (case "(($ac_try" in
24853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24854 *) ac_try_echo=$ac_try;;
24856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24857 (eval "$ac_try") 2>&5
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); }; }; then
24861 ac_cv_type_bits16_t=yes
24863 echo "$as_me: failed program was:" >&5
24864 sed 's/^/| /' conftest.$ac_ext >&5
24866 ac_cv_type_bits16_t=no
24869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24871 { echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
24872 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6; }
24873 if test $ac_cv_type_bits16_t = yes; then
24877 cat >>confdefs.h <<_ACEOF
24878 @%:@define bits16_t short
24886 if test "$ac_cv_sizeof_short" = 2; then
24887 { echo "$as_me:$LINENO: checking for u_bits16_t" >&5
24888 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6; }
24889 if test "${ac_cv_type_u_bits16_t+set}" = set; then
24890 echo $ECHO_N "(cached) $ECHO_C" >&6
24892 cat >conftest.$ac_ext <<_ACEOF
24895 cat confdefs.h >>conftest.$ac_ext
24896 cat >>conftest.$ac_ext <<_ACEOF
24897 /* end confdefs.h. */
24898 $ac_includes_default
24899 typedef u_bits16_t ac__type_new_;
24903 if ((ac__type_new_ *) 0)
24905 if (sizeof (ac__type_new_))
24911 rm -f conftest.$ac_objext
24912 if { (ac_try="$ac_compile"
24913 case "(($ac_try" in
24914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24915 *) ac_try_echo=$ac_try;;
24917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24918 (eval "$ac_compile") 2>conftest.er1
24920 grep -v '^ *+' conftest.er1 >conftest.err
24922 cat conftest.err >&5
24923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); } &&
24925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24926 { (case "(($ac_try" in
24927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24928 *) ac_try_echo=$ac_try;;
24930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24931 (eval "$ac_try") 2>&5
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); }; } &&
24935 { ac_try='test -s conftest.$ac_objext'
24936 { (case "(($ac_try" in
24937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938 *) ac_try_echo=$ac_try;;
24940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24941 (eval "$ac_try") 2>&5
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; }; then
24945 ac_cv_type_u_bits16_t=yes
24947 echo "$as_me: failed program was:" >&5
24948 sed 's/^/| /' conftest.$ac_ext >&5
24950 ac_cv_type_u_bits16_t=no
24953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24955 { echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
24956 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6; }
24957 if test $ac_cv_type_u_bits16_t = yes; then
24961 cat >>confdefs.h <<_ACEOF
24962 @%:@define u_bits16_t unsigned short
24967 elif test "$ac_cv_sizeof_char" = 2; then
24968 { echo "$as_me:$LINENO: checking for u_bits16_t" >&5
24969 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6; }
24970 if test "${ac_cv_type_u_bits16_t+set}" = set; then
24971 echo $ECHO_N "(cached) $ECHO_C" >&6
24973 cat >conftest.$ac_ext <<_ACEOF
24976 cat confdefs.h >>conftest.$ac_ext
24977 cat >>conftest.$ac_ext <<_ACEOF
24978 /* end confdefs.h. */
24979 $ac_includes_default
24980 typedef u_bits16_t ac__type_new_;
24984 if ((ac__type_new_ *) 0)
24986 if (sizeof (ac__type_new_))
24992 rm -f conftest.$ac_objext
24993 if { (ac_try="$ac_compile"
24994 case "(($ac_try" in
24995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996 *) ac_try_echo=$ac_try;;
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999 (eval "$ac_compile") 2>conftest.er1
25001 grep -v '^ *+' conftest.er1 >conftest.err
25003 cat conftest.err >&5
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } &&
25006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25007 { (case "(($ac_try" in
25008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25009 *) ac_try_echo=$ac_try;;
25011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25012 (eval "$ac_try") 2>&5
25014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); }; } &&
25016 { ac_try='test -s conftest.$ac_objext'
25017 { (case "(($ac_try" in
25018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25019 *) ac_try_echo=$ac_try;;
25021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25022 (eval "$ac_try") 2>&5
25024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025 (exit $ac_status); }; }; then
25026 ac_cv_type_u_bits16_t=yes
25028 echo "$as_me: failed program was:" >&5
25029 sed 's/^/| /' conftest.$ac_ext >&5
25031 ac_cv_type_u_bits16_t=no
25034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25036 { echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
25037 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6; }
25038 if test $ac_cv_type_u_bits16_t = yes; then
25042 cat >>confdefs.h <<_ACEOF
25043 @%:@define u_bits16_t unsigned char
25049 { echo "$as_me:$LINENO: checking for u_bits16_t" >&5
25050 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6; }
25051 if test "${ac_cv_type_u_bits16_t+set}" = set; then
25052 echo $ECHO_N "(cached) $ECHO_C" >&6
25054 cat >conftest.$ac_ext <<_ACEOF
25057 cat confdefs.h >>conftest.$ac_ext
25058 cat >>conftest.$ac_ext <<_ACEOF
25059 /* end confdefs.h. */
25060 $ac_includes_default
25061 typedef u_bits16_t ac__type_new_;
25065 if ((ac__type_new_ *) 0)
25067 if (sizeof (ac__type_new_))
25073 rm -f conftest.$ac_objext
25074 if { (ac_try="$ac_compile"
25075 case "(($ac_try" in
25076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25077 *) ac_try_echo=$ac_try;;
25079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25080 (eval "$ac_compile") 2>conftest.er1
25082 grep -v '^ *+' conftest.er1 >conftest.err
25084 cat conftest.err >&5
25085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25086 (exit $ac_status); } &&
25087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25088 { (case "(($ac_try" in
25089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25090 *) ac_try_echo=$ac_try;;
25092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25093 (eval "$ac_try") 2>&5
25095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096 (exit $ac_status); }; } &&
25097 { ac_try='test -s conftest.$ac_objext'
25098 { (case "(($ac_try" in
25099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25100 *) ac_try_echo=$ac_try;;
25102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25103 (eval "$ac_try") 2>&5
25105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106 (exit $ac_status); }; }; then
25107 ac_cv_type_u_bits16_t=yes
25109 echo "$as_me: failed program was:" >&5
25110 sed 's/^/| /' conftest.$ac_ext >&5
25112 ac_cv_type_u_bits16_t=no
25115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25117 { echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
25118 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6; }
25119 if test $ac_cv_type_u_bits16_t = yes; then
25123 cat >>confdefs.h <<_ACEOF
25124 @%:@define u_bits16_t unsigned short
25132 if test "$ac_cv_sizeof_int" = 4; then
25133 { echo "$as_me:$LINENO: checking for bits32_t" >&5
25134 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6; }
25135 if test "${ac_cv_type_bits32_t+set}" = set; then
25136 echo $ECHO_N "(cached) $ECHO_C" >&6
25138 cat >conftest.$ac_ext <<_ACEOF
25141 cat confdefs.h >>conftest.$ac_ext
25142 cat >>conftest.$ac_ext <<_ACEOF
25143 /* end confdefs.h. */
25144 $ac_includes_default
25145 typedef bits32_t ac__type_new_;
25149 if ((ac__type_new_ *) 0)
25151 if (sizeof (ac__type_new_))
25157 rm -f conftest.$ac_objext
25158 if { (ac_try="$ac_compile"
25159 case "(($ac_try" in
25160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25161 *) ac_try_echo=$ac_try;;
25163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25164 (eval "$ac_compile") 2>conftest.er1
25166 grep -v '^ *+' conftest.er1 >conftest.err
25168 cat conftest.err >&5
25169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170 (exit $ac_status); } &&
25171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25172 { (case "(($ac_try" in
25173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25174 *) ac_try_echo=$ac_try;;
25176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25177 (eval "$ac_try") 2>&5
25179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180 (exit $ac_status); }; } &&
25181 { ac_try='test -s conftest.$ac_objext'
25182 { (case "(($ac_try" in
25183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25184 *) ac_try_echo=$ac_try;;
25186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25187 (eval "$ac_try") 2>&5
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); }; }; then
25191 ac_cv_type_bits32_t=yes
25193 echo "$as_me: failed program was:" >&5
25194 sed 's/^/| /' conftest.$ac_ext >&5
25196 ac_cv_type_bits32_t=no
25199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25201 { echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
25202 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6; }
25203 if test $ac_cv_type_bits32_t = yes; then
25207 cat >>confdefs.h <<_ACEOF
25208 @%:@define bits32_t int
25213 elif test "$ac_cv_sizeof_long" = 4; then
25214 { echo "$as_me:$LINENO: checking for bits32_t" >&5
25215 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6; }
25216 if test "${ac_cv_type_bits32_t+set}" = set; then
25217 echo $ECHO_N "(cached) $ECHO_C" >&6
25219 cat >conftest.$ac_ext <<_ACEOF
25222 cat confdefs.h >>conftest.$ac_ext
25223 cat >>conftest.$ac_ext <<_ACEOF
25224 /* end confdefs.h. */
25225 $ac_includes_default
25226 typedef bits32_t ac__type_new_;
25230 if ((ac__type_new_ *) 0)
25232 if (sizeof (ac__type_new_))
25238 rm -f conftest.$ac_objext
25239 if { (ac_try="$ac_compile"
25240 case "(($ac_try" in
25241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25242 *) ac_try_echo=$ac_try;;
25244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25245 (eval "$ac_compile") 2>conftest.er1
25247 grep -v '^ *+' conftest.er1 >conftest.err
25249 cat conftest.err >&5
25250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); } &&
25252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25253 { (case "(($ac_try" in
25254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25255 *) ac_try_echo=$ac_try;;
25257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25258 (eval "$ac_try") 2>&5
25260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); }; } &&
25262 { ac_try='test -s conftest.$ac_objext'
25263 { (case "(($ac_try" in
25264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25265 *) ac_try_echo=$ac_try;;
25267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25268 (eval "$ac_try") 2>&5
25270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271 (exit $ac_status); }; }; then
25272 ac_cv_type_bits32_t=yes
25274 echo "$as_me: failed program was:" >&5
25275 sed 's/^/| /' conftest.$ac_ext >&5
25277 ac_cv_type_bits32_t=no
25280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25282 { echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
25283 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6; }
25284 if test $ac_cv_type_bits32_t = yes; then
25288 cat >>confdefs.h <<_ACEOF
25289 @%:@define bits32_t long
25295 { echo "$as_me:$LINENO: checking for bits32_t" >&5
25296 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6; }
25297 if test "${ac_cv_type_bits32_t+set}" = set; then
25298 echo $ECHO_N "(cached) $ECHO_C" >&6
25300 cat >conftest.$ac_ext <<_ACEOF
25303 cat confdefs.h >>conftest.$ac_ext
25304 cat >>conftest.$ac_ext <<_ACEOF
25305 /* end confdefs.h. */
25306 $ac_includes_default
25307 typedef bits32_t ac__type_new_;
25311 if ((ac__type_new_ *) 0)
25313 if (sizeof (ac__type_new_))
25319 rm -f conftest.$ac_objext
25320 if { (ac_try="$ac_compile"
25321 case "(($ac_try" in
25322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25323 *) ac_try_echo=$ac_try;;
25325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25326 (eval "$ac_compile") 2>conftest.er1
25328 grep -v '^ *+' conftest.er1 >conftest.err
25330 cat conftest.err >&5
25331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); } &&
25333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25334 { (case "(($ac_try" in
25335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25336 *) ac_try_echo=$ac_try;;
25338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25339 (eval "$ac_try") 2>&5
25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); }; } &&
25343 { ac_try='test -s conftest.$ac_objext'
25344 { (case "(($ac_try" in
25345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25346 *) ac_try_echo=$ac_try;;
25348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25349 (eval "$ac_try") 2>&5
25351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352 (exit $ac_status); }; }; then
25353 ac_cv_type_bits32_t=yes
25355 echo "$as_me: failed program was:" >&5
25356 sed 's/^/| /' conftest.$ac_ext >&5
25358 ac_cv_type_bits32_t=no
25361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25363 { echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
25364 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6; }
25365 if test $ac_cv_type_bits32_t = yes; then
25369 cat >>confdefs.h <<_ACEOF
25370 @%:@define bits32_t int
25378 if test "$ac_cv_sizeof_int" = 4; then
25379 { echo "$as_me:$LINENO: checking for u_bits32_t" >&5
25380 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6; }
25381 if test "${ac_cv_type_u_bits32_t+set}" = set; then
25382 echo $ECHO_N "(cached) $ECHO_C" >&6
25384 cat >conftest.$ac_ext <<_ACEOF
25387 cat confdefs.h >>conftest.$ac_ext
25388 cat >>conftest.$ac_ext <<_ACEOF
25389 /* end confdefs.h. */
25390 $ac_includes_default
25391 typedef u_bits32_t ac__type_new_;
25395 if ((ac__type_new_ *) 0)
25397 if (sizeof (ac__type_new_))
25403 rm -f conftest.$ac_objext
25404 if { (ac_try="$ac_compile"
25405 case "(($ac_try" in
25406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25407 *) ac_try_echo=$ac_try;;
25409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25410 (eval "$ac_compile") 2>conftest.er1
25412 grep -v '^ *+' conftest.er1 >conftest.err
25414 cat conftest.err >&5
25415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416 (exit $ac_status); } &&
25417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25418 { (case "(($ac_try" in
25419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25420 *) ac_try_echo=$ac_try;;
25422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25423 (eval "$ac_try") 2>&5
25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); }; } &&
25427 { ac_try='test -s conftest.$ac_objext'
25428 { (case "(($ac_try" in
25429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25430 *) ac_try_echo=$ac_try;;
25432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25433 (eval "$ac_try") 2>&5
25435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436 (exit $ac_status); }; }; then
25437 ac_cv_type_u_bits32_t=yes
25439 echo "$as_me: failed program was:" >&5
25440 sed 's/^/| /' conftest.$ac_ext >&5
25442 ac_cv_type_u_bits32_t=no
25445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25447 { echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
25448 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6; }
25449 if test $ac_cv_type_u_bits32_t = yes; then
25453 cat >>confdefs.h <<_ACEOF
25454 @%:@define u_bits32_t unsigned int
25459 elif test "$ac_cv_sizeof_long" = 4; then
25460 { echo "$as_me:$LINENO: checking for u_bits32_t" >&5
25461 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6; }
25462 if test "${ac_cv_type_u_bits32_t+set}" = set; then
25463 echo $ECHO_N "(cached) $ECHO_C" >&6
25465 cat >conftest.$ac_ext <<_ACEOF
25468 cat confdefs.h >>conftest.$ac_ext
25469 cat >>conftest.$ac_ext <<_ACEOF
25470 /* end confdefs.h. */
25471 $ac_includes_default
25472 typedef u_bits32_t ac__type_new_;
25476 if ((ac__type_new_ *) 0)
25478 if (sizeof (ac__type_new_))
25484 rm -f conftest.$ac_objext
25485 if { (ac_try="$ac_compile"
25486 case "(($ac_try" in
25487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25488 *) ac_try_echo=$ac_try;;
25490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25491 (eval "$ac_compile") 2>conftest.er1
25493 grep -v '^ *+' conftest.er1 >conftest.err
25495 cat conftest.err >&5
25496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497 (exit $ac_status); } &&
25498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25499 { (case "(($ac_try" in
25500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25501 *) ac_try_echo=$ac_try;;
25503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25504 (eval "$ac_try") 2>&5
25506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507 (exit $ac_status); }; } &&
25508 { ac_try='test -s conftest.$ac_objext'
25509 { (case "(($ac_try" in
25510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25511 *) ac_try_echo=$ac_try;;
25513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25514 (eval "$ac_try") 2>&5
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); }; }; then
25518 ac_cv_type_u_bits32_t=yes
25520 echo "$as_me: failed program was:" >&5
25521 sed 's/^/| /' conftest.$ac_ext >&5
25523 ac_cv_type_u_bits32_t=no
25526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25528 { echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
25529 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6; }
25530 if test $ac_cv_type_u_bits32_t = yes; then
25534 cat >>confdefs.h <<_ACEOF
25535 @%:@define u_bits32_t unsigned long
25541 { echo "$as_me:$LINENO: checking for u_bits32_t" >&5
25542 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6; }
25543 if test "${ac_cv_type_u_bits32_t+set}" = set; then
25544 echo $ECHO_N "(cached) $ECHO_C" >&6
25546 cat >conftest.$ac_ext <<_ACEOF
25549 cat confdefs.h >>conftest.$ac_ext
25550 cat >>conftest.$ac_ext <<_ACEOF
25551 /* end confdefs.h. */
25552 $ac_includes_default
25553 typedef u_bits32_t ac__type_new_;
25557 if ((ac__type_new_ *) 0)
25559 if (sizeof (ac__type_new_))
25565 rm -f conftest.$ac_objext
25566 if { (ac_try="$ac_compile"
25567 case "(($ac_try" in
25568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25569 *) ac_try_echo=$ac_try;;
25571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25572 (eval "$ac_compile") 2>conftest.er1
25574 grep -v '^ *+' conftest.er1 >conftest.err
25576 cat conftest.err >&5
25577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578 (exit $ac_status); } &&
25579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25580 { (case "(($ac_try" in
25581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25582 *) ac_try_echo=$ac_try;;
25584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25585 (eval "$ac_try") 2>&5
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); }; } &&
25589 { ac_try='test -s conftest.$ac_objext'
25590 { (case "(($ac_try" in
25591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25592 *) ac_try_echo=$ac_try;;
25594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25595 (eval "$ac_try") 2>&5
25597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); }; }; then
25599 ac_cv_type_u_bits32_t=yes
25601 echo "$as_me: failed program was:" >&5
25602 sed 's/^/| /' conftest.$ac_ext >&5
25604 ac_cv_type_u_bits32_t=no
25607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25609 { echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
25610 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6; }
25611 if test $ac_cv_type_u_bits32_t = yes; then
25615 cat >>confdefs.h <<_ACEOF
25616 @%:@define u_bits32_t unsigned int
25624 if test "$ac_cv_sizeof_char_p" = 8; then
25625 { echo "$as_me:$LINENO: checking for bits64_t" >&5
25626 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6; }
25627 if test "${ac_cv_type_bits64_t+set}" = set; then
25628 echo $ECHO_N "(cached) $ECHO_C" >&6
25630 cat >conftest.$ac_ext <<_ACEOF
25633 cat confdefs.h >>conftest.$ac_ext
25634 cat >>conftest.$ac_ext <<_ACEOF
25635 /* end confdefs.h. */
25636 $ac_includes_default
25637 typedef bits64_t ac__type_new_;
25641 if ((ac__type_new_ *) 0)
25643 if (sizeof (ac__type_new_))
25649 rm -f conftest.$ac_objext
25650 if { (ac_try="$ac_compile"
25651 case "(($ac_try" in
25652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25653 *) ac_try_echo=$ac_try;;
25655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25656 (eval "$ac_compile") 2>conftest.er1
25658 grep -v '^ *+' conftest.er1 >conftest.err
25660 cat conftest.err >&5
25661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); } &&
25663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25664 { (case "(($ac_try" in
25665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25666 *) ac_try_echo=$ac_try;;
25668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25669 (eval "$ac_try") 2>&5
25671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672 (exit $ac_status); }; } &&
25673 { ac_try='test -s conftest.$ac_objext'
25674 { (case "(($ac_try" in
25675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25676 *) ac_try_echo=$ac_try;;
25678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25679 (eval "$ac_try") 2>&5
25681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682 (exit $ac_status); }; }; then
25683 ac_cv_type_bits64_t=yes
25685 echo "$as_me: failed program was:" >&5
25686 sed 's/^/| /' conftest.$ac_ext >&5
25688 ac_cv_type_bits64_t=no
25691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25693 { echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25694 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6; }
25695 if test $ac_cv_type_bits64_t = yes; then
25699 cat >>confdefs.h <<_ACEOF
25700 @%:@define bits64_t char *
25705 elif test "$ac_cv_sizeof_double" = 8; then
25706 { echo "$as_me:$LINENO: checking for bits64_t" >&5
25707 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6; }
25708 if test "${ac_cv_type_bits64_t+set}" = set; then
25709 echo $ECHO_N "(cached) $ECHO_C" >&6
25711 cat >conftest.$ac_ext <<_ACEOF
25714 cat confdefs.h >>conftest.$ac_ext
25715 cat >>conftest.$ac_ext <<_ACEOF
25716 /* end confdefs.h. */
25717 $ac_includes_default
25718 typedef bits64_t ac__type_new_;
25722 if ((ac__type_new_ *) 0)
25724 if (sizeof (ac__type_new_))
25730 rm -f conftest.$ac_objext
25731 if { (ac_try="$ac_compile"
25732 case "(($ac_try" in
25733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25734 *) ac_try_echo=$ac_try;;
25736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25737 (eval "$ac_compile") 2>conftest.er1
25739 grep -v '^ *+' conftest.er1 >conftest.err
25741 cat conftest.err >&5
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); } &&
25744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25745 { (case "(($ac_try" in
25746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25747 *) ac_try_echo=$ac_try;;
25749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25750 (eval "$ac_try") 2>&5
25752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753 (exit $ac_status); }; } &&
25754 { ac_try='test -s conftest.$ac_objext'
25755 { (case "(($ac_try" in
25756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25757 *) ac_try_echo=$ac_try;;
25759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25760 (eval "$ac_try") 2>&5
25762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763 (exit $ac_status); }; }; then
25764 ac_cv_type_bits64_t=yes
25766 echo "$as_me: failed program was:" >&5
25767 sed 's/^/| /' conftest.$ac_ext >&5
25769 ac_cv_type_bits64_t=no
25772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25774 { echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25775 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6; }
25776 if test $ac_cv_type_bits64_t = yes; then
25780 cat >>confdefs.h <<_ACEOF
25781 @%:@define bits64_t double
25786 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
25787 { echo "$as_me:$LINENO: checking for bits64_t" >&5
25788 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6; }
25789 if test "${ac_cv_type_bits64_t+set}" = set; then
25790 echo $ECHO_N "(cached) $ECHO_C" >&6
25792 cat >conftest.$ac_ext <<_ACEOF
25795 cat confdefs.h >>conftest.$ac_ext
25796 cat >>conftest.$ac_ext <<_ACEOF
25797 /* end confdefs.h. */
25798 $ac_includes_default
25799 typedef bits64_t ac__type_new_;
25803 if ((ac__type_new_ *) 0)
25805 if (sizeof (ac__type_new_))
25811 rm -f conftest.$ac_objext
25812 if { (ac_try="$ac_compile"
25813 case "(($ac_try" in
25814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25815 *) ac_try_echo=$ac_try;;
25817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25818 (eval "$ac_compile") 2>conftest.er1
25820 grep -v '^ *+' conftest.er1 >conftest.err
25822 cat conftest.err >&5
25823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25824 (exit $ac_status); } &&
25825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25826 { (case "(($ac_try" in
25827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25828 *) ac_try_echo=$ac_try;;
25830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25831 (eval "$ac_try") 2>&5
25833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 (exit $ac_status); }; } &&
25835 { ac_try='test -s conftest.$ac_objext'
25836 { (case "(($ac_try" in
25837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25838 *) ac_try_echo=$ac_try;;
25840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25841 (eval "$ac_try") 2>&5
25843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844 (exit $ac_status); }; }; then
25845 ac_cv_type_bits64_t=yes
25847 echo "$as_me: failed program was:" >&5
25848 sed 's/^/| /' conftest.$ac_ext >&5
25850 ac_cv_type_bits64_t=no
25853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25855 { echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25856 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6; }
25857 if test $ac_cv_type_bits64_t = yes; then
25861 cat >>confdefs.h <<_ACEOF
25862 @%:@define bits64_t long long
25867 elif test "$ac_cv_sizeof_long" = 8; then
25868 { echo "$as_me:$LINENO: checking for bits64_t" >&5
25869 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6; }
25870 if test "${ac_cv_type_bits64_t+set}" = set; then
25871 echo $ECHO_N "(cached) $ECHO_C" >&6
25873 cat >conftest.$ac_ext <<_ACEOF
25876 cat confdefs.h >>conftest.$ac_ext
25877 cat >>conftest.$ac_ext <<_ACEOF
25878 /* end confdefs.h. */
25879 $ac_includes_default
25880 typedef bits64_t ac__type_new_;
25884 if ((ac__type_new_ *) 0)
25886 if (sizeof (ac__type_new_))
25892 rm -f conftest.$ac_objext
25893 if { (ac_try="$ac_compile"
25894 case "(($ac_try" in
25895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25896 *) ac_try_echo=$ac_try;;
25898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25899 (eval "$ac_compile") 2>conftest.er1
25901 grep -v '^ *+' conftest.er1 >conftest.err
25903 cat conftest.err >&5
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); } &&
25906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25907 { (case "(($ac_try" in
25908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25909 *) ac_try_echo=$ac_try;;
25911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25912 (eval "$ac_try") 2>&5
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); }; } &&
25916 { ac_try='test -s conftest.$ac_objext'
25917 { (case "(($ac_try" in
25918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25919 *) ac_try_echo=$ac_try;;
25921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25922 (eval "$ac_try") 2>&5
25924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25925 (exit $ac_status); }; }; then
25926 ac_cv_type_bits64_t=yes
25928 echo "$as_me: failed program was:" >&5
25929 sed 's/^/| /' conftest.$ac_ext >&5
25931 ac_cv_type_bits64_t=no
25934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25936 { echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25937 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6; }
25938 if test $ac_cv_type_bits64_t = yes; then
25942 cat >>confdefs.h <<_ACEOF
25943 @%:@define bits64_t long
25949 { echo "$as_me:$LINENO: checking for bits64_t" >&5
25950 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6; }
25951 if test "${ac_cv_type_bits64_t+set}" = set; then
25952 echo $ECHO_N "(cached) $ECHO_C" >&6
25954 cat >conftest.$ac_ext <<_ACEOF
25957 cat confdefs.h >>conftest.$ac_ext
25958 cat >>conftest.$ac_ext <<_ACEOF
25959 /* end confdefs.h. */
25960 $ac_includes_default
25961 typedef bits64_t ac__type_new_;
25965 if ((ac__type_new_ *) 0)
25967 if (sizeof (ac__type_new_))
25973 rm -f conftest.$ac_objext
25974 if { (ac_try="$ac_compile"
25975 case "(($ac_try" in
25976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25977 *) ac_try_echo=$ac_try;;
25979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25980 (eval "$ac_compile") 2>conftest.er1
25982 grep -v '^ *+' conftest.er1 >conftest.err
25984 cat conftest.err >&5
25985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986 (exit $ac_status); } &&
25987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25988 { (case "(($ac_try" in
25989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25990 *) ac_try_echo=$ac_try;;
25992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25993 (eval "$ac_try") 2>&5
25995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25996 (exit $ac_status); }; } &&
25997 { ac_try='test -s conftest.$ac_objext'
25998 { (case "(($ac_try" in
25999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26000 *) ac_try_echo=$ac_try;;
26002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26003 (eval "$ac_try") 2>&5
26005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006 (exit $ac_status); }; }; then
26007 ac_cv_type_bits64_t=yes
26009 echo "$as_me: failed program was:" >&5
26010 sed 's/^/| /' conftest.$ac_ext >&5
26012 ac_cv_type_bits64_t=no
26015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26017 { echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
26018 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6; }
26019 if test $ac_cv_type_bits64_t = yes; then
26023 cat >>confdefs.h <<_ACEOF
26024 @%:@define bits64_t double
26033 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
26034 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
26035 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
26036 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
26037 echo $ECHO_N "(cached) $ECHO_C" >&6
26039 cat >conftest.$ac_ext <<_ACEOF
26042 cat confdefs.h >>conftest.$ac_ext
26043 cat >>conftest.$ac_ext <<_ACEOF
26044 /* end confdefs.h. */
26045 $ac_includes_default
26046 typedef ptrdiff_t ac__type_new_;
26050 if ((ac__type_new_ *) 0)
26052 if (sizeof (ac__type_new_))
26058 rm -f conftest.$ac_objext
26059 if { (ac_try="$ac_compile"
26060 case "(($ac_try" in
26061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26062 *) ac_try_echo=$ac_try;;
26064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26065 (eval "$ac_compile") 2>conftest.er1
26067 grep -v '^ *+' conftest.er1 >conftest.err
26069 cat conftest.err >&5
26070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071 (exit $ac_status); } &&
26072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26073 { (case "(($ac_try" in
26074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26075 *) ac_try_echo=$ac_try;;
26077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26078 (eval "$ac_try") 2>&5
26080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081 (exit $ac_status); }; } &&
26082 { ac_try='test -s conftest.$ac_objext'
26083 { (case "(($ac_try" in
26084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26085 *) ac_try_echo=$ac_try;;
26087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26088 (eval "$ac_try") 2>&5
26090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091 (exit $ac_status); }; }; then
26092 ac_cv_type_ptrdiff_t=yes
26094 echo "$as_me: failed program was:" >&5
26095 sed 's/^/| /' conftest.$ac_ext >&5
26097 ac_cv_type_ptrdiff_t=no
26100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26102 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
26103 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
26104 if test $ac_cv_type_ptrdiff_t = yes; then
26108 cat >>confdefs.h <<_ACEOF
26109 @%:@define ptrdiff_t int
26114 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
26115 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
26116 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
26117 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
26118 echo $ECHO_N "(cached) $ECHO_C" >&6
26120 cat >conftest.$ac_ext <<_ACEOF
26123 cat confdefs.h >>conftest.$ac_ext
26124 cat >>conftest.$ac_ext <<_ACEOF
26125 /* end confdefs.h. */
26126 $ac_includes_default
26127 typedef ptrdiff_t ac__type_new_;
26131 if ((ac__type_new_ *) 0)
26133 if (sizeof (ac__type_new_))
26139 rm -f conftest.$ac_objext
26140 if { (ac_try="$ac_compile"
26141 case "(($ac_try" in
26142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26143 *) ac_try_echo=$ac_try;;
26145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26146 (eval "$ac_compile") 2>conftest.er1
26148 grep -v '^ *+' conftest.er1 >conftest.err
26150 cat conftest.err >&5
26151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152 (exit $ac_status); } &&
26153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26154 { (case "(($ac_try" in
26155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26156 *) ac_try_echo=$ac_try;;
26158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26159 (eval "$ac_try") 2>&5
26161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162 (exit $ac_status); }; } &&
26163 { ac_try='test -s conftest.$ac_objext'
26164 { (case "(($ac_try" in
26165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26166 *) ac_try_echo=$ac_try;;
26168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26169 (eval "$ac_try") 2>&5
26171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172 (exit $ac_status); }; }; then
26173 ac_cv_type_ptrdiff_t=yes
26175 echo "$as_me: failed program was:" >&5
26176 sed 's/^/| /' conftest.$ac_ext >&5
26178 ac_cv_type_ptrdiff_t=no
26181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26183 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
26184 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
26185 if test $ac_cv_type_ptrdiff_t = yes; then
26189 cat >>confdefs.h <<_ACEOF
26190 @%:@define ptrdiff_t long
26195 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
26196 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
26197 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
26198 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
26199 echo $ECHO_N "(cached) $ECHO_C" >&6
26201 cat >conftest.$ac_ext <<_ACEOF
26204 cat confdefs.h >>conftest.$ac_ext
26205 cat >>conftest.$ac_ext <<_ACEOF
26206 /* end confdefs.h. */
26207 $ac_includes_default
26208 typedef ptrdiff_t ac__type_new_;
26212 if ((ac__type_new_ *) 0)
26214 if (sizeof (ac__type_new_))
26220 rm -f conftest.$ac_objext
26221 if { (ac_try="$ac_compile"
26222 case "(($ac_try" in
26223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26224 *) ac_try_echo=$ac_try;;
26226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26227 (eval "$ac_compile") 2>conftest.er1
26229 grep -v '^ *+' conftest.er1 >conftest.err
26231 cat conftest.err >&5
26232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233 (exit $ac_status); } &&
26234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26235 { (case "(($ac_try" in
26236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26237 *) ac_try_echo=$ac_try;;
26239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26240 (eval "$ac_try") 2>&5
26242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243 (exit $ac_status); }; } &&
26244 { ac_try='test -s conftest.$ac_objext'
26245 { (case "(($ac_try" in
26246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26247 *) ac_try_echo=$ac_try;;
26249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26250 (eval "$ac_try") 2>&5
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); }; }; then
26254 ac_cv_type_ptrdiff_t=yes
26256 echo "$as_me: failed program was:" >&5
26257 sed 's/^/| /' conftest.$ac_ext >&5
26259 ac_cv_type_ptrdiff_t=no
26262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26264 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
26265 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
26266 if test $ac_cv_type_ptrdiff_t = yes; then
26270 cat >>confdefs.h <<_ACEOF
26271 @%:@define ptrdiff_t long long
26277 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
26278 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
26279 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
26280 echo $ECHO_N "(cached) $ECHO_C" >&6
26282 cat >conftest.$ac_ext <<_ACEOF
26285 cat confdefs.h >>conftest.$ac_ext
26286 cat >>conftest.$ac_ext <<_ACEOF
26287 /* end confdefs.h. */
26288 $ac_includes_default
26289 typedef ptrdiff_t ac__type_new_;
26293 if ((ac__type_new_ *) 0)
26295 if (sizeof (ac__type_new_))
26301 rm -f conftest.$ac_objext
26302 if { (ac_try="$ac_compile"
26303 case "(($ac_try" in
26304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26305 *) ac_try_echo=$ac_try;;
26307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26308 (eval "$ac_compile") 2>conftest.er1
26310 grep -v '^ *+' conftest.er1 >conftest.err
26312 cat conftest.err >&5
26313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); } &&
26315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26316 { (case "(($ac_try" in
26317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26318 *) ac_try_echo=$ac_try;;
26320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26321 (eval "$ac_try") 2>&5
26323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324 (exit $ac_status); }; } &&
26325 { ac_try='test -s conftest.$ac_objext'
26326 { (case "(($ac_try" in
26327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26328 *) ac_try_echo=$ac_try;;
26330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26331 (eval "$ac_try") 2>&5
26333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); }; }; then
26335 ac_cv_type_ptrdiff_t=yes
26337 echo "$as_me: failed program was:" >&5
26338 sed 's/^/| /' conftest.$ac_ext >&5
26340 ac_cv_type_ptrdiff_t=no
26343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26345 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
26346 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
26347 if test $ac_cv_type_ptrdiff_t = yes; then
26351 cat >>confdefs.h <<_ACEOF
26352 @%:@define ptrdiff_t int
26360 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26361 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
26362 if test "${ac_cv_header_stat_broken+set}" = set; then
26363 echo $ECHO_N "(cached) $ECHO_C" >&6
26365 cat >conftest.$ac_ext <<_ACEOF
26368 cat confdefs.h >>conftest.$ac_ext
26369 cat >>conftest.$ac_ext <<_ACEOF
26370 /* end confdefs.h. */
26371 #include <sys/types.h>
26372 #include <sys/stat.h>
26374 #if defined S_ISBLK && defined S_IFDIR
26375 # if S_ISBLK (S_IFDIR)
26380 #if defined S_ISBLK && defined S_IFCHR
26381 # if S_ISBLK (S_IFCHR)
26386 #if defined S_ISLNK && defined S_IFREG
26387 # if S_ISLNK (S_IFREG)
26392 #if defined S_ISSOCK && defined S_IFREG
26393 # if S_ISSOCK (S_IFREG)
26399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26400 $EGREP "You lose" >/dev/null 2>&1; then
26401 ac_cv_header_stat_broken=yes
26403 ac_cv_header_stat_broken=no
26408 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26409 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
26410 if test $ac_cv_header_stat_broken = yes; then
26412 cat >>confdefs.h <<\_ACEOF
26413 @%:@define STAT_MACROS_BROKEN 1
26419 { echo "$as_me:$LINENO: checking whether @%:@! works in shell scripts" >&5
26420 echo $ECHO_N "checking whether @%:@! works in shell scripts... $ECHO_C" >&6; }
26421 if test "${ac_cv_sys_interpreter+set}" = set; then
26422 echo $ECHO_N "(cached) $ECHO_C" >&6
26428 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
26429 if test $? -ne 69; then
26430 ac_cv_sys_interpreter=yes
26432 ac_cv_sys_interpreter=no
26436 { echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
26437 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6; }
26438 interpval=$ac_cv_sys_interpreter
26440 if test $ac_cv_sys_interpreter = yes; then
26441 cat >>confdefs.h <<\_ACEOF
26442 @%:@define HAVE_HASH_BANG_EXEC 1
26447 if test "$ac_cv_func_lstat" = "no"; then
26448 { echo "$as_me:$LINENO: checking for lstat" >&5
26449 echo $ECHO_N "checking for lstat... $ECHO_C" >&6; }
26450 if test "${bash_cv_func_lstat+set}" = set; then
26451 echo $ECHO_N "(cached) $ECHO_C" >&6
26453 cat >conftest.$ac_ext <<_ACEOF
26456 cat confdefs.h >>conftest.$ac_ext
26457 cat >>conftest.$ac_ext <<_ACEOF
26458 /* end confdefs.h. */
26460 #include <sys/types.h>
26461 #include <sys/stat.h>
26466 lstat(".",(struct stat *)0);
26471 rm -f conftest.$ac_objext conftest$ac_exeext
26472 if { (ac_try="$ac_link"
26473 case "(($ac_try" in
26474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26475 *) ac_try_echo=$ac_try;;
26477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26478 (eval "$ac_link") 2>conftest.er1
26480 grep -v '^ *+' conftest.er1 >conftest.err
26482 cat conftest.err >&5
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); } &&
26485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26486 { (case "(($ac_try" in
26487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26488 *) ac_try_echo=$ac_try;;
26490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26491 (eval "$ac_try") 2>&5
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); }; } &&
26495 { ac_try='test -s conftest$ac_exeext'
26496 { (case "(($ac_try" in
26497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26498 *) ac_try_echo=$ac_try;;
26500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26501 (eval "$ac_try") 2>&5
26503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504 (exit $ac_status); }; }; then
26505 bash_cv_func_lstat=yes
26507 echo "$as_me: failed program was:" >&5
26508 sed 's/^/| /' conftest.$ac_ext >&5
26510 bash_cv_func_lstat=no
26513 rm -f core conftest.err conftest.$ac_objext \
26514 conftest$ac_exeext conftest.$ac_ext
26516 { echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
26517 echo "${ECHO_T}$bash_cv_func_lstat" >&6; }
26518 if test $bash_cv_func_lstat = yes; then
26519 cat >>confdefs.h <<\_ACEOF
26520 @%:@define HAVE_LSTAT 1
26528 { echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
26529 echo $ECHO_N "checking whether the ctype macros accept non-ascii characters... $ECHO_C" >&6; }
26530 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
26531 echo $ECHO_N "(cached) $ECHO_C" >&6
26533 if test "$cross_compiling" = yes; then
26534 { echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
26535 echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
26536 bash_cv_func_ctype_nonascii=no
26539 cat >conftest.$ac_ext <<_ACEOF
26542 cat confdefs.h >>conftest.$ac_ext
26543 cat >>conftest.$ac_ext <<_ACEOF
26544 /* end confdefs.h. */
26546 #ifdef HAVE_LOCALE_H
26547 #include <locale.h>
26560 #ifdef HAVE_SETLOCALE
26561 /* We take a shot here. If that locale is not known, try the
26562 system default. We try this one because '\342' (226) is
26563 known to be a printable character in that locale. */
26564 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
26565 if (deflocale == 0)
26566 deflocale = setlocale(LC_ALL, "");
26573 exit (r1 == 0 || r2 == 0);
26577 rm -f conftest$ac_exeext
26578 if { (ac_try="$ac_link"
26579 case "(($ac_try" in
26580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26581 *) ac_try_echo=$ac_try;;
26583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26584 (eval "$ac_link") 2>&5
26586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26588 { (case "(($ac_try" in
26589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26590 *) ac_try_echo=$ac_try;;
26592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26593 (eval "$ac_try") 2>&5
26595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596 (exit $ac_status); }; }; then
26597 bash_cv_func_ctype_nonascii=yes
26599 echo "$as_me: program exited with status $ac_status" >&5
26600 echo "$as_me: failed program was:" >&5
26601 sed 's/^/| /' conftest.$ac_ext >&5
26603 ( exit $ac_status )
26604 bash_cv_func_ctype_nonascii=no
26606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26612 { echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
26613 echo "${ECHO_T}$bash_cv_func_ctype_nonascii" >&6; }
26614 if test $bash_cv_func_ctype_nonascii = yes; then
26615 cat >>confdefs.h <<\_ACEOF
26616 @%:@define CTYPE_NON_ASCII 1
26621 { echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
26622 echo $ECHO_N "checking if dup2 fails to clear the close-on-exec flag... $ECHO_C" >&6; }
26623 if test "${bash_cv_dup2_broken+set}" = set; then
26624 echo $ECHO_N "(cached) $ECHO_C" >&6
26626 if test "$cross_compiling" = yes; then
26627 { echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
26628 echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
26629 bash_cv_dup2_broken=no
26631 cat >conftest.$ac_ext <<_ACEOF
26634 cat confdefs.h >>conftest.$ac_ext
26635 cat >>conftest.$ac_ext <<_ACEOF
26636 /* end confdefs.h. */
26638 #include <sys/types.h>
26643 fd1 = open("/dev/null", 2);
26644 if (fcntl(fd1, 2, 1) < 0)
26646 fd2 = dup2(fd1, 1);
26649 fl = fcntl(fd2, 1, 0);
26650 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
26655 rm -f conftest$ac_exeext
26656 if { (ac_try="$ac_link"
26657 case "(($ac_try" in
26658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26659 *) ac_try_echo=$ac_try;;
26661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26662 (eval "$ac_link") 2>&5
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26666 { (case "(($ac_try" in
26667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26668 *) ac_try_echo=$ac_try;;
26670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26671 (eval "$ac_try") 2>&5
26673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26674 (exit $ac_status); }; }; then
26675 bash_cv_dup2_broken=yes
26677 echo "$as_me: program exited with status $ac_status" >&5
26678 echo "$as_me: failed program was:" >&5
26679 sed 's/^/| /' conftest.$ac_ext >&5
26681 ( exit $ac_status )
26682 bash_cv_dup2_broken=no
26684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26691 { echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
26692 echo "${ECHO_T}$bash_cv_dup2_broken" >&6; }
26693 if test $bash_cv_dup2_broken = yes; then
26694 cat >>confdefs.h <<\_ACEOF
26695 @%:@define DUP2_BROKEN 1
26701 { echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
26702 echo $ECHO_N "checking whether pgrps need synchronization... $ECHO_C" >&6; }
26703 if test "${bash_cv_pgrp_pipe+set}" = set; then
26704 echo $ECHO_N "(cached) $ECHO_C" >&6
26706 if test "$cross_compiling" = yes; then
26707 { echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
26708 echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
26709 bash_cv_pgrp_pipe=no
26711 cat >conftest.$ac_ext <<_ACEOF
26714 cat confdefs.h >>conftest.$ac_ext
26715 cat >>conftest.$ac_ext <<_ACEOF
26716 /* end confdefs.h. */
26718 #ifdef HAVE_UNISTD_H
26719 # include <unistd.h>
26723 # ifdef GETPGRP_VOID
26724 # define getpgID() getpgrp()
26726 # define getpgID() getpgrp(0)
26727 # define setpgid(x,y) setpgrp(x,y)
26729 int pid1, pid2, fds[2];
26733 switch (pid1 = fork()) {
26737 setpgid(0, getpid());
26740 setpgid(pid1, pid1);
26742 sleep(2); /* let first child die */
26747 switch (pid2 = fork()) {
26752 ok = getpgID() == pid1;
26753 write(fds[1], &ok, 1);
26756 setpgid(pid2, pid1);
26759 if (read(fds[0], &ok, 1) != 1)
26767 rm -f conftest$ac_exeext
26768 if { (ac_try="$ac_link"
26769 case "(($ac_try" in
26770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26771 *) ac_try_echo=$ac_try;;
26773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26774 (eval "$ac_link") 2>&5
26776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26778 { (case "(($ac_try" in
26779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26780 *) ac_try_echo=$ac_try;;
26782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26783 (eval "$ac_try") 2>&5
26785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786 (exit $ac_status); }; }; then
26787 bash_cv_pgrp_pipe=no
26789 echo "$as_me: program exited with status $ac_status" >&5
26790 echo "$as_me: failed program was:" >&5
26791 sed 's/^/| /' conftest.$ac_ext >&5
26793 ( exit $ac_status )
26794 bash_cv_pgrp_pipe=yes
26796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26803 { echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
26804 echo "${ECHO_T}$bash_cv_pgrp_pipe" >&6; }
26805 if test $bash_cv_pgrp_pipe = yes; then
26806 cat >>confdefs.h <<\_ACEOF
26807 @%:@define PGRP_PIPE 1
26813 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
26814 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
26815 if test "${bash_cv_signal_vintage+set}" = set; then
26816 echo $ECHO_N "(cached) $ECHO_C" >&6
26819 cat >conftest.$ac_ext <<_ACEOF
26822 cat confdefs.h >>conftest.$ac_ext
26823 cat >>conftest.$ac_ext <<_ACEOF
26824 /* end confdefs.h. */
26825 #include <signal.h>
26831 struct sigaction sa;
26832 sigemptyset(&ss); sigsuspend(&ss);
26833 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26834 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26840 rm -f conftest.$ac_objext conftest$ac_exeext
26841 if { (ac_try="$ac_link"
26842 case "(($ac_try" in
26843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26844 *) ac_try_echo=$ac_try;;
26846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26847 (eval "$ac_link") 2>conftest.er1
26849 grep -v '^ *+' conftest.er1 >conftest.err
26851 cat conftest.err >&5
26852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853 (exit $ac_status); } &&
26854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26855 { (case "(($ac_try" in
26856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26857 *) ac_try_echo=$ac_try;;
26859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26860 (eval "$ac_try") 2>&5
26862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26863 (exit $ac_status); }; } &&
26864 { ac_try='test -s conftest$ac_exeext'
26865 { (case "(($ac_try" in
26866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26867 *) ac_try_echo=$ac_try;;
26869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26870 (eval "$ac_try") 2>&5
26872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873 (exit $ac_status); }; }; then
26874 bash_cv_signal_vintage=posix
26876 echo "$as_me: failed program was:" >&5
26877 sed 's/^/| /' conftest.$ac_ext >&5
26880 cat >conftest.$ac_ext <<_ACEOF
26883 cat confdefs.h >>conftest.$ac_ext
26884 cat >>conftest.$ac_ext <<_ACEOF
26885 /* end confdefs.h. */
26886 #include <signal.h>
26891 int mask = sigmask(SIGINT);
26892 sigsetmask(mask); sigblock(mask); sigpause(mask);
26898 rm -f conftest.$ac_objext conftest$ac_exeext
26899 if { (ac_try="$ac_link"
26900 case "(($ac_try" in
26901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26902 *) ac_try_echo=$ac_try;;
26904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26905 (eval "$ac_link") 2>conftest.er1
26907 grep -v '^ *+' conftest.er1 >conftest.err
26909 cat conftest.err >&5
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); } &&
26912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26913 { (case "(($ac_try" in
26914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26915 *) ac_try_echo=$ac_try;;
26917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26918 (eval "$ac_try") 2>&5
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); }; } &&
26922 { ac_try='test -s conftest$ac_exeext'
26923 { (case "(($ac_try" in
26924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925 *) ac_try_echo=$ac_try;;
26927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928 (eval "$ac_try") 2>&5
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); }; }; then
26932 bash_cv_signal_vintage=4.2bsd
26934 echo "$as_me: failed program was:" >&5
26935 sed 's/^/| /' conftest.$ac_ext >&5
26938 cat >conftest.$ac_ext <<_ACEOF
26941 cat confdefs.h >>conftest.$ac_ext
26942 cat >>conftest.$ac_ext <<_ACEOF
26943 /* end confdefs.h. */
26945 #include <signal.h>
26946 RETSIGTYPE foo() { }
26951 int mask = sigmask(SIGINT);
26952 sigset(SIGINT, foo); sigrelse(SIGINT);
26953 sighold(SIGINT); sigpause(SIGINT);
26959 rm -f conftest.$ac_objext conftest$ac_exeext
26960 if { (ac_try="$ac_link"
26961 case "(($ac_try" in
26962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26963 *) ac_try_echo=$ac_try;;
26965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26966 (eval "$ac_link") 2>conftest.er1
26968 grep -v '^ *+' conftest.er1 >conftest.err
26970 cat conftest.err >&5
26971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972 (exit $ac_status); } &&
26973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26974 { (case "(($ac_try" in
26975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26976 *) ac_try_echo=$ac_try;;
26978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26979 (eval "$ac_try") 2>&5
26981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982 (exit $ac_status); }; } &&
26983 { ac_try='test -s conftest$ac_exeext'
26984 { (case "(($ac_try" in
26985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26986 *) ac_try_echo=$ac_try;;
26988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26989 (eval "$ac_try") 2>&5
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); }; }; then
26993 bash_cv_signal_vintage=svr3
26995 echo "$as_me: failed program was:" >&5
26996 sed 's/^/| /' conftest.$ac_ext >&5
26998 bash_cv_signal_vintage=v7
27002 rm -f core conftest.err conftest.$ac_objext \
27003 conftest$ac_exeext conftest.$ac_ext
27007 rm -f core conftest.err conftest.$ac_objext \
27008 conftest$ac_exeext conftest.$ac_ext
27012 rm -f core conftest.err conftest.$ac_objext \
27013 conftest$ac_exeext conftest.$ac_ext
27017 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
27018 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
27019 if test "$bash_cv_signal_vintage" = posix; then
27020 cat >>confdefs.h <<\_ACEOF
27021 @%:@define HAVE_POSIX_SIGNALS 1
27024 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27025 cat >>confdefs.h <<\_ACEOF
27026 @%:@define HAVE_BSD_SIGNALS 1
27029 elif test "$bash_cv_signal_vintage" = svr3; then
27030 cat >>confdefs.h <<\_ACEOF
27031 @%:@define HAVE_USG_SIGHOLD 1
27037 { echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
27038 echo $ECHO_N "checking for sys_errlist and sys_nerr... $ECHO_C" >&6; }
27039 if test "${bash_cv_sys_errlist+set}" = set; then
27040 echo $ECHO_N "(cached) $ECHO_C" >&6
27042 cat >conftest.$ac_ext <<_ACEOF
27045 cat confdefs.h >>conftest.$ac_ext
27046 cat >>conftest.$ac_ext <<_ACEOF
27047 /* end confdefs.h. */
27052 extern char *sys_errlist[];
27053 extern int sys_nerr;
27054 char *msg = sys_errlist[sys_nerr - 1];
27059 rm -f conftest.$ac_objext conftest$ac_exeext
27060 if { (ac_try="$ac_link"
27061 case "(($ac_try" in
27062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27063 *) ac_try_echo=$ac_try;;
27065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27066 (eval "$ac_link") 2>conftest.er1
27068 grep -v '^ *+' conftest.er1 >conftest.err
27070 cat conftest.err >&5
27071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072 (exit $ac_status); } &&
27073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27074 { (case "(($ac_try" in
27075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27076 *) ac_try_echo=$ac_try;;
27078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27079 (eval "$ac_try") 2>&5
27081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082 (exit $ac_status); }; } &&
27083 { ac_try='test -s conftest$ac_exeext'
27084 { (case "(($ac_try" in
27085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27086 *) ac_try_echo=$ac_try;;
27088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27089 (eval "$ac_try") 2>&5
27091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092 (exit $ac_status); }; }; then
27093 bash_cv_sys_errlist=yes
27095 echo "$as_me: failed program was:" >&5
27096 sed 's/^/| /' conftest.$ac_ext >&5
27098 bash_cv_sys_errlist=no
27101 rm -f core conftest.err conftest.$ac_objext \
27102 conftest$ac_exeext conftest.$ac_ext
27104 { echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
27105 echo "${ECHO_T}$bash_cv_sys_errlist" >&6; }
27106 if test $bash_cv_sys_errlist = yes; then
27107 cat >>confdefs.h <<\_ACEOF
27108 @%:@define HAVE_SYS_ERRLIST 1
27114 { echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
27115 echo $ECHO_N "checking for sys_siglist in system C library... $ECHO_C" >&6; }
27116 if test "${bash_cv_sys_siglist+set}" = set; then
27117 echo $ECHO_N "(cached) $ECHO_C" >&6
27119 if test "$cross_compiling" = yes; then
27120 { echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
27121 echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
27122 bash_cv_sys_siglist=no
27124 cat >conftest.$ac_ext <<_ACEOF
27127 cat confdefs.h >>conftest.$ac_ext
27128 cat >>conftest.$ac_ext <<_ACEOF
27129 /* end confdefs.h. */
27131 #include <sys/types.h>
27132 #include <signal.h>
27133 #ifdef HAVE_UNISTD_H
27134 #include <unistd.h>
27136 #if !HAVE_DECL_SYS_SIGLIST
27137 extern char *sys_siglist[];
27141 char *msg = sys_siglist[2];
27145 rm -f conftest$ac_exeext
27146 if { (ac_try="$ac_link"
27147 case "(($ac_try" in
27148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27149 *) ac_try_echo=$ac_try;;
27151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27152 (eval "$ac_link") 2>&5
27154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27156 { (case "(($ac_try" in
27157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27158 *) ac_try_echo=$ac_try;;
27160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27161 (eval "$ac_try") 2>&5
27163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27164 (exit $ac_status); }; }; then
27165 bash_cv_sys_siglist=yes
27167 echo "$as_me: program exited with status $ac_status" >&5
27168 echo "$as_me: failed program was:" >&5
27169 sed 's/^/| /' conftest.$ac_ext >&5
27171 ( exit $ac_status )
27172 bash_cv_sys_siglist=no
27174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27180 { echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
27181 echo "${ECHO_T}$bash_cv_sys_siglist" >&6; }
27182 if test $bash_cv_sys_siglist = yes; then
27183 cat >>confdefs.h <<\_ACEOF
27184 @%:@define HAVE_SYS_SIGLIST 1
27189 { echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
27190 echo $ECHO_N "checking for _sys_siglist in signal.h or unistd.h... $ECHO_C" >&6; }
27191 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
27192 echo $ECHO_N "(cached) $ECHO_C" >&6
27194 cat >conftest.$ac_ext <<_ACEOF
27197 cat confdefs.h >>conftest.$ac_ext
27198 cat >>conftest.$ac_ext <<_ACEOF
27199 /* end confdefs.h. */
27201 #include <sys/types.h>
27202 #include <signal.h>
27203 #ifdef HAVE_UNISTD_H
27204 #include <unistd.h>
27209 char *msg = _sys_siglist[2];
27214 rm -f conftest.$ac_objext
27215 if { (ac_try="$ac_compile"
27216 case "(($ac_try" in
27217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27218 *) ac_try_echo=$ac_try;;
27220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27221 (eval "$ac_compile") 2>conftest.er1
27223 grep -v '^ *+' conftest.er1 >conftest.err
27225 cat conftest.err >&5
27226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227 (exit $ac_status); } &&
27228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27229 { (case "(($ac_try" in
27230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27231 *) ac_try_echo=$ac_try;;
27233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27234 (eval "$ac_try") 2>&5
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); }; } &&
27238 { ac_try='test -s conftest.$ac_objext'
27239 { (case "(($ac_try" in
27240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27241 *) ac_try_echo=$ac_try;;
27243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27244 (eval "$ac_try") 2>&5
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); }; }; then
27248 bash_cv_decl_under_sys_siglist=yes
27250 echo "$as_me: failed program was:" >&5
27251 sed 's/^/| /' conftest.$ac_ext >&5
27253 bash_cv_decl_under_sys_siglist=no
27256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27258 { echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
27259 echo "${ECHO_T}$bash_cv_decl_under_sys_siglist" >&6; }
27260 if test $bash_cv_decl_under_sys_siglist = yes; then
27261 cat >>confdefs.h <<\_ACEOF
27262 @%:@define UNDER_SYS_SIGLIST_DECLARED 1
27268 { echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
27269 echo $ECHO_N "checking for _sys_siglist in system C library... $ECHO_C" >&6; }
27270 if test "${bash_cv_under_sys_siglist+set}" = set; then
27271 echo $ECHO_N "(cached) $ECHO_C" >&6
27273 if test "$cross_compiling" = yes; then
27274 { echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
27275 echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
27276 bash_cv_under_sys_siglist=no
27278 cat >conftest.$ac_ext <<_ACEOF
27281 cat confdefs.h >>conftest.$ac_ext
27282 cat >>conftest.$ac_ext <<_ACEOF
27283 /* end confdefs.h. */
27285 #include <sys/types.h>
27286 #include <signal.h>
27287 #ifdef HAVE_UNISTD_H
27288 #include <unistd.h>
27290 #ifndef UNDER_SYS_SIGLIST_DECLARED
27291 extern char *_sys_siglist[];
27295 char *msg = (char *)_sys_siglist[2];
27299 rm -f conftest$ac_exeext
27300 if { (ac_try="$ac_link"
27301 case "(($ac_try" in
27302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27303 *) ac_try_echo=$ac_try;;
27305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306 (eval "$ac_link") 2>&5
27308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27310 { (case "(($ac_try" in
27311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27312 *) ac_try_echo=$ac_try;;
27314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27315 (eval "$ac_try") 2>&5
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318 (exit $ac_status); }; }; then
27319 bash_cv_under_sys_siglist=yes
27321 echo "$as_me: program exited with status $ac_status" >&5
27322 echo "$as_me: failed program was:" >&5
27323 sed 's/^/| /' conftest.$ac_ext >&5
27325 ( exit $ac_status )
27326 bash_cv_under_sys_siglist=no
27328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27334 { echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
27335 echo "${ECHO_T}$bash_cv_under_sys_siglist" >&6; }
27336 if test $bash_cv_under_sys_siglist = yes; then
27337 cat >>confdefs.h <<\_ACEOF
27338 @%:@define HAVE_UNDER_SYS_SIGLIST 1
27344 { echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
27345 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6; }
27346 if test "${bash_cv_void_sighandler+set}" = set; then
27347 echo $ECHO_N "(cached) $ECHO_C" >&6
27349 cat >conftest.$ac_ext <<_ACEOF
27352 cat confdefs.h >>conftest.$ac_ext
27353 cat >>conftest.$ac_ext <<_ACEOF
27354 /* end confdefs.h. */
27355 #include <sys/types.h>
27356 #include <signal.h>
27363 void (*signal ()) ();
27372 rm -f conftest.$ac_objext
27373 if { (ac_try="$ac_compile"
27374 case "(($ac_try" in
27375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27376 *) ac_try_echo=$ac_try;;
27378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27379 (eval "$ac_compile") 2>conftest.er1
27381 grep -v '^ *+' conftest.er1 >conftest.err
27383 cat conftest.err >&5
27384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385 (exit $ac_status); } &&
27386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27387 { (case "(($ac_try" in
27388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27389 *) ac_try_echo=$ac_try;;
27391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27392 (eval "$ac_try") 2>&5
27394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395 (exit $ac_status); }; } &&
27396 { ac_try='test -s conftest.$ac_objext'
27397 { (case "(($ac_try" in
27398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27399 *) ac_try_echo=$ac_try;;
27401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27402 (eval "$ac_try") 2>&5
27404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405 (exit $ac_status); }; }; then
27406 bash_cv_void_sighandler=yes
27408 echo "$as_me: failed program was:" >&5
27409 sed 's/^/| /' conftest.$ac_ext >&5
27411 bash_cv_void_sighandler=no
27414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27416 { echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
27417 echo "${ECHO_T}$bash_cv_void_sighandler" >&6; }
27418 if test $bash_cv_void_sighandler = yes; then
27419 cat >>confdefs.h <<\_ACEOF
27420 @%:@define VOID_SIGHANDLER 1
27427 { echo "$as_me:$LINENO: checking for clock_t" >&5
27428 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
27429 if test "${bash_cv_type_clock_t+set}" = set; then
27430 echo $ECHO_N "(cached) $ECHO_C" >&6
27432 cat >conftest.$ac_ext <<_ACEOF
27435 cat confdefs.h >>conftest.$ac_ext
27436 cat >>conftest.$ac_ext <<_ACEOF
27437 /* end confdefs.h. */
27438 #include <sys/types.h>
27440 #include <stdlib.h>
27441 #include <stddef.h>
27443 #if HAVE_INTTYPES_H
27444 #include <inttypes.h>
27446 #include <sys/times.h>
27449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27450 $EGREP "clock_t" >/dev/null 2>&1; then
27451 bash_cv_type_clock_t=yes
27453 bash_cv_type_clock_t=no
27459 { echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
27460 echo "${ECHO_T}$bash_cv_type_clock_t" >&6; }
27462 if test $bash_cv_type_clock_t = no; then
27463 cat >>confdefs.h <<_ACEOF
27464 @%:@define clock_t long
27471 { echo "$as_me:$LINENO: checking for sigset_t" >&5
27472 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
27473 if test "${bash_cv_type_sigset_t+set}" = set; then
27474 echo $ECHO_N "(cached) $ECHO_C" >&6
27476 cat >conftest.$ac_ext <<_ACEOF
27479 cat confdefs.h >>conftest.$ac_ext
27480 cat >>conftest.$ac_ext <<_ACEOF
27481 /* end confdefs.h. */
27482 #include <sys/types.h>
27484 #include <stdlib.h>
27485 #include <stddef.h>
27487 #if HAVE_INTTYPES_H
27488 #include <inttypes.h>
27490 #include <signal.h>
27493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27494 $EGREP "sigset_t" >/dev/null 2>&1; then
27495 bash_cv_type_sigset_t=yes
27497 bash_cv_type_sigset_t=no
27503 { echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
27504 echo "${ECHO_T}$bash_cv_type_sigset_t" >&6; }
27506 if test $bash_cv_type_sigset_t = no; then
27507 cat >>confdefs.h <<_ACEOF
27508 @%:@define sigset_t int
27515 { echo "$as_me:$LINENO: checking for quad_t" >&5
27516 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6; }
27517 if test "${bash_cv_type_quad_t+set}" = set; then
27518 echo $ECHO_N "(cached) $ECHO_C" >&6
27520 cat >conftest.$ac_ext <<_ACEOF
27523 cat confdefs.h >>conftest.$ac_ext
27524 cat >>conftest.$ac_ext <<_ACEOF
27525 /* end confdefs.h. */
27526 #include <sys/types.h>
27528 #include <stdlib.h>
27529 #include <stddef.h>
27531 #if HAVE_INTTYPES_H
27532 #include <inttypes.h>
27537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27538 $EGREP "quad_t" >/dev/null 2>&1; then
27539 bash_cv_type_quad_t=yes
27541 bash_cv_type_quad_t=no
27547 { echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
27548 echo "${ECHO_T}$bash_cv_type_quad_t" >&6; }
27549 if test $bash_cv_type_quad_t = yes; then
27550 cat >>confdefs.h <<\_ACEOF
27551 @%:@define HAVE_QUAD_T 1
27555 if test $bash_cv_type_quad_t = no; then
27556 cat >>confdefs.h <<_ACEOF
27557 @%:@define quad_t long
27564 { echo "$as_me:$LINENO: checking for intmax_t" >&5
27565 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
27566 if test "${bash_cv_type_intmax_t+set}" = set; then
27567 echo $ECHO_N "(cached) $ECHO_C" >&6
27569 cat >conftest.$ac_ext <<_ACEOF
27572 cat confdefs.h >>conftest.$ac_ext
27573 cat >>conftest.$ac_ext <<_ACEOF
27574 /* end confdefs.h. */
27575 #include <sys/types.h>
27577 #include <stdlib.h>
27578 #include <stddef.h>
27580 #if HAVE_INTTYPES_H
27581 #include <inttypes.h>
27586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27587 $EGREP "intmax_t" >/dev/null 2>&1; then
27588 bash_cv_type_intmax_t=yes
27590 bash_cv_type_intmax_t=no
27596 { echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
27597 echo "${ECHO_T}$bash_cv_type_intmax_t" >&6; }
27599 if test $bash_cv_type_intmax_t = no; then
27600 cat >>confdefs.h <<_ACEOF
27601 @%:@define intmax_t $bash_cv_type_long_long
27608 { echo "$as_me:$LINENO: checking for uintmax_t" >&5
27609 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
27610 if test "${bash_cv_type_uintmax_t+set}" = set; then
27611 echo $ECHO_N "(cached) $ECHO_C" >&6
27613 cat >conftest.$ac_ext <<_ACEOF
27616 cat confdefs.h >>conftest.$ac_ext
27617 cat >>conftest.$ac_ext <<_ACEOF
27618 /* end confdefs.h. */
27619 #include <sys/types.h>
27621 #include <stdlib.h>
27622 #include <stddef.h>
27624 #if HAVE_INTTYPES_H
27625 #include <inttypes.h>
27630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27631 $EGREP "uintmax_t" >/dev/null 2>&1; then
27632 bash_cv_type_uintmax_t=yes
27634 bash_cv_type_uintmax_t=no
27640 { echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
27641 echo "${ECHO_T}$bash_cv_type_uintmax_t" >&6; }
27643 if test $bash_cv_type_uintmax_t = no; then
27644 cat >>confdefs.h <<_ACEOF
27645 @%:@define uintmax_t $bash_cv_type_unsigned_long_long
27650 if test "$ac_cv_header_sys_socket_h" = "yes"; then
27653 { echo "$as_me:$LINENO: checking for socklen_t" >&5
27654 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
27655 if test "${bash_cv_type_socklen_t+set}" = set; then
27656 echo $ECHO_N "(cached) $ECHO_C" >&6
27658 cat >conftest.$ac_ext <<_ACEOF
27661 cat confdefs.h >>conftest.$ac_ext
27662 cat >>conftest.$ac_ext <<_ACEOF
27663 /* end confdefs.h. */
27664 #include <sys/types.h>
27666 #include <stdlib.h>
27667 #include <stddef.h>
27669 #if HAVE_INTTYPES_H
27670 #include <inttypes.h>
27672 #include <sys/socket.h>
27675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27676 $EGREP "socklen_t" >/dev/null 2>&1; then
27677 bash_cv_type_socklen_t=yes
27679 bash_cv_type_socklen_t=no
27685 { echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
27686 echo "${ECHO_T}$bash_cv_type_socklen_t" >&6; }
27687 if test $bash_cv_type_socklen_t = yes; then
27688 cat >>confdefs.h <<\_ACEOF
27689 @%:@define HAVE_SOCKLEN_T 1
27693 if test $bash_cv_type_socklen_t = no; then
27694 cat >>confdefs.h <<_ACEOF
27695 @%:@define socklen_t int
27701 { echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
27702 echo $ECHO_N "checking for size and type of struct rlimit fields... $ECHO_C" >&6; }
27703 if test "${bash_cv_type_rlimit+set}" = set; then
27704 echo $ECHO_N "(cached) $ECHO_C" >&6
27706 cat >conftest.$ac_ext <<_ACEOF
27709 cat confdefs.h >>conftest.$ac_ext
27710 cat >>conftest.$ac_ext <<_ACEOF
27711 /* end confdefs.h. */
27712 #include <sys/types.h>
27713 #include <sys/resource.h>
27722 rm -f conftest.$ac_objext
27723 if { (ac_try="$ac_compile"
27724 case "(($ac_try" in
27725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27726 *) ac_try_echo=$ac_try;;
27728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27729 (eval "$ac_compile") 2>conftest.er1
27731 grep -v '^ *+' conftest.er1 >conftest.err
27733 cat conftest.err >&5
27734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735 (exit $ac_status); } &&
27736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27737 { (case "(($ac_try" in
27738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27739 *) ac_try_echo=$ac_try;;
27741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27742 (eval "$ac_try") 2>&5
27744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745 (exit $ac_status); }; } &&
27746 { ac_try='test -s conftest.$ac_objext'
27747 { (case "(($ac_try" in
27748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27749 *) ac_try_echo=$ac_try;;
27751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27752 (eval "$ac_try") 2>&5
27754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755 (exit $ac_status); }; }; then
27756 bash_cv_type_rlimit=rlim_t
27758 echo "$as_me: failed program was:" >&5
27759 sed 's/^/| /' conftest.$ac_ext >&5
27762 if test "$cross_compiling" = yes; then
27763 { echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
27764 echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
27765 bash_cv_type_rlimit=long
27767 cat >conftest.$ac_ext <<_ACEOF
27770 cat confdefs.h >>conftest.$ac_ext
27771 cat >>conftest.$ac_ext <<_ACEOF
27772 /* end confdefs.h. */
27774 #include <sys/types.h>
27775 #include <sys/time.h>
27776 #include <sys/resource.h>
27781 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
27787 rm -f conftest$ac_exeext
27788 if { (ac_try="$ac_link"
27789 case "(($ac_try" in
27790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27791 *) ac_try_echo=$ac_try;;
27793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27794 (eval "$ac_link") 2>&5
27796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27798 { (case "(($ac_try" in
27799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27800 *) ac_try_echo=$ac_try;;
27802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27803 (eval "$ac_try") 2>&5
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); }; }; then
27807 bash_cv_type_rlimit=quad_t
27809 echo "$as_me: program exited with status $ac_status" >&5
27810 echo "$as_me: failed program was:" >&5
27811 sed 's/^/| /' conftest.$ac_ext >&5
27813 ( exit $ac_status )
27814 bash_cv_type_rlimit=long
27816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27826 { echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
27827 echo "${ECHO_T}$bash_cv_type_rlimit" >&6; }
27828 if test $bash_cv_type_rlimit = quad_t; then
27829 cat >>confdefs.h <<\_ACEOF
27830 @%:@define RLIMTYPE quad_t
27833 elif test $bash_cv_type_rlimit = rlim_t; then
27834 cat >>confdefs.h <<\_ACEOF
27835 @%:@define RLIMTYPE rlim_t
27842 { echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
27843 echo $ECHO_N "checking for struct termios.c_line... $ECHO_C" >&6; }
27844 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
27845 echo $ECHO_N "(cached) $ECHO_C" >&6
27847 cat >conftest.$ac_ext <<_ACEOF
27850 cat confdefs.h >>conftest.$ac_ext
27851 cat >>conftest.$ac_ext <<_ACEOF
27852 /* end confdefs.h. */
27854 #include <sys/types.h>
27855 #include <termios.h>
27861 static struct termios ac_aggr;
27862 if (ac_aggr.c_line)
27868 rm -f conftest.$ac_objext
27869 if { (ac_try="$ac_compile"
27870 case "(($ac_try" in
27871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27872 *) ac_try_echo=$ac_try;;
27874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27875 (eval "$ac_compile") 2>conftest.er1
27877 grep -v '^ *+' conftest.er1 >conftest.err
27879 cat conftest.err >&5
27880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); } &&
27882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27883 { (case "(($ac_try" in
27884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27885 *) ac_try_echo=$ac_try;;
27887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27888 (eval "$ac_try") 2>&5
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); }; } &&
27892 { ac_try='test -s conftest.$ac_objext'
27893 { (case "(($ac_try" in
27894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27895 *) ac_try_echo=$ac_try;;
27897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27898 (eval "$ac_try") 2>&5
27900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); }; }; then
27902 ac_cv_member_struct_termios_c_line=yes
27904 echo "$as_me: failed program was:" >&5
27905 sed 's/^/| /' conftest.$ac_ext >&5
27907 cat >conftest.$ac_ext <<_ACEOF
27910 cat confdefs.h >>conftest.$ac_ext
27911 cat >>conftest.$ac_ext <<_ACEOF
27912 /* end confdefs.h. */
27914 #include <sys/types.h>
27915 #include <termios.h>
27921 static struct termios ac_aggr;
27922 if (sizeof ac_aggr.c_line)
27928 rm -f conftest.$ac_objext
27929 if { (ac_try="$ac_compile"
27930 case "(($ac_try" in
27931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27932 *) ac_try_echo=$ac_try;;
27934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27935 (eval "$ac_compile") 2>conftest.er1
27937 grep -v '^ *+' conftest.er1 >conftest.err
27939 cat conftest.err >&5
27940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27941 (exit $ac_status); } &&
27942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27943 { (case "(($ac_try" in
27944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27945 *) ac_try_echo=$ac_try;;
27947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27948 (eval "$ac_try") 2>&5
27950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951 (exit $ac_status); }; } &&
27952 { ac_try='test -s conftest.$ac_objext'
27953 { (case "(($ac_try" in
27954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27955 *) ac_try_echo=$ac_try;;
27957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27958 (eval "$ac_try") 2>&5
27960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961 (exit $ac_status); }; }; then
27962 ac_cv_member_struct_termios_c_line=yes
27964 echo "$as_me: failed program was:" >&5
27965 sed 's/^/| /' conftest.$ac_ext >&5
27967 ac_cv_member_struct_termios_c_line=no
27970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27975 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
27976 echo "${ECHO_T}$ac_cv_member_struct_termios_c_line" >&6; }
27977 if test $ac_cv_member_struct_termios_c_line = yes; then
27978 cat >>confdefs.h <<\_ACEOF
27979 @%:@define TERMIOS_LDISC 1
27986 { echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
27987 echo $ECHO_N "checking for struct termio.c_line... $ECHO_C" >&6; }
27988 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
27989 echo $ECHO_N "(cached) $ECHO_C" >&6
27991 cat >conftest.$ac_ext <<_ACEOF
27994 cat confdefs.h >>conftest.$ac_ext
27995 cat >>conftest.$ac_ext <<_ACEOF
27996 /* end confdefs.h. */
27998 #include <sys/types.h>
27999 #include <termio.h>
28005 static struct termio ac_aggr;
28006 if (ac_aggr.c_line)
28012 rm -f conftest.$ac_objext
28013 if { (ac_try="$ac_compile"
28014 case "(($ac_try" in
28015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28016 *) ac_try_echo=$ac_try;;
28018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28019 (eval "$ac_compile") 2>conftest.er1
28021 grep -v '^ *+' conftest.er1 >conftest.err
28023 cat conftest.err >&5
28024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28025 (exit $ac_status); } &&
28026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28027 { (case "(($ac_try" in
28028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28029 *) ac_try_echo=$ac_try;;
28031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28032 (eval "$ac_try") 2>&5
28034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035 (exit $ac_status); }; } &&
28036 { ac_try='test -s conftest.$ac_objext'
28037 { (case "(($ac_try" in
28038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28039 *) ac_try_echo=$ac_try;;
28041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28042 (eval "$ac_try") 2>&5
28044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28045 (exit $ac_status); }; }; then
28046 ac_cv_member_struct_termio_c_line=yes
28048 echo "$as_me: failed program was:" >&5
28049 sed 's/^/| /' conftest.$ac_ext >&5
28051 cat >conftest.$ac_ext <<_ACEOF
28054 cat confdefs.h >>conftest.$ac_ext
28055 cat >>conftest.$ac_ext <<_ACEOF
28056 /* end confdefs.h. */
28058 #include <sys/types.h>
28059 #include <termio.h>
28065 static struct termio ac_aggr;
28066 if (sizeof ac_aggr.c_line)
28072 rm -f conftest.$ac_objext
28073 if { (ac_try="$ac_compile"
28074 case "(($ac_try" in
28075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28076 *) ac_try_echo=$ac_try;;
28078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28079 (eval "$ac_compile") 2>conftest.er1
28081 grep -v '^ *+' conftest.er1 >conftest.err
28083 cat conftest.err >&5
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); } &&
28086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28087 { (case "(($ac_try" in
28088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28089 *) ac_try_echo=$ac_try;;
28091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28092 (eval "$ac_try") 2>&5
28094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095 (exit $ac_status); }; } &&
28096 { ac_try='test -s conftest.$ac_objext'
28097 { (case "(($ac_try" in
28098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28099 *) ac_try_echo=$ac_try;;
28101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28102 (eval "$ac_try") 2>&5
28104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105 (exit $ac_status); }; }; then
28106 ac_cv_member_struct_termio_c_line=yes
28108 echo "$as_me: failed program was:" >&5
28109 sed 's/^/| /' conftest.$ac_ext >&5
28111 ac_cv_member_struct_termio_c_line=no
28114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28119 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
28120 echo "${ECHO_T}$ac_cv_member_struct_termio_c_line" >&6; }
28121 if test $ac_cv_member_struct_termio_c_line = yes; then
28122 cat >>confdefs.h <<\_ACEOF
28123 @%:@define TERMIO_LDISC 1
28130 { echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
28131 echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6; }
28132 if test "${bash_cv_dirent_has_dino+set}" = set; then
28133 echo $ECHO_N "(cached) $ECHO_C" >&6
28135 cat >conftest.$ac_ext <<_ACEOF
28138 cat confdefs.h >>conftest.$ac_ext
28139 cat >>conftest.$ac_ext <<_ACEOF
28140 /* end confdefs.h. */
28143 #include <sys/types.h>
28144 #ifdef HAVE_UNISTD_H
28145 # include <unistd.h>
28146 #endif /* HAVE_UNISTD_H */
28147 #if defined(HAVE_DIRENT_H)
28148 # include <dirent.h>
28150 # define dirent direct
28151 # ifdef HAVE_SYS_NDIR_H
28152 # include <sys/ndir.h>
28153 # endif /* SYSNDIR */
28154 # ifdef HAVE_SYS_DIR_H
28155 # include <sys/dir.h>
28156 # endif /* SYSDIR */
28157 # ifdef HAVE_NDIR_H
28160 #endif /* HAVE_DIRENT_H */
28166 struct dirent d; int z; z = d.d_ino;
28172 rm -f conftest.$ac_objext
28173 if { (ac_try="$ac_compile"
28174 case "(($ac_try" in
28175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28176 *) ac_try_echo=$ac_try;;
28178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28179 (eval "$ac_compile") 2>conftest.er1
28181 grep -v '^ *+' conftest.er1 >conftest.err
28183 cat conftest.err >&5
28184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28185 (exit $ac_status); } &&
28186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28187 { (case "(($ac_try" in
28188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28189 *) ac_try_echo=$ac_try;;
28191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28192 (eval "$ac_try") 2>&5
28194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195 (exit $ac_status); }; } &&
28196 { ac_try='test -s conftest.$ac_objext'
28197 { (case "(($ac_try" in
28198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199 *) ac_try_echo=$ac_try;;
28201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202 (eval "$ac_try") 2>&5
28204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205 (exit $ac_status); }; }; then
28206 bash_cv_dirent_has_dino=yes
28208 echo "$as_me: failed program was:" >&5
28209 sed 's/^/| /' conftest.$ac_ext >&5
28211 bash_cv_dirent_has_dino=no
28214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28217 { echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
28218 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6; }
28219 if test $bash_cv_dirent_has_dino = yes; then
28220 cat >>confdefs.h <<\_ACEOF
28221 @%:@define HAVE_STRUCT_DIRENT_D_INO 1
28227 { echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
28228 echo $ECHO_N "checking for struct dirent.d_fileno... $ECHO_C" >&6; }
28229 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
28230 echo $ECHO_N "(cached) $ECHO_C" >&6
28232 cat >conftest.$ac_ext <<_ACEOF
28235 cat confdefs.h >>conftest.$ac_ext
28236 cat >>conftest.$ac_ext <<_ACEOF
28237 /* end confdefs.h. */
28240 #include <sys/types.h>
28241 #ifdef HAVE_UNISTD_H
28242 # include <unistd.h>
28243 #endif /* HAVE_UNISTD_H */
28244 #if defined(HAVE_DIRENT_H)
28245 # include <dirent.h>
28247 # define dirent direct
28248 # ifdef HAVE_SYS_NDIR_H
28249 # include <sys/ndir.h>
28250 # endif /* SYSNDIR */
28251 # ifdef HAVE_SYS_DIR_H
28252 # include <sys/dir.h>
28253 # endif /* SYSDIR */
28254 # ifdef HAVE_NDIR_H
28257 #endif /* HAVE_DIRENT_H */
28263 struct dirent d; int z; z = d.d_fileno;
28269 rm -f conftest.$ac_objext
28270 if { (ac_try="$ac_compile"
28271 case "(($ac_try" in
28272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28273 *) ac_try_echo=$ac_try;;
28275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28276 (eval "$ac_compile") 2>conftest.er1
28278 grep -v '^ *+' conftest.er1 >conftest.err
28280 cat conftest.err >&5
28281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282 (exit $ac_status); } &&
28283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28284 { (case "(($ac_try" in
28285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28286 *) ac_try_echo=$ac_try;;
28288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28289 (eval "$ac_try") 2>&5
28291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292 (exit $ac_status); }; } &&
28293 { ac_try='test -s conftest.$ac_objext'
28294 { (case "(($ac_try" in
28295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28296 *) ac_try_echo=$ac_try;;
28298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28299 (eval "$ac_try") 2>&5
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); }; }; then
28303 bash_cv_dirent_has_d_fileno=yes
28305 echo "$as_me: failed program was:" >&5
28306 sed 's/^/| /' conftest.$ac_ext >&5
28308 bash_cv_dirent_has_d_fileno=no
28311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28314 { echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
28315 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6; }
28316 if test $bash_cv_dirent_has_d_fileno = yes; then
28317 cat >>confdefs.h <<\_ACEOF
28318 @%:@define HAVE_STRUCT_DIRENT_D_FILENO 1
28324 { echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
28325 echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6; }
28326 if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
28327 echo $ECHO_N "(cached) $ECHO_C" >&6
28329 cat >conftest.$ac_ext <<_ACEOF
28332 cat confdefs.h >>conftest.$ac_ext
28333 cat >>conftest.$ac_ext <<_ACEOF
28334 /* end confdefs.h. */
28337 #include <sys/types.h>
28338 #ifdef HAVE_UNISTD_H
28339 # include <unistd.h>
28340 #endif /* HAVE_UNISTD_H */
28341 #if defined(HAVE_DIRENT_H)
28342 # include <dirent.h>
28344 # define dirent direct
28345 # ifdef HAVE_SYS_NDIR_H
28346 # include <sys/ndir.h>
28347 # endif /* SYSNDIR */
28348 # ifdef HAVE_SYS_DIR_H
28349 # include <sys/dir.h>
28350 # endif /* SYSDIR */
28351 # ifdef HAVE_NDIR_H
28354 #endif /* HAVE_DIRENT_H */
28360 struct dirent d; int z; z = d.d_namlen;
28366 rm -f conftest.$ac_objext
28367 if { (ac_try="$ac_compile"
28368 case "(($ac_try" in
28369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28370 *) ac_try_echo=$ac_try;;
28372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28373 (eval "$ac_compile") 2>conftest.er1
28375 grep -v '^ *+' conftest.er1 >conftest.err
28377 cat conftest.err >&5
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); } &&
28380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28381 { (case "(($ac_try" in
28382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28383 *) ac_try_echo=$ac_try;;
28385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28386 (eval "$ac_try") 2>&5
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); }; } &&
28390 { ac_try='test -s conftest.$ac_objext'
28391 { (case "(($ac_try" in
28392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28393 *) ac_try_echo=$ac_try;;
28395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28396 (eval "$ac_try") 2>&5
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); }; }; then
28400 bash_cv_dirent_has_d_namlen=yes
28402 echo "$as_me: failed program was:" >&5
28403 sed 's/^/| /' conftest.$ac_ext >&5
28405 bash_cv_dirent_has_d_namlen=no
28408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28411 { echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
28412 echo "${ECHO_T}$bash_cv_dirent_has_d_namlen" >&6; }
28413 if test $bash_cv_dirent_has_d_namlen = yes; then
28414 cat >>confdefs.h <<\_ACEOF
28415 @%:@define HAVE_STRUCT_DIRENT_D_NAMLEN 1
28420 { echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
28421 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6; }
28422 if test "${bash_cv_struct_winsize_header+set}" = set; then
28423 echo $ECHO_N "(cached) $ECHO_C" >&6
28425 cat >conftest.$ac_ext <<_ACEOF
28428 cat confdefs.h >>conftest.$ac_ext
28429 cat >>conftest.$ac_ext <<_ACEOF
28430 /* end confdefs.h. */
28431 #include <sys/types.h>
28432 #include <sys/ioctl.h>
28441 rm -f conftest.$ac_objext
28442 if { (ac_try="$ac_compile"
28443 case "(($ac_try" in
28444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28445 *) ac_try_echo=$ac_try;;
28447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28448 (eval "$ac_compile") 2>conftest.er1
28450 grep -v '^ *+' conftest.er1 >conftest.err
28452 cat conftest.err >&5
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); } &&
28455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28456 { (case "(($ac_try" in
28457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28458 *) ac_try_echo=$ac_try;;
28460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28461 (eval "$ac_try") 2>&5
28463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464 (exit $ac_status); }; } &&
28465 { ac_try='test -s conftest.$ac_objext'
28466 { (case "(($ac_try" in
28467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28468 *) ac_try_echo=$ac_try;;
28470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28471 (eval "$ac_try") 2>&5
28473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474 (exit $ac_status); }; }; then
28475 bash_cv_struct_winsize_header=ioctl_h
28477 echo "$as_me: failed program was:" >&5
28478 sed 's/^/| /' conftest.$ac_ext >&5
28480 cat >conftest.$ac_ext <<_ACEOF
28483 cat confdefs.h >>conftest.$ac_ext
28484 cat >>conftest.$ac_ext <<_ACEOF
28485 /* end confdefs.h. */
28486 #include <sys/types.h>
28487 #include <termios.h>
28496 rm -f conftest.$ac_objext
28497 if { (ac_try="$ac_compile"
28498 case "(($ac_try" in
28499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28500 *) ac_try_echo=$ac_try;;
28502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28503 (eval "$ac_compile") 2>conftest.er1
28505 grep -v '^ *+' conftest.er1 >conftest.err
28507 cat conftest.err >&5
28508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509 (exit $ac_status); } &&
28510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28511 { (case "(($ac_try" in
28512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28513 *) ac_try_echo=$ac_try;;
28515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28516 (eval "$ac_try") 2>&5
28518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519 (exit $ac_status); }; } &&
28520 { ac_try='test -s conftest.$ac_objext'
28521 { (case "(($ac_try" in
28522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28523 *) ac_try_echo=$ac_try;;
28525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28526 (eval "$ac_try") 2>&5
28528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); }; }; then
28530 bash_cv_struct_winsize_header=termios_h
28532 echo "$as_me: failed program was:" >&5
28533 sed 's/^/| /' conftest.$ac_ext >&5
28535 bash_cv_struct_winsize_header=other
28538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28545 if test $bash_cv_struct_winsize_header = ioctl_h; then
28546 { echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
28547 echo "${ECHO_T}sys/ioctl.h" >&6; }
28548 cat >>confdefs.h <<\_ACEOF
28549 @%:@define STRUCT_WINSIZE_IN_SYS_IOCTL 1
28552 elif test $bash_cv_struct_winsize_header = termios_h; then
28553 { echo "$as_me:$LINENO: result: termios.h" >&5
28554 echo "${ECHO_T}termios.h" >&6; }
28555 cat >>confdefs.h <<\_ACEOF
28556 @%:@define STRUCT_WINSIZE_IN_TERMIOS 1
28560 { echo "$as_me:$LINENO: result: not found" >&5
28561 echo "${ECHO_T}not found" >&6; }
28564 { echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
28565 echo $ECHO_N "checking for struct timeval in sys/time.h and time.h... $ECHO_C" >&6; }
28566 if test "${bash_cv_struct_timeval+set}" = set; then
28567 echo $ECHO_N "(cached) $ECHO_C" >&6
28570 cat >conftest.$ac_ext <<_ACEOF
28573 cat confdefs.h >>conftest.$ac_ext
28574 cat >>conftest.$ac_ext <<_ACEOF
28575 /* end confdefs.h. */
28576 #include <sys/time.h>
28579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28580 $EGREP "struct timeval" >/dev/null 2>&1; then
28581 bash_cv_struct_timeval=yes
28583 cat >conftest.$ac_ext <<_ACEOF
28586 cat confdefs.h >>conftest.$ac_ext
28587 cat >>conftest.$ac_ext <<_ACEOF
28588 /* end confdefs.h. */
28592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28593 $EGREP "struct timeval" >/dev/null 2>&1; then
28594 bash_cv_struct_timeval=yes
28596 bash_cv_struct_timeval=no
28606 { echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
28607 echo "${ECHO_T}$bash_cv_struct_timeval" >&6; }
28608 if test $bash_cv_struct_timeval = yes; then
28609 cat >>confdefs.h <<\_ACEOF
28610 @%:@define HAVE_TIMEVAL 1
28615 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
28616 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
28617 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
28618 echo $ECHO_N "(cached) $ECHO_C" >&6
28620 cat >conftest.$ac_ext <<_ACEOF
28623 cat confdefs.h >>conftest.$ac_ext
28624 cat >>conftest.$ac_ext <<_ACEOF
28625 /* end confdefs.h. */
28626 $ac_includes_default
28630 static struct stat ac_aggr;
28631 if (ac_aggr.st_blocks)
28637 rm -f conftest.$ac_objext
28638 if { (ac_try="$ac_compile"
28639 case "(($ac_try" in
28640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28641 *) ac_try_echo=$ac_try;;
28643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28644 (eval "$ac_compile") 2>conftest.er1
28646 grep -v '^ *+' conftest.er1 >conftest.err
28648 cat conftest.err >&5
28649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650 (exit $ac_status); } &&
28651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28652 { (case "(($ac_try" in
28653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28654 *) ac_try_echo=$ac_try;;
28656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28657 (eval "$ac_try") 2>&5
28659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28660 (exit $ac_status); }; } &&
28661 { ac_try='test -s conftest.$ac_objext'
28662 { (case "(($ac_try" in
28663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28664 *) ac_try_echo=$ac_try;;
28666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28667 (eval "$ac_try") 2>&5
28669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670 (exit $ac_status); }; }; then
28671 ac_cv_member_struct_stat_st_blocks=yes
28673 echo "$as_me: failed program was:" >&5
28674 sed 's/^/| /' conftest.$ac_ext >&5
28676 cat >conftest.$ac_ext <<_ACEOF
28679 cat confdefs.h >>conftest.$ac_ext
28680 cat >>conftest.$ac_ext <<_ACEOF
28681 /* end confdefs.h. */
28682 $ac_includes_default
28686 static struct stat ac_aggr;
28687 if (sizeof ac_aggr.st_blocks)
28693 rm -f conftest.$ac_objext
28694 if { (ac_try="$ac_compile"
28695 case "(($ac_try" in
28696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697 *) ac_try_echo=$ac_try;;
28699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28700 (eval "$ac_compile") 2>conftest.er1
28702 grep -v '^ *+' conftest.er1 >conftest.err
28704 cat conftest.err >&5
28705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28706 (exit $ac_status); } &&
28707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28708 { (case "(($ac_try" in
28709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28710 *) ac_try_echo=$ac_try;;
28712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28713 (eval "$ac_try") 2>&5
28715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716 (exit $ac_status); }; } &&
28717 { ac_try='test -s conftest.$ac_objext'
28718 { (case "(($ac_try" in
28719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28720 *) ac_try_echo=$ac_try;;
28722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28723 (eval "$ac_try") 2>&5
28725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726 (exit $ac_status); }; }; then
28727 ac_cv_member_struct_stat_st_blocks=yes
28729 echo "$as_me: failed program was:" >&5
28730 sed 's/^/| /' conftest.$ac_ext >&5
28732 ac_cv_member_struct_stat_st_blocks=no
28735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28740 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
28741 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
28742 if test $ac_cv_member_struct_stat_st_blocks = yes; then
28744 cat >>confdefs.h <<_ACEOF
28745 @%:@define HAVE_STRUCT_STAT_ST_BLOCKS 1
28751 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28752 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
28753 if test "${ac_cv_struct_tm+set}" = set; then
28754 echo $ECHO_N "(cached) $ECHO_C" >&6
28756 cat >conftest.$ac_ext <<_ACEOF
28759 cat confdefs.h >>conftest.$ac_ext
28760 cat >>conftest.$ac_ext <<_ACEOF
28761 /* end confdefs.h. */
28762 #include <sys/types.h>
28768 struct tm *tp; tp->tm_sec;
28773 rm -f conftest.$ac_objext
28774 if { (ac_try="$ac_compile"
28775 case "(($ac_try" in
28776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777 *) ac_try_echo=$ac_try;;
28779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28780 (eval "$ac_compile") 2>conftest.er1
28782 grep -v '^ *+' conftest.er1 >conftest.err
28784 cat conftest.err >&5
28785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); } &&
28787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28788 { (case "(($ac_try" in
28789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28790 *) ac_try_echo=$ac_try;;
28792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28793 (eval "$ac_try") 2>&5
28795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); }; } &&
28797 { ac_try='test -s conftest.$ac_objext'
28798 { (case "(($ac_try" in
28799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28800 *) ac_try_echo=$ac_try;;
28802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28803 (eval "$ac_try") 2>&5
28805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); }; }; then
28807 ac_cv_struct_tm=time.h
28809 echo "$as_me: failed program was:" >&5
28810 sed 's/^/| /' conftest.$ac_ext >&5
28812 ac_cv_struct_tm=sys/time.h
28815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28817 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28818 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
28819 if test $ac_cv_struct_tm = sys/time.h; then
28821 cat >>confdefs.h <<\_ACEOF
28822 @%:@define TM_IN_SYS_TIME 1
28827 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
28828 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
28829 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
28830 echo $ECHO_N "(cached) $ECHO_C" >&6
28832 cat >conftest.$ac_ext <<_ACEOF
28835 cat confdefs.h >>conftest.$ac_ext
28836 cat >>conftest.$ac_ext <<_ACEOF
28837 /* end confdefs.h. */
28838 #include <sys/types.h>
28839 #include <$ac_cv_struct_tm>
28845 static struct tm ac_aggr;
28846 if (ac_aggr.tm_zone)
28852 rm -f conftest.$ac_objext
28853 if { (ac_try="$ac_compile"
28854 case "(($ac_try" in
28855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28856 *) ac_try_echo=$ac_try;;
28858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28859 (eval "$ac_compile") 2>conftest.er1
28861 grep -v '^ *+' conftest.er1 >conftest.err
28863 cat conftest.err >&5
28864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865 (exit $ac_status); } &&
28866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28867 { (case "(($ac_try" in
28868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28869 *) ac_try_echo=$ac_try;;
28871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28872 (eval "$ac_try") 2>&5
28874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875 (exit $ac_status); }; } &&
28876 { ac_try='test -s conftest.$ac_objext'
28877 { (case "(($ac_try" in
28878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28879 *) ac_try_echo=$ac_try;;
28881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28882 (eval "$ac_try") 2>&5
28884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885 (exit $ac_status); }; }; then
28886 ac_cv_member_struct_tm_tm_zone=yes
28888 echo "$as_me: failed program was:" >&5
28889 sed 's/^/| /' conftest.$ac_ext >&5
28891 cat >conftest.$ac_ext <<_ACEOF
28894 cat confdefs.h >>conftest.$ac_ext
28895 cat >>conftest.$ac_ext <<_ACEOF
28896 /* end confdefs.h. */
28897 #include <sys/types.h>
28898 #include <$ac_cv_struct_tm>
28904 static struct tm ac_aggr;
28905 if (sizeof ac_aggr.tm_zone)
28911 rm -f conftest.$ac_objext
28912 if { (ac_try="$ac_compile"
28913 case "(($ac_try" in
28914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28915 *) ac_try_echo=$ac_try;;
28917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28918 (eval "$ac_compile") 2>conftest.er1
28920 grep -v '^ *+' conftest.er1 >conftest.err
28922 cat conftest.err >&5
28923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28924 (exit $ac_status); } &&
28925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28926 { (case "(($ac_try" in
28927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28928 *) ac_try_echo=$ac_try;;
28930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28931 (eval "$ac_try") 2>&5
28933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28934 (exit $ac_status); }; } &&
28935 { ac_try='test -s conftest.$ac_objext'
28936 { (case "(($ac_try" in
28937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28938 *) ac_try_echo=$ac_try;;
28940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28941 (eval "$ac_try") 2>&5
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); }; }; then
28945 ac_cv_member_struct_tm_tm_zone=yes
28947 echo "$as_me: failed program was:" >&5
28948 sed 's/^/| /' conftest.$ac_ext >&5
28950 ac_cv_member_struct_tm_tm_zone=no
28953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28958 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
28959 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
28960 if test $ac_cv_member_struct_tm_tm_zone = yes; then
28962 cat >>confdefs.h <<_ACEOF
28963 @%:@define HAVE_STRUCT_TM_TM_ZONE 1
28969 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
28971 cat >>confdefs.h <<\_ACEOF
28972 @%:@define HAVE_TM_ZONE 1
28976 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
28977 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
28978 if test "${ac_cv_have_decl_tzname+set}" = set; then
28979 echo $ECHO_N "(cached) $ECHO_C" >&6
28981 cat >conftest.$ac_ext <<_ACEOF
28984 cat confdefs.h >>conftest.$ac_ext
28985 cat >>conftest.$ac_ext <<_ACEOF
28986 /* end confdefs.h. */
28993 char *p = (char *) tzname;
29001 rm -f conftest.$ac_objext
29002 if { (ac_try="$ac_compile"
29003 case "(($ac_try" in
29004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29005 *) ac_try_echo=$ac_try;;
29007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29008 (eval "$ac_compile") 2>conftest.er1
29010 grep -v '^ *+' conftest.er1 >conftest.err
29012 cat conftest.err >&5
29013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014 (exit $ac_status); } &&
29015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29016 { (case "(($ac_try" in
29017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29018 *) ac_try_echo=$ac_try;;
29020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29021 (eval "$ac_try") 2>&5
29023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); }; } &&
29025 { ac_try='test -s conftest.$ac_objext'
29026 { (case "(($ac_try" in
29027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29028 *) ac_try_echo=$ac_try;;
29030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29031 (eval "$ac_try") 2>&5
29033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034 (exit $ac_status); }; }; then
29035 ac_cv_have_decl_tzname=yes
29037 echo "$as_me: failed program was:" >&5
29038 sed 's/^/| /' conftest.$ac_ext >&5
29040 ac_cv_have_decl_tzname=no
29043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29045 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
29046 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
29047 if test $ac_cv_have_decl_tzname = yes; then
29049 cat >>confdefs.h <<_ACEOF
29050 @%:@define HAVE_DECL_TZNAME 1
29055 cat >>confdefs.h <<_ACEOF
29056 @%:@define HAVE_DECL_TZNAME 0
29063 { echo "$as_me:$LINENO: checking for tzname" >&5
29064 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
29065 if test "${ac_cv_var_tzname+set}" = set; then
29066 echo $ECHO_N "(cached) $ECHO_C" >&6
29068 cat >conftest.$ac_ext <<_ACEOF
29071 cat confdefs.h >>conftest.$ac_ext
29072 cat >>conftest.$ac_ext <<_ACEOF
29073 /* end confdefs.h. */
29075 #if !HAVE_DECL_TZNAME
29076 extern char *tzname[];
29082 return tzname[0][0];
29087 rm -f conftest.$ac_objext conftest$ac_exeext
29088 if { (ac_try="$ac_link"
29089 case "(($ac_try" in
29090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091 *) ac_try_echo=$ac_try;;
29093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29094 (eval "$ac_link") 2>conftest.er1
29096 grep -v '^ *+' conftest.er1 >conftest.err
29098 cat conftest.err >&5
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); } &&
29101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29102 { (case "(($ac_try" in
29103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29104 *) ac_try_echo=$ac_try;;
29106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29107 (eval "$ac_try") 2>&5
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); }; } &&
29111 { ac_try='test -s conftest$ac_exeext'
29112 { (case "(($ac_try" in
29113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29114 *) ac_try_echo=$ac_try;;
29116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29117 (eval "$ac_try") 2>&5
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120 (exit $ac_status); }; }; then
29121 ac_cv_var_tzname=yes
29123 echo "$as_me: failed program was:" >&5
29124 sed 's/^/| /' conftest.$ac_ext >&5
29126 ac_cv_var_tzname=no
29129 rm -f core conftest.err conftest.$ac_objext \
29130 conftest$ac_exeext conftest.$ac_ext
29132 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
29133 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
29134 if test $ac_cv_var_tzname = yes; then
29136 cat >>confdefs.h <<\_ACEOF
29137 @%:@define HAVE_TZNAME 1
29143 { echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
29144 echo $ECHO_N "checking for struct timezone in sys/time.h and time.h... $ECHO_C" >&6; }
29145 if test "${bash_cv_struct_timezone+set}" = set; then
29146 echo $ECHO_N "(cached) $ECHO_C" >&6
29149 cat >conftest.$ac_ext <<_ACEOF
29152 cat confdefs.h >>conftest.$ac_ext
29153 cat >>conftest.$ac_ext <<_ACEOF
29154 /* end confdefs.h. */
29155 #include <sys/time.h>
29158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29159 $EGREP "struct timezone" >/dev/null 2>&1; then
29160 bash_cv_struct_timezone=yes
29162 cat >conftest.$ac_ext <<_ACEOF
29165 cat confdefs.h >>conftest.$ac_ext
29166 cat >>conftest.$ac_ext <<_ACEOF
29167 /* end confdefs.h. */
29171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29172 $EGREP "struct timezone" >/dev/null 2>&1; then
29173 bash_cv_struct_timezone=yes
29175 bash_cv_struct_timezone=no
29185 { echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
29186 echo "${ECHO_T}$bash_cv_struct_timezone" >&6; }
29187 if test $bash_cv_struct_timezone = yes; then
29188 cat >>confdefs.h <<\_ACEOF
29189 @%:@define HAVE_STRUCT_TIMEZONE 1
29195 { echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
29196 echo $ECHO_N "checking for the existence of strsignal... $ECHO_C" >&6; }
29197 if test "${bash_cv_have_strsignal+set}" = set; then
29198 echo $ECHO_N "(cached) $ECHO_C" >&6
29200 cat >conftest.$ac_ext <<_ACEOF
29203 cat confdefs.h >>conftest.$ac_ext
29204 cat >>conftest.$ac_ext <<_ACEOF
29205 /* end confdefs.h. */
29206 #include <sys/types.h>
29207 #include <signal.h>
29211 char *s = (char *)strsignal(2);
29216 rm -f conftest.$ac_objext conftest$ac_exeext
29217 if { (ac_try="$ac_link"
29218 case "(($ac_try" in
29219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29220 *) ac_try_echo=$ac_try;;
29222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29223 (eval "$ac_link") 2>conftest.er1
29225 grep -v '^ *+' conftest.er1 >conftest.err
29227 cat conftest.err >&5
29228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229 (exit $ac_status); } &&
29230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29231 { (case "(($ac_try" in
29232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29233 *) ac_try_echo=$ac_try;;
29235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29236 (eval "$ac_try") 2>&5
29238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239 (exit $ac_status); }; } &&
29240 { ac_try='test -s conftest$ac_exeext'
29241 { (case "(($ac_try" in
29242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29243 *) ac_try_echo=$ac_try;;
29245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29246 (eval "$ac_try") 2>&5
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); }; }; then
29250 bash_cv_have_strsignal=yes
29252 echo "$as_me: failed program was:" >&5
29253 sed 's/^/| /' conftest.$ac_ext >&5
29255 bash_cv_have_strsignal=no
29258 rm -f core conftest.err conftest.$ac_objext \
29259 conftest$ac_exeext conftest.$ac_ext
29262 { echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
29263 echo "${ECHO_T}$bash_cv_have_strsignal" >&6; }
29264 if test $bash_cv_have_strsignal = yes; then
29265 cat >>confdefs.h <<\_ACEOF
29266 @%:@define HAVE_STRSIGNAL 1
29271 { echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
29272 echo $ECHO_N "checking if opendir() opens non-directories... $ECHO_C" >&6; }
29273 if test "${bash_cv_opendir_not_robust+set}" = set; then
29274 echo $ECHO_N "(cached) $ECHO_C" >&6
29276 if test "$cross_compiling" = yes; then
29277 { echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
29278 echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
29279 bash_cv_opendir_not_robust=no
29282 cat >conftest.$ac_ext <<_ACEOF
29285 cat confdefs.h >>conftest.$ac_ext
29286 cat >>conftest.$ac_ext <<_ACEOF
29287 /* end confdefs.h. */
29290 #include <sys/types.h>
29292 #ifdef HAVE_UNISTD_H
29293 # include <unistd.h>
29294 #endif /* HAVE_UNISTD_H */
29295 #if defined(HAVE_DIRENT_H)
29296 # include <dirent.h>
29298 # define dirent direct
29299 # ifdef HAVE_SYS_NDIR_H
29300 # include <sys/ndir.h>
29301 # endif /* SYSNDIR */
29302 # ifdef HAVE_SYS_DIR_H
29303 # include <sys/dir.h>
29304 # endif /* SYSDIR */
29305 # ifdef HAVE_NDIR_H
29308 #endif /* HAVE_DIRENT_H */
29313 err = mkdir("bash-aclocal", 0700);
29318 unlink("bash-aclocal/not_a_directory");
29319 fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
29320 write(fd, "\n", 1);
29322 dir = opendir("bash-aclocal/not_a_directory");
29323 unlink("bash-aclocal/not_a_directory");
29324 rmdir("bash-aclocal");
29328 rm -f conftest$ac_exeext
29329 if { (ac_try="$ac_link"
29330 case "(($ac_try" in
29331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29332 *) ac_try_echo=$ac_try;;
29334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29335 (eval "$ac_link") 2>&5
29337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29339 { (case "(($ac_try" in
29340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29341 *) ac_try_echo=$ac_try;;
29343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29344 (eval "$ac_try") 2>&5
29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347 (exit $ac_status); }; }; then
29348 bash_cv_opendir_not_robust=yes
29350 echo "$as_me: program exited with status $ac_status" >&5
29351 echo "$as_me: failed program was:" >&5
29352 sed 's/^/| /' conftest.$ac_ext >&5
29354 ( exit $ac_status )
29355 bash_cv_opendir_not_robust=no
29357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29363 { echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
29364 echo "${ECHO_T}$bash_cv_opendir_not_robust" >&6; }
29365 if test $bash_cv_opendir_not_robust = yes; then
29366 cat >>confdefs.h <<\_ACEOF
29367 @%:@define OPENDIR_NOT_ROBUST 1
29372 { echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
29373 echo $ECHO_N "checking whether ulimit can substitute for getdtablesize... $ECHO_C" >&6; }
29374 if test "${bash_cv_ulimit_maxfds+set}" = set; then
29375 echo $ECHO_N "(cached) $ECHO_C" >&6
29377 if test "$cross_compiling" = yes; then
29378 { echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
29379 echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
29380 bash_cv_ulimit_maxfds=no
29383 cat >conftest.$ac_ext <<_ACEOF
29386 cat confdefs.h >>conftest.$ac_ext
29387 cat >>conftest.$ac_ext <<_ACEOF
29388 /* end confdefs.h. */
29392 long maxfds = ulimit(4, 0L);
29393 exit (maxfds == -1L);
29397 rm -f conftest$ac_exeext
29398 if { (ac_try="$ac_link"
29399 case "(($ac_try" in
29400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29401 *) ac_try_echo=$ac_try;;
29403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29404 (eval "$ac_link") 2>&5
29406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29408 { (case "(($ac_try" in
29409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29410 *) ac_try_echo=$ac_try;;
29412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29413 (eval "$ac_try") 2>&5
29415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416 (exit $ac_status); }; }; then
29417 bash_cv_ulimit_maxfds=yes
29419 echo "$as_me: program exited with status $ac_status" >&5
29420 echo "$as_me: failed program was:" >&5
29421 sed 's/^/| /' conftest.$ac_ext >&5
29423 ( exit $ac_status )
29424 bash_cv_ulimit_maxfds=no
29426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29432 { echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
29433 echo "${ECHO_T}$bash_cv_ulimit_maxfds" >&6; }
29434 if test $bash_cv_ulimit_maxfds = yes; then
29435 cat >>confdefs.h <<\_ACEOF
29436 @%:@define ULIMIT_MAXFDS 1
29445 for ac_func in $ac_func_list
29447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29448 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29451 echo $ECHO_N "(cached) $ECHO_C" >&6
29453 cat >conftest.$ac_ext <<_ACEOF
29456 cat confdefs.h >>conftest.$ac_ext
29457 cat >>conftest.$ac_ext <<_ACEOF
29458 /* end confdefs.h. */
29459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29461 #define $ac_func innocuous_$ac_func
29463 /* System header to define __stub macros and hopefully few prototypes,
29464 which can conflict with char $ac_func (); below.
29465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29466 <limits.h> exists even on freestanding compilers. */
29469 # include <limits.h>
29471 # include <assert.h>
29476 /* Override any GCC internal prototype to avoid an error.
29477 Use char because int might match the return type of a GCC
29478 builtin and then its argument prototype would still apply. */
29483 /* The GNU C library defines this for functions which it implements
29484 to always fail with ENOSYS. Some functions are actually named
29485 something starting with __ and the normal name is an alias. */
29486 #if defined __stub_$ac_func || defined __stub___$ac_func
29493 return $ac_func ();
29498 rm -f conftest.$ac_objext conftest$ac_exeext
29499 if { (ac_try="$ac_link"
29500 case "(($ac_try" in
29501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29502 *) ac_try_echo=$ac_try;;
29504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29505 (eval "$ac_link") 2>conftest.er1
29507 grep -v '^ *+' conftest.er1 >conftest.err
29509 cat conftest.err >&5
29510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511 (exit $ac_status); } &&
29512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29513 { (case "(($ac_try" in
29514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29515 *) ac_try_echo=$ac_try;;
29517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29518 (eval "$ac_try") 2>&5
29520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 (exit $ac_status); }; } &&
29522 { ac_try='test -s conftest$ac_exeext'
29523 { (case "(($ac_try" in
29524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29525 *) ac_try_echo=$ac_try;;
29527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29528 (eval "$ac_try") 2>&5
29530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29531 (exit $ac_status); }; }; then
29532 eval "$as_ac_var=yes"
29534 echo "$as_me: failed program was:" >&5
29535 sed 's/^/| /' conftest.$ac_ext >&5
29537 eval "$as_ac_var=no"
29540 rm -f core conftest.err conftest.$ac_objext \
29541 conftest$ac_exeext conftest.$ac_ext
29543 ac_res=`eval echo '${'$as_ac_var'}'`
29544 { echo "$as_me:$LINENO: result: $ac_res" >&5
29545 echo "${ECHO_T}$ac_res" >&6; }
29546 if test `eval echo '${'$as_ac_var'}'` = yes; then
29547 cat >>confdefs.h <<_ACEOF
29548 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29571 { echo "$as_me:$LINENO: checking whether fpurge is declared" >&5
29572 echo $ECHO_N "checking whether fpurge is declared... $ECHO_C" >&6; }
29573 if test "${ac_cv_have_decl_fpurge+set}" = set; then
29574 echo $ECHO_N "(cached) $ECHO_C" >&6
29576 cat >conftest.$ac_ext <<_ACEOF
29579 cat confdefs.h >>conftest.$ac_ext
29580 cat >>conftest.$ac_ext <<_ACEOF
29581 /* end confdefs.h. */
29588 char *p = (char *) fpurge;
29596 rm -f conftest.$ac_objext
29597 if { (ac_try="$ac_compile"
29598 case "(($ac_try" in
29599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29600 *) ac_try_echo=$ac_try;;
29602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29603 (eval "$ac_compile") 2>conftest.er1
29605 grep -v '^ *+' conftest.er1 >conftest.err
29607 cat conftest.err >&5
29608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29609 (exit $ac_status); } &&
29610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29611 { (case "(($ac_try" in
29612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29613 *) ac_try_echo=$ac_try;;
29615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29616 (eval "$ac_try") 2>&5
29618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619 (exit $ac_status); }; } &&
29620 { ac_try='test -s conftest.$ac_objext'
29621 { (case "(($ac_try" in
29622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29623 *) ac_try_echo=$ac_try;;
29625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29626 (eval "$ac_try") 2>&5
29628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629 (exit $ac_status); }; }; then
29630 ac_cv_have_decl_fpurge=yes
29632 echo "$as_me: failed program was:" >&5
29633 sed 's/^/| /' conftest.$ac_ext >&5
29635 ac_cv_have_decl_fpurge=no
29638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29640 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fpurge" >&5
29641 echo "${ECHO_T}$ac_cv_have_decl_fpurge" >&6; }
29642 if test $ac_cv_have_decl_fpurge = yes; then
29644 cat >>confdefs.h <<_ACEOF
29645 @%:@define HAVE_DECL_FPURGE 1
29650 cat >>confdefs.h <<_ACEOF
29651 @%:@define HAVE_DECL_FPURGE 0
29659 { echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
29660 echo $ECHO_N "checking to see if getenv can be redefined... $ECHO_C" >&6; }
29661 if test "${bash_cv_getenv_redef+set}" = set; then
29662 echo $ECHO_N "(cached) $ECHO_C" >&6
29664 if test "$cross_compiling" = yes; then
29665 { echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
29666 echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
29667 bash_cv_getenv_redef=yes
29670 cat >conftest.$ac_ext <<_ACEOF
29673 cat confdefs.h >>conftest.$ac_ext
29674 cat >>conftest.$ac_ext <<_ACEOF
29675 /* end confdefs.h. */
29677 #ifdef HAVE_UNISTD_H
29678 # include <unistd.h>
29687 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
29691 #endif /* !__linux__ && !__bsdi__ && !convex */
29698 /* The next allows this program to run, but does not allow bash to link
29699 when it redefines getenv. I'm not really interested in figuring out
29704 s = getenv("ABCDE");
29705 exit(s == 0); /* force optimizer to leave getenv in */
29709 rm -f conftest$ac_exeext
29710 if { (ac_try="$ac_link"
29711 case "(($ac_try" in
29712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29713 *) ac_try_echo=$ac_try;;
29715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29716 (eval "$ac_link") 2>&5
29718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29720 { (case "(($ac_try" in
29721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29722 *) ac_try_echo=$ac_try;;
29724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29725 (eval "$ac_try") 2>&5
29727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); }; }; then
29729 bash_cv_getenv_redef=yes
29731 echo "$as_me: program exited with status $ac_status" >&5
29732 echo "$as_me: failed program was:" >&5
29733 sed 's/^/| /' conftest.$ac_ext >&5
29735 ( exit $ac_status )
29736 bash_cv_getenv_redef=no
29738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29744 { echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
29745 echo "${ECHO_T}$bash_cv_getenv_redef" >&6; }
29746 if test $bash_cv_getenv_redef = yes; then
29747 cat >>confdefs.h <<\_ACEOF
29748 @%:@define CAN_REDEFINE_GETENV 1
29753 if test "$ac_cv_func_getcwd" = "yes"; then
29754 { echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory with 0 size" >&5
29755 echo $ECHO_N "checking if getcwd() will dynamically allocate memory with 0 size... $ECHO_C" >&6; }
29756 if test "${bash_cv_getcwd_malloc+set}" = set; then
29757 echo $ECHO_N "(cached) $ECHO_C" >&6
29759 if test "$cross_compiling" = yes; then
29760 { echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
29761 echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
29762 bash_cv_getcwd_malloc=no
29765 cat >conftest.$ac_ext <<_ACEOF
29768 cat confdefs.h >>conftest.$ac_ext
29769 cat >>conftest.$ac_ext <<_ACEOF
29770 /* end confdefs.h. */
29773 #ifdef HAVE_UNISTD_H
29774 #include <unistd.h>
29780 xpwd = getcwd(0, 0);
29785 rm -f conftest$ac_exeext
29786 if { (ac_try="$ac_link"
29787 case "(($ac_try" in
29788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29789 *) ac_try_echo=$ac_try;;
29791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29792 (eval "$ac_link") 2>&5
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29796 { (case "(($ac_try" in
29797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29798 *) ac_try_echo=$ac_try;;
29800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29801 (eval "$ac_try") 2>&5
29803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804 (exit $ac_status); }; }; then
29805 bash_cv_getcwd_malloc=yes
29807 echo "$as_me: program exited with status $ac_status" >&5
29808 echo "$as_me: failed program was:" >&5
29809 sed 's/^/| /' conftest.$ac_ext >&5
29811 ( exit $ac_status )
29812 bash_cv_getcwd_malloc=no
29814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29820 { echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
29821 echo "${ECHO_T}$bash_cv_getcwd_malloc" >&6; }
29822 if test $bash_cv_getcwd_malloc = no; then
29823 cat >>confdefs.h <<\_ACEOF
29824 @%:@define GETCWD_BROKEN 1
29827 case " $LIB@&t@OBJS " in
29828 *" getcwd.$ac_objext "* ) ;;
29829 *) LIB@&t@OBJS="$LIB@&t@OBJS getcwd.$ac_objext"
29837 { echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
29838 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6; }
29839 if test "${bash_cv_func_sigsetjmp+set}" = set; then
29840 echo $ECHO_N "(cached) $ECHO_C" >&6
29842 if test "$cross_compiling" = yes; then
29843 { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
29844 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
29845 bash_cv_func_sigsetjmp=missing
29848 cat >conftest.$ac_ext <<_ACEOF
29851 cat confdefs.h >>conftest.$ac_ext
29852 cat >>conftest.$ac_ext <<_ACEOF
29853 /* end confdefs.h. */
29855 #ifdef HAVE_UNISTD_H
29856 #include <unistd.h>
29858 #include <sys/types.h>
29859 #include <signal.h>
29860 #include <setjmp.h>
29864 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
29869 sigset_t set, oset;
29874 sigemptyset(&oset);
29875 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
29876 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
29879 code = sigsetjmp(xx, 1);
29881 exit(0); /* could get sigmask and compare to oset here. */
29884 sigaddset(&set, SIGINT);
29885 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
29887 /* and siglongjmp */
29888 siglongjmp(xx, 10);
29893 rm -f conftest$ac_exeext
29894 if { (ac_try="$ac_link"
29895 case "(($ac_try" in
29896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29897 *) ac_try_echo=$ac_try;;
29899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29900 (eval "$ac_link") 2>&5
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29904 { (case "(($ac_try" in
29905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29906 *) ac_try_echo=$ac_try;;
29908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29909 (eval "$ac_try") 2>&5
29911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29912 (exit $ac_status); }; }; then
29913 bash_cv_func_sigsetjmp=present
29915 echo "$as_me: program exited with status $ac_status" >&5
29916 echo "$as_me: failed program was:" >&5
29917 sed 's/^/| /' conftest.$ac_ext >&5
29919 ( exit $ac_status )
29920 bash_cv_func_sigsetjmp=missing
29922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29928 { echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
29929 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6; }
29930 if test $bash_cv_func_sigsetjmp = present; then
29931 cat >>confdefs.h <<\_ACEOF
29932 @%:@define HAVE_POSIX_SIGSETJMP 1
29938 { echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
29939 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6; }
29940 if test "${bash_cv_func_strcoll_broken+set}" = set; then
29941 echo $ECHO_N "(cached) $ECHO_C" >&6
29943 if test "$cross_compiling" = yes; then
29944 { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
29945 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
29946 bash_cv_func_strcoll_broken=no
29949 cat >conftest.$ac_ext <<_ACEOF
29952 cat confdefs.h >>conftest.$ac_ext
29953 cat >>conftest.$ac_ext <<_ACEOF
29954 /* end confdefs.h. */
29957 #if defined (HAVE_LOCALE_H)
29958 #include <locale.h>
29966 char *deflocale, *defcoll;
29968 #ifdef HAVE_SETLOCALE
29969 deflocale = setlocale(LC_ALL, "");
29970 defcoll = setlocale(LC_COLLATE, "");
29973 #ifdef HAVE_STRCOLL
29974 /* These two values are taken from tests/glob-test. */
29975 r1 = strcoll("abd", "aXd");
29979 r2 = strcmp("abd", "aXd");
29981 /* These two should both be greater than 0. It is permissible for
29982 a system to return different values, as long as the sign is the
29985 /* Exit with 1 (failure) if these two values are both > 0, since
29986 this tests whether strcoll(3) is broken with respect to strcmp(3)
29987 in the default locale. */
29988 exit (r1 > 0 && r2 > 0);
29992 rm -f conftest$ac_exeext
29993 if { (ac_try="$ac_link"
29994 case "(($ac_try" in
29995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29996 *) ac_try_echo=$ac_try;;
29998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29999 (eval "$ac_link") 2>&5
30001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30003 { (case "(($ac_try" in
30004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30005 *) ac_try_echo=$ac_try;;
30007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30008 (eval "$ac_try") 2>&5
30010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30011 (exit $ac_status); }; }; then
30012 bash_cv_func_strcoll_broken=yes
30014 echo "$as_me: program exited with status $ac_status" >&5
30015 echo "$as_me: failed program was:" >&5
30016 sed 's/^/| /' conftest.$ac_ext >&5
30018 ( exit $ac_status )
30019 bash_cv_func_strcoll_broken=no
30021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30027 { echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
30028 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6; }
30029 if test $bash_cv_func_strcoll_broken = yes; then
30030 cat >>confdefs.h <<\_ACEOF
30031 @%:@define STRCOLL_BROKEN 1
30038 if test "$ac_cv_func_putenv" = "yes"; then
30042 { echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
30043 echo $ECHO_N "checking for standard-conformant putenv declaration... $ECHO_C" >&6; }
30044 if test "${bash_cv_std_putenv+set}" = set; then
30045 echo $ECHO_N "(cached) $ECHO_C" >&6
30047 cat >conftest.$ac_ext <<_ACEOF
30050 cat confdefs.h >>conftest.$ac_ext
30051 cat >>conftest.$ac_ext <<_ACEOF
30052 /* end confdefs.h. */
30055 #include <stdlib.h>
30056 #include <stddef.h>
30064 extern int putenv (char *);
30066 extern int putenv ();
30072 return (putenv == 0);
30077 rm -f conftest.$ac_objext conftest$ac_exeext
30078 if { (ac_try="$ac_link"
30079 case "(($ac_try" in
30080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30081 *) ac_try_echo=$ac_try;;
30083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30084 (eval "$ac_link") 2>conftest.er1
30086 grep -v '^ *+' conftest.er1 >conftest.err
30088 cat conftest.err >&5
30089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090 (exit $ac_status); } &&
30091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30092 { (case "(($ac_try" in
30093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30094 *) ac_try_echo=$ac_try;;
30096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30097 (eval "$ac_try") 2>&5
30099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30100 (exit $ac_status); }; } &&
30101 { ac_try='test -s conftest$ac_exeext'
30102 { (case "(($ac_try" in
30103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30104 *) ac_try_echo=$ac_try;;
30106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30107 (eval "$ac_try") 2>&5
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); }; }; then
30111 bash_cv_std_putenv=yes
30113 echo "$as_me: failed program was:" >&5
30114 sed 's/^/| /' conftest.$ac_ext >&5
30116 bash_cv_std_putenv=no
30120 rm -f core conftest.err conftest.$ac_objext \
30121 conftest$ac_exeext conftest.$ac_ext
30123 { echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
30124 echo "${ECHO_T}$bash_cv_std_putenv" >&6; }
30125 if test $bash_cv_std_putenv = yes; then
30126 cat >>confdefs.h <<\_ACEOF
30127 @%:@define HAVE_STD_PUTENV 1
30133 cat >>confdefs.h <<\_ACEOF
30134 @%:@define HAVE_STD_PUTENV 1
30138 if test "$ac_cv_func_unsetenv" = "yes"; then
30142 { echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
30143 echo $ECHO_N "checking for standard-conformant unsetenv declaration... $ECHO_C" >&6; }
30144 if test "${bash_cv_std_unsetenv+set}" = set; then
30145 echo $ECHO_N "(cached) $ECHO_C" >&6
30147 cat >conftest.$ac_ext <<_ACEOF
30150 cat confdefs.h >>conftest.$ac_ext
30151 cat >>conftest.$ac_ext <<_ACEOF
30152 /* end confdefs.h. */
30155 #include <stdlib.h>
30156 #include <stddef.h>
30164 extern int unsetenv (const char *);
30166 extern int unsetenv ();
30172 return (unsetenv == 0);
30177 rm -f conftest.$ac_objext conftest$ac_exeext
30178 if { (ac_try="$ac_link"
30179 case "(($ac_try" in
30180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30181 *) ac_try_echo=$ac_try;;
30183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30184 (eval "$ac_link") 2>conftest.er1
30186 grep -v '^ *+' conftest.er1 >conftest.err
30188 cat conftest.err >&5
30189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30190 (exit $ac_status); } &&
30191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30192 { (case "(($ac_try" in
30193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30194 *) ac_try_echo=$ac_try;;
30196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30197 (eval "$ac_try") 2>&5
30199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200 (exit $ac_status); }; } &&
30201 { ac_try='test -s conftest$ac_exeext'
30202 { (case "(($ac_try" in
30203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30204 *) ac_try_echo=$ac_try;;
30206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30207 (eval "$ac_try") 2>&5
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); }; }; then
30211 bash_cv_std_unsetenv=yes
30213 echo "$as_me: failed program was:" >&5
30214 sed 's/^/| /' conftest.$ac_ext >&5
30216 bash_cv_std_unsetenv=no
30220 rm -f core conftest.err conftest.$ac_objext \
30221 conftest$ac_exeext conftest.$ac_ext
30223 { echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
30224 echo "${ECHO_T}$bash_cv_std_unsetenv" >&6; }
30225 if test $bash_cv_std_unsetenv = yes; then
30226 cat >>confdefs.h <<\_ACEOF
30227 @%:@define HAVE_STD_UNSETENV 1
30233 cat >>confdefs.h <<\_ACEOF
30234 @%:@define HAVE_STD_UNSETENV 1
30239 { echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
30240 echo $ECHO_N "checking for printf floating point output in hex notation... $ECHO_C" >&6; }
30241 if test "${bash_cv_printf_a_format+set}" = set; then
30242 echo $ECHO_N "(cached) $ECHO_C" >&6
30244 if test "$cross_compiling" = yes; then
30245 { echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
30246 echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
30247 bash_cv_printf_a_format=no
30250 cat >conftest.$ac_ext <<_ACEOF
30253 cat confdefs.h >>conftest.$ac_ext
30254 cat >>conftest.$ac_ext <<_ACEOF
30255 /* end confdefs.h. */
30258 #include <string.h>
30266 sprintf(abuf, "%A", y);
30267 exit(strchr(abuf, 'P') == (char *)0);
30271 rm -f conftest$ac_exeext
30272 if { (ac_try="$ac_link"
30273 case "(($ac_try" in
30274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275 *) ac_try_echo=$ac_try;;
30277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278 (eval "$ac_link") 2>&5
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30282 { (case "(($ac_try" in
30283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30284 *) ac_try_echo=$ac_try;;
30286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30287 (eval "$ac_try") 2>&5
30289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30290 (exit $ac_status); }; }; then
30291 bash_cv_printf_a_format=yes
30293 echo "$as_me: program exited with status $ac_status" >&5
30294 echo "$as_me: failed program was:" >&5
30295 sed 's/^/| /' conftest.$ac_ext >&5
30297 ( exit $ac_status )
30298 bash_cv_printf_a_format=no
30300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30306 { echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
30307 echo "${ECHO_T}$bash_cv_printf_a_format" >&6; }
30308 if test $bash_cv_printf_a_format = yes; then
30309 cat >>confdefs.h <<\_ACEOF
30310 @%:@define HAVE_PRINTF_A_FORMAT 1
30318 { echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
30319 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6; }
30320 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
30321 echo $ECHO_N "(cached) $ECHO_C" >&6
30323 if test "$cross_compiling" = yes; then
30324 { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
30325 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
30326 bash_cv_must_reinstall_sighandlers=no
30329 cat >conftest.$ac_ext <<_ACEOF
30332 cat confdefs.h >>conftest.$ac_ext
30333 cat >>conftest.$ac_ext <<_ACEOF
30334 /* end confdefs.h. */
30336 #include <signal.h>
30337 #ifdef HAVE_UNISTD_H
30338 #include <unistd.h>
30341 typedef RETSIGTYPE sigfunc();
30345 #ifdef HAVE_POSIX_SIGNALS
30347 set_signal_handler(sig, handler)
30351 struct sigaction act, oact;
30352 act.sa_handler = handler;
30354 sigemptyset (&act.sa_mask);
30355 sigemptyset (&oact.sa_mask);
30356 sigaction (sig, &act, &oact);
30357 return (oact.sa_handler);
30360 #define set_signal_handler(s, h) signal(s, h)
30373 set_signal_handler(SIGINT, sigint);
30374 kill((int)getpid(), SIGINT);
30375 kill((int)getpid(), SIGINT);
30376 exit(nsigint != 2);
30380 rm -f conftest$ac_exeext
30381 if { (ac_try="$ac_link"
30382 case "(($ac_try" in
30383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30384 *) ac_try_echo=$ac_try;;
30386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30387 (eval "$ac_link") 2>&5
30389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30391 { (case "(($ac_try" in
30392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30393 *) ac_try_echo=$ac_try;;
30395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30396 (eval "$ac_try") 2>&5
30398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30399 (exit $ac_status); }; }; then
30400 bash_cv_must_reinstall_sighandlers=no
30402 echo "$as_me: program exited with status $ac_status" >&5
30403 echo "$as_me: failed program was:" >&5
30404 sed 's/^/| /' conftest.$ac_ext >&5
30406 ( exit $ac_status )
30407 bash_cv_must_reinstall_sighandlers=yes
30409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30415 { echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
30416 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6; }
30417 if test $bash_cv_must_reinstall_sighandlers = yes; then
30418 cat >>confdefs.h <<\_ACEOF
30419 @%:@define MUST_REINSTALL_SIGHANDLERS 1
30425 { echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
30426 echo $ECHO_N "checking for presence of necessary job control definitions... $ECHO_C" >&6; }
30427 if test "${bash_cv_job_control_missing+set}" = set; then
30428 echo $ECHO_N "(cached) $ECHO_C" >&6
30430 if test "$cross_compiling" = yes; then
30431 { echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
30432 echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
30433 bash_cv_job_control_missing=missing
30436 cat >conftest.$ac_ext <<_ACEOF
30439 cat confdefs.h >>conftest.$ac_ext
30440 cat >>conftest.$ac_ext <<_ACEOF
30441 /* end confdefs.h. */
30443 #include <sys/types.h>
30444 #ifdef HAVE_SYS_WAIT_H
30445 #include <sys/wait.h>
30447 #ifdef HAVE_UNISTD_H
30448 #include <unistd.h>
30450 #include <signal.h>
30452 /* Add more tests in here as appropriate. */
30456 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
30460 /* signals and tty control. */
30461 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
30465 /* process control */
30466 #if !defined (WNOHANG) || !defined (WUNTRACED)
30470 /* Posix systems have tcgetpgrp and waitpid. */
30471 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
30475 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
30479 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
30480 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
30487 rm -f conftest$ac_exeext
30488 if { (ac_try="$ac_link"
30489 case "(($ac_try" in
30490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491 *) ac_try_echo=$ac_try;;
30493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494 (eval "$ac_link") 2>&5
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30498 { (case "(($ac_try" in
30499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30500 *) ac_try_echo=$ac_try;;
30502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30503 (eval "$ac_try") 2>&5
30505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506 (exit $ac_status); }; }; then
30507 bash_cv_job_control_missing=present
30509 echo "$as_me: program exited with status $ac_status" >&5
30510 echo "$as_me: failed program was:" >&5
30511 sed 's/^/| /' conftest.$ac_ext >&5
30513 ( exit $ac_status )
30514 bash_cv_job_control_missing=missing
30516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30522 { echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
30523 echo "${ECHO_T}$bash_cv_job_control_missing" >&6; }
30524 if test $bash_cv_job_control_missing = missing; then
30525 cat >>confdefs.h <<\_ACEOF
30526 @%:@define JOB_CONTROL_MISSING 1
30531 { echo "$as_me:$LINENO: checking for presence of named pipes" >&5
30532 echo $ECHO_N "checking for presence of named pipes... $ECHO_C" >&6; }
30533 if test "${bash_cv_sys_named_pipes+set}" = set; then
30534 echo $ECHO_N "(cached) $ECHO_C" >&6
30536 if test "$cross_compiling" = yes; then
30537 { echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
30538 echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
30539 bash_cv_sys_named_pipes=missing
30542 cat >conftest.$ac_ext <<_ACEOF
30545 cat confdefs.h >>conftest.$ac_ext
30546 cat >>conftest.$ac_ext <<_ACEOF
30547 /* end confdefs.h. */
30549 #include <sys/types.h>
30550 #include <sys/stat.h>
30551 #ifdef HAVE_UNISTD_H
30552 #include <unistd.h>
30555 /* Add more tests in here as appropriate. */
30560 #if defined (HAVE_MKFIFO)
30564 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
30571 err = mkdir("bash-aclocal", 0700);
30576 fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
30578 rmdir ("bash-aclocal");
30582 unlink ("bash-aclocal/sh-np-autoconf");
30583 rmdir ("bash-aclocal");
30587 rm -f conftest$ac_exeext
30588 if { (ac_try="$ac_link"
30589 case "(($ac_try" in
30590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30591 *) ac_try_echo=$ac_try;;
30593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30594 (eval "$ac_link") 2>&5
30596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30598 { (case "(($ac_try" in
30599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30600 *) ac_try_echo=$ac_try;;
30602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30603 (eval "$ac_try") 2>&5
30605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30606 (exit $ac_status); }; }; then
30607 bash_cv_sys_named_pipes=present
30609 echo "$as_me: program exited with status $ac_status" >&5
30610 echo "$as_me: failed program was:" >&5
30611 sed 's/^/| /' conftest.$ac_ext >&5
30613 ( exit $ac_status )
30614 bash_cv_sys_named_pipes=missing
30616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30622 { echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
30623 echo "${ECHO_T}$bash_cv_sys_named_pipes" >&6; }
30624 if test $bash_cv_sys_named_pipes = missing; then
30625 cat >>confdefs.h <<\_ACEOF
30626 @%:@define NAMED_PIPES_MISSING 1
30632 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
30633 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
30634 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
30635 echo $ECHO_N "(cached) $ECHO_C" >&6
30637 cat >conftest.$ac_ext <<_ACEOF
30640 cat confdefs.h >>conftest.$ac_ext
30641 cat >>conftest.$ac_ext <<_ACEOF
30642 /* end confdefs.h. */
30643 #include <sys/types.h>
30644 #include <termios.h>
30650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30651 $EGREP "yes" >/dev/null 2>&1; then
30652 ac_cv_sys_tiocgwinsz_in_termios_h=yes
30654 ac_cv_sys_tiocgwinsz_in_termios_h=no
30659 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
30660 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
30662 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
30663 { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
30664 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
30665 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
30666 echo $ECHO_N "(cached) $ECHO_C" >&6
30668 cat >conftest.$ac_ext <<_ACEOF
30671 cat confdefs.h >>conftest.$ac_ext
30672 cat >>conftest.$ac_ext <<_ACEOF
30673 /* end confdefs.h. */
30674 #include <sys/types.h>
30675 #include <sys/ioctl.h>
30681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30682 $EGREP "yes" >/dev/null 2>&1; then
30683 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
30685 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
30690 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
30691 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
30693 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
30695 cat >>confdefs.h <<\_ACEOF
30696 @%:@define GWINSZ_IN_SYS_IOCTL 1
30702 { echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
30703 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6; }
30704 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
30705 echo $ECHO_N "(cached) $ECHO_C" >&6
30707 cat >conftest.$ac_ext <<_ACEOF
30710 cat confdefs.h >>conftest.$ac_ext
30711 cat >>conftest.$ac_ext <<_ACEOF
30712 /* end confdefs.h. */
30713 #include <sys/types.h>
30714 #include <sys/ioctl.h>
30723 rm -f conftest.$ac_objext
30724 if { (ac_try="$ac_compile"
30725 case "(($ac_try" in
30726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30727 *) ac_try_echo=$ac_try;;
30729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30730 (eval "$ac_compile") 2>conftest.er1
30732 grep -v '^ *+' conftest.er1 >conftest.err
30734 cat conftest.err >&5
30735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30736 (exit $ac_status); } &&
30737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30738 { (case "(($ac_try" in
30739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30740 *) ac_try_echo=$ac_try;;
30742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30743 (eval "$ac_try") 2>&5
30745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746 (exit $ac_status); }; } &&
30747 { ac_try='test -s conftest.$ac_objext'
30748 { (case "(($ac_try" in
30749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30750 *) ac_try_echo=$ac_try;;
30752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30753 (eval "$ac_try") 2>&5
30755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30756 (exit $ac_status); }; }; then
30757 bash_cv_tiocstat_in_ioctl=yes
30759 echo "$as_me: failed program was:" >&5
30760 sed 's/^/| /' conftest.$ac_ext >&5
30762 bash_cv_tiocstat_in_ioctl=no
30765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30768 { echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
30769 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6; }
30770 if test $bash_cv_tiocstat_in_ioctl = yes; then
30771 cat >>confdefs.h <<\_ACEOF
30772 @%:@define TIOCSTAT_IN_SYS_IOCTL 1
30777 { echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
30778 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6; }
30779 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
30780 echo $ECHO_N "(cached) $ECHO_C" >&6
30782 cat >conftest.$ac_ext <<_ACEOF
30785 cat confdefs.h >>conftest.$ac_ext
30786 cat >>conftest.$ac_ext <<_ACEOF
30787 /* end confdefs.h. */
30788 #include <sys/types.h>
30789 #include <sys/ioctl.h>
30798 rm -f conftest.$ac_objext
30799 if { (ac_try="$ac_compile"
30800 case "(($ac_try" in
30801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30802 *) ac_try_echo=$ac_try;;
30804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30805 (eval "$ac_compile") 2>conftest.er1
30807 grep -v '^ *+' conftest.er1 >conftest.err
30809 cat conftest.err >&5
30810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811 (exit $ac_status); } &&
30812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30813 { (case "(($ac_try" in
30814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30815 *) ac_try_echo=$ac_try;;
30817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30818 (eval "$ac_try") 2>&5
30820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821 (exit $ac_status); }; } &&
30822 { ac_try='test -s conftest.$ac_objext'
30823 { (case "(($ac_try" in
30824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30825 *) ac_try_echo=$ac_try;;
30827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30828 (eval "$ac_try") 2>&5
30830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831 (exit $ac_status); }; }; then
30832 bash_cv_fionread_in_ioctl=yes
30834 echo "$as_me: failed program was:" >&5
30835 sed 's/^/| /' conftest.$ac_ext >&5
30837 bash_cv_fionread_in_ioctl=no
30840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30843 { echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
30844 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6; }
30845 if test $bash_cv_fionread_in_ioctl = yes; then
30846 cat >>confdefs.h <<\_ACEOF
30847 @%:@define FIONREAD_IN_SYS_IOCTL 1
30854 { echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
30855 echo $ECHO_N "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... $ECHO_C" >&6; }
30856 if test "${bash_cv_wcontinued_broken+set}" = set; then
30857 echo $ECHO_N "(cached) $ECHO_C" >&6
30859 if test "$cross_compiling" = yes; then
30860 { echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
30861 echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
30862 bash_cv_wcontinued_broken=no
30865 cat >conftest.$ac_ext <<_ACEOF
30868 cat confdefs.h >>conftest.$ac_ext
30869 cat >>conftest.$ac_ext <<_ACEOF
30870 /* end confdefs.h. */
30872 #include <sys/types.h>
30873 #include <sys/wait.h>
30874 #include <unistd.h>
30884 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
30885 if (x == -1 && errno == EINVAL)
30892 rm -f conftest$ac_exeext
30893 if { (ac_try="$ac_link"
30894 case "(($ac_try" in
30895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30896 *) ac_try_echo=$ac_try;;
30898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30899 (eval "$ac_link") 2>&5
30901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30903 { (case "(($ac_try" in
30904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30905 *) ac_try_echo=$ac_try;;
30907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30908 (eval "$ac_try") 2>&5
30910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911 (exit $ac_status); }; }; then
30912 bash_cv_wcontinued_broken=no
30914 echo "$as_me: program exited with status $ac_status" >&5
30915 echo "$as_me: failed program was:" >&5
30916 sed 's/^/| /' conftest.$ac_ext >&5
30918 ( exit $ac_status )
30919 bash_cv_wcontinued_broken=yes
30921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30927 { echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
30928 echo "${ECHO_T}$bash_cv_wcontinued_broken" >&6; }
30929 if test $bash_cv_wcontinued_broken = yes; then
30930 cat >>confdefs.h <<\_ACEOF
30931 @%:@define WCONTINUED_BROKEN 1
30937 { echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
30938 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6; }
30939 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
30940 echo $ECHO_N "(cached) $ECHO_C" >&6
30942 cat >conftest.$ac_ext <<_ACEOF
30945 cat confdefs.h >>conftest.$ac_ext
30946 cat >>conftest.$ac_ext <<_ACEOF
30947 /* end confdefs.h. */
30948 #include <sys/types.h>
30957 rm -f conftest.$ac_objext
30958 if { (ac_try="$ac_compile"
30959 case "(($ac_try" in
30960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30961 *) ac_try_echo=$ac_try;;
30963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30964 (eval "$ac_compile") 2>conftest.er1
30966 grep -v '^ *+' conftest.er1 >conftest.err
30968 cat conftest.err >&5
30969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30970 (exit $ac_status); } &&
30971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30972 { (case "(($ac_try" in
30973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30974 *) ac_try_echo=$ac_try;;
30976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30977 (eval "$ac_try") 2>&5
30979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980 (exit $ac_status); }; } &&
30981 { ac_try='test -s conftest.$ac_objext'
30982 { (case "(($ac_try" in
30983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30984 *) ac_try_echo=$ac_try;;
30986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30987 (eval "$ac_try") 2>&5
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); }; }; then
30991 bash_cv_speed_t_in_sys_types=yes
30993 echo "$as_me: failed program was:" >&5
30994 sed 's/^/| /' conftest.$ac_ext >&5
30996 bash_cv_speed_t_in_sys_types=no
30999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31002 { echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
31003 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6; }
31004 if test $bash_cv_speed_t_in_sys_types = yes; then
31005 cat >>confdefs.h <<\_ACEOF
31006 @%:@define SPEED_T_IN_SYS_TYPES 1
31011 { echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
31012 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6; }
31013 if test "${bash_cv_getpw_declared+set}" = set; then
31014 echo $ECHO_N "(cached) $ECHO_C" >&6
31016 cat >conftest.$ac_ext <<_ACEOF
31019 cat confdefs.h >>conftest.$ac_ext
31020 cat >>conftest.$ac_ext <<_ACEOF
31021 /* end confdefs.h. */
31023 #include <sys/types.h>
31024 #ifdef HAVE_UNISTD_H
31025 # include <unistd.h>
31030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31031 $EGREP "getpwuid" >/dev/null 2>&1; then
31032 bash_cv_getpw_declared=yes
31034 bash_cv_getpw_declared=no
31040 { echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
31041 echo "${ECHO_T}$bash_cv_getpw_declared" >&6; }
31042 if test $bash_cv_getpw_declared = yes; then
31043 cat >>confdefs.h <<\_ACEOF
31044 @%:@define HAVE_GETPW_DECLS 1
31049 { echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
31050 echo $ECHO_N "checking for unusable real-time signals due to large values... $ECHO_C" >&6; }
31051 if test "${bash_cv_unusable_rtsigs+set}" = set; then
31052 echo $ECHO_N "(cached) $ECHO_C" >&6
31054 if test "$cross_compiling" = yes; then
31055 { echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
31056 echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
31057 bash_cv_unusable_rtsigs=yes
31060 cat >conftest.$ac_ext <<_ACEOF
31063 cat confdefs.h >>conftest.$ac_ext
31064 cat >>conftest.$ac_ext <<_ACEOF
31065 /* end confdefs.h. */
31067 #include <sys/types.h>
31068 #include <signal.h>
31076 int n_sigs = 2 * NSIG;
31078 int rtmin = SIGRTMIN;
31083 exit(rtmin < n_sigs);
31086 rm -f conftest$ac_exeext
31087 if { (ac_try="$ac_link"
31088 case "(($ac_try" in
31089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31090 *) ac_try_echo=$ac_try;;
31092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31093 (eval "$ac_link") 2>&5
31095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31097 { (case "(($ac_try" in
31098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31099 *) ac_try_echo=$ac_try;;
31101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31102 (eval "$ac_try") 2>&5
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); }; }; then
31106 bash_cv_unusable_rtsigs=yes
31108 echo "$as_me: program exited with status $ac_status" >&5
31109 echo "$as_me: failed program was:" >&5
31110 sed 's/^/| /' conftest.$ac_ext >&5
31112 ( exit $ac_status )
31113 bash_cv_unusable_rtsigs=no
31115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31121 { echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
31122 echo "${ECHO_T}$bash_cv_unusable_rtsigs" >&6; }
31123 if test $bash_cv_unusable_rtsigs = yes; then
31124 cat >>confdefs.h <<\_ACEOF
31125 @%:@define UNUSABLE_RT_SIGNALS 1
31134 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
31135 SIGLIST_O=siglist.o
31143 hpux*) { echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
31144 echo $ECHO_N "checking whether $host_os needs _KERNEL for RLIMIT defines... $ECHO_C" >&6; }
31145 if test "${bash_cv_kernel_rlimit+set}" = set; then
31146 echo $ECHO_N "(cached) $ECHO_C" >&6
31148 cat >conftest.$ac_ext <<_ACEOF
31151 cat confdefs.h >>conftest.$ac_ext
31152 cat >>conftest.$ac_ext <<_ACEOF
31153 /* end confdefs.h. */
31155 #include <sys/types.h>
31156 #include <sys/resource.h>
31169 rm -f conftest.$ac_objext
31170 if { (ac_try="$ac_compile"
31171 case "(($ac_try" in
31172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31173 *) ac_try_echo=$ac_try;;
31175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31176 (eval "$ac_compile") 2>conftest.er1
31178 grep -v '^ *+' conftest.er1 >conftest.err
31180 cat conftest.err >&5
31181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31182 (exit $ac_status); } &&
31183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31184 { (case "(($ac_try" in
31185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31186 *) ac_try_echo=$ac_try;;
31188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31189 (eval "$ac_try") 2>&5
31191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31192 (exit $ac_status); }; } &&
31193 { ac_try='test -s conftest.$ac_objext'
31194 { (case "(($ac_try" in
31195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31196 *) ac_try_echo=$ac_try;;
31198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31199 (eval "$ac_try") 2>&5
31201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31202 (exit $ac_status); }; }; then
31203 bash_cv_kernel_rlimit=no
31205 echo "$as_me: failed program was:" >&5
31206 sed 's/^/| /' conftest.$ac_ext >&5
31208 cat >conftest.$ac_ext <<_ACEOF
31211 cat confdefs.h >>conftest.$ac_ext
31212 cat >>conftest.$ac_ext <<_ACEOF
31213 /* end confdefs.h. */
31215 #include <sys/types.h>
31217 #include <sys/resource.h>
31231 rm -f conftest.$ac_objext
31232 if { (ac_try="$ac_compile"
31233 case "(($ac_try" in
31234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31235 *) ac_try_echo=$ac_try;;
31237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31238 (eval "$ac_compile") 2>conftest.er1
31240 grep -v '^ *+' conftest.er1 >conftest.err
31242 cat conftest.err >&5
31243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244 (exit $ac_status); } &&
31245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31246 { (case "(($ac_try" in
31247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31248 *) ac_try_echo=$ac_try;;
31250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31251 (eval "$ac_try") 2>&5
31253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31254 (exit $ac_status); }; } &&
31255 { ac_try='test -s conftest.$ac_objext'
31256 { (case "(($ac_try" in
31257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31258 *) ac_try_echo=$ac_try;;
31260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31261 (eval "$ac_try") 2>&5
31263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31264 (exit $ac_status); }; }; then
31265 bash_cv_kernel_rlimit=yes
31267 echo "$as_me: failed program was:" >&5
31268 sed 's/^/| /' conftest.$ac_ext >&5
31270 bash_cv_kernel_rlimit=no
31273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31280 { echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
31281 echo "${ECHO_T}$bash_cv_kernel_rlimit" >&6; }
31282 if test $bash_cv_kernel_rlimit = yes; then
31283 cat >>confdefs.h <<\_ACEOF
31284 @%:@define RLIMIT_NEEDS_KERNEL 1
31291 if test "$opt_readline" = yes; then
31293 aix*) prefer_curses=yes ;;
31296 if test "X$bash_cv_termcap_lib" = "X"; then
31299 { echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
31300 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6; }
31303 if test "${bash_cv_termcap_lib+set}" = set; then
31304 echo $ECHO_N "(cached) $ECHO_C" >&6
31306 { echo "$as_me:$LINENO: checking for tgetent" >&5
31307 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6; }
31308 if test "${ac_cv_func_tgetent+set}" = set; then
31309 echo $ECHO_N "(cached) $ECHO_C" >&6
31311 cat >conftest.$ac_ext <<_ACEOF
31314 cat confdefs.h >>conftest.$ac_ext
31315 cat >>conftest.$ac_ext <<_ACEOF
31316 /* end confdefs.h. */
31317 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
31318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31319 #define tgetent innocuous_tgetent
31321 /* System header to define __stub macros and hopefully few prototypes,
31322 which can conflict with char tgetent (); below.
31323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31324 <limits.h> exists even on freestanding compilers. */
31327 # include <limits.h>
31329 # include <assert.h>
31334 /* Override any GCC internal prototype to avoid an error.
31335 Use char because int might match the return type of a GCC
31336 builtin and then its argument prototype would still apply. */
31341 /* The GNU C library defines this for functions which it implements
31342 to always fail with ENOSYS. Some functions are actually named
31343 something starting with __ and the normal name is an alias. */
31344 #if defined __stub_tgetent || defined __stub___tgetent
31356 rm -f conftest.$ac_objext conftest$ac_exeext
31357 if { (ac_try="$ac_link"
31358 case "(($ac_try" in
31359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31360 *) ac_try_echo=$ac_try;;
31362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31363 (eval "$ac_link") 2>conftest.er1
31365 grep -v '^ *+' conftest.er1 >conftest.err
31367 cat conftest.err >&5
31368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31369 (exit $ac_status); } &&
31370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31371 { (case "(($ac_try" in
31372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31373 *) ac_try_echo=$ac_try;;
31375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31376 (eval "$ac_try") 2>&5
31378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31379 (exit $ac_status); }; } &&
31380 { ac_try='test -s conftest$ac_exeext'
31381 { (case "(($ac_try" in
31382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31383 *) ac_try_echo=$ac_try;;
31385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31386 (eval "$ac_try") 2>&5
31388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389 (exit $ac_status); }; }; then
31390 ac_cv_func_tgetent=yes
31392 echo "$as_me: failed program was:" >&5
31393 sed 's/^/| /' conftest.$ac_ext >&5
31395 ac_cv_func_tgetent=no
31398 rm -f core conftest.err conftest.$ac_objext \
31399 conftest$ac_exeext conftest.$ac_ext
31401 { echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
31402 echo "${ECHO_T}$ac_cv_func_tgetent" >&6; }
31403 if test $ac_cv_func_tgetent = yes; then
31404 bash_cv_termcap_lib=libc
31406 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
31407 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
31408 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
31409 echo $ECHO_N "(cached) $ECHO_C" >&6
31411 ac_check_lib_save_LIBS=$LIBS
31412 LIBS="-ltermcap $LIBS"
31413 cat >conftest.$ac_ext <<_ACEOF
31416 cat confdefs.h >>conftest.$ac_ext
31417 cat >>conftest.$ac_ext <<_ACEOF
31418 /* end confdefs.h. */
31420 /* Override any GCC internal prototype to avoid an error.
31421 Use char because int might match the return type of a GCC
31422 builtin and then its argument prototype would still apply. */
31435 rm -f conftest.$ac_objext conftest$ac_exeext
31436 if { (ac_try="$ac_link"
31437 case "(($ac_try" in
31438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31439 *) ac_try_echo=$ac_try;;
31441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31442 (eval "$ac_link") 2>conftest.er1
31444 grep -v '^ *+' conftest.er1 >conftest.err
31446 cat conftest.err >&5
31447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448 (exit $ac_status); } &&
31449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31450 { (case "(($ac_try" in
31451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31452 *) ac_try_echo=$ac_try;;
31454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31455 (eval "$ac_try") 2>&5
31457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31458 (exit $ac_status); }; } &&
31459 { ac_try='test -s conftest$ac_exeext'
31460 { (case "(($ac_try" in
31461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31462 *) ac_try_echo=$ac_try;;
31464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31465 (eval "$ac_try") 2>&5
31467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31468 (exit $ac_status); }; }; then
31469 ac_cv_lib_termcap_tgetent=yes
31471 echo "$as_me: failed program was:" >&5
31472 sed 's/^/| /' conftest.$ac_ext >&5
31474 ac_cv_lib_termcap_tgetent=no
31477 rm -f core conftest.err conftest.$ac_objext \
31478 conftest$ac_exeext conftest.$ac_ext
31479 LIBS=$ac_check_lib_save_LIBS
31481 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
31482 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
31483 if test $ac_cv_lib_termcap_tgetent = yes; then
31484 bash_cv_termcap_lib=libtermcap
31486 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
31487 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
31488 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
31489 echo $ECHO_N "(cached) $ECHO_C" >&6
31491 ac_check_lib_save_LIBS=$LIBS
31492 LIBS="-ltinfo $LIBS"
31493 cat >conftest.$ac_ext <<_ACEOF
31496 cat confdefs.h >>conftest.$ac_ext
31497 cat >>conftest.$ac_ext <<_ACEOF
31498 /* end confdefs.h. */
31500 /* Override any GCC internal prototype to avoid an error.
31501 Use char because int might match the return type of a GCC
31502 builtin and then its argument prototype would still apply. */
31515 rm -f conftest.$ac_objext conftest$ac_exeext
31516 if { (ac_try="$ac_link"
31517 case "(($ac_try" in
31518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31519 *) ac_try_echo=$ac_try;;
31521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31522 (eval "$ac_link") 2>conftest.er1
31524 grep -v '^ *+' conftest.er1 >conftest.err
31526 cat conftest.err >&5
31527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31528 (exit $ac_status); } &&
31529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31530 { (case "(($ac_try" in
31531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31532 *) ac_try_echo=$ac_try;;
31534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31535 (eval "$ac_try") 2>&5
31537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31538 (exit $ac_status); }; } &&
31539 { ac_try='test -s conftest$ac_exeext'
31540 { (case "(($ac_try" in
31541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31542 *) ac_try_echo=$ac_try;;
31544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31545 (eval "$ac_try") 2>&5
31547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548 (exit $ac_status); }; }; then
31549 ac_cv_lib_tinfo_tgetent=yes
31551 echo "$as_me: failed program was:" >&5
31552 sed 's/^/| /' conftest.$ac_ext >&5
31554 ac_cv_lib_tinfo_tgetent=no
31557 rm -f core conftest.err conftest.$ac_objext \
31558 conftest$ac_exeext conftest.$ac_ext
31559 LIBS=$ac_check_lib_save_LIBS
31561 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
31562 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
31563 if test $ac_cv_lib_tinfo_tgetent = yes; then
31564 bash_cv_termcap_lib=libtinfo
31566 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
31567 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
31568 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
31569 echo $ECHO_N "(cached) $ECHO_C" >&6
31571 ac_check_lib_save_LIBS=$LIBS
31572 LIBS="-lcurses $LIBS"
31573 cat >conftest.$ac_ext <<_ACEOF
31576 cat confdefs.h >>conftest.$ac_ext
31577 cat >>conftest.$ac_ext <<_ACEOF
31578 /* end confdefs.h. */
31580 /* Override any GCC internal prototype to avoid an error.
31581 Use char because int might match the return type of a GCC
31582 builtin and then its argument prototype would still apply. */
31595 rm -f conftest.$ac_objext conftest$ac_exeext
31596 if { (ac_try="$ac_link"
31597 case "(($ac_try" in
31598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31599 *) ac_try_echo=$ac_try;;
31601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31602 (eval "$ac_link") 2>conftest.er1
31604 grep -v '^ *+' conftest.er1 >conftest.err
31606 cat conftest.err >&5
31607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31608 (exit $ac_status); } &&
31609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31610 { (case "(($ac_try" in
31611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31612 *) ac_try_echo=$ac_try;;
31614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31615 (eval "$ac_try") 2>&5
31617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31618 (exit $ac_status); }; } &&
31619 { ac_try='test -s conftest$ac_exeext'
31620 { (case "(($ac_try" in
31621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31622 *) ac_try_echo=$ac_try;;
31624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31625 (eval "$ac_try") 2>&5
31627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31628 (exit $ac_status); }; }; then
31629 ac_cv_lib_curses_tgetent=yes
31631 echo "$as_me: failed program was:" >&5
31632 sed 's/^/| /' conftest.$ac_ext >&5
31634 ac_cv_lib_curses_tgetent=no
31637 rm -f core conftest.err conftest.$ac_objext \
31638 conftest$ac_exeext conftest.$ac_ext
31639 LIBS=$ac_check_lib_save_LIBS
31641 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
31642 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
31643 if test $ac_cv_lib_curses_tgetent = yes; then
31644 bash_cv_termcap_lib=libcurses
31646 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
31647 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
31648 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
31649 echo $ECHO_N "(cached) $ECHO_C" >&6
31651 ac_check_lib_save_LIBS=$LIBS
31652 LIBS="-lncurses $LIBS"
31653 cat >conftest.$ac_ext <<_ACEOF
31656 cat confdefs.h >>conftest.$ac_ext
31657 cat >>conftest.$ac_ext <<_ACEOF
31658 /* end confdefs.h. */
31660 /* Override any GCC internal prototype to avoid an error.
31661 Use char because int might match the return type of a GCC
31662 builtin and then its argument prototype would still apply. */
31675 rm -f conftest.$ac_objext conftest$ac_exeext
31676 if { (ac_try="$ac_link"
31677 case "(($ac_try" in
31678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31679 *) ac_try_echo=$ac_try;;
31681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31682 (eval "$ac_link") 2>conftest.er1
31684 grep -v '^ *+' conftest.er1 >conftest.err
31686 cat conftest.err >&5
31687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688 (exit $ac_status); } &&
31689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31690 { (case "(($ac_try" in
31691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31692 *) ac_try_echo=$ac_try;;
31694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31695 (eval "$ac_try") 2>&5
31697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); }; } &&
31699 { ac_try='test -s conftest$ac_exeext'
31700 { (case "(($ac_try" in
31701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31702 *) ac_try_echo=$ac_try;;
31704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31705 (eval "$ac_try") 2>&5
31707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708 (exit $ac_status); }; }; then
31709 ac_cv_lib_ncurses_tgetent=yes
31711 echo "$as_me: failed program was:" >&5
31712 sed 's/^/| /' conftest.$ac_ext >&5
31714 ac_cv_lib_ncurses_tgetent=no
31717 rm -f core conftest.err conftest.$ac_objext \
31718 conftest$ac_exeext conftest.$ac_ext
31719 LIBS=$ac_check_lib_save_LIBS
31721 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
31722 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
31723 if test $ac_cv_lib_ncurses_tgetent = yes; then
31724 bash_cv_termcap_lib=libncurses
31726 bash_cv_termcap_lib=gnutermcap
31739 if test "X$_bash_needmsg" = "Xyes"; then
31740 { echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
31741 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6; }
31743 { echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
31744 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6; }
31745 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
31746 LDFLAGS="$LDFLAGS -L./lib/termcap"
31747 TERMCAP_LIB="./lib/termcap/libtermcap.a"
31748 TERMCAP_DEP="./lib/termcap/libtermcap.a"
31749 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
31750 TERMCAP_LIB=-ltermcap
31752 elif test $bash_cv_termcap_lib = libtinfo; then
31753 TERMCAP_LIB=-ltinfo
31755 elif test $bash_cv_termcap_lib = libncurses; then
31756 TERMCAP_LIB=-lncurses
31758 elif test $bash_cv_termcap_lib = libc; then
31762 TERMCAP_LIB=-lcurses
31770 { echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
31771 echo $ECHO_N "checking whether /dev/fd is available... $ECHO_C" >&6; }
31772 if test "${bash_cv_dev_fd+set}" = set; then
31773 echo $ECHO_N "(cached) $ECHO_C" >&6
31776 if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then
31777 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
31778 if (exec test -r /dev/fd/3 3</dev/null) ; then
31779 bash_cv_dev_fd=standard
31781 bash_cv_dev_fd=absent
31784 if test -z "$bash_cv_dev_fd" ; then
31785 if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then
31786 bash_cv_dev_fd=whacky
31788 bash_cv_dev_fd=absent
31794 { echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
31795 echo "${ECHO_T}$bash_cv_dev_fd" >&6; }
31796 if test $bash_cv_dev_fd = "standard"; then
31797 cat >>confdefs.h <<\_ACEOF
31798 @%:@define HAVE_DEV_FD 1
31801 cat >>confdefs.h <<\_ACEOF
31802 @%:@define DEV_FD_PREFIX "/dev/fd/"
31805 elif test $bash_cv_dev_fd = "whacky"; then
31806 cat >>confdefs.h <<\_ACEOF
31807 @%:@define HAVE_DEV_FD 1
31810 cat >>confdefs.h <<\_ACEOF
31811 @%:@define DEV_FD_PREFIX "/proc/self/fd/"
31816 { echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
31817 echo $ECHO_N "checking whether /dev/stdin stdout stderr are available... $ECHO_C" >&6; }
31818 if test "${bash_cv_dev_stdin+set}" = set; then
31819 echo $ECHO_N "(cached) $ECHO_C" >&6
31821 if test -d /dev/fd && (exec test -r /dev/stdin < /dev/null) ; then
31822 bash_cv_dev_stdin=present
31823 elif test -d /proc/self/fd && (exec test -r /dev/stdin < /dev/null) ; then
31824 bash_cv_dev_stdin=present
31826 bash_cv_dev_stdin=absent
31831 { echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
31832 echo "${ECHO_T}$bash_cv_dev_stdin" >&6; }
31833 if test $bash_cv_dev_stdin = "present"; then
31834 cat >>confdefs.h <<\_ACEOF
31835 @%:@define HAVE_DEV_STDIN 1
31840 { echo "$as_me:$LINENO: checking for default mail directory" >&5
31841 echo $ECHO_N "checking for default mail directory... $ECHO_C" >&6; }
31842 if test "${bash_cv_mail_dir+set}" = set; then
31843 echo $ECHO_N "(cached) $ECHO_C" >&6
31845 if test -d /var/mail; then
31846 bash_cv_mail_dir=/var/mail
31847 elif test -d /var/spool/mail; then
31848 bash_cv_mail_dir=/var/spool/mail
31849 elif test -d /usr/mail; then
31850 bash_cv_mail_dir=/usr/mail
31851 elif test -d /usr/spool/mail; then
31852 bash_cv_mail_dir=/usr/spool/mail
31854 bash_cv_mail_dir=unknown
31859 { echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
31860 echo "${ECHO_T}$bash_cv_mail_dir" >&6; }
31861 cat >>confdefs.h <<_ACEOF
31862 @%:@define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
31867 if test "$bash_cv_job_control_missing" = missing; then
31871 if test "$opt_job_control" = yes; then
31872 cat >>confdefs.h <<\_ACEOF
31873 @%:@define JOB_CONTROL 1
31887 case "${host_os}" in
31888 sysv4.2*) cat >>confdefs.h <<\_ACEOF
31889 @%:@define SVR4_2 1
31892 cat >>confdefs.h <<\_ACEOF
31896 sysv4*) cat >>confdefs.h <<\_ACEOF
31900 sysv5*) cat >>confdefs.h <<\_ACEOF
31904 hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
31905 hpux*) LOCAL_CFLAGS=-DHPUX ;;
31906 dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
31907 isc*) LOCAL_CFLAGS=-Disc386 ;;
31908 rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
31909 darwin*) LOCAL_CFLAGS=-DMACOSX ;;
31910 sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
31911 sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
31912 sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
31913 sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
31914 solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;;
31915 solaris2*) LOCAL_CFLAGS=-DSOLARIS ;;
31916 lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
31917 linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
31918 case "`uname -r`" in
31919 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF
31920 @%:@define PGRP_PIPE 1
31924 *qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;;
31925 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
31926 powerux*) LOCAL_LIBS="-lgen" ;;
31927 cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
31928 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;;
31931 case "${host_os}-${CC}" in
31932 aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
31933 aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
31934 bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
31937 case "${host_os}" in
31939 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
31940 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
31942 freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
31943 dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
31946 case "$host_cpu" in
31947 *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
31950 case "$host_cpu-$host_os" in
31951 ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
31954 case "$host_cpu-$host_vendor-$host_os" in
31955 m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
31956 mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
31960 # Shared object configuration section. These values are generated by
31961 # ${srcdir}/support/shobj-conf
31963 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
31965 { echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
31966 echo $ECHO_N "checking shared object configuration for loadable builtins... $ECHO_C" >&6; }
31967 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
31975 { echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
31976 echo "${ECHO_T}$SHOBJ_STATUS" >&6; }
31979 # try to create a directory tree if the source is elsewhere
31980 # this should be packaged into a script accessible via ${srcdir}/support
31983 *) for d in doc tests support lib examples; do # dirs
31984 test -d $d || mkdir $d
31986 for ld in readline glob tilde malloc sh termcap; do # libdirs
31987 test -d lib/$ld || mkdir lib/$ld
31989 test -d examples/loadables || mkdir examples/loadables # loadable builtins
31990 test -d examples/loadables/perl || mkdir examples/loadables/perl
31995 case "$BUILD_DIR" in
31996 *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
32000 if test -z "$localedir"; then
32001 localedir='${datarootdir}/locale'
32003 if test -z "$datarootdir"; then
32004 datarootdir='${prefix}/share'
32012 # Some versions of autoconf don't substitute these automatically
32034 #AC_SUBST(ALLOCA_SOURCE)
32035 #AC_SUBST(ALLOCA_OBJECT)
32037 ac_config_files="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/intl/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/perl/Makefile"
32039 ac_config_commands="$ac_config_commands default"
32041 cat >confcache <<\_ACEOF
32042 # This file is a shell script that caches the results of configure
32043 # tests run on this system so they can be shared between configure
32044 # scripts and configure runs, see configure's option --config-cache.
32045 # It is not useful on other systems. If it contains results you don't
32046 # want to keep, you may remove or edit it.
32048 # config.status only pays attention to the cache file if you give it
32049 # the --recheck option to rerun configure.
32051 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32052 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32053 # following values.
32057 # The following way of writing the cache mishandles newlines in values,
32058 # but we know of no workaround that is simple, portable, and efficient.
32059 # So, we kill variables containing newlines.
32060 # Ultrix sh set writes to stderr and can't be redirected directly,
32061 # and sets the high bit in the cache file unless we assign to the vars.
32063 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32064 eval ac_val=\$$ac_var
32068 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32069 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32072 _ | IFS | as_nl) ;; #(
32073 *) $as_unset $ac_var ;;
32079 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32080 *${as_nl}ac_space=\ *)
32081 # `set' does not quote correctly, so add quotes (double-quote
32082 # substitution turns \\\\ into \\, and sed turns \\ into \).
32085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32088 # `set' quotes correctly as required by POSIX, so do not add quotes.
32089 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32098 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32100 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32102 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32103 if test -w "$cache_file"; then
32104 test "x$cache_file" != "x/dev/null" &&
32105 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32106 echo "$as_me: updating cache $cache_file" >&6;}
32107 cat confcache >$cache_file
32109 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32110 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32115 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32116 # Let make expand exec_prefix.
32117 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32119 DEFS=-DHAVE_CONFIG_H
32123 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
32124 # 1. Remove the extension, and $U if already installed.
32125 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32126 ac_i=`echo "$ac_i" | sed "$ac_script"`
32127 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32128 # will be set to the directory where LIBOBJS objects are built.
32129 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32130 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32132 LIB@&t@OBJS=$ac_libobjs
32134 LTLIBOBJS=$ac_ltlibobjs
32138 : ${CONFIG_STATUS=./config.status}
32139 ac_clean_files_save=$ac_clean_files
32140 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32141 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32142 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32143 cat >$CONFIG_STATUS <<_ACEOF
32145 # Generated by $as_me.
32146 # Run this file to recreate the current configuration.
32147 # Compiler output produced by configure, useful for debugging
32148 # configure, is in config.log if it exists.
32151 ac_cs_recheck=false
32153 SHELL=\${CONFIG_SHELL-$SHELL}
32156 cat >>$CONFIG_STATUS <<\_ACEOF
32157 ## --------------------- ##
32158 ## M4sh Initialization. ##
32159 ## --------------------- ##
32161 # Be Bourne compatible
32162 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32165 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32166 # is contrary to our usage. Disable this feature.
32167 alias -g '${1+"$@"}'='"$@"'
32168 setopt NO_GLOB_SUBST
32170 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
32172 BIN_SH=xpg4; export BIN_SH # for Tru64
32173 DUALCASE=1; export DUALCASE # for MKS sh
32177 # Avoid depending upon Character Ranges.
32178 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32179 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32180 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32181 as_cr_digits='0123456789'
32182 as_cr_alnum=$as_cr_Letters$as_cr_digits
32184 # The user is always right.
32185 if test "${PATH_SEPARATOR+set}" != set; then
32186 echo "#! /bin/sh" >conf$$.sh
32187 echo "exit 0" >>conf$$.sh
32189 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32197 # Support unset when possible.
32198 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32206 # We need space, tab and new line, in precisely that order. Quoting is
32207 # there to prevent editors from complaining about space-tab.
32208 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32209 # splitting by setting IFS to empty value.)
32214 # Find who we are. Look in the path if we contain no directory separator.
32216 *[\\/]* ) as_myself=$0 ;;
32217 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32218 for as_dir in $PATH
32221 test -z "$as_dir" && as_dir=.
32222 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32228 # We did not find ourselves, most probably we were run as `sh COMMAND'
32229 # in which case we are not to be found in the path.
32230 if test "x$as_myself" = x; then
32233 if test ! -f "$as_myself"; then
32234 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32235 { (exit 1); exit 1; }
32238 # Work around bugs in pre-3.0 UWIN ksh.
32239 for as_var in ENV MAIL MAILPATH
32240 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32248 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32249 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32250 LC_TELEPHONE LC_TIME
32252 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32253 eval $as_var=C; export $as_var
32255 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32259 # Required to use basename.
32260 if expr a : '\(a\)' >/dev/null 2>&1 &&
32261 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32267 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32268 as_basename=basename
32274 # Name of the executable.
32275 as_me=`$as_basename -- "$0" ||
32276 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32277 X"$0" : 'X\(//\)$' \| \
32278 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32280 sed '/^.*\/\([^/][^/]*\)\/*$/{
32299 as_lineno_1=$LINENO
32300 as_lineno_2=$LINENO
32301 test "x$as_lineno_1" != "x$as_lineno_2" &&
32302 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32304 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32305 # uniformly replaced by the line number. The first 'sed' inserts a
32306 # line-number line after each line using $LINENO; the second 'sed'
32307 # does the real work. The second script uses 'N' to pair each
32308 # line-number line with the line containing $LINENO, and appends
32309 # trailing '-' during substitution so that $LINENO is not a special
32310 # case at line end.
32311 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32312 # scripts with optimization help from Paolo Bonzini. Blame Lee
32313 # E. McMahon (1931-1989) for sed's syntax. :-)
32325 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32328 ' >$as_me.lineno &&
32329 chmod +x "$as_me.lineno" ||
32330 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32331 { (exit 1); exit 1; }; }
32333 # Don't try to exec as it changes $[0], causing all sort of problems
32334 # (the dirname of $[0] is not the place where we might find the
32335 # original and so on. Autoconf is especially sensitive to this).
32336 . "./$as_me.lineno"
32337 # Exit status is that of the last command.
32342 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32348 ECHO_C= ECHO_N= ECHO_T=
32349 case `echo -n x` in
32351 case `echo 'x\c'` in
32352 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32359 if expr a : '\(a\)' >/dev/null 2>&1 &&
32360 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32366 rm -f conf$$ conf$$.exe conf$$.file
32367 if test -d conf$$.dir; then
32368 rm -f conf$$.dir/conf$$.file
32374 if ln -s conf$$.file conf$$ 2>/dev/null; then
32376 # ... but there are two gotchas:
32377 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32378 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32379 # In both cases, we have to default to `cp -p'.
32380 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32382 elif ln conf$$.file conf$$ 2>/dev/null; then
32387 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32388 rmdir conf$$.dir 2>/dev/null
32390 if mkdir -p . 2>/dev/null; then
32393 test -d ./-p && rmdir ./-p
32397 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
32398 # systems may use methods other than mode bits to determine executability.
32399 cat >conf$$.file <<_ASEOF
32403 chmod +x conf$$.file
32404 if test -x conf$$.file >/dev/null 2>&1; then
32405 as_executable_p="test -x"
32411 # Sed expression to map a string onto a valid CPP name.
32412 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32414 # Sed expression to map a string onto a valid variable name.
32415 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32420 # Save the log message, to keep $[0] and so on meaningful, and to
32421 # report actual input values of CONFIG_FILES etc. instead of their
32422 # values after options handling.
32424 This file was extended by bash $as_me 4.0-alpha, which was
32425 generated by GNU Autoconf 2.60. Invocation command line was
32427 CONFIG_FILES = $CONFIG_FILES
32428 CONFIG_HEADERS = $CONFIG_HEADERS
32429 CONFIG_LINKS = $CONFIG_LINKS
32430 CONFIG_COMMANDS = $CONFIG_COMMANDS
32433 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32438 cat >>$CONFIG_STATUS <<_ACEOF
32439 # Files that config.status was made for.
32440 config_files="$ac_config_files"
32441 config_headers="$ac_config_headers"
32442 config_commands="$ac_config_commands"
32446 cat >>$CONFIG_STATUS <<\_ACEOF
32448 \`$as_me' instantiates files from templates according to the
32449 current configuration.
32451 Usage: $0 [OPTIONS] [FILE]...
32453 -h, --help print this help, then exit
32454 -V, --version print version number, then exit
32455 -q, --quiet do not print progress messages
32456 -d, --debug don't remove temporary files
32457 --recheck update $as_me by reconfiguring in the same conditions
32458 --file=FILE[:TEMPLATE]
32459 instantiate the configuration file FILE
32460 --header=FILE[:TEMPLATE]
32461 instantiate the configuration header FILE
32463 Configuration files:
32466 Configuration headers:
32469 Configuration commands:
32472 Report bugs to <bug-autoconf@gnu.org>."
32475 cat >>$CONFIG_STATUS <<_ACEOF
32477 bash config.status 4.0-alpha
32478 configured by $0, generated by GNU Autoconf 2.60,
32479 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32481 Copyright (C) 2006 Free Software Foundation, Inc.
32482 This config.status script is free software; the Free Software Foundation
32483 gives unlimited permission to copy, distribute and modify it."
32490 cat >>$CONFIG_STATUS <<\_ACEOF
32491 # If no file are specified by the user, then we need to provide default
32492 # value. By we need to know if files were specified by the user.
32498 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32499 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32510 # Handling of the options.
32511 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32513 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32514 echo "$ac_cs_version"; exit ;;
32515 --debug | --debu | --deb | --de | --d | -d )
32517 --file | --fil | --fi | --f )
32519 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32520 ac_need_defaults=false;;
32521 --header | --heade | --head | --hea )
32523 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32524 ac_need_defaults=false;;
32526 # Conflict between --help and --header
32527 { echo "$as_me: error: ambiguous option: $1
32528 Try \`$0 --help' for more information." >&2
32529 { (exit 1); exit 1; }; };;
32530 --help | --hel | -h )
32531 echo "$ac_cs_usage"; exit ;;
32532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32533 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32536 # This is an error.
32537 -*) { echo "$as_me: error: unrecognized option: $1
32538 Try \`$0 --help' for more information." >&2
32539 { (exit 1); exit 1; }; } ;;
32541 *) ac_config_targets="$ac_config_targets $1"
32542 ac_need_defaults=false ;;
32548 ac_configure_extra_args=
32550 if $ac_cs_silent; then
32552 ac_configure_extra_args="$ac_configure_extra_args --silent"
32556 cat >>$CONFIG_STATUS <<_ACEOF
32557 if \$ac_cs_recheck; then
32558 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32559 CONFIG_SHELL=$SHELL
32560 export CONFIG_SHELL
32561 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32565 cat >>$CONFIG_STATUS <<\_ACEOF
32569 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
32570 @%:@@%:@ Running $as_me. @%:@@%:@
32576 cat >>$CONFIG_STATUS <<_ACEOF
32580 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32581 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
32583 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32584 # Capture the value of LINGUAS because we need it to compute CATALOGS.
32585 LINGUAS="${LINGUAS-%UNSET%}"
32590 cat >>$CONFIG_STATUS <<\_ACEOF
32592 # Handling of arguments.
32593 for ac_config_target in $ac_config_targets
32595 case $ac_config_target in
32596 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32597 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32598 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32599 "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
32600 "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
32601 "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
32602 "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
32603 "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
32604 "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
32605 "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
32606 "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
32607 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
32608 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
32609 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32610 "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
32611 "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
32612 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32614 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32615 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32616 { (exit 1); exit 1; }; };;
32621 # If the user did not use the arguments to specify the items to instantiate,
32622 # then the envvar interface is used. Set only those that are not.
32623 # We use the long form for the default assignment because of an extremely
32624 # bizarre bug on SunOS 4.1.3.
32625 if $ac_need_defaults; then
32626 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32627 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32628 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32631 # Have a temporary directory for convenience. Make it in the build tree
32632 # simply because there is no reason against having it here, and in addition,
32633 # creating and moving files from /tmp can sometimes cause problems.
32634 # Hook for its removal unless debugging.
32635 # Note that there is a small window in which the directory will not be cleaned:
32636 # after its creation but before its name has been assigned to `$tmp'.
32640 trap 'exit_status=$?
32641 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32643 trap '{ (exit 1); exit 1; }' 1 2 13 15
32645 # Create a (secure) tmp directory for tmp files.
32648 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32649 test -n "$tmp" && test -d "$tmp"
32652 tmp=./conf$$-$RANDOM
32653 (umask 077 && mkdir "$tmp")
32656 echo "$me: cannot create a temporary directory in ." >&2
32657 { (exit 1); exit 1; }
32661 # Set up the sed scripts for CONFIG_FILES section.
32664 # No need to generate the scripts if there are no CONFIG_FILES.
32665 # This happens for instance when ./config.status config.h
32666 if test -n "$CONFIG_FILES"; then
32673 for ac_last_try in false false false false false :; do
32674 cat >conf$$subs.sed <<_ACEOF
32675 SHELL!$SHELL$ac_delim
32676 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32677 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32678 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32679 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32680 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32681 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32682 exec_prefix!$exec_prefix$ac_delim
32683 prefix!$prefix$ac_delim
32684 program_transform_name!$program_transform_name$ac_delim
32685 bindir!$bindir$ac_delim
32686 sbindir!$sbindir$ac_delim
32687 libexecdir!$libexecdir$ac_delim
32688 datarootdir!$datarootdir$ac_delim
32689 datadir!$datadir$ac_delim
32690 sysconfdir!$sysconfdir$ac_delim
32691 sharedstatedir!$sharedstatedir$ac_delim
32692 localstatedir!$localstatedir$ac_delim
32693 includedir!$includedir$ac_delim
32694 oldincludedir!$oldincludedir$ac_delim
32695 docdir!$docdir$ac_delim
32696 infodir!$infodir$ac_delim
32697 htmldir!$htmldir$ac_delim
32698 dvidir!$dvidir$ac_delim
32699 pdfdir!$pdfdir$ac_delim
32700 psdir!$psdir$ac_delim
32701 libdir!$libdir$ac_delim
32702 localedir!$localedir$ac_delim
32703 mandir!$mandir$ac_delim
32704 DEFS!$DEFS$ac_delim
32705 ECHO_C!$ECHO_C$ac_delim
32706 ECHO_N!$ECHO_N$ac_delim
32707 ECHO_T!$ECHO_T$ac_delim
32708 LIBS!$LIBS$ac_delim
32709 build_alias!$build_alias$ac_delim
32710 host_alias!$host_alias$ac_delim
32711 target_alias!$target_alias$ac_delim
32712 build!$build$ac_delim
32713 build_cpu!$build_cpu$ac_delim
32714 build_vendor!$build_vendor$ac_delim
32715 build_os!$build_os$ac_delim
32716 host!$host$ac_delim
32717 host_cpu!$host_cpu$ac_delim
32718 host_vendor!$host_vendor$ac_delim
32719 host_os!$host_os$ac_delim
32720 EMACS!$EMACS$ac_delim
32721 lispdir!$lispdir$ac_delim
32722 DEBUGGER_START_FILE!$DEBUGGER_START_FILE$ac_delim
32723 TESTSCRIPT!$TESTSCRIPT$ac_delim
32724 PURIFY!$PURIFY$ac_delim
32725 MALLOC_TARGET!$MALLOC_TARGET$ac_delim
32726 MALLOC_SRC!$MALLOC_SRC$ac_delim
32727 MALLOC_LIB!$MALLOC_LIB$ac_delim
32728 MALLOC_LIBRARY!$MALLOC_LIBRARY$ac_delim
32729 MALLOC_LDFLAGS!$MALLOC_LDFLAGS$ac_delim
32730 MALLOC_DEP!$MALLOC_DEP$ac_delim
32731 HELPDIR!$HELPDIR$ac_delim
32732 HELPDIRDEFINE!$HELPDIRDEFINE$ac_delim
32733 HELPINSTALL!$HELPINSTALL$ac_delim
32734 HELPSTRINGS!$HELPSTRINGS$ac_delim
32736 CFLAGS!$CFLAGS$ac_delim
32737 LDFLAGS!$LDFLAGS$ac_delim
32738 CPPFLAGS!$CPPFLAGS$ac_delim
32739 ac_ct_CC!$ac_ct_CC$ac_delim
32740 EXEEXT!$EXEEXT$ac_delim
32741 OBJEXT!$OBJEXT$ac_delim
32743 GREP!$GREP$ac_delim
32744 EGREP!$EGREP$ac_delim
32745 CROSS_COMPILE!$CROSS_COMPILE$ac_delim
32746 SIGNAMES_H!$SIGNAMES_H$ac_delim
32747 SIGNAMES_O!$SIGNAMES_O$ac_delim
32748 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
32749 STATIC_LD!$STATIC_LD$ac_delim
32750 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
32751 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
32752 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
32753 RL_VERSION!$RL_VERSION$ac_delim
32754 RL_MAJOR!$RL_MAJOR$ac_delim
32755 RL_MINOR!$RL_MINOR$ac_delim
32756 READLINE_LIB!$READLINE_LIB$ac_delim
32757 READLINE_DEP!$READLINE_DEP$ac_delim
32758 RL_LIBDIR!$RL_LIBDIR$ac_delim
32759 RL_INCLUDEDIR!$RL_INCLUDEDIR$ac_delim
32760 RL_INCLUDE!$RL_INCLUDE$ac_delim
32761 HISTORY_LIB!$HISTORY_LIB$ac_delim
32762 HISTORY_DEP!$HISTORY_DEP$ac_delim
32763 HIST_LIBDIR!$HIST_LIBDIR$ac_delim
32764 TILDE_LIB!$TILDE_LIB$ac_delim
32765 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32766 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32767 INSTALL_DATA!$INSTALL_DATA$ac_delim
32769 RANLIB!$RANLIB$ac_delim
32770 YACC!$YACC$ac_delim
32771 YFLAGS!$YFLAGS$ac_delim
32774 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32776 elif $ac_last_try; then
32777 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32778 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32779 { (exit 1); exit 1; }; }
32781 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32785 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32786 if test -n "$ac_eof"; then
32787 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32788 ac_eof=`expr $ac_eof + 1`
32791 cat >>$CONFIG_STATUS <<_ACEOF
32792 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32793 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32796 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32797 s/^/s,@/; s/!/@,|#_!!_#|/
32800 s/'"$ac_delim"'$/,g/; t
32802 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32803 ' >>$CONFIG_STATUS <conf$$subs.sed
32804 rm -f conf$$subs.sed
32805 cat >>$CONFIG_STATUS <<_ACEOF
32811 for ac_last_try in false false false false false :; do
32812 cat >conf$$subs.sed <<_ACEOF
32813 SET_MAKE!$SET_MAKE$ac_delim
32814 MAKE_SHELL!$MAKE_SHELL$ac_delim
32815 SIZE!$SIZE$ac_delim
32816 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
32817 USE_NLS!$USE_NLS$ac_delim
32818 MSGFMT!$MSGFMT$ac_delim
32819 GMSGFMT!$GMSGFMT$ac_delim
32820 XGETTEXT!$XGETTEXT$ac_delim
32821 MSGMERGE!$MSGMERGE$ac_delim
32822 ALLOCA!$ALLOCA$ac_delim
32823 GLIBC21!$GLIBC21$ac_delim
32824 LIBICONV!$LIBICONV$ac_delim
32825 LTLIBICONV!$LTLIBICONV$ac_delim
32826 INTLBISON!$INTLBISON$ac_delim
32827 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
32828 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
32829 CATOBJEXT!$CATOBJEXT$ac_delim
32830 DATADIRNAME!$DATADIRNAME$ac_delim
32831 INSTOBJEXT!$INSTOBJEXT$ac_delim
32832 GENCAT!$GENCAT$ac_delim
32833 INTLOBJS!$INTLOBJS$ac_delim
32834 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
32835 INTLLIBS!$INTLLIBS$ac_delim
32836 LIBINTL!$LIBINTL$ac_delim
32837 LTLIBINTL!$LTLIBINTL$ac_delim
32838 POSUB!$POSUB$ac_delim
32839 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
32840 INTL_DEP!$INTL_DEP$ac_delim
32841 INTL_INC!$INTL_INC$ac_delim
32842 LIBINTL_H!$LIBINTL_H$ac_delim
32843 SIGLIST_O!$SIGLIST_O$ac_delim
32844 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
32845 TERMCAP_DEP!$TERMCAP_DEP$ac_delim
32846 JOBS_O!$JOBS_O$ac_delim
32847 SHOBJ_CC!$SHOBJ_CC$ac_delim
32848 SHOBJ_CFLAGS!$SHOBJ_CFLAGS$ac_delim
32849 SHOBJ_LD!$SHOBJ_LD$ac_delim
32850 SHOBJ_LDFLAGS!$SHOBJ_LDFLAGS$ac_delim
32851 SHOBJ_XLDFLAGS!$SHOBJ_XLDFLAGS$ac_delim
32852 SHOBJ_LIBS!$SHOBJ_LIBS$ac_delim
32853 SHOBJ_STATUS!$SHOBJ_STATUS$ac_delim
32854 PROFILE_FLAGS!$PROFILE_FLAGS$ac_delim
32855 incdir!$incdir$ac_delim
32856 BUILD_DIR!$BUILD_DIR$ac_delim
32857 ARFLAGS!$ARFLAGS$ac_delim
32858 BASHVERS!$BASHVERS$ac_delim
32859 RELSTATUS!$RELSTATUS$ac_delim
32860 DEBUG!$DEBUG$ac_delim
32861 MALLOC_DEBUG!$MALLOC_DEBUG$ac_delim
32862 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
32863 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
32864 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
32865 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
32866 LTLIBOBJS!$LTLIBOBJS$ac_delim
32869 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
32871 elif $ac_last_try; then
32872 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32873 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32874 { (exit 1); exit 1; }; }
32876 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32880 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32881 if test -n "$ac_eof"; then
32882 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32883 ac_eof=`expr $ac_eof + 1`
32886 cat >>$CONFIG_STATUS <<_ACEOF
32887 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32888 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32891 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32892 s/^/s,@/; s/!/@,|#_!!_#|/
32895 s/'"$ac_delim"'$/,g/; t
32897 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32898 ' >>$CONFIG_STATUS <conf$$subs.sed
32899 rm -f conf$$subs.sed
32900 cat >>$CONFIG_STATUS <<_ACEOF
32907 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32908 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32909 # trailing colons and then remove the whole line if VPATH becomes empty
32910 # (actually we leave an empty line to preserve line numbers).
32911 if test "x$srcdir" = x.; then
32912 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32913 s/:*\$(srcdir):*/:/
32914 s/:*\${srcdir}:*/:/
32916 s/^\([^=]*=[ ]*\):*/\1/
32922 cat >>$CONFIG_STATUS <<\_ACEOF
32923 fi # test -n "$CONFIG_FILES"
32926 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
32929 :[FHLC]) ac_mode=$ac_tag; continue;;
32931 case $ac_mode$ac_tag in
32933 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32934 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32935 { (exit 1); exit 1; }; };;
32936 :[FH]-) ac_tag=-:-;;
32937 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32954 -) ac_f="$tmp/stdin";;
32955 *) # Look for the file first in the build tree, then in the source tree
32956 # (if the path is not absolute). The absolute path cannot be DOS-style,
32957 # because $ac_f cannot contain `:'.
32961 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32963 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32964 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32965 { (exit 1); exit 1; }; };;
32967 ac_file_inputs="$ac_file_inputs $ac_f"
32970 # Let's still pretend it is `configure' which instantiates (i.e., don't
32971 # use $as_me), people would be surprised to read:
32972 # /* config.h. Generated by config.status. */
32973 configure_input="Generated from "`IFS=:
32974 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
32975 if test x"$ac_file" != x-; then
32976 configure_input="$ac_file. $configure_input"
32977 { echo "$as_me:$LINENO: creating $ac_file" >&5
32978 echo "$as_me: creating $ac_file" >&6;}
32982 *:-:* | *:-) cat >"$tmp/stdin";;
32987 ac_dir=`$as_dirname -- "$ac_file" ||
32988 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32989 X"$ac_file" : 'X\(//\)[^/]' \| \
32990 X"$ac_file" : 'X\(//\)$' \| \
32991 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32997 /^X\(\/\/\)[^/].*/{
33012 -*) as_dir=./$as_dir;;
33014 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33018 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33019 *) as_qdir=$as_dir;;
33021 as_dirs="'$as_qdir' $as_dirs"
33022 as_dir=`$as_dirname -- "$as_dir" ||
33023 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33024 X"$as_dir" : 'X\(//\)[^/]' \| \
33025 X"$as_dir" : 'X\(//\)$' \| \
33026 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33032 /^X\(\/\/\)[^/].*/{
33045 test -d "$as_dir" && break
33047 test -z "$as_dirs" || eval "mkdir $as_dirs"
33048 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33049 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33050 { (exit 1); exit 1; }; }; }
33054 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33056 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33057 # A ".." for each directory in $ac_dir_suffix.
33058 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33059 case $ac_top_builddir_sub in
33060 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33061 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33064 ac_abs_top_builddir=$ac_pwd
33065 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33066 # for backward compatibility:
33067 ac_top_builddir=$ac_top_build_prefix
33070 .) # We are building in place.
33072 ac_top_srcdir=$ac_top_builddir_sub
33073 ac_abs_top_srcdir=$ac_pwd ;;
33074 [\\/]* | ?:[\\/]* ) # Absolute name.
33075 ac_srcdir=$srcdir$ac_dir_suffix;
33076 ac_top_srcdir=$srcdir
33077 ac_abs_top_srcdir=$srcdir ;;
33078 *) # Relative name.
33079 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33080 ac_top_srcdir=$ac_top_build_prefix$srcdir
33081 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33083 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33093 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33094 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33098 cat >>$CONFIG_STATUS <<\_ACEOF
33099 # If the template does not know about datarootdir, expand it.
33100 # FIXME: This hack should be removed a few years after 2.60.
33101 ac_datarootdir_hack=; ac_datarootdir_seen=
33103 case `sed -n '/datarootdir/ {
33112 ' $ac_file_inputs` in
33113 *datarootdir*) ac_datarootdir_seen=yes;;
33114 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33115 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33116 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33118 cat >>$CONFIG_STATUS <<_ACEOF
33119 ac_datarootdir_hack='
33120 s&@datadir@&$datadir&g
33121 s&@docdir@&$docdir&g
33122 s&@infodir@&$infodir&g
33123 s&@localedir@&$localedir&g
33124 s&@mandir@&$mandir&g
33125 s&\\\${datarootdir}&$datarootdir&g' ;;
33129 # Neutralize VPATH when `$srcdir' = `.'.
33130 # Shell code in configure.ac might set extrasub.
33131 # FIXME: do we really want to maintain this feature?
33132 cat >>$CONFIG_STATUS <<_ACEOF
33136 cat >>$CONFIG_STATUS <<\_ACEOF
33138 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33139 s&@configure_input@&$configure_input&;t t
33140 s&@top_builddir@&$ac_top_builddir_sub&;t t
33141 s&@srcdir@&$ac_srcdir&;t t
33142 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33143 s&@top_srcdir@&$ac_top_srcdir&;t t
33144 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33145 s&@builddir@&$ac_builddir&;t t
33146 s&@abs_builddir@&$ac_abs_builddir&;t t
33147 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33148 s&@INSTALL@&$ac_INSTALL&;t t
33149 $ac_datarootdir_hack
33150 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
33152 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33153 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33154 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33155 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33156 which seems to be undefined. Please make sure it is defined." >&5
33157 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33158 which seems to be undefined. Please make sure it is defined." >&2;}
33162 -) cat "$tmp/out"; rm -f "$tmp/out";;
33163 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33172 # Transform confdefs.h into a sed script `conftest.defines', that
33173 # substitutes the proper values into config.h.in to produce config.h.
33174 rm -f conftest.defines conftest.tail
33175 # First, append a space to every undef/define line, to ease matching.
33176 echo 's/$/ /' >conftest.defines
33177 # Then, protect against being on the right side of a sed subst, or in
33178 # an unquoted here document, in config.status. If some macros were
33179 # called several times there might be several #defines for the same
33180 # symbol, which is useless. But do not sort them, since the last
33181 # AC_DEFINE must be honored.
33182 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33183 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33184 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33185 # PARAMS is the parameter list in the macro definition--in most cases, it's
33186 # just an empty string.
33187 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33188 ac_dB='\\)[ (].*,\\1define\\2'
33196 s/^[ ]*#[ ]*define[ ][ ]*//
33201 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33202 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33203 ' >>conftest.defines
33205 # Remove the space that was appended to ease matching.
33206 # Then replace #undef with comments. This is necessary, for
33207 # example, in the case of _POSIX_SOURCE, which is predefined and required
33208 # on some systems where configure will not decide to define it.
33209 # (The regexp can be short, since the line contains either #define or #undef.)
33211 s,^[ #]*u.*,/* & */,' >>conftest.defines
33213 # Break up conftest.defines:
33214 ac_max_sed_lines=50
33216 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33217 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33218 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33220 ac_in='$ac_file_inputs'
33221 ac_out='"$tmp/out1"'
33222 ac_nxt='"$tmp/out2"'
33226 # Write a here document:
33227 cat >>$CONFIG_STATUS <<_ACEOF
33228 # First, check the format of the line:
33229 cat >"\$tmp/defines.sed" <<\\CEOF
33230 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33231 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33235 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33237 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33238 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33239 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33240 grep . conftest.tail >/dev/null || break
33241 rm -f conftest.defines
33242 mv conftest.tail conftest.defines
33244 rm -f conftest.defines conftest.tail
33246 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33247 cat >>$CONFIG_STATUS <<\_ACEOF
33248 if test x"$ac_file" != x-; then
33249 echo "/* $configure_input */" >"$tmp/config.h"
33250 cat "$ac_result" >>"$tmp/config.h"
33251 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33252 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33253 echo "$as_me: $ac_file is unchanged" >&6;}
33256 mv "$tmp/config.h" $ac_file
33259 echo "/* $configure_input */"
33265 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33266 echo "$as_me: executing $ac_file commands" >&6;}
33271 case $ac_file$ac_mode in
33273 for ac_file in $CONFIG_FILES; do
33274 # Support "outfile[:infile[:infile...]]"
33276 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33278 # PO directories have a Makefile.in generated from Makefile.in.in.
33279 case "$ac_file" in */Makefile.in)
33280 # Adjust a relative srcdir.
33281 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33282 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33283 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33284 # In autoconf-2.13 it is called $ac_given_srcdir.
33285 # In autoconf-2.50 it is called $srcdir.
33286 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33287 case "$ac_given_srcdir" in
33288 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33289 /*) top_srcdir="$ac_given_srcdir" ;;
33290 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33292 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33293 rm -f "$ac_dir/POTFILES"
33294 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33295 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33296 POMAKEFILEDEPS="POTFILES.in"
33297 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
33298 # on $ac_dir but don't depend on user-specified configuration
33300 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33301 # The LINGUAS file contains the set of available languages.
33302 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33303 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33305 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33306 # Hide the ALL_LINGUAS assigment from automake.
33307 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33308 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33310 # The set of available languages was given in configure.in.
33311 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33313 case "$ac_given_srcdir" in
33315 *) srcdirpre='$(srcdir)/' ;;
33321 for lang in $ALL_LINGUAS; do
33322 POFILES="$POFILES $srcdirpre$lang.po"
33323 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33324 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33325 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33327 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33328 # environment variable.
33330 if test -n "$ALL_LINGUAS"; then
33331 for presentlang in $ALL_LINGUAS; do
33333 if test "%UNSET%" != "$LINGUAS"; then
33334 desiredlanguages="$LINGUAS"
33336 desiredlanguages="$ALL_LINGUAS"
33338 for desiredlang in $desiredlanguages; do
33339 # Use the presentlang catalog if desiredlang is
33340 # a. equal to presentlang, or
33341 # b. a variant of presentlang (because in this case,
33342 # presentlang can be used as a fallback for messages
33343 # which are not translated in the desiredlang catalog).
33344 case "$desiredlang" in
33345 "$presentlang"*) useit=yes;;
33348 if test $useit = yes; then
33349 INST_LINGUAS="$INST_LINGUAS $presentlang"
33354 if test -n "$INST_LINGUAS"; then
33355 for lang in $INST_LINGUAS; do
33356 CATALOGS="$CATALOGS $lang.gmo"
33359 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33360 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
33361 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33362 if test -f "$f"; then
33364 *.orig | *.bak | *~) ;;
33365 *) cat "$f" >> "$ac_dir/Makefile" ;;
33374 # Makefile uses this timestamp file to record whether config.h is up to date.
33375 echo timestamp > stamp-h
33382 { (exit 0); exit 0; }
33384 chmod +x $CONFIG_STATUS
33385 ac_clean_files=$ac_clean_files_save
33388 # configure is writing to config.log, and then calls config.status.
33389 # config.status does its own redirection, appending to config.log.
33390 # Unfortunately, on DOS this fails, as config.log is still kept open
33391 # by configure, so config.status won't be able to write to it; its
33392 # output is simply discarded. So we exec the FD to /dev/null,
33393 # effectively closing config.log, so it can be properly (re)opened and
33394 # appended to by config.status. When coming back to configure, we
33395 # need to make the FD available again.
33396 if test "$no_create" != yes; then
33398 ac_config_status_args=
33399 test "$silent" = yes &&
33400 ac_config_status_args="$ac_config_status_args --quiet"
33402 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33404 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33405 # would make configure fail if this is the last instruction.
33406 $ac_cs_success || { (exit 1); exit 1; }