2 # From configure.in for Bash 4.2, version 4.037.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 for bash 4.2-release.
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, 2007, 2008 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 more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
46 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
84 # Support unset when possible.
85 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
93 # We need space, tab and new line, in precisely that order. Quoting is
94 # there to prevent editors from complaining about space-tab.
95 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
96 # splitting by setting IFS to empty value.)
99 # Find who we are. Look in the path if we contain no directory separator.
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
113 # We did not find ourselves, most probably we were run as `sh COMMAND'
114 # in which case we are not to be found in the path.
115 if test "x$as_myself" = x; then
118 if test ! -f "$as_myself"; then
119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 { (exit 1); exit 1; }
123 # Work around bugs in pre-3.0 UWIN ksh.
124 for as_var in ENV MAIL MAILPATH
125 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
137 # Required to use basename.
138 if expr a : '\(a\)' >/dev/null 2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
145 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
152 # Name of the executable.
153 as_me=`$as_basename -- "$0" ||
154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155 X"$0" : 'X\(//\)$' \| \
156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
158 sed '/^.*\/\([^/][^/]*\)\/*$/{
176 if test "x$CONFIG_SHELL" = x; then
177 if (eval ":") 2>/dev/null; then
183 if test $as_have_required = yes && (eval ":
193 as_func_ret_success () {
196 as_func_ret_failure () {
201 if as_func_success; then
205 echo as_func_success failed.
208 if as_func_failure; then
210 echo as_func_failure succeeded.
213 if as_func_ret_success; then
217 echo as_func_ret_success failed.
220 if as_func_ret_failure; then
222 echo as_func_ret_failure succeeded.
225 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
229 echo positional parameters were not saved.
232 test \$exitcode = 0) || { (exit 1); exit 1; }
237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239 ") 2> /dev/null; then
243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
247 test -z "$as_dir" && as_dir=.
250 for as_base in sh bash ksh sh5; do
251 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
258 for as_shell in $as_candidate_shells $SHELL; do
259 # Try only shells that exist, to save several forks.
260 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261 { ("$as_shell") 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
280 CONFIG_SHELL=$as_shell
282 if { "$as_shell" 2> /dev/null <<\_ASEOF
283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287 # is contrary to our usage. Disable this feature.
288 alias -g '${1+"$@"}'='"$@"'
291 case `(set -o) 2>/dev/null` in
292 *posix*) set -o posix ;;
308 as_func_ret_success () {
311 as_func_ret_failure () {
316 if as_func_success; then
320 echo as_func_success failed.
323 if as_func_failure; then
325 echo as_func_failure succeeded.
328 if as_func_ret_success; then
332 echo as_func_ret_success failed.
335 if as_func_ret_failure; then
337 echo as_func_ret_failure succeeded.
340 if ( set x; as_func_ret_success y && test x = "$1" ); then
344 echo positional parameters were not saved.
347 test $exitcode = 0) || { (exit 1); exit 1; }
352 test "x$as_lineno_1" != "x$as_lineno_2" &&
353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
364 if test "x$CONFIG_SHELL" != x; then
365 for as_var in BASH_ENV ENV
366 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
373 if test $as_have_required = no; then
374 echo This script requires a shell more modern than all the
375 echo shells that I found on your system. Please install a
376 echo modern shell, or manually run the script under such a
377 echo shell if you do have one.
378 { (exit 1); exit 1; }
388 (eval "as_func_return () {
397 as_func_ret_success () {
400 as_func_ret_failure () {
405 if as_func_success; then
409 echo as_func_success failed.
412 if as_func_failure; then
414 echo as_func_failure succeeded.
417 if as_func_ret_success; then
421 echo as_func_ret_success failed.
424 if as_func_ret_failure; then
426 echo as_func_ret_failure succeeded.
429 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
433 echo positional parameters were not saved.
436 test \$exitcode = 0") || {
437 echo No shell found that supports shell functions.
438 echo Please tell bug-autoconf@gnu.org about your system,
439 echo including any error possibly output before this message.
440 echo This can help us improve future autoconf versions.
441 echo Configuration will now proceed without shell functions.
448 test "x$as_lineno_1" != "x$as_lineno_2" &&
449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452 # uniformly replaced by the line number. The first 'sed' inserts a
453 # line-number line after each line using $LINENO; the second 'sed'
454 # does the real work. The second script uses 'N' to pair each
455 # line-number line with the line containing $LINENO, and appends
456 # trailing '-' during substitution so that $LINENO is not a special
458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
459 # scripts with optimization help from Paolo Bonzini. Blame Lee
460 # E. McMahon (1931-1989) for sed's syntax. :-)
472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
476 chmod +x "$as_me.lineno" ||
477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
478 { (exit 1); exit 1; }; }
480 # Don't try to exec as it changes $[0], causing all sort of problems
481 # (the dirname of $[0] is not the place where we might find the
482 # original and so on. Autoconf is especially sensitive to this).
484 # Exit status is that of the last command.
489 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
495 ECHO_C= ECHO_N= ECHO_T=
499 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 if expr a : '\(a\)' >/dev/null 2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
512 rm -f conf$$ conf$$.exe conf$$.file
513 if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
517 mkdir conf$$.dir 2>/dev/null
519 if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -p'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 elif ln conf$$.file conf$$ 2>/dev/null; then
536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537 rmdir conf$$.dir 2>/dev/null
539 if mkdir -p . 2>/dev/null; then
542 test -d ./-p && rmdir ./-p
546 if test -x / >/dev/null 2>&1; then
549 if ls -dL / >/dev/null 2>&1; then
556 if test -d "$1"; then
562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563 ???[sx]*):;;*)false;;esac;fi
567 as_executable_p=$as_test_x
569 # Sed expression to map a string onto a valid CPP name.
570 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572 # Sed expression to map a string onto a valid variable name.
573 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 exec 7<&0 </dev/null 6>&1
580 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
581 # so uname gets run too.
582 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
587 ac_default_prefix=/usr/local
589 ac_config_libobj_dir=.
595 SHELL=${CONFIG_SHELL-/bin/sh}
597 # Identity of this package.
599 PACKAGE_TARNAME='bash'
600 PACKAGE_VERSION='4.2-release'
601 PACKAGE_STRING='bash 4.2-release'
602 PACKAGE_BUGREPORT='bug-bash@gnu.org'
604 ac_unique_file="shell.h"
605 # Factoring default headers for most tests.
606 ac_includes_default="\
608 #ifdef HAVE_SYS_TYPES_H
609 # include <sys/types.h>
611 #ifdef HAVE_SYS_STAT_H
612 # include <sys/stat.h>
618 # ifdef HAVE_STDLIB_H
623 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
628 #ifdef HAVE_STRINGS_H
629 # include <strings.h>
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
643 ac_subst_vars='LTLIBOBJS
675 INTL_LIBTOOL_SUFFIX_PREFIX
682 BUILD_INCLUDED_LIBINTL
782 program_transform_name
794 enable_option_checking
799 with_installed_readline
802 enable_minimal_config
804 enable_arith_for_command
805 enable_array_variables
807 enable_brace_expansion
808 enable_casemod_attributes
809 enable_casemod_expansions
810 enable_command_timing
815 enable_directory_stack
816 enable_disabled_builtins
817 enable_dparen_arithmetic
819 enable_extended_glob_default
824 enable_net_redirections
825 enable_process_substitution
827 enable_prompt_string_decoding
831 enable_separate_helpfiles
832 enable_single_help_strings
833 enable_strict_posix_default
834 enable_usg_echo_default
835 enable_xpg_echo_default
845 with_included_gettext
848 ac_precious_vars='build_alias
863 # Initialize some variables set by options.
865 ac_init_version=false
866 ac_unrecognized_opts=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
877 program_transform_name=s,x,x,
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir='${datarootdir}/info'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\$ac_option
923 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 # Accept the important Cygnus configure options, so we can diagnose typos.
929 case $ac_dashdash$ac_option in
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 -build | --build | --buil | --bui | --bu)
939 ac_prev=build_alias ;;
940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941 build_alias=$ac_optarg ;;
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948 cache_file=$ac_optarg ;;
951 cache_file=config.cache ;;
953 -datadir | --datadir | --datadi | --datad)
955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
956 datadir=$ac_optarg ;;
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
965 -disable-* | --disable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
970 { (exit 1); exit 1; }; }
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
980 eval enable_$ac_useropt=no ;;
982 -docdir | --docdir | --docdi | --doc | --do)
984 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992 -enable-* | --enable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
997 { (exit 1); exit 1; }; }
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1002 "enable_$ac_useropt"
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038 htmldir=$ac_optarg ;;
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1052 -libdir | --libdir | --libdi | --libd)
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1143 -psdir | --psdir | --psdi | --psd | --ps)
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156 sbindir=$ac_optarg ;;
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167 sharedstatedir=$ac_optarg ;;
1169 -site | --site | --sit)
1171 -site=* | --site=* | --sit=*)
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1212 eval with_$ac_useropt=\$ac_optarg ;;
1214 -without-* | --without-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1229 eval with_$ac_useropt=no ;;
1232 # Obsolete; use --with-x.
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240 x_includes=$ac_optarg ;;
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247 x_libraries=$ac_optarg ;;
1249 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251 { (exit 1); exit 1; }; }
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259 { (exit 1); exit 1; }; }
1260 eval $ac_envvar=\$ac_optarg
1261 export $ac_envvar ;;
1264 # FIXME: should be removed in autoconf 3.0.
1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274 if test -n "$ac_prev"; then
1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1277 { (exit 1); exit 1; }; }
1280 if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1283 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1284 { (exit 1); exit 1; }; } ;;
1285 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1289 # Check all directory arguments for consistency.
1290 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291 datadir sysconfdir sharedstatedir localstatedir includedir \
1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293 libdir localedir mandir
1295 eval ac_val=\$$ac_var
1296 # Remove trailing slashes.
1299 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300 eval $ac_var=\$ac_val;;
1302 # Be sure to have absolute directory names.
1304 [\\/$]* | ?:[\\/]* ) continue;;
1305 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308 { (exit 1); exit 1; }; }
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1316 target=$target_alias
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320 if test "x$build_alias" = x; then
1321 cross_compiling=maybe
1322 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323 If a cross compiler is detected then cross compile mode will be used." >&2
1324 elif test "x$build_alias" != "x$host_alias"; then
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332 test "$silent" = yes && exec 6>/dev/null
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1339 { (exit 1); exit 1; }; }
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1342 { (exit 1); exit 1; }; }
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 $as_echo X"$as_myself" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1377 ac_srcdir_defaulted=no
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382 { (exit 1); exit 1; }; }
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1387 { (exit 1); exit 1; }; }
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 # Report the --help message.
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1413 \`configure' configures bash 4.2-release to adapt to many kinds of systems.
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1420 Defaults for the options are specified in brackets.
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1444 For better control, use the options below.
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/bash]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1471 --build=BUILD configure for building on BUILD [guessed]
1472 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476 if test -n "$ac_init_help"; then
1477 case $ac_init_help in
1478 short | recursive ) echo "Configuration of bash 4.2-release:";;
1483 --disable-option-checking ignore unrecognized --enable/--with options
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 --enable-minimal-config a minimal sh-like configuration
1487 --enable-alias enable shell aliases
1488 --enable-arith-for-command
1489 enable arithmetic for command
1490 --enable-array-variables
1491 include shell array variables
1492 --enable-bang-history turn on csh-style history substitution
1493 --enable-brace-expansion
1494 include brace expansion
1495 --enable-casemod-attributes
1496 include case-modifying variable attributes
1497 --enable-casemod-expansions
1498 include case-modifying word expansions
1499 --enable-command-timing enable the time reserved word and command timing
1500 --enable-cond-command enable the conditional command
1501 --enable-cond-regexp enable extended regular expression matching in
1502 conditional commands
1503 --enable-coprocesses enable coprocess support and the coproc reserved
1505 --enable-debugger enable support for bash debugger
1506 --enable-directory-stack
1507 enable builtins pushd/popd/dirs
1508 --enable-disabled-builtins
1509 allow disabled builtins to still be invoked
1510 --enable-dparen-arithmetic
1511 include ((...)) command
1512 --enable-extended-glob include ksh-style extended pattern matching
1513 --enable-extended-glob-default
1514 force extended pattern matching to be enabled by
1516 --enable-help-builtin include the help builtin
1517 --enable-history turn on command history
1518 --enable-job-control enable job control features
1519 --enable-multibyte enable multibyte characters if OS supports them
1520 --enable-net-redirections
1521 enable /dev/tcp/host/port redirection
1522 --enable-process-substitution
1523 enable process substitution
1524 --enable-progcomp enable programmable completion and the complete
1526 --enable-prompt-string-decoding
1527 turn on escape character decoding in prompts
1528 --enable-readline turn on command line editing
1529 --enable-restricted enable a restricted shell
1530 --enable-select include select command
1531 --enable-separate-helpfiles
1532 use external files for help builtin documentation
1533 --enable-single-help-strings
1534 store help documentation as a single string to ease
1536 --enable-strict-posix-default
1537 configure bash to be posix-conformant by default
1538 --enable-usg-echo-default
1539 a synonym for --enable-xpg-echo-default
1540 --enable-xpg-echo-default
1541 make the echo builtin expand escape sequences by
1543 --enable-mem-scramble scramble memory on calls to malloc and free
1544 --enable-profiling allow profiling with gprof
1545 --enable-static-link link bash statically, for use as a root shell
1546 --disable-largefile omit support for large files
1547 --disable-nls do not use Native Language Support
1548 --disable-rpath do not hardcode runtime library paths
1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1553 --with-afs if you are running AFS
1554 --with-bash-malloc use the Bash version of malloc
1555 --with-curses use the curses library instead of the termcap
1557 --with-gnu-malloc synonym for --with-bash-malloc
1558 --with-installed-readline
1559 use a version of the readline library that is
1561 --with-purecov configure to postprocess with pure coverage
1562 --with-purify configure to postprocess with purify
1563 --with-gnu-ld assume the C compiler uses GNU ld default=no
1564 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1565 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1566 --with-included-gettext use the GNU gettext library included here
1567 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1568 --without-libintl-prefix don't search for libintl in includedir and libdir
1570 Some influential environment variables:
1572 location of bash debugger initialization file
1573 CC C compiler command
1574 CFLAGS C compiler flags
1575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1576 nonstandard directory <lib dir>
1577 LIBS libraries to pass to the linker, e.g. -l<library>
1578 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1579 you have headers in a nonstandard directory <include dir>
1581 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1582 the first program found out of: `bison -y', `byacc', `yacc'.
1583 YFLAGS The list of arguments that will be passed by default to $YACC.
1584 This script will default YFLAGS to the empty string to avoid a
1585 default value of `-d' given by some make applications.
1587 Use these variables to override the choices made by `configure' or to help
1588 it to find libraries and programs with nonstandard names/locations.
1590 Report bugs to <bug-bash@gnu.org>.
1595 if test "$ac_init_help" = "recursive"; then
1596 # If there are subdirs, report their specific --help.
1597 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1598 test -d "$ac_dir" ||
1599 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1607 # A ".." for each directory in $ac_dir_suffix.
1608 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1609 case $ac_top_builddir_sub in
1610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614 ac_abs_top_builddir=$ac_pwd
1615 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616 # for backward compatibility:
1617 ac_top_builddir=$ac_top_build_prefix
1620 .) # We are building in place.
1622 ac_top_srcdir=$ac_top_builddir_sub
1623 ac_abs_top_srcdir=$ac_pwd ;;
1624 [\\/]* | ?:[\\/]* ) # Absolute name.
1625 ac_srcdir=$srcdir$ac_dir_suffix;
1626 ac_top_srcdir=$srcdir
1627 ac_abs_top_srcdir=$srcdir ;;
1629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630 ac_top_srcdir=$ac_top_build_prefix$srcdir
1631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1635 cd "$ac_dir" || { ac_status=$?; continue; }
1636 # Check for guested configure.
1637 if test -f "$ac_srcdir/configure.gnu"; then
1639 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640 elif test -f "$ac_srcdir/configure"; then
1642 $SHELL "$ac_srcdir/configure" --help=recursive
1644 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646 cd "$ac_pwd" || { ac_status=$?; break; }
1650 test -n "$ac_init_help" && exit $ac_status
1651 if $ac_init_version; then
1653 bash configure 4.2-release
1654 generated by GNU Autoconf 2.63
1656 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1657 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1658 This configure script is free software; the Free Software Foundation
1659 gives unlimited permission to copy, distribute and modify it.
1663 cat >config.log <<_ACEOF
1664 This file contains any messages produced by compilers while
1665 running configure, to aid debugging if configure makes a mistake.
1667 It was created by bash $as_me 4.2-release, which was
1668 generated by GNU Autoconf 2.63. Invocation command line was
1680 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1681 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1682 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1683 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1684 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1686 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1687 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1689 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1690 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1691 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1692 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1693 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1694 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1695 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 test -z "$as_dir" && as_dir=.
1704 $as_echo "PATH: $as_dir"
1720 # Keep a trace of the command line.
1721 # Strip out --no-create and --no-recursion so they do not pile up.
1722 # Strip out --silent because we don't want to record it for future runs.
1723 # Also quote any args containing shell meta-characters.
1724 # Make two passes to allow for proper duplicate-argument suppression.
1728 ac_must_keep_next=false
1734 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1736 | -silent | --silent | --silen | --sile | --sil)
1739 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1742 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1744 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1745 if test $ac_must_keep_next = true; then
1746 ac_must_keep_next=false # Got value, back to normal.
1749 *=* | --config-cache | -C | -disable-* | --disable-* \
1750 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1751 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1752 | -with-* | --with-* | -without-* | --without-* | --x)
1753 case "$ac_configure_args0 " in
1754 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1757 -* ) ac_must_keep_next=true ;;
1760 ac_configure_args="$ac_configure_args '$ac_arg'"
1765 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1766 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1768 # When interrupted or exit'd, cleanup temporary files, and complete
1769 # config.log. We remove comments because anyway the quotes in there
1770 # would cause problems or look ugly.
1771 # WARNING: Use '\'' to represent an apostrophe within the trap.
1772 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1773 trap 'exit_status=$?
1774 # Save into config.log some information that might help in debugging.
1779 ## ---------------- ##
1780 ## Cache variables. ##
1781 ## ---------------- ##
1784 # The following way of writing the cache mishandles newlines in values,
1786 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1787 eval ac_val=\$$ac_var
1791 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1792 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1795 _ | IFS | as_nl) ;; #(
1796 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1797 *) $as_unset $ac_var ;;
1802 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1803 *${as_nl}ac_space=\ *)
1805 "s/'\''/'\''\\\\'\'''\''/g;
1806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1817 ## ----------------- ##
1818 ## Output variables. ##
1819 ## ----------------- ##
1822 for ac_var in $ac_subst_vars
1824 eval ac_val=\$$ac_var
1826 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828 $as_echo "$ac_var='\''$ac_val'\''"
1832 if test -n "$ac_subst_files"; then
1834 ## ------------------- ##
1835 ## File substitutions. ##
1836 ## ------------------- ##
1839 for ac_var in $ac_subst_files
1841 eval ac_val=\$$ac_var
1843 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1845 $as_echo "$ac_var='\''$ac_val'\''"
1850 if test -s confdefs.h; then
1860 test "$ac_signal" != 0 &&
1861 $as_echo "$as_me: caught signal $ac_signal"
1862 $as_echo "$as_me: exit $exit_status"
1864 rm -f core *.core core.conftest.* &&
1865 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1868 for ac_signal in 1 2 13 15; do
1869 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1873 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1874 rm -f -r conftest* confdefs.h
1876 # Predefined preprocessor variables.
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_NAME "$PACKAGE_NAME"
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_STRING "$PACKAGE_STRING"
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1903 # Let the site file select an alternate cache file if it wants to.
1904 # Prefer an explicitly selected file to automatically selected ones.
1907 if test -n "$CONFIG_SITE"; then
1908 ac_site_file1=$CONFIG_SITE
1909 elif test "x$prefix" != xNONE; then
1910 ac_site_file1=$prefix/share/config.site
1911 ac_site_file2=$prefix/etc/config.site
1913 ac_site_file1=$ac_default_prefix/share/config.site
1914 ac_site_file2=$ac_default_prefix/etc/config.site
1916 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1918 test "x$ac_site_file" = xNONE && continue
1919 if test -r "$ac_site_file"; then
1920 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1921 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1922 sed 's/^/| /' "$ac_site_file" >&5
1927 if test -r "$cache_file"; then
1928 # Some versions of bash will fail to source /dev/null (special
1929 # files actually), so we avoid doing that.
1930 if test -f "$cache_file"; then
1931 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1932 $as_echo "$as_me: loading cache $cache_file" >&6;}
1934 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1935 *) . "./$cache_file";;
1939 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1940 $as_echo "$as_me: creating cache $cache_file" >&6;}
1944 ac_header_list="$ac_header_list sys/time.h"
1945 ac_header_list="$ac_header_list unistd.h"
1946 ac_func_list="$ac_func_list alarm"
1947 ac_func_list="$ac_func_list fpurge"
1948 ac_func_list="$ac_func_list __fpurge"
1949 ac_func_list="$ac_func_list snprintf"
1950 ac_func_list="$ac_func_list vsnprintf"
1951 # Check that the precious variables saved in the cache have kept the same
1953 ac_cache_corrupted=false
1954 for ac_var in $ac_precious_vars; do
1955 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1956 eval ac_new_set=\$ac_env_${ac_var}_set
1957 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1958 eval ac_new_val=\$ac_env_${ac_var}_value
1959 case $ac_old_set,$ac_new_set in
1961 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1962 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1965 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1966 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1970 if test "x$ac_old_val" != "x$ac_new_val"; then
1971 # differences in whitespace do not lead to failure.
1972 ac_old_val_w=`echo x $ac_old_val`
1973 ac_new_val_w=`echo x $ac_new_val`
1974 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1975 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1976 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1977 ac_cache_corrupted=:
1979 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1980 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1981 eval $ac_var=\$ac_old_val
1983 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1984 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1985 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1986 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1989 # Pass precious variables to config.status.
1990 if test "$ac_new_set" = set; then
1992 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1993 *) ac_arg=$ac_var=$ac_new_val ;;
1995 case " $ac_configure_args " in
1996 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1997 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2001 if $ac_cache_corrupted; then
2002 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2004 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2005 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2006 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2007 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2008 { (exit 1); exit 1; }; }
2036 ac_cpp='$CPP $CPPFLAGS'
2037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2047 for ac_dir in ./support "$srcdir"/./support; do
2048 if test -f "$ac_dir/install-sh"; then
2050 ac_install_sh="$ac_aux_dir/install-sh -c"
2052 elif test -f "$ac_dir/install.sh"; then
2054 ac_install_sh="$ac_aux_dir/install.sh -c"
2056 elif test -f "$ac_dir/shtool"; then
2058 ac_install_sh="$ac_aux_dir/shtool install -c"
2062 if test -z "$ac_aux_dir"; then
2063 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&5
2064 $as_echo "$as_me: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&2;}
2065 { (exit 1); exit 1; }; }
2068 # These three variables are undocumented and unsupported,
2069 # and are intended to be withdrawn in a future Autoconf release.
2070 # They can cause serious problems if a builder's source tree is in a directory
2071 # whose full name contains unusual characters.
2072 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2073 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2074 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2077 ac_config_headers="$ac_config_headers config.h"
2083 case "$RELSTATUS" in
2084 alp*|bet*|dev*|rc*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
2085 *) DEBUG= MALLOC_DEBUG= ;;
2088 # Make sure we can run config.sub.
2089 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2090 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2091 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2092 { (exit 1); exit 1; }; }
2094 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2095 $as_echo_n "checking build system type... " >&6; }
2096 if test "${ac_cv_build+set}" = set; then
2097 $as_echo_n "(cached) " >&6
2099 ac_build_alias=$build_alias
2100 test "x$ac_build_alias" = x &&
2101 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2102 test "x$ac_build_alias" = x &&
2103 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2104 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2105 { (exit 1); exit 1; }; }
2106 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2107 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2108 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
2112 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2113 $as_echo "$ac_cv_build" >&6; }
2114 case $ac_cv_build in
2116 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2117 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2118 { (exit 1); exit 1; }; };;
2121 ac_save_IFS=$IFS; IFS='-'
2127 # Remember, the first character of IFS is used to create $*,
2128 # except with old shells:
2131 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2134 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2135 $as_echo_n "checking host system type... " >&6; }
2136 if test "${ac_cv_host+set}" = set; then
2137 $as_echo_n "(cached) " >&6
2139 if test "x$host_alias" = x; then
2140 ac_cv_host=$ac_cv_build
2142 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2143 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2144 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2145 { (exit 1); exit 1; }; }
2149 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2150 $as_echo "$ac_cv_host" >&6; }
2153 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2154 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2155 { (exit 1); exit 1; }; };;
2158 ac_save_IFS=$IFS; IFS='-'
2164 # Remember, the first character of IFS is used to create $*,
2165 # except with old shells:
2168 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2177 opt_with_installed_readline=no
2181 case "${host_cpu}-${host_os}" in
2182 alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
2183 *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
2184 *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
2185 sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
2186 sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
2187 mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
2188 m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
2189 sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
2190 #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
2191 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
2192 *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
2193 *-aix*) opt_bash_malloc=no ;; # AIX machines
2194 *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
2195 *-macos*) opt_bash_malloc=no ;; # Apple MacOS X
2196 *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
2197 *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
2198 *-dgux*) opt_bash_malloc=no ;; # DG/UX machines
2199 *-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x
2200 *-machten4) opt_bash_malloc=no ;; # MachTen 4.x
2201 *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
2202 *-beos*) opt_bash_malloc=no ;; # they say it's suitable
2203 *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
2204 *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
2207 # memory scrambling on free()
2208 case "${host_os}" in
2209 sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
2210 *) opt_memscramble=yes ;;
2216 # Check whether --with-afs was given.
2217 if test "${with_afs+set}" = set; then
2218 withval=$with_afs; opt_afs=$withval
2222 # Check whether --with-bash-malloc was given.
2223 if test "${with_bash_malloc+set}" = set; then
2224 withval=$with_bash_malloc; opt_bash_malloc=$withval
2228 # Check whether --with-curses was given.
2229 if test "${with_curses+set}" = set; then
2230 withval=$with_curses; opt_curses=$withval
2234 # Check whether --with-gnu-malloc was given.
2235 if test "${with_gnu_malloc+set}" = set; then
2236 withval=$with_gnu_malloc; opt_bash_malloc=$withval
2240 # Check whether --with-installed-readline was given.
2241 if test "${with_installed_readline+set}" = set; then
2242 withval=$with_installed_readline; opt_with_installed_readline=$withval
2246 # Check whether --with-purecov was given.
2247 if test "${with_purecov+set}" = set; then
2248 withval=$with_purecov; opt_purecov=$withval
2252 # Check whether --with-purify was given.
2253 if test "${with_purify+set}" = set; then
2254 withval=$with_purify; opt_purify=$withval
2258 if test "$opt_bash_malloc" = yes; then
2259 MALLOC_TARGET=malloc
2262 MALLOC_LIB='-lmalloc'
2263 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
2264 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
2265 MALLOC_DEP='$(MALLOC_LIBRARY)'
2267 cat >>confdefs.h <<\_ACEOF
2268 #define USING_BASH_MALLOC 1
2278 if test "$opt_purify" = yes; then
2280 cat >>confdefs.h <<\_ACEOF
2281 #define DISABLE_MALLOC_WRAPPERS 1
2288 if test "$opt_purecov" = yes; then
2289 PURIFY="${PURIFY}purecov"
2292 if test "$opt_afs" = yes; then
2293 cat >>confdefs.h <<\_ACEOF
2299 if test "$opt_curses" = yes; then
2303 if test -z "${DEBUGGER_START_FILE}"; then
2304 DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc'
2307 opt_minimal_config=no
2313 opt_bang_history=yes
2316 opt_process_subst=yes
2317 opt_prompt_decoding=yes
2320 opt_array_variables=yes
2321 opt_dparen_arith=yes
2322 opt_extended_glob=yes
2323 opt_brace_expansion=yes
2324 opt_disabled_builtins=no
2325 opt_command_timing=yes
2328 opt_cond_command=yes
2331 opt_arith_for_command=yes
2334 opt_separate_help=no
2337 opt_single_longdoc_strings=yes
2338 opt_casemod_attrs=yes
2339 opt_casemod_expansions=yes
2340 opt_extglob_default=no
2345 # Check whether --enable-minimal-config was given.
2346 if test "${enable_minimal_config+set}" = set; then
2347 enableval=$enable_minimal_config; opt_minimal_config=$enableval
2351 if test $opt_minimal_config = yes; then
2352 opt_job_control=no opt_alias=no opt_readline=no
2353 opt_history=no opt_bang_history=no opt_dirstack=no
2354 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
2355 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
2356 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
2357 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
2358 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
2359 opt_multibyte=yes opt_cond_regexp=no opt_coproc=no
2360 opt_casemod_attrs=no opt_casemod_expansions=no opt_extglob_default=no
2363 # Check whether --enable-alias was given.
2364 if test "${enable_alias+set}" = set; then
2365 enableval=$enable_alias; opt_alias=$enableval
2368 # Check whether --enable-arith-for-command was given.
2369 if test "${enable_arith_for_command+set}" = set; then
2370 enableval=$enable_arith_for_command; opt_arith_for_command=$enableval
2373 # Check whether --enable-array-variables was given.
2374 if test "${enable_array_variables+set}" = set; then
2375 enableval=$enable_array_variables; opt_array_variables=$enableval
2378 # Check whether --enable-bang-history was given.
2379 if test "${enable_bang_history+set}" = set; then
2380 enableval=$enable_bang_history; opt_bang_history=$enableval
2383 # Check whether --enable-brace-expansion was given.
2384 if test "${enable_brace_expansion+set}" = set; then
2385 enableval=$enable_brace_expansion; opt_brace_expansion=$enableval
2388 # Check whether --enable-casemod-attributes was given.
2389 if test "${enable_casemod_attributes+set}" = set; then
2390 enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval
2393 # Check whether --enable-casemod-expansions was given.
2394 if test "${enable_casemod_expansions+set}" = set; then
2395 enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval
2398 # Check whether --enable-command-timing was given.
2399 if test "${enable_command_timing+set}" = set; then
2400 enableval=$enable_command_timing; opt_command_timing=$enableval
2403 # Check whether --enable-cond-command was given.
2404 if test "${enable_cond_command+set}" = set; then
2405 enableval=$enable_cond_command; opt_cond_command=$enableval
2408 # Check whether --enable-cond-regexp was given.
2409 if test "${enable_cond_regexp+set}" = set; then
2410 enableval=$enable_cond_regexp; opt_cond_regexp=$enableval
2413 # Check whether --enable-coprocesses was given.
2414 if test "${enable_coprocesses+set}" = set; then
2415 enableval=$enable_coprocesses; opt_coproc=$enableval
2418 # Check whether --enable-debugger was given.
2419 if test "${enable_debugger+set}" = set; then
2420 enableval=$enable_debugger; opt_debugger=$enableval
2423 # Check whether --enable-directory-stack was given.
2424 if test "${enable_directory_stack+set}" = set; then
2425 enableval=$enable_directory_stack; opt_dirstack=$enableval
2428 # Check whether --enable-disabled-builtins was given.
2429 if test "${enable_disabled_builtins+set}" = set; then
2430 enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval
2433 # Check whether --enable-dparen-arithmetic was given.
2434 if test "${enable_dparen_arithmetic+set}" = set; then
2435 enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval
2438 # Check whether --enable-extended-glob was given.
2439 if test "${enable_extended_glob+set}" = set; then
2440 enableval=$enable_extended_glob; opt_extended_glob=$enableval
2443 # Check whether --enable-extended-glob-default was given.
2444 if test "${enable_extended_glob_default+set}" = set; then
2445 enableval=$enable_extended_glob_default; opt_extglob_default=$enableval
2448 # Check whether --enable-help-builtin was given.
2449 if test "${enable_help_builtin+set}" = set; then
2450 enableval=$enable_help_builtin; opt_help=$enableval
2453 # Check whether --enable-history was given.
2454 if test "${enable_history+set}" = set; then
2455 enableval=$enable_history; opt_history=$enableval
2458 # Check whether --enable-job-control was given.
2459 if test "${enable_job_control+set}" = set; then
2460 enableval=$enable_job_control; opt_job_control=$enableval
2463 # Check whether --enable-multibyte was given.
2464 if test "${enable_multibyte+set}" = set; then
2465 enableval=$enable_multibyte; opt_multibyte=$enableval
2468 # Check whether --enable-net-redirections was given.
2469 if test "${enable_net_redirections+set}" = set; then
2470 enableval=$enable_net_redirections; opt_net_redirs=$enableval
2473 # Check whether --enable-process-substitution was given.
2474 if test "${enable_process_substitution+set}" = set; then
2475 enableval=$enable_process_substitution; opt_process_subst=$enableval
2478 # Check whether --enable-progcomp was given.
2479 if test "${enable_progcomp+set}" = set; then
2480 enableval=$enable_progcomp; opt_progcomp=$enableval
2483 # Check whether --enable-prompt-string-decoding was given.
2484 if test "${enable_prompt_string_decoding+set}" = set; then
2485 enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval
2488 # Check whether --enable-readline was given.
2489 if test "${enable_readline+set}" = set; then
2490 enableval=$enable_readline; opt_readline=$enableval
2493 # Check whether --enable-restricted was given.
2494 if test "${enable_restricted+set}" = set; then
2495 enableval=$enable_restricted; opt_restricted=$enableval
2498 # Check whether --enable-select was given.
2499 if test "${enable_select+set}" = set; then
2500 enableval=$enable_select; opt_select=$enableval
2503 # Check whether --enable-separate-helpfiles was given.
2504 if test "${enable_separate_helpfiles+set}" = set; then
2505 enableval=$enable_separate_helpfiles; opt_separate_help=$enableval
2508 # Check whether --enable-single-help-strings was given.
2509 if test "${enable_single_help_strings+set}" = set; then
2510 enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval
2513 # Check whether --enable-strict-posix-default was given.
2514 if test "${enable_strict_posix_default+set}" = set; then
2515 enableval=$enable_strict_posix_default; opt_strict_posix=$enableval
2518 # Check whether --enable-usg-echo-default was given.
2519 if test "${enable_usg_echo_default+set}" = set; then
2520 enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval
2523 # Check whether --enable-xpg-echo-default was given.
2524 if test "${enable_xpg_echo_default+set}" = set; then
2525 enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval
2529 # Check whether --enable-mem-scramble was given.
2530 if test "${enable_mem_scramble+set}" = set; then
2531 enableval=$enable_mem_scramble; opt_memscramble=$enableval
2534 # Check whether --enable-profiling was given.
2535 if test "${enable_profiling+set}" = set; then
2536 enableval=$enable_profiling; opt_profiling=$enableval
2539 # Check whether --enable-static-link was given.
2540 if test "${enable_static_link+set}" = set; then
2541 enableval=$enable_static_link; opt_static_link=$enableval
2547 if test $opt_alias = yes; then
2548 cat >>confdefs.h <<\_ACEOF
2553 if test $opt_dirstack = yes; then
2554 cat >>confdefs.h <<\_ACEOF
2555 #define PUSHD_AND_POPD 1
2559 if test $opt_restricted = yes; then
2560 cat >>confdefs.h <<\_ACEOF
2561 #define RESTRICTED_SHELL 1
2565 if test $opt_process_subst = yes; then
2566 cat >>confdefs.h <<\_ACEOF
2567 #define PROCESS_SUBSTITUTION 1
2571 if test $opt_prompt_decoding = yes; then
2572 cat >>confdefs.h <<\_ACEOF
2573 #define PROMPT_STRING_DECODE 1
2577 if test $opt_select = yes; then
2578 cat >>confdefs.h <<\_ACEOF
2579 #define SELECT_COMMAND 1
2583 if test $opt_help = yes; then
2584 cat >>confdefs.h <<\_ACEOF
2585 #define HELP_BUILTIN 1
2589 if test $opt_array_variables = yes; then
2590 cat >>confdefs.h <<\_ACEOF
2591 #define ARRAY_VARS 1
2595 if test $opt_dparen_arith = yes; then
2596 cat >>confdefs.h <<\_ACEOF
2597 #define DPAREN_ARITHMETIC 1
2601 if test $opt_brace_expansion = yes; then
2602 cat >>confdefs.h <<\_ACEOF
2603 #define BRACE_EXPANSION 1
2607 if test $opt_disabled_builtins = yes; then
2608 cat >>confdefs.h <<\_ACEOF
2609 #define DISABLED_BUILTINS 1
2613 if test $opt_command_timing = yes; then
2614 cat >>confdefs.h <<\_ACEOF
2615 #define COMMAND_TIMING 1
2619 if test $opt_xpg_echo = yes ; then
2620 cat >>confdefs.h <<\_ACEOF
2621 #define DEFAULT_ECHO_TO_XPG 1
2625 if test $opt_strict_posix = yes; then
2626 cat >>confdefs.h <<\_ACEOF
2627 #define STRICT_POSIX 1
2631 if test $opt_extended_glob = yes ; then
2632 cat >>confdefs.h <<\_ACEOF
2633 #define EXTENDED_GLOB 1
2637 if test $opt_extglob_default = yes; then
2638 cat >>confdefs.h <<\_ACEOF
2639 #define EXTGLOB_DEFAULT 1
2643 cat >>confdefs.h <<\_ACEOF
2644 #define EXTGLOB_DEFAULT 0
2648 if test $opt_cond_command = yes ; then
2649 cat >>confdefs.h <<\_ACEOF
2650 #define COND_COMMAND 1
2654 if test $opt_cond_regexp = yes ; then
2655 cat >>confdefs.h <<\_ACEOF
2656 #define COND_REGEXP 1
2660 if test $opt_coproc = yes; then
2661 cat >>confdefs.h <<\_ACEOF
2662 #define COPROCESS_SUPPORT 1
2666 if test $opt_arith_for_command = yes; then
2667 cat >>confdefs.h <<\_ACEOF
2668 #define ARITH_FOR_COMMAND 1
2672 if test $opt_net_redirs = yes; then
2673 cat >>confdefs.h <<\_ACEOF
2674 #define NETWORK_REDIRECTIONS 1
2678 if test $opt_progcomp = yes; then
2679 cat >>confdefs.h <<\_ACEOF
2680 #define PROGRAMMABLE_COMPLETION 1
2684 if test $opt_multibyte = no; then
2685 cat >>confdefs.h <<\_ACEOF
2686 #define NO_MULTIBYTE_SUPPORT 1
2690 if test $opt_debugger = yes; then
2691 cat >>confdefs.h <<\_ACEOF
2696 if test $opt_casemod_attrs = yes; then
2697 cat >>confdefs.h <<\_ACEOF
2698 #define CASEMOD_ATTRS 1
2702 if test $opt_casemod_expansions = yes; then
2703 cat >>confdefs.h <<\_ACEOF
2704 #define CASEMOD_EXPANSIONS 1
2709 if test $opt_memscramble = yes; then
2710 cat >>confdefs.h <<\_ACEOF
2711 #define MEMSCRAMBLE 1
2716 if test "$opt_minimal_config" = yes; then
2717 TESTSCRIPT=run-minimal
2722 HELPDIR= HELPDIRDEFINE= HELPINSTALL=
2723 if test "$opt_separate_help" != no; then
2724 if test "$opt_separate_help" = "yes" ; then
2725 HELPDIR='${datadir}/bash'
2727 HELPDIR=$opt_separate_help
2729 HELPDIRDEFINE='-H ${HELPDIR}'
2730 HELPINSTALL='install-help'
2733 if test "$opt_single_longdoc_strings" != "yes"; then
2755 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
2759 ac_cpp='$CPP $CPPFLAGS'
2760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2765 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2766 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if test "${ac_cv_prog_CC+set}" = set; then
2769 $as_echo_n "(cached) " >&6
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # Let the user override the test.
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2782 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 if test -n "$CC"; then
2793 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2794 $as_echo "$CC" >&6; }
2796 { $as_echo "$as_me:$LINENO: result: no" >&5
2797 $as_echo "no" >&6; }
2802 if test -z "$ac_cv_prog_CC"; then
2804 # Extract the first word of "gcc", so it can be a program name with args.
2805 set dummy gcc; ac_word=$2
2806 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2809 $as_echo_n "(cached) " >&6
2811 if test -n "$ac_ct_CC"; then
2812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 ac_cv_prog_ac_ct_CC="gcc"
2822 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2832 if test -n "$ac_ct_CC"; then
2833 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2834 $as_echo "$ac_ct_CC" >&6; }
2836 { $as_echo "$as_me:$LINENO: result: no" >&5
2837 $as_echo "no" >&6; }
2840 if test "x$ac_ct_CC" = x; then
2843 case $cross_compiling:$ac_tool_warned in
2845 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847 ac_tool_warned=yes ;;
2855 if test -z "$CC"; then
2856 if test -n "$ac_tool_prefix"; then
2857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2858 set dummy ${ac_tool_prefix}cc; ac_word=$2
2859 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if test "${ac_cv_prog_CC+set}" = set; then
2862 $as_echo_n "(cached) " >&6
2864 if test -n "$CC"; then
2865 ac_cv_prog_CC="$CC" # Let the user override the test.
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2874 ac_cv_prog_CC="${ac_tool_prefix}cc"
2875 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 if test -n "$CC"; then
2886 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2887 $as_echo "$CC" >&6; }
2889 { $as_echo "$as_me:$LINENO: result: no" >&5
2890 $as_echo "no" >&6; }
2896 if test -z "$CC"; then
2897 # Extract the first word of "cc", so it can be a program name with args.
2898 set dummy cc; ac_word=$2
2899 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if test "${ac_cv_prog_CC+set}" = set; then
2902 $as_echo_n "(cached) " >&6
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 test -z "$as_dir" && as_dir=.
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2916 ac_prog_rejected=yes
2920 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 if test $ac_prog_rejected = yes; then
2928 # We found a bogon in the path, so make sure we never use it.
2929 set dummy $ac_cv_prog_CC
2931 if test $# != 0; then
2932 # We chose a different compiler from the bogus one.
2933 # However, it has the same basename, so the bogon will be chosen
2934 # first if we set CC to just the basename; use the full file name.
2936 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2942 if test -n "$CC"; then
2943 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2944 $as_echo "$CC" >&6; }
2946 { $as_echo "$as_me:$LINENO: result: no" >&5
2947 $as_echo "no" >&6; }
2952 if test -z "$CC"; then
2953 if test -n "$ac_tool_prefix"; then
2954 for ac_prog in cl.exe
2956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2958 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if test "${ac_cv_prog_CC+set}" = set; then
2961 $as_echo_n "(cached) " >&6
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC="$CC" # Let the user override the test.
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2974 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 if test -n "$CC"; then
2985 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2986 $as_echo "$CC" >&6; }
2988 { $as_echo "$as_me:$LINENO: result: no" >&5
2989 $as_echo "no" >&6; }
2993 test -n "$CC" && break
2996 if test -z "$CC"; then
2998 for ac_prog in cl.exe
3000 # Extract the first word of "$ac_prog", so it can be a program name with args.
3001 set dummy $ac_prog; ac_word=$2
3002 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3005 $as_echo_n "(cached) " >&6
3007 if test -n "$ac_ct_CC"; then
3008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017 ac_cv_prog_ac_ct_CC="$ac_prog"
3018 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3028 if test -n "$ac_ct_CC"; then
3029 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3030 $as_echo "$ac_ct_CC" >&6; }
3032 { $as_echo "$as_me:$LINENO: result: no" >&5
3033 $as_echo "no" >&6; }
3037 test -n "$ac_ct_CC" && break
3040 if test "x$ac_ct_CC" = x; then
3043 case $cross_compiling:$ac_tool_warned in
3045 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3047 ac_tool_warned=yes ;;
3056 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3058 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3059 See \`config.log' for more details." >&5
3060 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3061 See \`config.log' for more details." >&2;}
3062 { (exit 1); exit 1; }; }; }
3064 # Provide some information about the compiler.
3065 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3068 { (ac_try="$ac_compiler --version >&5"
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3074 $as_echo "$ac_try_echo") >&5
3075 (eval "$ac_compiler --version >&5") 2>&5
3077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }
3079 { (ac_try="$ac_compiler -v >&5"
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3085 $as_echo "$ac_try_echo") >&5
3086 (eval "$ac_compiler -v >&5") 2>&5
3088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }
3090 { (ac_try="$ac_compiler -V >&5"
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3096 $as_echo "$ac_try_echo") >&5
3097 (eval "$ac_compiler -V >&5") 2>&5
3099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }
3102 cat >conftest.$ac_ext <<_ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3117 ac_clean_files_save=$ac_clean_files
3118 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3119 # Try to create an executable without -o first, disregard a.out.
3120 # It will help us diagnose broken compilers, and finding out an intuition
3122 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3123 $as_echo_n "checking for C compiler default output file name... " >&6; }
3124 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3126 # The possible output files:
3127 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3130 for ac_file in $ac_files
3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3134 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3139 if { (ac_try="$ac_link_default"
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3145 $as_echo "$ac_try_echo") >&5
3146 (eval "$ac_link_default") 2>&5
3148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; then
3150 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3151 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3152 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3153 # so that the user can short-circuit this test for compilers unknown to
3155 for ac_file in $ac_files ''
3157 test -f "$ac_file" || continue
3159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3162 # We found the default executable, but exeext='' is most
3166 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3168 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3170 # We set ac_cv_exeext here because the later test for it is not
3171 # safe: cross compilers may not add the suffix if given an `-o'
3172 # argument, so we may need to know it at that point already.
3173 # Even if this section looks crufty: it has the advantage of
3180 test "$ac_cv_exeext" = no && ac_cv_exeext=
3186 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3187 $as_echo "$ac_file" >&6; }
3188 if test -z "$ac_file"; then
3189 $as_echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3192 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3194 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3195 See \`config.log' for more details." >&5
3196 $as_echo "$as_me: error: C compiler cannot create executables
3197 See \`config.log' for more details." >&2;}
3198 { (exit 77); exit 77; }; }; }
3201 ac_exeext=$ac_cv_exeext
3203 # Check that the compiler produces executables we can run. If not, either
3204 # the compiler is broken, or we cross compile.
3205 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3206 $as_echo_n "checking whether the C compiler works... " >&6; }
3207 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3208 # If not cross compiling, check that we can run a simple program.
3209 if test "$cross_compiling" != yes; then
3210 if { ac_try='./$ac_file'
3211 { (case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3216 $as_echo "$ac_try_echo") >&5
3217 (eval "$ac_try") 2>&5
3219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }; }; then
3223 if test "$cross_compiling" = maybe; then
3226 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3228 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3229 If you meant to cross compile, use \`--host'.
3230 See \`config.log' for more details." >&5
3231 $as_echo "$as_me: error: cannot run C compiled programs.
3232 If you meant to cross compile, use \`--host'.
3233 See \`config.log' for more details." >&2;}
3234 { (exit 1); exit 1; }; }; }
3238 { $as_echo "$as_me:$LINENO: result: yes" >&5
3239 $as_echo "yes" >&6; }
3241 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3242 ac_clean_files=$ac_clean_files_save
3243 # Check that the compiler produces executables we can run. If not, either
3244 # the compiler is broken, or we cross compile.
3245 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3246 $as_echo_n "checking whether we are cross compiling... " >&6; }
3247 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3248 $as_echo "$cross_compiling" >&6; }
3250 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3251 $as_echo_n "checking for suffix of executables... " >&6; }
3252 if { (ac_try="$ac_link"
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3258 $as_echo "$ac_try_echo") >&5
3259 (eval "$ac_link") 2>&5
3261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; then
3263 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3264 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3265 # work properly (i.e., refer to `conftest.exe'), while it won't with
3267 for ac_file in conftest.exe conftest conftest.*; do
3268 test -f "$ac_file" || continue
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3271 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3277 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3280 See \`config.log' for more details." >&5
3281 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3282 See \`config.log' for more details." >&2;}
3283 { (exit 1); exit 1; }; }; }
3286 rm -f conftest$ac_cv_exeext
3287 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3288 $as_echo "$ac_cv_exeext" >&6; }
3290 rm -f conftest.$ac_ext
3291 EXEEXT=$ac_cv_exeext
3293 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3294 $as_echo_n "checking for suffix of object files... " >&6; }
3295 if test "${ac_cv_objext+set}" = set; then
3296 $as_echo_n "(cached) " >&6
3298 cat >conftest.$ac_ext <<_ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3313 rm -f conftest.o conftest.obj
3314 if { (ac_try="$ac_compile"
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3320 $as_echo "$ac_try_echo") >&5
3321 (eval "$ac_compile") 2>&5
3323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; then
3325 for ac_file in conftest.o conftest.obj conftest.*; do
3326 test -f "$ac_file" || continue;
3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3334 $as_echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3337 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3340 See \`config.log' for more details." >&5
3341 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3342 See \`config.log' for more details." >&2;}
3343 { (exit 1); exit 1; }; }; }
3346 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3348 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3349 $as_echo "$ac_cv_objext" >&6; }
3350 OBJEXT=$ac_cv_objext
3352 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3353 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3354 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3355 $as_echo_n "(cached) " >&6
3357 cat >conftest.$ac_ext <<_ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h. */
3375 rm -f conftest.$ac_objext
3376 if { (ac_try="$ac_compile"
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3382 $as_echo "$ac_try_echo") >&5
3383 (eval "$ac_compile") 2>conftest.er1
3385 grep -v '^ *+' conftest.er1 >conftest.err
3387 cat conftest.err >&5
3388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } && {
3390 test -z "$ac_c_werror_flag" ||
3391 test ! -s conftest.err
3392 } && test -s conftest.$ac_objext; then
3395 $as_echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3402 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3405 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3406 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3407 if test $ac_compiler_gnu = yes; then
3412 ac_test_CFLAGS=${CFLAGS+set}
3413 ac_save_CFLAGS=$CFLAGS
3414 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3415 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3416 if test "${ac_cv_prog_cc_g+set}" = set; then
3417 $as_echo_n "(cached) " >&6
3419 ac_save_c_werror_flag=$ac_c_werror_flag
3420 ac_c_werror_flag=yes
3423 cat >conftest.$ac_ext <<_ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3438 rm -f conftest.$ac_objext
3439 if { (ac_try="$ac_compile"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3445 $as_echo "$ac_try_echo") >&5
3446 (eval "$ac_compile") 2>conftest.er1
3448 grep -v '^ *+' conftest.er1 >conftest.err
3450 cat conftest.err >&5
3451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } && {
3453 test -z "$ac_c_werror_flag" ||
3454 test ! -s conftest.err
3455 } && test -s conftest.$ac_objext; then
3458 $as_echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3462 cat >conftest.$ac_ext <<_ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3477 rm -f conftest.$ac_objext
3478 if { (ac_try="$ac_compile"
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3484 $as_echo "$ac_try_echo") >&5
3485 (eval "$ac_compile") 2>conftest.er1
3487 grep -v '^ *+' conftest.er1 >conftest.err
3489 cat conftest.err >&5
3490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } && {
3492 test -z "$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3494 } && test -s conftest.$ac_objext; then
3497 $as_echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 ac_c_werror_flag=$ac_save_c_werror_flag
3502 cat >conftest.$ac_ext <<_ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3517 rm -f conftest.$ac_objext
3518 if { (ac_try="$ac_compile"
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3524 $as_echo "$ac_try_echo") >&5
3525 (eval "$ac_compile") 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } && {
3532 test -z "$ac_c_werror_flag" ||
3533 test ! -s conftest.err
3534 } && test -s conftest.$ac_objext; then
3537 $as_echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550 ac_c_werror_flag=$ac_save_c_werror_flag
3552 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3553 $as_echo "$ac_cv_prog_cc_g" >&6; }
3554 if test "$ac_test_CFLAGS" = set; then
3555 CFLAGS=$ac_save_CFLAGS
3556 elif test $ac_cv_prog_cc_g = yes; then
3557 if test "$GCC" = yes; then
3563 if test "$GCC" = yes; then
3569 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3570 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3571 if test "${ac_cv_prog_cc_c89+set}" = set; then
3572 $as_echo_n "(cached) " >&6
3574 ac_cv_prog_cc_c89=no
3576 cat >conftest.$ac_ext <<_ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3584 #include <sys/types.h>
3585 #include <sys/stat.h>
3586 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3587 struct buf { int x; };
3588 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3589 static char *e (p, i)
3595 static char *f (char * (*g) (char **, int), char **p, ...)
3600 s = g (p, va_arg (v,int));
3605 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3606 function prototypes and stuff, but not '\xHH' hex character constants.
3607 These don't provoke an error unfortunately, instead are silently treated
3608 as 'x'. The following induces an error, until -std is added to get
3609 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3610 array size at least. It's necessary to write '\x00'==0 to get something
3611 that's true only with -std. */
3612 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3614 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3615 inside strings and character constants. */
3617 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3619 int test (int i, double x);
3620 struct s1 {int (*f) (int a);};
3621 struct s2 {int (*f) (double a);};
3622 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3628 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3633 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3634 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3636 CC="$ac_save_CC $ac_arg"
3637 rm -f conftest.$ac_objext
3638 if { (ac_try="$ac_compile"
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3644 $as_echo "$ac_try_echo") >&5
3645 (eval "$ac_compile") 2>conftest.er1
3647 grep -v '^ *+' conftest.er1 >conftest.err
3649 cat conftest.err >&5
3650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } && {
3652 test -z "$ac_c_werror_flag" ||
3653 test ! -s conftest.err
3654 } && test -s conftest.$ac_objext; then
3655 ac_cv_prog_cc_c89=$ac_arg
3657 $as_echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3663 rm -f core conftest.err conftest.$ac_objext
3664 test "x$ac_cv_prog_cc_c89" != "xno" && break
3666 rm -f conftest.$ac_ext
3671 case "x$ac_cv_prog_cc_c89" in
3673 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3674 $as_echo "none needed" >&6; } ;;
3676 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3677 $as_echo "unsupported" >&6; } ;;
3679 CC="$CC $ac_cv_prog_cc_c89"
3680 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3681 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3686 ac_cpp='$CPP $CPPFLAGS'
3687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3695 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3696 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3697 $as_echo_n "(cached) " >&6
3699 ac_check_lib_save_LIBS=$LIBS
3700 LIBS="-lcposix $LIBS"
3701 cat >conftest.$ac_ext <<_ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h. */
3708 /* Override any GCC internal prototype to avoid an error.
3709 Use char because int might match the return type of a GCC
3710 builtin and then its argument prototype would still apply. */
3723 rm -f conftest.$ac_objext conftest$ac_exeext
3724 if { (ac_try="$ac_link"
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3730 $as_echo "$ac_try_echo") >&5
3731 (eval "$ac_link") 2>conftest.er1
3733 grep -v '^ *+' conftest.er1 >conftest.err
3735 cat conftest.err >&5
3736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); } && {
3738 test -z "$ac_c_werror_flag" ||
3739 test ! -s conftest.err
3740 } && test -s conftest$ac_exeext && {
3741 test "$cross_compiling" = yes ||
3742 $as_test_x conftest$ac_exeext
3744 ac_cv_lib_cposix_strerror=yes
3746 $as_echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.$ac_ext >&5
3749 ac_cv_lib_cposix_strerror=no
3752 rm -rf conftest.dSYM
3753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3754 conftest$ac_exeext conftest.$ac_ext
3755 LIBS=$ac_check_lib_save_LIBS
3757 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3758 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3759 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
3760 LIBS="$LIBS -lcposix"
3766 ac_cpp='$CPP $CPPFLAGS'
3767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3770 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3771 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3772 # On Suns, sometimes $CPP names a directory.
3773 if test -n "$CPP" && test -d "$CPP"; then
3776 if test -z "$CPP"; then
3777 if test "${ac_cv_prog_CPP+set}" = set; then
3778 $as_echo_n "(cached) " >&6
3780 # Double quotes because CPP needs to be expanded
3781 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3784 for ac_c_preproc_warn_flag in '' yes
3786 # Use a header file that comes with gcc, so configuring glibc
3787 # with a fresh cross-compiler works.
3788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3789 # <limits.h> exists even on freestanding compilers.
3790 # On the NeXT, cc -E runs the code through the compiler's parser,
3791 # not just through cpp. "Syntax error" is here to catch this case.
3792 cat >conftest.$ac_ext <<_ACEOF
3795 cat confdefs.h >>conftest.$ac_ext
3796 cat >>conftest.$ac_ext <<_ACEOF
3797 /* end confdefs.h. */
3799 # include <limits.h>
3801 # include <assert.h>
3805 if { (ac_try="$ac_cpp conftest.$ac_ext"
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3811 $as_echo "$ac_try_echo") >&5
3812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3814 grep -v '^ *+' conftest.er1 >conftest.err
3816 cat conftest.err >&5
3817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } >/dev/null && {
3819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3820 test ! -s conftest.err
3824 $as_echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3827 # Broken: fails on valid input.
3831 rm -f conftest.err conftest.$ac_ext
3833 # OK, works on sane cases. Now check whether nonexistent headers
3834 # can be detected and how.
3835 cat >conftest.$ac_ext <<_ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3841 #include <ac_nonexistent.h>
3843 if { (ac_try="$ac_cpp conftest.$ac_ext"
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3849 $as_echo "$ac_try_echo") >&5
3850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3852 grep -v '^ *+' conftest.er1 >conftest.err
3854 cat conftest.err >&5
3855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } >/dev/null && {
3857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3858 test ! -s conftest.err
3860 # Broken: success on invalid input.
3863 $as_echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3866 # Passes both tests.
3871 rm -f conftest.err conftest.$ac_ext
3874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3875 rm -f conftest.err conftest.$ac_ext
3876 if $ac_preproc_ok; then
3888 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3889 $as_echo "$CPP" >&6; }
3891 for ac_c_preproc_warn_flag in '' yes
3893 # Use a header file that comes with gcc, so configuring glibc
3894 # with a fresh cross-compiler works.
3895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3896 # <limits.h> exists even on freestanding compilers.
3897 # On the NeXT, cc -E runs the code through the compiler's parser,
3898 # not just through cpp. "Syntax error" is here to catch this case.
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3906 # include <limits.h>
3908 # include <assert.h>
3912 if { (ac_try="$ac_cpp conftest.$ac_ext"
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3918 $as_echo "$ac_try_echo") >&5
3919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3921 grep -v '^ *+' conftest.er1 >conftest.err
3923 cat conftest.err >&5
3924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } >/dev/null && {
3926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3931 $as_echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 # Broken: fails on valid input.
3938 rm -f conftest.err conftest.$ac_ext
3940 # OK, works on sane cases. Now check whether nonexistent headers
3941 # can be detected and how.
3942 cat >conftest.$ac_ext <<_ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3948 #include <ac_nonexistent.h>
3950 if { (ac_try="$ac_cpp conftest.$ac_ext"
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3956 $as_echo "$ac_try_echo") >&5
3957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3959 grep -v '^ *+' conftest.er1 >conftest.err
3961 cat conftest.err >&5
3962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } >/dev/null && {
3964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3965 test ! -s conftest.err
3967 # Broken: success on invalid input.
3970 $as_echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3973 # Passes both tests.
3978 rm -f conftest.err conftest.$ac_ext
3981 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3982 rm -f conftest.err conftest.$ac_ext
3983 if $ac_preproc_ok; then
3986 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3989 See \`config.log' for more details." >&5
3990 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3991 See \`config.log' for more details." >&2;}
3992 { (exit 1); exit 1; }; }; }
3996 ac_cpp='$CPP $CPPFLAGS'
3997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4002 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4003 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4004 if test "${ac_cv_path_GREP+set}" = set; then
4005 $as_echo_n "(cached) " >&6
4007 if test -z "$GREP"; then
4008 ac_path_GREP_found=false
4009 # Loop through the user's path and test for each of PROGNAME-LIST
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4014 test -z "$as_dir" && as_dir=.
4015 for ac_prog in grep ggrep; do
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4018 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4019 # Check for GNU ac_path_GREP and select it if it is found.
4020 # Check for GNU $ac_path_GREP
4021 case `"$ac_path_GREP" --version 2>&1` in
4023 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4026 $as_echo_n 0123456789 >"conftest.in"
4029 cat "conftest.in" "conftest.in" >"conftest.tmp"
4030 mv "conftest.tmp" "conftest.in"
4031 cp "conftest.in" "conftest.nl"
4032 $as_echo 'GREP' >> "conftest.nl"
4033 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4035 ac_count=`expr $ac_count + 1`
4036 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4037 # Best one so far, save it but keep looking for a better one
4038 ac_cv_path_GREP="$ac_path_GREP"
4039 ac_path_GREP_max=$ac_count
4041 # 10*(2^10) chars as input seems more than enough
4042 test $ac_count -gt 10 && break
4044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4047 $ac_path_GREP_found && break 3
4052 if test -z "$ac_cv_path_GREP"; then
4053 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4054 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4055 { (exit 1); exit 1; }; }
4058 ac_cv_path_GREP=$GREP
4062 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4063 $as_echo "$ac_cv_path_GREP" >&6; }
4064 GREP="$ac_cv_path_GREP"
4067 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4068 $as_echo_n "checking for egrep... " >&6; }
4069 if test "${ac_cv_path_EGREP+set}" = set; then
4070 $as_echo_n "(cached) " >&6
4072 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4073 then ac_cv_path_EGREP="$GREP -E"
4075 if test -z "$EGREP"; then
4076 ac_path_EGREP_found=false
4077 # Loop through the user's path and test for each of PROGNAME-LIST
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4082 test -z "$as_dir" && as_dir=.
4083 for ac_prog in egrep; do
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4086 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4087 # Check for GNU ac_path_EGREP and select it if it is found.
4088 # Check for GNU $ac_path_EGREP
4089 case `"$ac_path_EGREP" --version 2>&1` in
4091 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4094 $as_echo_n 0123456789 >"conftest.in"
4097 cat "conftest.in" "conftest.in" >"conftest.tmp"
4098 mv "conftest.tmp" "conftest.in"
4099 cp "conftest.in" "conftest.nl"
4100 $as_echo 'EGREP' >> "conftest.nl"
4101 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4102 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4103 ac_count=`expr $ac_count + 1`
4104 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4105 # Best one so far, save it but keep looking for a better one
4106 ac_cv_path_EGREP="$ac_path_EGREP"
4107 ac_path_EGREP_max=$ac_count
4109 # 10*(2^10) chars as input seems more than enough
4110 test $ac_count -gt 10 && break
4112 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4115 $ac_path_EGREP_found && break 3
4120 if test -z "$ac_cv_path_EGREP"; then
4121 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4122 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4123 { (exit 1); exit 1; }; }
4126 ac_cv_path_EGREP=$EGREP
4131 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4132 $as_echo "$ac_cv_path_EGREP" >&6; }
4133 EGREP="$ac_cv_path_EGREP"
4136 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4137 $as_echo_n "checking for ANSI C header files... " >&6; }
4138 if test "${ac_cv_header_stdc+set}" = set; then
4139 $as_echo_n "(cached) " >&6
4141 cat >conftest.$ac_ext <<_ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4160 rm -f conftest.$ac_objext
4161 if { (ac_try="$ac_compile"
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4167 $as_echo "$ac_try_echo") >&5
4168 (eval "$ac_compile") 2>conftest.er1
4170 grep -v '^ *+' conftest.er1 >conftest.err
4172 cat conftest.err >&5
4173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } && {
4175 test -z "$ac_c_werror_flag" ||
4176 test ! -s conftest.err
4177 } && test -s conftest.$ac_objext; then
4178 ac_cv_header_stdc=yes
4180 $as_echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 ac_cv_header_stdc=no
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 if test $ac_cv_header_stdc = yes; then
4189 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4190 cat >conftest.$ac_ext <<_ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4200 $EGREP "memchr" >/dev/null 2>&1; then
4203 ac_cv_header_stdc=no
4209 if test $ac_cv_header_stdc = yes; then
4210 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4211 cat >conftest.$ac_ext <<_ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4221 $EGREP "free" >/dev/null 2>&1; then
4224 ac_cv_header_stdc=no
4230 if test $ac_cv_header_stdc = yes; then
4231 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4232 if test "$cross_compiling" = yes; then
4235 cat >conftest.$ac_ext <<_ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4243 #if ((' ' & 0x0FF) == 0x020)
4244 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4245 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4247 # define ISLOWER(c) \
4248 (('a' <= (c) && (c) <= 'i') \
4249 || ('j' <= (c) && (c) <= 'r') \
4250 || ('s' <= (c) && (c) <= 'z'))
4251 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4254 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4259 for (i = 0; i < 256; i++)
4260 if (XOR (islower (i), ISLOWER (i))
4261 || toupper (i) != TOUPPER (i))
4266 rm -f conftest$ac_exeext
4267 if { (ac_try="$ac_link"
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4273 $as_echo "$ac_try_echo") >&5
4274 (eval "$ac_link") 2>&5
4276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4278 { (case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4283 $as_echo "$ac_try_echo") >&5
4284 (eval "$ac_try") 2>&5
4286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
4290 $as_echo "$as_me: program exited with status $ac_status" >&5
4291 $as_echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4295 ac_cv_header_stdc=no
4297 rm -rf conftest.dSYM
4298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4304 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4305 $as_echo "$ac_cv_header_stdc" >&6; }
4306 if test $ac_cv_header_stdc = yes; then
4308 cat >>confdefs.h <<\_ACEOF
4309 #define STDC_HEADERS 1
4314 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4324 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4325 inttypes.h stdint.h unistd.h
4327 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4328 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4329 $as_echo_n "checking for $ac_header... " >&6; }
4330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4331 $as_echo_n "(cached) " >&6
4333 cat >conftest.$ac_ext <<_ACEOF
4336 cat confdefs.h >>conftest.$ac_ext
4337 cat >>conftest.$ac_ext <<_ACEOF
4338 /* end confdefs.h. */
4339 $ac_includes_default
4341 #include <$ac_header>
4343 rm -f conftest.$ac_objext
4344 if { (ac_try="$ac_compile"
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4350 $as_echo "$ac_try_echo") >&5
4351 (eval "$ac_compile") 2>conftest.er1
4353 grep -v '^ *+' conftest.er1 >conftest.err
4355 cat conftest.err >&5
4356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } && {
4358 test -z "$ac_c_werror_flag" ||
4359 test ! -s conftest.err
4360 } && test -s conftest.$ac_objext; then
4361 eval "$as_ac_Header=yes"
4363 $as_echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4366 eval "$as_ac_Header=no"
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371 ac_res=`eval 'as_val=${'$as_ac_Header'}
4372 $as_echo "$as_val"'`
4373 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4374 $as_echo "$ac_res" >&6; }
4375 as_val=`eval 'as_val=${'$as_ac_Header'}
4376 $as_echo "$as_val"'`
4377 if test "x$as_val" = x""yes; then
4378 cat >>confdefs.h <<_ACEOF
4379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4388 if test "${ac_cv_header_minix_config_h+set}" = set; then
4389 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4390 $as_echo_n "checking for minix/config.h... " >&6; }
4391 if test "${ac_cv_header_minix_config_h+set}" = set; then
4392 $as_echo_n "(cached) " >&6
4394 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4395 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4397 # Is the header compilable?
4398 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4399 $as_echo_n "checking minix/config.h usability... " >&6; }
4400 cat >conftest.$ac_ext <<_ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h. */
4406 $ac_includes_default
4407 #include <minix/config.h>
4409 rm -f conftest.$ac_objext
4410 if { (ac_try="$ac_compile"
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4416 $as_echo "$ac_try_echo") >&5
4417 (eval "$ac_compile") 2>conftest.er1
4419 grep -v '^ *+' conftest.er1 >conftest.err
4421 cat conftest.err >&5
4422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } && {
4424 test -z "$ac_c_werror_flag" ||
4425 test ! -s conftest.err
4426 } && test -s conftest.$ac_objext; then
4427 ac_header_compiler=yes
4429 $as_echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4432 ac_header_compiler=no
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4437 $as_echo "$ac_header_compiler" >&6; }
4439 # Is the header present?
4440 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4441 $as_echo_n "checking minix/config.h presence... " >&6; }
4442 cat >conftest.$ac_ext <<_ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4448 #include <minix/config.h>
4450 if { (ac_try="$ac_cpp conftest.$ac_ext"
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4456 $as_echo "$ac_try_echo") >&5
4457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4459 grep -v '^ *+' conftest.er1 >conftest.err
4461 cat conftest.err >&5
4462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } >/dev/null && {
4464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4465 test ! -s conftest.err
4467 ac_header_preproc=yes
4469 $as_echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4472 ac_header_preproc=no
4475 rm -f conftest.err conftest.$ac_ext
4476 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4477 $as_echo "$ac_header_preproc" >&6; }
4479 # So? What about this header?
4480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4482 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4483 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4484 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4485 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4486 ac_header_preproc=yes
4489 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4490 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4491 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4492 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4493 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4494 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4495 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4496 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4497 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4498 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4499 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4500 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4502 ## ------------------------------- ##
4503 ## Report this to bug-bash@gnu.org ##
4504 ## ------------------------------- ##
4506 ) | sed "s/^/$as_me: WARNING: /" >&2
4509 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4510 $as_echo_n "checking for minix/config.h... " >&6; }
4511 if test "${ac_cv_header_minix_config_h+set}" = set; then
4512 $as_echo_n "(cached) " >&6
4514 ac_cv_header_minix_config_h=$ac_header_preproc
4516 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4517 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4520 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4527 if test "$MINIX" = yes; then
4529 cat >>confdefs.h <<\_ACEOF
4530 #define _POSIX_SOURCE 1
4534 cat >>confdefs.h <<\_ACEOF
4535 #define _POSIX_1_SOURCE 2
4539 cat >>confdefs.h <<\_ACEOF
4547 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4548 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4549 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4550 $as_echo_n "(cached) " >&6
4552 cat >conftest.$ac_ext <<_ACEOF
4555 cat confdefs.h >>conftest.$ac_ext
4556 cat >>conftest.$ac_ext <<_ACEOF
4557 /* end confdefs.h. */
4559 # define __EXTENSIONS__ 1
4560 $ac_includes_default
4569 rm -f conftest.$ac_objext
4570 if { (ac_try="$ac_compile"
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4576 $as_echo "$ac_try_echo") >&5
4577 (eval "$ac_compile") 2>conftest.er1
4579 grep -v '^ *+' conftest.er1 >conftest.err
4581 cat conftest.err >&5
4582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); } && {
4584 test -z "$ac_c_werror_flag" ||
4585 test ! -s conftest.err
4586 } && test -s conftest.$ac_objext; then
4587 ac_cv_safe_to_define___extensions__=yes
4589 $as_echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4592 ac_cv_safe_to_define___extensions__=no
4595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4598 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4599 test $ac_cv_safe_to_define___extensions__ = yes &&
4600 cat >>confdefs.h <<\_ACEOF
4601 #define __EXTENSIONS__ 1
4604 cat >>confdefs.h <<\_ACEOF
4605 #define _ALL_SOURCE 1
4608 cat >>confdefs.h <<\_ACEOF
4609 #define _GNU_SOURCE 1
4612 cat >>confdefs.h <<\_ACEOF
4613 #define _POSIX_PTHREAD_SEMANTICS 1
4616 cat >>confdefs.h <<\_ACEOF
4617 #define _TANDEM_SOURCE 1
4622 # Check whether --enable-largefile was given.
4623 if test "${enable_largefile+set}" = set; then
4624 enableval=$enable_largefile;
4627 if test "$enable_largefile" != no; then
4629 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4630 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4631 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4632 $as_echo_n "(cached) " >&6
4634 ac_cv_sys_largefile_CC=no
4635 if test "$GCC" != yes; then
4638 # IRIX 6.2 and later do not support large files by default,
4639 # so use the C compiler's -n32 option if that helps.
4640 cat >conftest.$ac_ext <<_ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4646 #include <sys/types.h>
4647 /* Check that off_t can represent 2**63 - 1 correctly.
4648 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4649 since some C++ compilers masquerading as C compilers
4650 incorrectly reject 9223372036854775807. */
4651 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4653 && LARGE_OFF_T % 2147483647 == 1)
4663 rm -f conftest.$ac_objext
4664 if { (ac_try="$ac_compile"
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4670 $as_echo "$ac_try_echo") >&5
4671 (eval "$ac_compile") 2>conftest.er1
4673 grep -v '^ *+' conftest.er1 >conftest.err
4675 cat conftest.err >&5
4676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } && {
4678 test -z "$ac_c_werror_flag" ||
4679 test ! -s conftest.err
4680 } && test -s conftest.$ac_objext; then
4683 $as_echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.$ac_ext >&5
4689 rm -f core conftest.err conftest.$ac_objext
4691 rm -f conftest.$ac_objext
4692 if { (ac_try="$ac_compile"
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4698 $as_echo "$ac_try_echo") >&5
4699 (eval "$ac_compile") 2>conftest.er1
4701 grep -v '^ *+' conftest.er1 >conftest.err
4703 cat conftest.err >&5
4704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } && {
4706 test -z "$ac_c_werror_flag" ||
4707 test ! -s conftest.err
4708 } && test -s conftest.$ac_objext; then
4709 ac_cv_sys_largefile_CC=' -n32'; break
4711 $as_echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.$ac_ext >&5
4717 rm -f core conftest.err conftest.$ac_objext
4721 rm -f conftest.$ac_ext
4724 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4725 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4726 if test "$ac_cv_sys_largefile_CC" != no; then
4727 CC=$CC$ac_cv_sys_largefile_CC
4730 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4731 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4732 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4733 $as_echo_n "(cached) " >&6
4736 cat >conftest.$ac_ext <<_ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4742 #include <sys/types.h>
4743 /* Check that off_t can represent 2**63 - 1 correctly.
4744 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4745 since some C++ compilers masquerading as C compilers
4746 incorrectly reject 9223372036854775807. */
4747 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4748 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4749 && LARGE_OFF_T % 2147483647 == 1)
4759 rm -f conftest.$ac_objext
4760 if { (ac_try="$ac_compile"
4762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4763 *) ac_try_echo=$ac_try;;
4765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4766 $as_echo "$ac_try_echo") >&5
4767 (eval "$ac_compile") 2>conftest.er1
4769 grep -v '^ *+' conftest.er1 >conftest.err
4771 cat conftest.err >&5
4772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } && {
4774 test -z "$ac_c_werror_flag" ||
4775 test ! -s conftest.err
4776 } && test -s conftest.$ac_objext; then
4777 ac_cv_sys_file_offset_bits=no; break
4779 $as_echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786 cat >conftest.$ac_ext <<_ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 #define _FILE_OFFSET_BITS 64
4793 #include <sys/types.h>
4794 /* Check that off_t can represent 2**63 - 1 correctly.
4795 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4796 since some C++ compilers masquerading as C compilers
4797 incorrectly reject 9223372036854775807. */
4798 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4799 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4800 && LARGE_OFF_T % 2147483647 == 1)
4810 rm -f conftest.$ac_objext
4811 if { (ac_try="$ac_compile"
4813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4814 *) ac_try_echo=$ac_try;;
4816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4817 $as_echo "$ac_try_echo") >&5
4818 (eval "$ac_compile") 2>conftest.er1
4820 grep -v '^ *+' conftest.er1 >conftest.err
4822 cat conftest.err >&5
4823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } && {
4825 test -z "$ac_c_werror_flag" ||
4826 test ! -s conftest.err
4827 } && test -s conftest.$ac_objext; then
4828 ac_cv_sys_file_offset_bits=64; break
4830 $as_echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837 ac_cv_sys_file_offset_bits=unknown
4841 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4842 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4843 case $ac_cv_sys_file_offset_bits in #(
4846 cat >>confdefs.h <<_ACEOF
4847 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4852 if test $ac_cv_sys_file_offset_bits = unknown; then
4853 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4854 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4855 if test "${ac_cv_sys_large_files+set}" = set; then
4856 $as_echo_n "(cached) " >&6
4859 cat >conftest.$ac_ext <<_ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4865 #include <sys/types.h>
4866 /* Check that off_t can represent 2**63 - 1 correctly.
4867 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4868 since some C++ compilers masquerading as C compilers
4869 incorrectly reject 9223372036854775807. */
4870 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4871 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4872 && LARGE_OFF_T % 2147483647 == 1)
4882 rm -f conftest.$ac_objext
4883 if { (ac_try="$ac_compile"
4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886 *) ac_try_echo=$ac_try;;
4888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4889 $as_echo "$ac_try_echo") >&5
4890 (eval "$ac_compile") 2>conftest.er1
4892 grep -v '^ *+' conftest.er1 >conftest.err
4894 cat conftest.err >&5
4895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } && {
4897 test -z "$ac_c_werror_flag" ||
4898 test ! -s conftest.err
4899 } && test -s conftest.$ac_objext; then
4900 ac_cv_sys_large_files=no; break
4902 $as_echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909 cat >conftest.$ac_ext <<_ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4915 #define _LARGE_FILES 1
4916 #include <sys/types.h>
4917 /* Check that off_t can represent 2**63 - 1 correctly.
4918 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4919 since some C++ compilers masquerading as C compilers
4920 incorrectly reject 9223372036854775807. */
4921 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4922 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4923 && LARGE_OFF_T % 2147483647 == 1)
4933 rm -f conftest.$ac_objext
4934 if { (ac_try="$ac_compile"
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4940 $as_echo "$ac_try_echo") >&5
4941 (eval "$ac_compile") 2>conftest.er1
4943 grep -v '^ *+' conftest.er1 >conftest.err
4945 cat conftest.err >&5
4946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } && {
4948 test -z "$ac_c_werror_flag" ||
4949 test ! -s conftest.err
4950 } && test -s conftest.$ac_objext; then
4951 ac_cv_sys_large_files=1; break
4953 $as_echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 ac_cv_sys_large_files=unknown
4964 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4965 $as_echo "$ac_cv_sys_large_files" >&6; }
4966 case $ac_cv_sys_large_files in #(
4969 cat >>confdefs.h <<_ACEOF
4970 #define _LARGE_FILES $ac_cv_sys_large_files
4981 SIGNAMES_H=lsignames.h
4986 if test "x$cross_compiling" = "xyes"; then
4989 cross_cache=${srcdir}/cross-build/cygwin32.cache
4992 cross_cache=${srcdir}/cross-build/cygwin32.cache
4995 cross_cache=${srcdir}/cross-build/x86-beos.cache
4997 *) echo "configure: cross-compiling for $host is not supported" >&2
5000 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
5001 echo "loading cross-build cache file ${cross_cache}"
5005 SIGNAMES_O='signames.o'
5006 CROSS_COMPILE='-DCROSS_COMPILING'
5012 if test -z "$CC_FOR_BUILD"; then
5013 if test "x$cross_compiling" = "xno"; then
5014 CC_FOR_BUILD='$(CC)'
5022 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
5024 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
5026 if test "$opt_profiling" = "yes"; then
5030 *) opt_static_link=yes ;;
5032 DEBUG= MALLOC_DEBUG=
5035 if test "$opt_static_link" = yes; then
5036 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
5037 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
5041 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
5046 if test "X$cross_compiling" = "Xno"; then
5047 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
5048 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
5050 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
5051 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
5054 test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
5065 if test $ac_cv_c_compiler_gnu = yes; then
5066 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5067 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5068 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5069 $as_echo_n "(cached) " >&6
5071 ac_pattern="Autoconf.*'x'"
5072 cat >conftest.$ac_ext <<_ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5082 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5083 ac_cv_prog_gcc_traditional=yes
5085 ac_cv_prog_gcc_traditional=no
5090 if test $ac_cv_prog_gcc_traditional = no; then
5091 cat >conftest.$ac_ext <<_ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5101 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5102 ac_cv_prog_gcc_traditional=yes
5108 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5109 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5110 if test $ac_cv_prog_gcc_traditional = yes; then
5111 CC="$CC -traditional"
5117 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
5119 # If the user specified --with-installed-readline=PREFIX and PREFIX
5120 # is not `yes', set ac_cv_rl_prefix to PREFIX
5121 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
5124 if test "X$bash_cv_termcap_lib" = "X"; then
5127 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5128 $as_echo_n "checking which library has the termcap functions... " >&6; }
5131 if test "${bash_cv_termcap_lib+set}" = set; then
5132 $as_echo_n "(cached) " >&6
5134 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
5135 $as_echo_n "checking for tgetent... " >&6; }
5136 if test "${ac_cv_func_tgetent+set}" = set; then
5137 $as_echo_n "(cached) " >&6
5139 cat >conftest.$ac_ext <<_ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5145 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
5146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5147 #define tgetent innocuous_tgetent
5149 /* System header to define __stub macros and hopefully few prototypes,
5150 which can conflict with char tgetent (); below.
5151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5152 <limits.h> exists even on freestanding compilers. */
5155 # include <limits.h>
5157 # include <assert.h>
5162 /* Override any GCC internal prototype to avoid an error.
5163 Use char because int might match the return type of a GCC
5164 builtin and then its argument prototype would still apply. */
5169 /* The GNU C library defines this for functions which it implements
5170 to always fail with ENOSYS. Some functions are actually named
5171 something starting with __ and the normal name is an alias. */
5172 #if defined __stub_tgetent || defined __stub___tgetent
5184 rm -f conftest.$ac_objext conftest$ac_exeext
5185 if { (ac_try="$ac_link"
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5191 $as_echo "$ac_try_echo") >&5
5192 (eval "$ac_link") 2>conftest.er1
5194 grep -v '^ *+' conftest.er1 >conftest.err
5196 cat conftest.err >&5
5197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } && {
5199 test -z "$ac_c_werror_flag" ||
5200 test ! -s conftest.err
5201 } && test -s conftest$ac_exeext && {
5202 test "$cross_compiling" = yes ||
5203 $as_test_x conftest$ac_exeext
5205 ac_cv_func_tgetent=yes
5207 $as_echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5210 ac_cv_func_tgetent=no
5213 rm -rf conftest.dSYM
5214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5215 conftest$ac_exeext conftest.$ac_ext
5217 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
5218 $as_echo "$ac_cv_func_tgetent" >&6; }
5219 if test "x$ac_cv_func_tgetent" = x""yes; then
5220 bash_cv_termcap_lib=libc
5222 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5223 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5224 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5225 $as_echo_n "(cached) " >&6
5227 ac_check_lib_save_LIBS=$LIBS
5228 LIBS="-ltermcap $LIBS"
5229 cat >conftest.$ac_ext <<_ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5236 /* Override any GCC internal prototype to avoid an error.
5237 Use char because int might match the return type of a GCC
5238 builtin and then its argument prototype would still apply. */
5251 rm -f conftest.$ac_objext conftest$ac_exeext
5252 if { (ac_try="$ac_link"
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5258 $as_echo "$ac_try_echo") >&5
5259 (eval "$ac_link") 2>conftest.er1
5261 grep -v '^ *+' conftest.er1 >conftest.err
5263 cat conftest.err >&5
5264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } && {
5266 test -z "$ac_c_werror_flag" ||
5267 test ! -s conftest.err
5268 } && test -s conftest$ac_exeext && {
5269 test "$cross_compiling" = yes ||
5270 $as_test_x conftest$ac_exeext
5272 ac_cv_lib_termcap_tgetent=yes
5274 $as_echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5277 ac_cv_lib_termcap_tgetent=no
5280 rm -rf conftest.dSYM
5281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5282 conftest$ac_exeext conftest.$ac_ext
5283 LIBS=$ac_check_lib_save_LIBS
5285 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5286 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5287 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
5288 bash_cv_termcap_lib=libtermcap
5290 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
5291 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5292 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
5293 $as_echo_n "(cached) " >&6
5295 ac_check_lib_save_LIBS=$LIBS
5296 LIBS="-ltinfo $LIBS"
5297 cat >conftest.$ac_ext <<_ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5304 /* Override any GCC internal prototype to avoid an error.
5305 Use char because int might match the return type of a GCC
5306 builtin and then its argument prototype would still apply. */
5319 rm -f conftest.$ac_objext conftest$ac_exeext
5320 if { (ac_try="$ac_link"
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5326 $as_echo "$ac_try_echo") >&5
5327 (eval "$ac_link") 2>conftest.er1
5329 grep -v '^ *+' conftest.er1 >conftest.err
5331 cat conftest.err >&5
5332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } && {
5334 test -z "$ac_c_werror_flag" ||
5335 test ! -s conftest.err
5336 } && test -s conftest$ac_exeext && {
5337 test "$cross_compiling" = yes ||
5338 $as_test_x conftest$ac_exeext
5340 ac_cv_lib_tinfo_tgetent=yes
5342 $as_echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5345 ac_cv_lib_tinfo_tgetent=no
5348 rm -rf conftest.dSYM
5349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5350 conftest$ac_exeext conftest.$ac_ext
5351 LIBS=$ac_check_lib_save_LIBS
5353 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
5354 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5355 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
5356 bash_cv_termcap_lib=libtinfo
5358 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5359 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
5360 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5361 $as_echo_n "(cached) " >&6
5363 ac_check_lib_save_LIBS=$LIBS
5364 LIBS="-lcurses $LIBS"
5365 cat >conftest.$ac_ext <<_ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h. */
5372 /* Override any GCC internal prototype to avoid an error.
5373 Use char because int might match the return type of a GCC
5374 builtin and then its argument prototype would still apply. */
5387 rm -f conftest.$ac_objext conftest$ac_exeext
5388 if { (ac_try="$ac_link"
5390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5394 $as_echo "$ac_try_echo") >&5
5395 (eval "$ac_link") 2>conftest.er1
5397 grep -v '^ *+' conftest.er1 >conftest.err
5399 cat conftest.err >&5
5400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } && {
5402 test -z "$ac_c_werror_flag" ||
5403 test ! -s conftest.err
5404 } && test -s conftest$ac_exeext && {
5405 test "$cross_compiling" = yes ||
5406 $as_test_x conftest$ac_exeext
5408 ac_cv_lib_curses_tgetent=yes
5410 $as_echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5413 ac_cv_lib_curses_tgetent=no
5416 rm -rf conftest.dSYM
5417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5418 conftest$ac_exeext conftest.$ac_ext
5419 LIBS=$ac_check_lib_save_LIBS
5421 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5422 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
5423 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
5424 bash_cv_termcap_lib=libcurses
5426 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5427 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
5428 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5429 $as_echo_n "(cached) " >&6
5431 ac_check_lib_save_LIBS=$LIBS
5432 LIBS="-lncurses $LIBS"
5433 cat >conftest.$ac_ext <<_ACEOF
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h. */
5440 /* Override any GCC internal prototype to avoid an error.
5441 Use char because int might match the return type of a GCC
5442 builtin and then its argument prototype would still apply. */
5455 rm -f conftest.$ac_objext conftest$ac_exeext
5456 if { (ac_try="$ac_link"
5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5462 $as_echo "$ac_try_echo") >&5
5463 (eval "$ac_link") 2>conftest.er1
5465 grep -v '^ *+' conftest.er1 >conftest.err
5467 cat conftest.err >&5
5468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } && {
5470 test -z "$ac_c_werror_flag" ||
5471 test ! -s conftest.err
5472 } && test -s conftest$ac_exeext && {
5473 test "$cross_compiling" = yes ||
5474 $as_test_x conftest$ac_exeext
5476 ac_cv_lib_ncurses_tgetent=yes
5478 $as_echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5481 ac_cv_lib_ncurses_tgetent=no
5484 rm -rf conftest.dSYM
5485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5486 conftest$ac_exeext conftest.$ac_ext
5487 LIBS=$ac_check_lib_save_LIBS
5489 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5490 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
5491 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
5492 bash_cv_termcap_lib=libncurses
5494 bash_cv_termcap_lib=gnutermcap
5507 if test "X$_bash_needmsg" = "Xyes"; then
5508 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5509 $as_echo_n "checking which library has the termcap functions... " >&6; }
5511 { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
5512 $as_echo "using $bash_cv_termcap_lib" >&6; }
5513 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5514 LDFLAGS="$LDFLAGS -L./lib/termcap"
5515 TERMCAP_LIB="./lib/termcap/libtermcap.a"
5516 TERMCAP_DEP="./lib/termcap/libtermcap.a"
5517 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5518 TERMCAP_LIB=-ltermcap
5520 elif test $bash_cv_termcap_lib = libtinfo; then
5523 elif test $bash_cv_termcap_lib = libncurses; then
5524 TERMCAP_LIB=-lncurses
5526 elif test $bash_cv_termcap_lib = libc; then
5530 TERMCAP_LIB=-lcurses
5537 { $as_echo "$as_me:$LINENO: checking version of installed readline library" >&5
5538 $as_echo_n "checking version of installed readline library... " >&6; }
5540 # What a pain in the ass this is.
5542 # save cpp and ld options
5543 _save_CFLAGS="$CFLAGS"
5544 _save_LDFLAGS="$LDFLAGS"
5547 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5548 # allows the caller to do something like $_rl_prefix=$withval if the user
5549 # specifies --with-installed-readline=PREFIX as an argument to configure
5551 if test -z "$ac_cv_rl_prefix"; then
5552 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
5555 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
5556 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
5558 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
5559 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
5560 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
5562 if test "${ac_cv_rl_version+set}" = set; then
5563 $as_echo_n "(cached) " >&6
5565 if test "$cross_compiling" = yes; then
5566 ac_cv_rl_version='4.2'
5568 cat >conftest.$ac_ext <<_ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5576 #include <readline/readline.h>
5578 extern int rl_gnu_readline_p;
5583 fp = fopen("conftest.rlv", "w");
5586 if (rl_gnu_readline_p != 1)
5587 fprintf(fp, "0.0\n");
5589 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
5595 rm -f conftest$ac_exeext
5596 if { (ac_try="$ac_link"
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5602 $as_echo "$ac_try_echo") >&5
5603 (eval "$ac_link") 2>&5
5605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5607 { (case "(($ac_try" in
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5612 $as_echo "$ac_try_echo") >&5
5613 (eval "$ac_try") 2>&5
5615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; }; then
5617 ac_cv_rl_version=`cat conftest.rlv`
5619 $as_echo "$as_me: program exited with status $ac_status" >&5
5620 $as_echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5624 ac_cv_rl_version='0.0'
5626 rm -rf conftest.dSYM
5627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5634 CFLAGS="$_save_CFLAGS"
5635 LDFLAGS="$_save_LDFLAGS"
5642 case "$ac_cv_rl_version" in
5643 2*|3*|4*|5*|6*|7*|8*|9*)
5644 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
5645 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
5651 [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
5652 [0-9]) _RL_MAJOR=0$RL_MAJOR ;;
5658 [0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
5659 [0-9]) _RL_MINOR=0$RL_MINOR ;;
5663 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
5665 # Readline versions greater than 4.2 have these defines in readline.h
5667 if test $ac_cv_rl_version = '0.0' ; then
5668 { $as_echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
5669 $as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
5670 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
5671 # set these for use by the caller
5672 RL_PREFIX=$ac_cv_rl_prefix
5673 RL_LIBDIR=$ac_cv_rl_libdir
5674 RL_INCLUDEDIR=$ac_cv_rl_includedir
5675 { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5676 $as_echo "$ac_cv_rl_version" >&6; }
5680 cat >>confdefs.h <<_ACEOF
5681 #define RL_READLINE_VERSION $RL_VERSION
5685 cat >>confdefs.h <<_ACEOF
5686 #define RL_VERSION_MAJOR $RL_MAJOR
5690 cat >>confdefs.h <<_ACEOF
5691 #define RL_VERSION_MINOR $RL_MINOR
5699 # set these for use by the caller
5700 RL_PREFIX=$ac_cv_rl_prefix
5701 RL_LIBDIR=$ac_cv_rl_libdir
5702 RL_INCLUDEDIR=$ac_cv_rl_includedir
5704 { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5705 $as_echo "$ac_cv_rl_version" >&6; }
5710 case "$ac_cv_rl_version" in
5712 *) opt_with_installed_readline=no
5713 { $as_echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
5714 $as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
5715 { $as_echo "$as_me:$LINENO: WARNING: using private bash version" >&5
5716 $as_echo "$as_me: WARNING: using private bash version" >&2;}
5722 if test $opt_readline = yes; then
5723 cat >>confdefs.h <<\_ACEOF
5727 if test "$opt_with_installed_readline" != "no" ; then
5728 case "$opt_with_installed_readline" in
5730 *) case "$RL_INCLUDEDIR" in
5732 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5737 READLINE_LIB=-lreadline
5738 # section for OS versions that don't allow unresolved symbols
5739 # to be compiled into dynamic libraries.
5741 cygwin*) TILDE_LIB= ;;
5744 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5745 READLINE_DEP='$(READLINE_LIBRARY)'
5746 # section for OS versions that ship an older/broken version of
5747 # readline as a standard dynamic library and don't allow a
5748 # static version specified as -llibname to override the
5750 case "${host_os}" in
5751 darwin[89]*|darwin10*) READLINE_LIB='${READLINE_LIBRARY}' ;;
5752 *) READLINE_LIB=-lreadline ;;
5756 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5757 READLINE_LIB= READLINE_DEP=
5759 if test $opt_history = yes || test $opt_bang_history = yes; then
5760 if test $opt_history = yes; then
5761 cat >>confdefs.h <<\_ACEOF
5766 if test $opt_bang_history = yes; then
5767 cat >>confdefs.h <<\_ACEOF
5768 #define BANG_HISTORY 1
5772 if test "$opt_with_installed_readline" != "no"; then
5773 HIST_LIBDIR=$RL_LIBDIR
5775 HISTORY_LIB=-lhistory
5776 case "$opt_with_installed_readline" in
5778 *) case "$RL_INCLUDEDIR" in
5780 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5785 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5786 HISTORY_DEP='$(HISTORY_LIBRARY)'
5787 # section for OS versions that ship an older version of
5788 # readline as a standard dynamic library and don't allow a
5789 # static version specified as -llibname to override the
5791 case "${host_os}" in
5792 darwin[89]*|darwin10*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
5793 *) HISTORY_LIB=-lhistory ;;
5797 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5798 HISTORY_LIB= HISTORY_DEP=
5811 # Find a good install program. We prefer a C program (faster),
5812 # so one script is as good as another. But avoid the broken or
5813 # incompatible versions:
5814 # SysV /etc/install, /usr/sbin/install
5815 # SunOS /usr/etc/install
5816 # IRIX /sbin/install
5818 # AmigaOS /C/install, which installs bootblocks on floppy discs
5819 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5820 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5821 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5822 # OS/2's system install, which has a completely different semantic
5823 # ./install, which can be erroneously created by make from ./install.sh.
5824 # Reject install programs that cannot install multiple files.
5825 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5826 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5827 if test -z "$INSTALL"; then
5828 if test "${ac_cv_path_install+set}" = set; then
5829 $as_echo_n "(cached) " >&6
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 test -z "$as_dir" && as_dir=.
5836 # Account for people who put trailing slashes in PATH elements.
5838 ./ | .// | /cC/* | \
5839 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5840 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5843 # OSF1 and SCO ODT 3.0 have their own names for install.
5844 # Don't use installbsd from OSF since it installs stuff as root
5846 for ac_prog in ginstall scoinst install; do
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5849 if test $ac_prog = install &&
5850 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5851 # AIX install. It has an incompatible calling convention.
5853 elif test $ac_prog = install &&
5854 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5855 # program-specific install script used by HP pwplus--don't use.
5858 rm -rf conftest.one conftest.two conftest.dir
5859 echo one > conftest.one
5860 echo two > conftest.two
5862 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5863 test -s conftest.one && test -s conftest.two &&
5864 test -s conftest.dir/conftest.one &&
5865 test -s conftest.dir/conftest.two
5867 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5880 rm -rf conftest.one conftest.two conftest.dir
5883 if test "${ac_cv_path_install+set}" = set; then
5884 INSTALL=$ac_cv_path_install
5886 # As a last resort, use the slow shell script. Don't cache a
5887 # value for INSTALL within a source directory, because that will
5888 # break other packages using the cache if that directory is
5889 # removed, or if the value is a relative name.
5890 INSTALL=$ac_install_sh
5893 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5894 $as_echo "$INSTALL" >&6; }
5896 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5897 # It thinks the first close brace ends the variable substitution.
5898 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5900 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5902 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5904 # Extract the first word of "ar", so it can be a program name with args.
5905 set dummy ar; ac_word=$2
5906 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5907 $as_echo_n "checking for $ac_word... " >&6; }
5908 if test "${ac_cv_prog_AR+set}" = set; then
5909 $as_echo_n "(cached) " >&6
5911 if test -n "$AR"; then
5912 ac_cv_prog_AR="$AR" # Let the user override the test.
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5922 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
5933 if test -n "$AR"; then
5934 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5935 $as_echo "$AR" >&6; }
5937 { $as_echo "$as_me:$LINENO: result: no" >&5
5938 $as_echo "no" >&6; }
5942 test -n "$ARFLAGS" || ARFLAGS="cr"
5943 if test -n "$ac_tool_prefix"; then
5944 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5945 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5946 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 $as_echo_n "checking for $ac_word... " >&6; }
5948 if test "${ac_cv_prog_RANLIB+set}" = set; then
5949 $as_echo_n "(cached) " >&6
5951 if test -n "$RANLIB"; then
5952 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5961 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 RANLIB=$ac_cv_prog_RANLIB
5972 if test -n "$RANLIB"; then
5973 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5974 $as_echo "$RANLIB" >&6; }
5976 { $as_echo "$as_me:$LINENO: result: no" >&5
5977 $as_echo "no" >&6; }
5982 if test -z "$ac_cv_prog_RANLIB"; then
5983 ac_ct_RANLIB=$RANLIB
5984 # Extract the first word of "ranlib", so it can be a program name with args.
5985 set dummy ranlib; ac_word=$2
5986 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5987 $as_echo_n "checking for $ac_word... " >&6; }
5988 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5989 $as_echo_n "(cached) " >&6
5991 if test -n "$ac_ct_RANLIB"; then
5992 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6001 ac_cv_prog_ac_ct_RANLIB="ranlib"
6002 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6012 if test -n "$ac_ct_RANLIB"; then
6013 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6014 $as_echo "$ac_ct_RANLIB" >&6; }
6016 { $as_echo "$as_me:$LINENO: result: no" >&5
6017 $as_echo "no" >&6; }
6020 if test "x$ac_ct_RANLIB" = x; then
6023 case $cross_compiling:$ac_tool_warned in
6025 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6027 ac_tool_warned=yes ;;
6029 RANLIB=$ac_ct_RANLIB
6032 RANLIB="$ac_cv_prog_RANLIB"
6035 for ac_prog in 'bison -y' byacc
6037 # Extract the first word of "$ac_prog", so it can be a program name with args.
6038 set dummy $ac_prog; ac_word=$2
6039 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6040 $as_echo_n "checking for $ac_word... " >&6; }
6041 if test "${ac_cv_prog_YACC+set}" = set; then
6042 $as_echo_n "(cached) " >&6
6044 if test -n "$YACC"; then
6045 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 test -z "$as_dir" && as_dir=.
6052 for ac_exec_ext in '' $ac_executable_extensions; do
6053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054 ac_cv_prog_YACC="$ac_prog"
6055 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 YACC=$ac_cv_prog_YACC
6065 if test -n "$YACC"; then
6066 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6067 $as_echo "$YACC" >&6; }
6069 { $as_echo "$as_me:$LINENO: result: no" >&5
6070 $as_echo "no" >&6; }
6074 test -n "$YACC" && break
6076 test -n "$YACC" || YACC="yacc"
6078 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6079 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6081 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6082 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6083 $as_echo_n "(cached) " >&6
6085 cat >conftest.make <<\_ACEOF
6088 @echo '@@@%%%=$(MAKE)=@@@%%%'
6090 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6091 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6093 eval ac_cv_prog_make_${ac_make}_set=yes;;
6095 eval ac_cv_prog_make_${ac_make}_set=no;;
6099 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6100 { $as_echo "$as_me:$LINENO: result: yes" >&5
6101 $as_echo "yes" >&6; }
6104 { $as_echo "$as_me:$LINENO: result: no" >&5
6105 $as_echo "no" >&6; }
6106 SET_MAKE="MAKE=${MAKE-make}"
6111 opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
6112 *) MAKE_SHELL=/bin/sh ;;
6116 if test x$SIZE = x; then
6117 if test x$ac_tool_prefix = x; then
6120 SIZE=${ac_tool_prefix}size
6121 save_IFS=$IFS ; IFS=:
6123 for dir in $PATH; do
6124 if test -x $dir/$SIZE ; then
6129 if test $size_found -eq 0; then
6137 cat >>confdefs.h <<\_ACEOF
6138 #define _GNU_SOURCE 1
6142 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6143 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6144 if test "${ac_cv_c_const+set}" = set; then
6145 $as_echo_n "(cached) " >&6
6147 cat >conftest.$ac_ext <<_ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6157 /* FIXME: Include the comments suggested by Paul. */
6159 /* Ultrix mips cc rejects this. */
6160 typedef int charset[2];
6162 /* SunOS 4.1.1 cc rejects this. */
6163 char const *const *pcpcc;
6165 /* NEC SVR4.0.2 mips cc rejects this. */
6166 struct point {int x, y;};
6167 static struct point const zero = {0,0};
6168 /* AIX XL C 1.02.0.0 rejects this.
6169 It does not let you subtract one const X* pointer from another in
6170 an arm of an if-expression whose if-part is not a constant
6172 const char *g = "string";
6173 pcpcc = &g + (g ? g-g : 0);
6174 /* HPUX 7.0 cc rejects these. */
6176 ppc = (char**) pcpcc;
6177 pcpcc = (char const *const *) ppc;
6178 { /* SCO 3.2v4 cc rejects this. */
6180 char const *s = 0 ? (char *) 0 : (char const *) 0;
6185 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6187 const int *foo = &x[0];
6190 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6191 typedef const int *iptr;
6195 { /* AIX XL C 1.02.0.0 rejects this saying
6196 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6197 struct s { int j; const int *ap[3]; };
6198 struct s *b; b->j = 5;
6200 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6204 return !cs[0] && !zero.x;
6211 rm -f conftest.$ac_objext
6212 if { (ac_try="$ac_compile"
6214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6215 *) ac_try_echo=$ac_try;;
6217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6218 $as_echo "$ac_try_echo") >&5
6219 (eval "$ac_compile") 2>conftest.er1
6221 grep -v '^ *+' conftest.er1 >conftest.err
6223 cat conftest.err >&5
6224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } && {
6226 test -z "$ac_c_werror_flag" ||
6227 test ! -s conftest.err
6228 } && test -s conftest.$ac_objext; then
6231 $as_echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6240 $as_echo "$ac_cv_c_const" >&6; }
6241 if test $ac_cv_c_const = no; then
6243 cat >>confdefs.h <<\_ACEOF
6249 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6250 $as_echo_n "checking for inline... " >&6; }
6251 if test "${ac_cv_c_inline+set}" = set; then
6252 $as_echo_n "(cached) " >&6
6255 for ac_kw in inline __inline__ __inline; do
6256 cat >conftest.$ac_ext <<_ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6264 static $ac_kw foo_t static_foo () {return 0; }
6265 $ac_kw foo_t foo () {return 0; }
6269 rm -f conftest.$ac_objext
6270 if { (ac_try="$ac_compile"
6272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273 *) ac_try_echo=$ac_try;;
6275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6276 $as_echo "$ac_try_echo") >&5
6277 (eval "$ac_compile") 2>conftest.er1
6279 grep -v '^ *+' conftest.er1 >conftest.err
6281 cat conftest.err >&5
6282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } && {
6284 test -z "$ac_c_werror_flag" ||
6285 test ! -s conftest.err
6286 } && test -s conftest.$ac_objext; then
6287 ac_cv_c_inline=$ac_kw
6289 $as_echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.$ac_ext >&5
6295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 test "$ac_cv_c_inline" != no && break
6300 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6301 $as_echo "$ac_cv_c_inline" >&6; }
6304 case $ac_cv_c_inline in
6307 case $ac_cv_c_inline in
6309 *) ac_val=$ac_cv_c_inline;;
6311 cat >>confdefs.h <<_ACEOF
6313 #define inline $ac_val
6320 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6321 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6322 if test "${ac_cv_c_bigendian+set}" = set; then
6323 $as_echo_n "(cached) " >&6
6325 ac_cv_c_bigendian=unknown
6326 # See if we're dealing with a universal compiler.
6327 cat >conftest.$ac_ext <<_ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h. */
6333 #ifndef __APPLE_CC__
6334 not a universal capable compiler
6339 rm -f conftest.$ac_objext
6340 if { (ac_try="$ac_compile"
6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6346 $as_echo "$ac_try_echo") >&5
6347 (eval "$ac_compile") 2>conftest.er1
6349 grep -v '^ *+' conftest.er1 >conftest.err
6351 cat conftest.err >&5
6352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } && {
6354 test -z "$ac_c_werror_flag" ||
6355 test ! -s conftest.err
6356 } && test -s conftest.$ac_objext; then
6358 # Check for potential -arch flags. It is not universal unless
6359 # there are some -arch flags. Note that *ppc* also matches
6360 # ppc64. This check is also rather less than ideal.
6361 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
6362 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
6365 $as_echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372 if test $ac_cv_c_bigendian = unknown; then
6373 # See if sys/param.h defines the BYTE_ORDER macro.
6374 cat >conftest.$ac_ext <<_ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6380 #include <sys/types.h>
6381 #include <sys/param.h>
6386 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6387 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6396 rm -f conftest.$ac_objext
6397 if { (ac_try="$ac_compile"
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6403 $as_echo "$ac_try_echo") >&5
6404 (eval "$ac_compile") 2>conftest.er1
6406 grep -v '^ *+' conftest.er1 >conftest.err
6408 cat conftest.err >&5
6409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } && {
6411 test -z "$ac_c_werror_flag" ||
6412 test ! -s conftest.err
6413 } && test -s conftest.$ac_objext; then
6414 # It does; now see whether it defined to BIG_ENDIAN or not.
6415 cat >conftest.$ac_ext <<_ACEOF
6418 cat confdefs.h >>conftest.$ac_ext
6419 cat >>conftest.$ac_ext <<_ACEOF
6420 /* end confdefs.h. */
6421 #include <sys/types.h>
6422 #include <sys/param.h>
6427 #if BYTE_ORDER != BIG_ENDIAN
6435 rm -f conftest.$ac_objext
6436 if { (ac_try="$ac_compile"
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6442 $as_echo "$ac_try_echo") >&5
6443 (eval "$ac_compile") 2>conftest.er1
6445 grep -v '^ *+' conftest.er1 >conftest.err
6447 cat conftest.err >&5
6448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } && {
6450 test -z "$ac_c_werror_flag" ||
6451 test ! -s conftest.err
6452 } && test -s conftest.$ac_objext; then
6453 ac_cv_c_bigendian=yes
6455 $as_echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6458 ac_cv_c_bigendian=no
6461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6463 $as_echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6471 if test $ac_cv_c_bigendian = unknown; then
6472 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6473 cat >conftest.$ac_ext <<_ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6484 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6492 rm -f conftest.$ac_objext
6493 if { (ac_try="$ac_compile"
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6499 $as_echo "$ac_try_echo") >&5
6500 (eval "$ac_compile") 2>conftest.er1
6502 grep -v '^ *+' conftest.er1 >conftest.err
6504 cat conftest.err >&5
6505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } && {
6507 test -z "$ac_c_werror_flag" ||
6508 test ! -s conftest.err
6509 } && test -s conftest.$ac_objext; then
6510 # It does; now see whether it defined to _BIG_ENDIAN or not.
6511 cat >conftest.$ac_ext <<_ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6530 rm -f conftest.$ac_objext
6531 if { (ac_try="$ac_compile"
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6537 $as_echo "$ac_try_echo") >&5
6538 (eval "$ac_compile") 2>conftest.er1
6540 grep -v '^ *+' conftest.er1 >conftest.err
6542 cat conftest.err >&5
6543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } && {
6545 test -z "$ac_c_werror_flag" ||
6546 test ! -s conftest.err
6547 } && test -s conftest.$ac_objext; then
6548 ac_cv_c_bigendian=yes
6550 $as_echo "$as_me: failed program was:" >&5
6551 sed 's/^/| /' conftest.$ac_ext >&5
6553 ac_cv_c_bigendian=no
6556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558 $as_echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6566 if test $ac_cv_c_bigendian = unknown; then
6567 # Compile a test program.
6568 if test "$cross_compiling" = yes; then
6569 # Try to guess by grepping values from an object file.
6570 cat >conftest.$ac_ext <<_ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6576 short int ascii_mm[] =
6577 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6578 short int ascii_ii[] =
6579 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6580 int use_ascii (int i) {
6581 return ascii_mm[i] + ascii_ii[i];
6583 short int ebcdic_ii[] =
6584 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6585 short int ebcdic_mm[] =
6586 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6587 int use_ebcdic (int i) {
6588 return ebcdic_mm[i] + ebcdic_ii[i];
6595 return use_ascii (foo) == use_ebcdic (foo);
6600 rm -f conftest.$ac_objext
6601 if { (ac_try="$ac_compile"
6603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604 *) ac_try_echo=$ac_try;;
6606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6607 $as_echo "$ac_try_echo") >&5
6608 (eval "$ac_compile") 2>conftest.er1
6610 grep -v '^ *+' conftest.er1 >conftest.err
6612 cat conftest.err >&5
6613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); } && {
6615 test -z "$ac_c_werror_flag" ||
6616 test ! -s conftest.err
6617 } && test -s conftest.$ac_objext; then
6618 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6619 ac_cv_c_bigendian=yes
6621 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6622 if test "$ac_cv_c_bigendian" = unknown; then
6623 ac_cv_c_bigendian=no
6625 # finding both strings is unlikely to happen, but who knows?
6626 ac_cv_c_bigendian=unknown
6630 $as_echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6638 cat >conftest.$ac_ext <<_ACEOF
6641 cat confdefs.h >>conftest.$ac_ext
6642 cat >>conftest.$ac_ext <<_ACEOF
6643 /* end confdefs.h. */
6644 $ac_includes_default
6649 /* Are we little or big endian? From Harbison&Steele. */
6653 char c[sizeof (long int)];
6656 return u.c[sizeof (long int) - 1] == 1;
6662 rm -f conftest$ac_exeext
6663 if { (ac_try="$ac_link"
6665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6666 *) ac_try_echo=$ac_try;;
6668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6669 $as_echo "$ac_try_echo") >&5
6670 (eval "$ac_link") 2>&5
6672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6674 { (case "(($ac_try" in
6675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6676 *) ac_try_echo=$ac_try;;
6678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6679 $as_echo "$ac_try_echo") >&5
6680 (eval "$ac_try") 2>&5
6682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); }; }; then
6684 ac_cv_c_bigendian=no
6686 $as_echo "$as_me: program exited with status $ac_status" >&5
6687 $as_echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6691 ac_cv_c_bigendian=yes
6693 rm -rf conftest.dSYM
6694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6700 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6701 $as_echo "$ac_cv_c_bigendian" >&6; }
6702 case $ac_cv_c_bigendian in #(
6704 cat >>confdefs.h <<\_ACEOF
6705 #define WORDS_BIGENDIAN 1
6712 cat >>confdefs.h <<\_ACEOF
6713 #define AC_APPLE_UNIVERSAL_BUILD 1
6718 { { $as_echo "$as_me:$LINENO: error: unknown endianness
6719 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6720 $as_echo "$as_me: error: unknown endianness
6721 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6722 { (exit 1); exit 1; }; } ;;
6725 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
6726 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
6727 if test "${ac_cv_c_stringize+set}" = set; then
6728 $as_echo_n "(cached) " >&6
6730 cat >conftest.$ac_ext <<_ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h. */
6738 char *s = x(teststring);
6740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6741 $EGREP "#teststring" >/dev/null 2>&1; then
6742 ac_cv_c_stringize=no
6744 ac_cv_c_stringize=yes
6749 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
6750 $as_echo "$ac_cv_c_stringize" >&6; }
6751 if test $ac_cv_c_stringize = yes; then
6753 cat >>confdefs.h <<\_ACEOF
6754 #define HAVE_STRINGIZE 1
6761 { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
6762 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
6763 if test "${ac_cv_type_long_double_wider+set}" = set; then
6764 $as_echo_n "(cached) " >&6
6766 cat >conftest.$ac_ext <<_ACEOF
6769 cat confdefs.h >>conftest.$ac_ext
6770 cat >>conftest.$ac_ext <<_ACEOF
6771 /* end confdefs.h. */
6773 long double const a[] =
6775 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6776 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6781 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6782 + (x ? f (x) : 'c'));
6788 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6789 + (DBL_MANT_DIG < LDBL_MANT_DIG)
6790 - (LDBL_MAX_EXP < DBL_MAX_EXP)
6791 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6792 && (int) LDBL_EPSILON == 0
6800 rm -f conftest.$ac_objext
6801 if { (ac_try="$ac_compile"
6803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804 *) ac_try_echo=$ac_try;;
6806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6807 $as_echo "$ac_try_echo") >&5
6808 (eval "$ac_compile") 2>conftest.er1
6810 grep -v '^ *+' conftest.er1 >conftest.err
6812 cat conftest.err >&5
6813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } && {
6815 test -z "$ac_c_werror_flag" ||
6816 test ! -s conftest.err
6817 } && test -s conftest.$ac_objext; then
6818 ac_cv_type_long_double_wider=yes
6820 $as_echo "$as_me: failed program was:" >&5
6821 sed 's/^/| /' conftest.$ac_ext >&5
6823 ac_cv_type_long_double_wider=no
6826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6828 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
6829 $as_echo "$ac_cv_type_long_double_wider" >&6; }
6830 if test $ac_cv_type_long_double_wider = yes; then
6832 cat >>confdefs.h <<\_ACEOF
6833 #define HAVE_LONG_DOUBLE_WIDER 1
6838 ac_cv_c_long_double=$ac_cv_type_long_double_wider
6839 if test $ac_cv_c_long_double = yes; then
6841 cat >>confdefs.h <<\_ACEOF
6842 #define HAVE_LONG_DOUBLE 1
6847 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
6848 $as_echo_n "checking for function prototypes... " >&6; }
6849 if test "$ac_cv_prog_cc_c89" != no; then
6850 { $as_echo "$as_me:$LINENO: result: yes" >&5
6851 $as_echo "yes" >&6; }
6853 cat >>confdefs.h <<\_ACEOF
6854 #define PROTOTYPES 1
6858 cat >>confdefs.h <<\_ACEOF
6859 #define __PROTOTYPES 1
6863 { $as_echo "$as_me:$LINENO: result: no" >&5
6864 $as_echo "no" >&6; }
6868 { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
6869 $as_echo_n "checking whether char is unsigned... " >&6; }
6870 if test "${ac_cv_c_char_unsigned+set}" = set; then
6871 $as_echo_n "(cached) " >&6
6873 cat >conftest.$ac_ext <<_ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6879 $ac_includes_default
6883 static int test_array [1 - 2 * !(((char) -1) < 0)];
6890 rm -f conftest.$ac_objext
6891 if { (ac_try="$ac_compile"
6893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6894 *) ac_try_echo=$ac_try;;
6896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6897 $as_echo "$ac_try_echo") >&5
6898 (eval "$ac_compile") 2>conftest.er1
6900 grep -v '^ *+' conftest.er1 >conftest.err
6902 cat conftest.err >&5
6903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } && {
6905 test -z "$ac_c_werror_flag" ||
6906 test ! -s conftest.err
6907 } && test -s conftest.$ac_objext; then
6908 ac_cv_c_char_unsigned=no
6910 $as_echo "$as_me: failed program was:" >&5
6911 sed 's/^/| /' conftest.$ac_ext >&5
6913 ac_cv_c_char_unsigned=yes
6916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6918 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
6919 $as_echo "$ac_cv_c_char_unsigned" >&6; }
6920 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
6921 cat >>confdefs.h <<\_ACEOF
6922 #define __CHAR_UNSIGNED__ 1
6927 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
6928 $as_echo_n "checking for working volatile... " >&6; }
6929 if test "${ac_cv_c_volatile+set}" = set; then
6930 $as_echo_n "(cached) " >&6
6932 cat >conftest.$ac_ext <<_ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6944 int * volatile y = (int *) 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6957 $as_echo "$ac_try_echo") >&5
6958 (eval "$ac_compile") 2>conftest.er1
6960 grep -v '^ *+' conftest.er1 >conftest.err
6962 cat conftest.err >&5
6963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } && {
6965 test -z "$ac_c_werror_flag" ||
6966 test ! -s conftest.err
6967 } && test -s conftest.$ac_objext; then
6968 ac_cv_c_volatile=yes
6970 $as_echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6978 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6979 $as_echo "$ac_cv_c_volatile" >&6; }
6980 if test $ac_cv_c_volatile = no; then
6982 cat >>confdefs.h <<\_ACEOF
6983 #define volatile /**/
6988 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
6989 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6990 if test "${ac_cv_c_restrict+set}" = set; then
6991 $as_echo_n "(cached) " >&6
6994 # The order here caters to the fact that C++ does not require restrict.
6995 for ac_kw in __restrict __restrict__ _Restrict restrict; do
6996 cat >conftest.$ac_ext <<_ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7002 typedef int * int_ptr;
7003 int foo (int_ptr $ac_kw ip) {
7017 rm -f conftest.$ac_objext
7018 if { (ac_try="$ac_compile"
7020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7021 *) ac_try_echo=$ac_try;;
7023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7024 $as_echo "$ac_try_echo") >&5
7025 (eval "$ac_compile") 2>conftest.er1
7027 grep -v '^ *+' conftest.er1 >conftest.err
7029 cat conftest.err >&5
7030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } && {
7032 test -z "$ac_c_werror_flag" ||
7033 test ! -s conftest.err
7034 } && test -s conftest.$ac_objext; then
7035 ac_cv_c_restrict=$ac_kw
7037 $as_echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.$ac_ext >&5
7043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044 test "$ac_cv_c_restrict" != no && break
7048 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
7049 $as_echo "$ac_cv_c_restrict" >&6; }
7052 case $ac_cv_c_restrict in
7054 no) cat >>confdefs.h <<\_ACEOF
7055 #define restrict /**/
7058 *) cat >>confdefs.h <<_ACEOF
7059 #define restrict $ac_cv_c_restrict
7067 if test -n "$ac_aux_dir"; then
7068 case "$ac_aux_dir" in
7069 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7070 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7073 if test -z "$MKINSTALLDIRS"; then
7074 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7079 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7080 $as_echo_n "checking whether NLS is requested... " >&6; }
7081 # Check whether --enable-nls was given.
7082 if test "${enable_nls+set}" = set; then
7083 enableval=$enable_nls; USE_NLS=$enableval
7088 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
7089 $as_echo "$USE_NLS" >&6; }
7096 # Prepare PATH_SEPARATOR.
7097 # The user is always right.
7098 if test "${PATH_SEPARATOR+set}" != set; then
7099 echo "#! /bin/sh" >conf$$.sh
7100 echo "exit 0" >>conf$$.sh
7102 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7110 # Find out how to test for executable files. Don't use a zero-byte file,
7111 # as systems may use methods other than mode bits to determine executability.
7112 cat >conf$$.file <<_ASEOF
7116 chmod +x conf$$.file
7117 if test -x conf$$.file >/dev/null 2>&1; then
7118 ac_executable_p="test -x"
7120 ac_executable_p="test -f"
7124 # Extract the first word of "msgfmt", so it can be a program name with args.
7125 set dummy msgfmt; ac_word=$2
7126 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7127 $as_echo_n "checking for $ac_word... " >&6; }
7128 if test "${ac_cv_path_MSGFMT+set}" = set; then
7129 $as_echo_n "(cached) " >&6
7133 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7136 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7137 for ac_dir in $PATH; do
7139 test -z "$ac_dir" && ac_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7142 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7143 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7144 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7151 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7155 MSGFMT="$ac_cv_path_MSGFMT"
7156 if test "$MSGFMT" != ":"; then
7157 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7158 $as_echo "$MSGFMT" >&6; }
7160 { $as_echo "$as_me:$LINENO: result: no" >&5
7161 $as_echo "no" >&6; }
7164 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7165 set dummy gmsgfmt; ac_word=$2
7166 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7167 $as_echo_n "checking for $ac_word... " >&6; }
7168 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7169 $as_echo_n "(cached) " >&6
7173 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7184 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7195 GMSGFMT=$ac_cv_path_GMSGFMT
7196 if test -n "$GMSGFMT"; then
7197 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7198 $as_echo "$GMSGFMT" >&6; }
7200 { $as_echo "$as_me:$LINENO: result: no" >&5
7201 $as_echo "no" >&6; }
7207 # Prepare PATH_SEPARATOR.
7208 # The user is always right.
7209 if test "${PATH_SEPARATOR+set}" != set; then
7210 echo "#! /bin/sh" >conf$$.sh
7211 echo "exit 0" >>conf$$.sh
7213 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7221 # Find out how to test for executable files. Don't use a zero-byte file,
7222 # as systems may use methods other than mode bits to determine executability.
7223 cat >conf$$.file <<_ASEOF
7227 chmod +x conf$$.file
7228 if test -x conf$$.file >/dev/null 2>&1; then
7229 ac_executable_p="test -x"
7231 ac_executable_p="test -f"
7235 # Extract the first word of "xgettext", so it can be a program name with args.
7236 set dummy xgettext; ac_word=$2
7237 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7238 $as_echo_n "checking for $ac_word... " >&6; }
7239 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7240 $as_echo_n "(cached) " >&6
7244 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7247 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7248 for ac_dir in $PATH; do
7250 test -z "$ac_dir" && ac_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7253 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7254 (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
7255 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7262 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7266 XGETTEXT="$ac_cv_path_XGETTEXT"
7267 if test "$XGETTEXT" != ":"; then
7268 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7269 $as_echo "$XGETTEXT" >&6; }
7271 { $as_echo "$as_me:$LINENO: result: no" >&5
7272 $as_echo "no" >&6; }
7278 # Prepare PATH_SEPARATOR.
7279 # The user is always right.
7280 if test "${PATH_SEPARATOR+set}" != set; then
7281 echo "#! /bin/sh" >conf$$.sh
7282 echo "exit 0" >>conf$$.sh
7284 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7292 # Find out how to test for executable files. Don't use a zero-byte file,
7293 # as systems may use methods other than mode bits to determine executability.
7294 cat >conf$$.file <<_ASEOF
7298 chmod +x conf$$.file
7299 if test -x conf$$.file >/dev/null 2>&1; then
7300 ac_executable_p="test -x"
7302 ac_executable_p="test -f"
7306 # Extract the first word of "msgmerge", so it can be a program name with args.
7307 set dummy msgmerge; ac_word=$2
7308 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7309 $as_echo_n "checking for $ac_word... " >&6; }
7310 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7311 $as_echo_n "(cached) " >&6
7315 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7318 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7319 for ac_dir in $PATH; do
7321 test -z "$ac_dir" && ac_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7324 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7325 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7332 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7336 MSGMERGE="$ac_cv_path_MSGMERGE"
7337 if test "$MSGMERGE" != ":"; then
7338 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7339 $as_echo "$MSGMERGE" >&6; }
7341 { $as_echo "$as_me:$LINENO: result: no" >&5
7342 $as_echo "no" >&6; }
7346 if test "$GMSGFMT" != ":"; then
7347 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7348 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7351 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7352 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7353 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7358 if test "$XGETTEXT" != ":"; then
7359 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7360 (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
7363 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7364 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7370 ac_config_commands="$ac_config_commands default-1"
7373 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
7374 $as_echo_n "checking for off_t... " >&6; }
7375 if test "${ac_cv_type_off_t+set}" = set; then
7376 $as_echo_n "(cached) " >&6
7379 cat >conftest.$ac_ext <<_ACEOF
7382 cat confdefs.h >>conftest.$ac_ext
7383 cat >>conftest.$ac_ext <<_ACEOF
7384 /* end confdefs.h. */
7385 $ac_includes_default
7395 rm -f conftest.$ac_objext
7396 if { (ac_try="$ac_compile"
7398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7399 *) ac_try_echo=$ac_try;;
7401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7402 $as_echo "$ac_try_echo") >&5
7403 (eval "$ac_compile") 2>conftest.er1
7405 grep -v '^ *+' conftest.er1 >conftest.err
7407 cat conftest.err >&5
7408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } && {
7410 test -z "$ac_c_werror_flag" ||
7411 test ! -s conftest.err
7412 } && test -s conftest.$ac_objext; then
7413 cat >conftest.$ac_ext <<_ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7419 $ac_includes_default
7423 if (sizeof ((off_t)))
7429 rm -f conftest.$ac_objext
7430 if { (ac_try="$ac_compile"
7432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7433 *) ac_try_echo=$ac_try;;
7435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7436 $as_echo "$ac_try_echo") >&5
7437 (eval "$ac_compile") 2>conftest.er1
7439 grep -v '^ *+' conftest.er1 >conftest.err
7441 cat conftest.err >&5
7442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } && {
7444 test -z "$ac_c_werror_flag" ||
7445 test ! -s conftest.err
7446 } && test -s conftest.$ac_objext; then
7449 $as_echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.$ac_ext >&5
7452 ac_cv_type_off_t=yes
7455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7457 $as_echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.$ac_ext >&5
7463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7466 $as_echo "$ac_cv_type_off_t" >&6; }
7467 if test "x$ac_cv_type_off_t" = x""yes; then
7471 cat >>confdefs.h <<_ACEOF
7472 #define off_t long int
7477 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
7478 $as_echo_n "checking for size_t... " >&6; }
7479 if test "${ac_cv_type_size_t+set}" = set; then
7480 $as_echo_n "(cached) " >&6
7482 ac_cv_type_size_t=no
7483 cat >conftest.$ac_ext <<_ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h. */
7489 $ac_includes_default
7493 if (sizeof (size_t))
7499 rm -f conftest.$ac_objext
7500 if { (ac_try="$ac_compile"
7502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503 *) ac_try_echo=$ac_try;;
7505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7506 $as_echo "$ac_try_echo") >&5
7507 (eval "$ac_compile") 2>conftest.er1
7509 grep -v '^ *+' conftest.er1 >conftest.err
7511 cat conftest.err >&5
7512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } && {
7514 test -z "$ac_c_werror_flag" ||
7515 test ! -s conftest.err
7516 } && test -s conftest.$ac_objext; then
7517 cat >conftest.$ac_ext <<_ACEOF
7520 cat confdefs.h >>conftest.$ac_ext
7521 cat >>conftest.$ac_ext <<_ACEOF
7522 /* end confdefs.h. */
7523 $ac_includes_default
7527 if (sizeof ((size_t)))
7533 rm -f conftest.$ac_objext
7534 if { (ac_try="$ac_compile"
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7540 $as_echo "$ac_try_echo") >&5
7541 (eval "$ac_compile") 2>conftest.er1
7543 grep -v '^ *+' conftest.er1 >conftest.err
7545 cat conftest.err >&5
7546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest.$ac_objext; then
7553 $as_echo "$as_me: failed program was:" >&5
7554 sed 's/^/| /' conftest.$ac_ext >&5
7556 ac_cv_type_size_t=yes
7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7561 $as_echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.$ac_ext >&5
7567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7569 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7570 $as_echo "$ac_cv_type_size_t" >&6; }
7571 if test "x$ac_cv_type_size_t" = x""yes; then
7575 cat >>confdefs.h <<_ACEOF
7576 #define size_t unsigned int
7581 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7582 # for constant arguments. Useless!
7583 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
7584 $as_echo_n "checking for working alloca.h... " >&6; }
7585 if test "${ac_cv_working_alloca_h+set}" = set; then
7586 $as_echo_n "(cached) " >&6
7588 cat >conftest.$ac_ext <<_ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7598 char *p = (char *) alloca (2 * sizeof (int));
7604 rm -f conftest.$ac_objext conftest$ac_exeext
7605 if { (ac_try="$ac_link"
7607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7608 *) ac_try_echo=$ac_try;;
7610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7611 $as_echo "$ac_try_echo") >&5
7612 (eval "$ac_link") 2>conftest.er1
7614 grep -v '^ *+' conftest.er1 >conftest.err
7616 cat conftest.err >&5
7617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } && {
7619 test -z "$ac_c_werror_flag" ||
7620 test ! -s conftest.err
7621 } && test -s conftest$ac_exeext && {
7622 test "$cross_compiling" = yes ||
7623 $as_test_x conftest$ac_exeext
7625 ac_cv_working_alloca_h=yes
7627 $as_echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7630 ac_cv_working_alloca_h=no
7633 rm -rf conftest.dSYM
7634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7635 conftest$ac_exeext conftest.$ac_ext
7637 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7638 $as_echo "$ac_cv_working_alloca_h" >&6; }
7639 if test $ac_cv_working_alloca_h = yes; then
7641 cat >>confdefs.h <<\_ACEOF
7642 #define HAVE_ALLOCA_H 1
7647 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
7648 $as_echo_n "checking for alloca... " >&6; }
7649 if test "${ac_cv_func_alloca_works+set}" = set; then
7650 $as_echo_n "(cached) " >&6
7652 cat >conftest.$ac_ext <<_ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7659 # define alloca __builtin_alloca
7662 # include <malloc.h>
7663 # define alloca _alloca
7665 # ifdef HAVE_ALLOCA_H
7666 # include <alloca.h>
7671 # ifndef alloca /* predefined by HP cc +Olibcalls */
7682 char *p = (char *) alloca (1);
7688 rm -f conftest.$ac_objext conftest$ac_exeext
7689 if { (ac_try="$ac_link"
7691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7692 *) ac_try_echo=$ac_try;;
7694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7695 $as_echo "$ac_try_echo") >&5
7696 (eval "$ac_link") 2>conftest.er1
7698 grep -v '^ *+' conftest.er1 >conftest.err
7700 cat conftest.err >&5
7701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } && {
7703 test -z "$ac_c_werror_flag" ||
7704 test ! -s conftest.err
7705 } && test -s conftest$ac_exeext && {
7706 test "$cross_compiling" = yes ||
7707 $as_test_x conftest$ac_exeext
7709 ac_cv_func_alloca_works=yes
7711 $as_echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7714 ac_cv_func_alloca_works=no
7717 rm -rf conftest.dSYM
7718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7719 conftest$ac_exeext conftest.$ac_ext
7721 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7722 $as_echo "$ac_cv_func_alloca_works" >&6; }
7724 if test $ac_cv_func_alloca_works = yes; then
7726 cat >>confdefs.h <<\_ACEOF
7727 #define HAVE_ALLOCA 1
7731 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7732 # that cause trouble. Some versions do not even contain alloca or
7733 # contain a buggy version. If you still want to use their alloca,
7734 # use ar to extract alloca.o from them instead of compiling alloca.c.
7736 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7738 cat >>confdefs.h <<\_ACEOF
7743 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7744 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7745 if test "${ac_cv_os_cray+set}" = set; then
7746 $as_echo_n "(cached) " >&6
7748 cat >conftest.$ac_ext <<_ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h. */
7754 #if defined CRAY && ! defined CRAY2
7761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7762 $EGREP "webecray" >/dev/null 2>&1; then
7770 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7771 $as_echo "$ac_cv_os_cray" >&6; }
7772 if test $ac_cv_os_cray = yes; then
7773 for ac_func in _getb67 GETB67 getb67; do
7774 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7775 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7776 $as_echo_n "checking for $ac_func... " >&6; }
7777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7778 $as_echo_n "(cached) " >&6
7780 cat >conftest.$ac_ext <<_ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7788 #define $ac_func innocuous_$ac_func
7790 /* System header to define __stub macros and hopefully few prototypes,
7791 which can conflict with char $ac_func (); below.
7792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7793 <limits.h> exists even on freestanding compilers. */
7796 # include <limits.h>
7798 # include <assert.h>
7803 /* Override any GCC internal prototype to avoid an error.
7804 Use char because int might match the return type of a GCC
7805 builtin and then its argument prototype would still apply. */
7810 /* The GNU C library defines this for functions which it implements
7811 to always fail with ENOSYS. Some functions are actually named
7812 something starting with __ and the normal name is an alias. */
7813 #if defined __stub_$ac_func || defined __stub___$ac_func
7825 rm -f conftest.$ac_objext conftest$ac_exeext
7826 if { (ac_try="$ac_link"
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7832 $as_echo "$ac_try_echo") >&5
7833 (eval "$ac_link") 2>conftest.er1
7835 grep -v '^ *+' conftest.er1 >conftest.err
7837 cat conftest.err >&5
7838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } && {
7840 test -z "$ac_c_werror_flag" ||
7841 test ! -s conftest.err
7842 } && test -s conftest$ac_exeext && {
7843 test "$cross_compiling" = yes ||
7844 $as_test_x conftest$ac_exeext
7846 eval "$as_ac_var=yes"
7848 $as_echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7851 eval "$as_ac_var=no"
7854 rm -rf conftest.dSYM
7855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7856 conftest$ac_exeext conftest.$ac_ext
7858 ac_res=`eval 'as_val=${'$as_ac_var'}
7859 $as_echo "$as_val"'`
7860 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7861 $as_echo "$ac_res" >&6; }
7862 as_val=`eval 'as_val=${'$as_ac_var'}
7863 $as_echo "$as_val"'`
7864 if test "x$as_val" = x""yes; then
7866 cat >>confdefs.h <<_ACEOF
7867 #define CRAY_STACKSEG_END $ac_func
7876 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7877 $as_echo_n "checking stack direction for C alloca... " >&6; }
7878 if test "${ac_cv_c_stack_direction+set}" = set; then
7879 $as_echo_n "(cached) " >&6
7881 if test "$cross_compiling" = yes; then
7882 ac_cv_c_stack_direction=0
7884 cat >conftest.$ac_ext <<_ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h. */
7890 $ac_includes_default
7892 find_stack_direction ()
7894 static char *addr = 0;
7899 return find_stack_direction ();
7902 return (&dummy > addr) ? 1 : -1;
7908 return find_stack_direction () < 0;
7911 rm -f conftest$ac_exeext
7912 if { (ac_try="$ac_link"
7914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7915 *) ac_try_echo=$ac_try;;
7917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7918 $as_echo "$ac_try_echo") >&5
7919 (eval "$ac_link") 2>&5
7921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7923 { (case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7928 $as_echo "$ac_try_echo") >&5
7929 (eval "$ac_try") 2>&5
7931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; }; then
7933 ac_cv_c_stack_direction=1
7935 $as_echo "$as_me: program exited with status $ac_status" >&5
7936 $as_echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.$ac_ext >&5
7940 ac_cv_c_stack_direction=-1
7942 rm -rf conftest.dSYM
7943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7948 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7949 $as_echo "$ac_cv_c_stack_direction" >&6; }
7951 cat >>confdefs.h <<_ACEOF
7952 #define STACK_DIRECTION $ac_cv_c_stack_direction
7960 for ac_header in stdlib.h unistd.h
7962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7964 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7965 $as_echo_n "checking for $ac_header... " >&6; }
7966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7967 $as_echo_n "(cached) " >&6
7969 ac_res=`eval 'as_val=${'$as_ac_Header'}
7970 $as_echo "$as_val"'`
7971 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7972 $as_echo "$ac_res" >&6; }
7974 # Is the header compilable?
7975 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7976 $as_echo_n "checking $ac_header usability... " >&6; }
7977 cat >conftest.$ac_ext <<_ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7983 $ac_includes_default
7984 #include <$ac_header>
7986 rm -f conftest.$ac_objext
7987 if { (ac_try="$ac_compile"
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7993 $as_echo "$ac_try_echo") >&5
7994 (eval "$ac_compile") 2>conftest.er1
7996 grep -v '^ *+' conftest.er1 >conftest.err
7998 cat conftest.err >&5
7999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); } && {
8001 test -z "$ac_c_werror_flag" ||
8002 test ! -s conftest.err
8003 } && test -s conftest.$ac_objext; then
8004 ac_header_compiler=yes
8006 $as_echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8009 ac_header_compiler=no
8012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8014 $as_echo "$ac_header_compiler" >&6; }
8016 # Is the header present?
8017 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8018 $as_echo_n "checking $ac_header presence... " >&6; }
8019 cat >conftest.$ac_ext <<_ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 #include <$ac_header>
8027 if { (ac_try="$ac_cpp conftest.$ac_ext"
8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030 *) ac_try_echo=$ac_try;;
8032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8033 $as_echo "$ac_try_echo") >&5
8034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8036 grep -v '^ *+' conftest.er1 >conftest.err
8038 cat conftest.err >&5
8039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } >/dev/null && {
8041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8042 test ! -s conftest.err
8044 ac_header_preproc=yes
8046 $as_echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8049 ac_header_preproc=no
8052 rm -f conftest.err conftest.$ac_ext
8053 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8054 $as_echo "$ac_header_preproc" >&6; }
8056 # So? What about this header?
8057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8060 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8062 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8063 ac_header_preproc=yes
8066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8067 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8069 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8071 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8073 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8075 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8077 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8079 ## ------------------------------- ##
8080 ## Report this to bug-bash@gnu.org ##
8081 ## ------------------------------- ##
8083 ) | sed "s/^/$as_me: WARNING: /" >&2
8086 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8087 $as_echo_n "checking for $ac_header... " >&6; }
8088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8089 $as_echo_n "(cached) " >&6
8091 eval "$as_ac_Header=\$ac_header_preproc"
8093 ac_res=`eval 'as_val=${'$as_ac_Header'}
8094 $as_echo "$as_val"'`
8095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8096 $as_echo "$ac_res" >&6; }
8099 as_val=`eval 'as_val=${'$as_ac_Header'}
8100 $as_echo "$as_val"'`
8101 if test "x$as_val" = x""yes; then
8102 cat >>confdefs.h <<_ACEOF
8103 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8111 for ac_func in getpagesize
8113 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8114 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8115 $as_echo_n "checking for $ac_func... " >&6; }
8116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8117 $as_echo_n "(cached) " >&6
8119 cat >conftest.$ac_ext <<_ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8127 #define $ac_func innocuous_$ac_func
8129 /* System header to define __stub macros and hopefully few prototypes,
8130 which can conflict with char $ac_func (); below.
8131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8132 <limits.h> exists even on freestanding compilers. */
8135 # include <limits.h>
8137 # include <assert.h>
8142 /* Override any GCC internal prototype to avoid an error.
8143 Use char because int might match the return type of a GCC
8144 builtin and then its argument prototype would still apply. */
8149 /* The GNU C library defines this for functions which it implements
8150 to always fail with ENOSYS. Some functions are actually named
8151 something starting with __ and the normal name is an alias. */
8152 #if defined __stub_$ac_func || defined __stub___$ac_func
8164 rm -f conftest.$ac_objext conftest$ac_exeext
8165 if { (ac_try="$ac_link"
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8171 $as_echo "$ac_try_echo") >&5
8172 (eval "$ac_link") 2>conftest.er1
8174 grep -v '^ *+' conftest.er1 >conftest.err
8176 cat conftest.err >&5
8177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && {
8179 test -z "$ac_c_werror_flag" ||
8180 test ! -s conftest.err
8181 } && test -s conftest$ac_exeext && {
8182 test "$cross_compiling" = yes ||
8183 $as_test_x conftest$ac_exeext
8185 eval "$as_ac_var=yes"
8187 $as_echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8190 eval "$as_ac_var=no"
8193 rm -rf conftest.dSYM
8194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8195 conftest$ac_exeext conftest.$ac_ext
8197 ac_res=`eval 'as_val=${'$as_ac_var'}
8198 $as_echo "$as_val"'`
8199 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8200 $as_echo "$ac_res" >&6; }
8201 as_val=`eval 'as_val=${'$as_ac_var'}
8202 $as_echo "$as_val"'`
8203 if test "x$as_val" = x""yes; then
8204 cat >>confdefs.h <<_ACEOF
8205 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8211 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8212 $as_echo_n "checking for working mmap... " >&6; }
8213 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8214 $as_echo_n "(cached) " >&6
8216 if test "$cross_compiling" = yes; then
8217 ac_cv_func_mmap_fixed_mapped=no
8219 cat >conftest.$ac_ext <<_ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8225 $ac_includes_default
8226 /* malloc might have been renamed as rpl_malloc. */
8229 /* Thanks to Mike Haertel and Jim Avera for this test.
8230 Here is a matrix of mmap possibilities:
8231 mmap private not fixed
8232 mmap private fixed at somewhere currently unmapped
8233 mmap private fixed at somewhere already mapped
8234 mmap shared not fixed
8235 mmap shared fixed at somewhere currently unmapped
8236 mmap shared fixed at somewhere already mapped
8237 For private mappings, we should verify that changes cannot be read()
8238 back from the file, nor mmap's back from the file at a different
8239 address. (There have been systems where private was not correctly
8240 implemented like the infamous i386 svr4.0, and systems where the
8241 VM page cache was not coherent with the file system buffer cache
8242 like early versions of FreeBSD and possibly contemporary NetBSD.)
8243 For shared mappings, we should conversely verify that changes get
8244 propagated back to all the places they're supposed to be.
8246 Grep wants private fixed already mapped.
8247 The main things grep needs to know about mmap are:
8248 * does it exist and is it safe to write into the mmap'd area
8249 * how to use it (BSD variants) */
8252 #include <sys/mman.h>
8254 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8258 /* This mess was copied from the GNU getpagesize.h. */
8259 #ifndef HAVE_GETPAGESIZE
8260 /* Assume that all systems that can run configure have sys/param.h. */
8261 # ifndef HAVE_SYS_PARAM_H
8262 # define HAVE_SYS_PARAM_H 1
8265 # ifdef _SC_PAGESIZE
8266 # define getpagesize() sysconf(_SC_PAGESIZE)
8267 # else /* no _SC_PAGESIZE */
8268 # ifdef HAVE_SYS_PARAM_H
8269 # include <sys/param.h>
8270 # ifdef EXEC_PAGESIZE
8271 # define getpagesize() EXEC_PAGESIZE
8272 # else /* no EXEC_PAGESIZE */
8274 # define getpagesize() NBPG * CLSIZE
8277 # endif /* no CLSIZE */
8278 # else /* no NBPG */
8280 # define getpagesize() NBPC
8281 # else /* no NBPC */
8283 # define getpagesize() PAGESIZE
8284 # endif /* PAGESIZE */
8285 # endif /* no NBPC */
8286 # endif /* no NBPG */
8287 # endif /* no EXEC_PAGESIZE */
8288 # else /* no HAVE_SYS_PARAM_H */
8289 # define getpagesize() 8192 /* punt totally */
8290 # endif /* no HAVE_SYS_PARAM_H */
8291 # endif /* no _SC_PAGESIZE */
8293 #endif /* no HAVE_GETPAGESIZE */
8298 char *data, *data2, *data3;
8302 pagesize = getpagesize ();
8304 /* First, make a file with some known garbage in it. */
8305 data = (char *) malloc (pagesize);
8308 for (i = 0; i < pagesize; ++i)
8309 *(data + i) = rand ();
8311 fd = creat ("conftest.mmap", 0600);
8314 if (write (fd, data, pagesize) != pagesize)
8318 /* Next, try to mmap the file at a fixed address which already has
8319 something else allocated at it. If we can, also make sure that
8320 we see the same garbage. */
8321 fd = open ("conftest.mmap", O_RDWR);
8324 data2 = (char *) malloc (2 * pagesize);
8327 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8328 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8329 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8331 for (i = 0; i < pagesize; ++i)
8332 if (*(data + i) != *(data2 + i))
8335 /* Finally, make sure that changes to the mapped area do not
8336 percolate back to the file as seen by read(). (This is a bug on
8337 some variants of i386 svr4.0.) */
8338 for (i = 0; i < pagesize; ++i)
8339 *(data2 + i) = *(data2 + i) + 1;
8340 data3 = (char *) malloc (pagesize);
8343 if (read (fd, data3, pagesize) != pagesize)
8345 for (i = 0; i < pagesize; ++i)
8346 if (*(data + i) != *(data3 + i))
8352 rm -f conftest$ac_exeext
8353 if { (ac_try="$ac_link"
8355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8356 *) ac_try_echo=$ac_try;;
8358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8359 $as_echo "$ac_try_echo") >&5
8360 (eval "$ac_link") 2>&5
8362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8364 { (case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8369 $as_echo "$ac_try_echo") >&5
8370 (eval "$ac_try") 2>&5
8372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; }; then
8374 ac_cv_func_mmap_fixed_mapped=yes
8376 $as_echo "$as_me: program exited with status $ac_status" >&5
8377 $as_echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8381 ac_cv_func_mmap_fixed_mapped=no
8383 rm -rf conftest.dSYM
8384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8389 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8390 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8391 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8393 cat >>confdefs.h <<\_ACEOF
8401 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8402 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
8403 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8404 $as_echo_n "(cached) " >&6
8406 cat >conftest.$ac_ext <<_ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8413 #include <features.h>
8414 #ifdef __GNU_LIBRARY__
8415 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8422 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8423 ac_cv_gnu_library_2_1=yes
8425 ac_cv_gnu_library_2_1=no
8432 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8433 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8435 GLIBC21="$ac_cv_gnu_library_2_1"
8440 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8441 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
8442 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8443 $as_echo_n "(cached) " >&6
8446 if test "$cross_compiling" = yes; then
8448 # Guess based on the CPU.
8450 alpha* | i3456786 | m68k | s390*)
8451 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8453 gt_cv_int_divbyzero_sigfpe="guessing no";;
8457 cat >conftest.$ac_ext <<_ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8469 sigfpe_handler (int sig)
8471 sigfpe_handler (sig) int sig;
8474 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8475 exit (sig != SIGFPE);
8485 signal (SIGFPE, sigfpe_handler);
8486 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8487 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8488 signal (SIGTRAP, sigfpe_handler);
8490 /* Linux/SPARC yields signal SIGILL. */
8491 #if defined (__sparc__) && defined (__linux__)
8492 signal (SIGILL, sigfpe_handler);
8501 rm -f conftest$ac_exeext
8502 if { (ac_try="$ac_link"
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8508 $as_echo "$ac_try_echo") >&5
8509 (eval "$ac_link") 2>&5
8511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8513 { (case "(($ac_try" in
8514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8518 $as_echo "$ac_try_echo") >&5
8519 (eval "$ac_try") 2>&5
8521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); }; }; then
8523 gt_cv_int_divbyzero_sigfpe=yes
8525 $as_echo "$as_me: program exited with status $ac_status" >&5
8526 $as_echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.$ac_ext >&5
8530 gt_cv_int_divbyzero_sigfpe=no
8532 rm -rf conftest.dSYM
8533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8539 { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
8540 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
8541 case "$gt_cv_int_divbyzero_sigfpe" in
8546 cat >>confdefs.h <<_ACEOF
8547 #define INTDIV0_RAISES_SIGFPE $value
8552 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
8553 $as_echo_n "checking for inttypes.h... " >&6; }
8554 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
8555 $as_echo_n "(cached) " >&6
8557 cat >conftest.$ac_ext <<_ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8563 #include <sys/types.h>
8564 #include <inttypes.h>
8568 uintmax_t i = (uintmax_t) -1;
8573 rm -f conftest.$ac_objext
8574 if { (ac_try="$ac_compile"
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8580 $as_echo "$ac_try_echo") >&5
8581 (eval "$ac_compile") 2>conftest.er1
8583 grep -v '^ *+' conftest.er1 >conftest.err
8585 cat conftest.err >&5
8586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } && {
8588 test -z "$ac_c_werror_flag" ||
8589 test ! -s conftest.err
8590 } && test -s conftest.$ac_objext; then
8591 jm_ac_cv_header_inttypes_h=yes
8593 $as_echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8596 jm_ac_cv_header_inttypes_h=no
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8601 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
8602 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
8603 if test $jm_ac_cv_header_inttypes_h = yes; then
8605 cat >>confdefs.h <<_ACEOF
8606 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8612 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
8613 $as_echo_n "checking for stdint.h... " >&6; }
8614 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
8615 $as_echo_n "(cached) " >&6
8617 cat >conftest.$ac_ext <<_ACEOF
8620 cat confdefs.h >>conftest.$ac_ext
8621 cat >>conftest.$ac_ext <<_ACEOF
8622 /* end confdefs.h. */
8623 #include <sys/types.h>
8628 uintmax_t i = (uintmax_t) -1;
8633 rm -f conftest.$ac_objext
8634 if { (ac_try="$ac_compile"
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8640 $as_echo "$ac_try_echo") >&5
8641 (eval "$ac_compile") 2>conftest.er1
8643 grep -v '^ *+' conftest.er1 >conftest.err
8645 cat conftest.err >&5
8646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } && {
8648 test -z "$ac_c_werror_flag" ||
8649 test ! -s conftest.err
8650 } && test -s conftest.$ac_objext; then
8651 jm_ac_cv_header_stdint_h=yes
8653 $as_echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8656 jm_ac_cv_header_stdint_h=no
8659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8661 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
8662 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
8663 if test $jm_ac_cv_header_stdint_h = yes; then
8665 cat >>confdefs.h <<_ACEOF
8666 #define HAVE_STDINT_H_WITH_UINTMAX 1
8672 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
8673 $as_echo_n "checking for unsigned long long... " >&6; }
8674 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
8675 $as_echo_n "(cached) " >&6
8677 cat >conftest.$ac_ext <<_ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8683 unsigned long long ull = 1; int i = 63;
8687 unsigned long long ullmax = (unsigned long long) -1;
8688 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8693 rm -f conftest.$ac_objext conftest$ac_exeext
8694 if { (ac_try="$ac_link"
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8700 $as_echo "$ac_try_echo") >&5
8701 (eval "$ac_link") 2>conftest.er1
8703 grep -v '^ *+' conftest.er1 >conftest.err
8705 cat conftest.err >&5
8706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } && {
8708 test -z "$ac_c_werror_flag" ||
8709 test ! -s conftest.err
8710 } && test -s conftest$ac_exeext && {
8711 test "$cross_compiling" = yes ||
8712 $as_test_x conftest$ac_exeext
8714 ac_cv_type_unsigned_long_long=yes
8716 $as_echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8719 ac_cv_type_unsigned_long_long=no
8722 rm -rf conftest.dSYM
8723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8724 conftest$ac_exeext conftest.$ac_ext
8726 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
8727 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
8728 if test $ac_cv_type_unsigned_long_long = yes; then
8730 cat >>confdefs.h <<\_ACEOF
8731 #define HAVE_UNSIGNED_LONG_LONG 1
8739 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
8741 test $ac_cv_type_unsigned_long_long = yes \
8742 && ac_type='unsigned long long' \
8743 || ac_type='unsigned long'
8745 cat >>confdefs.h <<_ACEOF
8746 #define uintmax_t $ac_type
8751 cat >>confdefs.h <<\_ACEOF
8752 #define HAVE_UINTMAX_T 1
8758 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
8759 $as_echo_n "checking for inttypes.h... " >&6; }
8760 if test "${gt_cv_header_inttypes_h+set}" = set; then
8761 $as_echo_n "(cached) " >&6
8764 cat >conftest.$ac_ext <<_ACEOF
8767 cat confdefs.h >>conftest.$ac_ext
8768 cat >>conftest.$ac_ext <<_ACEOF
8769 /* end confdefs.h. */
8770 #include <sys/types.h>
8771 #include <inttypes.h>
8780 rm -f conftest.$ac_objext
8781 if { (ac_try="$ac_compile"
8783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784 *) ac_try_echo=$ac_try;;
8786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8787 $as_echo "$ac_try_echo") >&5
8788 (eval "$ac_compile") 2>conftest.er1
8790 grep -v '^ *+' conftest.er1 >conftest.err
8792 cat conftest.err >&5
8793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } && {
8795 test -z "$ac_c_werror_flag" ||
8796 test ! -s conftest.err
8797 } && test -s conftest.$ac_objext; then
8798 gt_cv_header_inttypes_h=yes
8800 $as_echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8803 gt_cv_header_inttypes_h=no
8806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8809 { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
8810 $as_echo "$gt_cv_header_inttypes_h" >&6; }
8811 if test $gt_cv_header_inttypes_h = yes; then
8813 cat >>confdefs.h <<_ACEOF
8814 #define HAVE_INTTYPES_H 1
8821 if test $gt_cv_header_inttypes_h = yes; then
8822 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
8823 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8824 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
8825 $as_echo_n "(cached) " >&6
8828 cat >conftest.$ac_ext <<_ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h. */
8834 #include <inttypes.h>
8847 rm -f conftest.$ac_objext
8848 if { (ac_try="$ac_compile"
8850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851 *) ac_try_echo=$ac_try;;
8853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8854 $as_echo "$ac_try_echo") >&5
8855 (eval "$ac_compile") 2>conftest.er1
8857 grep -v '^ *+' conftest.er1 >conftest.err
8859 cat conftest.err >&5
8860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); } && {
8862 test -z "$ac_c_werror_flag" ||
8863 test ! -s conftest.err
8864 } && test -s conftest.$ac_objext; then
8865 gt_cv_inttypes_pri_broken=no
8867 $as_echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8870 gt_cv_inttypes_pri_broken=yes
8873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8876 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
8877 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8879 if test "$gt_cv_inttypes_pri_broken" = yes; then
8881 cat >>confdefs.h <<_ACEOF
8882 #define PRI_MACROS_BROKEN 1
8888 if test "X$prefix" = "XNONE"; then
8889 acl_final_prefix="$ac_default_prefix"
8891 acl_final_prefix="$prefix"
8893 if test "X$exec_prefix" = "XNONE"; then
8894 acl_final_exec_prefix='${prefix}'
8896 acl_final_exec_prefix="$exec_prefix"
8898 acl_save_prefix="$prefix"
8899 prefix="$acl_final_prefix"
8900 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8901 prefix="$acl_save_prefix"
8904 # Check whether --with-gnu-ld was given.
8905 if test "${with_gnu_ld+set}" = set; then
8906 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8911 # Prepare PATH_SEPARATOR.
8912 # The user is always right.
8913 if test "${PATH_SEPARATOR+set}" != set; then
8914 echo "#! /bin/sh" >conf$$.sh
8915 echo "exit 0" >>conf$$.sh
8917 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8925 if test "$GCC" = yes; then
8926 # Check if gcc -print-prog-name=ld gives a path.
8927 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8928 $as_echo_n "checking for ld used by GCC... " >&6; }
8931 # gcc leaves a trailing carriage return which upsets mingw
8932 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8934 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8937 # Accept absolute paths.
8938 [\\/]* | [A-Za-z]:[\\/]*)
8939 re_direlt='/[^/][^/]*/\.\./'
8940 # Canonicalize the path of ld
8941 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8942 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8943 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8945 test -z "$LD" && LD="$ac_prog"
8948 # If it fails, then pretend we aren't using GCC.
8952 # If it is relative, then search for the first ld in PATH.
8956 elif test "$with_gnu_ld" = yes; then
8957 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
8958 $as_echo_n "checking for GNU ld... " >&6; }
8960 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8961 $as_echo_n "checking for non-GNU ld... " >&6; }
8963 if test "${acl_cv_path_LD+set}" = set; then
8964 $as_echo_n "(cached) " >&6
8966 if test -z "$LD"; then
8967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8968 for ac_dir in $PATH; do
8969 test -z "$ac_dir" && ac_dir=.
8970 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8971 acl_cv_path_LD="$ac_dir/$ac_prog"
8972 # Check to see if the program is GNU ld. I'd rather use --version,
8973 # but apparently some GNU ld's only accept -v.
8974 # Break only if it was the GNU/non-GNU ld that we prefer.
8975 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8976 test "$with_gnu_ld" != no && break
8978 test "$with_gnu_ld" != yes && break
8984 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8988 LD="$acl_cv_path_LD"
8989 if test -n "$LD"; then
8990 { $as_echo "$as_me:$LINENO: result: $LD" >&5
8991 $as_echo "$LD" >&6; }
8993 { $as_echo "$as_me:$LINENO: result: no" >&5
8994 $as_echo "no" >&6; }
8996 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8997 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8998 { (exit 1); exit 1; }; }
8999 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9000 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9001 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9002 $as_echo_n "(cached) " >&6
9004 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9005 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9006 acl_cv_prog_gnu_ld=yes
9008 acl_cv_prog_gnu_ld=no
9011 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9012 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9013 with_gnu_ld=$acl_cv_prog_gnu_ld
9017 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9018 $as_echo_n "checking for shared library run path origin... " >&6; }
9019 if test "${acl_cv_rpath+set}" = set; then
9020 $as_echo_n "(cached) " >&6
9023 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9024 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9030 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9031 $as_echo "$acl_cv_rpath" >&6; }
9033 libext="$acl_cv_libext"
9034 shlibext="$acl_cv_shlibext"
9035 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9036 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9037 hardcode_direct="$acl_cv_hardcode_direct"
9038 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9039 # Check whether --enable-rpath was given.
9040 if test "${enable_rpath+set}" = set; then
9041 enableval=$enable_rpath; :
9055 acl_save_prefix="$prefix"
9056 prefix="$acl_final_prefix"
9057 acl_save_exec_prefix="$exec_prefix"
9058 exec_prefix="$acl_final_exec_prefix"
9060 eval additional_includedir=\"$includedir\"
9061 eval additional_libdir=\"$libdir\"
9063 exec_prefix="$acl_save_exec_prefix"
9064 prefix="$acl_save_prefix"
9067 # Check whether --with-libiconv-prefix was given.
9068 if test "${with_libiconv_prefix+set}" = set; then
9069 withval=$with_libiconv_prefix;
9070 if test "X$withval" = "Xno"; then
9073 if test "X$withval" = "X"; then
9075 acl_save_prefix="$prefix"
9076 prefix="$acl_final_prefix"
9077 acl_save_exec_prefix="$exec_prefix"
9078 exec_prefix="$acl_final_exec_prefix"
9080 eval additional_includedir=\"$includedir\"
9081 eval additional_libdir=\"$libdir\"
9083 exec_prefix="$acl_save_exec_prefix"
9084 prefix="$acl_save_prefix"
9087 additional_includedir="$withval/include"
9088 additional_libdir="$withval/lib"
9099 names_already_handled=
9100 names_next_round='iconv '
9101 while test -n "$names_next_round"; do
9102 names_this_round="$names_next_round"
9104 for name in $names_this_round; do
9106 for n in $names_already_handled; do
9107 if test "$n" = "$name"; then
9112 if test -z "$already_handled"; then
9113 names_already_handled="$names_already_handled $name"
9114 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9115 eval value=\"\$HAVE_LIB$uppername\"
9116 if test -n "$value"; then
9117 if test "$value" = yes; then
9118 eval value=\"\$LIB$uppername\"
9119 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9120 eval value=\"\$LTLIB$uppername\"
9121 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9130 if test $use_additional = yes; then
9131 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9132 found_dir="$additional_libdir"
9133 found_so="$additional_libdir/lib$name.$shlibext"
9134 if test -f "$additional_libdir/lib$name.la"; then
9135 found_la="$additional_libdir/lib$name.la"
9138 if test -f "$additional_libdir/lib$name.$libext"; then
9139 found_dir="$additional_libdir"
9140 found_a="$additional_libdir/lib$name.$libext"
9141 if test -f "$additional_libdir/lib$name.la"; then
9142 found_la="$additional_libdir/lib$name.la"
9147 if test "X$found_dir" = "X"; then
9148 for x in $LDFLAGS $LTLIBICONV; do
9150 acl_save_prefix="$prefix"
9151 prefix="$acl_final_prefix"
9152 acl_save_exec_prefix="$exec_prefix"
9153 exec_prefix="$acl_final_exec_prefix"
9155 exec_prefix="$acl_save_exec_prefix"
9156 prefix="$acl_save_prefix"
9160 dir=`echo "X$x" | sed -e 's/^X-L//'`
9161 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9163 found_so="$dir/lib$name.$shlibext"
9164 if test -f "$dir/lib$name.la"; then
9165 found_la="$dir/lib$name.la"
9168 if test -f "$dir/lib$name.$libext"; then
9170 found_a="$dir/lib$name.$libext"
9171 if test -f "$dir/lib$name.la"; then
9172 found_la="$dir/lib$name.la"
9178 if test "X$found_dir" != "X"; then
9183 if test "X$found_dir" != "X"; then
9184 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9185 if test "X$found_so" != "X"; then
9186 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9187 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9190 for x in $ltrpathdirs; do
9191 if test "X$x" = "X$found_dir"; then
9196 if test -z "$haveit"; then
9197 ltrpathdirs="$ltrpathdirs $found_dir"
9199 if test "$hardcode_direct" = yes; then
9200 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9202 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9203 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9205 for x in $rpathdirs; do
9206 if test "X$x" = "X$found_dir"; then
9211 if test -z "$haveit"; then
9212 rpathdirs="$rpathdirs $found_dir"
9216 for x in $LDFLAGS $LIBICONV; do
9218 acl_save_prefix="$prefix"
9219 prefix="$acl_final_prefix"
9220 acl_save_exec_prefix="$exec_prefix"
9221 exec_prefix="$acl_final_exec_prefix"
9223 exec_prefix="$acl_save_exec_prefix"
9224 prefix="$acl_save_prefix"
9226 if test "X$x" = "X-L$found_dir"; then
9231 if test -z "$haveit"; then
9232 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9234 if test "$hardcode_minus_L" != no; then
9235 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9237 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9243 if test "X$found_a" != "X"; then
9244 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9246 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9249 additional_includedir=
9250 case "$found_dir" in
9252 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9253 additional_includedir="$basedir/include"
9256 if test "X$additional_includedir" != "X"; then
9257 if test "X$additional_includedir" != "X/usr/include"; then
9259 if test "X$additional_includedir" = "X/usr/local/include"; then
9260 if test -n "$GCC"; then
9262 linux*) haveit=yes;;
9266 if test -z "$haveit"; then
9267 for x in $CPPFLAGS $INCICONV; do
9269 acl_save_prefix="$prefix"
9270 prefix="$acl_final_prefix"
9271 acl_save_exec_prefix="$exec_prefix"
9272 exec_prefix="$acl_final_exec_prefix"
9274 exec_prefix="$acl_save_exec_prefix"
9275 prefix="$acl_save_prefix"
9277 if test "X$x" = "X-I$additional_includedir"; then
9282 if test -z "$haveit"; then
9283 if test -d "$additional_includedir"; then
9284 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9290 if test -n "$found_la"; then
9291 save_libdir="$libdir"
9293 */* | *\\*) . "$found_la" ;;
9294 *) . "./$found_la" ;;
9296 libdir="$save_libdir"
9297 for dep in $dependency_libs; do
9300 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9301 if test "X$additional_libdir" != "X/usr/lib"; then
9303 if test "X$additional_libdir" = "X/usr/local/lib"; then
9304 if test -n "$GCC"; then
9306 linux*) haveit=yes;;
9310 if test -z "$haveit"; then
9312 for x in $LDFLAGS $LIBICONV; do
9314 acl_save_prefix="$prefix"
9315 prefix="$acl_final_prefix"
9316 acl_save_exec_prefix="$exec_prefix"
9317 exec_prefix="$acl_final_exec_prefix"
9319 exec_prefix="$acl_save_exec_prefix"
9320 prefix="$acl_save_prefix"
9322 if test "X$x" = "X-L$additional_libdir"; then
9327 if test -z "$haveit"; then
9328 if test -d "$additional_libdir"; then
9329 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9333 for x in $LDFLAGS $LTLIBICONV; do
9335 acl_save_prefix="$prefix"
9336 prefix="$acl_final_prefix"
9337 acl_save_exec_prefix="$exec_prefix"
9338 exec_prefix="$acl_final_exec_prefix"
9340 exec_prefix="$acl_save_exec_prefix"
9341 prefix="$acl_save_prefix"
9343 if test "X$x" = "X-L$additional_libdir"; then
9348 if test -z "$haveit"; then
9349 if test -d "$additional_libdir"; then
9350 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9357 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9358 if test "$enable_rpath" != no; then
9360 for x in $rpathdirs; do
9361 if test "X$x" = "X$dir"; then
9366 if test -z "$haveit"; then
9367 rpathdirs="$rpathdirs $dir"
9370 for x in $ltrpathdirs; do
9371 if test "X$x" = "X$dir"; then
9376 if test -z "$haveit"; then
9377 ltrpathdirs="$ltrpathdirs $dir"
9382 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9385 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9388 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9389 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9395 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9396 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9402 if test "X$rpathdirs" != "X"; then
9403 if test -n "$hardcode_libdir_separator"; then
9405 for found_dir in $rpathdirs; do
9406 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9408 acl_save_libdir="$libdir"
9410 eval flag=\"$hardcode_libdir_flag_spec\"
9411 libdir="$acl_save_libdir"
9412 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9414 for found_dir in $rpathdirs; do
9415 acl_save_libdir="$libdir"
9417 eval flag=\"$hardcode_libdir_flag_spec\"
9418 libdir="$acl_save_libdir"
9419 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9423 if test "X$ltrpathdirs" != "X"; then
9424 for found_dir in $ltrpathdirs; do
9425 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9442 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9443 stdlib.h string.h unistd.h sys/param.h
9445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9447 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9448 $as_echo_n "checking for $ac_header... " >&6; }
9449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9450 $as_echo_n "(cached) " >&6
9452 ac_res=`eval 'as_val=${'$as_ac_Header'}
9453 $as_echo "$as_val"'`
9454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9455 $as_echo "$ac_res" >&6; }
9457 # Is the header compilable?
9458 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9459 $as_echo_n "checking $ac_header usability... " >&6; }
9460 cat >conftest.$ac_ext <<_ACEOF
9463 cat confdefs.h >>conftest.$ac_ext
9464 cat >>conftest.$ac_ext <<_ACEOF
9465 /* end confdefs.h. */
9466 $ac_includes_default
9467 #include <$ac_header>
9469 rm -f conftest.$ac_objext
9470 if { (ac_try="$ac_compile"
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9476 $as_echo "$ac_try_echo") >&5
9477 (eval "$ac_compile") 2>conftest.er1
9479 grep -v '^ *+' conftest.er1 >conftest.err
9481 cat conftest.err >&5
9482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } && {
9484 test -z "$ac_c_werror_flag" ||
9485 test ! -s conftest.err
9486 } && test -s conftest.$ac_objext; then
9487 ac_header_compiler=yes
9489 $as_echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.$ac_ext >&5
9492 ac_header_compiler=no
9495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9496 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9497 $as_echo "$ac_header_compiler" >&6; }
9499 # Is the header present?
9500 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9501 $as_echo_n "checking $ac_header presence... " >&6; }
9502 cat >conftest.$ac_ext <<_ACEOF
9505 cat confdefs.h >>conftest.$ac_ext
9506 cat >>conftest.$ac_ext <<_ACEOF
9507 /* end confdefs.h. */
9508 #include <$ac_header>
9510 if { (ac_try="$ac_cpp conftest.$ac_ext"
9512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513 *) ac_try_echo=$ac_try;;
9515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9516 $as_echo "$ac_try_echo") >&5
9517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9519 grep -v '^ *+' conftest.er1 >conftest.err
9521 cat conftest.err >&5
9522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } >/dev/null && {
9524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9525 test ! -s conftest.err
9527 ac_header_preproc=yes
9529 $as_echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9532 ac_header_preproc=no
9535 rm -f conftest.err conftest.$ac_ext
9536 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9537 $as_echo "$ac_header_preproc" >&6; }
9539 # So? What about this header?
9540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9543 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9545 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9546 ac_header_preproc=yes
9549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9550 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9552 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9554 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9556 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9558 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9560 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9562 ## ------------------------------- ##
9563 ## Report this to bug-bash@gnu.org ##
9564 ## ------------------------------- ##
9566 ) | sed "s/^/$as_me: WARNING: /" >&2
9569 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9570 $as_echo_n "checking for $ac_header... " >&6; }
9571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9572 $as_echo_n "(cached) " >&6
9574 eval "$as_ac_Header=\$ac_header_preproc"
9576 ac_res=`eval 'as_val=${'$as_ac_Header'}
9577 $as_echo "$as_val"'`
9578 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9579 $as_echo "$ac_res" >&6; }
9582 as_val=`eval 'as_val=${'$as_ac_Header'}
9583 $as_echo "$as_val"'`
9584 if test "x$as_val" = x""yes; then
9585 cat >>confdefs.h <<_ACEOF
9586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9616 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
9617 geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \
9618 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
9621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9622 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9623 $as_echo_n "checking for $ac_func... " >&6; }
9624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9625 $as_echo_n "(cached) " >&6
9627 cat >conftest.$ac_ext <<_ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h. */
9633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9635 #define $ac_func innocuous_$ac_func
9637 /* System header to define __stub macros and hopefully few prototypes,
9638 which can conflict with char $ac_func (); below.
9639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9640 <limits.h> exists even on freestanding compilers. */
9643 # include <limits.h>
9645 # include <assert.h>
9650 /* Override any GCC internal prototype to avoid an error.
9651 Use char because int might match the return type of a GCC
9652 builtin and then its argument prototype would still apply. */
9657 /* The GNU C library defines this for functions which it implements
9658 to always fail with ENOSYS. Some functions are actually named
9659 something starting with __ and the normal name is an alias. */
9660 #if defined __stub_$ac_func || defined __stub___$ac_func
9672 rm -f conftest.$ac_objext conftest$ac_exeext
9673 if { (ac_try="$ac_link"
9675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676 *) ac_try_echo=$ac_try;;
9678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9679 $as_echo "$ac_try_echo") >&5
9680 (eval "$ac_link") 2>conftest.er1
9682 grep -v '^ *+' conftest.er1 >conftest.err
9684 cat conftest.err >&5
9685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest$ac_exeext && {
9690 test "$cross_compiling" = yes ||
9691 $as_test_x conftest$ac_exeext
9693 eval "$as_ac_var=yes"
9695 $as_echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9698 eval "$as_ac_var=no"
9701 rm -rf conftest.dSYM
9702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9703 conftest$ac_exeext conftest.$ac_ext
9705 ac_res=`eval 'as_val=${'$as_ac_var'}
9706 $as_echo "$as_val"'`
9707 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9708 $as_echo "$ac_res" >&6; }
9709 as_val=`eval 'as_val=${'$as_ac_var'}
9710 $as_echo "$as_val"'`
9711 if test "x$as_val" = x""yes; then
9712 cat >>confdefs.h <<_ACEOF
9713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9725 am_save_CPPFLAGS="$CPPFLAGS"
9727 for element in $INCICONV; do
9729 for x in $CPPFLAGS; do
9731 acl_save_prefix="$prefix"
9732 prefix="$acl_final_prefix"
9733 acl_save_exec_prefix="$exec_prefix"
9734 exec_prefix="$acl_final_exec_prefix"
9736 exec_prefix="$acl_save_exec_prefix"
9737 prefix="$acl_save_prefix"
9739 if test "X$x" = "X$element"; then
9744 if test -z "$haveit"; then
9745 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9750 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
9751 $as_echo_n "checking for iconv... " >&6; }
9752 if test "${am_cv_func_iconv+set}" = set; then
9753 $as_echo_n "(cached) " >&6
9756 am_cv_func_iconv="no, consider installing GNU libiconv"
9758 cat >conftest.$ac_ext <<_ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h. */
9769 iconv_t cd = iconv_open("","");
9770 iconv(cd,NULL,NULL,NULL,NULL);
9776 rm -f conftest.$ac_objext conftest$ac_exeext
9777 if { (ac_try="$ac_link"
9779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780 *) ac_try_echo=$ac_try;;
9782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9783 $as_echo "$ac_try_echo") >&5
9784 (eval "$ac_link") 2>conftest.er1
9786 grep -v '^ *+' conftest.er1 >conftest.err
9788 cat conftest.err >&5
9789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } && {
9791 test -z "$ac_c_werror_flag" ||
9792 test ! -s conftest.err
9793 } && test -s conftest$ac_exeext && {
9794 test "$cross_compiling" = yes ||
9795 $as_test_x conftest$ac_exeext
9797 am_cv_func_iconv=yes
9799 $as_echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9805 rm -rf conftest.dSYM
9806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9807 conftest$ac_exeext conftest.$ac_ext
9808 if test "$am_cv_func_iconv" != yes; then
9809 am_save_LIBS="$LIBS"
9810 LIBS="$LIBS $LIBICONV"
9811 cat >conftest.$ac_ext <<_ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h. */
9822 iconv_t cd = iconv_open("","");
9823 iconv(cd,NULL,NULL,NULL,NULL);
9829 rm -f conftest.$ac_objext conftest$ac_exeext
9830 if { (ac_try="$ac_link"
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9836 $as_echo "$ac_try_echo") >&5
9837 (eval "$ac_link") 2>conftest.er1
9839 grep -v '^ *+' conftest.er1 >conftest.err
9841 cat conftest.err >&5
9842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } && {
9844 test -z "$ac_c_werror_flag" ||
9845 test ! -s conftest.err
9846 } && test -s conftest$ac_exeext && {
9847 test "$cross_compiling" = yes ||
9848 $as_test_x conftest$ac_exeext
9851 am_cv_func_iconv=yes
9853 $as_echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9859 rm -rf conftest.dSYM
9860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9861 conftest$ac_exeext conftest.$ac_ext
9862 LIBS="$am_save_LIBS"
9866 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9867 $as_echo "$am_cv_func_iconv" >&6; }
9868 if test "$am_cv_func_iconv" = yes; then
9870 cat >>confdefs.h <<\_ACEOF
9871 #define HAVE_ICONV 1
9875 if test "$am_cv_lib_iconv" = yes; then
9876 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9877 $as_echo_n "checking how to link with libiconv... " >&6; }
9878 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
9879 $as_echo "$LIBICONV" >&6; }
9881 CPPFLAGS="$am_save_CPPFLAGS"
9888 if test "$am_cv_func_iconv" = yes; then
9889 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
9890 $as_echo_n "checking for iconv declaration... " >&6; }
9891 if test "${am_cv_proto_iconv+set}" = set; then
9892 $as_echo_n "(cached) " >&6
9895 cat >conftest.$ac_ext <<_ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h. */
9908 #if defined(__STDC__) || defined(__cplusplus)
9909 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9922 rm -f conftest.$ac_objext
9923 if { (ac_try="$ac_compile"
9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926 *) ac_try_echo=$ac_try;;
9928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9929 $as_echo "$ac_try_echo") >&5
9930 (eval "$ac_compile") 2>conftest.er1
9932 grep -v '^ *+' conftest.er1 >conftest.err
9934 cat conftest.err >&5
9935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } && {
9937 test -z "$ac_c_werror_flag" ||
9938 test ! -s conftest.err
9939 } && test -s conftest.$ac_objext; then
9940 am_cv_proto_iconv_arg1=""
9942 $as_echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9945 am_cv_proto_iconv_arg1="const"
9948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9949 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);"
9952 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9953 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
9954 }$am_cv_proto_iconv" >&5
9956 }$am_cv_proto_iconv" >&6; }
9958 cat >>confdefs.h <<_ACEOF
9959 #define ICONV_CONST $am_cv_proto_iconv_arg1
9965 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9966 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9967 if test "${am_cv_langinfo_codeset+set}" = set; then
9968 $as_echo_n "(cached) " >&6
9970 cat >conftest.$ac_ext <<_ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9976 #include <langinfo.h>
9980 char* cs = nl_langinfo(CODESET);
9985 rm -f conftest.$ac_objext conftest$ac_exeext
9986 if { (ac_try="$ac_link"
9988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989 *) ac_try_echo=$ac_try;;
9991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9992 $as_echo "$ac_try_echo") >&5
9993 (eval "$ac_link") 2>conftest.er1
9995 grep -v '^ *+' conftest.er1 >conftest.err
9997 cat conftest.err >&5
9998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); } && {
10000 test -z "$ac_c_werror_flag" ||
10001 test ! -s conftest.err
10002 } && test -s conftest$ac_exeext && {
10003 test "$cross_compiling" = yes ||
10004 $as_test_x conftest$ac_exeext
10006 am_cv_langinfo_codeset=yes
10008 $as_echo "$as_me: failed program was:" >&5
10009 sed 's/^/| /' conftest.$ac_ext >&5
10011 am_cv_langinfo_codeset=no
10014 rm -rf conftest.dSYM
10015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10016 conftest$ac_exeext conftest.$ac_ext
10019 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10020 $as_echo "$am_cv_langinfo_codeset" >&6; }
10021 if test $am_cv_langinfo_codeset = yes; then
10023 cat >>confdefs.h <<\_ACEOF
10024 #define HAVE_LANGINFO_CODESET 1
10029 if test $ac_cv_header_locale_h = yes; then
10031 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10032 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10033 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10034 $as_echo_n "(cached) " >&6
10036 cat >conftest.$ac_ext <<_ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h. */
10042 #include <locale.h>
10051 rm -f conftest.$ac_objext conftest$ac_exeext
10052 if { (ac_try="$ac_link"
10053 case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10058 $as_echo "$ac_try_echo") >&5
10059 (eval "$ac_link") 2>conftest.er1
10061 grep -v '^ *+' conftest.er1 >conftest.err
10063 cat conftest.err >&5
10064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); } && {
10066 test -z "$ac_c_werror_flag" ||
10067 test ! -s conftest.err
10068 } && test -s conftest$ac_exeext && {
10069 test "$cross_compiling" = yes ||
10070 $as_test_x conftest$ac_exeext
10072 am_cv_val_LC_MESSAGES=yes
10074 $as_echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10077 am_cv_val_LC_MESSAGES=no
10080 rm -rf conftest.dSYM
10081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10082 conftest$ac_exeext conftest.$ac_ext
10084 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10085 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10086 if test $am_cv_val_LC_MESSAGES = yes; then
10088 cat >>confdefs.h <<\_ACEOF
10089 #define HAVE_LC_MESSAGES 1
10096 for ac_prog in bison
10098 # Extract the first word of "$ac_prog", so it can be a program name with args.
10099 set dummy $ac_prog; ac_word=$2
10100 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10101 $as_echo_n "checking for $ac_word... " >&6; }
10102 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10103 $as_echo_n "(cached) " >&6
10105 if test -n "$INTLBISON"; then
10106 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10109 for as_dir in $PATH
10112 test -z "$as_dir" && as_dir=.
10113 for ac_exec_ext in '' $ac_executable_extensions; do
10114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10115 ac_cv_prog_INTLBISON="$ac_prog"
10116 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10125 INTLBISON=$ac_cv_prog_INTLBISON
10126 if test -n "$INTLBISON"; then
10127 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
10128 $as_echo "$INTLBISON" >&6; }
10130 { $as_echo "$as_me:$LINENO: result: no" >&5
10131 $as_echo "no" >&6; }
10135 test -n "$INTLBISON" && break
10138 if test -z "$INTLBISON"; then
10141 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
10142 $as_echo_n "checking version of bison... " >&6; }
10143 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10144 case $ac_prog_version in
10145 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10146 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10147 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10148 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10150 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10151 $as_echo "$ac_prog_version" >&6; }
10153 if test $ac_verc_fail = yes; then
10172 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10173 $as_echo_n "checking whether NLS is requested... " >&6; }
10174 # Check whether --enable-nls was given.
10175 if test "${enable_nls+set}" = set; then
10176 enableval=$enable_nls; USE_NLS=$enableval
10181 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10182 $as_echo "$USE_NLS" >&6; }
10187 BUILD_INCLUDED_LIBINTL=no
10188 USE_INCLUDED_LIBINTL=no
10194 if test "$USE_NLS" = "yes"; then
10195 gt_use_preinstalled_gnugettext=no
10197 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10198 $as_echo_n "checking whether included gettext is requested... " >&6; }
10200 # Check whether --with-included-gettext was given.
10201 if test "${with_included_gettext+set}" = set; then
10202 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10204 nls_cv_force_use_gnu_gettext=no
10207 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10208 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10210 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10211 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10218 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10219 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10220 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
10221 $as_echo_n "(cached) " >&6
10223 cat >conftest.$ac_ext <<_ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10229 #include <libintl.h>
10230 extern int _nl_msg_cat_cntr;
10231 extern int *_nl_domain_bindings;
10235 bindtextdomain ("", "");
10236 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
10241 rm -f conftest.$ac_objext conftest$ac_exeext
10242 if { (ac_try="$ac_link"
10243 case "(($ac_try" in
10244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245 *) ac_try_echo=$ac_try;;
10247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10248 $as_echo "$ac_try_echo") >&5
10249 (eval "$ac_link") 2>conftest.er1
10251 grep -v '^ *+' conftest.er1 >conftest.err
10253 cat conftest.err >&5
10254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } && {
10256 test -z "$ac_c_werror_flag" ||
10257 test ! -s conftest.err
10258 } && test -s conftest$ac_exeext && {
10259 test "$cross_compiling" = yes ||
10260 $as_test_x conftest$ac_exeext
10262 gt_cv_func_gnugettext2_libc=yes
10264 $as_echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10267 gt_cv_func_gnugettext2_libc=no
10270 rm -rf conftest.dSYM
10271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10272 conftest$ac_exeext conftest.$ac_ext
10274 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
10275 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
10277 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
10283 acl_save_prefix="$prefix"
10284 prefix="$acl_final_prefix"
10285 acl_save_exec_prefix="$exec_prefix"
10286 exec_prefix="$acl_final_exec_prefix"
10288 eval additional_includedir=\"$includedir\"
10289 eval additional_libdir=\"$libdir\"
10291 exec_prefix="$acl_save_exec_prefix"
10292 prefix="$acl_save_prefix"
10295 # Check whether --with-libintl-prefix was given.
10296 if test "${with_libintl_prefix+set}" = set; then
10297 withval=$with_libintl_prefix;
10298 if test "X$withval" = "Xno"; then
10301 if test "X$withval" = "X"; then
10303 acl_save_prefix="$prefix"
10304 prefix="$acl_final_prefix"
10305 acl_save_exec_prefix="$exec_prefix"
10306 exec_prefix="$acl_final_exec_prefix"
10308 eval additional_includedir=\"$includedir\"
10309 eval additional_libdir=\"$libdir\"
10311 exec_prefix="$acl_save_exec_prefix"
10312 prefix="$acl_save_prefix"
10315 additional_includedir="$withval/include"
10316 additional_libdir="$withval/lib"
10327 names_already_handled=
10328 names_next_round='intl '
10329 while test -n "$names_next_round"; do
10330 names_this_round="$names_next_round"
10332 for name in $names_this_round; do
10334 for n in $names_already_handled; do
10335 if test "$n" = "$name"; then
10336 already_handled=yes
10340 if test -z "$already_handled"; then
10341 names_already_handled="$names_already_handled $name"
10342 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10343 eval value=\"\$HAVE_LIB$uppername\"
10344 if test -n "$value"; then
10345 if test "$value" = yes; then
10346 eval value=\"\$LIB$uppername\"
10347 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10348 eval value=\"\$LTLIB$uppername\"
10349 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10358 if test $use_additional = yes; then
10359 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10360 found_dir="$additional_libdir"
10361 found_so="$additional_libdir/lib$name.$shlibext"
10362 if test -f "$additional_libdir/lib$name.la"; then
10363 found_la="$additional_libdir/lib$name.la"
10366 if test -f "$additional_libdir/lib$name.$libext"; then
10367 found_dir="$additional_libdir"
10368 found_a="$additional_libdir/lib$name.$libext"
10369 if test -f "$additional_libdir/lib$name.la"; then
10370 found_la="$additional_libdir/lib$name.la"
10375 if test "X$found_dir" = "X"; then
10376 for x in $LDFLAGS $LTLIBINTL; do
10378 acl_save_prefix="$prefix"
10379 prefix="$acl_final_prefix"
10380 acl_save_exec_prefix="$exec_prefix"
10381 exec_prefix="$acl_final_exec_prefix"
10383 exec_prefix="$acl_save_exec_prefix"
10384 prefix="$acl_save_prefix"
10388 dir=`echo "X$x" | sed -e 's/^X-L//'`
10389 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10391 found_so="$dir/lib$name.$shlibext"
10392 if test -f "$dir/lib$name.la"; then
10393 found_la="$dir/lib$name.la"
10396 if test -f "$dir/lib$name.$libext"; then
10398 found_a="$dir/lib$name.$libext"
10399 if test -f "$dir/lib$name.la"; then
10400 found_la="$dir/lib$name.la"
10406 if test "X$found_dir" != "X"; then
10411 if test "X$found_dir" != "X"; then
10412 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10413 if test "X$found_so" != "X"; then
10414 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10415 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10418 for x in $ltrpathdirs; do
10419 if test "X$x" = "X$found_dir"; then
10424 if test -z "$haveit"; then
10425 ltrpathdirs="$ltrpathdirs $found_dir"
10427 if test "$hardcode_direct" = yes; then
10428 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10430 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10431 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10433 for x in $rpathdirs; do
10434 if test "X$x" = "X$found_dir"; then
10439 if test -z "$haveit"; then
10440 rpathdirs="$rpathdirs $found_dir"
10444 for x in $LDFLAGS $LIBINTL; do
10446 acl_save_prefix="$prefix"
10447 prefix="$acl_final_prefix"
10448 acl_save_exec_prefix="$exec_prefix"
10449 exec_prefix="$acl_final_exec_prefix"
10451 exec_prefix="$acl_save_exec_prefix"
10452 prefix="$acl_save_prefix"
10454 if test "X$x" = "X-L$found_dir"; then
10459 if test -z "$haveit"; then
10460 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10462 if test "$hardcode_minus_L" != no; then
10463 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10465 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10471 if test "X$found_a" != "X"; then
10472 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10474 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10477 additional_includedir=
10478 case "$found_dir" in
10480 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10481 additional_includedir="$basedir/include"
10484 if test "X$additional_includedir" != "X"; then
10485 if test "X$additional_includedir" != "X/usr/include"; then
10487 if test "X$additional_includedir" = "X/usr/local/include"; then
10488 if test -n "$GCC"; then
10490 linux*) haveit=yes;;
10494 if test -z "$haveit"; then
10495 for x in $CPPFLAGS $INCINTL; do
10497 acl_save_prefix="$prefix"
10498 prefix="$acl_final_prefix"
10499 acl_save_exec_prefix="$exec_prefix"
10500 exec_prefix="$acl_final_exec_prefix"
10502 exec_prefix="$acl_save_exec_prefix"
10503 prefix="$acl_save_prefix"
10505 if test "X$x" = "X-I$additional_includedir"; then
10510 if test -z "$haveit"; then
10511 if test -d "$additional_includedir"; then
10512 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10518 if test -n "$found_la"; then
10519 save_libdir="$libdir"
10520 case "$found_la" in
10521 */* | *\\*) . "$found_la" ;;
10522 *) . "./$found_la" ;;
10524 libdir="$save_libdir"
10525 for dep in $dependency_libs; do
10528 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10529 if test "X$additional_libdir" != "X/usr/lib"; then
10531 if test "X$additional_libdir" = "X/usr/local/lib"; then
10532 if test -n "$GCC"; then
10534 linux*) haveit=yes;;
10538 if test -z "$haveit"; then
10540 for x in $LDFLAGS $LIBINTL; do
10542 acl_save_prefix="$prefix"
10543 prefix="$acl_final_prefix"
10544 acl_save_exec_prefix="$exec_prefix"
10545 exec_prefix="$acl_final_exec_prefix"
10547 exec_prefix="$acl_save_exec_prefix"
10548 prefix="$acl_save_prefix"
10550 if test "X$x" = "X-L$additional_libdir"; then
10555 if test -z "$haveit"; then
10556 if test -d "$additional_libdir"; then
10557 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10561 for x in $LDFLAGS $LTLIBINTL; do
10563 acl_save_prefix="$prefix"
10564 prefix="$acl_final_prefix"
10565 acl_save_exec_prefix="$exec_prefix"
10566 exec_prefix="$acl_final_exec_prefix"
10568 exec_prefix="$acl_save_exec_prefix"
10569 prefix="$acl_save_prefix"
10571 if test "X$x" = "X-L$additional_libdir"; then
10576 if test -z "$haveit"; then
10577 if test -d "$additional_libdir"; then
10578 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10585 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10586 if test "$enable_rpath" != no; then
10588 for x in $rpathdirs; do
10589 if test "X$x" = "X$dir"; then
10594 if test -z "$haveit"; then
10595 rpathdirs="$rpathdirs $dir"
10598 for x in $ltrpathdirs; do
10599 if test "X$x" = "X$dir"; then
10604 if test -z "$haveit"; then
10605 ltrpathdirs="$ltrpathdirs $dir"
10610 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10613 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10616 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10617 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10623 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10624 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10630 if test "X$rpathdirs" != "X"; then
10631 if test -n "$hardcode_libdir_separator"; then
10633 for found_dir in $rpathdirs; do
10634 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10636 acl_save_libdir="$libdir"
10638 eval flag=\"$hardcode_libdir_flag_spec\"
10639 libdir="$acl_save_libdir"
10640 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10642 for found_dir in $rpathdirs; do
10643 acl_save_libdir="$libdir"
10644 libdir="$found_dir"
10645 eval flag=\"$hardcode_libdir_flag_spec\"
10646 libdir="$acl_save_libdir"
10647 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10651 if test "X$ltrpathdirs" != "X"; then
10652 for found_dir in $ltrpathdirs; do
10653 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10657 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10658 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
10659 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
10660 $as_echo_n "(cached) " >&6
10662 gt_save_CPPFLAGS="$CPPFLAGS"
10663 CPPFLAGS="$CPPFLAGS $INCINTL"
10664 gt_save_LIBS="$LIBS"
10665 LIBS="$LIBS $LIBINTL"
10666 cat >conftest.$ac_ext <<_ACEOF
10669 cat confdefs.h >>conftest.$ac_ext
10670 cat >>conftest.$ac_ext <<_ACEOF
10671 /* end confdefs.h. */
10672 #include <libintl.h>
10673 extern int _nl_msg_cat_cntr;
10678 const char *_nl_expand_alias ();
10682 bindtextdomain ("", "");
10683 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10688 rm -f conftest.$ac_objext conftest$ac_exeext
10689 if { (ac_try="$ac_link"
10690 case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10695 $as_echo "$ac_try_echo") >&5
10696 (eval "$ac_link") 2>conftest.er1
10698 grep -v '^ *+' conftest.er1 >conftest.err
10700 cat conftest.err >&5
10701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } && {
10703 test -z "$ac_c_werror_flag" ||
10704 test ! -s conftest.err
10705 } && test -s conftest$ac_exeext && {
10706 test "$cross_compiling" = yes ||
10707 $as_test_x conftest$ac_exeext
10709 gt_cv_func_gnugettext2_libintl=yes
10711 $as_echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.$ac_ext >&5
10714 gt_cv_func_gnugettext2_libintl=no
10717 rm -rf conftest.dSYM
10718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10719 conftest$ac_exeext conftest.$ac_ext
10720 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
10721 LIBS="$LIBS $LIBICONV"
10722 cat >conftest.$ac_ext <<_ACEOF
10725 cat confdefs.h >>conftest.$ac_ext
10726 cat >>conftest.$ac_ext <<_ACEOF
10727 /* end confdefs.h. */
10728 #include <libintl.h>
10729 extern int _nl_msg_cat_cntr;
10734 const char *_nl_expand_alias ();
10738 bindtextdomain ("", "");
10739 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10744 rm -f conftest.$ac_objext conftest$ac_exeext
10745 if { (ac_try="$ac_link"
10746 case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10751 $as_echo "$ac_try_echo") >&5
10752 (eval "$ac_link") 2>conftest.er1
10754 grep -v '^ *+' conftest.er1 >conftest.err
10756 cat conftest.err >&5
10757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } && {
10759 test -z "$ac_c_werror_flag" ||
10760 test ! -s conftest.err
10761 } && test -s conftest$ac_exeext && {
10762 test "$cross_compiling" = yes ||
10763 $as_test_x conftest$ac_exeext
10765 LIBINTL="$LIBINTL $LIBICONV"
10766 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10767 gt_cv_func_gnugettext2_libintl=yes
10770 $as_echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10776 rm -rf conftest.dSYM
10777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10778 conftest$ac_exeext conftest.$ac_ext
10780 CPPFLAGS="$gt_save_CPPFLAGS"
10781 LIBS="$gt_save_LIBS"
10783 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
10784 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
10787 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
10788 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
10789 && test "$PACKAGE" != gettext-runtime \
10790 && test "$PACKAGE" != gettext-tools; }; then
10791 gt_use_preinstalled_gnugettext=yes
10799 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10800 nls_cv_use_gnu_gettext=yes
10804 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10805 BUILD_INCLUDED_LIBINTL=yes
10806 USE_INCLUDED_LIBINTL=yes
10807 LIBINTL="lib/intl/libintl.a $LIBICONV"
10808 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
10809 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10812 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10813 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10818 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10819 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10821 cat >>confdefs.h <<\_ACEOF
10822 #define ENABLE_NLS 1
10830 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
10831 $as_echo_n "checking whether to use NLS... " >&6; }
10832 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10833 $as_echo "$USE_NLS" >&6; }
10834 if test "$USE_NLS" = "yes"; then
10835 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10836 $as_echo_n "checking where the gettext function comes from... " >&6; }
10837 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10838 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10839 gt_source="external libintl"
10844 gt_source="included intl directory"
10846 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
10847 $as_echo "$gt_source" >&6; }
10850 if test "$USE_NLS" = "yes"; then
10852 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10853 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10854 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
10855 $as_echo_n "checking how to link with libintl... " >&6; }
10856 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
10857 $as_echo "$LIBINTL" >&6; }
10859 for element in $INCINTL; do
10861 for x in $CPPFLAGS; do
10863 acl_save_prefix="$prefix"
10864 prefix="$acl_final_prefix"
10865 acl_save_exec_prefix="$exec_prefix"
10866 exec_prefix="$acl_final_exec_prefix"
10868 exec_prefix="$acl_save_exec_prefix"
10869 prefix="$acl_save_prefix"
10871 if test "X$x" = "X$element"; then
10876 if test -z "$haveit"; then
10877 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10884 cat >>confdefs.h <<\_ACEOF
10885 #define HAVE_GETTEXT 1
10889 cat >>confdefs.h <<\_ACEOF
10890 #define HAVE_DCGETTEXT 1
10899 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10900 BUILD_INCLUDED_LIBINTL=yes
10907 nls_cv_header_intl=
10908 nls_cv_header_libgt=
10919 if test "$USE_INCLUDED_LIBINTL" = yes; then
10920 INTLOBJS="\$(GETTOBJS)"
10924 INTL_LIBTOOL_SUFFIX_PREFIX=
10928 INTLLIBS="$LIBINTL"
10941 ac_header_dirent=no
10942 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10943 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10944 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10945 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10947 $as_echo_n "(cached) " >&6
10949 cat >conftest.$ac_ext <<_ACEOF
10952 cat confdefs.h >>conftest.$ac_ext
10953 cat >>conftest.$ac_ext <<_ACEOF
10954 /* end confdefs.h. */
10955 #include <sys/types.h>
10967 rm -f conftest.$ac_objext
10968 if { (ac_try="$ac_compile"
10969 case "(($ac_try" in
10970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10971 *) ac_try_echo=$ac_try;;
10973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10974 $as_echo "$ac_try_echo") >&5
10975 (eval "$ac_compile") 2>conftest.er1
10977 grep -v '^ *+' conftest.er1 >conftest.err
10979 cat conftest.err >&5
10980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); } && {
10982 test -z "$ac_c_werror_flag" ||
10983 test ! -s conftest.err
10984 } && test -s conftest.$ac_objext; then
10985 eval "$as_ac_Header=yes"
10987 $as_echo "$as_me: failed program was:" >&5
10988 sed 's/^/| /' conftest.$ac_ext >&5
10990 eval "$as_ac_Header=no"
10993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10995 ac_res=`eval 'as_val=${'$as_ac_Header'}
10996 $as_echo "$as_val"'`
10997 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10998 $as_echo "$ac_res" >&6; }
10999 as_val=`eval 'as_val=${'$as_ac_Header'}
11000 $as_echo "$as_val"'`
11001 if test "x$as_val" = x""yes; then
11002 cat >>confdefs.h <<_ACEOF
11003 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11006 ac_header_dirent=$ac_hdr; break
11010 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11011 if test $ac_header_dirent = dirent.h; then
11012 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11013 $as_echo_n "checking for library containing opendir... " >&6; }
11014 if test "${ac_cv_search_opendir+set}" = set; then
11015 $as_echo_n "(cached) " >&6
11017 ac_func_search_save_LIBS=$LIBS
11018 cat >conftest.$ac_ext <<_ACEOF
11021 cat confdefs.h >>conftest.$ac_ext
11022 cat >>conftest.$ac_ext <<_ACEOF
11023 /* end confdefs.h. */
11025 /* Override any GCC internal prototype to avoid an error.
11026 Use char because int might match the return type of a GCC
11027 builtin and then its argument prototype would still apply. */
11040 for ac_lib in '' dir; do
11041 if test -z "$ac_lib"; then
11042 ac_res="none required"
11045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11047 rm -f conftest.$ac_objext conftest$ac_exeext
11048 if { (ac_try="$ac_link"
11049 case "(($ac_try" in
11050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051 *) ac_try_echo=$ac_try;;
11053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11054 $as_echo "$ac_try_echo") >&5
11055 (eval "$ac_link") 2>conftest.er1
11057 grep -v '^ *+' conftest.er1 >conftest.err
11059 cat conftest.err >&5
11060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } && {
11062 test -z "$ac_c_werror_flag" ||
11063 test ! -s conftest.err
11064 } && test -s conftest$ac_exeext && {
11065 test "$cross_compiling" = yes ||
11066 $as_test_x conftest$ac_exeext
11068 ac_cv_search_opendir=$ac_res
11070 $as_echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11076 rm -rf conftest.dSYM
11077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11079 if test "${ac_cv_search_opendir+set}" = set; then
11083 if test "${ac_cv_search_opendir+set}" = set; then
11086 ac_cv_search_opendir=no
11088 rm conftest.$ac_ext
11089 LIBS=$ac_func_search_save_LIBS
11091 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11092 $as_echo "$ac_cv_search_opendir" >&6; }
11093 ac_res=$ac_cv_search_opendir
11094 if test "$ac_res" != no; then
11095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11100 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11101 $as_echo_n "checking for library containing opendir... " >&6; }
11102 if test "${ac_cv_search_opendir+set}" = set; then
11103 $as_echo_n "(cached) " >&6
11105 ac_func_search_save_LIBS=$LIBS
11106 cat >conftest.$ac_ext <<_ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h. */
11113 /* Override any GCC internal prototype to avoid an error.
11114 Use char because int might match the return type of a GCC
11115 builtin and then its argument prototype would still apply. */
11128 for ac_lib in '' x; do
11129 if test -z "$ac_lib"; then
11130 ac_res="none required"
11133 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11135 rm -f conftest.$ac_objext conftest$ac_exeext
11136 if { (ac_try="$ac_link"
11137 case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11142 $as_echo "$ac_try_echo") >&5
11143 (eval "$ac_link") 2>conftest.er1
11145 grep -v '^ *+' conftest.er1 >conftest.err
11147 cat conftest.err >&5
11148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } && {
11150 test -z "$ac_c_werror_flag" ||
11151 test ! -s conftest.err
11152 } && test -s conftest$ac_exeext && {
11153 test "$cross_compiling" = yes ||
11154 $as_test_x conftest$ac_exeext
11156 ac_cv_search_opendir=$ac_res
11158 $as_echo "$as_me: failed program was:" >&5
11159 sed 's/^/| /' conftest.$ac_ext >&5
11164 rm -rf conftest.dSYM
11165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11167 if test "${ac_cv_search_opendir+set}" = set; then
11171 if test "${ac_cv_search_opendir+set}" = set; then
11174 ac_cv_search_opendir=no
11176 rm conftest.$ac_ext
11177 LIBS=$ac_func_search_save_LIBS
11179 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11180 $as_echo "$ac_cv_search_opendir" >&6; }
11181 ac_res=$ac_cv_search_opendir
11182 if test "$ac_res" != no; then
11183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11189 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11190 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11191 if test "${ac_cv_header_time+set}" = set; then
11192 $as_echo_n "(cached) " >&6
11194 cat >conftest.$ac_ext <<_ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11200 #include <sys/types.h>
11201 #include <sys/time.h>
11207 if ((struct tm *) 0)
11213 rm -f conftest.$ac_objext
11214 if { (ac_try="$ac_compile"
11215 case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11220 $as_echo "$ac_try_echo") >&5
11221 (eval "$ac_compile") 2>conftest.er1
11223 grep -v '^ *+' conftest.er1 >conftest.err
11225 cat conftest.err >&5
11226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } && {
11228 test -z "$ac_c_werror_flag" ||
11229 test ! -s conftest.err
11230 } && test -s conftest.$ac_objext; then
11231 ac_cv_header_time=yes
11233 $as_echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11236 ac_cv_header_time=no
11239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11241 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11242 $as_echo "$ac_cv_header_time" >&6; }
11243 if test $ac_cv_header_time = yes; then
11245 cat >>confdefs.h <<\_ACEOF
11246 #define TIME_WITH_SYS_TIME 1
11254 for ac_header in inttypes.h
11256 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11258 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11259 $as_echo_n "checking for $ac_header... " >&6; }
11260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11261 $as_echo_n "(cached) " >&6
11263 ac_res=`eval 'as_val=${'$as_ac_Header'}
11264 $as_echo "$as_val"'`
11265 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11266 $as_echo "$ac_res" >&6; }
11268 # Is the header compilable?
11269 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11270 $as_echo_n "checking $ac_header usability... " >&6; }
11271 cat >conftest.$ac_ext <<_ACEOF
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h. */
11277 $ac_includes_default
11278 #include <$ac_header>
11280 rm -f conftest.$ac_objext
11281 if { (ac_try="$ac_compile"
11282 case "(($ac_try" in
11283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284 *) ac_try_echo=$ac_try;;
11286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11287 $as_echo "$ac_try_echo") >&5
11288 (eval "$ac_compile") 2>conftest.er1
11290 grep -v '^ *+' conftest.er1 >conftest.err
11292 cat conftest.err >&5
11293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); } && {
11295 test -z "$ac_c_werror_flag" ||
11296 test ! -s conftest.err
11297 } && test -s conftest.$ac_objext; then
11298 ac_header_compiler=yes
11300 $as_echo "$as_me: failed program was:" >&5
11301 sed 's/^/| /' conftest.$ac_ext >&5
11303 ac_header_compiler=no
11306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11307 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11308 $as_echo "$ac_header_compiler" >&6; }
11310 # Is the header present?
11311 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11312 $as_echo_n "checking $ac_header presence... " >&6; }
11313 cat >conftest.$ac_ext <<_ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319 #include <$ac_header>
11321 if { (ac_try="$ac_cpp conftest.$ac_ext"
11322 case "(($ac_try" in
11323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11324 *) ac_try_echo=$ac_try;;
11326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11327 $as_echo "$ac_try_echo") >&5
11328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11330 grep -v '^ *+' conftest.er1 >conftest.err
11332 cat conftest.err >&5
11333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } >/dev/null && {
11335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11336 test ! -s conftest.err
11338 ac_header_preproc=yes
11340 $as_echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11343 ac_header_preproc=no
11346 rm -f conftest.err conftest.$ac_ext
11347 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11348 $as_echo "$ac_header_preproc" >&6; }
11350 # So? What about this header?
11351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11354 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11356 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11357 ac_header_preproc=yes
11360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11361 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11363 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11365 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11367 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11369 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11371 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11373 ## ------------------------------- ##
11374 ## Report this to bug-bash@gnu.org ##
11375 ## ------------------------------- ##
11377 ) | sed "s/^/$as_me: WARNING: /" >&2
11380 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11381 $as_echo_n "checking for $ac_header... " >&6; }
11382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11383 $as_echo_n "(cached) " >&6
11385 eval "$as_ac_Header=\$ac_header_preproc"
11387 ac_res=`eval 'as_val=${'$as_ac_Header'}
11388 $as_echo "$as_val"'`
11389 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11390 $as_echo "$ac_res" >&6; }
11393 as_val=`eval 'as_val=${'$as_ac_Header'}
11394 $as_echo "$as_val"'`
11395 if test "x$as_val" = x""yes; then
11396 cat >>confdefs.h <<_ACEOF
11397 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11427 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
11428 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
11429 stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h \
11432 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11434 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11435 $as_echo_n "checking for $ac_header... " >&6; }
11436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11437 $as_echo_n "(cached) " >&6
11439 ac_res=`eval 'as_val=${'$as_ac_Header'}
11440 $as_echo "$as_val"'`
11441 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11442 $as_echo "$ac_res" >&6; }
11444 # Is the header compilable?
11445 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11446 $as_echo_n "checking $ac_header usability... " >&6; }
11447 cat >conftest.$ac_ext <<_ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11453 $ac_includes_default
11454 #include <$ac_header>
11456 rm -f conftest.$ac_objext
11457 if { (ac_try="$ac_compile"
11458 case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11463 $as_echo "$ac_try_echo") >&5
11464 (eval "$ac_compile") 2>conftest.er1
11466 grep -v '^ *+' conftest.er1 >conftest.err
11468 cat conftest.err >&5
11469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } && {
11471 test -z "$ac_c_werror_flag" ||
11472 test ! -s conftest.err
11473 } && test -s conftest.$ac_objext; then
11474 ac_header_compiler=yes
11476 $as_echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.$ac_ext >&5
11479 ac_header_compiler=no
11482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11483 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11484 $as_echo "$ac_header_compiler" >&6; }
11486 # Is the header present?
11487 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11488 $as_echo_n "checking $ac_header presence... " >&6; }
11489 cat >conftest.$ac_ext <<_ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495 #include <$ac_header>
11497 if { (ac_try="$ac_cpp conftest.$ac_ext"
11498 case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11503 $as_echo "$ac_try_echo") >&5
11504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11506 grep -v '^ *+' conftest.er1 >conftest.err
11508 cat conftest.err >&5
11509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } >/dev/null && {
11511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11512 test ! -s conftest.err
11514 ac_header_preproc=yes
11516 $as_echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11519 ac_header_preproc=no
11522 rm -f conftest.err conftest.$ac_ext
11523 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11524 $as_echo "$ac_header_preproc" >&6; }
11526 # So? What about this header?
11527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11530 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11532 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11533 ac_header_preproc=yes
11536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11537 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11539 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11541 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11543 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11545 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11547 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11549 ## ------------------------------- ##
11550 ## Report this to bug-bash@gnu.org ##
11551 ## ------------------------------- ##
11553 ) | sed "s/^/$as_me: WARNING: /" >&2
11556 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11557 $as_echo_n "checking for $ac_header... " >&6; }
11558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11559 $as_echo_n "(cached) " >&6
11561 eval "$as_ac_Header=\$ac_header_preproc"
11563 ac_res=`eval 'as_val=${'$as_ac_Header'}
11564 $as_echo "$as_val"'`
11565 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11566 $as_echo "$ac_res" >&6; }
11569 as_val=`eval 'as_val=${'$as_ac_Header'}
11570 $as_echo "$as_val"'`
11571 if test "x$as_val" = x""yes; then
11572 cat >>confdefs.h <<_ACEOF
11573 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11592 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
11593 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
11594 sys/time.h sys/times.h sys/types.h sys/wait.h
11596 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11598 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11599 $as_echo_n "checking for $ac_header... " >&6; }
11600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11601 $as_echo_n "(cached) " >&6
11603 ac_res=`eval 'as_val=${'$as_ac_Header'}
11604 $as_echo "$as_val"'`
11605 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11606 $as_echo "$ac_res" >&6; }
11608 # Is the header compilable?
11609 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11610 $as_echo_n "checking $ac_header usability... " >&6; }
11611 cat >conftest.$ac_ext <<_ACEOF
11614 cat confdefs.h >>conftest.$ac_ext
11615 cat >>conftest.$ac_ext <<_ACEOF
11616 /* end confdefs.h. */
11617 $ac_includes_default
11618 #include <$ac_header>
11620 rm -f conftest.$ac_objext
11621 if { (ac_try="$ac_compile"
11622 case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11627 $as_echo "$ac_try_echo") >&5
11628 (eval "$ac_compile") 2>conftest.er1
11630 grep -v '^ *+' conftest.er1 >conftest.err
11632 cat conftest.err >&5
11633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); } && {
11635 test -z "$ac_c_werror_flag" ||
11636 test ! -s conftest.err
11637 } && test -s conftest.$ac_objext; then
11638 ac_header_compiler=yes
11640 $as_echo "$as_me: failed program was:" >&5
11641 sed 's/^/| /' conftest.$ac_ext >&5
11643 ac_header_compiler=no
11646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11647 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11648 $as_echo "$ac_header_compiler" >&6; }
11650 # Is the header present?
11651 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11652 $as_echo_n "checking $ac_header presence... " >&6; }
11653 cat >conftest.$ac_ext <<_ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11659 #include <$ac_header>
11661 if { (ac_try="$ac_cpp conftest.$ac_ext"
11662 case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11667 $as_echo "$ac_try_echo") >&5
11668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11670 grep -v '^ *+' conftest.er1 >conftest.err
11672 cat conftest.err >&5
11673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } >/dev/null && {
11675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11676 test ! -s conftest.err
11678 ac_header_preproc=yes
11680 $as_echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.$ac_ext >&5
11683 ac_header_preproc=no
11686 rm -f conftest.err conftest.$ac_ext
11687 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11688 $as_echo "$ac_header_preproc" >&6; }
11690 # So? What about this header?
11691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11694 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11696 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11697 ac_header_preproc=yes
11700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11701 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11703 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11705 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11707 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11709 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11711 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11713 ## ------------------------------- ##
11714 ## Report this to bug-bash@gnu.org ##
11715 ## ------------------------------- ##
11717 ) | sed "s/^/$as_me: WARNING: /" >&2
11720 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11721 $as_echo_n "checking for $ac_header... " >&6; }
11722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11723 $as_echo_n "(cached) " >&6
11725 eval "$as_ac_Header=\$ac_header_preproc"
11727 ac_res=`eval 'as_val=${'$as_ac_Header'}
11728 $as_echo "$as_val"'`
11729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11730 $as_echo "$ac_res" >&6; }
11733 as_val=`eval 'as_val=${'$as_ac_Header'}
11734 $as_echo "$as_val"'`
11735 if test "x$as_val" = x""yes; then
11736 cat >>confdefs.h <<_ACEOF
11737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11746 for ac_header in netinet/in.h arpa/inet.h
11748 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11750 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11751 $as_echo_n "checking for $ac_header... " >&6; }
11752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11753 $as_echo_n "(cached) " >&6
11755 ac_res=`eval 'as_val=${'$as_ac_Header'}
11756 $as_echo "$as_val"'`
11757 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11758 $as_echo "$ac_res" >&6; }
11760 # Is the header compilable?
11761 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11762 $as_echo_n "checking $ac_header usability... " >&6; }
11763 cat >conftest.$ac_ext <<_ACEOF
11766 cat confdefs.h >>conftest.$ac_ext
11767 cat >>conftest.$ac_ext <<_ACEOF
11768 /* end confdefs.h. */
11769 $ac_includes_default
11770 #include <$ac_header>
11772 rm -f conftest.$ac_objext
11773 if { (ac_try="$ac_compile"
11774 case "(($ac_try" in
11775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11776 *) ac_try_echo=$ac_try;;
11778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11779 $as_echo "$ac_try_echo") >&5
11780 (eval "$ac_compile") 2>conftest.er1
11782 grep -v '^ *+' conftest.er1 >conftest.err
11784 cat conftest.err >&5
11785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } && {
11787 test -z "$ac_c_werror_flag" ||
11788 test ! -s conftest.err
11789 } && test -s conftest.$ac_objext; then
11790 ac_header_compiler=yes
11792 $as_echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11795 ac_header_compiler=no
11798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11799 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11800 $as_echo "$ac_header_compiler" >&6; }
11802 # Is the header present?
11803 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11804 $as_echo_n "checking $ac_header presence... " >&6; }
11805 cat >conftest.$ac_ext <<_ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811 #include <$ac_header>
11813 if { (ac_try="$ac_cpp conftest.$ac_ext"
11814 case "(($ac_try" in
11815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816 *) ac_try_echo=$ac_try;;
11818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11819 $as_echo "$ac_try_echo") >&5
11820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11822 grep -v '^ *+' conftest.er1 >conftest.err
11824 cat conftest.err >&5
11825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } >/dev/null && {
11827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11828 test ! -s conftest.err
11830 ac_header_preproc=yes
11832 $as_echo "$as_me: failed program was:" >&5
11833 sed 's/^/| /' conftest.$ac_ext >&5
11835 ac_header_preproc=no
11838 rm -f conftest.err conftest.$ac_ext
11839 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11840 $as_echo "$ac_header_preproc" >&6; }
11842 # So? What about this header?
11843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11846 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11848 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11849 ac_header_preproc=yes
11852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11853 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11855 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11857 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11859 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11861 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11863 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11865 ## ------------------------------- ##
11866 ## Report this to bug-bash@gnu.org ##
11867 ## ------------------------------- ##
11869 ) | sed "s/^/$as_me: WARNING: /" >&2
11872 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11873 $as_echo_n "checking for $ac_header... " >&6; }
11874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11875 $as_echo_n "(cached) " >&6
11877 eval "$as_ac_Header=\$ac_header_preproc"
11879 ac_res=`eval 'as_val=${'$as_ac_Header'}
11880 $as_echo "$as_val"'`
11881 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11882 $as_echo "$ac_res" >&6; }
11885 as_val=`eval 'as_val=${'$as_ac_Header'}
11886 $as_echo "$as_val"'`
11887 if test "x$as_val" = x""yes; then
11888 cat >>confdefs.h <<_ACEOF
11889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11897 { $as_echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
11898 $as_echo_n "checking for sys/ptem.h... " >&6; }
11899 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
11900 $as_echo_n "(cached) " >&6
11902 cat >conftest.$ac_ext <<_ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11909 #if HAVE_SYS_STREAM_H
11910 # include <sys/stream.h>
11914 #include <sys/ptem.h>
11916 rm -f conftest.$ac_objext
11917 if { (ac_try="$ac_compile"
11918 case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11923 $as_echo "$ac_try_echo") >&5
11924 (eval "$ac_compile") 2>conftest.er1
11926 grep -v '^ *+' conftest.er1 >conftest.err
11928 cat conftest.err >&5
11929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_c_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest.$ac_objext; then
11934 ac_cv_header_sys_ptem_h=yes
11936 $as_echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11939 ac_cv_header_sys_ptem_h=no
11942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
11945 $as_echo "$ac_cv_header_sys_ptem_h" >&6; }
11949 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11950 # for constant arguments. Useless!
11951 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
11952 $as_echo_n "checking for working alloca.h... " >&6; }
11953 if test "${ac_cv_working_alloca_h+set}" = set; then
11954 $as_echo_n "(cached) " >&6
11956 cat >conftest.$ac_ext <<_ACEOF
11959 cat confdefs.h >>conftest.$ac_ext
11960 cat >>conftest.$ac_ext <<_ACEOF
11961 /* end confdefs.h. */
11962 #include <alloca.h>
11966 char *p = (char *) alloca (2 * sizeof (int));
11972 rm -f conftest.$ac_objext conftest$ac_exeext
11973 if { (ac_try="$ac_link"
11974 case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11979 $as_echo "$ac_try_echo") >&5
11980 (eval "$ac_link") 2>conftest.er1
11982 grep -v '^ *+' conftest.er1 >conftest.err
11984 cat conftest.err >&5
11985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } && {
11987 test -z "$ac_c_werror_flag" ||
11988 test ! -s conftest.err
11989 } && test -s conftest$ac_exeext && {
11990 test "$cross_compiling" = yes ||
11991 $as_test_x conftest$ac_exeext
11993 ac_cv_working_alloca_h=yes
11995 $as_echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11998 ac_cv_working_alloca_h=no
12001 rm -rf conftest.dSYM
12002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12003 conftest$ac_exeext conftest.$ac_ext
12005 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12006 $as_echo "$ac_cv_working_alloca_h" >&6; }
12007 if test $ac_cv_working_alloca_h = yes; then
12009 cat >>confdefs.h <<\_ACEOF
12010 #define HAVE_ALLOCA_H 1
12015 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
12016 $as_echo_n "checking for alloca... " >&6; }
12017 if test "${ac_cv_func_alloca_works+set}" = set; then
12018 $as_echo_n "(cached) " >&6
12020 cat >conftest.$ac_ext <<_ACEOF
12023 cat confdefs.h >>conftest.$ac_ext
12024 cat >>conftest.$ac_ext <<_ACEOF
12025 /* end confdefs.h. */
12027 # define alloca __builtin_alloca
12030 # include <malloc.h>
12031 # define alloca _alloca
12033 # ifdef HAVE_ALLOCA_H
12034 # include <alloca.h>
12039 # ifndef alloca /* predefined by HP cc +Olibcalls */
12050 char *p = (char *) alloca (1);
12056 rm -f conftest.$ac_objext conftest$ac_exeext
12057 if { (ac_try="$ac_link"
12058 case "(($ac_try" in
12059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060 *) ac_try_echo=$ac_try;;
12062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12063 $as_echo "$ac_try_echo") >&5
12064 (eval "$ac_link") 2>conftest.er1
12066 grep -v '^ *+' conftest.er1 >conftest.err
12068 cat conftest.err >&5
12069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } && {
12071 test -z "$ac_c_werror_flag" ||
12072 test ! -s conftest.err
12073 } && test -s conftest$ac_exeext && {
12074 test "$cross_compiling" = yes ||
12075 $as_test_x conftest$ac_exeext
12077 ac_cv_func_alloca_works=yes
12079 $as_echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12082 ac_cv_func_alloca_works=no
12085 rm -rf conftest.dSYM
12086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12087 conftest$ac_exeext conftest.$ac_ext
12089 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12090 $as_echo "$ac_cv_func_alloca_works" >&6; }
12092 if test $ac_cv_func_alloca_works = yes; then
12094 cat >>confdefs.h <<\_ACEOF
12095 #define HAVE_ALLOCA 1
12099 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12100 # that cause trouble. Some versions do not even contain alloca or
12101 # contain a buggy version. If you still want to use their alloca,
12102 # use ar to extract alloca.o from them instead of compiling alloca.c.
12104 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12106 cat >>confdefs.h <<\_ACEOF
12111 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12112 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12113 if test "${ac_cv_os_cray+set}" = set; then
12114 $as_echo_n "(cached) " >&6
12116 cat >conftest.$ac_ext <<_ACEOF
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h. */
12122 #if defined CRAY && ! defined CRAY2
12129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12130 $EGREP "webecray" >/dev/null 2>&1; then
12138 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12139 $as_echo "$ac_cv_os_cray" >&6; }
12140 if test $ac_cv_os_cray = yes; then
12141 for ac_func in _getb67 GETB67 getb67; do
12142 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12143 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12144 $as_echo_n "checking for $ac_func... " >&6; }
12145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12146 $as_echo_n "(cached) " >&6
12148 cat >conftest.$ac_ext <<_ACEOF
12151 cat confdefs.h >>conftest.$ac_ext
12152 cat >>conftest.$ac_ext <<_ACEOF
12153 /* end confdefs.h. */
12154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12156 #define $ac_func innocuous_$ac_func
12158 /* System header to define __stub macros and hopefully few prototypes,
12159 which can conflict with char $ac_func (); below.
12160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12161 <limits.h> exists even on freestanding compilers. */
12164 # include <limits.h>
12166 # include <assert.h>
12171 /* Override any GCC internal prototype to avoid an error.
12172 Use char because int might match the return type of a GCC
12173 builtin and then its argument prototype would still apply. */
12178 /* The GNU C library defines this for functions which it implements
12179 to always fail with ENOSYS. Some functions are actually named
12180 something starting with __ and the normal name is an alias. */
12181 #if defined __stub_$ac_func || defined __stub___$ac_func
12188 return $ac_func ();
12193 rm -f conftest.$ac_objext conftest$ac_exeext
12194 if { (ac_try="$ac_link"
12195 case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12200 $as_echo "$ac_try_echo") >&5
12201 (eval "$ac_link") 2>conftest.er1
12203 grep -v '^ *+' conftest.er1 >conftest.err
12205 cat conftest.err >&5
12206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } && {
12208 test -z "$ac_c_werror_flag" ||
12209 test ! -s conftest.err
12210 } && test -s conftest$ac_exeext && {
12211 test "$cross_compiling" = yes ||
12212 $as_test_x conftest$ac_exeext
12214 eval "$as_ac_var=yes"
12216 $as_echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12219 eval "$as_ac_var=no"
12222 rm -rf conftest.dSYM
12223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12224 conftest$ac_exeext conftest.$ac_ext
12226 ac_res=`eval 'as_val=${'$as_ac_var'}
12227 $as_echo "$as_val"'`
12228 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12229 $as_echo "$ac_res" >&6; }
12230 as_val=`eval 'as_val=${'$as_ac_var'}
12231 $as_echo "$as_val"'`
12232 if test "x$as_val" = x""yes; then
12234 cat >>confdefs.h <<_ACEOF
12235 #define CRAY_STACKSEG_END $ac_func
12244 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12245 $as_echo_n "checking stack direction for C alloca... " >&6; }
12246 if test "${ac_cv_c_stack_direction+set}" = set; then
12247 $as_echo_n "(cached) " >&6
12249 if test "$cross_compiling" = yes; then
12250 ac_cv_c_stack_direction=0
12252 cat >conftest.$ac_ext <<_ACEOF
12255 cat confdefs.h >>conftest.$ac_ext
12256 cat >>conftest.$ac_ext <<_ACEOF
12257 /* end confdefs.h. */
12258 $ac_includes_default
12260 find_stack_direction ()
12262 static char *addr = 0;
12267 return find_stack_direction ();
12270 return (&dummy > addr) ? 1 : -1;
12276 return find_stack_direction () < 0;
12279 rm -f conftest$ac_exeext
12280 if { (ac_try="$ac_link"
12281 case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12286 $as_echo "$ac_try_echo") >&5
12287 (eval "$ac_link") 2>&5
12289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12291 { (case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12296 $as_echo "$ac_try_echo") >&5
12297 (eval "$ac_try") 2>&5
12299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; }; then
12301 ac_cv_c_stack_direction=1
12303 $as_echo "$as_me: program exited with status $ac_status" >&5
12304 $as_echo "$as_me: failed program was:" >&5
12305 sed 's/^/| /' conftest.$ac_ext >&5
12307 ( exit $ac_status )
12308 ac_cv_c_stack_direction=-1
12310 rm -rf conftest.dSYM
12311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12316 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12317 $as_echo "$ac_cv_c_stack_direction" >&6; }
12319 cat >>confdefs.h <<_ACEOF
12320 #define STACK_DIRECTION $ac_cv_c_stack_direction
12326 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
12327 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12328 if test "${ac_cv_func_getpgrp_void+set}" = set; then
12329 $as_echo_n "(cached) " >&6
12331 # Use it with a single arg.
12332 cat >conftest.$ac_ext <<_ACEOF
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h. */
12338 $ac_includes_default
12347 rm -f conftest.$ac_objext
12348 if { (ac_try="$ac_compile"
12349 case "(($ac_try" in
12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12354 $as_echo "$ac_try_echo") >&5
12355 (eval "$ac_compile") 2>conftest.er1
12357 grep -v '^ *+' conftest.er1 >conftest.err
12359 cat conftest.err >&5
12360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } && {
12362 test -z "$ac_c_werror_flag" ||
12363 test ! -s conftest.err
12364 } && test -s conftest.$ac_objext; then
12365 ac_cv_func_getpgrp_void=no
12367 $as_echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12370 ac_cv_func_getpgrp_void=yes
12373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12376 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
12377 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12378 if test $ac_cv_func_getpgrp_void = yes; then
12380 cat >>confdefs.h <<\_ACEOF
12381 #define GETPGRP_VOID 1
12386 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12387 $as_echo_n "(cached) " >&6
12389 ac_cv_func_setvbuf_reversed=no
12394 for ac_func in vprintf
12396 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12397 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12398 $as_echo_n "checking for $ac_func... " >&6; }
12399 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12400 $as_echo_n "(cached) " >&6
12402 cat >conftest.$ac_ext <<_ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12410 #define $ac_func innocuous_$ac_func
12412 /* System header to define __stub macros and hopefully few prototypes,
12413 which can conflict with char $ac_func (); below.
12414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12415 <limits.h> exists even on freestanding compilers. */
12418 # include <limits.h>
12420 # include <assert.h>
12425 /* Override any GCC internal prototype to avoid an error.
12426 Use char because int might match the return type of a GCC
12427 builtin and then its argument prototype would still apply. */
12432 /* The GNU C library defines this for functions which it implements
12433 to always fail with ENOSYS. Some functions are actually named
12434 something starting with __ and the normal name is an alias. */
12435 #if defined __stub_$ac_func || defined __stub___$ac_func
12442 return $ac_func ();
12447 rm -f conftest.$ac_objext conftest$ac_exeext
12448 if { (ac_try="$ac_link"
12449 case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12454 $as_echo "$ac_try_echo") >&5
12455 (eval "$ac_link") 2>conftest.er1
12457 grep -v '^ *+' conftest.er1 >conftest.err
12459 cat conftest.err >&5
12460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } && {
12462 test -z "$ac_c_werror_flag" ||
12463 test ! -s conftest.err
12464 } && test -s conftest$ac_exeext && {
12465 test "$cross_compiling" = yes ||
12466 $as_test_x conftest$ac_exeext
12468 eval "$as_ac_var=yes"
12470 $as_echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12473 eval "$as_ac_var=no"
12476 rm -rf conftest.dSYM
12477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12478 conftest$ac_exeext conftest.$ac_ext
12480 ac_res=`eval 'as_val=${'$as_ac_var'}
12481 $as_echo "$as_val"'`
12482 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12483 $as_echo "$ac_res" >&6; }
12484 as_val=`eval 'as_val=${'$as_ac_var'}
12485 $as_echo "$as_val"'`
12486 if test "x$as_val" = x""yes; then
12487 cat >>confdefs.h <<_ACEOF
12488 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12491 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12492 $as_echo_n "checking for _doprnt... " >&6; }
12493 if test "${ac_cv_func__doprnt+set}" = set; then
12494 $as_echo_n "(cached) " >&6
12496 cat >conftest.$ac_ext <<_ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h. */
12502 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12504 #define _doprnt innocuous__doprnt
12506 /* System header to define __stub macros and hopefully few prototypes,
12507 which can conflict with char _doprnt (); below.
12508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12509 <limits.h> exists even on freestanding compilers. */
12512 # include <limits.h>
12514 # include <assert.h>
12519 /* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply. */
12526 /* The GNU C library defines this for functions which it implements
12527 to always fail with ENOSYS. Some functions are actually named
12528 something starting with __ and the normal name is an alias. */
12529 #if defined __stub__doprnt || defined __stub____doprnt
12541 rm -f conftest.$ac_objext conftest$ac_exeext
12542 if { (ac_try="$ac_link"
12543 case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12548 $as_echo "$ac_try_echo") >&5
12549 (eval "$ac_link") 2>conftest.er1
12551 grep -v '^ *+' conftest.er1 >conftest.err
12553 cat conftest.err >&5
12554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } && {
12556 test -z "$ac_c_werror_flag" ||
12557 test ! -s conftest.err
12558 } && test -s conftest$ac_exeext && {
12559 test "$cross_compiling" = yes ||
12560 $as_test_x conftest$ac_exeext
12562 ac_cv_func__doprnt=yes
12564 $as_echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12567 ac_cv_func__doprnt=no
12570 rm -rf conftest.dSYM
12571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12572 conftest$ac_exeext conftest.$ac_ext
12574 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12575 $as_echo "$ac_cv_func__doprnt" >&6; }
12576 if test "x$ac_cv_func__doprnt" = x""yes; then
12578 cat >>confdefs.h <<\_ACEOF
12579 #define HAVE_DOPRNT 1
12588 { $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
12589 $as_echo_n "checking for working strcoll... " >&6; }
12590 if test "${ac_cv_func_strcoll_works+set}" = set; then
12591 $as_echo_n "(cached) " >&6
12593 if test "$cross_compiling" = yes; then
12594 ac_cv_func_strcoll_works=no
12596 cat >conftest.$ac_ext <<_ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602 $ac_includes_default
12606 return (strcoll ("abc", "def") >= 0 ||
12607 strcoll ("ABC", "DEF") >= 0 ||
12608 strcoll ("123", "456") >= 0)
12613 rm -f conftest$ac_exeext
12614 if { (ac_try="$ac_link"
12615 case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12620 $as_echo "$ac_try_echo") >&5
12621 (eval "$ac_link") 2>&5
12623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12625 { (case "(($ac_try" in
12626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627 *) ac_try_echo=$ac_try;;
12629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12630 $as_echo "$ac_try_echo") >&5
12631 (eval "$ac_try") 2>&5
12633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; }; then
12635 ac_cv_func_strcoll_works=yes
12637 $as_echo "$as_me: program exited with status $ac_status" >&5
12638 $as_echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12641 ( exit $ac_status )
12642 ac_cv_func_strcoll_works=no
12644 rm -rf conftest.dSYM
12645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12650 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
12651 $as_echo "$ac_cv_func_strcoll_works" >&6; }
12652 if test $ac_cv_func_strcoll_works = yes; then
12654 cat >>confdefs.h <<\_ACEOF
12655 #define HAVE_STRCOLL 1
12662 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
12663 MALLOC_TARGET=alloca
12664 MALLOC_SRC=alloca.c
12666 MALLOC_LIB='-lmalloc'
12667 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
12668 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
12669 MALLOC_DEP='$(MALLOC_LIBRARY)'
12672 if test "$ac_cv_func_vprintf" = no; then
12673 { $as_echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
12674 $as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; }
12675 cat >conftest.$ac_ext <<_ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12685 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
12686 ac_cv_func_vprintf=yes
12690 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
12691 $as_echo "$ac_cv_func_vprintf" >&6; }
12692 if test $ac_cv_func_vprintf = yes; then
12693 cat >>confdefs.h <<\_ACEOF
12694 #define HAVE_VPRINTF 1
12700 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
12701 case " $LIBOBJS " in
12702 *" vprint.$ac_objext "* ) ;;
12703 *) LIBOBJS="$LIBOBJS vprint.$ac_objext"
12709 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12710 $as_echo_n "checking return type of signal handlers... " >&6; }
12711 if test "${ac_cv_type_signal+set}" = set; then
12712 $as_echo_n "(cached) " >&6
12714 cat >conftest.$ac_ext <<_ACEOF
12717 cat confdefs.h >>conftest.$ac_ext
12718 cat >>conftest.$ac_ext <<_ACEOF
12719 /* end confdefs.h. */
12720 #include <sys/types.h>
12721 #include <signal.h>
12726 return *(signal (0, 0)) (0) == 1;
12731 rm -f conftest.$ac_objext
12732 if { (ac_try="$ac_compile"
12733 case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12738 $as_echo "$ac_try_echo") >&5
12739 (eval "$ac_compile") 2>conftest.er1
12741 grep -v '^ *+' conftest.er1 >conftest.err
12743 cat conftest.err >&5
12744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } && {
12746 test -z "$ac_c_werror_flag" ||
12747 test ! -s conftest.err
12748 } && test -s conftest.$ac_objext; then
12749 ac_cv_type_signal=int
12751 $as_echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12754 ac_cv_type_signal=void
12757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12759 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12760 $as_echo "$ac_cv_type_signal" >&6; }
12762 cat >>confdefs.h <<_ACEOF
12763 #define RETSIGTYPE $ac_cv_type_signal
12768 { $as_echo "$as_me:$LINENO: checking for __setostype" >&5
12769 $as_echo_n "checking for __setostype... " >&6; }
12770 if test "${ac_cv_func___setostype+set}" = set; then
12771 $as_echo_n "(cached) " >&6
12773 cat >conftest.$ac_ext <<_ACEOF
12776 cat confdefs.h >>conftest.$ac_ext
12777 cat >>conftest.$ac_ext <<_ACEOF
12778 /* end confdefs.h. */
12779 /* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
12780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12781 #define __setostype innocuous___setostype
12783 /* System header to define __stub macros and hopefully few prototypes,
12784 which can conflict with char __setostype (); below.
12785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12786 <limits.h> exists even on freestanding compilers. */
12789 # include <limits.h>
12791 # include <assert.h>
12796 /* Override any GCC internal prototype to avoid an error.
12797 Use char because int might match the return type of a GCC
12798 builtin and then its argument prototype would still apply. */
12802 char __setostype ();
12803 /* The GNU C library defines this for functions which it implements
12804 to always fail with ENOSYS. Some functions are actually named
12805 something starting with __ and the normal name is an alias. */
12806 #if defined __stub___setostype || defined __stub_____setostype
12813 return __setostype ();
12818 rm -f conftest.$ac_objext conftest$ac_exeext
12819 if { (ac_try="$ac_link"
12820 case "(($ac_try" in
12821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822 *) ac_try_echo=$ac_try;;
12824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12825 $as_echo "$ac_try_echo") >&5
12826 (eval "$ac_link") 2>conftest.er1
12828 grep -v '^ *+' conftest.er1 >conftest.err
12830 cat conftest.err >&5
12831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); } && {
12833 test -z "$ac_c_werror_flag" ||
12834 test ! -s conftest.err
12835 } && test -s conftest$ac_exeext && {
12836 test "$cross_compiling" = yes ||
12837 $as_test_x conftest$ac_exeext
12839 ac_cv_func___setostype=yes
12841 $as_echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12844 ac_cv_func___setostype=no
12847 rm -rf conftest.dSYM
12848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12849 conftest$ac_exeext conftest.$ac_ext
12851 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
12852 $as_echo "$ac_cv_func___setostype" >&6; }
12853 if test "x$ac_cv_func___setostype" = x""yes; then
12854 cat >>confdefs.h <<\_ACEOF
12855 #define HAVE_SETOSTYPE 1
12860 { $as_echo "$as_me:$LINENO: checking for wait3" >&5
12861 $as_echo_n "checking for wait3... " >&6; }
12862 if test "${ac_cv_func_wait3+set}" = set; then
12863 $as_echo_n "(cached) " >&6
12865 cat >conftest.$ac_ext <<_ACEOF
12868 cat confdefs.h >>conftest.$ac_ext
12869 cat >>conftest.$ac_ext <<_ACEOF
12870 /* end confdefs.h. */
12871 /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
12872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12873 #define wait3 innocuous_wait3
12875 /* System header to define __stub macros and hopefully few prototypes,
12876 which can conflict with char wait3 (); below.
12877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12878 <limits.h> exists even on freestanding compilers. */
12881 # include <limits.h>
12883 # include <assert.h>
12888 /* Override any GCC internal prototype to avoid an error.
12889 Use char because int might match the return type of a GCC
12890 builtin and then its argument prototype would still apply. */
12895 /* The GNU C library defines this for functions which it implements
12896 to always fail with ENOSYS. Some functions are actually named
12897 something starting with __ and the normal name is an alias. */
12898 #if defined __stub_wait3 || defined __stub___wait3
12910 rm -f conftest.$ac_objext conftest$ac_exeext
12911 if { (ac_try="$ac_link"
12912 case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12917 $as_echo "$ac_try_echo") >&5
12918 (eval "$ac_link") 2>conftest.er1
12920 grep -v '^ *+' conftest.er1 >conftest.err
12922 cat conftest.err >&5
12923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } && {
12925 test -z "$ac_c_werror_flag" ||
12926 test ! -s conftest.err
12927 } && test -s conftest$ac_exeext && {
12928 test "$cross_compiling" = yes ||
12929 $as_test_x conftest$ac_exeext
12931 ac_cv_func_wait3=yes
12933 $as_echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12936 ac_cv_func_wait3=no
12939 rm -rf conftest.dSYM
12940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12941 conftest$ac_exeext conftest.$ac_ext
12943 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
12944 $as_echo "$ac_cv_func_wait3" >&6; }
12945 if test "x$ac_cv_func_wait3" = x""yes; then
12946 cat >>confdefs.h <<\_ACEOF
12947 #define HAVE_WAIT3 1
12952 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
12953 $as_echo_n "checking for isinf... " >&6; }
12954 if test "${ac_cv_func_isinf+set}" = set; then
12955 $as_echo_n "(cached) " >&6
12957 cat >conftest.$ac_ext <<_ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12963 /* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
12964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12965 #define isinf innocuous_isinf
12967 /* System header to define __stub macros and hopefully few prototypes,
12968 which can conflict with char isinf (); below.
12969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12970 <limits.h> exists even on freestanding compilers. */
12973 # include <limits.h>
12975 # include <assert.h>
12980 /* Override any GCC internal prototype to avoid an error.
12981 Use char because int might match the return type of a GCC
12982 builtin and then its argument prototype would still apply. */
12987 /* The GNU C library defines this for functions which it implements
12988 to always fail with ENOSYS. Some functions are actually named
12989 something starting with __ and the normal name is an alias. */
12990 #if defined __stub_isinf || defined __stub___isinf
13002 rm -f conftest.$ac_objext conftest$ac_exeext
13003 if { (ac_try="$ac_link"
13004 case "(($ac_try" in
13005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13006 *) ac_try_echo=$ac_try;;
13008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13009 $as_echo "$ac_try_echo") >&5
13010 (eval "$ac_link") 2>conftest.er1
13012 grep -v '^ *+' conftest.er1 >conftest.err
13014 cat conftest.err >&5
13015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); } && {
13017 test -z "$ac_c_werror_flag" ||
13018 test ! -s conftest.err
13019 } && test -s conftest$ac_exeext && {
13020 test "$cross_compiling" = yes ||
13021 $as_test_x conftest$ac_exeext
13023 ac_cv_func_isinf=yes
13025 $as_echo "$as_me: failed program was:" >&5
13026 sed 's/^/| /' conftest.$ac_ext >&5
13028 ac_cv_func_isinf=no
13031 rm -rf conftest.dSYM
13032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13033 conftest$ac_exeext conftest.$ac_ext
13035 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
13036 $as_echo "$ac_cv_func_isinf" >&6; }
13037 if test "x$ac_cv_func_isinf" = x""yes; then
13038 cat >>confdefs.h <<\_ACEOF
13039 #define HAVE_ISINF_IN_LIBC 1
13044 { $as_echo "$as_me:$LINENO: checking for isnan" >&5
13045 $as_echo_n "checking for isnan... " >&6; }
13046 if test "${ac_cv_func_isnan+set}" = set; then
13047 $as_echo_n "(cached) " >&6
13049 cat >conftest.$ac_ext <<_ACEOF
13052 cat confdefs.h >>conftest.$ac_ext
13053 cat >>conftest.$ac_ext <<_ACEOF
13054 /* end confdefs.h. */
13055 /* Define isnan to an innocuous variant, in case <limits.h> declares isnan.
13056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13057 #define isnan innocuous_isnan
13059 /* System header to define __stub macros and hopefully few prototypes,
13060 which can conflict with char isnan (); below.
13061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13062 <limits.h> exists even on freestanding compilers. */
13065 # include <limits.h>
13067 # include <assert.h>
13072 /* Override any GCC internal prototype to avoid an error.
13073 Use char because int might match the return type of a GCC
13074 builtin and then its argument prototype would still apply. */
13079 /* The GNU C library defines this for functions which it implements
13080 to always fail with ENOSYS. Some functions are actually named
13081 something starting with __ and the normal name is an alias. */
13082 #if defined __stub_isnan || defined __stub___isnan
13094 rm -f conftest.$ac_objext conftest$ac_exeext
13095 if { (ac_try="$ac_link"
13096 case "(($ac_try" in
13097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098 *) ac_try_echo=$ac_try;;
13100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13101 $as_echo "$ac_try_echo") >&5
13102 (eval "$ac_link") 2>conftest.er1
13104 grep -v '^ *+' conftest.er1 >conftest.err
13106 cat conftest.err >&5
13107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } && {
13109 test -z "$ac_c_werror_flag" ||
13110 test ! -s conftest.err
13111 } && test -s conftest$ac_exeext && {
13112 test "$cross_compiling" = yes ||
13113 $as_test_x conftest$ac_exeext
13115 ac_cv_func_isnan=yes
13117 $as_echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13120 ac_cv_func_isnan=no
13123 rm -rf conftest.dSYM
13124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13125 conftest$ac_exeext conftest.$ac_ext
13127 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
13128 $as_echo "$ac_cv_func_isnan" >&6; }
13129 if test "x$ac_cv_func_isnan" = x""yes; then
13130 cat >>confdefs.h <<\_ACEOF
13131 #define HAVE_ISNAN_IN_LIBC 1
13137 { $as_echo "$as_me:$LINENO: checking for mkfifo" >&5
13138 $as_echo_n "checking for mkfifo... " >&6; }
13139 if test "${ac_cv_func_mkfifo+set}" = set; then
13140 $as_echo_n "(cached) " >&6
13142 cat >conftest.$ac_ext <<_ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h. */
13148 /* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
13149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13150 #define mkfifo innocuous_mkfifo
13152 /* System header to define __stub macros and hopefully few prototypes,
13153 which can conflict with char mkfifo (); below.
13154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13155 <limits.h> exists even on freestanding compilers. */
13158 # include <limits.h>
13160 # include <assert.h>
13165 /* Override any GCC internal prototype to avoid an error.
13166 Use char because int might match the return type of a GCC
13167 builtin and then its argument prototype would still apply. */
13172 /* The GNU C library defines this for functions which it implements
13173 to always fail with ENOSYS. Some functions are actually named
13174 something starting with __ and the normal name is an alias. */
13175 #if defined __stub_mkfifo || defined __stub___mkfifo
13187 rm -f conftest.$ac_objext conftest$ac_exeext
13188 if { (ac_try="$ac_link"
13189 case "(($ac_try" in
13190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191 *) ac_try_echo=$ac_try;;
13193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13194 $as_echo "$ac_try_echo") >&5
13195 (eval "$ac_link") 2>conftest.er1
13197 grep -v '^ *+' conftest.er1 >conftest.err
13199 cat conftest.err >&5
13200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } && {
13202 test -z "$ac_c_werror_flag" ||
13203 test ! -s conftest.err
13204 } && test -s conftest$ac_exeext && {
13205 test "$cross_compiling" = yes ||
13206 $as_test_x conftest$ac_exeext
13208 ac_cv_func_mkfifo=yes
13210 $as_echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13213 ac_cv_func_mkfifo=no
13216 rm -rf conftest.dSYM
13217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13218 conftest$ac_exeext conftest.$ac_ext
13220 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
13221 $as_echo "$ac_cv_func_mkfifo" >&6; }
13222 if test "x$ac_cv_func_mkfifo" = x""yes; then
13223 cat >>confdefs.h <<\_ACEOF
13224 #define HAVE_MKFIFO 1
13228 cat >>confdefs.h <<\_ACEOF
13229 #define MKFIFO_MISSING 1
13258 for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \
13259 getpagesize getpeername getrlimit getrusage gettimeofday \
13260 kill killpg lstat readlink sbrk select setdtablesize \
13261 setitimer tcgetpgrp uname ulimit waitpid
13263 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13264 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13265 $as_echo_n "checking for $ac_func... " >&6; }
13266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13267 $as_echo_n "(cached) " >&6
13269 cat >conftest.$ac_ext <<_ACEOF
13272 cat confdefs.h >>conftest.$ac_ext
13273 cat >>conftest.$ac_ext <<_ACEOF
13274 /* end confdefs.h. */
13275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13277 #define $ac_func innocuous_$ac_func
13279 /* System header to define __stub macros and hopefully few prototypes,
13280 which can conflict with char $ac_func (); below.
13281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13282 <limits.h> exists even on freestanding compilers. */
13285 # include <limits.h>
13287 # include <assert.h>
13292 /* Override any GCC internal prototype to avoid an error.
13293 Use char because int might match the return type of a GCC
13294 builtin and then its argument prototype would still apply. */
13299 /* The GNU C library defines this for functions which it implements
13300 to always fail with ENOSYS. Some functions are actually named
13301 something starting with __ and the normal name is an alias. */
13302 #if defined __stub_$ac_func || defined __stub___$ac_func
13309 return $ac_func ();
13314 rm -f conftest.$ac_objext conftest$ac_exeext
13315 if { (ac_try="$ac_link"
13316 case "(($ac_try" in
13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13321 $as_echo "$ac_try_echo") >&5
13322 (eval "$ac_link") 2>conftest.er1
13324 grep -v '^ *+' conftest.er1 >conftest.err
13326 cat conftest.err >&5
13327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } && {
13329 test -z "$ac_c_werror_flag" ||
13330 test ! -s conftest.err
13331 } && test -s conftest$ac_exeext && {
13332 test "$cross_compiling" = yes ||
13333 $as_test_x conftest$ac_exeext
13335 eval "$as_ac_var=yes"
13337 $as_echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13340 eval "$as_ac_var=no"
13343 rm -rf conftest.dSYM
13344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13345 conftest$ac_exeext conftest.$ac_ext
13347 ac_res=`eval 'as_val=${'$as_ac_var'}
13348 $as_echo "$as_val"'`
13349 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13350 $as_echo "$ac_res" >&6; }
13351 as_val=`eval 'as_val=${'$as_ac_var'}
13352 $as_echo "$as_val"'`
13353 if test "x$as_val" = x""yes; then
13354 cat >>confdefs.h <<_ACEOF
13355 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13362 for ac_func in rename
13364 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13365 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13366 $as_echo_n "checking for $ac_func... " >&6; }
13367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13368 $as_echo_n "(cached) " >&6
13370 cat >conftest.$ac_ext <<_ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13378 #define $ac_func innocuous_$ac_func
13380 /* System header to define __stub macros and hopefully few prototypes,
13381 which can conflict with char $ac_func (); below.
13382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13383 <limits.h> exists even on freestanding compilers. */
13386 # include <limits.h>
13388 # include <assert.h>
13393 /* Override any GCC internal prototype to avoid an error.
13394 Use char because int might match the return type of a GCC
13395 builtin and then its argument prototype would still apply. */
13400 /* The GNU C library defines this for functions which it implements
13401 to always fail with ENOSYS. Some functions are actually named
13402 something starting with __ and the normal name is an alias. */
13403 #if defined __stub_$ac_func || defined __stub___$ac_func
13410 return $ac_func ();
13415 rm -f conftest.$ac_objext conftest$ac_exeext
13416 if { (ac_try="$ac_link"
13417 case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13422 $as_echo "$ac_try_echo") >&5
13423 (eval "$ac_link") 2>conftest.er1
13425 grep -v '^ *+' conftest.er1 >conftest.err
13427 cat conftest.err >&5
13428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } && {
13430 test -z "$ac_c_werror_flag" ||
13431 test ! -s conftest.err
13432 } && test -s conftest$ac_exeext && {
13433 test "$cross_compiling" = yes ||
13434 $as_test_x conftest$ac_exeext
13436 eval "$as_ac_var=yes"
13438 $as_echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13441 eval "$as_ac_var=no"
13444 rm -rf conftest.dSYM
13445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13446 conftest$ac_exeext conftest.$ac_ext
13448 ac_res=`eval 'as_val=${'$as_ac_var'}
13449 $as_echo "$as_val"'`
13450 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13451 $as_echo "$ac_res" >&6; }
13452 as_val=`eval 'as_val=${'$as_ac_var'}
13453 $as_echo "$as_val"'`
13454 if test "x$as_val" = x""yes; then
13455 cat >>confdefs.h <<_ACEOF
13456 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13460 case " $LIBOBJS " in
13461 *" $ac_func.$ac_objext "* ) ;;
13462 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13500 for ac_func in bcopy bzero confstr faccessat fnmatch \
13501 getaddrinfo gethostbyname getservbyname getservent inet_aton \
13502 memmove pathconf putenv raise regcomp regexec \
13503 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
13504 sysconf syslog tcgetattr times ttyname tzset unsetenv
13506 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13507 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13508 $as_echo_n "checking for $ac_func... " >&6; }
13509 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13510 $as_echo_n "(cached) " >&6
13512 cat >conftest.$ac_ext <<_ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h. */
13518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13520 #define $ac_func innocuous_$ac_func
13522 /* System header to define __stub macros and hopefully few prototypes,
13523 which can conflict with char $ac_func (); below.
13524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13525 <limits.h> exists even on freestanding compilers. */
13528 # include <limits.h>
13530 # include <assert.h>
13535 /* Override any GCC internal prototype to avoid an error.
13536 Use char because int might match the return type of a GCC
13537 builtin and then its argument prototype would still apply. */
13542 /* The GNU C library defines this for functions which it implements
13543 to always fail with ENOSYS. Some functions are actually named
13544 something starting with __ and the normal name is an alias. */
13545 #if defined __stub_$ac_func || defined __stub___$ac_func
13552 return $ac_func ();
13557 rm -f conftest.$ac_objext conftest$ac_exeext
13558 if { (ac_try="$ac_link"
13559 case "(($ac_try" in
13560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561 *) ac_try_echo=$ac_try;;
13563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13564 $as_echo "$ac_try_echo") >&5
13565 (eval "$ac_link") 2>conftest.er1
13567 grep -v '^ *+' conftest.er1 >conftest.err
13569 cat conftest.err >&5
13570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } && {
13572 test -z "$ac_c_werror_flag" ||
13573 test ! -s conftest.err
13574 } && test -s conftest$ac_exeext && {
13575 test "$cross_compiling" = yes ||
13576 $as_test_x conftest$ac_exeext
13578 eval "$as_ac_var=yes"
13580 $as_echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 eval "$as_ac_var=no"
13586 rm -rf conftest.dSYM
13587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13588 conftest$ac_exeext conftest.$ac_ext
13590 ac_res=`eval 'as_val=${'$as_ac_var'}
13591 $as_echo "$as_val"'`
13592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13593 $as_echo "$ac_res" >&6; }
13594 as_val=`eval 'as_val=${'$as_ac_var'}
13595 $as_echo "$as_val"'`
13596 if test "x$as_val" = x""yes; then
13597 cat >>confdefs.h <<_ACEOF
13598 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13607 for ac_func in vasprintf asprintf
13609 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13610 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13611 $as_echo_n "checking for $ac_func... " >&6; }
13612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13613 $as_echo_n "(cached) " >&6
13615 cat >conftest.$ac_ext <<_ACEOF
13618 cat confdefs.h >>conftest.$ac_ext
13619 cat >>conftest.$ac_ext <<_ACEOF
13620 /* end confdefs.h. */
13621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13623 #define $ac_func innocuous_$ac_func
13625 /* System header to define __stub macros and hopefully few prototypes,
13626 which can conflict with char $ac_func (); below.
13627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13628 <limits.h> exists even on freestanding compilers. */
13631 # include <limits.h>
13633 # include <assert.h>
13638 /* Override any GCC internal prototype to avoid an error.
13639 Use char because int might match the return type of a GCC
13640 builtin and then its argument prototype would still apply. */
13645 /* The GNU C library defines this for functions which it implements
13646 to always fail with ENOSYS. Some functions are actually named
13647 something starting with __ and the normal name is an alias. */
13648 #if defined __stub_$ac_func || defined __stub___$ac_func
13655 return $ac_func ();
13660 rm -f conftest.$ac_objext conftest$ac_exeext
13661 if { (ac_try="$ac_link"
13662 case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13667 $as_echo "$ac_try_echo") >&5
13668 (eval "$ac_link") 2>conftest.er1
13670 grep -v '^ *+' conftest.er1 >conftest.err
13672 cat conftest.err >&5
13673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } && {
13675 test -z "$ac_c_werror_flag" ||
13676 test ! -s conftest.err
13677 } && test -s conftest$ac_exeext && {
13678 test "$cross_compiling" = yes ||
13679 $as_test_x conftest$ac_exeext
13681 eval "$as_ac_var=yes"
13683 $as_echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13686 eval "$as_ac_var=no"
13689 rm -rf conftest.dSYM
13690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13691 conftest$ac_exeext conftest.$ac_ext
13693 ac_res=`eval 'as_val=${'$as_ac_var'}
13694 $as_echo "$as_val"'`
13695 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13696 $as_echo "$ac_res" >&6; }
13697 as_val=`eval 'as_val=${'$as_ac_var'}
13698 $as_echo "$as_val"'`
13699 if test "x$as_val" = x""yes; then
13700 cat >>confdefs.h <<_ACEOF
13701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13713 for ac_func in isascii isblank isgraph isprint isspace isxdigit
13715 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13716 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13717 $as_echo_n "checking for $ac_func... " >&6; }
13718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13719 $as_echo_n "(cached) " >&6
13721 cat >conftest.$ac_ext <<_ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h. */
13727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13729 #define $ac_func innocuous_$ac_func
13731 /* System header to define __stub macros and hopefully few prototypes,
13732 which can conflict with char $ac_func (); below.
13733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13734 <limits.h> exists even on freestanding compilers. */
13737 # include <limits.h>
13739 # include <assert.h>
13744 /* Override any GCC internal prototype to avoid an error.
13745 Use char because int might match the return type of a GCC
13746 builtin and then its argument prototype would still apply. */
13751 /* The GNU C library defines this for functions which it implements
13752 to always fail with ENOSYS. Some functions are actually named
13753 something starting with __ and the normal name is an alias. */
13754 #if defined __stub_$ac_func || defined __stub___$ac_func
13761 return $ac_func ();
13766 rm -f conftest.$ac_objext conftest$ac_exeext
13767 if { (ac_try="$ac_link"
13768 case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13773 $as_echo "$ac_try_echo") >&5
13774 (eval "$ac_link") 2>conftest.er1
13776 grep -v '^ *+' conftest.er1 >conftest.err
13778 cat conftest.err >&5
13779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } && {
13781 test -z "$ac_c_werror_flag" ||
13782 test ! -s conftest.err
13783 } && test -s conftest$ac_exeext && {
13784 test "$cross_compiling" = yes ||
13785 $as_test_x conftest$ac_exeext
13787 eval "$as_ac_var=yes"
13789 $as_echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13792 eval "$as_ac_var=no"
13795 rm -rf conftest.dSYM
13796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13797 conftest$ac_exeext conftest.$ac_ext
13799 ac_res=`eval 'as_val=${'$as_ac_var'}
13800 $as_echo "$as_val"'`
13801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13802 $as_echo "$ac_res" >&6; }
13803 as_val=`eval 'as_val=${'$as_ac_var'}
13804 $as_echo "$as_val"'`
13805 if test "x$as_val" = x""yes; then
13806 cat >>confdefs.h <<_ACEOF
13807 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13816 for ac_func in getpwent getpwnam getpwuid
13818 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13819 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13820 $as_echo_n "checking for $ac_func... " >&6; }
13821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13822 $as_echo_n "(cached) " >&6
13824 cat >conftest.$ac_ext <<_ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h. */
13830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13832 #define $ac_func innocuous_$ac_func
13834 /* System header to define __stub macros and hopefully few prototypes,
13835 which can conflict with char $ac_func (); below.
13836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13837 <limits.h> exists even on freestanding compilers. */
13840 # include <limits.h>
13842 # include <assert.h>
13847 /* Override any GCC internal prototype to avoid an error.
13848 Use char because int might match the return type of a GCC
13849 builtin and then its argument prototype would still apply. */
13854 /* The GNU C library defines this for functions which it implements
13855 to always fail with ENOSYS. Some functions are actually named
13856 something starting with __ and the normal name is an alias. */
13857 #if defined __stub_$ac_func || defined __stub___$ac_func
13864 return $ac_func ();
13869 rm -f conftest.$ac_objext conftest$ac_exeext
13870 if { (ac_try="$ac_link"
13871 case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13876 $as_echo "$ac_try_echo") >&5
13877 (eval "$ac_link") 2>conftest.er1
13879 grep -v '^ *+' conftest.er1 >conftest.err
13881 cat conftest.err >&5
13882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } && {
13884 test -z "$ac_c_werror_flag" ||
13885 test ! -s conftest.err
13886 } && test -s conftest$ac_exeext && {
13887 test "$cross_compiling" = yes ||
13888 $as_test_x conftest$ac_exeext
13890 eval "$as_ac_var=yes"
13892 $as_echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13895 eval "$as_ac_var=no"
13898 rm -rf conftest.dSYM
13899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13900 conftest$ac_exeext conftest.$ac_ext
13902 ac_res=`eval 'as_val=${'$as_ac_var'}
13903 $as_echo "$as_val"'`
13904 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13905 $as_echo "$ac_res" >&6; }
13906 as_val=`eval 'as_val=${'$as_ac_var'}
13907 $as_echo "$as_val"'`
13908 if test "x$as_val" = x""yes; then
13909 cat >>confdefs.h <<_ACEOF
13910 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13918 for ac_func in getcwd memset
13920 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13921 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13922 $as_echo_n "checking for $ac_func... " >&6; }
13923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13924 $as_echo_n "(cached) " >&6
13926 cat >conftest.$ac_ext <<_ACEOF
13929 cat confdefs.h >>conftest.$ac_ext
13930 cat >>conftest.$ac_ext <<_ACEOF
13931 /* end confdefs.h. */
13932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13934 #define $ac_func innocuous_$ac_func
13936 /* System header to define __stub macros and hopefully few prototypes,
13937 which can conflict with char $ac_func (); below.
13938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13939 <limits.h> exists even on freestanding compilers. */
13942 # include <limits.h>
13944 # include <assert.h>
13949 /* Override any GCC internal prototype to avoid an error.
13950 Use char because int might match the return type of a GCC
13951 builtin and then its argument prototype would still apply. */
13956 /* The GNU C library defines this for functions which it implements
13957 to always fail with ENOSYS. Some functions are actually named
13958 something starting with __ and the normal name is an alias. */
13959 #if defined __stub_$ac_func || defined __stub___$ac_func
13966 return $ac_func ();
13971 rm -f conftest.$ac_objext conftest$ac_exeext
13972 if { (ac_try="$ac_link"
13973 case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13978 $as_echo "$ac_try_echo") >&5
13979 (eval "$ac_link") 2>conftest.er1
13981 grep -v '^ *+' conftest.er1 >conftest.err
13983 cat conftest.err >&5
13984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); } && {
13986 test -z "$ac_c_werror_flag" ||
13987 test ! -s conftest.err
13988 } && test -s conftest$ac_exeext && {
13989 test "$cross_compiling" = yes ||
13990 $as_test_x conftest$ac_exeext
13992 eval "$as_ac_var=yes"
13994 $as_echo "$as_me: failed program was:" >&5
13995 sed 's/^/| /' conftest.$ac_ext >&5
13997 eval "$as_ac_var=no"
14000 rm -rf conftest.dSYM
14001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14002 conftest$ac_exeext conftest.$ac_ext
14004 ac_res=`eval 'as_val=${'$as_ac_var'}
14005 $as_echo "$as_val"'`
14006 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14007 $as_echo "$ac_res" >&6; }
14008 as_val=`eval 'as_val=${'$as_ac_var'}
14009 $as_echo "$as_val"'`
14010 if test "x$as_val" = x""yes; then
14011 cat >>confdefs.h <<_ACEOF
14012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14016 case " $LIBOBJS " in
14017 *" $ac_func.$ac_objext "* ) ;;
14018 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14033 for ac_func in strcasecmp strcasestr strerror strftime strnlen strpbrk strstr
14035 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14036 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14037 $as_echo_n "checking for $ac_func... " >&6; }
14038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14039 $as_echo_n "(cached) " >&6
14041 cat >conftest.$ac_ext <<_ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h. */
14047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14049 #define $ac_func innocuous_$ac_func
14051 /* System header to define __stub macros and hopefully few prototypes,
14052 which can conflict with char $ac_func (); below.
14053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14054 <limits.h> exists even on freestanding compilers. */
14057 # include <limits.h>
14059 # include <assert.h>
14064 /* Override any GCC internal prototype to avoid an error.
14065 Use char because int might match the return type of a GCC
14066 builtin and then its argument prototype would still apply. */
14071 /* The GNU C library defines this for functions which it implements
14072 to always fail with ENOSYS. Some functions are actually named
14073 something starting with __ and the normal name is an alias. */
14074 #if defined __stub_$ac_func || defined __stub___$ac_func
14081 return $ac_func ();
14086 rm -f conftest.$ac_objext conftest$ac_exeext
14087 if { (ac_try="$ac_link"
14088 case "(($ac_try" in
14089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090 *) ac_try_echo=$ac_try;;
14092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14093 $as_echo "$ac_try_echo") >&5
14094 (eval "$ac_link") 2>conftest.er1
14096 grep -v '^ *+' conftest.er1 >conftest.err
14098 cat conftest.err >&5
14099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } && {
14101 test -z "$ac_c_werror_flag" ||
14102 test ! -s conftest.err
14103 } && test -s conftest$ac_exeext && {
14104 test "$cross_compiling" = yes ||
14105 $as_test_x conftest$ac_exeext
14107 eval "$as_ac_var=yes"
14109 $as_echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14112 eval "$as_ac_var=no"
14115 rm -rf conftest.dSYM
14116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14117 conftest$ac_exeext conftest.$ac_ext
14119 ac_res=`eval 'as_val=${'$as_ac_var'}
14120 $as_echo "$as_val"'`
14121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14122 $as_echo "$ac_res" >&6; }
14123 as_val=`eval 'as_val=${'$as_ac_var'}
14124 $as_echo "$as_val"'`
14125 if test "x$as_val" = x""yes; then
14126 cat >>confdefs.h <<_ACEOF
14127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14131 case " $LIBOBJS " in
14132 *" $ac_func.$ac_objext "* ) ;;
14133 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14148 for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
14150 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14151 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14152 $as_echo_n "checking for $ac_func... " >&6; }
14153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14154 $as_echo_n "(cached) " >&6
14156 cat >conftest.$ac_ext <<_ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h. */
14162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14164 #define $ac_func innocuous_$ac_func
14166 /* System header to define __stub macros and hopefully few prototypes,
14167 which can conflict with char $ac_func (); below.
14168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14169 <limits.h> exists even on freestanding compilers. */
14172 # include <limits.h>
14174 # include <assert.h>
14179 /* Override any GCC internal prototype to avoid an error.
14180 Use char because int might match the return type of a GCC
14181 builtin and then its argument prototype would still apply. */
14186 /* The GNU C library defines this for functions which it implements
14187 to always fail with ENOSYS. Some functions are actually named
14188 something starting with __ and the normal name is an alias. */
14189 #if defined __stub_$ac_func || defined __stub___$ac_func
14196 return $ac_func ();
14201 rm -f conftest.$ac_objext conftest$ac_exeext
14202 if { (ac_try="$ac_link"
14203 case "(($ac_try" in
14204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205 *) ac_try_echo=$ac_try;;
14207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14208 $as_echo "$ac_try_echo") >&5
14209 (eval "$ac_link") 2>conftest.er1
14211 grep -v '^ *+' conftest.er1 >conftest.err
14213 cat conftest.err >&5
14214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } && {
14216 test -z "$ac_c_werror_flag" ||
14217 test ! -s conftest.err
14218 } && test -s conftest$ac_exeext && {
14219 test "$cross_compiling" = yes ||
14220 $as_test_x conftest$ac_exeext
14222 eval "$as_ac_var=yes"
14224 $as_echo "$as_me: failed program was:" >&5
14225 sed 's/^/| /' conftest.$ac_ext >&5
14227 eval "$as_ac_var=no"
14230 rm -rf conftest.dSYM
14231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14232 conftest$ac_exeext conftest.$ac_ext
14234 ac_res=`eval 'as_val=${'$as_ac_var'}
14235 $as_echo "$as_val"'`
14236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14237 $as_echo "$ac_res" >&6; }
14238 as_val=`eval 'as_val=${'$as_ac_var'}
14239 $as_echo "$as_val"'`
14240 if test "x$as_val" = x""yes; then
14241 cat >>confdefs.h <<_ACEOF
14242 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14246 case " $LIBOBJS " in
14247 *" $ac_func.$ac_objext "* ) ;;
14248 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14257 for ac_func in dprintf
14259 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14260 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14261 $as_echo_n "checking for $ac_func... " >&6; }
14262 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14263 $as_echo_n "(cached) " >&6
14265 cat >conftest.$ac_ext <<_ACEOF
14268 cat confdefs.h >>conftest.$ac_ext
14269 cat >>conftest.$ac_ext <<_ACEOF
14270 /* end confdefs.h. */
14271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14273 #define $ac_func innocuous_$ac_func
14275 /* System header to define __stub macros and hopefully few prototypes,
14276 which can conflict with char $ac_func (); below.
14277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14278 <limits.h> exists even on freestanding compilers. */
14281 # include <limits.h>
14283 # include <assert.h>
14288 /* Override any GCC internal prototype to avoid an error.
14289 Use char because int might match the return type of a GCC
14290 builtin and then its argument prototype would still apply. */
14295 /* The GNU C library defines this for functions which it implements
14296 to always fail with ENOSYS. Some functions are actually named
14297 something starting with __ and the normal name is an alias. */
14298 #if defined __stub_$ac_func || defined __stub___$ac_func
14305 return $ac_func ();
14310 rm -f conftest.$ac_objext conftest$ac_exeext
14311 if { (ac_try="$ac_link"
14312 case "(($ac_try" in
14313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14314 *) ac_try_echo=$ac_try;;
14316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14317 $as_echo "$ac_try_echo") >&5
14318 (eval "$ac_link") 2>conftest.er1
14320 grep -v '^ *+' conftest.er1 >conftest.err
14322 cat conftest.err >&5
14323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); } && {
14325 test -z "$ac_c_werror_flag" ||
14326 test ! -s conftest.err
14327 } && test -s conftest$ac_exeext && {
14328 test "$cross_compiling" = yes ||
14329 $as_test_x conftest$ac_exeext
14331 eval "$as_ac_var=yes"
14333 $as_echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14336 eval "$as_ac_var=no"
14339 rm -rf conftest.dSYM
14340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14341 conftest$ac_exeext conftest.$ac_ext
14343 ac_res=`eval 'as_val=${'$as_ac_var'}
14344 $as_echo "$as_val"'`
14345 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14346 $as_echo "$ac_res" >&6; }
14347 as_val=`eval 'as_val=${'$as_ac_var'}
14348 $as_echo "$as_val"'`
14349 if test "x$as_val" = x""yes; then
14350 cat >>confdefs.h <<_ACEOF
14351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14355 case " $LIBOBJS " in
14356 *" $ac_func.$ac_objext "* ) ;;
14357 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14366 for ac_func in strchrnul
14368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14369 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14370 $as_echo_n "checking for $ac_func... " >&6; }
14371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14372 $as_echo_n "(cached) " >&6
14374 cat >conftest.$ac_ext <<_ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14382 #define $ac_func innocuous_$ac_func
14384 /* System header to define __stub macros and hopefully few prototypes,
14385 which can conflict with char $ac_func (); below.
14386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14387 <limits.h> exists even on freestanding compilers. */
14390 # include <limits.h>
14392 # include <assert.h>
14397 /* Override any GCC internal prototype to avoid an error.
14398 Use char because int might match the return type of a GCC
14399 builtin and then its argument prototype would still apply. */
14404 /* The GNU C library defines this for functions which it implements
14405 to always fail with ENOSYS. Some functions are actually named
14406 something starting with __ and the normal name is an alias. */
14407 #if defined __stub_$ac_func || defined __stub___$ac_func
14414 return $ac_func ();
14419 rm -f conftest.$ac_objext conftest$ac_exeext
14420 if { (ac_try="$ac_link"
14421 case "(($ac_try" in
14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423 *) ac_try_echo=$ac_try;;
14425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14426 $as_echo "$ac_try_echo") >&5
14427 (eval "$ac_link") 2>conftest.er1
14429 grep -v '^ *+' conftest.er1 >conftest.err
14431 cat conftest.err >&5
14432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } && {
14434 test -z "$ac_c_werror_flag" ||
14435 test ! -s conftest.err
14436 } && test -s conftest$ac_exeext && {
14437 test "$cross_compiling" = yes ||
14438 $as_test_x conftest$ac_exeext
14440 eval "$as_ac_var=yes"
14442 $as_echo "$as_me: failed program was:" >&5
14443 sed 's/^/| /' conftest.$ac_ext >&5
14445 eval "$as_ac_var=no"
14448 rm -rf conftest.dSYM
14449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14450 conftest$ac_exeext conftest.$ac_ext
14452 ac_res=`eval 'as_val=${'$as_ac_var'}
14453 $as_echo "$as_val"'`
14454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14455 $as_echo "$ac_res" >&6; }
14456 as_val=`eval 'as_val=${'$as_ac_var'}
14457 $as_echo "$as_val"'`
14458 if test "x$as_val" = x""yes; then
14459 cat >>confdefs.h <<_ACEOF
14460 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14464 case " $LIBOBJS " in
14465 *" $ac_func.$ac_objext "* ) ;;
14466 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14475 { $as_echo "$as_me:$LINENO: checking whether confstr is declared" >&5
14476 $as_echo_n "checking whether confstr is declared... " >&6; }
14477 if test "${ac_cv_have_decl_confstr+set}" = set; then
14478 $as_echo_n "(cached) " >&6
14480 cat >conftest.$ac_ext <<_ACEOF
14483 cat confdefs.h >>conftest.$ac_ext
14484 cat >>conftest.$ac_ext <<_ACEOF
14485 /* end confdefs.h. */
14486 $ac_includes_default
14498 rm -f conftest.$ac_objext
14499 if { (ac_try="$ac_compile"
14500 case "(($ac_try" in
14501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14502 *) ac_try_echo=$ac_try;;
14504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14505 $as_echo "$ac_try_echo") >&5
14506 (eval "$ac_compile") 2>conftest.er1
14508 grep -v '^ *+' conftest.er1 >conftest.err
14510 cat conftest.err >&5
14511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } && {
14513 test -z "$ac_c_werror_flag" ||
14514 test ! -s conftest.err
14515 } && test -s conftest.$ac_objext; then
14516 ac_cv_have_decl_confstr=yes
14518 $as_echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14521 ac_cv_have_decl_confstr=no
14524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14526 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
14527 $as_echo "$ac_cv_have_decl_confstr" >&6; }
14528 if test "x$ac_cv_have_decl_confstr" = x""yes; then
14530 cat >>confdefs.h <<_ACEOF
14531 #define HAVE_DECL_CONFSTR 1
14536 cat >>confdefs.h <<_ACEOF
14537 #define HAVE_DECL_CONFSTR 0
14544 { $as_echo "$as_me:$LINENO: checking whether printf is declared" >&5
14545 $as_echo_n "checking whether printf is declared... " >&6; }
14546 if test "${ac_cv_have_decl_printf+set}" = set; then
14547 $as_echo_n "(cached) " >&6
14549 cat >conftest.$ac_ext <<_ACEOF
14552 cat confdefs.h >>conftest.$ac_ext
14553 cat >>conftest.$ac_ext <<_ACEOF
14554 /* end confdefs.h. */
14555 $ac_includes_default
14567 rm -f conftest.$ac_objext
14568 if { (ac_try="$ac_compile"
14569 case "(($ac_try" in
14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571 *) ac_try_echo=$ac_try;;
14573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14574 $as_echo "$ac_try_echo") >&5
14575 (eval "$ac_compile") 2>conftest.er1
14577 grep -v '^ *+' conftest.er1 >conftest.err
14579 cat conftest.err >&5
14580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } && {
14582 test -z "$ac_c_werror_flag" ||
14583 test ! -s conftest.err
14584 } && test -s conftest.$ac_objext; then
14585 ac_cv_have_decl_printf=yes
14587 $as_echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14590 ac_cv_have_decl_printf=no
14593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14595 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
14596 $as_echo "$ac_cv_have_decl_printf" >&6; }
14597 if test "x$ac_cv_have_decl_printf" = x""yes; then
14599 cat >>confdefs.h <<_ACEOF
14600 #define HAVE_DECL_PRINTF 1
14605 cat >>confdefs.h <<_ACEOF
14606 #define HAVE_DECL_PRINTF 0
14613 { $as_echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
14614 $as_echo_n "checking whether sbrk is declared... " >&6; }
14615 if test "${ac_cv_have_decl_sbrk+set}" = set; then
14616 $as_echo_n "(cached) " >&6
14618 cat >conftest.$ac_ext <<_ACEOF
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14624 $ac_includes_default
14636 rm -f conftest.$ac_objext
14637 if { (ac_try="$ac_compile"
14638 case "(($ac_try" in
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14643 $as_echo "$ac_try_echo") >&5
14644 (eval "$ac_compile") 2>conftest.er1
14646 grep -v '^ *+' conftest.er1 >conftest.err
14648 cat conftest.err >&5
14649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); } && {
14651 test -z "$ac_c_werror_flag" ||
14652 test ! -s conftest.err
14653 } && test -s conftest.$ac_objext; then
14654 ac_cv_have_decl_sbrk=yes
14656 $as_echo "$as_me: failed program was:" >&5
14657 sed 's/^/| /' conftest.$ac_ext >&5
14659 ac_cv_have_decl_sbrk=no
14662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14664 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
14665 $as_echo "$ac_cv_have_decl_sbrk" >&6; }
14666 if test "x$ac_cv_have_decl_sbrk" = x""yes; then
14668 cat >>confdefs.h <<_ACEOF
14669 #define HAVE_DECL_SBRK 1
14674 cat >>confdefs.h <<_ACEOF
14675 #define HAVE_DECL_SBRK 0
14682 { $as_echo "$as_me:$LINENO: checking whether setregid is declared" >&5
14683 $as_echo_n "checking whether setregid is declared... " >&6; }
14684 if test "${ac_cv_have_decl_setregid+set}" = set; then
14685 $as_echo_n "(cached) " >&6
14687 cat >conftest.$ac_ext <<_ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h. */
14693 $ac_includes_default
14705 rm -f conftest.$ac_objext
14706 if { (ac_try="$ac_compile"
14707 case "(($ac_try" in
14708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709 *) ac_try_echo=$ac_try;;
14711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14712 $as_echo "$ac_try_echo") >&5
14713 (eval "$ac_compile") 2>conftest.er1
14715 grep -v '^ *+' conftest.er1 >conftest.err
14717 cat conftest.err >&5
14718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); } && {
14720 test -z "$ac_c_werror_flag" ||
14721 test ! -s conftest.err
14722 } && test -s conftest.$ac_objext; then
14723 ac_cv_have_decl_setregid=yes
14725 $as_echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14728 ac_cv_have_decl_setregid=no
14731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14733 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
14734 $as_echo "$ac_cv_have_decl_setregid" >&6; }
14735 if test "x$ac_cv_have_decl_setregid" = x""yes; then
14737 cat >>confdefs.h <<_ACEOF
14738 #define HAVE_DECL_SETREGID 1
14743 cat >>confdefs.h <<_ACEOF
14744 #define HAVE_DECL_SETREGID 0
14751 { $as_echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
14752 $as_echo_n "checking whether strcpy is declared... " >&6; }
14753 if test "${ac_cv_have_decl_strcpy+set}" = set; then
14754 $as_echo_n "(cached) " >&6
14756 cat >conftest.$ac_ext <<_ACEOF
14759 cat confdefs.h >>conftest.$ac_ext
14760 cat >>conftest.$ac_ext <<_ACEOF
14761 /* end confdefs.h. */
14762 $ac_includes_default
14774 rm -f conftest.$ac_objext
14775 if { (ac_try="$ac_compile"
14776 case "(($ac_try" in
14777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14778 *) ac_try_echo=$ac_try;;
14780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14781 $as_echo "$ac_try_echo") >&5
14782 (eval "$ac_compile") 2>conftest.er1
14784 grep -v '^ *+' conftest.er1 >conftest.err
14786 cat conftest.err >&5
14787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } && {
14789 test -z "$ac_c_werror_flag" ||
14790 test ! -s conftest.err
14791 } && test -s conftest.$ac_objext; then
14792 ac_cv_have_decl_strcpy=yes
14794 $as_echo "$as_me: failed program was:" >&5
14795 sed 's/^/| /' conftest.$ac_ext >&5
14797 ac_cv_have_decl_strcpy=no
14800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14802 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
14803 $as_echo "$ac_cv_have_decl_strcpy" >&6; }
14804 if test "x$ac_cv_have_decl_strcpy" = x""yes; then
14806 cat >>confdefs.h <<_ACEOF
14807 #define HAVE_DECL_STRCPY 1
14812 cat >>confdefs.h <<_ACEOF
14813 #define HAVE_DECL_STRCPY 0
14820 { $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
14821 $as_echo_n "checking whether strsignal is declared... " >&6; }
14822 if test "${ac_cv_have_decl_strsignal+set}" = set; then
14823 $as_echo_n "(cached) " >&6
14825 cat >conftest.$ac_ext <<_ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14831 $ac_includes_default
14843 rm -f conftest.$ac_objext
14844 if { (ac_try="$ac_compile"
14845 case "(($ac_try" in
14846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847 *) ac_try_echo=$ac_try;;
14849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14850 $as_echo "$ac_try_echo") >&5
14851 (eval "$ac_compile") 2>conftest.er1
14853 grep -v '^ *+' conftest.er1 >conftest.err
14855 cat conftest.err >&5
14856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } && {
14858 test -z "$ac_c_werror_flag" ||
14859 test ! -s conftest.err
14860 } && test -s conftest.$ac_objext; then
14861 ac_cv_have_decl_strsignal=yes
14863 $as_echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14866 ac_cv_have_decl_strsignal=no
14869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14871 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
14872 $as_echo "$ac_cv_have_decl_strsignal" >&6; }
14873 if test "x$ac_cv_have_decl_strsignal" = x""yes; then
14875 cat >>confdefs.h <<_ACEOF
14876 #define HAVE_DECL_STRSIGNAL 1
14881 cat >>confdefs.h <<_ACEOF
14882 #define HAVE_DECL_STRSIGNAL 0
14890 { $as_echo "$as_me:$LINENO: checking whether strtold is declared" >&5
14891 $as_echo_n "checking whether strtold is declared... " >&6; }
14892 if test "${ac_cv_have_decl_strtold+set}" = set; then
14893 $as_echo_n "(cached) " >&6
14895 cat >conftest.$ac_ext <<_ACEOF
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h. */
14901 $ac_includes_default
14913 rm -f conftest.$ac_objext
14914 if { (ac_try="$ac_compile"
14915 case "(($ac_try" in
14916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14917 *) ac_try_echo=$ac_try;;
14919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14920 $as_echo "$ac_try_echo") >&5
14921 (eval "$ac_compile") 2>conftest.er1
14923 grep -v '^ *+' conftest.er1 >conftest.err
14925 cat conftest.err >&5
14926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } && {
14928 test -z "$ac_c_werror_flag" ||
14929 test ! -s conftest.err
14930 } && test -s conftest.$ac_objext; then
14931 ac_cv_have_decl_strtold=yes
14933 $as_echo "$as_me: failed program was:" >&5
14934 sed 's/^/| /' conftest.$ac_ext >&5
14936 ac_cv_have_decl_strtold=no
14939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14941 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
14942 $as_echo "$ac_cv_have_decl_strtold" >&6; }
14943 if test "x$ac_cv_have_decl_strtold" = x""yes; then
14945 cat >>confdefs.h <<_ACEOF
14946 #define HAVE_DECL_STRTOLD 1
14950 { $as_echo "$as_me:$LINENO: checking for broken strtold" >&5
14951 $as_echo_n "checking for broken strtold... " >&6; }
14952 if test "${bash_cv_strtold_broken+set}" = set; then
14953 $as_echo_n "(cached) " >&6
14955 cat >conftest.$ac_ext <<_ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14961 #include <stdlib.h>
14965 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
14970 rm -f conftest.$ac_objext
14971 if { (ac_try="$ac_compile"
14972 case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14977 $as_echo "$ac_try_echo") >&5
14978 (eval "$ac_compile") 2>conftest.er1
14980 grep -v '^ *+' conftest.er1 >conftest.err
14982 cat conftest.err >&5
14983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } && {
14985 test -z "$ac_c_werror_flag" ||
14986 test ! -s conftest.err
14987 } && test -s conftest.$ac_objext; then
14988 bash_cv_strtold_broken=no
14990 $as_echo "$as_me: failed program was:" >&5
14991 sed 's/^/| /' conftest.$ac_ext >&5
14993 bash_cv_strtold_broken=yes
14996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15001 { $as_echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
15002 $as_echo "$bash_cv_strtold_broken" >&6; }
15003 if test "$bash_cv_strtold_broken" = "yes" ; then
15004 cat >>confdefs.h <<\_ACEOF
15005 #define STRTOLD_BROKEN 1
15011 cat >>confdefs.h <<_ACEOF
15012 #define HAVE_DECL_STRTOLD 0
15024 { $as_echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
15025 $as_echo_n "checking for declaration of strtoimax... " >&6; }
15026 if test "${bash_cv_decl_strtoimax+set}" = set; then
15027 $as_echo_n "(cached) " >&6
15029 cat >conftest.$ac_ext <<_ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15037 # include <stdlib.h>
15039 #if HAVE_INTTYPES_H
15040 # include <inttypes.h>
15051 rm -f conftest.$ac_objext conftest$ac_exeext
15052 if { (ac_try="$ac_link"
15053 case "(($ac_try" in
15054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055 *) ac_try_echo=$ac_try;;
15057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15058 $as_echo "$ac_try_echo") >&5
15059 (eval "$ac_link") 2>conftest.er1
15061 grep -v '^ *+' conftest.er1 >conftest.err
15063 cat conftest.err >&5
15064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } && {
15066 test -z "$ac_c_werror_flag" ||
15067 test ! -s conftest.err
15068 } && test -s conftest$ac_exeext && {
15069 test "$cross_compiling" = yes ||
15070 $as_test_x conftest$ac_exeext
15072 bash_cv_decl_strtoimax=yes
15074 $as_echo "$as_me: failed program was:" >&5
15075 sed 's/^/| /' conftest.$ac_ext >&5
15077 bash_cv_decl_strtoimax=no
15080 rm -rf conftest.dSYM
15081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15082 conftest$ac_exeext conftest.$ac_ext
15084 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
15085 $as_echo "$bash_cv_decl_strtoimax" >&6; }
15086 bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15087 if test $bash_cv_decl_strtoimax = yes; then
15088 cat >>confdefs.h <<_ACEOF
15089 #define $bash_tr_func 1
15093 cat >>confdefs.h <<_ACEOF
15094 #define $bash_tr_func 0
15102 { $as_echo "$as_me:$LINENO: checking for declaration of strtol" >&5
15103 $as_echo_n "checking for declaration of strtol... " >&6; }
15104 if test "${bash_cv_decl_strtol+set}" = set; then
15105 $as_echo_n "(cached) " >&6
15107 cat >conftest.$ac_ext <<_ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15115 # include <stdlib.h>
15117 #if HAVE_INTTYPES_H
15118 # include <inttypes.h>
15129 rm -f conftest.$ac_objext conftest$ac_exeext
15130 if { (ac_try="$ac_link"
15131 case "(($ac_try" in
15132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133 *) ac_try_echo=$ac_try;;
15135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15136 $as_echo "$ac_try_echo") >&5
15137 (eval "$ac_link") 2>conftest.er1
15139 grep -v '^ *+' conftest.er1 >conftest.err
15141 cat conftest.err >&5
15142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } && {
15144 test -z "$ac_c_werror_flag" ||
15145 test ! -s conftest.err
15146 } && test -s conftest$ac_exeext && {
15147 test "$cross_compiling" = yes ||
15148 $as_test_x conftest$ac_exeext
15150 bash_cv_decl_strtol=yes
15152 $as_echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15155 bash_cv_decl_strtol=no
15158 rm -rf conftest.dSYM
15159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15160 conftest$ac_exeext conftest.$ac_ext
15162 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
15163 $as_echo "$bash_cv_decl_strtol" >&6; }
15164 bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15165 if test $bash_cv_decl_strtol = yes; then
15166 cat >>confdefs.h <<_ACEOF
15167 #define $bash_tr_func 1
15171 cat >>confdefs.h <<_ACEOF
15172 #define $bash_tr_func 0
15180 { $as_echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
15181 $as_echo_n "checking for declaration of strtoll... " >&6; }
15182 if test "${bash_cv_decl_strtoll+set}" = set; then
15183 $as_echo_n "(cached) " >&6
15185 cat >conftest.$ac_ext <<_ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15193 # include <stdlib.h>
15195 #if HAVE_INTTYPES_H
15196 # include <inttypes.h>
15207 rm -f conftest.$ac_objext conftest$ac_exeext
15208 if { (ac_try="$ac_link"
15209 case "(($ac_try" in
15210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15211 *) ac_try_echo=$ac_try;;
15213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15214 $as_echo "$ac_try_echo") >&5
15215 (eval "$ac_link") 2>conftest.er1
15217 grep -v '^ *+' conftest.er1 >conftest.err
15219 cat conftest.err >&5
15220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); } && {
15222 test -z "$ac_c_werror_flag" ||
15223 test ! -s conftest.err
15224 } && test -s conftest$ac_exeext && {
15225 test "$cross_compiling" = yes ||
15226 $as_test_x conftest$ac_exeext
15228 bash_cv_decl_strtoll=yes
15230 $as_echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15233 bash_cv_decl_strtoll=no
15236 rm -rf conftest.dSYM
15237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15238 conftest$ac_exeext conftest.$ac_ext
15240 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
15241 $as_echo "$bash_cv_decl_strtoll" >&6; }
15242 bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15243 if test $bash_cv_decl_strtoll = yes; then
15244 cat >>confdefs.h <<_ACEOF
15245 #define $bash_tr_func 1
15249 cat >>confdefs.h <<_ACEOF
15250 #define $bash_tr_func 0
15258 { $as_echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
15259 $as_echo_n "checking for declaration of strtoul... " >&6; }
15260 if test "${bash_cv_decl_strtoul+set}" = set; then
15261 $as_echo_n "(cached) " >&6
15263 cat >conftest.$ac_ext <<_ACEOF
15266 cat confdefs.h >>conftest.$ac_ext
15267 cat >>conftest.$ac_ext <<_ACEOF
15268 /* end confdefs.h. */
15271 # include <stdlib.h>
15273 #if HAVE_INTTYPES_H
15274 # include <inttypes.h>
15285 rm -f conftest.$ac_objext conftest$ac_exeext
15286 if { (ac_try="$ac_link"
15287 case "(($ac_try" in
15288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15289 *) ac_try_echo=$ac_try;;
15291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15292 $as_echo "$ac_try_echo") >&5
15293 (eval "$ac_link") 2>conftest.er1
15295 grep -v '^ *+' conftest.er1 >conftest.err
15297 cat conftest.err >&5
15298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } && {
15300 test -z "$ac_c_werror_flag" ||
15301 test ! -s conftest.err
15302 } && test -s conftest$ac_exeext && {
15303 test "$cross_compiling" = yes ||
15304 $as_test_x conftest$ac_exeext
15306 bash_cv_decl_strtoul=yes
15308 $as_echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.$ac_ext >&5
15311 bash_cv_decl_strtoul=no
15314 rm -rf conftest.dSYM
15315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15316 conftest$ac_exeext conftest.$ac_ext
15318 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
15319 $as_echo "$bash_cv_decl_strtoul" >&6; }
15320 bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15321 if test $bash_cv_decl_strtoul = yes; then
15322 cat >>confdefs.h <<_ACEOF
15323 #define $bash_tr_func 1
15327 cat >>confdefs.h <<_ACEOF
15328 #define $bash_tr_func 0
15336 { $as_echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
15337 $as_echo_n "checking for declaration of strtoull... " >&6; }
15338 if test "${bash_cv_decl_strtoull+set}" = set; then
15339 $as_echo_n "(cached) " >&6
15341 cat >conftest.$ac_ext <<_ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15349 # include <stdlib.h>
15351 #if HAVE_INTTYPES_H
15352 # include <inttypes.h>
15363 rm -f conftest.$ac_objext conftest$ac_exeext
15364 if { (ac_try="$ac_link"
15365 case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15370 $as_echo "$ac_try_echo") >&5
15371 (eval "$ac_link") 2>conftest.er1
15373 grep -v '^ *+' conftest.er1 >conftest.err
15375 cat conftest.err >&5
15376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } && {
15378 test -z "$ac_c_werror_flag" ||
15379 test ! -s conftest.err
15380 } && test -s conftest$ac_exeext && {
15381 test "$cross_compiling" = yes ||
15382 $as_test_x conftest$ac_exeext
15384 bash_cv_decl_strtoull=yes
15386 $as_echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15389 bash_cv_decl_strtoull=no
15392 rm -rf conftest.dSYM
15393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15394 conftest$ac_exeext conftest.$ac_ext
15396 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
15397 $as_echo "$bash_cv_decl_strtoull" >&6; }
15398 bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15399 if test $bash_cv_decl_strtoull = yes; then
15400 cat >>confdefs.h <<_ACEOF
15401 #define $bash_tr_func 1
15405 cat >>confdefs.h <<_ACEOF
15406 #define $bash_tr_func 0
15414 { $as_echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
15415 $as_echo_n "checking for declaration of strtoumax... " >&6; }
15416 if test "${bash_cv_decl_strtoumax+set}" = set; then
15417 $as_echo_n "(cached) " >&6
15419 cat >conftest.$ac_ext <<_ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h. */
15427 # include <stdlib.h>
15429 #if HAVE_INTTYPES_H
15430 # include <inttypes.h>
15441 rm -f conftest.$ac_objext conftest$ac_exeext
15442 if { (ac_try="$ac_link"
15443 case "(($ac_try" in
15444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445 *) ac_try_echo=$ac_try;;
15447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15448 $as_echo "$ac_try_echo") >&5
15449 (eval "$ac_link") 2>conftest.er1
15451 grep -v '^ *+' conftest.er1 >conftest.err
15453 cat conftest.err >&5
15454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } && {
15456 test -z "$ac_c_werror_flag" ||
15457 test ! -s conftest.err
15458 } && test -s conftest$ac_exeext && {
15459 test "$cross_compiling" = yes ||
15460 $as_test_x conftest$ac_exeext
15462 bash_cv_decl_strtoumax=yes
15464 $as_echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15467 bash_cv_decl_strtoumax=no
15470 rm -rf conftest.dSYM
15471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15472 conftest$ac_exeext conftest.$ac_ext
15474 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
15475 $as_echo "$bash_cv_decl_strtoumax" >&6; }
15476 bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15477 if test $bash_cv_decl_strtoumax = yes; then
15478 cat >>confdefs.h <<_ACEOF
15479 #define $bash_tr_func 1
15483 cat >>confdefs.h <<_ACEOF
15484 #define $bash_tr_func 0
15494 for ac_header in $ac_header_list
15496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15498 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15499 $as_echo_n "checking for $ac_header... " >&6; }
15500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15501 $as_echo_n "(cached) " >&6
15503 ac_res=`eval 'as_val=${'$as_ac_Header'}
15504 $as_echo "$as_val"'`
15505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15506 $as_echo "$ac_res" >&6; }
15508 # Is the header compilable?
15509 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15510 $as_echo_n "checking $ac_header usability... " >&6; }
15511 cat >conftest.$ac_ext <<_ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h. */
15517 $ac_includes_default
15518 #include <$ac_header>
15520 rm -f conftest.$ac_objext
15521 if { (ac_try="$ac_compile"
15522 case "(($ac_try" in
15523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15524 *) ac_try_echo=$ac_try;;
15526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15527 $as_echo "$ac_try_echo") >&5
15528 (eval "$ac_compile") 2>conftest.er1
15530 grep -v '^ *+' conftest.er1 >conftest.err
15532 cat conftest.err >&5
15533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } && {
15535 test -z "$ac_c_werror_flag" ||
15536 test ! -s conftest.err
15537 } && test -s conftest.$ac_objext; then
15538 ac_header_compiler=yes
15540 $as_echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15543 ac_header_compiler=no
15546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15547 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15548 $as_echo "$ac_header_compiler" >&6; }
15550 # Is the header present?
15551 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15552 $as_echo_n "checking $ac_header presence... " >&6; }
15553 cat >conftest.$ac_ext <<_ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15559 #include <$ac_header>
15561 if { (ac_try="$ac_cpp conftest.$ac_ext"
15562 case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15567 $as_echo "$ac_try_echo") >&5
15568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15570 grep -v '^ *+' conftest.er1 >conftest.err
15572 cat conftest.err >&5
15573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } >/dev/null && {
15575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15576 test ! -s conftest.err
15578 ac_header_preproc=yes
15580 $as_echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.$ac_ext >&5
15583 ac_header_preproc=no
15586 rm -f conftest.err conftest.$ac_ext
15587 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15588 $as_echo "$ac_header_preproc" >&6; }
15590 # So? What about this header?
15591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15594 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15596 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15597 ac_header_preproc=yes
15600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15601 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15603 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15605 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15607 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15609 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15611 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15613 ## ------------------------------- ##
15614 ## Report this to bug-bash@gnu.org ##
15615 ## ------------------------------- ##
15617 ) | sed "s/^/$as_me: WARNING: /" >&2
15620 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15621 $as_echo_n "checking for $ac_header... " >&6; }
15622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15623 $as_echo_n "(cached) " >&6
15625 eval "$as_ac_Header=\$ac_header_preproc"
15627 ac_res=`eval 'as_val=${'$as_ac_Header'}
15628 $as_echo "$as_val"'`
15629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15630 $as_echo "$ac_res" >&6; }
15633 as_val=`eval 'as_val=${'$as_ac_Header'}
15634 $as_echo "$as_val"'`
15635 if test "x$as_val" = x""yes; then
15636 cat >>confdefs.h <<_ACEOF
15637 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15652 for ac_func in $ac_func_list
15654 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15655 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15656 $as_echo_n "checking for $ac_func... " >&6; }
15657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15658 $as_echo_n "(cached) " >&6
15660 cat >conftest.$ac_ext <<_ACEOF
15663 cat confdefs.h >>conftest.$ac_ext
15664 cat >>conftest.$ac_ext <<_ACEOF
15665 /* end confdefs.h. */
15666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15668 #define $ac_func innocuous_$ac_func
15670 /* System header to define __stub macros and hopefully few prototypes,
15671 which can conflict with char $ac_func (); below.
15672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15673 <limits.h> exists even on freestanding compilers. */
15676 # include <limits.h>
15678 # include <assert.h>
15683 /* Override any GCC internal prototype to avoid an error.
15684 Use char because int might match the return type of a GCC
15685 builtin and then its argument prototype would still apply. */
15690 /* The GNU C library defines this for functions which it implements
15691 to always fail with ENOSYS. Some functions are actually named
15692 something starting with __ and the normal name is an alias. */
15693 #if defined __stub_$ac_func || defined __stub___$ac_func
15700 return $ac_func ();
15705 rm -f conftest.$ac_objext conftest$ac_exeext
15706 if { (ac_try="$ac_link"
15707 case "(($ac_try" in
15708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709 *) ac_try_echo=$ac_try;;
15711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15712 $as_echo "$ac_try_echo") >&5
15713 (eval "$ac_link") 2>conftest.er1
15715 grep -v '^ *+' conftest.er1 >conftest.err
15717 cat conftest.err >&5
15718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); } && {
15720 test -z "$ac_c_werror_flag" ||
15721 test ! -s conftest.err
15722 } && test -s conftest$ac_exeext && {
15723 test "$cross_compiling" = yes ||
15724 $as_test_x conftest$ac_exeext
15726 eval "$as_ac_var=yes"
15728 $as_echo "$as_me: failed program was:" >&5
15729 sed 's/^/| /' conftest.$ac_ext >&5
15731 eval "$as_ac_var=no"
15734 rm -rf conftest.dSYM
15735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15736 conftest$ac_exeext conftest.$ac_ext
15738 ac_res=`eval 'as_val=${'$as_ac_var'}
15739 $as_echo "$as_val"'`
15740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15741 $as_echo "$ac_res" >&6; }
15742 as_val=`eval 'as_val=${'$as_ac_var'}
15743 $as_echo "$as_val"'`
15744 if test "x$as_val" = x""yes; then
15745 cat >>confdefs.h <<_ACEOF
15746 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15768 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
15769 $as_echo_n "checking for working mktime... " >&6; }
15770 if test "${ac_cv_func_working_mktime+set}" = set; then
15771 $as_echo_n "(cached) " >&6
15773 if test "$cross_compiling" = yes; then
15774 ac_cv_func_working_mktime=no
15776 cat >conftest.$ac_ext <<_ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h. */
15782 /* Test program from Paul Eggert and Tony Leneis. */
15783 #ifdef TIME_WITH_SYS_TIME
15784 # include <sys/time.h>
15787 # ifdef HAVE_SYS_TIME_H
15788 # include <sys/time.h>
15794 #include <limits.h>
15795 #include <stdlib.h>
15797 #ifdef HAVE_UNISTD_H
15798 # include <unistd.h>
15802 # define alarm(X) /* empty */
15805 /* Work around redefinition to rpl_putenv by other config tests. */
15808 static time_t time_t_max;
15809 static time_t time_t_min;
15811 /* Values we'll use to set the TZ environment variable. */
15812 static char *tz_strings[] = {
15813 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15814 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15816 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15818 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15819 Based on a problem report from Andreas Jaeger. */
15821 spring_forward_gap ()
15823 /* glibc (up to about 1998-10-07) failed this test. */
15826 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15827 instead of "TZ=America/Vancouver" in order to detect the bug even
15828 on systems that don't support the Olson extension, or don't have the
15829 full zoneinfo tables installed. */
15830 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15839 return mktime (&tm) != (time_t) -1;
15847 return ! (lt = localtime (&now)) || mktime (lt) == now;
15854 return (mktime_test1 (now)
15855 && mktime_test1 ((time_t) (time_t_max - now))
15856 && mktime_test1 ((time_t) (time_t_min + now)));
15862 /* Based on code from Ariel Faigon. */
15872 return tm.tm_mon == 2 && tm.tm_mday == 31;
15881 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15882 now = mktime (&tm);
15883 if (now != (time_t) -1)
15885 struct tm *lt = localtime (&now);
15887 && lt->tm_year == tm.tm_year
15888 && lt->tm_mon == tm.tm_mon
15889 && lt->tm_mday == tm.tm_mday
15890 && lt->tm_hour == tm.tm_hour
15891 && lt->tm_min == tm.tm_min
15892 && lt->tm_sec == tm.tm_sec
15893 && lt->tm_yday == tm.tm_yday
15894 && lt->tm_wday == tm.tm_wday
15895 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15896 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15905 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15906 ignoring leap seconds. */
15907 unsigned long int answer = 2527315200UL;
15911 tm.tm_year = 2050 - 1900;
15914 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15917 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15918 instead of "TZ=America/Vancouver" in order to detect the bug even
15919 on systems that don't support the Olson extension, or don't have the
15920 full zoneinfo tables installed. */
15921 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15925 /* Check that the result is either a failure, or close enough
15926 to the correct answer that we can assume the discrepancy is
15927 due to leap seconds. */
15928 return (t == (time_t) -1
15929 || (0 < t && answer - 120 <= t && t <= answer + 120));
15938 /* This test makes some buggy mktime implementations loop.
15939 Give up after 60 seconds; a mktime slower than that
15940 isn't worth using anyway. */
15945 t = (time_t_max << 1) + 1;
15946 if (t <= time_t_max)
15950 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
15952 delta = time_t_max / 997; /* a suitable prime number */
15953 for (i = 0; i < N_STRINGS; i++)
15956 putenv (tz_strings[i]);
15958 for (t = 0; t <= time_t_max - delta; t += delta)
15959 if (! mktime_test (t))
15961 if (! (mktime_test ((time_t) 1)
15962 && mktime_test ((time_t) (60 * 60))
15963 && mktime_test ((time_t) (60 * 60 * 24))))
15966 for (j = 1; ; j <<= 1)
15967 if (! bigtime_test (j))
15969 else if (INT_MAX / 2 < j)
15971 if (! bigtime_test (INT_MAX))
15974 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15977 rm -f conftest$ac_exeext
15978 if { (ac_try="$ac_link"
15979 case "(($ac_try" in
15980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981 *) ac_try_echo=$ac_try;;
15983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15984 $as_echo "$ac_try_echo") >&5
15985 (eval "$ac_link") 2>&5
15987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15989 { (case "(($ac_try" in
15990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15991 *) ac_try_echo=$ac_try;;
15993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15994 $as_echo "$ac_try_echo") >&5
15995 (eval "$ac_try") 2>&5
15997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }; }; then
15999 ac_cv_func_working_mktime=yes
16001 $as_echo "$as_me: program exited with status $ac_status" >&5
16002 $as_echo "$as_me: failed program was:" >&5
16003 sed 's/^/| /' conftest.$ac_ext >&5
16005 ( exit $ac_status )
16006 ac_cv_func_working_mktime=no
16008 rm -rf conftest.dSYM
16009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16014 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16015 $as_echo "$ac_cv_func_working_mktime" >&6; }
16016 if test $ac_cv_func_working_mktime = no; then
16017 case " $LIBOBJS " in
16018 *" mktime.$ac_objext "* ) ;;
16019 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16032 for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
16034 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16036 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16037 $as_echo_n "checking for $ac_header... " >&6; }
16038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16039 $as_echo_n "(cached) " >&6
16041 ac_res=`eval 'as_val=${'$as_ac_Header'}
16042 $as_echo "$as_val"'`
16043 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16044 $as_echo "$ac_res" >&6; }
16046 # Is the header compilable?
16047 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16048 $as_echo_n "checking $ac_header usability... " >&6; }
16049 cat >conftest.$ac_ext <<_ACEOF
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h. */
16055 $ac_includes_default
16056 #include <$ac_header>
16058 rm -f conftest.$ac_objext
16059 if { (ac_try="$ac_compile"
16060 case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16065 $as_echo "$ac_try_echo") >&5
16066 (eval "$ac_compile") 2>conftest.er1
16068 grep -v '^ *+' conftest.er1 >conftest.err
16070 cat conftest.err >&5
16071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); } && {
16073 test -z "$ac_c_werror_flag" ||
16074 test ! -s conftest.err
16075 } && test -s conftest.$ac_objext; then
16076 ac_header_compiler=yes
16078 $as_echo "$as_me: failed program was:" >&5
16079 sed 's/^/| /' conftest.$ac_ext >&5
16081 ac_header_compiler=no
16084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16085 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16086 $as_echo "$ac_header_compiler" >&6; }
16088 # Is the header present?
16089 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16090 $as_echo_n "checking $ac_header presence... " >&6; }
16091 cat >conftest.$ac_ext <<_ACEOF
16094 cat confdefs.h >>conftest.$ac_ext
16095 cat >>conftest.$ac_ext <<_ACEOF
16096 /* end confdefs.h. */
16097 #include <$ac_header>
16099 if { (ac_try="$ac_cpp conftest.$ac_ext"
16100 case "(($ac_try" in
16101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16102 *) ac_try_echo=$ac_try;;
16104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16105 $as_echo "$ac_try_echo") >&5
16106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16108 grep -v '^ *+' conftest.er1 >conftest.err
16110 cat conftest.err >&5
16111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); } >/dev/null && {
16113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16114 test ! -s conftest.err
16116 ac_header_preproc=yes
16118 $as_echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16121 ac_header_preproc=no
16124 rm -f conftest.err conftest.$ac_ext
16125 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16126 $as_echo "$ac_header_preproc" >&6; }
16128 # So? What about this header?
16129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16132 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16134 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16135 ac_header_preproc=yes
16138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16139 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16141 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16143 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16145 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16147 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16149 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16151 ## ------------------------------- ##
16152 ## Report this to bug-bash@gnu.org ##
16153 ## ------------------------------- ##
16155 ) | sed "s/^/$as_me: WARNING: /" >&2
16158 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16159 $as_echo_n "checking for $ac_header... " >&6; }
16160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16161 $as_echo_n "(cached) " >&6
16163 eval "$as_ac_Header=\$ac_header_preproc"
16165 ac_res=`eval 'as_val=${'$as_ac_Header'}
16166 $as_echo "$as_val"'`
16167 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16168 $as_echo "$ac_res" >&6; }
16171 as_val=`eval 'as_val=${'$as_ac_Header'}
16172 $as_echo "$as_val"'`
16173 if test "x$as_val" = x""yes; then
16174 cat >>confdefs.h <<_ACEOF
16175 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16185 for ac_header in stdlib.h unistd.h
16187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16189 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16190 $as_echo_n "checking for $ac_header... " >&6; }
16191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16192 $as_echo_n "(cached) " >&6
16194 ac_res=`eval 'as_val=${'$as_ac_Header'}
16195 $as_echo "$as_val"'`
16196 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16197 $as_echo "$ac_res" >&6; }
16199 # Is the header compilable?
16200 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16201 $as_echo_n "checking $ac_header usability... " >&6; }
16202 cat >conftest.$ac_ext <<_ACEOF
16205 cat confdefs.h >>conftest.$ac_ext
16206 cat >>conftest.$ac_ext <<_ACEOF
16207 /* end confdefs.h. */
16208 $ac_includes_default
16209 #include <$ac_header>
16211 rm -f conftest.$ac_objext
16212 if { (ac_try="$ac_compile"
16213 case "(($ac_try" in
16214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215 *) ac_try_echo=$ac_try;;
16217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16218 $as_echo "$ac_try_echo") >&5
16219 (eval "$ac_compile") 2>conftest.er1
16221 grep -v '^ *+' conftest.er1 >conftest.err
16223 cat conftest.err >&5
16224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); } && {
16226 test -z "$ac_c_werror_flag" ||
16227 test ! -s conftest.err
16228 } && test -s conftest.$ac_objext; then
16229 ac_header_compiler=yes
16231 $as_echo "$as_me: failed program was:" >&5
16232 sed 's/^/| /' conftest.$ac_ext >&5
16234 ac_header_compiler=no
16237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16238 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16239 $as_echo "$ac_header_compiler" >&6; }
16241 # Is the header present?
16242 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16243 $as_echo_n "checking $ac_header presence... " >&6; }
16244 cat >conftest.$ac_ext <<_ACEOF
16247 cat confdefs.h >>conftest.$ac_ext
16248 cat >>conftest.$ac_ext <<_ACEOF
16249 /* end confdefs.h. */
16250 #include <$ac_header>
16252 if { (ac_try="$ac_cpp conftest.$ac_ext"
16253 case "(($ac_try" in
16254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255 *) ac_try_echo=$ac_try;;
16257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16258 $as_echo "$ac_try_echo") >&5
16259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16261 grep -v '^ *+' conftest.er1 >conftest.err
16263 cat conftest.err >&5
16264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } >/dev/null && {
16266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16267 test ! -s conftest.err
16269 ac_header_preproc=yes
16271 $as_echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.$ac_ext >&5
16274 ac_header_preproc=no
16277 rm -f conftest.err conftest.$ac_ext
16278 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16279 $as_echo "$ac_header_preproc" >&6; }
16281 # So? What about this header?
16282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16285 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16287 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16288 ac_header_preproc=yes
16291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16292 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16294 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16296 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16298 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16300 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16302 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16304 ## ------------------------------- ##
16305 ## Report this to bug-bash@gnu.org ##
16306 ## ------------------------------- ##
16308 ) | sed "s/^/$as_me: WARNING: /" >&2
16311 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16312 $as_echo_n "checking for $ac_header... " >&6; }
16313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16314 $as_echo_n "(cached) " >&6
16316 eval "$as_ac_Header=\$ac_header_preproc"
16318 ac_res=`eval 'as_val=${'$as_ac_Header'}
16319 $as_echo "$as_val"'`
16320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16321 $as_echo "$ac_res" >&6; }
16324 as_val=`eval 'as_val=${'$as_ac_Header'}
16325 $as_echo "$as_val"'`
16326 if test "x$as_val" = x""yes; then
16327 cat >>confdefs.h <<_ACEOF
16328 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16336 for ac_func in getpagesize
16338 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16339 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16340 $as_echo_n "checking for $ac_func... " >&6; }
16341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16342 $as_echo_n "(cached) " >&6
16344 cat >conftest.$ac_ext <<_ACEOF
16347 cat confdefs.h >>conftest.$ac_ext
16348 cat >>conftest.$ac_ext <<_ACEOF
16349 /* end confdefs.h. */
16350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16352 #define $ac_func innocuous_$ac_func
16354 /* System header to define __stub macros and hopefully few prototypes,
16355 which can conflict with char $ac_func (); below.
16356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16357 <limits.h> exists even on freestanding compilers. */
16360 # include <limits.h>
16362 # include <assert.h>
16367 /* Override any GCC internal prototype to avoid an error.
16368 Use char because int might match the return type of a GCC
16369 builtin and then its argument prototype would still apply. */
16374 /* The GNU C library defines this for functions which it implements
16375 to always fail with ENOSYS. Some functions are actually named
16376 something starting with __ and the normal name is an alias. */
16377 #if defined __stub_$ac_func || defined __stub___$ac_func
16384 return $ac_func ();
16389 rm -f conftest.$ac_objext conftest$ac_exeext
16390 if { (ac_try="$ac_link"
16391 case "(($ac_try" in
16392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393 *) ac_try_echo=$ac_try;;
16395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16396 $as_echo "$ac_try_echo") >&5
16397 (eval "$ac_link") 2>conftest.er1
16399 grep -v '^ *+' conftest.er1 >conftest.err
16401 cat conftest.err >&5
16402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } && {
16404 test -z "$ac_c_werror_flag" ||
16405 test ! -s conftest.err
16406 } && test -s conftest$ac_exeext && {
16407 test "$cross_compiling" = yes ||
16408 $as_test_x conftest$ac_exeext
16410 eval "$as_ac_var=yes"
16412 $as_echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16415 eval "$as_ac_var=no"
16418 rm -rf conftest.dSYM
16419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16420 conftest$ac_exeext conftest.$ac_ext
16422 ac_res=`eval 'as_val=${'$as_ac_var'}
16423 $as_echo "$as_val"'`
16424 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16425 $as_echo "$ac_res" >&6; }
16426 as_val=`eval 'as_val=${'$as_ac_var'}
16427 $as_echo "$as_val"'`
16428 if test "x$as_val" = x""yes; then
16429 cat >>confdefs.h <<_ACEOF
16430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16436 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
16437 $as_echo_n "checking for working mmap... " >&6; }
16438 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16439 $as_echo_n "(cached) " >&6
16441 if test "$cross_compiling" = yes; then
16442 ac_cv_func_mmap_fixed_mapped=no
16444 cat >conftest.$ac_ext <<_ACEOF
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h. */
16450 $ac_includes_default
16451 /* malloc might have been renamed as rpl_malloc. */
16454 /* Thanks to Mike Haertel and Jim Avera for this test.
16455 Here is a matrix of mmap possibilities:
16456 mmap private not fixed
16457 mmap private fixed at somewhere currently unmapped
16458 mmap private fixed at somewhere already mapped
16459 mmap shared not fixed
16460 mmap shared fixed at somewhere currently unmapped
16461 mmap shared fixed at somewhere already mapped
16462 For private mappings, we should verify that changes cannot be read()
16463 back from the file, nor mmap's back from the file at a different
16464 address. (There have been systems where private was not correctly
16465 implemented like the infamous i386 svr4.0, and systems where the
16466 VM page cache was not coherent with the file system buffer cache
16467 like early versions of FreeBSD and possibly contemporary NetBSD.)
16468 For shared mappings, we should conversely verify that changes get
16469 propagated back to all the places they're supposed to be.
16471 Grep wants private fixed already mapped.
16472 The main things grep needs to know about mmap are:
16473 * does it exist and is it safe to write into the mmap'd area
16474 * how to use it (BSD variants) */
16477 #include <sys/mman.h>
16479 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16483 /* This mess was copied from the GNU getpagesize.h. */
16484 #ifndef HAVE_GETPAGESIZE
16485 /* Assume that all systems that can run configure have sys/param.h. */
16486 # ifndef HAVE_SYS_PARAM_H
16487 # define HAVE_SYS_PARAM_H 1
16490 # ifdef _SC_PAGESIZE
16491 # define getpagesize() sysconf(_SC_PAGESIZE)
16492 # else /* no _SC_PAGESIZE */
16493 # ifdef HAVE_SYS_PARAM_H
16494 # include <sys/param.h>
16495 # ifdef EXEC_PAGESIZE
16496 # define getpagesize() EXEC_PAGESIZE
16497 # else /* no EXEC_PAGESIZE */
16499 # define getpagesize() NBPG * CLSIZE
16502 # endif /* no CLSIZE */
16503 # else /* no NBPG */
16505 # define getpagesize() NBPC
16506 # else /* no NBPC */
16508 # define getpagesize() PAGESIZE
16509 # endif /* PAGESIZE */
16510 # endif /* no NBPC */
16511 # endif /* no NBPG */
16512 # endif /* no EXEC_PAGESIZE */
16513 # else /* no HAVE_SYS_PARAM_H */
16514 # define getpagesize() 8192 /* punt totally */
16515 # endif /* no HAVE_SYS_PARAM_H */
16516 # endif /* no _SC_PAGESIZE */
16518 #endif /* no HAVE_GETPAGESIZE */
16523 char *data, *data2, *data3;
16527 pagesize = getpagesize ();
16529 /* First, make a file with some known garbage in it. */
16530 data = (char *) malloc (pagesize);
16533 for (i = 0; i < pagesize; ++i)
16534 *(data + i) = rand ();
16536 fd = creat ("conftest.mmap", 0600);
16539 if (write (fd, data, pagesize) != pagesize)
16543 /* Next, try to mmap the file at a fixed address which already has
16544 something else allocated at it. If we can, also make sure that
16545 we see the same garbage. */
16546 fd = open ("conftest.mmap", O_RDWR);
16549 data2 = (char *) malloc (2 * pagesize);
16552 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16553 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16554 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16556 for (i = 0; i < pagesize; ++i)
16557 if (*(data + i) != *(data2 + i))
16560 /* Finally, make sure that changes to the mapped area do not
16561 percolate back to the file as seen by read(). (This is a bug on
16562 some variants of i386 svr4.0.) */
16563 for (i = 0; i < pagesize; ++i)
16564 *(data2 + i) = *(data2 + i) + 1;
16565 data3 = (char *) malloc (pagesize);
16568 if (read (fd, data3, pagesize) != pagesize)
16570 for (i = 0; i < pagesize; ++i)
16571 if (*(data + i) != *(data3 + i))
16577 rm -f conftest$ac_exeext
16578 if { (ac_try="$ac_link"
16579 case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16584 $as_echo "$ac_try_echo") >&5
16585 (eval "$ac_link") 2>&5
16587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16589 { (case "(($ac_try" in
16590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591 *) ac_try_echo=$ac_try;;
16593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16594 $as_echo "$ac_try_echo") >&5
16595 (eval "$ac_try") 2>&5
16597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); }; }; then
16599 ac_cv_func_mmap_fixed_mapped=yes
16601 $as_echo "$as_me: program exited with status $ac_status" >&5
16602 $as_echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16605 ( exit $ac_status )
16606 ac_cv_func_mmap_fixed_mapped=no
16608 rm -rf conftest.dSYM
16609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16614 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16615 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16616 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16618 cat >>confdefs.h <<\_ACEOF
16619 #define HAVE_MMAP 1
16623 rm -f conftest.mmap
16634 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
16635 munmap stpcpy strcspn strdup
16637 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16638 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16639 $as_echo_n "checking for $ac_func... " >&6; }
16640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16641 $as_echo_n "(cached) " >&6
16643 cat >conftest.$ac_ext <<_ACEOF
16646 cat confdefs.h >>conftest.$ac_ext
16647 cat >>conftest.$ac_ext <<_ACEOF
16648 /* end confdefs.h. */
16649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16651 #define $ac_func innocuous_$ac_func
16653 /* System header to define __stub macros and hopefully few prototypes,
16654 which can conflict with char $ac_func (); below.
16655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16656 <limits.h> exists even on freestanding compilers. */
16659 # include <limits.h>
16661 # include <assert.h>
16666 /* Override any GCC internal prototype to avoid an error.
16667 Use char because int might match the return type of a GCC
16668 builtin and then its argument prototype would still apply. */
16673 /* The GNU C library defines this for functions which it implements
16674 to always fail with ENOSYS. Some functions are actually named
16675 something starting with __ and the normal name is an alias. */
16676 #if defined __stub_$ac_func || defined __stub___$ac_func
16683 return $ac_func ();
16688 rm -f conftest.$ac_objext conftest$ac_exeext
16689 if { (ac_try="$ac_link"
16690 case "(($ac_try" in
16691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16692 *) ac_try_echo=$ac_try;;
16694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16695 $as_echo "$ac_try_echo") >&5
16696 (eval "$ac_link") 2>conftest.er1
16698 grep -v '^ *+' conftest.er1 >conftest.err
16700 cat conftest.err >&5
16701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); } && {
16703 test -z "$ac_c_werror_flag" ||
16704 test ! -s conftest.err
16705 } && test -s conftest$ac_exeext && {
16706 test "$cross_compiling" = yes ||
16707 $as_test_x conftest$ac_exeext
16709 eval "$as_ac_var=yes"
16711 $as_echo "$as_me: failed program was:" >&5
16712 sed 's/^/| /' conftest.$ac_ext >&5
16714 eval "$as_ac_var=no"
16717 rm -rf conftest.dSYM
16718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16719 conftest$ac_exeext conftest.$ac_ext
16721 ac_res=`eval 'as_val=${'$as_ac_var'}
16722 $as_echo "$as_val"'`
16723 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16724 $as_echo "$ac_res" >&6; }
16725 as_val=`eval 'as_val=${'$as_ac_var'}
16726 $as_echo "$as_val"'`
16727 if test "x$as_val" = x""yes; then
16728 cat >>confdefs.h <<_ACEOF
16729 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16736 INTL_DEP= INTL_INC= LIBINTL_H=
16737 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
16738 INTL_DEP='${INTL_LIBDIR}/libintl.a'
16739 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
16740 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
16749 for ac_header in wctype.h
16751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16753 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16754 $as_echo_n "checking for $ac_header... " >&6; }
16755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16756 $as_echo_n "(cached) " >&6
16758 ac_res=`eval 'as_val=${'$as_ac_Header'}
16759 $as_echo "$as_val"'`
16760 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16761 $as_echo "$ac_res" >&6; }
16763 # Is the header compilable?
16764 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16765 $as_echo_n "checking $ac_header usability... " >&6; }
16766 cat >conftest.$ac_ext <<_ACEOF
16769 cat confdefs.h >>conftest.$ac_ext
16770 cat >>conftest.$ac_ext <<_ACEOF
16771 /* end confdefs.h. */
16772 $ac_includes_default
16773 #include <$ac_header>
16775 rm -f conftest.$ac_objext
16776 if { (ac_try="$ac_compile"
16777 case "(($ac_try" in
16778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779 *) ac_try_echo=$ac_try;;
16781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16782 $as_echo "$ac_try_echo") >&5
16783 (eval "$ac_compile") 2>conftest.er1
16785 grep -v '^ *+' conftest.er1 >conftest.err
16787 cat conftest.err >&5
16788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); } && {
16790 test -z "$ac_c_werror_flag" ||
16791 test ! -s conftest.err
16792 } && test -s conftest.$ac_objext; then
16793 ac_header_compiler=yes
16795 $as_echo "$as_me: failed program was:" >&5
16796 sed 's/^/| /' conftest.$ac_ext >&5
16798 ac_header_compiler=no
16801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16802 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16803 $as_echo "$ac_header_compiler" >&6; }
16805 # Is the header present?
16806 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16807 $as_echo_n "checking $ac_header presence... " >&6; }
16808 cat >conftest.$ac_ext <<_ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h. */
16814 #include <$ac_header>
16816 if { (ac_try="$ac_cpp conftest.$ac_ext"
16817 case "(($ac_try" in
16818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819 *) ac_try_echo=$ac_try;;
16821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16822 $as_echo "$ac_try_echo") >&5
16823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16825 grep -v '^ *+' conftest.er1 >conftest.err
16827 cat conftest.err >&5
16828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } >/dev/null && {
16830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16831 test ! -s conftest.err
16833 ac_header_preproc=yes
16835 $as_echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.$ac_ext >&5
16838 ac_header_preproc=no
16841 rm -f conftest.err conftest.$ac_ext
16842 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16843 $as_echo "$ac_header_preproc" >&6; }
16845 # So? What about this header?
16846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16849 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16851 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16852 ac_header_preproc=yes
16855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16856 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16858 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16860 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16862 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16864 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16866 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16868 ## ------------------------------- ##
16869 ## Report this to bug-bash@gnu.org ##
16870 ## ------------------------------- ##
16872 ) | sed "s/^/$as_me: WARNING: /" >&2
16875 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16876 $as_echo_n "checking for $ac_header... " >&6; }
16877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16878 $as_echo_n "(cached) " >&6
16880 eval "$as_ac_Header=\$ac_header_preproc"
16882 ac_res=`eval 'as_val=${'$as_ac_Header'}
16883 $as_echo "$as_val"'`
16884 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16885 $as_echo "$ac_res" >&6; }
16888 as_val=`eval 'as_val=${'$as_ac_Header'}
16889 $as_echo "$as_val"'`
16890 if test "x$as_val" = x""yes; then
16891 cat >>confdefs.h <<_ACEOF
16892 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16900 for ac_header in wchar.h
16902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16904 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16905 $as_echo_n "checking for $ac_header... " >&6; }
16906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16907 $as_echo_n "(cached) " >&6
16909 ac_res=`eval 'as_val=${'$as_ac_Header'}
16910 $as_echo "$as_val"'`
16911 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16912 $as_echo "$ac_res" >&6; }
16914 # Is the header compilable?
16915 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16916 $as_echo_n "checking $ac_header usability... " >&6; }
16917 cat >conftest.$ac_ext <<_ACEOF
16920 cat confdefs.h >>conftest.$ac_ext
16921 cat >>conftest.$ac_ext <<_ACEOF
16922 /* end confdefs.h. */
16923 $ac_includes_default
16924 #include <$ac_header>
16926 rm -f conftest.$ac_objext
16927 if { (ac_try="$ac_compile"
16928 case "(($ac_try" in
16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930 *) ac_try_echo=$ac_try;;
16932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16933 $as_echo "$ac_try_echo") >&5
16934 (eval "$ac_compile") 2>conftest.er1
16936 grep -v '^ *+' conftest.er1 >conftest.err
16938 cat conftest.err >&5
16939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); } && {
16941 test -z "$ac_c_werror_flag" ||
16942 test ! -s conftest.err
16943 } && test -s conftest.$ac_objext; then
16944 ac_header_compiler=yes
16946 $as_echo "$as_me: failed program was:" >&5
16947 sed 's/^/| /' conftest.$ac_ext >&5
16949 ac_header_compiler=no
16952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16953 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16954 $as_echo "$ac_header_compiler" >&6; }
16956 # Is the header present?
16957 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16958 $as_echo_n "checking $ac_header presence... " >&6; }
16959 cat >conftest.$ac_ext <<_ACEOF
16962 cat confdefs.h >>conftest.$ac_ext
16963 cat >>conftest.$ac_ext <<_ACEOF
16964 /* end confdefs.h. */
16965 #include <$ac_header>
16967 if { (ac_try="$ac_cpp conftest.$ac_ext"
16968 case "(($ac_try" in
16969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16973 $as_echo "$ac_try_echo") >&5
16974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16976 grep -v '^ *+' conftest.er1 >conftest.err
16978 cat conftest.err >&5
16979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } >/dev/null && {
16981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16982 test ! -s conftest.err
16984 ac_header_preproc=yes
16986 $as_echo "$as_me: failed program was:" >&5
16987 sed 's/^/| /' conftest.$ac_ext >&5
16989 ac_header_preproc=no
16992 rm -f conftest.err conftest.$ac_ext
16993 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16994 $as_echo "$ac_header_preproc" >&6; }
16996 # So? What about this header?
16997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17000 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17002 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17003 ac_header_preproc=yes
17006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17007 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17009 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17011 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17013 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17015 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17017 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17019 ## ------------------------------- ##
17020 ## Report this to bug-bash@gnu.org ##
17021 ## ------------------------------- ##
17023 ) | sed "s/^/$as_me: WARNING: /" >&2
17026 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17027 $as_echo_n "checking for $ac_header... " >&6; }
17028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17029 $as_echo_n "(cached) " >&6
17031 eval "$as_ac_Header=\$ac_header_preproc"
17033 ac_res=`eval 'as_val=${'$as_ac_Header'}
17034 $as_echo "$as_val"'`
17035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17036 $as_echo "$ac_res" >&6; }
17039 as_val=`eval 'as_val=${'$as_ac_Header'}
17040 $as_echo "$as_val"'`
17041 if test "x$as_val" = x""yes; then
17042 cat >>confdefs.h <<_ACEOF
17043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17051 for ac_header in langinfo.h
17053 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17055 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17056 $as_echo_n "checking for $ac_header... " >&6; }
17057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17058 $as_echo_n "(cached) " >&6
17060 ac_res=`eval 'as_val=${'$as_ac_Header'}
17061 $as_echo "$as_val"'`
17062 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17063 $as_echo "$ac_res" >&6; }
17065 # Is the header compilable?
17066 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17067 $as_echo_n "checking $ac_header usability... " >&6; }
17068 cat >conftest.$ac_ext <<_ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h. */
17074 $ac_includes_default
17075 #include <$ac_header>
17077 rm -f conftest.$ac_objext
17078 if { (ac_try="$ac_compile"
17079 case "(($ac_try" in
17080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17084 $as_echo "$ac_try_echo") >&5
17085 (eval "$ac_compile") 2>conftest.er1
17087 grep -v '^ *+' conftest.er1 >conftest.err
17089 cat conftest.err >&5
17090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); } && {
17092 test -z "$ac_c_werror_flag" ||
17093 test ! -s conftest.err
17094 } && test -s conftest.$ac_objext; then
17095 ac_header_compiler=yes
17097 $as_echo "$as_me: failed program was:" >&5
17098 sed 's/^/| /' conftest.$ac_ext >&5
17100 ac_header_compiler=no
17103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17104 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17105 $as_echo "$ac_header_compiler" >&6; }
17107 # Is the header present?
17108 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17109 $as_echo_n "checking $ac_header presence... " >&6; }
17110 cat >conftest.$ac_ext <<_ACEOF
17113 cat confdefs.h >>conftest.$ac_ext
17114 cat >>conftest.$ac_ext <<_ACEOF
17115 /* end confdefs.h. */
17116 #include <$ac_header>
17118 if { (ac_try="$ac_cpp conftest.$ac_ext"
17119 case "(($ac_try" in
17120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17121 *) ac_try_echo=$ac_try;;
17123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17124 $as_echo "$ac_try_echo") >&5
17125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17127 grep -v '^ *+' conftest.er1 >conftest.err
17129 cat conftest.err >&5
17130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } >/dev/null && {
17132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17133 test ! -s conftest.err
17135 ac_header_preproc=yes
17137 $as_echo "$as_me: failed program was:" >&5
17138 sed 's/^/| /' conftest.$ac_ext >&5
17140 ac_header_preproc=no
17143 rm -f conftest.err conftest.$ac_ext
17144 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17145 $as_echo "$ac_header_preproc" >&6; }
17147 # So? What about this header?
17148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17151 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17153 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17154 ac_header_preproc=yes
17157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17158 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17160 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17162 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17164 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17166 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17168 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17170 ## ------------------------------- ##
17171 ## Report this to bug-bash@gnu.org ##
17172 ## ------------------------------- ##
17174 ) | sed "s/^/$as_me: WARNING: /" >&2
17177 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17178 $as_echo_n "checking for $ac_header... " >&6; }
17179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17180 $as_echo_n "(cached) " >&6
17182 eval "$as_ac_Header=\$ac_header_preproc"
17184 ac_res=`eval 'as_val=${'$as_ac_Header'}
17185 $as_echo "$as_val"'`
17186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17187 $as_echo "$ac_res" >&6; }
17190 as_val=`eval 'as_val=${'$as_ac_Header'}
17191 $as_echo "$as_val"'`
17192 if test "x$as_val" = x""yes; then
17193 cat >>confdefs.h <<_ACEOF
17194 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17202 { $as_echo "$as_me:$LINENO: checking for mbrlen" >&5
17203 $as_echo_n "checking for mbrlen... " >&6; }
17204 if test "${ac_cv_func_mbrlen+set}" = set; then
17205 $as_echo_n "(cached) " >&6
17207 cat >conftest.$ac_ext <<_ACEOF
17210 cat confdefs.h >>conftest.$ac_ext
17211 cat >>conftest.$ac_ext <<_ACEOF
17212 /* end confdefs.h. */
17213 /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
17214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17215 #define mbrlen innocuous_mbrlen
17217 /* System header to define __stub macros and hopefully few prototypes,
17218 which can conflict with char mbrlen (); below.
17219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17220 <limits.h> exists even on freestanding compilers. */
17223 # include <limits.h>
17225 # include <assert.h>
17230 /* Override any GCC internal prototype to avoid an error.
17231 Use char because int might match the return type of a GCC
17232 builtin and then its argument prototype would still apply. */
17237 /* The GNU C library defines this for functions which it implements
17238 to always fail with ENOSYS. Some functions are actually named
17239 something starting with __ and the normal name is an alias. */
17240 #if defined __stub_mbrlen || defined __stub___mbrlen
17252 rm -f conftest.$ac_objext conftest$ac_exeext
17253 if { (ac_try="$ac_link"
17254 case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17259 $as_echo "$ac_try_echo") >&5
17260 (eval "$ac_link") 2>conftest.er1
17262 grep -v '^ *+' conftest.er1 >conftest.err
17264 cat conftest.err >&5
17265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); } && {
17267 test -z "$ac_c_werror_flag" ||
17268 test ! -s conftest.err
17269 } && test -s conftest$ac_exeext && {
17270 test "$cross_compiling" = yes ||
17271 $as_test_x conftest$ac_exeext
17273 ac_cv_func_mbrlen=yes
17275 $as_echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17278 ac_cv_func_mbrlen=no
17281 rm -rf conftest.dSYM
17282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17283 conftest$ac_exeext conftest.$ac_ext
17285 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
17286 $as_echo "$ac_cv_func_mbrlen" >&6; }
17287 if test "x$ac_cv_func_mbrlen" = x""yes; then
17288 cat >>confdefs.h <<\_ACEOF
17289 #define HAVE_MBRLEN 1
17294 { $as_echo "$as_me:$LINENO: checking for mbscasecmp" >&5
17295 $as_echo_n "checking for mbscasecmp... " >&6; }
17296 if test "${ac_cv_func_mbscasecmp+set}" = set; then
17297 $as_echo_n "(cached) " >&6
17299 cat >conftest.$ac_ext <<_ACEOF
17302 cat confdefs.h >>conftest.$ac_ext
17303 cat >>conftest.$ac_ext <<_ACEOF
17304 /* end confdefs.h. */
17305 /* Define mbscasecmp to an innocuous variant, in case <limits.h> declares mbscasecmp.
17306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17307 #define mbscasecmp innocuous_mbscasecmp
17309 /* System header to define __stub macros and hopefully few prototypes,
17310 which can conflict with char mbscasecmp (); below.
17311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17312 <limits.h> exists even on freestanding compilers. */
17315 # include <limits.h>
17317 # include <assert.h>
17322 /* Override any GCC internal prototype to avoid an error.
17323 Use char because int might match the return type of a GCC
17324 builtin and then its argument prototype would still apply. */
17328 char mbscasecmp ();
17329 /* The GNU C library defines this for functions which it implements
17330 to always fail with ENOSYS. Some functions are actually named
17331 something starting with __ and the normal name is an alias. */
17332 #if defined __stub_mbscasecmp || defined __stub___mbscasecmp
17339 return mbscasecmp ();
17344 rm -f conftest.$ac_objext conftest$ac_exeext
17345 if { (ac_try="$ac_link"
17346 case "(($ac_try" in
17347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348 *) ac_try_echo=$ac_try;;
17350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17351 $as_echo "$ac_try_echo") >&5
17352 (eval "$ac_link") 2>conftest.er1
17354 grep -v '^ *+' conftest.er1 >conftest.err
17356 cat conftest.err >&5
17357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); } && {
17359 test -z "$ac_c_werror_flag" ||
17360 test ! -s conftest.err
17361 } && test -s conftest$ac_exeext && {
17362 test "$cross_compiling" = yes ||
17363 $as_test_x conftest$ac_exeext
17365 ac_cv_func_mbscasecmp=yes
17367 $as_echo "$as_me: failed program was:" >&5
17368 sed 's/^/| /' conftest.$ac_ext >&5
17370 ac_cv_func_mbscasecmp=no
17373 rm -rf conftest.dSYM
17374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17375 conftest$ac_exeext conftest.$ac_ext
17377 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscasecmp" >&5
17378 $as_echo "$ac_cv_func_mbscasecmp" >&6; }
17379 if test "x$ac_cv_func_mbscasecmp" = x""yes; then
17380 cat >>confdefs.h <<\_ACEOF
17381 #define HAVE_MBSCMP 1
17386 { $as_echo "$as_me:$LINENO: checking for mbscmp" >&5
17387 $as_echo_n "checking for mbscmp... " >&6; }
17388 if test "${ac_cv_func_mbscmp+set}" = set; then
17389 $as_echo_n "(cached) " >&6
17391 cat >conftest.$ac_ext <<_ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h. */
17397 /* Define mbscmp to an innocuous variant, in case <limits.h> declares mbscmp.
17398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17399 #define mbscmp innocuous_mbscmp
17401 /* System header to define __stub macros and hopefully few prototypes,
17402 which can conflict with char mbscmp (); below.
17403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17404 <limits.h> exists even on freestanding compilers. */
17407 # include <limits.h>
17409 # include <assert.h>
17414 /* Override any GCC internal prototype to avoid an error.
17415 Use char because int might match the return type of a GCC
17416 builtin and then its argument prototype would still apply. */
17421 /* The GNU C library defines this for functions which it implements
17422 to always fail with ENOSYS. Some functions are actually named
17423 something starting with __ and the normal name is an alias. */
17424 #if defined __stub_mbscmp || defined __stub___mbscmp
17436 rm -f conftest.$ac_objext conftest$ac_exeext
17437 if { (ac_try="$ac_link"
17438 case "(($ac_try" in
17439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440 *) ac_try_echo=$ac_try;;
17442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17443 $as_echo "$ac_try_echo") >&5
17444 (eval "$ac_link") 2>conftest.er1
17446 grep -v '^ *+' conftest.er1 >conftest.err
17448 cat conftest.err >&5
17449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); } && {
17451 test -z "$ac_c_werror_flag" ||
17452 test ! -s conftest.err
17453 } && test -s conftest$ac_exeext && {
17454 test "$cross_compiling" = yes ||
17455 $as_test_x conftest$ac_exeext
17457 ac_cv_func_mbscmp=yes
17459 $as_echo "$as_me: failed program was:" >&5
17460 sed 's/^/| /' conftest.$ac_ext >&5
17462 ac_cv_func_mbscmp=no
17465 rm -rf conftest.dSYM
17466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17467 conftest$ac_exeext conftest.$ac_ext
17469 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscmp" >&5
17470 $as_echo "$ac_cv_func_mbscmp" >&6; }
17471 if test "x$ac_cv_func_mbscmp" = x""yes; then
17472 cat >>confdefs.h <<\_ACEOF
17473 #define HAVE_MBSCMP 1
17478 { $as_echo "$as_me:$LINENO: checking for mbsnrtowcs" >&5
17479 $as_echo_n "checking for mbsnrtowcs... " >&6; }
17480 if test "${ac_cv_func_mbsnrtowcs+set}" = set; then
17481 $as_echo_n "(cached) " >&6
17483 cat >conftest.$ac_ext <<_ACEOF
17486 cat confdefs.h >>conftest.$ac_ext
17487 cat >>conftest.$ac_ext <<_ACEOF
17488 /* end confdefs.h. */
17489 /* Define mbsnrtowcs to an innocuous variant, in case <limits.h> declares mbsnrtowcs.
17490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17491 #define mbsnrtowcs innocuous_mbsnrtowcs
17493 /* System header to define __stub macros and hopefully few prototypes,
17494 which can conflict with char mbsnrtowcs (); below.
17495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17496 <limits.h> exists even on freestanding compilers. */
17499 # include <limits.h>
17501 # include <assert.h>
17506 /* Override any GCC internal prototype to avoid an error.
17507 Use char because int might match the return type of a GCC
17508 builtin and then its argument prototype would still apply. */
17512 char mbsnrtowcs ();
17513 /* The GNU C library defines this for functions which it implements
17514 to always fail with ENOSYS. Some functions are actually named
17515 something starting with __ and the normal name is an alias. */
17516 #if defined __stub_mbsnrtowcs || defined __stub___mbsnrtowcs
17523 return mbsnrtowcs ();
17528 rm -f conftest.$ac_objext conftest$ac_exeext
17529 if { (ac_try="$ac_link"
17530 case "(($ac_try" in
17531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17532 *) ac_try_echo=$ac_try;;
17534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17535 $as_echo "$ac_try_echo") >&5
17536 (eval "$ac_link") 2>conftest.er1
17538 grep -v '^ *+' conftest.er1 >conftest.err
17540 cat conftest.err >&5
17541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } && {
17543 test -z "$ac_c_werror_flag" ||
17544 test ! -s conftest.err
17545 } && test -s conftest$ac_exeext && {
17546 test "$cross_compiling" = yes ||
17547 $as_test_x conftest$ac_exeext
17549 ac_cv_func_mbsnrtowcs=yes
17551 $as_echo "$as_me: failed program was:" >&5
17552 sed 's/^/| /' conftest.$ac_ext >&5
17554 ac_cv_func_mbsnrtowcs=no
17557 rm -rf conftest.dSYM
17558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17559 conftest$ac_exeext conftest.$ac_ext
17561 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsnrtowcs" >&5
17562 $as_echo "$ac_cv_func_mbsnrtowcs" >&6; }
17563 if test "x$ac_cv_func_mbsnrtowcs" = x""yes; then
17564 cat >>confdefs.h <<\_ACEOF
17565 #define HAVE_MBSNRTOWCS 1
17570 { $as_echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
17571 $as_echo_n "checking for mbsrtowcs... " >&6; }
17572 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
17573 $as_echo_n "(cached) " >&6
17575 cat >conftest.$ac_ext <<_ACEOF
17578 cat confdefs.h >>conftest.$ac_ext
17579 cat >>conftest.$ac_ext <<_ACEOF
17580 /* end confdefs.h. */
17581 /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
17582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17583 #define mbsrtowcs innocuous_mbsrtowcs
17585 /* System header to define __stub macros and hopefully few prototypes,
17586 which can conflict with char mbsrtowcs (); below.
17587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17588 <limits.h> exists even on freestanding compilers. */
17591 # include <limits.h>
17593 # include <assert.h>
17598 /* Override any GCC internal prototype to avoid an error.
17599 Use char because int might match the return type of a GCC
17600 builtin and then its argument prototype would still apply. */
17605 /* The GNU C library defines this for functions which it implements
17606 to always fail with ENOSYS. Some functions are actually named
17607 something starting with __ and the normal name is an alias. */
17608 #if defined __stub_mbsrtowcs || defined __stub___mbsrtowcs
17615 return mbsrtowcs ();
17620 rm -f conftest.$ac_objext conftest$ac_exeext
17621 if { (ac_try="$ac_link"
17622 case "(($ac_try" in
17623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17624 *) ac_try_echo=$ac_try;;
17626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17627 $as_echo "$ac_try_echo") >&5
17628 (eval "$ac_link") 2>conftest.er1
17630 grep -v '^ *+' conftest.er1 >conftest.err
17632 cat conftest.err >&5
17633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } && {
17635 test -z "$ac_c_werror_flag" ||
17636 test ! -s conftest.err
17637 } && test -s conftest$ac_exeext && {
17638 test "$cross_compiling" = yes ||
17639 $as_test_x conftest$ac_exeext
17641 ac_cv_func_mbsrtowcs=yes
17643 $as_echo "$as_me: failed program was:" >&5
17644 sed 's/^/| /' conftest.$ac_ext >&5
17646 ac_cv_func_mbsrtowcs=no
17649 rm -rf conftest.dSYM
17650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17651 conftest$ac_exeext conftest.$ac_ext
17653 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
17654 $as_echo "$ac_cv_func_mbsrtowcs" >&6; }
17655 if test "x$ac_cv_func_mbsrtowcs" = x""yes; then
17656 cat >>confdefs.h <<\_ACEOF
17657 #define HAVE_MBSRTOWCS 1
17665 for ac_func in mbschr
17667 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17668 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17669 $as_echo_n "checking for $ac_func... " >&6; }
17670 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17671 $as_echo_n "(cached) " >&6
17673 cat >conftest.$ac_ext <<_ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h. */
17679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17681 #define $ac_func innocuous_$ac_func
17683 /* System header to define __stub macros and hopefully few prototypes,
17684 which can conflict with char $ac_func (); below.
17685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17686 <limits.h> exists even on freestanding compilers. */
17689 # include <limits.h>
17691 # include <assert.h>
17696 /* Override any GCC internal prototype to avoid an error.
17697 Use char because int might match the return type of a GCC
17698 builtin and then its argument prototype would still apply. */
17703 /* The GNU C library defines this for functions which it implements
17704 to always fail with ENOSYS. Some functions are actually named
17705 something starting with __ and the normal name is an alias. */
17706 #if defined __stub_$ac_func || defined __stub___$ac_func
17713 return $ac_func ();
17718 rm -f conftest.$ac_objext conftest$ac_exeext
17719 if { (ac_try="$ac_link"
17720 case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17725 $as_echo "$ac_try_echo") >&5
17726 (eval "$ac_link") 2>conftest.er1
17728 grep -v '^ *+' conftest.er1 >conftest.err
17730 cat conftest.err >&5
17731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); } && {
17733 test -z "$ac_c_werror_flag" ||
17734 test ! -s conftest.err
17735 } && test -s conftest$ac_exeext && {
17736 test "$cross_compiling" = yes ||
17737 $as_test_x conftest$ac_exeext
17739 eval "$as_ac_var=yes"
17741 $as_echo "$as_me: failed program was:" >&5
17742 sed 's/^/| /' conftest.$ac_ext >&5
17744 eval "$as_ac_var=no"
17747 rm -rf conftest.dSYM
17748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17749 conftest$ac_exeext conftest.$ac_ext
17751 ac_res=`eval 'as_val=${'$as_ac_var'}
17752 $as_echo "$as_val"'`
17753 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17754 $as_echo "$ac_res" >&6; }
17755 as_val=`eval 'as_val=${'$as_ac_var'}
17756 $as_echo "$as_val"'`
17757 if test "x$as_val" = x""yes; then
17758 cat >>confdefs.h <<_ACEOF
17759 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17763 case " $LIBOBJS " in
17764 *" $ac_func.$ac_objext "* ) ;;
17765 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17774 { $as_echo "$as_me:$LINENO: checking for wcrtomb" >&5
17775 $as_echo_n "checking for wcrtomb... " >&6; }
17776 if test "${ac_cv_func_wcrtomb+set}" = set; then
17777 $as_echo_n "(cached) " >&6
17779 cat >conftest.$ac_ext <<_ACEOF
17782 cat confdefs.h >>conftest.$ac_ext
17783 cat >>conftest.$ac_ext <<_ACEOF
17784 /* end confdefs.h. */
17785 /* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb.
17786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17787 #define wcrtomb innocuous_wcrtomb
17789 /* System header to define __stub macros and hopefully few prototypes,
17790 which can conflict with char wcrtomb (); below.
17791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17792 <limits.h> exists even on freestanding compilers. */
17795 # include <limits.h>
17797 # include <assert.h>
17802 /* Override any GCC internal prototype to avoid an error.
17803 Use char because int might match the return type of a GCC
17804 builtin and then its argument prototype would still apply. */
17809 /* The GNU C library defines this for functions which it implements
17810 to always fail with ENOSYS. Some functions are actually named
17811 something starting with __ and the normal name is an alias. */
17812 #if defined __stub_wcrtomb || defined __stub___wcrtomb
17824 rm -f conftest.$ac_objext conftest$ac_exeext
17825 if { (ac_try="$ac_link"
17826 case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17831 $as_echo "$ac_try_echo") >&5
17832 (eval "$ac_link") 2>conftest.er1
17834 grep -v '^ *+' conftest.er1 >conftest.err
17836 cat conftest.err >&5
17837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); } && {
17839 test -z "$ac_c_werror_flag" ||
17840 test ! -s conftest.err
17841 } && test -s conftest$ac_exeext && {
17842 test "$cross_compiling" = yes ||
17843 $as_test_x conftest$ac_exeext
17845 ac_cv_func_wcrtomb=yes
17847 $as_echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17850 ac_cv_func_wcrtomb=no
17853 rm -rf conftest.dSYM
17854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17855 conftest$ac_exeext conftest.$ac_ext
17857 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5
17858 $as_echo "$ac_cv_func_wcrtomb" >&6; }
17859 if test "x$ac_cv_func_wcrtomb" = x""yes; then
17860 cat >>confdefs.h <<\_ACEOF
17861 #define HAVE_WCRTOMB 1
17866 { $as_echo "$as_me:$LINENO: checking for wcscoll" >&5
17867 $as_echo_n "checking for wcscoll... " >&6; }
17868 if test "${ac_cv_func_wcscoll+set}" = set; then
17869 $as_echo_n "(cached) " >&6
17871 cat >conftest.$ac_ext <<_ACEOF
17874 cat confdefs.h >>conftest.$ac_ext
17875 cat >>conftest.$ac_ext <<_ACEOF
17876 /* end confdefs.h. */
17877 /* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll.
17878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17879 #define wcscoll innocuous_wcscoll
17881 /* System header to define __stub macros and hopefully few prototypes,
17882 which can conflict with char wcscoll (); below.
17883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17884 <limits.h> exists even on freestanding compilers. */
17887 # include <limits.h>
17889 # include <assert.h>
17894 /* Override any GCC internal prototype to avoid an error.
17895 Use char because int might match the return type of a GCC
17896 builtin and then its argument prototype would still apply. */
17901 /* The GNU C library defines this for functions which it implements
17902 to always fail with ENOSYS. Some functions are actually named
17903 something starting with __ and the normal name is an alias. */
17904 #if defined __stub_wcscoll || defined __stub___wcscoll
17916 rm -f conftest.$ac_objext conftest$ac_exeext
17917 if { (ac_try="$ac_link"
17918 case "(($ac_try" in
17919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920 *) ac_try_echo=$ac_try;;
17922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17923 $as_echo "$ac_try_echo") >&5
17924 (eval "$ac_link") 2>conftest.er1
17926 grep -v '^ *+' conftest.er1 >conftest.err
17928 cat conftest.err >&5
17929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); } && {
17931 test -z "$ac_c_werror_flag" ||
17932 test ! -s conftest.err
17933 } && test -s conftest$ac_exeext && {
17934 test "$cross_compiling" = yes ||
17935 $as_test_x conftest$ac_exeext
17937 ac_cv_func_wcscoll=yes
17939 $as_echo "$as_me: failed program was:" >&5
17940 sed 's/^/| /' conftest.$ac_ext >&5
17942 ac_cv_func_wcscoll=no
17945 rm -rf conftest.dSYM
17946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17947 conftest$ac_exeext conftest.$ac_ext
17949 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5
17950 $as_echo "$ac_cv_func_wcscoll" >&6; }
17951 if test "x$ac_cv_func_wcscoll" = x""yes; then
17952 cat >>confdefs.h <<\_ACEOF
17953 #define HAVE_WCSCOLL 1
17958 { $as_echo "$as_me:$LINENO: checking for wcsdup" >&5
17959 $as_echo_n "checking for wcsdup... " >&6; }
17960 if test "${ac_cv_func_wcsdup+set}" = set; then
17961 $as_echo_n "(cached) " >&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 wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
17970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17971 #define wcsdup innocuous_wcsdup
17973 /* System header to define __stub macros and hopefully few prototypes,
17974 which can conflict with char wcsdup (); 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_wcsdup || defined __stub___wcsdup
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18015 $as_echo "$ac_try_echo") >&5
18016 (eval "$ac_link") 2>conftest.er1
18018 grep -v '^ *+' conftest.er1 >conftest.err
18020 cat conftest.err >&5
18021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } && {
18023 test -z "$ac_c_werror_flag" ||
18024 test ! -s conftest.err
18025 } && test -s conftest$ac_exeext && {
18026 test "$cross_compiling" = yes ||
18027 $as_test_x conftest$ac_exeext
18029 ac_cv_func_wcsdup=yes
18031 $as_echo "$as_me: failed program was:" >&5
18032 sed 's/^/| /' conftest.$ac_ext >&5
18034 ac_cv_func_wcsdup=no
18037 rm -rf conftest.dSYM
18038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18039 conftest$ac_exeext conftest.$ac_ext
18041 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
18042 $as_echo "$ac_cv_func_wcsdup" >&6; }
18043 if test "x$ac_cv_func_wcsdup" = x""yes; then
18044 cat >>confdefs.h <<\_ACEOF
18045 #define HAVE_WCSDUP 1
18050 { $as_echo "$as_me:$LINENO: checking for wcwidth" >&5
18051 $as_echo_n "checking for wcwidth... " >&6; }
18052 if test "${ac_cv_func_wcwidth+set}" = set; then
18053 $as_echo_n "(cached) " >&6
18055 cat >conftest.$ac_ext <<_ACEOF
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h. */
18061 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
18062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18063 #define wcwidth innocuous_wcwidth
18065 /* System header to define __stub macros and hopefully few prototypes,
18066 which can conflict with char wcwidth (); below.
18067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18068 <limits.h> exists even on freestanding compilers. */
18071 # include <limits.h>
18073 # include <assert.h>
18078 /* Override any GCC internal prototype to avoid an error.
18079 Use char because int might match the return type of a GCC
18080 builtin and then its argument prototype would still apply. */
18085 /* The GNU C library defines this for functions which it implements
18086 to always fail with ENOSYS. Some functions are actually named
18087 something starting with __ and the normal name is an alias. */
18088 #if defined __stub_wcwidth || defined __stub___wcwidth
18100 rm -f conftest.$ac_objext conftest$ac_exeext
18101 if { (ac_try="$ac_link"
18102 case "(($ac_try" in
18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104 *) ac_try_echo=$ac_try;;
18106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18107 $as_echo "$ac_try_echo") >&5
18108 (eval "$ac_link") 2>conftest.er1
18110 grep -v '^ *+' conftest.er1 >conftest.err
18112 cat conftest.err >&5
18113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); } && {
18115 test -z "$ac_c_werror_flag" ||
18116 test ! -s conftest.err
18117 } && test -s conftest$ac_exeext && {
18118 test "$cross_compiling" = yes ||
18119 $as_test_x conftest$ac_exeext
18121 ac_cv_func_wcwidth=yes
18123 $as_echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.$ac_ext >&5
18126 ac_cv_func_wcwidth=no
18129 rm -rf conftest.dSYM
18130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18131 conftest$ac_exeext conftest.$ac_ext
18133 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
18134 $as_echo "$ac_cv_func_wcwidth" >&6; }
18135 if test "x$ac_cv_func_wcwidth" = x""yes; then
18136 cat >>confdefs.h <<\_ACEOF
18137 #define HAVE_WCWIDTH 1
18142 { $as_echo "$as_me:$LINENO: checking for wctype" >&5
18143 $as_echo_n "checking for wctype... " >&6; }
18144 if test "${ac_cv_func_wctype+set}" = set; then
18145 $as_echo_n "(cached) " >&6
18147 cat >conftest.$ac_ext <<_ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h. */
18153 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
18154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18155 #define wctype innocuous_wctype
18157 /* System header to define __stub macros and hopefully few prototypes,
18158 which can conflict with char wctype (); below.
18159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18160 <limits.h> exists even on freestanding compilers. */
18163 # include <limits.h>
18165 # include <assert.h>
18170 /* Override any GCC internal prototype to avoid an error.
18171 Use char because int might match the return type of a GCC
18172 builtin and then its argument prototype would still apply. */
18177 /* The GNU C library defines this for functions which it implements
18178 to always fail with ENOSYS. Some functions are actually named
18179 something starting with __ and the normal name is an alias. */
18180 #if defined __stub_wctype || defined __stub___wctype
18192 rm -f conftest.$ac_objext conftest$ac_exeext
18193 if { (ac_try="$ac_link"
18194 case "(($ac_try" in
18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196 *) ac_try_echo=$ac_try;;
18198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18199 $as_echo "$ac_try_echo") >&5
18200 (eval "$ac_link") 2>conftest.er1
18202 grep -v '^ *+' conftest.er1 >conftest.err
18204 cat conftest.err >&5
18205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } && {
18207 test -z "$ac_c_werror_flag" ||
18208 test ! -s conftest.err
18209 } && test -s conftest$ac_exeext && {
18210 test "$cross_compiling" = yes ||
18211 $as_test_x conftest$ac_exeext
18213 ac_cv_func_wctype=yes
18215 $as_echo "$as_me: failed program was:" >&5
18216 sed 's/^/| /' conftest.$ac_ext >&5
18218 ac_cv_func_wctype=no
18221 rm -rf conftest.dSYM
18222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18223 conftest$ac_exeext conftest.$ac_ext
18225 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
18226 $as_echo "$ac_cv_func_wctype" >&6; }
18227 if test "x$ac_cv_func_wctype" = x""yes; then
18228 cat >>confdefs.h <<\_ACEOF
18229 #define HAVE_WCTYPE 1
18236 for ac_func in wcswidth
18238 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18239 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18240 $as_echo_n "checking for $ac_func... " >&6; }
18241 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18242 $as_echo_n "(cached) " >&6
18244 cat >conftest.$ac_ext <<_ACEOF
18247 cat confdefs.h >>conftest.$ac_ext
18248 cat >>conftest.$ac_ext <<_ACEOF
18249 /* end confdefs.h. */
18250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18252 #define $ac_func innocuous_$ac_func
18254 /* System header to define __stub macros and hopefully few prototypes,
18255 which can conflict with char $ac_func (); below.
18256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18257 <limits.h> exists even on freestanding compilers. */
18260 # include <limits.h>
18262 # include <assert.h>
18267 /* Override any GCC internal prototype to avoid an error.
18268 Use char because int might match the return type of a GCC
18269 builtin and then its argument prototype would still apply. */
18274 /* The GNU C library defines this for functions which it implements
18275 to always fail with ENOSYS. Some functions are actually named
18276 something starting with __ and the normal name is an alias. */
18277 #if defined __stub_$ac_func || defined __stub___$ac_func
18284 return $ac_func ();
18289 rm -f conftest.$ac_objext conftest$ac_exeext
18290 if { (ac_try="$ac_link"
18291 case "(($ac_try" in
18292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293 *) ac_try_echo=$ac_try;;
18295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18296 $as_echo "$ac_try_echo") >&5
18297 (eval "$ac_link") 2>conftest.er1
18299 grep -v '^ *+' conftest.er1 >conftest.err
18301 cat conftest.err >&5
18302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); } && {
18304 test -z "$ac_c_werror_flag" ||
18305 test ! -s conftest.err
18306 } && test -s conftest$ac_exeext && {
18307 test "$cross_compiling" = yes ||
18308 $as_test_x conftest$ac_exeext
18310 eval "$as_ac_var=yes"
18312 $as_echo "$as_me: failed program was:" >&5
18313 sed 's/^/| /' conftest.$ac_ext >&5
18315 eval "$as_ac_var=no"
18318 rm -rf conftest.dSYM
18319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18320 conftest$ac_exeext conftest.$ac_ext
18322 ac_res=`eval 'as_val=${'$as_ac_var'}
18323 $as_echo "$as_val"'`
18324 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18325 $as_echo "$ac_res" >&6; }
18326 as_val=`eval 'as_val=${'$as_ac_var'}
18327 $as_echo "$as_val"'`
18328 if test "x$as_val" = x""yes; then
18329 cat >>confdefs.h <<_ACEOF
18330 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18334 case " $LIBOBJS " in
18335 *" $ac_func.$ac_objext "* ) ;;
18336 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18346 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
18347 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
18348 if test "${ac_cv_func_mbrtowc+set}" = set; then
18349 $as_echo_n "(cached) " >&6
18351 cat >conftest.$ac_ext <<_ACEOF
18354 cat confdefs.h >>conftest.$ac_ext
18355 cat >>conftest.$ac_ext <<_ACEOF
18356 /* end confdefs.h. */
18362 char const s[] = "";
18365 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
18370 rm -f conftest.$ac_objext conftest$ac_exeext
18371 if { (ac_try="$ac_link"
18372 case "(($ac_try" in
18373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18374 *) ac_try_echo=$ac_try;;
18376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18377 $as_echo "$ac_try_echo") >&5
18378 (eval "$ac_link") 2>conftest.er1
18380 grep -v '^ *+' conftest.er1 >conftest.err
18382 cat conftest.err >&5
18383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); } && {
18385 test -z "$ac_c_werror_flag" ||
18386 test ! -s conftest.err
18387 } && test -s conftest$ac_exeext && {
18388 test "$cross_compiling" = yes ||
18389 $as_test_x conftest$ac_exeext
18391 ac_cv_func_mbrtowc=yes
18393 $as_echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.$ac_ext >&5
18396 ac_cv_func_mbrtowc=no
18399 rm -rf conftest.dSYM
18400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18401 conftest$ac_exeext conftest.$ac_ext
18403 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
18404 $as_echo "$ac_cv_func_mbrtowc" >&6; }
18405 if test $ac_cv_func_mbrtowc = yes; then
18407 cat >>confdefs.h <<\_ACEOF
18408 #define HAVE_MBRTOWC 1
18413 if test $ac_cv_func_mbrtowc = yes; then
18414 cat >>confdefs.h <<\_ACEOF
18415 #define HAVE_MBSTATE_T 1
18425 for ac_func in iswlower iswupper towlower towupper iswctype
18427 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18428 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18429 $as_echo_n "checking for $ac_func... " >&6; }
18430 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18431 $as_echo_n "(cached) " >&6
18433 cat >conftest.$ac_ext <<_ACEOF
18436 cat confdefs.h >>conftest.$ac_ext
18437 cat >>conftest.$ac_ext <<_ACEOF
18438 /* end confdefs.h. */
18439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18441 #define $ac_func innocuous_$ac_func
18443 /* System header to define __stub macros and hopefully few prototypes,
18444 which can conflict with char $ac_func (); below.
18445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18446 <limits.h> exists even on freestanding compilers. */
18449 # include <limits.h>
18451 # include <assert.h>
18456 /* Override any GCC internal prototype to avoid an error.
18457 Use char because int might match the return type of a GCC
18458 builtin and then its argument prototype would still apply. */
18463 /* The GNU C library defines this for functions which it implements
18464 to always fail with ENOSYS. Some functions are actually named
18465 something starting with __ and the normal name is an alias. */
18466 #if defined __stub_$ac_func || defined __stub___$ac_func
18473 return $ac_func ();
18478 rm -f conftest.$ac_objext conftest$ac_exeext
18479 if { (ac_try="$ac_link"
18480 case "(($ac_try" in
18481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482 *) ac_try_echo=$ac_try;;
18484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18485 $as_echo "$ac_try_echo") >&5
18486 (eval "$ac_link") 2>conftest.er1
18488 grep -v '^ *+' conftest.er1 >conftest.err
18490 cat conftest.err >&5
18491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); } && {
18493 test -z "$ac_c_werror_flag" ||
18494 test ! -s conftest.err
18495 } && test -s conftest$ac_exeext && {
18496 test "$cross_compiling" = yes ||
18497 $as_test_x conftest$ac_exeext
18499 eval "$as_ac_var=yes"
18501 $as_echo "$as_me: failed program was:" >&5
18502 sed 's/^/| /' conftest.$ac_ext >&5
18504 eval "$as_ac_var=no"
18507 rm -rf conftest.dSYM
18508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18509 conftest$ac_exeext conftest.$ac_ext
18511 ac_res=`eval 'as_val=${'$as_ac_var'}
18512 $as_echo "$as_val"'`
18513 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18514 $as_echo "$ac_res" >&6; }
18515 as_val=`eval 'as_val=${'$as_ac_var'}
18516 $as_echo "$as_val"'`
18517 if test "x$as_val" = x""yes; then
18518 cat >>confdefs.h <<_ACEOF
18519 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18526 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
18527 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
18528 if test "${bash_cv_langinfo_codeset+set}" = set; then
18529 $as_echo_n "(cached) " >&6
18531 cat >conftest.$ac_ext <<_ACEOF
18534 cat confdefs.h >>conftest.$ac_ext
18535 cat >>conftest.$ac_ext <<_ACEOF
18536 /* end confdefs.h. */
18537 #include <langinfo.h>
18541 char* cs = nl_langinfo(CODESET);
18546 rm -f conftest.$ac_objext conftest$ac_exeext
18547 if { (ac_try="$ac_link"
18548 case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18553 $as_echo "$ac_try_echo") >&5
18554 (eval "$ac_link") 2>conftest.er1
18556 grep -v '^ *+' conftest.er1 >conftest.err
18558 cat conftest.err >&5
18559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } && {
18561 test -z "$ac_c_werror_flag" ||
18562 test ! -s conftest.err
18563 } && test -s conftest$ac_exeext && {
18564 test "$cross_compiling" = yes ||
18565 $as_test_x conftest$ac_exeext
18567 bash_cv_langinfo_codeset=yes
18569 $as_echo "$as_me: failed program was:" >&5
18570 sed 's/^/| /' conftest.$ac_ext >&5
18572 bash_cv_langinfo_codeset=no
18575 rm -rf conftest.dSYM
18576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18577 conftest$ac_exeext conftest.$ac_ext
18579 { $as_echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
18580 $as_echo "$bash_cv_langinfo_codeset" >&6; }
18581 if test $bash_cv_langinfo_codeset = yes; then
18582 cat >>confdefs.h <<\_ACEOF
18583 #define HAVE_LANGINFO_CODESET 1
18588 { $as_echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5
18589 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
18590 if test "${bash_cv_type_wchar_t+set}" = set; then
18591 $as_echo_n "(cached) " >&6
18593 cat >conftest.$ac_ext <<_ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h. */
18612 rm -f conftest.$ac_objext
18613 if { (ac_try="$ac_compile"
18614 case "(($ac_try" in
18615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616 *) ac_try_echo=$ac_try;;
18618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18619 $as_echo "$ac_try_echo") >&5
18620 (eval "$ac_compile") 2>conftest.er1
18622 grep -v '^ *+' conftest.er1 >conftest.err
18624 cat conftest.err >&5
18625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } && {
18627 test -z "$ac_c_werror_flag" ||
18628 test ! -s conftest.err
18629 } && test -s conftest.$ac_objext; then
18630 bash_cv_type_wchar_t=yes
18632 $as_echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18635 bash_cv_type_wchar_t=no
18638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18640 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5
18641 $as_echo "$bash_cv_type_wchar_t" >&6; }
18642 if test $bash_cv_type_wchar_t = yes; then
18644 cat >>confdefs.h <<\_ACEOF
18645 #define HAVE_WCHAR_T 1
18650 { $as_echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5
18651 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
18652 if test "${bash_cv_type_wctype_t+set}" = set; then
18653 $as_echo_n "(cached) " >&6
18655 cat >conftest.$ac_ext <<_ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h. */
18661 #include <wctype.h>
18673 rm -f conftest.$ac_objext
18674 if { (ac_try="$ac_compile"
18675 case "(($ac_try" in
18676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677 *) ac_try_echo=$ac_try;;
18679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18680 $as_echo "$ac_try_echo") >&5
18681 (eval "$ac_compile") 2>conftest.er1
18683 grep -v '^ *+' conftest.er1 >conftest.err
18685 cat conftest.err >&5
18686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } && {
18688 test -z "$ac_c_werror_flag" ||
18689 test ! -s conftest.err
18690 } && test -s conftest.$ac_objext; then
18691 bash_cv_type_wctype_t=yes
18693 $as_echo "$as_me: failed program was:" >&5
18694 sed 's/^/| /' conftest.$ac_ext >&5
18696 bash_cv_type_wctype_t=no
18699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18701 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5
18702 $as_echo "$bash_cv_type_wctype_t" >&6; }
18703 if test $bash_cv_type_wctype_t = yes; then
18705 cat >>confdefs.h <<\_ACEOF
18706 #define HAVE_WCTYPE_T 1
18711 { $as_echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5
18712 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
18713 if test "${bash_cv_type_wint_t+set}" = set; then
18714 $as_echo_n "(cached) " >&6
18716 cat >conftest.$ac_ext <<_ACEOF
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h. */
18722 #include <wctype.h>
18734 rm -f conftest.$ac_objext
18735 if { (ac_try="$ac_compile"
18736 case "(($ac_try" in
18737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738 *) ac_try_echo=$ac_try;;
18740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18741 $as_echo "$ac_try_echo") >&5
18742 (eval "$ac_compile") 2>conftest.er1
18744 grep -v '^ *+' conftest.er1 >conftest.err
18746 cat conftest.err >&5
18747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } && {
18749 test -z "$ac_c_werror_flag" ||
18750 test ! -s conftest.err
18751 } && test -s conftest.$ac_objext; then
18752 bash_cv_type_wint_t=yes
18754 $as_echo "$as_me: failed program was:" >&5
18755 sed 's/^/| /' conftest.$ac_ext >&5
18757 bash_cv_type_wint_t=no
18760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18762 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5
18763 $as_echo "$bash_cv_type_wint_t" >&6; }
18764 if test $bash_cv_type_wint_t = yes; then
18766 cat >>confdefs.h <<\_ACEOF
18767 #define HAVE_WINT_T 1
18772 if test "$am_cv_func_iconv" = yes; then
18774 LIBS="$LIBS $LIBICONV"
18776 for ac_func in locale_charset
18778 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18779 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18780 $as_echo_n "checking for $ac_func... " >&6; }
18781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18782 $as_echo_n "(cached) " >&6
18784 cat >conftest.$ac_ext <<_ACEOF
18787 cat confdefs.h >>conftest.$ac_ext
18788 cat >>conftest.$ac_ext <<_ACEOF
18789 /* end confdefs.h. */
18790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18792 #define $ac_func innocuous_$ac_func
18794 /* System header to define __stub macros and hopefully few prototypes,
18795 which can conflict with char $ac_func (); below.
18796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18797 <limits.h> exists even on freestanding compilers. */
18800 # include <limits.h>
18802 # include <assert.h>
18807 /* Override any GCC internal prototype to avoid an error.
18808 Use char because int might match the return type of a GCC
18809 builtin and then its argument prototype would still apply. */
18814 /* The GNU C library defines this for functions which it implements
18815 to always fail with ENOSYS. Some functions are actually named
18816 something starting with __ and the normal name is an alias. */
18817 #if defined __stub_$ac_func || defined __stub___$ac_func
18824 return $ac_func ();
18829 rm -f conftest.$ac_objext conftest$ac_exeext
18830 if { (ac_try="$ac_link"
18831 case "(($ac_try" in
18832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833 *) ac_try_echo=$ac_try;;
18835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18836 $as_echo "$ac_try_echo") >&5
18837 (eval "$ac_link") 2>conftest.er1
18839 grep -v '^ *+' conftest.er1 >conftest.err
18841 cat conftest.err >&5
18842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } && {
18844 test -z "$ac_c_werror_flag" ||
18845 test ! -s conftest.err
18846 } && test -s conftest$ac_exeext && {
18847 test "$cross_compiling" = yes ||
18848 $as_test_x conftest$ac_exeext
18850 eval "$as_ac_var=yes"
18852 $as_echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18855 eval "$as_ac_var=no"
18858 rm -rf conftest.dSYM
18859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18860 conftest$ac_exeext conftest.$ac_ext
18862 ac_res=`eval 'as_val=${'$as_ac_var'}
18863 $as_echo "$as_val"'`
18864 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18865 $as_echo "$ac_res" >&6; }
18866 as_val=`eval 'as_val=${'$as_ac_var'}
18867 $as_echo "$as_val"'`
18868 if test "x$as_val" = x""yes; then
18869 cat >>confdefs.h <<_ACEOF
18870 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18881 if test "$opt_static_link" != yes; then
18883 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18884 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18885 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18886 $as_echo_n "(cached) " >&6
18888 ac_check_lib_save_LIBS=$LIBS
18890 cat >conftest.$ac_ext <<_ACEOF
18893 cat confdefs.h >>conftest.$ac_ext
18894 cat >>conftest.$ac_ext <<_ACEOF
18895 /* end confdefs.h. */
18897 /* Override any GCC internal prototype to avoid an error.
18898 Use char because int might match the return type of a GCC
18899 builtin and then its argument prototype would still apply. */
18912 rm -f conftest.$ac_objext conftest$ac_exeext
18913 if { (ac_try="$ac_link"
18914 case "(($ac_try" in
18915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916 *) ac_try_echo=$ac_try;;
18918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18919 $as_echo "$ac_try_echo") >&5
18920 (eval "$ac_link") 2>conftest.er1
18922 grep -v '^ *+' conftest.er1 >conftest.err
18924 cat conftest.err >&5
18925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); } && {
18927 test -z "$ac_c_werror_flag" ||
18928 test ! -s conftest.err
18929 } && test -s conftest$ac_exeext && {
18930 test "$cross_compiling" = yes ||
18931 $as_test_x conftest$ac_exeext
18933 ac_cv_lib_dl_dlopen=yes
18935 $as_echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18938 ac_cv_lib_dl_dlopen=no
18941 rm -rf conftest.dSYM
18942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18943 conftest$ac_exeext conftest.$ac_ext
18944 LIBS=$ac_check_lib_save_LIBS
18946 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18947 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18948 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
18949 cat >>confdefs.h <<_ACEOF
18950 #define HAVE_LIBDL 1
18960 for ac_func in dlopen dlclose dlsym
18962 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18963 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18964 $as_echo_n "checking for $ac_func... " >&6; }
18965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18966 $as_echo_n "(cached) " >&6
18968 cat >conftest.$ac_ext <<_ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h. */
18974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18976 #define $ac_func innocuous_$ac_func
18978 /* System header to define __stub macros and hopefully few prototypes,
18979 which can conflict with char $ac_func (); below.
18980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18981 <limits.h> exists even on freestanding compilers. */
18984 # include <limits.h>
18986 # include <assert.h>
18991 /* Override any GCC internal prototype to avoid an error.
18992 Use char because int might match the return type of a GCC
18993 builtin and then its argument prototype would still apply. */
18998 /* The GNU C library defines this for functions which it implements
18999 to always fail with ENOSYS. Some functions are actually named
19000 something starting with __ and the normal name is an alias. */
19001 #if defined __stub_$ac_func || defined __stub___$ac_func
19008 return $ac_func ();
19013 rm -f conftest.$ac_objext conftest$ac_exeext
19014 if { (ac_try="$ac_link"
19015 case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19020 $as_echo "$ac_try_echo") >&5
19021 (eval "$ac_link") 2>conftest.er1
19023 grep -v '^ *+' conftest.er1 >conftest.err
19025 cat conftest.err >&5
19026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } && {
19028 test -z "$ac_c_werror_flag" ||
19029 test ! -s conftest.err
19030 } && test -s conftest$ac_exeext && {
19031 test "$cross_compiling" = yes ||
19032 $as_test_x conftest$ac_exeext
19034 eval "$as_ac_var=yes"
19036 $as_echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19039 eval "$as_ac_var=no"
19042 rm -rf conftest.dSYM
19043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19044 conftest$ac_exeext conftest.$ac_ext
19046 ac_res=`eval 'as_val=${'$as_ac_var'}
19047 $as_echo "$as_val"'`
19048 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19049 $as_echo "$ac_res" >&6; }
19050 as_val=`eval 'as_val=${'$as_ac_var'}
19051 $as_echo "$as_val"'`
19052 if test "x$as_val" = x""yes; then
19053 cat >>confdefs.h <<_ACEOF
19054 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19062 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
19063 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
19064 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
19065 $as_echo_n "(cached) " >&6
19067 cat >conftest.$ac_ext <<_ACEOF
19070 cat confdefs.h >>conftest.$ac_ext
19071 cat >>conftest.$ac_ext <<_ACEOF
19072 /* end confdefs.h. */
19073 #include <signal.h>
19074 /* NetBSD declares sys_siglist in unistd.h. */
19075 #ifdef HAVE_UNISTD_H
19076 # include <unistd.h>
19083 #ifndef sys_siglist
19084 (void) sys_siglist;
19091 rm -f conftest.$ac_objext
19092 if { (ac_try="$ac_compile"
19093 case "(($ac_try" in
19094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095 *) ac_try_echo=$ac_try;;
19097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19098 $as_echo "$ac_try_echo") >&5
19099 (eval "$ac_compile") 2>conftest.er1
19101 grep -v '^ *+' conftest.er1 >conftest.err
19103 cat conftest.err >&5
19104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } && {
19106 test -z "$ac_c_werror_flag" ||
19107 test ! -s conftest.err
19108 } && test -s conftest.$ac_objext; then
19109 ac_cv_have_decl_sys_siglist=yes
19111 $as_echo "$as_me: failed program was:" >&5
19112 sed 's/^/| /' conftest.$ac_ext >&5
19114 ac_cv_have_decl_sys_siglist=no
19117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19119 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
19120 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
19121 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
19123 cat >>confdefs.h <<_ACEOF
19124 #define HAVE_DECL_SYS_SIGLIST 1
19129 cat >>confdefs.h <<_ACEOF
19130 #define HAVE_DECL_SYS_SIGLIST 0
19139 if test "$ac_cv_func_inet_aton" != 'yes'; then
19141 { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
19142 $as_echo_n "checking for inet_aton... " >&6; }
19143 if test "${bash_cv_func_inet_aton+set}" = set; then
19144 $as_echo_n "(cached) " >&6
19146 cat >conftest.$ac_ext <<_ACEOF
19149 cat confdefs.h >>conftest.$ac_ext
19150 cat >>conftest.$ac_ext <<_ACEOF
19151 /* end confdefs.h. */
19153 #include <sys/types.h>
19154 #include <netinet/in.h>
19155 #include <arpa/inet.h>
19160 inet_aton("127.0.0.1", &ap);
19165 rm -f conftest.$ac_objext conftest$ac_exeext
19166 if { (ac_try="$ac_link"
19167 case "(($ac_try" in
19168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169 *) ac_try_echo=$ac_try;;
19171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19172 $as_echo "$ac_try_echo") >&5
19173 (eval "$ac_link") 2>conftest.er1
19175 grep -v '^ *+' conftest.er1 >conftest.err
19177 cat conftest.err >&5
19178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); } && {
19180 test -z "$ac_c_werror_flag" ||
19181 test ! -s conftest.err
19182 } && test -s conftest$ac_exeext && {
19183 test "$cross_compiling" = yes ||
19184 $as_test_x conftest$ac_exeext
19186 bash_cv_func_inet_aton=yes
19188 $as_echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19191 bash_cv_func_inet_aton=no
19194 rm -rf conftest.dSYM
19195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19196 conftest$ac_exeext conftest.$ac_ext
19198 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
19199 $as_echo "$bash_cv_func_inet_aton" >&6; }
19200 if test $bash_cv_func_inet_aton = yes; then
19201 cat >>confdefs.h <<\_ACEOF
19202 #define HAVE_INET_ATON 1
19206 case " $LIBOBJS " in
19207 *" inet_aton.$ac_objext "* ) ;;
19208 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
19218 { $as_echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
19219 $as_echo_n "checking for getpwent in -lsun... " >&6; }
19220 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
19221 $as_echo_n "(cached) " >&6
19223 ac_check_lib_save_LIBS=$LIBS
19225 cat >conftest.$ac_ext <<_ACEOF
19228 cat confdefs.h >>conftest.$ac_ext
19229 cat >>conftest.$ac_ext <<_ACEOF
19230 /* end confdefs.h. */
19232 /* Override any GCC internal prototype to avoid an error.
19233 Use char because int might match the return type of a GCC
19234 builtin and then its argument prototype would still apply. */
19242 return getpwent ();
19247 rm -f conftest.$ac_objext conftest$ac_exeext
19248 if { (ac_try="$ac_link"
19249 case "(($ac_try" in
19250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251 *) ac_try_echo=$ac_try;;
19253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19254 $as_echo "$ac_try_echo") >&5
19255 (eval "$ac_link") 2>conftest.er1
19257 grep -v '^ *+' conftest.er1 >conftest.err
19259 cat conftest.err >&5
19260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); } && {
19262 test -z "$ac_c_werror_flag" ||
19263 test ! -s conftest.err
19264 } && test -s conftest$ac_exeext && {
19265 test "$cross_compiling" = yes ||
19266 $as_test_x conftest$ac_exeext
19268 ac_cv_lib_sun_getpwent=yes
19270 $as_echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19273 ac_cv_lib_sun_getpwent=no
19276 rm -rf conftest.dSYM
19277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19278 conftest$ac_exeext conftest.$ac_ext
19279 LIBS=$ac_check_lib_save_LIBS
19281 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
19282 $as_echo "$ac_cv_lib_sun_getpwent" >&6; }
19283 if test "x$ac_cv_lib_sun_getpwent" = x""yes; then
19284 cat >>confdefs.h <<_ACEOF
19285 #define HAVE_LIBSUN 1
19294 if test "$ac_cv_func_getpeername" = no; then
19296 if test "X$bash_cv_have_socklib" = "X"; then
19299 { $as_echo "$as_me:$LINENO: checking for socket library" >&5
19300 $as_echo_n "checking for socket library... " >&6; }
19303 if test "${bash_cv_have_socklib+set}" = set; then
19304 $as_echo_n "(cached) " >&6
19306 { $as_echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
19307 $as_echo_n "checking for getpeername in -lsocket... " >&6; }
19308 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
19309 $as_echo_n "(cached) " >&6
19311 ac_check_lib_save_LIBS=$LIBS
19312 LIBS="-lsocket -lnsl $LIBS"
19313 cat >conftest.$ac_ext <<_ACEOF
19316 cat confdefs.h >>conftest.$ac_ext
19317 cat >>conftest.$ac_ext <<_ACEOF
19318 /* end confdefs.h. */
19320 /* Override any GCC internal prototype to avoid an error.
19321 Use char because int might match the return type of a GCC
19322 builtin and then its argument prototype would still apply. */
19326 char getpeername ();
19330 return getpeername ();
19335 rm -f conftest.$ac_objext conftest$ac_exeext
19336 if { (ac_try="$ac_link"
19337 case "(($ac_try" in
19338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19339 *) ac_try_echo=$ac_try;;
19341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19342 $as_echo "$ac_try_echo") >&5
19343 (eval "$ac_link") 2>conftest.er1
19345 grep -v '^ *+' conftest.er1 >conftest.err
19347 cat conftest.err >&5
19348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } && {
19350 test -z "$ac_c_werror_flag" ||
19351 test ! -s conftest.err
19352 } && test -s conftest$ac_exeext && {
19353 test "$cross_compiling" = yes ||
19354 $as_test_x conftest$ac_exeext
19356 ac_cv_lib_socket_getpeername=yes
19358 $as_echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19361 ac_cv_lib_socket_getpeername=no
19364 rm -rf conftest.dSYM
19365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19366 conftest$ac_exeext conftest.$ac_ext
19367 LIBS=$ac_check_lib_save_LIBS
19369 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
19370 $as_echo "$ac_cv_lib_socket_getpeername" >&6; }
19371 if test "x$ac_cv_lib_socket_getpeername" = x""yes; then
19372 bash_cv_have_socklib=yes
19374 bash_cv_have_socklib=no
19379 if test "X$_bash_needmsg" = Xyes; then
19380 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
19381 $as_echo "$bash_cv_have_socklib" >&6; }
19384 if test $bash_cv_have_socklib = yes; then
19385 # check for libnsl, add it to LIBS if present
19386 if test "X$bash_cv_have_libnsl" = "X"; then
19389 { $as_echo "$as_me:$LINENO: checking for libnsl" >&5
19390 $as_echo_n "checking for libnsl... " >&6; }
19393 if test "${bash_cv_have_libnsl+set}" = set; then
19394 $as_echo_n "(cached) " >&6
19396 { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
19397 $as_echo_n "checking for t_open in -lnsl... " >&6; }
19398 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
19399 $as_echo_n "(cached) " >&6
19401 ac_check_lib_save_LIBS=$LIBS
19403 cat >conftest.$ac_ext <<_ACEOF
19406 cat confdefs.h >>conftest.$ac_ext
19407 cat >>conftest.$ac_ext <<_ACEOF
19408 /* end confdefs.h. */
19410 /* Override any GCC internal prototype to avoid an error.
19411 Use char because int might match the return type of a GCC
19412 builtin and then its argument prototype would still apply. */
19425 rm -f conftest.$ac_objext conftest$ac_exeext
19426 if { (ac_try="$ac_link"
19427 case "(($ac_try" in
19428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429 *) ac_try_echo=$ac_try;;
19431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19432 $as_echo "$ac_try_echo") >&5
19433 (eval "$ac_link") 2>conftest.er1
19435 grep -v '^ *+' conftest.er1 >conftest.err
19437 cat conftest.err >&5
19438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); } && {
19440 test -z "$ac_c_werror_flag" ||
19441 test ! -s conftest.err
19442 } && test -s conftest$ac_exeext && {
19443 test "$cross_compiling" = yes ||
19444 $as_test_x conftest$ac_exeext
19446 ac_cv_lib_nsl_t_open=yes
19448 $as_echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19451 ac_cv_lib_nsl_t_open=no
19454 rm -rf conftest.dSYM
19455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19456 conftest$ac_exeext conftest.$ac_ext
19457 LIBS=$ac_check_lib_save_LIBS
19459 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
19460 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
19461 if test "x$ac_cv_lib_nsl_t_open" = x""yes; then
19462 bash_cv_have_libnsl=yes
19464 bash_cv_have_libnsl=no
19469 if test "X$_bash_needmsg" = Xyes; then
19470 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
19471 $as_echo "$bash_cv_have_libnsl" >&6; }
19474 if test $bash_cv_have_libnsl = yes; then
19475 LIBS="-lsocket -lnsl $LIBS"
19477 LIBS="-lsocket $LIBS"
19479 cat >>confdefs.h <<\_ACEOF
19480 #define HAVE_LIBSOCKET 1
19483 cat >>confdefs.h <<\_ACEOF
19484 #define HAVE_GETPEERNAME 1
19490 if test "$ac_cv_func_gethostbyname" = no; then
19491 if test "X$bash_cv_have_gethostbyname" = "X"; then
19494 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
19495 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
19498 if test "${bash_cv_have_gethostbyname+set}" = set; then
19499 $as_echo_n "(cached) " >&6
19501 cat >conftest.$ac_ext <<_ACEOF
19504 cat confdefs.h >>conftest.$ac_ext
19505 cat >>conftest.$ac_ext <<_ACEOF
19506 /* end confdefs.h. */
19511 struct hostent *hp;
19512 hp = gethostbyname("localhost");
19518 rm -f conftest.$ac_objext conftest$ac_exeext
19519 if { (ac_try="$ac_link"
19520 case "(($ac_try" in
19521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522 *) ac_try_echo=$ac_try;;
19524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19525 $as_echo "$ac_try_echo") >&5
19526 (eval "$ac_link") 2>conftest.er1
19528 grep -v '^ *+' conftest.er1 >conftest.err
19530 cat conftest.err >&5
19531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); } && {
19533 test -z "$ac_c_werror_flag" ||
19534 test ! -s conftest.err
19535 } && test -s conftest$ac_exeext && {
19536 test "$cross_compiling" = yes ||
19537 $as_test_x conftest$ac_exeext
19539 bash_cv_have_gethostbyname=yes
19541 $as_echo "$as_me: failed program was:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19544 bash_cv_have_gethostbyname=no
19547 rm -rf conftest.dSYM
19548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19549 conftest$ac_exeext conftest.$ac_ext
19553 if test "X$_bash_needmsg" = Xyes; then
19554 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
19555 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
19557 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
19558 $as_echo "$bash_cv_have_gethostbyname" >&6; }
19559 if test "$bash_cv_have_gethostbyname" = yes; then
19560 cat >>confdefs.h <<\_ACEOF
19561 #define HAVE_GETHOSTBYNAME 1
19568 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19569 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19570 if test "${ac_cv_type_uid_t+set}" = set; then
19571 $as_echo_n "(cached) " >&6
19573 cat >conftest.$ac_ext <<_ACEOF
19576 cat confdefs.h >>conftest.$ac_ext
19577 cat >>conftest.$ac_ext <<_ACEOF
19578 /* end confdefs.h. */
19579 #include <sys/types.h>
19582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19583 $EGREP "uid_t" >/dev/null 2>&1; then
19584 ac_cv_type_uid_t=yes
19586 ac_cv_type_uid_t=no
19591 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19592 $as_echo "$ac_cv_type_uid_t" >&6; }
19593 if test $ac_cv_type_uid_t = no; then
19595 cat >>confdefs.h <<\_ACEOF
19600 cat >>confdefs.h <<\_ACEOF
19606 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
19607 $as_echo_n "checking type of array argument to getgroups... " >&6; }
19608 if test "${ac_cv_type_getgroups+set}" = set; then
19609 $as_echo_n "(cached) " >&6
19611 if test "$cross_compiling" = yes; then
19612 ac_cv_type_getgroups=cross
19614 cat >conftest.$ac_ext <<_ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h. */
19620 /* Thanks to Mike Rendell for this test. */
19621 $ac_includes_default
19624 #define MAX(x, y) ((x) > (y) ? (x) : (y))
19629 gid_t gidset[NGID];
19631 union { gid_t gval; long int lval; } val;
19634 for (i = 0; i < NGID; i++)
19635 gidset[i] = val.gval;
19636 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
19638 /* Exit non-zero if getgroups seems to require an array of ints. This
19639 happens when gid_t is short int but getgroups modifies an array
19641 return n > 0 && gidset[n] != val.gval;
19644 rm -f conftest$ac_exeext
19645 if { (ac_try="$ac_link"
19646 case "(($ac_try" in
19647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648 *) ac_try_echo=$ac_try;;
19650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19651 $as_echo "$ac_try_echo") >&5
19652 (eval "$ac_link") 2>&5
19654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19656 { (case "(($ac_try" in
19657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19658 *) ac_try_echo=$ac_try;;
19660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19661 $as_echo "$ac_try_echo") >&5
19662 (eval "$ac_try") 2>&5
19664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; }; then
19666 ac_cv_type_getgroups=gid_t
19668 $as_echo "$as_me: program exited with status $ac_status" >&5
19669 $as_echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.$ac_ext >&5
19672 ( exit $ac_status )
19673 ac_cv_type_getgroups=int
19675 rm -rf conftest.dSYM
19676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19680 if test $ac_cv_type_getgroups = cross; then
19681 cat >conftest.$ac_ext <<_ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19687 #include <unistd.h>
19690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19691 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
19692 ac_cv_type_getgroups=gid_t
19694 ac_cv_type_getgroups=int
19700 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
19701 $as_echo "$ac_cv_type_getgroups" >&6; }
19703 cat >>confdefs.h <<_ACEOF
19704 #define GETGROUPS_T $ac_cv_type_getgroups
19708 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
19709 $as_echo_n "checking for off_t... " >&6; }
19710 if test "${ac_cv_type_off_t+set}" = set; then
19711 $as_echo_n "(cached) " >&6
19713 ac_cv_type_off_t=no
19714 cat >conftest.$ac_ext <<_ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h. */
19720 $ac_includes_default
19724 if (sizeof (off_t))
19730 rm -f conftest.$ac_objext
19731 if { (ac_try="$ac_compile"
19732 case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19737 $as_echo "$ac_try_echo") >&5
19738 (eval "$ac_compile") 2>conftest.er1
19740 grep -v '^ *+' conftest.er1 >conftest.err
19742 cat conftest.err >&5
19743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } && {
19745 test -z "$ac_c_werror_flag" ||
19746 test ! -s conftest.err
19747 } && test -s conftest.$ac_objext; then
19748 cat >conftest.$ac_ext <<_ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19754 $ac_includes_default
19758 if (sizeof ((off_t)))
19764 rm -f conftest.$ac_objext
19765 if { (ac_try="$ac_compile"
19766 case "(($ac_try" in
19767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768 *) ac_try_echo=$ac_try;;
19770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19771 $as_echo "$ac_try_echo") >&5
19772 (eval "$ac_compile") 2>conftest.er1
19774 grep -v '^ *+' conftest.er1 >conftest.err
19776 cat conftest.err >&5
19777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } && {
19779 test -z "$ac_c_werror_flag" ||
19780 test ! -s conftest.err
19781 } && test -s conftest.$ac_objext; then
19784 $as_echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19787 ac_cv_type_off_t=yes
19790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19792 $as_echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19800 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19801 $as_echo "$ac_cv_type_off_t" >&6; }
19802 if test "x$ac_cv_type_off_t" = x""yes; then
19806 cat >>confdefs.h <<_ACEOF
19807 #define off_t long int
19812 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
19813 $as_echo_n "checking for mode_t... " >&6; }
19814 if test "${ac_cv_type_mode_t+set}" = set; then
19815 $as_echo_n "(cached) " >&6
19817 ac_cv_type_mode_t=no
19818 cat >conftest.$ac_ext <<_ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h. */
19824 $ac_includes_default
19828 if (sizeof (mode_t))
19834 rm -f conftest.$ac_objext
19835 if { (ac_try="$ac_compile"
19836 case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19841 $as_echo "$ac_try_echo") >&5
19842 (eval "$ac_compile") 2>conftest.er1
19844 grep -v '^ *+' conftest.er1 >conftest.err
19846 cat conftest.err >&5
19847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } && {
19849 test -z "$ac_c_werror_flag" ||
19850 test ! -s conftest.err
19851 } && test -s conftest.$ac_objext; then
19852 cat >conftest.$ac_ext <<_ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19858 $ac_includes_default
19862 if (sizeof ((mode_t)))
19868 rm -f conftest.$ac_objext
19869 if { (ac_try="$ac_compile"
19870 case "(($ac_try" in
19871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872 *) ac_try_echo=$ac_try;;
19874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19875 $as_echo "$ac_try_echo") >&5
19876 (eval "$ac_compile") 2>conftest.er1
19878 grep -v '^ *+' conftest.er1 >conftest.err
19880 cat conftest.err >&5
19881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } && {
19883 test -z "$ac_c_werror_flag" ||
19884 test ! -s conftest.err
19885 } && test -s conftest.$ac_objext; then
19888 $as_echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19891 ac_cv_type_mode_t=yes
19894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19896 $as_echo "$as_me: failed program was:" >&5
19897 sed 's/^/| /' conftest.$ac_ext >&5
19902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19904 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19905 $as_echo "$ac_cv_type_mode_t" >&6; }
19906 if test "x$ac_cv_type_mode_t" = x""yes; then
19910 cat >>confdefs.h <<_ACEOF
19916 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19917 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19918 if test "${ac_cv_type_uid_t+set}" = set; then
19919 $as_echo_n "(cached) " >&6
19921 cat >conftest.$ac_ext <<_ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19927 #include <sys/types.h>
19930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19931 $EGREP "uid_t" >/dev/null 2>&1; then
19932 ac_cv_type_uid_t=yes
19934 ac_cv_type_uid_t=no
19939 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19940 $as_echo "$ac_cv_type_uid_t" >&6; }
19941 if test $ac_cv_type_uid_t = no; then
19943 cat >>confdefs.h <<\_ACEOF
19948 cat >>confdefs.h <<\_ACEOF
19954 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
19955 $as_echo_n "checking for pid_t... " >&6; }
19956 if test "${ac_cv_type_pid_t+set}" = set; then
19957 $as_echo_n "(cached) " >&6
19959 ac_cv_type_pid_t=no
19960 cat >conftest.$ac_ext <<_ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h. */
19966 $ac_includes_default
19970 if (sizeof (pid_t))
19976 rm -f conftest.$ac_objext
19977 if { (ac_try="$ac_compile"
19978 case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19983 $as_echo "$ac_try_echo") >&5
19984 (eval "$ac_compile") 2>conftest.er1
19986 grep -v '^ *+' conftest.er1 >conftest.err
19988 cat conftest.err >&5
19989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } && {
19991 test -z "$ac_c_werror_flag" ||
19992 test ! -s conftest.err
19993 } && test -s conftest.$ac_objext; then
19994 cat >conftest.$ac_ext <<_ACEOF
19997 cat confdefs.h >>conftest.$ac_ext
19998 cat >>conftest.$ac_ext <<_ACEOF
19999 /* end confdefs.h. */
20000 $ac_includes_default
20004 if (sizeof ((pid_t)))
20010 rm -f conftest.$ac_objext
20011 if { (ac_try="$ac_compile"
20012 case "(($ac_try" in
20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20017 $as_echo "$ac_try_echo") >&5
20018 (eval "$ac_compile") 2>conftest.er1
20020 grep -v '^ *+' conftest.er1 >conftest.err
20022 cat conftest.err >&5
20023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } && {
20025 test -z "$ac_c_werror_flag" ||
20026 test ! -s conftest.err
20027 } && test -s conftest.$ac_objext; then
20030 $as_echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20033 ac_cv_type_pid_t=yes
20036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20038 $as_echo "$as_me: failed program was:" >&5
20039 sed 's/^/| /' conftest.$ac_ext >&5
20044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20046 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20047 $as_echo "$ac_cv_type_pid_t" >&6; }
20048 if test "x$ac_cv_type_pid_t" = x""yes; then
20052 cat >>confdefs.h <<_ACEOF
20058 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
20059 $as_echo_n "checking for size_t... " >&6; }
20060 if test "${ac_cv_type_size_t+set}" = set; then
20061 $as_echo_n "(cached) " >&6
20063 ac_cv_type_size_t=no
20064 cat >conftest.$ac_ext <<_ACEOF
20067 cat confdefs.h >>conftest.$ac_ext
20068 cat >>conftest.$ac_ext <<_ACEOF
20069 /* end confdefs.h. */
20070 $ac_includes_default
20074 if (sizeof (size_t))
20080 rm -f conftest.$ac_objext
20081 if { (ac_try="$ac_compile"
20082 case "(($ac_try" in
20083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084 *) ac_try_echo=$ac_try;;
20086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20087 $as_echo "$ac_try_echo") >&5
20088 (eval "$ac_compile") 2>conftest.er1
20090 grep -v '^ *+' conftest.er1 >conftest.err
20092 cat conftest.err >&5
20093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); } && {
20095 test -z "$ac_c_werror_flag" ||
20096 test ! -s conftest.err
20097 } && test -s conftest.$ac_objext; then
20098 cat >conftest.$ac_ext <<_ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h. */
20104 $ac_includes_default
20108 if (sizeof ((size_t)))
20114 rm -f conftest.$ac_objext
20115 if { (ac_try="$ac_compile"
20116 case "(($ac_try" in
20117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20118 *) ac_try_echo=$ac_try;;
20120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20121 $as_echo "$ac_try_echo") >&5
20122 (eval "$ac_compile") 2>conftest.er1
20124 grep -v '^ *+' conftest.er1 >conftest.err
20126 cat conftest.err >&5
20127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); } && {
20129 test -z "$ac_c_werror_flag" ||
20130 test ! -s conftest.err
20131 } && test -s conftest.$ac_objext; then
20134 $as_echo "$as_me: failed program was:" >&5
20135 sed 's/^/| /' conftest.$ac_ext >&5
20137 ac_cv_type_size_t=yes
20140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20142 $as_echo "$as_me: failed program was:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20150 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20151 $as_echo "$ac_cv_type_size_t" >&6; }
20152 if test "x$ac_cv_type_size_t" = x""yes; then
20156 cat >>confdefs.h <<_ACEOF
20157 #define size_t unsigned int
20162 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
20163 $as_echo_n "checking for ssize_t... " >&6; }
20164 if test "${ac_cv_type_ssize_t+set}" = set; then
20165 $as_echo_n "(cached) " >&6
20167 ac_cv_type_ssize_t=no
20168 cat >conftest.$ac_ext <<_ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h. */
20174 $ac_includes_default
20178 if (sizeof (ssize_t))
20184 rm -f conftest.$ac_objext
20185 if { (ac_try="$ac_compile"
20186 case "(($ac_try" in
20187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188 *) ac_try_echo=$ac_try;;
20190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20191 $as_echo "$ac_try_echo") >&5
20192 (eval "$ac_compile") 2>conftest.er1
20194 grep -v '^ *+' conftest.er1 >conftest.err
20196 cat conftest.err >&5
20197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } && {
20199 test -z "$ac_c_werror_flag" ||
20200 test ! -s conftest.err
20201 } && test -s conftest.$ac_objext; then
20202 cat >conftest.$ac_ext <<_ACEOF
20205 cat confdefs.h >>conftest.$ac_ext
20206 cat >>conftest.$ac_ext <<_ACEOF
20207 /* end confdefs.h. */
20208 $ac_includes_default
20212 if (sizeof ((ssize_t)))
20218 rm -f conftest.$ac_objext
20219 if { (ac_try="$ac_compile"
20220 case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20225 $as_echo "$ac_try_echo") >&5
20226 (eval "$ac_compile") 2>conftest.er1
20228 grep -v '^ *+' conftest.er1 >conftest.err
20230 cat conftest.err >&5
20231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } && {
20233 test -z "$ac_c_werror_flag" ||
20234 test ! -s conftest.err
20235 } && test -s conftest.$ac_objext; then
20238 $as_echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20241 ac_cv_type_ssize_t=yes
20244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20246 $as_echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20254 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20255 $as_echo "$ac_cv_type_ssize_t" >&6; }
20256 if test "x$ac_cv_type_ssize_t" = x""yes; then
20260 cat >>confdefs.h <<_ACEOF
20261 #define ssize_t int
20266 { $as_echo "$as_me:$LINENO: checking for time_t" >&5
20267 $as_echo_n "checking for time_t... " >&6; }
20268 if test "${ac_cv_type_time_t+set}" = set; then
20269 $as_echo_n "(cached) " >&6
20271 ac_cv_type_time_t=no
20272 cat >conftest.$ac_ext <<_ACEOF
20275 cat confdefs.h >>conftest.$ac_ext
20276 cat >>conftest.$ac_ext <<_ACEOF
20277 /* end confdefs.h. */
20278 $ac_includes_default
20282 if (sizeof (time_t))
20288 rm -f conftest.$ac_objext
20289 if { (ac_try="$ac_compile"
20290 case "(($ac_try" in
20291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292 *) ac_try_echo=$ac_try;;
20294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20295 $as_echo "$ac_try_echo") >&5
20296 (eval "$ac_compile") 2>conftest.er1
20298 grep -v '^ *+' conftest.er1 >conftest.err
20300 cat conftest.err >&5
20301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); } && {
20303 test -z "$ac_c_werror_flag" ||
20304 test ! -s conftest.err
20305 } && test -s conftest.$ac_objext; then
20306 cat >conftest.$ac_ext <<_ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h. */
20312 $ac_includes_default
20316 if (sizeof ((time_t)))
20322 rm -f conftest.$ac_objext
20323 if { (ac_try="$ac_compile"
20324 case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20329 $as_echo "$ac_try_echo") >&5
20330 (eval "$ac_compile") 2>conftest.er1
20332 grep -v '^ *+' conftest.er1 >conftest.err
20334 cat conftest.err >&5
20335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } && {
20337 test -z "$ac_c_werror_flag" ||
20338 test ! -s conftest.err
20339 } && test -s conftest.$ac_objext; then
20342 $as_echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20345 ac_cv_type_time_t=yes
20348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20350 $as_echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20358 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
20359 $as_echo "$ac_cv_type_time_t" >&6; }
20360 if test "x$ac_cv_type_time_t" = x""yes; then
20364 cat >>confdefs.h <<_ACEOF
20365 #define time_t long
20372 { $as_echo "$as_me:$LINENO: checking for long long" >&5
20373 $as_echo_n "checking for long long... " >&6; }
20374 if test "${bash_cv_type_long_long+set}" = set; then
20375 $as_echo_n "(cached) " >&6
20377 cat >conftest.$ac_ext <<_ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h. */
20384 long long ll = 1; int i = 63;
20389 long long llm = (long long) -1;
20390 return ll << i | ll >> i | llm / ll | llm % ll;
20396 rm -f conftest.$ac_objext conftest$ac_exeext
20397 if { (ac_try="$ac_link"
20398 case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20403 $as_echo "$ac_try_echo") >&5
20404 (eval "$ac_link") 2>conftest.er1
20406 grep -v '^ *+' conftest.er1 >conftest.err
20408 cat conftest.err >&5
20409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } && {
20411 test -z "$ac_c_werror_flag" ||
20412 test ! -s conftest.err
20413 } && test -s conftest$ac_exeext && {
20414 test "$cross_compiling" = yes ||
20415 $as_test_x conftest$ac_exeext
20417 bash_cv_type_long_long='long long'
20419 $as_echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20422 bash_cv_type_long_long='long'
20425 rm -rf conftest.dSYM
20426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20427 conftest$ac_exeext conftest.$ac_ext
20429 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
20430 $as_echo "$bash_cv_type_long_long" >&6; }
20431 if test "$bash_cv_type_long_long" = 'long long'; then
20432 cat >>confdefs.h <<\_ACEOF
20433 #define HAVE_LONG_LONG 1
20439 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
20440 $as_echo_n "checking for unsigned long long... " >&6; }
20441 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
20442 $as_echo_n "(cached) " >&6
20444 cat >conftest.$ac_ext <<_ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h. */
20451 unsigned long long ull = 1; int i = 63;
20456 unsigned long long ullmax = (unsigned long long) -1;
20457 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20463 rm -f conftest.$ac_objext conftest$ac_exeext
20464 if { (ac_try="$ac_link"
20465 case "(($ac_try" in
20466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467 *) ac_try_echo=$ac_try;;
20469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20470 $as_echo "$ac_try_echo") >&5
20471 (eval "$ac_link") 2>conftest.er1
20473 grep -v '^ *+' conftest.er1 >conftest.err
20475 cat conftest.err >&5
20476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } && {
20478 test -z "$ac_c_werror_flag" ||
20479 test ! -s conftest.err
20480 } && test -s conftest$ac_exeext && {
20481 test "$cross_compiling" = yes ||
20482 $as_test_x conftest$ac_exeext
20484 bash_cv_type_unsigned_long_long='unsigned long long'
20486 $as_echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20489 bash_cv_type_unsigned_long_long='unsigned long'
20492 rm -rf conftest.dSYM
20493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20494 conftest$ac_exeext conftest.$ac_ext
20496 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
20497 $as_echo "$bash_cv_type_unsigned_long_long" >&6; }
20498 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
20499 cat >>confdefs.h <<\_ACEOF
20500 #define HAVE_UNSIGNED_LONG_LONG 1
20506 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20507 $as_echo_n "checking return type of signal handlers... " >&6; }
20508 if test "${ac_cv_type_signal+set}" = set; then
20509 $as_echo_n "(cached) " >&6
20511 cat >conftest.$ac_ext <<_ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h. */
20517 #include <sys/types.h>
20518 #include <signal.h>
20523 return *(signal (0, 0)) (0) == 1;
20528 rm -f conftest.$ac_objext
20529 if { (ac_try="$ac_compile"
20530 case "(($ac_try" in
20531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20532 *) ac_try_echo=$ac_try;;
20534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20535 $as_echo "$ac_try_echo") >&5
20536 (eval "$ac_compile") 2>conftest.er1
20538 grep -v '^ *+' conftest.er1 >conftest.err
20540 cat conftest.err >&5
20541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); } && {
20543 test -z "$ac_c_werror_flag" ||
20544 test ! -s conftest.err
20545 } && test -s conftest.$ac_objext; then
20546 ac_cv_type_signal=int
20548 $as_echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.$ac_ext >&5
20551 ac_cv_type_signal=void
20554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20556 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20557 $as_echo "$ac_cv_type_signal" >&6; }
20559 cat >>confdefs.h <<_ACEOF
20560 #define RETSIGTYPE $ac_cv_type_signal
20564 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
20565 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
20566 if test "${ac_cv_have_sig_atomic_t+set}" = set; then
20567 $as_echo_n "(cached) " >&6
20569 cat >conftest.$ac_ext <<_ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h. */
20576 #include <signal.h>
20586 rm -f conftest.$ac_objext conftest$ac_exeext
20587 if { (ac_try="$ac_link"
20588 case "(($ac_try" in
20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590 *) ac_try_echo=$ac_try;;
20592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20593 $as_echo "$ac_try_echo") >&5
20594 (eval "$ac_link") 2>conftest.er1
20596 grep -v '^ *+' conftest.er1 >conftest.err
20598 cat conftest.err >&5
20599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); } && {
20601 test -z "$ac_c_werror_flag" ||
20602 test ! -s conftest.err
20603 } && test -s conftest$ac_exeext && {
20604 test "$cross_compiling" = yes ||
20605 $as_test_x conftest$ac_exeext
20607 ac_cv_have_sig_atomic_t=yes
20609 $as_echo "$as_me: failed program was:" >&5
20610 sed 's/^/| /' conftest.$ac_ext >&5
20612 ac_cv_have_sig_atomic_t=no
20615 rm -rf conftest.dSYM
20616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20617 conftest$ac_exeext conftest.$ac_ext
20619 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_sig_atomic_t" >&5
20620 $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
20621 if test "$ac_cv_have_sig_atomic_t" = "no"
20623 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
20624 $as_echo_n "checking for sig_atomic_t... " >&6; }
20625 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
20626 $as_echo_n "(cached) " >&6
20628 ac_cv_type_sig_atomic_t=no
20629 cat >conftest.$ac_ext <<_ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20635 $ac_includes_default
20639 if (sizeof (sig_atomic_t))
20645 rm -f conftest.$ac_objext
20646 if { (ac_try="$ac_compile"
20647 case "(($ac_try" in
20648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20649 *) ac_try_echo=$ac_try;;
20651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20652 $as_echo "$ac_try_echo") >&5
20653 (eval "$ac_compile") 2>conftest.er1
20655 grep -v '^ *+' conftest.er1 >conftest.err
20657 cat conftest.err >&5
20658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); } && {
20660 test -z "$ac_c_werror_flag" ||
20661 test ! -s conftest.err
20662 } && test -s conftest.$ac_objext; then
20663 cat >conftest.$ac_ext <<_ACEOF
20666 cat confdefs.h >>conftest.$ac_ext
20667 cat >>conftest.$ac_ext <<_ACEOF
20668 /* end confdefs.h. */
20669 $ac_includes_default
20673 if (sizeof ((sig_atomic_t)))
20679 rm -f conftest.$ac_objext
20680 if { (ac_try="$ac_compile"
20681 case "(($ac_try" in
20682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683 *) ac_try_echo=$ac_try;;
20685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20686 $as_echo "$ac_try_echo") >&5
20687 (eval "$ac_compile") 2>conftest.er1
20689 grep -v '^ *+' conftest.er1 >conftest.err
20691 cat conftest.err >&5
20692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); } && {
20694 test -z "$ac_c_werror_flag" ||
20695 test ! -s conftest.err
20696 } && test -s conftest.$ac_objext; then
20699 $as_echo "$as_me: failed program was:" >&5
20700 sed 's/^/| /' conftest.$ac_ext >&5
20702 ac_cv_type_sig_atomic_t=yes
20705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20707 $as_echo "$as_me: failed program was:" >&5
20708 sed 's/^/| /' conftest.$ac_ext >&5
20713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20715 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
20716 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
20717 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
20721 cat >>confdefs.h <<_ACEOF
20722 #define sig_atomic_t int
20730 # The cast to long int works around a bug in the HP C Compiler
20731 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20732 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20733 # This bug is HP SR number 8606223364.
20734 { $as_echo "$as_me:$LINENO: checking size of char" >&5
20735 $as_echo_n "checking size of char... " >&6; }
20736 if test "${ac_cv_sizeof_char+set}" = set; then
20737 $as_echo_n "(cached) " >&6
20739 if test "$cross_compiling" = yes; then
20740 # Depending upon the size, compute the lo and hi bounds.
20741 cat >conftest.$ac_ext <<_ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20747 $ac_includes_default
20751 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
20758 rm -f conftest.$ac_objext
20759 if { (ac_try="$ac_compile"
20760 case "(($ac_try" in
20761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762 *) ac_try_echo=$ac_try;;
20764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20765 $as_echo "$ac_try_echo") >&5
20766 (eval "$ac_compile") 2>conftest.er1
20768 grep -v '^ *+' conftest.er1 >conftest.err
20770 cat conftest.err >&5
20771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } && {
20773 test -z "$ac_c_werror_flag" ||
20774 test ! -s conftest.err
20775 } && test -s conftest.$ac_objext; then
20778 cat >conftest.$ac_ext <<_ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h. */
20784 $ac_includes_default
20788 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
20795 rm -f conftest.$ac_objext
20796 if { (ac_try="$ac_compile"
20797 case "(($ac_try" in
20798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799 *) ac_try_echo=$ac_try;;
20801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20802 $as_echo "$ac_try_echo") >&5
20803 (eval "$ac_compile") 2>conftest.er1
20805 grep -v '^ *+' conftest.er1 >conftest.err
20807 cat conftest.err >&5
20808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); } && {
20810 test -z "$ac_c_werror_flag" ||
20811 test ! -s conftest.err
20812 } && test -s conftest.$ac_objext; then
20813 ac_hi=$ac_mid; break
20815 $as_echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20818 ac_lo=`expr $ac_mid + 1`
20819 if test $ac_lo -le $ac_mid; then
20823 ac_mid=`expr 2 '*' $ac_mid + 1`
20826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20829 $as_echo "$as_me: failed program was:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20832 cat >conftest.$ac_ext <<_ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h. */
20838 $ac_includes_default
20842 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
20849 rm -f conftest.$ac_objext
20850 if { (ac_try="$ac_compile"
20851 case "(($ac_try" in
20852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853 *) ac_try_echo=$ac_try;;
20855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20856 $as_echo "$ac_try_echo") >&5
20857 (eval "$ac_compile") 2>conftest.er1
20859 grep -v '^ *+' conftest.er1 >conftest.err
20861 cat conftest.err >&5
20862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } && {
20864 test -z "$ac_c_werror_flag" ||
20865 test ! -s conftest.err
20866 } && test -s conftest.$ac_objext; then
20869 cat >conftest.$ac_ext <<_ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h. */
20875 $ac_includes_default
20879 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
20886 rm -f conftest.$ac_objext
20887 if { (ac_try="$ac_compile"
20888 case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20893 $as_echo "$ac_try_echo") >&5
20894 (eval "$ac_compile") 2>conftest.er1
20896 grep -v '^ *+' conftest.er1 >conftest.err
20898 cat conftest.err >&5
20899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); } && {
20901 test -z "$ac_c_werror_flag" ||
20902 test ! -s conftest.err
20903 } && test -s conftest.$ac_objext; then
20904 ac_lo=$ac_mid; break
20906 $as_echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20909 ac_hi=`expr '(' $ac_mid ')' - 1`
20910 if test $ac_mid -le $ac_hi; then
20914 ac_mid=`expr 2 '*' $ac_mid`
20917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20920 $as_echo "$as_me: failed program was:" >&5
20921 sed 's/^/| /' conftest.$ac_ext >&5
20926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20930 # Binary search between lo and hi bounds.
20931 while test "x$ac_lo" != "x$ac_hi"; do
20932 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20933 cat >conftest.$ac_ext <<_ACEOF
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h. */
20939 $ac_includes_default
20943 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
20950 rm -f conftest.$ac_objext
20951 if { (ac_try="$ac_compile"
20952 case "(($ac_try" in
20953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954 *) ac_try_echo=$ac_try;;
20956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20957 $as_echo "$ac_try_echo") >&5
20958 (eval "$ac_compile") 2>conftest.er1
20960 grep -v '^ *+' conftest.er1 >conftest.err
20962 cat conftest.err >&5
20963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); } && {
20965 test -z "$ac_c_werror_flag" ||
20966 test ! -s conftest.err
20967 } && test -s conftest.$ac_objext; then
20970 $as_echo "$as_me: failed program was:" >&5
20971 sed 's/^/| /' conftest.$ac_ext >&5
20973 ac_lo=`expr '(' $ac_mid ')' + 1`
20976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20979 ?*) ac_cv_sizeof_char=$ac_lo;;
20980 '') if test "$ac_cv_type_char" = yes; then
20981 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20983 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20984 See \`config.log' for more details." >&5
20985 $as_echo "$as_me: error: cannot compute sizeof (char)
20986 See \`config.log' for more details." >&2;}
20987 { (exit 77); exit 77; }; }; }
20989 ac_cv_sizeof_char=0
20993 cat >conftest.$ac_ext <<_ACEOF
20996 cat confdefs.h >>conftest.$ac_ext
20997 cat >>conftest.$ac_ext <<_ACEOF
20998 /* end confdefs.h. */
20999 $ac_includes_default
21000 static long int longval () { return (long int) (sizeof (char)); }
21001 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
21003 #include <stdlib.h>
21008 FILE *f = fopen ("conftest.val", "w");
21011 if (((long int) (sizeof (char))) < 0)
21013 long int i = longval ();
21014 if (i != ((long int) (sizeof (char))))
21016 fprintf (f, "%ld", i);
21020 unsigned long int i = ulongval ();
21021 if (i != ((long int) (sizeof (char))))
21023 fprintf (f, "%lu", i);
21025 /* Do not output a trailing newline, as this causes \r\n confusion
21026 on some platforms. */
21027 return ferror (f) || fclose (f) != 0;
21033 rm -f conftest$ac_exeext
21034 if { (ac_try="$ac_link"
21035 case "(($ac_try" in
21036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21037 *) ac_try_echo=$ac_try;;
21039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21040 $as_echo "$ac_try_echo") >&5
21041 (eval "$ac_link") 2>&5
21043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21045 { (case "(($ac_try" in
21046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047 *) ac_try_echo=$ac_try;;
21049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21050 $as_echo "$ac_try_echo") >&5
21051 (eval "$ac_try") 2>&5
21053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); }; }; then
21055 ac_cv_sizeof_char=`cat conftest.val`
21057 $as_echo "$as_me: program exited with status $ac_status" >&5
21058 $as_echo "$as_me: failed program was:" >&5
21059 sed 's/^/| /' conftest.$ac_ext >&5
21061 ( exit $ac_status )
21062 if test "$ac_cv_type_char" = yes; then
21063 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21065 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
21066 See \`config.log' for more details." >&5
21067 $as_echo "$as_me: error: cannot compute sizeof (char)
21068 See \`config.log' for more details." >&2;}
21069 { (exit 77); exit 77; }; }; }
21071 ac_cv_sizeof_char=0
21074 rm -rf conftest.dSYM
21075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21079 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
21080 $as_echo "$ac_cv_sizeof_char" >&6; }
21084 cat >>confdefs.h <<_ACEOF
21085 #define SIZEOF_CHAR $ac_cv_sizeof_char
21089 # The cast to long int works around a bug in the HP C Compiler
21090 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21091 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21092 # This bug is HP SR number 8606223364.
21093 { $as_echo "$as_me:$LINENO: checking size of short" >&5
21094 $as_echo_n "checking size of short... " >&6; }
21095 if test "${ac_cv_sizeof_short+set}" = set; then
21096 $as_echo_n "(cached) " >&6
21098 if test "$cross_compiling" = yes; then
21099 # Depending upon the size, compute the lo and hi bounds.
21100 cat >conftest.$ac_ext <<_ACEOF
21103 cat confdefs.h >>conftest.$ac_ext
21104 cat >>conftest.$ac_ext <<_ACEOF
21105 /* end confdefs.h. */
21106 $ac_includes_default
21110 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
21117 rm -f conftest.$ac_objext
21118 if { (ac_try="$ac_compile"
21119 case "(($ac_try" in
21120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21121 *) ac_try_echo=$ac_try;;
21123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21124 $as_echo "$ac_try_echo") >&5
21125 (eval "$ac_compile") 2>conftest.er1
21127 grep -v '^ *+' conftest.er1 >conftest.err
21129 cat conftest.err >&5
21130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); } && {
21132 test -z "$ac_c_werror_flag" ||
21133 test ! -s conftest.err
21134 } && test -s conftest.$ac_objext; then
21137 cat >conftest.$ac_ext <<_ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h. */
21143 $ac_includes_default
21147 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
21154 rm -f conftest.$ac_objext
21155 if { (ac_try="$ac_compile"
21156 case "(($ac_try" in
21157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21158 *) ac_try_echo=$ac_try;;
21160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21161 $as_echo "$ac_try_echo") >&5
21162 (eval "$ac_compile") 2>conftest.er1
21164 grep -v '^ *+' conftest.er1 >conftest.err
21166 cat conftest.err >&5
21167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } && {
21169 test -z "$ac_c_werror_flag" ||
21170 test ! -s conftest.err
21171 } && test -s conftest.$ac_objext; then
21172 ac_hi=$ac_mid; break
21174 $as_echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21177 ac_lo=`expr $ac_mid + 1`
21178 if test $ac_lo -le $ac_mid; then
21182 ac_mid=`expr 2 '*' $ac_mid + 1`
21185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21188 $as_echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21191 cat >conftest.$ac_ext <<_ACEOF
21194 cat confdefs.h >>conftest.$ac_ext
21195 cat >>conftest.$ac_ext <<_ACEOF
21196 /* end confdefs.h. */
21197 $ac_includes_default
21201 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
21208 rm -f conftest.$ac_objext
21209 if { (ac_try="$ac_compile"
21210 case "(($ac_try" in
21211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21212 *) ac_try_echo=$ac_try;;
21214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21215 $as_echo "$ac_try_echo") >&5
21216 (eval "$ac_compile") 2>conftest.er1
21218 grep -v '^ *+' conftest.er1 >conftest.err
21220 cat conftest.err >&5
21221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); } && {
21223 test -z "$ac_c_werror_flag" ||
21224 test ! -s conftest.err
21225 } && test -s conftest.$ac_objext; then
21228 cat >conftest.$ac_ext <<_ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h. */
21234 $ac_includes_default
21238 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
21245 rm -f conftest.$ac_objext
21246 if { (ac_try="$ac_compile"
21247 case "(($ac_try" in
21248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21249 *) ac_try_echo=$ac_try;;
21251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21252 $as_echo "$ac_try_echo") >&5
21253 (eval "$ac_compile") 2>conftest.er1
21255 grep -v '^ *+' conftest.er1 >conftest.err
21257 cat conftest.err >&5
21258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); } && {
21260 test -z "$ac_c_werror_flag" ||
21261 test ! -s conftest.err
21262 } && test -s conftest.$ac_objext; then
21263 ac_lo=$ac_mid; break
21265 $as_echo "$as_me: failed program was:" >&5
21266 sed 's/^/| /' conftest.$ac_ext >&5
21268 ac_hi=`expr '(' $ac_mid ')' - 1`
21269 if test $ac_mid -le $ac_hi; then
21273 ac_mid=`expr 2 '*' $ac_mid`
21276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21279 $as_echo "$as_me: failed program was:" >&5
21280 sed 's/^/| /' conftest.$ac_ext >&5
21285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21289 # Binary search between lo and hi bounds.
21290 while test "x$ac_lo" != "x$ac_hi"; do
21291 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21292 cat >conftest.$ac_ext <<_ACEOF
21295 cat confdefs.h >>conftest.$ac_ext
21296 cat >>conftest.$ac_ext <<_ACEOF
21297 /* end confdefs.h. */
21298 $ac_includes_default
21302 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
21309 rm -f conftest.$ac_objext
21310 if { (ac_try="$ac_compile"
21311 case "(($ac_try" in
21312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21313 *) ac_try_echo=$ac_try;;
21315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21316 $as_echo "$ac_try_echo") >&5
21317 (eval "$ac_compile") 2>conftest.er1
21319 grep -v '^ *+' conftest.er1 >conftest.err
21321 cat conftest.err >&5
21322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); } && {
21324 test -z "$ac_c_werror_flag" ||
21325 test ! -s conftest.err
21326 } && test -s conftest.$ac_objext; then
21329 $as_echo "$as_me: failed program was:" >&5
21330 sed 's/^/| /' conftest.$ac_ext >&5
21332 ac_lo=`expr '(' $ac_mid ')' + 1`
21335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21338 ?*) ac_cv_sizeof_short=$ac_lo;;
21339 '') if test "$ac_cv_type_short" = yes; then
21340 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21342 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21343 See \`config.log' for more details." >&5
21344 $as_echo "$as_me: error: cannot compute sizeof (short)
21345 See \`config.log' for more details." >&2;}
21346 { (exit 77); exit 77; }; }; }
21348 ac_cv_sizeof_short=0
21352 cat >conftest.$ac_ext <<_ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h. */
21358 $ac_includes_default
21359 static long int longval () { return (long int) (sizeof (short)); }
21360 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
21362 #include <stdlib.h>
21367 FILE *f = fopen ("conftest.val", "w");
21370 if (((long int) (sizeof (short))) < 0)
21372 long int i = longval ();
21373 if (i != ((long int) (sizeof (short))))
21375 fprintf (f, "%ld", i);
21379 unsigned long int i = ulongval ();
21380 if (i != ((long int) (sizeof (short))))
21382 fprintf (f, "%lu", i);
21384 /* Do not output a trailing newline, as this causes \r\n confusion
21385 on some platforms. */
21386 return ferror (f) || fclose (f) != 0;
21392 rm -f conftest$ac_exeext
21393 if { (ac_try="$ac_link"
21394 case "(($ac_try" in
21395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396 *) ac_try_echo=$ac_try;;
21398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21399 $as_echo "$ac_try_echo") >&5
21400 (eval "$ac_link") 2>&5
21402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21404 { (case "(($ac_try" in
21405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406 *) ac_try_echo=$ac_try;;
21408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21409 $as_echo "$ac_try_echo") >&5
21410 (eval "$ac_try") 2>&5
21412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); }; }; then
21414 ac_cv_sizeof_short=`cat conftest.val`
21416 $as_echo "$as_me: program exited with status $ac_status" >&5
21417 $as_echo "$as_me: failed program was:" >&5
21418 sed 's/^/| /' conftest.$ac_ext >&5
21420 ( exit $ac_status )
21421 if test "$ac_cv_type_short" = yes; then
21422 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21424 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21425 See \`config.log' for more details." >&5
21426 $as_echo "$as_me: error: cannot compute sizeof (short)
21427 See \`config.log' for more details." >&2;}
21428 { (exit 77); exit 77; }; }; }
21430 ac_cv_sizeof_short=0
21433 rm -rf conftest.dSYM
21434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21438 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21439 $as_echo "$ac_cv_sizeof_short" >&6; }
21443 cat >>confdefs.h <<_ACEOF
21444 #define SIZEOF_SHORT $ac_cv_sizeof_short
21448 # The cast to long int works around a bug in the HP C Compiler
21449 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21450 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21451 # This bug is HP SR number 8606223364.
21452 { $as_echo "$as_me:$LINENO: checking size of int" >&5
21453 $as_echo_n "checking size of int... " >&6; }
21454 if test "${ac_cv_sizeof_int+set}" = set; then
21455 $as_echo_n "(cached) " >&6
21457 if test "$cross_compiling" = yes; then
21458 # Depending upon the size, compute the lo and hi bounds.
21459 cat >conftest.$ac_ext <<_ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h. */
21465 $ac_includes_default
21469 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
21476 rm -f conftest.$ac_objext
21477 if { (ac_try="$ac_compile"
21478 case "(($ac_try" in
21479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21480 *) ac_try_echo=$ac_try;;
21482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21483 $as_echo "$ac_try_echo") >&5
21484 (eval "$ac_compile") 2>conftest.er1
21486 grep -v '^ *+' conftest.er1 >conftest.err
21488 cat conftest.err >&5
21489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } && {
21491 test -z "$ac_c_werror_flag" ||
21492 test ! -s conftest.err
21493 } && test -s conftest.$ac_objext; then
21496 cat >conftest.$ac_ext <<_ACEOF
21499 cat confdefs.h >>conftest.$ac_ext
21500 cat >>conftest.$ac_ext <<_ACEOF
21501 /* end confdefs.h. */
21502 $ac_includes_default
21506 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
21513 rm -f conftest.$ac_objext
21514 if { (ac_try="$ac_compile"
21515 case "(($ac_try" in
21516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517 *) ac_try_echo=$ac_try;;
21519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21520 $as_echo "$ac_try_echo") >&5
21521 (eval "$ac_compile") 2>conftest.er1
21523 grep -v '^ *+' conftest.er1 >conftest.err
21525 cat conftest.err >&5
21526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } && {
21528 test -z "$ac_c_werror_flag" ||
21529 test ! -s conftest.err
21530 } && test -s conftest.$ac_objext; then
21531 ac_hi=$ac_mid; break
21533 $as_echo "$as_me: failed program was:" >&5
21534 sed 's/^/| /' conftest.$ac_ext >&5
21536 ac_lo=`expr $ac_mid + 1`
21537 if test $ac_lo -le $ac_mid; then
21541 ac_mid=`expr 2 '*' $ac_mid + 1`
21544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21547 $as_echo "$as_me: failed program was:" >&5
21548 sed 's/^/| /' conftest.$ac_ext >&5
21550 cat >conftest.$ac_ext <<_ACEOF
21553 cat confdefs.h >>conftest.$ac_ext
21554 cat >>conftest.$ac_ext <<_ACEOF
21555 /* end confdefs.h. */
21556 $ac_includes_default
21560 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
21567 rm -f conftest.$ac_objext
21568 if { (ac_try="$ac_compile"
21569 case "(($ac_try" in
21570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571 *) ac_try_echo=$ac_try;;
21573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21574 $as_echo "$ac_try_echo") >&5
21575 (eval "$ac_compile") 2>conftest.er1
21577 grep -v '^ *+' conftest.er1 >conftest.err
21579 cat conftest.err >&5
21580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } && {
21582 test -z "$ac_c_werror_flag" ||
21583 test ! -s conftest.err
21584 } && test -s conftest.$ac_objext; then
21587 cat >conftest.$ac_ext <<_ACEOF
21590 cat confdefs.h >>conftest.$ac_ext
21591 cat >>conftest.$ac_ext <<_ACEOF
21592 /* end confdefs.h. */
21593 $ac_includes_default
21597 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
21604 rm -f conftest.$ac_objext
21605 if { (ac_try="$ac_compile"
21606 case "(($ac_try" in
21607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21608 *) ac_try_echo=$ac_try;;
21610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21611 $as_echo "$ac_try_echo") >&5
21612 (eval "$ac_compile") 2>conftest.er1
21614 grep -v '^ *+' conftest.er1 >conftest.err
21616 cat conftest.err >&5
21617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); } && {
21619 test -z "$ac_c_werror_flag" ||
21620 test ! -s conftest.err
21621 } && test -s conftest.$ac_objext; then
21622 ac_lo=$ac_mid; break
21624 $as_echo "$as_me: failed program was:" >&5
21625 sed 's/^/| /' conftest.$ac_ext >&5
21627 ac_hi=`expr '(' $ac_mid ')' - 1`
21628 if test $ac_mid -le $ac_hi; then
21632 ac_mid=`expr 2 '*' $ac_mid`
21635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21638 $as_echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21648 # Binary search between lo and hi bounds.
21649 while test "x$ac_lo" != "x$ac_hi"; do
21650 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21651 cat >conftest.$ac_ext <<_ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h. */
21657 $ac_includes_default
21661 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
21668 rm -f conftest.$ac_objext
21669 if { (ac_try="$ac_compile"
21670 case "(($ac_try" in
21671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21672 *) ac_try_echo=$ac_try;;
21674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21675 $as_echo "$ac_try_echo") >&5
21676 (eval "$ac_compile") 2>conftest.er1
21678 grep -v '^ *+' conftest.er1 >conftest.err
21680 cat conftest.err >&5
21681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682 (exit $ac_status); } && {
21683 test -z "$ac_c_werror_flag" ||
21684 test ! -s conftest.err
21685 } && test -s conftest.$ac_objext; then
21688 $as_echo "$as_me: failed program was:" >&5
21689 sed 's/^/| /' conftest.$ac_ext >&5
21691 ac_lo=`expr '(' $ac_mid ')' + 1`
21694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21697 ?*) ac_cv_sizeof_int=$ac_lo;;
21698 '') if test "$ac_cv_type_int" = yes; then
21699 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21701 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21702 See \`config.log' for more details." >&5
21703 $as_echo "$as_me: error: cannot compute sizeof (int)
21704 See \`config.log' for more details." >&2;}
21705 { (exit 77); exit 77; }; }; }
21711 cat >conftest.$ac_ext <<_ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21717 $ac_includes_default
21718 static long int longval () { return (long int) (sizeof (int)); }
21719 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
21721 #include <stdlib.h>
21726 FILE *f = fopen ("conftest.val", "w");
21729 if (((long int) (sizeof (int))) < 0)
21731 long int i = longval ();
21732 if (i != ((long int) (sizeof (int))))
21734 fprintf (f, "%ld", i);
21738 unsigned long int i = ulongval ();
21739 if (i != ((long int) (sizeof (int))))
21741 fprintf (f, "%lu", i);
21743 /* Do not output a trailing newline, as this causes \r\n confusion
21744 on some platforms. */
21745 return ferror (f) || fclose (f) != 0;
21751 rm -f conftest$ac_exeext
21752 if { (ac_try="$ac_link"
21753 case "(($ac_try" in
21754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755 *) ac_try_echo=$ac_try;;
21757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21758 $as_echo "$ac_try_echo") >&5
21759 (eval "$ac_link") 2>&5
21761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21763 { (case "(($ac_try" in
21764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21765 *) ac_try_echo=$ac_try;;
21767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21768 $as_echo "$ac_try_echo") >&5
21769 (eval "$ac_try") 2>&5
21771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); }; }; then
21773 ac_cv_sizeof_int=`cat conftest.val`
21775 $as_echo "$as_me: program exited with status $ac_status" >&5
21776 $as_echo "$as_me: failed program was:" >&5
21777 sed 's/^/| /' conftest.$ac_ext >&5
21779 ( exit $ac_status )
21780 if test "$ac_cv_type_int" = yes; then
21781 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21783 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21784 See \`config.log' for more details." >&5
21785 $as_echo "$as_me: error: cannot compute sizeof (int)
21786 See \`config.log' for more details." >&2;}
21787 { (exit 77); exit 77; }; }; }
21792 rm -rf conftest.dSYM
21793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21797 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21798 $as_echo "$ac_cv_sizeof_int" >&6; }
21802 cat >>confdefs.h <<_ACEOF
21803 #define SIZEOF_INT $ac_cv_sizeof_int
21807 # The cast to long int works around a bug in the HP C Compiler
21808 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21809 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21810 # This bug is HP SR number 8606223364.
21811 { $as_echo "$as_me:$LINENO: checking size of long" >&5
21812 $as_echo_n "checking size of long... " >&6; }
21813 if test "${ac_cv_sizeof_long+set}" = set; then
21814 $as_echo_n "(cached) " >&6
21816 if test "$cross_compiling" = yes; then
21817 # Depending upon the size, compute the lo and hi bounds.
21818 cat >conftest.$ac_ext <<_ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h. */
21824 $ac_includes_default
21828 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
21835 rm -f conftest.$ac_objext
21836 if { (ac_try="$ac_compile"
21837 case "(($ac_try" in
21838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21839 *) ac_try_echo=$ac_try;;
21841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21842 $as_echo "$ac_try_echo") >&5
21843 (eval "$ac_compile") 2>conftest.er1
21845 grep -v '^ *+' conftest.er1 >conftest.err
21847 cat conftest.err >&5
21848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); } && {
21850 test -z "$ac_c_werror_flag" ||
21851 test ! -s conftest.err
21852 } && test -s conftest.$ac_objext; then
21855 cat >conftest.$ac_ext <<_ACEOF
21858 cat confdefs.h >>conftest.$ac_ext
21859 cat >>conftest.$ac_ext <<_ACEOF
21860 /* end confdefs.h. */
21861 $ac_includes_default
21865 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
21872 rm -f conftest.$ac_objext
21873 if { (ac_try="$ac_compile"
21874 case "(($ac_try" in
21875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21876 *) ac_try_echo=$ac_try;;
21878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21879 $as_echo "$ac_try_echo") >&5
21880 (eval "$ac_compile") 2>conftest.er1
21882 grep -v '^ *+' conftest.er1 >conftest.err
21884 cat conftest.err >&5
21885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); } && {
21887 test -z "$ac_c_werror_flag" ||
21888 test ! -s conftest.err
21889 } && test -s conftest.$ac_objext; then
21890 ac_hi=$ac_mid; break
21892 $as_echo "$as_me: failed program was:" >&5
21893 sed 's/^/| /' conftest.$ac_ext >&5
21895 ac_lo=`expr $ac_mid + 1`
21896 if test $ac_lo -le $ac_mid; then
21900 ac_mid=`expr 2 '*' $ac_mid + 1`
21903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21906 $as_echo "$as_me: failed program was:" >&5
21907 sed 's/^/| /' conftest.$ac_ext >&5
21909 cat >conftest.$ac_ext <<_ACEOF
21912 cat confdefs.h >>conftest.$ac_ext
21913 cat >>conftest.$ac_ext <<_ACEOF
21914 /* end confdefs.h. */
21915 $ac_includes_default
21919 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
21926 rm -f conftest.$ac_objext
21927 if { (ac_try="$ac_compile"
21928 case "(($ac_try" in
21929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21930 *) ac_try_echo=$ac_try;;
21932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21933 $as_echo "$ac_try_echo") >&5
21934 (eval "$ac_compile") 2>conftest.er1
21936 grep -v '^ *+' conftest.er1 >conftest.err
21938 cat conftest.err >&5
21939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); } && {
21941 test -z "$ac_c_werror_flag" ||
21942 test ! -s conftest.err
21943 } && test -s conftest.$ac_objext; then
21946 cat >conftest.$ac_ext <<_ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h. */
21952 $ac_includes_default
21956 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
21963 rm -f conftest.$ac_objext
21964 if { (ac_try="$ac_compile"
21965 case "(($ac_try" in
21966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967 *) ac_try_echo=$ac_try;;
21969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21970 $as_echo "$ac_try_echo") >&5
21971 (eval "$ac_compile") 2>conftest.er1
21973 grep -v '^ *+' conftest.er1 >conftest.err
21975 cat conftest.err >&5
21976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); } && {
21978 test -z "$ac_c_werror_flag" ||
21979 test ! -s conftest.err
21980 } && test -s conftest.$ac_objext; then
21981 ac_lo=$ac_mid; break
21983 $as_echo "$as_me: failed program was:" >&5
21984 sed 's/^/| /' conftest.$ac_ext >&5
21986 ac_hi=`expr '(' $ac_mid ')' - 1`
21987 if test $ac_mid -le $ac_hi; then
21991 ac_mid=`expr 2 '*' $ac_mid`
21994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21997 $as_echo "$as_me: failed program was:" >&5
21998 sed 's/^/| /' conftest.$ac_ext >&5
22003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22007 # Binary search between lo and hi bounds.
22008 while test "x$ac_lo" != "x$ac_hi"; do
22009 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22010 cat >conftest.$ac_ext <<_ACEOF
22013 cat confdefs.h >>conftest.$ac_ext
22014 cat >>conftest.$ac_ext <<_ACEOF
22015 /* end confdefs.h. */
22016 $ac_includes_default
22020 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
22027 rm -f conftest.$ac_objext
22028 if { (ac_try="$ac_compile"
22029 case "(($ac_try" in
22030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031 *) ac_try_echo=$ac_try;;
22033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22034 $as_echo "$ac_try_echo") >&5
22035 (eval "$ac_compile") 2>conftest.er1
22037 grep -v '^ *+' conftest.er1 >conftest.err
22039 cat conftest.err >&5
22040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } && {
22042 test -z "$ac_c_werror_flag" ||
22043 test ! -s conftest.err
22044 } && test -s conftest.$ac_objext; then
22047 $as_echo "$as_me: failed program was:" >&5
22048 sed 's/^/| /' conftest.$ac_ext >&5
22050 ac_lo=`expr '(' $ac_mid ')' + 1`
22053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22056 ?*) ac_cv_sizeof_long=$ac_lo;;
22057 '') if test "$ac_cv_type_long" = yes; then
22058 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22060 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22061 See \`config.log' for more details." >&5
22062 $as_echo "$as_me: error: cannot compute sizeof (long)
22063 See \`config.log' for more details." >&2;}
22064 { (exit 77); exit 77; }; }; }
22066 ac_cv_sizeof_long=0
22070 cat >conftest.$ac_ext <<_ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h. */
22076 $ac_includes_default
22077 static long int longval () { return (long int) (sizeof (long)); }
22078 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
22080 #include <stdlib.h>
22085 FILE *f = fopen ("conftest.val", "w");
22088 if (((long int) (sizeof (long))) < 0)
22090 long int i = longval ();
22091 if (i != ((long int) (sizeof (long))))
22093 fprintf (f, "%ld", i);
22097 unsigned long int i = ulongval ();
22098 if (i != ((long int) (sizeof (long))))
22100 fprintf (f, "%lu", i);
22102 /* Do not output a trailing newline, as this causes \r\n confusion
22103 on some platforms. */
22104 return ferror (f) || fclose (f) != 0;
22110 rm -f conftest$ac_exeext
22111 if { (ac_try="$ac_link"
22112 case "(($ac_try" in
22113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114 *) ac_try_echo=$ac_try;;
22116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22117 $as_echo "$ac_try_echo") >&5
22118 (eval "$ac_link") 2>&5
22120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22122 { (case "(($ac_try" in
22123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22124 *) ac_try_echo=$ac_try;;
22126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22127 $as_echo "$ac_try_echo") >&5
22128 (eval "$ac_try") 2>&5
22130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); }; }; then
22132 ac_cv_sizeof_long=`cat conftest.val`
22134 $as_echo "$as_me: program exited with status $ac_status" >&5
22135 $as_echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22138 ( exit $ac_status )
22139 if test "$ac_cv_type_long" = yes; then
22140 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22142 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22143 See \`config.log' for more details." >&5
22144 $as_echo "$as_me: error: cannot compute sizeof (long)
22145 See \`config.log' for more details." >&2;}
22146 { (exit 77); exit 77; }; }; }
22148 ac_cv_sizeof_long=0
22151 rm -rf conftest.dSYM
22152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22156 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22157 $as_echo "$ac_cv_sizeof_long" >&6; }
22161 cat >>confdefs.h <<_ACEOF
22162 #define SIZEOF_LONG $ac_cv_sizeof_long
22166 # The cast to long int works around a bug in the HP C Compiler
22167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22169 # This bug is HP SR number 8606223364.
22170 { $as_echo "$as_me:$LINENO: checking size of char *" >&5
22171 $as_echo_n "checking size of char *... " >&6; }
22172 if test "${ac_cv_sizeof_char_p+set}" = set; then
22173 $as_echo_n "(cached) " >&6
22175 if test "$cross_compiling" = yes; then
22176 # Depending upon the size, compute the lo and hi bounds.
22177 cat >conftest.$ac_ext <<_ACEOF
22180 cat confdefs.h >>conftest.$ac_ext
22181 cat >>conftest.$ac_ext <<_ACEOF
22182 /* end confdefs.h. */
22183 $ac_includes_default
22187 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= 0)];
22194 rm -f conftest.$ac_objext
22195 if { (ac_try="$ac_compile"
22196 case "(($ac_try" in
22197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198 *) ac_try_echo=$ac_try;;
22200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22201 $as_echo "$ac_try_echo") >&5
22202 (eval "$ac_compile") 2>conftest.er1
22204 grep -v '^ *+' conftest.er1 >conftest.err
22206 cat conftest.err >&5
22207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); } && {
22209 test -z "$ac_c_werror_flag" ||
22210 test ! -s conftest.err
22211 } && test -s conftest.$ac_objext; then
22214 cat >conftest.$ac_ext <<_ACEOF
22217 cat confdefs.h >>conftest.$ac_ext
22218 cat >>conftest.$ac_ext <<_ACEOF
22219 /* end confdefs.h. */
22220 $ac_includes_default
22224 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
22231 rm -f conftest.$ac_objext
22232 if { (ac_try="$ac_compile"
22233 case "(($ac_try" in
22234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22235 *) ac_try_echo=$ac_try;;
22237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22238 $as_echo "$ac_try_echo") >&5
22239 (eval "$ac_compile") 2>conftest.er1
22241 grep -v '^ *+' conftest.er1 >conftest.err
22243 cat conftest.err >&5
22244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); } && {
22246 test -z "$ac_c_werror_flag" ||
22247 test ! -s conftest.err
22248 } && test -s conftest.$ac_objext; then
22249 ac_hi=$ac_mid; break
22251 $as_echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22254 ac_lo=`expr $ac_mid + 1`
22255 if test $ac_lo -le $ac_mid; then
22259 ac_mid=`expr 2 '*' $ac_mid + 1`
22262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22265 $as_echo "$as_me: failed program was:" >&5
22266 sed 's/^/| /' conftest.$ac_ext >&5
22268 cat >conftest.$ac_ext <<_ACEOF
22271 cat confdefs.h >>conftest.$ac_ext
22272 cat >>conftest.$ac_ext <<_ACEOF
22273 /* end confdefs.h. */
22274 $ac_includes_default
22278 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) < 0)];
22285 rm -f conftest.$ac_objext
22286 if { (ac_try="$ac_compile"
22287 case "(($ac_try" in
22288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22289 *) ac_try_echo=$ac_try;;
22291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22292 $as_echo "$ac_try_echo") >&5
22293 (eval "$ac_compile") 2>conftest.er1
22295 grep -v '^ *+' conftest.er1 >conftest.err
22297 cat conftest.err >&5
22298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); } && {
22300 test -z "$ac_c_werror_flag" ||
22301 test ! -s conftest.err
22302 } && test -s conftest.$ac_objext; then
22305 cat >conftest.$ac_ext <<_ACEOF
22308 cat confdefs.h >>conftest.$ac_ext
22309 cat >>conftest.$ac_ext <<_ACEOF
22310 /* end confdefs.h. */
22311 $ac_includes_default
22315 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)];
22322 rm -f conftest.$ac_objext
22323 if { (ac_try="$ac_compile"
22324 case "(($ac_try" in
22325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22326 *) ac_try_echo=$ac_try;;
22328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22329 $as_echo "$ac_try_echo") >&5
22330 (eval "$ac_compile") 2>conftest.er1
22332 grep -v '^ *+' conftest.er1 >conftest.err
22334 cat conftest.err >&5
22335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336 (exit $ac_status); } && {
22337 test -z "$ac_c_werror_flag" ||
22338 test ! -s conftest.err
22339 } && test -s conftest.$ac_objext; then
22340 ac_lo=$ac_mid; break
22342 $as_echo "$as_me: failed program was:" >&5
22343 sed 's/^/| /' conftest.$ac_ext >&5
22345 ac_hi=`expr '(' $ac_mid ')' - 1`
22346 if test $ac_mid -le $ac_hi; then
22350 ac_mid=`expr 2 '*' $ac_mid`
22353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22356 $as_echo "$as_me: failed program was:" >&5
22357 sed 's/^/| /' conftest.$ac_ext >&5
22362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22366 # Binary search between lo and hi bounds.
22367 while test "x$ac_lo" != "x$ac_hi"; do
22368 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22369 cat >conftest.$ac_ext <<_ACEOF
22372 cat confdefs.h >>conftest.$ac_ext
22373 cat >>conftest.$ac_ext <<_ACEOF
22374 /* end confdefs.h. */
22375 $ac_includes_default
22379 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
22386 rm -f conftest.$ac_objext
22387 if { (ac_try="$ac_compile"
22388 case "(($ac_try" in
22389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22390 *) ac_try_echo=$ac_try;;
22392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22393 $as_echo "$ac_try_echo") >&5
22394 (eval "$ac_compile") 2>conftest.er1
22396 grep -v '^ *+' conftest.er1 >conftest.err
22398 cat conftest.err >&5
22399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); } && {
22401 test -z "$ac_c_werror_flag" ||
22402 test ! -s conftest.err
22403 } && test -s conftest.$ac_objext; then
22406 $as_echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22409 ac_lo=`expr '(' $ac_mid ')' + 1`
22412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22415 ?*) ac_cv_sizeof_char_p=$ac_lo;;
22416 '') if test "$ac_cv_type_char_p" = yes; then
22417 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22419 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
22420 See \`config.log' for more details." >&5
22421 $as_echo "$as_me: error: cannot compute sizeof (char *)
22422 See \`config.log' for more details." >&2;}
22423 { (exit 77); exit 77; }; }; }
22425 ac_cv_sizeof_char_p=0
22429 cat >conftest.$ac_ext <<_ACEOF
22432 cat confdefs.h >>conftest.$ac_ext
22433 cat >>conftest.$ac_ext <<_ACEOF
22434 /* end confdefs.h. */
22435 $ac_includes_default
22436 static long int longval () { return (long int) (sizeof (char *)); }
22437 static unsigned long int ulongval () { return (long int) (sizeof (char *)); }
22439 #include <stdlib.h>
22444 FILE *f = fopen ("conftest.val", "w");
22447 if (((long int) (sizeof (char *))) < 0)
22449 long int i = longval ();
22450 if (i != ((long int) (sizeof (char *))))
22452 fprintf (f, "%ld", i);
22456 unsigned long int i = ulongval ();
22457 if (i != ((long int) (sizeof (char *))))
22459 fprintf (f, "%lu", i);
22461 /* Do not output a trailing newline, as this causes \r\n confusion
22462 on some platforms. */
22463 return ferror (f) || fclose (f) != 0;
22469 rm -f conftest$ac_exeext
22470 if { (ac_try="$ac_link"
22471 case "(($ac_try" in
22472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473 *) ac_try_echo=$ac_try;;
22475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22476 $as_echo "$ac_try_echo") >&5
22477 (eval "$ac_link") 2>&5
22479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22481 { (case "(($ac_try" in
22482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22483 *) ac_try_echo=$ac_try;;
22485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22486 $as_echo "$ac_try_echo") >&5
22487 (eval "$ac_try") 2>&5
22489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); }; }; then
22491 ac_cv_sizeof_char_p=`cat conftest.val`
22493 $as_echo "$as_me: program exited with status $ac_status" >&5
22494 $as_echo "$as_me: failed program was:" >&5
22495 sed 's/^/| /' conftest.$ac_ext >&5
22497 ( exit $ac_status )
22498 if test "$ac_cv_type_char_p" = yes; then
22499 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22501 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
22502 See \`config.log' for more details." >&5
22503 $as_echo "$as_me: error: cannot compute sizeof (char *)
22504 See \`config.log' for more details." >&2;}
22505 { (exit 77); exit 77; }; }; }
22507 ac_cv_sizeof_char_p=0
22510 rm -rf conftest.dSYM
22511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22515 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
22516 $as_echo "$ac_cv_sizeof_char_p" >&6; }
22520 cat >>confdefs.h <<_ACEOF
22521 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
22525 # The cast to long int works around a bug in the HP C Compiler
22526 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22527 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22528 # This bug is HP SR number 8606223364.
22529 { $as_echo "$as_me:$LINENO: checking size of double" >&5
22530 $as_echo_n "checking size of double... " >&6; }
22531 if test "${ac_cv_sizeof_double+set}" = set; then
22532 $as_echo_n "(cached) " >&6
22534 if test "$cross_compiling" = yes; then
22535 # Depending upon the size, compute the lo and hi bounds.
22536 cat >conftest.$ac_ext <<_ACEOF
22539 cat confdefs.h >>conftest.$ac_ext
22540 cat >>conftest.$ac_ext <<_ACEOF
22541 /* end confdefs.h. */
22542 $ac_includes_default
22546 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
22553 rm -f conftest.$ac_objext
22554 if { (ac_try="$ac_compile"
22555 case "(($ac_try" in
22556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22557 *) ac_try_echo=$ac_try;;
22559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22560 $as_echo "$ac_try_echo") >&5
22561 (eval "$ac_compile") 2>conftest.er1
22563 grep -v '^ *+' conftest.er1 >conftest.err
22565 cat conftest.err >&5
22566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } && {
22568 test -z "$ac_c_werror_flag" ||
22569 test ! -s conftest.err
22570 } && test -s conftest.$ac_objext; then
22573 cat >conftest.$ac_ext <<_ACEOF
22576 cat confdefs.h >>conftest.$ac_ext
22577 cat >>conftest.$ac_ext <<_ACEOF
22578 /* end confdefs.h. */
22579 $ac_includes_default
22583 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
22590 rm -f conftest.$ac_objext
22591 if { (ac_try="$ac_compile"
22592 case "(($ac_try" in
22593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22594 *) ac_try_echo=$ac_try;;
22596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22597 $as_echo "$ac_try_echo") >&5
22598 (eval "$ac_compile") 2>conftest.er1
22600 grep -v '^ *+' conftest.er1 >conftest.err
22602 cat conftest.err >&5
22603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); } && {
22605 test -z "$ac_c_werror_flag" ||
22606 test ! -s conftest.err
22607 } && test -s conftest.$ac_objext; then
22608 ac_hi=$ac_mid; break
22610 $as_echo "$as_me: failed program was:" >&5
22611 sed 's/^/| /' conftest.$ac_ext >&5
22613 ac_lo=`expr $ac_mid + 1`
22614 if test $ac_lo -le $ac_mid; then
22618 ac_mid=`expr 2 '*' $ac_mid + 1`
22621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22624 $as_echo "$as_me: failed program was:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22627 cat >conftest.$ac_ext <<_ACEOF
22630 cat confdefs.h >>conftest.$ac_ext
22631 cat >>conftest.$ac_ext <<_ACEOF
22632 /* end confdefs.h. */
22633 $ac_includes_default
22637 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
22644 rm -f conftest.$ac_objext
22645 if { (ac_try="$ac_compile"
22646 case "(($ac_try" in
22647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22648 *) ac_try_echo=$ac_try;;
22650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22651 $as_echo "$ac_try_echo") >&5
22652 (eval "$ac_compile") 2>conftest.er1
22654 grep -v '^ *+' conftest.er1 >conftest.err
22656 cat conftest.err >&5
22657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658 (exit $ac_status); } && {
22659 test -z "$ac_c_werror_flag" ||
22660 test ! -s conftest.err
22661 } && test -s conftest.$ac_objext; then
22664 cat >conftest.$ac_ext <<_ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h. */
22670 $ac_includes_default
22674 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
22681 rm -f conftest.$ac_objext
22682 if { (ac_try="$ac_compile"
22683 case "(($ac_try" in
22684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685 *) ac_try_echo=$ac_try;;
22687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22688 $as_echo "$ac_try_echo") >&5
22689 (eval "$ac_compile") 2>conftest.er1
22691 grep -v '^ *+' conftest.er1 >conftest.err
22693 cat conftest.err >&5
22694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } && {
22696 test -z "$ac_c_werror_flag" ||
22697 test ! -s conftest.err
22698 } && test -s conftest.$ac_objext; then
22699 ac_lo=$ac_mid; break
22701 $as_echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22704 ac_hi=`expr '(' $ac_mid ')' - 1`
22705 if test $ac_mid -le $ac_hi; then
22709 ac_mid=`expr 2 '*' $ac_mid`
22712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22715 $as_echo "$as_me: failed program was:" >&5
22716 sed 's/^/| /' conftest.$ac_ext >&5
22721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22725 # Binary search between lo and hi bounds.
22726 while test "x$ac_lo" != "x$ac_hi"; do
22727 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22728 cat >conftest.$ac_ext <<_ACEOF
22731 cat confdefs.h >>conftest.$ac_ext
22732 cat >>conftest.$ac_ext <<_ACEOF
22733 /* end confdefs.h. */
22734 $ac_includes_default
22738 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
22745 rm -f conftest.$ac_objext
22746 if { (ac_try="$ac_compile"
22747 case "(($ac_try" in
22748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22749 *) ac_try_echo=$ac_try;;
22751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22752 $as_echo "$ac_try_echo") >&5
22753 (eval "$ac_compile") 2>conftest.er1
22755 grep -v '^ *+' conftest.er1 >conftest.err
22757 cat conftest.err >&5
22758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); } && {
22760 test -z "$ac_c_werror_flag" ||
22761 test ! -s conftest.err
22762 } && test -s conftest.$ac_objext; then
22765 $as_echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22768 ac_lo=`expr '(' $ac_mid ')' + 1`
22771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22774 ?*) ac_cv_sizeof_double=$ac_lo;;
22775 '') if test "$ac_cv_type_double" = yes; then
22776 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22778 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
22779 See \`config.log' for more details." >&5
22780 $as_echo "$as_me: error: cannot compute sizeof (double)
22781 See \`config.log' for more details." >&2;}
22782 { (exit 77); exit 77; }; }; }
22784 ac_cv_sizeof_double=0
22788 cat >conftest.$ac_ext <<_ACEOF
22791 cat confdefs.h >>conftest.$ac_ext
22792 cat >>conftest.$ac_ext <<_ACEOF
22793 /* end confdefs.h. */
22794 $ac_includes_default
22795 static long int longval () { return (long int) (sizeof (double)); }
22796 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
22798 #include <stdlib.h>
22803 FILE *f = fopen ("conftest.val", "w");
22806 if (((long int) (sizeof (double))) < 0)
22808 long int i = longval ();
22809 if (i != ((long int) (sizeof (double))))
22811 fprintf (f, "%ld", i);
22815 unsigned long int i = ulongval ();
22816 if (i != ((long int) (sizeof (double))))
22818 fprintf (f, "%lu", i);
22820 /* Do not output a trailing newline, as this causes \r\n confusion
22821 on some platforms. */
22822 return ferror (f) || fclose (f) != 0;
22828 rm -f conftest$ac_exeext
22829 if { (ac_try="$ac_link"
22830 case "(($ac_try" in
22831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22832 *) ac_try_echo=$ac_try;;
22834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22835 $as_echo "$ac_try_echo") >&5
22836 (eval "$ac_link") 2>&5
22838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22840 { (case "(($ac_try" in
22841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22842 *) ac_try_echo=$ac_try;;
22844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22845 $as_echo "$ac_try_echo") >&5
22846 (eval "$ac_try") 2>&5
22848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); }; }; then
22850 ac_cv_sizeof_double=`cat conftest.val`
22852 $as_echo "$as_me: program exited with status $ac_status" >&5
22853 $as_echo "$as_me: failed program was:" >&5
22854 sed 's/^/| /' conftest.$ac_ext >&5
22856 ( exit $ac_status )
22857 if test "$ac_cv_type_double" = yes; then
22858 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22860 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
22861 See \`config.log' for more details." >&5
22862 $as_echo "$as_me: error: cannot compute sizeof (double)
22863 See \`config.log' for more details." >&2;}
22864 { (exit 77); exit 77; }; }; }
22866 ac_cv_sizeof_double=0
22869 rm -rf conftest.dSYM
22870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22874 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
22875 $as_echo "$ac_cv_sizeof_double" >&6; }
22879 cat >>confdefs.h <<_ACEOF
22880 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
22884 # The cast to long int works around a bug in the HP C Compiler
22885 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22886 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22887 # This bug is HP SR number 8606223364.
22888 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
22889 $as_echo_n "checking size of long long... " >&6; }
22890 if test "${ac_cv_sizeof_long_long+set}" = set; then
22891 $as_echo_n "(cached) " >&6
22893 if test "$cross_compiling" = yes; then
22894 # Depending upon the size, compute the lo and hi bounds.
22895 cat >conftest.$ac_ext <<_ACEOF
22898 cat confdefs.h >>conftest.$ac_ext
22899 cat >>conftest.$ac_ext <<_ACEOF
22900 /* end confdefs.h. */
22901 $ac_includes_default
22905 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
22912 rm -f conftest.$ac_objext
22913 if { (ac_try="$ac_compile"
22914 case "(($ac_try" in
22915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916 *) ac_try_echo=$ac_try;;
22918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22919 $as_echo "$ac_try_echo") >&5
22920 (eval "$ac_compile") 2>conftest.er1
22922 grep -v '^ *+' conftest.er1 >conftest.err
22924 cat conftest.err >&5
22925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); } && {
22927 test -z "$ac_c_werror_flag" ||
22928 test ! -s conftest.err
22929 } && test -s conftest.$ac_objext; then
22932 cat >conftest.$ac_ext <<_ACEOF
22935 cat confdefs.h >>conftest.$ac_ext
22936 cat >>conftest.$ac_ext <<_ACEOF
22937 /* end confdefs.h. */
22938 $ac_includes_default
22942 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
22949 rm -f conftest.$ac_objext
22950 if { (ac_try="$ac_compile"
22951 case "(($ac_try" in
22952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953 *) ac_try_echo=$ac_try;;
22955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22956 $as_echo "$ac_try_echo") >&5
22957 (eval "$ac_compile") 2>conftest.er1
22959 grep -v '^ *+' conftest.er1 >conftest.err
22961 cat conftest.err >&5
22962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); } && {
22964 test -z "$ac_c_werror_flag" ||
22965 test ! -s conftest.err
22966 } && test -s conftest.$ac_objext; then
22967 ac_hi=$ac_mid; break
22969 $as_echo "$as_me: failed program was:" >&5
22970 sed 's/^/| /' conftest.$ac_ext >&5
22972 ac_lo=`expr $ac_mid + 1`
22973 if test $ac_lo -le $ac_mid; then
22977 ac_mid=`expr 2 '*' $ac_mid + 1`
22980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22983 $as_echo "$as_me: failed program was:" >&5
22984 sed 's/^/| /' conftest.$ac_ext >&5
22986 cat >conftest.$ac_ext <<_ACEOF
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h. */
22992 $ac_includes_default
22996 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
23003 rm -f conftest.$ac_objext
23004 if { (ac_try="$ac_compile"
23005 case "(($ac_try" in
23006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23007 *) ac_try_echo=$ac_try;;
23009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23010 $as_echo "$ac_try_echo") >&5
23011 (eval "$ac_compile") 2>conftest.er1
23013 grep -v '^ *+' conftest.er1 >conftest.err
23015 cat conftest.err >&5
23016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); } && {
23018 test -z "$ac_c_werror_flag" ||
23019 test ! -s conftest.err
23020 } && test -s conftest.$ac_objext; then
23023 cat >conftest.$ac_ext <<_ACEOF
23026 cat confdefs.h >>conftest.$ac_ext
23027 cat >>conftest.$ac_ext <<_ACEOF
23028 /* end confdefs.h. */
23029 $ac_includes_default
23033 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
23040 rm -f conftest.$ac_objext
23041 if { (ac_try="$ac_compile"
23042 case "(($ac_try" in
23043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23044 *) ac_try_echo=$ac_try;;
23046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23047 $as_echo "$ac_try_echo") >&5
23048 (eval "$ac_compile") 2>conftest.er1
23050 grep -v '^ *+' conftest.er1 >conftest.err
23052 cat conftest.err >&5
23053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); } && {
23055 test -z "$ac_c_werror_flag" ||
23056 test ! -s conftest.err
23057 } && test -s conftest.$ac_objext; then
23058 ac_lo=$ac_mid; break
23060 $as_echo "$as_me: failed program was:" >&5
23061 sed 's/^/| /' conftest.$ac_ext >&5
23063 ac_hi=`expr '(' $ac_mid ')' - 1`
23064 if test $ac_mid -le $ac_hi; then
23068 ac_mid=`expr 2 '*' $ac_mid`
23071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23074 $as_echo "$as_me: failed program was:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23084 # Binary search between lo and hi bounds.
23085 while test "x$ac_lo" != "x$ac_hi"; do
23086 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23087 cat >conftest.$ac_ext <<_ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h. */
23093 $ac_includes_default
23097 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
23104 rm -f conftest.$ac_objext
23105 if { (ac_try="$ac_compile"
23106 case "(($ac_try" in
23107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23108 *) ac_try_echo=$ac_try;;
23110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23111 $as_echo "$ac_try_echo") >&5
23112 (eval "$ac_compile") 2>conftest.er1
23114 grep -v '^ *+' conftest.er1 >conftest.err
23116 cat conftest.err >&5
23117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); } && {
23119 test -z "$ac_c_werror_flag" ||
23120 test ! -s conftest.err
23121 } && test -s conftest.$ac_objext; then
23124 $as_echo "$as_me: failed program was:" >&5
23125 sed 's/^/| /' conftest.$ac_ext >&5
23127 ac_lo=`expr '(' $ac_mid ')' + 1`
23130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23133 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23134 '') if test "$ac_cv_type_long_long" = yes; then
23135 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23137 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23138 See \`config.log' for more details." >&5
23139 $as_echo "$as_me: error: cannot compute sizeof (long long)
23140 See \`config.log' for more details." >&2;}
23141 { (exit 77); exit 77; }; }; }
23143 ac_cv_sizeof_long_long=0
23147 cat >conftest.$ac_ext <<_ACEOF
23150 cat confdefs.h >>conftest.$ac_ext
23151 cat >>conftest.$ac_ext <<_ACEOF
23152 /* end confdefs.h. */
23153 $ac_includes_default
23154 static long int longval () { return (long int) (sizeof (long long)); }
23155 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
23157 #include <stdlib.h>
23162 FILE *f = fopen ("conftest.val", "w");
23165 if (((long int) (sizeof (long long))) < 0)
23167 long int i = longval ();
23168 if (i != ((long int) (sizeof (long long))))
23170 fprintf (f, "%ld", i);
23174 unsigned long int i = ulongval ();
23175 if (i != ((long int) (sizeof (long long))))
23177 fprintf (f, "%lu", i);
23179 /* Do not output a trailing newline, as this causes \r\n confusion
23180 on some platforms. */
23181 return ferror (f) || fclose (f) != 0;
23187 rm -f conftest$ac_exeext
23188 if { (ac_try="$ac_link"
23189 case "(($ac_try" in
23190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23191 *) ac_try_echo=$ac_try;;
23193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23194 $as_echo "$ac_try_echo") >&5
23195 (eval "$ac_link") 2>&5
23197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23199 { (case "(($ac_try" in
23200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23201 *) ac_try_echo=$ac_try;;
23203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23204 $as_echo "$ac_try_echo") >&5
23205 (eval "$ac_try") 2>&5
23207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); }; }; then
23209 ac_cv_sizeof_long_long=`cat conftest.val`
23211 $as_echo "$as_me: program exited with status $ac_status" >&5
23212 $as_echo "$as_me: failed program was:" >&5
23213 sed 's/^/| /' conftest.$ac_ext >&5
23215 ( exit $ac_status )
23216 if test "$ac_cv_type_long_long" = yes; then
23217 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23219 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23220 See \`config.log' for more details." >&5
23221 $as_echo "$as_me: error: cannot compute sizeof (long long)
23222 See \`config.log' for more details." >&2;}
23223 { (exit 77); exit 77; }; }; }
23225 ac_cv_sizeof_long_long=0
23228 rm -rf conftest.dSYM
23229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23233 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23234 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23238 cat >>confdefs.h <<_ACEOF
23239 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23244 { $as_echo "$as_me:$LINENO: checking for u_int" >&5
23245 $as_echo_n "checking for u_int... " >&6; }
23246 if test "${ac_cv_type_u_int+set}" = set; then
23247 $as_echo_n "(cached) " >&6
23249 ac_cv_type_u_int=no
23250 cat >conftest.$ac_ext <<_ACEOF
23253 cat confdefs.h >>conftest.$ac_ext
23254 cat >>conftest.$ac_ext <<_ACEOF
23255 /* end confdefs.h. */
23256 $ac_includes_default
23260 if (sizeof (u_int))
23266 rm -f conftest.$ac_objext
23267 if { (ac_try="$ac_compile"
23268 case "(($ac_try" in
23269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23270 *) ac_try_echo=$ac_try;;
23272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23273 $as_echo "$ac_try_echo") >&5
23274 (eval "$ac_compile") 2>conftest.er1
23276 grep -v '^ *+' conftest.er1 >conftest.err
23278 cat conftest.err >&5
23279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); } && {
23281 test -z "$ac_c_werror_flag" ||
23282 test ! -s conftest.err
23283 } && test -s conftest.$ac_objext; then
23284 cat >conftest.$ac_ext <<_ACEOF
23287 cat confdefs.h >>conftest.$ac_ext
23288 cat >>conftest.$ac_ext <<_ACEOF
23289 /* end confdefs.h. */
23290 $ac_includes_default
23294 if (sizeof ((u_int)))
23300 rm -f conftest.$ac_objext
23301 if { (ac_try="$ac_compile"
23302 case "(($ac_try" in
23303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23304 *) ac_try_echo=$ac_try;;
23306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23307 $as_echo "$ac_try_echo") >&5
23308 (eval "$ac_compile") 2>conftest.er1
23310 grep -v '^ *+' conftest.er1 >conftest.err
23312 cat conftest.err >&5
23313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); } && {
23315 test -z "$ac_c_werror_flag" ||
23316 test ! -s conftest.err
23317 } && test -s conftest.$ac_objext; then
23320 $as_echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.$ac_ext >&5
23323 ac_cv_type_u_int=yes
23326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23328 $as_echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23336 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
23337 $as_echo "$ac_cv_type_u_int" >&6; }
23338 if test "x$ac_cv_type_u_int" = x""yes; then
23342 cat >>confdefs.h <<_ACEOF
23343 #define u_int unsigned int
23348 { $as_echo "$as_me:$LINENO: checking for u_long" >&5
23349 $as_echo_n "checking for u_long... " >&6; }
23350 if test "${ac_cv_type_u_long+set}" = set; then
23351 $as_echo_n "(cached) " >&6
23353 ac_cv_type_u_long=no
23354 cat >conftest.$ac_ext <<_ACEOF
23357 cat confdefs.h >>conftest.$ac_ext
23358 cat >>conftest.$ac_ext <<_ACEOF
23359 /* end confdefs.h. */
23360 $ac_includes_default
23364 if (sizeof (u_long))
23370 rm -f conftest.$ac_objext
23371 if { (ac_try="$ac_compile"
23372 case "(($ac_try" in
23373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23374 *) ac_try_echo=$ac_try;;
23376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23377 $as_echo "$ac_try_echo") >&5
23378 (eval "$ac_compile") 2>conftest.er1
23380 grep -v '^ *+' conftest.er1 >conftest.err
23382 cat conftest.err >&5
23383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); } && {
23385 test -z "$ac_c_werror_flag" ||
23386 test ! -s conftest.err
23387 } && test -s conftest.$ac_objext; then
23388 cat >conftest.$ac_ext <<_ACEOF
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h. */
23394 $ac_includes_default
23398 if (sizeof ((u_long)))
23404 rm -f conftest.$ac_objext
23405 if { (ac_try="$ac_compile"
23406 case "(($ac_try" in
23407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23408 *) ac_try_echo=$ac_try;;
23410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23411 $as_echo "$ac_try_echo") >&5
23412 (eval "$ac_compile") 2>conftest.er1
23414 grep -v '^ *+' conftest.er1 >conftest.err
23416 cat conftest.err >&5
23417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); } && {
23419 test -z "$ac_c_werror_flag" ||
23420 test ! -s conftest.err
23421 } && test -s conftest.$ac_objext; then
23424 $as_echo "$as_me: failed program was:" >&5
23425 sed 's/^/| /' conftest.$ac_ext >&5
23427 ac_cv_type_u_long=yes
23430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23432 $as_echo "$as_me: failed program was:" >&5
23433 sed 's/^/| /' conftest.$ac_ext >&5
23438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23440 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
23441 $as_echo "$ac_cv_type_u_long" >&6; }
23442 if test "x$ac_cv_type_u_long" = x""yes; then
23446 cat >>confdefs.h <<_ACEOF
23447 #define u_long unsigned long
23454 if test "$ac_cv_sizeof_short" = 2; then
23455 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23456 $as_echo_n "checking for bits16_t... " >&6; }
23457 if test "${ac_cv_type_bits16_t+set}" = set; then
23458 $as_echo_n "(cached) " >&6
23460 ac_cv_type_bits16_t=no
23461 cat >conftest.$ac_ext <<_ACEOF
23464 cat confdefs.h >>conftest.$ac_ext
23465 cat >>conftest.$ac_ext <<_ACEOF
23466 /* end confdefs.h. */
23467 $ac_includes_default
23471 if (sizeof (bits16_t))
23477 rm -f conftest.$ac_objext
23478 if { (ac_try="$ac_compile"
23479 case "(($ac_try" in
23480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23481 *) ac_try_echo=$ac_try;;
23483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23484 $as_echo "$ac_try_echo") >&5
23485 (eval "$ac_compile") 2>conftest.er1
23487 grep -v '^ *+' conftest.er1 >conftest.err
23489 cat conftest.err >&5
23490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491 (exit $ac_status); } && {
23492 test -z "$ac_c_werror_flag" ||
23493 test ! -s conftest.err
23494 } && test -s conftest.$ac_objext; then
23495 cat >conftest.$ac_ext <<_ACEOF
23498 cat confdefs.h >>conftest.$ac_ext
23499 cat >>conftest.$ac_ext <<_ACEOF
23500 /* end confdefs.h. */
23501 $ac_includes_default
23505 if (sizeof ((bits16_t)))
23511 rm -f conftest.$ac_objext
23512 if { (ac_try="$ac_compile"
23513 case "(($ac_try" in
23514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23515 *) ac_try_echo=$ac_try;;
23517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23518 $as_echo "$ac_try_echo") >&5
23519 (eval "$ac_compile") 2>conftest.er1
23521 grep -v '^ *+' conftest.er1 >conftest.err
23523 cat conftest.err >&5
23524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); } && {
23526 test -z "$ac_c_werror_flag" ||
23527 test ! -s conftest.err
23528 } && test -s conftest.$ac_objext; then
23531 $as_echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23534 ac_cv_type_bits16_t=yes
23537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23539 $as_echo "$as_me: failed program was:" >&5
23540 sed 's/^/| /' conftest.$ac_ext >&5
23545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23547 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23548 $as_echo "$ac_cv_type_bits16_t" >&6; }
23549 if test "x$ac_cv_type_bits16_t" = x""yes; then
23553 cat >>confdefs.h <<_ACEOF
23554 #define bits16_t short
23559 elif test "$ac_cv_sizeof_char" = 2; then
23560 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23561 $as_echo_n "checking for bits16_t... " >&6; }
23562 if test "${ac_cv_type_bits16_t+set}" = set; then
23563 $as_echo_n "(cached) " >&6
23565 ac_cv_type_bits16_t=no
23566 cat >conftest.$ac_ext <<_ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h. */
23572 $ac_includes_default
23576 if (sizeof (bits16_t))
23582 rm -f conftest.$ac_objext
23583 if { (ac_try="$ac_compile"
23584 case "(($ac_try" in
23585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23586 *) ac_try_echo=$ac_try;;
23588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23589 $as_echo "$ac_try_echo") >&5
23590 (eval "$ac_compile") 2>conftest.er1
23592 grep -v '^ *+' conftest.er1 >conftest.err
23594 cat conftest.err >&5
23595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); } && {
23597 test -z "$ac_c_werror_flag" ||
23598 test ! -s conftest.err
23599 } && test -s conftest.$ac_objext; then
23600 cat >conftest.$ac_ext <<_ACEOF
23603 cat confdefs.h >>conftest.$ac_ext
23604 cat >>conftest.$ac_ext <<_ACEOF
23605 /* end confdefs.h. */
23606 $ac_includes_default
23610 if (sizeof ((bits16_t)))
23616 rm -f conftest.$ac_objext
23617 if { (ac_try="$ac_compile"
23618 case "(($ac_try" in
23619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23620 *) ac_try_echo=$ac_try;;
23622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23623 $as_echo "$ac_try_echo") >&5
23624 (eval "$ac_compile") 2>conftest.er1
23626 grep -v '^ *+' conftest.er1 >conftest.err
23628 cat conftest.err >&5
23629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630 (exit $ac_status); } && {
23631 test -z "$ac_c_werror_flag" ||
23632 test ! -s conftest.err
23633 } && test -s conftest.$ac_objext; then
23636 $as_echo "$as_me: failed program was:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23639 ac_cv_type_bits16_t=yes
23642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23644 $as_echo "$as_me: failed program was:" >&5
23645 sed 's/^/| /' conftest.$ac_ext >&5
23650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23652 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23653 $as_echo "$ac_cv_type_bits16_t" >&6; }
23654 if test "x$ac_cv_type_bits16_t" = x""yes; then
23658 cat >>confdefs.h <<_ACEOF
23659 #define bits16_t char
23665 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23666 $as_echo_n "checking for bits16_t... " >&6; }
23667 if test "${ac_cv_type_bits16_t+set}" = set; then
23668 $as_echo_n "(cached) " >&6
23670 ac_cv_type_bits16_t=no
23671 cat >conftest.$ac_ext <<_ACEOF
23674 cat confdefs.h >>conftest.$ac_ext
23675 cat >>conftest.$ac_ext <<_ACEOF
23676 /* end confdefs.h. */
23677 $ac_includes_default
23681 if (sizeof (bits16_t))
23687 rm -f conftest.$ac_objext
23688 if { (ac_try="$ac_compile"
23689 case "(($ac_try" in
23690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23691 *) ac_try_echo=$ac_try;;
23693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23694 $as_echo "$ac_try_echo") >&5
23695 (eval "$ac_compile") 2>conftest.er1
23697 grep -v '^ *+' conftest.er1 >conftest.err
23699 cat conftest.err >&5
23700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); } && {
23702 test -z "$ac_c_werror_flag" ||
23703 test ! -s conftest.err
23704 } && test -s conftest.$ac_objext; then
23705 cat >conftest.$ac_ext <<_ACEOF
23708 cat confdefs.h >>conftest.$ac_ext
23709 cat >>conftest.$ac_ext <<_ACEOF
23710 /* end confdefs.h. */
23711 $ac_includes_default
23715 if (sizeof ((bits16_t)))
23721 rm -f conftest.$ac_objext
23722 if { (ac_try="$ac_compile"
23723 case "(($ac_try" in
23724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23725 *) ac_try_echo=$ac_try;;
23727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23728 $as_echo "$ac_try_echo") >&5
23729 (eval "$ac_compile") 2>conftest.er1
23731 grep -v '^ *+' conftest.er1 >conftest.err
23733 cat conftest.err >&5
23734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735 (exit $ac_status); } && {
23736 test -z "$ac_c_werror_flag" ||
23737 test ! -s conftest.err
23738 } && test -s conftest.$ac_objext; then
23741 $as_echo "$as_me: failed program was:" >&5
23742 sed 's/^/| /' conftest.$ac_ext >&5
23744 ac_cv_type_bits16_t=yes
23747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23749 $as_echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.$ac_ext >&5
23755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23757 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23758 $as_echo "$ac_cv_type_bits16_t" >&6; }
23759 if test "x$ac_cv_type_bits16_t" = x""yes; then
23763 cat >>confdefs.h <<_ACEOF
23764 #define bits16_t short
23772 if test "$ac_cv_sizeof_short" = 2; then
23773 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23774 $as_echo_n "checking for u_bits16_t... " >&6; }
23775 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23776 $as_echo_n "(cached) " >&6
23778 ac_cv_type_u_bits16_t=no
23779 cat >conftest.$ac_ext <<_ACEOF
23782 cat confdefs.h >>conftest.$ac_ext
23783 cat >>conftest.$ac_ext <<_ACEOF
23784 /* end confdefs.h. */
23785 $ac_includes_default
23789 if (sizeof (u_bits16_t))
23795 rm -f conftest.$ac_objext
23796 if { (ac_try="$ac_compile"
23797 case "(($ac_try" in
23798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23799 *) ac_try_echo=$ac_try;;
23801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23802 $as_echo "$ac_try_echo") >&5
23803 (eval "$ac_compile") 2>conftest.er1
23805 grep -v '^ *+' conftest.er1 >conftest.err
23807 cat conftest.err >&5
23808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809 (exit $ac_status); } && {
23810 test -z "$ac_c_werror_flag" ||
23811 test ! -s conftest.err
23812 } && test -s conftest.$ac_objext; then
23813 cat >conftest.$ac_ext <<_ACEOF
23816 cat confdefs.h >>conftest.$ac_ext
23817 cat >>conftest.$ac_ext <<_ACEOF
23818 /* end confdefs.h. */
23819 $ac_includes_default
23823 if (sizeof ((u_bits16_t)))
23829 rm -f conftest.$ac_objext
23830 if { (ac_try="$ac_compile"
23831 case "(($ac_try" in
23832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833 *) ac_try_echo=$ac_try;;
23835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23836 $as_echo "$ac_try_echo") >&5
23837 (eval "$ac_compile") 2>conftest.er1
23839 grep -v '^ *+' conftest.er1 >conftest.err
23841 cat conftest.err >&5
23842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); } && {
23844 test -z "$ac_c_werror_flag" ||
23845 test ! -s conftest.err
23846 } && test -s conftest.$ac_objext; then
23849 $as_echo "$as_me: failed program was:" >&5
23850 sed 's/^/| /' conftest.$ac_ext >&5
23852 ac_cv_type_u_bits16_t=yes
23855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23857 $as_echo "$as_me: failed program was:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23865 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
23866 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
23867 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
23871 cat >>confdefs.h <<_ACEOF
23872 #define u_bits16_t unsigned short
23877 elif test "$ac_cv_sizeof_char" = 2; then
23878 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23879 $as_echo_n "checking for u_bits16_t... " >&6; }
23880 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23881 $as_echo_n "(cached) " >&6
23883 ac_cv_type_u_bits16_t=no
23884 cat >conftest.$ac_ext <<_ACEOF
23887 cat confdefs.h >>conftest.$ac_ext
23888 cat >>conftest.$ac_ext <<_ACEOF
23889 /* end confdefs.h. */
23890 $ac_includes_default
23894 if (sizeof (u_bits16_t))
23900 rm -f conftest.$ac_objext
23901 if { (ac_try="$ac_compile"
23902 case "(($ac_try" in
23903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23904 *) ac_try_echo=$ac_try;;
23906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23907 $as_echo "$ac_try_echo") >&5
23908 (eval "$ac_compile") 2>conftest.er1
23910 grep -v '^ *+' conftest.er1 >conftest.err
23912 cat conftest.err >&5
23913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); } && {
23915 test -z "$ac_c_werror_flag" ||
23916 test ! -s conftest.err
23917 } && test -s conftest.$ac_objext; then
23918 cat >conftest.$ac_ext <<_ACEOF
23921 cat confdefs.h >>conftest.$ac_ext
23922 cat >>conftest.$ac_ext <<_ACEOF
23923 /* end confdefs.h. */
23924 $ac_includes_default
23928 if (sizeof ((u_bits16_t)))
23934 rm -f conftest.$ac_objext
23935 if { (ac_try="$ac_compile"
23936 case "(($ac_try" in
23937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23938 *) ac_try_echo=$ac_try;;
23940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23941 $as_echo "$ac_try_echo") >&5
23942 (eval "$ac_compile") 2>conftest.er1
23944 grep -v '^ *+' conftest.er1 >conftest.err
23946 cat conftest.err >&5
23947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948 (exit $ac_status); } && {
23949 test -z "$ac_c_werror_flag" ||
23950 test ! -s conftest.err
23951 } && test -s conftest.$ac_objext; then
23954 $as_echo "$as_me: failed program was:" >&5
23955 sed 's/^/| /' conftest.$ac_ext >&5
23957 ac_cv_type_u_bits16_t=yes
23960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23962 $as_echo "$as_me: failed program was:" >&5
23963 sed 's/^/| /' conftest.$ac_ext >&5
23968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23970 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
23971 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
23972 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
23976 cat >>confdefs.h <<_ACEOF
23977 #define u_bits16_t unsigned char
23983 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23984 $as_echo_n "checking for u_bits16_t... " >&6; }
23985 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23986 $as_echo_n "(cached) " >&6
23988 ac_cv_type_u_bits16_t=no
23989 cat >conftest.$ac_ext <<_ACEOF
23992 cat confdefs.h >>conftest.$ac_ext
23993 cat >>conftest.$ac_ext <<_ACEOF
23994 /* end confdefs.h. */
23995 $ac_includes_default
23999 if (sizeof (u_bits16_t))
24005 rm -f conftest.$ac_objext
24006 if { (ac_try="$ac_compile"
24007 case "(($ac_try" in
24008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24009 *) ac_try_echo=$ac_try;;
24011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24012 $as_echo "$ac_try_echo") >&5
24013 (eval "$ac_compile") 2>conftest.er1
24015 grep -v '^ *+' conftest.er1 >conftest.err
24017 cat conftest.err >&5
24018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019 (exit $ac_status); } && {
24020 test -z "$ac_c_werror_flag" ||
24021 test ! -s conftest.err
24022 } && test -s conftest.$ac_objext; then
24023 cat >conftest.$ac_ext <<_ACEOF
24026 cat confdefs.h >>conftest.$ac_ext
24027 cat >>conftest.$ac_ext <<_ACEOF
24028 /* end confdefs.h. */
24029 $ac_includes_default
24033 if (sizeof ((u_bits16_t)))
24039 rm -f conftest.$ac_objext
24040 if { (ac_try="$ac_compile"
24041 case "(($ac_try" in
24042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24043 *) ac_try_echo=$ac_try;;
24045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24046 $as_echo "$ac_try_echo") >&5
24047 (eval "$ac_compile") 2>conftest.er1
24049 grep -v '^ *+' conftest.er1 >conftest.err
24051 cat conftest.err >&5
24052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053 (exit $ac_status); } && {
24054 test -z "$ac_c_werror_flag" ||
24055 test ! -s conftest.err
24056 } && test -s conftest.$ac_objext; then
24059 $as_echo "$as_me: failed program was:" >&5
24060 sed 's/^/| /' conftest.$ac_ext >&5
24062 ac_cv_type_u_bits16_t=yes
24065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24067 $as_echo "$as_me: failed program was:" >&5
24068 sed 's/^/| /' conftest.$ac_ext >&5
24073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24075 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
24076 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
24077 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
24081 cat >>confdefs.h <<_ACEOF
24082 #define u_bits16_t unsigned short
24090 if test "$ac_cv_sizeof_int" = 4; then
24091 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
24092 $as_echo_n "checking for bits32_t... " >&6; }
24093 if test "${ac_cv_type_bits32_t+set}" = set; then
24094 $as_echo_n "(cached) " >&6
24096 ac_cv_type_bits32_t=no
24097 cat >conftest.$ac_ext <<_ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h. */
24103 $ac_includes_default
24107 if (sizeof (bits32_t))
24113 rm -f conftest.$ac_objext
24114 if { (ac_try="$ac_compile"
24115 case "(($ac_try" in
24116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24117 *) ac_try_echo=$ac_try;;
24119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24120 $as_echo "$ac_try_echo") >&5
24121 (eval "$ac_compile") 2>conftest.er1
24123 grep -v '^ *+' conftest.er1 >conftest.err
24125 cat conftest.err >&5
24126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); } && {
24128 test -z "$ac_c_werror_flag" ||
24129 test ! -s conftest.err
24130 } && test -s conftest.$ac_objext; then
24131 cat >conftest.$ac_ext <<_ACEOF
24134 cat confdefs.h >>conftest.$ac_ext
24135 cat >>conftest.$ac_ext <<_ACEOF
24136 /* end confdefs.h. */
24137 $ac_includes_default
24141 if (sizeof ((bits32_t)))
24147 rm -f conftest.$ac_objext
24148 if { (ac_try="$ac_compile"
24149 case "(($ac_try" in
24150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24151 *) ac_try_echo=$ac_try;;
24153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24154 $as_echo "$ac_try_echo") >&5
24155 (eval "$ac_compile") 2>conftest.er1
24157 grep -v '^ *+' conftest.er1 >conftest.err
24159 cat conftest.err >&5
24160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); } && {
24162 test -z "$ac_c_werror_flag" ||
24163 test ! -s conftest.err
24164 } && test -s conftest.$ac_objext; then
24167 $as_echo "$as_me: failed program was:" >&5
24168 sed 's/^/| /' conftest.$ac_ext >&5
24170 ac_cv_type_bits32_t=yes
24173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24175 $as_echo "$as_me: failed program was:" >&5
24176 sed 's/^/| /' conftest.$ac_ext >&5
24181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24183 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24184 $as_echo "$ac_cv_type_bits32_t" >&6; }
24185 if test "x$ac_cv_type_bits32_t" = x""yes; then
24189 cat >>confdefs.h <<_ACEOF
24190 #define bits32_t int
24195 elif test "$ac_cv_sizeof_long" = 4; then
24196 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
24197 $as_echo_n "checking for bits32_t... " >&6; }
24198 if test "${ac_cv_type_bits32_t+set}" = set; then
24199 $as_echo_n "(cached) " >&6
24201 ac_cv_type_bits32_t=no
24202 cat >conftest.$ac_ext <<_ACEOF
24205 cat confdefs.h >>conftest.$ac_ext
24206 cat >>conftest.$ac_ext <<_ACEOF
24207 /* end confdefs.h. */
24208 $ac_includes_default
24212 if (sizeof (bits32_t))
24218 rm -f conftest.$ac_objext
24219 if { (ac_try="$ac_compile"
24220 case "(($ac_try" in
24221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24222 *) ac_try_echo=$ac_try;;
24224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24225 $as_echo "$ac_try_echo") >&5
24226 (eval "$ac_compile") 2>conftest.er1
24228 grep -v '^ *+' conftest.er1 >conftest.err
24230 cat conftest.err >&5
24231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232 (exit $ac_status); } && {
24233 test -z "$ac_c_werror_flag" ||
24234 test ! -s conftest.err
24235 } && test -s conftest.$ac_objext; then
24236 cat >conftest.$ac_ext <<_ACEOF
24239 cat confdefs.h >>conftest.$ac_ext
24240 cat >>conftest.$ac_ext <<_ACEOF
24241 /* end confdefs.h. */
24242 $ac_includes_default
24246 if (sizeof ((bits32_t)))
24252 rm -f conftest.$ac_objext
24253 if { (ac_try="$ac_compile"
24254 case "(($ac_try" in
24255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24256 *) ac_try_echo=$ac_try;;
24258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24259 $as_echo "$ac_try_echo") >&5
24260 (eval "$ac_compile") 2>conftest.er1
24262 grep -v '^ *+' conftest.er1 >conftest.err
24264 cat conftest.err >&5
24265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); } && {
24267 test -z "$ac_c_werror_flag" ||
24268 test ! -s conftest.err
24269 } && test -s conftest.$ac_objext; then
24272 $as_echo "$as_me: failed program was:" >&5
24273 sed 's/^/| /' conftest.$ac_ext >&5
24275 ac_cv_type_bits32_t=yes
24278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24280 $as_echo "$as_me: failed program was:" >&5
24281 sed 's/^/| /' conftest.$ac_ext >&5
24286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24288 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24289 $as_echo "$ac_cv_type_bits32_t" >&6; }
24290 if test "x$ac_cv_type_bits32_t" = x""yes; then
24294 cat >>confdefs.h <<_ACEOF
24295 #define bits32_t long
24301 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
24302 $as_echo_n "checking for bits32_t... " >&6; }
24303 if test "${ac_cv_type_bits32_t+set}" = set; then
24304 $as_echo_n "(cached) " >&6
24306 ac_cv_type_bits32_t=no
24307 cat >conftest.$ac_ext <<_ACEOF
24310 cat confdefs.h >>conftest.$ac_ext
24311 cat >>conftest.$ac_ext <<_ACEOF
24312 /* end confdefs.h. */
24313 $ac_includes_default
24317 if (sizeof (bits32_t))
24323 rm -f conftest.$ac_objext
24324 if { (ac_try="$ac_compile"
24325 case "(($ac_try" in
24326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24327 *) ac_try_echo=$ac_try;;
24329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24330 $as_echo "$ac_try_echo") >&5
24331 (eval "$ac_compile") 2>conftest.er1
24333 grep -v '^ *+' conftest.er1 >conftest.err
24335 cat conftest.err >&5
24336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); } && {
24338 test -z "$ac_c_werror_flag" ||
24339 test ! -s conftest.err
24340 } && test -s conftest.$ac_objext; then
24341 cat >conftest.$ac_ext <<_ACEOF
24344 cat confdefs.h >>conftest.$ac_ext
24345 cat >>conftest.$ac_ext <<_ACEOF
24346 /* end confdefs.h. */
24347 $ac_includes_default
24351 if (sizeof ((bits32_t)))
24357 rm -f conftest.$ac_objext
24358 if { (ac_try="$ac_compile"
24359 case "(($ac_try" in
24360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24361 *) ac_try_echo=$ac_try;;
24363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24364 $as_echo "$ac_try_echo") >&5
24365 (eval "$ac_compile") 2>conftest.er1
24367 grep -v '^ *+' conftest.er1 >conftest.err
24369 cat conftest.err >&5
24370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); } && {
24372 test -z "$ac_c_werror_flag" ||
24373 test ! -s conftest.err
24374 } && test -s conftest.$ac_objext; then
24377 $as_echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.$ac_ext >&5
24380 ac_cv_type_bits32_t=yes
24383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24385 $as_echo "$as_me: failed program was:" >&5
24386 sed 's/^/| /' conftest.$ac_ext >&5
24391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24393 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24394 $as_echo "$ac_cv_type_bits32_t" >&6; }
24395 if test "x$ac_cv_type_bits32_t" = x""yes; then
24399 cat >>confdefs.h <<_ACEOF
24400 #define bits32_t int
24408 if test "$ac_cv_sizeof_int" = 4; then
24409 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24410 $as_echo_n "checking for u_bits32_t... " >&6; }
24411 if test "${ac_cv_type_u_bits32_t+set}" = set; then
24412 $as_echo_n "(cached) " >&6
24414 ac_cv_type_u_bits32_t=no
24415 cat >conftest.$ac_ext <<_ACEOF
24418 cat confdefs.h >>conftest.$ac_ext
24419 cat >>conftest.$ac_ext <<_ACEOF
24420 /* end confdefs.h. */
24421 $ac_includes_default
24425 if (sizeof (u_bits32_t))
24431 rm -f conftest.$ac_objext
24432 if { (ac_try="$ac_compile"
24433 case "(($ac_try" in
24434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24435 *) ac_try_echo=$ac_try;;
24437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24438 $as_echo "$ac_try_echo") >&5
24439 (eval "$ac_compile") 2>conftest.er1
24441 grep -v '^ *+' conftest.er1 >conftest.err
24443 cat conftest.err >&5
24444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445 (exit $ac_status); } && {
24446 test -z "$ac_c_werror_flag" ||
24447 test ! -s conftest.err
24448 } && test -s conftest.$ac_objext; then
24449 cat >conftest.$ac_ext <<_ACEOF
24452 cat confdefs.h >>conftest.$ac_ext
24453 cat >>conftest.$ac_ext <<_ACEOF
24454 /* end confdefs.h. */
24455 $ac_includes_default
24459 if (sizeof ((u_bits32_t)))
24465 rm -f conftest.$ac_objext
24466 if { (ac_try="$ac_compile"
24467 case "(($ac_try" in
24468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24469 *) ac_try_echo=$ac_try;;
24471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24472 $as_echo "$ac_try_echo") >&5
24473 (eval "$ac_compile") 2>conftest.er1
24475 grep -v '^ *+' conftest.er1 >conftest.err
24477 cat conftest.err >&5
24478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); } && {
24480 test -z "$ac_c_werror_flag" ||
24481 test ! -s conftest.err
24482 } && test -s conftest.$ac_objext; then
24485 $as_echo "$as_me: failed program was:" >&5
24486 sed 's/^/| /' conftest.$ac_ext >&5
24488 ac_cv_type_u_bits32_t=yes
24491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24493 $as_echo "$as_me: failed program was:" >&5
24494 sed 's/^/| /' conftest.$ac_ext >&5
24499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24501 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24502 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24503 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24507 cat >>confdefs.h <<_ACEOF
24508 #define u_bits32_t unsigned int
24513 elif test "$ac_cv_sizeof_long" = 4; then
24514 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24515 $as_echo_n "checking for u_bits32_t... " >&6; }
24516 if test "${ac_cv_type_u_bits32_t+set}" = set; then
24517 $as_echo_n "(cached) " >&6
24519 ac_cv_type_u_bits32_t=no
24520 cat >conftest.$ac_ext <<_ACEOF
24523 cat confdefs.h >>conftest.$ac_ext
24524 cat >>conftest.$ac_ext <<_ACEOF
24525 /* end confdefs.h. */
24526 $ac_includes_default
24530 if (sizeof (u_bits32_t))
24536 rm -f conftest.$ac_objext
24537 if { (ac_try="$ac_compile"
24538 case "(($ac_try" in
24539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24540 *) ac_try_echo=$ac_try;;
24542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24543 $as_echo "$ac_try_echo") >&5
24544 (eval "$ac_compile") 2>conftest.er1
24546 grep -v '^ *+' conftest.er1 >conftest.err
24548 cat conftest.err >&5
24549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); } && {
24551 test -z "$ac_c_werror_flag" ||
24552 test ! -s conftest.err
24553 } && test -s conftest.$ac_objext; then
24554 cat >conftest.$ac_ext <<_ACEOF
24557 cat confdefs.h >>conftest.$ac_ext
24558 cat >>conftest.$ac_ext <<_ACEOF
24559 /* end confdefs.h. */
24560 $ac_includes_default
24564 if (sizeof ((u_bits32_t)))
24570 rm -f conftest.$ac_objext
24571 if { (ac_try="$ac_compile"
24572 case "(($ac_try" in
24573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24574 *) ac_try_echo=$ac_try;;
24576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24577 $as_echo "$ac_try_echo") >&5
24578 (eval "$ac_compile") 2>conftest.er1
24580 grep -v '^ *+' conftest.er1 >conftest.err
24582 cat conftest.err >&5
24583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24584 (exit $ac_status); } && {
24585 test -z "$ac_c_werror_flag" ||
24586 test ! -s conftest.err
24587 } && test -s conftest.$ac_objext; then
24590 $as_echo "$as_me: failed program was:" >&5
24591 sed 's/^/| /' conftest.$ac_ext >&5
24593 ac_cv_type_u_bits32_t=yes
24596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24598 $as_echo "$as_me: failed program was:" >&5
24599 sed 's/^/| /' conftest.$ac_ext >&5
24604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24606 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24607 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24608 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24612 cat >>confdefs.h <<_ACEOF
24613 #define u_bits32_t unsigned long
24619 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24620 $as_echo_n "checking for u_bits32_t... " >&6; }
24621 if test "${ac_cv_type_u_bits32_t+set}" = set; then
24622 $as_echo_n "(cached) " >&6
24624 ac_cv_type_u_bits32_t=no
24625 cat >conftest.$ac_ext <<_ACEOF
24628 cat confdefs.h >>conftest.$ac_ext
24629 cat >>conftest.$ac_ext <<_ACEOF
24630 /* end confdefs.h. */
24631 $ac_includes_default
24635 if (sizeof (u_bits32_t))
24641 rm -f conftest.$ac_objext
24642 if { (ac_try="$ac_compile"
24643 case "(($ac_try" in
24644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24645 *) ac_try_echo=$ac_try;;
24647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24648 $as_echo "$ac_try_echo") >&5
24649 (eval "$ac_compile") 2>conftest.er1
24651 grep -v '^ *+' conftest.er1 >conftest.err
24653 cat conftest.err >&5
24654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655 (exit $ac_status); } && {
24656 test -z "$ac_c_werror_flag" ||
24657 test ! -s conftest.err
24658 } && test -s conftest.$ac_objext; then
24659 cat >conftest.$ac_ext <<_ACEOF
24662 cat confdefs.h >>conftest.$ac_ext
24663 cat >>conftest.$ac_ext <<_ACEOF
24664 /* end confdefs.h. */
24665 $ac_includes_default
24669 if (sizeof ((u_bits32_t)))
24675 rm -f conftest.$ac_objext
24676 if { (ac_try="$ac_compile"
24677 case "(($ac_try" in
24678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24679 *) ac_try_echo=$ac_try;;
24681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24682 $as_echo "$ac_try_echo") >&5
24683 (eval "$ac_compile") 2>conftest.er1
24685 grep -v '^ *+' conftest.er1 >conftest.err
24687 cat conftest.err >&5
24688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); } && {
24690 test -z "$ac_c_werror_flag" ||
24691 test ! -s conftest.err
24692 } && test -s conftest.$ac_objext; then
24695 $as_echo "$as_me: failed program was:" >&5
24696 sed 's/^/| /' conftest.$ac_ext >&5
24698 ac_cv_type_u_bits32_t=yes
24701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24703 $as_echo "$as_me: failed program was:" >&5
24704 sed 's/^/| /' conftest.$ac_ext >&5
24709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24711 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24712 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24713 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24717 cat >>confdefs.h <<_ACEOF
24718 #define u_bits32_t unsigned int
24726 if test "$ac_cv_sizeof_char_p" = 8; then
24727 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24728 $as_echo_n "checking for bits64_t... " >&6; }
24729 if test "${ac_cv_type_bits64_t+set}" = set; then
24730 $as_echo_n "(cached) " >&6
24732 ac_cv_type_bits64_t=no
24733 cat >conftest.$ac_ext <<_ACEOF
24736 cat confdefs.h >>conftest.$ac_ext
24737 cat >>conftest.$ac_ext <<_ACEOF
24738 /* end confdefs.h. */
24739 $ac_includes_default
24743 if (sizeof (bits64_t))
24749 rm -f conftest.$ac_objext
24750 if { (ac_try="$ac_compile"
24751 case "(($ac_try" in
24752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24753 *) ac_try_echo=$ac_try;;
24755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24756 $as_echo "$ac_try_echo") >&5
24757 (eval "$ac_compile") 2>conftest.er1
24759 grep -v '^ *+' conftest.er1 >conftest.err
24761 cat conftest.err >&5
24762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763 (exit $ac_status); } && {
24764 test -z "$ac_c_werror_flag" ||
24765 test ! -s conftest.err
24766 } && test -s conftest.$ac_objext; then
24767 cat >conftest.$ac_ext <<_ACEOF
24770 cat confdefs.h >>conftest.$ac_ext
24771 cat >>conftest.$ac_ext <<_ACEOF
24772 /* end confdefs.h. */
24773 $ac_includes_default
24777 if (sizeof ((bits64_t)))
24783 rm -f conftest.$ac_objext
24784 if { (ac_try="$ac_compile"
24785 case "(($ac_try" in
24786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24787 *) ac_try_echo=$ac_try;;
24789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24790 $as_echo "$ac_try_echo") >&5
24791 (eval "$ac_compile") 2>conftest.er1
24793 grep -v '^ *+' conftest.er1 >conftest.err
24795 cat conftest.err >&5
24796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); } && {
24798 test -z "$ac_c_werror_flag" ||
24799 test ! -s conftest.err
24800 } && test -s conftest.$ac_objext; then
24803 $as_echo "$as_me: failed program was:" >&5
24804 sed 's/^/| /' conftest.$ac_ext >&5
24806 ac_cv_type_bits64_t=yes
24809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24811 $as_echo "$as_me: failed program was:" >&5
24812 sed 's/^/| /' conftest.$ac_ext >&5
24817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24819 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24820 $as_echo "$ac_cv_type_bits64_t" >&6; }
24821 if test "x$ac_cv_type_bits64_t" = x""yes; then
24825 cat >>confdefs.h <<_ACEOF
24826 #define bits64_t char *
24831 elif test "$ac_cv_sizeof_double" = 8; then
24832 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24833 $as_echo_n "checking for bits64_t... " >&6; }
24834 if test "${ac_cv_type_bits64_t+set}" = set; then
24835 $as_echo_n "(cached) " >&6
24837 ac_cv_type_bits64_t=no
24838 cat >conftest.$ac_ext <<_ACEOF
24841 cat confdefs.h >>conftest.$ac_ext
24842 cat >>conftest.$ac_ext <<_ACEOF
24843 /* end confdefs.h. */
24844 $ac_includes_default
24848 if (sizeof (bits64_t))
24854 rm -f conftest.$ac_objext
24855 if { (ac_try="$ac_compile"
24856 case "(($ac_try" in
24857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24858 *) ac_try_echo=$ac_try;;
24860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24861 $as_echo "$ac_try_echo") >&5
24862 (eval "$ac_compile") 2>conftest.er1
24864 grep -v '^ *+' conftest.er1 >conftest.err
24866 cat conftest.err >&5
24867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868 (exit $ac_status); } && {
24869 test -z "$ac_c_werror_flag" ||
24870 test ! -s conftest.err
24871 } && test -s conftest.$ac_objext; then
24872 cat >conftest.$ac_ext <<_ACEOF
24875 cat confdefs.h >>conftest.$ac_ext
24876 cat >>conftest.$ac_ext <<_ACEOF
24877 /* end confdefs.h. */
24878 $ac_includes_default
24882 if (sizeof ((bits64_t)))
24888 rm -f conftest.$ac_objext
24889 if { (ac_try="$ac_compile"
24890 case "(($ac_try" in
24891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24892 *) ac_try_echo=$ac_try;;
24894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24895 $as_echo "$ac_try_echo") >&5
24896 (eval "$ac_compile") 2>conftest.er1
24898 grep -v '^ *+' conftest.er1 >conftest.err
24900 cat conftest.err >&5
24901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902 (exit $ac_status); } && {
24903 test -z "$ac_c_werror_flag" ||
24904 test ! -s conftest.err
24905 } && test -s conftest.$ac_objext; then
24908 $as_echo "$as_me: failed program was:" >&5
24909 sed 's/^/| /' conftest.$ac_ext >&5
24911 ac_cv_type_bits64_t=yes
24914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24916 $as_echo "$as_me: failed program was:" >&5
24917 sed 's/^/| /' conftest.$ac_ext >&5
24922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24924 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24925 $as_echo "$ac_cv_type_bits64_t" >&6; }
24926 if test "x$ac_cv_type_bits64_t" = x""yes; then
24930 cat >>confdefs.h <<_ACEOF
24931 #define bits64_t double
24936 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
24937 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24938 $as_echo_n "checking for bits64_t... " >&6; }
24939 if test "${ac_cv_type_bits64_t+set}" = set; then
24940 $as_echo_n "(cached) " >&6
24942 ac_cv_type_bits64_t=no
24943 cat >conftest.$ac_ext <<_ACEOF
24946 cat confdefs.h >>conftest.$ac_ext
24947 cat >>conftest.$ac_ext <<_ACEOF
24948 /* end confdefs.h. */
24949 $ac_includes_default
24953 if (sizeof (bits64_t))
24959 rm -f conftest.$ac_objext
24960 if { (ac_try="$ac_compile"
24961 case "(($ac_try" in
24962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24963 *) ac_try_echo=$ac_try;;
24965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24966 $as_echo "$ac_try_echo") >&5
24967 (eval "$ac_compile") 2>conftest.er1
24969 grep -v '^ *+' conftest.er1 >conftest.err
24971 cat conftest.err >&5
24972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); } && {
24974 test -z "$ac_c_werror_flag" ||
24975 test ! -s conftest.err
24976 } && test -s conftest.$ac_objext; then
24977 cat >conftest.$ac_ext <<_ACEOF
24980 cat confdefs.h >>conftest.$ac_ext
24981 cat >>conftest.$ac_ext <<_ACEOF
24982 /* end confdefs.h. */
24983 $ac_includes_default
24987 if (sizeof ((bits64_t)))
24993 rm -f conftest.$ac_objext
24994 if { (ac_try="$ac_compile"
24995 case "(($ac_try" in
24996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24997 *) ac_try_echo=$ac_try;;
24999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25000 $as_echo "$ac_try_echo") >&5
25001 (eval "$ac_compile") 2>conftest.er1
25003 grep -v '^ *+' conftest.er1 >conftest.err
25005 cat conftest.err >&5
25006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007 (exit $ac_status); } && {
25008 test -z "$ac_c_werror_flag" ||
25009 test ! -s conftest.err
25010 } && test -s conftest.$ac_objext; then
25013 $as_echo "$as_me: failed program was:" >&5
25014 sed 's/^/| /' conftest.$ac_ext >&5
25016 ac_cv_type_bits64_t=yes
25019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25021 $as_echo "$as_me: failed program was:" >&5
25022 sed 's/^/| /' conftest.$ac_ext >&5
25027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25029 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25030 $as_echo "$ac_cv_type_bits64_t" >&6; }
25031 if test "x$ac_cv_type_bits64_t" = x""yes; then
25035 cat >>confdefs.h <<_ACEOF
25036 #define bits64_t long long
25041 elif test "$ac_cv_sizeof_long" = 8; then
25042 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
25043 $as_echo_n "checking for bits64_t... " >&6; }
25044 if test "${ac_cv_type_bits64_t+set}" = set; then
25045 $as_echo_n "(cached) " >&6
25047 ac_cv_type_bits64_t=no
25048 cat >conftest.$ac_ext <<_ACEOF
25051 cat confdefs.h >>conftest.$ac_ext
25052 cat >>conftest.$ac_ext <<_ACEOF
25053 /* end confdefs.h. */
25054 $ac_includes_default
25058 if (sizeof (bits64_t))
25064 rm -f conftest.$ac_objext
25065 if { (ac_try="$ac_compile"
25066 case "(($ac_try" in
25067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25068 *) ac_try_echo=$ac_try;;
25070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25071 $as_echo "$ac_try_echo") >&5
25072 (eval "$ac_compile") 2>conftest.er1
25074 grep -v '^ *+' conftest.er1 >conftest.err
25076 cat conftest.err >&5
25077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); } && {
25079 test -z "$ac_c_werror_flag" ||
25080 test ! -s conftest.err
25081 } && test -s conftest.$ac_objext; then
25082 cat >conftest.$ac_ext <<_ACEOF
25085 cat confdefs.h >>conftest.$ac_ext
25086 cat >>conftest.$ac_ext <<_ACEOF
25087 /* end confdefs.h. */
25088 $ac_includes_default
25092 if (sizeof ((bits64_t)))
25098 rm -f conftest.$ac_objext
25099 if { (ac_try="$ac_compile"
25100 case "(($ac_try" in
25101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25102 *) ac_try_echo=$ac_try;;
25104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25105 $as_echo "$ac_try_echo") >&5
25106 (eval "$ac_compile") 2>conftest.er1
25108 grep -v '^ *+' conftest.er1 >conftest.err
25110 cat conftest.err >&5
25111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); } && {
25113 test -z "$ac_c_werror_flag" ||
25114 test ! -s conftest.err
25115 } && test -s conftest.$ac_objext; then
25118 $as_echo "$as_me: failed program was:" >&5
25119 sed 's/^/| /' conftest.$ac_ext >&5
25121 ac_cv_type_bits64_t=yes
25124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25126 $as_echo "$as_me: failed program was:" >&5
25127 sed 's/^/| /' conftest.$ac_ext >&5
25132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25134 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25135 $as_echo "$ac_cv_type_bits64_t" >&6; }
25136 if test "x$ac_cv_type_bits64_t" = x""yes; then
25140 cat >>confdefs.h <<_ACEOF
25141 #define bits64_t long
25147 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
25148 $as_echo_n "checking for bits64_t... " >&6; }
25149 if test "${ac_cv_type_bits64_t+set}" = set; then
25150 $as_echo_n "(cached) " >&6
25152 ac_cv_type_bits64_t=no
25153 cat >conftest.$ac_ext <<_ACEOF
25156 cat confdefs.h >>conftest.$ac_ext
25157 cat >>conftest.$ac_ext <<_ACEOF
25158 /* end confdefs.h. */
25159 $ac_includes_default
25163 if (sizeof (bits64_t))
25169 rm -f conftest.$ac_objext
25170 if { (ac_try="$ac_compile"
25171 case "(($ac_try" in
25172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25173 *) ac_try_echo=$ac_try;;
25175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25176 $as_echo "$ac_try_echo") >&5
25177 (eval "$ac_compile") 2>conftest.er1
25179 grep -v '^ *+' conftest.er1 >conftest.err
25181 cat conftest.err >&5
25182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); } && {
25184 test -z "$ac_c_werror_flag" ||
25185 test ! -s conftest.err
25186 } && test -s conftest.$ac_objext; then
25187 cat >conftest.$ac_ext <<_ACEOF
25190 cat confdefs.h >>conftest.$ac_ext
25191 cat >>conftest.$ac_ext <<_ACEOF
25192 /* end confdefs.h. */
25193 $ac_includes_default
25197 if (sizeof ((bits64_t)))
25203 rm -f conftest.$ac_objext
25204 if { (ac_try="$ac_compile"
25205 case "(($ac_try" in
25206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25207 *) ac_try_echo=$ac_try;;
25209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25210 $as_echo "$ac_try_echo") >&5
25211 (eval "$ac_compile") 2>conftest.er1
25213 grep -v '^ *+' conftest.er1 >conftest.err
25215 cat conftest.err >&5
25216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 (exit $ac_status); } && {
25218 test -z "$ac_c_werror_flag" ||
25219 test ! -s conftest.err
25220 } && test -s conftest.$ac_objext; then
25223 $as_echo "$as_me: failed program was:" >&5
25224 sed 's/^/| /' conftest.$ac_ext >&5
25226 ac_cv_type_bits64_t=yes
25229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25231 $as_echo "$as_me: failed program was:" >&5
25232 sed 's/^/| /' conftest.$ac_ext >&5
25237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25239 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25240 $as_echo "$ac_cv_type_bits64_t" >&6; }
25241 if test "x$ac_cv_type_bits64_t" = x""yes; then
25245 cat >>confdefs.h <<_ACEOF
25246 #define bits64_t double
25255 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
25256 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25257 $as_echo_n "checking for ptrdiff_t... " >&6; }
25258 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25259 $as_echo_n "(cached) " >&6
25261 ac_cv_type_ptrdiff_t=no
25262 cat >conftest.$ac_ext <<_ACEOF
25265 cat confdefs.h >>conftest.$ac_ext
25266 cat >>conftest.$ac_ext <<_ACEOF
25267 /* end confdefs.h. */
25268 $ac_includes_default
25272 if (sizeof (ptrdiff_t))
25278 rm -f conftest.$ac_objext
25279 if { (ac_try="$ac_compile"
25280 case "(($ac_try" in
25281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25282 *) ac_try_echo=$ac_try;;
25284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25285 $as_echo "$ac_try_echo") >&5
25286 (eval "$ac_compile") 2>conftest.er1
25288 grep -v '^ *+' conftest.er1 >conftest.err
25290 cat conftest.err >&5
25291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); } && {
25293 test -z "$ac_c_werror_flag" ||
25294 test ! -s conftest.err
25295 } && test -s conftest.$ac_objext; then
25296 cat >conftest.$ac_ext <<_ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h. */
25302 $ac_includes_default
25306 if (sizeof ((ptrdiff_t)))
25312 rm -f conftest.$ac_objext
25313 if { (ac_try="$ac_compile"
25314 case "(($ac_try" in
25315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25316 *) ac_try_echo=$ac_try;;
25318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25319 $as_echo "$ac_try_echo") >&5
25320 (eval "$ac_compile") 2>conftest.er1
25322 grep -v '^ *+' conftest.er1 >conftest.err
25324 cat conftest.err >&5
25325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); } && {
25327 test -z "$ac_c_werror_flag" ||
25328 test ! -s conftest.err
25329 } && test -s conftest.$ac_objext; then
25332 $as_echo "$as_me: failed program was:" >&5
25333 sed 's/^/| /' conftest.$ac_ext >&5
25335 ac_cv_type_ptrdiff_t=yes
25338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25340 $as_echo "$as_me: failed program was:" >&5
25341 sed 's/^/| /' conftest.$ac_ext >&5
25346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25348 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25349 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25350 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25354 cat >>confdefs.h <<_ACEOF
25355 #define ptrdiff_t int
25360 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
25361 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25362 $as_echo_n "checking for ptrdiff_t... " >&6; }
25363 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25364 $as_echo_n "(cached) " >&6
25366 ac_cv_type_ptrdiff_t=no
25367 cat >conftest.$ac_ext <<_ACEOF
25370 cat confdefs.h >>conftest.$ac_ext
25371 cat >>conftest.$ac_ext <<_ACEOF
25372 /* end confdefs.h. */
25373 $ac_includes_default
25377 if (sizeof (ptrdiff_t))
25383 rm -f conftest.$ac_objext
25384 if { (ac_try="$ac_compile"
25385 case "(($ac_try" in
25386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25387 *) ac_try_echo=$ac_try;;
25389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25390 $as_echo "$ac_try_echo") >&5
25391 (eval "$ac_compile") 2>conftest.er1
25393 grep -v '^ *+' conftest.er1 >conftest.err
25395 cat conftest.err >&5
25396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397 (exit $ac_status); } && {
25398 test -z "$ac_c_werror_flag" ||
25399 test ! -s conftest.err
25400 } && test -s conftest.$ac_objext; then
25401 cat >conftest.$ac_ext <<_ACEOF
25404 cat confdefs.h >>conftest.$ac_ext
25405 cat >>conftest.$ac_ext <<_ACEOF
25406 /* end confdefs.h. */
25407 $ac_includes_default
25411 if (sizeof ((ptrdiff_t)))
25417 rm -f conftest.$ac_objext
25418 if { (ac_try="$ac_compile"
25419 case "(($ac_try" in
25420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25421 *) ac_try_echo=$ac_try;;
25423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25424 $as_echo "$ac_try_echo") >&5
25425 (eval "$ac_compile") 2>conftest.er1
25427 grep -v '^ *+' conftest.er1 >conftest.err
25429 cat conftest.err >&5
25430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); } && {
25432 test -z "$ac_c_werror_flag" ||
25433 test ! -s conftest.err
25434 } && test -s conftest.$ac_objext; then
25437 $as_echo "$as_me: failed program was:" >&5
25438 sed 's/^/| /' conftest.$ac_ext >&5
25440 ac_cv_type_ptrdiff_t=yes
25443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25445 $as_echo "$as_me: failed program was:" >&5
25446 sed 's/^/| /' conftest.$ac_ext >&5
25451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25453 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25454 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25455 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25459 cat >>confdefs.h <<_ACEOF
25460 #define ptrdiff_t long
25465 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
25466 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25467 $as_echo_n "checking for ptrdiff_t... " >&6; }
25468 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25469 $as_echo_n "(cached) " >&6
25471 ac_cv_type_ptrdiff_t=no
25472 cat >conftest.$ac_ext <<_ACEOF
25475 cat confdefs.h >>conftest.$ac_ext
25476 cat >>conftest.$ac_ext <<_ACEOF
25477 /* end confdefs.h. */
25478 $ac_includes_default
25482 if (sizeof (ptrdiff_t))
25488 rm -f conftest.$ac_objext
25489 if { (ac_try="$ac_compile"
25490 case "(($ac_try" in
25491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25492 *) ac_try_echo=$ac_try;;
25494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25495 $as_echo "$ac_try_echo") >&5
25496 (eval "$ac_compile") 2>conftest.er1
25498 grep -v '^ *+' conftest.er1 >conftest.err
25500 cat conftest.err >&5
25501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); } && {
25503 test -z "$ac_c_werror_flag" ||
25504 test ! -s conftest.err
25505 } && test -s conftest.$ac_objext; then
25506 cat >conftest.$ac_ext <<_ACEOF
25509 cat confdefs.h >>conftest.$ac_ext
25510 cat >>conftest.$ac_ext <<_ACEOF
25511 /* end confdefs.h. */
25512 $ac_includes_default
25516 if (sizeof ((ptrdiff_t)))
25522 rm -f conftest.$ac_objext
25523 if { (ac_try="$ac_compile"
25524 case "(($ac_try" in
25525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25526 *) ac_try_echo=$ac_try;;
25528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25529 $as_echo "$ac_try_echo") >&5
25530 (eval "$ac_compile") 2>conftest.er1
25532 grep -v '^ *+' conftest.er1 >conftest.err
25534 cat conftest.err >&5
25535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); } && {
25537 test -z "$ac_c_werror_flag" ||
25538 test ! -s conftest.err
25539 } && test -s conftest.$ac_objext; then
25542 $as_echo "$as_me: failed program was:" >&5
25543 sed 's/^/| /' conftest.$ac_ext >&5
25545 ac_cv_type_ptrdiff_t=yes
25548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25550 $as_echo "$as_me: failed program was:" >&5
25551 sed 's/^/| /' conftest.$ac_ext >&5
25556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25558 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25559 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25560 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25564 cat >>confdefs.h <<_ACEOF
25565 #define ptrdiff_t long long
25571 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25572 $as_echo_n "checking for ptrdiff_t... " >&6; }
25573 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25574 $as_echo_n "(cached) " >&6
25576 ac_cv_type_ptrdiff_t=no
25577 cat >conftest.$ac_ext <<_ACEOF
25580 cat confdefs.h >>conftest.$ac_ext
25581 cat >>conftest.$ac_ext <<_ACEOF
25582 /* end confdefs.h. */
25583 $ac_includes_default
25587 if (sizeof (ptrdiff_t))
25593 rm -f conftest.$ac_objext
25594 if { (ac_try="$ac_compile"
25595 case "(($ac_try" in
25596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25597 *) ac_try_echo=$ac_try;;
25599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25600 $as_echo "$ac_try_echo") >&5
25601 (eval "$ac_compile") 2>conftest.er1
25603 grep -v '^ *+' conftest.er1 >conftest.err
25605 cat conftest.err >&5
25606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607 (exit $ac_status); } && {
25608 test -z "$ac_c_werror_flag" ||
25609 test ! -s conftest.err
25610 } && test -s conftest.$ac_objext; then
25611 cat >conftest.$ac_ext <<_ACEOF
25614 cat confdefs.h >>conftest.$ac_ext
25615 cat >>conftest.$ac_ext <<_ACEOF
25616 /* end confdefs.h. */
25617 $ac_includes_default
25621 if (sizeof ((ptrdiff_t)))
25627 rm -f conftest.$ac_objext
25628 if { (ac_try="$ac_compile"
25629 case "(($ac_try" in
25630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25631 *) ac_try_echo=$ac_try;;
25633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25634 $as_echo "$ac_try_echo") >&5
25635 (eval "$ac_compile") 2>conftest.er1
25637 grep -v '^ *+' conftest.er1 >conftest.err
25639 cat conftest.err >&5
25640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641 (exit $ac_status); } && {
25642 test -z "$ac_c_werror_flag" ||
25643 test ! -s conftest.err
25644 } && test -s conftest.$ac_objext; then
25647 $as_echo "$as_me: failed program was:" >&5
25648 sed 's/^/| /' conftest.$ac_ext >&5
25650 ac_cv_type_ptrdiff_t=yes
25653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25655 $as_echo "$as_me: failed program was:" >&5
25656 sed 's/^/| /' conftest.$ac_ext >&5
25661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25663 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25664 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25665 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25669 cat >>confdefs.h <<_ACEOF
25670 #define ptrdiff_t int
25678 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25679 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25680 if test "${ac_cv_header_stat_broken+set}" = set; then
25681 $as_echo_n "(cached) " >&6
25683 cat >conftest.$ac_ext <<_ACEOF
25686 cat confdefs.h >>conftest.$ac_ext
25687 cat >>conftest.$ac_ext <<_ACEOF
25688 /* end confdefs.h. */
25689 #include <sys/types.h>
25690 #include <sys/stat.h>
25692 #if defined S_ISBLK && defined S_IFDIR
25693 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25696 #if defined S_ISBLK && defined S_IFCHR
25697 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25700 #if defined S_ISLNK && defined S_IFREG
25701 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25704 #if defined S_ISSOCK && defined S_IFREG
25705 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25709 rm -f conftest.$ac_objext
25710 if { (ac_try="$ac_compile"
25711 case "(($ac_try" in
25712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25713 *) ac_try_echo=$ac_try;;
25715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25716 $as_echo "$ac_try_echo") >&5
25717 (eval "$ac_compile") 2>conftest.er1
25719 grep -v '^ *+' conftest.er1 >conftest.err
25721 cat conftest.err >&5
25722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723 (exit $ac_status); } && {
25724 test -z "$ac_c_werror_flag" ||
25725 test ! -s conftest.err
25726 } && test -s conftest.$ac_objext; then
25727 ac_cv_header_stat_broken=no
25729 $as_echo "$as_me: failed program was:" >&5
25730 sed 's/^/| /' conftest.$ac_ext >&5
25732 ac_cv_header_stat_broken=yes
25735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25737 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25738 $as_echo "$ac_cv_header_stat_broken" >&6; }
25739 if test $ac_cv_header_stat_broken = yes; then
25741 cat >>confdefs.h <<\_ACEOF
25742 #define STAT_MACROS_BROKEN 1
25748 { $as_echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
25749 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
25750 if test "${ac_cv_sys_interpreter+set}" = set; then
25751 $as_echo_n "(cached) " >&6
25757 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
25758 if test $? -ne 69; then
25759 ac_cv_sys_interpreter=yes
25761 ac_cv_sys_interpreter=no
25765 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
25766 $as_echo "$ac_cv_sys_interpreter" >&6; }
25767 interpval=$ac_cv_sys_interpreter
25769 if test $ac_cv_sys_interpreter = yes; then
25770 cat >>confdefs.h <<\_ACEOF
25771 #define HAVE_HASH_BANG_EXEC 1
25776 if test "$ac_cv_func_lstat" = "no"; then
25777 { $as_echo "$as_me:$LINENO: checking for lstat" >&5
25778 $as_echo_n "checking for lstat... " >&6; }
25779 if test "${bash_cv_func_lstat+set}" = set; then
25780 $as_echo_n "(cached) " >&6
25782 cat >conftest.$ac_ext <<_ACEOF
25785 cat confdefs.h >>conftest.$ac_ext
25786 cat >>conftest.$ac_ext <<_ACEOF
25787 /* end confdefs.h. */
25789 #include <sys/types.h>
25790 #include <sys/stat.h>
25795 lstat(".",(struct stat *)0);
25800 rm -f conftest.$ac_objext conftest$ac_exeext
25801 if { (ac_try="$ac_link"
25802 case "(($ac_try" in
25803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25804 *) ac_try_echo=$ac_try;;
25806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25807 $as_echo "$ac_try_echo") >&5
25808 (eval "$ac_link") 2>conftest.er1
25810 grep -v '^ *+' conftest.er1 >conftest.err
25812 cat conftest.err >&5
25813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814 (exit $ac_status); } && {
25815 test -z "$ac_c_werror_flag" ||
25816 test ! -s conftest.err
25817 } && test -s conftest$ac_exeext && {
25818 test "$cross_compiling" = yes ||
25819 $as_test_x conftest$ac_exeext
25821 bash_cv_func_lstat=yes
25823 $as_echo "$as_me: failed program was:" >&5
25824 sed 's/^/| /' conftest.$ac_ext >&5
25826 bash_cv_func_lstat=no
25829 rm -rf conftest.dSYM
25830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25831 conftest$ac_exeext conftest.$ac_ext
25833 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
25834 $as_echo "$bash_cv_func_lstat" >&6; }
25835 if test $bash_cv_func_lstat = yes; then
25836 cat >>confdefs.h <<\_ACEOF
25837 #define HAVE_LSTAT 1
25845 { $as_echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
25846 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
25847 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
25848 $as_echo_n "(cached) " >&6
25850 if test "$cross_compiling" = yes; then
25851 { $as_echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
25852 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
25853 bash_cv_func_ctype_nonascii=no
25856 cat >conftest.$ac_ext <<_ACEOF
25859 cat confdefs.h >>conftest.$ac_ext
25860 cat >>conftest.$ac_ext <<_ACEOF
25861 /* end confdefs.h. */
25863 #ifdef HAVE_LOCALE_H
25864 #include <locale.h>
25877 #ifdef HAVE_SETLOCALE
25878 /* We take a shot here. If that locale is not known, try the
25879 system default. We try this one because '\342' (226) is
25880 known to be a printable character in that locale. */
25881 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
25882 if (deflocale == 0)
25883 deflocale = setlocale(LC_ALL, "");
25890 exit (r1 == 0 || r2 == 0);
25894 rm -f conftest$ac_exeext
25895 if { (ac_try="$ac_link"
25896 case "(($ac_try" in
25897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25898 *) ac_try_echo=$ac_try;;
25900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25901 $as_echo "$ac_try_echo") >&5
25902 (eval "$ac_link") 2>&5
25904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25906 { (case "(($ac_try" in
25907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25908 *) ac_try_echo=$ac_try;;
25910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25911 $as_echo "$ac_try_echo") >&5
25912 (eval "$ac_try") 2>&5
25914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); }; }; then
25916 bash_cv_func_ctype_nonascii=yes
25918 $as_echo "$as_me: program exited with status $ac_status" >&5
25919 $as_echo "$as_me: failed program was:" >&5
25920 sed 's/^/| /' conftest.$ac_ext >&5
25922 ( exit $ac_status )
25923 bash_cv_func_ctype_nonascii=no
25925 rm -rf conftest.dSYM
25926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25932 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
25933 $as_echo "$bash_cv_func_ctype_nonascii" >&6; }
25934 if test $bash_cv_func_ctype_nonascii = yes; then
25935 cat >>confdefs.h <<\_ACEOF
25936 #define CTYPE_NON_ASCII 1
25941 { $as_echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
25942 $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
25943 if test "${bash_cv_dup2_broken+set}" = set; then
25944 $as_echo_n "(cached) " >&6
25946 if test "$cross_compiling" = yes; then
25947 { $as_echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
25948 $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
25949 bash_cv_dup2_broken=no
25951 cat >conftest.$ac_ext <<_ACEOF
25954 cat confdefs.h >>conftest.$ac_ext
25955 cat >>conftest.$ac_ext <<_ACEOF
25956 /* end confdefs.h. */
25958 #include <sys/types.h>
25963 fd1 = open("/dev/null", 2);
25964 if (fcntl(fd1, 2, 1) < 0)
25966 fd2 = dup2(fd1, 1);
25969 fl = fcntl(fd2, 1, 0);
25970 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
25975 rm -f conftest$ac_exeext
25976 if { (ac_try="$ac_link"
25977 case "(($ac_try" in
25978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25979 *) ac_try_echo=$ac_try;;
25981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25982 $as_echo "$ac_try_echo") >&5
25983 (eval "$ac_link") 2>&5
25985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25987 { (case "(($ac_try" in
25988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25989 *) ac_try_echo=$ac_try;;
25991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25992 $as_echo "$ac_try_echo") >&5
25993 (eval "$ac_try") 2>&5
25995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25996 (exit $ac_status); }; }; then
25997 bash_cv_dup2_broken=yes
25999 $as_echo "$as_me: program exited with status $ac_status" >&5
26000 $as_echo "$as_me: failed program was:" >&5
26001 sed 's/^/| /' conftest.$ac_ext >&5
26003 ( exit $ac_status )
26004 bash_cv_dup2_broken=no
26006 rm -rf conftest.dSYM
26007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26014 { $as_echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
26015 $as_echo "$bash_cv_dup2_broken" >&6; }
26016 if test $bash_cv_dup2_broken = yes; then
26017 cat >>confdefs.h <<\_ACEOF
26018 #define DUP2_BROKEN 1
26024 { $as_echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
26025 $as_echo_n "checking whether pgrps need synchronization... " >&6; }
26026 if test "${bash_cv_pgrp_pipe+set}" = set; then
26027 $as_echo_n "(cached) " >&6
26029 if test "$cross_compiling" = yes; then
26030 { $as_echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
26031 $as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
26032 bash_cv_pgrp_pipe=no
26034 cat >conftest.$ac_ext <<_ACEOF
26037 cat confdefs.h >>conftest.$ac_ext
26038 cat >>conftest.$ac_ext <<_ACEOF
26039 /* end confdefs.h. */
26041 #ifdef HAVE_UNISTD_H
26042 # include <unistd.h>
26046 # ifdef GETPGRP_VOID
26047 # define getpgID() getpgrp()
26049 # define getpgID() getpgrp(0)
26050 # define setpgid(x,y) setpgrp(x,y)
26052 int pid1, pid2, fds[2];
26056 switch (pid1 = fork()) {
26060 setpgid(0, getpid());
26063 setpgid(pid1, pid1);
26065 sleep(2); /* let first child die */
26070 switch (pid2 = fork()) {
26075 ok = getpgID() == pid1;
26076 write(fds[1], &ok, 1);
26079 setpgid(pid2, pid1);
26082 if (read(fds[0], &ok, 1) != 1)
26090 rm -f conftest$ac_exeext
26091 if { (ac_try="$ac_link"
26092 case "(($ac_try" in
26093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26094 *) ac_try_echo=$ac_try;;
26096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26097 $as_echo "$ac_try_echo") >&5
26098 (eval "$ac_link") 2>&5
26100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26102 { (case "(($ac_try" in
26103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26104 *) ac_try_echo=$ac_try;;
26106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26107 $as_echo "$ac_try_echo") >&5
26108 (eval "$ac_try") 2>&5
26110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); }; }; then
26112 bash_cv_pgrp_pipe=no
26114 $as_echo "$as_me: program exited with status $ac_status" >&5
26115 $as_echo "$as_me: failed program was:" >&5
26116 sed 's/^/| /' conftest.$ac_ext >&5
26118 ( exit $ac_status )
26119 bash_cv_pgrp_pipe=yes
26121 rm -rf conftest.dSYM
26122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26129 { $as_echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
26130 $as_echo "$bash_cv_pgrp_pipe" >&6; }
26131 if test $bash_cv_pgrp_pipe = yes; then
26132 cat >>confdefs.h <<\_ACEOF
26133 #define PGRP_PIPE 1
26139 { $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5
26140 $as_echo_n "checking for type of signal functions... " >&6; }
26141 if test "${bash_cv_signal_vintage+set}" = set; then
26142 $as_echo_n "(cached) " >&6
26145 cat >conftest.$ac_ext <<_ACEOF
26148 cat confdefs.h >>conftest.$ac_ext
26149 cat >>conftest.$ac_ext <<_ACEOF
26150 /* end confdefs.h. */
26151 #include <signal.h>
26157 struct sigaction sa;
26158 sigemptyset(&ss); sigsuspend(&ss);
26159 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26160 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26166 rm -f conftest.$ac_objext conftest$ac_exeext
26167 if { (ac_try="$ac_link"
26168 case "(($ac_try" in
26169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26170 *) ac_try_echo=$ac_try;;
26172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26173 $as_echo "$ac_try_echo") >&5
26174 (eval "$ac_link") 2>conftest.er1
26176 grep -v '^ *+' conftest.er1 >conftest.err
26178 cat conftest.err >&5
26179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26180 (exit $ac_status); } && {
26181 test -z "$ac_c_werror_flag" ||
26182 test ! -s conftest.err
26183 } && test -s conftest$ac_exeext && {
26184 test "$cross_compiling" = yes ||
26185 $as_test_x conftest$ac_exeext
26187 bash_cv_signal_vintage=posix
26189 $as_echo "$as_me: failed program was:" >&5
26190 sed 's/^/| /' conftest.$ac_ext >&5
26193 cat >conftest.$ac_ext <<_ACEOF
26196 cat confdefs.h >>conftest.$ac_ext
26197 cat >>conftest.$ac_ext <<_ACEOF
26198 /* end confdefs.h. */
26199 #include <signal.h>
26204 int mask = sigmask(SIGINT);
26205 sigsetmask(mask); sigblock(mask); sigpause(mask);
26211 rm -f conftest.$ac_objext conftest$ac_exeext
26212 if { (ac_try="$ac_link"
26213 case "(($ac_try" in
26214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26215 *) ac_try_echo=$ac_try;;
26217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26218 $as_echo "$ac_try_echo") >&5
26219 (eval "$ac_link") 2>conftest.er1
26221 grep -v '^ *+' conftest.er1 >conftest.err
26223 cat conftest.err >&5
26224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225 (exit $ac_status); } && {
26226 test -z "$ac_c_werror_flag" ||
26227 test ! -s conftest.err
26228 } && test -s conftest$ac_exeext && {
26229 test "$cross_compiling" = yes ||
26230 $as_test_x conftest$ac_exeext
26232 bash_cv_signal_vintage=4.2bsd
26234 $as_echo "$as_me: failed program was:" >&5
26235 sed 's/^/| /' conftest.$ac_ext >&5
26238 cat >conftest.$ac_ext <<_ACEOF
26241 cat confdefs.h >>conftest.$ac_ext
26242 cat >>conftest.$ac_ext <<_ACEOF
26243 /* end confdefs.h. */
26245 #include <signal.h>
26246 RETSIGTYPE foo() { }
26251 int mask = sigmask(SIGINT);
26252 sigset(SIGINT, foo); sigrelse(SIGINT);
26253 sighold(SIGINT); sigpause(SIGINT);
26259 rm -f conftest.$ac_objext conftest$ac_exeext
26260 if { (ac_try="$ac_link"
26261 case "(($ac_try" in
26262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26263 *) ac_try_echo=$ac_try;;
26265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26266 $as_echo "$ac_try_echo") >&5
26267 (eval "$ac_link") 2>conftest.er1
26269 grep -v '^ *+' conftest.er1 >conftest.err
26271 cat conftest.err >&5
26272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26273 (exit $ac_status); } && {
26274 test -z "$ac_c_werror_flag" ||
26275 test ! -s conftest.err
26276 } && test -s conftest$ac_exeext && {
26277 test "$cross_compiling" = yes ||
26278 $as_test_x conftest$ac_exeext
26280 bash_cv_signal_vintage=svr3
26282 $as_echo "$as_me: failed program was:" >&5
26283 sed 's/^/| /' conftest.$ac_ext >&5
26285 bash_cv_signal_vintage=v7
26289 rm -rf conftest.dSYM
26290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26291 conftest$ac_exeext conftest.$ac_ext
26295 rm -rf conftest.dSYM
26296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26297 conftest$ac_exeext conftest.$ac_ext
26301 rm -rf conftest.dSYM
26302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26303 conftest$ac_exeext conftest.$ac_ext
26307 { $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
26308 $as_echo "$bash_cv_signal_vintage" >&6; }
26309 if test "$bash_cv_signal_vintage" = posix; then
26310 cat >>confdefs.h <<\_ACEOF
26311 #define HAVE_POSIX_SIGNALS 1
26314 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26315 cat >>confdefs.h <<\_ACEOF
26316 #define HAVE_BSD_SIGNALS 1
26319 elif test "$bash_cv_signal_vintage" = svr3; then
26320 cat >>confdefs.h <<\_ACEOF
26321 #define HAVE_USG_SIGHOLD 1
26327 { $as_echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
26328 $as_echo_n "checking for sys_errlist and sys_nerr... " >&6; }
26329 if test "${bash_cv_sys_errlist+set}" = set; then
26330 $as_echo_n "(cached) " >&6
26332 cat >conftest.$ac_ext <<_ACEOF
26335 cat confdefs.h >>conftest.$ac_ext
26336 cat >>conftest.$ac_ext <<_ACEOF
26337 /* end confdefs.h. */
26342 extern char *sys_errlist[];
26343 extern int sys_nerr;
26344 char *msg = sys_errlist[sys_nerr - 1];
26349 rm -f conftest.$ac_objext conftest$ac_exeext
26350 if { (ac_try="$ac_link"
26351 case "(($ac_try" in
26352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26353 *) ac_try_echo=$ac_try;;
26355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26356 $as_echo "$ac_try_echo") >&5
26357 (eval "$ac_link") 2>conftest.er1
26359 grep -v '^ *+' conftest.er1 >conftest.err
26361 cat conftest.err >&5
26362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26363 (exit $ac_status); } && {
26364 test -z "$ac_c_werror_flag" ||
26365 test ! -s conftest.err
26366 } && test -s conftest$ac_exeext && {
26367 test "$cross_compiling" = yes ||
26368 $as_test_x conftest$ac_exeext
26370 bash_cv_sys_errlist=yes
26372 $as_echo "$as_me: failed program was:" >&5
26373 sed 's/^/| /' conftest.$ac_ext >&5
26375 bash_cv_sys_errlist=no
26378 rm -rf conftest.dSYM
26379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26380 conftest$ac_exeext conftest.$ac_ext
26382 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
26383 $as_echo "$bash_cv_sys_errlist" >&6; }
26384 if test $bash_cv_sys_errlist = yes; then
26385 cat >>confdefs.h <<\_ACEOF
26386 #define HAVE_SYS_ERRLIST 1
26392 { $as_echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
26393 $as_echo_n "checking for sys_siglist in system C library... " >&6; }
26394 if test "${bash_cv_sys_siglist+set}" = set; then
26395 $as_echo_n "(cached) " >&6
26397 if test "$cross_compiling" = yes; then
26398 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
26399 $as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
26400 bash_cv_sys_siglist=no
26402 cat >conftest.$ac_ext <<_ACEOF
26405 cat confdefs.h >>conftest.$ac_ext
26406 cat >>conftest.$ac_ext <<_ACEOF
26407 /* end confdefs.h. */
26409 #include <sys/types.h>
26410 #include <signal.h>
26411 #ifdef HAVE_UNISTD_H
26412 #include <unistd.h>
26414 #if !HAVE_DECL_SYS_SIGLIST
26415 extern char *sys_siglist[];
26419 char *msg = sys_siglist[2];
26423 rm -f conftest$ac_exeext
26424 if { (ac_try="$ac_link"
26425 case "(($ac_try" in
26426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26427 *) ac_try_echo=$ac_try;;
26429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26430 $as_echo "$ac_try_echo") >&5
26431 (eval "$ac_link") 2>&5
26433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26435 { (case "(($ac_try" in
26436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26437 *) ac_try_echo=$ac_try;;
26439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26440 $as_echo "$ac_try_echo") >&5
26441 (eval "$ac_try") 2>&5
26443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26444 (exit $ac_status); }; }; then
26445 bash_cv_sys_siglist=yes
26447 $as_echo "$as_me: program exited with status $ac_status" >&5
26448 $as_echo "$as_me: failed program was:" >&5
26449 sed 's/^/| /' conftest.$ac_ext >&5
26451 ( exit $ac_status )
26452 bash_cv_sys_siglist=no
26454 rm -rf conftest.dSYM
26455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26461 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
26462 $as_echo "$bash_cv_sys_siglist" >&6; }
26463 if test $bash_cv_sys_siglist = yes; then
26464 cat >>confdefs.h <<\_ACEOF
26465 #define HAVE_SYS_SIGLIST 1
26470 { $as_echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
26471 $as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
26472 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
26473 $as_echo_n "(cached) " >&6
26475 cat >conftest.$ac_ext <<_ACEOF
26478 cat confdefs.h >>conftest.$ac_ext
26479 cat >>conftest.$ac_ext <<_ACEOF
26480 /* end confdefs.h. */
26482 #include <sys/types.h>
26483 #include <signal.h>
26484 #ifdef HAVE_UNISTD_H
26485 #include <unistd.h>
26490 char *msg = _sys_siglist[2];
26495 rm -f conftest.$ac_objext
26496 if { (ac_try="$ac_compile"
26497 case "(($ac_try" in
26498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26499 *) ac_try_echo=$ac_try;;
26501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26502 $as_echo "$ac_try_echo") >&5
26503 (eval "$ac_compile") 2>conftest.er1
26505 grep -v '^ *+' conftest.er1 >conftest.err
26507 cat conftest.err >&5
26508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); } && {
26510 test -z "$ac_c_werror_flag" ||
26511 test ! -s conftest.err
26512 } && test -s conftest.$ac_objext; then
26513 bash_cv_decl_under_sys_siglist=yes
26515 $as_echo "$as_me: failed program was:" >&5
26516 sed 's/^/| /' conftest.$ac_ext >&5
26518 bash_cv_decl_under_sys_siglist=no
26521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26523 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
26524 $as_echo "$bash_cv_decl_under_sys_siglist" >&6; }
26525 if test $bash_cv_decl_under_sys_siglist = yes; then
26526 cat >>confdefs.h <<\_ACEOF
26527 #define UNDER_SYS_SIGLIST_DECLARED 1
26533 { $as_echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
26534 $as_echo_n "checking for _sys_siglist in system C library... " >&6; }
26535 if test "${bash_cv_under_sys_siglist+set}" = set; then
26536 $as_echo_n "(cached) " >&6
26538 if test "$cross_compiling" = yes; then
26539 { $as_echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
26540 $as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
26541 bash_cv_under_sys_siglist=no
26543 cat >conftest.$ac_ext <<_ACEOF
26546 cat confdefs.h >>conftest.$ac_ext
26547 cat >>conftest.$ac_ext <<_ACEOF
26548 /* end confdefs.h. */
26550 #include <sys/types.h>
26551 #include <signal.h>
26552 #ifdef HAVE_UNISTD_H
26553 #include <unistd.h>
26555 #ifndef UNDER_SYS_SIGLIST_DECLARED
26556 extern char *_sys_siglist[];
26560 char *msg = (char *)_sys_siglist[2];
26564 rm -f conftest$ac_exeext
26565 if { (ac_try="$ac_link"
26566 case "(($ac_try" in
26567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26568 *) ac_try_echo=$ac_try;;
26570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26571 $as_echo "$ac_try_echo") >&5
26572 (eval "$ac_link") 2>&5
26574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26576 { (case "(($ac_try" in
26577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26578 *) ac_try_echo=$ac_try;;
26580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26581 $as_echo "$ac_try_echo") >&5
26582 (eval "$ac_try") 2>&5
26584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); }; }; then
26586 bash_cv_under_sys_siglist=yes
26588 $as_echo "$as_me: program exited with status $ac_status" >&5
26589 $as_echo "$as_me: failed program was:" >&5
26590 sed 's/^/| /' conftest.$ac_ext >&5
26592 ( exit $ac_status )
26593 bash_cv_under_sys_siglist=no
26595 rm -rf conftest.dSYM
26596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26602 { $as_echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
26603 $as_echo "$bash_cv_under_sys_siglist" >&6; }
26604 if test $bash_cv_under_sys_siglist = yes; then
26605 cat >>confdefs.h <<\_ACEOF
26606 #define HAVE_UNDER_SYS_SIGLIST 1
26612 { $as_echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
26613 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
26614 if test "${bash_cv_void_sighandler+set}" = set; then
26615 $as_echo_n "(cached) " >&6
26617 cat >conftest.$ac_ext <<_ACEOF
26620 cat confdefs.h >>conftest.$ac_ext
26621 cat >>conftest.$ac_ext <<_ACEOF
26622 /* end confdefs.h. */
26623 #include <sys/types.h>
26624 #include <signal.h>
26631 void (*signal ()) ();
26640 rm -f conftest.$ac_objext
26641 if { (ac_try="$ac_compile"
26642 case "(($ac_try" in
26643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26644 *) ac_try_echo=$ac_try;;
26646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26647 $as_echo "$ac_try_echo") >&5
26648 (eval "$ac_compile") 2>conftest.er1
26650 grep -v '^ *+' conftest.er1 >conftest.err
26652 cat conftest.err >&5
26653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654 (exit $ac_status); } && {
26655 test -z "$ac_c_werror_flag" ||
26656 test ! -s conftest.err
26657 } && test -s conftest.$ac_objext; then
26658 bash_cv_void_sighandler=yes
26660 $as_echo "$as_me: failed program was:" >&5
26661 sed 's/^/| /' conftest.$ac_ext >&5
26663 bash_cv_void_sighandler=no
26666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26668 { $as_echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
26669 $as_echo "$bash_cv_void_sighandler" >&6; }
26670 if test $bash_cv_void_sighandler = yes; then
26671 cat >>confdefs.h <<\_ACEOF
26672 #define VOID_SIGHANDLER 1
26679 { $as_echo "$as_me:$LINENO: checking for clock_t" >&5
26680 $as_echo_n "checking for clock_t... " >&6; }
26681 if test "${bash_cv_type_clock_t+set}" = set; then
26682 $as_echo_n "(cached) " >&6
26684 cat >conftest.$ac_ext <<_ACEOF
26687 cat confdefs.h >>conftest.$ac_ext
26688 cat >>conftest.$ac_ext <<_ACEOF
26689 /* end confdefs.h. */
26690 #include <sys/types.h>
26692 #include <stdlib.h>
26693 #include <stddef.h>
26695 #if HAVE_INTTYPES_H
26696 #include <inttypes.h>
26699 #include <stdint.h>
26701 #include <sys/times.h>
26704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26705 $EGREP "clock_t" >/dev/null 2>&1; then
26706 bash_cv_type_clock_t=yes
26708 bash_cv_type_clock_t=no
26714 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
26715 $as_echo "$bash_cv_type_clock_t" >&6; }
26717 if test $bash_cv_type_clock_t = no; then
26718 cat >>confdefs.h <<_ACEOF
26719 #define clock_t long
26726 { $as_echo "$as_me:$LINENO: checking for sigset_t" >&5
26727 $as_echo_n "checking for sigset_t... " >&6; }
26728 if test "${bash_cv_type_sigset_t+set}" = set; then
26729 $as_echo_n "(cached) " >&6
26731 cat >conftest.$ac_ext <<_ACEOF
26734 cat confdefs.h >>conftest.$ac_ext
26735 cat >>conftest.$ac_ext <<_ACEOF
26736 /* end confdefs.h. */
26737 #include <sys/types.h>
26739 #include <stdlib.h>
26740 #include <stddef.h>
26742 #if HAVE_INTTYPES_H
26743 #include <inttypes.h>
26746 #include <stdint.h>
26748 #include <signal.h>
26751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26752 $EGREP "sigset_t" >/dev/null 2>&1; then
26753 bash_cv_type_sigset_t=yes
26755 bash_cv_type_sigset_t=no
26761 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
26762 $as_echo "$bash_cv_type_sigset_t" >&6; }
26764 if test $bash_cv_type_sigset_t = no; then
26765 cat >>confdefs.h <<_ACEOF
26766 #define sigset_t int
26773 { $as_echo "$as_me:$LINENO: checking for quad_t" >&5
26774 $as_echo_n "checking for quad_t... " >&6; }
26775 if test "${bash_cv_type_quad_t+set}" = set; then
26776 $as_echo_n "(cached) " >&6
26778 cat >conftest.$ac_ext <<_ACEOF
26781 cat confdefs.h >>conftest.$ac_ext
26782 cat >>conftest.$ac_ext <<_ACEOF
26783 /* end confdefs.h. */
26784 #include <sys/types.h>
26786 #include <stdlib.h>
26787 #include <stddef.h>
26789 #if HAVE_INTTYPES_H
26790 #include <inttypes.h>
26793 #include <stdint.h>
26798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26799 $EGREP "quad_t" >/dev/null 2>&1; then
26800 bash_cv_type_quad_t=yes
26802 bash_cv_type_quad_t=no
26808 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
26809 $as_echo "$bash_cv_type_quad_t" >&6; }
26810 if test $bash_cv_type_quad_t = yes; then
26811 cat >>confdefs.h <<\_ACEOF
26812 #define HAVE_QUAD_T 1
26816 if test $bash_cv_type_quad_t = no; then
26817 cat >>confdefs.h <<_ACEOF
26818 #define quad_t long
26825 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
26826 $as_echo_n "checking for intmax_t... " >&6; }
26827 if test "${bash_cv_type_intmax_t+set}" = set; then
26828 $as_echo_n "(cached) " >&6
26830 cat >conftest.$ac_ext <<_ACEOF
26833 cat confdefs.h >>conftest.$ac_ext
26834 cat >>conftest.$ac_ext <<_ACEOF
26835 /* end confdefs.h. */
26836 #include <sys/types.h>
26838 #include <stdlib.h>
26839 #include <stddef.h>
26841 #if HAVE_INTTYPES_H
26842 #include <inttypes.h>
26845 #include <stdint.h>
26850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26851 $EGREP "intmax_t" >/dev/null 2>&1; then
26852 bash_cv_type_intmax_t=yes
26854 bash_cv_type_intmax_t=no
26860 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
26861 $as_echo "$bash_cv_type_intmax_t" >&6; }
26863 if test $bash_cv_type_intmax_t = no; then
26864 cat >>confdefs.h <<_ACEOF
26865 #define intmax_t $bash_cv_type_long_long
26872 { $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5
26873 $as_echo_n "checking for uintmax_t... " >&6; }
26874 if test "${bash_cv_type_uintmax_t+set}" = set; then
26875 $as_echo_n "(cached) " >&6
26877 cat >conftest.$ac_ext <<_ACEOF
26880 cat confdefs.h >>conftest.$ac_ext
26881 cat >>conftest.$ac_ext <<_ACEOF
26882 /* end confdefs.h. */
26883 #include <sys/types.h>
26885 #include <stdlib.h>
26886 #include <stddef.h>
26888 #if HAVE_INTTYPES_H
26889 #include <inttypes.h>
26892 #include <stdint.h>
26897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26898 $EGREP "uintmax_t" >/dev/null 2>&1; then
26899 bash_cv_type_uintmax_t=yes
26901 bash_cv_type_uintmax_t=no
26907 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
26908 $as_echo "$bash_cv_type_uintmax_t" >&6; }
26910 if test $bash_cv_type_uintmax_t = no; then
26911 cat >>confdefs.h <<_ACEOF
26912 #define uintmax_t $bash_cv_type_unsigned_long_long
26917 if test "$ac_cv_header_sys_socket_h" = "yes"; then
26920 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
26921 $as_echo_n "checking for socklen_t... " >&6; }
26922 if test "${bash_cv_type_socklen_t+set}" = set; then
26923 $as_echo_n "(cached) " >&6
26925 cat >conftest.$ac_ext <<_ACEOF
26928 cat confdefs.h >>conftest.$ac_ext
26929 cat >>conftest.$ac_ext <<_ACEOF
26930 /* end confdefs.h. */
26931 #include <sys/types.h>
26933 #include <stdlib.h>
26934 #include <stddef.h>
26936 #if HAVE_INTTYPES_H
26937 #include <inttypes.h>
26940 #include <stdint.h>
26942 #include <sys/socket.h>
26945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26946 $EGREP "socklen_t" >/dev/null 2>&1; then
26947 bash_cv_type_socklen_t=yes
26949 bash_cv_type_socklen_t=no
26955 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
26956 $as_echo "$bash_cv_type_socklen_t" >&6; }
26957 if test $bash_cv_type_socklen_t = yes; then
26958 cat >>confdefs.h <<\_ACEOF
26959 #define HAVE_SOCKLEN_T 1
26963 if test $bash_cv_type_socklen_t = no; then
26964 cat >>confdefs.h <<_ACEOF
26965 #define socklen_t int
26971 { $as_echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
26972 $as_echo_n "checking for size and type of struct rlimit fields... " >&6; }
26973 if test "${bash_cv_type_rlimit+set}" = set; then
26974 $as_echo_n "(cached) " >&6
26976 cat >conftest.$ac_ext <<_ACEOF
26979 cat confdefs.h >>conftest.$ac_ext
26980 cat >>conftest.$ac_ext <<_ACEOF
26981 /* end confdefs.h. */
26982 #include <sys/types.h>
26983 #include <sys/resource.h>
26992 rm -f conftest.$ac_objext
26993 if { (ac_try="$ac_compile"
26994 case "(($ac_try" in
26995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26996 *) ac_try_echo=$ac_try;;
26998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26999 $as_echo "$ac_try_echo") >&5
27000 (eval "$ac_compile") 2>conftest.er1
27002 grep -v '^ *+' conftest.er1 >conftest.err
27004 cat conftest.err >&5
27005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006 (exit $ac_status); } && {
27007 test -z "$ac_c_werror_flag" ||
27008 test ! -s conftest.err
27009 } && test -s conftest.$ac_objext; then
27010 bash_cv_type_rlimit=rlim_t
27012 $as_echo "$as_me: failed program was:" >&5
27013 sed 's/^/| /' conftest.$ac_ext >&5
27016 if test "$cross_compiling" = yes; then
27017 { $as_echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
27018 $as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
27019 bash_cv_type_rlimit=long
27021 cat >conftest.$ac_ext <<_ACEOF
27024 cat confdefs.h >>conftest.$ac_ext
27025 cat >>conftest.$ac_ext <<_ACEOF
27026 /* end confdefs.h. */
27028 #include <sys/types.h>
27029 #include <sys/time.h>
27030 #include <sys/resource.h>
27035 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
27041 rm -f conftest$ac_exeext
27042 if { (ac_try="$ac_link"
27043 case "(($ac_try" in
27044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27045 *) ac_try_echo=$ac_try;;
27047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27048 $as_echo "$ac_try_echo") >&5
27049 (eval "$ac_link") 2>&5
27051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27053 { (case "(($ac_try" in
27054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27055 *) ac_try_echo=$ac_try;;
27057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27058 $as_echo "$ac_try_echo") >&5
27059 (eval "$ac_try") 2>&5
27061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); }; }; then
27063 bash_cv_type_rlimit=quad_t
27065 $as_echo "$as_me: program exited with status $ac_status" >&5
27066 $as_echo "$as_me: failed program was:" >&5
27067 sed 's/^/| /' conftest.$ac_ext >&5
27069 ( exit $ac_status )
27070 bash_cv_type_rlimit=long
27072 rm -rf conftest.dSYM
27073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27083 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
27084 $as_echo "$bash_cv_type_rlimit" >&6; }
27085 if test $bash_cv_type_rlimit = quad_t; then
27086 cat >>confdefs.h <<\_ACEOF
27087 #define RLIMTYPE quad_t
27090 elif test $bash_cv_type_rlimit = rlim_t; then
27091 cat >>confdefs.h <<\_ACEOF
27092 #define RLIMTYPE rlim_t
27098 # The cast to long int works around a bug in the HP C Compiler
27099 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27100 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27101 # This bug is HP SR number 8606223364.
27102 { $as_echo "$as_me:$LINENO: checking size of intmax_t" >&5
27103 $as_echo_n "checking size of intmax_t... " >&6; }
27104 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
27105 $as_echo_n "(cached) " >&6
27107 if test "$cross_compiling" = yes; then
27108 # Depending upon the size, compute the lo and hi bounds.
27109 cat >conftest.$ac_ext <<_ACEOF
27112 cat confdefs.h >>conftest.$ac_ext
27113 cat >>conftest.$ac_ext <<_ACEOF
27114 /* end confdefs.h. */
27115 $ac_includes_default
27119 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= 0)];
27126 rm -f conftest.$ac_objext
27127 if { (ac_try="$ac_compile"
27128 case "(($ac_try" in
27129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27130 *) ac_try_echo=$ac_try;;
27132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27133 $as_echo "$ac_try_echo") >&5
27134 (eval "$ac_compile") 2>conftest.er1
27136 grep -v '^ *+' conftest.er1 >conftest.err
27138 cat conftest.err >&5
27139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); } && {
27141 test -z "$ac_c_werror_flag" ||
27142 test ! -s conftest.err
27143 } && test -s conftest.$ac_objext; then
27146 cat >conftest.$ac_ext <<_ACEOF
27149 cat confdefs.h >>conftest.$ac_ext
27150 cat >>conftest.$ac_ext <<_ACEOF
27151 /* end confdefs.h. */
27152 $ac_includes_default
27156 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
27163 rm -f conftest.$ac_objext
27164 if { (ac_try="$ac_compile"
27165 case "(($ac_try" in
27166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27167 *) ac_try_echo=$ac_try;;
27169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27170 $as_echo "$ac_try_echo") >&5
27171 (eval "$ac_compile") 2>conftest.er1
27173 grep -v '^ *+' conftest.er1 >conftest.err
27175 cat conftest.err >&5
27176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); } && {
27178 test -z "$ac_c_werror_flag" ||
27179 test ! -s conftest.err
27180 } && test -s conftest.$ac_objext; then
27181 ac_hi=$ac_mid; break
27183 $as_echo "$as_me: failed program was:" >&5
27184 sed 's/^/| /' conftest.$ac_ext >&5
27186 ac_lo=`expr $ac_mid + 1`
27187 if test $ac_lo -le $ac_mid; then
27191 ac_mid=`expr 2 '*' $ac_mid + 1`
27194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27197 $as_echo "$as_me: failed program was:" >&5
27198 sed 's/^/| /' conftest.$ac_ext >&5
27200 cat >conftest.$ac_ext <<_ACEOF
27203 cat confdefs.h >>conftest.$ac_ext
27204 cat >>conftest.$ac_ext <<_ACEOF
27205 /* end confdefs.h. */
27206 $ac_includes_default
27210 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) < 0)];
27217 rm -f conftest.$ac_objext
27218 if { (ac_try="$ac_compile"
27219 case "(($ac_try" in
27220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27221 *) ac_try_echo=$ac_try;;
27223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27224 $as_echo "$ac_try_echo") >&5
27225 (eval "$ac_compile") 2>conftest.er1
27227 grep -v '^ *+' conftest.er1 >conftest.err
27229 cat conftest.err >&5
27230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27231 (exit $ac_status); } && {
27232 test -z "$ac_c_werror_flag" ||
27233 test ! -s conftest.err
27234 } && test -s conftest.$ac_objext; then
27237 cat >conftest.$ac_ext <<_ACEOF
27240 cat confdefs.h >>conftest.$ac_ext
27241 cat >>conftest.$ac_ext <<_ACEOF
27242 /* end confdefs.h. */
27243 $ac_includes_default
27247 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= $ac_mid)];
27254 rm -f conftest.$ac_objext
27255 if { (ac_try="$ac_compile"
27256 case "(($ac_try" in
27257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27258 *) ac_try_echo=$ac_try;;
27260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27261 $as_echo "$ac_try_echo") >&5
27262 (eval "$ac_compile") 2>conftest.er1
27264 grep -v '^ *+' conftest.er1 >conftest.err
27266 cat conftest.err >&5
27267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27268 (exit $ac_status); } && {
27269 test -z "$ac_c_werror_flag" ||
27270 test ! -s conftest.err
27271 } && test -s conftest.$ac_objext; then
27272 ac_lo=$ac_mid; break
27274 $as_echo "$as_me: failed program was:" >&5
27275 sed 's/^/| /' conftest.$ac_ext >&5
27277 ac_hi=`expr '(' $ac_mid ')' - 1`
27278 if test $ac_mid -le $ac_hi; then
27282 ac_mid=`expr 2 '*' $ac_mid`
27285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27288 $as_echo "$as_me: failed program was:" >&5
27289 sed 's/^/| /' conftest.$ac_ext >&5
27294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27298 # Binary search between lo and hi bounds.
27299 while test "x$ac_lo" != "x$ac_hi"; do
27300 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27301 cat >conftest.$ac_ext <<_ACEOF
27304 cat confdefs.h >>conftest.$ac_ext
27305 cat >>conftest.$ac_ext <<_ACEOF
27306 /* end confdefs.h. */
27307 $ac_includes_default
27311 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
27318 rm -f conftest.$ac_objext
27319 if { (ac_try="$ac_compile"
27320 case "(($ac_try" in
27321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27322 *) ac_try_echo=$ac_try;;
27324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27325 $as_echo "$ac_try_echo") >&5
27326 (eval "$ac_compile") 2>conftest.er1
27328 grep -v '^ *+' conftest.er1 >conftest.err
27330 cat conftest.err >&5
27331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332 (exit $ac_status); } && {
27333 test -z "$ac_c_werror_flag" ||
27334 test ! -s conftest.err
27335 } && test -s conftest.$ac_objext; then
27338 $as_echo "$as_me: failed program was:" >&5
27339 sed 's/^/| /' conftest.$ac_ext >&5
27341 ac_lo=`expr '(' $ac_mid ')' + 1`
27344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27347 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
27348 '') if test "$ac_cv_type_intmax_t" = yes; then
27349 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27351 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
27352 See \`config.log' for more details." >&5
27353 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
27354 See \`config.log' for more details." >&2;}
27355 { (exit 77); exit 77; }; }; }
27357 ac_cv_sizeof_intmax_t=0
27361 cat >conftest.$ac_ext <<_ACEOF
27364 cat confdefs.h >>conftest.$ac_ext
27365 cat >>conftest.$ac_ext <<_ACEOF
27366 /* end confdefs.h. */
27367 $ac_includes_default
27368 static long int longval () { return (long int) (sizeof (intmax_t)); }
27369 static unsigned long int ulongval () { return (long int) (sizeof (intmax_t)); }
27371 #include <stdlib.h>
27376 FILE *f = fopen ("conftest.val", "w");
27379 if (((long int) (sizeof (intmax_t))) < 0)
27381 long int i = longval ();
27382 if (i != ((long int) (sizeof (intmax_t))))
27384 fprintf (f, "%ld", i);
27388 unsigned long int i = ulongval ();
27389 if (i != ((long int) (sizeof (intmax_t))))
27391 fprintf (f, "%lu", i);
27393 /* Do not output a trailing newline, as this causes \r\n confusion
27394 on some platforms. */
27395 return ferror (f) || fclose (f) != 0;
27401 rm -f conftest$ac_exeext
27402 if { (ac_try="$ac_link"
27403 case "(($ac_try" in
27404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27405 *) ac_try_echo=$ac_try;;
27407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27408 $as_echo "$ac_try_echo") >&5
27409 (eval "$ac_link") 2>&5
27411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27413 { (case "(($ac_try" in
27414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415 *) ac_try_echo=$ac_try;;
27417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27418 $as_echo "$ac_try_echo") >&5
27419 (eval "$ac_try") 2>&5
27421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422 (exit $ac_status); }; }; then
27423 ac_cv_sizeof_intmax_t=`cat conftest.val`
27425 $as_echo "$as_me: program exited with status $ac_status" >&5
27426 $as_echo "$as_me: failed program was:" >&5
27427 sed 's/^/| /' conftest.$ac_ext >&5
27429 ( exit $ac_status )
27430 if test "$ac_cv_type_intmax_t" = yes; then
27431 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27433 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
27434 See \`config.log' for more details." >&5
27435 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
27436 See \`config.log' for more details." >&2;}
27437 { (exit 77); exit 77; }; }; }
27439 ac_cv_sizeof_intmax_t=0
27442 rm -rf conftest.dSYM
27443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27447 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
27448 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
27452 cat >>confdefs.h <<_ACEOF
27453 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
27459 { $as_echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
27460 $as_echo_n "checking for struct termios.c_line... " >&6; }
27461 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
27462 $as_echo_n "(cached) " >&6
27464 cat >conftest.$ac_ext <<_ACEOF
27467 cat confdefs.h >>conftest.$ac_ext
27468 cat >>conftest.$ac_ext <<_ACEOF
27469 /* end confdefs.h. */
27471 #include <sys/types.h>
27472 #include <termios.h>
27478 static struct termios ac_aggr;
27479 if (ac_aggr.c_line)
27485 rm -f conftest.$ac_objext
27486 if { (ac_try="$ac_compile"
27487 case "(($ac_try" in
27488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27489 *) ac_try_echo=$ac_try;;
27491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27492 $as_echo "$ac_try_echo") >&5
27493 (eval "$ac_compile") 2>conftest.er1
27495 grep -v '^ *+' conftest.er1 >conftest.err
27497 cat conftest.err >&5
27498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499 (exit $ac_status); } && {
27500 test -z "$ac_c_werror_flag" ||
27501 test ! -s conftest.err
27502 } && test -s conftest.$ac_objext; then
27503 ac_cv_member_struct_termios_c_line=yes
27505 $as_echo "$as_me: failed program was:" >&5
27506 sed 's/^/| /' conftest.$ac_ext >&5
27508 cat >conftest.$ac_ext <<_ACEOF
27511 cat confdefs.h >>conftest.$ac_ext
27512 cat >>conftest.$ac_ext <<_ACEOF
27513 /* end confdefs.h. */
27515 #include <sys/types.h>
27516 #include <termios.h>
27522 static struct termios ac_aggr;
27523 if (sizeof ac_aggr.c_line)
27529 rm -f conftest.$ac_objext
27530 if { (ac_try="$ac_compile"
27531 case "(($ac_try" in
27532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27533 *) ac_try_echo=$ac_try;;
27535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27536 $as_echo "$ac_try_echo") >&5
27537 (eval "$ac_compile") 2>conftest.er1
27539 grep -v '^ *+' conftest.er1 >conftest.err
27541 cat conftest.err >&5
27542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543 (exit $ac_status); } && {
27544 test -z "$ac_c_werror_flag" ||
27545 test ! -s conftest.err
27546 } && test -s conftest.$ac_objext; then
27547 ac_cv_member_struct_termios_c_line=yes
27549 $as_echo "$as_me: failed program was:" >&5
27550 sed 's/^/| /' conftest.$ac_ext >&5
27552 ac_cv_member_struct_termios_c_line=no
27555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27560 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
27561 $as_echo "$ac_cv_member_struct_termios_c_line" >&6; }
27562 if test "x$ac_cv_member_struct_termios_c_line" = x""yes; then
27563 cat >>confdefs.h <<\_ACEOF
27564 #define TERMIOS_LDISC 1
27571 { $as_echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
27572 $as_echo_n "checking for struct termio.c_line... " >&6; }
27573 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
27574 $as_echo_n "(cached) " >&6
27576 cat >conftest.$ac_ext <<_ACEOF
27579 cat confdefs.h >>conftest.$ac_ext
27580 cat >>conftest.$ac_ext <<_ACEOF
27581 /* end confdefs.h. */
27583 #include <sys/types.h>
27584 #include <termio.h>
27590 static struct termio ac_aggr;
27591 if (ac_aggr.c_line)
27597 rm -f conftest.$ac_objext
27598 if { (ac_try="$ac_compile"
27599 case "(($ac_try" in
27600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27601 *) ac_try_echo=$ac_try;;
27603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27604 $as_echo "$ac_try_echo") >&5
27605 (eval "$ac_compile") 2>conftest.er1
27607 grep -v '^ *+' conftest.er1 >conftest.err
27609 cat conftest.err >&5
27610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27611 (exit $ac_status); } && {
27612 test -z "$ac_c_werror_flag" ||
27613 test ! -s conftest.err
27614 } && test -s conftest.$ac_objext; then
27615 ac_cv_member_struct_termio_c_line=yes
27617 $as_echo "$as_me: failed program was:" >&5
27618 sed 's/^/| /' conftest.$ac_ext >&5
27620 cat >conftest.$ac_ext <<_ACEOF
27623 cat confdefs.h >>conftest.$ac_ext
27624 cat >>conftest.$ac_ext <<_ACEOF
27625 /* end confdefs.h. */
27627 #include <sys/types.h>
27628 #include <termio.h>
27634 static struct termio ac_aggr;
27635 if (sizeof ac_aggr.c_line)
27641 rm -f conftest.$ac_objext
27642 if { (ac_try="$ac_compile"
27643 case "(($ac_try" in
27644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27645 *) ac_try_echo=$ac_try;;
27647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27648 $as_echo "$ac_try_echo") >&5
27649 (eval "$ac_compile") 2>conftest.er1
27651 grep -v '^ *+' conftest.er1 >conftest.err
27653 cat conftest.err >&5
27654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655 (exit $ac_status); } && {
27656 test -z "$ac_c_werror_flag" ||
27657 test ! -s conftest.err
27658 } && test -s conftest.$ac_objext; then
27659 ac_cv_member_struct_termio_c_line=yes
27661 $as_echo "$as_me: failed program was:" >&5
27662 sed 's/^/| /' conftest.$ac_ext >&5
27664 ac_cv_member_struct_termio_c_line=no
27667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27672 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
27673 $as_echo "$ac_cv_member_struct_termio_c_line" >&6; }
27674 if test "x$ac_cv_member_struct_termio_c_line" = x""yes; then
27675 cat >>confdefs.h <<\_ACEOF
27676 #define TERMIO_LDISC 1
27683 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
27684 $as_echo_n "checking for struct dirent.d_ino... " >&6; }
27685 if test "${bash_cv_dirent_has_dino+set}" = set; then
27686 $as_echo_n "(cached) " >&6
27688 cat >conftest.$ac_ext <<_ACEOF
27691 cat confdefs.h >>conftest.$ac_ext
27692 cat >>conftest.$ac_ext <<_ACEOF
27693 /* end confdefs.h. */
27696 #include <sys/types.h>
27697 #ifdef HAVE_UNISTD_H
27698 # include <unistd.h>
27699 #endif /* HAVE_UNISTD_H */
27700 #if defined(HAVE_DIRENT_H)
27701 # include <dirent.h>
27703 # define dirent direct
27704 # ifdef HAVE_SYS_NDIR_H
27705 # include <sys/ndir.h>
27706 # endif /* SYSNDIR */
27707 # ifdef HAVE_SYS_DIR_H
27708 # include <sys/dir.h>
27709 # endif /* SYSDIR */
27710 # ifdef HAVE_NDIR_H
27713 #endif /* HAVE_DIRENT_H */
27719 struct dirent d; int z; z = d.d_ino;
27725 rm -f conftest.$ac_objext
27726 if { (ac_try="$ac_compile"
27727 case "(($ac_try" in
27728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27729 *) ac_try_echo=$ac_try;;
27731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27732 $as_echo "$ac_try_echo") >&5
27733 (eval "$ac_compile") 2>conftest.er1
27735 grep -v '^ *+' conftest.er1 >conftest.err
27737 cat conftest.err >&5
27738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27739 (exit $ac_status); } && {
27740 test -z "$ac_c_werror_flag" ||
27741 test ! -s conftest.err
27742 } && test -s conftest.$ac_objext; then
27743 bash_cv_dirent_has_dino=yes
27745 $as_echo "$as_me: failed program was:" >&5
27746 sed 's/^/| /' conftest.$ac_ext >&5
27748 bash_cv_dirent_has_dino=no
27751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27754 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
27755 $as_echo "$bash_cv_dirent_has_dino" >&6; }
27756 if test $bash_cv_dirent_has_dino = yes; then
27757 cat >>confdefs.h <<\_ACEOF
27758 #define HAVE_STRUCT_DIRENT_D_INO 1
27764 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
27765 $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
27766 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
27767 $as_echo_n "(cached) " >&6
27769 cat >conftest.$ac_ext <<_ACEOF
27772 cat confdefs.h >>conftest.$ac_ext
27773 cat >>conftest.$ac_ext <<_ACEOF
27774 /* end confdefs.h. */
27777 #include <sys/types.h>
27778 #ifdef HAVE_UNISTD_H
27779 # include <unistd.h>
27780 #endif /* HAVE_UNISTD_H */
27781 #if defined(HAVE_DIRENT_H)
27782 # include <dirent.h>
27784 # define dirent direct
27785 # ifdef HAVE_SYS_NDIR_H
27786 # include <sys/ndir.h>
27787 # endif /* SYSNDIR */
27788 # ifdef HAVE_SYS_DIR_H
27789 # include <sys/dir.h>
27790 # endif /* SYSDIR */
27791 # ifdef HAVE_NDIR_H
27794 #endif /* HAVE_DIRENT_H */
27800 struct dirent d; int z; z = d.d_fileno;
27806 rm -f conftest.$ac_objext
27807 if { (ac_try="$ac_compile"
27808 case "(($ac_try" in
27809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27810 *) ac_try_echo=$ac_try;;
27812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27813 $as_echo "$ac_try_echo") >&5
27814 (eval "$ac_compile") 2>conftest.er1
27816 grep -v '^ *+' conftest.er1 >conftest.err
27818 cat conftest.err >&5
27819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820 (exit $ac_status); } && {
27821 test -z "$ac_c_werror_flag" ||
27822 test ! -s conftest.err
27823 } && test -s conftest.$ac_objext; then
27824 bash_cv_dirent_has_d_fileno=yes
27826 $as_echo "$as_me: failed program was:" >&5
27827 sed 's/^/| /' conftest.$ac_ext >&5
27829 bash_cv_dirent_has_d_fileno=no
27832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27835 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
27836 $as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
27837 if test $bash_cv_dirent_has_d_fileno = yes; then
27838 cat >>confdefs.h <<\_ACEOF
27839 #define HAVE_STRUCT_DIRENT_D_FILENO 1
27845 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
27846 $as_echo_n "checking for struct dirent.d_namlen... " >&6; }
27847 if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
27848 $as_echo_n "(cached) " >&6
27850 cat >conftest.$ac_ext <<_ACEOF
27853 cat confdefs.h >>conftest.$ac_ext
27854 cat >>conftest.$ac_ext <<_ACEOF
27855 /* end confdefs.h. */
27858 #include <sys/types.h>
27859 #ifdef HAVE_UNISTD_H
27860 # include <unistd.h>
27861 #endif /* HAVE_UNISTD_H */
27862 #if defined(HAVE_DIRENT_H)
27863 # include <dirent.h>
27865 # define dirent direct
27866 # ifdef HAVE_SYS_NDIR_H
27867 # include <sys/ndir.h>
27868 # endif /* SYSNDIR */
27869 # ifdef HAVE_SYS_DIR_H
27870 # include <sys/dir.h>
27871 # endif /* SYSDIR */
27872 # ifdef HAVE_NDIR_H
27875 #endif /* HAVE_DIRENT_H */
27881 struct dirent d; int z; z = d.d_namlen;
27887 rm -f conftest.$ac_objext
27888 if { (ac_try="$ac_compile"
27889 case "(($ac_try" in
27890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27891 *) ac_try_echo=$ac_try;;
27893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27894 $as_echo "$ac_try_echo") >&5
27895 (eval "$ac_compile") 2>conftest.er1
27897 grep -v '^ *+' conftest.er1 >conftest.err
27899 cat conftest.err >&5
27900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); } && {
27902 test -z "$ac_c_werror_flag" ||
27903 test ! -s conftest.err
27904 } && test -s conftest.$ac_objext; then
27905 bash_cv_dirent_has_d_namlen=yes
27907 $as_echo "$as_me: failed program was:" >&5
27908 sed 's/^/| /' conftest.$ac_ext >&5
27910 bash_cv_dirent_has_d_namlen=no
27913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27916 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
27917 $as_echo "$bash_cv_dirent_has_d_namlen" >&6; }
27918 if test $bash_cv_dirent_has_d_namlen = yes; then
27919 cat >>confdefs.h <<\_ACEOF
27920 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
27925 { $as_echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
27926 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
27927 if test "${bash_cv_struct_winsize_header+set}" = set; then
27928 $as_echo_n "(cached) " >&6
27930 cat >conftest.$ac_ext <<_ACEOF
27933 cat confdefs.h >>conftest.$ac_ext
27934 cat >>conftest.$ac_ext <<_ACEOF
27935 /* end confdefs.h. */
27936 #include <sys/types.h>
27937 #include <sys/ioctl.h>
27946 rm -f conftest.$ac_objext
27947 if { (ac_try="$ac_compile"
27948 case "(($ac_try" in
27949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27950 *) ac_try_echo=$ac_try;;
27952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27953 $as_echo "$ac_try_echo") >&5
27954 (eval "$ac_compile") 2>conftest.er1
27956 grep -v '^ *+' conftest.er1 >conftest.err
27958 cat conftest.err >&5
27959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960 (exit $ac_status); } && {
27961 test -z "$ac_c_werror_flag" ||
27962 test ! -s conftest.err
27963 } && test -s conftest.$ac_objext; then
27964 bash_cv_struct_winsize_header=ioctl_h
27966 $as_echo "$as_me: failed program was:" >&5
27967 sed 's/^/| /' conftest.$ac_ext >&5
27969 cat >conftest.$ac_ext <<_ACEOF
27972 cat confdefs.h >>conftest.$ac_ext
27973 cat >>conftest.$ac_ext <<_ACEOF
27974 /* end confdefs.h. */
27975 #include <sys/types.h>
27976 #include <termios.h>
27985 rm -f conftest.$ac_objext
27986 if { (ac_try="$ac_compile"
27987 case "(($ac_try" in
27988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27989 *) ac_try_echo=$ac_try;;
27991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27992 $as_echo "$ac_try_echo") >&5
27993 (eval "$ac_compile") 2>conftest.er1
27995 grep -v '^ *+' conftest.er1 >conftest.err
27997 cat conftest.err >&5
27998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); } && {
28000 test -z "$ac_c_werror_flag" ||
28001 test ! -s conftest.err
28002 } && test -s conftest.$ac_objext; then
28003 bash_cv_struct_winsize_header=termios_h
28005 $as_echo "$as_me: failed program was:" >&5
28006 sed 's/^/| /' conftest.$ac_ext >&5
28008 bash_cv_struct_winsize_header=other
28011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28018 if test $bash_cv_struct_winsize_header = ioctl_h; then
28019 { $as_echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
28020 $as_echo "sys/ioctl.h" >&6; }
28021 cat >>confdefs.h <<\_ACEOF
28022 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
28025 elif test $bash_cv_struct_winsize_header = termios_h; then
28026 { $as_echo "$as_me:$LINENO: result: termios.h" >&5
28027 $as_echo "termios.h" >&6; }
28028 cat >>confdefs.h <<\_ACEOF
28029 #define STRUCT_WINSIZE_IN_TERMIOS 1
28033 { $as_echo "$as_me:$LINENO: result: not found" >&5
28034 $as_echo "not found" >&6; }
28037 { $as_echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
28038 $as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; }
28039 if test "${bash_cv_struct_timeval+set}" = set; then
28040 $as_echo_n "(cached) " >&6
28043 cat >conftest.$ac_ext <<_ACEOF
28046 cat confdefs.h >>conftest.$ac_ext
28047 cat >>conftest.$ac_ext <<_ACEOF
28048 /* end confdefs.h. */
28049 #include <sys/time.h>
28052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28053 $EGREP "struct timeval" >/dev/null 2>&1; then
28054 bash_cv_struct_timeval=yes
28056 cat >conftest.$ac_ext <<_ACEOF
28059 cat confdefs.h >>conftest.$ac_ext
28060 cat >>conftest.$ac_ext <<_ACEOF
28061 /* end confdefs.h. */
28065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28066 $EGREP "struct timeval" >/dev/null 2>&1; then
28067 bash_cv_struct_timeval=yes
28069 bash_cv_struct_timeval=no
28079 { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
28080 $as_echo "$bash_cv_struct_timeval" >&6; }
28081 if test $bash_cv_struct_timeval = yes; then
28082 cat >>confdefs.h <<\_ACEOF
28083 #define HAVE_TIMEVAL 1
28088 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
28089 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
28090 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
28091 $as_echo_n "(cached) " >&6
28093 cat >conftest.$ac_ext <<_ACEOF
28096 cat confdefs.h >>conftest.$ac_ext
28097 cat >>conftest.$ac_ext <<_ACEOF
28098 /* end confdefs.h. */
28099 $ac_includes_default
28103 static struct stat ac_aggr;
28104 if (ac_aggr.st_blocks)
28110 rm -f conftest.$ac_objext
28111 if { (ac_try="$ac_compile"
28112 case "(($ac_try" in
28113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28114 *) ac_try_echo=$ac_try;;
28116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28117 $as_echo "$ac_try_echo") >&5
28118 (eval "$ac_compile") 2>conftest.er1
28120 grep -v '^ *+' conftest.er1 >conftest.err
28122 cat conftest.err >&5
28123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); } && {
28125 test -z "$ac_c_werror_flag" ||
28126 test ! -s conftest.err
28127 } && test -s conftest.$ac_objext; then
28128 ac_cv_member_struct_stat_st_blocks=yes
28130 $as_echo "$as_me: failed program was:" >&5
28131 sed 's/^/| /' conftest.$ac_ext >&5
28133 cat >conftest.$ac_ext <<_ACEOF
28136 cat confdefs.h >>conftest.$ac_ext
28137 cat >>conftest.$ac_ext <<_ACEOF
28138 /* end confdefs.h. */
28139 $ac_includes_default
28143 static struct stat ac_aggr;
28144 if (sizeof ac_aggr.st_blocks)
28150 rm -f conftest.$ac_objext
28151 if { (ac_try="$ac_compile"
28152 case "(($ac_try" in
28153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28154 *) ac_try_echo=$ac_try;;
28156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28157 $as_echo "$ac_try_echo") >&5
28158 (eval "$ac_compile") 2>conftest.er1
28160 grep -v '^ *+' conftest.er1 >conftest.err
28162 cat conftest.err >&5
28163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164 (exit $ac_status); } && {
28165 test -z "$ac_c_werror_flag" ||
28166 test ! -s conftest.err
28167 } && test -s conftest.$ac_objext; then
28168 ac_cv_member_struct_stat_st_blocks=yes
28170 $as_echo "$as_me: failed program was:" >&5
28171 sed 's/^/| /' conftest.$ac_ext >&5
28173 ac_cv_member_struct_stat_st_blocks=no
28176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28181 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
28182 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
28183 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
28185 cat >>confdefs.h <<_ACEOF
28186 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
28192 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28193 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
28194 if test "${ac_cv_struct_tm+set}" = set; then
28195 $as_echo_n "(cached) " >&6
28197 cat >conftest.$ac_ext <<_ACEOF
28200 cat confdefs.h >>conftest.$ac_ext
28201 cat >>conftest.$ac_ext <<_ACEOF
28202 /* end confdefs.h. */
28203 #include <sys/types.h>
28210 int *p = &tm.tm_sec;
28216 rm -f conftest.$ac_objext
28217 if { (ac_try="$ac_compile"
28218 case "(($ac_try" in
28219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28220 *) ac_try_echo=$ac_try;;
28222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28223 $as_echo "$ac_try_echo") >&5
28224 (eval "$ac_compile") 2>conftest.er1
28226 grep -v '^ *+' conftest.er1 >conftest.err
28228 cat conftest.err >&5
28229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230 (exit $ac_status); } && {
28231 test -z "$ac_c_werror_flag" ||
28232 test ! -s conftest.err
28233 } && test -s conftest.$ac_objext; then
28234 ac_cv_struct_tm=time.h
28236 $as_echo "$as_me: failed program was:" >&5
28237 sed 's/^/| /' conftest.$ac_ext >&5
28239 ac_cv_struct_tm=sys/time.h
28242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28244 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28245 $as_echo "$ac_cv_struct_tm" >&6; }
28246 if test $ac_cv_struct_tm = sys/time.h; then
28248 cat >>confdefs.h <<\_ACEOF
28249 #define TM_IN_SYS_TIME 1
28254 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
28255 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
28256 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
28257 $as_echo_n "(cached) " >&6
28259 cat >conftest.$ac_ext <<_ACEOF
28262 cat confdefs.h >>conftest.$ac_ext
28263 cat >>conftest.$ac_ext <<_ACEOF
28264 /* end confdefs.h. */
28265 #include <sys/types.h>
28266 #include <$ac_cv_struct_tm>
28272 static struct tm ac_aggr;
28273 if (ac_aggr.tm_zone)
28279 rm -f conftest.$ac_objext
28280 if { (ac_try="$ac_compile"
28281 case "(($ac_try" in
28282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28283 *) ac_try_echo=$ac_try;;
28285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28286 $as_echo "$ac_try_echo") >&5
28287 (eval "$ac_compile") 2>conftest.er1
28289 grep -v '^ *+' conftest.er1 >conftest.err
28291 cat conftest.err >&5
28292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293 (exit $ac_status); } && {
28294 test -z "$ac_c_werror_flag" ||
28295 test ! -s conftest.err
28296 } && test -s conftest.$ac_objext; then
28297 ac_cv_member_struct_tm_tm_zone=yes
28299 $as_echo "$as_me: failed program was:" >&5
28300 sed 's/^/| /' conftest.$ac_ext >&5
28302 cat >conftest.$ac_ext <<_ACEOF
28305 cat confdefs.h >>conftest.$ac_ext
28306 cat >>conftest.$ac_ext <<_ACEOF
28307 /* end confdefs.h. */
28308 #include <sys/types.h>
28309 #include <$ac_cv_struct_tm>
28315 static struct tm ac_aggr;
28316 if (sizeof ac_aggr.tm_zone)
28322 rm -f conftest.$ac_objext
28323 if { (ac_try="$ac_compile"
28324 case "(($ac_try" in
28325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28326 *) ac_try_echo=$ac_try;;
28328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28329 $as_echo "$ac_try_echo") >&5
28330 (eval "$ac_compile") 2>conftest.er1
28332 grep -v '^ *+' conftest.er1 >conftest.err
28334 cat conftest.err >&5
28335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); } && {
28337 test -z "$ac_c_werror_flag" ||
28338 test ! -s conftest.err
28339 } && test -s conftest.$ac_objext; then
28340 ac_cv_member_struct_tm_tm_zone=yes
28342 $as_echo "$as_me: failed program was:" >&5
28343 sed 's/^/| /' conftest.$ac_ext >&5
28345 ac_cv_member_struct_tm_tm_zone=no
28348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28353 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
28354 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
28355 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
28357 cat >>confdefs.h <<_ACEOF
28358 #define HAVE_STRUCT_TM_TM_ZONE 1
28364 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
28366 cat >>confdefs.h <<\_ACEOF
28367 #define HAVE_TM_ZONE 1
28371 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
28372 $as_echo_n "checking whether tzname is declared... " >&6; }
28373 if test "${ac_cv_have_decl_tzname+set}" = set; then
28374 $as_echo_n "(cached) " >&6
28376 cat >conftest.$ac_ext <<_ACEOF
28379 cat confdefs.h >>conftest.$ac_ext
28380 cat >>conftest.$ac_ext <<_ACEOF
28381 /* end confdefs.h. */
28395 rm -f conftest.$ac_objext
28396 if { (ac_try="$ac_compile"
28397 case "(($ac_try" in
28398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28399 *) ac_try_echo=$ac_try;;
28401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28402 $as_echo "$ac_try_echo") >&5
28403 (eval "$ac_compile") 2>conftest.er1
28405 grep -v '^ *+' conftest.er1 >conftest.err
28407 cat conftest.err >&5
28408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409 (exit $ac_status); } && {
28410 test -z "$ac_c_werror_flag" ||
28411 test ! -s conftest.err
28412 } && test -s conftest.$ac_objext; then
28413 ac_cv_have_decl_tzname=yes
28415 $as_echo "$as_me: failed program was:" >&5
28416 sed 's/^/| /' conftest.$ac_ext >&5
28418 ac_cv_have_decl_tzname=no
28421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28423 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
28424 $as_echo "$ac_cv_have_decl_tzname" >&6; }
28425 if test "x$ac_cv_have_decl_tzname" = x""yes; then
28427 cat >>confdefs.h <<_ACEOF
28428 #define HAVE_DECL_TZNAME 1
28433 cat >>confdefs.h <<_ACEOF
28434 #define HAVE_DECL_TZNAME 0
28441 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
28442 $as_echo_n "checking for tzname... " >&6; }
28443 if test "${ac_cv_var_tzname+set}" = set; then
28444 $as_echo_n "(cached) " >&6
28446 cat >conftest.$ac_ext <<_ACEOF
28449 cat confdefs.h >>conftest.$ac_ext
28450 cat >>conftest.$ac_ext <<_ACEOF
28451 /* end confdefs.h. */
28453 #if !HAVE_DECL_TZNAME
28454 extern char *tzname[];
28460 return tzname[0][0];
28465 rm -f conftest.$ac_objext conftest$ac_exeext
28466 if { (ac_try="$ac_link"
28467 case "(($ac_try" in
28468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28469 *) ac_try_echo=$ac_try;;
28471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28472 $as_echo "$ac_try_echo") >&5
28473 (eval "$ac_link") 2>conftest.er1
28475 grep -v '^ *+' conftest.er1 >conftest.err
28477 cat conftest.err >&5
28478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479 (exit $ac_status); } && {
28480 test -z "$ac_c_werror_flag" ||
28481 test ! -s conftest.err
28482 } && test -s conftest$ac_exeext && {
28483 test "$cross_compiling" = yes ||
28484 $as_test_x conftest$ac_exeext
28486 ac_cv_var_tzname=yes
28488 $as_echo "$as_me: failed program was:" >&5
28489 sed 's/^/| /' conftest.$ac_ext >&5
28491 ac_cv_var_tzname=no
28494 rm -rf conftest.dSYM
28495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28496 conftest$ac_exeext conftest.$ac_ext
28498 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
28499 $as_echo "$ac_cv_var_tzname" >&6; }
28500 if test $ac_cv_var_tzname = yes; then
28502 cat >>confdefs.h <<\_ACEOF
28503 #define HAVE_TZNAME 1
28509 { $as_echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
28510 $as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; }
28511 if test "${bash_cv_struct_timezone+set}" = set; then
28512 $as_echo_n "(cached) " >&6
28515 cat >conftest.$ac_ext <<_ACEOF
28518 cat confdefs.h >>conftest.$ac_ext
28519 cat >>conftest.$ac_ext <<_ACEOF
28520 /* end confdefs.h. */
28521 #include <sys/time.h>
28524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28525 $EGREP "struct timezone" >/dev/null 2>&1; then
28526 bash_cv_struct_timezone=yes
28528 cat >conftest.$ac_ext <<_ACEOF
28531 cat confdefs.h >>conftest.$ac_ext
28532 cat >>conftest.$ac_ext <<_ACEOF
28533 /* end confdefs.h. */
28537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28538 $EGREP "struct timezone" >/dev/null 2>&1; then
28539 bash_cv_struct_timezone=yes
28541 bash_cv_struct_timezone=no
28551 { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
28552 $as_echo "$bash_cv_struct_timezone" >&6; }
28553 if test $bash_cv_struct_timezone = yes; then
28554 cat >>confdefs.h <<\_ACEOF
28555 #define HAVE_STRUCT_TIMEZONE 1
28561 { $as_echo "$as_me:$LINENO: checking for offset of exit status in return status from wait" >&5
28562 $as_echo_n "checking for offset of exit status in return status from wait... " >&6; }
28563 if test "${bash_cv_wexitstatus_offset+set}" = set; then
28564 $as_echo_n "(cached) " >&6
28566 if test "$cross_compiling" = yes; then
28567 { $as_echo "$as_me:$LINENO: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&5
28568 $as_echo "$as_me: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&2;}
28569 bash_cv_wexitstatus_offset=0
28572 cat >conftest.$ac_ext <<_ACEOF
28574 #include <stdlib.h>
28575 #include <unistd.h>
28577 #include <sys/wait.h>
28591 /* wait for the process */
28597 for (i = 0; i < (sizeof(s) - 8); i++)
28599 n = (s >> i) & 0xff;
28608 rm -f conftest$ac_exeext
28609 if { (ac_try="$ac_link"
28610 case "(($ac_try" in
28611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612 *) ac_try_echo=$ac_try;;
28614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28615 $as_echo "$ac_try_echo") >&5
28616 (eval "$ac_link") 2>&5
28618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28620 { (case "(($ac_try" in
28621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28622 *) ac_try_echo=$ac_try;;
28624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28625 $as_echo "$ac_try_echo") >&5
28626 (eval "$ac_try") 2>&5
28628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); }; }; then
28630 bash_cv_wexitstatus_offset=0
28632 $as_echo "$as_me: program exited with status $ac_status" >&5
28633 $as_echo "$as_me: failed program was:" >&5
28634 sed 's/^/| /' conftest.$ac_ext >&5
28636 ( exit $ac_status )
28637 bash_cv_wexitstatus_offset=$?
28639 rm -rf conftest.dSYM
28640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28646 if test "$bash_cv_wexitstatus_offset" -gt 32 ; then
28647 { $as_echo "$as_me:$LINENO: WARNING: bad exit status from test program -- defaulting to 0" >&5
28648 $as_echo "$as_me: WARNING: bad exit status from test program -- defaulting to 0" >&2;}
28649 bash_cv_wexitstatus_offset=0
28651 { $as_echo "$as_me:$LINENO: result: $bash_cv_wexitstatus_offset" >&5
28652 $as_echo "$bash_cv_wexitstatus_offset" >&6; }
28654 cat >>confdefs.h <<_ACEOF
28655 #define WEXITSTATUS_OFFSET $bash_cv_wexitstatus_offset
28660 { $as_echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
28661 $as_echo_n "checking for the existence of strsignal... " >&6; }
28662 if test "${bash_cv_have_strsignal+set}" = set; then
28663 $as_echo_n "(cached) " >&6
28665 cat >conftest.$ac_ext <<_ACEOF
28668 cat confdefs.h >>conftest.$ac_ext
28669 cat >>conftest.$ac_ext <<_ACEOF
28670 /* end confdefs.h. */
28671 #include <sys/types.h>
28672 #include <signal.h>
28676 char *s = (char *)strsignal(2);
28681 rm -f conftest.$ac_objext conftest$ac_exeext
28682 if { (ac_try="$ac_link"
28683 case "(($ac_try" in
28684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28685 *) ac_try_echo=$ac_try;;
28687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28688 $as_echo "$ac_try_echo") >&5
28689 (eval "$ac_link") 2>conftest.er1
28691 grep -v '^ *+' conftest.er1 >conftest.err
28693 cat conftest.err >&5
28694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695 (exit $ac_status); } && {
28696 test -z "$ac_c_werror_flag" ||
28697 test ! -s conftest.err
28698 } && test -s conftest$ac_exeext && {
28699 test "$cross_compiling" = yes ||
28700 $as_test_x conftest$ac_exeext
28702 bash_cv_have_strsignal=yes
28704 $as_echo "$as_me: failed program was:" >&5
28705 sed 's/^/| /' conftest.$ac_ext >&5
28707 bash_cv_have_strsignal=no
28710 rm -rf conftest.dSYM
28711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28712 conftest$ac_exeext conftest.$ac_ext
28715 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
28716 $as_echo "$bash_cv_have_strsignal" >&6; }
28717 if test $bash_cv_have_strsignal = yes; then
28718 cat >>confdefs.h <<\_ACEOF
28719 #define HAVE_STRSIGNAL 1
28724 { $as_echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
28725 $as_echo_n "checking if opendir() opens non-directories... " >&6; }
28726 if test "${bash_cv_opendir_not_robust+set}" = set; then
28727 $as_echo_n "(cached) " >&6
28729 if test "$cross_compiling" = yes; then
28730 { $as_echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
28731 $as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
28732 bash_cv_opendir_not_robust=no
28735 cat >conftest.$ac_ext <<_ACEOF
28738 cat confdefs.h >>conftest.$ac_ext
28739 cat >>conftest.$ac_ext <<_ACEOF
28740 /* end confdefs.h. */
28743 #include <sys/types.h>
28745 #ifdef HAVE_UNISTD_H
28746 # include <unistd.h>
28747 #endif /* HAVE_UNISTD_H */
28748 #if defined(HAVE_DIRENT_H)
28749 # include <dirent.h>
28751 # define dirent direct
28752 # ifdef HAVE_SYS_NDIR_H
28753 # include <sys/ndir.h>
28754 # endif /* SYSNDIR */
28755 # ifdef HAVE_SYS_DIR_H
28756 # include <sys/dir.h>
28757 # endif /* SYSDIR */
28758 # ifdef HAVE_NDIR_H
28761 #endif /* HAVE_DIRENT_H */
28766 err = mkdir("bash-aclocal", 0700);
28771 unlink("bash-aclocal/not_a_directory");
28772 fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
28773 write(fd, "\n", 1);
28775 dir = opendir("bash-aclocal/not_a_directory");
28776 unlink("bash-aclocal/not_a_directory");
28777 rmdir("bash-aclocal");
28781 rm -f conftest$ac_exeext
28782 if { (ac_try="$ac_link"
28783 case "(($ac_try" in
28784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28785 *) ac_try_echo=$ac_try;;
28787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28788 $as_echo "$ac_try_echo") >&5
28789 (eval "$ac_link") 2>&5
28791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28793 { (case "(($ac_try" in
28794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28795 *) ac_try_echo=$ac_try;;
28797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28798 $as_echo "$ac_try_echo") >&5
28799 (eval "$ac_try") 2>&5
28801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802 (exit $ac_status); }; }; then
28803 bash_cv_opendir_not_robust=yes
28805 $as_echo "$as_me: program exited with status $ac_status" >&5
28806 $as_echo "$as_me: failed program was:" >&5
28807 sed 's/^/| /' conftest.$ac_ext >&5
28809 ( exit $ac_status )
28810 bash_cv_opendir_not_robust=no
28812 rm -rf conftest.dSYM
28813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28819 { $as_echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
28820 $as_echo "$bash_cv_opendir_not_robust" >&6; }
28821 if test $bash_cv_opendir_not_robust = yes; then
28822 cat >>confdefs.h <<\_ACEOF
28823 #define OPENDIR_NOT_ROBUST 1
28828 { $as_echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
28829 $as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; }
28830 if test "${bash_cv_ulimit_maxfds+set}" = set; then
28831 $as_echo_n "(cached) " >&6
28833 if test "$cross_compiling" = yes; then
28834 { $as_echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
28835 $as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
28836 bash_cv_ulimit_maxfds=no
28839 cat >conftest.$ac_ext <<_ACEOF
28842 cat confdefs.h >>conftest.$ac_ext
28843 cat >>conftest.$ac_ext <<_ACEOF
28844 /* end confdefs.h. */
28848 long maxfds = ulimit(4, 0L);
28849 exit (maxfds == -1L);
28853 rm -f conftest$ac_exeext
28854 if { (ac_try="$ac_link"
28855 case "(($ac_try" in
28856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857 *) ac_try_echo=$ac_try;;
28859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28860 $as_echo "$ac_try_echo") >&5
28861 (eval "$ac_link") 2>&5
28863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28865 { (case "(($ac_try" in
28866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28867 *) ac_try_echo=$ac_try;;
28869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28870 $as_echo "$ac_try_echo") >&5
28871 (eval "$ac_try") 2>&5
28873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874 (exit $ac_status); }; }; then
28875 bash_cv_ulimit_maxfds=yes
28877 $as_echo "$as_me: program exited with status $ac_status" >&5
28878 $as_echo "$as_me: failed program was:" >&5
28879 sed 's/^/| /' conftest.$ac_ext >&5
28881 ( exit $ac_status )
28882 bash_cv_ulimit_maxfds=no
28884 rm -rf conftest.dSYM
28885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28891 { $as_echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
28892 $as_echo "$bash_cv_ulimit_maxfds" >&6; }
28893 if test $bash_cv_ulimit_maxfds = yes; then
28894 cat >>confdefs.h <<\_ACEOF
28895 #define ULIMIT_MAXFDS 1
28917 { $as_echo "$as_me:$LINENO: checking whether fpurge is declared" >&5
28918 $as_echo_n "checking whether fpurge is declared... " >&6; }
28919 if test "${ac_cv_have_decl_fpurge+set}" = set; then
28920 $as_echo_n "(cached) " >&6
28922 cat >conftest.$ac_ext <<_ACEOF
28925 cat confdefs.h >>conftest.$ac_ext
28926 cat >>conftest.$ac_ext <<_ACEOF
28927 /* end confdefs.h. */
28941 rm -f conftest.$ac_objext
28942 if { (ac_try="$ac_compile"
28943 case "(($ac_try" in
28944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28945 *) ac_try_echo=$ac_try;;
28947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28948 $as_echo "$ac_try_echo") >&5
28949 (eval "$ac_compile") 2>conftest.er1
28951 grep -v '^ *+' conftest.er1 >conftest.err
28953 cat conftest.err >&5
28954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28955 (exit $ac_status); } && {
28956 test -z "$ac_c_werror_flag" ||
28957 test ! -s conftest.err
28958 } && test -s conftest.$ac_objext; then
28959 ac_cv_have_decl_fpurge=yes
28961 $as_echo "$as_me: failed program was:" >&5
28962 sed 's/^/| /' conftest.$ac_ext >&5
28964 ac_cv_have_decl_fpurge=no
28967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28969 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fpurge" >&5
28970 $as_echo "$ac_cv_have_decl_fpurge" >&6; }
28971 if test "x$ac_cv_have_decl_fpurge" = x""yes; then
28973 cat >>confdefs.h <<_ACEOF
28974 #define HAVE_DECL_FPURGE 1
28979 cat >>confdefs.h <<_ACEOF
28980 #define HAVE_DECL_FPURGE 0
28988 { $as_echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
28989 $as_echo_n "checking to see if getenv can be redefined... " >&6; }
28990 if test "${bash_cv_getenv_redef+set}" = set; then
28991 $as_echo_n "(cached) " >&6
28993 if test "$cross_compiling" = yes; then
28994 { $as_echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
28995 $as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
28996 bash_cv_getenv_redef=yes
28999 cat >conftest.$ac_ext <<_ACEOF
29002 cat confdefs.h >>conftest.$ac_ext
29003 cat >>conftest.$ac_ext <<_ACEOF
29004 /* end confdefs.h. */
29006 #ifdef HAVE_UNISTD_H
29007 # include <unistd.h>
29016 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
29020 #endif /* !__linux__ && !__bsdi__ && !convex */
29027 /* The next allows this program to run, but does not allow bash to link
29028 when it redefines getenv. I'm not really interested in figuring out
29033 s = getenv("ABCDE");
29034 exit(s == 0); /* force optimizer to leave getenv in */
29038 rm -f conftest$ac_exeext
29039 if { (ac_try="$ac_link"
29040 case "(($ac_try" in
29041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29042 *) ac_try_echo=$ac_try;;
29044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29045 $as_echo "$ac_try_echo") >&5
29046 (eval "$ac_link") 2>&5
29048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29050 { (case "(($ac_try" in
29051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29052 *) ac_try_echo=$ac_try;;
29054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29055 $as_echo "$ac_try_echo") >&5
29056 (eval "$ac_try") 2>&5
29058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29059 (exit $ac_status); }; }; then
29060 bash_cv_getenv_redef=yes
29062 $as_echo "$as_me: program exited with status $ac_status" >&5
29063 $as_echo "$as_me: failed program was:" >&5
29064 sed 's/^/| /' conftest.$ac_ext >&5
29066 ( exit $ac_status )
29067 bash_cv_getenv_redef=no
29069 rm -rf conftest.dSYM
29070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29076 { $as_echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
29077 $as_echo "$bash_cv_getenv_redef" >&6; }
29078 if test $bash_cv_getenv_redef = yes; then
29079 cat >>confdefs.h <<\_ACEOF
29080 #define CAN_REDEFINE_GETENV 1
29085 if test "$ac_cv_func_getcwd" = "yes"; then
29086 { $as_echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory with 0 size" >&5
29087 $as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
29088 if test "${bash_cv_getcwd_malloc+set}" = set; then
29089 $as_echo_n "(cached) " >&6
29091 if test "$cross_compiling" = yes; then
29092 { $as_echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
29093 $as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
29094 bash_cv_getcwd_malloc=no
29097 cat >conftest.$ac_ext <<_ACEOF
29100 cat confdefs.h >>conftest.$ac_ext
29101 cat >>conftest.$ac_ext <<_ACEOF
29102 /* end confdefs.h. */
29105 #ifdef HAVE_UNISTD_H
29106 #include <unistd.h>
29112 xpwd = getcwd(0, 0);
29117 rm -f conftest$ac_exeext
29118 if { (ac_try="$ac_link"
29119 case "(($ac_try" in
29120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29121 *) ac_try_echo=$ac_try;;
29123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29124 $as_echo "$ac_try_echo") >&5
29125 (eval "$ac_link") 2>&5
29127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29129 { (case "(($ac_try" in
29130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29131 *) ac_try_echo=$ac_try;;
29133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29134 $as_echo "$ac_try_echo") >&5
29135 (eval "$ac_try") 2>&5
29137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); }; }; then
29139 bash_cv_getcwd_malloc=yes
29141 $as_echo "$as_me: program exited with status $ac_status" >&5
29142 $as_echo "$as_me: failed program was:" >&5
29143 sed 's/^/| /' conftest.$ac_ext >&5
29145 ( exit $ac_status )
29146 bash_cv_getcwd_malloc=no
29148 rm -rf conftest.dSYM
29149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29155 { $as_echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
29156 $as_echo "$bash_cv_getcwd_malloc" >&6; }
29157 if test $bash_cv_getcwd_malloc = no; then
29158 cat >>confdefs.h <<\_ACEOF
29159 #define GETCWD_BROKEN 1
29162 case " $LIBOBJS " in
29163 *" getcwd.$ac_objext "* ) ;;
29164 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
29172 { $as_echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
29173 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
29174 if test "${bash_cv_func_sigsetjmp+set}" = set; then
29175 $as_echo_n "(cached) " >&6
29177 if test "$cross_compiling" = yes; then
29178 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
29179 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
29180 bash_cv_func_sigsetjmp=missing
29183 cat >conftest.$ac_ext <<_ACEOF
29186 cat confdefs.h >>conftest.$ac_ext
29187 cat >>conftest.$ac_ext <<_ACEOF
29188 /* end confdefs.h. */
29190 #ifdef HAVE_UNISTD_H
29191 #include <unistd.h>
29193 #include <sys/types.h>
29194 #include <signal.h>
29195 #include <setjmp.h>
29199 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
29204 sigset_t set, oset;
29209 sigemptyset(&oset);
29210 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
29211 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
29214 code = sigsetjmp(xx, 1);
29216 exit(0); /* could get sigmask and compare to oset here. */
29219 sigaddset(&set, SIGINT);
29220 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
29222 /* and siglongjmp */
29223 siglongjmp(xx, 10);
29228 rm -f conftest$ac_exeext
29229 if { (ac_try="$ac_link"
29230 case "(($ac_try" in
29231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29232 *) ac_try_echo=$ac_try;;
29234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29235 $as_echo "$ac_try_echo") >&5
29236 (eval "$ac_link") 2>&5
29238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29240 { (case "(($ac_try" in
29241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29242 *) ac_try_echo=$ac_try;;
29244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29245 $as_echo "$ac_try_echo") >&5
29246 (eval "$ac_try") 2>&5
29248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); }; }; then
29250 bash_cv_func_sigsetjmp=present
29252 $as_echo "$as_me: program exited with status $ac_status" >&5
29253 $as_echo "$as_me: failed program was:" >&5
29254 sed 's/^/| /' conftest.$ac_ext >&5
29256 ( exit $ac_status )
29257 bash_cv_func_sigsetjmp=missing
29259 rm -rf conftest.dSYM
29260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29266 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
29267 $as_echo "$bash_cv_func_sigsetjmp" >&6; }
29268 if test $bash_cv_func_sigsetjmp = present; then
29269 cat >>confdefs.h <<\_ACEOF
29270 #define HAVE_POSIX_SIGSETJMP 1
29276 { $as_echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
29277 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
29278 if test "${bash_cv_func_strcoll_broken+set}" = set; then
29279 $as_echo_n "(cached) " >&6
29281 if test "$cross_compiling" = yes; then
29282 { $as_echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
29283 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
29284 bash_cv_func_strcoll_broken=no
29287 cat >conftest.$ac_ext <<_ACEOF
29290 cat confdefs.h >>conftest.$ac_ext
29291 cat >>conftest.$ac_ext <<_ACEOF
29292 /* end confdefs.h. */
29295 #if defined (HAVE_LOCALE_H)
29296 #include <locale.h>
29304 char *deflocale, *defcoll;
29306 #ifdef HAVE_SETLOCALE
29307 deflocale = setlocale(LC_ALL, "");
29308 defcoll = setlocale(LC_COLLATE, "");
29311 #ifdef HAVE_STRCOLL
29312 /* These two values are taken from tests/glob-test. */
29313 r1 = strcoll("abd", "aXd");
29317 r2 = strcmp("abd", "aXd");
29319 /* These two should both be greater than 0. It is permissible for
29320 a system to return different values, as long as the sign is the
29323 /* Exit with 1 (failure) if these two values are both > 0, since
29324 this tests whether strcoll(3) is broken with respect to strcmp(3)
29325 in the default locale. */
29326 exit (r1 > 0 && r2 > 0);
29330 rm -f conftest$ac_exeext
29331 if { (ac_try="$ac_link"
29332 case "(($ac_try" in
29333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29334 *) ac_try_echo=$ac_try;;
29336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29337 $as_echo "$ac_try_echo") >&5
29338 (eval "$ac_link") 2>&5
29340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29342 { (case "(($ac_try" in
29343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29344 *) ac_try_echo=$ac_try;;
29346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29347 $as_echo "$ac_try_echo") >&5
29348 (eval "$ac_try") 2>&5
29350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351 (exit $ac_status); }; }; then
29352 bash_cv_func_strcoll_broken=yes
29354 $as_echo "$as_me: program exited with status $ac_status" >&5
29355 $as_echo "$as_me: failed program was:" >&5
29356 sed 's/^/| /' conftest.$ac_ext >&5
29358 ( exit $ac_status )
29359 bash_cv_func_strcoll_broken=no
29361 rm -rf conftest.dSYM
29362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29368 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
29369 $as_echo "$bash_cv_func_strcoll_broken" >&6; }
29370 if test $bash_cv_func_strcoll_broken = yes; then
29371 cat >>confdefs.h <<\_ACEOF
29372 #define STRCOLL_BROKEN 1
29386 if test X$ac_cv_func_snprintf = Xyes; then
29387 { $as_echo "$as_me:$LINENO: checking for standard-conformant snprintf" >&5
29388 $as_echo_n "checking for standard-conformant snprintf... " >&6; }
29389 if test "${bash_cv_func_snprintf+set}" = set; then
29390 $as_echo_n "(cached) " >&6
29392 if test "$cross_compiling" = yes; then
29393 { $as_echo "$as_me:$LINENO: WARNING: cannot check standard snprintf if cross-compiling" >&5
29394 $as_echo "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;}
29395 bash_cv_func_snprintf=yes
29398 cat >conftest.$ac_ext <<_ACEOF
29401 cat confdefs.h >>conftest.$ac_ext
29402 cat >>conftest.$ac_ext <<_ACEOF
29403 /* end confdefs.h. */
29410 n = snprintf (0, 0, "%s", "0123456");
29415 rm -f conftest$ac_exeext
29416 if { (ac_try="$ac_link"
29417 case "(($ac_try" in
29418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29419 *) ac_try_echo=$ac_try;;
29421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29422 $as_echo "$ac_try_echo") >&5
29423 (eval "$ac_link") 2>&5
29425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29427 { (case "(($ac_try" in
29428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29429 *) ac_try_echo=$ac_try;;
29431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29432 $as_echo "$ac_try_echo") >&5
29433 (eval "$ac_try") 2>&5
29435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436 (exit $ac_status); }; }; then
29437 bash_cv_func_snprintf=yes
29439 $as_echo "$as_me: program exited with status $ac_status" >&5
29440 $as_echo "$as_me: failed program was:" >&5
29441 sed 's/^/| /' conftest.$ac_ext >&5
29443 ( exit $ac_status )
29444 bash_cv_func_snprintf=no
29446 rm -rf conftest.dSYM
29447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29452 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_snprintf" >&5
29453 $as_echo "$bash_cv_func_snprintf" >&6; }
29454 if test $bash_cv_func_snprintf = no; then
29455 ac_cv_func_snprintf=no
29458 if test $ac_cv_func_snprintf = no; then
29460 cat >>confdefs.h <<\_ACEOF
29461 #define HAVE_SNPRINTF 0
29475 if test X$ac_cv_func_vsnprintf = Xyes; then
29476 { $as_echo "$as_me:$LINENO: checking for standard-conformant vsnprintf" >&5
29477 $as_echo_n "checking for standard-conformant vsnprintf... " >&6; }
29478 if test "${bash_cv_func_vsnprintf+set}" = set; then
29479 $as_echo_n "(cached) " >&6
29481 if test "$cross_compiling" = yes; then
29482 { $as_echo "$as_me:$LINENO: WARNING: cannot check standard vsnprintf if cross-compiling" >&5
29483 $as_echo "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;}
29484 bash_cv_func_vsnprintf=yes
29487 cat >conftest.$ac_ext <<_ACEOF
29490 cat confdefs.h >>conftest.$ac_ext
29491 cat >>conftest.$ac_ext <<_ACEOF
29492 /* end confdefs.h. */
29495 #include <stdarg.h>
29497 #include <varargs.h>
29500 #include <stdlib.h>
29504 foo(const char *fmt, ...)
29506 foo(format, va_alist)
29507 const char *format;
29515 va_start(args, fmt);
29519 n = vsnprintf(0, 0, fmt, args);
29527 n = foo("%s", "0123456");
29532 rm -f conftest$ac_exeext
29533 if { (ac_try="$ac_link"
29534 case "(($ac_try" in
29535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29536 *) ac_try_echo=$ac_try;;
29538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29539 $as_echo "$ac_try_echo") >&5
29540 (eval "$ac_link") 2>&5
29542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29544 { (case "(($ac_try" in
29545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29546 *) ac_try_echo=$ac_try;;
29548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29549 $as_echo "$ac_try_echo") >&5
29550 (eval "$ac_try") 2>&5
29552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553 (exit $ac_status); }; }; then
29554 bash_cv_func_vsnprintf=yes
29556 $as_echo "$as_me: program exited with status $ac_status" >&5
29557 $as_echo "$as_me: failed program was:" >&5
29558 sed 's/^/| /' conftest.$ac_ext >&5
29560 ( exit $ac_status )
29561 bash_cv_func_vsnprintf=no
29563 rm -rf conftest.dSYM
29564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29569 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_vsnprintf" >&5
29570 $as_echo "$bash_cv_func_vsnprintf" >&6; }
29571 if test $bash_cv_func_vsnprintf = no; then
29572 ac_cv_func_vsnprintf=no
29575 if test $ac_cv_func_vsnprintf = no; then
29577 cat >>confdefs.h <<\_ACEOF
29578 #define HAVE_VSNPRINTF 0
29585 if test "$ac_cv_func_putenv" = "yes"; then
29589 { $as_echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
29590 $as_echo_n "checking for standard-conformant putenv declaration... " >&6; }
29591 if test "${bash_cv_std_putenv+set}" = set; then
29592 $as_echo_n "(cached) " >&6
29594 cat >conftest.$ac_ext <<_ACEOF
29597 cat confdefs.h >>conftest.$ac_ext
29598 cat >>conftest.$ac_ext <<_ACEOF
29599 /* end confdefs.h. */
29602 #include <stdlib.h>
29603 #include <stddef.h>
29611 extern int putenv (char *);
29613 extern int putenv ();
29619 return (putenv == 0);
29624 rm -f conftest.$ac_objext conftest$ac_exeext
29625 if { (ac_try="$ac_link"
29626 case "(($ac_try" in
29627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29628 *) ac_try_echo=$ac_try;;
29630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29631 $as_echo "$ac_try_echo") >&5
29632 (eval "$ac_link") 2>conftest.er1
29634 grep -v '^ *+' conftest.er1 >conftest.err
29636 cat conftest.err >&5
29637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638 (exit $ac_status); } && {
29639 test -z "$ac_c_werror_flag" ||
29640 test ! -s conftest.err
29641 } && test -s conftest$ac_exeext && {
29642 test "$cross_compiling" = yes ||
29643 $as_test_x conftest$ac_exeext
29645 bash_cv_std_putenv=yes
29647 $as_echo "$as_me: failed program was:" >&5
29648 sed 's/^/| /' conftest.$ac_ext >&5
29650 bash_cv_std_putenv=no
29654 rm -rf conftest.dSYM
29655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29656 conftest$ac_exeext conftest.$ac_ext
29658 { $as_echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
29659 $as_echo "$bash_cv_std_putenv" >&6; }
29660 if test $bash_cv_std_putenv = yes; then
29661 cat >>confdefs.h <<\_ACEOF
29662 #define HAVE_STD_PUTENV 1
29668 cat >>confdefs.h <<\_ACEOF
29669 #define HAVE_STD_PUTENV 1
29673 if test "$ac_cv_func_unsetenv" = "yes"; then
29677 { $as_echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
29678 $as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; }
29679 if test "${bash_cv_std_unsetenv+set}" = set; then
29680 $as_echo_n "(cached) " >&6
29682 cat >conftest.$ac_ext <<_ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h. */
29690 #include <stdlib.h>
29691 #include <stddef.h>
29699 extern int unsetenv (const char *);
29701 extern int unsetenv ();
29707 return (unsetenv == 0);
29712 rm -f conftest.$ac_objext conftest$ac_exeext
29713 if { (ac_try="$ac_link"
29714 case "(($ac_try" in
29715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29716 *) ac_try_echo=$ac_try;;
29718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29719 $as_echo "$ac_try_echo") >&5
29720 (eval "$ac_link") 2>conftest.er1
29722 grep -v '^ *+' conftest.er1 >conftest.err
29724 cat conftest.err >&5
29725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726 (exit $ac_status); } && {
29727 test -z "$ac_c_werror_flag" ||
29728 test ! -s conftest.err
29729 } && test -s conftest$ac_exeext && {
29730 test "$cross_compiling" = yes ||
29731 $as_test_x conftest$ac_exeext
29733 bash_cv_std_unsetenv=yes
29735 $as_echo "$as_me: failed program was:" >&5
29736 sed 's/^/| /' conftest.$ac_ext >&5
29738 bash_cv_std_unsetenv=no
29742 rm -rf conftest.dSYM
29743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29744 conftest$ac_exeext conftest.$ac_ext
29746 { $as_echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
29747 $as_echo "$bash_cv_std_unsetenv" >&6; }
29748 if test $bash_cv_std_unsetenv = yes; then
29749 cat >>confdefs.h <<\_ACEOF
29750 #define HAVE_STD_UNSETENV 1
29756 cat >>confdefs.h <<\_ACEOF
29757 #define HAVE_STD_UNSETENV 1
29762 { $as_echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
29763 $as_echo_n "checking for printf floating point output in hex notation... " >&6; }
29764 if test "${bash_cv_printf_a_format+set}" = set; then
29765 $as_echo_n "(cached) " >&6
29767 if test "$cross_compiling" = yes; then
29768 { $as_echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
29769 $as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
29770 bash_cv_printf_a_format=no
29773 cat >conftest.$ac_ext <<_ACEOF
29776 cat confdefs.h >>conftest.$ac_ext
29777 cat >>conftest.$ac_ext <<_ACEOF
29778 /* end confdefs.h. */
29781 #include <string.h>
29789 sprintf(abuf, "%A", y);
29790 exit(strchr(abuf, 'P') == (char *)0);
29794 rm -f conftest$ac_exeext
29795 if { (ac_try="$ac_link"
29796 case "(($ac_try" in
29797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29798 *) ac_try_echo=$ac_try;;
29800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29801 $as_echo "$ac_try_echo") >&5
29802 (eval "$ac_link") 2>&5
29804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29806 { (case "(($ac_try" in
29807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808 *) ac_try_echo=$ac_try;;
29810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29811 $as_echo "$ac_try_echo") >&5
29812 (eval "$ac_try") 2>&5
29814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815 (exit $ac_status); }; }; then
29816 bash_cv_printf_a_format=yes
29818 $as_echo "$as_me: program exited with status $ac_status" >&5
29819 $as_echo "$as_me: failed program was:" >&5
29820 sed 's/^/| /' conftest.$ac_ext >&5
29822 ( exit $ac_status )
29823 bash_cv_printf_a_format=no
29825 rm -rf conftest.dSYM
29826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29832 { $as_echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
29833 $as_echo "$bash_cv_printf_a_format" >&6; }
29834 if test $bash_cv_printf_a_format = yes; then
29835 cat >>confdefs.h <<\_ACEOF
29836 #define HAVE_PRINTF_A_FORMAT 1
29844 { $as_echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
29845 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
29846 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
29847 $as_echo_n "(cached) " >&6
29849 if test "$cross_compiling" = yes; then
29850 { $as_echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
29851 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
29852 bash_cv_must_reinstall_sighandlers=no
29855 cat >conftest.$ac_ext <<_ACEOF
29858 cat confdefs.h >>conftest.$ac_ext
29859 cat >>conftest.$ac_ext <<_ACEOF
29860 /* end confdefs.h. */
29862 #include <signal.h>
29863 #ifdef HAVE_UNISTD_H
29864 #include <unistd.h>
29867 typedef RETSIGTYPE sigfunc();
29871 #ifdef HAVE_POSIX_SIGNALS
29873 set_signal_handler(sig, handler)
29877 struct sigaction act, oact;
29878 act.sa_handler = handler;
29880 sigemptyset (&act.sa_mask);
29881 sigemptyset (&oact.sa_mask);
29882 sigaction (sig, &act, &oact);
29883 return (oact.sa_handler);
29886 #define set_signal_handler(s, h) signal(s, h)
29899 set_signal_handler(SIGINT, sigint);
29900 kill((int)getpid(), SIGINT);
29901 kill((int)getpid(), SIGINT);
29902 exit(nsigint != 2);
29906 rm -f conftest$ac_exeext
29907 if { (ac_try="$ac_link"
29908 case "(($ac_try" in
29909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29910 *) ac_try_echo=$ac_try;;
29912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29913 $as_echo "$ac_try_echo") >&5
29914 (eval "$ac_link") 2>&5
29916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29918 { (case "(($ac_try" in
29919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29920 *) ac_try_echo=$ac_try;;
29922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29923 $as_echo "$ac_try_echo") >&5
29924 (eval "$ac_try") 2>&5
29926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927 (exit $ac_status); }; }; then
29928 bash_cv_must_reinstall_sighandlers=no
29930 $as_echo "$as_me: program exited with status $ac_status" >&5
29931 $as_echo "$as_me: failed program was:" >&5
29932 sed 's/^/| /' conftest.$ac_ext >&5
29934 ( exit $ac_status )
29935 bash_cv_must_reinstall_sighandlers=yes
29937 rm -rf conftest.dSYM
29938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29944 { $as_echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
29945 $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
29946 if test $bash_cv_must_reinstall_sighandlers = yes; then
29947 cat >>confdefs.h <<\_ACEOF
29948 #define MUST_REINSTALL_SIGHANDLERS 1
29954 { $as_echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
29955 $as_echo_n "checking for presence of necessary job control definitions... " >&6; }
29956 if test "${bash_cv_job_control_missing+set}" = set; then
29957 $as_echo_n "(cached) " >&6
29959 if test "$cross_compiling" = yes; then
29960 { $as_echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
29961 $as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
29962 bash_cv_job_control_missing=missing
29965 cat >conftest.$ac_ext <<_ACEOF
29968 cat confdefs.h >>conftest.$ac_ext
29969 cat >>conftest.$ac_ext <<_ACEOF
29970 /* end confdefs.h. */
29972 #include <sys/types.h>
29973 #ifdef HAVE_SYS_WAIT_H
29974 #include <sys/wait.h>
29976 #ifdef HAVE_UNISTD_H
29977 #include <unistd.h>
29979 #include <signal.h>
29981 /* Add more tests in here as appropriate. */
29985 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
29989 /* signals and tty control. */
29990 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
29994 /* process control */
29995 #if !defined (WNOHANG) || !defined (WUNTRACED)
29999 /* Posix systems have tcgetpgrp and waitpid. */
30000 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
30004 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
30008 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
30009 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
30016 rm -f conftest$ac_exeext
30017 if { (ac_try="$ac_link"
30018 case "(($ac_try" in
30019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30020 *) ac_try_echo=$ac_try;;
30022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30023 $as_echo "$ac_try_echo") >&5
30024 (eval "$ac_link") 2>&5
30026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30028 { (case "(($ac_try" in
30029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30030 *) ac_try_echo=$ac_try;;
30032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30033 $as_echo "$ac_try_echo") >&5
30034 (eval "$ac_try") 2>&5
30036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30037 (exit $ac_status); }; }; then
30038 bash_cv_job_control_missing=present
30040 $as_echo "$as_me: program exited with status $ac_status" >&5
30041 $as_echo "$as_me: failed program was:" >&5
30042 sed 's/^/| /' conftest.$ac_ext >&5
30044 ( exit $ac_status )
30045 bash_cv_job_control_missing=missing
30047 rm -rf conftest.dSYM
30048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30054 { $as_echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
30055 $as_echo "$bash_cv_job_control_missing" >&6; }
30056 if test $bash_cv_job_control_missing = missing; then
30057 cat >>confdefs.h <<\_ACEOF
30058 #define JOB_CONTROL_MISSING 1
30063 { $as_echo "$as_me:$LINENO: checking for presence of named pipes" >&5
30064 $as_echo_n "checking for presence of named pipes... " >&6; }
30065 if test "${bash_cv_sys_named_pipes+set}" = set; then
30066 $as_echo_n "(cached) " >&6
30068 if test "$cross_compiling" = yes; then
30069 { $as_echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
30070 $as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
30071 bash_cv_sys_named_pipes=missing
30074 cat >conftest.$ac_ext <<_ACEOF
30077 cat confdefs.h >>conftest.$ac_ext
30078 cat >>conftest.$ac_ext <<_ACEOF
30079 /* end confdefs.h. */
30081 #include <sys/types.h>
30082 #include <sys/stat.h>
30083 #ifdef HAVE_UNISTD_H
30084 #include <unistd.h>
30087 /* Add more tests in here as appropriate. */
30092 #if defined (HAVE_MKFIFO)
30096 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
30103 err = mkdir("bash-aclocal", 0700);
30108 fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
30110 rmdir ("bash-aclocal");
30114 unlink ("bash-aclocal/sh-np-autoconf");
30115 rmdir ("bash-aclocal");
30119 rm -f conftest$ac_exeext
30120 if { (ac_try="$ac_link"
30121 case "(($ac_try" in
30122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30123 *) ac_try_echo=$ac_try;;
30125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30126 $as_echo "$ac_try_echo") >&5
30127 (eval "$ac_link") 2>&5
30129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30131 { (case "(($ac_try" in
30132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30133 *) ac_try_echo=$ac_try;;
30135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30136 $as_echo "$ac_try_echo") >&5
30137 (eval "$ac_try") 2>&5
30139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30140 (exit $ac_status); }; }; then
30141 bash_cv_sys_named_pipes=present
30143 $as_echo "$as_me: program exited with status $ac_status" >&5
30144 $as_echo "$as_me: failed program was:" >&5
30145 sed 's/^/| /' conftest.$ac_ext >&5
30147 ( exit $ac_status )
30148 bash_cv_sys_named_pipes=missing
30150 rm -rf conftest.dSYM
30151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30157 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
30158 $as_echo "$bash_cv_sys_named_pipes" >&6; }
30159 if test $bash_cv_sys_named_pipes = missing; then
30160 cat >>confdefs.h <<\_ACEOF
30161 #define NAMED_PIPES_MISSING 1
30167 { $as_echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
30168 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
30169 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
30170 $as_echo_n "(cached) " >&6
30172 cat >conftest.$ac_ext <<_ACEOF
30175 cat confdefs.h >>conftest.$ac_ext
30176 cat >>conftest.$ac_ext <<_ACEOF
30177 /* end confdefs.h. */
30178 #include <sys/types.h>
30179 #include <termios.h>
30185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30186 $EGREP "yes" >/dev/null 2>&1; then
30187 ac_cv_sys_tiocgwinsz_in_termios_h=yes
30189 ac_cv_sys_tiocgwinsz_in_termios_h=no
30194 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
30195 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
30197 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
30198 { $as_echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
30199 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
30200 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
30201 $as_echo_n "(cached) " >&6
30203 cat >conftest.$ac_ext <<_ACEOF
30206 cat confdefs.h >>conftest.$ac_ext
30207 cat >>conftest.$ac_ext <<_ACEOF
30208 /* end confdefs.h. */
30209 #include <sys/types.h>
30210 #include <sys/ioctl.h>
30216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30217 $EGREP "yes" >/dev/null 2>&1; then
30218 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
30220 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
30225 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
30226 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
30228 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
30230 cat >>confdefs.h <<\_ACEOF
30231 #define GWINSZ_IN_SYS_IOCTL 1
30237 { $as_echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
30238 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
30239 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
30240 $as_echo_n "(cached) " >&6
30242 cat >conftest.$ac_ext <<_ACEOF
30245 cat confdefs.h >>conftest.$ac_ext
30246 cat >>conftest.$ac_ext <<_ACEOF
30247 /* end confdefs.h. */
30248 #include <sys/types.h>
30249 #include <sys/ioctl.h>
30258 rm -f conftest.$ac_objext
30259 if { (ac_try="$ac_compile"
30260 case "(($ac_try" in
30261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30262 *) ac_try_echo=$ac_try;;
30264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30265 $as_echo "$ac_try_echo") >&5
30266 (eval "$ac_compile") 2>conftest.er1
30268 grep -v '^ *+' conftest.er1 >conftest.err
30270 cat conftest.err >&5
30271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272 (exit $ac_status); } && {
30273 test -z "$ac_c_werror_flag" ||
30274 test ! -s conftest.err
30275 } && test -s conftest.$ac_objext; then
30276 bash_cv_tiocstat_in_ioctl=yes
30278 $as_echo "$as_me: failed program was:" >&5
30279 sed 's/^/| /' conftest.$ac_ext >&5
30281 bash_cv_tiocstat_in_ioctl=no
30284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30287 { $as_echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
30288 $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
30289 if test $bash_cv_tiocstat_in_ioctl = yes; then
30290 cat >>confdefs.h <<\_ACEOF
30291 #define TIOCSTAT_IN_SYS_IOCTL 1
30296 { $as_echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
30297 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
30298 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
30299 $as_echo_n "(cached) " >&6
30301 cat >conftest.$ac_ext <<_ACEOF
30304 cat confdefs.h >>conftest.$ac_ext
30305 cat >>conftest.$ac_ext <<_ACEOF
30306 /* end confdefs.h. */
30307 #include <sys/types.h>
30308 #include <sys/ioctl.h>
30317 rm -f conftest.$ac_objext
30318 if { (ac_try="$ac_compile"
30319 case "(($ac_try" in
30320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30321 *) ac_try_echo=$ac_try;;
30323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30324 $as_echo "$ac_try_echo") >&5
30325 (eval "$ac_compile") 2>conftest.er1
30327 grep -v '^ *+' conftest.er1 >conftest.err
30329 cat conftest.err >&5
30330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30331 (exit $ac_status); } && {
30332 test -z "$ac_c_werror_flag" ||
30333 test ! -s conftest.err
30334 } && test -s conftest.$ac_objext; then
30335 bash_cv_fionread_in_ioctl=yes
30337 $as_echo "$as_me: failed program was:" >&5
30338 sed 's/^/| /' conftest.$ac_ext >&5
30340 bash_cv_fionread_in_ioctl=no
30343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30346 { $as_echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
30347 $as_echo "$bash_cv_fionread_in_ioctl" >&6; }
30348 if test $bash_cv_fionread_in_ioctl = yes; then
30349 cat >>confdefs.h <<\_ACEOF
30350 #define FIONREAD_IN_SYS_IOCTL 1
30357 { $as_echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
30358 $as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
30359 if test "${bash_cv_wcontinued_broken+set}" = set; then
30360 $as_echo_n "(cached) " >&6
30362 if test "$cross_compiling" = yes; then
30363 { $as_echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
30364 $as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
30365 bash_cv_wcontinued_broken=no
30368 cat >conftest.$ac_ext <<_ACEOF
30371 cat confdefs.h >>conftest.$ac_ext
30372 cat >>conftest.$ac_ext <<_ACEOF
30373 /* end confdefs.h. */
30375 #include <sys/types.h>
30376 #include <sys/wait.h>
30377 #include <unistd.h>
30387 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
30388 if (x == -1 && errno == EINVAL)
30395 rm -f conftest$ac_exeext
30396 if { (ac_try="$ac_link"
30397 case "(($ac_try" in
30398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30399 *) ac_try_echo=$ac_try;;
30401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30402 $as_echo "$ac_try_echo") >&5
30403 (eval "$ac_link") 2>&5
30405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30407 { (case "(($ac_try" in
30408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30409 *) ac_try_echo=$ac_try;;
30411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30412 $as_echo "$ac_try_echo") >&5
30413 (eval "$ac_try") 2>&5
30415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30416 (exit $ac_status); }; }; then
30417 bash_cv_wcontinued_broken=no
30419 $as_echo "$as_me: program exited with status $ac_status" >&5
30420 $as_echo "$as_me: failed program was:" >&5
30421 sed 's/^/| /' conftest.$ac_ext >&5
30423 ( exit $ac_status )
30424 bash_cv_wcontinued_broken=yes
30426 rm -rf conftest.dSYM
30427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30433 { $as_echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
30434 $as_echo "$bash_cv_wcontinued_broken" >&6; }
30435 if test $bash_cv_wcontinued_broken = yes; then
30436 cat >>confdefs.h <<\_ACEOF
30437 #define WCONTINUED_BROKEN 1
30443 { $as_echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
30444 $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
30445 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
30446 $as_echo_n "(cached) " >&6
30448 cat >conftest.$ac_ext <<_ACEOF
30451 cat confdefs.h >>conftest.$ac_ext
30452 cat >>conftest.$ac_ext <<_ACEOF
30453 /* end confdefs.h. */
30454 #include <sys/types.h>
30463 rm -f conftest.$ac_objext
30464 if { (ac_try="$ac_compile"
30465 case "(($ac_try" in
30466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30467 *) ac_try_echo=$ac_try;;
30469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30470 $as_echo "$ac_try_echo") >&5
30471 (eval "$ac_compile") 2>conftest.er1
30473 grep -v '^ *+' conftest.er1 >conftest.err
30475 cat conftest.err >&5
30476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477 (exit $ac_status); } && {
30478 test -z "$ac_c_werror_flag" ||
30479 test ! -s conftest.err
30480 } && test -s conftest.$ac_objext; then
30481 bash_cv_speed_t_in_sys_types=yes
30483 $as_echo "$as_me: failed program was:" >&5
30484 sed 's/^/| /' conftest.$ac_ext >&5
30486 bash_cv_speed_t_in_sys_types=no
30489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30492 { $as_echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
30493 $as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
30494 if test $bash_cv_speed_t_in_sys_types = yes; then
30495 cat >>confdefs.h <<\_ACEOF
30496 #define SPEED_T_IN_SYS_TYPES 1
30501 { $as_echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
30502 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
30503 if test "${bash_cv_getpw_declared+set}" = set; then
30504 $as_echo_n "(cached) " >&6
30506 cat >conftest.$ac_ext <<_ACEOF
30509 cat confdefs.h >>conftest.$ac_ext
30510 cat >>conftest.$ac_ext <<_ACEOF
30511 /* end confdefs.h. */
30513 #include <sys/types.h>
30514 #ifdef HAVE_UNISTD_H
30515 # include <unistd.h>
30520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30521 $EGREP "getpwuid" >/dev/null 2>&1; then
30522 bash_cv_getpw_declared=yes
30524 bash_cv_getpw_declared=no
30530 { $as_echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
30531 $as_echo "$bash_cv_getpw_declared" >&6; }
30532 if test $bash_cv_getpw_declared = yes; then
30533 cat >>confdefs.h <<\_ACEOF
30534 #define HAVE_GETPW_DECLS 1
30539 { $as_echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
30540 $as_echo_n "checking for unusable real-time signals due to large values... " >&6; }
30541 if test "${bash_cv_unusable_rtsigs+set}" = set; then
30542 $as_echo_n "(cached) " >&6
30544 if test "$cross_compiling" = yes; then
30545 { $as_echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
30546 $as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
30547 bash_cv_unusable_rtsigs=yes
30550 cat >conftest.$ac_ext <<_ACEOF
30553 cat confdefs.h >>conftest.$ac_ext
30554 cat >>conftest.$ac_ext <<_ACEOF
30555 /* end confdefs.h. */
30557 #include <sys/types.h>
30558 #include <signal.h>
30566 int n_sigs = 2 * NSIG;
30568 int rtmin = SIGRTMIN;
30573 exit(rtmin < n_sigs);
30576 rm -f conftest$ac_exeext
30577 if { (ac_try="$ac_link"
30578 case "(($ac_try" in
30579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30580 *) ac_try_echo=$ac_try;;
30582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30583 $as_echo "$ac_try_echo") >&5
30584 (eval "$ac_link") 2>&5
30586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30588 { (case "(($ac_try" in
30589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30590 *) ac_try_echo=$ac_try;;
30592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30593 $as_echo "$ac_try_echo") >&5
30594 (eval "$ac_try") 2>&5
30596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597 (exit $ac_status); }; }; then
30598 bash_cv_unusable_rtsigs=yes
30600 $as_echo "$as_me: program exited with status $ac_status" >&5
30601 $as_echo "$as_me: failed program was:" >&5
30602 sed 's/^/| /' conftest.$ac_ext >&5
30604 ( exit $ac_status )
30605 bash_cv_unusable_rtsigs=no
30607 rm -rf conftest.dSYM
30608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30614 { $as_echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
30615 $as_echo "$bash_cv_unusable_rtsigs" >&6; }
30616 if test $bash_cv_unusable_rtsigs = yes; then
30617 cat >>confdefs.h <<\_ACEOF
30618 #define UNUSABLE_RT_SIGNALS 1
30627 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
30628 SIGLIST_O=siglist.o
30636 hpux*) { $as_echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
30637 $as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
30638 if test "${bash_cv_kernel_rlimit+set}" = set; then
30639 $as_echo_n "(cached) " >&6
30641 cat >conftest.$ac_ext <<_ACEOF
30644 cat confdefs.h >>conftest.$ac_ext
30645 cat >>conftest.$ac_ext <<_ACEOF
30646 /* end confdefs.h. */
30648 #include <sys/types.h>
30649 #include <sys/resource.h>
30662 rm -f conftest.$ac_objext
30663 if { (ac_try="$ac_compile"
30664 case "(($ac_try" in
30665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30666 *) ac_try_echo=$ac_try;;
30668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30669 $as_echo "$ac_try_echo") >&5
30670 (eval "$ac_compile") 2>conftest.er1
30672 grep -v '^ *+' conftest.er1 >conftest.err
30674 cat conftest.err >&5
30675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30676 (exit $ac_status); } && {
30677 test -z "$ac_c_werror_flag" ||
30678 test ! -s conftest.err
30679 } && test -s conftest.$ac_objext; then
30680 bash_cv_kernel_rlimit=no
30682 $as_echo "$as_me: failed program was:" >&5
30683 sed 's/^/| /' conftest.$ac_ext >&5
30685 cat >conftest.$ac_ext <<_ACEOF
30688 cat confdefs.h >>conftest.$ac_ext
30689 cat >>conftest.$ac_ext <<_ACEOF
30690 /* end confdefs.h. */
30692 #include <sys/types.h>
30694 #include <sys/resource.h>
30708 rm -f conftest.$ac_objext
30709 if { (ac_try="$ac_compile"
30710 case "(($ac_try" in
30711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30712 *) ac_try_echo=$ac_try;;
30714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30715 $as_echo "$ac_try_echo") >&5
30716 (eval "$ac_compile") 2>conftest.er1
30718 grep -v '^ *+' conftest.er1 >conftest.err
30720 cat conftest.err >&5
30721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); } && {
30723 test -z "$ac_c_werror_flag" ||
30724 test ! -s conftest.err
30725 } && test -s conftest.$ac_objext; then
30726 bash_cv_kernel_rlimit=yes
30728 $as_echo "$as_me: failed program was:" >&5
30729 sed 's/^/| /' conftest.$ac_ext >&5
30731 bash_cv_kernel_rlimit=no
30734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30741 { $as_echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
30742 $as_echo "$bash_cv_kernel_rlimit" >&6; }
30743 if test $bash_cv_kernel_rlimit = yes; then
30744 cat >>confdefs.h <<\_ACEOF
30745 #define RLIMIT_NEEDS_KERNEL 1
30752 if test "$opt_readline" = yes; then
30754 aix*) prefer_curses=yes ;;
30757 if test "X$bash_cv_termcap_lib" = "X"; then
30760 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
30761 $as_echo_n "checking which library has the termcap functions... " >&6; }
30764 if test "${bash_cv_termcap_lib+set}" = set; then
30765 $as_echo_n "(cached) " >&6
30767 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
30768 $as_echo_n "checking for tgetent... " >&6; }
30769 if test "${ac_cv_func_tgetent+set}" = set; then
30770 $as_echo_n "(cached) " >&6
30772 cat >conftest.$ac_ext <<_ACEOF
30775 cat confdefs.h >>conftest.$ac_ext
30776 cat >>conftest.$ac_ext <<_ACEOF
30777 /* end confdefs.h. */
30778 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
30779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30780 #define tgetent innocuous_tgetent
30782 /* System header to define __stub macros and hopefully few prototypes,
30783 which can conflict with char tgetent (); below.
30784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30785 <limits.h> exists even on freestanding compilers. */
30788 # include <limits.h>
30790 # include <assert.h>
30795 /* Override any GCC internal prototype to avoid an error.
30796 Use char because int might match the return type of a GCC
30797 builtin and then its argument prototype would still apply. */
30802 /* The GNU C library defines this for functions which it implements
30803 to always fail with ENOSYS. Some functions are actually named
30804 something starting with __ and the normal name is an alias. */
30805 #if defined __stub_tgetent || defined __stub___tgetent
30817 rm -f conftest.$ac_objext conftest$ac_exeext
30818 if { (ac_try="$ac_link"
30819 case "(($ac_try" in
30820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30821 *) ac_try_echo=$ac_try;;
30823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30824 $as_echo "$ac_try_echo") >&5
30825 (eval "$ac_link") 2>conftest.er1
30827 grep -v '^ *+' conftest.er1 >conftest.err
30829 cat conftest.err >&5
30830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831 (exit $ac_status); } && {
30832 test -z "$ac_c_werror_flag" ||
30833 test ! -s conftest.err
30834 } && test -s conftest$ac_exeext && {
30835 test "$cross_compiling" = yes ||
30836 $as_test_x conftest$ac_exeext
30838 ac_cv_func_tgetent=yes
30840 $as_echo "$as_me: failed program was:" >&5
30841 sed 's/^/| /' conftest.$ac_ext >&5
30843 ac_cv_func_tgetent=no
30846 rm -rf conftest.dSYM
30847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30848 conftest$ac_exeext conftest.$ac_ext
30850 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
30851 $as_echo "$ac_cv_func_tgetent" >&6; }
30852 if test "x$ac_cv_func_tgetent" = x""yes; then
30853 bash_cv_termcap_lib=libc
30855 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
30856 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
30857 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
30858 $as_echo_n "(cached) " >&6
30860 ac_check_lib_save_LIBS=$LIBS
30861 LIBS="-ltermcap $LIBS"
30862 cat >conftest.$ac_ext <<_ACEOF
30865 cat confdefs.h >>conftest.$ac_ext
30866 cat >>conftest.$ac_ext <<_ACEOF
30867 /* end confdefs.h. */
30869 /* Override any GCC internal prototype to avoid an error.
30870 Use char because int might match the return type of a GCC
30871 builtin and then its argument prototype would still apply. */
30884 rm -f conftest.$ac_objext conftest$ac_exeext
30885 if { (ac_try="$ac_link"
30886 case "(($ac_try" in
30887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30888 *) ac_try_echo=$ac_try;;
30890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30891 $as_echo "$ac_try_echo") >&5
30892 (eval "$ac_link") 2>conftest.er1
30894 grep -v '^ *+' conftest.er1 >conftest.err
30896 cat conftest.err >&5
30897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30898 (exit $ac_status); } && {
30899 test -z "$ac_c_werror_flag" ||
30900 test ! -s conftest.err
30901 } && test -s conftest$ac_exeext && {
30902 test "$cross_compiling" = yes ||
30903 $as_test_x conftest$ac_exeext
30905 ac_cv_lib_termcap_tgetent=yes
30907 $as_echo "$as_me: failed program was:" >&5
30908 sed 's/^/| /' conftest.$ac_ext >&5
30910 ac_cv_lib_termcap_tgetent=no
30913 rm -rf conftest.dSYM
30914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30915 conftest$ac_exeext conftest.$ac_ext
30916 LIBS=$ac_check_lib_save_LIBS
30918 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
30919 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
30920 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
30921 bash_cv_termcap_lib=libtermcap
30923 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
30924 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
30925 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
30926 $as_echo_n "(cached) " >&6
30928 ac_check_lib_save_LIBS=$LIBS
30929 LIBS="-ltinfo $LIBS"
30930 cat >conftest.$ac_ext <<_ACEOF
30933 cat confdefs.h >>conftest.$ac_ext
30934 cat >>conftest.$ac_ext <<_ACEOF
30935 /* end confdefs.h. */
30937 /* Override any GCC internal prototype to avoid an error.
30938 Use char because int might match the return type of a GCC
30939 builtin and then its argument prototype would still apply. */
30952 rm -f conftest.$ac_objext conftest$ac_exeext
30953 if { (ac_try="$ac_link"
30954 case "(($ac_try" in
30955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30956 *) ac_try_echo=$ac_try;;
30958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30959 $as_echo "$ac_try_echo") >&5
30960 (eval "$ac_link") 2>conftest.er1
30962 grep -v '^ *+' conftest.er1 >conftest.err
30964 cat conftest.err >&5
30965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966 (exit $ac_status); } && {
30967 test -z "$ac_c_werror_flag" ||
30968 test ! -s conftest.err
30969 } && test -s conftest$ac_exeext && {
30970 test "$cross_compiling" = yes ||
30971 $as_test_x conftest$ac_exeext
30973 ac_cv_lib_tinfo_tgetent=yes
30975 $as_echo "$as_me: failed program was:" >&5
30976 sed 's/^/| /' conftest.$ac_ext >&5
30978 ac_cv_lib_tinfo_tgetent=no
30981 rm -rf conftest.dSYM
30982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30983 conftest$ac_exeext conftest.$ac_ext
30984 LIBS=$ac_check_lib_save_LIBS
30986 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
30987 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
30988 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
30989 bash_cv_termcap_lib=libtinfo
30991 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
30992 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
30993 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
30994 $as_echo_n "(cached) " >&6
30996 ac_check_lib_save_LIBS=$LIBS
30997 LIBS="-lcurses $LIBS"
30998 cat >conftest.$ac_ext <<_ACEOF
31001 cat confdefs.h >>conftest.$ac_ext
31002 cat >>conftest.$ac_ext <<_ACEOF
31003 /* end confdefs.h. */
31005 /* Override any GCC internal prototype to avoid an error.
31006 Use char because int might match the return type of a GCC
31007 builtin and then its argument prototype would still apply. */
31020 rm -f conftest.$ac_objext conftest$ac_exeext
31021 if { (ac_try="$ac_link"
31022 case "(($ac_try" in
31023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31024 *) ac_try_echo=$ac_try;;
31026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31027 $as_echo "$ac_try_echo") >&5
31028 (eval "$ac_link") 2>conftest.er1
31030 grep -v '^ *+' conftest.er1 >conftest.err
31032 cat conftest.err >&5
31033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31034 (exit $ac_status); } && {
31035 test -z "$ac_c_werror_flag" ||
31036 test ! -s conftest.err
31037 } && test -s conftest$ac_exeext && {
31038 test "$cross_compiling" = yes ||
31039 $as_test_x conftest$ac_exeext
31041 ac_cv_lib_curses_tgetent=yes
31043 $as_echo "$as_me: failed program was:" >&5
31044 sed 's/^/| /' conftest.$ac_ext >&5
31046 ac_cv_lib_curses_tgetent=no
31049 rm -rf conftest.dSYM
31050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31051 conftest$ac_exeext conftest.$ac_ext
31052 LIBS=$ac_check_lib_save_LIBS
31054 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
31055 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
31056 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
31057 bash_cv_termcap_lib=libcurses
31059 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
31060 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
31061 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
31062 $as_echo_n "(cached) " >&6
31064 ac_check_lib_save_LIBS=$LIBS
31065 LIBS="-lncurses $LIBS"
31066 cat >conftest.$ac_ext <<_ACEOF
31069 cat confdefs.h >>conftest.$ac_ext
31070 cat >>conftest.$ac_ext <<_ACEOF
31071 /* end confdefs.h. */
31073 /* Override any GCC internal prototype to avoid an error.
31074 Use char because int might match the return type of a GCC
31075 builtin and then its argument prototype would still apply. */
31088 rm -f conftest.$ac_objext conftest$ac_exeext
31089 if { (ac_try="$ac_link"
31090 case "(($ac_try" in
31091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31092 *) ac_try_echo=$ac_try;;
31094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31095 $as_echo "$ac_try_echo") >&5
31096 (eval "$ac_link") 2>conftest.er1
31098 grep -v '^ *+' conftest.er1 >conftest.err
31100 cat conftest.err >&5
31101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31102 (exit $ac_status); } && {
31103 test -z "$ac_c_werror_flag" ||
31104 test ! -s conftest.err
31105 } && test -s conftest$ac_exeext && {
31106 test "$cross_compiling" = yes ||
31107 $as_test_x conftest$ac_exeext
31109 ac_cv_lib_ncurses_tgetent=yes
31111 $as_echo "$as_me: failed program was:" >&5
31112 sed 's/^/| /' conftest.$ac_ext >&5
31114 ac_cv_lib_ncurses_tgetent=no
31117 rm -rf conftest.dSYM
31118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31119 conftest$ac_exeext conftest.$ac_ext
31120 LIBS=$ac_check_lib_save_LIBS
31122 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
31123 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
31124 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
31125 bash_cv_termcap_lib=libncurses
31127 bash_cv_termcap_lib=gnutermcap
31140 if test "X$_bash_needmsg" = "Xyes"; then
31141 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
31142 $as_echo_n "checking which library has the termcap functions... " >&6; }
31144 { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
31145 $as_echo "using $bash_cv_termcap_lib" >&6; }
31146 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
31147 LDFLAGS="$LDFLAGS -L./lib/termcap"
31148 TERMCAP_LIB="./lib/termcap/libtermcap.a"
31149 TERMCAP_DEP="./lib/termcap/libtermcap.a"
31150 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
31151 TERMCAP_LIB=-ltermcap
31153 elif test $bash_cv_termcap_lib = libtinfo; then
31154 TERMCAP_LIB=-ltinfo
31156 elif test $bash_cv_termcap_lib = libncurses; then
31157 TERMCAP_LIB=-lncurses
31159 elif test $bash_cv_termcap_lib = libc; then
31163 TERMCAP_LIB=-lcurses
31171 { $as_echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
31172 $as_echo_n "checking whether /dev/fd is available... " >&6; }
31173 if test "${bash_cv_dev_fd+set}" = set; then
31174 $as_echo_n "(cached) " >&6
31177 if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then
31178 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
31179 if (exec test -r /dev/fd/3 3</dev/null) ; then
31180 bash_cv_dev_fd=standard
31182 bash_cv_dev_fd=absent
31185 if test -z "$bash_cv_dev_fd" ; then
31186 if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then
31187 bash_cv_dev_fd=whacky
31189 bash_cv_dev_fd=absent
31195 { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
31196 $as_echo "$bash_cv_dev_fd" >&6; }
31197 if test $bash_cv_dev_fd = "standard"; then
31198 cat >>confdefs.h <<\_ACEOF
31199 #define HAVE_DEV_FD 1
31202 cat >>confdefs.h <<\_ACEOF
31203 #define DEV_FD_PREFIX "/dev/fd/"
31206 elif test $bash_cv_dev_fd = "whacky"; then
31207 cat >>confdefs.h <<\_ACEOF
31208 #define HAVE_DEV_FD 1
31211 cat >>confdefs.h <<\_ACEOF
31212 #define DEV_FD_PREFIX "/proc/self/fd/"
31217 { $as_echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
31218 $as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; }
31219 if test "${bash_cv_dev_stdin+set}" = set; then
31220 $as_echo_n "(cached) " >&6
31222 if test -d /dev/fd && (exec test -r /dev/stdin < /dev/null) ; then
31223 bash_cv_dev_stdin=present
31224 elif test -d /proc/self/fd && (exec test -r /dev/stdin < /dev/null) ; then
31225 bash_cv_dev_stdin=present
31227 bash_cv_dev_stdin=absent
31232 { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
31233 $as_echo "$bash_cv_dev_stdin" >&6; }
31234 if test $bash_cv_dev_stdin = "present"; then
31235 cat >>confdefs.h <<\_ACEOF
31236 #define HAVE_DEV_STDIN 1
31241 { $as_echo "$as_me:$LINENO: checking for default mail directory" >&5
31242 $as_echo_n "checking for default mail directory... " >&6; }
31243 if test "${bash_cv_mail_dir+set}" = set; then
31244 $as_echo_n "(cached) " >&6
31246 if test -d /var/mail; then
31247 bash_cv_mail_dir=/var/mail
31248 elif test -d /var/spool/mail; then
31249 bash_cv_mail_dir=/var/spool/mail
31250 elif test -d /usr/mail; then
31251 bash_cv_mail_dir=/usr/mail
31252 elif test -d /usr/spool/mail; then
31253 bash_cv_mail_dir=/usr/spool/mail
31255 bash_cv_mail_dir=unknown
31260 { $as_echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
31261 $as_echo "$bash_cv_mail_dir" >&6; }
31262 cat >>confdefs.h <<_ACEOF
31263 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
31268 if test "$bash_cv_job_control_missing" = missing; then
31272 if test "$opt_job_control" = yes; then
31273 cat >>confdefs.h <<\_ACEOF
31274 #define JOB_CONTROL 1
31288 case "${host_os}" in
31289 sysv4.2*) cat >>confdefs.h <<\_ACEOF
31293 cat >>confdefs.h <<\_ACEOF
31297 sysv4*) cat >>confdefs.h <<\_ACEOF
31301 sysv5*) cat >>confdefs.h <<\_ACEOF
31305 hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
31306 hpux*) LOCAL_CFLAGS=-DHPUX ;;
31307 dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
31308 isc*) LOCAL_CFLAGS=-Disc386 ;;
31309 rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
31310 darwin*) LOCAL_CFLAGS=-DMACOSX ;;
31311 sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
31312 sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
31313 sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
31314 sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
31315 solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;;
31316 solaris2.8*) LOCAL_CFLAGS=-DSOLARIS ;;
31317 solaris2.9*) LOCAL_CFLAGS=-DSOLARIS ;;
31318 solaris2.10*) LOCAL_CFLAGS=-DSOLARIS ;;
31319 solaris2*) LOCAL_CFLAGS=-DSOLARIS ;;
31320 lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
31321 linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
31322 case "`uname -r`" in
31323 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF
31324 #define PGRP_PIPE 1
31328 *qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;;
31329 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
31330 powerux*) LOCAL_LIBS="-lgen" ;;
31331 cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
31332 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE" ;;
31335 case "${host_os}-${CC}" in
31336 aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
31337 aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
31338 bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
31341 case "${host_os}" in
31343 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
31344 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
31346 freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
31347 dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
31350 case "$host_cpu" in
31351 *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
31354 case "$host_cpu-$host_os" in
31355 ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
31358 case "$host_cpu-$host_vendor-$host_os" in
31359 m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
31360 mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
31364 # Shared object configuration section. These values are generated by
31365 # ${srcdir}/support/shobj-conf
31367 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
31369 { $as_echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
31370 $as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
31371 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
31379 { $as_echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
31380 $as_echo "$SHOBJ_STATUS" >&6; }
31383 # try to create a directory tree if the source is elsewhere
31384 # this should be packaged into a script accessible via ${srcdir}/support
31387 *) for d in doc tests support lib examples; do # dirs
31388 test -d $d || mkdir $d
31390 for ld in readline glob tilde malloc sh termcap; do # libdirs
31391 test -d lib/$ld || mkdir lib/$ld
31393 test -d examples/loadables || mkdir examples/loadables # loadable builtins
31394 test -d examples/loadables/perl || mkdir examples/loadables/perl
31399 case "$BUILD_DIR" in
31400 *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
31404 if test -z "$localedir"; then
31405 localedir='${datarootdir}/locale'
31407 if test -z "$datarootdir"; then
31408 datarootdir='${prefix}/share'
31416 # Some versions of autoconf don't substitute these automatically
31438 #AC_SUBST(ALLOCA_SOURCE)
31439 #AC_SUBST(ALLOCA_OBJECT)
31441 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"
31443 ac_config_commands="$ac_config_commands default"
31445 cat >confcache <<\_ACEOF
31446 # This file is a shell script that caches the results of configure
31447 # tests run on this system so they can be shared between configure
31448 # scripts and configure runs, see configure's option --config-cache.
31449 # It is not useful on other systems. If it contains results you don't
31450 # want to keep, you may remove or edit it.
31452 # config.status only pays attention to the cache file if you give it
31453 # the --recheck option to rerun configure.
31455 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31456 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31457 # following values.
31461 # The following way of writing the cache mishandles newlines in values,
31462 # but we know of no workaround that is simple, portable, and efficient.
31463 # So, we kill variables containing newlines.
31464 # Ultrix sh set writes to stderr and can't be redirected directly,
31465 # and sets the high bit in the cache file unless we assign to the vars.
31467 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31468 eval ac_val=\$$ac_var
31472 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
31473 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31476 _ | IFS | as_nl) ;; #(
31477 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31478 *) $as_unset $ac_var ;;
31484 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31485 *${as_nl}ac_space=\ *)
31486 # `set' does not quote correctly, so add quotes (double-quote
31487 # substitution turns \\\\ into \\, and sed turns \\ into \).
31490 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31493 # `set' quotes correctly as required by POSIX, so do not add quotes.
31494 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31503 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31505 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31507 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31508 if test -w "$cache_file"; then
31509 test "x$cache_file" != "x/dev/null" &&
31510 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
31511 $as_echo "$as_me: updating cache $cache_file" >&6;}
31512 cat confcache >$cache_file
31514 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
31515 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31520 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31521 # Let make expand exec_prefix.
31522 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31524 DEFS=-DHAVE_CONFIG_H
31528 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31529 # 1. Remove the extension, and $U if already installed.
31530 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31531 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31532 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31533 # will be set to the directory where LIBOBJS objects are built.
31534 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31535 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
31537 LIBOBJS=$ac_libobjs
31539 LTLIBOBJS=$ac_ltlibobjs
31544 : ${CONFIG_STATUS=./config.status}
31546 ac_clean_files_save=$ac_clean_files
31547 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31548 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31549 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31550 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31552 # Generated by $as_me.
31553 # Run this file to recreate the current configuration.
31554 # Compiler output produced by configure, useful for debugging
31555 # configure, is in config.log if it exists.
31558 ac_cs_recheck=false
31560 SHELL=\${CONFIG_SHELL-$SHELL}
31563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31564 ## --------------------- ##
31565 ## M4sh Initialization. ##
31566 ## --------------------- ##
31568 # Be more Bourne compatible
31569 DUALCASE=1; export DUALCASE # for MKS sh
31570 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31573 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31574 # is contrary to our usage. Disable this feature.
31575 alias -g '${1+"$@"}'='"$@"'
31576 setopt NO_GLOB_SUBST
31578 case `(set -o) 2>/dev/null` in
31579 *posix*) set -o posix ;;
31588 # Avoid depending upon Character Ranges.
31589 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31590 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31591 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31592 as_cr_digits='0123456789'
31593 as_cr_alnum=$as_cr_Letters$as_cr_digits
31598 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31599 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31600 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31601 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31602 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31603 as_echo='printf %s\n'
31604 as_echo_n='printf %s'
31606 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31607 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31608 as_echo_n='/usr/ucb/echo -n'
31610 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31611 as_echo_n_body='eval
31615 expr "X$arg" : "X\\(.*\\)$as_nl";
31616 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31618 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31620 export as_echo_n_body
31621 as_echo_n='sh -c $as_echo_n_body as_echo'
31623 export as_echo_body
31624 as_echo='sh -c $as_echo_body as_echo'
31627 # The user is always right.
31628 if test "${PATH_SEPARATOR+set}" != set; then
31630 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31631 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31636 # Support unset when possible.
31637 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31645 # We need space, tab and new line, in precisely that order. Quoting is
31646 # there to prevent editors from complaining about space-tab.
31647 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31648 # splitting by setting IFS to empty value.)
31651 # Find who we are. Look in the path if we contain no directory separator.
31653 *[\\/]* ) as_myself=$0 ;;
31654 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31655 for as_dir in $PATH
31658 test -z "$as_dir" && as_dir=.
31659 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31665 # We did not find ourselves, most probably we were run as `sh COMMAND'
31666 # in which case we are not to be found in the path.
31667 if test "x$as_myself" = x; then
31670 if test ! -f "$as_myself"; then
31671 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31672 { (exit 1); exit 1; }
31675 # Work around bugs in pre-3.0 UWIN ksh.
31676 for as_var in ENV MAIL MAILPATH
31677 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
31689 # Required to use basename.
31690 if expr a : '\(a\)' >/dev/null 2>&1 &&
31691 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31697 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31698 as_basename=basename
31704 # Name of the executable.
31705 as_me=`$as_basename -- "$0" ||
31706 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31707 X"$0" : 'X\(//\)$' \| \
31708 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31710 sed '/^.*\/\([^/][^/]*\)\/*$/{
31729 as_lineno_1=$LINENO
31730 as_lineno_2=$LINENO
31731 test "x$as_lineno_1" != "x$as_lineno_2" &&
31732 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
31734 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31735 # uniformly replaced by the line number. The first 'sed' inserts a
31736 # line-number line after each line using $LINENO; the second 'sed'
31737 # does the real work. The second script uses 'N' to pair each
31738 # line-number line with the line containing $LINENO, and appends
31739 # trailing '-' during substitution so that $LINENO is not a special
31740 # case at line end.
31741 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31742 # scripts with optimization help from Paolo Bonzini. Blame Lee
31743 # E. McMahon (1931-1989) for sed's syntax. :-)
31755 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31758 ' >$as_me.lineno &&
31759 chmod +x "$as_me.lineno" ||
31760 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31761 { (exit 1); exit 1; }; }
31763 # Don't try to exec as it changes $[0], causing all sort of problems
31764 # (the dirname of $[0] is not the place where we might find the
31765 # original and so on. Autoconf is especially sensitive to this).
31766 . "./$as_me.lineno"
31767 # Exit status is that of the last command.
31772 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31778 ECHO_C= ECHO_N= ECHO_T=
31779 case `echo -n x` in
31781 case `echo 'x\c'` in
31782 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31788 if expr a : '\(a\)' >/dev/null 2>&1 &&
31789 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31795 rm -f conf$$ conf$$.exe conf$$.file
31796 if test -d conf$$.dir; then
31797 rm -f conf$$.dir/conf$$.file
31800 mkdir conf$$.dir 2>/dev/null
31802 if (echo >conf$$.file) 2>/dev/null; then
31803 if ln -s conf$$.file conf$$ 2>/dev/null; then
31805 # ... but there are two gotchas:
31806 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31807 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31808 # In both cases, we have to default to `cp -p'.
31809 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31811 elif ln conf$$.file conf$$ 2>/dev/null; then
31819 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31820 rmdir conf$$.dir 2>/dev/null
31822 if mkdir -p . 2>/dev/null; then
31825 test -d ./-p && rmdir ./-p
31829 if test -x / >/dev/null 2>&1; then
31830 as_test_x='test -x'
31832 if ls -dL / >/dev/null 2>&1; then
31839 if test -d "$1"; then
31845 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31846 ???[sx]*):;;*)false;;esac;fi
31850 as_executable_p=$as_test_x
31852 # Sed expression to map a string onto a valid CPP name.
31853 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31855 # Sed expression to map a string onto a valid variable name.
31856 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31861 # Save the log message, to keep $[0] and so on meaningful, and to
31862 # report actual input values of CONFIG_FILES etc. instead of their
31863 # values after options handling.
31865 This file was extended by bash $as_me 4.2-release, which was
31866 generated by GNU Autoconf 2.63. Invocation command line was
31868 CONFIG_FILES = $CONFIG_FILES
31869 CONFIG_HEADERS = $CONFIG_HEADERS
31870 CONFIG_LINKS = $CONFIG_LINKS
31871 CONFIG_COMMANDS = $CONFIG_COMMANDS
31874 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31879 case $ac_config_files in *"
31880 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31883 case $ac_config_headers in *"
31884 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31889 # Files that config.status was made for.
31890 config_files="$ac_config_files"
31891 config_headers="$ac_config_headers"
31892 config_commands="$ac_config_commands"
31896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31898 \`$as_me' instantiates files from templates according to the
31899 current configuration.
31901 Usage: $0 [OPTION]... [FILE]...
31903 -h, --help print this help, then exit
31904 -V, --version print version number and configuration settings, then exit
31905 -q, --quiet, --silent
31906 do not print progress messages
31907 -d, --debug don't remove temporary files
31908 --recheck update $as_me by reconfiguring in the same conditions
31909 --file=FILE[:TEMPLATE]
31910 instantiate the configuration file FILE
31911 --header=FILE[:TEMPLATE]
31912 instantiate the configuration header FILE
31914 Configuration files:
31917 Configuration headers:
31920 Configuration commands:
31923 Report bugs to <bug-autoconf@gnu.org>."
31926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31928 bash config.status 4.2-release
31929 configured by $0, generated by GNU Autoconf 2.63,
31930 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31932 Copyright (C) 2008 Free Software Foundation, Inc.
31933 This config.status script is free software; the Free Software Foundation
31934 gives unlimited permission to copy, distribute and modify it."
31939 test -n "\$AWK" || AWK=awk
31942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31943 # The default lists apply if the user does not specify any file.
31949 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31950 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31961 # Handling of the options.
31962 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31964 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31965 $as_echo "$ac_cs_version"; exit ;;
31966 --debug | --debu | --deb | --de | --d | -d )
31968 --file | --fil | --fi | --f )
31971 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31973 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
31974 ac_need_defaults=false;;
31975 --header | --heade | --head | --hea )
31978 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31980 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
31981 ac_need_defaults=false;;
31983 # Conflict between --help and --header
31984 { $as_echo "$as_me: error: ambiguous option: $1
31985 Try \`$0 --help' for more information." >&2
31986 { (exit 1); exit 1; }; };;
31987 --help | --hel | -h )
31988 $as_echo "$ac_cs_usage"; exit ;;
31989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31990 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31993 # This is an error.
31994 -*) { $as_echo "$as_me: error: unrecognized option: $1
31995 Try \`$0 --help' for more information." >&2
31996 { (exit 1); exit 1; }; } ;;
31998 *) ac_config_targets="$ac_config_targets $1"
31999 ac_need_defaults=false ;;
32005 ac_configure_extra_args=
32007 if $ac_cs_silent; then
32009 ac_configure_extra_args="$ac_configure_extra_args --silent"
32013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32014 if \$ac_cs_recheck; then
32015 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32017 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32018 CONFIG_SHELL='$SHELL'
32019 export CONFIG_SHELL
32024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32028 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32029 ## Running $as_me. ##
32035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32039 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32040 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
32042 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32043 # Capture the value of LINGUAS because we need it to compute CATALOGS.
32044 LINGUAS="${LINGUAS-%UNSET%}"
32049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32051 # Handling of arguments.
32052 for ac_config_target in $ac_config_targets
32054 case $ac_config_target in
32055 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32056 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32057 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32058 "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
32059 "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
32060 "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
32061 "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
32062 "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
32063 "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
32064 "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
32065 "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
32066 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
32067 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
32068 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32069 "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
32070 "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
32071 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32073 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32074 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32075 { (exit 1); exit 1; }; };;
32080 # If the user did not use the arguments to specify the items to instantiate,
32081 # then the envvar interface is used. Set only those that are not.
32082 # We use the long form for the default assignment because of an extremely
32083 # bizarre bug on SunOS 4.1.3.
32084 if $ac_need_defaults; then
32085 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32086 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32087 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32090 # Have a temporary directory for convenience. Make it in the build tree
32091 # simply because there is no reason against having it here, and in addition,
32092 # creating and moving files from /tmp can sometimes cause problems.
32093 # Hook for its removal unless debugging.
32094 # Note that there is a small window in which the directory will not be cleaned:
32095 # after its creation but before its name has been assigned to `$tmp'.
32099 trap 'exit_status=$?
32100 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32102 trap '{ (exit 1); exit 1; }' 1 2 13 15
32104 # Create a (secure) tmp directory for tmp files.
32107 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32108 test -n "$tmp" && test -d "$tmp"
32111 tmp=./conf$$-$RANDOM
32112 (umask 077 && mkdir "$tmp")
32115 $as_echo "$as_me: cannot create a temporary directory in ." >&2
32116 { (exit 1); exit 1; }
32119 # Set up the scripts for CONFIG_FILES section.
32120 # No need to generate them if there are no CONFIG_FILES.
32121 # This happens for instance with `./config.status config.h'.
32122 if test -n "$CONFIG_FILES"; then
32126 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32127 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32130 ac_cs_awk_cr=$ac_cr
32133 echo 'BEGIN {' >"$tmp/subs1.awk" &&
32138 echo "cat >conf$$subs.awk <<_ACEOF" &&
32139 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32141 } >conf$$subs.sh ||
32142 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32143 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32144 { (exit 1); exit 1; }; }
32145 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32147 for ac_last_try in false false false false false :; do
32148 . ./conf$$subs.sh ||
32149 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32150 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32151 { (exit 1); exit 1; }; }
32153 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32154 if test $ac_delim_n = $ac_delim_num; then
32156 elif $ac_last_try; then
32157 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32158 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32159 { (exit 1); exit 1; }; }
32161 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32164 rm -f conf$$subs.sh
32166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32167 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32171 s/^/S["/; s/!.*/"]=/
32181 s/\(.\{148\}\).*/\1/
32183 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32188 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32195 s/\(.\{148\}\).*/\1/
32197 s/["\\]/\\&/g; s/^/"/; s/$/"/
32201 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32206 ' <conf$$subs.awk | sed '
32211 ' >>$CONFIG_STATUS || ac_write_fail=1
32212 rm -f conf$$subs.awk
32213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32215 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32216 for (key in S) S_is_set[key] = 1
32222 nfields = split(line, field, "@")
32224 len = length(field[1])
32225 for (i = 2; i < nfields; i++) {
32227 keylen = length(key)
32228 if (S_is_set[key]) {
32230 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32231 len += length(value) + length(field[++i])
32242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32243 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32244 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32247 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
32248 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
32249 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
32250 { (exit 1); exit 1; }; }
32253 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32254 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32255 # trailing colons and then remove the whole line if VPATH becomes empty
32256 # (actually we leave an empty line to preserve line numbers).
32257 if test "x$srcdir" = x.; then
32258 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32259 s/:*\$(srcdir):*/:/
32260 s/:*\${srcdir}:*/:/
32262 s/^\([^=]*=[ ]*\):*/\1/
32268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32269 fi # test -n "$CONFIG_FILES"
32271 # Set up the scripts for CONFIG_HEADERS section.
32272 # No need to generate them if there are no CONFIG_HEADERS.
32273 # This happens for instance with `./config.status Makefile'.
32274 if test -n "$CONFIG_HEADERS"; then
32275 cat >"$tmp/defines.awk" <<\_ACAWK ||
32279 # Transform confdefs.h into an awk script `defines.awk', embedded as
32280 # here-document in config.status, that substitutes the proper values into
32281 # config.h.in to produce config.h.
32283 # Create a delimiter string that does not exist in confdefs.h, to ease
32284 # handling of long lines.
32286 for ac_last_try in false false :; do
32287 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32288 if test -z "$ac_t"; then
32290 elif $ac_last_try; then
32291 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
32292 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
32293 { (exit 1); exit 1; }; }
32295 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32299 # For the awk script, D is an array of macro values keyed by name,
32300 # likewise P contains macro parameters if any. Preserve backslash
32301 # newline sequences.
32303 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32305 s/.\{148\}/&'"$ac_delim"'/g
32308 s/^[ ]*#[ ]*define[ ][ ]*/ /
32315 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32317 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32321 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32322 D["\1"]=" \3\\\\\\n"\\/p
32324 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32329 s/.\{148\}/&'"$ac_delim"'/g
32334 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32337 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32339 ' <confdefs.h | sed '
32340 s/'"$ac_delim"'/"\\\
32341 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32344 for (key in D) D_is_set[key] = 1
32347 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32349 split(line, arg, " ")
32350 if (arg[1] == "#") {
32354 defundef = substr(arg[1], 2)
32357 split(mac1, mac2, "(") #)
32359 prefix = substr(line, 1, index(line, defundef) - 1)
32360 if (D_is_set[macro]) {
32361 # Preserve the white space surrounding the "#".
32362 print prefix "define", macro P[macro] D[macro]
32365 # Replace #undef with comments. This is necessary, for example,
32366 # in the case of _POSIX_SOURCE, which is predefined and required
32367 # on some systems where configure will not decide to define it.
32368 if (defundef == "undef") {
32369 print "/*", prefix defundef, macro, "*/"
32377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32378 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
32379 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
32380 { (exit 1); exit 1; }; }
32381 fi # test -n "$CONFIG_HEADERS"
32384 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32389 :[FHLC]) ac_mode=$ac_tag; continue;;
32391 case $ac_mode$ac_tag in
32393 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
32394 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
32395 { (exit 1); exit 1; }; };;
32396 :[FH]-) ac_tag=-:-;;
32397 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32414 -) ac_f="$tmp/stdin";;
32415 *) # Look for the file first in the build tree, then in the source tree
32416 # (if the path is not absolute). The absolute path cannot be DOS-style,
32417 # because $ac_f cannot contain `:'.
32421 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32423 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32424 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32425 { (exit 1); exit 1; }; };;
32427 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32428 ac_file_inputs="$ac_file_inputs '$ac_f'"
32431 # Let's still pretend it is `configure' which instantiates (i.e., don't
32432 # use $as_me), people would be surprised to read:
32433 # /* config.h. Generated by config.status. */
32434 configure_input='Generated from '`
32435 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32437 if test x"$ac_file" != x-; then
32438 configure_input="$ac_file. $configure_input"
32439 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
32440 $as_echo "$as_me: creating $ac_file" >&6;}
32442 # Neutralize special characters interpreted by sed in replacement strings.
32443 case $configure_input in #(
32444 *\&* | *\|* | *\\* )
32445 ac_sed_conf_input=`$as_echo "$configure_input" |
32446 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32447 *) ac_sed_conf_input=$configure_input;;
32451 *:-:* | *:-) cat >"$tmp/stdin" \
32452 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32453 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32454 { (exit 1); exit 1; }; } ;;
32459 ac_dir=`$as_dirname -- "$ac_file" ||
32460 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32461 X"$ac_file" : 'X\(//\)[^/]' \| \
32462 X"$ac_file" : 'X\(//\)$' \| \
32463 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32464 $as_echo X"$ac_file" |
32465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32469 /^X\(\/\/\)[^/].*/{
32484 -*) as_dir=./$as_dir;;
32486 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32490 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32491 *) as_qdir=$as_dir;;
32493 as_dirs="'$as_qdir' $as_dirs"
32494 as_dir=`$as_dirname -- "$as_dir" ||
32495 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32496 X"$as_dir" : 'X\(//\)[^/]' \| \
32497 X"$as_dir" : 'X\(//\)$' \| \
32498 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32499 $as_echo X"$as_dir" |
32500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32504 /^X\(\/\/\)[^/].*/{
32517 test -d "$as_dir" && break
32519 test -z "$as_dirs" || eval "mkdir $as_dirs"
32520 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32521 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
32522 { (exit 1); exit 1; }; }; }
32526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32529 # A ".." for each directory in $ac_dir_suffix.
32530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32531 case $ac_top_builddir_sub in
32532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32536 ac_abs_top_builddir=$ac_pwd
32537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32538 # for backward compatibility:
32539 ac_top_builddir=$ac_top_build_prefix
32542 .) # We are building in place.
32544 ac_top_srcdir=$ac_top_builddir_sub
32545 ac_abs_top_srcdir=$ac_pwd ;;
32546 [\\/]* | ?:[\\/]* ) # Absolute name.
32547 ac_srcdir=$srcdir$ac_dir_suffix;
32548 ac_top_srcdir=$srcdir
32549 ac_abs_top_srcdir=$srcdir ;;
32550 *) # Relative name.
32551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32552 ac_top_srcdir=$ac_top_build_prefix$srcdir
32553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32565 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32566 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32571 # If the template does not know about datarootdir, expand it.
32572 # FIXME: This hack should be removed a few years after 2.60.
32573 ac_datarootdir_hack=; ac_datarootdir_seen=
32586 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32587 *datarootdir*) ac_datarootdir_seen=yes;;
32588 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32589 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32590 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32593 ac_datarootdir_hack='
32594 s&@datadir@&$datadir&g
32595 s&@docdir@&$docdir&g
32596 s&@infodir@&$infodir&g
32597 s&@localedir@&$localedir&g
32598 s&@mandir@&$mandir&g
32599 s&\\\${datarootdir}&$datarootdir&g' ;;
32603 # Neutralize VPATH when `$srcdir' = `.'.
32604 # Shell code in configure.ac might set extrasub.
32605 # FIXME: do we really want to maintain this feature?
32606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32607 ac_sed_extra="$ac_vpsub
32610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32613 s|@configure_input@|$ac_sed_conf_input|;t t
32614 s&@top_builddir@&$ac_top_builddir_sub&;t t
32615 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32616 s&@srcdir@&$ac_srcdir&;t t
32617 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32618 s&@top_srcdir@&$ac_top_srcdir&;t t
32619 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32620 s&@builddir@&$ac_builddir&;t t
32621 s&@abs_builddir@&$ac_abs_builddir&;t t
32622 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32623 s&@INSTALL@&$ac_INSTALL&;t t
32624 $ac_datarootdir_hack
32626 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
32627 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32628 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32629 { (exit 1); exit 1; }; }
32631 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32632 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32633 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32634 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32635 which seems to be undefined. Please make sure it is defined." >&5
32636 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32637 which seems to be undefined. Please make sure it is defined." >&2;}
32641 -) cat "$tmp/out" && rm -f "$tmp/out";;
32642 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32644 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32645 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32646 { (exit 1); exit 1; }; }
32652 if test x"$ac_file" != x-; then
32654 $as_echo "/* $configure_input */" \
32655 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32656 } >"$tmp/config.h" \
32657 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32658 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32659 { (exit 1); exit 1; }; }
32660 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
32661 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32662 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32665 mv "$tmp/config.h" "$ac_file" \
32666 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32667 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32668 { (exit 1); exit 1; }; }
32671 $as_echo "/* $configure_input */" \
32672 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
32673 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
32674 $as_echo "$as_me: error: could not create -" >&2;}
32675 { (exit 1); exit 1; }; }
32679 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
32680 $as_echo "$as_me: executing $ac_file commands" >&6;}
32685 case $ac_file$ac_mode in
32687 for ac_file in $CONFIG_FILES; do
32688 # Support "outfile[:infile[:infile...]]"
32690 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32692 # PO directories have a Makefile.in generated from Makefile.in.in.
32693 case "$ac_file" in */Makefile.in)
32694 # Adjust a relative srcdir.
32695 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32696 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32697 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32698 # In autoconf-2.13 it is called $ac_given_srcdir.
32699 # In autoconf-2.50 it is called $srcdir.
32700 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32701 case "$ac_given_srcdir" in
32702 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32703 /*) top_srcdir="$ac_given_srcdir" ;;
32704 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32706 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32707 rm -f "$ac_dir/POTFILES"
32708 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32709 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32710 POMAKEFILEDEPS="POTFILES.in"
32711 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
32712 # on $ac_dir but don't depend on user-specified configuration
32714 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32715 # The LINGUAS file contains the set of available languages.
32716 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32717 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32719 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32720 # Hide the ALL_LINGUAS assigment from automake.
32721 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32722 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32724 # The set of available languages was given in configure.in.
32725 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32727 case "$ac_given_srcdir" in
32729 *) srcdirpre='$(srcdir)/' ;;
32735 for lang in $ALL_LINGUAS; do
32736 POFILES="$POFILES $srcdirpre$lang.po"
32737 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32738 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32739 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32741 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32742 # environment variable.
32744 if test -n "$ALL_LINGUAS"; then
32745 for presentlang in $ALL_LINGUAS; do
32747 if test "%UNSET%" != "$LINGUAS"; then
32748 desiredlanguages="$LINGUAS"
32750 desiredlanguages="$ALL_LINGUAS"
32752 for desiredlang in $desiredlanguages; do
32753 # Use the presentlang catalog if desiredlang is
32754 # a. equal to presentlang, or
32755 # b. a variant of presentlang (because in this case,
32756 # presentlang can be used as a fallback for messages
32757 # which are not translated in the desiredlang catalog).
32758 case "$desiredlang" in
32759 "$presentlang"*) useit=yes;;
32762 if test $useit = yes; then
32763 INST_LINGUAS="$INST_LINGUAS $presentlang"
32768 if test -n "$INST_LINGUAS"; then
32769 for lang in $INST_LINGUAS; do
32770 CATALOGS="$CATALOGS $lang.gmo"
32773 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32774 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"
32775 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32776 if test -f "$f"; then
32778 *.orig | *.bak | *~) ;;
32779 *) cat "$f" >> "$ac_dir/Makefile" ;;
32788 # Makefile uses this timestamp file to record whether config.h is up to date.
32789 echo timestamp > stamp-h
32796 { (exit 0); exit 0; }
32798 chmod +x $CONFIG_STATUS
32799 ac_clean_files=$ac_clean_files_save
32801 test $ac_write_fail = 0 ||
32802 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
32803 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
32804 { (exit 1); exit 1; }; }
32807 # configure is writing to config.log, and then calls config.status.
32808 # config.status does its own redirection, appending to config.log.
32809 # Unfortunately, on DOS this fails, as config.log is still kept open
32810 # by configure, so config.status won't be able to write to it; its
32811 # output is simply discarded. So we exec the FD to /dev/null,
32812 # effectively closing config.log, so it can be properly (re)opened and
32813 # appended to by config.status. When coming back to configure, we
32814 # need to make the FD available again.
32815 if test "$no_create" != yes; then
32817 ac_config_status_args=
32818 test "$silent" = yes &&
32819 ac_config_status_args="$ac_config_status_args --quiet"
32821 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32823 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32824 # would make configure fail if this is the last instruction.
32825 $ac_cs_success || { (exit 1); exit 1; }
32827 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32828 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32829 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}