2 # From configure.in for Bash 4.1, version 4.019.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 for bash 4.1-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.1-release'
601 PACKAGE_STRING
='bash 4.1-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
784 program_transform_name
796 enable_option_checking
802 with_installed_readline
805 enable_minimal_config
807 enable_arith_for_command
808 enable_array_variables
810 enable_brace_expansion
811 enable_casemod_attributes
812 enable_casemod_expansions
813 enable_command_timing
818 enable_directory_stack
819 enable_disabled_builtins
820 enable_dparen_arithmetic
822 enable_extended_glob_default
827 enable_net_redirections
828 enable_process_substitution
830 enable_prompt_string_decoding
834 enable_separate_helpfiles
835 enable_single_help_strings
836 enable_strict_posix_default
837 enable_usg_echo_default
838 enable_xpg_echo_default
847 with_included_gettext
850 ac_precious_vars
='build_alias
864 # Initialize some variables set by options.
866 ac_init_version
=false
867 ac_unrecognized_opts
=
869 # The variables have the same names as the options, with
870 # dashes changed to underlines.
878 program_transform_name
=s
,x
,x
,
886 # Installation directory options.
887 # These are left unexpanded so users can "make install exec_prefix=/foo"
888 # and all the variables that are supposed to be based on exec_prefix
889 # by default will actually change.
890 # Use braces instead of parens because sh, perl, etc. also accept them.
891 # (The list follows the same order as the GNU Coding Standards.)
892 bindir
='${exec_prefix}/bin'
893 sbindir
='${exec_prefix}/sbin'
894 libexecdir
='${exec_prefix}/libexec'
895 datarootdir
='${prefix}/share'
896 datadir
='${datarootdir}'
897 sysconfdir
='${prefix}/etc'
898 sharedstatedir
='${prefix}/com'
899 localstatedir
='${prefix}/var'
900 includedir
='${prefix}/include'
901 oldincludedir
='/usr/include'
902 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
903 infodir
='${datarootdir}/info'
908 libdir
='${exec_prefix}/lib'
909 localedir
='${datarootdir}/locale'
910 mandir
='${datarootdir}/man'
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\
$ac_option
924 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 # Accept the important Cygnus configure options, so we can diagnose typos.
930 case $ac_dashdash$ac_option in
934 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
936 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
939 -build |
--build |
--buil |
--bui |
--bu)
940 ac_prev
=build_alias
;;
941 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
942 build_alias
=$ac_optarg ;;
944 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
945 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
946 ac_prev
=cache_file
;;
947 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
948 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
949 cache_file
=$ac_optarg ;;
952 cache_file
=config.cache
;;
954 -datadir |
--datadir |
--datadi |
--datad)
956 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
957 datadir
=$ac_optarg ;;
959 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
960 |
--dataroo |
--dataro |
--datar)
961 ac_prev
=datarootdir
;;
962 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
963 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
964 datarootdir
=$ac_optarg ;;
966 -disable-* |
--disable-*)
967 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
970 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
971 { (exit 1); exit 1; }; }
972 ac_useropt_orig
=$ac_useropt
973 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
978 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep
=', ';;
981 eval enable_
$ac_useropt=no
;;
983 -docdir |
--docdir |
--docdi |
--doc |
--do)
985 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
988 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
990 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
993 -enable-* |
--enable-*)
994 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
997 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
998 { (exit 1); exit 1; }; }
999 ac_useropt_orig
=$ac_useropt
1000 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1003 "enable_
$ac_useropt"
1005 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006 ac_unrecognized_sep
=', ';;
1008 eval enable_
$ac_useropt=\
$ac_optarg ;;
1010 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1011 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1012 |
--exec |
--exe |
--ex)
1013 ac_prev
=exec_prefix
;;
1014 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1015 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1016 |
--exec=* |
--exe=* |
--ex=*)
1017 exec_prefix
=$ac_optarg ;;
1019 -gas |
--gas |
--ga |
--g)
1020 # Obsolete; use --with-gas.
1023 -help |
--help |
--hel |
--he |
-h)
1024 ac_init_help
=long
;;
1025 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1026 ac_init_help
=recursive
;;
1027 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1028 ac_init_help
=short
;;
1030 -host |
--host |
--hos |
--ho)
1031 ac_prev
=host_alias
;;
1032 -host=* |
--host=* |
--hos=* |
--ho=*)
1033 host_alias
=$ac_optarg ;;
1035 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1037 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1039 htmldir
=$ac_optarg ;;
1041 -includedir |
--includedir |
--includedi |
--included |
--include \
1042 |
--includ |
--inclu |
--incl |
--inc)
1043 ac_prev
=includedir
;;
1044 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1045 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1046 includedir
=$ac_optarg ;;
1048 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1050 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1051 infodir
=$ac_optarg ;;
1053 -libdir |
--libdir |
--libdi |
--libd)
1055 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1056 libdir
=$ac_optarg ;;
1058 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1059 |
--libexe |
--libex |
--libe)
1060 ac_prev
=libexecdir
;;
1061 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1062 |
--libexe=* |
--libex=* |
--libe=*)
1063 libexecdir
=$ac_optarg ;;
1065 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1066 ac_prev
=localedir
;;
1067 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1068 localedir
=$ac_optarg ;;
1070 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1071 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1072 ac_prev
=localstatedir
;;
1073 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1074 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1075 localstatedir
=$ac_optarg ;;
1077 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1079 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1080 mandir
=$ac_optarg ;;
1082 -nfp |
--nfp |
--nf)
1083 # Obsolete; use --without-fp.
1086 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1087 |
--no-cr |
--no-c |
-n)
1090 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1091 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1094 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1095 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1096 |
--oldin |
--oldi |
--old |
--ol |
--o)
1097 ac_prev
=oldincludedir
;;
1098 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1099 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1100 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1101 oldincludedir
=$ac_optarg ;;
1103 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1105 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1106 prefix
=$ac_optarg ;;
1108 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1109 |
--program-pre |
--program-pr |
--program-p)
1110 ac_prev
=program_prefix
;;
1111 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1112 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1113 program_prefix
=$ac_optarg ;;
1115 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1116 |
--program-suf |
--program-su |
--program-s)
1117 ac_prev
=program_suffix
;;
1118 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1119 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1120 program_suffix
=$ac_optarg ;;
1122 -program-transform-name |
--program-transform-name \
1123 |
--program-transform-nam |
--program-transform-na \
1124 |
--program-transform-n |
--program-transform- \
1125 |
--program-transform |
--program-transfor \
1126 |
--program-transfo |
--program-transf \
1127 |
--program-trans |
--program-tran \
1128 |
--progr-tra |
--program-tr |
--program-t)
1129 ac_prev
=program_transform_name
;;
1130 -program-transform-name=* |
--program-transform-name=* \
1131 |
--program-transform-nam=* |
--program-transform-na=* \
1132 |
--program-transform-n=* |
--program-transform-=* \
1133 |
--program-transform=* |
--program-transfor=* \
1134 |
--program-transfo=* |
--program-transf=* \
1135 |
--program-trans=* |
--program-tran=* \
1136 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1137 program_transform_name
=$ac_optarg ;;
1139 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1141 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1142 pdfdir
=$ac_optarg ;;
1144 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1146 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1149 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1150 |
-silent |
--silent |
--silen |
--sile |
--sil)
1153 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1155 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1157 sbindir
=$ac_optarg ;;
1159 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1160 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1161 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1163 ac_prev
=sharedstatedir
;;
1164 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1165 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1166 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1168 sharedstatedir
=$ac_optarg ;;
1170 -site |
--site |
--sit)
1172 -site=* |
--site=* |
--sit=*)
1175 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1177 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1178 srcdir
=$ac_optarg ;;
1180 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1181 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1182 ac_prev
=sysconfdir
;;
1183 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1184 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1185 sysconfdir
=$ac_optarg ;;
1187 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1188 ac_prev
=target_alias
;;
1189 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1190 target_alias
=$ac_optarg ;;
1192 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1195 -version |
--version |
--versio |
--versi |
--vers |
-V)
1196 ac_init_version
=: ;;
1199 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1202 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1203 { (exit 1); exit 1; }; }
1204 ac_useropt_orig
=$ac_useropt
1205 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1210 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211 ac_unrecognized_sep
=', ';;
1213 eval with_
$ac_useropt=\
$ac_optarg ;;
1215 -without-* |
--without-*)
1216 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1219 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1220 { (exit 1); exit 1; }; }
1221 ac_useropt_orig
=$ac_useropt
1222 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1227 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep
=', ';;
1230 eval with_
$ac_useropt=no
;;
1233 # Obsolete; use --with-x.
1236 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1237 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1238 ac_prev
=x_includes
;;
1239 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1240 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1241 x_includes
=$ac_optarg ;;
1243 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1244 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1245 ac_prev
=x_libraries
;;
1246 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1247 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1248 x_libraries
=$ac_optarg ;;
1250 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1251 Try \`$0 --help' for more information." >&2
1252 { (exit 1); exit 1; }; }
1256 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1259 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1260 { (exit 1); exit 1; }; }
1261 eval $ac_envvar=\
$ac_optarg
1262 export $ac_envvar ;;
1265 # FIXME: should be removed in autoconf 3.0.
1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1275 if test -n "$ac_prev"; then
1276 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1277 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1278 { (exit 1); exit 1; }; }
1281 if test -n "$ac_unrecognized_opts"; then
1282 case $enable_option_checking in
1284 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1285 { (exit 1); exit 1; }; } ;;
1286 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290 # Check all directory arguments for consistency.
1291 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292 datadir sysconfdir sharedstatedir localstatedir includedir \
1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294 libdir localedir mandir
1296 eval ac_val
=\$
$ac_var
1297 # Remove trailing slashes.
1300 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301 eval $ac_var=\
$ac_val;;
1303 # Be sure to have absolute directory names.
1305 [\\/$
]* | ?
:[\\/]* ) continue;;
1306 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1308 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1309 { (exit 1); exit 1; }; }
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1317 target
=$target_alias
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x
; then
1321 if test "x$build_alias" = x
; then
1322 cross_compiling
=maybe
1323 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324 If a cross compiler is detected then cross compile mode will be used." >&2
1325 elif test "x$build_alias" != "x$host_alias"; then
1331 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1333 test "$silent" = yes && exec 6>/dev
/null
1336 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di
=`ls -di .` &&
1338 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1339 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1340 { (exit 1); exit 1; }; }
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1343 { (exit 1); exit 1; }; }
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted
=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir
=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1378 ac_srcdir_defaulted
=no
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1382 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1383 { (exit 1); exit 1; }; }
1385 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1388 { (exit 1); exit 1; }; }
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1398 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 for ac_var
in $ac_precious_vars; do
1401 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1403 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1408 # Report the --help message.
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1414 \`configure' configures bash 4.1-release to adapt to many kinds of systems.
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1421 Defaults for the options are specified in brackets.
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print \`checking...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for \`--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1445 For better control, use the options below.
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/bash]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
1472 --build=BUILD configure
for building on BUILD
[guessed
]
1473 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1477 if test -n "$ac_init_help"; then
1478 case $ac_init_help in
1479 short | recursive
) echo "Configuration of bash 4.1-release:";;
1484 --disable-option-checking ignore unrecognized
--enable/--with options
1485 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1486 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1487 --enable-minimal-config a minimal sh-like configuration
1488 --enable-alias enable shell aliases
1489 --enable-arith-for-command
1490 enable arithmetic
for command
1491 --enable-array-variables
1492 include shell array variables
1493 --enable-bang-history turn on csh-style
history substitution
1494 --enable-brace-expansion
1495 include brace expansion
1496 --enable-casemod-attributes
1497 include case-modifying variable attributes
1498 --enable-casemod-expansions
1499 include case-modifying word expansions
1500 --enable-command-timing enable the
time reserved word and
command timing
1501 --enable-cond-command enable the conditional
command
1502 --enable-cond-regexp enable extended regular expression matching
in
1503 conditional commands
1504 --enable-coprocesses enable coprocess support and the coproc reserved
1506 --enable-debugger enable support
for bash debugger
1507 --enable-directory-stack
1508 enable builtins pushd
/popd
/dirs
1509 --enable-disabled-builtins
1510 allow disabled builtins to still be invoked
1511 --enable-dparen-arithmetic
1512 include
((...
)) command
1513 --enable-extended-glob include ksh-style extended pattern matching
1514 --enable-extended-glob-default
1515 force extended pattern matching to be enabled by
1517 --enable-help-builtin include the
help builtin
1518 --enable-history turn on
command history
1519 --enable-job-control enable job control features
1520 --enable-multibyte enable multibyte characters
if OS supports them
1521 --enable-net-redirections
1522 enable /dev
/tcp
/host
/port redirection
1523 --enable-process-substitution
1524 enable process substitution
1525 --enable-progcomp enable programmable completion and the complete
1527 --enable-prompt-string-decoding
1528 turn on escape character decoding
in prompts
1529 --enable-readline turn on
command line editing
1530 --enable-restricted enable a restricted shell
1531 --enable-select include
select command
1532 --enable-separate-helpfiles
1533 use external files
for help builtin documentation
1534 --enable-single-help-strings
1535 store
help documentation as a single string to ease
1537 --enable-strict-posix-default
1538 configure bash to be posix-conformant by default
1539 --enable-usg-echo-default
1540 a synonym
for --enable-xpg-echo-default
1541 --enable-xpg-echo-default
1542 make the
echo builtin expand escape sequences by
1544 --enable-mem-scramble scramble memory on calls to malloc and free
1545 --enable-profiling allow profiling with gprof
1546 --enable-static-link link bash statically
, for use as a root shell
1547 --disable-largefile omit support
for large files
1548 --disable-nls do not use Native Language Support
1549 --disable-rpath do not hardcode runtime library paths
1552 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1553 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1554 --with-lispdir override the default lisp directory
1555 --with-afs if you are running AFS
1556 --with-bash-malloc use the Bash version of malloc
1557 --with-curses use the curses library instead of the termcap
1559 --with-gnu-malloc synonym
for --with-bash-malloc
1560 --with-installed-readline
1561 use a version of the readline library that is
1563 --with-purecov configure to postprocess with pure coverage
1564 --with-purify configure to postprocess with purify
1565 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1566 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1567 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1568 --with-included-gettext use the GNU gettext library included here
1569 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1570 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1572 Some influential environment variables
:
1574 location of bash debugger initialization
file
1575 CC C compiler
command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1578 nonstandard directory
<lib dir
>
1579 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1580 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1581 you have headers
in a nonstandard directory
<include dir
>
1583 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1584 the first program found out of: `bison
-y', `byacc', `yacc'.
1585 YFLAGS The list of arguments that will be passed by default to $YACC.
1586 This script will default YFLAGS to the empty string to avoid a
1587 default value of `-d' given by some make applications.
1589 Use these variables to override the choices made by `configure' or to
help
1590 it to
find libraries and programs with nonstandard names
/locations.
1592 Report bugs to
<bug-bash@gnu.org
>.
1597 if test "$ac_init_help" = "recursive"; then
1598 # If there are subdirs, report their specific --help.
1599 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1600 test -d "$ac_dir" ||
1601 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1606 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1608 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1613 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1616 ac_abs_top_builddir
=$ac_pwd
1617 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir
=$ac_top_build_prefix
1622 .
) # We are building in place.
1624 ac_top_srcdir
=$ac_top_builddir_sub
1625 ac_abs_top_srcdir
=$ac_pwd ;;
1626 [\\/]* | ?
:[\\/]* ) # Absolute name.
1627 ac_srcdir
=$srcdir$ac_dir_suffix;
1628 ac_top_srcdir
=$srcdir
1629 ac_abs_top_srcdir
=$srcdir ;;
1631 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1635 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1637 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1644 $SHELL "$ac_srcdir/configure" --help=recursive
1646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1648 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1655 bash configure
4.1-release
1656 generated by GNU Autoconf
2.63
1658 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1659 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1660 This configure
script is free software
; the Free Software Foundation
1661 gives unlimited permission to copy
, distribute and modify it.
1665 cat >config.log
<<_ACEOF
1666 This file contains any messages produced by compilers while
1667 running configure, to aid debugging if configure makes a mistake.
1669 It was created by bash $as_me 4.1-release, which was
1670 generated by GNU Autoconf 2.63. Invocation command line was
1682 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1683 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1684 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1685 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1686 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1688 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1689 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1691 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1692 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1693 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1694 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1695 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1696 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1697 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1705 test -z "$as_dir" && as_dir
=.
1706 $as_echo "PATH: $as_dir"
1722 # Keep a trace of the command line.
1723 # Strip out --no-create and --no-recursion so they do not pile up.
1724 # Strip out --silent because we don't want to record it for future runs.
1725 # Also quote any args containing shell meta-characters.
1726 # Make two passes to allow for proper duplicate-argument suppression.
1730 ac_must_keep_next
=false
1736 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1737 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1738 |
-silent |
--silent |
--silen |
--sile |
--sil)
1741 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1744 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1746 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1747 if test $ac_must_keep_next = true
; then
1748 ac_must_keep_next
=false
# Got value, back to normal.
1751 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1752 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1753 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1754 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1755 case "$ac_configure_args0 " in
1756 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1759 -* ) ac_must_keep_next
=true
;;
1762 ac_configure_args
="$ac_configure_args '$ac_arg'"
1767 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1768 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1770 # When interrupted or exit'd, cleanup temporary files, and complete
1771 # config.log. We remove comments because anyway the quotes in there
1772 # would cause problems or look ugly.
1773 # WARNING: Use '\'' to represent an apostrophe within the trap.
1774 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1775 trap 'exit_status=$?
1776 # Save into config.log some information that might help in debugging.
1781 ## ---------------- ##
1782 ## Cache variables. ##
1783 ## ---------------- ##
1786 # The following way of writing the cache mishandles newlines in values,
1788 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1789 eval ac_val=\$$ac_var
1793 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1794 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1797 _ | IFS | as_nl) ;; #(
1798 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1799 *) $as_unset $ac_var ;;
1804 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1805 *${as_nl}ac_space=\ *)
1807 "s/'\''/'\''\\\\'\'''\''/g;
1808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1811 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1819 ## ----------------- ##
1820 ## Output variables. ##
1821 ## ----------------- ##
1824 for ac_var in $ac_subst_vars
1826 eval ac_val=\$$ac_var
1828 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830 $as_echo "$ac_var='\''$ac_val'\''"
1834 if test -n "$ac_subst_files"; then
1836 ## ------------------- ##
1837 ## File substitutions. ##
1838 ## ------------------- ##
1841 for ac_var
in $ac_subst_files
1843 eval ac_val
=\$
$ac_var
1845 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1847 $as_echo "$ac_var='\''$ac_val'\''"
1852 if test -s confdefs.h; then
1862 test "$ac_signal" != 0 &&
1863 $as_echo "$as_me: caught signal $ac_signal"
1864 $as_echo "$as_me: exit $exit_status"
1866 rm -f core *.core core.conftest.* &&
1867 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1870 for ac_signal
in 1 2 13 15; do
1871 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1875 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1876 rm -f -r conftest
* confdefs.h
1878 # Predefined preprocessor variables.
1880 cat >>confdefs.h
<<_ACEOF
1881 #define PACKAGE_NAME "$PACKAGE_NAME"
1885 cat >>confdefs.h
<<_ACEOF
1886 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1890 cat >>confdefs.h
<<_ACEOF
1891 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1895 cat >>confdefs.h
<<_ACEOF
1896 #define PACKAGE_STRING "$PACKAGE_STRING"
1900 cat >>confdefs.h
<<_ACEOF
1901 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1905 # Let the site file select an alternate cache file if it wants to.
1906 # Prefer an explicitly selected file to automatically selected ones.
1909 if test -n "$CONFIG_SITE"; then
1910 ac_site_file1
=$CONFIG_SITE
1911 elif test "x$prefix" != xNONE
; then
1912 ac_site_file1
=$prefix/share
/config.site
1913 ac_site_file2
=$prefix/etc
/config.site
1915 ac_site_file1
=$ac_default_prefix/share
/config.site
1916 ac_site_file2
=$ac_default_prefix/etc
/config.site
1918 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1920 test "x$ac_site_file" = xNONE
&& continue
1921 if test -r "$ac_site_file"; then
1922 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1923 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1924 sed 's/^/| /' "$ac_site_file" >&5
1929 if test -r "$cache_file"; then
1930 # Some versions of bash will fail to source /dev/null (special
1931 # files actually), so we avoid doing that.
1932 if test -f "$cache_file"; then
1933 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1934 $as_echo "$as_me: loading cache $cache_file" >&6;}
1936 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1937 *) .
"./$cache_file";;
1941 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1942 $as_echo "$as_me: creating cache $cache_file" >&6;}
1946 ac_header_list
="$ac_header_list sys/time.h"
1947 ac_header_list
="$ac_header_list unistd.h"
1948 ac_func_list
="$ac_func_list alarm"
1949 ac_func_list
="$ac_func_list fpurge"
1950 ac_func_list
="$ac_func_list __fpurge"
1951 ac_func_list
="$ac_func_list snprintf"
1952 ac_func_list
="$ac_func_list vsnprintf"
1953 # Check that the precious variables saved in the cache have kept the same
1955 ac_cache_corrupted
=false
1956 for ac_var
in $ac_precious_vars; do
1957 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1958 eval ac_new_set
=\
$ac_env_${ac_var}_set
1959 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1960 eval ac_new_val
=\
$ac_env_${ac_var}_value
1961 case $ac_old_set,$ac_new_set in
1963 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1964 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1965 ac_cache_corrupted
=: ;;
1967 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1968 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1969 ac_cache_corrupted
=: ;;
1972 if test "x$ac_old_val" != "x$ac_new_val"; then
1973 # differences in whitespace do not lead to failure.
1974 ac_old_val_w
=`echo x $ac_old_val`
1975 ac_new_val_w
=`echo x $ac_new_val`
1976 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1977 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1978 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1979 ac_cache_corrupted
=:
1981 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1982 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1983 eval $ac_var=\
$ac_old_val
1985 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1986 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1987 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1988 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1991 # Pass precious variables to config.status.
1992 if test "$ac_new_set" = set; then
1994 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1995 *) ac_arg
=$ac_var=$ac_new_val ;;
1997 case " $ac_configure_args " in
1998 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1999 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2003 if $ac_cache_corrupted; then
2004 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2006 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2007 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2008 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2009 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2010 { (exit 1); exit 1; }; }
2038 ac_cpp
='$CPP $CPPFLAGS'
2039 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2049 for ac_dir
in .
/support
"$srcdir"/.
/support
; do
2050 if test -f "$ac_dir/install-sh"; then
2052 ac_install_sh
="$ac_aux_dir/install-sh -c"
2054 elif test -f "$ac_dir/install.sh"; then
2056 ac_install_sh
="$ac_aux_dir/install.sh -c"
2058 elif test -f "$ac_dir/shtool"; then
2060 ac_install_sh
="$ac_aux_dir/shtool install -c"
2064 if test -z "$ac_aux_dir"; then
2065 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&5
2066 $as_echo "$as_me: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&2;}
2067 { (exit 1); exit 1; }; }
2070 # These three variables are undocumented and unsupported,
2071 # and are intended to be withdrawn in a future Autoconf release.
2072 # They can cause serious problems if a builder's source tree is in a directory
2073 # whose full name contains unusual characters.
2074 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2075 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2076 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2079 ac_config_headers
="$ac_config_headers config.h"
2085 case "$RELSTATUS" in
2086 alp
*|bet
*|dev
*|rc
*|maint
*) DEBUG
='-DDEBUG' MALLOC_DEBUG
='-DMALLOC_DEBUG' ;;
2087 *) DEBUG
= MALLOC_DEBUG
= ;;
2090 # Make sure we can run config.sub.
2091 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2092 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2093 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2094 { (exit 1); exit 1; }; }
2096 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2097 $as_echo_n "checking build system type... " >&6; }
2098 if test "${ac_cv_build+set}" = set; then
2099 $as_echo_n "(cached) " >&6
2101 ac_build_alias
=$build_alias
2102 test "x$ac_build_alias" = x
&&
2103 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2104 test "x$ac_build_alias" = x
&&
2105 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2106 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2107 { (exit 1); exit 1; }; }
2108 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2109 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2110 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2111 { (exit 1); exit 1; }; }
2114 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2115 $as_echo "$ac_cv_build" >&6; }
2116 case $ac_cv_build in
2118 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2119 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2120 { (exit 1); exit 1; }; };;
2123 ac_save_IFS
=$IFS; IFS
='-'
2129 # Remember, the first character of IFS is used to create $*,
2130 # except with old shells:
2133 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2136 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2137 $as_echo_n "checking host system type... " >&6; }
2138 if test "${ac_cv_host+set}" = set; then
2139 $as_echo_n "(cached) " >&6
2141 if test "x$host_alias" = x
; then
2142 ac_cv_host
=$ac_cv_build
2144 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2145 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2146 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2147 { (exit 1); exit 1; }; }
2151 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2152 $as_echo "$ac_cv_host" >&6; }
2155 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2156 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2157 { (exit 1); exit 1; }; };;
2160 ac_save_IFS
=$IFS; IFS
='-'
2166 # Remember, the first character of IFS is used to create $*,
2167 # except with old shells:
2170 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2179 opt_with_installed_readline
=no
2183 case "${host_cpu}-${host_os}" in
2184 alpha
*-*) opt_bash_malloc
=no
;; # alpha running osf/1 or linux
2185 *[Cc
]ray
*-*) opt_bash_malloc
=no
;; # Crays
2186 *-osf1*) opt_bash_malloc
=no
;; # other osf/1 machines
2187 sparc-svr4
*) opt_bash_malloc
=no
;; # sparc SVR4, SVR4.2
2188 sparc-netbsd
*) opt_bash_malloc
=no
;; # needs 8-byte alignment
2189 mips-irix6
*) opt_bash_malloc
=no
;; # needs 8-byte alignment
2190 m68k-sysv
) opt_bash_malloc
=no
;; # fixes file descriptor leak in closedir
2191 sparc-linux
*) opt_bash_malloc
=no
;; # sparc running linux; requires ELF
2192 #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
2193 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
2194 *-openbsd*) opt_bash_malloc
=no
;; # they claim it needs eight-bit alignment
2195 *-aix*) opt_bash_malloc
=no
;; # AIX machines
2196 *-nextstep*) opt_bash_malloc
=no
;; # NeXT machines running NeXTstep
2197 *-macos*) opt_bash_malloc
=no
;; # Apple MacOS X
2198 *-rhapsody*) opt_bash_malloc
=no
;; # Apple Rhapsody (MacOS X)
2199 *-darwin*) opt_bash_malloc
=no
;; # Apple Darwin (MacOS X)
2200 *-dgux*) opt_bash_malloc
=no
;; # DG/UX machines
2201 *-qnx*) opt_bash_malloc
=no
;; # QNX 4.2, QNX 6.x
2202 *-machten4) opt_bash_malloc
=no
;; # MachTen 4.x
2203 *-bsdi2.1|
*-bsdi3.?
) opt_bash_malloc
=no
; : ${CC:=shlicc2} ;; # for loadable builtins
2204 *-beos*) opt_bash_malloc
=no
;; # they say it's suitable
2205 *-cygwin*) opt_bash_malloc
=no
;; # Cygnus's CYGWIN environment
2206 *-opennt*|
*-interix*) opt_bash_malloc
=no
;; # Interix, now owned by Microsoft
2209 # memory scrambling on free()
2210 case "${host_os}" in
2211 sco3.2v5
*|sco3.2v4
*) opt_memscramble
=no
;;
2212 *) opt_memscramble
=yes ;;
2216 # Check whether --with-lispdir was given.
2217 if test "${with_lispdir+set}" = set; then
2218 withval
=$with_lispdir; lispdir
="$withval"
2219 { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5
2220 $as_echo_n "checking where .elc files should go... " >&6; }
2221 { $as_echo "$as_me:$LINENO: result: $lispdir" >&5
2222 $as_echo "$lispdir" >&6; }
2225 # If set to t, that means we are running in a shell under Emacs.
2226 # If you have an Emacs named "t", then use the full path.
2227 test x
"$EMACS" = xt
&& EMACS
=
2228 for ac_prog
in emacs xemacs
2230 # Extract the first word of "$ac_prog", so it can be a program name with args.
2231 set dummy
$ac_prog; ac_word
=$2
2232 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 $as_echo_n "checking for $ac_word... " >&6; }
2234 if test "${ac_cv_prog_EMACS+set}" = set; then
2235 $as_echo_n "(cached) " >&6
2237 if test -n "$EMACS"; then
2238 ac_cv_prog_EMACS
="$EMACS" # Let the user override the test.
2240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2244 test -z "$as_dir" && as_dir
=.
2245 for ac_exec_ext
in '' $ac_executable_extensions; do
2246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2247 ac_cv_prog_EMACS
="$ac_prog"
2248 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 EMACS
=$ac_cv_prog_EMACS
2258 if test -n "$EMACS"; then
2259 { $as_echo "$as_me:$LINENO: result: $EMACS" >&5
2260 $as_echo "$EMACS" >&6; }
2262 { $as_echo "$as_me:$LINENO: result: no" >&5
2263 $as_echo "no" >&6; }
2267 test -n "$EMACS" && break
2269 test -n "$EMACS" || EMACS
="no"
2271 if test $EMACS != "no"; then
2272 if test x
${lispdir+set} != xset
; then
2273 { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5
2274 $as_echo_n "checking where .elc files should go... " >&6; }
2275 if test "${am_cv_lispdir+set}" = set; then
2276 $as_echo_n "(cached) " >&6
2278 am_cv_lispdir
=`$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' | sed -n -e 's,/$,,' -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}'`
2279 if test -z "$am_cv_lispdir"; then
2280 am_cv_lispdir
='${datadir}/emacs/site-lisp'
2284 { $as_echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2285 $as_echo "$am_cv_lispdir" >&6; }
2286 lispdir
="$am_cv_lispdir"
2297 # Check whether --with-afs was given.
2298 if test "${with_afs+set}" = set; then
2299 withval
=$with_afs; opt_afs
=$withval
2303 # Check whether --with-bash-malloc was given.
2304 if test "${with_bash_malloc+set}" = set; then
2305 withval
=$with_bash_malloc; opt_bash_malloc
=$withval
2309 # Check whether --with-curses was given.
2310 if test "${with_curses+set}" = set; then
2311 withval
=$with_curses; opt_curses
=$withval
2315 # Check whether --with-gnu-malloc was given.
2316 if test "${with_gnu_malloc+set}" = set; then
2317 withval
=$with_gnu_malloc; opt_bash_malloc
=$withval
2321 # Check whether --with-installed-readline was given.
2322 if test "${with_installed_readline+set}" = set; then
2323 withval
=$with_installed_readline; opt_with_installed_readline
=$withval
2327 # Check whether --with-purecov was given.
2328 if test "${with_purecov+set}" = set; then
2329 withval
=$with_purecov; opt_purecov
=$withval
2333 # Check whether --with-purify was given.
2334 if test "${with_purify+set}" = set; then
2335 withval
=$with_purify; opt_purify
=$withval
2339 if test "$opt_bash_malloc" = yes; then
2340 MALLOC_TARGET
=malloc
2343 MALLOC_LIB
='-lmalloc'
2344 MALLOC_LIBRARY
='$(ALLOC_LIBDIR)/libmalloc.a'
2345 MALLOC_LDFLAGS
='-L$(ALLOC_LIBDIR)'
2346 MALLOC_DEP
='$(MALLOC_LIBRARY)'
2348 cat >>confdefs.h
<<\_ACEOF
2349 #define USING_BASH_MALLOC 1
2359 if test "$opt_purify" = yes; then
2361 cat >>confdefs.h
<<\_ACEOF
2362 #define DISABLE_MALLOC_WRAPPERS 1
2369 if test "$opt_purecov" = yes; then
2370 PURIFY
="${PURIFY}purecov"
2373 if test "$opt_afs" = yes; then
2374 cat >>confdefs.h
<<\_ACEOF
2380 if test "$opt_curses" = yes; then
2384 if test -z "${DEBUGGER_START_FILE}"; then
2385 DEBUGGER_START_FILE
='${datadir}/bashdb/bashdb-main.inc'
2388 opt_minimal_config
=no
2394 opt_bang_history
=yes
2397 opt_process_subst
=yes
2398 opt_prompt_decoding
=yes
2401 opt_array_variables
=yes
2402 opt_dparen_arith
=yes
2403 opt_extended_glob
=yes
2404 opt_brace_expansion
=yes
2405 opt_disabled_builtins
=no
2406 opt_command_timing
=yes
2409 opt_cond_command
=yes
2412 opt_arith_for_command
=yes
2415 opt_separate_help
=no
2418 opt_single_longdoc_strings
=yes
2419 opt_casemod_attrs
=yes
2420 opt_casemod_expansions
=yes
2421 opt_extglob_default
=no
2426 # Check whether --enable-minimal-config was given.
2427 if test "${enable_minimal_config+set}" = set; then
2428 enableval
=$enable_minimal_config; opt_minimal_config
=$enableval
2432 if test $opt_minimal_config = yes; then
2433 opt_job_control
=no opt_alias
=no opt_readline
=no
2434 opt_history
=no opt_bang_history
=no opt_dirstack
=no
2435 opt_restricted
=no opt_process_subst
=no opt_prompt_decoding
=no
2436 opt_select
=no opt_help
=no opt_array_variables
=no opt_dparen_arith
=no
2437 opt_brace_expansion
=no opt_disabled_builtins
=no opt_command_timing
=no
2438 opt_extended_glob
=no opt_cond_command
=no opt_arith_for_command
=no
2439 opt_net_redirs
=no opt_progcomp
=no opt_separate_help
=no
2440 opt_multibyte
=yes opt_cond_regexp
=no opt_coproc
=no
2441 opt_casemod_attrs
=no opt_casemod_expansions
=no opt_extglob_default
=no
2444 # Check whether --enable-alias was given.
2445 if test "${enable_alias+set}" = set; then
2446 enableval
=$enable_alias; opt_alias
=$enableval
2449 # Check whether --enable-arith-for-command was given.
2450 if test "${enable_arith_for_command+set}" = set; then
2451 enableval
=$enable_arith_for_command; opt_arith_for_command
=$enableval
2454 # Check whether --enable-array-variables was given.
2455 if test "${enable_array_variables+set}" = set; then
2456 enableval
=$enable_array_variables; opt_array_variables
=$enableval
2459 # Check whether --enable-bang-history was given.
2460 if test "${enable_bang_history+set}" = set; then
2461 enableval
=$enable_bang_history; opt_bang_history
=$enableval
2464 # Check whether --enable-brace-expansion was given.
2465 if test "${enable_brace_expansion+set}" = set; then
2466 enableval
=$enable_brace_expansion; opt_brace_expansion
=$enableval
2469 # Check whether --enable-casemod-attributes was given.
2470 if test "${enable_casemod_attributes+set}" = set; then
2471 enableval
=$enable_casemod_attributes; opt_casemod_attrs
=$enableval
2474 # Check whether --enable-casemod-expansions was given.
2475 if test "${enable_casemod_expansions+set}" = set; then
2476 enableval
=$enable_casemod_expansions; opt_casemod_expansions
=$enableval
2479 # Check whether --enable-command-timing was given.
2480 if test "${enable_command_timing+set}" = set; then
2481 enableval
=$enable_command_timing; opt_command_timing
=$enableval
2484 # Check whether --enable-cond-command was given.
2485 if test "${enable_cond_command+set}" = set; then
2486 enableval
=$enable_cond_command; opt_cond_command
=$enableval
2489 # Check whether --enable-cond-regexp was given.
2490 if test "${enable_cond_regexp+set}" = set; then
2491 enableval
=$enable_cond_regexp; opt_cond_regexp
=$enableval
2494 # Check whether --enable-coprocesses was given.
2495 if test "${enable_coprocesses+set}" = set; then
2496 enableval
=$enable_coprocesses; opt_coproc
=$enableval
2499 # Check whether --enable-debugger was given.
2500 if test "${enable_debugger+set}" = set; then
2501 enableval
=$enable_debugger; opt_debugger
=$enableval
2504 # Check whether --enable-directory-stack was given.
2505 if test "${enable_directory_stack+set}" = set; then
2506 enableval
=$enable_directory_stack; opt_dirstack
=$enableval
2509 # Check whether --enable-disabled-builtins was given.
2510 if test "${enable_disabled_builtins+set}" = set; then
2511 enableval
=$enable_disabled_builtins; opt_disabled_builtins
=$enableval
2514 # Check whether --enable-dparen-arithmetic was given.
2515 if test "${enable_dparen_arithmetic+set}" = set; then
2516 enableval
=$enable_dparen_arithmetic; opt_dparen_arith
=$enableval
2519 # Check whether --enable-extended-glob was given.
2520 if test "${enable_extended_glob+set}" = set; then
2521 enableval
=$enable_extended_glob; opt_extended_glob
=$enableval
2524 # Check whether --enable-extended-glob-default was given.
2525 if test "${enable_extended_glob_default+set}" = set; then
2526 enableval
=$enable_extended_glob_default; opt_extglob_default
=$enableval
2529 # Check whether --enable-help-builtin was given.
2530 if test "${enable_help_builtin+set}" = set; then
2531 enableval
=$enable_help_builtin; opt_help
=$enableval
2534 # Check whether --enable-history was given.
2535 if test "${enable_history+set}" = set; then
2536 enableval
=$enable_history; opt_history
=$enableval
2539 # Check whether --enable-job-control was given.
2540 if test "${enable_job_control+set}" = set; then
2541 enableval
=$enable_job_control; opt_job_control
=$enableval
2544 # Check whether --enable-multibyte was given.
2545 if test "${enable_multibyte+set}" = set; then
2546 enableval
=$enable_multibyte; opt_multibyte
=$enableval
2549 # Check whether --enable-net-redirections was given.
2550 if test "${enable_net_redirections+set}" = set; then
2551 enableval
=$enable_net_redirections; opt_net_redirs
=$enableval
2554 # Check whether --enable-process-substitution was given.
2555 if test "${enable_process_substitution+set}" = set; then
2556 enableval
=$enable_process_substitution; opt_process_subst
=$enableval
2559 # Check whether --enable-progcomp was given.
2560 if test "${enable_progcomp+set}" = set; then
2561 enableval
=$enable_progcomp; opt_progcomp
=$enableval
2564 # Check whether --enable-prompt-string-decoding was given.
2565 if test "${enable_prompt_string_decoding+set}" = set; then
2566 enableval
=$enable_prompt_string_decoding; opt_prompt_decoding
=$enableval
2569 # Check whether --enable-readline was given.
2570 if test "${enable_readline+set}" = set; then
2571 enableval
=$enable_readline; opt_readline
=$enableval
2574 # Check whether --enable-restricted was given.
2575 if test "${enable_restricted+set}" = set; then
2576 enableval
=$enable_restricted; opt_restricted
=$enableval
2579 # Check whether --enable-select was given.
2580 if test "${enable_select+set}" = set; then
2581 enableval
=$enable_select; opt_select
=$enableval
2584 # Check whether --enable-separate-helpfiles was given.
2585 if test "${enable_separate_helpfiles+set}" = set; then
2586 enableval
=$enable_separate_helpfiles; opt_separate_help
=$enableval
2589 # Check whether --enable-single-help-strings was given.
2590 if test "${enable_single_help_strings+set}" = set; then
2591 enableval
=$enable_single_help_strings; opt_single_longdoc_strings
=$enableval
2594 # Check whether --enable-strict-posix-default was given.
2595 if test "${enable_strict_posix_default+set}" = set; then
2596 enableval
=$enable_strict_posix_default; opt_strict_posix
=$enableval
2599 # Check whether --enable-usg-echo-default was given.
2600 if test "${enable_usg_echo_default+set}" = set; then
2601 enableval
=$enable_usg_echo_default; opt_xpg_echo
=$enableval
2604 # Check whether --enable-xpg-echo-default was given.
2605 if test "${enable_xpg_echo_default+set}" = set; then
2606 enableval
=$enable_xpg_echo_default; opt_xpg_echo
=$enableval
2610 # Check whether --enable-mem-scramble was given.
2611 if test "${enable_mem_scramble+set}" = set; then
2612 enableval
=$enable_mem_scramble; opt_memscramble
=$enableval
2615 # Check whether --enable-profiling was given.
2616 if test "${enable_profiling+set}" = set; then
2617 enableval
=$enable_profiling; opt_profiling
=$enableval
2620 # Check whether --enable-static-link was given.
2621 if test "${enable_static_link+set}" = set; then
2622 enableval
=$enable_static_link; opt_static_link
=$enableval
2628 if test $opt_alias = yes; then
2629 cat >>confdefs.h
<<\_ACEOF
2634 if test $opt_dirstack = yes; then
2635 cat >>confdefs.h
<<\_ACEOF
2636 #define PUSHD_AND_POPD 1
2640 if test $opt_restricted = yes; then
2641 cat >>confdefs.h
<<\_ACEOF
2642 #define RESTRICTED_SHELL 1
2646 if test $opt_process_subst = yes; then
2647 cat >>confdefs.h
<<\_ACEOF
2648 #define PROCESS_SUBSTITUTION 1
2652 if test $opt_prompt_decoding = yes; then
2653 cat >>confdefs.h
<<\_ACEOF
2654 #define PROMPT_STRING_DECODE 1
2658 if test $opt_select = yes; then
2659 cat >>confdefs.h
<<\_ACEOF
2660 #define SELECT_COMMAND 1
2664 if test $opt_help = yes; then
2665 cat >>confdefs.h
<<\_ACEOF
2666 #define HELP_BUILTIN 1
2670 if test $opt_array_variables = yes; then
2671 cat >>confdefs.h
<<\_ACEOF
2672 #define ARRAY_VARS 1
2676 if test $opt_dparen_arith = yes; then
2677 cat >>confdefs.h
<<\_ACEOF
2678 #define DPAREN_ARITHMETIC 1
2682 if test $opt_brace_expansion = yes; then
2683 cat >>confdefs.h
<<\_ACEOF
2684 #define BRACE_EXPANSION 1
2688 if test $opt_disabled_builtins = yes; then
2689 cat >>confdefs.h
<<\_ACEOF
2690 #define DISABLED_BUILTINS 1
2694 if test $opt_command_timing = yes; then
2695 cat >>confdefs.h
<<\_ACEOF
2696 #define COMMAND_TIMING 1
2700 if test $opt_xpg_echo = yes ; then
2701 cat >>confdefs.h
<<\_ACEOF
2702 #define DEFAULT_ECHO_TO_XPG 1
2706 if test $opt_strict_posix = yes; then
2707 cat >>confdefs.h
<<\_ACEOF
2708 #define STRICT_POSIX 1
2712 if test $opt_extended_glob = yes ; then
2713 cat >>confdefs.h
<<\_ACEOF
2714 #define EXTENDED_GLOB 1
2718 if test $opt_extglob_default = yes; then
2719 cat >>confdefs.h
<<\_ACEOF
2720 #define EXTGLOB_DEFAULT 1
2724 cat >>confdefs.h
<<\_ACEOF
2725 #define EXTGLOB_DEFAULT 0
2729 if test $opt_cond_command = yes ; then
2730 cat >>confdefs.h
<<\_ACEOF
2731 #define COND_COMMAND 1
2735 if test $opt_cond_regexp = yes ; then
2736 cat >>confdefs.h
<<\_ACEOF
2737 #define COND_REGEXP 1
2741 if test $opt_coproc = yes; then
2742 cat >>confdefs.h
<<\_ACEOF
2743 #define COPROCESS_SUPPORT 1
2747 if test $opt_arith_for_command = yes; then
2748 cat >>confdefs.h
<<\_ACEOF
2749 #define ARITH_FOR_COMMAND 1
2753 if test $opt_net_redirs = yes; then
2754 cat >>confdefs.h
<<\_ACEOF
2755 #define NETWORK_REDIRECTIONS 1
2759 if test $opt_progcomp = yes; then
2760 cat >>confdefs.h
<<\_ACEOF
2761 #define PROGRAMMABLE_COMPLETION 1
2765 if test $opt_multibyte = no
; then
2766 cat >>confdefs.h
<<\_ACEOF
2767 #define NO_MULTIBYTE_SUPPORT 1
2771 if test $opt_debugger = yes; then
2772 cat >>confdefs.h
<<\_ACEOF
2777 if test $opt_casemod_attrs = yes; then
2778 cat >>confdefs.h
<<\_ACEOF
2779 #define CASEMOD_ATTRS 1
2783 if test $opt_casemod_expansions = yes; then
2784 cat >>confdefs.h
<<\_ACEOF
2785 #define CASEMOD_EXPANSIONS 1
2790 if test $opt_memscramble = yes; then
2791 cat >>confdefs.h
<<\_ACEOF
2792 #define MEMSCRAMBLE 1
2797 if test "$opt_minimal_config" = yes; then
2798 TESTSCRIPT
=run-minimal
2803 HELPDIR
= HELPDIRDEFINE
= HELPINSTALL
=
2804 if test "$opt_separate_help" != no
; then
2805 if test "$opt_separate_help" = "yes" ; then
2806 HELPDIR
='${datadir}/bash'
2808 HELPDIR
=$opt_separate_help
2810 HELPDIRDEFINE
='-H ${HELPDIR}'
2811 HELPINSTALL
='install-help'
2814 if test "$opt_single_longdoc_strings" != "yes"; then
2836 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
2840 ac_cpp
='$CPP $CPPFLAGS'
2841 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2844 if test -n "$ac_tool_prefix"; then
2845 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2846 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2847 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if test "${ac_cv_prog_CC+set}" = set; then
2850 $as_echo_n "(cached) " >&6
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC
="$CC" # Let the user override the test.
2855 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2859 test -z "$as_dir" && as_dir
=.
2860 for ac_exec_ext
in '' $ac_executable_extensions; do
2861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2863 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 if test -n "$CC"; then
2874 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2875 $as_echo "$CC" >&6; }
2877 { $as_echo "$as_me:$LINENO: result: no" >&5
2878 $as_echo "no" >&6; }
2883 if test -z "$ac_cv_prog_CC"; then
2885 # Extract the first word of "gcc", so it can be a program name with args.
2886 set dummy gcc
; ac_word
=$2
2887 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2890 $as_echo_n "(cached) " >&6
2892 if test -n "$ac_ct_CC"; then
2893 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2899 test -z "$as_dir" && as_dir
=.
2900 for ac_exec_ext
in '' $ac_executable_extensions; do
2901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902 ac_cv_prog_ac_ct_CC
="gcc"
2903 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2913 if test -n "$ac_ct_CC"; then
2914 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2915 $as_echo "$ac_ct_CC" >&6; }
2917 { $as_echo "$as_me:$LINENO: result: no" >&5
2918 $as_echo "no" >&6; }
2921 if test "x$ac_ct_CC" = x
; then
2924 case $cross_compiling:$ac_tool_warned in
2926 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2928 ac_tool_warned
=yes ;;
2936 if test -z "$CC"; then
2937 if test -n "$ac_tool_prefix"; then
2938 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2939 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2940 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if test "${ac_cv_prog_CC+set}" = set; then
2943 $as_echo_n "(cached) " >&6
2945 if test -n "$CC"; then
2946 ac_cv_prog_CC
="$CC" # Let the user override the test.
2948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir
=.
2953 for ac_exec_ext
in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2956 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 if test -n "$CC"; then
2967 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2968 $as_echo "$CC" >&6; }
2970 { $as_echo "$as_me:$LINENO: result: no" >&5
2971 $as_echo "no" >&6; }
2977 if test -z "$CC"; then
2978 # Extract the first word of "cc", so it can be a program name with args.
2979 set dummy cc
; ac_word
=$2
2980 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if test "${ac_cv_prog_CC+set}" = set; then
2983 $as_echo_n "(cached) " >&6
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC
="$CC" # Let the user override the test.
2989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir
=.
2994 for ac_exec_ext
in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2997 ac_prog_rejected
=yes
3001 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 if test $ac_prog_rejected = yes; then
3009 # We found a bogon in the path, so make sure we never use it.
3010 set dummy
$ac_cv_prog_CC
3012 if test $# != 0; then
3013 # We chose a different compiler from the bogus one.
3014 # However, it has the same basename, so the bogon will be chosen
3015 # first if we set CC to just the basename; use the full file name.
3017 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3023 if test -n "$CC"; then
3024 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3025 $as_echo "$CC" >&6; }
3027 { $as_echo "$as_me:$LINENO: result: no" >&5
3028 $as_echo "no" >&6; }
3033 if test -z "$CC"; then
3034 if test -n "$ac_tool_prefix"; then
3035 for ac_prog
in cl.exe
3037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3038 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3039 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if test "${ac_cv_prog_CC+set}" = set; then
3042 $as_echo_n "(cached) " >&6
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC
="$CC" # Let the user override the test.
3047 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3051 test -z "$as_dir" && as_dir
=.
3052 for ac_exec_ext
in '' $ac_executable_extensions; do
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3055 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 if test -n "$CC"; then
3066 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3067 $as_echo "$CC" >&6; }
3069 { $as_echo "$as_me:$LINENO: result: no" >&5
3070 $as_echo "no" >&6; }
3074 test -n "$CC" && break
3077 if test -z "$CC"; then
3079 for ac_prog
in cl.exe
3081 # Extract the first word of "$ac_prog", so it can be a program name with args.
3082 set dummy
$ac_prog; ac_word
=$2
3083 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3086 $as_echo_n "(cached) " >&6
3088 if test -n "$ac_ct_CC"; then
3089 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3095 test -z "$as_dir" && as_dir
=.
3096 for ac_exec_ext
in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_ac_ct_CC
="$ac_prog"
3099 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3109 if test -n "$ac_ct_CC"; then
3110 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3111 $as_echo "$ac_ct_CC" >&6; }
3113 { $as_echo "$as_me:$LINENO: result: no" >&5
3114 $as_echo "no" >&6; }
3118 test -n "$ac_ct_CC" && break
3121 if test "x$ac_ct_CC" = x
; then
3124 case $cross_compiling:$ac_tool_warned in
3126 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128 ac_tool_warned
=yes ;;
3137 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3140 See \`config.log' for more details." >&5
3141 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3142 See \`config.log' for more details." >&2;}
3143 { (exit 1); exit 1; }; }; }
3145 # Provide some information about the compiler.
3146 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3149 { (ac_try
="$ac_compiler --version >&5"
3151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3155 $as_echo "$ac_try_echo") >&5
3156 (eval "$ac_compiler --version >&5") 2>&5
3158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }
3160 { (ac_try="$ac_compiler -v >&5"
3162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3163 *) ac_try_echo
=$ac_try;;
3165 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3166 $as_echo "$ac_try_echo") >&5
3167 (eval "$ac_compiler -v >&5") 2>&5
3169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }
3171 { (ac_try
="$ac_compiler -V >&5"
3173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3177 $as_echo "$ac_try_echo") >&5
3178 (eval "$ac_compiler -V >&5") 2>&5
3180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }
3183 cat >conftest.$ac_ext <<_ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3198 ac_clean_files_save=$ac_clean_files
3199 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3200 # Try to create an executable without -o first, disregard a.out.
3201 # It will help us diagnose broken compilers, and finding out an intuition
3203 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3204 $as_echo_n "checking for C compiler default output file name... " >&6; }
3205 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3207 # The possible output files:
3208 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3211 for ac_file in $ac_files
3214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3215 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3220 if { (ac_try="$ac_link_default"
3222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3223 *) ac_try_echo
=$ac_try;;
3225 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3226 $as_echo "$ac_try_echo") >&5
3227 (eval "$ac_link_default") 2>&5
3229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; then
3231 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3232 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3233 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3234 # so that the user can short-circuit this test for compilers unknown to
3236 for ac_file
in $ac_files ''
3238 test -f "$ac_file" ||
continue
3240 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3243 # We found the default executable, but exeext='' is most
3247 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3249 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3251 # We set ac_cv_exeext here because the later test for it is not
3252 # safe: cross compilers may not add the suffix if given an `-o'
3253 # argument, so we may need to know it at that point already.
3254 # Even if this section looks crufty: it has the advantage of
3261 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3267 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3268 $as_echo "$ac_file" >&6; }
3269 if test -z "$ac_file"; then
3270 $as_echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.
$ac_ext >&5
3273 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3276 See \`config.log' for more details." >&5
3277 $as_echo "$as_me: error: C compiler cannot create executables
3278 See \`config.log' for more details." >&2;}
3279 { (exit 77); exit 77; }; }; }
3282 ac_exeext
=$ac_cv_exeext
3284 # Check that the compiler produces executables we can run. If not, either
3285 # the compiler is broken, or we cross compile.
3286 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3287 $as_echo_n "checking whether the C compiler works... " >&6; }
3288 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3289 # If not cross compiling, check that we can run a simple program.
3290 if test "$cross_compiling" != yes; then
3291 if { ac_try
='./$ac_file'
3292 { (case "(($ac_try" in
3293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3297 $as_echo "$ac_try_echo") >&5
3298 (eval "$ac_try") 2>&5
3300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; }; then
3304 if test "$cross_compiling" = maybe; then
3307 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
3310 If you meant to cross compile
, use \
`--host'.
3311 See \`config.log
' for more details." >&5
3312 $as_echo "$as_me: error: cannot run C compiled programs.
3313 If you meant to cross compile, use \`--host'.
3314 See \
`config.log' for more details." >&2;}
3315 { (exit 1); exit 1; }; }; }
3319 { $as_echo "$as_me:$LINENO: result: yes" >&5
3320 $as_echo "yes" >&6; }
3322 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3323 ac_clean_files=$ac_clean_files_save
3324 # Check that the compiler produces executables we can run. If not, either
3325 # the compiler is broken, or we cross compile.
3326 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3327 $as_echo_n "checking whether we are cross compiling... " >&6; }
3328 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3329 $as_echo "$cross_compiling" >&6; }
3331 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3332 $as_echo_n "checking for suffix of executables... " >&6; }
3333 if { (ac_try="$ac_link"
3335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3336 *) ac_try_echo
=$ac_try;;
3338 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3339 $as_echo "$ac_try_echo") >&5
3340 (eval "$ac_link") 2>&5
3342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; then
3344 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3345 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3346 # work properly (i.e., refer to `conftest.exe'), while it won't with
3348 for ac_file
in conftest.exe conftest conftest.
*; do
3349 test -f "$ac_file" ||
continue
3351 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3352 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3358 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3361 See \`config.log' for more details." >&5
3362 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3363 See \`config.log' for more details." >&2;}
3364 { (exit 1); exit 1; }; }; }
3367 rm -f conftest
$ac_cv_exeext
3368 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3369 $as_echo "$ac_cv_exeext" >&6; }
3371 rm -f conftest.
$ac_ext
3372 EXEEXT
=$ac_cv_exeext
3374 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3375 $as_echo_n "checking for suffix of object files... " >&6; }
3376 if test "${ac_cv_objext+set}" = set; then
3377 $as_echo_n "(cached) " >&6
3379 cat >conftest.
$ac_ext <<_ACEOF
3382 cat confdefs.h
>>conftest.
$ac_ext
3383 cat >>conftest.
$ac_ext <<_ACEOF
3384 /* end confdefs.h. */
3394 rm -f conftest.o conftest.obj
3395 if { (ac_try
="$ac_compile"
3397 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3401 $as_echo "$ac_try_echo") >&5
3402 (eval "$ac_compile") 2>&5
3404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; then
3406 for ac_file in conftest.o conftest.obj conftest.*; do
3407 test -f "$ac_file" || continue;
3409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3410 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3415 $as_echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3418 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3421 See \
`config.log' for more details." >&5
3422 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3423 See \`config.log
' for more details." >&2;}
3424 { (exit 1); exit 1; }; }; }
3427 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3429 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3430 $as_echo "$ac_cv_objext" >&6; }
3431 OBJEXT=$ac_cv_objext
3433 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3434 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3435 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3436 $as_echo_n "(cached) " >&6
3438 cat >conftest.$ac_ext <<_ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3456 rm -f conftest.$ac_objext
3457 if { (ac_try="$ac_compile"
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3463 $as_echo "$ac_try_echo") >&5
3464 (eval "$ac_compile") 2>conftest.er1
3466 grep -v '^
*+' conftest.er1 >conftest.err
3468 cat conftest.err >&5
3469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } && {
3471 test -z "$ac_c_werror_flag" ||
3472 test ! -s conftest.err
3473 } && test -s conftest.$ac_objext; then
3476 $as_echo "$as_me: failed program was:" >&5
3477 sed 's
/^
/|
/' conftest.$ac_ext >&5
3482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3486 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3487 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3488 if test $ac_compiler_gnu = yes; then
3493 ac_test_CFLAGS=${CFLAGS+set}
3494 ac_save_CFLAGS=$CFLAGS
3495 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3496 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3497 if test "${ac_cv_prog_cc_g+set}" = set; then
3498 $as_echo_n "(cached) " >&6
3500 ac_save_c_werror_flag=$ac_c_werror_flag
3501 ac_c_werror_flag=yes
3504 cat >conftest.$ac_ext <<_ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3519 rm -f conftest.$ac_objext
3520 if { (ac_try="$ac_compile"
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3526 $as_echo "$ac_try_echo") >&5
3527 (eval "$ac_compile") 2>conftest.er1
3529 grep -v '^
*+' conftest.er1 >conftest.err
3531 cat conftest.err >&5
3532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } && {
3534 test -z "$ac_c_werror_flag" ||
3535 test ! -s conftest.err
3536 } && test -s conftest.$ac_objext; then
3539 $as_echo "$as_me: failed program was:" >&5
3540 sed 's
/^
/|
/' conftest.$ac_ext >&5
3543 cat >conftest.$ac_ext <<_ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3558 rm -f conftest.$ac_objext
3559 if { (ac_try="$ac_compile"
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3565 $as_echo "$ac_try_echo") >&5
3566 (eval "$ac_compile") 2>conftest.er1
3568 grep -v '^
*+' conftest.er1 >conftest.err
3570 cat conftest.err >&5
3571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } && {
3573 test -z "$ac_c_werror_flag" ||
3574 test ! -s conftest.err
3575 } && test -s conftest.$ac_objext; then
3578 $as_echo "$as_me: failed program was:" >&5
3579 sed 's
/^
/|
/' conftest.$ac_ext >&5
3581 ac_c_werror_flag=$ac_save_c_werror_flag
3583 cat >conftest.$ac_ext <<_ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3598 rm -f conftest.$ac_objext
3599 if { (ac_try="$ac_compile"
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3605 $as_echo "$ac_try_echo") >&5
3606 (eval "$ac_compile") 2>conftest.er1
3608 grep -v '^
*+' conftest.er1 >conftest.err
3610 cat conftest.err >&5
3611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } && {
3613 test -z "$ac_c_werror_flag" ||
3614 test ! -s conftest.err
3615 } && test -s conftest.$ac_objext; then
3618 $as_echo "$as_me: failed program was:" >&5
3619 sed 's
/^
/|
/' conftest.$ac_ext >&5
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631 ac_c_werror_flag=$ac_save_c_werror_flag
3633 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3634 $as_echo "$ac_cv_prog_cc_g" >&6; }
3635 if test "$ac_test_CFLAGS" = set; then
3636 CFLAGS=$ac_save_CFLAGS
3637 elif test $ac_cv_prog_cc_g = yes; then
3638 if test "$GCC" = yes; then
3644 if test "$GCC" = yes; then
3650 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3651 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3652 if test "${ac_cv_prog_cc_c89+set}" = set; then
3653 $as_echo_n "(cached) " >&6
3655 ac_cv_prog_cc_c89=no
3657 cat >conftest.$ac_ext <<_ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3665 #include <sys/types.h>
3666 #include <sys/stat.h>
3667 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3668 struct buf
{ int x
; };
3669 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3670 static char
*e
(p
, i
)
3676 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3681 s
= g
(p
, va_arg
(v
,int
));
3686 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3687 function prototypes and stuff
, but not
'\xHH' hex character constants.
3688 These don
't provoke an error unfortunately, instead are silently treated
3689 as 'x
'. The following induces an error, until -std is added to get
3690 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3691 array size at least. It's necessary to
write '\x00'==0 to get something
3692 that
's true only with -std. */
3693 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3695 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3696 inside strings and character constants. */
3698 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3700 int test (int i, double x);
3701 struct s1 {int (*f) (int a);};
3702 struct s2 {int (*f) (double a);};
3703 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3709 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3714 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3715 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3717 CC="$ac_save_CC $ac_arg"
3718 rm -f conftest.$ac_objext
3719 if { (ac_try="$ac_compile"
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3725 $as_echo "$ac_try_echo") >&5
3726 (eval "$ac_compile") 2>conftest.er1
3728 grep -v '^
*+' conftest.er1 >conftest.err
3730 cat conftest.err >&5
3731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } && {
3733 test -z "$ac_c_werror_flag" ||
3734 test ! -s conftest.err
3735 } && test -s conftest.$ac_objext; then
3736 ac_cv_prog_cc_c89=$ac_arg
3738 $as_echo "$as_me: failed program was:" >&5
3739 sed 's
/^
/|
/' conftest.$ac_ext >&5
3744 rm -f core conftest.err conftest.$ac_objext
3745 test "x$ac_cv_prog_cc_c89" != "xno" && break
3747 rm -f conftest.$ac_ext
3752 case "x$ac_cv_prog_cc_c89" in
3754 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3755 $as_echo "none needed" >&6; } ;;
3757 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3758 $as_echo "unsupported" >&6; } ;;
3760 CC="$CC $ac_cv_prog_cc_c89"
3761 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3762 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3767 ac_cpp='$CPP $CPPFLAGS'
3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3769 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3776 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3777 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3778 $as_echo_n "(cached) " >&6
3780 ac_check_lib_save_LIBS=$LIBS
3781 LIBS="-lcposix $LIBS"
3782 cat >conftest.$ac_ext <<_ACEOF
3785 cat confdefs.h >>conftest.$ac_ext
3786 cat >>conftest.$ac_ext <<_ACEOF
3787 /* end confdefs.h. */
3789 /* Override any GCC internal prototype to avoid an error.
3790 Use char because int might match the return type of a GCC
3791 builtin and then its argument prototype would still apply. */
3804 rm -f conftest.$ac_objext conftest$ac_exeext
3805 if { (ac_try="$ac_link"
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_link") 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); } && {
3819 test -z "$ac_c_werror_flag" ||
3820 test ! -s conftest.err
3821 } && test -s conftest$ac_exeext && {
3822 test "$cross_compiling" = yes ||
3823 $as_test_x conftest$ac_exeext
3825 ac_cv_lib_cposix_strerror=yes
3827 $as_echo "$as_me: failed program was:" >&5
3828 sed 's
/^
/|
/' conftest.$ac_ext >&5
3830 ac_cv_lib_cposix_strerror=no
3833 rm -rf conftest.dSYM
3834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3835 conftest$ac_exeext conftest.$ac_ext
3836 LIBS=$ac_check_lib_save_LIBS
3838 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3839 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3840 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
3841 LIBS="$LIBS -lcposix"
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3849 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3852 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3853 # On Suns, sometimes $CPP names a directory.
3854 if test -n "$CPP" && test -d "$CPP"; then
3857 if test -z "$CPP"; then
3858 if test "${ac_cv_prog_CPP+set}" = set; then
3859 $as_echo_n "(cached) " >&6
3861 # Double quotes because CPP needs to be expanded
3862 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3865 for ac_c_preproc_warn_flag in '' yes
3867 # Use a header file that comes with gcc, so configuring glibc
3868 # with a fresh cross-compiler works.
3869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3870 # <limits.h> exists even on freestanding compilers.
3871 # On the NeXT, cc -E runs the code through the compiler's parser
,
3872 # not just through cpp. "Syntax error" is here to catch this case.
3873 cat >conftest.
$ac_ext <<_ACEOF
3876 cat confdefs.h
>>conftest.
$ac_ext
3877 cat >>conftest.
$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3880 # include <limits.h>
3882 # include <assert.h>
3886 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3892 $as_echo "$ac_try_echo") >&5
3893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3895 grep -v '^ *+' conftest.er1 >conftest.err
3897 cat conftest.err >&5
3898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } >/dev/null && {
3900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3901 test ! -s conftest.err
3905 $as_echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3908 # Broken: fails on valid input.
3912 rm -f conftest.err conftest.$ac_ext
3914 # OK, works on sane cases. Now check whether nonexistent headers
3915 # can be detected and how.
3916 cat >conftest.$ac_ext <<_ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h. */
3922 #include <ac_nonexistent.h>
3924 if { (ac_try="$ac_cpp conftest.$ac_ext"
3926 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3927 *) ac_try_echo
=$ac_try;;
3929 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3930 $as_echo "$ac_try_echo") >&5
3931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3933 grep -v '^ *+' conftest.er1
>conftest.err
3935 cat conftest.err
>&5
3936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } >/dev
/null
&& {
3938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3939 test ! -s conftest.err
3941 # Broken: success on invalid input.
3944 $as_echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.
$ac_ext >&5
3947 # Passes both tests.
3952 rm -f conftest.err conftest.
$ac_ext
3955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3956 rm -f conftest.err conftest.
$ac_ext
3957 if $ac_preproc_ok; then
3969 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3970 $as_echo "$CPP" >&6; }
3972 for ac_c_preproc_warn_flag
in '' yes
3974 # Use a header file that comes with gcc, so configuring glibc
3975 # with a fresh cross-compiler works.
3976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3977 # <limits.h> exists even on freestanding compilers.
3978 # On the NeXT, cc -E runs the code through the compiler's parser,
3979 # not just through cpp. "Syntax error" is here to catch this case.
3980 cat >conftest.
$ac_ext <<_ACEOF
3983 cat confdefs.h
>>conftest.
$ac_ext
3984 cat >>conftest.
$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3987 # include <limits.h>
3989 # include <assert.h>
3993 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3996 *) ac_try_echo=$ac_try;;
3998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3999 $as_echo "$ac_try_echo") >&5
4000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4002 grep -v '^ *+' conftest.er1 >conftest.err
4004 cat conftest.err >&5
4005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } >/dev/null && {
4007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4008 test ! -s conftest.err
4012 $as_echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4015 # Broken: fails on valid input.
4019 rm -f conftest.err conftest.$ac_ext
4021 # OK, works on sane cases. Now check whether nonexistent headers
4022 # can be detected and how.
4023 cat >conftest.$ac_ext <<_ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h. */
4029 #include <ac_nonexistent.h>
4031 if { (ac_try="$ac_cpp conftest.$ac_ext"
4033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4034 *) ac_try_echo
=$ac_try;;
4036 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4037 $as_echo "$ac_try_echo") >&5
4038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4040 grep -v '^ *+' conftest.er1
>conftest.err
4042 cat conftest.err
>&5
4043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } >/dev
/null
&& {
4045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4046 test ! -s conftest.err
4048 # Broken: success on invalid input.
4051 $as_echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.
$ac_ext >&5
4054 # Passes both tests.
4059 rm -f conftest.err conftest.
$ac_ext
4062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4063 rm -f conftest.err conftest.
$ac_ext
4064 if $ac_preproc_ok; then
4067 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4069 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4070 See \`config.log' for more details." >&5
4071 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4072 See \`config.log' for more details." >&2;}
4073 { (exit 1); exit 1; }; }; }
4077 ac_cpp
='$CPP $CPPFLAGS'
4078 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4083 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4084 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4085 if test "${ac_cv_path_GREP+set}" = set; then
4086 $as_echo_n "(cached) " >&6
4088 if test -z "$GREP"; then
4089 ac_path_GREP_found
=false
4090 # Loop through the user's path and test for each of PROGNAME-LIST
4091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4092 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4095 test -z "$as_dir" && as_dir
=.
4096 for ac_prog
in grep ggrep
; do
4097 for ac_exec_ext
in '' $ac_executable_extensions; do
4098 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4099 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4100 # Check for GNU ac_path_GREP and select it if it is found.
4101 # Check for GNU $ac_path_GREP
4102 case `"$ac_path_GREP" --version 2>&1` in
4104 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4107 $as_echo_n 0123456789 >"conftest.in"
4110 cat "conftest.in" "conftest.in" >"conftest.tmp"
4111 mv "conftest.tmp" "conftest.in"
4112 cp "conftest.in" "conftest.nl"
4113 $as_echo 'GREP' >> "conftest.nl"
4114 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4115 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4116 ac_count
=`expr $ac_count + 1`
4117 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4118 # Best one so far, save it but keep looking for a better one
4119 ac_cv_path_GREP
="$ac_path_GREP"
4120 ac_path_GREP_max
=$ac_count
4122 # 10*(2^10) chars as input seems more than enough
4123 test $ac_count -gt 10 && break
4125 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4128 $ac_path_GREP_found && break 3
4133 if test -z "$ac_cv_path_GREP"; then
4134 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4135 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4136 { (exit 1); exit 1; }; }
4139 ac_cv_path_GREP
=$GREP
4143 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4144 $as_echo "$ac_cv_path_GREP" >&6; }
4145 GREP
="$ac_cv_path_GREP"
4148 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4149 $as_echo_n "checking for egrep... " >&6; }
4150 if test "${ac_cv_path_EGREP+set}" = set; then
4151 $as_echo_n "(cached) " >&6
4153 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4154 then ac_cv_path_EGREP
="$GREP -E"
4156 if test -z "$EGREP"; then
4157 ac_path_EGREP_found
=false
4158 # Loop through the user's path and test for each of PROGNAME-LIST
4159 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4160 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4163 test -z "$as_dir" && as_dir
=.
4164 for ac_prog
in egrep; do
4165 for ac_exec_ext
in '' $ac_executable_extensions; do
4166 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4167 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4168 # Check for GNU ac_path_EGREP and select it if it is found.
4169 # Check for GNU $ac_path_EGREP
4170 case `"$ac_path_EGREP" --version 2>&1` in
4172 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4175 $as_echo_n 0123456789 >"conftest.in"
4178 cat "conftest.in" "conftest.in" >"conftest.tmp"
4179 mv "conftest.tmp" "conftest.in"
4180 cp "conftest.in" "conftest.nl"
4181 $as_echo 'EGREP' >> "conftest.nl"
4182 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4183 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4184 ac_count
=`expr $ac_count + 1`
4185 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4186 # Best one so far, save it but keep looking for a better one
4187 ac_cv_path_EGREP
="$ac_path_EGREP"
4188 ac_path_EGREP_max
=$ac_count
4190 # 10*(2^10) chars as input seems more than enough
4191 test $ac_count -gt 10 && break
4193 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4196 $ac_path_EGREP_found && break 3
4201 if test -z "$ac_cv_path_EGREP"; then
4202 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4203 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4204 { (exit 1); exit 1; }; }
4207 ac_cv_path_EGREP
=$EGREP
4212 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4213 $as_echo "$ac_cv_path_EGREP" >&6; }
4214 EGREP
="$ac_cv_path_EGREP"
4217 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4218 $as_echo_n "checking for ANSI C header files... " >&6; }
4219 if test "${ac_cv_header_stdc+set}" = set; then
4220 $as_echo_n "(cached) " >&6
4222 cat >conftest.
$ac_ext <<_ACEOF
4225 cat confdefs.h
>>conftest.
$ac_ext
4226 cat >>conftest.
$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4241 rm -f conftest.
$ac_objext
4242 if { (ac_try
="$ac_compile"
4244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4245 *) ac_try_echo=$ac_try;;
4247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4248 $as_echo "$ac_try_echo") >&5
4249 (eval "$ac_compile") 2>conftest.er1
4251 grep -v '^ *+' conftest.er1 >conftest.err
4253 cat conftest.err >&5
4254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } && {
4256 test -z "$ac_c_werror_flag" ||
4257 test ! -s conftest.err
4258 } && test -s conftest.$ac_objext; then
4259 ac_cv_header_stdc=yes
4261 $as_echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.$ac_ext >&5
4264 ac_cv_header_stdc=no
4267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269 if test $ac_cv_header_stdc = yes; then
4270 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4271 cat >conftest.$ac_ext <<_ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4281 $EGREP "memchr" >/dev/null 2>&1; then
4284 ac_cv_header_stdc=no
4290 if test $ac_cv_header_stdc = yes; then
4291 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4292 cat >conftest.$ac_ext <<_ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4302 $EGREP "free" >/dev/null 2>&1; then
4305 ac_cv_header_stdc=no
4311 if test $ac_cv_header_stdc = yes; then
4312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4313 if test "$cross_compiling" = yes; then
4316 cat >conftest.$ac_ext <<_ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4324 #if ((' ' & 0x0FF) == 0x020)
4325 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4326 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4328 # define ISLOWER(c) \
4329 (('a' <= (c) && (c) <= 'i') \
4330 || ('j' <= (c) && (c) <= 'r') \
4331 || ('s' <= (c) && (c) <= 'z'))
4332 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4340 for (i = 0; i < 256; i++)
4341 if (XOR (islower (i), ISLOWER (i))
4342 || toupper (i) != TOUPPER (i))
4347 rm -f conftest$ac_exeext
4348 if { (ac_try="$ac_link"
4350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4351 *) ac_try_echo
=$ac_try;;
4353 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4354 $as_echo "$ac_try_echo") >&5
4355 (eval "$ac_link") 2>&5
4357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4359 { (case "(($ac_try" in
4360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4364 $as_echo "$ac_try_echo") >&5
4365 (eval "$ac_try") 2>&5
4367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
4371 $as_echo "$as_me: program exited with status $ac_status" >&5
4372 $as_echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4376 ac_cv_header_stdc=no
4378 rm -rf conftest.dSYM
4379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4385 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4386 $as_echo "$ac_cv_header_stdc" >&6; }
4387 if test $ac_cv_header_stdc = yes; then
4389 cat >>confdefs.h <<\_ACEOF
4390 #define STDC_HEADERS 1
4395 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4405 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4406 inttypes.h stdint.h unistd.h
4408 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4409 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4410 $as_echo_n "checking for $ac_header... " >&6; }
4411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4412 $as_echo_n "(cached) " >&6
4414 cat >conftest.$ac_ext <<_ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4420 $ac_includes_default
4422 #include <$ac_header>
4424 rm -f conftest.$ac_objext
4425 if { (ac_try="$ac_compile"
4427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4428 *) ac_try_echo
=$ac_try;;
4430 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4431 $as_echo "$ac_try_echo") >&5
4432 (eval "$ac_compile") 2>conftest.er1
4434 grep -v '^ *+' conftest.er1
>conftest.err
4436 cat conftest.err
>&5
4437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } && {
4439 test -z "$ac_c_werror_flag" ||
4440 test ! -s conftest.err
4441 } && test -s conftest.
$ac_objext; then
4442 eval "$as_ac_Header=yes"
4444 $as_echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.
$ac_ext >&5
4447 eval "$as_ac_Header=no"
4450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4452 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4453 $as_echo "$as_val"'`
4454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4455 $as_echo "$ac_res" >&6; }
4456 as_val
=`eval 'as_val=${'$as_ac_Header'}
4457 $as_echo "$as_val"'`
4458 if test "x$as_val" = x
""yes; then
4459 cat >>confdefs.h
<<_ACEOF
4460 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4469 if test "${ac_cv_header_minix_config_h+set}" = set; then
4470 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4471 $as_echo_n "checking for minix/config.h... " >&6; }
4472 if test "${ac_cv_header_minix_config_h+set}" = set; then
4473 $as_echo_n "(cached) " >&6
4475 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4476 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4478 # Is the header compilable?
4479 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4480 $as_echo_n "checking minix/config.h usability... " >&6; }
4481 cat >conftest.
$ac_ext <<_ACEOF
4484 cat confdefs.h
>>conftest.
$ac_ext
4485 cat >>conftest.
$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4487 $ac_includes_default
4488 #include <minix/config.h>
4490 rm -f conftest.
$ac_objext
4491 if { (ac_try
="$ac_compile"
4493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4497 $as_echo "$ac_try_echo") >&5
4498 (eval "$ac_compile") 2>conftest.er1
4500 grep -v '^ *+' conftest.er1 >conftest.err
4502 cat conftest.err >&5
4503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } && {
4505 test -z "$ac_c_werror_flag" ||
4506 test ! -s conftest.err
4507 } && test -s conftest.$ac_objext; then
4508 ac_header_compiler=yes
4510 $as_echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4513 ac_header_compiler=no
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4518 $as_echo "$ac_header_compiler" >&6; }
4520 # Is the header present?
4521 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4522 $as_echo_n "checking minix/config.h presence... " >&6; }
4523 cat >conftest.$ac_ext <<_ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4529 #include <minix/config.h>
4531 if { (ac_try="$ac_cpp conftest.$ac_ext"
4533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4534 *) ac_try_echo
=$ac_try;;
4536 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4537 $as_echo "$ac_try_echo") >&5
4538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4540 grep -v '^ *+' conftest.er1
>conftest.err
4542 cat conftest.err
>&5
4543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } >/dev
/null
&& {
4545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4546 test ! -s conftest.err
4548 ac_header_preproc
=yes
4550 $as_echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.
$ac_ext >&5
4553 ac_header_preproc
=no
4556 rm -f conftest.err conftest.
$ac_ext
4557 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4558 $as_echo "$ac_header_preproc" >&6; }
4560 # So? What about this header?
4561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4563 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4564 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4565 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4566 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4567 ac_header_preproc
=yes
4570 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4571 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4572 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4573 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4574 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4575 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4576 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4577 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4578 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4579 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4580 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4581 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4583 ## ------------------------------- ##
4584 ## Report this to bug-bash@gnu.org ##
4585 ## ------------------------------- ##
4587 ) |
sed "s/^/$as_me: WARNING: /" >&2
4590 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4591 $as_echo_n "checking for minix/config.h... " >&6; }
4592 if test "${ac_cv_header_minix_config_h+set}" = set; then
4593 $as_echo_n "(cached) " >&6
4595 ac_cv_header_minix_config_h
=$ac_header_preproc
4597 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4598 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4601 if test "x$ac_cv_header_minix_config_h" = x
""yes; then
4608 if test "$MINIX" = yes; then
4610 cat >>confdefs.h
<<\_ACEOF
4611 #define _POSIX_SOURCE 1
4615 cat >>confdefs.h
<<\_ACEOF
4616 #define _POSIX_1_SOURCE 2
4620 cat >>confdefs.h
<<\_ACEOF
4628 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4629 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4630 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4631 $as_echo_n "(cached) " >&6
4633 cat >conftest.
$ac_ext <<_ACEOF
4636 cat confdefs.h
>>conftest.
$ac_ext
4637 cat >>conftest.
$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4640 # define __EXTENSIONS__ 1
4641 $ac_includes_default
4650 rm -f conftest.
$ac_objext
4651 if { (ac_try
="$ac_compile"
4653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4657 $as_echo "$ac_try_echo") >&5
4658 (eval "$ac_compile") 2>conftest.er1
4660 grep -v '^ *+' conftest.er1 >conftest.err
4662 cat conftest.err >&5
4663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } && {
4665 test -z "$ac_c_werror_flag" ||
4666 test ! -s conftest.err
4667 } && test -s conftest.$ac_objext; then
4668 ac_cv_safe_to_define___extensions__=yes
4670 $as_echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4673 ac_cv_safe_to_define___extensions__=no
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4679 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4680 test $ac_cv_safe_to_define___extensions__ = yes &&
4681 cat >>confdefs.h <<\_ACEOF
4682 #define __EXTENSIONS__ 1
4685 cat >>confdefs.h <<\_ACEOF
4686 #define _ALL_SOURCE 1
4689 cat >>confdefs.h <<\_ACEOF
4690 #define _GNU_SOURCE 1
4693 cat >>confdefs.h <<\_ACEOF
4694 #define _POSIX_PTHREAD_SEMANTICS 1
4697 cat >>confdefs.h <<\_ACEOF
4698 #define _TANDEM_SOURCE 1
4703 # Check whether --enable-largefile was given.
4704 if test "${enable_largefile+set}" = set; then
4705 enableval=$enable_largefile;
4708 if test "$enable_largefile" != no; then
4710 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4711 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4712 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4713 $as_echo_n "(cached) " >&6
4715 ac_cv_sys_largefile_CC=no
4716 if test "$GCC" != yes; then
4719 # IRIX 6.2 and later do not support large files by default,
4720 # so use the C compiler's -n32 option if that helps.
4721 cat >conftest.$ac_ext <<_ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4727 #include <sys/types.h>
4728 /* Check that off_t can represent 2**63 - 1 correctly.
4729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4730 since some C++ compilers masquerading as C compilers
4731 incorrectly reject 9223372036854775807. */
4732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4734 && LARGE_OFF_T % 2147483647 == 1)
4744 rm -f conftest.$ac_objext
4745 if { (ac_try="$ac_compile"
4747 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4748 *) ac_try_echo
=$ac_try;;
4750 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4751 $as_echo "$ac_try_echo") >&5
4752 (eval "$ac_compile") 2>conftest.er1
4754 grep -v '^ *+' conftest.er1
>conftest.err
4756 cat conftest.err
>&5
4757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } && {
4759 test -z "$ac_c_werror_flag" ||
4760 test ! -s conftest.err
4761 } && test -s conftest.
$ac_objext; then
4764 $as_echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.
$ac_ext >&5
4770 rm -f core conftest.err conftest.
$ac_objext
4772 rm -f conftest.
$ac_objext
4773 if { (ac_try
="$ac_compile"
4775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4779 $as_echo "$ac_try_echo") >&5
4780 (eval "$ac_compile") 2>conftest.er1
4782 grep -v '^ *+' conftest.er1 >conftest.err
4784 cat conftest.err >&5
4785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } && {
4787 test -z "$ac_c_werror_flag" ||
4788 test ! -s conftest.err
4789 } && test -s conftest.$ac_objext; then
4790 ac_cv_sys_largefile_CC=' -n32'; break
4792 $as_echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4798 rm -f core conftest.err conftest.$ac_objext
4802 rm -f conftest.$ac_ext
4805 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4806 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4807 if test "$ac_cv_sys_largefile_CC" != no; then
4808 CC=$CC$ac_cv_sys_largefile_CC
4811 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4812 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4813 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4814 $as_echo_n "(cached) " >&6
4817 cat >conftest.$ac_ext <<_ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 #include <sys/types.h>
4824 /* Check that off_t can represent 2**63 - 1 correctly.
4825 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4826 since some C++ compilers masquerading as C compilers
4827 incorrectly reject 9223372036854775807. */
4828 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4829 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4830 && LARGE_OFF_T % 2147483647 == 1)
4840 rm -f conftest.$ac_objext
4841 if { (ac_try="$ac_compile"
4843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4844 *) ac_try_echo
=$ac_try;;
4846 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4847 $as_echo "$ac_try_echo") >&5
4848 (eval "$ac_compile") 2>conftest.er1
4850 grep -v '^ *+' conftest.er1
>conftest.err
4852 cat conftest.err
>&5
4853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } && {
4855 test -z "$ac_c_werror_flag" ||
4856 test ! -s conftest.err
4857 } && test -s conftest.
$ac_objext; then
4858 ac_cv_sys_file_offset_bits
=no
; break
4860 $as_echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.
$ac_ext >&5
4866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4867 cat >conftest.
$ac_ext <<_ACEOF
4870 cat confdefs.h
>>conftest.
$ac_ext
4871 cat >>conftest.
$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4873 #define _FILE_OFFSET_BITS 64
4874 #include <sys/types.h>
4875 /* Check that off_t can represent 2**63 - 1 correctly.
4876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4877 since some C++ compilers masquerading as C compilers
4878 incorrectly reject 9223372036854775807. */
4879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4881 && LARGE_OFF_T % 2147483647 == 1)
4891 rm -f conftest.
$ac_objext
4892 if { (ac_try
="$ac_compile"
4894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4898 $as_echo "$ac_try_echo") >&5
4899 (eval "$ac_compile") 2>conftest.er1
4901 grep -v '^ *+' conftest.er1 >conftest.err
4903 cat conftest.err >&5
4904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } && {
4906 test -z "$ac_c_werror_flag" ||
4907 test ! -s conftest.err
4908 } && test -s conftest.$ac_objext; then
4909 ac_cv_sys_file_offset_bits=64; break
4911 $as_echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918 ac_cv_sys_file_offset_bits=unknown
4922 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4923 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4924 case $ac_cv_sys_file_offset_bits in #(
4927 cat >>confdefs.h <<_ACEOF
4928 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4933 if test $ac_cv_sys_file_offset_bits = unknown; then
4934 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4935 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4936 if test "${ac_cv_sys_large_files+set}" = set; then
4937 $as_echo_n "(cached) " >&6
4940 cat >conftest.$ac_ext <<_ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4946 #include <sys/types.h>
4947 /* Check that off_t can represent 2**63 - 1 correctly.
4948 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4949 since some C++ compilers masquerading as C compilers
4950 incorrectly reject 9223372036854775807. */
4951 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4952 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4953 && LARGE_OFF_T % 2147483647 == 1)
4963 rm -f conftest.$ac_objext
4964 if { (ac_try="$ac_compile"
4966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4967 *) ac_try_echo
=$ac_try;;
4969 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4970 $as_echo "$ac_try_echo") >&5
4971 (eval "$ac_compile") 2>conftest.er1
4973 grep -v '^ *+' conftest.er1
>conftest.err
4975 cat conftest.err
>&5
4976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } && {
4978 test -z "$ac_c_werror_flag" ||
4979 test ! -s conftest.err
4980 } && test -s conftest.
$ac_objext; then
4981 ac_cv_sys_large_files
=no
; break
4983 $as_echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.
$ac_ext >&5
4989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4990 cat >conftest.
$ac_ext <<_ACEOF
4993 cat confdefs.h
>>conftest.
$ac_ext
4994 cat >>conftest.
$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4996 #define _LARGE_FILES 1
4997 #include <sys/types.h>
4998 /* Check that off_t can represent 2**63 - 1 correctly.
4999 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5000 since some C++ compilers masquerading as C compilers
5001 incorrectly reject 9223372036854775807. */
5002 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5003 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5004 && LARGE_OFF_T % 2147483647 == 1)
5014 rm -f conftest.
$ac_objext
5015 if { (ac_try
="$ac_compile"
5017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5018 *) ac_try_echo=$ac_try;;
5020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5021 $as_echo "$ac_try_echo") >&5
5022 (eval "$ac_compile") 2>conftest.er1
5024 grep -v '^ *+' conftest.er1 >conftest.err
5026 cat conftest.err >&5
5027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } && {
5029 test -z "$ac_c_werror_flag" ||
5030 test ! -s conftest.err
5031 } && test -s conftest.$ac_objext; then
5032 ac_cv_sys_large_files=1; break
5034 $as_echo "$as_me: failed program was:" >&5
5035 sed 's/^/| /' conftest.$ac_ext >&5
5040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041 ac_cv_sys_large_files=unknown
5045 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5046 $as_echo "$ac_cv_sys_large_files" >&6; }
5047 case $ac_cv_sys_large_files in #(
5050 cat >>confdefs.h <<_ACEOF
5051 #define _LARGE_FILES $ac_cv_sys_large_files
5062 SIGNAMES_H=lsignames.h
5067 if test "x$cross_compiling" = "xyes"; then
5070 cross_cache=${srcdir}/cross-build/cygwin32.cache
5073 cross_cache=${srcdir}/cross-build/cygwin32.cache
5076 cross_cache=${srcdir}/cross-build/x86-beos.cache
5078 *) echo "configure: cross-compiling for $host is not supported" >&2
5081 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
5082 echo "loading cross-build cache file ${cross_cache}"
5086 SIGNAMES_O='signames.o'
5087 CROSS_COMPILE='-DCROSS_COMPILING'
5093 if test -z "$CC_FOR_BUILD"; then
5094 if test "x$cross_compiling" = "xno"; then
5095 CC_FOR_BUILD='$(CC)'
5103 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
5105 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
5107 if test "$opt_profiling" = "yes"; then
5111 *) opt_static_link=yes ;;
5113 DEBUG= MALLOC_DEBUG=
5116 if test "$opt_static_link" = yes; then
5117 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
5118 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
5122 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
5127 if test "X$cross_compiling" = "Xno"; then
5128 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
5129 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
5131 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
5132 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
5135 test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
5146 if test $ac_cv_c_compiler_gnu = yes; then
5147 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5148 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5149 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5150 $as_echo_n "(cached) " >&6
5152 ac_pattern="Autoconf.*'x
'"
5153 cat >conftest.$ac_ext <<_ACEOF
5156 cat confdefs.h >>conftest.$ac_ext
5157 cat >>conftest.$ac_ext <<_ACEOF
5158 /* end confdefs.h. */
5162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5163 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5164 ac_cv_prog_gcc_traditional=yes
5166 ac_cv_prog_gcc_traditional=no
5171 if test $ac_cv_prog_gcc_traditional = no; then
5172 cat >conftest.$ac_ext <<_ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h. */
5181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5182 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5183 ac_cv_prog_gcc_traditional=yes
5189 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5190 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5191 if test $ac_cv_prog_gcc_traditional = yes; then
5192 CC="$CC -traditional"
5198 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
5200 # If the user specified --with-installed-readline=PREFIX and PREFIX
5201 # is not `yes', set ac_cv_rl_prefix to PREFIX
5202 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix
=$opt_with_installed_readline
5205 if test "X$bash_cv_termcap_lib" = "X"; then
5208 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5209 $as_echo_n "checking which library has the termcap functions... " >&6; }
5212 if test "${bash_cv_termcap_lib+set}" = set; then
5213 $as_echo_n "(cached) " >&6
5215 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
5216 $as_echo_n "checking for tgetent... " >&6; }
5217 if test "${ac_cv_func_tgetent+set}" = set; then
5218 $as_echo_n "(cached) " >&6
5220 cat >conftest.
$ac_ext <<_ACEOF
5223 cat confdefs.h
>>conftest.
$ac_ext
5224 cat >>conftest.
$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5226 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
5227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5228 #define tgetent innocuous_tgetent
5230 /* System header to define __stub macros and hopefully few prototypes,
5231 which can conflict with char tgetent (); below.
5232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5233 <limits.h> exists even on freestanding compilers. */
5236 # include <limits.h>
5238 # include <assert.h>
5243 /* Override any GCC internal prototype to avoid an error.
5244 Use char because int might match the return type of a GCC
5245 builtin and then its argument prototype would still apply. */
5250 /* The GNU C library defines this for functions which it implements
5251 to always fail with ENOSYS. Some functions are actually named
5252 something starting with __ and the normal name is an alias. */
5253 #if defined __stub_tgetent || defined __stub___tgetent
5265 rm -f conftest.
$ac_objext conftest
$ac_exeext
5266 if { (ac_try
="$ac_link"
5268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5269 *) ac_try_echo=$ac_try;;
5271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5272 $as_echo "$ac_try_echo") >&5
5273 (eval "$ac_link") 2>conftest.er1
5275 grep -v '^ *+' conftest.er1 >conftest.err
5277 cat conftest.err >&5
5278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } && {
5280 test -z "$ac_c_werror_flag" ||
5281 test ! -s conftest.err
5282 } && test -s conftest$ac_exeext && {
5283 test "$cross_compiling" = yes ||
5284 $as_test_x conftest$ac_exeext
5286 ac_cv_func_tgetent=yes
5288 $as_echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.$ac_ext >&5
5291 ac_cv_func_tgetent=no
5294 rm -rf conftest.dSYM
5295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5296 conftest$ac_exeext conftest.$ac_ext
5298 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
5299 $as_echo "$ac_cv_func_tgetent" >&6; }
5300 if test "x$ac_cv_func_tgetent" = x""yes; then
5301 bash_cv_termcap_lib=libc
5303 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5304 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5305 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5306 $as_echo_n "(cached) " >&6
5308 ac_check_lib_save_LIBS=$LIBS
5309 LIBS="-ltermcap $LIBS"
5310 cat >conftest.$ac_ext <<_ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5317 /* Override any GCC internal prototype to avoid an error.
5318 Use char because int might match the return type of a GCC
5319 builtin and then its argument prototype would still apply. */
5332 rm -f conftest.$ac_objext conftest$ac_exeext
5333 if { (ac_try="$ac_link"
5335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5336 *) ac_try_echo
=$ac_try;;
5338 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5339 $as_echo "$ac_try_echo") >&5
5340 (eval "$ac_link") 2>conftest.er1
5342 grep -v '^ *+' conftest.er1
>conftest.err
5344 cat conftest.err
>&5
5345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } && {
5347 test -z "$ac_c_werror_flag" ||
5348 test ! -s conftest.err
5349 } && test -s conftest
$ac_exeext && {
5350 test "$cross_compiling" = yes ||
5351 $as_test_x conftest
$ac_exeext
5353 ac_cv_lib_termcap_tgetent
=yes
5355 $as_echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.
$ac_ext >&5
5358 ac_cv_lib_termcap_tgetent
=no
5361 rm -rf conftest.dSYM
5362 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5363 conftest
$ac_exeext conftest.
$ac_ext
5364 LIBS
=$ac_check_lib_save_LIBS
5366 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5367 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5368 if test "x$ac_cv_lib_termcap_tgetent" = x
""yes; then
5369 bash_cv_termcap_lib
=libtermcap
5371 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
5372 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5373 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
5374 $as_echo_n "(cached) " >&6
5376 ac_check_lib_save_LIBS
=$LIBS
5377 LIBS
="-ltinfo $LIBS"
5378 cat >conftest.
$ac_ext <<_ACEOF
5381 cat confdefs.h
>>conftest.
$ac_ext
5382 cat >>conftest.
$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5385 /* Override any GCC internal prototype to avoid an error.
5386 Use char because int might match the return type of a GCC
5387 builtin and then its argument prototype would still apply. */
5400 rm -f conftest.
$ac_objext conftest
$ac_exeext
5401 if { (ac_try
="$ac_link"
5403 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5407 $as_echo "$ac_try_echo") >&5
5408 (eval "$ac_link") 2>conftest.er1
5410 grep -v '^ *+' conftest.er1 >conftest.err
5412 cat conftest.err >&5
5413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); } && {
5415 test -z "$ac_c_werror_flag" ||
5416 test ! -s conftest.err
5417 } && test -s conftest$ac_exeext && {
5418 test "$cross_compiling" = yes ||
5419 $as_test_x conftest$ac_exeext
5421 ac_cv_lib_tinfo_tgetent=yes
5423 $as_echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5426 ac_cv_lib_tinfo_tgetent=no
5429 rm -rf conftest.dSYM
5430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5431 conftest$ac_exeext conftest.$ac_ext
5432 LIBS=$ac_check_lib_save_LIBS
5434 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
5435 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5436 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
5437 bash_cv_termcap_lib=libtinfo
5439 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5440 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
5441 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5442 $as_echo_n "(cached) " >&6
5444 ac_check_lib_save_LIBS=$LIBS
5445 LIBS="-lcurses $LIBS"
5446 cat >conftest.$ac_ext <<_ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5453 /* Override any GCC internal prototype to avoid an error.
5454 Use char because int might match the return type of a GCC
5455 builtin and then its argument prototype would still apply. */
5468 rm -f conftest.$ac_objext conftest$ac_exeext
5469 if { (ac_try="$ac_link"
5471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5472 *) ac_try_echo
=$ac_try;;
5474 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5475 $as_echo "$ac_try_echo") >&5
5476 (eval "$ac_link") 2>conftest.er1
5478 grep -v '^ *+' conftest.er1
>conftest.err
5480 cat conftest.err
>&5
5481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } && {
5483 test -z "$ac_c_werror_flag" ||
5484 test ! -s conftest.err
5485 } && test -s conftest
$ac_exeext && {
5486 test "$cross_compiling" = yes ||
5487 $as_test_x conftest
$ac_exeext
5489 ac_cv_lib_curses_tgetent
=yes
5491 $as_echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.
$ac_ext >&5
5494 ac_cv_lib_curses_tgetent
=no
5497 rm -rf conftest.dSYM
5498 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5499 conftest
$ac_exeext conftest.
$ac_ext
5500 LIBS
=$ac_check_lib_save_LIBS
5502 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5503 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
5504 if test "x$ac_cv_lib_curses_tgetent" = x
""yes; then
5505 bash_cv_termcap_lib
=libcurses
5507 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5508 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
5509 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5510 $as_echo_n "(cached) " >&6
5512 ac_check_lib_save_LIBS
=$LIBS
5513 LIBS
="-lncurses $LIBS"
5514 cat >conftest.
$ac_ext <<_ACEOF
5517 cat confdefs.h
>>conftest.
$ac_ext
5518 cat >>conftest.
$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5521 /* Override any GCC internal prototype to avoid an error.
5522 Use char because int might match the return type of a GCC
5523 builtin and then its argument prototype would still apply. */
5536 rm -f conftest.
$ac_objext conftest
$ac_exeext
5537 if { (ac_try
="$ac_link"
5539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5540 *) ac_try_echo=$ac_try;;
5542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5543 $as_echo "$ac_try_echo") >&5
5544 (eval "$ac_link") 2>conftest.er1
5546 grep -v '^ *+' conftest.er1 >conftest.err
5548 cat conftest.err >&5
5549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } && {
5551 test -z "$ac_c_werror_flag" ||
5552 test ! -s conftest.err
5553 } && test -s conftest$ac_exeext && {
5554 test "$cross_compiling" = yes ||
5555 $as_test_x conftest$ac_exeext
5557 ac_cv_lib_ncurses_tgetent=yes
5559 $as_echo "$as_me: failed program was:" >&5
5560 sed 's/^/| /' conftest.$ac_ext >&5
5562 ac_cv_lib_ncurses_tgetent=no
5565 rm -rf conftest.dSYM
5566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5567 conftest$ac_exeext conftest.$ac_ext
5568 LIBS=$ac_check_lib_save_LIBS
5570 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5571 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
5572 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
5573 bash_cv_termcap_lib=libncurses
5575 bash_cv_termcap_lib=gnutermcap
5588 if test "X$_bash_needmsg" = "Xyes"; then
5589 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5590 $as_echo_n "checking which library has the termcap functions... " >&6; }
5592 { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
5593 $as_echo "using $bash_cv_termcap_lib" >&6; }
5594 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5595 LDFLAGS="$LDFLAGS -L./lib/termcap"
5596 TERMCAP_LIB="./lib/termcap/libtermcap.a"
5597 TERMCAP_DEP="./lib/termcap/libtermcap.a"
5598 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5599 TERMCAP_LIB=-ltermcap
5601 elif test $bash_cv_termcap_lib = libtinfo; then
5604 elif test $bash_cv_termcap_lib = libncurses; then
5605 TERMCAP_LIB=-lncurses
5607 elif test $bash_cv_termcap_lib = libc; then
5611 TERMCAP_LIB=-lcurses
5618 { $as_echo "$as_me:$LINENO: checking version of installed readline library" >&5
5619 $as_echo_n "checking version of installed readline library... " >&6; }
5621 # What a pain in the ass this is.
5623 # save cpp and ld options
5624 _save_CFLAGS="$CFLAGS"
5625 _save_LDFLAGS="$LDFLAGS"
5628 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5629 # allows the caller to do something like $_rl_prefix=$withval if the user
5630 # specifies --with-installed-readline=PREFIX as an argument to configure
5632 if test -z "$ac_cv_rl_prefix"; then
5633 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
5636 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
5637 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
5639 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
5640 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
5641 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
5643 if test "${ac_cv_rl_version+set}" = set; then
5644 $as_echo_n "(cached) " >&6
5646 if test "$cross_compiling" = yes; then
5647 ac_cv_rl_version='4.2'
5649 cat >conftest.$ac_ext <<_ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5657 #include <readline/readline.h>
5659 extern int rl_gnu_readline_p;
5664 fp = fopen("conftest.rlv", "w");
5667 if (rl_gnu_readline_p != 1)
5668 fprintf(fp, "0.0\n");
5670 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
5676 rm -f conftest$ac_exeext
5677 if { (ac_try="$ac_link"
5679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5680 *) ac_try_echo
=$ac_try;;
5682 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5683 $as_echo "$ac_try_echo") >&5
5684 (eval "$ac_link") 2>&5
5686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5688 { (case "(($ac_try" in
5689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5693 $as_echo "$ac_try_echo") >&5
5694 (eval "$ac_try") 2>&5
5696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5698 ac_cv_rl_version=`cat conftest.rlv
`
5700 $as_echo "$as_me: program exited with status $ac_status" >&5
5701 $as_echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5705 ac_cv_rl_version='0.0'
5707 rm -rf conftest.dSYM
5708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5715 CFLAGS="$_save_CFLAGS"
5716 LDFLAGS="$_save_LDFLAGS"
5723 case "$ac_cv_rl_version" in
5724 2*|3*|4*|5*|6*|7*|8*|9*)
5725 RL_MAJOR=`echo $ac_cv_rl_version |
sed 's:\..*$::'`
5726 RL_MINOR=`echo $ac_cv_rl_version |
sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
5732 [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
5733 [0-9]) _RL_MAJOR=0$RL_MAJOR ;;
5739 [0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
5740 [0-9]) _RL_MINOR=0$RL_MINOR ;;
5744 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
5746 # Readline versions greater than 4.2 have these defines in readline.h
5748 if test $ac_cv_rl_version = '0.0' ; then
5749 { $as_echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
5750 $as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
5751 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
5752 # set these for use by the caller
5753 RL_PREFIX=$ac_cv_rl_prefix
5754 RL_LIBDIR=$ac_cv_rl_libdir
5755 RL_INCLUDEDIR=$ac_cv_rl_includedir
5756 { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5757 $as_echo "$ac_cv_rl_version" >&6; }
5761 cat >>confdefs.h <<_ACEOF
5762 #define RL_READLINE_VERSION $RL_VERSION
5766 cat >>confdefs.h <<_ACEOF
5767 #define RL_VERSION_MAJOR $RL_MAJOR
5771 cat >>confdefs.h <<_ACEOF
5772 #define RL_VERSION_MINOR $RL_MINOR
5780 # set these for use by the caller
5781 RL_PREFIX=$ac_cv_rl_prefix
5782 RL_LIBDIR=$ac_cv_rl_libdir
5783 RL_INCLUDEDIR=$ac_cv_rl_includedir
5785 { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5786 $as_echo "$ac_cv_rl_version" >&6; }
5791 case "$ac_cv_rl_version" in
5793 *) opt_with_installed_readline=no
5794 { $as_echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
5795 $as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
5796 { $as_echo "$as_me:$LINENO: WARNING: using private bash version" >&5
5797 $as_echo "$as_me: WARNING: using private bash version" >&2;}
5803 if test $opt_readline = yes; then
5804 cat >>confdefs.h <<\_ACEOF
5808 if test "$opt_with_installed_readline" != "no" ; then
5809 case "$opt_with_installed_readline" in
5811 *) case "$RL_INCLUDEDIR" in
5813 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5818 READLINE_LIB=-lreadline
5819 # section for OS versions that don't allow unresolved symbols
5820 # to be compiled into dynamic libraries.
5822 cygwin*) TILDE_LIB= ;;
5825 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5826 READLINE_DEP='$(READLINE_LIBRARY)'
5827 # section for OS versions that ship an older/broken version of
5828 # readline as a standard dynamic library and don't allow a
5829 # static version specified as -llibname to override the
5831 case "${host_os}" in
5832 darwin[89]*|darwin10*) READLINE_LIB='${READLINE_LIBRARY}' ;;
5833 *) READLINE_LIB=-lreadline ;;
5837 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5838 READLINE_LIB= READLINE_DEP=
5840 if test $opt_history = yes || test $opt_bang_history = yes; then
5841 if test $opt_history = yes; then
5842 cat >>confdefs.h <<\_ACEOF
5847 if test $opt_bang_history = yes; then
5848 cat >>confdefs.h <<\_ACEOF
5849 #define BANG_HISTORY 1
5853 if test "$opt_with_installed_readline" != "no"; then
5854 HIST_LIBDIR=$RL_LIBDIR
5856 HISTORY_LIB=-lhistory
5857 case "$opt_with_installed_readline" in
5859 *) case "$RL_INCLUDEDIR" in
5861 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5866 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5867 HISTORY_DEP='$(HISTORY_LIBRARY)'
5868 # section for OS versions that ship an older version of
5869 # readline as a standard dynamic library and don't allow a
5870 # static version specified as -llibname to override the
5872 case "${host_os}" in
5873 darwin[89]*|darwin10*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
5874 *) HISTORY_LIB=-lhistory ;;
5878 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5879 HISTORY_LIB= HISTORY_DEP=
5892 # Find a good install program. We prefer a C program (faster),
5893 # so one script is as good as another. But avoid the broken or
5894 # incompatible versions:
5895 # SysV /etc/install, /usr/sbin/install
5896 # SunOS /usr/etc/install
5897 # IRIX /sbin/install
5899 # AmigaOS /C/install, which installs bootblocks on floppy discs
5900 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5901 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5902 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5903 # OS/2's system install, which has a completely different semantic
5904 # ./install, which can be erroneously created by make from ./install.sh.
5905 # Reject install programs that cannot install multiple files.
5906 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5907 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5908 if test -z "$INSTALL"; then
5909 if test "${ac_cv_path_install+set}" = set; then
5910 $as_echo_n "(cached) " >&6
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 test -z "$as_dir" && as_dir=.
5917 # Account for people who put trailing slashes in PATH elements.
5919 ./ | .// | /cC/* | \
5920 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5921 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5924 # OSF1 and SCO ODT 3.0 have their own names for install.
5925 # Don't use installbsd from OSF since it installs stuff as root
5927 for ac_prog in ginstall scoinst install; do
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5930 if test $ac_prog = install &&
5931 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5932 # AIX install. It has an incompatible calling convention.
5934 elif test $ac_prog = install &&
5935 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5936 # program-specific install script used by HP pwplus--don't use.
5939 rm -rf conftest.one conftest.two conftest.dir
5940 echo one > conftest.one
5941 echo two > conftest.two
5943 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5944 test -s conftest.one && test -s conftest.two &&
5945 test -s conftest.dir/conftest.one &&
5946 test -s conftest.dir/conftest.two
5948 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5961 rm -rf conftest.one conftest.two conftest.dir
5964 if test "${ac_cv_path_install+set}" = set; then
5965 INSTALL=$ac_cv_path_install
5967 # As a last resort, use the slow shell script. Don't cache a
5968 # value for INSTALL within a source directory, because that will
5969 # break other packages using the cache if that directory is
5970 # removed, or if the value is a relative name.
5971 INSTALL=$ac_install_sh
5974 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5975 $as_echo "$INSTALL" >&6; }
5977 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5978 # It thinks the first close brace ends the variable substitution.
5979 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5981 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5983 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5985 # Extract the first word of "ar", so it can be a program name with args.
5986 set dummy ar; ac_word=$2
5987 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5988 $as_echo_n "checking for $ac_word... " >&6; }
5989 if test "${ac_cv_prog_AR+set}" = set; then
5990 $as_echo_n "(cached) " >&6
5992 if test -n "$AR"; then
5993 ac_cv_prog_AR="$AR" # Let the user override the test.
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6003 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6014 if test -n "$AR"; then
6015 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6016 $as_echo "$AR" >&6; }
6018 { $as_echo "$as_me:$LINENO: result: no" >&5
6019 $as_echo "no" >&6; }
6023 test -n "$ARFLAGS" || ARFLAGS="cr"
6024 if test -n "$ac_tool_prefix"; then
6025 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6026 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6027 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if test "${ac_cv_prog_RANLIB+set}" = set; then
6030 $as_echo_n "(cached) " >&6
6032 if test -n "$RANLIB"; then
6033 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6043 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 RANLIB=$ac_cv_prog_RANLIB
6053 if test -n "$RANLIB"; then
6054 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6055 $as_echo "$RANLIB" >&6; }
6057 { $as_echo "$as_me:$LINENO: result: no" >&5
6058 $as_echo "no" >&6; }
6063 if test -z "$ac_cv_prog_RANLIB"; then
6064 ac_ct_RANLIB=$RANLIB
6065 # Extract the first word of "ranlib", so it can be a program name with args.
6066 set dummy ranlib; ac_word=$2
6067 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6070 $as_echo_n "(cached) " >&6
6072 if test -n "$ac_ct_RANLIB"; then
6073 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082 ac_cv_prog_ac_ct_RANLIB="ranlib"
6083 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6093 if test -n "$ac_ct_RANLIB"; then
6094 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6095 $as_echo "$ac_ct_RANLIB" >&6; }
6097 { $as_echo "$as_me:$LINENO: result: no" >&5
6098 $as_echo "no" >&6; }
6101 if test "x$ac_ct_RANLIB" = x; then
6104 case $cross_compiling:$ac_tool_warned in
6106 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108 ac_tool_warned=yes ;;
6110 RANLIB=$ac_ct_RANLIB
6113 RANLIB="$ac_cv_prog_RANLIB"
6116 for ac_prog in 'bison -y' byacc
6118 # Extract the first word of "$ac_prog", so it can be a program name with args.
6119 set dummy $ac_prog; ac_word=$2
6120 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if test "${ac_cv_prog_YACC+set}" = set; then
6123 $as_echo_n "(cached) " >&6
6125 if test -n "$YACC"; then
6126 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6135 ac_cv_prog_YACC="$ac_prog"
6136 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6145 YACC=$ac_cv_prog_YACC
6146 if test -n "$YACC"; then
6147 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6148 $as_echo "$YACC" >&6; }
6150 { $as_echo "$as_me:$LINENO: result: no" >&5
6151 $as_echo "no" >&6; }
6155 test -n "$YACC" && break
6157 test -n "$YACC" || YACC="yacc"
6159 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6160 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6162 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6163 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6164 $as_echo_n "(cached) " >&6
6166 cat >conftest.make <<\_ACEOF
6169 @echo '@@@%%%=$(MAKE)=@@@%%%'
6171 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6172 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
6174 eval ac_cv_prog_make_${ac_make}_set=yes;;
6176 eval ac_cv_prog_make_${ac_make}_set=no;;
6180 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6181 { $as_echo "$as_me:$LINENO: result: yes" >&5
6182 $as_echo "yes" >&6; }
6185 { $as_echo "$as_me:$LINENO: result: no" >&5
6186 $as_echo "no" >&6; }
6187 SET_MAKE="MAKE=${MAKE-make}"
6192 opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
6193 *) MAKE_SHELL=/bin/sh ;;
6197 if test x$SIZE = x; then
6198 if test x$ac_tool_prefix = x; then
6201 SIZE=${ac_tool_prefix}size
6202 save_IFS=$IFS ; IFS=:
6204 for dir in $PATH; do
6205 if test -x $dir/$SIZE ; then
6210 if test $size_found -eq 0; then
6218 cat >>confdefs.h <<\_ACEOF
6219 #define _GNU_SOURCE 1
6223 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6224 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6225 if test "${ac_cv_c_const+set}" = set; then
6226 $as_echo_n "(cached) " >&6
6228 cat >conftest.$ac_ext <<_ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6238 /* FIXME: Include the comments suggested by Paul. */
6240 /* Ultrix mips cc rejects this. */
6241 typedef int charset[2];
6243 /* SunOS 4.1.1 cc rejects this. */
6244 char const *const *pcpcc;
6246 /* NEC SVR4.0.2 mips cc rejects this. */
6247 struct point {int x, y;};
6248 static struct point const zero = {0,0};
6249 /* AIX XL C 1.02.0.0 rejects this.
6250 It does not let you subtract one const X* pointer from another in
6251 an arm of an if-expression whose if-part is not a constant
6253 const char *g = "string";
6254 pcpcc = &g + (g ? g-g : 0);
6255 /* HPUX 7.0 cc rejects these. */
6257 ppc = (char**) pcpcc;
6258 pcpcc = (char const *const *) ppc;
6259 { /* SCO 3.2v4 cc rejects this. */
6261 char const *s = 0 ? (char *) 0 : (char const *) 0;
6266 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6268 const int *foo = &x[0];
6271 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6272 typedef const int *iptr;
6276 { /* AIX XL C 1.02.0.0 rejects this saying
6277 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6278 struct s { int j; const int *ap[3]; };
6279 struct s *b; b->j = 5;
6281 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6285 return !cs[0] && !zero.x;
6292 rm -f conftest.$ac_objext
6293 if { (ac_try="$ac_compile"
6295 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6296 *) ac_try_echo
=$ac_try;;
6298 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6299 $as_echo "$ac_try_echo") >&5
6300 (eval "$ac_compile") 2>conftest.er1
6302 grep -v '^ *+' conftest.er1
>conftest.err
6304 cat conftest.err
>&5
6305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } && {
6307 test -z "$ac_c_werror_flag" ||
6308 test ! -s conftest.err
6309 } && test -s conftest.
$ac_objext; then
6312 $as_echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.
$ac_ext >&5
6318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6320 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6321 $as_echo "$ac_cv_c_const" >&6; }
6322 if test $ac_cv_c_const = no
; then
6324 cat >>confdefs.h
<<\_ACEOF
6330 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6331 $as_echo_n "checking for inline... " >&6; }
6332 if test "${ac_cv_c_inline+set}" = set; then
6333 $as_echo_n "(cached) " >&6
6336 for ac_kw
in inline __inline__ __inline
; do
6337 cat >conftest.
$ac_ext <<_ACEOF
6340 cat confdefs.h
>>conftest.
$ac_ext
6341 cat >>conftest.
$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6345 static $ac_kw foo_t static_foo () {return 0; }
6346 $ac_kw foo_t foo () {return 0; }
6350 rm -f conftest.
$ac_objext
6351 if { (ac_try
="$ac_compile"
6353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6354 *) ac_try_echo=$ac_try;;
6356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6357 $as_echo "$ac_try_echo") >&5
6358 (eval "$ac_compile") 2>conftest.er1
6360 grep -v '^ *+' conftest.er1 >conftest.err
6362 cat conftest.err >&5
6363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } && {
6365 test -z "$ac_c_werror_flag" ||
6366 test ! -s conftest.err
6367 } && test -s conftest.$ac_objext; then
6368 ac_cv_c_inline=$ac_kw
6370 $as_echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377 test "$ac_cv_c_inline" != no && break
6381 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6382 $as_echo "$ac_cv_c_inline" >&6; }
6385 case $ac_cv_c_inline in
6388 case $ac_cv_c_inline in
6390 *) ac_val=$ac_cv_c_inline;;
6392 cat >>confdefs.h <<_ACEOF
6394 #define inline $ac_val
6401 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6402 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6403 if test "${ac_cv_c_bigendian+set}" = set; then
6404 $as_echo_n "(cached) " >&6
6406 ac_cv_c_bigendian=unknown
6407 # See if we're dealing with a universal compiler.
6408 cat >conftest.$ac_ext <<_ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6414 #ifndef __APPLE_CC__
6415 not a universal capable compiler
6420 rm -f conftest.$ac_objext
6421 if { (ac_try="$ac_compile"
6423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6424 *) ac_try_echo
=$ac_try;;
6426 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6427 $as_echo "$ac_try_echo") >&5
6428 (eval "$ac_compile") 2>conftest.er1
6430 grep -v '^ *+' conftest.er1
>conftest.err
6432 cat conftest.err
>&5
6433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } && {
6435 test -z "$ac_c_werror_flag" ||
6436 test ! -s conftest.err
6437 } && test -s conftest.
$ac_objext; then
6439 # Check for potential -arch flags. It is not universal unless
6440 # there are some -arch flags. Note that *ppc* also matches
6441 # ppc64. This check is also rather less than ideal.
6442 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
6443 *-arch*ppc
*|
*-arch*i386
*|
*-arch*x86_64
*) ac_cv_c_bigendian
=universal
;;
6446 $as_echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.
$ac_ext >&5
6452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6453 if test $ac_cv_c_bigendian = unknown
; then
6454 # See if sys/param.h defines the BYTE_ORDER macro.
6455 cat >conftest.
$ac_ext <<_ACEOF
6458 cat confdefs.h
>>conftest.
$ac_ext
6459 cat >>conftest.
$ac_ext <<_ACEOF
6460 /* end confdefs.h. */
6461 #include <sys/types.h>
6462 #include <sys/param.h>
6467 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6468 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6477 rm -f conftest.
$ac_objext
6478 if { (ac_try
="$ac_compile"
6480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6481 *) ac_try_echo=$ac_try;;
6483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6484 $as_echo "$ac_try_echo") >&5
6485 (eval "$ac_compile") 2>conftest.er1
6487 grep -v '^ *+' conftest.er1 >conftest.err
6489 cat conftest.err >&5
6490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } && {
6492 test -z "$ac_c_werror_flag" ||
6493 test ! -s conftest.err
6494 } && test -s conftest.$ac_objext; then
6495 # It does; now see whether it defined to BIG_ENDIAN or not.
6496 cat >conftest.$ac_ext <<_ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6502 #include <sys/types.h>
6503 #include <sys/param.h>
6508 #if BYTE_ORDER != BIG_ENDIAN
6516 rm -f conftest.$ac_objext
6517 if { (ac_try="$ac_compile"
6519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6520 *) ac_try_echo
=$ac_try;;
6522 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6523 $as_echo "$ac_try_echo") >&5
6524 (eval "$ac_compile") 2>conftest.er1
6526 grep -v '^ *+' conftest.er1
>conftest.err
6528 cat conftest.err
>&5
6529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } && {
6531 test -z "$ac_c_werror_flag" ||
6532 test ! -s conftest.err
6533 } && test -s conftest.
$ac_objext; then
6534 ac_cv_c_bigendian
=yes
6536 $as_echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.
$ac_ext >&5
6539 ac_cv_c_bigendian
=no
6542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6544 $as_echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.
$ac_ext >&5
6550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6552 if test $ac_cv_c_bigendian = unknown
; then
6553 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6554 cat >conftest.
$ac_ext <<_ACEOF
6557 cat confdefs.h
>>conftest.
$ac_ext
6558 cat >>conftest.
$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6565 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6573 rm -f conftest.
$ac_objext
6574 if { (ac_try
="$ac_compile"
6576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6580 $as_echo "$ac_try_echo") >&5
6581 (eval "$ac_compile") 2>conftest.er1
6583 grep -v '^ *+' conftest.er1 >conftest.err
6585 cat conftest.err >&5
6586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } && {
6588 test -z "$ac_c_werror_flag" ||
6589 test ! -s conftest.err
6590 } && test -s conftest.$ac_objext; then
6591 # It does; now see whether it defined to _BIG_ENDIAN or not.
6592 cat >conftest.$ac_ext <<_ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h. */
6611 rm -f conftest.$ac_objext
6612 if { (ac_try="$ac_compile"
6614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6615 *) ac_try_echo
=$ac_try;;
6617 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6618 $as_echo "$ac_try_echo") >&5
6619 (eval "$ac_compile") 2>conftest.er1
6621 grep -v '^ *+' conftest.er1
>conftest.err
6623 cat conftest.err
>&5
6624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); } && {
6626 test -z "$ac_c_werror_flag" ||
6627 test ! -s conftest.err
6628 } && test -s conftest.
$ac_objext; then
6629 ac_cv_c_bigendian
=yes
6631 $as_echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.
$ac_ext >&5
6634 ac_cv_c_bigendian
=no
6637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6639 $as_echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.
$ac_ext >&5
6645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6647 if test $ac_cv_c_bigendian = unknown
; then
6648 # Compile a test program.
6649 if test "$cross_compiling" = yes; then
6650 # Try to guess by grepping values from an object file.
6651 cat >conftest.
$ac_ext <<_ACEOF
6654 cat confdefs.h
>>conftest.
$ac_ext
6655 cat >>conftest.
$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6657 short int ascii_mm[] =
6658 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6659 short int ascii_ii[] =
6660 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6661 int use_ascii (int i) {
6662 return ascii_mm[i] + ascii_ii[i];
6664 short int ebcdic_ii[] =
6665 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6666 short int ebcdic_mm[] =
6667 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6668 int use_ebcdic (int i) {
6669 return ebcdic_mm[i] + ebcdic_ii[i];
6676 return use_ascii (foo) == use_ebcdic (foo);
6681 rm -f conftest.
$ac_objext
6682 if { (ac_try
="$ac_compile"
6684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6685 *) ac_try_echo=$ac_try;;
6687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6688 $as_echo "$ac_try_echo") >&5
6689 (eval "$ac_compile") 2>conftest.er1
6691 grep -v '^ *+' conftest.er1 >conftest.err
6693 cat conftest.err >&5
6694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } && {
6696 test -z "$ac_c_werror_flag" ||
6697 test ! -s conftest.err
6698 } && test -s conftest.$ac_objext; then
6699 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6700 ac_cv_c_bigendian=yes
6702 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6703 if test "$ac_cv_c_bigendian" = unknown; then
6704 ac_cv_c_bigendian=no
6706 # finding both strings is unlikely to happen, but who knows?
6707 ac_cv_c_bigendian=unknown
6711 $as_echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719 cat >conftest.$ac_ext <<_ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6725 $ac_includes_default
6730 /* Are we little or big endian? From Harbison&Steele. */
6734 char c[sizeof (long int)];
6737 return u.c[sizeof (long int) - 1] == 1;
6743 rm -f conftest$ac_exeext
6744 if { (ac_try="$ac_link"
6746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6747 *) ac_try_echo
=$ac_try;;
6749 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6750 $as_echo "$ac_try_echo") >&5
6751 (eval "$ac_link") 2>&5
6753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6755 { (case "(($ac_try" in
6756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6757 *) ac_try_echo=$ac_try;;
6759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6760 $as_echo "$ac_try_echo") >&5
6761 (eval "$ac_try") 2>&5
6763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; }; then
6765 ac_cv_c_bigendian=no
6767 $as_echo "$as_me: program exited with status $ac_status" >&5
6768 $as_echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6772 ac_cv_c_bigendian=yes
6774 rm -rf conftest.dSYM
6775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6781 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6782 $as_echo "$ac_cv_c_bigendian" >&6; }
6783 case $ac_cv_c_bigendian in #(
6785 cat >>confdefs.h <<\_ACEOF
6786 #define WORDS_BIGENDIAN 1
6793 cat >>confdefs.h <<\_ACEOF
6794 #define AC_APPLE_UNIVERSAL_BUILD 1
6799 { { $as_echo "$as_me:$LINENO: error: unknown endianness
6800 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6801 $as_echo "$as_me: error: unknown endianness
6802 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6803 { (exit 1); exit 1; }; } ;;
6806 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
6807 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
6808 if test "${ac_cv_c_stringize+set}" = set; then
6809 $as_echo_n "(cached) " >&6
6811 cat >conftest.$ac_ext <<_ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6819 char *s = x(teststring);
6821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6822 $EGREP "#teststring" >/dev/null 2>&1; then
6823 ac_cv_c_stringize=no
6825 ac_cv_c_stringize=yes
6830 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
6831 $as_echo "$ac_cv_c_stringize" >&6; }
6832 if test $ac_cv_c_stringize = yes; then
6834 cat >>confdefs.h <<\_ACEOF
6835 #define HAVE_STRINGIZE 1
6842 { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
6843 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
6844 if test "${ac_cv_type_long_double_wider+set}" = set; then
6845 $as_echo_n "(cached) " >&6
6847 cat >conftest.$ac_ext <<_ACEOF
6850 cat confdefs.h >>conftest.$ac_ext
6851 cat >>conftest.$ac_ext <<_ACEOF
6852 /* end confdefs.h. */
6854 long double const a[] =
6856 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6857 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6862 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6863 + (x ? f (x) : 'c'));
6869 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6870 + (DBL_MANT_DIG < LDBL_MANT_DIG)
6871 - (LDBL_MAX_EXP < DBL_MAX_EXP)
6872 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6873 && (int) LDBL_EPSILON == 0
6881 rm -f conftest.$ac_objext
6882 if { (ac_try="$ac_compile"
6884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6885 *) ac_try_echo
=$ac_try;;
6887 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6888 $as_echo "$ac_try_echo") >&5
6889 (eval "$ac_compile") 2>conftest.er1
6891 grep -v '^ *+' conftest.er1
>conftest.err
6893 cat conftest.err
>&5
6894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } && {
6896 test -z "$ac_c_werror_flag" ||
6897 test ! -s conftest.err
6898 } && test -s conftest.
$ac_objext; then
6899 ac_cv_type_long_double_wider
=yes
6901 $as_echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.
$ac_ext >&5
6904 ac_cv_type_long_double_wider
=no
6907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6909 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
6910 $as_echo "$ac_cv_type_long_double_wider" >&6; }
6911 if test $ac_cv_type_long_double_wider = yes; then
6913 cat >>confdefs.h
<<\_ACEOF
6914 #define HAVE_LONG_DOUBLE_WIDER 1
6919 ac_cv_c_long_double
=$ac_cv_type_long_double_wider
6920 if test $ac_cv_c_long_double = yes; then
6922 cat >>confdefs.h
<<\_ACEOF
6923 #define HAVE_LONG_DOUBLE 1
6928 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
6929 $as_echo_n "checking for function prototypes... " >&6; }
6930 if test "$ac_cv_prog_cc_c89" != no
; then
6931 { $as_echo "$as_me:$LINENO: result: yes" >&5
6932 $as_echo "yes" >&6; }
6934 cat >>confdefs.h
<<\_ACEOF
6935 #define PROTOTYPES 1
6939 cat >>confdefs.h
<<\_ACEOF
6940 #define __PROTOTYPES 1
6944 { $as_echo "$as_me:$LINENO: result: no" >&5
6945 $as_echo "no" >&6; }
6949 { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
6950 $as_echo_n "checking whether char is unsigned... " >&6; }
6951 if test "${ac_cv_c_char_unsigned+set}" = set; then
6952 $as_echo_n "(cached) " >&6
6954 cat >conftest.
$ac_ext <<_ACEOF
6957 cat confdefs.h
>>conftest.
$ac_ext
6958 cat >>conftest.
$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 $ac_includes_default
6964 static int test_array [1 - 2 * !(((char) -1) < 0)];
6971 rm -f conftest.
$ac_objext
6972 if { (ac_try
="$ac_compile"
6974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6975 *) ac_try_echo=$ac_try;;
6977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6978 $as_echo "$ac_try_echo") >&5
6979 (eval "$ac_compile") 2>conftest.er1
6981 grep -v '^ *+' conftest.er1 >conftest.err
6983 cat conftest.err >&5
6984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } && {
6986 test -z "$ac_c_werror_flag" ||
6987 test ! -s conftest.err
6988 } && test -s conftest.$ac_objext; then
6989 ac_cv_c_char_unsigned=no
6991 $as_echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6994 ac_cv_c_char_unsigned=yes
6997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6999 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
7000 $as_echo "$ac_cv_c_char_unsigned" >&6; }
7001 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7002 cat >>confdefs.h <<\_ACEOF
7003 #define __CHAR_UNSIGNED__ 1
7008 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
7009 $as_echo_n "checking for working volatile... " >&6; }
7010 if test "${ac_cv_c_volatile+set}" = set; then
7011 $as_echo_n "(cached) " >&6
7013 cat >conftest.$ac_ext <<_ACEOF
7016 cat confdefs.h >>conftest.$ac_ext
7017 cat >>conftest.$ac_ext <<_ACEOF
7018 /* end confdefs.h. */
7025 int * volatile y = (int *) 0;
7031 rm -f conftest.$ac_objext
7032 if { (ac_try="$ac_compile"
7034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7035 *) ac_try_echo
=$ac_try;;
7037 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7038 $as_echo "$ac_try_echo") >&5
7039 (eval "$ac_compile") 2>conftest.er1
7041 grep -v '^ *+' conftest.er1
>conftest.err
7043 cat conftest.err
>&5
7044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } && {
7046 test -z "$ac_c_werror_flag" ||
7047 test ! -s conftest.err
7048 } && test -s conftest.
$ac_objext; then
7049 ac_cv_c_volatile
=yes
7051 $as_echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.
$ac_ext >&5
7057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7059 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7060 $as_echo "$ac_cv_c_volatile" >&6; }
7061 if test $ac_cv_c_volatile = no
; then
7063 cat >>confdefs.h
<<\_ACEOF
7064 #define volatile /**/
7069 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
7070 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7071 if test "${ac_cv_c_restrict+set}" = set; then
7072 $as_echo_n "(cached) " >&6
7075 # The order here caters to the fact that C++ does not require restrict.
7076 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
7077 cat >conftest.
$ac_ext <<_ACEOF
7080 cat confdefs.h
>>conftest.
$ac_ext
7081 cat >>conftest.
$ac_ext <<_ACEOF
7082 /* end confdefs.h. */
7083 typedef int * int_ptr;
7084 int foo (int_ptr $ac_kw ip) {
7098 rm -f conftest.
$ac_objext
7099 if { (ac_try
="$ac_compile"
7101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7102 *) ac_try_echo=$ac_try;;
7104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7105 $as_echo "$ac_try_echo") >&5
7106 (eval "$ac_compile") 2>conftest.er1
7108 grep -v '^ *+' conftest.er1 >conftest.err
7110 cat conftest.err >&5
7111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } && {
7113 test -z "$ac_c_werror_flag" ||
7114 test ! -s conftest.err
7115 } && test -s conftest.$ac_objext; then
7116 ac_cv_c_restrict=$ac_kw
7118 $as_echo "$as_me: failed program was:" >&5
7119 sed 's/^/| /' conftest.$ac_ext >&5
7124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125 test "$ac_cv_c_restrict" != no && break
7129 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
7130 $as_echo "$ac_cv_c_restrict" >&6; }
7133 case $ac_cv_c_restrict in
7135 no) cat >>confdefs.h <<\_ACEOF
7136 #define restrict /**/
7139 *) cat >>confdefs.h <<_ACEOF
7140 #define restrict $ac_cv_c_restrict
7148 if test -n "$ac_aux_dir"; then
7149 case "$ac_aux_dir" in
7150 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7151 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7154 if test -z "$MKINSTALLDIRS"; then
7155 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7160 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7161 $as_echo_n "checking whether NLS is requested... " >&6; }
7162 # Check whether --enable-nls was given.
7163 if test "${enable_nls+set}" = set; then
7164 enableval=$enable_nls; USE_NLS=$enableval
7169 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
7170 $as_echo "$USE_NLS" >&6; }
7177 # Prepare PATH_SEPARATOR.
7178 # The user is always right.
7179 if test "${PATH_SEPARATOR+set}" != set; then
7180 echo "#! /bin/sh" >conf$$.sh
7181 echo "exit 0" >>conf$$.sh
7183 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7191 # Find out how to test for executable files. Don't use a zero-byte file,
7192 # as systems may use methods other than mode bits to determine executability.
7193 cat >conf$$.file <<_ASEOF
7197 chmod +x conf$$.file
7198 if test -x conf$$.file >/dev/null 2>&1; then
7199 ac_executable_p="test -x"
7201 ac_executable_p="test -f"
7205 # Extract the first word of "msgfmt", so it can be a program name with args.
7206 set dummy msgfmt; ac_word=$2
7207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7208 $as_echo_n "checking for $ac_word... " >&6; }
7209 if test "${ac_cv_path_MSGFMT+set}" = set; then
7210 $as_echo_n "(cached) " >&6
7214 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7217 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7218 for ac_dir in $PATH; do
7220 test -z "$ac_dir" && ac_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7223 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7224 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7225 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7232 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7236 MSGFMT="$ac_cv_path_MSGFMT"
7237 if test "$MSGFMT" != ":"; then
7238 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7239 $as_echo "$MSGFMT" >&6; }
7241 { $as_echo "$as_me:$LINENO: result: no" >&5
7242 $as_echo "no" >&6; }
7245 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7246 set dummy gmsgfmt; ac_word=$2
7247 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7250 $as_echo_n "(cached) " >&6
7254 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7264 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7265 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7272 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7276 GMSGFMT=$ac_cv_path_GMSGFMT
7277 if test -n "$GMSGFMT"; then
7278 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7279 $as_echo "$GMSGFMT" >&6; }
7281 { $as_echo "$as_me:$LINENO: result: no" >&5
7282 $as_echo "no" >&6; }
7288 # Prepare PATH_SEPARATOR.
7289 # The user is always right.
7290 if test "${PATH_SEPARATOR+set}" != set; then
7291 echo "#! /bin/sh" >conf$$.sh
7292 echo "exit 0" >>conf$$.sh
7294 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7302 # Find out how to test for executable files. Don't use a zero-byte file,
7303 # as systems may use methods other than mode bits to determine executability.
7304 cat >conf$$.file <<_ASEOF
7308 chmod +x conf$$.file
7309 if test -x conf$$.file >/dev/null 2>&1; then
7310 ac_executable_p="test -x"
7312 ac_executable_p="test -f"
7316 # Extract the first word of "xgettext", so it can be a program name with args.
7317 set dummy xgettext; ac_word=$2
7318 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7321 $as_echo_n "(cached) " >&6
7325 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7328 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7329 for ac_dir in $PATH; do
7331 test -z "$ac_dir" && ac_dir=.
7332 for ac_exec_ext in '' $ac_executable_extensions; do
7333 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7334 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7335 (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
7336 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7343 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7347 XGETTEXT="$ac_cv_path_XGETTEXT"
7348 if test "$XGETTEXT" != ":"; then
7349 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7350 $as_echo "$XGETTEXT" >&6; }
7352 { $as_echo "$as_me:$LINENO: result: no" >&5
7353 $as_echo "no" >&6; }
7359 # Prepare PATH_SEPARATOR.
7360 # The user is always right.
7361 if test "${PATH_SEPARATOR+set}" != set; then
7362 echo "#! /bin/sh" >conf$$.sh
7363 echo "exit 0" >>conf$$.sh
7365 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7373 # Find out how to test for executable files. Don't use a zero-byte file,
7374 # as systems may use methods other than mode bits to determine executability.
7375 cat >conf$$.file <<_ASEOF
7379 chmod +x conf$$.file
7380 if test -x conf$$.file >/dev/null 2>&1; then
7381 ac_executable_p="test -x"
7383 ac_executable_p="test -f"
7387 # Extract the first word of "msgmerge", so it can be a program name with args.
7388 set dummy msgmerge; ac_word=$2
7389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7392 $as_echo_n "(cached) " >&6
7396 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7399 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7400 for ac_dir in $PATH; do
7402 test -z "$ac_dir" && ac_dir=.
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7405 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7406 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7413 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7417 MSGMERGE="$ac_cv_path_MSGMERGE"
7418 if test "$MSGMERGE" != ":"; then
7419 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7420 $as_echo "$MSGMERGE" >&6; }
7422 { $as_echo "$as_me:$LINENO: result: no" >&5
7423 $as_echo "no" >&6; }
7427 if test "$GMSGFMT" != ":"; then
7428 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7429 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7432 GMSGFMT=`echo "$GMSGFMT" |
sed -e 's,^.*/,,'`
7433 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7434 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7439 if test "$XGETTEXT" != ":"; then
7440 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7441 (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
7444 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7445 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7451 ac_config_commands="$ac_config_commands default-1"
7454 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
7455 $as_echo_n "checking for off_t... " >&6; }
7456 if test "${ac_cv_type_off_t+set}" = set; then
7457 $as_echo_n "(cached) " >&6
7460 cat >conftest.$ac_ext <<_ACEOF
7463 cat confdefs.h >>conftest.$ac_ext
7464 cat >>conftest.$ac_ext <<_ACEOF
7465 /* end confdefs.h. */
7466 $ac_includes_default
7476 rm -f conftest.$ac_objext
7477 if { (ac_try="$ac_compile"
7479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7480 *) ac_try_echo
=$ac_try;;
7482 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7483 $as_echo "$ac_try_echo") >&5
7484 (eval "$ac_compile") 2>conftest.er1
7486 grep -v '^ *+' conftest.er1
>conftest.err
7488 cat conftest.err
>&5
7489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } && {
7491 test -z "$ac_c_werror_flag" ||
7492 test ! -s conftest.err
7493 } && test -s conftest.
$ac_objext; then
7494 cat >conftest.
$ac_ext <<_ACEOF
7497 cat confdefs.h
>>conftest.
$ac_ext
7498 cat >>conftest.
$ac_ext <<_ACEOF
7499 /* end confdefs.h. */
7500 $ac_includes_default
7504 if (sizeof ((off_t)))
7510 rm -f conftest.
$ac_objext
7511 if { (ac_try
="$ac_compile"
7513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7514 *) ac_try_echo=$ac_try;;
7516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7517 $as_echo "$ac_try_echo") >&5
7518 (eval "$ac_compile") 2>conftest.er1
7520 grep -v '^ *+' conftest.er1 >conftest.err
7522 cat conftest.err >&5
7523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); } && {
7525 test -z "$ac_c_werror_flag" ||
7526 test ! -s conftest.err
7527 } && test -s conftest.$ac_objext; then
7530 $as_echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.$ac_ext >&5
7533 ac_cv_type_off_t=yes
7536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538 $as_echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7546 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7547 $as_echo "$ac_cv_type_off_t" >&6; }
7548 if test "x$ac_cv_type_off_t" = x""yes; then
7552 cat >>confdefs.h <<_ACEOF
7553 #define off_t long int
7558 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
7559 $as_echo_n "checking for size_t... " >&6; }
7560 if test "${ac_cv_type_size_t+set}" = set; then
7561 $as_echo_n "(cached) " >&6
7563 ac_cv_type_size_t=no
7564 cat >conftest.$ac_ext <<_ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 $ac_includes_default
7574 if (sizeof (size_t))
7580 rm -f conftest.$ac_objext
7581 if { (ac_try="$ac_compile"
7583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7584 *) ac_try_echo
=$ac_try;;
7586 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7587 $as_echo "$ac_try_echo") >&5
7588 (eval "$ac_compile") 2>conftest.er1
7590 grep -v '^ *+' conftest.er1
>conftest.err
7592 cat conftest.err
>&5
7593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } && {
7595 test -z "$ac_c_werror_flag" ||
7596 test ! -s conftest.err
7597 } && test -s conftest.
$ac_objext; then
7598 cat >conftest.
$ac_ext <<_ACEOF
7601 cat confdefs.h
>>conftest.
$ac_ext
7602 cat >>conftest.
$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7604 $ac_includes_default
7608 if (sizeof ((size_t)))
7614 rm -f conftest.
$ac_objext
7615 if { (ac_try
="$ac_compile"
7617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7621 $as_echo "$ac_try_echo") >&5
7622 (eval "$ac_compile") 2>conftest.er1
7624 grep -v '^ *+' conftest.er1 >conftest.err
7626 cat conftest.err >&5
7627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest.$ac_objext; then
7634 $as_echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7637 ac_cv_type_size_t=yes
7640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7642 $as_echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7651 $as_echo "$ac_cv_type_size_t" >&6; }
7652 if test "x$ac_cv_type_size_t" = x""yes; then
7656 cat >>confdefs.h <<_ACEOF
7657 #define size_t unsigned int
7662 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7663 # for constant arguments. Useless!
7664 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
7665 $as_echo_n "checking for working alloca.h... " >&6; }
7666 if test "${ac_cv_working_alloca_h+set}" = set; then
7667 $as_echo_n "(cached) " >&6
7669 cat >conftest.$ac_ext <<_ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7679 char *p = (char *) alloca (2 * sizeof (int));
7685 rm -f conftest.$ac_objext conftest$ac_exeext
7686 if { (ac_try="$ac_link"
7688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7689 *) ac_try_echo
=$ac_try;;
7691 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7692 $as_echo "$ac_try_echo") >&5
7693 (eval "$ac_link") 2>conftest.er1
7695 grep -v '^ *+' conftest.er1
>conftest.err
7697 cat conftest.err
>&5
7698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } && {
7700 test -z "$ac_c_werror_flag" ||
7701 test ! -s conftest.err
7702 } && test -s conftest
$ac_exeext && {
7703 test "$cross_compiling" = yes ||
7704 $as_test_x conftest
$ac_exeext
7706 ac_cv_working_alloca_h
=yes
7708 $as_echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.
$ac_ext >&5
7711 ac_cv_working_alloca_h
=no
7714 rm -rf conftest.dSYM
7715 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7716 conftest
$ac_exeext conftest.
$ac_ext
7718 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7719 $as_echo "$ac_cv_working_alloca_h" >&6; }
7720 if test $ac_cv_working_alloca_h = yes; then
7722 cat >>confdefs.h
<<\_ACEOF
7723 #define HAVE_ALLOCA_H 1
7728 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
7729 $as_echo_n "checking for alloca... " >&6; }
7730 if test "${ac_cv_func_alloca_works+set}" = set; then
7731 $as_echo_n "(cached) " >&6
7733 cat >conftest.
$ac_ext <<_ACEOF
7736 cat confdefs.h
>>conftest.
$ac_ext
7737 cat >>conftest.
$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7740 # define alloca __builtin_alloca
7743 # include <malloc.h>
7744 # define alloca _alloca
7746 # ifdef HAVE_ALLOCA_H
7747 # include <alloca.h>
7752 # ifndef alloca /* predefined by HP cc +Olibcalls */
7763 char *p = (char *) alloca (1);
7769 rm -f conftest.
$ac_objext conftest
$ac_exeext
7770 if { (ac_try
="$ac_link"
7772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7773 *) ac_try_echo=$ac_try;;
7775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7776 $as_echo "$ac_try_echo") >&5
7777 (eval "$ac_link") 2>conftest.er1
7779 grep -v '^ *+' conftest.er1 >conftest.err
7781 cat conftest.err >&5
7782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } && {
7784 test -z "$ac_c_werror_flag" ||
7785 test ! -s conftest.err
7786 } && test -s conftest$ac_exeext && {
7787 test "$cross_compiling" = yes ||
7788 $as_test_x conftest$ac_exeext
7790 ac_cv_func_alloca_works=yes
7792 $as_echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7795 ac_cv_func_alloca_works=no
7798 rm -rf conftest.dSYM
7799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7800 conftest$ac_exeext conftest.$ac_ext
7802 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7803 $as_echo "$ac_cv_func_alloca_works" >&6; }
7805 if test $ac_cv_func_alloca_works = yes; then
7807 cat >>confdefs.h <<\_ACEOF
7808 #define HAVE_ALLOCA 1
7812 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7813 # that cause trouble. Some versions do not even contain alloca or
7814 # contain a buggy version. If you still want to use their alloca,
7815 # use ar to extract alloca.o from them instead of compiling alloca.c.
7817 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7819 cat >>confdefs.h <<\_ACEOF
7824 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
7825 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
7826 if test "${ac_cv_os_cray+set}" = set; then
7827 $as_echo_n "(cached
) " >&6
7829 cat >conftest.$ac_ext <<_ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835 #if defined CRAY && ! defined CRAY2
7842 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7843 $EGREP "webecray
" >/dev/null 2>&1; then
7851 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
7852 $as_echo "$ac_cv_os_cray" >&6; }
7853 if test $ac_cv_os_cray = yes; then
7854 for ac_func in _getb67 GETB67 getb67; do
7855 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
7856 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
7857 $as_echo_n "checking
for $ac_func...
" >&6; }
7858 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
7859 $as_echo_n "(cached
) " >&6
7861 cat >conftest.$ac_ext <<_ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7869 #define $ac_func innocuous_$ac_func
7871 /* System header to define __stub macros and hopefully few prototypes,
7872 which can conflict with char $ac_func (); below.
7873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7874 <limits.h> exists even on freestanding compilers. */
7877 # include <limits.h>
7879 # include <assert.h>
7884 /* Override any GCC internal prototype to avoid an error.
7885 Use char because int might match the return type of a GCC
7886 builtin and then its argument prototype would still apply. */
7891 /* The GNU C library defines this for functions which it implements
7892 to always fail with ENOSYS. Some functions are actually named
7893 something starting with __ and the normal name is an alias. */
7894 #if defined __stub_$ac_func || defined __stub___$ac_func
7906 rm -f conftest.$ac_objext conftest$ac_exeext
7907 if { (ac_try="$ac_link"
7909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910 *) ac_try_echo=$ac_try;;
7912 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7913 $as_echo "$ac_try_echo") >&5
7914 (eval "$ac_link") 2>conftest.er1
7916 grep -v '^ *+' conftest.er1 >conftest.err
7918 cat conftest.err >&5
7919 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7920 (exit $ac_status); } && {
7921 test -z "$ac_c_werror_flag" ||
7922 test ! -s conftest.err
7923 } && test -s conftest$ac_exeext && {
7924 test "$cross_compiling" = yes ||
7925 $as_test_x conftest$ac_exeext
7927 eval "$as_ac_var=yes"
7929 $as_echo "$as_me: failed program was
:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7932 eval "$as_ac_var=no
"
7935 rm -rf conftest.dSYM
7936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7937 conftest$ac_exeext conftest.$ac_ext
7939 ac_res=`eval 'as_val=${'$as_ac_var'}
7940 $as_echo "$as_val"'`
7941 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
7942 $as_echo "$ac_res" >&6; }
7943 as_val=`eval 'as_val=${'$as_ac_var'}
7944 $as_echo "$as_val"'`
7945 if test "x
$as_val" = x""yes; then
7947 cat >>confdefs.h <<_ACEOF
7948 #define CRAY_STACKSEG_END $ac_func
7957 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
7958 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
7959 if test "${ac_cv_c_stack_direction+set}" = set; then
7960 $as_echo_n "(cached
) " >&6
7962 if test "$cross_compiling" = yes; then
7963 ac_cv_c_stack_direction=0
7965 cat >conftest.$ac_ext <<_ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7971 $ac_includes_default
7973 find_stack_direction ()
7975 static char *addr = 0;
7980 return find_stack_direction ();
7983 return (&dummy > addr) ? 1 : -1;
7989 return find_stack_direction () < 0;
7992 rm -f conftest$ac_exeext
7993 if { (ac_try="$ac_link"
7995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996 *) ac_try_echo=$ac_try;;
7998 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7999 $as_echo "$ac_try_echo") >&5
8000 (eval "$ac_link") 2>&5
8002 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8004 { (case "(($ac_try" in
8005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8006 *) ac_try_echo=$ac_try;;
8008 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8009 $as_echo "$ac_try_echo") >&5
8010 (eval "$ac_try") 2>&5
8012 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8013 (exit $ac_status); }; }; then
8014 ac_cv_c_stack_direction=1
8016 $as_echo "$as_me: program exited with status
$ac_status" >&5
8017 $as_echo "$as_me: failed program was
:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8021 ac_cv_c_stack_direction=-1
8023 rm -rf conftest.dSYM
8024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8029 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
8030 $as_echo "$ac_cv_c_stack_direction" >&6; }
8032 cat >>confdefs.h <<_ACEOF
8033 #define STACK_DIRECTION $ac_cv_c_stack_direction
8041 for ac_header in stdlib.h unistd.h
8043 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8044 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8045 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
8046 $as_echo_n "checking
for $ac_header...
" >&6; }
8047 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8048 $as_echo_n "(cached
) " >&6
8050 ac_res=`eval 'as_val=${'$as_ac_Header'}
8051 $as_echo "$as_val"'`
8052 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
8053 $as_echo "$ac_res" >&6; }
8055 # Is the header compilable?
8056 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8057 $as_echo_n "checking
$ac_header usability...
" >&6; }
8058 cat >conftest.$ac_ext <<_ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8064 $ac_includes_default
8065 #include <$ac_header>
8067 rm -f conftest.$ac_objext
8068 if { (ac_try="$ac_compile"
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8073 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8074 $as_echo "$ac_try_echo") >&5
8075 (eval "$ac_compile") 2>conftest.er1
8077 grep -v '^ *+' conftest.er1 >conftest.err
8079 cat conftest.err >&5
8080 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8081 (exit $ac_status); } && {
8082 test -z "$ac_c_werror_flag" ||
8083 test ! -s conftest.err
8084 } && test -s conftest.$ac_objext; then
8085 ac_header_compiler=yes
8087 $as_echo "$as_me: failed program was
:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8090 ac_header_compiler=no
8093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8094 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8095 $as_echo "$ac_header_compiler" >&6; }
8097 # Is the header present?
8098 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
8099 $as_echo_n "checking
$ac_header presence...
" >&6; }
8100 cat >conftest.$ac_ext <<_ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8106 #include <$ac_header>
8108 if { (ac_try="$ac_cpp conftest.
$ac_ext"
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8113 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8114 $as_echo "$ac_try_echo") >&5
8115 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
8117 grep -v '^ *+' conftest.er1 >conftest.err
8119 cat conftest.err >&5
8120 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8121 (exit $ac_status); } >/dev/null && {
8122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8123 test ! -s conftest.err
8125 ac_header_preproc=yes
8127 $as_echo "$as_me: failed program was
:" >&5
8128 sed 's/^/| /' conftest.$ac_ext >&5
8130 ac_header_preproc=no
8133 rm -f conftest.err conftest.$ac_ext
8134 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8135 $as_echo "$ac_header_preproc" >&6; }
8137 # So? What about this header?
8138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8140 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
8141 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
8142 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
8143 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
8144 ac_header_preproc=yes
8147 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
8148 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
8149 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
8150 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
8151 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
8152 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
8153 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
8154 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
8155 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
8156 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
8157 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
8158 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
8160 ## ------------------------------- ##
8161 ## Report this to bug-bash@gnu.org ##
8162 ## ------------------------------- ##
8164 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
8167 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
8168 $as_echo_n "checking
for $ac_header...
" >&6; }
8169 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8170 $as_echo_n "(cached
) " >&6
8172 eval "$as_ac_Header=\
$ac_header_preproc"
8174 ac_res=`eval 'as_val=${'$as_ac_Header'}
8175 $as_echo "$as_val"'`
8176 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
8177 $as_echo "$ac_res" >&6; }
8180 as_val=`eval 'as_val=${'$as_ac_Header'}
8181 $as_echo "$as_val"'`
8182 if test "x
$as_val" = x""yes; then
8183 cat >>confdefs.h <<_ACEOF
8184 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
8192 for ac_func in getpagesize
8194 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
8195 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
8196 $as_echo_n "checking
for $ac_func...
" >&6; }
8197 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
8198 $as_echo_n "(cached
) " >&6
8200 cat >conftest.$ac_ext <<_ACEOF
8203 cat confdefs.h >>conftest.$ac_ext
8204 cat >>conftest.$ac_ext <<_ACEOF
8205 /* end confdefs.h. */
8206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8208 #define $ac_func innocuous_$ac_func
8210 /* System header to define __stub macros and hopefully few prototypes,
8211 which can conflict with char $ac_func (); below.
8212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8213 <limits.h> exists even on freestanding compilers. */
8216 # include <limits.h>
8218 # include <assert.h>
8223 /* Override any GCC internal prototype to avoid an error.
8224 Use char because int might match the return type of a GCC
8225 builtin and then its argument prototype would still apply. */
8230 /* The GNU C library defines this for functions which it implements
8231 to always fail with ENOSYS. Some functions are actually named
8232 something starting with __ and the normal name is an alias. */
8233 #if defined __stub_$ac_func || defined __stub___$ac_func
8245 rm -f conftest.$ac_objext conftest$ac_exeext
8246 if { (ac_try="$ac_link"
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8251 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8252 $as_echo "$ac_try_echo") >&5
8253 (eval "$ac_link") 2>conftest.er1
8255 grep -v '^ *+' conftest.er1 >conftest.err
8257 cat conftest.err >&5
8258 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8259 (exit $ac_status); } && {
8260 test -z "$ac_c_werror_flag" ||
8261 test ! -s conftest.err
8262 } && test -s conftest$ac_exeext && {
8263 test "$cross_compiling" = yes ||
8264 $as_test_x conftest$ac_exeext
8266 eval "$as_ac_var=yes"
8268 $as_echo "$as_me: failed program was
:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8271 eval "$as_ac_var=no
"
8274 rm -rf conftest.dSYM
8275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8276 conftest$ac_exeext conftest.$ac_ext
8278 ac_res=`eval 'as_val=${'$as_ac_var'}
8279 $as_echo "$as_val"'`
8280 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
8281 $as_echo "$ac_res" >&6; }
8282 as_val=`eval 'as_val=${'$as_ac_var'}
8283 $as_echo "$as_val"'`
8284 if test "x
$as_val" = x""yes; then
8285 cat >>confdefs.h <<_ACEOF
8286 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
8292 { $as_echo "$as_me:$LINENO: checking
for working mmap
" >&5
8293 $as_echo_n "checking
for working mmap...
" >&6; }
8294 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8295 $as_echo_n "(cached
) " >&6
8297 if test "$cross_compiling" = yes; then
8298 ac_cv_func_mmap_fixed_mapped=no
8300 cat >conftest.$ac_ext <<_ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h. */
8306 $ac_includes_default
8307 /* malloc might have been renamed as rpl_malloc. */
8310 /* Thanks to Mike Haertel and Jim Avera for this test.
8311 Here is a matrix of mmap possibilities:
8312 mmap private not fixed
8313 mmap private fixed at somewhere currently unmapped
8314 mmap private fixed at somewhere already mapped
8315 mmap shared not fixed
8316 mmap shared fixed at somewhere currently unmapped
8317 mmap shared fixed at somewhere already mapped
8318 For private mappings, we should verify that changes cannot be read()
8319 back from the file, nor mmap's back from the file at a different
8320 address. (There have been systems where private was not correctly
8321 implemented like the infamous i386 svr4.0, and systems where the
8322 VM page cache was not coherent with the file system buffer cache
8323 like early versions of FreeBSD and possibly contemporary NetBSD.)
8324 For shared mappings, we should conversely verify that changes get
8325 propagated back to all the places they're supposed to be.
8327 Grep wants private fixed already mapped.
8328 The main things grep needs to know about mmap are:
8329 * does it exist and is it safe to write into the mmap'd area
8330 * how to use it (BSD variants) */
8333 #include <sys/mman.h>
8335 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8339 /* This mess was copied from the GNU getpagesize.h. */
8340 #ifndef HAVE_GETPAGESIZE
8341 /* Assume that all systems that can run configure have sys/param.h. */
8342 # ifndef HAVE_SYS_PARAM_H
8343 # define HAVE_SYS_PARAM_H 1
8346 # ifdef _SC_PAGESIZE
8347 # define getpagesize() sysconf(_SC_PAGESIZE)
8348 # else /* no _SC_PAGESIZE */
8349 # ifdef HAVE_SYS_PARAM_H
8350 # include <sys/param.h>
8351 # ifdef EXEC_PAGESIZE
8352 # define getpagesize() EXEC_PAGESIZE
8353 # else /* no EXEC_PAGESIZE */
8355 # define getpagesize() NBPG * CLSIZE
8358 # endif /* no CLSIZE */
8359 # else /* no NBPG */
8361 # define getpagesize() NBPC
8362 # else /* no NBPC */
8364 # define getpagesize() PAGESIZE
8365 # endif /* PAGESIZE */
8366 # endif /* no NBPC */
8367 # endif /* no NBPG */
8368 # endif /* no EXEC_PAGESIZE */
8369 # else /* no HAVE_SYS_PARAM_H */
8370 # define getpagesize() 8192 /* punt totally */
8371 # endif /* no HAVE_SYS_PARAM_H */
8372 # endif /* no _SC_PAGESIZE */
8374 #endif /* no HAVE_GETPAGESIZE */
8379 char *data, *data2, *data3;
8383 pagesize = getpagesize ();
8385 /* First, make a file with some known garbage in it. */
8386 data = (char *) malloc (pagesize);
8389 for (i = 0; i < pagesize; ++i)
8390 *(data + i) = rand ();
8392 fd = creat ("conftest.mmap
", 0600);
8395 if (write (fd, data, pagesize) != pagesize)
8399 /* Next, try to mmap the file at a fixed address which already has
8400 something else allocated at it. If we can, also make sure that
8401 we see the same garbage. */
8402 fd = open ("conftest.mmap
", O_RDWR);
8405 data2 = (char *) malloc (2 * pagesize);
8408 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8409 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8410 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8412 for (i = 0; i < pagesize; ++i)
8413 if (*(data + i) != *(data2 + i))
8416 /* Finally, make sure that changes to the mapped area do not
8417 percolate back to the file as seen by read(). (This is a bug on
8418 some variants of i386 svr4.0.) */
8419 for (i = 0; i < pagesize; ++i)
8420 *(data2 + i) = *(data2 + i) + 1;
8421 data3 = (char *) malloc (pagesize);
8424 if (read (fd, data3, pagesize) != pagesize)
8426 for (i = 0; i < pagesize; ++i)
8427 if (*(data + i) != *(data3 + i))
8433 rm -f conftest$ac_exeext
8434 if { (ac_try="$ac_link"
8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437 *) ac_try_echo=$ac_try;;
8439 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8440 $as_echo "$ac_try_echo") >&5
8441 (eval "$ac_link") 2>&5
8443 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8445 { (case "(($ac_try" in
8446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447 *) ac_try_echo=$ac_try;;
8449 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8450 $as_echo "$ac_try_echo") >&5
8451 (eval "$ac_try") 2>&5
8453 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8454 (exit $ac_status); }; }; then
8455 ac_cv_func_mmap_fixed_mapped=yes
8457 $as_echo "$as_me: program exited with status
$ac_status" >&5
8458 $as_echo "$as_me: failed program was
:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8462 ac_cv_func_mmap_fixed_mapped=no
8464 rm -rf conftest.dSYM
8465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8470 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
8471 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8472 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8474 cat >>confdefs.h <<\_ACEOF
8482 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library
2.1 or newer
" >&5
8483 $as_echo_n "checking whether we are using the GNU C Library
2.1 or newer...
" >&6; }
8484 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8485 $as_echo_n "(cached
) " >&6
8487 cat >conftest.$ac_ext <<_ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h. */
8494 #include <features.h>
8495 #ifdef __GNU_LIBRARY__
8496 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8502 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
8503 $EGREP "Lucky GNU user
" >/dev/null 2>&1; then
8504 ac_cv_gnu_library_2_1=yes
8506 ac_cv_gnu_library_2_1=no
8513 { $as_echo "$as_me:$LINENO: result
: $ac_cv_gnu_library_2_1" >&5
8514 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8516 GLIBC21="$ac_cv_gnu_library_2_1"
8521 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE
" >&5
8522 $as_echo_n "checking whether integer division by zero raises SIGFPE...
" >&6; }
8523 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8524 $as_echo_n "(cached
) " >&6
8527 if test "$cross_compiling" = yes; then
8529 # Guess based on the CPU.
8531 alpha* | i3456786 | m68k | s390*)
8532 gt_cv_int_divbyzero_sigfpe="guessing
yes";;
8534 gt_cv_int_divbyzero_sigfpe="guessing no
";;
8538 cat >conftest.$ac_ext <<_ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8550 sigfpe_handler (int sig)
8552 sigfpe_handler (sig) int sig;
8555 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8556 exit (sig != SIGFPE);
8566 signal (SIGFPE, sigfpe_handler);
8567 /* IRIX and AIX (when "xlc
-qcheck" is used) yield signal SIGTRAP. */
8568 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8569 signal (SIGTRAP, sigfpe_handler);
8571 /* Linux/SPARC yields signal SIGILL. */
8572 #if defined (__sparc__) && defined (__linux__)
8573 signal (SIGILL, sigfpe_handler);
8582 rm -f conftest$ac_exeext
8583 if { (ac_try="$ac_link"
8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8588 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8589 $as_echo "$ac_try_echo") >&5
8590 (eval "$ac_link") 2>&5
8592 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8594 { (case "(($ac_try" in
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8598 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8599 $as_echo "$ac_try_echo") >&5
8600 (eval "$ac_try") 2>&5
8602 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8603 (exit $ac_status); }; }; then
8604 gt_cv_int_divbyzero_sigfpe=yes
8606 $as_echo "$as_me: program exited with status
$ac_status" >&5
8607 $as_echo "$as_me: failed program was
:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8611 gt_cv_int_divbyzero_sigfpe=no
8613 rm -rf conftest.dSYM
8614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8620 { $as_echo "$as_me:$LINENO: result
: $gt_cv_int_divbyzero_sigfpe" >&5
8621 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
8622 case "$gt_cv_int_divbyzero_sigfpe" in
8627 cat >>confdefs.h <<_ACEOF
8628 #define INTDIV0_RAISES_SIGFPE $value
8633 { $as_echo "$as_me:$LINENO: checking
for inttypes.h
" >&5
8634 $as_echo_n "checking
for inttypes.h...
" >&6; }
8635 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
8636 $as_echo_n "(cached
) " >&6
8638 cat >conftest.$ac_ext <<_ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8644 #include <sys/types.h>
8645 #include <inttypes.h>
8649 uintmax_t i = (uintmax_t) -1;
8654 rm -f conftest.$ac_objext
8655 if { (ac_try="$ac_compile"
8657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658 *) ac_try_echo=$ac_try;;
8660 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8661 $as_echo "$ac_try_echo") >&5
8662 (eval "$ac_compile") 2>conftest.er1
8664 grep -v '^ *+' conftest.er1 >conftest.err
8666 cat conftest.err >&5
8667 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8668 (exit $ac_status); } && {
8669 test -z "$ac_c_werror_flag" ||
8670 test ! -s conftest.err
8671 } && test -s conftest.$ac_objext; then
8672 jm_ac_cv_header_inttypes_h=yes
8674 $as_echo "$as_me: failed program was
:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8677 jm_ac_cv_header_inttypes_h=no
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8682 { $as_echo "$as_me:$LINENO: result
: $jm_ac_cv_header_inttypes_h" >&5
8683 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
8684 if test $jm_ac_cv_header_inttypes_h = yes; then
8686 cat >>confdefs.h <<_ACEOF
8687 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8693 { $as_echo "$as_me:$LINENO: checking
for stdint.h
" >&5
8694 $as_echo_n "checking
for stdint.h...
" >&6; }
8695 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
8696 $as_echo_n "(cached
) " >&6
8698 cat >conftest.$ac_ext <<_ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8704 #include <sys/types.h>
8709 uintmax_t i = (uintmax_t) -1;
8714 rm -f conftest.$ac_objext
8715 if { (ac_try="$ac_compile"
8717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8718 *) ac_try_echo=$ac_try;;
8720 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8721 $as_echo "$ac_try_echo") >&5
8722 (eval "$ac_compile") 2>conftest.er1
8724 grep -v '^ *+' conftest.er1 >conftest.err
8726 cat conftest.err >&5
8727 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8728 (exit $ac_status); } && {
8729 test -z "$ac_c_werror_flag" ||
8730 test ! -s conftest.err
8731 } && test -s conftest.$ac_objext; then
8732 jm_ac_cv_header_stdint_h=yes
8734 $as_echo "$as_me: failed program was
:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8737 jm_ac_cv_header_stdint_h=no
8740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8742 { $as_echo "$as_me:$LINENO: result
: $jm_ac_cv_header_stdint_h" >&5
8743 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
8744 if test $jm_ac_cv_header_stdint_h = yes; then
8746 cat >>confdefs.h <<_ACEOF
8747 #define HAVE_STDINT_H_WITH_UINTMAX 1
8753 { $as_echo "$as_me:$LINENO: checking
for unsigned long long
" >&5
8754 $as_echo_n "checking
for unsigned long long...
" >&6; }
8755 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
8756 $as_echo_n "(cached
) " >&6
8758 cat >conftest.$ac_ext <<_ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h. */
8764 unsigned long long ull = 1; int i = 63;
8768 unsigned long long ullmax = (unsigned long long) -1;
8769 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (ac_try="$ac_link"
8777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778 *) ac_try_echo=$ac_try;;
8780 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8781 $as_echo "$ac_try_echo") >&5
8782 (eval "$ac_link") 2>conftest.er1
8784 grep -v '^ *+' conftest.er1 >conftest.err
8786 cat conftest.err >&5
8787 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8788 (exit $ac_status); } && {
8789 test -z "$ac_c_werror_flag" ||
8790 test ! -s conftest.err
8791 } && test -s conftest$ac_exeext && {
8792 test "$cross_compiling" = yes ||
8793 $as_test_x conftest$ac_exeext
8795 ac_cv_type_unsigned_long_long=yes
8797 $as_echo "$as_me: failed program was
:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8800 ac_cv_type_unsigned_long_long=no
8803 rm -rf conftest.dSYM
8804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8805 conftest$ac_exeext conftest.$ac_ext
8807 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_unsigned_long_long" >&5
8808 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
8809 if test $ac_cv_type_unsigned_long_long = yes; then
8811 cat >>confdefs.h <<\_ACEOF
8812 #define HAVE_UNSIGNED_LONG_LONG 1
8820 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
8822 test $ac_cv_type_unsigned_long_long = yes \
8823 && ac_type='unsigned long long' \
8824 || ac_type='unsigned long'
8826 cat >>confdefs.h <<_ACEOF
8827 #define uintmax_t $ac_type
8832 cat >>confdefs.h <<\_ACEOF
8833 #define HAVE_UINTMAX_T 1
8839 { $as_echo "$as_me:$LINENO: checking
for inttypes.h
" >&5
8840 $as_echo_n "checking
for inttypes.h...
" >&6; }
8841 if test "${gt_cv_header_inttypes_h+set}" = set; then
8842 $as_echo_n "(cached
) " >&6
8845 cat >conftest.$ac_ext <<_ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8851 #include <sys/types.h>
8852 #include <inttypes.h>
8861 rm -f conftest.$ac_objext
8862 if { (ac_try="$ac_compile"
8864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865 *) ac_try_echo=$ac_try;;
8867 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8868 $as_echo "$ac_try_echo") >&5
8869 (eval "$ac_compile") 2>conftest.er1
8871 grep -v '^ *+' conftest.er1 >conftest.err
8873 cat conftest.err >&5
8874 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8875 (exit $ac_status); } && {
8876 test -z "$ac_c_werror_flag" ||
8877 test ! -s conftest.err
8878 } && test -s conftest.$ac_objext; then
8879 gt_cv_header_inttypes_h=yes
8881 $as_echo "$as_me: failed program was
:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8884 gt_cv_header_inttypes_h=no
8887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8890 { $as_echo "$as_me:$LINENO: result
: $gt_cv_header_inttypes_h" >&5
8891 $as_echo "$gt_cv_header_inttypes_h" >&6; }
8892 if test $gt_cv_header_inttypes_h = yes; then
8894 cat >>confdefs.h <<_ACEOF
8895 #define HAVE_INTTYPES_H 1
8902 if test $gt_cv_header_inttypes_h = yes; then
8903 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken
" >&5
8904 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken...
" >&6; }
8905 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
8906 $as_echo_n "(cached
) " >&6
8909 cat >conftest.$ac_ext <<_ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h. */
8915 #include <inttypes.h>
8928 rm -f conftest.$ac_objext
8929 if { (ac_try="$ac_compile"
8931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932 *) ac_try_echo=$ac_try;;
8934 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8935 $as_echo "$ac_try_echo") >&5
8936 (eval "$ac_compile") 2>conftest.er1
8938 grep -v '^ *+' conftest.er1 >conftest.err
8940 cat conftest.err >&5
8941 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8942 (exit $ac_status); } && {
8943 test -z "$ac_c_werror_flag" ||
8944 test ! -s conftest.err
8945 } && test -s conftest.$ac_objext; then
8946 gt_cv_inttypes_pri_broken=no
8948 $as_echo "$as_me: failed program was
:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8951 gt_cv_inttypes_pri_broken=yes
8954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8957 { $as_echo "$as_me:$LINENO: result
: $gt_cv_inttypes_pri_broken" >&5
8958 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8960 if test "$gt_cv_inttypes_pri_broken" = yes; then
8962 cat >>confdefs.h <<_ACEOF
8963 #define PRI_MACROS_BROKEN 1
8969 if test "X
$prefix" = "XNONE
"; then
8970 acl_final_prefix="$ac_default_prefix"
8972 acl_final_prefix="$prefix"
8974 if test "X
$exec_prefix" = "XNONE
"; then
8975 acl_final_exec_prefix='${prefix}'
8977 acl_final_exec_prefix="$exec_prefix"
8979 acl_save_prefix="$prefix"
8980 prefix="$acl_final_prefix"
8981 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8982 prefix="$acl_save_prefix"
8985 # Check whether --with-gnu-ld was given.
8986 if test "${with_gnu_ld+set}" = set; then
8987 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8992 # Prepare PATH_SEPARATOR.
8993 # The user is always right.
8994 if test "${PATH_SEPARATOR+set}" != set; then
8995 echo "#! /bin/sh" >conf$$.sh
8996 echo "exit 0" >>conf$$.sh
8998 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9006 if test "$GCC" = yes; then
9007 # Check if gcc -print-prog-name=ld gives a path.
9008 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9009 $as_echo_n "checking for ld used by GCC... " >&6; }
9012 # gcc leaves a trailing carriage return which upsets mingw
9013 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9015 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9018 # Accept absolute paths.
9019 [\\/]* |
[A-Za-z
]:[\\/]*)
9020 re_direlt
='/[^/][^/]*/\.\./'
9021 # Canonicalize the path of ld
9022 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9023 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9024 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9026 test -z "$LD" && LD
="$ac_prog"
9029 # If it fails, then pretend we aren't using GCC.
9033 # If it is relative, then search for the first ld in PATH.
9037 elif test "$with_gnu_ld" = yes; then
9038 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
9039 $as_echo_n "checking for GNU ld... " >&6; }
9041 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9042 $as_echo_n "checking for non-GNU ld... " >&6; }
9044 if test "${acl_cv_path_LD+set}" = set; then
9045 $as_echo_n "(cached) " >&6
9047 if test -z "$LD"; then
9048 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9049 for ac_dir
in $PATH; do
9050 test -z "$ac_dir" && ac_dir
=.
9051 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9052 acl_cv_path_LD
="$ac_dir/$ac_prog"
9053 # Check to see if the program is GNU ld. I'd rather use --version,
9054 # but apparently some GNU ld's only accept -v.
9055 # Break only if it was the GNU/non-GNU ld that we prefer.
9056 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9057 test "$with_gnu_ld" != no
&& break
9059 test "$with_gnu_ld" != yes && break
9065 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9069 LD
="$acl_cv_path_LD"
9070 if test -n "$LD"; then
9071 { $as_echo "$as_me:$LINENO: result: $LD" >&5
9072 $as_echo "$LD" >&6; }
9074 { $as_echo "$as_me:$LINENO: result: no" >&5
9075 $as_echo "no" >&6; }
9077 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9078 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9079 { (exit 1); exit 1; }; }
9080 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9081 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9082 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9083 $as_echo_n "(cached) " >&6
9085 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9086 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9087 acl_cv_prog_gnu_ld
=yes
9089 acl_cv_prog_gnu_ld
=no
9092 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9093 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9094 with_gnu_ld
=$acl_cv_prog_gnu_ld
9098 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9099 $as_echo_n "checking for shared library run path origin... " >&6; }
9100 if test "${acl_cv_rpath+set}" = set; then
9101 $as_echo_n "(cached) " >&6
9104 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9105 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9111 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9112 $as_echo "$acl_cv_rpath" >&6; }
9114 libext
="$acl_cv_libext"
9115 shlibext
="$acl_cv_shlibext"
9116 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9117 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9118 hardcode_direct
="$acl_cv_hardcode_direct"
9119 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9120 # Check whether --enable-rpath was given.
9121 if test "${enable_rpath+set}" = set; then
9122 enableval
=$enable_rpath; :
9136 acl_save_prefix
="$prefix"
9137 prefix
="$acl_final_prefix"
9138 acl_save_exec_prefix
="$exec_prefix"
9139 exec_prefix
="$acl_final_exec_prefix"
9141 eval additional_includedir
=\"$includedir\"
9142 eval additional_libdir
=\"$libdir\"
9144 exec_prefix
="$acl_save_exec_prefix"
9145 prefix
="$acl_save_prefix"
9148 # Check whether --with-libiconv-prefix was given.
9149 if test "${with_libiconv_prefix+set}" = set; then
9150 withval
=$with_libiconv_prefix;
9151 if test "X$withval" = "Xno"; then
9154 if test "X$withval" = "X"; then
9156 acl_save_prefix
="$prefix"
9157 prefix
="$acl_final_prefix"
9158 acl_save_exec_prefix
="$exec_prefix"
9159 exec_prefix
="$acl_final_exec_prefix"
9161 eval additional_includedir
=\"$includedir\"
9162 eval additional_libdir
=\"$libdir\"
9164 exec_prefix
="$acl_save_exec_prefix"
9165 prefix
="$acl_save_prefix"
9168 additional_includedir
="$withval/include"
9169 additional_libdir
="$withval/lib"
9180 names_already_handled
=
9181 names_next_round
='iconv '
9182 while test -n "$names_next_round"; do
9183 names_this_round
="$names_next_round"
9185 for name
in $names_this_round; do
9187 for n
in $names_already_handled; do
9188 if test "$n" = "$name"; then
9193 if test -z "$already_handled"; then
9194 names_already_handled
="$names_already_handled $name"
9195 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9196 eval value
=\"\
$HAVE_LIB$uppername\"
9197 if test -n "$value"; then
9198 if test "$value" = yes; then
9199 eval value
=\"\
$LIB$uppername\"
9200 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9201 eval value
=\"\
$LTLIB$uppername\"
9202 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9211 if test $use_additional = yes; then
9212 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9213 found_dir
="$additional_libdir"
9214 found_so
="$additional_libdir/lib$name.$shlibext"
9215 if test -f "$additional_libdir/lib$name.la"; then
9216 found_la
="$additional_libdir/lib$name.la"
9219 if test -f "$additional_libdir/lib$name.$libext"; then
9220 found_dir
="$additional_libdir"
9221 found_a
="$additional_libdir/lib$name.$libext"
9222 if test -f "$additional_libdir/lib$name.la"; then
9223 found_la
="$additional_libdir/lib$name.la"
9228 if test "X$found_dir" = "X"; then
9229 for x
in $LDFLAGS $LTLIBICONV; do
9231 acl_save_prefix
="$prefix"
9232 prefix
="$acl_final_prefix"
9233 acl_save_exec_prefix
="$exec_prefix"
9234 exec_prefix
="$acl_final_exec_prefix"
9236 exec_prefix
="$acl_save_exec_prefix"
9237 prefix
="$acl_save_prefix"
9241 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9242 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9244 found_so
="$dir/lib$name.$shlibext"
9245 if test -f "$dir/lib$name.la"; then
9246 found_la
="$dir/lib$name.la"
9249 if test -f "$dir/lib$name.$libext"; then
9251 found_a
="$dir/lib$name.$libext"
9252 if test -f "$dir/lib$name.la"; then
9253 found_la
="$dir/lib$name.la"
9259 if test "X$found_dir" != "X"; then
9264 if test "X$found_dir" != "X"; then
9265 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9266 if test "X$found_so" != "X"; then
9267 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9268 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9271 for x
in $ltrpathdirs; do
9272 if test "X$x" = "X$found_dir"; then
9277 if test -z "$haveit"; then
9278 ltrpathdirs
="$ltrpathdirs $found_dir"
9280 if test "$hardcode_direct" = yes; then
9281 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9283 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9284 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9286 for x
in $rpathdirs; do
9287 if test "X$x" = "X$found_dir"; then
9292 if test -z "$haveit"; then
9293 rpathdirs
="$rpathdirs $found_dir"
9297 for x
in $LDFLAGS $LIBICONV; do
9299 acl_save_prefix
="$prefix"
9300 prefix
="$acl_final_prefix"
9301 acl_save_exec_prefix
="$exec_prefix"
9302 exec_prefix
="$acl_final_exec_prefix"
9304 exec_prefix
="$acl_save_exec_prefix"
9305 prefix
="$acl_save_prefix"
9307 if test "X$x" = "X-L$found_dir"; then
9312 if test -z "$haveit"; then
9313 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9315 if test "$hardcode_minus_L" != no
; then
9316 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9318 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9324 if test "X$found_a" != "X"; then
9325 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9327 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9330 additional_includedir
=
9331 case "$found_dir" in
9333 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9334 additional_includedir
="$basedir/include"
9337 if test "X$additional_includedir" != "X"; then
9338 if test "X$additional_includedir" != "X/usr/include"; then
9340 if test "X$additional_includedir" = "X/usr/local/include"; then
9341 if test -n "$GCC"; then
9343 linux
*) haveit
=yes;;
9347 if test -z "$haveit"; then
9348 for x
in $CPPFLAGS $INCICONV; do
9350 acl_save_prefix
="$prefix"
9351 prefix
="$acl_final_prefix"
9352 acl_save_exec_prefix
="$exec_prefix"
9353 exec_prefix
="$acl_final_exec_prefix"
9355 exec_prefix
="$acl_save_exec_prefix"
9356 prefix
="$acl_save_prefix"
9358 if test "X$x" = "X-I$additional_includedir"; then
9363 if test -z "$haveit"; then
9364 if test -d "$additional_includedir"; then
9365 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9371 if test -n "$found_la"; then
9372 save_libdir
="$libdir"
9374 */* |
*\\*) .
"$found_la" ;;
9375 *) .
"./$found_la" ;;
9377 libdir
="$save_libdir"
9378 for dep
in $dependency_libs; do
9381 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9382 if test "X$additional_libdir" != "X/usr/lib"; then
9384 if test "X$additional_libdir" = "X/usr/local/lib"; then
9385 if test -n "$GCC"; then
9387 linux
*) haveit
=yes;;
9391 if test -z "$haveit"; then
9393 for x
in $LDFLAGS $LIBICONV; do
9395 acl_save_prefix
="$prefix"
9396 prefix
="$acl_final_prefix"
9397 acl_save_exec_prefix
="$exec_prefix"
9398 exec_prefix
="$acl_final_exec_prefix"
9400 exec_prefix
="$acl_save_exec_prefix"
9401 prefix
="$acl_save_prefix"
9403 if test "X$x" = "X-L$additional_libdir"; then
9408 if test -z "$haveit"; then
9409 if test -d "$additional_libdir"; then
9410 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9414 for x
in $LDFLAGS $LTLIBICONV; do
9416 acl_save_prefix
="$prefix"
9417 prefix
="$acl_final_prefix"
9418 acl_save_exec_prefix
="$exec_prefix"
9419 exec_prefix
="$acl_final_exec_prefix"
9421 exec_prefix
="$acl_save_exec_prefix"
9422 prefix
="$acl_save_prefix"
9424 if test "X$x" = "X-L$additional_libdir"; then
9429 if test -z "$haveit"; then
9430 if test -d "$additional_libdir"; then
9431 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9438 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9439 if test "$enable_rpath" != no
; then
9441 for x
in $rpathdirs; do
9442 if test "X$x" = "X$dir"; then
9447 if test -z "$haveit"; then
9448 rpathdirs
="$rpathdirs $dir"
9451 for x
in $ltrpathdirs; do
9452 if test "X$x" = "X$dir"; then
9457 if test -z "$haveit"; then
9458 ltrpathdirs
="$ltrpathdirs $dir"
9463 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9466 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9469 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9470 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9476 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9477 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9483 if test "X$rpathdirs" != "X"; then
9484 if test -n "$hardcode_libdir_separator"; then
9486 for found_dir
in $rpathdirs; do
9487 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9489 acl_save_libdir
="$libdir"
9491 eval flag
=\"$hardcode_libdir_flag_spec\"
9492 libdir
="$acl_save_libdir"
9493 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9495 for found_dir
in $rpathdirs; do
9496 acl_save_libdir
="$libdir"
9498 eval flag
=\"$hardcode_libdir_flag_spec\"
9499 libdir
="$acl_save_libdir"
9500 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9504 if test "X$ltrpathdirs" != "X"; then
9505 for found_dir
in $ltrpathdirs; do
9506 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9523 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9524 stdlib.h string.h unistd.h sys
/param.h
9526 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9527 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9528 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9529 $as_echo_n "checking for $ac_header... " >&6; }
9530 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9531 $as_echo_n "(cached) " >&6
9533 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9534 $as_echo "$as_val"'`
9535 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9536 $as_echo "$ac_res" >&6; }
9538 # Is the header compilable?
9539 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9540 $as_echo_n "checking $ac_header usability... " >&6; }
9541 cat >conftest.
$ac_ext <<_ACEOF
9544 cat confdefs.h
>>conftest.
$ac_ext
9545 cat >>conftest.
$ac_ext <<_ACEOF
9546 /* end confdefs.h. */
9547 $ac_includes_default
9548 #include <$ac_header>
9550 rm -f conftest.
$ac_objext
9551 if { (ac_try
="$ac_compile"
9553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9554 *) ac_try_echo=$ac_try;;
9556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9557 $as_echo "$ac_try_echo") >&5
9558 (eval "$ac_compile") 2>conftest.er1
9560 grep -v '^ *+' conftest.er1 >conftest.err
9562 cat conftest.err >&5
9563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } && {
9565 test -z "$ac_c_werror_flag" ||
9566 test ! -s conftest.err
9567 } && test -s conftest.$ac_objext; then
9568 ac_header_compiler=yes
9570 $as_echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9573 ac_header_compiler=no
9576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9577 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9578 $as_echo "$ac_header_compiler" >&6; }
9580 # Is the header present?
9581 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9582 $as_echo_n "checking $ac_header presence... " >&6; }
9583 cat >conftest.$ac_ext <<_ACEOF
9586 cat confdefs.h >>conftest.$ac_ext
9587 cat >>conftest.$ac_ext <<_ACEOF
9588 /* end confdefs.h. */
9589 #include <$ac_header>
9591 if { (ac_try="$ac_cpp conftest.$ac_ext"
9593 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9594 *) ac_try_echo
=$ac_try;;
9596 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9597 $as_echo "$ac_try_echo") >&5
9598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9600 grep -v '^ *+' conftest.er1
>conftest.err
9602 cat conftest.err
>&5
9603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); } >/dev
/null
&& {
9605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9606 test ! -s conftest.err
9608 ac_header_preproc
=yes
9610 $as_echo "$as_me: failed program was:" >&5
9611 sed 's/^/| /' conftest.
$ac_ext >&5
9613 ac_header_preproc
=no
9616 rm -f conftest.err conftest.
$ac_ext
9617 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9618 $as_echo "$ac_header_preproc" >&6; }
9620 # So? What about this header?
9621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9624 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9626 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9627 ac_header_preproc
=yes
9630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9631 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9633 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9635 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9637 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9639 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9641 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9643 ## ------------------------------- ##
9644 ## Report this to bug-bash@gnu.org ##
9645 ## ------------------------------- ##
9647 ) |
sed "s/^/$as_me: WARNING: /" >&2
9650 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9651 $as_echo_n "checking for $ac_header... " >&6; }
9652 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9653 $as_echo_n "(cached) " >&6
9655 eval "$as_ac_Header=\$ac_header_preproc"
9657 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9658 $as_echo "$as_val"'`
9659 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9660 $as_echo "$ac_res" >&6; }
9663 as_val
=`eval 'as_val=${'$as_ac_Header'}
9664 $as_echo "$as_val"'`
9665 if test "x$as_val" = x
""yes; then
9666 cat >>confdefs.h
<<_ACEOF
9667 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9697 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
9698 geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \
9699 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
9702 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9703 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9704 $as_echo_n "checking for $ac_func... " >&6; }
9705 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9706 $as_echo_n "(cached) " >&6
9708 cat >conftest.
$ac_ext <<_ACEOF
9711 cat confdefs.h
>>conftest.
$ac_ext
9712 cat >>conftest.
$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9716 #define $ac_func innocuous_$ac_func
9718 /* System header to define __stub macros and hopefully few prototypes,
9719 which can conflict with char $ac_func (); below.
9720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9721 <limits.h> exists even on freestanding compilers. */
9724 # include <limits.h>
9726 # include <assert.h>
9731 /* Override any GCC internal prototype to avoid an error.
9732 Use char because int might match the return type of a GCC
9733 builtin and then its argument prototype would still apply. */
9738 /* The GNU C library defines this for functions which it implements
9739 to always fail with ENOSYS. Some functions are actually named
9740 something starting with __ and the normal name is an alias. */
9741 #if defined __stub_$ac_func || defined __stub___$ac_func
9753 rm -f conftest.
$ac_objext conftest
$ac_exeext
9754 if { (ac_try
="$ac_link"
9756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9760 $as_echo "$ac_try_echo") >&5
9761 (eval "$ac_link") 2>conftest.er1
9763 grep -v '^ *+' conftest.er1 >conftest.err
9765 cat conftest.err >&5
9766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } && {
9768 test -z "$ac_c_werror_flag" ||
9769 test ! -s conftest.err
9770 } && test -s conftest$ac_exeext && {
9771 test "$cross_compiling" = yes ||
9772 $as_test_x conftest$ac_exeext
9774 eval "$as_ac_var=yes"
9776 $as_echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9779 eval "$as_ac_var=no"
9782 rm -rf conftest.dSYM
9783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9784 conftest$ac_exeext conftest.$ac_ext
9786 ac_res=`eval 'as_val=${'$as_ac_var'}
9787 $as_echo "$as_val"'`
9788 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9789 $as_echo "$ac_res" >&6; }
9790 as_val=`eval 'as_val=${'$as_ac_var'}
9791 $as_echo "$as_val"'`
9792 if test "x$as_val" = x""yes; then
9793 cat >>confdefs.h <<_ACEOF
9794 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9806 am_save_CPPFLAGS="$CPPFLAGS"
9808 for element in $INCICONV; do
9810 for x in $CPPFLAGS; do
9812 acl_save_prefix="$prefix"
9813 prefix="$acl_final_prefix"
9814 acl_save_exec_prefix="$exec_prefix"
9815 exec_prefix="$acl_final_exec_prefix"
9817 exec_prefix="$acl_save_exec_prefix"
9818 prefix="$acl_save_prefix"
9820 if test "X$x" = "X$element"; then
9825 if test -z "$haveit"; then
9826 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9831 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
9832 $as_echo_n "checking for iconv... " >&6; }
9833 if test "${am_cv_func_iconv+set}" = set; then
9834 $as_echo_n "(cached) " >&6
9837 am_cv_func_iconv="no, consider installing GNU libiconv"
9839 cat >conftest.$ac_ext <<_ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9850 iconv_t cd = iconv_open("","");
9851 iconv(cd,NULL,NULL,NULL,NULL);
9857 rm -f conftest.$ac_objext conftest$ac_exeext
9858 if { (ac_try="$ac_link"
9860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9861 *) ac_try_echo
=$ac_try;;
9863 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9864 $as_echo "$ac_try_echo") >&5
9865 (eval "$ac_link") 2>conftest.er1
9867 grep -v '^ *+' conftest.er1
>conftest.err
9869 cat conftest.err
>&5
9870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } && {
9872 test -z "$ac_c_werror_flag" ||
9873 test ! -s conftest.err
9874 } && test -s conftest
$ac_exeext && {
9875 test "$cross_compiling" = yes ||
9876 $as_test_x conftest
$ac_exeext
9878 am_cv_func_iconv
=yes
9880 $as_echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.
$ac_ext >&5
9886 rm -rf conftest.dSYM
9887 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9888 conftest
$ac_exeext conftest.
$ac_ext
9889 if test "$am_cv_func_iconv" != yes; then
9890 am_save_LIBS
="$LIBS"
9891 LIBS
="$LIBS $LIBICONV"
9892 cat >conftest.
$ac_ext <<_ACEOF
9895 cat confdefs.h
>>conftest.
$ac_ext
9896 cat >>conftest.
$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9903 iconv_t cd = iconv_open("","");
9904 iconv(cd,NULL,NULL,NULL,NULL);
9910 rm -f conftest.
$ac_objext conftest
$ac_exeext
9911 if { (ac_try
="$ac_link"
9913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9917 $as_echo "$ac_try_echo") >&5
9918 (eval "$ac_link") 2>conftest.er1
9920 grep -v '^ *+' conftest.er1 >conftest.err
9922 cat conftest.err >&5
9923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } && {
9925 test -z "$ac_c_werror_flag" ||
9926 test ! -s conftest.err
9927 } && test -s conftest$ac_exeext && {
9928 test "$cross_compiling" = yes ||
9929 $as_test_x conftest$ac_exeext
9932 am_cv_func_iconv=yes
9934 $as_echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9940 rm -rf conftest.dSYM
9941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9942 conftest$ac_exeext conftest.$ac_ext
9943 LIBS="$am_save_LIBS"
9947 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9948 $as_echo "$am_cv_func_iconv" >&6; }
9949 if test "$am_cv_func_iconv" = yes; then
9951 cat >>confdefs.h <<\_ACEOF
9952 #define HAVE_ICONV 1
9956 if test "$am_cv_lib_iconv" = yes; then
9957 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9958 $as_echo_n "checking how to link with libiconv... " >&6; }
9959 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
9960 $as_echo "$LIBICONV" >&6; }
9962 CPPFLAGS="$am_save_CPPFLAGS"
9969 if test "$am_cv_func_iconv" = yes; then
9970 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
9971 $as_echo_n "checking for iconv declaration... " >&6; }
9972 if test "${am_cv_proto_iconv+set}" = set; then
9973 $as_echo_n "(cached) " >&6
9976 cat >conftest.$ac_ext <<_ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9989 #if defined(__STDC__) || defined(__cplusplus)
9990 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10003 rm -f conftest.$ac_objext
10004 if { (ac_try="$ac_compile"
10005 case "(($ac_try" in
10006 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10007 *) ac_try_echo
=$ac_try;;
10009 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10010 $as_echo "$ac_try_echo") >&5
10011 (eval "$ac_compile") 2>conftest.er1
10013 grep -v '^ *+' conftest.er1
>conftest.err
10015 cat conftest.err
>&5
10016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } && {
10018 test -z "$ac_c_werror_flag" ||
10019 test ! -s conftest.err
10020 } && test -s conftest.
$ac_objext; then
10021 am_cv_proto_iconv_arg1
=""
10023 $as_echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.
$ac_ext >&5
10026 am_cv_proto_iconv_arg1
="const"
10029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10030 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);"
10033 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10034 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
10035 }$am_cv_proto_iconv" >&5
10037 }$am_cv_proto_iconv" >&6; }
10039 cat >>confdefs.h
<<_ACEOF
10040 #define ICONV_CONST $am_cv_proto_iconv_arg1
10046 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10047 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10048 if test "${am_cv_langinfo_codeset+set}" = set; then
10049 $as_echo_n "(cached) " >&6
10051 cat >conftest.
$ac_ext <<_ACEOF
10054 cat confdefs.h
>>conftest.
$ac_ext
10055 cat >>conftest.
$ac_ext <<_ACEOF
10056 /* end confdefs.h. */
10057 #include <langinfo.h>
10061 char* cs = nl_langinfo(CODESET);
10066 rm -f conftest.
$ac_objext conftest
$ac_exeext
10067 if { (ac_try
="$ac_link"
10068 case "(($ac_try" in
10069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10073 $as_echo "$ac_try_echo") >&5
10074 (eval "$ac_link") 2>conftest.er1
10076 grep -v '^ *+' conftest.er1 >conftest.err
10078 cat conftest.err >&5
10079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } && {
10081 test -z "$ac_c_werror_flag" ||
10082 test ! -s conftest.err
10083 } && test -s conftest$ac_exeext && {
10084 test "$cross_compiling" = yes ||
10085 $as_test_x conftest$ac_exeext
10087 am_cv_langinfo_codeset=yes
10089 $as_echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10092 am_cv_langinfo_codeset=no
10095 rm -rf conftest.dSYM
10096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10097 conftest$ac_exeext conftest.$ac_ext
10100 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10101 $as_echo "$am_cv_langinfo_codeset" >&6; }
10102 if test $am_cv_langinfo_codeset = yes; then
10104 cat >>confdefs.h <<\_ACEOF
10105 #define HAVE_LANGINFO_CODESET 1
10110 if test $ac_cv_header_locale_h = yes; then
10112 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10113 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10114 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10115 $as_echo_n "(cached) " >&6
10117 cat >conftest.$ac_ext <<_ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h. */
10123 #include <locale.h>
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (ac_try="$ac_link"
10134 case "(($ac_try" in
10135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10136 *) ac_try_echo
=$ac_try;;
10138 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10139 $as_echo "$ac_try_echo") >&5
10140 (eval "$ac_link") 2>conftest.er1
10142 grep -v '^ *+' conftest.er1
>conftest.err
10144 cat conftest.err
>&5
10145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } && {
10147 test -z "$ac_c_werror_flag" ||
10148 test ! -s conftest.err
10149 } && test -s conftest
$ac_exeext && {
10150 test "$cross_compiling" = yes ||
10151 $as_test_x conftest
$ac_exeext
10153 am_cv_val_LC_MESSAGES
=yes
10155 $as_echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.
$ac_ext >&5
10158 am_cv_val_LC_MESSAGES
=no
10161 rm -rf conftest.dSYM
10162 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10163 conftest
$ac_exeext conftest.
$ac_ext
10165 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10166 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10167 if test $am_cv_val_LC_MESSAGES = yes; then
10169 cat >>confdefs.h
<<\_ACEOF
10170 #define HAVE_LC_MESSAGES 1
10177 for ac_prog
in bison
10179 # Extract the first word of "$ac_prog", so it can be a program name with args.
10180 set dummy
$ac_prog; ac_word
=$2
10181 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10182 $as_echo_n "checking for $ac_word... " >&6; }
10183 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10184 $as_echo_n "(cached) " >&6
10186 if test -n "$INTLBISON"; then
10187 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
10189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10190 for as_dir
in $PATH
10193 test -z "$as_dir" && as_dir
=.
10194 for ac_exec_ext
in '' $ac_executable_extensions; do
10195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10196 ac_cv_prog_INTLBISON
="$ac_prog"
10197 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10206 INTLBISON
=$ac_cv_prog_INTLBISON
10207 if test -n "$INTLBISON"; then
10208 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
10209 $as_echo "$INTLBISON" >&6; }
10211 { $as_echo "$as_me:$LINENO: result: no" >&5
10212 $as_echo "no" >&6; }
10216 test -n "$INTLBISON" && break
10219 if test -z "$INTLBISON"; then
10222 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
10223 $as_echo_n "checking version of bison... " >&6; }
10224 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10225 case $ac_prog_version in
10226 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
10227 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
10228 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
10229 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
10231 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10232 $as_echo "$ac_prog_version" >&6; }
10234 if test $ac_verc_fail = yes; then
10253 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10254 $as_echo_n "checking whether NLS is requested... " >&6; }
10255 # Check whether --enable-nls was given.
10256 if test "${enable_nls+set}" = set; then
10257 enableval
=$enable_nls; USE_NLS
=$enableval
10262 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10263 $as_echo "$USE_NLS" >&6; }
10268 BUILD_INCLUDED_LIBINTL
=no
10269 USE_INCLUDED_LIBINTL
=no
10275 if test "$USE_NLS" = "yes"; then
10276 gt_use_preinstalled_gnugettext
=no
10278 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10279 $as_echo_n "checking whether included gettext is requested... " >&6; }
10281 # Check whether --with-included-gettext was given.
10282 if test "${with_included_gettext+set}" = set; then
10283 withval
=$with_included_gettext; nls_cv_force_use_gnu_gettext
=$withval
10285 nls_cv_force_use_gnu_gettext
=no
10288 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10289 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10291 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
10292 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10299 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10300 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10301 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
10302 $as_echo_n "(cached) " >&6
10304 cat >conftest.
$ac_ext <<_ACEOF
10307 cat confdefs.h
>>conftest.
$ac_ext
10308 cat >>conftest.
$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10310 #include <libintl.h>
10311 extern int _nl_msg_cat_cntr;
10312 extern int *_nl_domain_bindings;
10316 bindtextdomain ("", "");
10317 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
10322 rm -f conftest.
$ac_objext conftest
$ac_exeext
10323 if { (ac_try
="$ac_link"
10324 case "(($ac_try" in
10325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10326 *) ac_try_echo=$ac_try;;
10328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10329 $as_echo "$ac_try_echo") >&5
10330 (eval "$ac_link") 2>conftest.er1
10332 grep -v '^ *+' conftest.er1 >conftest.err
10334 cat conftest.err >&5
10335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } && {
10337 test -z "$ac_c_werror_flag" ||
10338 test ! -s conftest.err
10339 } && test -s conftest$ac_exeext && {
10340 test "$cross_compiling" = yes ||
10341 $as_test_x conftest$ac_exeext
10343 gt_cv_func_gnugettext2_libc=yes
10345 $as_echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10348 gt_cv_func_gnugettext2_libc=no
10351 rm -rf conftest.dSYM
10352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10353 conftest$ac_exeext conftest.$ac_ext
10355 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
10356 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
10358 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
10364 acl_save_prefix="$prefix"
10365 prefix="$acl_final_prefix"
10366 acl_save_exec_prefix="$exec_prefix"
10367 exec_prefix="$acl_final_exec_prefix"
10369 eval additional_includedir=\"$includedir\"
10370 eval additional_libdir=\"$libdir\"
10372 exec_prefix="$acl_save_exec_prefix"
10373 prefix="$acl_save_prefix"
10376 # Check whether --with-libintl-prefix was given.
10377 if test "${with_libintl_prefix+set}" = set; then
10378 withval=$with_libintl_prefix;
10379 if test "X$withval" = "Xno"; then
10382 if test "X$withval" = "X"; then
10384 acl_save_prefix="$prefix"
10385 prefix="$acl_final_prefix"
10386 acl_save_exec_prefix="$exec_prefix"
10387 exec_prefix="$acl_final_exec_prefix"
10389 eval additional_includedir=\"$includedir\"
10390 eval additional_libdir=\"$libdir\"
10392 exec_prefix="$acl_save_exec_prefix"
10393 prefix="$acl_save_prefix"
10396 additional_includedir="$withval/include"
10397 additional_libdir="$withval/lib"
10408 names_already_handled=
10409 names_next_round='intl '
10410 while test -n "$names_next_round"; do
10411 names_this_round="$names_next_round"
10413 for name in $names_this_round; do
10415 for n in $names_already_handled; do
10416 if test "$n" = "$name"; then
10417 already_handled=yes
10421 if test -z "$already_handled"; then
10422 names_already_handled="$names_already_handled $name"
10423 uppername=`echo "$name" |
sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10424 eval value=\"\$HAVE_LIB$uppername\"
10425 if test -n "$value"; then
10426 if test "$value" = yes; then
10427 eval value=\"\$LIB$uppername\"
10428 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10429 eval value=\"\$LTLIB$uppername\"
10430 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10439 if test $use_additional = yes; then
10440 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10441 found_dir="$additional_libdir"
10442 found_so="$additional_libdir/lib$name.$shlibext"
10443 if test -f "$additional_libdir/lib$name.la"; then
10444 found_la="$additional_libdir/lib$name.la"
10447 if test -f "$additional_libdir/lib$name.$libext"; then
10448 found_dir="$additional_libdir"
10449 found_a="$additional_libdir/lib$name.$libext"
10450 if test -f "$additional_libdir/lib$name.la"; then
10451 found_la="$additional_libdir/lib$name.la"
10456 if test "X$found_dir" = "X"; then
10457 for x in $LDFLAGS $LTLIBINTL; do
10459 acl_save_prefix="$prefix"
10460 prefix="$acl_final_prefix"
10461 acl_save_exec_prefix="$exec_prefix"
10462 exec_prefix="$acl_final_exec_prefix"
10464 exec_prefix="$acl_save_exec_prefix"
10465 prefix="$acl_save_prefix"
10469 dir=`echo "X$x" |
sed -e 's/^X-L//'`
10470 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10472 found_so="$dir/lib$name.$shlibext"
10473 if test -f "$dir/lib$name.la"; then
10474 found_la="$dir/lib$name.la"
10477 if test -f "$dir/lib$name.$libext"; then
10479 found_a="$dir/lib$name.$libext"
10480 if test -f "$dir/lib$name.la"; then
10481 found_la="$dir/lib$name.la"
10487 if test "X$found_dir" != "X"; then
10492 if test "X$found_dir" != "X"; then
10493 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10494 if test "X$found_so" != "X"; then
10495 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10496 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10499 for x in $ltrpathdirs; do
10500 if test "X$x" = "X$found_dir"; then
10505 if test -z "$haveit"; then
10506 ltrpathdirs="$ltrpathdirs $found_dir"
10508 if test "$hardcode_direct" = yes; then
10509 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10511 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10512 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10514 for x in $rpathdirs; do
10515 if test "X$x" = "X$found_dir"; then
10520 if test -z "$haveit"; then
10521 rpathdirs="$rpathdirs $found_dir"
10525 for x in $LDFLAGS $LIBINTL; do
10527 acl_save_prefix="$prefix"
10528 prefix="$acl_final_prefix"
10529 acl_save_exec_prefix="$exec_prefix"
10530 exec_prefix="$acl_final_exec_prefix"
10532 exec_prefix="$acl_save_exec_prefix"
10533 prefix="$acl_save_prefix"
10535 if test "X$x" = "X-L$found_dir"; then
10540 if test -z "$haveit"; then
10541 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10543 if test "$hardcode_minus_L" != no; then
10544 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10546 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10552 if test "X$found_a" != "X"; then
10553 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10555 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10558 additional_includedir=
10559 case "$found_dir" in
10561 basedir=`echo "X$found_dir" |
sed -e 's,^X,,' -e 's,/lib/*$,,'`
10562 additional_includedir="$basedir/include"
10565 if test "X$additional_includedir" != "X"; then
10566 if test "X$additional_includedir" != "X/usr/include"; then
10568 if test "X$additional_includedir" = "X/usr/local/include"; then
10569 if test -n "$GCC"; then
10571 linux*) haveit=yes;;
10575 if test -z "$haveit"; then
10576 for x in $CPPFLAGS $INCINTL; do
10578 acl_save_prefix="$prefix"
10579 prefix="$acl_final_prefix"
10580 acl_save_exec_prefix="$exec_prefix"
10581 exec_prefix="$acl_final_exec_prefix"
10583 exec_prefix="$acl_save_exec_prefix"
10584 prefix="$acl_save_prefix"
10586 if test "X$x" = "X-I$additional_includedir"; then
10591 if test -z "$haveit"; then
10592 if test -d "$additional_includedir"; then
10593 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10599 if test -n "$found_la"; then
10600 save_libdir="$libdir"
10601 case "$found_la" in
10602 */* | *\\*) . "$found_la" ;;
10603 *) . "./$found_la" ;;
10605 libdir="$save_libdir"
10606 for dep in $dependency_libs; do
10609 additional_libdir=`echo "X$dep" |
sed -e 's/^X-L//'`
10610 if test "X$additional_libdir" != "X/usr/lib"; then
10612 if test "X$additional_libdir" = "X/usr/local/lib"; then
10613 if test -n "$GCC"; then
10615 linux*) haveit=yes;;
10619 if test -z "$haveit"; then
10621 for x in $LDFLAGS $LIBINTL; do
10623 acl_save_prefix="$prefix"
10624 prefix="$acl_final_prefix"
10625 acl_save_exec_prefix="$exec_prefix"
10626 exec_prefix="$acl_final_exec_prefix"
10628 exec_prefix="$acl_save_exec_prefix"
10629 prefix="$acl_save_prefix"
10631 if test "X$x" = "X-L$additional_libdir"; then
10636 if test -z "$haveit"; then
10637 if test -d "$additional_libdir"; then
10638 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10642 for x in $LDFLAGS $LTLIBINTL; do
10644 acl_save_prefix="$prefix"
10645 prefix="$acl_final_prefix"
10646 acl_save_exec_prefix="$exec_prefix"
10647 exec_prefix="$acl_final_exec_prefix"
10649 exec_prefix="$acl_save_exec_prefix"
10650 prefix="$acl_save_prefix"
10652 if test "X$x" = "X-L$additional_libdir"; then
10657 if test -z "$haveit"; then
10658 if test -d "$additional_libdir"; then
10659 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10666 dir=`echo "X$dep" |
sed -e 's/^X-R//'`
10667 if test "$enable_rpath" != no; then
10669 for x in $rpathdirs; do
10670 if test "X$x" = "X$dir"; then
10675 if test -z "$haveit"; then
10676 rpathdirs="$rpathdirs $dir"
10679 for x in $ltrpathdirs; do
10680 if test "X$x" = "X$dir"; then
10685 if test -z "$haveit"; then
10686 ltrpathdirs="$ltrpathdirs $dir"
10691 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's/^X-l//'`
10694 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10697 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10698 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10704 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10705 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10711 if test "X$rpathdirs" != "X"; then
10712 if test -n "$hardcode_libdir_separator"; then
10714 for found_dir in $rpathdirs; do
10715 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10717 acl_save_libdir="$libdir"
10719 eval flag=\"$hardcode_libdir_flag_spec\"
10720 libdir="$acl_save_libdir"
10721 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10723 for found_dir in $rpathdirs; do
10724 acl_save_libdir="$libdir"
10725 libdir="$found_dir"
10726 eval flag=\"$hardcode_libdir_flag_spec\"
10727 libdir="$acl_save_libdir"
10728 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10732 if test "X$ltrpathdirs" != "X"; then
10733 for found_dir in $ltrpathdirs; do
10734 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10738 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10739 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
10740 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
10741 $as_echo_n "(cached) " >&6
10743 gt_save_CPPFLAGS="$CPPFLAGS"
10744 CPPFLAGS="$CPPFLAGS $INCINTL"
10745 gt_save_LIBS="$LIBS"
10746 LIBS="$LIBS $LIBINTL"
10747 cat >conftest.$ac_ext <<_ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10753 #include <libintl.h>
10754 extern int _nl_msg_cat_cntr;
10759 const char *_nl_expand_alias ();
10763 bindtextdomain ("", "");
10764 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10769 rm -f conftest.$ac_objext conftest$ac_exeext
10770 if { (ac_try="$ac_link"
10771 case "(($ac_try" in
10772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10773 *) ac_try_echo
=$ac_try;;
10775 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10776 $as_echo "$ac_try_echo") >&5
10777 (eval "$ac_link") 2>conftest.er1
10779 grep -v '^ *+' conftest.er1
>conftest.err
10781 cat conftest.err
>&5
10782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } && {
10784 test -z "$ac_c_werror_flag" ||
10785 test ! -s conftest.err
10786 } && test -s conftest
$ac_exeext && {
10787 test "$cross_compiling" = yes ||
10788 $as_test_x conftest
$ac_exeext
10790 gt_cv_func_gnugettext2_libintl
=yes
10792 $as_echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.
$ac_ext >&5
10795 gt_cv_func_gnugettext2_libintl
=no
10798 rm -rf conftest.dSYM
10799 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10800 conftest
$ac_exeext conftest.
$ac_ext
10801 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
10802 LIBS
="$LIBS $LIBICONV"
10803 cat >conftest.
$ac_ext <<_ACEOF
10806 cat confdefs.h
>>conftest.
$ac_ext
10807 cat >>conftest.
$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10809 #include <libintl.h>
10810 extern int _nl_msg_cat_cntr;
10815 const char *_nl_expand_alias ();
10819 bindtextdomain ("", "");
10820 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10825 rm -f conftest.
$ac_objext conftest
$ac_exeext
10826 if { (ac_try
="$ac_link"
10827 case "(($ac_try" in
10828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10832 $as_echo "$ac_try_echo") >&5
10833 (eval "$ac_link") 2>conftest.er1
10835 grep -v '^ *+' conftest.er1 >conftest.err
10837 cat conftest.err >&5
10838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && {
10840 test -z "$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 } && test -s conftest$ac_exeext && {
10843 test "$cross_compiling" = yes ||
10844 $as_test_x conftest$ac_exeext
10846 LIBINTL="$LIBINTL $LIBICONV"
10847 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10848 gt_cv_func_gnugettext2_libintl=yes
10851 $as_echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10857 rm -rf conftest.dSYM
10858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10859 conftest$ac_exeext conftest.$ac_ext
10861 CPPFLAGS="$gt_save_CPPFLAGS"
10862 LIBS="$gt_save_LIBS"
10864 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
10865 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
10868 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
10869 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
10870 && test "$PACKAGE" != gettext-runtime \
10871 && test "$PACKAGE" != gettext-tools; }; then
10872 gt_use_preinstalled_gnugettext=yes
10880 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10881 nls_cv_use_gnu_gettext=yes
10885 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10886 BUILD_INCLUDED_LIBINTL=yes
10887 USE_INCLUDED_LIBINTL=yes
10888 LIBINTL="lib/intl/libintl.a $LIBICONV"
10889 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
10890 LIBS=`echo " $LIBS " |
sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10893 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10894 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10899 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10900 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10902 cat >>confdefs.h <<\_ACEOF
10903 #define ENABLE_NLS 1
10911 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
10912 $as_echo_n "checking whether to use NLS... " >&6; }
10913 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10914 $as_echo "$USE_NLS" >&6; }
10915 if test "$USE_NLS" = "yes"; then
10916 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10917 $as_echo_n "checking where the gettext function comes from... " >&6; }
10918 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10919 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10920 gt_source="external libintl"
10925 gt_source="included intl directory"
10927 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
10928 $as_echo "$gt_source" >&6; }
10931 if test "$USE_NLS" = "yes"; then
10933 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10934 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10935 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
10936 $as_echo_n "checking how to link with libintl... " >&6; }
10937 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
10938 $as_echo "$LIBINTL" >&6; }
10940 for element in $INCINTL; do
10942 for x in $CPPFLAGS; do
10944 acl_save_prefix="$prefix"
10945 prefix="$acl_final_prefix"
10946 acl_save_exec_prefix="$exec_prefix"
10947 exec_prefix="$acl_final_exec_prefix"
10949 exec_prefix="$acl_save_exec_prefix"
10950 prefix="$acl_save_prefix"
10952 if test "X$x" = "X$element"; then
10957 if test -z "$haveit"; then
10958 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10965 cat >>confdefs.h <<\_ACEOF
10966 #define HAVE_GETTEXT 1
10970 cat >>confdefs.h <<\_ACEOF
10971 #define HAVE_DCGETTEXT 1
10980 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10981 BUILD_INCLUDED_LIBINTL=yes
10988 nls_cv_header_intl=
10989 nls_cv_header_libgt=
11000 if test "$USE_INCLUDED_LIBINTL" = yes; then
11001 INTLOBJS="\$(GETTOBJS)"
11005 INTL_LIBTOOL_SUFFIX_PREFIX=
11009 INTLLIBS="$LIBINTL"
11022 ac_header_dirent=no
11023 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11024 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
11025 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11026 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11028 $as_echo_n "(cached) " >&6
11030 cat >conftest.$ac_ext <<_ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11036 #include <sys/types.h>
11048 rm -f conftest.$ac_objext
11049 if { (ac_try="$ac_compile"
11050 case "(($ac_try" in
11051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11052 *) ac_try_echo
=$ac_try;;
11054 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11055 $as_echo "$ac_try_echo") >&5
11056 (eval "$ac_compile") 2>conftest.er1
11058 grep -v '^ *+' conftest.er1
>conftest.err
11060 cat conftest.err
>&5
11061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } && {
11063 test -z "$ac_c_werror_flag" ||
11064 test ! -s conftest.err
11065 } && test -s conftest.
$ac_objext; then
11066 eval "$as_ac_Header=yes"
11068 $as_echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.
$ac_ext >&5
11071 eval "$as_ac_Header=no"
11074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11076 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11077 $as_echo "$as_val"'`
11078 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11079 $as_echo "$ac_res" >&6; }
11080 as_val
=`eval 'as_val=${'$as_ac_Header'}
11081 $as_echo "$as_val"'`
11082 if test "x$as_val" = x
""yes; then
11083 cat >>confdefs.h
<<_ACEOF
11084 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11087 ac_header_dirent
=$ac_hdr; break
11091 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11092 if test $ac_header_dirent = dirent.h
; then
11093 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11094 $as_echo_n "checking for library containing opendir... " >&6; }
11095 if test "${ac_cv_search_opendir+set}" = set; then
11096 $as_echo_n "(cached) " >&6
11098 ac_func_search_save_LIBS
=$LIBS
11099 cat >conftest.
$ac_ext <<_ACEOF
11102 cat confdefs.h
>>conftest.
$ac_ext
11103 cat >>conftest.
$ac_ext <<_ACEOF
11104 /* end confdefs.h. */
11106 /* Override any GCC internal prototype to avoid an error.
11107 Use char because int might match the return type of a GCC
11108 builtin and then its argument prototype would still apply. */
11121 for ac_lib
in '' dir
; do
11122 if test -z "$ac_lib"; then
11123 ac_res
="none required"
11126 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11128 rm -f conftest.
$ac_objext conftest
$ac_exeext
11129 if { (ac_try
="$ac_link"
11130 case "(($ac_try" in
11131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11135 $as_echo "$ac_try_echo") >&5
11136 (eval "$ac_link") 2>conftest.er1
11138 grep -v '^ *+' conftest.er1 >conftest.err
11140 cat conftest.err >&5
11141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } && {
11143 test -z "$ac_c_werror_flag" ||
11144 test ! -s conftest.err
11145 } && test -s conftest$ac_exeext && {
11146 test "$cross_compiling" = yes ||
11147 $as_test_x conftest$ac_exeext
11149 ac_cv_search_opendir=$ac_res
11151 $as_echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.$ac_ext >&5
11157 rm -rf conftest.dSYM
11158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11160 if test "${ac_cv_search_opendir+set}" = set; then
11164 if test "${ac_cv_search_opendir+set}" = set; then
11167 ac_cv_search_opendir=no
11169 rm conftest.$ac_ext
11170 LIBS=$ac_func_search_save_LIBS
11172 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11173 $as_echo "$ac_cv_search_opendir" >&6; }
11174 ac_res=$ac_cv_search_opendir
11175 if test "$ac_res" != no; then
11176 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11181 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11182 $as_echo_n "checking for library containing opendir... " >&6; }
11183 if test "${ac_cv_search_opendir+set}" = set; then
11184 $as_echo_n "(cached) " >&6
11186 ac_func_search_save_LIBS=$LIBS
11187 cat >conftest.$ac_ext <<_ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11194 /* Override any GCC internal prototype to avoid an error.
11195 Use char because int might match the return type of a GCC
11196 builtin and then its argument prototype would still apply. */
11209 for ac_lib in '' x; do
11210 if test -z "$ac_lib"; then
11211 ac_res="none required"
11214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11216 rm -f conftest.$ac_objext conftest$ac_exeext
11217 if { (ac_try="$ac_link"
11218 case "(($ac_try" in
11219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11220 *) ac_try_echo
=$ac_try;;
11222 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11223 $as_echo "$ac_try_echo") >&5
11224 (eval "$ac_link") 2>conftest.er1
11226 grep -v '^ *+' conftest.er1
>conftest.err
11228 cat conftest.err
>&5
11229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } && {
11231 test -z "$ac_c_werror_flag" ||
11232 test ! -s conftest.err
11233 } && test -s conftest
$ac_exeext && {
11234 test "$cross_compiling" = yes ||
11235 $as_test_x conftest
$ac_exeext
11237 ac_cv_search_opendir
=$ac_res
11239 $as_echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.
$ac_ext >&5
11245 rm -rf conftest.dSYM
11246 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11248 if test "${ac_cv_search_opendir+set}" = set; then
11252 if test "${ac_cv_search_opendir+set}" = set; then
11255 ac_cv_search_opendir
=no
11257 rm conftest.
$ac_ext
11258 LIBS
=$ac_func_search_save_LIBS
11260 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11261 $as_echo "$ac_cv_search_opendir" >&6; }
11262 ac_res
=$ac_cv_search_opendir
11263 if test "$ac_res" != no
; then
11264 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11270 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11271 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11272 if test "${ac_cv_header_time+set}" = set; then
11273 $as_echo_n "(cached) " >&6
11275 cat >conftest.
$ac_ext <<_ACEOF
11278 cat confdefs.h
>>conftest.
$ac_ext
11279 cat >>conftest.
$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11281 #include <sys/types.h>
11282 #include <sys/time.h>
11288 if ((struct tm *) 0)
11294 rm -f conftest.
$ac_objext
11295 if { (ac_try
="$ac_compile"
11296 case "(($ac_try" in
11297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11298 *) ac_try_echo=$ac_try;;
11300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11301 $as_echo "$ac_try_echo") >&5
11302 (eval "$ac_compile") 2>conftest.er1
11304 grep -v '^ *+' conftest.er1 >conftest.err
11306 cat conftest.err >&5
11307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } && {
11309 test -z "$ac_c_werror_flag" ||
11310 test ! -s conftest.err
11311 } && test -s conftest.$ac_objext; then
11312 ac_cv_header_time=yes
11314 $as_echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11317 ac_cv_header_time=no
11320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11322 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11323 $as_echo "$ac_cv_header_time" >&6; }
11324 if test $ac_cv_header_time = yes; then
11326 cat >>confdefs.h <<\_ACEOF
11327 #define TIME_WITH_SYS_TIME 1
11335 for ac_header in inttypes.h
11337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11339 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11340 $as_echo_n "checking for $ac_header... " >&6; }
11341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11342 $as_echo_n "(cached) " >&6
11344 ac_res=`eval 'as_val=${'$as_ac_Header'}
11345 $as_echo "$as_val"'`
11346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11347 $as_echo "$ac_res" >&6; }
11349 # Is the header compilable?
11350 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11351 $as_echo_n "checking $ac_header usability... " >&6; }
11352 cat >conftest.$ac_ext <<_ACEOF
11355 cat confdefs.h >>conftest.$ac_ext
11356 cat >>conftest.$ac_ext <<_ACEOF
11357 /* end confdefs.h. */
11358 $ac_includes_default
11359 #include <$ac_header>
11361 rm -f conftest.$ac_objext
11362 if { (ac_try="$ac_compile"
11363 case "(($ac_try" in
11364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11365 *) ac_try_echo
=$ac_try;;
11367 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11368 $as_echo "$ac_try_echo") >&5
11369 (eval "$ac_compile") 2>conftest.er1
11371 grep -v '^ *+' conftest.er1
>conftest.err
11373 cat conftest.err
>&5
11374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } && {
11376 test -z "$ac_c_werror_flag" ||
11377 test ! -s conftest.err
11378 } && test -s conftest.
$ac_objext; then
11379 ac_header_compiler
=yes
11381 $as_echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.
$ac_ext >&5
11384 ac_header_compiler
=no
11387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11388 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11389 $as_echo "$ac_header_compiler" >&6; }
11391 # Is the header present?
11392 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11393 $as_echo_n "checking $ac_header presence... " >&6; }
11394 cat >conftest.
$ac_ext <<_ACEOF
11397 cat confdefs.h
>>conftest.
$ac_ext
11398 cat >>conftest.
$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11400 #include <$ac_header>
11402 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11403 case "(($ac_try" in
11404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11408 $as_echo "$ac_try_echo") >&5
11409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11411 grep -v '^ *+' conftest.er1 >conftest.err
11413 cat conftest.err >&5
11414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } >/dev/null && {
11416 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11417 test ! -s conftest.err
11419 ac_header_preproc=yes
11421 $as_echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11424 ac_header_preproc=no
11427 rm -f conftest.err conftest.$ac_ext
11428 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11429 $as_echo "$ac_header_preproc" >&6; }
11431 # So? What about this header?
11432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11435 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11437 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11438 ac_header_preproc=yes
11441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11442 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11444 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11446 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11448 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11450 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11452 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11454 ## ------------------------------- ##
11455 ## Report this to bug-bash@gnu.org ##
11456 ## ------------------------------- ##
11458 ) | sed "s/^/$as_me: WARNING: /" >&2
11461 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11462 $as_echo_n "checking for $ac_header... " >&6; }
11463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11464 $as_echo_n "(cached) " >&6
11466 eval "$as_ac_Header=\$ac_header_preproc"
11468 ac_res=`eval 'as_val=${'$as_ac_Header'}
11469 $as_echo "$as_val"'`
11470 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11471 $as_echo "$ac_res" >&6; }
11474 as_val=`eval 'as_val=${'$as_ac_Header'}
11475 $as_echo "$as_val"'`
11476 if test "x$as_val" = x""yes; then
11477 cat >>confdefs.h <<_ACEOF
11478 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11507 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
11508 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
11509 stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h \
11512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11514 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11515 $as_echo_n "checking for $ac_header... " >&6; }
11516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11517 $as_echo_n "(cached) " >&6
11519 ac_res=`eval 'as_val=${'$as_ac_Header'}
11520 $as_echo "$as_val"'`
11521 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11522 $as_echo "$ac_res" >&6; }
11524 # Is the header compilable?
11525 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11526 $as_echo_n "checking $ac_header usability... " >&6; }
11527 cat >conftest.$ac_ext <<_ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11533 $ac_includes_default
11534 #include <$ac_header>
11536 rm -f conftest.$ac_objext
11537 if { (ac_try="$ac_compile"
11538 case "(($ac_try" in
11539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11540 *) ac_try_echo
=$ac_try;;
11542 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11543 $as_echo "$ac_try_echo") >&5
11544 (eval "$ac_compile") 2>conftest.er1
11546 grep -v '^ *+' conftest.er1
>conftest.err
11548 cat conftest.err
>&5
11549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); } && {
11551 test -z "$ac_c_werror_flag" ||
11552 test ! -s conftest.err
11553 } && test -s conftest.
$ac_objext; then
11554 ac_header_compiler
=yes
11556 $as_echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.
$ac_ext >&5
11559 ac_header_compiler
=no
11562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11563 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11564 $as_echo "$ac_header_compiler" >&6; }
11566 # Is the header present?
11567 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11568 $as_echo_n "checking $ac_header presence... " >&6; }
11569 cat >conftest.
$ac_ext <<_ACEOF
11572 cat confdefs.h
>>conftest.
$ac_ext
11573 cat >>conftest.
$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11575 #include <$ac_header>
11577 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11578 case "(($ac_try" in
11579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11583 $as_echo "$ac_try_echo") >&5
11584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11586 grep -v '^ *+' conftest.er1 >conftest.err
11588 cat conftest.err >&5
11589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); } >/dev/null && {
11591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11592 test ! -s conftest.err
11594 ac_header_preproc=yes
11596 $as_echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11599 ac_header_preproc=no
11602 rm -f conftest.err conftest.$ac_ext
11603 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11604 $as_echo "$ac_header_preproc" >&6; }
11606 # So? What about this header?
11607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11610 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11612 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11613 ac_header_preproc=yes
11616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11617 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11619 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11621 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11623 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11625 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11627 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11629 ## ------------------------------- ##
11630 ## Report this to bug-bash@gnu.org ##
11631 ## ------------------------------- ##
11633 ) | sed "s/^/$as_me: WARNING: /" >&2
11636 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11637 $as_echo_n "checking for $ac_header... " >&6; }
11638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11639 $as_echo_n "(cached) " >&6
11641 eval "$as_ac_Header=\$ac_header_preproc"
11643 ac_res=`eval 'as_val=${'$as_ac_Header'}
11644 $as_echo "$as_val"'`
11645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11646 $as_echo "$ac_res" >&6; }
11649 as_val=`eval 'as_val=${'$as_ac_Header'}
11650 $as_echo "$as_val"'`
11651 if test "x$as_val" = x""yes; then
11652 cat >>confdefs.h <<_ACEOF
11653 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11672 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
11673 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
11674 sys/time.h sys/times.h sys/types.h sys/wait.h
11676 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11678 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11679 $as_echo_n "checking for $ac_header... " >&6; }
11680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11681 $as_echo_n "(cached) " >&6
11683 ac_res=`eval 'as_val=${'$as_ac_Header'}
11684 $as_echo "$as_val"'`
11685 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11686 $as_echo "$ac_res" >&6; }
11688 # Is the header compilable?
11689 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11690 $as_echo_n "checking $ac_header usability... " >&6; }
11691 cat >conftest.$ac_ext <<_ACEOF
11694 cat confdefs.h >>conftest.$ac_ext
11695 cat >>conftest.$ac_ext <<_ACEOF
11696 /* end confdefs.h. */
11697 $ac_includes_default
11698 #include <$ac_header>
11700 rm -f conftest.$ac_objext
11701 if { (ac_try="$ac_compile"
11702 case "(($ac_try" in
11703 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11704 *) ac_try_echo
=$ac_try;;
11706 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11707 $as_echo "$ac_try_echo") >&5
11708 (eval "$ac_compile") 2>conftest.er1
11710 grep -v '^ *+' conftest.er1
>conftest.err
11712 cat conftest.err
>&5
11713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); } && {
11715 test -z "$ac_c_werror_flag" ||
11716 test ! -s conftest.err
11717 } && test -s conftest.
$ac_objext; then
11718 ac_header_compiler
=yes
11720 $as_echo "$as_me: failed program was:" >&5
11721 sed 's/^/| /' conftest.
$ac_ext >&5
11723 ac_header_compiler
=no
11726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11727 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11728 $as_echo "$ac_header_compiler" >&6; }
11730 # Is the header present?
11731 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11732 $as_echo_n "checking $ac_header presence... " >&6; }
11733 cat >conftest.
$ac_ext <<_ACEOF
11736 cat confdefs.h
>>conftest.
$ac_ext
11737 cat >>conftest.
$ac_ext <<_ACEOF
11738 /* end confdefs.h. */
11739 #include <$ac_header>
11741 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11742 case "(($ac_try" in
11743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11744 *) ac_try_echo=$ac_try;;
11746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11747 $as_echo "$ac_try_echo") >&5
11748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11750 grep -v '^ *+' conftest.er1 >conftest.err
11752 cat conftest.err >&5
11753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } >/dev/null && {
11755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11756 test ! -s conftest.err
11758 ac_header_preproc=yes
11760 $as_echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.$ac_ext >&5
11763 ac_header_preproc=no
11766 rm -f conftest.err conftest.$ac_ext
11767 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11768 $as_echo "$ac_header_preproc" >&6; }
11770 # So? What about this header?
11771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11774 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11776 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11777 ac_header_preproc=yes
11780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11781 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11783 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11785 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11787 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11789 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11791 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11793 ## ------------------------------- ##
11794 ## Report this to bug-bash@gnu.org ##
11795 ## ------------------------------- ##
11797 ) | sed "s/^/$as_me: WARNING: /" >&2
11800 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11801 $as_echo_n "checking for $ac_header... " >&6; }
11802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11803 $as_echo_n "(cached) " >&6
11805 eval "$as_ac_Header=\$ac_header_preproc"
11807 ac_res=`eval 'as_val=${'$as_ac_Header'}
11808 $as_echo "$as_val"'`
11809 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11810 $as_echo "$ac_res" >&6; }
11813 as_val=`eval 'as_val=${'$as_ac_Header'}
11814 $as_echo "$as_val"'`
11815 if test "x$as_val" = x""yes; then
11816 cat >>confdefs.h <<_ACEOF
11817 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11826 for ac_header in netinet/in.h arpa/inet.h
11828 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11830 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11831 $as_echo_n "checking for $ac_header... " >&6; }
11832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11833 $as_echo_n "(cached) " >&6
11835 ac_res=`eval 'as_val=${'$as_ac_Header'}
11836 $as_echo "$as_val"'`
11837 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11838 $as_echo "$ac_res" >&6; }
11840 # Is the header compilable?
11841 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11842 $as_echo_n "checking $ac_header usability... " >&6; }
11843 cat >conftest.$ac_ext <<_ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 $ac_includes_default
11850 #include <$ac_header>
11852 rm -f conftest.$ac_objext
11853 if { (ac_try="$ac_compile"
11854 case "(($ac_try" in
11855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11856 *) ac_try_echo
=$ac_try;;
11858 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11859 $as_echo "$ac_try_echo") >&5
11860 (eval "$ac_compile") 2>conftest.er1
11862 grep -v '^ *+' conftest.er1
>conftest.err
11864 cat conftest.err
>&5
11865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); } && {
11867 test -z "$ac_c_werror_flag" ||
11868 test ! -s conftest.err
11869 } && test -s conftest.
$ac_objext; then
11870 ac_header_compiler
=yes
11872 $as_echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.
$ac_ext >&5
11875 ac_header_compiler
=no
11878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11879 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11880 $as_echo "$ac_header_compiler" >&6; }
11882 # Is the header present?
11883 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11884 $as_echo_n "checking $ac_header presence... " >&6; }
11885 cat >conftest.
$ac_ext <<_ACEOF
11888 cat confdefs.h
>>conftest.
$ac_ext
11889 cat >>conftest.
$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11891 #include <$ac_header>
11893 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11894 case "(($ac_try" in
11895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11899 $as_echo "$ac_try_echo") >&5
11900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11902 grep -v '^ *+' conftest.er1 >conftest.err
11904 cat conftest.err >&5
11905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } >/dev/null && {
11907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11908 test ! -s conftest.err
11910 ac_header_preproc=yes
11912 $as_echo "$as_me: failed program was:" >&5
11913 sed 's/^/| /' conftest.$ac_ext >&5
11915 ac_header_preproc=no
11918 rm -f conftest.err conftest.$ac_ext
11919 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11920 $as_echo "$ac_header_preproc" >&6; }
11922 # So? What about this header?
11923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11926 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11928 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11929 ac_header_preproc=yes
11932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11933 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11935 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11937 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11939 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11941 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11943 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11945 ## ------------------------------- ##
11946 ## Report this to bug-bash@gnu.org ##
11947 ## ------------------------------- ##
11949 ) | sed "s/^/$as_me: WARNING: /" >&2
11952 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11953 $as_echo_n "checking for $ac_header... " >&6; }
11954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11955 $as_echo_n "(cached) " >&6
11957 eval "$as_ac_Header=\$ac_header_preproc"
11959 ac_res=`eval 'as_val=${'$as_ac_Header'}
11960 $as_echo "$as_val"'`
11961 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11962 $as_echo "$ac_res" >&6; }
11965 as_val=`eval 'as_val=${'$as_ac_Header'}
11966 $as_echo "$as_val"'`
11967 if test "x$as_val" = x""yes; then
11968 cat >>confdefs.h <<_ACEOF
11969 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11977 { $as_echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
11978 $as_echo_n "checking for sys/ptem.h... " >&6; }
11979 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
11980 $as_echo_n "(cached) " >&6
11982 cat >conftest.$ac_ext <<_ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11989 #if HAVE_SYS_STREAM_H
11990 # include <sys/stream.h>
11994 #include <sys/ptem.h>
11996 rm -f conftest.$ac_objext
11997 if { (ac_try="$ac_compile"
11998 case "(($ac_try" in
11999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12000 *) ac_try_echo
=$ac_try;;
12002 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12003 $as_echo "$ac_try_echo") >&5
12004 (eval "$ac_compile") 2>conftest.er1
12006 grep -v '^ *+' conftest.er1
>conftest.err
12008 cat conftest.err
>&5
12009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } && {
12011 test -z "$ac_c_werror_flag" ||
12012 test ! -s conftest.err
12013 } && test -s conftest.
$ac_objext; then
12014 ac_cv_header_sys_ptem_h
=yes
12016 $as_echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.
$ac_ext >&5
12019 ac_cv_header_sys_ptem_h
=no
12022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12024 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
12025 $as_echo "$ac_cv_header_sys_ptem_h" >&6; }
12029 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12030 # for constant arguments. Useless!
12031 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
12032 $as_echo_n "checking for working alloca.h... " >&6; }
12033 if test "${ac_cv_working_alloca_h+set}" = set; then
12034 $as_echo_n "(cached) " >&6
12036 cat >conftest.
$ac_ext <<_ACEOF
12039 cat confdefs.h
>>conftest.
$ac_ext
12040 cat >>conftest.
$ac_ext <<_ACEOF
12041 /* end confdefs.h. */
12042 #include <alloca.h>
12046 char *p = (char *) alloca (2 * sizeof (int));
12052 rm -f conftest.
$ac_objext conftest
$ac_exeext
12053 if { (ac_try
="$ac_link"
12054 case "(($ac_try" in
12055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12059 $as_echo "$ac_try_echo") >&5
12060 (eval "$ac_link") 2>conftest.er1
12062 grep -v '^ *+' conftest.er1 >conftest.err
12064 cat conftest.err >&5
12065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } && {
12067 test -z "$ac_c_werror_flag" ||
12068 test ! -s conftest.err
12069 } && test -s conftest$ac_exeext && {
12070 test "$cross_compiling" = yes ||
12071 $as_test_x conftest$ac_exeext
12073 ac_cv_working_alloca_h=yes
12075 $as_echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12078 ac_cv_working_alloca_h=no
12081 rm -rf conftest.dSYM
12082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12083 conftest$ac_exeext conftest.$ac_ext
12085 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12086 $as_echo "$ac_cv_working_alloca_h" >&6; }
12087 if test $ac_cv_working_alloca_h = yes; then
12089 cat >>confdefs.h <<\_ACEOF
12090 #define HAVE_ALLOCA_H 1
12095 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
12096 $as_echo_n "checking for alloca... " >&6; }
12097 if test "${ac_cv_func_alloca_works+set}" = set; then
12098 $as_echo_n "(cached) " >&6
12100 cat >conftest.$ac_ext <<_ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12107 # define alloca __builtin_alloca
12110 # include <malloc.h>
12111 # define alloca _alloca
12113 # ifdef HAVE_ALLOCA_H
12114 # include <alloca.h>
12119 # ifndef alloca /* predefined by HP cc +Olibcalls */
12130 char *p = (char *) alloca (1);
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (ac_try="$ac_link"
12138 case "(($ac_try" in
12139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12140 *) ac_try_echo
=$ac_try;;
12142 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12143 $as_echo "$ac_try_echo") >&5
12144 (eval "$ac_link") 2>conftest.er1
12146 grep -v '^ *+' conftest.er1
>conftest.err
12148 cat conftest.err
>&5
12149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } && {
12151 test -z "$ac_c_werror_flag" ||
12152 test ! -s conftest.err
12153 } && test -s conftest
$ac_exeext && {
12154 test "$cross_compiling" = yes ||
12155 $as_test_x conftest
$ac_exeext
12157 ac_cv_func_alloca_works
=yes
12159 $as_echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.
$ac_ext >&5
12162 ac_cv_func_alloca_works
=no
12165 rm -rf conftest.dSYM
12166 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12167 conftest
$ac_exeext conftest.
$ac_ext
12169 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12170 $as_echo "$ac_cv_func_alloca_works" >&6; }
12172 if test $ac_cv_func_alloca_works = yes; then
12174 cat >>confdefs.h
<<\_ACEOF
12175 #define HAVE_ALLOCA 1
12179 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12180 # that cause trouble. Some versions do not even contain alloca or
12181 # contain a buggy version. If you still want to use their alloca,
12182 # use ar to extract alloca.o from them instead of compiling alloca.c.
12184 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12186 cat >>confdefs.h
<<\_ACEOF
12191 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12192 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12193 if test "${ac_cv_os_cray+set}" = set; then
12194 $as_echo_n "(cached) " >&6
12196 cat >conftest.
$ac_ext <<_ACEOF
12199 cat confdefs.h
>>conftest.
$ac_ext
12200 cat >>conftest.
$ac_ext <<_ACEOF
12201 /* end confdefs.h. */
12202 #if defined CRAY && ! defined CRAY2
12209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12210 $EGREP "webecray" >/dev
/null
2>&1; then
12218 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12219 $as_echo "$ac_cv_os_cray" >&6; }
12220 if test $ac_cv_os_cray = yes; then
12221 for ac_func
in _getb67 GETB67 getb67
; do
12222 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12223 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12224 $as_echo_n "checking for $ac_func... " >&6; }
12225 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12226 $as_echo_n "(cached) " >&6
12228 cat >conftest.
$ac_ext <<_ACEOF
12231 cat confdefs.h
>>conftest.
$ac_ext
12232 cat >>conftest.
$ac_ext <<_ACEOF
12233 /* end confdefs.h. */
12234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12236 #define $ac_func innocuous_$ac_func
12238 /* System header to define __stub macros and hopefully few prototypes,
12239 which can conflict with char $ac_func (); below.
12240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12241 <limits.h> exists even on freestanding compilers. */
12244 # include <limits.h>
12246 # include <assert.h>
12251 /* Override any GCC internal prototype to avoid an error.
12252 Use char because int might match the return type of a GCC
12253 builtin and then its argument prototype would still apply. */
12258 /* The GNU C library defines this for functions which it implements
12259 to always fail with ENOSYS. Some functions are actually named
12260 something starting with __ and the normal name is an alias. */
12261 #if defined __stub_$ac_func || defined __stub___$ac_func
12268 return $ac_func ();
12273 rm -f conftest.
$ac_objext conftest
$ac_exeext
12274 if { (ac_try
="$ac_link"
12275 case "(($ac_try" in
12276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12280 $as_echo "$ac_try_echo") >&5
12281 (eval "$ac_link") 2>conftest.er1
12283 grep -v '^ *+' conftest.er1 >conftest.err
12285 cat conftest.err >&5
12286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } && {
12288 test -z "$ac_c_werror_flag" ||
12289 test ! -s conftest.err
12290 } && test -s conftest$ac_exeext && {
12291 test "$cross_compiling" = yes ||
12292 $as_test_x conftest$ac_exeext
12294 eval "$as_ac_var=yes"
12296 $as_echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12299 eval "$as_ac_var=no"
12302 rm -rf conftest.dSYM
12303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12304 conftest$ac_exeext conftest.$ac_ext
12306 ac_res=`eval 'as_val=${'$as_ac_var'}
12307 $as_echo "$as_val"'`
12308 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12309 $as_echo "$ac_res" >&6; }
12310 as_val=`eval 'as_val=${'$as_ac_var'}
12311 $as_echo "$as_val"'`
12312 if test "x$as_val" = x""yes; then
12314 cat >>confdefs.h <<_ACEOF
12315 #define CRAY_STACKSEG_END $ac_func
12324 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12325 $as_echo_n "checking stack direction for C alloca... " >&6; }
12326 if test "${ac_cv_c_stack_direction+set}" = set; then
12327 $as_echo_n "(cached) " >&6
12329 if test "$cross_compiling" = yes; then
12330 ac_cv_c_stack_direction=0
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
12340 find_stack_direction ()
12342 static char *addr = 0;
12347 return find_stack_direction ();
12350 return (&dummy > addr) ? 1 : -1;
12356 return find_stack_direction () < 0;
12359 rm -f conftest$ac_exeext
12360 if { (ac_try="$ac_link"
12361 case "(($ac_try" in
12362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12363 *) ac_try_echo
=$ac_try;;
12365 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12366 $as_echo "$ac_try_echo") >&5
12367 (eval "$ac_link") 2>&5
12369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12371 { (case "(($ac_try" in
12372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12373 *) ac_try_echo=$ac_try;;
12375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12376 $as_echo "$ac_try_echo") >&5
12377 (eval "$ac_try") 2>&5
12379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12381 ac_cv_c_stack_direction=1
12383 $as_echo "$as_me: program exited with status $ac_status" >&5
12384 $as_echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12387 ( exit $ac_status )
12388 ac_cv_c_stack_direction=-1
12390 rm -rf conftest.dSYM
12391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12396 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12397 $as_echo "$ac_cv_c_stack_direction" >&6; }
12399 cat >>confdefs.h <<_ACEOF
12400 #define STACK_DIRECTION $ac_cv_c_stack_direction
12406 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
12407 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12408 if test "${ac_cv_func_getpgrp_void+set}" = set; then
12409 $as_echo_n "(cached) " >&6
12411 # Use it with a single arg.
12412 cat >conftest.$ac_ext <<_ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h. */
12418 $ac_includes_default
12427 rm -f conftest.$ac_objext
12428 if { (ac_try="$ac_compile"
12429 case "(($ac_try" in
12430 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12431 *) ac_try_echo
=$ac_try;;
12433 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12434 $as_echo "$ac_try_echo") >&5
12435 (eval "$ac_compile") 2>conftest.er1
12437 grep -v '^ *+' conftest.er1
>conftest.err
12439 cat conftest.err
>&5
12440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); } && {
12442 test -z "$ac_c_werror_flag" ||
12443 test ! -s conftest.err
12444 } && test -s conftest.
$ac_objext; then
12445 ac_cv_func_getpgrp_void
=no
12447 $as_echo "$as_me: failed program was:" >&5
12448 sed 's/^/| /' conftest.
$ac_ext >&5
12450 ac_cv_func_getpgrp_void
=yes
12453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12456 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
12457 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12458 if test $ac_cv_func_getpgrp_void = yes; then
12460 cat >>confdefs.h
<<\_ACEOF
12461 #define GETPGRP_VOID 1
12466 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12467 $as_echo_n "(cached) " >&6
12469 ac_cv_func_setvbuf_reversed
=no
12474 for ac_func
in vprintf
12476 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12477 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12478 $as_echo_n "checking for $ac_func... " >&6; }
12479 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12480 $as_echo_n "(cached) " >&6
12482 cat >conftest.
$ac_ext <<_ACEOF
12485 cat confdefs.h
>>conftest.
$ac_ext
12486 cat >>conftest.
$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12490 #define $ac_func innocuous_$ac_func
12492 /* System header to define __stub macros and hopefully few prototypes,
12493 which can conflict with char $ac_func (); below.
12494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12495 <limits.h> exists even on freestanding compilers. */
12498 # include <limits.h>
12500 # include <assert.h>
12505 /* Override any GCC internal prototype to avoid an error.
12506 Use char because int might match the return type of a GCC
12507 builtin and then its argument prototype would still apply. */
12512 /* The GNU C library defines this for functions which it implements
12513 to always fail with ENOSYS. Some functions are actually named
12514 something starting with __ and the normal name is an alias. */
12515 #if defined __stub_$ac_func || defined __stub___$ac_func
12522 return $ac_func ();
12527 rm -f conftest.
$ac_objext conftest
$ac_exeext
12528 if { (ac_try
="$ac_link"
12529 case "(($ac_try" in
12530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12534 $as_echo "$ac_try_echo") >&5
12535 (eval "$ac_link") 2>conftest.er1
12537 grep -v '^ *+' conftest.er1 >conftest.err
12539 cat conftest.err >&5
12540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } && {
12542 test -z "$ac_c_werror_flag" ||
12543 test ! -s conftest.err
12544 } && test -s conftest$ac_exeext && {
12545 test "$cross_compiling" = yes ||
12546 $as_test_x conftest$ac_exeext
12548 eval "$as_ac_var=yes"
12550 $as_echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12553 eval "$as_ac_var=no"
12556 rm -rf conftest.dSYM
12557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12558 conftest$ac_exeext conftest.$ac_ext
12560 ac_res=`eval 'as_val=${'$as_ac_var'}
12561 $as_echo "$as_val"'`
12562 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12563 $as_echo "$ac_res" >&6; }
12564 as_val=`eval 'as_val=${'$as_ac_var'}
12565 $as_echo "$as_val"'`
12566 if test "x$as_val" = x""yes; then
12567 cat >>confdefs.h <<_ACEOF
12568 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12571 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12572 $as_echo_n "checking for _doprnt... " >&6; }
12573 if test "${ac_cv_func__doprnt+set}" = set; then
12574 $as_echo_n "(cached) " >&6
12576 cat >conftest.$ac_ext <<_ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h. */
12582 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12584 #define _doprnt innocuous__doprnt
12586 /* System header to define __stub macros and hopefully few prototypes,
12587 which can conflict with char _doprnt (); below.
12588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12589 <limits.h> exists even on freestanding compilers. */
12592 # include <limits.h>
12594 # include <assert.h>
12599 /* Override any GCC internal prototype to avoid an error.
12600 Use char because int might match the return type of a GCC
12601 builtin and then its argument prototype would still apply. */
12606 /* The GNU C library defines this for functions which it implements
12607 to always fail with ENOSYS. Some functions are actually named
12608 something starting with __ and the normal name is an alias. */
12609 #if defined __stub__doprnt || defined __stub____doprnt
12621 rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (ac_try="$ac_link"
12623 case "(($ac_try" in
12624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12625 *) ac_try_echo
=$ac_try;;
12627 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12628 $as_echo "$ac_try_echo") >&5
12629 (eval "$ac_link") 2>conftest.er1
12631 grep -v '^ *+' conftest.er1
>conftest.err
12633 cat conftest.err
>&5
12634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } && {
12636 test -z "$ac_c_werror_flag" ||
12637 test ! -s conftest.err
12638 } && test -s conftest
$ac_exeext && {
12639 test "$cross_compiling" = yes ||
12640 $as_test_x conftest
$ac_exeext
12642 ac_cv_func__doprnt
=yes
12644 $as_echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.
$ac_ext >&5
12647 ac_cv_func__doprnt
=no
12650 rm -rf conftest.dSYM
12651 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12652 conftest
$ac_exeext conftest.
$ac_ext
12654 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12655 $as_echo "$ac_cv_func__doprnt" >&6; }
12656 if test "x$ac_cv_func__doprnt" = x
""yes; then
12658 cat >>confdefs.h
<<\_ACEOF
12659 #define HAVE_DOPRNT 1
12668 { $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
12669 $as_echo_n "checking for working strcoll... " >&6; }
12670 if test "${ac_cv_func_strcoll_works+set}" = set; then
12671 $as_echo_n "(cached) " >&6
12673 if test "$cross_compiling" = yes; then
12674 ac_cv_func_strcoll_works
=no
12676 cat >conftest.
$ac_ext <<_ACEOF
12679 cat confdefs.h
>>conftest.
$ac_ext
12680 cat >>conftest.
$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12682 $ac_includes_default
12686 return (strcoll ("abc", "def") >= 0 ||
12687 strcoll ("ABC", "DEF") >= 0 ||
12688 strcoll ("123", "456") >= 0)
12693 rm -f conftest
$ac_exeext
12694 if { (ac_try
="$ac_link"
12695 case "(($ac_try" in
12696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12697 *) ac_try_echo=$ac_try;;
12699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12700 $as_echo "$ac_try_echo") >&5
12701 (eval "$ac_link") 2>&5
12703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12705 { (case "(($ac_try" in
12706 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12707 *) ac_try_echo
=$ac_try;;
12709 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12710 $as_echo "$ac_try_echo") >&5
12711 (eval "$ac_try") 2>&5
12713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; }; then
12715 ac_cv_func_strcoll_works
=yes
12717 $as_echo "$as_me: program exited with status $ac_status" >&5
12718 $as_echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.
$ac_ext >&5
12721 ( exit $ac_status )
12722 ac_cv_func_strcoll_works
=no
12724 rm -rf conftest.dSYM
12725 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12730 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
12731 $as_echo "$ac_cv_func_strcoll_works" >&6; }
12732 if test $ac_cv_func_strcoll_works = yes; then
12734 cat >>confdefs.h
<<\_ACEOF
12735 #define HAVE_STRCOLL 1
12742 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
12743 MALLOC_TARGET
=alloca
12744 MALLOC_SRC
=alloca.c
12746 MALLOC_LIB
='-lmalloc'
12747 MALLOC_LIBRARY
='$(ALLOC_LIBDIR)/libmalloc.a'
12748 MALLOC_LDFLAGS
='-L$(ALLOC_LIBDIR)'
12749 MALLOC_DEP
='$(MALLOC_LIBRARY)'
12752 if test "$ac_cv_func_vprintf" = no
; then
12753 { $as_echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
12754 $as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; }
12755 cat >conftest.
$ac_ext <<_ACEOF
12758 cat confdefs.h
>>conftest.
$ac_ext
12759 cat >>conftest.
$ac_ext <<_ACEOF
12760 /* end confdefs.h. */
12764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12765 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev
/null
2>&1; then
12766 ac_cv_func_vprintf
=yes
12770 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
12771 $as_echo "$ac_cv_func_vprintf" >&6; }
12772 if test $ac_cv_func_vprintf = yes; then
12773 cat >>confdefs.h
<<\_ACEOF
12774 #define HAVE_VPRINTF 1
12780 if test "$ac_cv_func_vprintf" = no
&& test "$ac_cv_func__doprnt" = "yes"; then
12781 case " $LIBOBJS " in
12782 *" vprint.$ac_objext "* ) ;;
12783 *) LIBOBJS
="$LIBOBJS vprint.$ac_objext"
12789 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12790 $as_echo_n "checking return type of signal handlers... " >&6; }
12791 if test "${ac_cv_type_signal+set}" = set; then
12792 $as_echo_n "(cached) " >&6
12794 cat >conftest.
$ac_ext <<_ACEOF
12797 cat confdefs.h
>>conftest.
$ac_ext
12798 cat >>conftest.
$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12800 #include <sys/types.h>
12801 #include <signal.h>
12806 return *(signal (0, 0)) (0) == 1;
12811 rm -f conftest.
$ac_objext
12812 if { (ac_try
="$ac_compile"
12813 case "(($ac_try" in
12814 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12815 *) ac_try_echo=$ac_try;;
12817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12818 $as_echo "$ac_try_echo") >&5
12819 (eval "$ac_compile") 2>conftest.er1
12821 grep -v '^ *+' conftest.er1 >conftest.err
12823 cat conftest.err >&5
12824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } && {
12826 test -z "$ac_c_werror_flag" ||
12827 test ! -s conftest.err
12828 } && test -s conftest.$ac_objext; then
12829 ac_cv_type_signal=int
12831 $as_echo "$as_me: failed program was:" >&5
12832 sed 's/^/| /' conftest.$ac_ext >&5
12834 ac_cv_type_signal=void
12837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12839 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12840 $as_echo "$ac_cv_type_signal" >&6; }
12842 cat >>confdefs.h <<_ACEOF
12843 #define RETSIGTYPE $ac_cv_type_signal
12848 { $as_echo "$as_me:$LINENO: checking for __setostype" >&5
12849 $as_echo_n "checking for __setostype... " >&6; }
12850 if test "${ac_cv_func___setostype+set}" = set; then
12851 $as_echo_n "(cached) " >&6
12853 cat >conftest.$ac_ext <<_ACEOF
12856 cat confdefs.h >>conftest.$ac_ext
12857 cat >>conftest.$ac_ext <<_ACEOF
12858 /* end confdefs.h. */
12859 /* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
12860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12861 #define __setostype innocuous___setostype
12863 /* System header to define __stub macros and hopefully few prototypes,
12864 which can conflict with char __setostype (); below.
12865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12866 <limits.h> exists even on freestanding compilers. */
12869 # include <limits.h>
12871 # include <assert.h>
12876 /* Override any GCC internal prototype to avoid an error.
12877 Use char because int might match the return type of a GCC
12878 builtin and then its argument prototype would still apply. */
12882 char __setostype ();
12883 /* The GNU C library defines this for functions which it implements
12884 to always fail with ENOSYS. Some functions are actually named
12885 something starting with __ and the normal name is an alias. */
12886 #if defined __stub___setostype || defined __stub_____setostype
12893 return __setostype ();
12898 rm -f conftest.$ac_objext conftest$ac_exeext
12899 if { (ac_try="$ac_link"
12900 case "(($ac_try" in
12901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12902 *) ac_try_echo
=$ac_try;;
12904 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12905 $as_echo "$ac_try_echo") >&5
12906 (eval "$ac_link") 2>conftest.er1
12908 grep -v '^ *+' conftest.er1
>conftest.err
12910 cat conftest.err
>&5
12911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } && {
12913 test -z "$ac_c_werror_flag" ||
12914 test ! -s conftest.err
12915 } && test -s conftest
$ac_exeext && {
12916 test "$cross_compiling" = yes ||
12917 $as_test_x conftest
$ac_exeext
12919 ac_cv_func___setostype
=yes
12921 $as_echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.
$ac_ext >&5
12924 ac_cv_func___setostype
=no
12927 rm -rf conftest.dSYM
12928 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12929 conftest
$ac_exeext conftest.
$ac_ext
12931 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
12932 $as_echo "$ac_cv_func___setostype" >&6; }
12933 if test "x$ac_cv_func___setostype" = x
""yes; then
12934 cat >>confdefs.h
<<\_ACEOF
12935 #define HAVE_SETOSTYPE 1
12940 { $as_echo "$as_me:$LINENO: checking for wait3" >&5
12941 $as_echo_n "checking for wait3... " >&6; }
12942 if test "${ac_cv_func_wait3+set}" = set; then
12943 $as_echo_n "(cached) " >&6
12945 cat >conftest.
$ac_ext <<_ACEOF
12948 cat confdefs.h
>>conftest.
$ac_ext
12949 cat >>conftest.
$ac_ext <<_ACEOF
12950 /* end confdefs.h. */
12951 /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
12952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12953 #define wait3 innocuous_wait3
12955 /* System header to define __stub macros and hopefully few prototypes,
12956 which can conflict with char wait3 (); below.
12957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12958 <limits.h> exists even on freestanding compilers. */
12961 # include <limits.h>
12963 # include <assert.h>
12968 /* Override any GCC internal prototype to avoid an error.
12969 Use char because int might match the return type of a GCC
12970 builtin and then its argument prototype would still apply. */
12975 /* The GNU C library defines this for functions which it implements
12976 to always fail with ENOSYS. Some functions are actually named
12977 something starting with __ and the normal name is an alias. */
12978 #if defined __stub_wait3 || defined __stub___wait3
12990 rm -f conftest.
$ac_objext conftest
$ac_exeext
12991 if { (ac_try
="$ac_link"
12992 case "(($ac_try" in
12993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12997 $as_echo "$ac_try_echo") >&5
12998 (eval "$ac_link") 2>conftest.er1
13000 grep -v '^ *+' conftest.er1 >conftest.err
13002 cat conftest.err >&5
13003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } && {
13005 test -z "$ac_c_werror_flag" ||
13006 test ! -s conftest.err
13007 } && test -s conftest$ac_exeext && {
13008 test "$cross_compiling" = yes ||
13009 $as_test_x conftest$ac_exeext
13011 ac_cv_func_wait3=yes
13013 $as_echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13016 ac_cv_func_wait3=no
13019 rm -rf conftest.dSYM
13020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13021 conftest$ac_exeext conftest.$ac_ext
13023 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
13024 $as_echo "$ac_cv_func_wait3" >&6; }
13025 if test "x$ac_cv_func_wait3" = x""yes; then
13026 cat >>confdefs.h <<\_ACEOF
13027 #define HAVE_WAIT3 1
13032 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
13033 $as_echo_n "checking for isinf... " >&6; }
13034 if test "${ac_cv_func_isinf+set}" = set; then
13035 $as_echo_n "(cached) " >&6
13037 cat >conftest.$ac_ext <<_ACEOF
13040 cat confdefs.h >>conftest.$ac_ext
13041 cat >>conftest.$ac_ext <<_ACEOF
13042 /* end confdefs.h. */
13043 /* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
13044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13045 #define isinf innocuous_isinf
13047 /* System header to define __stub macros and hopefully few prototypes,
13048 which can conflict with char isinf (); below.
13049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13050 <limits.h> exists even on freestanding compilers. */
13053 # include <limits.h>
13055 # include <assert.h>
13060 /* Override any GCC internal prototype to avoid an error.
13061 Use char because int might match the return type of a GCC
13062 builtin and then its argument prototype would still apply. */
13067 /* The GNU C library defines this for functions which it implements
13068 to always fail with ENOSYS. Some functions are actually named
13069 something starting with __ and the normal name is an alias. */
13070 #if defined __stub_isinf || defined __stub___isinf
13082 rm -f conftest.$ac_objext conftest$ac_exeext
13083 if { (ac_try="$ac_link"
13084 case "(($ac_try" in
13085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13086 *) ac_try_echo
=$ac_try;;
13088 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13089 $as_echo "$ac_try_echo") >&5
13090 (eval "$ac_link") 2>conftest.er1
13092 grep -v '^ *+' conftest.er1
>conftest.err
13094 cat conftest.err
>&5
13095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } && {
13097 test -z "$ac_c_werror_flag" ||
13098 test ! -s conftest.err
13099 } && test -s conftest
$ac_exeext && {
13100 test "$cross_compiling" = yes ||
13101 $as_test_x conftest
$ac_exeext
13103 ac_cv_func_isinf
=yes
13105 $as_echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.
$ac_ext >&5
13108 ac_cv_func_isinf
=no
13111 rm -rf conftest.dSYM
13112 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13113 conftest
$ac_exeext conftest.
$ac_ext
13115 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
13116 $as_echo "$ac_cv_func_isinf" >&6; }
13117 if test "x$ac_cv_func_isinf" = x
""yes; then
13118 cat >>confdefs.h
<<\_ACEOF
13119 #define HAVE_ISINF_IN_LIBC 1
13124 { $as_echo "$as_me:$LINENO: checking for isnan" >&5
13125 $as_echo_n "checking for isnan... " >&6; }
13126 if test "${ac_cv_func_isnan+set}" = set; then
13127 $as_echo_n "(cached) " >&6
13129 cat >conftest.
$ac_ext <<_ACEOF
13132 cat confdefs.h
>>conftest.
$ac_ext
13133 cat >>conftest.
$ac_ext <<_ACEOF
13134 /* end confdefs.h. */
13135 /* Define isnan to an innocuous variant, in case <limits.h> declares isnan.
13136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13137 #define isnan innocuous_isnan
13139 /* System header to define __stub macros and hopefully few prototypes,
13140 which can conflict with char isnan (); below.
13141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13142 <limits.h> exists even on freestanding compilers. */
13145 # include <limits.h>
13147 # include <assert.h>
13152 /* Override any GCC internal prototype to avoid an error.
13153 Use char because int might match the return type of a GCC
13154 builtin and then its argument prototype would still apply. */
13159 /* The GNU C library defines this for functions which it implements
13160 to always fail with ENOSYS. Some functions are actually named
13161 something starting with __ and the normal name is an alias. */
13162 #if defined __stub_isnan || defined __stub___isnan
13174 rm -f conftest.
$ac_objext conftest
$ac_exeext
13175 if { (ac_try
="$ac_link"
13176 case "(($ac_try" in
13177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13181 $as_echo "$ac_try_echo") >&5
13182 (eval "$ac_link") 2>conftest.er1
13184 grep -v '^ *+' conftest.er1 >conftest.err
13186 cat conftest.err >&5
13187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } && {
13189 test -z "$ac_c_werror_flag" ||
13190 test ! -s conftest.err
13191 } && test -s conftest$ac_exeext && {
13192 test "$cross_compiling" = yes ||
13193 $as_test_x conftest$ac_exeext
13195 ac_cv_func_isnan=yes
13197 $as_echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13200 ac_cv_func_isnan=no
13203 rm -rf conftest.dSYM
13204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13205 conftest$ac_exeext conftest.$ac_ext
13207 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
13208 $as_echo "$ac_cv_func_isnan" >&6; }
13209 if test "x$ac_cv_func_isnan" = x""yes; then
13210 cat >>confdefs.h <<\_ACEOF
13211 #define HAVE_ISNAN_IN_LIBC 1
13217 { $as_echo "$as_me:$LINENO: checking for mkfifo" >&5
13218 $as_echo_n "checking for mkfifo... " >&6; }
13219 if test "${ac_cv_func_mkfifo+set}" = set; then
13220 $as_echo_n "(cached) " >&6
13222 cat >conftest.$ac_ext <<_ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h. */
13228 /* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
13229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13230 #define mkfifo innocuous_mkfifo
13232 /* System header to define __stub macros and hopefully few prototypes,
13233 which can conflict with char mkfifo (); below.
13234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13235 <limits.h> exists even on freestanding compilers. */
13238 # include <limits.h>
13240 # include <assert.h>
13245 /* Override any GCC internal prototype to avoid an error.
13246 Use char because int might match the return type of a GCC
13247 builtin and then its argument prototype would still apply. */
13252 /* The GNU C library defines this for functions which it implements
13253 to always fail with ENOSYS. Some functions are actually named
13254 something starting with __ and the normal name is an alias. */
13255 #if defined __stub_mkfifo || defined __stub___mkfifo
13267 rm -f conftest.$ac_objext conftest$ac_exeext
13268 if { (ac_try="$ac_link"
13269 case "(($ac_try" in
13270 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13271 *) ac_try_echo
=$ac_try;;
13273 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13274 $as_echo "$ac_try_echo") >&5
13275 (eval "$ac_link") 2>conftest.er1
13277 grep -v '^ *+' conftest.er1
>conftest.err
13279 cat conftest.err
>&5
13280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } && {
13282 test -z "$ac_c_werror_flag" ||
13283 test ! -s conftest.err
13284 } && test -s conftest
$ac_exeext && {
13285 test "$cross_compiling" = yes ||
13286 $as_test_x conftest
$ac_exeext
13288 ac_cv_func_mkfifo
=yes
13290 $as_echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.
$ac_ext >&5
13293 ac_cv_func_mkfifo
=no
13296 rm -rf conftest.dSYM
13297 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13298 conftest
$ac_exeext conftest.
$ac_ext
13300 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
13301 $as_echo "$ac_cv_func_mkfifo" >&6; }
13302 if test "x$ac_cv_func_mkfifo" = x
""yes; then
13303 cat >>confdefs.h
<<\_ACEOF
13304 #define HAVE_MKFIFO 1
13308 cat >>confdefs.h
<<\_ACEOF
13309 #define MKFIFO_MISSING 1
13338 for ac_func
in dup2 eaccess fcntl getdtablesize getgroups gethostname \
13339 getpagesize getpeername getrlimit getrusage gettimeofday \
13340 kill killpg lstat readlink sbrk
select setdtablesize \
13341 setitimer tcgetpgrp uname
ulimit waitpid
13343 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13344 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13345 $as_echo_n "checking for $ac_func... " >&6; }
13346 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13347 $as_echo_n "(cached) " >&6
13349 cat >conftest.
$ac_ext <<_ACEOF
13352 cat confdefs.h
>>conftest.
$ac_ext
13353 cat >>conftest.
$ac_ext <<_ACEOF
13354 /* end confdefs.h. */
13355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13357 #define $ac_func innocuous_$ac_func
13359 /* System header to define __stub macros and hopefully few prototypes,
13360 which can conflict with char $ac_func (); below.
13361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13362 <limits.h> exists even on freestanding compilers. */
13365 # include <limits.h>
13367 # include <assert.h>
13372 /* Override any GCC internal prototype to avoid an error.
13373 Use char because int might match the return type of a GCC
13374 builtin and then its argument prototype would still apply. */
13379 /* The GNU C library defines this for functions which it implements
13380 to always fail with ENOSYS. Some functions are actually named
13381 something starting with __ and the normal name is an alias. */
13382 #if defined __stub_$ac_func || defined __stub___$ac_func
13389 return $ac_func ();
13394 rm -f conftest.
$ac_objext conftest
$ac_exeext
13395 if { (ac_try
="$ac_link"
13396 case "(($ac_try" in
13397 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13398 *) ac_try_echo=$ac_try;;
13400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13401 $as_echo "$ac_try_echo") >&5
13402 (eval "$ac_link") 2>conftest.er1
13404 grep -v '^ *+' conftest.er1 >conftest.err
13406 cat conftest.err >&5
13407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } && {
13409 test -z "$ac_c_werror_flag" ||
13410 test ! -s conftest.err
13411 } && test -s conftest$ac_exeext && {
13412 test "$cross_compiling" = yes ||
13413 $as_test_x conftest$ac_exeext
13415 eval "$as_ac_var=yes"
13417 $as_echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13420 eval "$as_ac_var=no"
13423 rm -rf conftest.dSYM
13424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13425 conftest$ac_exeext conftest.$ac_ext
13427 ac_res=`eval 'as_val=${'$as_ac_var'}
13428 $as_echo "$as_val"'`
13429 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13430 $as_echo "$ac_res" >&6; }
13431 as_val=`eval 'as_val=${'$as_ac_var'}
13432 $as_echo "$as_val"'`
13433 if test "x$as_val" = x""yes; then
13434 cat >>confdefs.h <<_ACEOF
13435 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13442 for ac_func in rename
13444 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13445 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13446 $as_echo_n "checking for $ac_func... " >&6; }
13447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13448 $as_echo_n "(cached) " >&6
13450 cat >conftest.$ac_ext <<_ACEOF
13453 cat confdefs.h >>conftest.$ac_ext
13454 cat >>conftest.$ac_ext <<_ACEOF
13455 /* end confdefs.h. */
13456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13458 #define $ac_func innocuous_$ac_func
13460 /* System header to define __stub macros and hopefully few prototypes,
13461 which can conflict with char $ac_func (); below.
13462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13463 <limits.h> exists even on freestanding compilers. */
13466 # include <limits.h>
13468 # include <assert.h>
13473 /* Override any GCC internal prototype to avoid an error.
13474 Use char because int might match the return type of a GCC
13475 builtin and then its argument prototype would still apply. */
13480 /* The GNU C library defines this for functions which it implements
13481 to always fail with ENOSYS. Some functions are actually named
13482 something starting with __ and the normal name is an alias. */
13483 #if defined __stub_$ac_func || defined __stub___$ac_func
13490 return $ac_func ();
13495 rm -f conftest.$ac_objext conftest$ac_exeext
13496 if { (ac_try="$ac_link"
13497 case "(($ac_try" in
13498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13499 *) ac_try_echo
=$ac_try;;
13501 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13502 $as_echo "$ac_try_echo") >&5
13503 (eval "$ac_link") 2>conftest.er1
13505 grep -v '^ *+' conftest.er1
>conftest.err
13507 cat conftest.err
>&5
13508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } && {
13510 test -z "$ac_c_werror_flag" ||
13511 test ! -s conftest.err
13512 } && test -s conftest
$ac_exeext && {
13513 test "$cross_compiling" = yes ||
13514 $as_test_x conftest
$ac_exeext
13516 eval "$as_ac_var=yes"
13518 $as_echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.
$ac_ext >&5
13521 eval "$as_ac_var=no"
13524 rm -rf conftest.dSYM
13525 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13526 conftest
$ac_exeext conftest.
$ac_ext
13528 ac_res
=`eval 'as_val=${'$as_ac_var'}
13529 $as_echo "$as_val"'`
13530 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13531 $as_echo "$ac_res" >&6; }
13532 as_val
=`eval 'as_val=${'$as_ac_var'}
13533 $as_echo "$as_val"'`
13534 if test "x$as_val" = x
""yes; then
13535 cat >>confdefs.h
<<_ACEOF
13536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13540 case " $LIBOBJS " in
13541 *" $ac_func.$ac_objext "* ) ;;
13542 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
13579 for ac_func
in bcopy bzero confstr fnmatch \
13580 getaddrinfo gethostbyname getservbyname getservent inet_aton \
13581 memmove pathconf putenv raise regcomp regexec \
13582 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
13583 sysconf syslog tcgetattr
times ttyname tzset unsetenv
13585 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13586 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13587 $as_echo_n "checking for $ac_func... " >&6; }
13588 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13589 $as_echo_n "(cached) " >&6
13591 cat >conftest.
$ac_ext <<_ACEOF
13594 cat confdefs.h
>>conftest.
$ac_ext
13595 cat >>conftest.
$ac_ext <<_ACEOF
13596 /* end confdefs.h. */
13597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13599 #define $ac_func innocuous_$ac_func
13601 /* System header to define __stub macros and hopefully few prototypes,
13602 which can conflict with char $ac_func (); below.
13603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13604 <limits.h> exists even on freestanding compilers. */
13607 # include <limits.h>
13609 # include <assert.h>
13614 /* Override any GCC internal prototype to avoid an error.
13615 Use char because int might match the return type of a GCC
13616 builtin and then its argument prototype would still apply. */
13621 /* The GNU C library defines this for functions which it implements
13622 to always fail with ENOSYS. Some functions are actually named
13623 something starting with __ and the normal name is an alias. */
13624 #if defined __stub_$ac_func || defined __stub___$ac_func
13631 return $ac_func ();
13636 rm -f conftest.
$ac_objext conftest
$ac_exeext
13637 if { (ac_try
="$ac_link"
13638 case "(($ac_try" in
13639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13640 *) ac_try_echo=$ac_try;;
13642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13643 $as_echo "$ac_try_echo") >&5
13644 (eval "$ac_link") 2>conftest.er1
13646 grep -v '^ *+' conftest.er1 >conftest.err
13648 cat conftest.err >&5
13649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } && {
13651 test -z "$ac_c_werror_flag" ||
13652 test ! -s conftest.err
13653 } && test -s conftest$ac_exeext && {
13654 test "$cross_compiling" = yes ||
13655 $as_test_x conftest$ac_exeext
13657 eval "$as_ac_var=yes"
13659 $as_echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13662 eval "$as_ac_var=no"
13665 rm -rf conftest.dSYM
13666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13667 conftest$ac_exeext conftest.$ac_ext
13669 ac_res=`eval 'as_val=${'$as_ac_var'}
13670 $as_echo "$as_val"'`
13671 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13672 $as_echo "$ac_res" >&6; }
13673 as_val=`eval 'as_val=${'$as_ac_var'}
13674 $as_echo "$as_val"'`
13675 if test "x$as_val" = x""yes; then
13676 cat >>confdefs.h <<_ACEOF
13677 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13686 for ac_func in vasprintf asprintf
13688 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13689 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13690 $as_echo_n "checking for $ac_func... " >&6; }
13691 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13692 $as_echo_n "(cached) " >&6
13694 cat >conftest.$ac_ext <<_ACEOF
13697 cat confdefs.h >>conftest.$ac_ext
13698 cat >>conftest.$ac_ext <<_ACEOF
13699 /* end confdefs.h. */
13700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13702 #define $ac_func innocuous_$ac_func
13704 /* System header to define __stub macros and hopefully few prototypes,
13705 which can conflict with char $ac_func (); below.
13706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13707 <limits.h> exists even on freestanding compilers. */
13710 # include <limits.h>
13712 # include <assert.h>
13717 /* Override any GCC internal prototype to avoid an error.
13718 Use char because int might match the return type of a GCC
13719 builtin and then its argument prototype would still apply. */
13724 /* The GNU C library defines this for functions which it implements
13725 to always fail with ENOSYS. Some functions are actually named
13726 something starting with __ and the normal name is an alias. */
13727 #if defined __stub_$ac_func || defined __stub___$ac_func
13734 return $ac_func ();
13739 rm -f conftest.$ac_objext conftest$ac_exeext
13740 if { (ac_try="$ac_link"
13741 case "(($ac_try" in
13742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13743 *) ac_try_echo
=$ac_try;;
13745 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13746 $as_echo "$ac_try_echo") >&5
13747 (eval "$ac_link") 2>conftest.er1
13749 grep -v '^ *+' conftest.er1
>conftest.err
13751 cat conftest.err
>&5
13752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } && {
13754 test -z "$ac_c_werror_flag" ||
13755 test ! -s conftest.err
13756 } && test -s conftest
$ac_exeext && {
13757 test "$cross_compiling" = yes ||
13758 $as_test_x conftest
$ac_exeext
13760 eval "$as_ac_var=yes"
13762 $as_echo "$as_me: failed program was:" >&5
13763 sed 's/^/| /' conftest.
$ac_ext >&5
13765 eval "$as_ac_var=no"
13768 rm -rf conftest.dSYM
13769 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13770 conftest
$ac_exeext conftest.
$ac_ext
13772 ac_res
=`eval 'as_val=${'$as_ac_var'}
13773 $as_echo "$as_val"'`
13774 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13775 $as_echo "$ac_res" >&6; }
13776 as_val
=`eval 'as_val=${'$as_ac_var'}
13777 $as_echo "$as_val"'`
13778 if test "x$as_val" = x
""yes; then
13779 cat >>confdefs.h
<<_ACEOF
13780 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13792 for ac_func
in isascii isblank isgraph isprint isspace isxdigit
13794 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13795 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13796 $as_echo_n "checking for $ac_func... " >&6; }
13797 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13798 $as_echo_n "(cached) " >&6
13800 cat >conftest.
$ac_ext <<_ACEOF
13803 cat confdefs.h
>>conftest.
$ac_ext
13804 cat >>conftest.
$ac_ext <<_ACEOF
13805 /* end confdefs.h. */
13806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13808 #define $ac_func innocuous_$ac_func
13810 /* System header to define __stub macros and hopefully few prototypes,
13811 which can conflict with char $ac_func (); below.
13812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13813 <limits.h> exists even on freestanding compilers. */
13816 # include <limits.h>
13818 # include <assert.h>
13823 /* Override any GCC internal prototype to avoid an error.
13824 Use char because int might match the return type of a GCC
13825 builtin and then its argument prototype would still apply. */
13830 /* The GNU C library defines this for functions which it implements
13831 to always fail with ENOSYS. Some functions are actually named
13832 something starting with __ and the normal name is an alias. */
13833 #if defined __stub_$ac_func || defined __stub___$ac_func
13840 return $ac_func ();
13845 rm -f conftest.
$ac_objext conftest
$ac_exeext
13846 if { (ac_try
="$ac_link"
13847 case "(($ac_try" in
13848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13849 *) ac_try_echo=$ac_try;;
13851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13852 $as_echo "$ac_try_echo") >&5
13853 (eval "$ac_link") 2>conftest.er1
13855 grep -v '^ *+' conftest.er1 >conftest.err
13857 cat conftest.err >&5
13858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } && {
13860 test -z "$ac_c_werror_flag" ||
13861 test ! -s conftest.err
13862 } && test -s conftest$ac_exeext && {
13863 test "$cross_compiling" = yes ||
13864 $as_test_x conftest$ac_exeext
13866 eval "$as_ac_var=yes"
13868 $as_echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13871 eval "$as_ac_var=no"
13874 rm -rf conftest.dSYM
13875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13876 conftest$ac_exeext conftest.$ac_ext
13878 ac_res=`eval 'as_val=${'$as_ac_var'}
13879 $as_echo "$as_val"'`
13880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13881 $as_echo "$ac_res" >&6; }
13882 as_val=`eval 'as_val=${'$as_ac_var'}
13883 $as_echo "$as_val"'`
13884 if test "x$as_val" = x""yes; then
13885 cat >>confdefs.h <<_ACEOF
13886 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13895 for ac_func in getpwent getpwnam getpwuid
13897 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13898 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13899 $as_echo_n "checking for $ac_func... " >&6; }
13900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13901 $as_echo_n "(cached) " >&6
13903 cat >conftest.$ac_ext <<_ACEOF
13906 cat confdefs.h >>conftest.$ac_ext
13907 cat >>conftest.$ac_ext <<_ACEOF
13908 /* end confdefs.h. */
13909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13911 #define $ac_func innocuous_$ac_func
13913 /* System header to define __stub macros and hopefully few prototypes,
13914 which can conflict with char $ac_func (); below.
13915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13916 <limits.h> exists even on freestanding compilers. */
13919 # include <limits.h>
13921 # include <assert.h>
13926 /* Override any GCC internal prototype to avoid an error.
13927 Use char because int might match the return type of a GCC
13928 builtin and then its argument prototype would still apply. */
13933 /* The GNU C library defines this for functions which it implements
13934 to always fail with ENOSYS. Some functions are actually named
13935 something starting with __ and the normal name is an alias. */
13936 #if defined __stub_$ac_func || defined __stub___$ac_func
13943 return $ac_func ();
13948 rm -f conftest.$ac_objext conftest$ac_exeext
13949 if { (ac_try="$ac_link"
13950 case "(($ac_try" in
13951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13952 *) ac_try_echo
=$ac_try;;
13954 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13955 $as_echo "$ac_try_echo") >&5
13956 (eval "$ac_link") 2>conftest.er1
13958 grep -v '^ *+' conftest.er1
>conftest.err
13960 cat conftest.err
>&5
13961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } && {
13963 test -z "$ac_c_werror_flag" ||
13964 test ! -s conftest.err
13965 } && test -s conftest
$ac_exeext && {
13966 test "$cross_compiling" = yes ||
13967 $as_test_x conftest
$ac_exeext
13969 eval "$as_ac_var=yes"
13971 $as_echo "$as_me: failed program was:" >&5
13972 sed 's/^/| /' conftest.
$ac_ext >&5
13974 eval "$as_ac_var=no"
13977 rm -rf conftest.dSYM
13978 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13979 conftest
$ac_exeext conftest.
$ac_ext
13981 ac_res
=`eval 'as_val=${'$as_ac_var'}
13982 $as_echo "$as_val"'`
13983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13984 $as_echo "$ac_res" >&6; }
13985 as_val
=`eval 'as_val=${'$as_ac_var'}
13986 $as_echo "$as_val"'`
13987 if test "x$as_val" = x
""yes; then
13988 cat >>confdefs.h
<<_ACEOF
13989 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13997 for ac_func
in getcwd memset
13999 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14000 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14001 $as_echo_n "checking for $ac_func... " >&6; }
14002 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14003 $as_echo_n "(cached) " >&6
14005 cat >conftest.
$ac_ext <<_ACEOF
14008 cat confdefs.h
>>conftest.
$ac_ext
14009 cat >>conftest.
$ac_ext <<_ACEOF
14010 /* end confdefs.h. */
14011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14013 #define $ac_func innocuous_$ac_func
14015 /* System header to define __stub macros and hopefully few prototypes,
14016 which can conflict with char $ac_func (); below.
14017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14018 <limits.h> exists even on freestanding compilers. */
14021 # include <limits.h>
14023 # include <assert.h>
14028 /* Override any GCC internal prototype to avoid an error.
14029 Use char because int might match the return type of a GCC
14030 builtin and then its argument prototype would still apply. */
14035 /* The GNU C library defines this for functions which it implements
14036 to always fail with ENOSYS. Some functions are actually named
14037 something starting with __ and the normal name is an alias. */
14038 #if defined __stub_$ac_func || defined __stub___$ac_func
14045 return $ac_func ();
14050 rm -f conftest.
$ac_objext conftest
$ac_exeext
14051 if { (ac_try
="$ac_link"
14052 case "(($ac_try" in
14053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14054 *) ac_try_echo=$ac_try;;
14056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14057 $as_echo "$ac_try_echo") >&5
14058 (eval "$ac_link") 2>conftest.er1
14060 grep -v '^ *+' conftest.er1 >conftest.err
14062 cat conftest.err >&5
14063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } && {
14065 test -z "$ac_c_werror_flag" ||
14066 test ! -s conftest.err
14067 } && test -s conftest$ac_exeext && {
14068 test "$cross_compiling" = yes ||
14069 $as_test_x conftest$ac_exeext
14071 eval "$as_ac_var=yes"
14073 $as_echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14076 eval "$as_ac_var=no"
14079 rm -rf conftest.dSYM
14080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14081 conftest$ac_exeext conftest.$ac_ext
14083 ac_res=`eval 'as_val=${'$as_ac_var'}
14084 $as_echo "$as_val"'`
14085 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14086 $as_echo "$ac_res" >&6; }
14087 as_val=`eval 'as_val=${'$as_ac_var'}
14088 $as_echo "$as_val"'`
14089 if test "x$as_val" = x""yes; then
14090 cat >>confdefs.h <<_ACEOF
14091 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14095 case " $LIBOBJS " in
14096 *" $ac_func.$ac_objext "* ) ;;
14097 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14112 for ac_func in strcasecmp strcasestr strerror strftime strnlen strpbrk strstr
14114 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
14115 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14116 $as_echo_n "checking for $ac_func... " >&6; }
14117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14118 $as_echo_n "(cached) " >&6
14120 cat >conftest.$ac_ext <<_ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14128 #define $ac_func innocuous_$ac_func
14130 /* System header to define __stub macros and hopefully few prototypes,
14131 which can conflict with char $ac_func (); below.
14132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14133 <limits.h> exists even on freestanding compilers. */
14136 # include <limits.h>
14138 # include <assert.h>
14143 /* Override any GCC internal prototype to avoid an error.
14144 Use char because int might match the return type of a GCC
14145 builtin and then its argument prototype would still apply. */
14150 /* The GNU C library defines this for functions which it implements
14151 to always fail with ENOSYS. Some functions are actually named
14152 something starting with __ and the normal name is an alias. */
14153 #if defined __stub_$ac_func || defined __stub___$ac_func
14160 return $ac_func ();
14165 rm -f conftest.$ac_objext conftest$ac_exeext
14166 if { (ac_try="$ac_link"
14167 case "(($ac_try" in
14168 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14169 *) ac_try_echo
=$ac_try;;
14171 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14172 $as_echo "$ac_try_echo") >&5
14173 (eval "$ac_link") 2>conftest.er1
14175 grep -v '^ *+' conftest.er1
>conftest.err
14177 cat conftest.err
>&5
14178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } && {
14180 test -z "$ac_c_werror_flag" ||
14181 test ! -s conftest.err
14182 } && test -s conftest
$ac_exeext && {
14183 test "$cross_compiling" = yes ||
14184 $as_test_x conftest
$ac_exeext
14186 eval "$as_ac_var=yes"
14188 $as_echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.
$ac_ext >&5
14191 eval "$as_ac_var=no"
14194 rm -rf conftest.dSYM
14195 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14196 conftest
$ac_exeext conftest.
$ac_ext
14198 ac_res
=`eval 'as_val=${'$as_ac_var'}
14199 $as_echo "$as_val"'`
14200 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14201 $as_echo "$ac_res" >&6; }
14202 as_val
=`eval 'as_val=${'$as_ac_var'}
14203 $as_echo "$as_val"'`
14204 if test "x$as_val" = x
""yes; then
14205 cat >>confdefs.h
<<_ACEOF
14206 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14210 case " $LIBOBJS " in
14211 *" $ac_func.$ac_objext "* ) ;;
14212 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
14227 for ac_func
in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
14229 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14230 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14231 $as_echo_n "checking for $ac_func... " >&6; }
14232 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14233 $as_echo_n "(cached) " >&6
14235 cat >conftest.
$ac_ext <<_ACEOF
14238 cat confdefs.h
>>conftest.
$ac_ext
14239 cat >>conftest.
$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14243 #define $ac_func innocuous_$ac_func
14245 /* System header to define __stub macros and hopefully few prototypes,
14246 which can conflict with char $ac_func (); below.
14247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14248 <limits.h> exists even on freestanding compilers. */
14251 # include <limits.h>
14253 # include <assert.h>
14258 /* Override any GCC internal prototype to avoid an error.
14259 Use char because int might match the return type of a GCC
14260 builtin and then its argument prototype would still apply. */
14265 /* The GNU C library defines this for functions which it implements
14266 to always fail with ENOSYS. Some functions are actually named
14267 something starting with __ and the normal name is an alias. */
14268 #if defined __stub_$ac_func || defined __stub___$ac_func
14275 return $ac_func ();
14280 rm -f conftest.
$ac_objext conftest
$ac_exeext
14281 if { (ac_try
="$ac_link"
14282 case "(($ac_try" in
14283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14287 $as_echo "$ac_try_echo") >&5
14288 (eval "$ac_link") 2>conftest.er1
14290 grep -v '^ *+' conftest.er1 >conftest.err
14292 cat conftest.err >&5
14293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } && {
14295 test -z "$ac_c_werror_flag" ||
14296 test ! -s conftest.err
14297 } && test -s conftest$ac_exeext && {
14298 test "$cross_compiling" = yes ||
14299 $as_test_x conftest$ac_exeext
14301 eval "$as_ac_var=yes"
14303 $as_echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14306 eval "$as_ac_var=no"
14309 rm -rf conftest.dSYM
14310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14311 conftest$ac_exeext conftest.$ac_ext
14313 ac_res=`eval 'as_val=${'$as_ac_var'}
14314 $as_echo "$as_val"'`
14315 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14316 $as_echo "$ac_res" >&6; }
14317 as_val=`eval 'as_val=${'$as_ac_var'}
14318 $as_echo "$as_val"'`
14319 if test "x$as_val" = x""yes; then
14320 cat >>confdefs.h <<_ACEOF
14321 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14325 case " $LIBOBJS " in
14326 *" $ac_func.$ac_objext "* ) ;;
14327 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14336 for ac_func in fdprintf
14338 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
14339 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14340 $as_echo_n "checking for $ac_func... " >&6; }
14341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14342 $as_echo_n "(cached) " >&6
14344 cat >conftest.$ac_ext <<_ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h. */
14350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14352 #define $ac_func innocuous_$ac_func
14354 /* System header to define __stub macros and hopefully few prototypes,
14355 which can conflict with char $ac_func (); below.
14356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14357 <limits.h> exists even on freestanding compilers. */
14360 # include <limits.h>
14362 # include <assert.h>
14367 /* Override any GCC internal prototype to avoid an error.
14368 Use char because int might match the return type of a GCC
14369 builtin and then its argument prototype would still apply. */
14374 /* The GNU C library defines this for functions which it implements
14375 to always fail with ENOSYS. Some functions are actually named
14376 something starting with __ and the normal name is an alias. */
14377 #if defined __stub_$ac_func || defined __stub___$ac_func
14384 return $ac_func ();
14389 rm -f conftest.$ac_objext conftest$ac_exeext
14390 if { (ac_try="$ac_link"
14391 case "(($ac_try" in
14392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14393 *) ac_try_echo
=$ac_try;;
14395 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14396 $as_echo "$ac_try_echo") >&5
14397 (eval "$ac_link") 2>conftest.er1
14399 grep -v '^ *+' conftest.er1
>conftest.err
14401 cat conftest.err
>&5
14402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } && {
14404 test -z "$ac_c_werror_flag" ||
14405 test ! -s conftest.err
14406 } && test -s conftest
$ac_exeext && {
14407 test "$cross_compiling" = yes ||
14408 $as_test_x conftest
$ac_exeext
14410 eval "$as_ac_var=yes"
14412 $as_echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.
$ac_ext >&5
14415 eval "$as_ac_var=no"
14418 rm -rf conftest.dSYM
14419 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14420 conftest
$ac_exeext conftest.
$ac_ext
14422 ac_res
=`eval 'as_val=${'$as_ac_var'}
14423 $as_echo "$as_val"'`
14424 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14425 $as_echo "$ac_res" >&6; }
14426 as_val
=`eval 'as_val=${'$as_ac_var'}
14427 $as_echo "$as_val"'`
14428 if test "x$as_val" = x
""yes; then
14429 cat >>confdefs.h
<<_ACEOF
14430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14434 case " $LIBOBJS " in
14435 *" $ac_func.$ac_objext "* ) ;;
14436 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
14445 { $as_echo "$as_me:$LINENO: checking whether confstr is declared" >&5
14446 $as_echo_n "checking whether confstr is declared... " >&6; }
14447 if test "${ac_cv_have_decl_confstr+set}" = set; then
14448 $as_echo_n "(cached) " >&6
14450 cat >conftest.
$ac_ext <<_ACEOF
14453 cat confdefs.h
>>conftest.
$ac_ext
14454 cat >>conftest.
$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14456 $ac_includes_default
14468 rm -f conftest.
$ac_objext
14469 if { (ac_try
="$ac_compile"
14470 case "(($ac_try" in
14471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14472 *) ac_try_echo=$ac_try;;
14474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14475 $as_echo "$ac_try_echo") >&5
14476 (eval "$ac_compile") 2>conftest.er1
14478 grep -v '^ *+' conftest.er1 >conftest.err
14480 cat conftest.err >&5
14481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } && {
14483 test -z "$ac_c_werror_flag" ||
14484 test ! -s conftest.err
14485 } && test -s conftest.$ac_objext; then
14486 ac_cv_have_decl_confstr=yes
14488 $as_echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14491 ac_cv_have_decl_confstr=no
14494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14496 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
14497 $as_echo "$ac_cv_have_decl_confstr" >&6; }
14498 if test "x$ac_cv_have_decl_confstr" = x""yes; then
14500 cat >>confdefs.h <<_ACEOF
14501 #define HAVE_DECL_CONFSTR 1
14506 cat >>confdefs.h <<_ACEOF
14507 #define HAVE_DECL_CONFSTR 0
14514 { $as_echo "$as_me:$LINENO: checking whether printf is declared" >&5
14515 $as_echo_n "checking whether printf is declared... " >&6; }
14516 if test "${ac_cv_have_decl_printf+set}" = set; then
14517 $as_echo_n "(cached) " >&6
14519 cat >conftest.$ac_ext <<_ACEOF
14522 cat confdefs.h >>conftest.$ac_ext
14523 cat >>conftest.$ac_ext <<_ACEOF
14524 /* end confdefs.h. */
14525 $ac_includes_default
14537 rm -f conftest.$ac_objext
14538 if { (ac_try="$ac_compile"
14539 case "(($ac_try" in
14540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14541 *) ac_try_echo
=$ac_try;;
14543 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14544 $as_echo "$ac_try_echo") >&5
14545 (eval "$ac_compile") 2>conftest.er1
14547 grep -v '^ *+' conftest.er1
>conftest.err
14549 cat conftest.err
>&5
14550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } && {
14552 test -z "$ac_c_werror_flag" ||
14553 test ! -s conftest.err
14554 } && test -s conftest.
$ac_objext; then
14555 ac_cv_have_decl_printf
=yes
14557 $as_echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.
$ac_ext >&5
14560 ac_cv_have_decl_printf
=no
14563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14565 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
14566 $as_echo "$ac_cv_have_decl_printf" >&6; }
14567 if test "x$ac_cv_have_decl_printf" = x
""yes; then
14569 cat >>confdefs.h
<<_ACEOF
14570 #define HAVE_DECL_PRINTF 1
14575 cat >>confdefs.h
<<_ACEOF
14576 #define HAVE_DECL_PRINTF 0
14583 { $as_echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
14584 $as_echo_n "checking whether sbrk is declared... " >&6; }
14585 if test "${ac_cv_have_decl_sbrk+set}" = set; then
14586 $as_echo_n "(cached) " >&6
14588 cat >conftest.
$ac_ext <<_ACEOF
14591 cat confdefs.h
>>conftest.
$ac_ext
14592 cat >>conftest.
$ac_ext <<_ACEOF
14593 /* end confdefs.h. */
14594 $ac_includes_default
14606 rm -f conftest.
$ac_objext
14607 if { (ac_try
="$ac_compile"
14608 case "(($ac_try" in
14609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14610 *) ac_try_echo=$ac_try;;
14612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14613 $as_echo "$ac_try_echo") >&5
14614 (eval "$ac_compile") 2>conftest.er1
14616 grep -v '^ *+' conftest.er1 >conftest.err
14618 cat conftest.err >&5
14619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } && {
14621 test -z "$ac_c_werror_flag" ||
14622 test ! -s conftest.err
14623 } && test -s conftest.$ac_objext; then
14624 ac_cv_have_decl_sbrk=yes
14626 $as_echo "$as_me: failed program was:" >&5
14627 sed 's/^/| /' conftest.$ac_ext >&5
14629 ac_cv_have_decl_sbrk=no
14632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14634 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
14635 $as_echo "$ac_cv_have_decl_sbrk" >&6; }
14636 if test "x$ac_cv_have_decl_sbrk" = x""yes; then
14638 cat >>confdefs.h <<_ACEOF
14639 #define HAVE_DECL_SBRK 1
14644 cat >>confdefs.h <<_ACEOF
14645 #define HAVE_DECL_SBRK 0
14652 { $as_echo "$as_me:$LINENO: checking whether setregid is declared" >&5
14653 $as_echo_n "checking whether setregid is declared... " >&6; }
14654 if test "${ac_cv_have_decl_setregid+set}" = set; then
14655 $as_echo_n "(cached) " >&6
14657 cat >conftest.$ac_ext <<_ACEOF
14660 cat confdefs.h >>conftest.$ac_ext
14661 cat >>conftest.$ac_ext <<_ACEOF
14662 /* end confdefs.h. */
14663 $ac_includes_default
14675 rm -f conftest.$ac_objext
14676 if { (ac_try="$ac_compile"
14677 case "(($ac_try" in
14678 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14679 *) ac_try_echo
=$ac_try;;
14681 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14682 $as_echo "$ac_try_echo") >&5
14683 (eval "$ac_compile") 2>conftest.er1
14685 grep -v '^ *+' conftest.er1
>conftest.err
14687 cat conftest.err
>&5
14688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } && {
14690 test -z "$ac_c_werror_flag" ||
14691 test ! -s conftest.err
14692 } && test -s conftest.
$ac_objext; then
14693 ac_cv_have_decl_setregid
=yes
14695 $as_echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.
$ac_ext >&5
14698 ac_cv_have_decl_setregid
=no
14701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14703 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
14704 $as_echo "$ac_cv_have_decl_setregid" >&6; }
14705 if test "x$ac_cv_have_decl_setregid" = x
""yes; then
14707 cat >>confdefs.h
<<_ACEOF
14708 #define HAVE_DECL_SETREGID 1
14713 cat >>confdefs.h
<<_ACEOF
14714 #define HAVE_DECL_SETREGID 0
14721 { $as_echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
14722 $as_echo_n "checking whether strcpy is declared... " >&6; }
14723 if test "${ac_cv_have_decl_strcpy+set}" = set; then
14724 $as_echo_n "(cached) " >&6
14726 cat >conftest.
$ac_ext <<_ACEOF
14729 cat confdefs.h
>>conftest.
$ac_ext
14730 cat >>conftest.
$ac_ext <<_ACEOF
14731 /* end confdefs.h. */
14732 $ac_includes_default
14744 rm -f conftest.
$ac_objext
14745 if { (ac_try
="$ac_compile"
14746 case "(($ac_try" in
14747 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14748 *) ac_try_echo=$ac_try;;
14750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14751 $as_echo "$ac_try_echo") >&5
14752 (eval "$ac_compile") 2>conftest.er1
14754 grep -v '^ *+' conftest.er1 >conftest.err
14756 cat conftest.err >&5
14757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); } && {
14759 test -z "$ac_c_werror_flag" ||
14760 test ! -s conftest.err
14761 } && test -s conftest.$ac_objext; then
14762 ac_cv_have_decl_strcpy=yes
14764 $as_echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14767 ac_cv_have_decl_strcpy=no
14770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14772 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
14773 $as_echo "$ac_cv_have_decl_strcpy" >&6; }
14774 if test "x$ac_cv_have_decl_strcpy" = x""yes; then
14776 cat >>confdefs.h <<_ACEOF
14777 #define HAVE_DECL_STRCPY 1
14782 cat >>confdefs.h <<_ACEOF
14783 #define HAVE_DECL_STRCPY 0
14790 { $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
14791 $as_echo_n "checking whether strsignal is declared... " >&6; }
14792 if test "${ac_cv_have_decl_strsignal+set}" = set; then
14793 $as_echo_n "(cached) " >&6
14795 cat >conftest.$ac_ext <<_ACEOF
14798 cat confdefs.h >>conftest.$ac_ext
14799 cat >>conftest.$ac_ext <<_ACEOF
14800 /* end confdefs.h. */
14801 $ac_includes_default
14813 rm -f conftest.$ac_objext
14814 if { (ac_try="$ac_compile"
14815 case "(($ac_try" in
14816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14817 *) ac_try_echo
=$ac_try;;
14819 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14820 $as_echo "$ac_try_echo") >&5
14821 (eval "$ac_compile") 2>conftest.er1
14823 grep -v '^ *+' conftest.er1
>conftest.err
14825 cat conftest.err
>&5
14826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } && {
14828 test -z "$ac_c_werror_flag" ||
14829 test ! -s conftest.err
14830 } && test -s conftest.
$ac_objext; then
14831 ac_cv_have_decl_strsignal
=yes
14833 $as_echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.
$ac_ext >&5
14836 ac_cv_have_decl_strsignal
=no
14839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14841 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
14842 $as_echo "$ac_cv_have_decl_strsignal" >&6; }
14843 if test "x$ac_cv_have_decl_strsignal" = x
""yes; then
14845 cat >>confdefs.h
<<_ACEOF
14846 #define HAVE_DECL_STRSIGNAL 1
14851 cat >>confdefs.h
<<_ACEOF
14852 #define HAVE_DECL_STRSIGNAL 0
14860 { $as_echo "$as_me:$LINENO: checking whether strtold is declared" >&5
14861 $as_echo_n "checking whether strtold is declared... " >&6; }
14862 if test "${ac_cv_have_decl_strtold+set}" = set; then
14863 $as_echo_n "(cached) " >&6
14865 cat >conftest.
$ac_ext <<_ACEOF
14868 cat confdefs.h
>>conftest.
$ac_ext
14869 cat >>conftest.
$ac_ext <<_ACEOF
14870 /* end confdefs.h. */
14871 $ac_includes_default
14883 rm -f conftest.
$ac_objext
14884 if { (ac_try
="$ac_compile"
14885 case "(($ac_try" in
14886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14887 *) ac_try_echo=$ac_try;;
14889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14890 $as_echo "$ac_try_echo") >&5
14891 (eval "$ac_compile") 2>conftest.er1
14893 grep -v '^ *+' conftest.er1 >conftest.err
14895 cat conftest.err >&5
14896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } && {
14898 test -z "$ac_c_werror_flag" ||
14899 test ! -s conftest.err
14900 } && test -s conftest.$ac_objext; then
14901 ac_cv_have_decl_strtold=yes
14903 $as_echo "$as_me: failed program was:" >&5
14904 sed 's/^/| /' conftest.$ac_ext >&5
14906 ac_cv_have_decl_strtold=no
14909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14911 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
14912 $as_echo "$ac_cv_have_decl_strtold" >&6; }
14913 if test "x$ac_cv_have_decl_strtold" = x""yes; then
14915 cat >>confdefs.h <<_ACEOF
14916 #define HAVE_DECL_STRTOLD 1
14920 { $as_echo "$as_me:$LINENO: checking for broken strtold" >&5
14921 $as_echo_n "checking for broken strtold... " >&6; }
14922 if test "${bash_cv_strtold_broken+set}" = set; then
14923 $as_echo_n "(cached) " >&6
14925 cat >conftest.$ac_ext <<_ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14931 #include <stdlib.h>
14935 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
14940 rm -f conftest.$ac_objext
14941 if { (ac_try="$ac_compile"
14942 case "(($ac_try" in
14943 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14944 *) ac_try_echo
=$ac_try;;
14946 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14947 $as_echo "$ac_try_echo") >&5
14948 (eval "$ac_compile") 2>conftest.er1
14950 grep -v '^ *+' conftest.er1
>conftest.err
14952 cat conftest.err
>&5
14953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } && {
14955 test -z "$ac_c_werror_flag" ||
14956 test ! -s conftest.err
14957 } && test -s conftest.
$ac_objext; then
14958 bash_cv_strtold_broken
=no
14960 $as_echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.
$ac_ext >&5
14963 bash_cv_strtold_broken
=yes
14966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14971 { $as_echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
14972 $as_echo "$bash_cv_strtold_broken" >&6; }
14973 if test "$bash_cv_strtold_broken" = "yes" ; then
14974 cat >>confdefs.h
<<\_ACEOF
14975 #define STRTOLD_BROKEN 1
14981 cat >>confdefs.h
<<_ACEOF
14982 #define HAVE_DECL_STRTOLD 0
14994 { $as_echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
14995 $as_echo_n "checking for declaration of strtoimax... " >&6; }
14996 if test "${bash_cv_decl_strtoimax+set}" = set; then
14997 $as_echo_n "(cached) " >&6
14999 cat >conftest.
$ac_ext <<_ACEOF
15002 cat confdefs.h
>>conftest.
$ac_ext
15003 cat >>conftest.
$ac_ext <<_ACEOF
15004 /* end confdefs.h. */
15007 # include <stdlib.h>
15009 #if HAVE_INTTYPES_H
15010 # include <inttypes.h>
15021 rm -f conftest.
$ac_objext conftest
$ac_exeext
15022 if { (ac_try
="$ac_link"
15023 case "(($ac_try" in
15024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15025 *) ac_try_echo=$ac_try;;
15027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15028 $as_echo "$ac_try_echo") >&5
15029 (eval "$ac_link") 2>conftest.er1
15031 grep -v '^ *+' conftest.er1 >conftest.err
15033 cat conftest.err >&5
15034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); } && {
15036 test -z "$ac_c_werror_flag" ||
15037 test ! -s conftest.err
15038 } && test -s conftest$ac_exeext && {
15039 test "$cross_compiling" = yes ||
15040 $as_test_x conftest$ac_exeext
15042 bash_cv_decl_strtoimax=yes
15044 $as_echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15047 bash_cv_decl_strtoimax=no
15050 rm -rf conftest.dSYM
15051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15052 conftest$ac_exeext conftest.$ac_ext
15054 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
15055 $as_echo "$bash_cv_decl_strtoimax" >&6; }
15056 bash_tr_func=HAVE_DECL_`echo strtoimax |
tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15057 if test $bash_cv_decl_strtoimax = yes; then
15058 cat >>confdefs.h <<_ACEOF
15059 #define $bash_tr_func 1
15063 cat >>confdefs.h <<_ACEOF
15064 #define $bash_tr_func 0
15072 { $as_echo "$as_me:$LINENO: checking for declaration of strtol" >&5
15073 $as_echo_n "checking for declaration of strtol... " >&6; }
15074 if test "${bash_cv_decl_strtol+set}" = set; then
15075 $as_echo_n "(cached) " >&6
15077 cat >conftest.$ac_ext <<_ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h. */
15085 # include <stdlib.h>
15087 #if HAVE_INTTYPES_H
15088 # include <inttypes.h>
15099 rm -f conftest.$ac_objext conftest$ac_exeext
15100 if { (ac_try="$ac_link"
15101 case "(($ac_try" in
15102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15103 *) ac_try_echo
=$ac_try;;
15105 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15106 $as_echo "$ac_try_echo") >&5
15107 (eval "$ac_link") 2>conftest.er1
15109 grep -v '^ *+' conftest.er1
>conftest.err
15111 cat conftest.err
>&5
15112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); } && {
15114 test -z "$ac_c_werror_flag" ||
15115 test ! -s conftest.err
15116 } && test -s conftest
$ac_exeext && {
15117 test "$cross_compiling" = yes ||
15118 $as_test_x conftest
$ac_exeext
15120 bash_cv_decl_strtol
=yes
15122 $as_echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.
$ac_ext >&5
15125 bash_cv_decl_strtol
=no
15128 rm -rf conftest.dSYM
15129 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15130 conftest
$ac_exeext conftest.
$ac_ext
15132 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
15133 $as_echo "$bash_cv_decl_strtol" >&6; }
15134 bash_tr_func
=HAVE_DECL_
`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15135 if test $bash_cv_decl_strtol = yes; then
15136 cat >>confdefs.h
<<_ACEOF
15137 #define $bash_tr_func 1
15141 cat >>confdefs.h
<<_ACEOF
15142 #define $bash_tr_func 0
15150 { $as_echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
15151 $as_echo_n "checking for declaration of strtoll... " >&6; }
15152 if test "${bash_cv_decl_strtoll+set}" = set; then
15153 $as_echo_n "(cached) " >&6
15155 cat >conftest.
$ac_ext <<_ACEOF
15158 cat confdefs.h
>>conftest.
$ac_ext
15159 cat >>conftest.
$ac_ext <<_ACEOF
15160 /* end confdefs.h. */
15163 # include <stdlib.h>
15165 #if HAVE_INTTYPES_H
15166 # include <inttypes.h>
15177 rm -f conftest.
$ac_objext conftest
$ac_exeext
15178 if { (ac_try
="$ac_link"
15179 case "(($ac_try" in
15180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15181 *) ac_try_echo=$ac_try;;
15183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15184 $as_echo "$ac_try_echo") >&5
15185 (eval "$ac_link") 2>conftest.er1
15187 grep -v '^ *+' conftest.er1 >conftest.err
15189 cat conftest.err >&5
15190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); } && {
15192 test -z "$ac_c_werror_flag" ||
15193 test ! -s conftest.err
15194 } && test -s conftest$ac_exeext && {
15195 test "$cross_compiling" = yes ||
15196 $as_test_x conftest$ac_exeext
15198 bash_cv_decl_strtoll=yes
15200 $as_echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.$ac_ext >&5
15203 bash_cv_decl_strtoll=no
15206 rm -rf conftest.dSYM
15207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15208 conftest$ac_exeext conftest.$ac_ext
15210 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
15211 $as_echo "$bash_cv_decl_strtoll" >&6; }
15212 bash_tr_func=HAVE_DECL_`echo strtoll |
tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15213 if test $bash_cv_decl_strtoll = yes; then
15214 cat >>confdefs.h <<_ACEOF
15215 #define $bash_tr_func 1
15219 cat >>confdefs.h <<_ACEOF
15220 #define $bash_tr_func 0
15228 { $as_echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
15229 $as_echo_n "checking for declaration of strtoul... " >&6; }
15230 if test "${bash_cv_decl_strtoul+set}" = set; then
15231 $as_echo_n "(cached) " >&6
15233 cat >conftest.$ac_ext <<_ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h. */
15241 # include <stdlib.h>
15243 #if HAVE_INTTYPES_H
15244 # include <inttypes.h>
15255 rm -f conftest.$ac_objext conftest$ac_exeext
15256 if { (ac_try="$ac_link"
15257 case "(($ac_try" in
15258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15259 *) ac_try_echo
=$ac_try;;
15261 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15262 $as_echo "$ac_try_echo") >&5
15263 (eval "$ac_link") 2>conftest.er1
15265 grep -v '^ *+' conftest.er1
>conftest.err
15267 cat conftest.err
>&5
15268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); } && {
15270 test -z "$ac_c_werror_flag" ||
15271 test ! -s conftest.err
15272 } && test -s conftest
$ac_exeext && {
15273 test "$cross_compiling" = yes ||
15274 $as_test_x conftest
$ac_exeext
15276 bash_cv_decl_strtoul
=yes
15278 $as_echo "$as_me: failed program was:" >&5
15279 sed 's/^/| /' conftest.
$ac_ext >&5
15281 bash_cv_decl_strtoul
=no
15284 rm -rf conftest.dSYM
15285 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15286 conftest
$ac_exeext conftest.
$ac_ext
15288 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
15289 $as_echo "$bash_cv_decl_strtoul" >&6; }
15290 bash_tr_func
=HAVE_DECL_
`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15291 if test $bash_cv_decl_strtoul = yes; then
15292 cat >>confdefs.h
<<_ACEOF
15293 #define $bash_tr_func 1
15297 cat >>confdefs.h
<<_ACEOF
15298 #define $bash_tr_func 0
15306 { $as_echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
15307 $as_echo_n "checking for declaration of strtoull... " >&6; }
15308 if test "${bash_cv_decl_strtoull+set}" = set; then
15309 $as_echo_n "(cached) " >&6
15311 cat >conftest.
$ac_ext <<_ACEOF
15314 cat confdefs.h
>>conftest.
$ac_ext
15315 cat >>conftest.
$ac_ext <<_ACEOF
15316 /* end confdefs.h. */
15319 # include <stdlib.h>
15321 #if HAVE_INTTYPES_H
15322 # include <inttypes.h>
15333 rm -f conftest.
$ac_objext conftest
$ac_exeext
15334 if { (ac_try
="$ac_link"
15335 case "(($ac_try" in
15336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15337 *) ac_try_echo=$ac_try;;
15339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15340 $as_echo "$ac_try_echo") >&5
15341 (eval "$ac_link") 2>conftest.er1
15343 grep -v '^ *+' conftest.er1 >conftest.err
15345 cat conftest.err >&5
15346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); } && {
15348 test -z "$ac_c_werror_flag" ||
15349 test ! -s conftest.err
15350 } && test -s conftest$ac_exeext && {
15351 test "$cross_compiling" = yes ||
15352 $as_test_x conftest$ac_exeext
15354 bash_cv_decl_strtoull=yes
15356 $as_echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15359 bash_cv_decl_strtoull=no
15362 rm -rf conftest.dSYM
15363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15364 conftest$ac_exeext conftest.$ac_ext
15366 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
15367 $as_echo "$bash_cv_decl_strtoull" >&6; }
15368 bash_tr_func=HAVE_DECL_`echo strtoull |
tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15369 if test $bash_cv_decl_strtoull = yes; then
15370 cat >>confdefs.h <<_ACEOF
15371 #define $bash_tr_func 1
15375 cat >>confdefs.h <<_ACEOF
15376 #define $bash_tr_func 0
15384 { $as_echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
15385 $as_echo_n "checking for declaration of strtoumax... " >&6; }
15386 if test "${bash_cv_decl_strtoumax+set}" = set; then
15387 $as_echo_n "(cached) " >&6
15389 cat >conftest.$ac_ext <<_ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h. */
15397 # include <stdlib.h>
15399 #if HAVE_INTTYPES_H
15400 # include <inttypes.h>
15411 rm -f conftest.$ac_objext conftest$ac_exeext
15412 if { (ac_try="$ac_link"
15413 case "(($ac_try" in
15414 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15415 *) ac_try_echo
=$ac_try;;
15417 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15418 $as_echo "$ac_try_echo") >&5
15419 (eval "$ac_link") 2>conftest.er1
15421 grep -v '^ *+' conftest.er1
>conftest.err
15423 cat conftest.err
>&5
15424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); } && {
15426 test -z "$ac_c_werror_flag" ||
15427 test ! -s conftest.err
15428 } && test -s conftest
$ac_exeext && {
15429 test "$cross_compiling" = yes ||
15430 $as_test_x conftest
$ac_exeext
15432 bash_cv_decl_strtoumax
=yes
15434 $as_echo "$as_me: failed program was:" >&5
15435 sed 's/^/| /' conftest.
$ac_ext >&5
15437 bash_cv_decl_strtoumax
=no
15440 rm -rf conftest.dSYM
15441 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15442 conftest
$ac_exeext conftest.
$ac_ext
15444 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
15445 $as_echo "$bash_cv_decl_strtoumax" >&6; }
15446 bash_tr_func
=HAVE_DECL_
`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15447 if test $bash_cv_decl_strtoumax = yes; then
15448 cat >>confdefs.h
<<_ACEOF
15449 #define $bash_tr_func 1
15453 cat >>confdefs.h
<<_ACEOF
15454 #define $bash_tr_func 0
15464 for ac_header
in $ac_header_list
15466 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15467 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15468 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15469 $as_echo_n "checking for $ac_header... " >&6; }
15470 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15471 $as_echo_n "(cached) " >&6
15473 ac_res
=`eval 'as_val=${'$as_ac_Header'}
15474 $as_echo "$as_val"'`
15475 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15476 $as_echo "$ac_res" >&6; }
15478 # Is the header compilable?
15479 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15480 $as_echo_n "checking $ac_header usability... " >&6; }
15481 cat >conftest.
$ac_ext <<_ACEOF
15484 cat confdefs.h
>>conftest.
$ac_ext
15485 cat >>conftest.
$ac_ext <<_ACEOF
15486 /* end confdefs.h. */
15487 $ac_includes_default
15488 #include <$ac_header>
15490 rm -f conftest.
$ac_objext
15491 if { (ac_try
="$ac_compile"
15492 case "(($ac_try" in
15493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15494 *) ac_try_echo=$ac_try;;
15496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15497 $as_echo "$ac_try_echo") >&5
15498 (eval "$ac_compile") 2>conftest.er1
15500 grep -v '^ *+' conftest.er1 >conftest.err
15502 cat conftest.err >&5
15503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); } && {
15505 test -z "$ac_c_werror_flag" ||
15506 test ! -s conftest.err
15507 } && test -s conftest.$ac_objext; then
15508 ac_header_compiler=yes
15510 $as_echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15513 ac_header_compiler=no
15516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15517 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15518 $as_echo "$ac_header_compiler" >&6; }
15520 # Is the header present?
15521 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15522 $as_echo_n "checking $ac_header presence... " >&6; }
15523 cat >conftest.$ac_ext <<_ACEOF
15526 cat confdefs.h >>conftest.$ac_ext
15527 cat >>conftest.$ac_ext <<_ACEOF
15528 /* end confdefs.h. */
15529 #include <$ac_header>
15531 if { (ac_try="$ac_cpp conftest.$ac_ext"
15532 case "(($ac_try" in
15533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15534 *) ac_try_echo
=$ac_try;;
15536 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15537 $as_echo "$ac_try_echo") >&5
15538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15540 grep -v '^ *+' conftest.er1
>conftest.err
15542 cat conftest.err
>&5
15543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } >/dev
/null
&& {
15545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15546 test ! -s conftest.err
15548 ac_header_preproc
=yes
15550 $as_echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.
$ac_ext >&5
15553 ac_header_preproc
=no
15556 rm -f conftest.err conftest.
$ac_ext
15557 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15558 $as_echo "$ac_header_preproc" >&6; }
15560 # So? What about this header?
15561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15564 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15566 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15567 ac_header_preproc
=yes
15570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15571 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15573 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15575 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15577 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15579 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15581 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15583 ## ------------------------------- ##
15584 ## Report this to bug-bash@gnu.org ##
15585 ## ------------------------------- ##
15587 ) |
sed "s/^/$as_me: WARNING: /" >&2
15590 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15591 $as_echo_n "checking for $ac_header... " >&6; }
15592 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15593 $as_echo_n "(cached) " >&6
15595 eval "$as_ac_Header=\$ac_header_preproc"
15597 ac_res
=`eval 'as_val=${'$as_ac_Header'}
15598 $as_echo "$as_val"'`
15599 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15600 $as_echo "$ac_res" >&6; }
15603 as_val
=`eval 'as_val=${'$as_ac_Header'}
15604 $as_echo "$as_val"'`
15605 if test "x$as_val" = x
""yes; then
15606 cat >>confdefs.h
<<_ACEOF
15607 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15622 for ac_func
in $ac_func_list
15624 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15625 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15626 $as_echo_n "checking for $ac_func... " >&6; }
15627 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15628 $as_echo_n "(cached) " >&6
15630 cat >conftest.
$ac_ext <<_ACEOF
15633 cat confdefs.h
>>conftest.
$ac_ext
15634 cat >>conftest.
$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15638 #define $ac_func innocuous_$ac_func
15640 /* System header to define __stub macros and hopefully few prototypes,
15641 which can conflict with char $ac_func (); below.
15642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15643 <limits.h> exists even on freestanding compilers. */
15646 # include <limits.h>
15648 # include <assert.h>
15653 /* Override any GCC internal prototype to avoid an error.
15654 Use char because int might match the return type of a GCC
15655 builtin and then its argument prototype would still apply. */
15660 /* The GNU C library defines this for functions which it implements
15661 to always fail with ENOSYS. Some functions are actually named
15662 something starting with __ and the normal name is an alias. */
15663 #if defined __stub_$ac_func || defined __stub___$ac_func
15670 return $ac_func ();
15675 rm -f conftest.
$ac_objext conftest
$ac_exeext
15676 if { (ac_try
="$ac_link"
15677 case "(($ac_try" in
15678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15679 *) ac_try_echo=$ac_try;;
15681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15682 $as_echo "$ac_try_echo") >&5
15683 (eval "$ac_link") 2>conftest.er1
15685 grep -v '^ *+' conftest.er1 >conftest.err
15687 cat conftest.err >&5
15688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); } && {
15690 test -z "$ac_c_werror_flag" ||
15691 test ! -s conftest.err
15692 } && test -s conftest$ac_exeext && {
15693 test "$cross_compiling" = yes ||
15694 $as_test_x conftest$ac_exeext
15696 eval "$as_ac_var=yes"
15698 $as_echo "$as_me: failed program was:" >&5
15699 sed 's/^/| /' conftest.$ac_ext >&5
15701 eval "$as_ac_var=no"
15704 rm -rf conftest.dSYM
15705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15706 conftest$ac_exeext conftest.$ac_ext
15708 ac_res=`eval 'as_val=${'$as_ac_var'}
15709 $as_echo "$as_val"'`
15710 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15711 $as_echo "$ac_res" >&6; }
15712 as_val=`eval 'as_val=${'$as_ac_var'}
15713 $as_echo "$as_val"'`
15714 if test "x$as_val" = x""yes; then
15715 cat >>confdefs.h <<_ACEOF
15716 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15738 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
15739 $as_echo_n "checking for working mktime... " >&6; }
15740 if test "${ac_cv_func_working_mktime+set}" = set; then
15741 $as_echo_n "(cached) " >&6
15743 if test "$cross_compiling" = yes; then
15744 ac_cv_func_working_mktime=no
15746 cat >conftest.$ac_ext <<_ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h. */
15752 /* Test program from Paul Eggert and Tony Leneis. */
15753 #ifdef TIME_WITH_SYS_TIME
15754 # include <sys/time.h>
15757 # ifdef HAVE_SYS_TIME_H
15758 # include <sys/time.h>
15764 #include <limits.h>
15765 #include <stdlib.h>
15767 #ifdef HAVE_UNISTD_H
15768 # include <unistd.h>
15772 # define alarm(X) /* empty */
15775 /* Work around redefinition to rpl_putenv by other config tests. */
15778 static time_t time_t_max;
15779 static time_t time_t_min;
15781 /* Values we'll use to set the TZ environment variable. */
15782 static char *tz_strings[] = {
15783 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15784 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15786 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15788 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15789 Based on a problem report from Andreas Jaeger. */
15791 spring_forward_gap ()
15793 /* glibc (up to about 1998-10-07) failed this test. */
15796 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15797 instead of "TZ=America/Vancouver" in order to detect the bug even
15798 on systems that don't support the Olson extension, or don't have the
15799 full zoneinfo tables installed. */
15800 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15809 return mktime (&tm) != (time_t) -1;
15817 return ! (lt = localtime (&now)) || mktime (lt) == now;
15824 return (mktime_test1 (now)
15825 && mktime_test1 ((time_t) (time_t_max - now))
15826 && mktime_test1 ((time_t) (time_t_min + now)));
15832 /* Based on code from Ariel Faigon. */
15842 return tm.tm_mon == 2 && tm.tm_mday == 31;
15851 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15852 now = mktime (&tm);
15853 if (now != (time_t) -1)
15855 struct tm *lt = localtime (&now);
15857 && lt->tm_year == tm.tm_year
15858 && lt->tm_mon == tm.tm_mon
15859 && lt->tm_mday == tm.tm_mday
15860 && lt->tm_hour == tm.tm_hour
15861 && lt->tm_min == tm.tm_min
15862 && lt->tm_sec == tm.tm_sec
15863 && lt->tm_yday == tm.tm_yday
15864 && lt->tm_wday == tm.tm_wday
15865 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15866 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15875 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15876 ignoring leap seconds. */
15877 unsigned long int answer = 2527315200UL;
15881 tm.tm_year = 2050 - 1900;
15884 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15887 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15888 instead of "TZ=America/Vancouver" in order to detect the bug even
15889 on systems that don't support the Olson extension, or don't have the
15890 full zoneinfo tables installed. */
15891 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15895 /* Check that the result is either a failure, or close enough
15896 to the correct answer that we can assume the discrepancy is
15897 due to leap seconds. */
15898 return (t == (time_t) -1
15899 || (0 < t && answer - 120 <= t && t <= answer + 120));
15908 /* This test makes some buggy mktime implementations loop.
15909 Give up after 60 seconds; a mktime slower than that
15910 isn't worth using anyway. */
15915 t = (time_t_max << 1) + 1;
15916 if (t <= time_t_max)
15920 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
15922 delta = time_t_max / 997; /* a suitable prime number */
15923 for (i = 0; i < N_STRINGS; i++)
15926 putenv (tz_strings[i]);
15928 for (t = 0; t <= time_t_max - delta; t += delta)
15929 if (! mktime_test (t))
15931 if (! (mktime_test ((time_t) 1)
15932 && mktime_test ((time_t) (60 * 60))
15933 && mktime_test ((time_t) (60 * 60 * 24))))
15936 for (j = 1; ; j <<= 1)
15937 if (! bigtime_test (j))
15939 else if (INT_MAX / 2 < j)
15941 if (! bigtime_test (INT_MAX))
15944 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15947 rm -f conftest$ac_exeext
15948 if { (ac_try="$ac_link"
15949 case "(($ac_try" in
15950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15951 *) ac_try_echo
=$ac_try;;
15953 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15954 $as_echo "$ac_try_echo") >&5
15955 (eval "$ac_link") 2>&5
15957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15959 { (case "(($ac_try" in
15960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15964 $as_echo "$ac_try_echo") >&5
15965 (eval "$ac_try") 2>&5
15967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15969 ac_cv_func_working_mktime=yes
15971 $as_echo "$as_me: program exited with status $ac_status" >&5
15972 $as_echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15975 ( exit $ac_status )
15976 ac_cv_func_working_mktime=no
15978 rm -rf conftest.dSYM
15979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15984 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15985 $as_echo "$ac_cv_func_working_mktime" >&6; }
15986 if test $ac_cv_func_working_mktime = no; then
15987 case " $LIBOBJS " in
15988 *" mktime.$ac_objext "* ) ;;
15989 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16002 for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
16004 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16006 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16007 $as_echo_n "checking for $ac_header... " >&6; }
16008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16009 $as_echo_n "(cached) " >&6
16011 ac_res=`eval 'as_val=${'$as_ac_Header'}
16012 $as_echo "$as_val"'`
16013 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16014 $as_echo "$ac_res" >&6; }
16016 # Is the header compilable?
16017 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16018 $as_echo_n "checking $ac_header usability... " >&6; }
16019 cat >conftest.$ac_ext <<_ACEOF
16022 cat confdefs.h >>conftest.$ac_ext
16023 cat >>conftest.$ac_ext <<_ACEOF
16024 /* end confdefs.h. */
16025 $ac_includes_default
16026 #include <$ac_header>
16028 rm -f conftest.$ac_objext
16029 if { (ac_try="$ac_compile"
16030 case "(($ac_try" in
16031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16032 *) ac_try_echo
=$ac_try;;
16034 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16035 $as_echo "$ac_try_echo") >&5
16036 (eval "$ac_compile") 2>conftest.er1
16038 grep -v '^ *+' conftest.er1
>conftest.err
16040 cat conftest.err
>&5
16041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } && {
16043 test -z "$ac_c_werror_flag" ||
16044 test ! -s conftest.err
16045 } && test -s conftest.
$ac_objext; then
16046 ac_header_compiler
=yes
16048 $as_echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.
$ac_ext >&5
16051 ac_header_compiler
=no
16054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16055 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16056 $as_echo "$ac_header_compiler" >&6; }
16058 # Is the header present?
16059 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16060 $as_echo_n "checking $ac_header presence... " >&6; }
16061 cat >conftest.
$ac_ext <<_ACEOF
16064 cat confdefs.h
>>conftest.
$ac_ext
16065 cat >>conftest.
$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16067 #include <$ac_header>
16069 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16070 case "(($ac_try" in
16071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16075 $as_echo "$ac_try_echo") >&5
16076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16078 grep -v '^ *+' conftest.er1 >conftest.err
16080 cat conftest.err >&5
16081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } >/dev/null && {
16083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16084 test ! -s conftest.err
16086 ac_header_preproc=yes
16088 $as_echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16091 ac_header_preproc=no
16094 rm -f conftest.err conftest.$ac_ext
16095 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16096 $as_echo "$ac_header_preproc" >&6; }
16098 # So? What about this header?
16099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16102 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16104 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16105 ac_header_preproc=yes
16108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16109 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16111 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16113 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16115 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16117 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16119 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16121 ## ------------------------------- ##
16122 ## Report this to bug-bash@gnu.org ##
16123 ## ------------------------------- ##
16125 ) | sed "s/^/$as_me: WARNING: /" >&2
16128 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16129 $as_echo_n "checking for $ac_header... " >&6; }
16130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16131 $as_echo_n "(cached) " >&6
16133 eval "$as_ac_Header=\$ac_header_preproc"
16135 ac_res=`eval 'as_val=${'$as_ac_Header'}
16136 $as_echo "$as_val"'`
16137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16138 $as_echo "$ac_res" >&6; }
16141 as_val=`eval 'as_val=${'$as_ac_Header'}
16142 $as_echo "$as_val"'`
16143 if test "x$as_val" = x""yes; then
16144 cat >>confdefs.h <<_ACEOF
16145 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16155 for ac_header in stdlib.h unistd.h
16157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16159 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16160 $as_echo_n "checking for $ac_header... " >&6; }
16161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16162 $as_echo_n "(cached) " >&6
16164 ac_res=`eval 'as_val=${'$as_ac_Header'}
16165 $as_echo "$as_val"'`
16166 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16167 $as_echo "$ac_res" >&6; }
16169 # Is the header compilable?
16170 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16171 $as_echo_n "checking $ac_header usability... " >&6; }
16172 cat >conftest.$ac_ext <<_ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16178 $ac_includes_default
16179 #include <$ac_header>
16181 rm -f conftest.$ac_objext
16182 if { (ac_try="$ac_compile"
16183 case "(($ac_try" in
16184 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16185 *) ac_try_echo
=$ac_try;;
16187 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16188 $as_echo "$ac_try_echo") >&5
16189 (eval "$ac_compile") 2>conftest.er1
16191 grep -v '^ *+' conftest.er1
>conftest.err
16193 cat conftest.err
>&5
16194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } && {
16196 test -z "$ac_c_werror_flag" ||
16197 test ! -s conftest.err
16198 } && test -s conftest.
$ac_objext; then
16199 ac_header_compiler
=yes
16201 $as_echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.
$ac_ext >&5
16204 ac_header_compiler
=no
16207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16208 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16209 $as_echo "$ac_header_compiler" >&6; }
16211 # Is the header present?
16212 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16213 $as_echo_n "checking $ac_header presence... " >&6; }
16214 cat >conftest.
$ac_ext <<_ACEOF
16217 cat confdefs.h
>>conftest.
$ac_ext
16218 cat >>conftest.
$ac_ext <<_ACEOF
16219 /* end confdefs.h. */
16220 #include <$ac_header>
16222 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16223 case "(($ac_try" in
16224 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16225 *) ac_try_echo=$ac_try;;
16227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16228 $as_echo "$ac_try_echo") >&5
16229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16231 grep -v '^ *+' conftest.er1 >conftest.err
16233 cat conftest.err >&5
16234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); } >/dev/null && {
16236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16237 test ! -s conftest.err
16239 ac_header_preproc=yes
16241 $as_echo "$as_me: failed program was:" >&5
16242 sed 's/^/| /' conftest.$ac_ext >&5
16244 ac_header_preproc=no
16247 rm -f conftest.err conftest.$ac_ext
16248 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16249 $as_echo "$ac_header_preproc" >&6; }
16251 # So? What about this header?
16252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16255 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16257 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16258 ac_header_preproc=yes
16261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16262 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16264 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16266 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16268 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16270 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16272 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16274 ## ------------------------------- ##
16275 ## Report this to bug-bash@gnu.org ##
16276 ## ------------------------------- ##
16278 ) | sed "s/^/$as_me: WARNING: /" >&2
16281 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16282 $as_echo_n "checking for $ac_header... " >&6; }
16283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16284 $as_echo_n "(cached) " >&6
16286 eval "$as_ac_Header=\$ac_header_preproc"
16288 ac_res=`eval 'as_val=${'$as_ac_Header'}
16289 $as_echo "$as_val"'`
16290 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16291 $as_echo "$ac_res" >&6; }
16294 as_val=`eval 'as_val=${'$as_ac_Header'}
16295 $as_echo "$as_val"'`
16296 if test "x$as_val" = x""yes; then
16297 cat >>confdefs.h <<_ACEOF
16298 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16306 for ac_func in getpagesize
16308 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16309 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16310 $as_echo_n "checking for $ac_func... " >&6; }
16311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16312 $as_echo_n "(cached) " >&6
16314 cat >conftest.$ac_ext <<_ACEOF
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h. */
16320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16322 #define $ac_func innocuous_$ac_func
16324 /* System header to define __stub macros and hopefully few prototypes,
16325 which can conflict with char $ac_func (); below.
16326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16327 <limits.h> exists even on freestanding compilers. */
16330 # include <limits.h>
16332 # include <assert.h>
16337 /* Override any GCC internal prototype to avoid an error.
16338 Use char because int might match the return type of a GCC
16339 builtin and then its argument prototype would still apply. */
16344 /* The GNU C library defines this for functions which it implements
16345 to always fail with ENOSYS. Some functions are actually named
16346 something starting with __ and the normal name is an alias. */
16347 #if defined __stub_$ac_func || defined __stub___$ac_func
16354 return $ac_func ();
16359 rm -f conftest.$ac_objext conftest$ac_exeext
16360 if { (ac_try="$ac_link"
16361 case "(($ac_try" in
16362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16363 *) ac_try_echo
=$ac_try;;
16365 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16366 $as_echo "$ac_try_echo") >&5
16367 (eval "$ac_link") 2>conftest.er1
16369 grep -v '^ *+' conftest.er1
>conftest.err
16371 cat conftest.err
>&5
16372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } && {
16374 test -z "$ac_c_werror_flag" ||
16375 test ! -s conftest.err
16376 } && test -s conftest
$ac_exeext && {
16377 test "$cross_compiling" = yes ||
16378 $as_test_x conftest
$ac_exeext
16380 eval "$as_ac_var=yes"
16382 $as_echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.
$ac_ext >&5
16385 eval "$as_ac_var=no"
16388 rm -rf conftest.dSYM
16389 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16390 conftest
$ac_exeext conftest.
$ac_ext
16392 ac_res
=`eval 'as_val=${'$as_ac_var'}
16393 $as_echo "$as_val"'`
16394 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16395 $as_echo "$ac_res" >&6; }
16396 as_val
=`eval 'as_val=${'$as_ac_var'}
16397 $as_echo "$as_val"'`
16398 if test "x$as_val" = x
""yes; then
16399 cat >>confdefs.h
<<_ACEOF
16400 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16406 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
16407 $as_echo_n "checking for working mmap... " >&6; }
16408 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16409 $as_echo_n "(cached) " >&6
16411 if test "$cross_compiling" = yes; then
16412 ac_cv_func_mmap_fixed_mapped
=no
16414 cat >conftest.
$ac_ext <<_ACEOF
16417 cat confdefs.h
>>conftest.
$ac_ext
16418 cat >>conftest.
$ac_ext <<_ACEOF
16419 /* end confdefs.h. */
16420 $ac_includes_default
16421 /* malloc might have been renamed as rpl_malloc. */
16424 /* Thanks to Mike Haertel and Jim Avera for this test.
16425 Here is a matrix of mmap possibilities:
16426 mmap private not fixed
16427 mmap private fixed at somewhere currently unmapped
16428 mmap private fixed at somewhere already mapped
16429 mmap shared not fixed
16430 mmap shared fixed at somewhere currently unmapped
16431 mmap shared fixed at somewhere already mapped
16432 For private mappings, we should verify that changes cannot be read()
16433 back from the file, nor mmap's back from the file at a different
16434 address. (There have been systems where private was not correctly
16435 implemented like the infamous i386 svr4.0, and systems where the
16436 VM page cache was not coherent with the file system buffer cache
16437 like early versions of FreeBSD and possibly contemporary NetBSD.)
16438 For shared mappings, we should conversely verify that changes get
16439 propagated back to all the places they're supposed to be.
16441 Grep wants private fixed already mapped.
16442 The main things grep needs to know about mmap are:
16443 * does it exist and is it safe to write into the mmap'd area
16444 * how to use it (BSD variants) */
16447 #include <sys/mman.h>
16449 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16453 /* This mess was copied from the GNU getpagesize.h. */
16454 #ifndef HAVE_GETPAGESIZE
16455 /* Assume that all systems that can run configure have sys/param.h. */
16456 # ifndef HAVE_SYS_PARAM_H
16457 # define HAVE_SYS_PARAM_H 1
16460 # ifdef _SC_PAGESIZE
16461 # define getpagesize() sysconf(_SC_PAGESIZE)
16462 # else /* no _SC_PAGESIZE */
16463 # ifdef HAVE_SYS_PARAM_H
16464 # include <sys/param.h>
16465 # ifdef EXEC_PAGESIZE
16466 # define getpagesize() EXEC_PAGESIZE
16467 # else /* no EXEC_PAGESIZE */
16469 # define getpagesize() NBPG * CLSIZE
16472 # endif /* no CLSIZE */
16473 # else /* no NBPG */
16475 # define getpagesize() NBPC
16476 # else /* no NBPC */
16478 # define getpagesize() PAGESIZE
16479 # endif /* PAGESIZE */
16480 # endif /* no NBPC */
16481 # endif /* no NBPG */
16482 # endif /* no EXEC_PAGESIZE */
16483 # else /* no HAVE_SYS_PARAM_H */
16484 # define getpagesize() 8192 /* punt totally */
16485 # endif /* no HAVE_SYS_PARAM_H */
16486 # endif /* no _SC_PAGESIZE */
16488 #endif /* no HAVE_GETPAGESIZE */
16493 char *data, *data2, *data3;
16497 pagesize = getpagesize ();
16499 /* First, make a file with some known garbage in it. */
16500 data = (char *) malloc (pagesize);
16503 for (i = 0; i < pagesize; ++i)
16504 *(data + i) = rand ();
16506 fd = creat ("conftest.mmap", 0600);
16509 if (write (fd, data, pagesize) != pagesize)
16513 /* Next, try to mmap the file at a fixed address which already has
16514 something else allocated at it. If we can, also make sure that
16515 we see the same garbage. */
16516 fd = open ("conftest.mmap", O_RDWR);
16519 data2 = (char *) malloc (2 * pagesize);
16522 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16523 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16524 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16526 for (i = 0; i < pagesize; ++i)
16527 if (*(data + i) != *(data2 + i))
16530 /* Finally, make sure that changes to the mapped area do not
16531 percolate back to the file as seen by read(). (This is a bug on
16532 some variants of i386 svr4.0.) */
16533 for (i = 0; i < pagesize; ++i)
16534 *(data2 + i) = *(data2 + i) + 1;
16535 data3 = (char *) malloc (pagesize);
16538 if (read (fd, data3, pagesize) != pagesize)
16540 for (i = 0; i < pagesize; ++i)
16541 if (*(data + i) != *(data3 + i))
16547 rm -f conftest
$ac_exeext
16548 if { (ac_try
="$ac_link"
16549 case "(($ac_try" in
16550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16551 *) ac_try_echo=$ac_try;;
16553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16554 $as_echo "$ac_try_echo") >&5
16555 (eval "$ac_link") 2>&5
16557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16559 { (case "(($ac_try" in
16560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16561 *) ac_try_echo
=$ac_try;;
16563 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16564 $as_echo "$ac_try_echo") >&5
16565 (eval "$ac_try") 2>&5
16567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }; }; then
16569 ac_cv_func_mmap_fixed_mapped
=yes
16571 $as_echo "$as_me: program exited with status $ac_status" >&5
16572 $as_echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.
$ac_ext >&5
16575 ( exit $ac_status )
16576 ac_cv_func_mmap_fixed_mapped
=no
16578 rm -rf conftest.dSYM
16579 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16584 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16585 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16586 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16588 cat >>confdefs.h
<<\_ACEOF
16589 #define HAVE_MMAP 1
16593 rm -f conftest.mmap
16604 for ac_func
in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
16605 munmap stpcpy strcspn strdup
16607 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16608 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16609 $as_echo_n "checking for $ac_func... " >&6; }
16610 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16611 $as_echo_n "(cached) " >&6
16613 cat >conftest.
$ac_ext <<_ACEOF
16616 cat confdefs.h
>>conftest.
$ac_ext
16617 cat >>conftest.
$ac_ext <<_ACEOF
16618 /* end confdefs.h. */
16619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16621 #define $ac_func innocuous_$ac_func
16623 /* System header to define __stub macros and hopefully few prototypes,
16624 which can conflict with char $ac_func (); below.
16625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16626 <limits.h> exists even on freestanding compilers. */
16629 # include <limits.h>
16631 # include <assert.h>
16636 /* Override any GCC internal prototype to avoid an error.
16637 Use char because int might match the return type of a GCC
16638 builtin and then its argument prototype would still apply. */
16643 /* The GNU C library defines this for functions which it implements
16644 to always fail with ENOSYS. Some functions are actually named
16645 something starting with __ and the normal name is an alias. */
16646 #if defined __stub_$ac_func || defined __stub___$ac_func
16653 return $ac_func ();
16658 rm -f conftest.
$ac_objext conftest
$ac_exeext
16659 if { (ac_try
="$ac_link"
16660 case "(($ac_try" in
16661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16662 *) ac_try_echo=$ac_try;;
16664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16665 $as_echo "$ac_try_echo") >&5
16666 (eval "$ac_link") 2>conftest.er1
16668 grep -v '^ *+' conftest.er1 >conftest.err
16670 cat conftest.err >&5
16671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } && {
16673 test -z "$ac_c_werror_flag" ||
16674 test ! -s conftest.err
16675 } && test -s conftest$ac_exeext && {
16676 test "$cross_compiling" = yes ||
16677 $as_test_x conftest$ac_exeext
16679 eval "$as_ac_var=yes"
16681 $as_echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16684 eval "$as_ac_var=no"
16687 rm -rf conftest.dSYM
16688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16689 conftest$ac_exeext conftest.$ac_ext
16691 ac_res=`eval 'as_val=${'$as_ac_var'}
16692 $as_echo "$as_val"'`
16693 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16694 $as_echo "$ac_res" >&6; }
16695 as_val=`eval 'as_val=${'$as_ac_var'}
16696 $as_echo "$as_val"'`
16697 if test "x$as_val" = x""yes; then
16698 cat >>confdefs.h <<_ACEOF
16699 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16706 INTL_DEP= INTL_INC= LIBINTL_H=
16707 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
16708 INTL_DEP='${INTL_LIBDIR}/libintl.a'
16709 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
16710 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
16719 for ac_header in wctype.h
16721 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16723 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16724 $as_echo_n "checking for $ac_header... " >&6; }
16725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16726 $as_echo_n "(cached) " >&6
16728 ac_res=`eval 'as_val=${'$as_ac_Header'}
16729 $as_echo "$as_val"'`
16730 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16731 $as_echo "$ac_res" >&6; }
16733 # Is the header compilable?
16734 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16735 $as_echo_n "checking $ac_header usability... " >&6; }
16736 cat >conftest.$ac_ext <<_ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h. */
16742 $ac_includes_default
16743 #include <$ac_header>
16745 rm -f conftest.$ac_objext
16746 if { (ac_try="$ac_compile"
16747 case "(($ac_try" in
16748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16749 *) ac_try_echo
=$ac_try;;
16751 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16752 $as_echo "$ac_try_echo") >&5
16753 (eval "$ac_compile") 2>conftest.er1
16755 grep -v '^ *+' conftest.er1
>conftest.err
16757 cat conftest.err
>&5
16758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } && {
16760 test -z "$ac_c_werror_flag" ||
16761 test ! -s conftest.err
16762 } && test -s conftest.
$ac_objext; then
16763 ac_header_compiler
=yes
16765 $as_echo "$as_me: failed program was:" >&5
16766 sed 's/^/| /' conftest.
$ac_ext >&5
16768 ac_header_compiler
=no
16771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16772 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16773 $as_echo "$ac_header_compiler" >&6; }
16775 # Is the header present?
16776 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16777 $as_echo_n "checking $ac_header presence... " >&6; }
16778 cat >conftest.
$ac_ext <<_ACEOF
16781 cat confdefs.h
>>conftest.
$ac_ext
16782 cat >>conftest.
$ac_ext <<_ACEOF
16783 /* end confdefs.h. */
16784 #include <$ac_header>
16786 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16787 case "(($ac_try" in
16788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16789 *) ac_try_echo=$ac_try;;
16791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16792 $as_echo "$ac_try_echo") >&5
16793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16795 grep -v '^ *+' conftest.er1 >conftest.err
16797 cat conftest.err >&5
16798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); } >/dev/null && {
16800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16801 test ! -s conftest.err
16803 ac_header_preproc=yes
16805 $as_echo "$as_me: failed program was:" >&5
16806 sed 's/^/| /' conftest.$ac_ext >&5
16808 ac_header_preproc=no
16811 rm -f conftest.err conftest.$ac_ext
16812 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16813 $as_echo "$ac_header_preproc" >&6; }
16815 # So? What about this header?
16816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16819 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16821 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16822 ac_header_preproc=yes
16825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16826 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16828 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16830 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16832 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16834 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16836 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16838 ## ------------------------------- ##
16839 ## Report this to bug-bash@gnu.org ##
16840 ## ------------------------------- ##
16842 ) | sed "s/^/$as_me: WARNING: /" >&2
16845 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16846 $as_echo_n "checking for $ac_header... " >&6; }
16847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16848 $as_echo_n "(cached) " >&6
16850 eval "$as_ac_Header=\$ac_header_preproc"
16852 ac_res=`eval 'as_val=${'$as_ac_Header'}
16853 $as_echo "$as_val"'`
16854 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16855 $as_echo "$ac_res" >&6; }
16858 as_val=`eval 'as_val=${'$as_ac_Header'}
16859 $as_echo "$as_val"'`
16860 if test "x$as_val" = x""yes; then
16861 cat >>confdefs.h <<_ACEOF
16862 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16870 for ac_header in wchar.h
16872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16874 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16875 $as_echo_n "checking for $ac_header... " >&6; }
16876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16877 $as_echo_n "(cached) " >&6
16879 ac_res=`eval 'as_val=${'$as_ac_Header'}
16880 $as_echo "$as_val"'`
16881 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16882 $as_echo "$ac_res" >&6; }
16884 # Is the header compilable?
16885 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16886 $as_echo_n "checking $ac_header usability... " >&6; }
16887 cat >conftest.$ac_ext <<_ACEOF
16890 cat confdefs.h >>conftest.$ac_ext
16891 cat >>conftest.$ac_ext <<_ACEOF
16892 /* end confdefs.h. */
16893 $ac_includes_default
16894 #include <$ac_header>
16896 rm -f conftest.$ac_objext
16897 if { (ac_try="$ac_compile"
16898 case "(($ac_try" in
16899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16900 *) ac_try_echo
=$ac_try;;
16902 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16903 $as_echo "$ac_try_echo") >&5
16904 (eval "$ac_compile") 2>conftest.er1
16906 grep -v '^ *+' conftest.er1
>conftest.err
16908 cat conftest.err
>&5
16909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } && {
16911 test -z "$ac_c_werror_flag" ||
16912 test ! -s conftest.err
16913 } && test -s conftest.
$ac_objext; then
16914 ac_header_compiler
=yes
16916 $as_echo "$as_me: failed program was:" >&5
16917 sed 's/^/| /' conftest.
$ac_ext >&5
16919 ac_header_compiler
=no
16922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16923 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16924 $as_echo "$ac_header_compiler" >&6; }
16926 # Is the header present?
16927 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16928 $as_echo_n "checking $ac_header presence... " >&6; }
16929 cat >conftest.
$ac_ext <<_ACEOF
16932 cat confdefs.h
>>conftest.
$ac_ext
16933 cat >>conftest.
$ac_ext <<_ACEOF
16934 /* end confdefs.h. */
16935 #include <$ac_header>
16937 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16938 case "(($ac_try" in
16939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16940 *) ac_try_echo=$ac_try;;
16942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16943 $as_echo "$ac_try_echo") >&5
16944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16946 grep -v '^ *+' conftest.er1 >conftest.err
16948 cat conftest.err >&5
16949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); } >/dev/null && {
16951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16952 test ! -s conftest.err
16954 ac_header_preproc=yes
16956 $as_echo "$as_me: failed program was:" >&5
16957 sed 's/^/| /' conftest.$ac_ext >&5
16959 ac_header_preproc=no
16962 rm -f conftest.err conftest.$ac_ext
16963 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16964 $as_echo "$ac_header_preproc" >&6; }
16966 # So? What about this header?
16967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16969 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16970 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16971 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16972 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16973 ac_header_preproc=yes
16976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16977 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16979 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16981 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16983 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16985 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16987 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16989 ## ------------------------------- ##
16990 ## Report this to bug-bash@gnu.org ##
16991 ## ------------------------------- ##
16993 ) | sed "s/^/$as_me: WARNING: /" >&2
16996 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16997 $as_echo_n "checking for $ac_header... " >&6; }
16998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16999 $as_echo_n "(cached) " >&6
17001 eval "$as_ac_Header=\$ac_header_preproc"
17003 ac_res=`eval 'as_val=${'$as_ac_Header'}
17004 $as_echo "$as_val"'`
17005 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17006 $as_echo "$ac_res" >&6; }
17009 as_val=`eval 'as_val=${'$as_ac_Header'}
17010 $as_echo "$as_val"'`
17011 if test "x$as_val" = x""yes; then
17012 cat >>confdefs.h <<_ACEOF
17013 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
17021 for ac_header in langinfo.h
17023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
17024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17025 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17026 $as_echo_n "checking for $ac_header... " >&6; }
17027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17028 $as_echo_n "(cached) " >&6
17030 ac_res=`eval 'as_val=${'$as_ac_Header'}
17031 $as_echo "$as_val"'`
17032 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17033 $as_echo "$ac_res" >&6; }
17035 # Is the header compilable?
17036 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17037 $as_echo_n "checking $ac_header usability... " >&6; }
17038 cat >conftest.$ac_ext <<_ACEOF
17041 cat confdefs.h >>conftest.$ac_ext
17042 cat >>conftest.$ac_ext <<_ACEOF
17043 /* end confdefs.h. */
17044 $ac_includes_default
17045 #include <$ac_header>
17047 rm -f conftest.$ac_objext
17048 if { (ac_try="$ac_compile"
17049 case "(($ac_try" in
17050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17051 *) ac_try_echo
=$ac_try;;
17053 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17054 $as_echo "$ac_try_echo") >&5
17055 (eval "$ac_compile") 2>conftest.er1
17057 grep -v '^ *+' conftest.er1
>conftest.err
17059 cat conftest.err
>&5
17060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } && {
17062 test -z "$ac_c_werror_flag" ||
17063 test ! -s conftest.err
17064 } && test -s conftest.
$ac_objext; then
17065 ac_header_compiler
=yes
17067 $as_echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.
$ac_ext >&5
17070 ac_header_compiler
=no
17073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17074 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17075 $as_echo "$ac_header_compiler" >&6; }
17077 # Is the header present?
17078 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17079 $as_echo_n "checking $ac_header presence... " >&6; }
17080 cat >conftest.
$ac_ext <<_ACEOF
17083 cat confdefs.h
>>conftest.
$ac_ext
17084 cat >>conftest.
$ac_ext <<_ACEOF
17085 /* end confdefs.h. */
17086 #include <$ac_header>
17088 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17089 case "(($ac_try" in
17090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17094 $as_echo "$ac_try_echo") >&5
17095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17097 grep -v '^ *+' conftest.er1 >conftest.err
17099 cat conftest.err >&5
17100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } >/dev/null && {
17102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17103 test ! -s conftest.err
17105 ac_header_preproc=yes
17107 $as_echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17110 ac_header_preproc=no
17113 rm -f conftest.err conftest.$ac_ext
17114 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17115 $as_echo "$ac_header_preproc" >&6; }
17117 # So? What about this header?
17118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17121 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17123 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17124 ac_header_preproc=yes
17127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17128 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17130 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17132 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17134 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17136 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17138 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17140 ## ------------------------------- ##
17141 ## Report this to bug-bash@gnu.org ##
17142 ## ------------------------------- ##
17144 ) | sed "s/^/$as_me: WARNING: /" >&2
17147 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17148 $as_echo_n "checking for $ac_header... " >&6; }
17149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17150 $as_echo_n "(cached) " >&6
17152 eval "$as_ac_Header=\$ac_header_preproc"
17154 ac_res=`eval 'as_val=${'$as_ac_Header'}
17155 $as_echo "$as_val"'`
17156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17157 $as_echo "$ac_res" >&6; }
17160 as_val=`eval 'as_val=${'$as_ac_Header'}
17161 $as_echo "$as_val"'`
17162 if test "x$as_val" = x""yes; then
17163 cat >>confdefs.h <<_ACEOF
17164 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
17172 { $as_echo "$as_me:$LINENO: checking for mbrlen" >&5
17173 $as_echo_n "checking for mbrlen... " >&6; }
17174 if test "${ac_cv_func_mbrlen+set}" = set; then
17175 $as_echo_n "(cached) " >&6
17177 cat >conftest.$ac_ext <<_ACEOF
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h. */
17183 /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
17184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17185 #define mbrlen innocuous_mbrlen
17187 /* System header to define __stub macros and hopefully few prototypes,
17188 which can conflict with char mbrlen (); below.
17189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17190 <limits.h> exists even on freestanding compilers. */
17193 # include <limits.h>
17195 # include <assert.h>
17200 /* Override any GCC internal prototype to avoid an error.
17201 Use char because int might match the return type of a GCC
17202 builtin and then its argument prototype would still apply. */
17207 /* The GNU C library defines this for functions which it implements
17208 to always fail with ENOSYS. Some functions are actually named
17209 something starting with __ and the normal name is an alias. */
17210 #if defined __stub_mbrlen || defined __stub___mbrlen
17222 rm -f conftest.$ac_objext conftest$ac_exeext
17223 if { (ac_try="$ac_link"
17224 case "(($ac_try" in
17225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17226 *) ac_try_echo
=$ac_try;;
17228 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17229 $as_echo "$ac_try_echo") >&5
17230 (eval "$ac_link") 2>conftest.er1
17232 grep -v '^ *+' conftest.er1
>conftest.err
17234 cat conftest.err
>&5
17235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); } && {
17237 test -z "$ac_c_werror_flag" ||
17238 test ! -s conftest.err
17239 } && test -s conftest
$ac_exeext && {
17240 test "$cross_compiling" = yes ||
17241 $as_test_x conftest
$ac_exeext
17243 ac_cv_func_mbrlen
=yes
17245 $as_echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.
$ac_ext >&5
17248 ac_cv_func_mbrlen
=no
17251 rm -rf conftest.dSYM
17252 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17253 conftest
$ac_exeext conftest.
$ac_ext
17255 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
17256 $as_echo "$ac_cv_func_mbrlen" >&6; }
17257 if test "x$ac_cv_func_mbrlen" = x
""yes; then
17258 cat >>confdefs.h
<<\_ACEOF
17259 #define HAVE_MBRLEN 1
17264 { $as_echo "$as_me:$LINENO: checking for mbscasecmp" >&5
17265 $as_echo_n "checking for mbscasecmp... " >&6; }
17266 if test "${ac_cv_func_mbscasecmp+set}" = set; then
17267 $as_echo_n "(cached) " >&6
17269 cat >conftest.
$ac_ext <<_ACEOF
17272 cat confdefs.h
>>conftest.
$ac_ext
17273 cat >>conftest.
$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17275 /* Define mbscasecmp to an innocuous variant, in case <limits.h> declares mbscasecmp.
17276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17277 #define mbscasecmp innocuous_mbscasecmp
17279 /* System header to define __stub macros and hopefully few prototypes,
17280 which can conflict with char mbscasecmp (); below.
17281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17282 <limits.h> exists even on freestanding compilers. */
17285 # include <limits.h>
17287 # include <assert.h>
17292 /* Override any GCC internal prototype to avoid an error.
17293 Use char because int might match the return type of a GCC
17294 builtin and then its argument prototype would still apply. */
17298 char mbscasecmp ();
17299 /* The GNU C library defines this for functions which it implements
17300 to always fail with ENOSYS. Some functions are actually named
17301 something starting with __ and the normal name is an alias. */
17302 #if defined __stub_mbscasecmp || defined __stub___mbscasecmp
17309 return mbscasecmp ();
17314 rm -f conftest.
$ac_objext conftest
$ac_exeext
17315 if { (ac_try
="$ac_link"
17316 case "(($ac_try" in
17317 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17321 $as_echo "$ac_try_echo") >&5
17322 (eval "$ac_link") 2>conftest.er1
17324 grep -v '^ *+' conftest.er1 >conftest.err
17326 cat conftest.err >&5
17327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); } && {
17329 test -z "$ac_c_werror_flag" ||
17330 test ! -s conftest.err
17331 } && test -s conftest$ac_exeext && {
17332 test "$cross_compiling" = yes ||
17333 $as_test_x conftest$ac_exeext
17335 ac_cv_func_mbscasecmp=yes
17337 $as_echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17340 ac_cv_func_mbscasecmp=no
17343 rm -rf conftest.dSYM
17344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17345 conftest$ac_exeext conftest.$ac_ext
17347 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscasecmp" >&5
17348 $as_echo "$ac_cv_func_mbscasecmp" >&6; }
17349 if test "x$ac_cv_func_mbscasecmp" = x""yes; then
17350 cat >>confdefs.h <<\_ACEOF
17351 #define HAVE_MBSCMP 1
17356 { $as_echo "$as_me:$LINENO: checking for mbscmp" >&5
17357 $as_echo_n "checking for mbscmp... " >&6; }
17358 if test "${ac_cv_func_mbscmp+set}" = set; then
17359 $as_echo_n "(cached) " >&6
17361 cat >conftest.$ac_ext <<_ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17367 /* Define mbscmp to an innocuous variant, in case <limits.h> declares mbscmp.
17368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17369 #define mbscmp innocuous_mbscmp
17371 /* System header to define __stub macros and hopefully few prototypes,
17372 which can conflict with char mbscmp (); below.
17373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17374 <limits.h> exists even on freestanding compilers. */
17377 # include <limits.h>
17379 # include <assert.h>
17384 /* Override any GCC internal prototype to avoid an error.
17385 Use char because int might match the return type of a GCC
17386 builtin and then its argument prototype would still apply. */
17391 /* The GNU C library defines this for functions which it implements
17392 to always fail with ENOSYS. Some functions are actually named
17393 something starting with __ and the normal name is an alias. */
17394 #if defined __stub_mbscmp || defined __stub___mbscmp
17406 rm -f conftest.$ac_objext conftest$ac_exeext
17407 if { (ac_try="$ac_link"
17408 case "(($ac_try" in
17409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17410 *) ac_try_echo
=$ac_try;;
17412 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17413 $as_echo "$ac_try_echo") >&5
17414 (eval "$ac_link") 2>conftest.er1
17416 grep -v '^ *+' conftest.er1
>conftest.err
17418 cat conftest.err
>&5
17419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } && {
17421 test -z "$ac_c_werror_flag" ||
17422 test ! -s conftest.err
17423 } && test -s conftest
$ac_exeext && {
17424 test "$cross_compiling" = yes ||
17425 $as_test_x conftest
$ac_exeext
17427 ac_cv_func_mbscmp
=yes
17429 $as_echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.
$ac_ext >&5
17432 ac_cv_func_mbscmp
=no
17435 rm -rf conftest.dSYM
17436 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17437 conftest
$ac_exeext conftest.
$ac_ext
17439 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscmp" >&5
17440 $as_echo "$ac_cv_func_mbscmp" >&6; }
17441 if test "x$ac_cv_func_mbscmp" = x
""yes; then
17442 cat >>confdefs.h
<<\_ACEOF
17443 #define HAVE_MBSCMP 1
17448 { $as_echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
17449 $as_echo_n "checking for mbsrtowcs... " >&6; }
17450 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
17451 $as_echo_n "(cached) " >&6
17453 cat >conftest.
$ac_ext <<_ACEOF
17456 cat confdefs.h
>>conftest.
$ac_ext
17457 cat >>conftest.
$ac_ext <<_ACEOF
17458 /* end confdefs.h. */
17459 /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
17460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17461 #define mbsrtowcs innocuous_mbsrtowcs
17463 /* System header to define __stub macros and hopefully few prototypes,
17464 which can conflict with char mbsrtowcs (); below.
17465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17466 <limits.h> exists even on freestanding compilers. */
17469 # include <limits.h>
17471 # include <assert.h>
17476 /* Override any GCC internal prototype to avoid an error.
17477 Use char because int might match the return type of a GCC
17478 builtin and then its argument prototype would still apply. */
17483 /* The GNU C library defines this for functions which it implements
17484 to always fail with ENOSYS. Some functions are actually named
17485 something starting with __ and the normal name is an alias. */
17486 #if defined __stub_mbsrtowcs || defined __stub___mbsrtowcs
17493 return mbsrtowcs ();
17498 rm -f conftest.
$ac_objext conftest
$ac_exeext
17499 if { (ac_try
="$ac_link"
17500 case "(($ac_try" in
17501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17502 *) ac_try_echo=$ac_try;;
17504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17505 $as_echo "$ac_try_echo") >&5
17506 (eval "$ac_link") 2>conftest.er1
17508 grep -v '^ *+' conftest.er1 >conftest.err
17510 cat conftest.err >&5
17511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); } && {
17513 test -z "$ac_c_werror_flag" ||
17514 test ! -s conftest.err
17515 } && test -s conftest$ac_exeext && {
17516 test "$cross_compiling" = yes ||
17517 $as_test_x conftest$ac_exeext
17519 ac_cv_func_mbsrtowcs=yes
17521 $as_echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17524 ac_cv_func_mbsrtowcs=no
17527 rm -rf conftest.dSYM
17528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17529 conftest$ac_exeext conftest.$ac_ext
17531 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
17532 $as_echo "$ac_cv_func_mbsrtowcs" >&6; }
17533 if test "x$ac_cv_func_mbsrtowcs" = x""yes; then
17534 cat >>confdefs.h <<\_ACEOF
17535 #define HAVE_MBSRTOWCS 1
17542 for ac_func in mbschr
17544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17545 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17546 $as_echo_n "checking for $ac_func... " >&6; }
17547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17548 $as_echo_n "(cached) " >&6
17550 cat >conftest.$ac_ext <<_ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h. */
17556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17558 #define $ac_func innocuous_$ac_func
17560 /* System header to define __stub macros and hopefully few prototypes,
17561 which can conflict with char $ac_func (); below.
17562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17563 <limits.h> exists even on freestanding compilers. */
17566 # include <limits.h>
17568 # include <assert.h>
17573 /* Override any GCC internal prototype to avoid an error.
17574 Use char because int might match the return type of a GCC
17575 builtin and then its argument prototype would still apply. */
17580 /* The GNU C library defines this for functions which it implements
17581 to always fail with ENOSYS. Some functions are actually named
17582 something starting with __ and the normal name is an alias. */
17583 #if defined __stub_$ac_func || defined __stub___$ac_func
17590 return $ac_func ();
17595 rm -f conftest.$ac_objext conftest$ac_exeext
17596 if { (ac_try="$ac_link"
17597 case "(($ac_try" in
17598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17599 *) ac_try_echo
=$ac_try;;
17601 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17602 $as_echo "$ac_try_echo") >&5
17603 (eval "$ac_link") 2>conftest.er1
17605 grep -v '^ *+' conftest.er1
>conftest.err
17607 cat conftest.err
>&5
17608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); } && {
17610 test -z "$ac_c_werror_flag" ||
17611 test ! -s conftest.err
17612 } && test -s conftest
$ac_exeext && {
17613 test "$cross_compiling" = yes ||
17614 $as_test_x conftest
$ac_exeext
17616 eval "$as_ac_var=yes"
17618 $as_echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.
$ac_ext >&5
17621 eval "$as_ac_var=no"
17624 rm -rf conftest.dSYM
17625 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17626 conftest
$ac_exeext conftest.
$ac_ext
17628 ac_res
=`eval 'as_val=${'$as_ac_var'}
17629 $as_echo "$as_val"'`
17630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17631 $as_echo "$ac_res" >&6; }
17632 as_val
=`eval 'as_val=${'$as_ac_var'}
17633 $as_echo "$as_val"'`
17634 if test "x$as_val" = x
""yes; then
17635 cat >>confdefs.h
<<_ACEOF
17636 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17640 case " $LIBOBJS " in
17641 *" $ac_func.$ac_objext "* ) ;;
17642 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
17651 { $as_echo "$as_me:$LINENO: checking for wcrtomb" >&5
17652 $as_echo_n "checking for wcrtomb... " >&6; }
17653 if test "${ac_cv_func_wcrtomb+set}" = set; then
17654 $as_echo_n "(cached) " >&6
17656 cat >conftest.
$ac_ext <<_ACEOF
17659 cat confdefs.h
>>conftest.
$ac_ext
17660 cat >>conftest.
$ac_ext <<_ACEOF
17661 /* end confdefs.h. */
17662 /* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb.
17663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17664 #define wcrtomb innocuous_wcrtomb
17666 /* System header to define __stub macros and hopefully few prototypes,
17667 which can conflict with char wcrtomb (); below.
17668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17669 <limits.h> exists even on freestanding compilers. */
17672 # include <limits.h>
17674 # include <assert.h>
17679 /* Override any GCC internal prototype to avoid an error.
17680 Use char because int might match the return type of a GCC
17681 builtin and then its argument prototype would still apply. */
17686 /* The GNU C library defines this for functions which it implements
17687 to always fail with ENOSYS. Some functions are actually named
17688 something starting with __ and the normal name is an alias. */
17689 #if defined __stub_wcrtomb || defined __stub___wcrtomb
17701 rm -f conftest.
$ac_objext conftest
$ac_exeext
17702 if { (ac_try
="$ac_link"
17703 case "(($ac_try" in
17704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17708 $as_echo "$ac_try_echo") >&5
17709 (eval "$ac_link") 2>conftest.er1
17711 grep -v '^ *+' conftest.er1 >conftest.err
17713 cat conftest.err >&5
17714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } && {
17716 test -z "$ac_c_werror_flag" ||
17717 test ! -s conftest.err
17718 } && test -s conftest$ac_exeext && {
17719 test "$cross_compiling" = yes ||
17720 $as_test_x conftest$ac_exeext
17722 ac_cv_func_wcrtomb=yes
17724 $as_echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17727 ac_cv_func_wcrtomb=no
17730 rm -rf conftest.dSYM
17731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17732 conftest$ac_exeext conftest.$ac_ext
17734 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5
17735 $as_echo "$ac_cv_func_wcrtomb" >&6; }
17736 if test "x$ac_cv_func_wcrtomb" = x""yes; then
17737 cat >>confdefs.h <<\_ACEOF
17738 #define HAVE_WCRTOMB 1
17743 { $as_echo "$as_me:$LINENO: checking for wcscoll" >&5
17744 $as_echo_n "checking for wcscoll... " >&6; }
17745 if test "${ac_cv_func_wcscoll+set}" = set; then
17746 $as_echo_n "(cached) " >&6
17748 cat >conftest.$ac_ext <<_ACEOF
17751 cat confdefs.h >>conftest.$ac_ext
17752 cat >>conftest.$ac_ext <<_ACEOF
17753 /* end confdefs.h. */
17754 /* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll.
17755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17756 #define wcscoll innocuous_wcscoll
17758 /* System header to define __stub macros and hopefully few prototypes,
17759 which can conflict with char wcscoll (); below.
17760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17761 <limits.h> exists even on freestanding compilers. */
17764 # include <limits.h>
17766 # include <assert.h>
17771 /* Override any GCC internal prototype to avoid an error.
17772 Use char because int might match the return type of a GCC
17773 builtin and then its argument prototype would still apply. */
17778 /* The GNU C library defines this for functions which it implements
17779 to always fail with ENOSYS. Some functions are actually named
17780 something starting with __ and the normal name is an alias. */
17781 #if defined __stub_wcscoll || defined __stub___wcscoll
17793 rm -f conftest.$ac_objext conftest$ac_exeext
17794 if { (ac_try="$ac_link"
17795 case "(($ac_try" in
17796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17797 *) ac_try_echo
=$ac_try;;
17799 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17800 $as_echo "$ac_try_echo") >&5
17801 (eval "$ac_link") 2>conftest.er1
17803 grep -v '^ *+' conftest.er1
>conftest.err
17805 cat conftest.err
>&5
17806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } && {
17808 test -z "$ac_c_werror_flag" ||
17809 test ! -s conftest.err
17810 } && test -s conftest
$ac_exeext && {
17811 test "$cross_compiling" = yes ||
17812 $as_test_x conftest
$ac_exeext
17814 ac_cv_func_wcscoll
=yes
17816 $as_echo "$as_me: failed program was:" >&5
17817 sed 's/^/| /' conftest.
$ac_ext >&5
17819 ac_cv_func_wcscoll
=no
17822 rm -rf conftest.dSYM
17823 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17824 conftest
$ac_exeext conftest.
$ac_ext
17826 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5
17827 $as_echo "$ac_cv_func_wcscoll" >&6; }
17828 if test "x$ac_cv_func_wcscoll" = x
""yes; then
17829 cat >>confdefs.h
<<\_ACEOF
17830 #define HAVE_WCSCOLL 1
17835 { $as_echo "$as_me:$LINENO: checking for wcsdup" >&5
17836 $as_echo_n "checking for wcsdup... " >&6; }
17837 if test "${ac_cv_func_wcsdup+set}" = set; then
17838 $as_echo_n "(cached) " >&6
17840 cat >conftest.
$ac_ext <<_ACEOF
17843 cat confdefs.h
>>conftest.
$ac_ext
17844 cat >>conftest.
$ac_ext <<_ACEOF
17845 /* end confdefs.h. */
17846 /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
17847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17848 #define wcsdup innocuous_wcsdup
17850 /* System header to define __stub macros and hopefully few prototypes,
17851 which can conflict with char wcsdup (); below.
17852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17853 <limits.h> exists even on freestanding compilers. */
17856 # include <limits.h>
17858 # include <assert.h>
17863 /* Override any GCC internal prototype to avoid an error.
17864 Use char because int might match the return type of a GCC
17865 builtin and then its argument prototype would still apply. */
17870 /* The GNU C library defines this for functions which it implements
17871 to always fail with ENOSYS. Some functions are actually named
17872 something starting with __ and the normal name is an alias. */
17873 #if defined __stub_wcsdup || defined __stub___wcsdup
17885 rm -f conftest.
$ac_objext conftest
$ac_exeext
17886 if { (ac_try
="$ac_link"
17887 case "(($ac_try" in
17888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17892 $as_echo "$ac_try_echo") >&5
17893 (eval "$ac_link") 2>conftest.er1
17895 grep -v '^ *+' conftest.er1 >conftest.err
17897 cat conftest.err >&5
17898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } && {
17900 test -z "$ac_c_werror_flag" ||
17901 test ! -s conftest.err
17902 } && test -s conftest$ac_exeext && {
17903 test "$cross_compiling" = yes ||
17904 $as_test_x conftest$ac_exeext
17906 ac_cv_func_wcsdup=yes
17908 $as_echo "$as_me: failed program was:" >&5
17909 sed 's/^/| /' conftest.$ac_ext >&5
17911 ac_cv_func_wcsdup=no
17914 rm -rf conftest.dSYM
17915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17916 conftest$ac_exeext conftest.$ac_ext
17918 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
17919 $as_echo "$ac_cv_func_wcsdup" >&6; }
17920 if test "x$ac_cv_func_wcsdup" = x""yes; then
17921 cat >>confdefs.h <<\_ACEOF
17922 #define HAVE_WCSDUP 1
17927 { $as_echo "$as_me:$LINENO: checking for wcwidth" >&5
17928 $as_echo_n "checking for wcwidth... " >&6; }
17929 if test "${ac_cv_func_wcwidth+set}" = set; then
17930 $as_echo_n "(cached) " >&6
17932 cat >conftest.$ac_ext <<_ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17938 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
17939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17940 #define wcwidth innocuous_wcwidth
17942 /* System header to define __stub macros and hopefully few prototypes,
17943 which can conflict with char wcwidth (); below.
17944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17945 <limits.h> exists even on freestanding compilers. */
17948 # include <limits.h>
17950 # include <assert.h>
17955 /* Override any GCC internal prototype to avoid an error.
17956 Use char because int might match the return type of a GCC
17957 builtin and then its argument prototype would still apply. */
17962 /* The GNU C library defines this for functions which it implements
17963 to always fail with ENOSYS. Some functions are actually named
17964 something starting with __ and the normal name is an alias. */
17965 #if defined __stub_wcwidth || defined __stub___wcwidth
17977 rm -f conftest.$ac_objext conftest$ac_exeext
17978 if { (ac_try="$ac_link"
17979 case "(($ac_try" in
17980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17981 *) ac_try_echo
=$ac_try;;
17983 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17984 $as_echo "$ac_try_echo") >&5
17985 (eval "$ac_link") 2>conftest.er1
17987 grep -v '^ *+' conftest.er1
>conftest.err
17989 cat conftest.err
>&5
17990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); } && {
17992 test -z "$ac_c_werror_flag" ||
17993 test ! -s conftest.err
17994 } && test -s conftest
$ac_exeext && {
17995 test "$cross_compiling" = yes ||
17996 $as_test_x conftest
$ac_exeext
17998 ac_cv_func_wcwidth
=yes
18000 $as_echo "$as_me: failed program was:" >&5
18001 sed 's/^/| /' conftest.
$ac_ext >&5
18003 ac_cv_func_wcwidth
=no
18006 rm -rf conftest.dSYM
18007 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18008 conftest
$ac_exeext conftest.
$ac_ext
18010 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
18011 $as_echo "$ac_cv_func_wcwidth" >&6; }
18012 if test "x$ac_cv_func_wcwidth" = x
""yes; then
18013 cat >>confdefs.h
<<\_ACEOF
18014 #define HAVE_WCWIDTH 1
18019 { $as_echo "$as_me:$LINENO: checking for wctype" >&5
18020 $as_echo_n "checking for wctype... " >&6; }
18021 if test "${ac_cv_func_wctype+set}" = set; then
18022 $as_echo_n "(cached) " >&6
18024 cat >conftest.
$ac_ext <<_ACEOF
18027 cat confdefs.h
>>conftest.
$ac_ext
18028 cat >>conftest.
$ac_ext <<_ACEOF
18029 /* end confdefs.h. */
18030 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
18031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18032 #define wctype innocuous_wctype
18034 /* System header to define __stub macros and hopefully few prototypes,
18035 which can conflict with char wctype (); below.
18036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18037 <limits.h> exists even on freestanding compilers. */
18040 # include <limits.h>
18042 # include <assert.h>
18047 /* Override any GCC internal prototype to avoid an error.
18048 Use char because int might match the return type of a GCC
18049 builtin and then its argument prototype would still apply. */
18054 /* The GNU C library defines this for functions which it implements
18055 to always fail with ENOSYS. Some functions are actually named
18056 something starting with __ and the normal name is an alias. */
18057 #if defined __stub_wctype || defined __stub___wctype
18069 rm -f conftest.
$ac_objext conftest
$ac_exeext
18070 if { (ac_try
="$ac_link"
18071 case "(($ac_try" in
18072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18076 $as_echo "$ac_try_echo") >&5
18077 (eval "$ac_link") 2>conftest.er1
18079 grep -v '^ *+' conftest.er1 >conftest.err
18081 cat conftest.err >&5
18082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } && {
18084 test -z "$ac_c_werror_flag" ||
18085 test ! -s conftest.err
18086 } && test -s conftest$ac_exeext && {
18087 test "$cross_compiling" = yes ||
18088 $as_test_x conftest$ac_exeext
18090 ac_cv_func_wctype=yes
18092 $as_echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18095 ac_cv_func_wctype=no
18098 rm -rf conftest.dSYM
18099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18100 conftest$ac_exeext conftest.$ac_ext
18102 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
18103 $as_echo "$ac_cv_func_wctype" >&6; }
18104 if test "x$ac_cv_func_wctype" = x""yes; then
18105 cat >>confdefs.h <<\_ACEOF
18106 #define HAVE_WCTYPE 1
18113 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
18114 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
18115 if test "${ac_cv_func_mbrtowc+set}" = set; then
18116 $as_echo_n "(cached) " >&6
18118 cat >conftest.$ac_ext <<_ACEOF
18121 cat confdefs.h >>conftest.$ac_ext
18122 cat >>conftest.$ac_ext <<_ACEOF
18123 /* end confdefs.h. */
18129 char const s[] = "";
18132 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
18137 rm -f conftest.$ac_objext conftest$ac_exeext
18138 if { (ac_try="$ac_link"
18139 case "(($ac_try" in
18140 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18141 *) ac_try_echo
=$ac_try;;
18143 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18144 $as_echo "$ac_try_echo") >&5
18145 (eval "$ac_link") 2>conftest.er1
18147 grep -v '^ *+' conftest.er1
>conftest.err
18149 cat conftest.err
>&5
18150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } && {
18152 test -z "$ac_c_werror_flag" ||
18153 test ! -s conftest.err
18154 } && test -s conftest
$ac_exeext && {
18155 test "$cross_compiling" = yes ||
18156 $as_test_x conftest
$ac_exeext
18158 ac_cv_func_mbrtowc
=yes
18160 $as_echo "$as_me: failed program was:" >&5
18161 sed 's/^/| /' conftest.
$ac_ext >&5
18163 ac_cv_func_mbrtowc
=no
18166 rm -rf conftest.dSYM
18167 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18168 conftest
$ac_exeext conftest.
$ac_ext
18170 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
18171 $as_echo "$ac_cv_func_mbrtowc" >&6; }
18172 if test $ac_cv_func_mbrtowc = yes; then
18174 cat >>confdefs.h
<<\_ACEOF
18175 #define HAVE_MBRTOWC 1
18180 if test $ac_cv_func_mbrtowc = yes; then
18181 cat >>confdefs.h
<<\_ACEOF
18182 #define HAVE_MBSTATE_T 1
18192 for ac_func
in iswlower iswupper towlower towupper iswctype
18194 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18195 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18196 $as_echo_n "checking for $ac_func... " >&6; }
18197 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18198 $as_echo_n "(cached) " >&6
18200 cat >conftest.
$ac_ext <<_ACEOF
18203 cat confdefs.h
>>conftest.
$ac_ext
18204 cat >>conftest.
$ac_ext <<_ACEOF
18205 /* end confdefs.h. */
18206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18208 #define $ac_func innocuous_$ac_func
18210 /* System header to define __stub macros and hopefully few prototypes,
18211 which can conflict with char $ac_func (); below.
18212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18213 <limits.h> exists even on freestanding compilers. */
18216 # include <limits.h>
18218 # include <assert.h>
18223 /* Override any GCC internal prototype to avoid an error.
18224 Use char because int might match the return type of a GCC
18225 builtin and then its argument prototype would still apply. */
18230 /* The GNU C library defines this for functions which it implements
18231 to always fail with ENOSYS. Some functions are actually named
18232 something starting with __ and the normal name is an alias. */
18233 #if defined __stub_$ac_func || defined __stub___$ac_func
18240 return $ac_func ();
18245 rm -f conftest.
$ac_objext conftest
$ac_exeext
18246 if { (ac_try
="$ac_link"
18247 case "(($ac_try" in
18248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18249 *) ac_try_echo=$ac_try;;
18251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18252 $as_echo "$ac_try_echo") >&5
18253 (eval "$ac_link") 2>conftest.er1
18255 grep -v '^ *+' conftest.er1 >conftest.err
18257 cat conftest.err >&5
18258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); } && {
18260 test -z "$ac_c_werror_flag" ||
18261 test ! -s conftest.err
18262 } && test -s conftest$ac_exeext && {
18263 test "$cross_compiling" = yes ||
18264 $as_test_x conftest$ac_exeext
18266 eval "$as_ac_var=yes"
18268 $as_echo "$as_me: failed program was:" >&5
18269 sed 's/^/| /' conftest.$ac_ext >&5
18271 eval "$as_ac_var=no"
18274 rm -rf conftest.dSYM
18275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18276 conftest$ac_exeext conftest.$ac_ext
18278 ac_res=`eval 'as_val=${'$as_ac_var'}
18279 $as_echo "$as_val"'`
18280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18281 $as_echo "$ac_res" >&6; }
18282 as_val=`eval 'as_val=${'$as_ac_var'}
18283 $as_echo "$as_val"'`
18284 if test "x$as_val" = x""yes; then
18285 cat >>confdefs.h <<_ACEOF
18286 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18293 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
18294 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
18295 if test "${bash_cv_langinfo_codeset+set}" = set; then
18296 $as_echo_n "(cached) " >&6
18298 cat >conftest.$ac_ext <<_ACEOF
18301 cat confdefs.h >>conftest.$ac_ext
18302 cat >>conftest.$ac_ext <<_ACEOF
18303 /* end confdefs.h. */
18304 #include <langinfo.h>
18308 char* cs = nl_langinfo(CODESET);
18313 rm -f conftest.$ac_objext conftest$ac_exeext
18314 if { (ac_try="$ac_link"
18315 case "(($ac_try" in
18316 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18317 *) ac_try_echo
=$ac_try;;
18319 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18320 $as_echo "$ac_try_echo") >&5
18321 (eval "$ac_link") 2>conftest.er1
18323 grep -v '^ *+' conftest.er1
>conftest.err
18325 cat conftest.err
>&5
18326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } && {
18328 test -z "$ac_c_werror_flag" ||
18329 test ! -s conftest.err
18330 } && test -s conftest
$ac_exeext && {
18331 test "$cross_compiling" = yes ||
18332 $as_test_x conftest
$ac_exeext
18334 bash_cv_langinfo_codeset
=yes
18336 $as_echo "$as_me: failed program was:" >&5
18337 sed 's/^/| /' conftest.
$ac_ext >&5
18339 bash_cv_langinfo_codeset
=no
18342 rm -rf conftest.dSYM
18343 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18344 conftest
$ac_exeext conftest.
$ac_ext
18346 { $as_echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
18347 $as_echo "$bash_cv_langinfo_codeset" >&6; }
18348 if test $bash_cv_langinfo_codeset = yes; then
18349 cat >>confdefs.h
<<\_ACEOF
18350 #define HAVE_LANGINFO_CODESET 1
18355 { $as_echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5
18356 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
18357 if test "${bash_cv_type_wchar_t+set}" = set; then
18358 $as_echo_n "(cached) " >&6
18360 cat >conftest.
$ac_ext <<_ACEOF
18363 cat confdefs.h
>>conftest.
$ac_ext
18364 cat >>conftest.
$ac_ext <<_ACEOF
18365 /* end confdefs.h. */
18379 rm -f conftest.
$ac_objext
18380 if { (ac_try
="$ac_compile"
18381 case "(($ac_try" in
18382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18383 *) ac_try_echo=$ac_try;;
18385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18386 $as_echo "$ac_try_echo") >&5
18387 (eval "$ac_compile") 2>conftest.er1
18389 grep -v '^ *+' conftest.er1 >conftest.err
18391 cat conftest.err >&5
18392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); } && {
18394 test -z "$ac_c_werror_flag" ||
18395 test ! -s conftest.err
18396 } && test -s conftest.$ac_objext; then
18397 bash_cv_type_wchar_t=yes
18399 $as_echo "$as_me: failed program was:" >&5
18400 sed 's/^/| /' conftest.$ac_ext >&5
18402 bash_cv_type_wchar_t=no
18405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18407 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5
18408 $as_echo "$bash_cv_type_wchar_t" >&6; }
18409 if test $bash_cv_type_wchar_t = yes; then
18411 cat >>confdefs.h <<\_ACEOF
18412 #define HAVE_WCHAR_T 1
18417 { $as_echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5
18418 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
18419 if test "${bash_cv_type_wctype_t+set}" = set; then
18420 $as_echo_n "(cached) " >&6
18422 cat >conftest.$ac_ext <<_ACEOF
18425 cat confdefs.h >>conftest.$ac_ext
18426 cat >>conftest.$ac_ext <<_ACEOF
18427 /* end confdefs.h. */
18428 #include <wctype.h>
18440 rm -f conftest.$ac_objext
18441 if { (ac_try="$ac_compile"
18442 case "(($ac_try" in
18443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18444 *) ac_try_echo
=$ac_try;;
18446 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18447 $as_echo "$ac_try_echo") >&5
18448 (eval "$ac_compile") 2>conftest.er1
18450 grep -v '^ *+' conftest.er1
>conftest.err
18452 cat conftest.err
>&5
18453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); } && {
18455 test -z "$ac_c_werror_flag" ||
18456 test ! -s conftest.err
18457 } && test -s conftest.
$ac_objext; then
18458 bash_cv_type_wctype_t
=yes
18460 $as_echo "$as_me: failed program was:" >&5
18461 sed 's/^/| /' conftest.
$ac_ext >&5
18463 bash_cv_type_wctype_t
=no
18466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18468 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5
18469 $as_echo "$bash_cv_type_wctype_t" >&6; }
18470 if test $bash_cv_type_wctype_t = yes; then
18472 cat >>confdefs.h
<<\_ACEOF
18473 #define HAVE_WCTYPE_T 1
18478 { $as_echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5
18479 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
18480 if test "${bash_cv_type_wint_t+set}" = set; then
18481 $as_echo_n "(cached) " >&6
18483 cat >conftest.
$ac_ext <<_ACEOF
18486 cat confdefs.h
>>conftest.
$ac_ext
18487 cat >>conftest.
$ac_ext <<_ACEOF
18488 /* end confdefs.h. */
18489 #include <wctype.h>
18501 rm -f conftest.
$ac_objext
18502 if { (ac_try
="$ac_compile"
18503 case "(($ac_try" in
18504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18505 *) ac_try_echo=$ac_try;;
18507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18508 $as_echo "$ac_try_echo") >&5
18509 (eval "$ac_compile") 2>conftest.er1
18511 grep -v '^ *+' conftest.er1 >conftest.err
18513 cat conftest.err >&5
18514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); } && {
18516 test -z "$ac_c_werror_flag" ||
18517 test ! -s conftest.err
18518 } && test -s conftest.$ac_objext; then
18519 bash_cv_type_wint_t=yes
18521 $as_echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.$ac_ext >&5
18524 bash_cv_type_wint_t=no
18527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18529 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5
18530 $as_echo "$bash_cv_type_wint_t" >&6; }
18531 if test $bash_cv_type_wint_t = yes; then
18533 cat >>confdefs.h <<\_ACEOF
18534 #define HAVE_WINT_T 1
18539 if test "$am_cv_func_iconv" = yes; then
18541 LIBS="$LIBS $LIBICONV"
18543 for ac_func in locale_charset
18545 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18546 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18547 $as_echo_n "checking for $ac_func... " >&6; }
18548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18549 $as_echo_n "(cached) " >&6
18551 cat >conftest.$ac_ext <<_ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h. */
18557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18559 #define $ac_func innocuous_$ac_func
18561 /* System header to define __stub macros and hopefully few prototypes,
18562 which can conflict with char $ac_func (); below.
18563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18564 <limits.h> exists even on freestanding compilers. */
18567 # include <limits.h>
18569 # include <assert.h>
18574 /* Override any GCC internal prototype to avoid an error.
18575 Use char because int might match the return type of a GCC
18576 builtin and then its argument prototype would still apply. */
18581 /* The GNU C library defines this for functions which it implements
18582 to always fail with ENOSYS. Some functions are actually named
18583 something starting with __ and the normal name is an alias. */
18584 #if defined __stub_$ac_func || defined __stub___$ac_func
18591 return $ac_func ();
18596 rm -f conftest.$ac_objext conftest$ac_exeext
18597 if { (ac_try="$ac_link"
18598 case "(($ac_try" in
18599 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18600 *) ac_try_echo
=$ac_try;;
18602 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18603 $as_echo "$ac_try_echo") >&5
18604 (eval "$ac_link") 2>conftest.er1
18606 grep -v '^ *+' conftest.er1
>conftest.err
18608 cat conftest.err
>&5
18609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } && {
18611 test -z "$ac_c_werror_flag" ||
18612 test ! -s conftest.err
18613 } && test -s conftest
$ac_exeext && {
18614 test "$cross_compiling" = yes ||
18615 $as_test_x conftest
$ac_exeext
18617 eval "$as_ac_var=yes"
18619 $as_echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.
$ac_ext >&5
18622 eval "$as_ac_var=no"
18625 rm -rf conftest.dSYM
18626 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18627 conftest
$ac_exeext conftest.
$ac_ext
18629 ac_res
=`eval 'as_val=${'$as_ac_var'}
18630 $as_echo "$as_val"'`
18631 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18632 $as_echo "$ac_res" >&6; }
18633 as_val
=`eval 'as_val=${'$as_ac_var'}
18634 $as_echo "$as_val"'`
18635 if test "x$as_val" = x
""yes; then
18636 cat >>confdefs.h
<<_ACEOF
18637 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18648 if test "$opt_static_link" != yes; then
18650 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18651 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18652 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18653 $as_echo_n "(cached) " >&6
18655 ac_check_lib_save_LIBS
=$LIBS
18657 cat >conftest.
$ac_ext <<_ACEOF
18660 cat confdefs.h
>>conftest.
$ac_ext
18661 cat >>conftest.
$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18664 /* Override any GCC internal prototype to avoid an error.
18665 Use char because int might match the return type of a GCC
18666 builtin and then its argument prototype would still apply. */
18679 rm -f conftest.
$ac_objext conftest
$ac_exeext
18680 if { (ac_try
="$ac_link"
18681 case "(($ac_try" in
18682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18683 *) ac_try_echo=$ac_try;;
18685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18686 $as_echo "$ac_try_echo") >&5
18687 (eval "$ac_link") 2>conftest.er1
18689 grep -v '^ *+' conftest.er1 >conftest.err
18691 cat conftest.err >&5
18692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } && {
18694 test -z "$ac_c_werror_flag" ||
18695 test ! -s conftest.err
18696 } && test -s conftest$ac_exeext && {
18697 test "$cross_compiling" = yes ||
18698 $as_test_x conftest$ac_exeext
18700 ac_cv_lib_dl_dlopen=yes
18702 $as_echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18705 ac_cv_lib_dl_dlopen=no
18708 rm -rf conftest.dSYM
18709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18710 conftest$ac_exeext conftest.$ac_ext
18711 LIBS=$ac_check_lib_save_LIBS
18713 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18714 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18715 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
18716 cat >>confdefs.h <<_ACEOF
18717 #define HAVE_LIBDL 1
18727 for ac_func in dlopen dlclose dlsym
18729 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18730 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18731 $as_echo_n "checking for $ac_func... " >&6; }
18732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18733 $as_echo_n "(cached) " >&6
18735 cat >conftest.$ac_ext <<_ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h. */
18741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18743 #define $ac_func innocuous_$ac_func
18745 /* System header to define __stub macros and hopefully few prototypes,
18746 which can conflict with char $ac_func (); below.
18747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18748 <limits.h> exists even on freestanding compilers. */
18751 # include <limits.h>
18753 # include <assert.h>
18758 /* Override any GCC internal prototype to avoid an error.
18759 Use char because int might match the return type of a GCC
18760 builtin and then its argument prototype would still apply. */
18765 /* The GNU C library defines this for functions which it implements
18766 to always fail with ENOSYS. Some functions are actually named
18767 something starting with __ and the normal name is an alias. */
18768 #if defined __stub_$ac_func || defined __stub___$ac_func
18775 return $ac_func ();
18780 rm -f conftest.$ac_objext conftest$ac_exeext
18781 if { (ac_try="$ac_link"
18782 case "(($ac_try" in
18783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18784 *) ac_try_echo
=$ac_try;;
18786 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18787 $as_echo "$ac_try_echo") >&5
18788 (eval "$ac_link") 2>conftest.er1
18790 grep -v '^ *+' conftest.er1
>conftest.err
18792 cat conftest.err
>&5
18793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } && {
18795 test -z "$ac_c_werror_flag" ||
18796 test ! -s conftest.err
18797 } && test -s conftest
$ac_exeext && {
18798 test "$cross_compiling" = yes ||
18799 $as_test_x conftest
$ac_exeext
18801 eval "$as_ac_var=yes"
18803 $as_echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.
$ac_ext >&5
18806 eval "$as_ac_var=no"
18809 rm -rf conftest.dSYM
18810 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18811 conftest
$ac_exeext conftest.
$ac_ext
18813 ac_res
=`eval 'as_val=${'$as_ac_var'}
18814 $as_echo "$as_val"'`
18815 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18816 $as_echo "$ac_res" >&6; }
18817 as_val
=`eval 'as_val=${'$as_ac_var'}
18818 $as_echo "$as_val"'`
18819 if test "x$as_val" = x
""yes; then
18820 cat >>confdefs.h
<<_ACEOF
18821 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18829 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
18830 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
18831 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
18832 $as_echo_n "(cached) " >&6
18834 cat >conftest.
$ac_ext <<_ACEOF
18837 cat confdefs.h
>>conftest.
$ac_ext
18838 cat >>conftest.
$ac_ext <<_ACEOF
18839 /* end confdefs.h. */
18840 #include <signal.h>
18841 /* NetBSD declares sys_siglist in unistd.h. */
18842 #ifdef HAVE_UNISTD_H
18843 # include <unistd.h>
18850 #ifndef sys_siglist
18851 (void) sys_siglist;
18858 rm -f conftest.
$ac_objext
18859 if { (ac_try
="$ac_compile"
18860 case "(($ac_try" in
18861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18862 *) ac_try_echo=$ac_try;;
18864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18865 $as_echo "$ac_try_echo") >&5
18866 (eval "$ac_compile") 2>conftest.er1
18868 grep -v '^ *+' conftest.er1 >conftest.err
18870 cat conftest.err >&5
18871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); } && {
18873 test -z "$ac_c_werror_flag" ||
18874 test ! -s conftest.err
18875 } && test -s conftest.$ac_objext; then
18876 ac_cv_have_decl_sys_siglist=yes
18878 $as_echo "$as_me: failed program was:" >&5
18879 sed 's/^/| /' conftest.$ac_ext >&5
18881 ac_cv_have_decl_sys_siglist=no
18884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18886 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
18887 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
18888 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
18890 cat >>confdefs.h <<_ACEOF
18891 #define HAVE_DECL_SYS_SIGLIST 1
18896 cat >>confdefs.h <<_ACEOF
18897 #define HAVE_DECL_SYS_SIGLIST 0
18906 if test "$ac_cv_func_inet_aton" != 'yes'; then
18908 { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
18909 $as_echo_n "checking for inet_aton... " >&6; }
18910 if test "${bash_cv_func_inet_aton+set}" = set; then
18911 $as_echo_n "(cached) " >&6
18913 cat >conftest.$ac_ext <<_ACEOF
18916 cat confdefs.h >>conftest.$ac_ext
18917 cat >>conftest.$ac_ext <<_ACEOF
18918 /* end confdefs.h. */
18920 #include <sys/types.h>
18921 #include <netinet/in.h>
18922 #include <arpa/inet.h>
18927 inet_aton("127.0.0.1", &ap);
18932 rm -f conftest.$ac_objext conftest$ac_exeext
18933 if { (ac_try="$ac_link"
18934 case "(($ac_try" in
18935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18936 *) ac_try_echo
=$ac_try;;
18938 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18939 $as_echo "$ac_try_echo") >&5
18940 (eval "$ac_link") 2>conftest.er1
18942 grep -v '^ *+' conftest.er1
>conftest.err
18944 cat conftest.err
>&5
18945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); } && {
18947 test -z "$ac_c_werror_flag" ||
18948 test ! -s conftest.err
18949 } && test -s conftest
$ac_exeext && {
18950 test "$cross_compiling" = yes ||
18951 $as_test_x conftest
$ac_exeext
18953 bash_cv_func_inet_aton
=yes
18955 $as_echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.
$ac_ext >&5
18958 bash_cv_func_inet_aton
=no
18961 rm -rf conftest.dSYM
18962 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18963 conftest
$ac_exeext conftest.
$ac_ext
18965 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
18966 $as_echo "$bash_cv_func_inet_aton" >&6; }
18967 if test $bash_cv_func_inet_aton = yes; then
18968 cat >>confdefs.h
<<\_ACEOF
18969 #define HAVE_INET_ATON 1
18973 case " $LIBOBJS " in
18974 *" inet_aton.$ac_objext "* ) ;;
18975 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
18985 { $as_echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
18986 $as_echo_n "checking for getpwent in -lsun... " >&6; }
18987 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
18988 $as_echo_n "(cached) " >&6
18990 ac_check_lib_save_LIBS
=$LIBS
18992 cat >conftest.
$ac_ext <<_ACEOF
18995 cat confdefs.h
>>conftest.
$ac_ext
18996 cat >>conftest.
$ac_ext <<_ACEOF
18997 /* end confdefs.h. */
18999 /* Override any GCC internal prototype to avoid an error.
19000 Use char because int might match the return type of a GCC
19001 builtin and then its argument prototype would still apply. */
19009 return getpwent ();
19014 rm -f conftest.
$ac_objext conftest
$ac_exeext
19015 if { (ac_try
="$ac_link"
19016 case "(($ac_try" in
19017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19021 $as_echo "$ac_try_echo") >&5
19022 (eval "$ac_link") 2>conftest.er1
19024 grep -v '^ *+' conftest.er1 >conftest.err
19026 cat conftest.err >&5
19027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } && {
19029 test -z "$ac_c_werror_flag" ||
19030 test ! -s conftest.err
19031 } && test -s conftest$ac_exeext && {
19032 test "$cross_compiling" = yes ||
19033 $as_test_x conftest$ac_exeext
19035 ac_cv_lib_sun_getpwent=yes
19037 $as_echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19040 ac_cv_lib_sun_getpwent=no
19043 rm -rf conftest.dSYM
19044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19045 conftest$ac_exeext conftest.$ac_ext
19046 LIBS=$ac_check_lib_save_LIBS
19048 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
19049 $as_echo "$ac_cv_lib_sun_getpwent" >&6; }
19050 if test "x$ac_cv_lib_sun_getpwent" = x""yes; then
19051 cat >>confdefs.h <<_ACEOF
19052 #define HAVE_LIBSUN 1
19061 if test "$ac_cv_func_getpeername" = no; then
19063 if test "X$bash_cv_have_socklib" = "X"; then
19066 { $as_echo "$as_me:$LINENO: checking for socket library" >&5
19067 $as_echo_n "checking for socket library... " >&6; }
19070 if test "${bash_cv_have_socklib+set}" = set; then
19071 $as_echo_n "(cached) " >&6
19073 { $as_echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
19074 $as_echo_n "checking for getpeername in -lsocket... " >&6; }
19075 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
19076 $as_echo_n "(cached) " >&6
19078 ac_check_lib_save_LIBS=$LIBS
19079 LIBS="-lsocket -lnsl $LIBS"
19080 cat >conftest.$ac_ext <<_ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19087 /* Override any GCC internal prototype to avoid an error.
19088 Use char because int might match the return type of a GCC
19089 builtin and then its argument prototype would still apply. */
19093 char getpeername ();
19097 return getpeername ();
19102 rm -f conftest.$ac_objext conftest$ac_exeext
19103 if { (ac_try="$ac_link"
19104 case "(($ac_try" in
19105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19106 *) ac_try_echo
=$ac_try;;
19108 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19109 $as_echo "$ac_try_echo") >&5
19110 (eval "$ac_link") 2>conftest.er1
19112 grep -v '^ *+' conftest.er1
>conftest.err
19114 cat conftest.err
>&5
19115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } && {
19117 test -z "$ac_c_werror_flag" ||
19118 test ! -s conftest.err
19119 } && test -s conftest
$ac_exeext && {
19120 test "$cross_compiling" = yes ||
19121 $as_test_x conftest
$ac_exeext
19123 ac_cv_lib_socket_getpeername
=yes
19125 $as_echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.
$ac_ext >&5
19128 ac_cv_lib_socket_getpeername
=no
19131 rm -rf conftest.dSYM
19132 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19133 conftest
$ac_exeext conftest.
$ac_ext
19134 LIBS
=$ac_check_lib_save_LIBS
19136 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
19137 $as_echo "$ac_cv_lib_socket_getpeername" >&6; }
19138 if test "x$ac_cv_lib_socket_getpeername" = x
""yes; then
19139 bash_cv_have_socklib
=yes
19141 bash_cv_have_socklib
=no
19146 if test "X$_bash_needmsg" = Xyes
; then
19147 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
19148 $as_echo "$bash_cv_have_socklib" >&6; }
19151 if test $bash_cv_have_socklib = yes; then
19152 # check for libnsl, add it to LIBS if present
19153 if test "X$bash_cv_have_libnsl" = "X"; then
19156 { $as_echo "$as_me:$LINENO: checking for libnsl" >&5
19157 $as_echo_n "checking for libnsl... " >&6; }
19160 if test "${bash_cv_have_libnsl+set}" = set; then
19161 $as_echo_n "(cached) " >&6
19163 { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
19164 $as_echo_n "checking for t_open in -lnsl... " >&6; }
19165 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
19166 $as_echo_n "(cached) " >&6
19168 ac_check_lib_save_LIBS
=$LIBS
19170 cat >conftest.
$ac_ext <<_ACEOF
19173 cat confdefs.h
>>conftest.
$ac_ext
19174 cat >>conftest.
$ac_ext <<_ACEOF
19175 /* end confdefs.h. */
19177 /* Override any GCC internal prototype to avoid an error.
19178 Use char because int might match the return type of a GCC
19179 builtin and then its argument prototype would still apply. */
19192 rm -f conftest.
$ac_objext conftest
$ac_exeext
19193 if { (ac_try
="$ac_link"
19194 case "(($ac_try" in
19195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19196 *) ac_try_echo=$ac_try;;
19198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19199 $as_echo "$ac_try_echo") >&5
19200 (eval "$ac_link") 2>conftest.er1
19202 grep -v '^ *+' conftest.er1 >conftest.err
19204 cat conftest.err >&5
19205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); } && {
19207 test -z "$ac_c_werror_flag" ||
19208 test ! -s conftest.err
19209 } && test -s conftest$ac_exeext && {
19210 test "$cross_compiling" = yes ||
19211 $as_test_x conftest$ac_exeext
19213 ac_cv_lib_nsl_t_open=yes
19215 $as_echo "$as_me: failed program was:" >&5
19216 sed 's/^/| /' conftest.$ac_ext >&5
19218 ac_cv_lib_nsl_t_open=no
19221 rm -rf conftest.dSYM
19222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19223 conftest$ac_exeext conftest.$ac_ext
19224 LIBS=$ac_check_lib_save_LIBS
19226 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
19227 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
19228 if test "x$ac_cv_lib_nsl_t_open" = x""yes; then
19229 bash_cv_have_libnsl=yes
19231 bash_cv_have_libnsl=no
19236 if test "X$_bash_needmsg" = Xyes; then
19237 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
19238 $as_echo "$bash_cv_have_libnsl" >&6; }
19241 if test $bash_cv_have_libnsl = yes; then
19242 LIBS="-lsocket -lnsl $LIBS"
19244 LIBS="-lsocket $LIBS"
19246 cat >>confdefs.h <<\_ACEOF
19247 #define HAVE_LIBSOCKET 1
19250 cat >>confdefs.h <<\_ACEOF
19251 #define HAVE_GETPEERNAME 1
19257 if test "$ac_cv_func_gethostbyname" = no; then
19258 if test "X$bash_cv_have_gethostbyname" = "X"; then
19261 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
19262 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
19265 if test "${bash_cv_have_gethostbyname+set}" = set; then
19266 $as_echo_n "(cached) " >&6
19268 cat >conftest.$ac_ext <<_ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h. */
19278 struct hostent *hp;
19279 hp = gethostbyname("localhost");
19285 rm -f conftest.$ac_objext conftest$ac_exeext
19286 if { (ac_try="$ac_link"
19287 case "(($ac_try" in
19288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19289 *) ac_try_echo
=$ac_try;;
19291 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19292 $as_echo "$ac_try_echo") >&5
19293 (eval "$ac_link") 2>conftest.er1
19295 grep -v '^ *+' conftest.er1
>conftest.err
19297 cat conftest.err
>&5
19298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } && {
19300 test -z "$ac_c_werror_flag" ||
19301 test ! -s conftest.err
19302 } && test -s conftest
$ac_exeext && {
19303 test "$cross_compiling" = yes ||
19304 $as_test_x conftest
$ac_exeext
19306 bash_cv_have_gethostbyname
=yes
19308 $as_echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.
$ac_ext >&5
19311 bash_cv_have_gethostbyname
=no
19314 rm -rf conftest.dSYM
19315 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19316 conftest
$ac_exeext conftest.
$ac_ext
19320 if test "X$_bash_needmsg" = Xyes
; then
19321 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
19322 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
19324 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
19325 $as_echo "$bash_cv_have_gethostbyname" >&6; }
19326 if test "$bash_cv_have_gethostbyname" = yes; then
19327 cat >>confdefs.h
<<\_ACEOF
19328 #define HAVE_GETHOSTBYNAME 1
19335 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19336 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19337 if test "${ac_cv_type_uid_t+set}" = set; then
19338 $as_echo_n "(cached) " >&6
19340 cat >conftest.
$ac_ext <<_ACEOF
19343 cat confdefs.h
>>conftest.
$ac_ext
19344 cat >>conftest.
$ac_ext <<_ACEOF
19345 /* end confdefs.h. */
19346 #include <sys/types.h>
19349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19350 $EGREP "uid_t" >/dev
/null
2>&1; then
19351 ac_cv_type_uid_t
=yes
19353 ac_cv_type_uid_t
=no
19358 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19359 $as_echo "$ac_cv_type_uid_t" >&6; }
19360 if test $ac_cv_type_uid_t = no
; then
19362 cat >>confdefs.h
<<\_ACEOF
19367 cat >>confdefs.h
<<\_ACEOF
19373 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
19374 $as_echo_n "checking type of array argument to getgroups... " >&6; }
19375 if test "${ac_cv_type_getgroups+set}" = set; then
19376 $as_echo_n "(cached) " >&6
19378 if test "$cross_compiling" = yes; then
19379 ac_cv_type_getgroups
=cross
19381 cat >conftest.
$ac_ext <<_ACEOF
19384 cat confdefs.h
>>conftest.
$ac_ext
19385 cat >>conftest.
$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19387 /* Thanks to Mike Rendell for this test. */
19388 $ac_includes_default
19391 #define MAX(x, y) ((x) > (y) ? (x) : (y))
19396 gid_t gidset[NGID];
19398 union { gid_t gval; long int lval; } val;
19401 for (i = 0; i < NGID; i++)
19402 gidset[i] = val.gval;
19403 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
19405 /* Exit non-zero if getgroups seems to require an array of ints. This
19406 happens when gid_t is short int but getgroups modifies an array
19408 return n > 0 && gidset[n] != val.gval;
19411 rm -f conftest
$ac_exeext
19412 if { (ac_try
="$ac_link"
19413 case "(($ac_try" in
19414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19418 $as_echo "$ac_try_echo") >&5
19419 (eval "$ac_link") 2>&5
19421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19423 { (case "(($ac_try" in
19424 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19425 *) ac_try_echo
=$ac_try;;
19427 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19428 $as_echo "$ac_try_echo") >&5
19429 (eval "$ac_try") 2>&5
19431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; }; then
19433 ac_cv_type_getgroups
=gid_t
19435 $as_echo "$as_me: program exited with status $ac_status" >&5
19436 $as_echo "$as_me: failed program was:" >&5
19437 sed 's/^/| /' conftest.
$ac_ext >&5
19439 ( exit $ac_status )
19440 ac_cv_type_getgroups
=int
19442 rm -rf conftest.dSYM
19443 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19447 if test $ac_cv_type_getgroups = cross
; then
19448 cat >conftest.
$ac_ext <<_ACEOF
19451 cat confdefs.h
>>conftest.
$ac_ext
19452 cat >>conftest.
$ac_ext <<_ACEOF
19453 /* end confdefs.h. */
19454 #include <unistd.h>
19457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19458 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
19459 ac_cv_type_getgroups
=gid_t
19461 ac_cv_type_getgroups
=int
19467 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
19468 $as_echo "$ac_cv_type_getgroups" >&6; }
19470 cat >>confdefs.h
<<_ACEOF
19471 #define GETGROUPS_T $ac_cv_type_getgroups
19475 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
19476 $as_echo_n "checking for off_t... " >&6; }
19477 if test "${ac_cv_type_off_t+set}" = set; then
19478 $as_echo_n "(cached) " >&6
19480 ac_cv_type_off_t
=no
19481 cat >conftest.
$ac_ext <<_ACEOF
19484 cat confdefs.h
>>conftest.
$ac_ext
19485 cat >>conftest.
$ac_ext <<_ACEOF
19486 /* end confdefs.h. */
19487 $ac_includes_default
19491 if (sizeof (off_t))
19497 rm -f conftest.
$ac_objext
19498 if { (ac_try
="$ac_compile"
19499 case "(($ac_try" in
19500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19501 *) ac_try_echo=$ac_try;;
19503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19504 $as_echo "$ac_try_echo") >&5
19505 (eval "$ac_compile") 2>conftest.er1
19507 grep -v '^ *+' conftest.er1 >conftest.err
19509 cat conftest.err >&5
19510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } && {
19512 test -z "$ac_c_werror_flag" ||
19513 test ! -s conftest.err
19514 } && test -s conftest.$ac_objext; then
19515 cat >conftest.$ac_ext <<_ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19521 $ac_includes_default
19525 if (sizeof ((off_t)))
19531 rm -f conftest.$ac_objext
19532 if { (ac_try="$ac_compile"
19533 case "(($ac_try" in
19534 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19535 *) ac_try_echo
=$ac_try;;
19537 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19538 $as_echo "$ac_try_echo") >&5
19539 (eval "$ac_compile") 2>conftest.er1
19541 grep -v '^ *+' conftest.er1
>conftest.err
19543 cat conftest.err
>&5
19544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } && {
19546 test -z "$ac_c_werror_flag" ||
19547 test ! -s conftest.err
19548 } && test -s conftest.
$ac_objext; then
19551 $as_echo "$as_me: failed program was:" >&5
19552 sed 's/^/| /' conftest.
$ac_ext >&5
19554 ac_cv_type_off_t
=yes
19557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19559 $as_echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.
$ac_ext >&5
19565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19567 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19568 $as_echo "$ac_cv_type_off_t" >&6; }
19569 if test "x$ac_cv_type_off_t" = x
""yes; then
19573 cat >>confdefs.h
<<_ACEOF
19574 #define off_t long int
19579 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
19580 $as_echo_n "checking for mode_t... " >&6; }
19581 if test "${ac_cv_type_mode_t+set}" = set; then
19582 $as_echo_n "(cached) " >&6
19584 ac_cv_type_mode_t
=no
19585 cat >conftest.
$ac_ext <<_ACEOF
19588 cat confdefs.h
>>conftest.
$ac_ext
19589 cat >>conftest.
$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19591 $ac_includes_default
19595 if (sizeof (mode_t))
19601 rm -f conftest.
$ac_objext
19602 if { (ac_try
="$ac_compile"
19603 case "(($ac_try" in
19604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19608 $as_echo "$ac_try_echo") >&5
19609 (eval "$ac_compile") 2>conftest.er1
19611 grep -v '^ *+' conftest.er1 >conftest.err
19613 cat conftest.err >&5
19614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } && {
19616 test -z "$ac_c_werror_flag" ||
19617 test ! -s conftest.err
19618 } && test -s conftest.$ac_objext; then
19619 cat >conftest.$ac_ext <<_ACEOF
19622 cat confdefs.h >>conftest.$ac_ext
19623 cat >>conftest.$ac_ext <<_ACEOF
19624 /* end confdefs.h. */
19625 $ac_includes_default
19629 if (sizeof ((mode_t)))
19635 rm -f conftest.$ac_objext
19636 if { (ac_try="$ac_compile"
19637 case "(($ac_try" in
19638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19639 *) ac_try_echo
=$ac_try;;
19641 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19642 $as_echo "$ac_try_echo") >&5
19643 (eval "$ac_compile") 2>conftest.er1
19645 grep -v '^ *+' conftest.er1
>conftest.err
19647 cat conftest.err
>&5
19648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } && {
19650 test -z "$ac_c_werror_flag" ||
19651 test ! -s conftest.err
19652 } && test -s conftest.
$ac_objext; then
19655 $as_echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.
$ac_ext >&5
19658 ac_cv_type_mode_t
=yes
19661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19663 $as_echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.
$ac_ext >&5
19669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19671 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19672 $as_echo "$ac_cv_type_mode_t" >&6; }
19673 if test "x$ac_cv_type_mode_t" = x
""yes; then
19677 cat >>confdefs.h
<<_ACEOF
19683 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19684 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19685 if test "${ac_cv_type_uid_t+set}" = set; then
19686 $as_echo_n "(cached) " >&6
19688 cat >conftest.
$ac_ext <<_ACEOF
19691 cat confdefs.h
>>conftest.
$ac_ext
19692 cat >>conftest.
$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19694 #include <sys/types.h>
19697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19698 $EGREP "uid_t" >/dev
/null
2>&1; then
19699 ac_cv_type_uid_t
=yes
19701 ac_cv_type_uid_t
=no
19706 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19707 $as_echo "$ac_cv_type_uid_t" >&6; }
19708 if test $ac_cv_type_uid_t = no
; then
19710 cat >>confdefs.h
<<\_ACEOF
19715 cat >>confdefs.h
<<\_ACEOF
19721 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
19722 $as_echo_n "checking for pid_t... " >&6; }
19723 if test "${ac_cv_type_pid_t+set}" = set; then
19724 $as_echo_n "(cached) " >&6
19726 ac_cv_type_pid_t
=no
19727 cat >conftest.
$ac_ext <<_ACEOF
19730 cat confdefs.h
>>conftest.
$ac_ext
19731 cat >>conftest.
$ac_ext <<_ACEOF
19732 /* end confdefs.h. */
19733 $ac_includes_default
19737 if (sizeof (pid_t))
19743 rm -f conftest.
$ac_objext
19744 if { (ac_try
="$ac_compile"
19745 case "(($ac_try" in
19746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19747 *) ac_try_echo=$ac_try;;
19749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19750 $as_echo "$ac_try_echo") >&5
19751 (eval "$ac_compile") 2>conftest.er1
19753 grep -v '^ *+' conftest.er1 >conftest.err
19755 cat conftest.err >&5
19756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); } && {
19758 test -z "$ac_c_werror_flag" ||
19759 test ! -s conftest.err
19760 } && test -s conftest.$ac_objext; then
19761 cat >conftest.$ac_ext <<_ACEOF
19764 cat confdefs.h >>conftest.$ac_ext
19765 cat >>conftest.$ac_ext <<_ACEOF
19766 /* end confdefs.h. */
19767 $ac_includes_default
19771 if (sizeof ((pid_t)))
19777 rm -f conftest.$ac_objext
19778 if { (ac_try="$ac_compile"
19779 case "(($ac_try" in
19780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19781 *) ac_try_echo
=$ac_try;;
19783 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19784 $as_echo "$ac_try_echo") >&5
19785 (eval "$ac_compile") 2>conftest.er1
19787 grep -v '^ *+' conftest.er1
>conftest.err
19789 cat conftest.err
>&5
19790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); } && {
19792 test -z "$ac_c_werror_flag" ||
19793 test ! -s conftest.err
19794 } && test -s conftest.
$ac_objext; then
19797 $as_echo "$as_me: failed program was:" >&5
19798 sed 's/^/| /' conftest.
$ac_ext >&5
19800 ac_cv_type_pid_t
=yes
19803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19805 $as_echo "$as_me: failed program was:" >&5
19806 sed 's/^/| /' conftest.
$ac_ext >&5
19811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19813 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19814 $as_echo "$ac_cv_type_pid_t" >&6; }
19815 if test "x$ac_cv_type_pid_t" = x
""yes; then
19819 cat >>confdefs.h
<<_ACEOF
19825 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
19826 $as_echo_n "checking for size_t... " >&6; }
19827 if test "${ac_cv_type_size_t+set}" = set; then
19828 $as_echo_n "(cached) " >&6
19830 ac_cv_type_size_t
=no
19831 cat >conftest.
$ac_ext <<_ACEOF
19834 cat confdefs.h
>>conftest.
$ac_ext
19835 cat >>conftest.
$ac_ext <<_ACEOF
19836 /* end confdefs.h. */
19837 $ac_includes_default
19841 if (sizeof (size_t))
19847 rm -f conftest.
$ac_objext
19848 if { (ac_try
="$ac_compile"
19849 case "(($ac_try" in
19850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19851 *) ac_try_echo=$ac_try;;
19853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19854 $as_echo "$ac_try_echo") >&5
19855 (eval "$ac_compile") 2>conftest.er1
19857 grep -v '^ *+' conftest.er1 >conftest.err
19859 cat conftest.err >&5
19860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); } && {
19862 test -z "$ac_c_werror_flag" ||
19863 test ! -s conftest.err
19864 } && test -s conftest.$ac_objext; then
19865 cat >conftest.$ac_ext <<_ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h. */
19871 $ac_includes_default
19875 if (sizeof ((size_t)))
19881 rm -f conftest.$ac_objext
19882 if { (ac_try="$ac_compile"
19883 case "(($ac_try" in
19884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19885 *) ac_try_echo
=$ac_try;;
19887 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19888 $as_echo "$ac_try_echo") >&5
19889 (eval "$ac_compile") 2>conftest.er1
19891 grep -v '^ *+' conftest.er1
>conftest.err
19893 cat conftest.err
>&5
19894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } && {
19896 test -z "$ac_c_werror_flag" ||
19897 test ! -s conftest.err
19898 } && test -s conftest.
$ac_objext; then
19901 $as_echo "$as_me: failed program was:" >&5
19902 sed 's/^/| /' conftest.
$ac_ext >&5
19904 ac_cv_type_size_t
=yes
19907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19909 $as_echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.
$ac_ext >&5
19915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19917 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19918 $as_echo "$ac_cv_type_size_t" >&6; }
19919 if test "x$ac_cv_type_size_t" = x
""yes; then
19923 cat >>confdefs.h
<<_ACEOF
19924 #define size_t unsigned int
19929 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
19930 $as_echo_n "checking for ssize_t... " >&6; }
19931 if test "${ac_cv_type_ssize_t+set}" = set; then
19932 $as_echo_n "(cached) " >&6
19934 ac_cv_type_ssize_t
=no
19935 cat >conftest.
$ac_ext <<_ACEOF
19938 cat confdefs.h
>>conftest.
$ac_ext
19939 cat >>conftest.
$ac_ext <<_ACEOF
19940 /* end confdefs.h. */
19941 $ac_includes_default
19945 if (sizeof (ssize_t))
19951 rm -f conftest.
$ac_objext
19952 if { (ac_try
="$ac_compile"
19953 case "(($ac_try" in
19954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19955 *) ac_try_echo=$ac_try;;
19957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19958 $as_echo "$ac_try_echo") >&5
19959 (eval "$ac_compile") 2>conftest.er1
19961 grep -v '^ *+' conftest.er1 >conftest.err
19963 cat conftest.err >&5
19964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); } && {
19966 test -z "$ac_c_werror_flag" ||
19967 test ! -s conftest.err
19968 } && test -s conftest.$ac_objext; then
19969 cat >conftest.$ac_ext <<_ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19975 $ac_includes_default
19979 if (sizeof ((ssize_t)))
19985 rm -f conftest.$ac_objext
19986 if { (ac_try="$ac_compile"
19987 case "(($ac_try" in
19988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19989 *) ac_try_echo
=$ac_try;;
19991 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19992 $as_echo "$ac_try_echo") >&5
19993 (eval "$ac_compile") 2>conftest.er1
19995 grep -v '^ *+' conftest.er1
>conftest.err
19997 cat conftest.err
>&5
19998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } && {
20000 test -z "$ac_c_werror_flag" ||
20001 test ! -s conftest.err
20002 } && test -s conftest.
$ac_objext; then
20005 $as_echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.
$ac_ext >&5
20008 ac_cv_type_ssize_t
=yes
20011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20013 $as_echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.
$ac_ext >&5
20019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20021 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20022 $as_echo "$ac_cv_type_ssize_t" >&6; }
20023 if test "x$ac_cv_type_ssize_t" = x
""yes; then
20027 cat >>confdefs.h
<<_ACEOF
20028 #define ssize_t int
20033 { $as_echo "$as_me:$LINENO: checking for time_t" >&5
20034 $as_echo_n "checking for time_t... " >&6; }
20035 if test "${ac_cv_type_time_t+set}" = set; then
20036 $as_echo_n "(cached) " >&6
20038 ac_cv_type_time_t
=no
20039 cat >conftest.
$ac_ext <<_ACEOF
20042 cat confdefs.h
>>conftest.
$ac_ext
20043 cat >>conftest.
$ac_ext <<_ACEOF
20044 /* end confdefs.h. */
20045 $ac_includes_default
20049 if (sizeof (time_t))
20055 rm -f conftest.
$ac_objext
20056 if { (ac_try
="$ac_compile"
20057 case "(($ac_try" in
20058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20059 *) ac_try_echo=$ac_try;;
20061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20062 $as_echo "$ac_try_echo") >&5
20063 (eval "$ac_compile") 2>conftest.er1
20065 grep -v '^ *+' conftest.er1 >conftest.err
20067 cat conftest.err >&5
20068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } && {
20070 test -z "$ac_c_werror_flag" ||
20071 test ! -s conftest.err
20072 } && test -s conftest.$ac_objext; then
20073 cat >conftest.$ac_ext <<_ACEOF
20076 cat confdefs.h >>conftest.$ac_ext
20077 cat >>conftest.$ac_ext <<_ACEOF
20078 /* end confdefs.h. */
20079 $ac_includes_default
20083 if (sizeof ((time_t)))
20089 rm -f conftest.$ac_objext
20090 if { (ac_try="$ac_compile"
20091 case "(($ac_try" in
20092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20093 *) ac_try_echo
=$ac_try;;
20095 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20096 $as_echo "$ac_try_echo") >&5
20097 (eval "$ac_compile") 2>conftest.er1
20099 grep -v '^ *+' conftest.er1
>conftest.err
20101 cat conftest.err
>&5
20102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } && {
20104 test -z "$ac_c_werror_flag" ||
20105 test ! -s conftest.err
20106 } && test -s conftest.
$ac_objext; then
20109 $as_echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.
$ac_ext >&5
20112 ac_cv_type_time_t
=yes
20115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20117 $as_echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.
$ac_ext >&5
20123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20125 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
20126 $as_echo "$ac_cv_type_time_t" >&6; }
20127 if test "x$ac_cv_type_time_t" = x
""yes; then
20131 cat >>confdefs.h
<<_ACEOF
20132 #define time_t long
20139 { $as_echo "$as_me:$LINENO: checking for long long" >&5
20140 $as_echo_n "checking for long long... " >&6; }
20141 if test "${bash_cv_type_long_long+set}" = set; then
20142 $as_echo_n "(cached) " >&6
20144 cat >conftest.
$ac_ext <<_ACEOF
20147 cat confdefs.h
>>conftest.
$ac_ext
20148 cat >>conftest.
$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20151 long long ll = 1; int i = 63;
20156 long long llm = (long long) -1;
20157 return ll << i | ll >> i | llm / ll | llm % ll;
20163 rm -f conftest.
$ac_objext conftest
$ac_exeext
20164 if { (ac_try
="$ac_link"
20165 case "(($ac_try" in
20166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20170 $as_echo "$ac_try_echo") >&5
20171 (eval "$ac_link") 2>conftest.er1
20173 grep -v '^ *+' conftest.er1 >conftest.err
20175 cat conftest.err >&5
20176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } && {
20178 test -z "$ac_c_werror_flag" ||
20179 test ! -s conftest.err
20180 } && test -s conftest$ac_exeext && {
20181 test "$cross_compiling" = yes ||
20182 $as_test_x conftest$ac_exeext
20184 bash_cv_type_long_long='long long'
20186 $as_echo "$as_me: failed program was:" >&5
20187 sed 's/^/| /' conftest.$ac_ext >&5
20189 bash_cv_type_long_long='long'
20192 rm -rf conftest.dSYM
20193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20194 conftest$ac_exeext conftest.$ac_ext
20196 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
20197 $as_echo "$bash_cv_type_long_long" >&6; }
20198 if test "$bash_cv_type_long_long" = 'long long'; then
20199 cat >>confdefs.h <<\_ACEOF
20200 #define HAVE_LONG_LONG 1
20206 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
20207 $as_echo_n "checking for unsigned long long... " >&6; }
20208 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
20209 $as_echo_n "(cached) " >&6
20211 cat >conftest.$ac_ext <<_ACEOF
20214 cat confdefs.h >>conftest.$ac_ext
20215 cat >>conftest.$ac_ext <<_ACEOF
20216 /* end confdefs.h. */
20218 unsigned long long ull = 1; int i = 63;
20223 unsigned long long ullmax = (unsigned long long) -1;
20224 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20230 rm -f conftest.$ac_objext conftest$ac_exeext
20231 if { (ac_try="$ac_link"
20232 case "(($ac_try" in
20233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20234 *) ac_try_echo
=$ac_try;;
20236 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20237 $as_echo "$ac_try_echo") >&5
20238 (eval "$ac_link") 2>conftest.er1
20240 grep -v '^ *+' conftest.er1
>conftest.err
20242 cat conftest.err
>&5
20243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); } && {
20245 test -z "$ac_c_werror_flag" ||
20246 test ! -s conftest.err
20247 } && test -s conftest
$ac_exeext && {
20248 test "$cross_compiling" = yes ||
20249 $as_test_x conftest
$ac_exeext
20251 bash_cv_type_unsigned_long_long
='unsigned long long'
20253 $as_echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.
$ac_ext >&5
20256 bash_cv_type_unsigned_long_long
='unsigned long'
20259 rm -rf conftest.dSYM
20260 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20261 conftest
$ac_exeext conftest.
$ac_ext
20263 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
20264 $as_echo "$bash_cv_type_unsigned_long_long" >&6; }
20265 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
20266 cat >>confdefs.h
<<\_ACEOF
20267 #define HAVE_UNSIGNED_LONG_LONG 1
20273 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20274 $as_echo_n "checking return type of signal handlers... " >&6; }
20275 if test "${ac_cv_type_signal+set}" = set; then
20276 $as_echo_n "(cached) " >&6
20278 cat >conftest.
$ac_ext <<_ACEOF
20281 cat confdefs.h
>>conftest.
$ac_ext
20282 cat >>conftest.
$ac_ext <<_ACEOF
20283 /* end confdefs.h. */
20284 #include <sys/types.h>
20285 #include <signal.h>
20290 return *(signal (0, 0)) (0) == 1;
20295 rm -f conftest.
$ac_objext
20296 if { (ac_try
="$ac_compile"
20297 case "(($ac_try" in
20298 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20299 *) ac_try_echo=$ac_try;;
20301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20302 $as_echo "$ac_try_echo") >&5
20303 (eval "$ac_compile") 2>conftest.er1
20305 grep -v '^ *+' conftest.er1 >conftest.err
20307 cat conftest.err >&5
20308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } && {
20310 test -z "$ac_c_werror_flag" ||
20311 test ! -s conftest.err
20312 } && test -s conftest.$ac_objext; then
20313 ac_cv_type_signal=int
20315 $as_echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20318 ac_cv_type_signal=void
20321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20323 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20324 $as_echo "$ac_cv_type_signal" >&6; }
20326 cat >>confdefs.h <<_ACEOF
20327 #define RETSIGTYPE $ac_cv_type_signal
20331 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
20332 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
20333 if test "${ac_cv_have_sig_atomic_t+set}" = set; then
20334 $as_echo_n "(cached) " >&6
20336 cat >conftest.$ac_ext <<_ACEOF
20339 cat confdefs.h >>conftest.$ac_ext
20340 cat >>conftest.$ac_ext <<_ACEOF
20341 /* end confdefs.h. */
20343 #include <signal.h>
20353 rm -f conftest.$ac_objext conftest$ac_exeext
20354 if { (ac_try="$ac_link"
20355 case "(($ac_try" in
20356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20357 *) ac_try_echo
=$ac_try;;
20359 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20360 $as_echo "$ac_try_echo") >&5
20361 (eval "$ac_link") 2>conftest.er1
20363 grep -v '^ *+' conftest.er1
>conftest.err
20365 cat conftest.err
>&5
20366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } && {
20368 test -z "$ac_c_werror_flag" ||
20369 test ! -s conftest.err
20370 } && test -s conftest
$ac_exeext && {
20371 test "$cross_compiling" = yes ||
20372 $as_test_x conftest
$ac_exeext
20374 ac_cv_have_sig_atomic_t
=yes
20376 $as_echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.
$ac_ext >&5
20379 ac_cv_have_sig_atomic_t
=no
20382 rm -rf conftest.dSYM
20383 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20384 conftest
$ac_exeext conftest.
$ac_ext
20386 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_sig_atomic_t" >&5
20387 $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
20388 if test "$ac_cv_have_sig_atomic_t" = "no"
20390 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
20391 $as_echo_n "checking for sig_atomic_t... " >&6; }
20392 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
20393 $as_echo_n "(cached) " >&6
20395 ac_cv_type_sig_atomic_t
=no
20396 cat >conftest.
$ac_ext <<_ACEOF
20399 cat confdefs.h
>>conftest.
$ac_ext
20400 cat >>conftest.
$ac_ext <<_ACEOF
20401 /* end confdefs.h. */
20402 $ac_includes_default
20406 if (sizeof (sig_atomic_t))
20412 rm -f conftest.
$ac_objext
20413 if { (ac_try
="$ac_compile"
20414 case "(($ac_try" in
20415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20416 *) ac_try_echo=$ac_try;;
20418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20419 $as_echo "$ac_try_echo") >&5
20420 (eval "$ac_compile") 2>conftest.er1
20422 grep -v '^ *+' conftest.er1 >conftest.err
20424 cat conftest.err >&5
20425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } && {
20427 test -z "$ac_c_werror_flag" ||
20428 test ! -s conftest.err
20429 } && test -s conftest.$ac_objext; then
20430 cat >conftest.$ac_ext <<_ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20436 $ac_includes_default
20440 if (sizeof ((sig_atomic_t)))
20446 rm -f conftest.$ac_objext
20447 if { (ac_try="$ac_compile"
20448 case "(($ac_try" in
20449 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20450 *) ac_try_echo
=$ac_try;;
20452 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20453 $as_echo "$ac_try_echo") >&5
20454 (eval "$ac_compile") 2>conftest.er1
20456 grep -v '^ *+' conftest.er1
>conftest.err
20458 cat conftest.err
>&5
20459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); } && {
20461 test -z "$ac_c_werror_flag" ||
20462 test ! -s conftest.err
20463 } && test -s conftest.
$ac_objext; then
20466 $as_echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.
$ac_ext >&5
20469 ac_cv_type_sig_atomic_t
=yes
20472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20474 $as_echo "$as_me: failed program was:" >&5
20475 sed 's/^/| /' conftest.
$ac_ext >&5
20480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20482 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
20483 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
20484 if test "x$ac_cv_type_sig_atomic_t" = x
""yes; then
20488 cat >>confdefs.h
<<_ACEOF
20489 #define sig_atomic_t int
20497 # The cast to long int works around a bug in the HP C Compiler
20498 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20499 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20500 # This bug is HP SR number 8606223364.
20501 { $as_echo "$as_me:$LINENO: checking size of char" >&5
20502 $as_echo_n "checking size of char... " >&6; }
20503 if test "${ac_cv_sizeof_char+set}" = set; then
20504 $as_echo_n "(cached) " >&6
20506 if test "$cross_compiling" = yes; then
20507 # Depending upon the size, compute the lo and hi bounds.
20508 cat >conftest.
$ac_ext <<_ACEOF
20511 cat confdefs.h
>>conftest.
$ac_ext
20512 cat >>conftest.
$ac_ext <<_ACEOF
20513 /* end confdefs.h. */
20514 $ac_includes_default
20518 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
20525 rm -f conftest.
$ac_objext
20526 if { (ac_try
="$ac_compile"
20527 case "(($ac_try" in
20528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20529 *) ac_try_echo=$ac_try;;
20531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20532 $as_echo "$ac_try_echo") >&5
20533 (eval "$ac_compile") 2>conftest.er1
20535 grep -v '^ *+' conftest.er1 >conftest.err
20537 cat conftest.err >&5
20538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); } && {
20540 test -z "$ac_c_werror_flag" ||
20541 test ! -s conftest.err
20542 } && test -s conftest.$ac_objext; then
20545 cat >conftest.$ac_ext <<_ACEOF
20548 cat confdefs.h >>conftest.$ac_ext
20549 cat >>conftest.$ac_ext <<_ACEOF
20550 /* end confdefs.h. */
20551 $ac_includes_default
20555 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
20562 rm -f conftest.$ac_objext
20563 if { (ac_try="$ac_compile"
20564 case "(($ac_try" in
20565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20566 *) ac_try_echo
=$ac_try;;
20568 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20569 $as_echo "$ac_try_echo") >&5
20570 (eval "$ac_compile") 2>conftest.er1
20572 grep -v '^ *+' conftest.er1
>conftest.err
20574 cat conftest.err
>&5
20575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); } && {
20577 test -z "$ac_c_werror_flag" ||
20578 test ! -s conftest.err
20579 } && test -s conftest.
$ac_objext; then
20580 ac_hi
=$ac_mid; break
20582 $as_echo "$as_me: failed program was:" >&5
20583 sed 's/^/| /' conftest.
$ac_ext >&5
20585 ac_lo
=`expr $ac_mid + 1`
20586 if test $ac_lo -le $ac_mid; then
20590 ac_mid
=`expr 2 '*' $ac_mid + 1`
20593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20596 $as_echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.
$ac_ext >&5
20599 cat >conftest.
$ac_ext <<_ACEOF
20602 cat confdefs.h
>>conftest.
$ac_ext
20603 cat >>conftest.
$ac_ext <<_ACEOF
20604 /* end confdefs.h. */
20605 $ac_includes_default
20609 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
20616 rm -f conftest.
$ac_objext
20617 if { (ac_try
="$ac_compile"
20618 case "(($ac_try" in
20619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20620 *) ac_try_echo=$ac_try;;
20622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20623 $as_echo "$ac_try_echo") >&5
20624 (eval "$ac_compile") 2>conftest.er1
20626 grep -v '^ *+' conftest.er1 >conftest.err
20628 cat conftest.err >&5
20629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); } && {
20631 test -z "$ac_c_werror_flag" ||
20632 test ! -s conftest.err
20633 } && test -s conftest.$ac_objext; then
20636 cat >conftest.$ac_ext <<_ACEOF
20639 cat confdefs.h >>conftest.$ac_ext
20640 cat >>conftest.$ac_ext <<_ACEOF
20641 /* end confdefs.h. */
20642 $ac_includes_default
20646 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
20653 rm -f conftest.$ac_objext
20654 if { (ac_try="$ac_compile"
20655 case "(($ac_try" in
20656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20657 *) ac_try_echo
=$ac_try;;
20659 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20660 $as_echo "$ac_try_echo") >&5
20661 (eval "$ac_compile") 2>conftest.er1
20663 grep -v '^ *+' conftest.er1
>conftest.err
20665 cat conftest.err
>&5
20666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); } && {
20668 test -z "$ac_c_werror_flag" ||
20669 test ! -s conftest.err
20670 } && test -s conftest.
$ac_objext; then
20671 ac_lo
=$ac_mid; break
20673 $as_echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.
$ac_ext >&5
20676 ac_hi
=`expr '(' $ac_mid ')' - 1`
20677 if test $ac_mid -le $ac_hi; then
20681 ac_mid
=`expr 2 '*' $ac_mid`
20684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20687 $as_echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.
$ac_ext >&5
20693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20697 # Binary search between lo and hi bounds.
20698 while test "x$ac_lo" != "x$ac_hi"; do
20699 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20700 cat >conftest.
$ac_ext <<_ACEOF
20703 cat confdefs.h
>>conftest.
$ac_ext
20704 cat >>conftest.
$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20706 $ac_includes_default
20710 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
20717 rm -f conftest.
$ac_objext
20718 if { (ac_try
="$ac_compile"
20719 case "(($ac_try" in
20720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20721 *) ac_try_echo=$ac_try;;
20723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20724 $as_echo "$ac_try_echo") >&5
20725 (eval "$ac_compile") 2>conftest.er1
20727 grep -v '^ *+' conftest.er1 >conftest.err
20729 cat conftest.err >&5
20730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } && {
20732 test -z "$ac_c_werror_flag" ||
20733 test ! -s conftest.err
20734 } && test -s conftest.$ac_objext; then
20737 $as_echo "$as_me: failed program was:" >&5
20738 sed 's/^/| /' conftest.$ac_ext >&5
20740 ac_lo=`expr '(' $ac_mid ')' + 1`
20743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20746 ?*) ac_cv_sizeof_char=$ac_lo;;
20747 '') if test "$ac_cv_type_char" = yes; then
20748 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20750 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(char
)
20751 See \
`config.log' for more details." >&5
20752 $as_echo "$as_me: error: cannot compute sizeof (char)
20753 See \`config.log
' for more details." >&2;}
20754 { (exit 77); exit 77; }; }; }
20756 ac_cv_sizeof_char=0
20760 cat >conftest.$ac_ext <<_ACEOF
20763 cat confdefs.h >>conftest.$ac_ext
20764 cat >>conftest.$ac_ext <<_ACEOF
20765 /* end confdefs.h. */
20766 $ac_includes_default
20767 static long int longval () { return (long int) (sizeof (char)); }
20768 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
20770 #include <stdlib.h>
20775 FILE *f = fopen ("conftest.val", "w");
20778 if (((long int) (sizeof (char))) < 0)
20780 long int i = longval ();
20781 if (i != ((long int) (sizeof (char))))
20783 fprintf (f, "%ld", i);
20787 unsigned long int i = ulongval ();
20788 if (i != ((long int) (sizeof (char))))
20790 fprintf (f, "%lu", i);
20792 /* Do not output a trailing newline, as this causes \r\n confusion
20793 on some platforms. */
20794 return ferror (f) || fclose (f) != 0;
20800 rm -f conftest$ac_exeext
20801 if { (ac_try="$ac_link"
20802 case "(($ac_try" in
20803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804 *) ac_try_echo=$ac_try;;
20806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20807 $as_echo "$ac_try_echo") >&5
20808 (eval "$ac_link") 2>&5
20810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
20812 { (case "(($ac_try" in
20813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20814 *) ac_try_echo=$ac_try;;
20816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20817 $as_echo "$ac_try_echo") >&5
20818 (eval "$ac_try") 2>&5
20820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; }; then
20822 ac_cv_sizeof_char=`cat conftest.val`
20824 $as_echo "$as_me: program exited with status $ac_status" >&5
20825 $as_echo "$as_me: failed program was:" >&5
20826 sed 's
/^
/|
/' conftest.$ac_ext >&5
20828 ( exit $ac_status )
20829 if test "$ac_cv_type_char" = yes; then
20830 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20831 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
20832 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20833 See \`config.log
' for more details." >&5
20834 $as_echo "$as_me: error: cannot compute sizeof (char)
20835 See \`config.log' for more details.
" >&2;}
20836 { (exit 77); exit 77; }; }; }
20838 ac_cv_sizeof_char=0
20841 rm -rf conftest.dSYM
20842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20846 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof_char" >&5
20847 $as_echo "$ac_cv_sizeof_char" >&6; }
20851 cat >>confdefs.h <<_ACEOF
20852 #define SIZEOF_CHAR $ac_cv_sizeof_char
20856 # The cast to long int works around a bug in the HP C Compiler
20857 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20858 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20859 # This bug is HP SR number 8606223364.
20860 { $as_echo "$as_me:$LINENO: checking size of short
" >&5
20861 $as_echo_n "checking size of short...
" >&6; }
20862 if test "${ac_cv_sizeof_short+set}" = set; then
20863 $as_echo_n "(cached
) " >&6
20865 if test "$cross_compiling" = yes; then
20866 # Depending upon the size, compute the lo and hi bounds.
20867 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 $ac_includes_default
20877 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
20884 rm -f conftest.$ac_objext
20885 if { (ac_try="$ac_compile"
20886 case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20890 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20891 $as_echo "$ac_try_echo") >&5
20892 (eval "$ac_compile") 2>conftest.er1
20894 grep -v '^ *+' conftest.er1 >conftest.err
20896 cat conftest.err >&5
20897 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20898 (exit $ac_status); } && {
20899 test -z "$ac_c_werror_flag" ||
20900 test ! -s conftest.err
20901 } && test -s conftest.$ac_objext; then
20904 cat >conftest.$ac_ext <<_ACEOF
20907 cat confdefs.h >>conftest.$ac_ext
20908 cat >>conftest.$ac_ext <<_ACEOF
20909 /* end confdefs.h. */
20910 $ac_includes_default
20914 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
20921 rm -f conftest.$ac_objext
20922 if { (ac_try="$ac_compile"
20923 case "(($ac_try" in
20924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925 *) ac_try_echo=$ac_try;;
20927 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20928 $as_echo "$ac_try_echo") >&5
20929 (eval "$ac_compile") 2>conftest.er1
20931 grep -v '^ *+' conftest.er1 >conftest.err
20933 cat conftest.err >&5
20934 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20935 (exit $ac_status); } && {
20936 test -z "$ac_c_werror_flag" ||
20937 test ! -s conftest.err
20938 } && test -s conftest.$ac_objext; then
20939 ac_hi=$ac_mid; break
20941 $as_echo "$as_me: failed program was
:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20944 ac_lo=`expr $ac_mid + 1`
20945 if test $ac_lo -le $ac_mid; then
20949 ac_mid=`expr 2 '*' $ac_mid + 1`
20952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20955 $as_echo "$as_me: failed program was
:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20958 cat >conftest.$ac_ext <<_ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h. */
20964 $ac_includes_default
20968 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
20975 rm -f conftest.$ac_objext
20976 if { (ac_try="$ac_compile"
20977 case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20981 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20982 $as_echo "$ac_try_echo") >&5
20983 (eval "$ac_compile") 2>conftest.er1
20985 grep -v '^ *+' conftest.er1 >conftest.err
20987 cat conftest.err >&5
20988 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20989 (exit $ac_status); } && {
20990 test -z "$ac_c_werror_flag" ||
20991 test ! -s conftest.err
20992 } && test -s conftest.$ac_objext; then
20995 cat >conftest.$ac_ext <<_ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h. */
21001 $ac_includes_default
21005 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
21012 rm -f conftest.$ac_objext
21013 if { (ac_try="$ac_compile"
21014 case "(($ac_try" in
21015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016 *) ac_try_echo=$ac_try;;
21018 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21019 $as_echo "$ac_try_echo") >&5
21020 (eval "$ac_compile") 2>conftest.er1
21022 grep -v '^ *+' conftest.er1 >conftest.err
21024 cat conftest.err >&5
21025 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21026 (exit $ac_status); } && {
21027 test -z "$ac_c_werror_flag" ||
21028 test ! -s conftest.err
21029 } && test -s conftest.$ac_objext; then
21030 ac_lo=$ac_mid; break
21032 $as_echo "$as_me: failed program was
:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21035 ac_hi=`expr '(' $ac_mid ')' - 1`
21036 if test $ac_mid -le $ac_hi; then
21040 ac_mid=`expr 2 '*' $ac_mid`
21043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21046 $as_echo "$as_me: failed program was
:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21056 # Binary search between lo and hi bounds.
21057 while test "x
$ac_lo" != "x
$ac_hi"; do
21058 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21059 cat >conftest.$ac_ext <<_ACEOF
21062 cat confdefs.h >>conftest.$ac_ext
21063 cat >>conftest.$ac_ext <<_ACEOF
21064 /* end confdefs.h. */
21065 $ac_includes_default
21069 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
21076 rm -f conftest.$ac_objext
21077 if { (ac_try="$ac_compile"
21078 case "(($ac_try" in
21079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080 *) ac_try_echo=$ac_try;;
21082 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21083 $as_echo "$ac_try_echo") >&5
21084 (eval "$ac_compile") 2>conftest.er1
21086 grep -v '^ *+' conftest.er1 >conftest.err
21088 cat conftest.err >&5
21089 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21090 (exit $ac_status); } && {
21091 test -z "$ac_c_werror_flag" ||
21092 test ! -s conftest.err
21093 } && test -s conftest.$ac_objext; then
21096 $as_echo "$as_me: failed program was
:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21099 ac_lo=`expr '(' $ac_mid ')' + 1`
21102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21105 ?*) ac_cv_sizeof_short=$ac_lo;;
21106 '') if test "$ac_cv_type_short" = yes; then
21107 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
21108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21109 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21110 See \`config.log' for more details.
" >&5
21111 $as_echo "$as_me: error
: cannot compute sizeof
(short
)
21112 See \
`config.log' for more details." >&2;}
21113 { (exit 77); exit 77; }; }; }
21115 ac_cv_sizeof_short=0
21119 cat >conftest.$ac_ext <<_ACEOF
21122 cat confdefs.h >>conftest.$ac_ext
21123 cat >>conftest.$ac_ext <<_ACEOF
21124 /* end confdefs.h. */
21125 $ac_includes_default
21126 static long int longval () { return (long int) (sizeof (short)); }
21127 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
21129 #include <stdlib.h>
21134 FILE *f = fopen ("conftest.val", "w");
21137 if (((long int) (sizeof (short))) < 0)
21139 long int i = longval ();
21140 if (i != ((long int) (sizeof (short))))
21142 fprintf (f, "%ld", i);
21146 unsigned long int i = ulongval ();
21147 if (i != ((long int) (sizeof (short))))
21149 fprintf (f, "%lu", i);
21151 /* Do not output a trailing newline, as this causes \r\n confusion
21152 on some platforms. */
21153 return ferror (f) || fclose (f) != 0;
21159 rm -f conftest$ac_exeext
21160 if { (ac_try="$ac_link"
21161 case "(($ac_try" in
21162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21163 *) ac_try_echo
=$ac_try;;
21165 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21166 $as_echo "$ac_try_echo") >&5
21167 (eval "$ac_link") 2>&5
21169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21171 { (case "(($ac_try" in
21172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21173 *) ac_try_echo=$ac_try;;
21175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21176 $as_echo "$ac_try_echo") >&5
21177 (eval "$ac_try") 2>&5
21179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); }; }; then
21181 ac_cv_sizeof_short=`cat conftest.val
`
21183 $as_echo "$as_me: program exited with status $ac_status" >&5
21184 $as_echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.$ac_ext >&5
21187 ( exit $ac_status )
21188 if test "$ac_cv_type_short" = yes; then
21189 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21191 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
21192 See \
`config.log' for more details." >&5
21193 $as_echo "$as_me: error: cannot compute sizeof (short)
21194 See \`config.log
' for more details." >&2;}
21195 { (exit 77); exit 77; }; }; }
21197 ac_cv_sizeof_short=0
21200 rm -rf conftest.dSYM
21201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21205 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21206 $as_echo "$ac_cv_sizeof_short" >&6; }
21210 cat >>confdefs.h <<_ACEOF
21211 #define SIZEOF_SHORT $ac_cv_sizeof_short
21215 # The cast to long int works around a bug in the HP C Compiler
21216 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21217 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21218 # This bug is HP SR number 8606223364.
21219 { $as_echo "$as_me:$LINENO: checking size of int" >&5
21220 $as_echo_n "checking size of int... " >&6; }
21221 if test "${ac_cv_sizeof_int+set}" = set; then
21222 $as_echo_n "(cached) " >&6
21224 if test "$cross_compiling" = yes; then
21225 # Depending upon the size, compute the lo and hi bounds.
21226 cat >conftest.
$ac_ext <<_ACEOF
21229 cat confdefs.h
>>conftest.
$ac_ext
21230 cat >>conftest.
$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 $ac_includes_default
21236 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
21243 rm -f conftest.
$ac_objext
21244 if { (ac_try
="$ac_compile"
21245 case "(($ac_try" in
21246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21247 *) ac_try_echo=$ac_try;;
21249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21250 $as_echo "$ac_try_echo") >&5
21251 (eval "$ac_compile") 2>conftest.er1
21253 grep -v '^ *+' conftest.er1 >conftest.err
21255 cat conftest.err >&5
21256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); } && {
21258 test -z "$ac_c_werror_flag" ||
21259 test ! -s conftest.err
21260 } && test -s conftest.$ac_objext; then
21263 cat >conftest.$ac_ext <<_ACEOF
21266 cat confdefs.h >>conftest.$ac_ext
21267 cat >>conftest.$ac_ext <<_ACEOF
21268 /* end confdefs.h. */
21269 $ac_includes_default
21273 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
21280 rm -f conftest.$ac_objext
21281 if { (ac_try="$ac_compile"
21282 case "(($ac_try" in
21283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21284 *) ac_try_echo
=$ac_try;;
21286 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21287 $as_echo "$ac_try_echo") >&5
21288 (eval "$ac_compile") 2>conftest.er1
21290 grep -v '^ *+' conftest.er1
>conftest.err
21292 cat conftest.err
>&5
21293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); } && {
21295 test -z "$ac_c_werror_flag" ||
21296 test ! -s conftest.err
21297 } && test -s conftest.
$ac_objext; then
21298 ac_hi
=$ac_mid; break
21300 $as_echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.
$ac_ext >&5
21303 ac_lo
=`expr $ac_mid + 1`
21304 if test $ac_lo -le $ac_mid; then
21308 ac_mid
=`expr 2 '*' $ac_mid + 1`
21311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21314 $as_echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.
$ac_ext >&5
21317 cat >conftest.
$ac_ext <<_ACEOF
21320 cat confdefs.h
>>conftest.
$ac_ext
21321 cat >>conftest.
$ac_ext <<_ACEOF
21322 /* end confdefs.h. */
21323 $ac_includes_default
21327 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
21334 rm -f conftest.
$ac_objext
21335 if { (ac_try
="$ac_compile"
21336 case "(($ac_try" in
21337 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21338 *) ac_try_echo=$ac_try;;
21340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21341 $as_echo "$ac_try_echo") >&5
21342 (eval "$ac_compile") 2>conftest.er1
21344 grep -v '^ *+' conftest.er1 >conftest.err
21346 cat conftest.err >&5
21347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } && {
21349 test -z "$ac_c_werror_flag" ||
21350 test ! -s conftest.err
21351 } && test -s conftest.$ac_objext; then
21354 cat >conftest.$ac_ext <<_ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h. */
21360 $ac_includes_default
21364 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
21371 rm -f conftest.$ac_objext
21372 if { (ac_try="$ac_compile"
21373 case "(($ac_try" in
21374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21375 *) ac_try_echo
=$ac_try;;
21377 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21378 $as_echo "$ac_try_echo") >&5
21379 (eval "$ac_compile") 2>conftest.er1
21381 grep -v '^ *+' conftest.er1
>conftest.err
21383 cat conftest.err
>&5
21384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } && {
21386 test -z "$ac_c_werror_flag" ||
21387 test ! -s conftest.err
21388 } && test -s conftest.
$ac_objext; then
21389 ac_lo
=$ac_mid; break
21391 $as_echo "$as_me: failed program was:" >&5
21392 sed 's/^/| /' conftest.
$ac_ext >&5
21394 ac_hi
=`expr '(' $ac_mid ')' - 1`
21395 if test $ac_mid -le $ac_hi; then
21399 ac_mid
=`expr 2 '*' $ac_mid`
21402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21405 $as_echo "$as_me: failed program was:" >&5
21406 sed 's/^/| /' conftest.
$ac_ext >&5
21411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21415 # Binary search between lo and hi bounds.
21416 while test "x$ac_lo" != "x$ac_hi"; do
21417 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21418 cat >conftest.
$ac_ext <<_ACEOF
21421 cat confdefs.h
>>conftest.
$ac_ext
21422 cat >>conftest.
$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21424 $ac_includes_default
21428 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
21435 rm -f conftest.
$ac_objext
21436 if { (ac_try
="$ac_compile"
21437 case "(($ac_try" in
21438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21439 *) ac_try_echo=$ac_try;;
21441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21442 $as_echo "$ac_try_echo") >&5
21443 (eval "$ac_compile") 2>conftest.er1
21445 grep -v '^ *+' conftest.er1 >conftest.err
21447 cat conftest.err >&5
21448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); } && {
21450 test -z "$ac_c_werror_flag" ||
21451 test ! -s conftest.err
21452 } && test -s conftest.$ac_objext; then
21455 $as_echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21458 ac_lo=`expr '(' $ac_mid ')' + 1`
21461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21464 ?*) ac_cv_sizeof_int=$ac_lo;;
21465 '') if test "$ac_cv_type_int" = yes; then
21466 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21468 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
21469 See \
`config.log' for more details." >&5
21470 $as_echo "$as_me: error: cannot compute sizeof (int)
21471 See \`config.log
' for more details." >&2;}
21472 { (exit 77); exit 77; }; }; }
21478 cat >conftest.$ac_ext <<_ACEOF
21481 cat confdefs.h >>conftest.$ac_ext
21482 cat >>conftest.$ac_ext <<_ACEOF
21483 /* end confdefs.h. */
21484 $ac_includes_default
21485 static long int longval () { return (long int) (sizeof (int)); }
21486 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
21488 #include <stdlib.h>
21493 FILE *f = fopen ("conftest.val", "w");
21496 if (((long int) (sizeof (int))) < 0)
21498 long int i = longval ();
21499 if (i != ((long int) (sizeof (int))))
21501 fprintf (f, "%ld", i);
21505 unsigned long int i = ulongval ();
21506 if (i != ((long int) (sizeof (int))))
21508 fprintf (f, "%lu", i);
21510 /* Do not output a trailing newline, as this causes \r\n confusion
21511 on some platforms. */
21512 return ferror (f) || fclose (f) != 0;
21518 rm -f conftest$ac_exeext
21519 if { (ac_try="$ac_link"
21520 case "(($ac_try" in
21521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21522 *) ac_try_echo=$ac_try;;
21524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21525 $as_echo "$ac_try_echo") >&5
21526 (eval "$ac_link") 2>&5
21528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
21530 { (case "(($ac_try" in
21531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21532 *) ac_try_echo=$ac_try;;
21534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21535 $as_echo "$ac_try_echo") >&5
21536 (eval "$ac_try") 2>&5
21538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; }; then
21540 ac_cv_sizeof_int=`cat conftest.val`
21542 $as_echo "$as_me: program exited with status $ac_status" >&5
21543 $as_echo "$as_me: failed program was:" >&5
21544 sed 's
/^
/|
/' conftest.$ac_ext >&5
21546 ( exit $ac_status )
21547 if test "$ac_cv_type_int" = yes; then
21548 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21549 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
21550 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21551 See \`config.log
' for more details." >&5
21552 $as_echo "$as_me: error: cannot compute sizeof (int)
21553 See \`config.log' for more details.
" >&2;}
21554 { (exit 77); exit 77; }; }; }
21559 rm -rf conftest.dSYM
21560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21564 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
21565 $as_echo "$ac_cv_sizeof_int" >&6; }
21569 cat >>confdefs.h <<_ACEOF
21570 #define SIZEOF_INT $ac_cv_sizeof_int
21574 # The cast to long int works around a bug in the HP C Compiler
21575 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21576 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21577 # This bug is HP SR number 8606223364.
21578 { $as_echo "$as_me:$LINENO: checking size of long
" >&5
21579 $as_echo_n "checking size of long...
" >&6; }
21580 if test "${ac_cv_sizeof_long+set}" = set; then
21581 $as_echo_n "(cached
) " >&6
21583 if test "$cross_compiling" = yes; then
21584 # Depending upon the size, compute the lo and hi bounds.
21585 cat >conftest.$ac_ext <<_ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h. */
21591 $ac_includes_default
21595 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
21602 rm -f conftest.$ac_objext
21603 if { (ac_try="$ac_compile"
21604 case "(($ac_try" in
21605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21606 *) ac_try_echo=$ac_try;;
21608 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21609 $as_echo "$ac_try_echo") >&5
21610 (eval "$ac_compile") 2>conftest.er1
21612 grep -v '^ *+' conftest.er1 >conftest.err
21614 cat conftest.err >&5
21615 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21616 (exit $ac_status); } && {
21617 test -z "$ac_c_werror_flag" ||
21618 test ! -s conftest.err
21619 } && test -s conftest.$ac_objext; then
21622 cat >conftest.$ac_ext <<_ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h. */
21628 $ac_includes_default
21632 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
21639 rm -f conftest.$ac_objext
21640 if { (ac_try="$ac_compile"
21641 case "(($ac_try" in
21642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21643 *) ac_try_echo=$ac_try;;
21645 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21646 $as_echo "$ac_try_echo") >&5
21647 (eval "$ac_compile") 2>conftest.er1
21649 grep -v '^ *+' conftest.er1 >conftest.err
21651 cat conftest.err >&5
21652 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21653 (exit $ac_status); } && {
21654 test -z "$ac_c_werror_flag" ||
21655 test ! -s conftest.err
21656 } && test -s conftest.$ac_objext; then
21657 ac_hi=$ac_mid; break
21659 $as_echo "$as_me: failed program was
:" >&5
21660 sed 's/^/| /' conftest.$ac_ext >&5
21662 ac_lo=`expr $ac_mid + 1`
21663 if test $ac_lo -le $ac_mid; then
21667 ac_mid=`expr 2 '*' $ac_mid + 1`
21670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21673 $as_echo "$as_me: failed program was
:" >&5
21674 sed 's/^/| /' conftest.$ac_ext >&5
21676 cat >conftest.$ac_ext <<_ACEOF
21679 cat confdefs.h >>conftest.$ac_ext
21680 cat >>conftest.$ac_ext <<_ACEOF
21681 /* end confdefs.h. */
21682 $ac_includes_default
21686 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
21693 rm -f conftest.$ac_objext
21694 if { (ac_try="$ac_compile"
21695 case "(($ac_try" in
21696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697 *) ac_try_echo=$ac_try;;
21699 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21700 $as_echo "$ac_try_echo") >&5
21701 (eval "$ac_compile") 2>conftest.er1
21703 grep -v '^ *+' conftest.er1 >conftest.err
21705 cat conftest.err >&5
21706 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21707 (exit $ac_status); } && {
21708 test -z "$ac_c_werror_flag" ||
21709 test ! -s conftest.err
21710 } && test -s conftest.$ac_objext; then
21713 cat >conftest.$ac_ext <<_ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h. */
21719 $ac_includes_default
21723 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
21730 rm -f conftest.$ac_objext
21731 if { (ac_try="$ac_compile"
21732 case "(($ac_try" in
21733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21734 *) ac_try_echo=$ac_try;;
21736 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21737 $as_echo "$ac_try_echo") >&5
21738 (eval "$ac_compile") 2>conftest.er1
21740 grep -v '^ *+' conftest.er1 >conftest.err
21742 cat conftest.err >&5
21743 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21744 (exit $ac_status); } && {
21745 test -z "$ac_c_werror_flag" ||
21746 test ! -s conftest.err
21747 } && test -s conftest.$ac_objext; then
21748 ac_lo=$ac_mid; break
21750 $as_echo "$as_me: failed program was
:" >&5
21751 sed 's/^/| /' conftest.$ac_ext >&5
21753 ac_hi=`expr '(' $ac_mid ')' - 1`
21754 if test $ac_mid -le $ac_hi; then
21758 ac_mid=`expr 2 '*' $ac_mid`
21761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21764 $as_echo "$as_me: failed program was
:" >&5
21765 sed 's/^/| /' conftest.$ac_ext >&5
21770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21774 # Binary search between lo and hi bounds.
21775 while test "x
$ac_lo" != "x
$ac_hi"; do
21776 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21777 cat >conftest.$ac_ext <<_ACEOF
21780 cat confdefs.h >>conftest.$ac_ext
21781 cat >>conftest.$ac_ext <<_ACEOF
21782 /* end confdefs.h. */
21783 $ac_includes_default
21787 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
21794 rm -f conftest.$ac_objext
21795 if { (ac_try="$ac_compile"
21796 case "(($ac_try" in
21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798 *) ac_try_echo=$ac_try;;
21800 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21801 $as_echo "$ac_try_echo") >&5
21802 (eval "$ac_compile") 2>conftest.er1
21804 grep -v '^ *+' conftest.er1 >conftest.err
21806 cat conftest.err >&5
21807 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21808 (exit $ac_status); } && {
21809 test -z "$ac_c_werror_flag" ||
21810 test ! -s conftest.err
21811 } && test -s conftest.$ac_objext; then
21814 $as_echo "$as_me: failed program was
:" >&5
21815 sed 's/^/| /' conftest.$ac_ext >&5
21817 ac_lo=`expr '(' $ac_mid ')' + 1`
21820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21823 ?*) ac_cv_sizeof_long=$ac_lo;;
21824 '') if test "$ac_cv_type_long" = yes; then
21825 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
21826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21827 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21828 See \`config.log' for more details.
" >&5
21829 $as_echo "$as_me: error
: cannot compute sizeof
(long
)
21830 See \
`config.log' for more details." >&2;}
21831 { (exit 77); exit 77; }; }; }
21833 ac_cv_sizeof_long=0
21837 cat >conftest.$ac_ext <<_ACEOF
21840 cat confdefs.h >>conftest.$ac_ext
21841 cat >>conftest.$ac_ext <<_ACEOF
21842 /* end confdefs.h. */
21843 $ac_includes_default
21844 static long int longval () { return (long int) (sizeof (long)); }
21845 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
21847 #include <stdlib.h>
21852 FILE *f = fopen ("conftest.val", "w");
21855 if (((long int) (sizeof (long))) < 0)
21857 long int i = longval ();
21858 if (i != ((long int) (sizeof (long))))
21860 fprintf (f, "%ld", i);
21864 unsigned long int i = ulongval ();
21865 if (i != ((long int) (sizeof (long))))
21867 fprintf (f, "%lu", i);
21869 /* Do not output a trailing newline, as this causes \r\n confusion
21870 on some platforms. */
21871 return ferror (f) || fclose (f) != 0;
21877 rm -f conftest$ac_exeext
21878 if { (ac_try="$ac_link"
21879 case "(($ac_try" in
21880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21881 *) ac_try_echo
=$ac_try;;
21883 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21884 $as_echo "$ac_try_echo") >&5
21885 (eval "$ac_link") 2>&5
21887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21889 { (case "(($ac_try" in
21890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21891 *) ac_try_echo=$ac_try;;
21893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21894 $as_echo "$ac_try_echo") >&5
21895 (eval "$ac_try") 2>&5
21897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; }; then
21899 ac_cv_sizeof_long=`cat conftest.val
`
21901 $as_echo "$as_me: program exited with status $ac_status" >&5
21902 $as_echo "$as_me: failed program was:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21905 ( exit $ac_status )
21906 if test "$ac_cv_type_long" = yes; then
21907 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21909 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
21910 See \
`config.log' for more details." >&5
21911 $as_echo "$as_me: error: cannot compute sizeof (long)
21912 See \`config.log
' for more details." >&2;}
21913 { (exit 77); exit 77; }; }; }
21915 ac_cv_sizeof_long=0
21918 rm -rf conftest.dSYM
21919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21923 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21924 $as_echo "$ac_cv_sizeof_long" >&6; }
21928 cat >>confdefs.h <<_ACEOF
21929 #define SIZEOF_LONG $ac_cv_sizeof_long
21933 # The cast to long int works around a bug in the HP C Compiler
21934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21936 # This bug is HP SR number 8606223364.
21937 { $as_echo "$as_me:$LINENO: checking size of char *" >&5
21938 $as_echo_n "checking size of char *... " >&6; }
21939 if test "${ac_cv_sizeof_char_p+set}" = set; then
21940 $as_echo_n "(cached) " >&6
21942 if test "$cross_compiling" = yes; then
21943 # Depending upon the size, compute the lo and hi bounds.
21944 cat >conftest.
$ac_ext <<_ACEOF
21947 cat confdefs.h
>>conftest.
$ac_ext
21948 cat >>conftest.
$ac_ext <<_ACEOF
21949 /* end confdefs.h. */
21950 $ac_includes_default
21954 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= 0)];
21961 rm -f conftest.
$ac_objext
21962 if { (ac_try
="$ac_compile"
21963 case "(($ac_try" in
21964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21965 *) ac_try_echo=$ac_try;;
21967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21968 $as_echo "$ac_try_echo") >&5
21969 (eval "$ac_compile") 2>conftest.er1
21971 grep -v '^ *+' conftest.er1 >conftest.err
21973 cat conftest.err >&5
21974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); } && {
21976 test -z "$ac_c_werror_flag" ||
21977 test ! -s conftest.err
21978 } && test -s conftest.$ac_objext; then
21981 cat >conftest.$ac_ext <<_ACEOF
21984 cat confdefs.h >>conftest.$ac_ext
21985 cat >>conftest.$ac_ext <<_ACEOF
21986 /* end confdefs.h. */
21987 $ac_includes_default
21991 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
21998 rm -f conftest.$ac_objext
21999 if { (ac_try="$ac_compile"
22000 case "(($ac_try" in
22001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22002 *) ac_try_echo
=$ac_try;;
22004 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22005 $as_echo "$ac_try_echo") >&5
22006 (eval "$ac_compile") 2>conftest.er1
22008 grep -v '^ *+' conftest.er1
>conftest.err
22010 cat conftest.err
>&5
22011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); } && {
22013 test -z "$ac_c_werror_flag" ||
22014 test ! -s conftest.err
22015 } && test -s conftest.
$ac_objext; then
22016 ac_hi
=$ac_mid; break
22018 $as_echo "$as_me: failed program was:" >&5
22019 sed 's/^/| /' conftest.
$ac_ext >&5
22021 ac_lo
=`expr $ac_mid + 1`
22022 if test $ac_lo -le $ac_mid; then
22026 ac_mid
=`expr 2 '*' $ac_mid + 1`
22029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22032 $as_echo "$as_me: failed program was:" >&5
22033 sed 's/^/| /' conftest.
$ac_ext >&5
22035 cat >conftest.
$ac_ext <<_ACEOF
22038 cat confdefs.h
>>conftest.
$ac_ext
22039 cat >>conftest.
$ac_ext <<_ACEOF
22040 /* end confdefs.h. */
22041 $ac_includes_default
22045 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) < 0)];
22052 rm -f conftest.
$ac_objext
22053 if { (ac_try
="$ac_compile"
22054 case "(($ac_try" in
22055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22056 *) ac_try_echo=$ac_try;;
22058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22059 $as_echo "$ac_try_echo") >&5
22060 (eval "$ac_compile") 2>conftest.er1
22062 grep -v '^ *+' conftest.er1 >conftest.err
22064 cat conftest.err >&5
22065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } && {
22067 test -z "$ac_c_werror_flag" ||
22068 test ! -s conftest.err
22069 } && test -s conftest.$ac_objext; then
22072 cat >conftest.$ac_ext <<_ACEOF
22075 cat confdefs.h >>conftest.$ac_ext
22076 cat >>conftest.$ac_ext <<_ACEOF
22077 /* end confdefs.h. */
22078 $ac_includes_default
22082 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)];
22089 rm -f conftest.$ac_objext
22090 if { (ac_try="$ac_compile"
22091 case "(($ac_try" in
22092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22093 *) ac_try_echo
=$ac_try;;
22095 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22096 $as_echo "$ac_try_echo") >&5
22097 (eval "$ac_compile") 2>conftest.er1
22099 grep -v '^ *+' conftest.er1
>conftest.err
22101 cat conftest.err
>&5
22102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); } && {
22104 test -z "$ac_c_werror_flag" ||
22105 test ! -s conftest.err
22106 } && test -s conftest.
$ac_objext; then
22107 ac_lo
=$ac_mid; break
22109 $as_echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.
$ac_ext >&5
22112 ac_hi
=`expr '(' $ac_mid ')' - 1`
22113 if test $ac_mid -le $ac_hi; then
22117 ac_mid
=`expr 2 '*' $ac_mid`
22120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22123 $as_echo "$as_me: failed program was:" >&5
22124 sed 's/^/| /' conftest.
$ac_ext >&5
22129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22133 # Binary search between lo and hi bounds.
22134 while test "x$ac_lo" != "x$ac_hi"; do
22135 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22136 cat >conftest.
$ac_ext <<_ACEOF
22139 cat confdefs.h
>>conftest.
$ac_ext
22140 cat >>conftest.
$ac_ext <<_ACEOF
22141 /* end confdefs.h. */
22142 $ac_includes_default
22146 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
22153 rm -f conftest.
$ac_objext
22154 if { (ac_try
="$ac_compile"
22155 case "(($ac_try" in
22156 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22157 *) ac_try_echo=$ac_try;;
22159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22160 $as_echo "$ac_try_echo") >&5
22161 (eval "$ac_compile") 2>conftest.er1
22163 grep -v '^ *+' conftest.er1 >conftest.err
22165 cat conftest.err >&5
22166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); } && {
22168 test -z "$ac_c_werror_flag" ||
22169 test ! -s conftest.err
22170 } && test -s conftest.$ac_objext; then
22173 $as_echo "$as_me: failed program was:" >&5
22174 sed 's/^/| /' conftest.$ac_ext >&5
22176 ac_lo=`expr '(' $ac_mid ')' + 1`
22179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22182 ?*) ac_cv_sizeof_char_p=$ac_lo;;
22183 '') if test "$ac_cv_type_char_p" = yes; then
22184 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22186 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(char
*)
22187 See \
`config.log' for more details." >&5
22188 $as_echo "$as_me: error: cannot compute sizeof (char *)
22189 See \`config.log
' for more details." >&2;}
22190 { (exit 77); exit 77; }; }; }
22192 ac_cv_sizeof_char_p=0
22196 cat >conftest.$ac_ext <<_ACEOF
22199 cat confdefs.h >>conftest.$ac_ext
22200 cat >>conftest.$ac_ext <<_ACEOF
22201 /* end confdefs.h. */
22202 $ac_includes_default
22203 static long int longval () { return (long int) (sizeof (char *)); }
22204 static unsigned long int ulongval () { return (long int) (sizeof (char *)); }
22206 #include <stdlib.h>
22211 FILE *f = fopen ("conftest.val", "w");
22214 if (((long int) (sizeof (char *))) < 0)
22216 long int i = longval ();
22217 if (i != ((long int) (sizeof (char *))))
22219 fprintf (f, "%ld", i);
22223 unsigned long int i = ulongval ();
22224 if (i != ((long int) (sizeof (char *))))
22226 fprintf (f, "%lu", i);
22228 /* Do not output a trailing newline, as this causes \r\n confusion
22229 on some platforms. */
22230 return ferror (f) || fclose (f) != 0;
22236 rm -f conftest$ac_exeext
22237 if { (ac_try="$ac_link"
22238 case "(($ac_try" in
22239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22240 *) ac_try_echo=$ac_try;;
22242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22243 $as_echo "$ac_try_echo") >&5
22244 (eval "$ac_link") 2>&5
22246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22248 { (case "(($ac_try" in
22249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22250 *) ac_try_echo=$ac_try;;
22252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22253 $as_echo "$ac_try_echo") >&5
22254 (eval "$ac_try") 2>&5
22256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); }; }; then
22258 ac_cv_sizeof_char_p=`cat conftest.val`
22260 $as_echo "$as_me: program exited with status $ac_status" >&5
22261 $as_echo "$as_me: failed program was:" >&5
22262 sed 's
/^
/|
/' conftest.$ac_ext >&5
22264 ( exit $ac_status )
22265 if test "$ac_cv_type_char_p" = yes; then
22266 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22267 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
22268 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
22269 See \`config.log
' for more details." >&5
22270 $as_echo "$as_me: error: cannot compute sizeof (char *)
22271 See \`config.log' for more details.
" >&2;}
22272 { (exit 77); exit 77; }; }; }
22274 ac_cv_sizeof_char_p=0
22277 rm -rf conftest.dSYM
22278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22282 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof_char_p" >&5
22283 $as_echo "$ac_cv_sizeof_char_p" >&6; }
22287 cat >>confdefs.h <<_ACEOF
22288 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
22292 # The cast to long int works around a bug in the HP C Compiler
22293 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22294 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22295 # This bug is HP SR number 8606223364.
22296 { $as_echo "$as_me:$LINENO: checking size of double
" >&5
22297 $as_echo_n "checking size of double...
" >&6; }
22298 if test "${ac_cv_sizeof_double+set}" = set; then
22299 $as_echo_n "(cached
) " >&6
22301 if test "$cross_compiling" = yes; then
22302 # Depending upon the size, compute the lo and hi bounds.
22303 cat >conftest.$ac_ext <<_ACEOF
22306 cat confdefs.h >>conftest.$ac_ext
22307 cat >>conftest.$ac_ext <<_ACEOF
22308 /* end confdefs.h. */
22309 $ac_includes_default
22313 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
22320 rm -f conftest.$ac_objext
22321 if { (ac_try="$ac_compile"
22322 case "(($ac_try" in
22323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324 *) ac_try_echo=$ac_try;;
22326 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22327 $as_echo "$ac_try_echo") >&5
22328 (eval "$ac_compile") 2>conftest.er1
22330 grep -v '^ *+' conftest.er1 >conftest.err
22332 cat conftest.err >&5
22333 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22334 (exit $ac_status); } && {
22335 test -z "$ac_c_werror_flag" ||
22336 test ! -s conftest.err
22337 } && test -s conftest.$ac_objext; then
22340 cat >conftest.$ac_ext <<_ACEOF
22343 cat confdefs.h >>conftest.$ac_ext
22344 cat >>conftest.$ac_ext <<_ACEOF
22345 /* end confdefs.h. */
22346 $ac_includes_default
22350 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
22357 rm -f conftest.$ac_objext
22358 if { (ac_try="$ac_compile"
22359 case "(($ac_try" in
22360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22361 *) ac_try_echo=$ac_try;;
22363 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22364 $as_echo "$ac_try_echo") >&5
22365 (eval "$ac_compile") 2>conftest.er1
22367 grep -v '^ *+' conftest.er1 >conftest.err
22369 cat conftest.err >&5
22370 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22371 (exit $ac_status); } && {
22372 test -z "$ac_c_werror_flag" ||
22373 test ! -s conftest.err
22374 } && test -s conftest.$ac_objext; then
22375 ac_hi=$ac_mid; break
22377 $as_echo "$as_me: failed program was
:" >&5
22378 sed 's/^/| /' conftest.$ac_ext >&5
22380 ac_lo=`expr $ac_mid + 1`
22381 if test $ac_lo -le $ac_mid; then
22385 ac_mid=`expr 2 '*' $ac_mid + 1`
22388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22391 $as_echo "$as_me: failed program was
:" >&5
22392 sed 's/^/| /' conftest.$ac_ext >&5
22394 cat >conftest.$ac_ext <<_ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h. */
22400 $ac_includes_default
22404 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
22411 rm -f conftest.$ac_objext
22412 if { (ac_try="$ac_compile"
22413 case "(($ac_try" in
22414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22415 *) ac_try_echo=$ac_try;;
22417 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22418 $as_echo "$ac_try_echo") >&5
22419 (eval "$ac_compile") 2>conftest.er1
22421 grep -v '^ *+' conftest.er1 >conftest.err
22423 cat conftest.err >&5
22424 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22425 (exit $ac_status); } && {
22426 test -z "$ac_c_werror_flag" ||
22427 test ! -s conftest.err
22428 } && test -s conftest.$ac_objext; then
22431 cat >conftest.$ac_ext <<_ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h. */
22437 $ac_includes_default
22441 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
22448 rm -f conftest.$ac_objext
22449 if { (ac_try="$ac_compile"
22450 case "(($ac_try" in
22451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22452 *) ac_try_echo=$ac_try;;
22454 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22455 $as_echo "$ac_try_echo") >&5
22456 (eval "$ac_compile") 2>conftest.er1
22458 grep -v '^ *+' conftest.er1 >conftest.err
22460 cat conftest.err >&5
22461 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22462 (exit $ac_status); } && {
22463 test -z "$ac_c_werror_flag" ||
22464 test ! -s conftest.err
22465 } && test -s conftest.$ac_objext; then
22466 ac_lo=$ac_mid; break
22468 $as_echo "$as_me: failed program was
:" >&5
22469 sed 's/^/| /' conftest.$ac_ext >&5
22471 ac_hi=`expr '(' $ac_mid ')' - 1`
22472 if test $ac_mid -le $ac_hi; then
22476 ac_mid=`expr 2 '*' $ac_mid`
22479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22482 $as_echo "$as_me: failed program was
:" >&5
22483 sed 's/^/| /' conftest.$ac_ext >&5
22488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22492 # Binary search between lo and hi bounds.
22493 while test "x
$ac_lo" != "x
$ac_hi"; do
22494 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22495 cat >conftest.$ac_ext <<_ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22501 $ac_includes_default
22505 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
22512 rm -f conftest.$ac_objext
22513 if { (ac_try="$ac_compile"
22514 case "(($ac_try" in
22515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516 *) ac_try_echo=$ac_try;;
22518 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22519 $as_echo "$ac_try_echo") >&5
22520 (eval "$ac_compile") 2>conftest.er1
22522 grep -v '^ *+' conftest.er1 >conftest.err
22524 cat conftest.err >&5
22525 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22526 (exit $ac_status); } && {
22527 test -z "$ac_c_werror_flag" ||
22528 test ! -s conftest.err
22529 } && test -s conftest.$ac_objext; then
22532 $as_echo "$as_me: failed program was
:" >&5
22533 sed 's/^/| /' conftest.$ac_ext >&5
22535 ac_lo=`expr '(' $ac_mid ')' + 1`
22538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22541 ?*) ac_cv_sizeof_double=$ac_lo;;
22542 '') if test "$ac_cv_type_double" = yes; then
22543 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
22544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22545 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
22546 See \`config.log' for more details.
" >&5
22547 $as_echo "$as_me: error
: cannot compute sizeof
(double
)
22548 See \
`config.log' for more details." >&2;}
22549 { (exit 77); exit 77; }; }; }
22551 ac_cv_sizeof_double=0
22555 cat >conftest.$ac_ext <<_ACEOF
22558 cat confdefs.h >>conftest.$ac_ext
22559 cat >>conftest.$ac_ext <<_ACEOF
22560 /* end confdefs.h. */
22561 $ac_includes_default
22562 static long int longval () { return (long int) (sizeof (double)); }
22563 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
22565 #include <stdlib.h>
22570 FILE *f = fopen ("conftest.val", "w");
22573 if (((long int) (sizeof (double))) < 0)
22575 long int i = longval ();
22576 if (i != ((long int) (sizeof (double))))
22578 fprintf (f, "%ld", i);
22582 unsigned long int i = ulongval ();
22583 if (i != ((long int) (sizeof (double))))
22585 fprintf (f, "%lu", i);
22587 /* Do not output a trailing newline, as this causes \r\n confusion
22588 on some platforms. */
22589 return ferror (f) || fclose (f) != 0;
22595 rm -f conftest$ac_exeext
22596 if { (ac_try="$ac_link"
22597 case "(($ac_try" in
22598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22599 *) ac_try_echo
=$ac_try;;
22601 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22602 $as_echo "$ac_try_echo") >&5
22603 (eval "$ac_link") 2>&5
22605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22607 { (case "(($ac_try" in
22608 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22609 *) ac_try_echo=$ac_try;;
22611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22612 $as_echo "$ac_try_echo") >&5
22613 (eval "$ac_try") 2>&5
22615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); }; }; then
22617 ac_cv_sizeof_double=`cat conftest.val
`
22619 $as_echo "$as_me: program exited with status $ac_status" >&5
22620 $as_echo "$as_me: failed program was:" >&5
22621 sed 's/^/| /' conftest.$ac_ext >&5
22623 ( exit $ac_status )
22624 if test "$ac_cv_type_double" = yes; then
22625 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22627 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
22628 See \
`config.log' for more details." >&5
22629 $as_echo "$as_me: error: cannot compute sizeof (double)
22630 See \`config.log
' for more details." >&2;}
22631 { (exit 77); exit 77; }; }; }
22633 ac_cv_sizeof_double=0
22636 rm -rf conftest.dSYM
22637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22641 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
22642 $as_echo "$ac_cv_sizeof_double" >&6; }
22646 cat >>confdefs.h <<_ACEOF
22647 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
22651 # The cast to long int works around a bug in the HP C Compiler
22652 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22653 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22654 # This bug is HP SR number 8606223364.
22655 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
22656 $as_echo_n "checking size of long long... " >&6; }
22657 if test "${ac_cv_sizeof_long_long+set}" = set; then
22658 $as_echo_n "(cached) " >&6
22660 if test "$cross_compiling" = yes; then
22661 # Depending upon the size, compute the lo and hi bounds.
22662 cat >conftest.
$ac_ext <<_ACEOF
22665 cat confdefs.h
>>conftest.
$ac_ext
22666 cat >>conftest.
$ac_ext <<_ACEOF
22667 /* end confdefs.h. */
22668 $ac_includes_default
22672 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
22679 rm -f conftest.
$ac_objext
22680 if { (ac_try
="$ac_compile"
22681 case "(($ac_try" in
22682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22683 *) ac_try_echo=$ac_try;;
22685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22686 $as_echo "$ac_try_echo") >&5
22687 (eval "$ac_compile") 2>conftest.er1
22689 grep -v '^ *+' conftest.er1 >conftest.err
22691 cat conftest.err >&5
22692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); } && {
22694 test -z "$ac_c_werror_flag" ||
22695 test ! -s conftest.err
22696 } && test -s conftest.$ac_objext; then
22699 cat >conftest.$ac_ext <<_ACEOF
22702 cat confdefs.h >>conftest.$ac_ext
22703 cat >>conftest.$ac_ext <<_ACEOF
22704 /* end confdefs.h. */
22705 $ac_includes_default
22709 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
22716 rm -f conftest.$ac_objext
22717 if { (ac_try="$ac_compile"
22718 case "(($ac_try" in
22719 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22720 *) ac_try_echo
=$ac_try;;
22722 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22723 $as_echo "$ac_try_echo") >&5
22724 (eval "$ac_compile") 2>conftest.er1
22726 grep -v '^ *+' conftest.er1
>conftest.err
22728 cat conftest.err
>&5
22729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); } && {
22731 test -z "$ac_c_werror_flag" ||
22732 test ! -s conftest.err
22733 } && test -s conftest.
$ac_objext; then
22734 ac_hi
=$ac_mid; break
22736 $as_echo "$as_me: failed program was:" >&5
22737 sed 's/^/| /' conftest.
$ac_ext >&5
22739 ac_lo
=`expr $ac_mid + 1`
22740 if test $ac_lo -le $ac_mid; then
22744 ac_mid
=`expr 2 '*' $ac_mid + 1`
22747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22750 $as_echo "$as_me: failed program was:" >&5
22751 sed 's/^/| /' conftest.
$ac_ext >&5
22753 cat >conftest.
$ac_ext <<_ACEOF
22756 cat confdefs.h
>>conftest.
$ac_ext
22757 cat >>conftest.
$ac_ext <<_ACEOF
22758 /* end confdefs.h. */
22759 $ac_includes_default
22763 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
22770 rm -f conftest.
$ac_objext
22771 if { (ac_try
="$ac_compile"
22772 case "(($ac_try" in
22773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22774 *) ac_try_echo=$ac_try;;
22776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22777 $as_echo "$ac_try_echo") >&5
22778 (eval "$ac_compile") 2>conftest.er1
22780 grep -v '^ *+' conftest.er1 >conftest.err
22782 cat conftest.err >&5
22783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); } && {
22785 test -z "$ac_c_werror_flag" ||
22786 test ! -s conftest.err
22787 } && test -s conftest.$ac_objext; then
22790 cat >conftest.$ac_ext <<_ACEOF
22793 cat confdefs.h >>conftest.$ac_ext
22794 cat >>conftest.$ac_ext <<_ACEOF
22795 /* end confdefs.h. */
22796 $ac_includes_default
22800 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
22807 rm -f conftest.$ac_objext
22808 if { (ac_try="$ac_compile"
22809 case "(($ac_try" in
22810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22811 *) ac_try_echo
=$ac_try;;
22813 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22814 $as_echo "$ac_try_echo") >&5
22815 (eval "$ac_compile") 2>conftest.er1
22817 grep -v '^ *+' conftest.er1
>conftest.err
22819 cat conftest.err
>&5
22820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); } && {
22822 test -z "$ac_c_werror_flag" ||
22823 test ! -s conftest.err
22824 } && test -s conftest.
$ac_objext; then
22825 ac_lo
=$ac_mid; break
22827 $as_echo "$as_me: failed program was:" >&5
22828 sed 's/^/| /' conftest.
$ac_ext >&5
22830 ac_hi
=`expr '(' $ac_mid ')' - 1`
22831 if test $ac_mid -le $ac_hi; then
22835 ac_mid
=`expr 2 '*' $ac_mid`
22838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22841 $as_echo "$as_me: failed program was:" >&5
22842 sed 's/^/| /' conftest.
$ac_ext >&5
22847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22851 # Binary search between lo and hi bounds.
22852 while test "x$ac_lo" != "x$ac_hi"; do
22853 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22854 cat >conftest.
$ac_ext <<_ACEOF
22857 cat confdefs.h
>>conftest.
$ac_ext
22858 cat >>conftest.
$ac_ext <<_ACEOF
22859 /* end confdefs.h. */
22860 $ac_includes_default
22864 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
22871 rm -f conftest.
$ac_objext
22872 if { (ac_try
="$ac_compile"
22873 case "(($ac_try" in
22874 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22875 *) ac_try_echo=$ac_try;;
22877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22878 $as_echo "$ac_try_echo") >&5
22879 (eval "$ac_compile") 2>conftest.er1
22881 grep -v '^ *+' conftest.er1 >conftest.err
22883 cat conftest.err >&5
22884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } && {
22886 test -z "$ac_c_werror_flag" ||
22887 test ! -s conftest.err
22888 } && test -s conftest.$ac_objext; then
22891 $as_echo "$as_me: failed program was:" >&5
22892 sed 's/^/| /' conftest.$ac_ext >&5
22894 ac_lo=`expr '(' $ac_mid ')' + 1`
22897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22900 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22901 '') if test "$ac_cv_type_long_long" = yes; then
22902 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22904 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
22905 See \
`config.log' for more details." >&5
22906 $as_echo "$as_me: error: cannot compute sizeof (long long)
22907 See \`config.log
' for more details." >&2;}
22908 { (exit 77); exit 77; }; }; }
22910 ac_cv_sizeof_long_long=0
22914 cat >conftest.$ac_ext <<_ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h. */
22920 $ac_includes_default
22921 static long int longval () { return (long int) (sizeof (long long)); }
22922 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
22924 #include <stdlib.h>
22929 FILE *f = fopen ("conftest.val", "w");
22932 if (((long int) (sizeof (long long))) < 0)
22934 long int i = longval ();
22935 if (i != ((long int) (sizeof (long long))))
22937 fprintf (f, "%ld", i);
22941 unsigned long int i = ulongval ();
22942 if (i != ((long int) (sizeof (long long))))
22944 fprintf (f, "%lu", i);
22946 /* Do not output a trailing newline, as this causes \r\n confusion
22947 on some platforms. */
22948 return ferror (f) || fclose (f) != 0;
22954 rm -f conftest$ac_exeext
22955 if { (ac_try="$ac_link"
22956 case "(($ac_try" in
22957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22958 *) ac_try_echo=$ac_try;;
22960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22961 $as_echo "$ac_try_echo") >&5
22962 (eval "$ac_link") 2>&5
22964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22966 { (case "(($ac_try" in
22967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22968 *) ac_try_echo=$ac_try;;
22970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22971 $as_echo "$ac_try_echo") >&5
22972 (eval "$ac_try") 2>&5
22974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); }; }; then
22976 ac_cv_sizeof_long_long=`cat conftest.val`
22978 $as_echo "$as_me: program exited with status $ac_status" >&5
22979 $as_echo "$as_me: failed program was:" >&5
22980 sed 's
/^
/|
/' conftest.$ac_ext >&5
22982 ( exit $ac_status )
22983 if test "$ac_cv_type_long_long" = yes; then
22984 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22985 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
22986 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22987 See \`config.log
' for more details." >&5
22988 $as_echo "$as_me: error: cannot compute sizeof (long long)
22989 See \`config.log' for more details.
" >&2;}
22990 { (exit 77); exit 77; }; }; }
22992 ac_cv_sizeof_long_long=0
22995 rm -rf conftest.dSYM
22996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23000 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof_long_long" >&5
23001 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23005 cat >>confdefs.h <<_ACEOF
23006 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23011 { $as_echo "$as_me:$LINENO: checking
for u_int
" >&5
23012 $as_echo_n "checking
for u_int...
" >&6; }
23013 if test "${ac_cv_type_u_int+set}" = set; then
23014 $as_echo_n "(cached
) " >&6
23016 ac_cv_type_u_int=no
23017 cat >conftest.$ac_ext <<_ACEOF
23020 cat confdefs.h >>conftest.$ac_ext
23021 cat >>conftest.$ac_ext <<_ACEOF
23022 /* end confdefs.h. */
23023 $ac_includes_default
23027 if (sizeof (u_int))
23033 rm -f conftest.$ac_objext
23034 if { (ac_try="$ac_compile"
23035 case "(($ac_try" in
23036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037 *) ac_try_echo=$ac_try;;
23039 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23040 $as_echo "$ac_try_echo") >&5
23041 (eval "$ac_compile") 2>conftest.er1
23043 grep -v '^ *+' conftest.er1 >conftest.err
23045 cat conftest.err >&5
23046 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23047 (exit $ac_status); } && {
23048 test -z "$ac_c_werror_flag" ||
23049 test ! -s conftest.err
23050 } && test -s conftest.$ac_objext; then
23051 cat >conftest.$ac_ext <<_ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h. */
23057 $ac_includes_default
23061 if (sizeof ((u_int)))
23067 rm -f conftest.$ac_objext
23068 if { (ac_try="$ac_compile"
23069 case "(($ac_try" in
23070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23071 *) ac_try_echo=$ac_try;;
23073 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23074 $as_echo "$ac_try_echo") >&5
23075 (eval "$ac_compile") 2>conftest.er1
23077 grep -v '^ *+' conftest.er1 >conftest.err
23079 cat conftest.err >&5
23080 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23081 (exit $ac_status); } && {
23082 test -z "$ac_c_werror_flag" ||
23083 test ! -s conftest.err
23084 } && test -s conftest.$ac_objext; then
23087 $as_echo "$as_me: failed program was
:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23090 ac_cv_type_u_int=yes
23093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23095 $as_echo "$as_me: failed program was
:" >&5
23096 sed 's/^/| /' conftest.$ac_ext >&5
23101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23103 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_u_int" >&5
23104 $as_echo "$ac_cv_type_u_int" >&6; }
23105 if test "x
$ac_cv_type_u_int" = x""yes; then
23109 cat >>confdefs.h <<_ACEOF
23110 #define u_int unsigned int
23115 { $as_echo "$as_me:$LINENO: checking
for u_long
" >&5
23116 $as_echo_n "checking
for u_long...
" >&6; }
23117 if test "${ac_cv_type_u_long+set}" = set; then
23118 $as_echo_n "(cached
) " >&6
23120 ac_cv_type_u_long=no
23121 cat >conftest.$ac_ext <<_ACEOF
23124 cat confdefs.h >>conftest.$ac_ext
23125 cat >>conftest.$ac_ext <<_ACEOF
23126 /* end confdefs.h. */
23127 $ac_includes_default
23131 if (sizeof (u_long))
23137 rm -f conftest.$ac_objext
23138 if { (ac_try="$ac_compile"
23139 case "(($ac_try" in
23140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141 *) ac_try_echo=$ac_try;;
23143 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23144 $as_echo "$ac_try_echo") >&5
23145 (eval "$ac_compile") 2>conftest.er1
23147 grep -v '^ *+' conftest.er1 >conftest.err
23149 cat conftest.err >&5
23150 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23151 (exit $ac_status); } && {
23152 test -z "$ac_c_werror_flag" ||
23153 test ! -s conftest.err
23154 } && test -s conftest.$ac_objext; then
23155 cat >conftest.$ac_ext <<_ACEOF
23158 cat confdefs.h >>conftest.$ac_ext
23159 cat >>conftest.$ac_ext <<_ACEOF
23160 /* end confdefs.h. */
23161 $ac_includes_default
23165 if (sizeof ((u_long)))
23171 rm -f conftest.$ac_objext
23172 if { (ac_try="$ac_compile"
23173 case "(($ac_try" in
23174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23175 *) ac_try_echo=$ac_try;;
23177 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23178 $as_echo "$ac_try_echo") >&5
23179 (eval "$ac_compile") 2>conftest.er1
23181 grep -v '^ *+' conftest.er1 >conftest.err
23183 cat conftest.err >&5
23184 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23185 (exit $ac_status); } && {
23186 test -z "$ac_c_werror_flag" ||
23187 test ! -s conftest.err
23188 } && test -s conftest.$ac_objext; then
23191 $as_echo "$as_me: failed program was
:" >&5
23192 sed 's/^/| /' conftest.$ac_ext >&5
23194 ac_cv_type_u_long=yes
23197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23199 $as_echo "$as_me: failed program was
:" >&5
23200 sed 's/^/| /' conftest.$ac_ext >&5
23205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23207 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_u_long" >&5
23208 $as_echo "$ac_cv_type_u_long" >&6; }
23209 if test "x
$ac_cv_type_u_long" = x""yes; then
23213 cat >>confdefs.h <<_ACEOF
23214 #define u_long unsigned long
23221 if test "$ac_cv_sizeof_short" = 2; then
23222 { $as_echo "$as_me:$LINENO: checking
for bits16_t
" >&5
23223 $as_echo_n "checking
for bits16_t...
" >&6; }
23224 if test "${ac_cv_type_bits16_t+set}" = set; then
23225 $as_echo_n "(cached
) " >&6
23227 ac_cv_type_bits16_t=no
23228 cat >conftest.$ac_ext <<_ACEOF
23231 cat confdefs.h >>conftest.$ac_ext
23232 cat >>conftest.$ac_ext <<_ACEOF
23233 /* end confdefs.h. */
23234 $ac_includes_default
23238 if (sizeof (bits16_t))
23244 rm -f conftest.$ac_objext
23245 if { (ac_try="$ac_compile"
23246 case "(($ac_try" in
23247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23248 *) ac_try_echo=$ac_try;;
23250 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23251 $as_echo "$ac_try_echo") >&5
23252 (eval "$ac_compile") 2>conftest.er1
23254 grep -v '^ *+' conftest.er1 >conftest.err
23256 cat conftest.err >&5
23257 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23258 (exit $ac_status); } && {
23259 test -z "$ac_c_werror_flag" ||
23260 test ! -s conftest.err
23261 } && test -s conftest.$ac_objext; then
23262 cat >conftest.$ac_ext <<_ACEOF
23265 cat confdefs.h >>conftest.$ac_ext
23266 cat >>conftest.$ac_ext <<_ACEOF
23267 /* end confdefs.h. */
23268 $ac_includes_default
23272 if (sizeof ((bits16_t)))
23278 rm -f conftest.$ac_objext
23279 if { (ac_try="$ac_compile"
23280 case "(($ac_try" in
23281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23282 *) ac_try_echo=$ac_try;;
23284 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23285 $as_echo "$ac_try_echo") >&5
23286 (eval "$ac_compile") 2>conftest.er1
23288 grep -v '^ *+' conftest.er1 >conftest.err
23290 cat conftest.err >&5
23291 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23292 (exit $ac_status); } && {
23293 test -z "$ac_c_werror_flag" ||
23294 test ! -s conftest.err
23295 } && test -s conftest.$ac_objext; then
23298 $as_echo "$as_me: failed program was
:" >&5
23299 sed 's/^/| /' conftest.$ac_ext >&5
23301 ac_cv_type_bits16_t=yes
23304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23306 $as_echo "$as_me: failed program was
:" >&5
23307 sed 's/^/| /' conftest.$ac_ext >&5
23312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23314 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_bits16_t" >&5
23315 $as_echo "$ac_cv_type_bits16_t" >&6; }
23316 if test "x
$ac_cv_type_bits16_t" = x""yes; then
23320 cat >>confdefs.h <<_ACEOF
23321 #define bits16_t short
23326 elif test "$ac_cv_sizeof_char" = 2; then
23327 { $as_echo "$as_me:$LINENO: checking
for bits16_t
" >&5
23328 $as_echo_n "checking
for bits16_t...
" >&6; }
23329 if test "${ac_cv_type_bits16_t+set}" = set; then
23330 $as_echo_n "(cached
) " >&6
23332 ac_cv_type_bits16_t=no
23333 cat >conftest.$ac_ext <<_ACEOF
23336 cat confdefs.h >>conftest.$ac_ext
23337 cat >>conftest.$ac_ext <<_ACEOF
23338 /* end confdefs.h. */
23339 $ac_includes_default
23343 if (sizeof (bits16_t))
23349 rm -f conftest.$ac_objext
23350 if { (ac_try="$ac_compile"
23351 case "(($ac_try" in
23352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23353 *) ac_try_echo=$ac_try;;
23355 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23356 $as_echo "$ac_try_echo") >&5
23357 (eval "$ac_compile") 2>conftest.er1
23359 grep -v '^ *+' conftest.er1 >conftest.err
23361 cat conftest.err >&5
23362 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23363 (exit $ac_status); } && {
23364 test -z "$ac_c_werror_flag" ||
23365 test ! -s conftest.err
23366 } && test -s conftest.$ac_objext; then
23367 cat >conftest.$ac_ext <<_ACEOF
23370 cat confdefs.h >>conftest.$ac_ext
23371 cat >>conftest.$ac_ext <<_ACEOF
23372 /* end confdefs.h. */
23373 $ac_includes_default
23377 if (sizeof ((bits16_t)))
23383 rm -f conftest.$ac_objext
23384 if { (ac_try="$ac_compile"
23385 case "(($ac_try" in
23386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23387 *) ac_try_echo=$ac_try;;
23389 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23390 $as_echo "$ac_try_echo") >&5
23391 (eval "$ac_compile") 2>conftest.er1
23393 grep -v '^ *+' conftest.er1 >conftest.err
23395 cat conftest.err >&5
23396 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23397 (exit $ac_status); } && {
23398 test -z "$ac_c_werror_flag" ||
23399 test ! -s conftest.err
23400 } && test -s conftest.$ac_objext; then
23403 $as_echo "$as_me: failed program was
:" >&5
23404 sed 's/^/| /' conftest.$ac_ext >&5
23406 ac_cv_type_bits16_t=yes
23409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23411 $as_echo "$as_me: failed program was
:" >&5
23412 sed 's/^/| /' conftest.$ac_ext >&5
23417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23419 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_bits16_t" >&5
23420 $as_echo "$ac_cv_type_bits16_t" >&6; }
23421 if test "x
$ac_cv_type_bits16_t" = x""yes; then
23425 cat >>confdefs.h <<_ACEOF
23426 #define bits16_t char
23432 { $as_echo "$as_me:$LINENO: checking
for bits16_t
" >&5
23433 $as_echo_n "checking
for bits16_t...
" >&6; }
23434 if test "${ac_cv_type_bits16_t+set}" = set; then
23435 $as_echo_n "(cached
) " >&6
23437 ac_cv_type_bits16_t=no
23438 cat >conftest.$ac_ext <<_ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h. */
23444 $ac_includes_default
23448 if (sizeof (bits16_t))
23454 rm -f conftest.$ac_objext
23455 if { (ac_try="$ac_compile"
23456 case "(($ac_try" in
23457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23458 *) ac_try_echo=$ac_try;;
23460 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23461 $as_echo "$ac_try_echo") >&5
23462 (eval "$ac_compile") 2>conftest.er1
23464 grep -v '^ *+' conftest.er1 >conftest.err
23466 cat conftest.err >&5
23467 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23468 (exit $ac_status); } && {
23469 test -z "$ac_c_werror_flag" ||
23470 test ! -s conftest.err
23471 } && test -s conftest.$ac_objext; then
23472 cat >conftest.$ac_ext <<_ACEOF
23475 cat confdefs.h >>conftest.$ac_ext
23476 cat >>conftest.$ac_ext <<_ACEOF
23477 /* end confdefs.h. */
23478 $ac_includes_default
23482 if (sizeof ((bits16_t)))
23488 rm -f conftest.$ac_objext
23489 if { (ac_try="$ac_compile"
23490 case "(($ac_try" in
23491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23492 *) ac_try_echo=$ac_try;;
23494 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23495 $as_echo "$ac_try_echo") >&5
23496 (eval "$ac_compile") 2>conftest.er1
23498 grep -v '^ *+' conftest.er1 >conftest.err
23500 cat conftest.err >&5
23501 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23502 (exit $ac_status); } && {
23503 test -z "$ac_c_werror_flag" ||
23504 test ! -s conftest.err
23505 } && test -s conftest.$ac_objext; then
23508 $as_echo "$as_me: failed program was
:" >&5
23509 sed 's/^/| /' conftest.$ac_ext >&5
23511 ac_cv_type_bits16_t=yes
23514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23516 $as_echo "$as_me: failed program was
:" >&5
23517 sed 's/^/| /' conftest.$ac_ext >&5
23522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23524 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_bits16_t" >&5
23525 $as_echo "$ac_cv_type_bits16_t" >&6; }
23526 if test "x
$ac_cv_type_bits16_t" = x""yes; then
23530 cat >>confdefs.h <<_ACEOF
23531 #define bits16_t short
23539 if test "$ac_cv_sizeof_short" = 2; then
23540 { $as_echo "$as_me:$LINENO: checking
for u_bits16_t
" >&5
23541 $as_echo_n "checking
for u_bits16_t...
" >&6; }
23542 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23543 $as_echo_n "(cached
) " >&6
23545 ac_cv_type_u_bits16_t=no
23546 cat >conftest.$ac_ext <<_ACEOF
23549 cat confdefs.h >>conftest.$ac_ext
23550 cat >>conftest.$ac_ext <<_ACEOF
23551 /* end confdefs.h. */
23552 $ac_includes_default
23556 if (sizeof (u_bits16_t))
23562 rm -f conftest.$ac_objext
23563 if { (ac_try="$ac_compile"
23564 case "(($ac_try" in
23565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23566 *) ac_try_echo=$ac_try;;
23568 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23569 $as_echo "$ac_try_echo") >&5
23570 (eval "$ac_compile") 2>conftest.er1
23572 grep -v '^ *+' conftest.er1 >conftest.err
23574 cat conftest.err >&5
23575 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23576 (exit $ac_status); } && {
23577 test -z "$ac_c_werror_flag" ||
23578 test ! -s conftest.err
23579 } && test -s conftest.$ac_objext; then
23580 cat >conftest.$ac_ext <<_ACEOF
23583 cat confdefs.h >>conftest.$ac_ext
23584 cat >>conftest.$ac_ext <<_ACEOF
23585 /* end confdefs.h. */
23586 $ac_includes_default
23590 if (sizeof ((u_bits16_t)))
23596 rm -f conftest.$ac_objext
23597 if { (ac_try="$ac_compile"
23598 case "(($ac_try" in
23599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23600 *) ac_try_echo=$ac_try;;
23602 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23603 $as_echo "$ac_try_echo") >&5
23604 (eval "$ac_compile") 2>conftest.er1
23606 grep -v '^ *+' conftest.er1 >conftest.err
23608 cat conftest.err >&5
23609 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23610 (exit $ac_status); } && {
23611 test -z "$ac_c_werror_flag" ||
23612 test ! -s conftest.err
23613 } && test -s conftest.$ac_objext; then
23616 $as_echo "$as_me: failed program was
:" >&5
23617 sed 's/^/| /' conftest.$ac_ext >&5
23619 ac_cv_type_u_bits16_t=yes
23622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23624 $as_echo "$as_me: failed program was
:" >&5
23625 sed 's/^/| /' conftest.$ac_ext >&5
23630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23632 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_u_bits16_t" >&5
23633 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
23634 if test "x
$ac_cv_type_u_bits16_t" = x""yes; then
23638 cat >>confdefs.h <<_ACEOF
23639 #define u_bits16_t unsigned short
23644 elif test "$ac_cv_sizeof_char" = 2; then
23645 { $as_echo "$as_me:$LINENO: checking
for u_bits16_t
" >&5
23646 $as_echo_n "checking
for u_bits16_t...
" >&6; }
23647 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23648 $as_echo_n "(cached
) " >&6
23650 ac_cv_type_u_bits16_t=no
23651 cat >conftest.$ac_ext <<_ACEOF
23654 cat confdefs.h >>conftest.$ac_ext
23655 cat >>conftest.$ac_ext <<_ACEOF
23656 /* end confdefs.h. */
23657 $ac_includes_default
23661 if (sizeof (u_bits16_t))
23667 rm -f conftest.$ac_objext
23668 if { (ac_try="$ac_compile"
23669 case "(($ac_try" in
23670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23671 *) ac_try_echo=$ac_try;;
23673 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23674 $as_echo "$ac_try_echo") >&5
23675 (eval "$ac_compile") 2>conftest.er1
23677 grep -v '^ *+' conftest.er1 >conftest.err
23679 cat conftest.err >&5
23680 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23681 (exit $ac_status); } && {
23682 test -z "$ac_c_werror_flag" ||
23683 test ! -s conftest.err
23684 } && test -s conftest.$ac_objext; then
23685 cat >conftest.$ac_ext <<_ACEOF
23688 cat confdefs.h >>conftest.$ac_ext
23689 cat >>conftest.$ac_ext <<_ACEOF
23690 /* end confdefs.h. */
23691 $ac_includes_default
23695 if (sizeof ((u_bits16_t)))
23701 rm -f conftest.$ac_objext
23702 if { (ac_try="$ac_compile"
23703 case "(($ac_try" in
23704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23705 *) ac_try_echo=$ac_try;;
23707 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23708 $as_echo "$ac_try_echo") >&5
23709 (eval "$ac_compile") 2>conftest.er1
23711 grep -v '^ *+' conftest.er1 >conftest.err
23713 cat conftest.err >&5
23714 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23715 (exit $ac_status); } && {
23716 test -z "$ac_c_werror_flag" ||
23717 test ! -s conftest.err
23718 } && test -s conftest.$ac_objext; then
23721 $as_echo "$as_me: failed program was
:" >&5
23722 sed 's/^/| /' conftest.$ac_ext >&5
23724 ac_cv_type_u_bits16_t=yes
23727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23729 $as_echo "$as_me: failed program was
:" >&5
23730 sed 's/^/| /' conftest.$ac_ext >&5
23735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23737 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_u_bits16_t" >&5
23738 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
23739 if test "x
$ac_cv_type_u_bits16_t" = x""yes; then
23743 cat >>confdefs.h <<_ACEOF
23744 #define u_bits16_t unsigned char
23750 { $as_echo "$as_me:$LINENO: checking
for u_bits16_t
" >&5
23751 $as_echo_n "checking
for u_bits16_t...
" >&6; }
23752 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23753 $as_echo_n "(cached
) " >&6
23755 ac_cv_type_u_bits16_t=no
23756 cat >conftest.$ac_ext <<_ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h. */
23762 $ac_includes_default
23766 if (sizeof (u_bits16_t))
23772 rm -f conftest.$ac_objext
23773 if { (ac_try="$ac_compile"
23774 case "(($ac_try" in
23775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23776 *) ac_try_echo=$ac_try;;
23778 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23779 $as_echo "$ac_try_echo") >&5
23780 (eval "$ac_compile") 2>conftest.er1
23782 grep -v '^ *+' conftest.er1 >conftest.err
23784 cat conftest.err >&5
23785 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23786 (exit $ac_status); } && {
23787 test -z "$ac_c_werror_flag" ||
23788 test ! -s conftest.err
23789 } && test -s conftest.$ac_objext; then
23790 cat >conftest.$ac_ext <<_ACEOF
23793 cat confdefs.h >>conftest.$ac_ext
23794 cat >>conftest.$ac_ext <<_ACEOF
23795 /* end confdefs.h. */
23796 $ac_includes_default
23800 if (sizeof ((u_bits16_t)))
23806 rm -f conftest.$ac_objext
23807 if { (ac_try="$ac_compile"
23808 case "(($ac_try" in
23809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23810 *) ac_try_echo=$ac_try;;
23812 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23813 $as_echo "$ac_try_echo") >&5
23814 (eval "$ac_compile") 2>conftest.er1
23816 grep -v '^ *+' conftest.er1 >conftest.err
23818 cat conftest.err >&5
23819 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23820 (exit $ac_status); } && {
23821 test -z "$ac_c_werror_flag" ||
23822 test ! -s conftest.err
23823 } && test -s conftest.$ac_objext; then
23826 $as_echo "$as_me: failed program was
:" >&5
23827 sed 's/^/| /' conftest.$ac_ext >&5
23829 ac_cv_type_u_bits16_t=yes
23832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23834 $as_echo "$as_me: failed program was
:" >&5
23835 sed 's/^/| /' conftest.$ac_ext >&5
23840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23842 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_u_bits16_t" >&5
23843 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
23844 if test "x
$ac_cv_type_u_bits16_t" = x""yes; then
23848 cat >>confdefs.h <<_ACEOF
23849 #define u_bits16_t unsigned short
23857 if test "$ac_cv_sizeof_int" = 4; then
23858 { $as_echo "$as_me:$LINENO: checking
for bits32_t
" >&5
23859 $as_echo_n "checking
for bits32_t...
" >&6; }
23860 if test "${ac_cv_type_bits32_t+set}" = set; then
23861 $as_echo_n "(cached
) " >&6
23863 ac_cv_type_bits32_t=no
23864 cat >conftest.$ac_ext <<_ACEOF
23867 cat confdefs.h >>conftest.$ac_ext
23868 cat >>conftest.$ac_ext <<_ACEOF
23869 /* end confdefs.h. */
23870 $ac_includes_default
23874 if (sizeof (bits32_t))
23880 rm -f conftest.$ac_objext
23881 if { (ac_try="$ac_compile"
23882 case "(($ac_try" in
23883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23884 *) ac_try_echo=$ac_try;;
23886 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23887 $as_echo "$ac_try_echo") >&5
23888 (eval "$ac_compile") 2>conftest.er1
23890 grep -v '^ *+' conftest.er1 >conftest.err
23892 cat conftest.err >&5
23893 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23894 (exit $ac_status); } && {
23895 test -z "$ac_c_werror_flag" ||
23896 test ! -s conftest.err
23897 } && test -s conftest.$ac_objext; then
23898 cat >conftest.$ac_ext <<_ACEOF
23901 cat confdefs.h >>conftest.$ac_ext
23902 cat >>conftest.$ac_ext <<_ACEOF
23903 /* end confdefs.h. */
23904 $ac_includes_default
23908 if (sizeof ((bits32_t)))
23914 rm -f conftest.$ac_objext
23915 if { (ac_try="$ac_compile"
23916 case "(($ac_try" in
23917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918 *) ac_try_echo=$ac_try;;
23920 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23921 $as_echo "$ac_try_echo") >&5
23922 (eval "$ac_compile") 2>conftest.er1
23924 grep -v '^ *+' conftest.er1 >conftest.err
23926 cat conftest.err >&5
23927 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23928 (exit $ac_status); } && {
23929 test -z "$ac_c_werror_flag" ||
23930 test ! -s conftest.err
23931 } && test -s conftest.$ac_objext; then
23934 $as_echo "$as_me: failed program was
:" >&5
23935 sed 's/^/| /' conftest.$ac_ext >&5
23937 ac_cv_type_bits32_t=yes
23940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23942 $as_echo "$as_me: failed program was
:" >&5
23943 sed 's/^/| /' conftest.$ac_ext >&5
23948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23950 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_bits32_t" >&5
23951 $as_echo "$ac_cv_type_bits32_t" >&6; }
23952 if test "x
$ac_cv_type_bits32_t" = x""yes; then
23956 cat >>confdefs.h <<_ACEOF
23957 #define bits32_t int
23962 elif test "$ac_cv_sizeof_long" = 4; then
23963 { $as_echo "$as_me:$LINENO: checking
for bits32_t
" >&5
23964 $as_echo_n "checking
for bits32_t...
" >&6; }
23965 if test "${ac_cv_type_bits32_t+set}" = set; then
23966 $as_echo_n "(cached
) " >&6
23968 ac_cv_type_bits32_t=no
23969 cat >conftest.$ac_ext <<_ACEOF
23972 cat confdefs.h >>conftest.$ac_ext
23973 cat >>conftest.$ac_ext <<_ACEOF
23974 /* end confdefs.h. */
23975 $ac_includes_default
23979 if (sizeof (bits32_t))
23985 rm -f conftest.$ac_objext
23986 if { (ac_try="$ac_compile"
23987 case "(($ac_try" in
23988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23989 *) ac_try_echo=$ac_try;;
23991 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23992 $as_echo "$ac_try_echo") >&5
23993 (eval "$ac_compile") 2>conftest.er1
23995 grep -v '^ *+' conftest.er1 >conftest.err
23997 cat conftest.err >&5
23998 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23999 (exit $ac_status); } && {
24000 test -z "$ac_c_werror_flag" ||
24001 test ! -s conftest.err
24002 } && test -s conftest.$ac_objext; then
24003 cat >conftest.$ac_ext <<_ACEOF
24006 cat confdefs.h >>conftest.$ac_ext
24007 cat >>conftest.$ac_ext <<_ACEOF
24008 /* end confdefs.h. */
24009 $ac_includes_default
24013 if (sizeof ((bits32_t)))
24019 rm -f conftest.$ac_objext
24020 if { (ac_try="$ac_compile"
24021 case "(($ac_try" in
24022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24023 *) ac_try_echo=$ac_try;;
24025 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24026 $as_echo "$ac_try_echo") >&5
24027 (eval "$ac_compile") 2>conftest.er1
24029 grep -v '^ *+' conftest.er1 >conftest.err
24031 cat conftest.err >&5
24032 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24033 (exit $ac_status); } && {
24034 test -z "$ac_c_werror_flag" ||
24035 test ! -s conftest.err
24036 } && test -s conftest.$ac_objext; then
24039 $as_echo "$as_me: failed program was
:" >&5
24040 sed 's/^/| /' conftest.$ac_ext >&5
24042 ac_cv_type_bits32_t=yes
24045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24047 $as_echo "$as_me: failed program was
:" >&5
24048 sed 's/^/| /' conftest.$ac_ext >&5
24053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24055 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_bits32_t" >&5
24056 $as_echo "$ac_cv_type_bits32_t" >&6; }
24057 if test "x
$ac_cv_type_bits32_t" = x""yes; then
24061 cat >>confdefs.h <<_ACEOF
24062 #define bits32_t long
24068 { $as_echo "$as_me:$LINENO: checking
for bits32_t
" >&5
24069 $as_echo_n "checking
for bits32_t...
" >&6; }
24070 if test "${ac_cv_type_bits32_t+set}" = set; then
24071 $as_echo_n "(cached
) " >&6
24073 ac_cv_type_bits32_t=no
24074 cat >conftest.$ac_ext <<_ACEOF
24077 cat confdefs.h >>conftest.$ac_ext
24078 cat >>conftest.$ac_ext <<_ACEOF
24079 /* end confdefs.h. */
24080 $ac_includes_default
24084 if (sizeof (bits32_t))
24090 rm -f conftest.$ac_objext
24091 if { (ac_try="$ac_compile"
24092 case "(($ac_try" in
24093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24094 *) ac_try_echo=$ac_try;;
24096 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24097 $as_echo "$ac_try_echo") >&5
24098 (eval "$ac_compile") 2>conftest.er1
24100 grep -v '^ *+' conftest.er1 >conftest.err
24102 cat conftest.err >&5
24103 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24104 (exit $ac_status); } && {
24105 test -z "$ac_c_werror_flag" ||
24106 test ! -s conftest.err
24107 } && test -s conftest.$ac_objext; then
24108 cat >conftest.$ac_ext <<_ACEOF
24111 cat confdefs.h >>conftest.$ac_ext
24112 cat >>conftest.$ac_ext <<_ACEOF
24113 /* end confdefs.h. */
24114 $ac_includes_default
24118 if (sizeof ((bits32_t)))
24124 rm -f conftest.$ac_objext
24125 if { (ac_try="$ac_compile"
24126 case "(($ac_try" in
24127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24128 *) ac_try_echo=$ac_try;;
24130 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24131 $as_echo "$ac_try_echo") >&5
24132 (eval "$ac_compile") 2>conftest.er1
24134 grep -v '^ *+' conftest.er1 >conftest.err
24136 cat conftest.err >&5
24137 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24138 (exit $ac_status); } && {
24139 test -z "$ac_c_werror_flag" ||
24140 test ! -s conftest.err
24141 } && test -s conftest.$ac_objext; then
24144 $as_echo "$as_me: failed program was
:" >&5
24145 sed 's/^/| /' conftest.$ac_ext >&5
24147 ac_cv_type_bits32_t=yes
24150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24152 $as_echo "$as_me: failed program was
:" >&5
24153 sed 's/^/| /' conftest.$ac_ext >&5
24158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24160 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_bits32_t" >&5
24161 $as_echo "$ac_cv_type_bits32_t" >&6; }
24162 if test "x
$ac_cv_type_bits32_t" = x""yes; then
24166 cat >>confdefs.h <<_ACEOF
24167 #define bits32_t int
24175 if test "$ac_cv_sizeof_int" = 4; then
24176 { $as_echo "$as_me:$LINENO: checking
for u_bits32_t
" >&5
24177 $as_echo_n "checking
for u_bits32_t...
" >&6; }
24178 if test "${ac_cv_type_u_bits32_t+set}" = set; then
24179 $as_echo_n "(cached
) " >&6
24181 ac_cv_type_u_bits32_t=no
24182 cat >conftest.$ac_ext <<_ACEOF
24185 cat confdefs.h >>conftest.$ac_ext
24186 cat >>conftest.$ac_ext <<_ACEOF
24187 /* end confdefs.h. */
24188 $ac_includes_default
24192 if (sizeof (u_bits32_t))
24198 rm -f conftest.$ac_objext
24199 if { (ac_try="$ac_compile"
24200 case "(($ac_try" in
24201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24202 *) ac_try_echo=$ac_try;;
24204 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24205 $as_echo "$ac_try_echo") >&5
24206 (eval "$ac_compile") 2>conftest.er1
24208 grep -v '^ *+' conftest.er1 >conftest.err
24210 cat conftest.err >&5
24211 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24212 (exit $ac_status); } && {
24213 test -z "$ac_c_werror_flag" ||
24214 test ! -s conftest.err
24215 } && test -s conftest.$ac_objext; then
24216 cat >conftest.$ac_ext <<_ACEOF
24219 cat confdefs.h >>conftest.$ac_ext
24220 cat >>conftest.$ac_ext <<_ACEOF
24221 /* end confdefs.h. */
24222 $ac_includes_default
24226 if (sizeof ((u_bits32_t)))
24232 rm -f conftest.$ac_objext
24233 if { (ac_try="$ac_compile"
24234 case "(($ac_try" in
24235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24236 *) ac_try_echo=$ac_try;;
24238 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24239 $as_echo "$ac_try_echo") >&5
24240 (eval "$ac_compile") 2>conftest.er1
24242 grep -v '^ *+' conftest.er1 >conftest.err
24244 cat conftest.err >&5
24245 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24246 (exit $ac_status); } && {
24247 test -z "$ac_c_werror_flag" ||
24248 test ! -s conftest.err
24249 } && test -s conftest.$ac_objext; then
24252 $as_echo "$as_me: failed program was
:" >&5
24253 sed 's/^/| /' conftest.$ac_ext >&5
24255 ac_cv_type_u_bits32_t=yes
24258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24260 $as_echo "$as_me: failed program was
:" >&5
24261 sed 's/^/| /' conftest.$ac_ext >&5
24266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24268 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_u_bits32_t" >&5
24269 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24270 if test "x
$ac_cv_type_u_bits32_t" = x""yes; then
24274 cat >>confdefs.h <<_ACEOF
24275 #define u_bits32_t unsigned int
24280 elif test "$ac_cv_sizeof_long" = 4; then
24281 { $as_echo "$as_me:$LINENO: checking
for u_bits32_t
" >&5
24282 $as_echo_n "checking
for u_bits32_t...
" >&6; }
24283 if test "${ac_cv_type_u_bits32_t+set}" = set; then
24284 $as_echo_n "(cached
) " >&6
24286 ac_cv_type_u_bits32_t=no
24287 cat >conftest.$ac_ext <<_ACEOF
24290 cat confdefs.h >>conftest.$ac_ext
24291 cat >>conftest.$ac_ext <<_ACEOF
24292 /* end confdefs.h. */
24293 $ac_includes_default
24297 if (sizeof (u_bits32_t))
24303 rm -f conftest.$ac_objext
24304 if { (ac_try="$ac_compile"
24305 case "(($ac_try" in
24306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24307 *) ac_try_echo=$ac_try;;
24309 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24310 $as_echo "$ac_try_echo") >&5
24311 (eval "$ac_compile") 2>conftest.er1
24313 grep -v '^ *+' conftest.er1 >conftest.err
24315 cat conftest.err >&5
24316 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24317 (exit $ac_status); } && {
24318 test -z "$ac_c_werror_flag" ||
24319 test ! -s conftest.err
24320 } && test -s conftest.$ac_objext; then
24321 cat >conftest.$ac_ext <<_ACEOF
24324 cat confdefs.h >>conftest.$ac_ext
24325 cat >>conftest.$ac_ext <<_ACEOF
24326 /* end confdefs.h. */
24327 $ac_includes_default
24331 if (sizeof ((u_bits32_t)))
24337 rm -f conftest.$ac_objext
24338 if { (ac_try="$ac_compile"
24339 case "(($ac_try" in
24340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24341 *) ac_try_echo=$ac_try;;
24343 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24344 $as_echo "$ac_try_echo") >&5
24345 (eval "$ac_compile") 2>conftest.er1
24347 grep -v '^ *+' conftest.er1 >conftest.err
24349 cat conftest.err >&5
24350 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24351 (exit $ac_status); } && {
24352 test -z "$ac_c_werror_flag" ||
24353 test ! -s conftest.err
24354 } && test -s conftest.$ac_objext; then
24357 $as_echo "$as_me: failed program was
:" >&5
24358 sed 's/^/| /' conftest.$ac_ext >&5
24360 ac_cv_type_u_bits32_t=yes
24363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24365 $as_echo "$as_me: failed program was
:" >&5
24366 sed 's/^/| /' conftest.$ac_ext >&5
24371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24373 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_u_bits32_t" >&5
24374 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24375 if test "x
$ac_cv_type_u_bits32_t" = x""yes; then
24379 cat >>confdefs.h <<_ACEOF
24380 #define u_bits32_t unsigned long
24386 { $as_echo "$as_me:$LINENO: checking
for u_bits32_t
" >&5
24387 $as_echo_n "checking
for u_bits32_t...
" >&6; }
24388 if test "${ac_cv_type_u_bits32_t+set}" = set; then
24389 $as_echo_n "(cached
) " >&6
24391 ac_cv_type_u_bits32_t=no
24392 cat >conftest.$ac_ext <<_ACEOF
24395 cat confdefs.h >>conftest.$ac_ext
24396 cat >>conftest.$ac_ext <<_ACEOF
24397 /* end confdefs.h. */
24398 $ac_includes_default
24402 if (sizeof (u_bits32_t))
24408 rm -f conftest.$ac_objext
24409 if { (ac_try="$ac_compile"
24410 case "(($ac_try" in
24411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24412 *) ac_try_echo=$ac_try;;
24414 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24415 $as_echo "$ac_try_echo") >&5
24416 (eval "$ac_compile") 2>conftest.er1
24418 grep -v '^ *+' conftest.er1 >conftest.err
24420 cat conftest.err >&5
24421 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24422 (exit $ac_status); } && {
24423 test -z "$ac_c_werror_flag" ||
24424 test ! -s conftest.err
24425 } && test -s conftest.$ac_objext; then
24426 cat >conftest.$ac_ext <<_ACEOF
24429 cat confdefs.h >>conftest.$ac_ext
24430 cat >>conftest.$ac_ext <<_ACEOF
24431 /* end confdefs.h. */
24432 $ac_includes_default
24436 if (sizeof ((u_bits32_t)))
24442 rm -f conftest.$ac_objext
24443 if { (ac_try="$ac_compile"
24444 case "(($ac_try" in
24445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24446 *) ac_try_echo=$ac_try;;
24448 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24449 $as_echo "$ac_try_echo") >&5
24450 (eval "$ac_compile") 2>conftest.er1
24452 grep -v '^ *+' conftest.er1 >conftest.err
24454 cat conftest.err >&5
24455 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24456 (exit $ac_status); } && {
24457 test -z "$ac_c_werror_flag" ||
24458 test ! -s conftest.err
24459 } && test -s conftest.$ac_objext; then
24462 $as_echo "$as_me: failed program was
:" >&5
24463 sed 's/^/| /' conftest.$ac_ext >&5
24465 ac_cv_type_u_bits32_t=yes
24468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24470 $as_echo "$as_me: failed program was
:" >&5
24471 sed 's/^/| /' conftest.$ac_ext >&5
24476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24478 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_u_bits32_t" >&5
24479 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24480 if test "x
$ac_cv_type_u_bits32_t" = x""yes; then
24484 cat >>confdefs.h <<_ACEOF
24485 #define u_bits32_t unsigned int
24493 if test "$ac_cv_sizeof_char_p" = 8; then
24494 { $as_echo "$as_me:$LINENO: checking
for bits64_t
" >&5
24495 $as_echo_n "checking
for bits64_t...
" >&6; }
24496 if test "${ac_cv_type_bits64_t+set}" = set; then
24497 $as_echo_n "(cached
) " >&6
24499 ac_cv_type_bits64_t=no
24500 cat >conftest.$ac_ext <<_ACEOF
24503 cat confdefs.h >>conftest.$ac_ext
24504 cat >>conftest.$ac_ext <<_ACEOF
24505 /* end confdefs.h. */
24506 $ac_includes_default
24510 if (sizeof (bits64_t))
24516 rm -f conftest.$ac_objext
24517 if { (ac_try="$ac_compile"
24518 case "(($ac_try" in
24519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24520 *) ac_try_echo=$ac_try;;
24522 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24523 $as_echo "$ac_try_echo") >&5
24524 (eval "$ac_compile") 2>conftest.er1
24526 grep -v '^ *+' conftest.er1 >conftest.err
24528 cat conftest.err >&5
24529 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24530 (exit $ac_status); } && {
24531 test -z "$ac_c_werror_flag" ||
24532 test ! -s conftest.err
24533 } && test -s conftest.$ac_objext; then
24534 cat >conftest.$ac_ext <<_ACEOF
24537 cat confdefs.h >>conftest.$ac_ext
24538 cat >>conftest.$ac_ext <<_ACEOF
24539 /* end confdefs.h. */
24540 $ac_includes_default
24544 if (sizeof ((bits64_t)))
24550 rm -f conftest.$ac_objext
24551 if { (ac_try="$ac_compile"
24552 case "(($ac_try" in
24553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554 *) ac_try_echo=$ac_try;;
24556 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24557 $as_echo "$ac_try_echo") >&5
24558 (eval "$ac_compile") 2>conftest.er1
24560 grep -v '^ *+' conftest.er1 >conftest.err
24562 cat conftest.err >&5
24563 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24564 (exit $ac_status); } && {
24565 test -z "$ac_c_werror_flag" ||
24566 test ! -s conftest.err
24567 } && test -s conftest.$ac_objext; then
24570 $as_echo "$as_me: failed program was
:" >&5
24571 sed 's/^/| /' conftest.$ac_ext >&5
24573 ac_cv_type_bits64_t=yes
24576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24578 $as_echo "$as_me: failed program was
:" >&5
24579 sed 's/^/| /' conftest.$ac_ext >&5
24584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24586 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_bits64_t" >&5
24587 $as_echo "$ac_cv_type_bits64_t" >&6; }
24588 if test "x
$ac_cv_type_bits64_t" = x""yes; then
24592 cat >>confdefs.h <<_ACEOF
24593 #define bits64_t char *
24598 elif test "$ac_cv_sizeof_double" = 8; then
24599 { $as_echo "$as_me:$LINENO: checking
for bits64_t
" >&5
24600 $as_echo_n "checking
for bits64_t...
" >&6; }
24601 if test "${ac_cv_type_bits64_t+set}" = set; then
24602 $as_echo_n "(cached
) " >&6
24604 ac_cv_type_bits64_t=no
24605 cat >conftest.$ac_ext <<_ACEOF
24608 cat confdefs.h >>conftest.$ac_ext
24609 cat >>conftest.$ac_ext <<_ACEOF
24610 /* end confdefs.h. */
24611 $ac_includes_default
24615 if (sizeof (bits64_t))
24621 rm -f conftest.$ac_objext
24622 if { (ac_try="$ac_compile"
24623 case "(($ac_try" in
24624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625 *) ac_try_echo=$ac_try;;
24627 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24628 $as_echo "$ac_try_echo") >&5
24629 (eval "$ac_compile") 2>conftest.er1
24631 grep -v '^ *+' conftest.er1 >conftest.err
24633 cat conftest.err >&5
24634 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24635 (exit $ac_status); } && {
24636 test -z "$ac_c_werror_flag" ||
24637 test ! -s conftest.err
24638 } && test -s conftest.$ac_objext; then
24639 cat >conftest.$ac_ext <<_ACEOF
24642 cat confdefs.h >>conftest.$ac_ext
24643 cat >>conftest.$ac_ext <<_ACEOF
24644 /* end confdefs.h. */
24645 $ac_includes_default
24649 if (sizeof ((bits64_t)))
24655 rm -f conftest.$ac_objext
24656 if { (ac_try="$ac_compile"
24657 case "(($ac_try" in
24658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24659 *) ac_try_echo=$ac_try;;
24661 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24662 $as_echo "$ac_try_echo") >&5
24663 (eval "$ac_compile") 2>conftest.er1
24665 grep -v '^ *+' conftest.er1 >conftest.err
24667 cat conftest.err >&5
24668 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24669 (exit $ac_status); } && {
24670 test -z "$ac_c_werror_flag" ||
24671 test ! -s conftest.err
24672 } && test -s conftest.$ac_objext; then
24675 $as_echo "$as_me: failed program was
:" >&5
24676 sed 's/^/| /' conftest.$ac_ext >&5
24678 ac_cv_type_bits64_t=yes
24681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24683 $as_echo "$as_me: failed program was
:" >&5
24684 sed 's/^/| /' conftest.$ac_ext >&5
24689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24691 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_bits64_t" >&5
24692 $as_echo "$ac_cv_type_bits64_t" >&6; }
24693 if test "x
$ac_cv_type_bits64_t" = x""yes; then
24697 cat >>confdefs.h <<_ACEOF
24698 #define bits64_t double
24703 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
24704 { $as_echo "$as_me:$LINENO: checking
for bits64_t
" >&5
24705 $as_echo_n "checking
for bits64_t...
" >&6; }
24706 if test "${ac_cv_type_bits64_t+set}" = set; then
24707 $as_echo_n "(cached
) " >&6
24709 ac_cv_type_bits64_t=no
24710 cat >conftest.$ac_ext <<_ACEOF
24713 cat confdefs.h >>conftest.$ac_ext
24714 cat >>conftest.$ac_ext <<_ACEOF
24715 /* end confdefs.h. */
24716 $ac_includes_default
24720 if (sizeof (bits64_t))
24726 rm -f conftest.$ac_objext
24727 if { (ac_try="$ac_compile"
24728 case "(($ac_try" in
24729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24730 *) ac_try_echo=$ac_try;;
24732 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24733 $as_echo "$ac_try_echo") >&5
24734 (eval "$ac_compile") 2>conftest.er1
24736 grep -v '^ *+' conftest.er1 >conftest.err
24738 cat conftest.err >&5
24739 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24740 (exit $ac_status); } && {
24741 test -z "$ac_c_werror_flag" ||
24742 test ! -s conftest.err
24743 } && test -s conftest.$ac_objext; then
24744 cat >conftest.$ac_ext <<_ACEOF
24747 cat confdefs.h >>conftest.$ac_ext
24748 cat >>conftest.$ac_ext <<_ACEOF
24749 /* end confdefs.h. */
24750 $ac_includes_default
24754 if (sizeof ((bits64_t)))
24760 rm -f conftest.$ac_objext
24761 if { (ac_try="$ac_compile"
24762 case "(($ac_try" in
24763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24764 *) ac_try_echo=$ac_try;;
24766 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24767 $as_echo "$ac_try_echo") >&5
24768 (eval "$ac_compile") 2>conftest.er1
24770 grep -v '^ *+' conftest.er1 >conftest.err
24772 cat conftest.err >&5
24773 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24774 (exit $ac_status); } && {
24775 test -z "$ac_c_werror_flag" ||
24776 test ! -s conftest.err
24777 } && test -s conftest.$ac_objext; then
24780 $as_echo "$as_me: failed program was
:" >&5
24781 sed 's/^/| /' conftest.$ac_ext >&5
24783 ac_cv_type_bits64_t=yes
24786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24788 $as_echo "$as_me: failed program was
:" >&5
24789 sed 's/^/| /' conftest.$ac_ext >&5
24794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24796 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_bits64_t" >&5
24797 $as_echo "$ac_cv_type_bits64_t" >&6; }
24798 if test "x
$ac_cv_type_bits64_t" = x""yes; then
24802 cat >>confdefs.h <<_ACEOF
24803 #define bits64_t long long
24808 elif test "$ac_cv_sizeof_long" = 8; then
24809 { $as_echo "$as_me:$LINENO: checking
for bits64_t
" >&5
24810 $as_echo_n "checking
for bits64_t...
" >&6; }
24811 if test "${ac_cv_type_bits64_t+set}" = set; then
24812 $as_echo_n "(cached
) " >&6
24814 ac_cv_type_bits64_t=no
24815 cat >conftest.$ac_ext <<_ACEOF
24818 cat confdefs.h >>conftest.$ac_ext
24819 cat >>conftest.$ac_ext <<_ACEOF
24820 /* end confdefs.h. */
24821 $ac_includes_default
24825 if (sizeof (bits64_t))
24831 rm -f conftest.$ac_objext
24832 if { (ac_try="$ac_compile"
24833 case "(($ac_try" in
24834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24835 *) ac_try_echo=$ac_try;;
24837 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24838 $as_echo "$ac_try_echo") >&5
24839 (eval "$ac_compile") 2>conftest.er1
24841 grep -v '^ *+' conftest.er1 >conftest.err
24843 cat conftest.err >&5
24844 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24845 (exit $ac_status); } && {
24846 test -z "$ac_c_werror_flag" ||
24847 test ! -s conftest.err
24848 } && test -s conftest.$ac_objext; then
24849 cat >conftest.$ac_ext <<_ACEOF
24852 cat confdefs.h >>conftest.$ac_ext
24853 cat >>conftest.$ac_ext <<_ACEOF
24854 /* end confdefs.h. */
24855 $ac_includes_default
24859 if (sizeof ((bits64_t)))
24865 rm -f conftest.$ac_objext
24866 if { (ac_try="$ac_compile"
24867 case "(($ac_try" in
24868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24869 *) ac_try_echo=$ac_try;;
24871 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24872 $as_echo "$ac_try_echo") >&5
24873 (eval "$ac_compile") 2>conftest.er1
24875 grep -v '^ *+' conftest.er1 >conftest.err
24877 cat conftest.err >&5
24878 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24879 (exit $ac_status); } && {
24880 test -z "$ac_c_werror_flag" ||
24881 test ! -s conftest.err
24882 } && test -s conftest.$ac_objext; then
24885 $as_echo "$as_me: failed program was
:" >&5
24886 sed 's/^/| /' conftest.$ac_ext >&5
24888 ac_cv_type_bits64_t=yes
24891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24893 $as_echo "$as_me: failed program was
:" >&5
24894 sed 's/^/| /' conftest.$ac_ext >&5
24899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24901 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_bits64_t" >&5
24902 $as_echo "$ac_cv_type_bits64_t" >&6; }
24903 if test "x
$ac_cv_type_bits64_t" = x""yes; then
24907 cat >>confdefs.h <<_ACEOF
24908 #define bits64_t long
24914 { $as_echo "$as_me:$LINENO: checking
for bits64_t
" >&5
24915 $as_echo_n "checking
for bits64_t...
" >&6; }
24916 if test "${ac_cv_type_bits64_t+set}" = set; then
24917 $as_echo_n "(cached
) " >&6
24919 ac_cv_type_bits64_t=no
24920 cat >conftest.$ac_ext <<_ACEOF
24923 cat confdefs.h >>conftest.$ac_ext
24924 cat >>conftest.$ac_ext <<_ACEOF
24925 /* end confdefs.h. */
24926 $ac_includes_default
24930 if (sizeof (bits64_t))
24936 rm -f conftest.$ac_objext
24937 if { (ac_try="$ac_compile"
24938 case "(($ac_try" in
24939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24940 *) ac_try_echo=$ac_try;;
24942 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24943 $as_echo "$ac_try_echo") >&5
24944 (eval "$ac_compile") 2>conftest.er1
24946 grep -v '^ *+' conftest.er1 >conftest.err
24948 cat conftest.err >&5
24949 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24950 (exit $ac_status); } && {
24951 test -z "$ac_c_werror_flag" ||
24952 test ! -s conftest.err
24953 } && test -s conftest.$ac_objext; then
24954 cat >conftest.$ac_ext <<_ACEOF
24957 cat confdefs.h >>conftest.$ac_ext
24958 cat >>conftest.$ac_ext <<_ACEOF
24959 /* end confdefs.h. */
24960 $ac_includes_default
24964 if (sizeof ((bits64_t)))
24970 rm -f conftest.$ac_objext
24971 if { (ac_try="$ac_compile"
24972 case "(($ac_try" in
24973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24974 *) ac_try_echo=$ac_try;;
24976 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24977 $as_echo "$ac_try_echo") >&5
24978 (eval "$ac_compile") 2>conftest.er1
24980 grep -v '^ *+' conftest.er1 >conftest.err
24982 cat conftest.err >&5
24983 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24984 (exit $ac_status); } && {
24985 test -z "$ac_c_werror_flag" ||
24986 test ! -s conftest.err
24987 } && test -s conftest.$ac_objext; then
24990 $as_echo "$as_me: failed program was
:" >&5
24991 sed 's/^/| /' conftest.$ac_ext >&5
24993 ac_cv_type_bits64_t=yes
24996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24998 $as_echo "$as_me: failed program was
:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25006 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_bits64_t" >&5
25007 $as_echo "$ac_cv_type_bits64_t" >&6; }
25008 if test "x
$ac_cv_type_bits64_t" = x""yes; then
25012 cat >>confdefs.h <<_ACEOF
25013 #define bits64_t double
25022 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
25023 { $as_echo "$as_me:$LINENO: checking
for ptrdiff_t
" >&5
25024 $as_echo_n "checking
for ptrdiff_t...
" >&6; }
25025 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25026 $as_echo_n "(cached
) " >&6
25028 ac_cv_type_ptrdiff_t=no
25029 cat >conftest.$ac_ext <<_ACEOF
25032 cat confdefs.h >>conftest.$ac_ext
25033 cat >>conftest.$ac_ext <<_ACEOF
25034 /* end confdefs.h. */
25035 $ac_includes_default
25039 if (sizeof (ptrdiff_t))
25045 rm -f conftest.$ac_objext
25046 if { (ac_try="$ac_compile"
25047 case "(($ac_try" in
25048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25049 *) ac_try_echo=$ac_try;;
25051 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25052 $as_echo "$ac_try_echo") >&5
25053 (eval "$ac_compile") 2>conftest.er1
25055 grep -v '^ *+' conftest.er1 >conftest.err
25057 cat conftest.err >&5
25058 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25059 (exit $ac_status); } && {
25060 test -z "$ac_c_werror_flag" ||
25061 test ! -s conftest.err
25062 } && test -s conftest.$ac_objext; then
25063 cat >conftest.$ac_ext <<_ACEOF
25066 cat confdefs.h >>conftest.$ac_ext
25067 cat >>conftest.$ac_ext <<_ACEOF
25068 /* end confdefs.h. */
25069 $ac_includes_default
25073 if (sizeof ((ptrdiff_t)))
25079 rm -f conftest.$ac_objext
25080 if { (ac_try="$ac_compile"
25081 case "(($ac_try" in
25082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25083 *) ac_try_echo=$ac_try;;
25085 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25086 $as_echo "$ac_try_echo") >&5
25087 (eval "$ac_compile") 2>conftest.er1
25089 grep -v '^ *+' conftest.er1 >conftest.err
25091 cat conftest.err >&5
25092 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25093 (exit $ac_status); } && {
25094 test -z "$ac_c_werror_flag" ||
25095 test ! -s conftest.err
25096 } && test -s conftest.$ac_objext; then
25099 $as_echo "$as_me: failed program was
:" >&5
25100 sed 's/^/| /' conftest.$ac_ext >&5
25102 ac_cv_type_ptrdiff_t=yes
25105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25107 $as_echo "$as_me: failed program was
:" >&5
25108 sed 's/^/| /' conftest.$ac_ext >&5
25113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25115 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_ptrdiff_t" >&5
25116 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25117 if test "x
$ac_cv_type_ptrdiff_t" = x""yes; then
25121 cat >>confdefs.h <<_ACEOF
25122 #define ptrdiff_t int
25127 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
25128 { $as_echo "$as_me:$LINENO: checking
for ptrdiff_t
" >&5
25129 $as_echo_n "checking
for ptrdiff_t...
" >&6; }
25130 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25131 $as_echo_n "(cached
) " >&6
25133 ac_cv_type_ptrdiff_t=no
25134 cat >conftest.$ac_ext <<_ACEOF
25137 cat confdefs.h >>conftest.$ac_ext
25138 cat >>conftest.$ac_ext <<_ACEOF
25139 /* end confdefs.h. */
25140 $ac_includes_default
25144 if (sizeof (ptrdiff_t))
25150 rm -f conftest.$ac_objext
25151 if { (ac_try="$ac_compile"
25152 case "(($ac_try" in
25153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25154 *) ac_try_echo=$ac_try;;
25156 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25157 $as_echo "$ac_try_echo") >&5
25158 (eval "$ac_compile") 2>conftest.er1
25160 grep -v '^ *+' conftest.er1 >conftest.err
25162 cat conftest.err >&5
25163 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25164 (exit $ac_status); } && {
25165 test -z "$ac_c_werror_flag" ||
25166 test ! -s conftest.err
25167 } && test -s conftest.$ac_objext; then
25168 cat >conftest.$ac_ext <<_ACEOF
25171 cat confdefs.h >>conftest.$ac_ext
25172 cat >>conftest.$ac_ext <<_ACEOF
25173 /* end confdefs.h. */
25174 $ac_includes_default
25178 if (sizeof ((ptrdiff_t)))
25184 rm -f conftest.$ac_objext
25185 if { (ac_try="$ac_compile"
25186 case "(($ac_try" in
25187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25188 *) ac_try_echo=$ac_try;;
25190 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25191 $as_echo "$ac_try_echo") >&5
25192 (eval "$ac_compile") 2>conftest.er1
25194 grep -v '^ *+' conftest.er1 >conftest.err
25196 cat conftest.err >&5
25197 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25198 (exit $ac_status); } && {
25199 test -z "$ac_c_werror_flag" ||
25200 test ! -s conftest.err
25201 } && test -s conftest.$ac_objext; then
25204 $as_echo "$as_me: failed program was
:" >&5
25205 sed 's/^/| /' conftest.$ac_ext >&5
25207 ac_cv_type_ptrdiff_t=yes
25210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25212 $as_echo "$as_me: failed program was
:" >&5
25213 sed 's/^/| /' conftest.$ac_ext >&5
25218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25220 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_ptrdiff_t" >&5
25221 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25222 if test "x
$ac_cv_type_ptrdiff_t" = x""yes; then
25226 cat >>confdefs.h <<_ACEOF
25227 #define ptrdiff_t long
25232 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
25233 { $as_echo "$as_me:$LINENO: checking
for ptrdiff_t
" >&5
25234 $as_echo_n "checking
for ptrdiff_t...
" >&6; }
25235 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25236 $as_echo_n "(cached
) " >&6
25238 ac_cv_type_ptrdiff_t=no
25239 cat >conftest.$ac_ext <<_ACEOF
25242 cat confdefs.h >>conftest.$ac_ext
25243 cat >>conftest.$ac_ext <<_ACEOF
25244 /* end confdefs.h. */
25245 $ac_includes_default
25249 if (sizeof (ptrdiff_t))
25255 rm -f conftest.$ac_objext
25256 if { (ac_try="$ac_compile"
25257 case "(($ac_try" in
25258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25259 *) ac_try_echo=$ac_try;;
25261 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25262 $as_echo "$ac_try_echo") >&5
25263 (eval "$ac_compile") 2>conftest.er1
25265 grep -v '^ *+' conftest.er1 >conftest.err
25267 cat conftest.err >&5
25268 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25269 (exit $ac_status); } && {
25270 test -z "$ac_c_werror_flag" ||
25271 test ! -s conftest.err
25272 } && test -s conftest.$ac_objext; then
25273 cat >conftest.$ac_ext <<_ACEOF
25276 cat confdefs.h >>conftest.$ac_ext
25277 cat >>conftest.$ac_ext <<_ACEOF
25278 /* end confdefs.h. */
25279 $ac_includes_default
25283 if (sizeof ((ptrdiff_t)))
25289 rm -f conftest.$ac_objext
25290 if { (ac_try="$ac_compile"
25291 case "(($ac_try" in
25292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25293 *) ac_try_echo=$ac_try;;
25295 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25296 $as_echo "$ac_try_echo") >&5
25297 (eval "$ac_compile") 2>conftest.er1
25299 grep -v '^ *+' conftest.er1 >conftest.err
25301 cat conftest.err >&5
25302 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25303 (exit $ac_status); } && {
25304 test -z "$ac_c_werror_flag" ||
25305 test ! -s conftest.err
25306 } && test -s conftest.$ac_objext; then
25309 $as_echo "$as_me: failed program was
:" >&5
25310 sed 's/^/| /' conftest.$ac_ext >&5
25312 ac_cv_type_ptrdiff_t=yes
25315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25317 $as_echo "$as_me: failed program was
:" >&5
25318 sed 's/^/| /' conftest.$ac_ext >&5
25323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25325 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_ptrdiff_t" >&5
25326 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25327 if test "x
$ac_cv_type_ptrdiff_t" = x""yes; then
25331 cat >>confdefs.h <<_ACEOF
25332 #define ptrdiff_t long long
25338 { $as_echo "$as_me:$LINENO: checking
for ptrdiff_t
" >&5
25339 $as_echo_n "checking
for ptrdiff_t...
" >&6; }
25340 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25341 $as_echo_n "(cached
) " >&6
25343 ac_cv_type_ptrdiff_t=no
25344 cat >conftest.$ac_ext <<_ACEOF
25347 cat confdefs.h >>conftest.$ac_ext
25348 cat >>conftest.$ac_ext <<_ACEOF
25349 /* end confdefs.h. */
25350 $ac_includes_default
25354 if (sizeof (ptrdiff_t))
25360 rm -f conftest.$ac_objext
25361 if { (ac_try="$ac_compile"
25362 case "(($ac_try" in
25363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25364 *) ac_try_echo=$ac_try;;
25366 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25367 $as_echo "$ac_try_echo") >&5
25368 (eval "$ac_compile") 2>conftest.er1
25370 grep -v '^ *+' conftest.er1 >conftest.err
25372 cat conftest.err >&5
25373 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25374 (exit $ac_status); } && {
25375 test -z "$ac_c_werror_flag" ||
25376 test ! -s conftest.err
25377 } && test -s conftest.$ac_objext; then
25378 cat >conftest.$ac_ext <<_ACEOF
25381 cat confdefs.h >>conftest.$ac_ext
25382 cat >>conftest.$ac_ext <<_ACEOF
25383 /* end confdefs.h. */
25384 $ac_includes_default
25388 if (sizeof ((ptrdiff_t)))
25394 rm -f conftest.$ac_objext
25395 if { (ac_try="$ac_compile"
25396 case "(($ac_try" in
25397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25398 *) ac_try_echo=$ac_try;;
25400 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25401 $as_echo "$ac_try_echo") >&5
25402 (eval "$ac_compile") 2>conftest.er1
25404 grep -v '^ *+' conftest.er1 >conftest.err
25406 cat conftest.err >&5
25407 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25408 (exit $ac_status); } && {
25409 test -z "$ac_c_werror_flag" ||
25410 test ! -s conftest.err
25411 } && test -s conftest.$ac_objext; then
25414 $as_echo "$as_me: failed program was
:" >&5
25415 sed 's/^/| /' conftest.$ac_ext >&5
25417 ac_cv_type_ptrdiff_t=yes
25420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25422 $as_echo "$as_me: failed program was
:" >&5
25423 sed 's/^/| /' conftest.$ac_ext >&5
25428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25430 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_ptrdiff_t" >&5
25431 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25432 if test "x
$ac_cv_type_ptrdiff_t" = x""yes; then
25436 cat >>confdefs.h <<_ACEOF
25437 #define ptrdiff_t int
25445 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken
" >&5
25446 $as_echo_n "checking whether stat file-mode macros are broken...
" >&6; }
25447 if test "${ac_cv_header_stat_broken+set}" = set; then
25448 $as_echo_n "(cached
) " >&6
25450 cat >conftest.$ac_ext <<_ACEOF
25453 cat confdefs.h >>conftest.$ac_ext
25454 cat >>conftest.$ac_ext <<_ACEOF
25455 /* end confdefs.h. */
25456 #include <sys/types.h>
25457 #include <sys/stat.h>
25459 #if defined S_ISBLK && defined S_IFDIR
25460 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25463 #if defined S_ISBLK && defined S_IFCHR
25464 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25467 #if defined S_ISLNK && defined S_IFREG
25468 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25471 #if defined S_ISSOCK && defined S_IFREG
25472 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25476 rm -f conftest.$ac_objext
25477 if { (ac_try="$ac_compile"
25478 case "(($ac_try" in
25479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25480 *) ac_try_echo=$ac_try;;
25482 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25483 $as_echo "$ac_try_echo") >&5
25484 (eval "$ac_compile") 2>conftest.er1
25486 grep -v '^ *+' conftest.er1 >conftest.err
25488 cat conftest.err >&5
25489 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25490 (exit $ac_status); } && {
25491 test -z "$ac_c_werror_flag" ||
25492 test ! -s conftest.err
25493 } && test -s conftest.$ac_objext; then
25494 ac_cv_header_stat_broken=no
25496 $as_echo "$as_me: failed program was
:" >&5
25497 sed 's/^/| /' conftest.$ac_ext >&5
25499 ac_cv_header_stat_broken=yes
25502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25504 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_stat_broken" >&5
25505 $as_echo "$ac_cv_header_stat_broken" >&6; }
25506 if test $ac_cv_header_stat_broken = yes; then
25508 cat >>confdefs.h <<\_ACEOF
25509 #define STAT_MACROS_BROKEN 1
25515 { $as_echo "$as_me:$LINENO: checking whether
#! works in shell scripts" >&5
25516 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
25517 if test "${ac_cv_sys_interpreter+set}" = set; then
25518 $as_echo_n "(cached) " >&6
25524 (SHELL
=/bin
/sh
; export SHELL
; .
/conftest
>/dev
/null
2>&1)
25525 if test $?
-ne 69; then
25526 ac_cv_sys_interpreter
=yes
25528 ac_cv_sys_interpreter
=no
25532 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
25533 $as_echo "$ac_cv_sys_interpreter" >&6; }
25534 interpval
=$ac_cv_sys_interpreter
25536 if test $ac_cv_sys_interpreter = yes; then
25537 cat >>confdefs.h
<<\_ACEOF
25538 #define HAVE_HASH_BANG_EXEC 1
25543 if test "$ac_cv_func_lstat" = "no"; then
25544 { $as_echo "$as_me:$LINENO: checking for lstat" >&5
25545 $as_echo_n "checking for lstat... " >&6; }
25546 if test "${bash_cv_func_lstat+set}" = set; then
25547 $as_echo_n "(cached) " >&6
25549 cat >conftest.
$ac_ext <<_ACEOF
25552 cat confdefs.h
>>conftest.
$ac_ext
25553 cat >>conftest.
$ac_ext <<_ACEOF
25554 /* end confdefs.h. */
25556 #include <sys/types.h>
25557 #include <sys/stat.h>
25562 lstat(".",(struct stat *)0);
25567 rm -f conftest.
$ac_objext conftest
$ac_exeext
25568 if { (ac_try
="$ac_link"
25569 case "(($ac_try" in
25570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25571 *) ac_try_echo=$ac_try;;
25573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25574 $as_echo "$ac_try_echo") >&5
25575 (eval "$ac_link") 2>conftest.er1
25577 grep -v '^ *+' conftest.er1 >conftest.err
25579 cat conftest.err >&5
25580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25581 (exit $ac_status); } && {
25582 test -z "$ac_c_werror_flag" ||
25583 test ! -s conftest.err
25584 } && test -s conftest$ac_exeext && {
25585 test "$cross_compiling" = yes ||
25586 $as_test_x conftest$ac_exeext
25588 bash_cv_func_lstat=yes
25590 $as_echo "$as_me: failed program was:" >&5
25591 sed 's/^/| /' conftest.$ac_ext >&5
25593 bash_cv_func_lstat=no
25596 rm -rf conftest.dSYM
25597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25598 conftest$ac_exeext conftest.$ac_ext
25600 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
25601 $as_echo "$bash_cv_func_lstat" >&6; }
25602 if test $bash_cv_func_lstat = yes; then
25603 cat >>confdefs.h <<\_ACEOF
25604 #define HAVE_LSTAT 1
25612 { $as_echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
25613 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
25614 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
25615 $as_echo_n "(cached) " >&6
25617 if test "$cross_compiling" = yes; then
25618 { $as_echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
25619 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
25620 bash_cv_func_ctype_nonascii=no
25623 cat >conftest.$ac_ext <<_ACEOF
25626 cat confdefs.h >>conftest.$ac_ext
25627 cat >>conftest.$ac_ext <<_ACEOF
25628 /* end confdefs.h. */
25630 #ifdef HAVE_LOCALE_H
25631 #include <locale.h>
25644 #ifdef HAVE_SETLOCALE
25645 /* We take a shot here. If that locale is not known, try the
25646 system default. We try this one because '\342' (226) is
25647 known to be a printable character in that locale. */
25648 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
25649 if (deflocale == 0)
25650 deflocale = setlocale(LC_ALL, "");
25657 exit (r1 == 0 || r2 == 0);
25661 rm -f conftest$ac_exeext
25662 if { (ac_try="$ac_link"
25663 case "(($ac_try" in
25664 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25665 *) ac_try_echo
=$ac_try;;
25667 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25668 $as_echo "$ac_try_echo") >&5
25669 (eval "$ac_link") 2>&5
25671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25673 { (case "(($ac_try" in
25674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25675 *) ac_try_echo=$ac_try;;
25677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25678 $as_echo "$ac_try_echo") >&5
25679 (eval "$ac_try") 2>&5
25681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682 (exit $ac_status); }; }; then
25683 bash_cv_func_ctype_nonascii=yes
25685 $as_echo "$as_me: program exited with status $ac_status" >&5
25686 $as_echo "$as_me: failed program was:" >&5
25687 sed 's/^/| /' conftest.$ac_ext >&5
25689 ( exit $ac_status )
25690 bash_cv_func_ctype_nonascii=no
25692 rm -rf conftest.dSYM
25693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25699 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
25700 $as_echo "$bash_cv_func_ctype_nonascii" >&6; }
25701 if test $bash_cv_func_ctype_nonascii = yes; then
25702 cat >>confdefs.h <<\_ACEOF
25703 #define CTYPE_NON_ASCII 1
25708 { $as_echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
25709 $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
25710 if test "${bash_cv_dup2_broken+set}" = set; then
25711 $as_echo_n "(cached) " >&6
25713 if test "$cross_compiling" = yes; then
25714 { $as_echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
25715 $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
25716 bash_cv_dup2_broken=no
25718 cat >conftest.$ac_ext <<_ACEOF
25721 cat confdefs.h >>conftest.$ac_ext
25722 cat >>conftest.$ac_ext <<_ACEOF
25723 /* end confdefs.h. */
25725 #include <sys/types.h>
25730 fd1 = open("/dev/null", 2);
25731 if (fcntl(fd1, 2, 1) < 0)
25733 fd2 = dup2(fd1, 1);
25736 fl = fcntl(fd2, 1, 0);
25737 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
25742 rm -f conftest$ac_exeext
25743 if { (ac_try="$ac_link"
25744 case "(($ac_try" in
25745 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25746 *) ac_try_echo
=$ac_try;;
25748 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25749 $as_echo "$ac_try_echo") >&5
25750 (eval "$ac_link") 2>&5
25752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25754 { (case "(($ac_try" in
25755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25756 *) ac_try_echo=$ac_try;;
25758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25759 $as_echo "$ac_try_echo") >&5
25760 (eval "$ac_try") 2>&5
25762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763 (exit $ac_status); }; }; then
25764 bash_cv_dup2_broken=yes
25766 $as_echo "$as_me: program exited with status $ac_status" >&5
25767 $as_echo "$as_me: failed program was:" >&5
25768 sed 's/^/| /' conftest.$ac_ext >&5
25770 ( exit $ac_status )
25771 bash_cv_dup2_broken=no
25773 rm -rf conftest.dSYM
25774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25781 { $as_echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
25782 $as_echo "$bash_cv_dup2_broken" >&6; }
25783 if test $bash_cv_dup2_broken = yes; then
25784 cat >>confdefs.h <<\_ACEOF
25785 #define DUP2_BROKEN 1
25791 { $as_echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
25792 $as_echo_n "checking whether pgrps need synchronization... " >&6; }
25793 if test "${bash_cv_pgrp_pipe+set}" = set; then
25794 $as_echo_n "(cached) " >&6
25796 if test "$cross_compiling" = yes; then
25797 { $as_echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
25798 $as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
25799 bash_cv_pgrp_pipe=no
25801 cat >conftest.$ac_ext <<_ACEOF
25804 cat confdefs.h >>conftest.$ac_ext
25805 cat >>conftest.$ac_ext <<_ACEOF
25806 /* end confdefs.h. */
25808 #ifdef HAVE_UNISTD_H
25809 # include <unistd.h>
25813 # ifdef GETPGRP_VOID
25814 # define getpgID() getpgrp()
25816 # define getpgID() getpgrp(0)
25817 # define setpgid(x,y) setpgrp(x,y)
25819 int pid1, pid2, fds[2];
25823 switch (pid1 = fork()) {
25827 setpgid(0, getpid());
25830 setpgid(pid1, pid1);
25832 sleep(2); /* let first child die */
25837 switch (pid2 = fork()) {
25842 ok = getpgID() == pid1;
25843 write(fds[1], &ok, 1);
25846 setpgid(pid2, pid1);
25849 if (read(fds[0], &ok, 1) != 1)
25857 rm -f conftest$ac_exeext
25858 if { (ac_try="$ac_link"
25859 case "(($ac_try" in
25860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25861 *) ac_try_echo
=$ac_try;;
25863 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25864 $as_echo "$ac_try_echo") >&5
25865 (eval "$ac_link") 2>&5
25867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25869 { (case "(($ac_try" in
25870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25871 *) ac_try_echo=$ac_try;;
25873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25874 $as_echo "$ac_try_echo") >&5
25875 (eval "$ac_try") 2>&5
25877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); }; }; then
25879 bash_cv_pgrp_pipe=no
25881 $as_echo "$as_me: program exited with status $ac_status" >&5
25882 $as_echo "$as_me: failed program was:" >&5
25883 sed 's/^/| /' conftest.$ac_ext >&5
25885 ( exit $ac_status )
25886 bash_cv_pgrp_pipe=yes
25888 rm -rf conftest.dSYM
25889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25896 { $as_echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
25897 $as_echo "$bash_cv_pgrp_pipe" >&6; }
25898 if test $bash_cv_pgrp_pipe = yes; then
25899 cat >>confdefs.h <<\_ACEOF
25900 #define PGRP_PIPE 1
25906 { $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5
25907 $as_echo_n "checking for type of signal functions... " >&6; }
25908 if test "${bash_cv_signal_vintage+set}" = set; then
25909 $as_echo_n "(cached) " >&6
25912 cat >conftest.$ac_ext <<_ACEOF
25915 cat confdefs.h >>conftest.$ac_ext
25916 cat >>conftest.$ac_ext <<_ACEOF
25917 /* end confdefs.h. */
25918 #include <signal.h>
25924 struct sigaction sa;
25925 sigemptyset(&ss); sigsuspend(&ss);
25926 sigaction(SIGINT, &sa, (struct sigaction *) 0);
25927 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
25933 rm -f conftest.$ac_objext conftest$ac_exeext
25934 if { (ac_try="$ac_link"
25935 case "(($ac_try" in
25936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25937 *) ac_try_echo
=$ac_try;;
25939 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25940 $as_echo "$ac_try_echo") >&5
25941 (eval "$ac_link") 2>conftest.er1
25943 grep -v '^ *+' conftest.er1
>conftest.err
25945 cat conftest.err
>&5
25946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947 (exit $ac_status); } && {
25948 test -z "$ac_c_werror_flag" ||
25949 test ! -s conftest.err
25950 } && test -s conftest
$ac_exeext && {
25951 test "$cross_compiling" = yes ||
25952 $as_test_x conftest
$ac_exeext
25954 bash_cv_signal_vintage
=posix
25956 $as_echo "$as_me: failed program was:" >&5
25957 sed 's/^/| /' conftest.
$ac_ext >&5
25960 cat >conftest.
$ac_ext <<_ACEOF
25963 cat confdefs.h
>>conftest.
$ac_ext
25964 cat >>conftest.
$ac_ext <<_ACEOF
25965 /* end confdefs.h. */
25966 #include <signal.h>
25971 int mask = sigmask(SIGINT);
25972 sigsetmask(mask); sigblock(mask); sigpause(mask);
25978 rm -f conftest.
$ac_objext conftest
$ac_exeext
25979 if { (ac_try
="$ac_link"
25980 case "(($ac_try" in
25981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25982 *) ac_try_echo=$ac_try;;
25984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25985 $as_echo "$ac_try_echo") >&5
25986 (eval "$ac_link") 2>conftest.er1
25988 grep -v '^ *+' conftest.er1 >conftest.err
25990 cat conftest.err >&5
25991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992 (exit $ac_status); } && {
25993 test -z "$ac_c_werror_flag" ||
25994 test ! -s conftest.err
25995 } && test -s conftest$ac_exeext && {
25996 test "$cross_compiling" = yes ||
25997 $as_test_x conftest$ac_exeext
25999 bash_cv_signal_vintage=4.2bsd
26001 $as_echo "$as_me: failed program was:" >&5
26002 sed 's/^/| /' conftest.$ac_ext >&5
26005 cat >conftest.$ac_ext <<_ACEOF
26008 cat confdefs.h >>conftest.$ac_ext
26009 cat >>conftest.$ac_ext <<_ACEOF
26010 /* end confdefs.h. */
26012 #include <signal.h>
26013 RETSIGTYPE foo() { }
26018 int mask = sigmask(SIGINT);
26019 sigset(SIGINT, foo); sigrelse(SIGINT);
26020 sighold(SIGINT); sigpause(SIGINT);
26026 rm -f conftest.$ac_objext conftest$ac_exeext
26027 if { (ac_try="$ac_link"
26028 case "(($ac_try" in
26029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26030 *) ac_try_echo
=$ac_try;;
26032 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26033 $as_echo "$ac_try_echo") >&5
26034 (eval "$ac_link") 2>conftest.er1
26036 grep -v '^ *+' conftest.er1
>conftest.err
26038 cat conftest.err
>&5
26039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); } && {
26041 test -z "$ac_c_werror_flag" ||
26042 test ! -s conftest.err
26043 } && test -s conftest
$ac_exeext && {
26044 test "$cross_compiling" = yes ||
26045 $as_test_x conftest
$ac_exeext
26047 bash_cv_signal_vintage
=svr3
26049 $as_echo "$as_me: failed program was:" >&5
26050 sed 's/^/| /' conftest.
$ac_ext >&5
26052 bash_cv_signal_vintage
=v7
26056 rm -rf conftest.dSYM
26057 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26058 conftest
$ac_exeext conftest.
$ac_ext
26062 rm -rf conftest.dSYM
26063 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26064 conftest
$ac_exeext conftest.
$ac_ext
26068 rm -rf conftest.dSYM
26069 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26070 conftest
$ac_exeext conftest.
$ac_ext
26074 { $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
26075 $as_echo "$bash_cv_signal_vintage" >&6; }
26076 if test "$bash_cv_signal_vintage" = posix
; then
26077 cat >>confdefs.h
<<\_ACEOF
26078 #define HAVE_POSIX_SIGNALS 1
26081 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26082 cat >>confdefs.h
<<\_ACEOF
26083 #define HAVE_BSD_SIGNALS 1
26086 elif test "$bash_cv_signal_vintage" = svr3
; then
26087 cat >>confdefs.h
<<\_ACEOF
26088 #define HAVE_USG_SIGHOLD 1
26094 { $as_echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
26095 $as_echo_n "checking for sys_errlist and sys_nerr... " >&6; }
26096 if test "${bash_cv_sys_errlist+set}" = set; then
26097 $as_echo_n "(cached) " >&6
26099 cat >conftest.
$ac_ext <<_ACEOF
26102 cat confdefs.h
>>conftest.
$ac_ext
26103 cat >>conftest.
$ac_ext <<_ACEOF
26104 /* end confdefs.h. */
26109 extern char *sys_errlist[];
26110 extern int sys_nerr;
26111 char *msg = sys_errlist[sys_nerr - 1];
26116 rm -f conftest.
$ac_objext conftest
$ac_exeext
26117 if { (ac_try
="$ac_link"
26118 case "(($ac_try" in
26119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26120 *) ac_try_echo=$ac_try;;
26122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26123 $as_echo "$ac_try_echo") >&5
26124 (eval "$ac_link") 2>conftest.er1
26126 grep -v '^ *+' conftest.er1 >conftest.err
26128 cat conftest.err >&5
26129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); } && {
26131 test -z "$ac_c_werror_flag" ||
26132 test ! -s conftest.err
26133 } && test -s conftest$ac_exeext && {
26134 test "$cross_compiling" = yes ||
26135 $as_test_x conftest$ac_exeext
26137 bash_cv_sys_errlist=yes
26139 $as_echo "$as_me: failed program was:" >&5
26140 sed 's/^/| /' conftest.$ac_ext >&5
26142 bash_cv_sys_errlist=no
26145 rm -rf conftest.dSYM
26146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26147 conftest$ac_exeext conftest.$ac_ext
26149 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
26150 $as_echo "$bash_cv_sys_errlist" >&6; }
26151 if test $bash_cv_sys_errlist = yes; then
26152 cat >>confdefs.h <<\_ACEOF
26153 #define HAVE_SYS_ERRLIST 1
26159 { $as_echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
26160 $as_echo_n "checking for sys_siglist in system C library... " >&6; }
26161 if test "${bash_cv_sys_siglist+set}" = set; then
26162 $as_echo_n "(cached) " >&6
26164 if test "$cross_compiling" = yes; then
26165 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
26166 $as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
26167 bash_cv_sys_siglist=no
26169 cat >conftest.$ac_ext <<_ACEOF
26172 cat confdefs.h >>conftest.$ac_ext
26173 cat >>conftest.$ac_ext <<_ACEOF
26174 /* end confdefs.h. */
26176 #include <sys/types.h>
26177 #include <signal.h>
26178 #ifdef HAVE_UNISTD_H
26179 #include <unistd.h>
26181 #if !HAVE_DECL_SYS_SIGLIST
26182 extern char *sys_siglist[];
26186 char *msg = sys_siglist[2];
26190 rm -f conftest$ac_exeext
26191 if { (ac_try="$ac_link"
26192 case "(($ac_try" in
26193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26194 *) ac_try_echo
=$ac_try;;
26196 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26197 $as_echo "$ac_try_echo") >&5
26198 (eval "$ac_link") 2>&5
26200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26202 { (case "(($ac_try" in
26203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26204 *) ac_try_echo=$ac_try;;
26206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26207 $as_echo "$ac_try_echo") >&5
26208 (eval "$ac_try") 2>&5
26210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26211 (exit $ac_status); }; }; then
26212 bash_cv_sys_siglist=yes
26214 $as_echo "$as_me: program exited with status $ac_status" >&5
26215 $as_echo "$as_me: failed program was:" >&5
26216 sed 's/^/| /' conftest.$ac_ext >&5
26218 ( exit $ac_status )
26219 bash_cv_sys_siglist=no
26221 rm -rf conftest.dSYM
26222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26228 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
26229 $as_echo "$bash_cv_sys_siglist" >&6; }
26230 if test $bash_cv_sys_siglist = yes; then
26231 cat >>confdefs.h <<\_ACEOF
26232 #define HAVE_SYS_SIGLIST 1
26237 { $as_echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
26238 $as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
26239 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
26240 $as_echo_n "(cached) " >&6
26242 cat >conftest.$ac_ext <<_ACEOF
26245 cat confdefs.h >>conftest.$ac_ext
26246 cat >>conftest.$ac_ext <<_ACEOF
26247 /* end confdefs.h. */
26249 #include <sys/types.h>
26250 #include <signal.h>
26251 #ifdef HAVE_UNISTD_H
26252 #include <unistd.h>
26257 char *msg = _sys_siglist[2];
26262 rm -f conftest.$ac_objext
26263 if { (ac_try="$ac_compile"
26264 case "(($ac_try" in
26265 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26266 *) ac_try_echo
=$ac_try;;
26268 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26269 $as_echo "$ac_try_echo") >&5
26270 (eval "$ac_compile") 2>conftest.er1
26272 grep -v '^ *+' conftest.er1
>conftest.err
26274 cat conftest.err
>&5
26275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26276 (exit $ac_status); } && {
26277 test -z "$ac_c_werror_flag" ||
26278 test ! -s conftest.err
26279 } && test -s conftest.
$ac_objext; then
26280 bash_cv_decl_under_sys_siglist
=yes
26282 $as_echo "$as_me: failed program was:" >&5
26283 sed 's/^/| /' conftest.
$ac_ext >&5
26285 bash_cv_decl_under_sys_siglist
=no
26288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26290 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
26291 $as_echo "$bash_cv_decl_under_sys_siglist" >&6; }
26292 if test $bash_cv_decl_under_sys_siglist = yes; then
26293 cat >>confdefs.h
<<\_ACEOF
26294 #define UNDER_SYS_SIGLIST_DECLARED 1
26300 { $as_echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
26301 $as_echo_n "checking for _sys_siglist in system C library... " >&6; }
26302 if test "${bash_cv_under_sys_siglist+set}" = set; then
26303 $as_echo_n "(cached) " >&6
26305 if test "$cross_compiling" = yes; then
26306 { $as_echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
26307 $as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
26308 bash_cv_under_sys_siglist
=no
26310 cat >conftest.
$ac_ext <<_ACEOF
26313 cat confdefs.h
>>conftest.
$ac_ext
26314 cat >>conftest.
$ac_ext <<_ACEOF
26315 /* end confdefs.h. */
26317 #include <sys/types.h>
26318 #include <signal.h>
26319 #ifdef HAVE_UNISTD_H
26320 #include <unistd.h>
26322 #ifndef UNDER_SYS_SIGLIST_DECLARED
26323 extern char *_sys_siglist[];
26327 char *msg = (char *)_sys_siglist[2];
26331 rm -f conftest
$ac_exeext
26332 if { (ac_try
="$ac_link"
26333 case "(($ac_try" in
26334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26335 *) ac_try_echo=$ac_try;;
26337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26338 $as_echo "$ac_try_echo") >&5
26339 (eval "$ac_link") 2>&5
26341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26343 { (case "(($ac_try" in
26344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26345 *) ac_try_echo
=$ac_try;;
26347 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26348 $as_echo "$ac_try_echo") >&5
26349 (eval "$ac_try") 2>&5
26351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352 (exit $ac_status); }; }; then
26353 bash_cv_under_sys_siglist
=yes
26355 $as_echo "$as_me: program exited with status $ac_status" >&5
26356 $as_echo "$as_me: failed program was:" >&5
26357 sed 's/^/| /' conftest.
$ac_ext >&5
26359 ( exit $ac_status )
26360 bash_cv_under_sys_siglist
=no
26362 rm -rf conftest.dSYM
26363 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26369 { $as_echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
26370 $as_echo "$bash_cv_under_sys_siglist" >&6; }
26371 if test $bash_cv_under_sys_siglist = yes; then
26372 cat >>confdefs.h
<<\_ACEOF
26373 #define HAVE_UNDER_SYS_SIGLIST 1
26379 { $as_echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
26380 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
26381 if test "${bash_cv_void_sighandler+set}" = set; then
26382 $as_echo_n "(cached) " >&6
26384 cat >conftest.
$ac_ext <<_ACEOF
26387 cat confdefs.h
>>conftest.
$ac_ext
26388 cat >>conftest.
$ac_ext <<_ACEOF
26389 /* end confdefs.h. */
26390 #include <sys/types.h>
26391 #include <signal.h>
26398 void (*signal ()) ();
26407 rm -f conftest.
$ac_objext
26408 if { (ac_try
="$ac_compile"
26409 case "(($ac_try" in
26410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26411 *) ac_try_echo=$ac_try;;
26413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26414 $as_echo "$ac_try_echo") >&5
26415 (eval "$ac_compile") 2>conftest.er1
26417 grep -v '^ *+' conftest.er1 >conftest.err
26419 cat conftest.err >&5
26420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); } && {
26422 test -z "$ac_c_werror_flag" ||
26423 test ! -s conftest.err
26424 } && test -s conftest.$ac_objext; then
26425 bash_cv_void_sighandler=yes
26427 $as_echo "$as_me: failed program was:" >&5
26428 sed 's/^/| /' conftest.$ac_ext >&5
26430 bash_cv_void_sighandler=no
26433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26435 { $as_echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
26436 $as_echo "$bash_cv_void_sighandler" >&6; }
26437 if test $bash_cv_void_sighandler = yes; then
26438 cat >>confdefs.h <<\_ACEOF
26439 #define VOID_SIGHANDLER 1
26446 { $as_echo "$as_me:$LINENO: checking for clock_t" >&5
26447 $as_echo_n "checking for clock_t... " >&6; }
26448 if test "${bash_cv_type_clock_t+set}" = set; then
26449 $as_echo_n "(cached) " >&6
26451 cat >conftest.$ac_ext <<_ACEOF
26454 cat confdefs.h >>conftest.$ac_ext
26455 cat >>conftest.$ac_ext <<_ACEOF
26456 /* end confdefs.h. */
26457 #include <sys/types.h>
26459 #include <stdlib.h>
26460 #include <stddef.h>
26462 #if HAVE_INTTYPES_H
26463 #include <inttypes.h>
26466 #include <stdint.h>
26468 #include <sys/times.h>
26471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26472 $EGREP "clock_t" >/dev/null 2>&1; then
26473 bash_cv_type_clock_t=yes
26475 bash_cv_type_clock_t=no
26481 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
26482 $as_echo "$bash_cv_type_clock_t" >&6; }
26484 if test $bash_cv_type_clock_t = no; then
26485 cat >>confdefs.h <<_ACEOF
26486 #define clock_t long
26493 { $as_echo "$as_me:$LINENO: checking for sigset_t" >&5
26494 $as_echo_n "checking for sigset_t... " >&6; }
26495 if test "${bash_cv_type_sigset_t+set}" = set; then
26496 $as_echo_n "(cached) " >&6
26498 cat >conftest.$ac_ext <<_ACEOF
26501 cat confdefs.h >>conftest.$ac_ext
26502 cat >>conftest.$ac_ext <<_ACEOF
26503 /* end confdefs.h. */
26504 #include <sys/types.h>
26506 #include <stdlib.h>
26507 #include <stddef.h>
26509 #if HAVE_INTTYPES_H
26510 #include <inttypes.h>
26513 #include <stdint.h>
26515 #include <signal.h>
26518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26519 $EGREP "sigset_t" >/dev/null 2>&1; then
26520 bash_cv_type_sigset_t=yes
26522 bash_cv_type_sigset_t=no
26528 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
26529 $as_echo "$bash_cv_type_sigset_t" >&6; }
26531 if test $bash_cv_type_sigset_t = no; then
26532 cat >>confdefs.h <<_ACEOF
26533 #define sigset_t int
26540 { $as_echo "$as_me:$LINENO: checking for quad_t" >&5
26541 $as_echo_n "checking for quad_t... " >&6; }
26542 if test "${bash_cv_type_quad_t+set}" = set; then
26543 $as_echo_n "(cached) " >&6
26545 cat >conftest.$ac_ext <<_ACEOF
26548 cat confdefs.h >>conftest.$ac_ext
26549 cat >>conftest.$ac_ext <<_ACEOF
26550 /* end confdefs.h. */
26551 #include <sys/types.h>
26553 #include <stdlib.h>
26554 #include <stddef.h>
26556 #if HAVE_INTTYPES_H
26557 #include <inttypes.h>
26560 #include <stdint.h>
26565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26566 $EGREP "quad_t" >/dev/null 2>&1; then
26567 bash_cv_type_quad_t=yes
26569 bash_cv_type_quad_t=no
26575 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
26576 $as_echo "$bash_cv_type_quad_t" >&6; }
26577 if test $bash_cv_type_quad_t = yes; then
26578 cat >>confdefs.h <<\_ACEOF
26579 #define HAVE_QUAD_T 1
26583 if test $bash_cv_type_quad_t = no; then
26584 cat >>confdefs.h <<_ACEOF
26585 #define quad_t long
26592 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
26593 $as_echo_n "checking for intmax_t... " >&6; }
26594 if test "${bash_cv_type_intmax_t+set}" = set; then
26595 $as_echo_n "(cached) " >&6
26597 cat >conftest.$ac_ext <<_ACEOF
26600 cat confdefs.h >>conftest.$ac_ext
26601 cat >>conftest.$ac_ext <<_ACEOF
26602 /* end confdefs.h. */
26603 #include <sys/types.h>
26605 #include <stdlib.h>
26606 #include <stddef.h>
26608 #if HAVE_INTTYPES_H
26609 #include <inttypes.h>
26612 #include <stdint.h>
26617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26618 $EGREP "intmax_t" >/dev/null 2>&1; then
26619 bash_cv_type_intmax_t=yes
26621 bash_cv_type_intmax_t=no
26627 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
26628 $as_echo "$bash_cv_type_intmax_t" >&6; }
26630 if test $bash_cv_type_intmax_t = no; then
26631 cat >>confdefs.h <<_ACEOF
26632 #define intmax_t $bash_cv_type_long_long
26639 { $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5
26640 $as_echo_n "checking for uintmax_t... " >&6; }
26641 if test "${bash_cv_type_uintmax_t+set}" = set; then
26642 $as_echo_n "(cached) " >&6
26644 cat >conftest.$ac_ext <<_ACEOF
26647 cat confdefs.h >>conftest.$ac_ext
26648 cat >>conftest.$ac_ext <<_ACEOF
26649 /* end confdefs.h. */
26650 #include <sys/types.h>
26652 #include <stdlib.h>
26653 #include <stddef.h>
26655 #if HAVE_INTTYPES_H
26656 #include <inttypes.h>
26659 #include <stdint.h>
26664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26665 $EGREP "uintmax_t" >/dev/null 2>&1; then
26666 bash_cv_type_uintmax_t=yes
26668 bash_cv_type_uintmax_t=no
26674 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
26675 $as_echo "$bash_cv_type_uintmax_t" >&6; }
26677 if test $bash_cv_type_uintmax_t = no; then
26678 cat >>confdefs.h <<_ACEOF
26679 #define uintmax_t $bash_cv_type_unsigned_long_long
26684 if test "$ac_cv_header_sys_socket_h" = "yes"; then
26687 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
26688 $as_echo_n "checking for socklen_t... " >&6; }
26689 if test "${bash_cv_type_socklen_t+set}" = set; then
26690 $as_echo_n "(cached) " >&6
26692 cat >conftest.$ac_ext <<_ACEOF
26695 cat confdefs.h >>conftest.$ac_ext
26696 cat >>conftest.$ac_ext <<_ACEOF
26697 /* end confdefs.h. */
26698 #include <sys/types.h>
26700 #include <stdlib.h>
26701 #include <stddef.h>
26703 #if HAVE_INTTYPES_H
26704 #include <inttypes.h>
26707 #include <stdint.h>
26709 #include <sys/socket.h>
26712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26713 $EGREP "socklen_t" >/dev/null 2>&1; then
26714 bash_cv_type_socklen_t=yes
26716 bash_cv_type_socklen_t=no
26722 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
26723 $as_echo "$bash_cv_type_socklen_t" >&6; }
26724 if test $bash_cv_type_socklen_t = yes; then
26725 cat >>confdefs.h <<\_ACEOF
26726 #define HAVE_SOCKLEN_T 1
26730 if test $bash_cv_type_socklen_t = no; then
26731 cat >>confdefs.h <<_ACEOF
26732 #define socklen_t int
26738 { $as_echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
26739 $as_echo_n "checking for size and type of struct rlimit fields... " >&6; }
26740 if test "${bash_cv_type_rlimit+set}" = set; then
26741 $as_echo_n "(cached) " >&6
26743 cat >conftest.$ac_ext <<_ACEOF
26746 cat confdefs.h >>conftest.$ac_ext
26747 cat >>conftest.$ac_ext <<_ACEOF
26748 /* end confdefs.h. */
26749 #include <sys/types.h>
26750 #include <sys/resource.h>
26759 rm -f conftest.$ac_objext
26760 if { (ac_try="$ac_compile"
26761 case "(($ac_try" in
26762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26763 *) ac_try_echo
=$ac_try;;
26765 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26766 $as_echo "$ac_try_echo") >&5
26767 (eval "$ac_compile") 2>conftest.er1
26769 grep -v '^ *+' conftest.er1
>conftest.err
26771 cat conftest.err
>&5
26772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773 (exit $ac_status); } && {
26774 test -z "$ac_c_werror_flag" ||
26775 test ! -s conftest.err
26776 } && test -s conftest.
$ac_objext; then
26777 bash_cv_type_rlimit
=rlim_t
26779 $as_echo "$as_me: failed program was:" >&5
26780 sed 's/^/| /' conftest.
$ac_ext >&5
26783 if test "$cross_compiling" = yes; then
26784 { $as_echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
26785 $as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
26786 bash_cv_type_rlimit
=long
26788 cat >conftest.
$ac_ext <<_ACEOF
26791 cat confdefs.h
>>conftest.
$ac_ext
26792 cat >>conftest.
$ac_ext <<_ACEOF
26793 /* end confdefs.h. */
26795 #include <sys/types.h>
26796 #include <sys/time.h>
26797 #include <sys/resource.h>
26802 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
26808 rm -f conftest
$ac_exeext
26809 if { (ac_try
="$ac_link"
26810 case "(($ac_try" in
26811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26812 *) ac_try_echo=$ac_try;;
26814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26815 $as_echo "$ac_try_echo") >&5
26816 (eval "$ac_link") 2>&5
26818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26820 { (case "(($ac_try" in
26821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26822 *) ac_try_echo
=$ac_try;;
26824 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26825 $as_echo "$ac_try_echo") >&5
26826 (eval "$ac_try") 2>&5
26828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); }; }; then
26830 bash_cv_type_rlimit
=quad_t
26832 $as_echo "$as_me: program exited with status $ac_status" >&5
26833 $as_echo "$as_me: failed program was:" >&5
26834 sed 's/^/| /' conftest.
$ac_ext >&5
26836 ( exit $ac_status )
26837 bash_cv_type_rlimit
=long
26839 rm -rf conftest.dSYM
26840 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26850 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
26851 $as_echo "$bash_cv_type_rlimit" >&6; }
26852 if test $bash_cv_type_rlimit = quad_t
; then
26853 cat >>confdefs.h
<<\_ACEOF
26854 #define RLIMTYPE quad_t
26857 elif test $bash_cv_type_rlimit = rlim_t
; then
26858 cat >>confdefs.h
<<\_ACEOF
26859 #define RLIMTYPE rlim_t
26866 { $as_echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
26867 $as_echo_n "checking for struct termios.c_line... " >&6; }
26868 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
26869 $as_echo_n "(cached) " >&6
26871 cat >conftest.
$ac_ext <<_ACEOF
26874 cat confdefs.h
>>conftest.
$ac_ext
26875 cat >>conftest.
$ac_ext <<_ACEOF
26876 /* end confdefs.h. */
26878 #include <sys/types.h>
26879 #include <termios.h>
26885 static struct termios ac_aggr;
26886 if (ac_aggr.c_line)
26892 rm -f conftest.
$ac_objext
26893 if { (ac_try
="$ac_compile"
26894 case "(($ac_try" in
26895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26896 *) ac_try_echo=$ac_try;;
26898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26899 $as_echo "$ac_try_echo") >&5
26900 (eval "$ac_compile") 2>conftest.er1
26902 grep -v '^ *+' conftest.er1 >conftest.err
26904 cat conftest.err >&5
26905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); } && {
26907 test -z "$ac_c_werror_flag" ||
26908 test ! -s conftest.err
26909 } && test -s conftest.$ac_objext; then
26910 ac_cv_member_struct_termios_c_line=yes
26912 $as_echo "$as_me: failed program was:" >&5
26913 sed 's/^/| /' conftest.$ac_ext >&5
26915 cat >conftest.$ac_ext <<_ACEOF
26918 cat confdefs.h >>conftest.$ac_ext
26919 cat >>conftest.$ac_ext <<_ACEOF
26920 /* end confdefs.h. */
26922 #include <sys/types.h>
26923 #include <termios.h>
26929 static struct termios ac_aggr;
26930 if (sizeof ac_aggr.c_line)
26936 rm -f conftest.$ac_objext
26937 if { (ac_try="$ac_compile"
26938 case "(($ac_try" in
26939 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26940 *) ac_try_echo
=$ac_try;;
26942 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26943 $as_echo "$ac_try_echo") >&5
26944 (eval "$ac_compile") 2>conftest.er1
26946 grep -v '^ *+' conftest.er1
>conftest.err
26948 cat conftest.err
>&5
26949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950 (exit $ac_status); } && {
26951 test -z "$ac_c_werror_flag" ||
26952 test ! -s conftest.err
26953 } && test -s conftest.
$ac_objext; then
26954 ac_cv_member_struct_termios_c_line
=yes
26956 $as_echo "$as_me: failed program was:" >&5
26957 sed 's/^/| /' conftest.
$ac_ext >&5
26959 ac_cv_member_struct_termios_c_line
=no
26962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26967 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
26968 $as_echo "$ac_cv_member_struct_termios_c_line" >&6; }
26969 if test "x$ac_cv_member_struct_termios_c_line" = x
""yes; then
26970 cat >>confdefs.h
<<\_ACEOF
26971 #define TERMIOS_LDISC 1
26978 { $as_echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
26979 $as_echo_n "checking for struct termio.c_line... " >&6; }
26980 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
26981 $as_echo_n "(cached) " >&6
26983 cat >conftest.
$ac_ext <<_ACEOF
26986 cat confdefs.h
>>conftest.
$ac_ext
26987 cat >>conftest.
$ac_ext <<_ACEOF
26988 /* end confdefs.h. */
26990 #include <sys/types.h>
26991 #include <termio.h>
26997 static struct termio ac_aggr;
26998 if (ac_aggr.c_line)
27004 rm -f conftest.
$ac_objext
27005 if { (ac_try
="$ac_compile"
27006 case "(($ac_try" in
27007 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27008 *) ac_try_echo=$ac_try;;
27010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27011 $as_echo "$ac_try_echo") >&5
27012 (eval "$ac_compile") 2>conftest.er1
27014 grep -v '^ *+' conftest.er1 >conftest.err
27016 cat conftest.err >&5
27017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018 (exit $ac_status); } && {
27019 test -z "$ac_c_werror_flag" ||
27020 test ! -s conftest.err
27021 } && test -s conftest.$ac_objext; then
27022 ac_cv_member_struct_termio_c_line=yes
27024 $as_echo "$as_me: failed program was:" >&5
27025 sed 's/^/| /' conftest.$ac_ext >&5
27027 cat >conftest.$ac_ext <<_ACEOF
27030 cat confdefs.h >>conftest.$ac_ext
27031 cat >>conftest.$ac_ext <<_ACEOF
27032 /* end confdefs.h. */
27034 #include <sys/types.h>
27035 #include <termio.h>
27041 static struct termio ac_aggr;
27042 if (sizeof ac_aggr.c_line)
27048 rm -f conftest.$ac_objext
27049 if { (ac_try="$ac_compile"
27050 case "(($ac_try" in
27051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27052 *) ac_try_echo
=$ac_try;;
27054 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27055 $as_echo "$ac_try_echo") >&5
27056 (eval "$ac_compile") 2>conftest.er1
27058 grep -v '^ *+' conftest.er1
>conftest.err
27060 cat conftest.err
>&5
27061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); } && {
27063 test -z "$ac_c_werror_flag" ||
27064 test ! -s conftest.err
27065 } && test -s conftest.
$ac_objext; then
27066 ac_cv_member_struct_termio_c_line
=yes
27068 $as_echo "$as_me: failed program was:" >&5
27069 sed 's/^/| /' conftest.
$ac_ext >&5
27071 ac_cv_member_struct_termio_c_line
=no
27074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27079 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
27080 $as_echo "$ac_cv_member_struct_termio_c_line" >&6; }
27081 if test "x$ac_cv_member_struct_termio_c_line" = x
""yes; then
27082 cat >>confdefs.h
<<\_ACEOF
27083 #define TERMIO_LDISC 1
27090 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
27091 $as_echo_n "checking for struct dirent.d_ino... " >&6; }
27092 if test "${bash_cv_dirent_has_dino+set}" = set; then
27093 $as_echo_n "(cached) " >&6
27095 cat >conftest.
$ac_ext <<_ACEOF
27098 cat confdefs.h
>>conftest.
$ac_ext
27099 cat >>conftest.
$ac_ext <<_ACEOF
27100 /* end confdefs.h. */
27103 #include <sys/types.h>
27104 #ifdef HAVE_UNISTD_H
27105 # include <unistd.h>
27106 #endif /* HAVE_UNISTD_H */
27107 #if defined(HAVE_DIRENT_H)
27108 # include <dirent.h>
27110 # define dirent direct
27111 # ifdef HAVE_SYS_NDIR_H
27112 # include <sys/ndir.h>
27113 # endif /* SYSNDIR */
27114 # ifdef HAVE_SYS_DIR_H
27115 # include <sys/dir.h>
27116 # endif /* SYSDIR */
27117 # ifdef HAVE_NDIR_H
27120 #endif /* HAVE_DIRENT_H */
27126 struct dirent d; int z; z = d.d_ino;
27132 rm -f conftest.
$ac_objext
27133 if { (ac_try
="$ac_compile"
27134 case "(($ac_try" in
27135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27136 *) ac_try_echo=$ac_try;;
27138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27139 $as_echo "$ac_try_echo") >&5
27140 (eval "$ac_compile") 2>conftest.er1
27142 grep -v '^ *+' conftest.er1 >conftest.err
27144 cat conftest.err >&5
27145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); } && {
27147 test -z "$ac_c_werror_flag" ||
27148 test ! -s conftest.err
27149 } && test -s conftest.$ac_objext; then
27150 bash_cv_dirent_has_dino=yes
27152 $as_echo "$as_me: failed program was:" >&5
27153 sed 's/^/| /' conftest.$ac_ext >&5
27155 bash_cv_dirent_has_dino=no
27158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27161 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
27162 $as_echo "$bash_cv_dirent_has_dino" >&6; }
27163 if test $bash_cv_dirent_has_dino = yes; then
27164 cat >>confdefs.h <<\_ACEOF
27165 #define HAVE_STRUCT_DIRENT_D_INO 1
27171 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
27172 $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
27173 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
27174 $as_echo_n "(cached) " >&6
27176 cat >conftest.$ac_ext <<_ACEOF
27179 cat confdefs.h >>conftest.$ac_ext
27180 cat >>conftest.$ac_ext <<_ACEOF
27181 /* end confdefs.h. */
27184 #include <sys/types.h>
27185 #ifdef HAVE_UNISTD_H
27186 # include <unistd.h>
27187 #endif /* HAVE_UNISTD_H */
27188 #if defined(HAVE_DIRENT_H)
27189 # include <dirent.h>
27191 # define dirent direct
27192 # ifdef HAVE_SYS_NDIR_H
27193 # include <sys/ndir.h>
27194 # endif /* SYSNDIR */
27195 # ifdef HAVE_SYS_DIR_H
27196 # include <sys/dir.h>
27197 # endif /* SYSDIR */
27198 # ifdef HAVE_NDIR_H
27201 #endif /* HAVE_DIRENT_H */
27207 struct dirent d; int z; z = d.d_fileno;
27213 rm -f conftest.$ac_objext
27214 if { (ac_try="$ac_compile"
27215 case "(($ac_try" in
27216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27217 *) ac_try_echo
=$ac_try;;
27219 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27220 $as_echo "$ac_try_echo") >&5
27221 (eval "$ac_compile") 2>conftest.er1
27223 grep -v '^ *+' conftest.er1
>conftest.err
27225 cat conftest.err
>&5
27226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227 (exit $ac_status); } && {
27228 test -z "$ac_c_werror_flag" ||
27229 test ! -s conftest.err
27230 } && test -s conftest.
$ac_objext; then
27231 bash_cv_dirent_has_d_fileno
=yes
27233 $as_echo "$as_me: failed program was:" >&5
27234 sed 's/^/| /' conftest.
$ac_ext >&5
27236 bash_cv_dirent_has_d_fileno
=no
27239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27242 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
27243 $as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
27244 if test $bash_cv_dirent_has_d_fileno = yes; then
27245 cat >>confdefs.h
<<\_ACEOF
27246 #define HAVE_STRUCT_DIRENT_D_FILENO 1
27252 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
27253 $as_echo_n "checking for struct dirent.d_namlen... " >&6; }
27254 if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
27255 $as_echo_n "(cached) " >&6
27257 cat >conftest.
$ac_ext <<_ACEOF
27260 cat confdefs.h
>>conftest.
$ac_ext
27261 cat >>conftest.
$ac_ext <<_ACEOF
27262 /* end confdefs.h. */
27265 #include <sys/types.h>
27266 #ifdef HAVE_UNISTD_H
27267 # include <unistd.h>
27268 #endif /* HAVE_UNISTD_H */
27269 #if defined(HAVE_DIRENT_H)
27270 # include <dirent.h>
27272 # define dirent direct
27273 # ifdef HAVE_SYS_NDIR_H
27274 # include <sys/ndir.h>
27275 # endif /* SYSNDIR */
27276 # ifdef HAVE_SYS_DIR_H
27277 # include <sys/dir.h>
27278 # endif /* SYSDIR */
27279 # ifdef HAVE_NDIR_H
27282 #endif /* HAVE_DIRENT_H */
27288 struct dirent d; int z; z = d.d_namlen;
27294 rm -f conftest.
$ac_objext
27295 if { (ac_try
="$ac_compile"
27296 case "(($ac_try" in
27297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27298 *) ac_try_echo=$ac_try;;
27300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27301 $as_echo "$ac_try_echo") >&5
27302 (eval "$ac_compile") 2>conftest.er1
27304 grep -v '^ *+' conftest.er1 >conftest.err
27306 cat conftest.err >&5
27307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308 (exit $ac_status); } && {
27309 test -z "$ac_c_werror_flag" ||
27310 test ! -s conftest.err
27311 } && test -s conftest.$ac_objext; then
27312 bash_cv_dirent_has_d_namlen=yes
27314 $as_echo "$as_me: failed program was:" >&5
27315 sed 's/^/| /' conftest.$ac_ext >&5
27317 bash_cv_dirent_has_d_namlen=no
27320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27323 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
27324 $as_echo "$bash_cv_dirent_has_d_namlen" >&6; }
27325 if test $bash_cv_dirent_has_d_namlen = yes; then
27326 cat >>confdefs.h <<\_ACEOF
27327 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
27332 { $as_echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
27333 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
27334 if test "${bash_cv_struct_winsize_header+set}" = set; then
27335 $as_echo_n "(cached) " >&6
27337 cat >conftest.$ac_ext <<_ACEOF
27340 cat confdefs.h >>conftest.$ac_ext
27341 cat >>conftest.$ac_ext <<_ACEOF
27342 /* end confdefs.h. */
27343 #include <sys/types.h>
27344 #include <sys/ioctl.h>
27353 rm -f conftest.$ac_objext
27354 if { (ac_try="$ac_compile"
27355 case "(($ac_try" in
27356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27357 *) ac_try_echo
=$ac_try;;
27359 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27360 $as_echo "$ac_try_echo") >&5
27361 (eval "$ac_compile") 2>conftest.er1
27363 grep -v '^ *+' conftest.er1
>conftest.err
27365 cat conftest.err
>&5
27366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367 (exit $ac_status); } && {
27368 test -z "$ac_c_werror_flag" ||
27369 test ! -s conftest.err
27370 } && test -s conftest.
$ac_objext; then
27371 bash_cv_struct_winsize_header
=ioctl_h
27373 $as_echo "$as_me: failed program was:" >&5
27374 sed 's/^/| /' conftest.
$ac_ext >&5
27376 cat >conftest.
$ac_ext <<_ACEOF
27379 cat confdefs.h
>>conftest.
$ac_ext
27380 cat >>conftest.
$ac_ext <<_ACEOF
27381 /* end confdefs.h. */
27382 #include <sys/types.h>
27383 #include <termios.h>
27392 rm -f conftest.
$ac_objext
27393 if { (ac_try
="$ac_compile"
27394 case "(($ac_try" in
27395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27396 *) ac_try_echo=$ac_try;;
27398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27399 $as_echo "$ac_try_echo") >&5
27400 (eval "$ac_compile") 2>conftest.er1
27402 grep -v '^ *+' conftest.er1 >conftest.err
27404 cat conftest.err >&5
27405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); } && {
27407 test -z "$ac_c_werror_flag" ||
27408 test ! -s conftest.err
27409 } && test -s conftest.$ac_objext; then
27410 bash_cv_struct_winsize_header=termios_h
27412 $as_echo "$as_me: failed program was:" >&5
27413 sed 's/^/| /' conftest.$ac_ext >&5
27415 bash_cv_struct_winsize_header=other
27418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27425 if test $bash_cv_struct_winsize_header = ioctl_h; then
27426 { $as_echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
27427 $as_echo "sys/ioctl.h" >&6; }
27428 cat >>confdefs.h <<\_ACEOF
27429 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
27432 elif test $bash_cv_struct_winsize_header = termios_h; then
27433 { $as_echo "$as_me:$LINENO: result: termios.h" >&5
27434 $as_echo "termios.h" >&6; }
27435 cat >>confdefs.h <<\_ACEOF
27436 #define STRUCT_WINSIZE_IN_TERMIOS 1
27440 { $as_echo "$as_me:$LINENO: result: not found" >&5
27441 $as_echo "not found" >&6; }
27444 { $as_echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
27445 $as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; }
27446 if test "${bash_cv_struct_timeval+set}" = set; then
27447 $as_echo_n "(cached) " >&6
27450 cat >conftest.$ac_ext <<_ACEOF
27453 cat confdefs.h >>conftest.$ac_ext
27454 cat >>conftest.$ac_ext <<_ACEOF
27455 /* end confdefs.h. */
27456 #include <sys/time.h>
27459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27460 $EGREP "struct timeval" >/dev/null 2>&1; then
27461 bash_cv_struct_timeval=yes
27463 cat >conftest.$ac_ext <<_ACEOF
27466 cat confdefs.h >>conftest.$ac_ext
27467 cat >>conftest.$ac_ext <<_ACEOF
27468 /* end confdefs.h. */
27472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27473 $EGREP "struct timeval" >/dev/null 2>&1; then
27474 bash_cv_struct_timeval=yes
27476 bash_cv_struct_timeval=no
27486 { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
27487 $as_echo "$bash_cv_struct_timeval" >&6; }
27488 if test $bash_cv_struct_timeval = yes; then
27489 cat >>confdefs.h <<\_ACEOF
27490 #define HAVE_TIMEVAL 1
27495 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
27496 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
27497 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
27498 $as_echo_n "(cached) " >&6
27500 cat >conftest.$ac_ext <<_ACEOF
27503 cat confdefs.h >>conftest.$ac_ext
27504 cat >>conftest.$ac_ext <<_ACEOF
27505 /* end confdefs.h. */
27506 $ac_includes_default
27510 static struct stat ac_aggr;
27511 if (ac_aggr.st_blocks)
27517 rm -f conftest.$ac_objext
27518 if { (ac_try="$ac_compile"
27519 case "(($ac_try" in
27520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27521 *) ac_try_echo
=$ac_try;;
27523 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27524 $as_echo "$ac_try_echo") >&5
27525 (eval "$ac_compile") 2>conftest.er1
27527 grep -v '^ *+' conftest.er1
>conftest.err
27529 cat conftest.err
>&5
27530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531 (exit $ac_status); } && {
27532 test -z "$ac_c_werror_flag" ||
27533 test ! -s conftest.err
27534 } && test -s conftest.
$ac_objext; then
27535 ac_cv_member_struct_stat_st_blocks
=yes
27537 $as_echo "$as_me: failed program was:" >&5
27538 sed 's/^/| /' conftest.
$ac_ext >&5
27540 cat >conftest.
$ac_ext <<_ACEOF
27543 cat confdefs.h
>>conftest.
$ac_ext
27544 cat >>conftest.
$ac_ext <<_ACEOF
27545 /* end confdefs.h. */
27546 $ac_includes_default
27550 static struct stat ac_aggr;
27551 if (sizeof ac_aggr.st_blocks)
27557 rm -f conftest.
$ac_objext
27558 if { (ac_try
="$ac_compile"
27559 case "(($ac_try" in
27560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27561 *) ac_try_echo=$ac_try;;
27563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27564 $as_echo "$ac_try_echo") >&5
27565 (eval "$ac_compile") 2>conftest.er1
27567 grep -v '^ *+' conftest.er1 >conftest.err
27569 cat conftest.err >&5
27570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571 (exit $ac_status); } && {
27572 test -z "$ac_c_werror_flag" ||
27573 test ! -s conftest.err
27574 } && test -s conftest.$ac_objext; then
27575 ac_cv_member_struct_stat_st_blocks=yes
27577 $as_echo "$as_me: failed program was:" >&5
27578 sed 's/^/| /' conftest.$ac_ext >&5
27580 ac_cv_member_struct_stat_st_blocks=no
27583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27588 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
27589 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
27590 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
27592 cat >>confdefs.h <<_ACEOF
27593 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27599 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27600 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27601 if test "${ac_cv_struct_tm+set}" = set; then
27602 $as_echo_n "(cached) " >&6
27604 cat >conftest.$ac_ext <<_ACEOF
27607 cat confdefs.h >>conftest.$ac_ext
27608 cat >>conftest.$ac_ext <<_ACEOF
27609 /* end confdefs.h. */
27610 #include <sys/types.h>
27617 int *p = &tm.tm_sec;
27623 rm -f conftest.$ac_objext
27624 if { (ac_try="$ac_compile"
27625 case "(($ac_try" in
27626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27627 *) ac_try_echo
=$ac_try;;
27629 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27630 $as_echo "$ac_try_echo") >&5
27631 (eval "$ac_compile") 2>conftest.er1
27633 grep -v '^ *+' conftest.er1
>conftest.err
27635 cat conftest.err
>&5
27636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27637 (exit $ac_status); } && {
27638 test -z "$ac_c_werror_flag" ||
27639 test ! -s conftest.err
27640 } && test -s conftest.
$ac_objext; then
27641 ac_cv_struct_tm
=time.h
27643 $as_echo "$as_me: failed program was:" >&5
27644 sed 's/^/| /' conftest.
$ac_ext >&5
27646 ac_cv_struct_tm
=sys
/time.h
27649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27651 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27652 $as_echo "$ac_cv_struct_tm" >&6; }
27653 if test $ac_cv_struct_tm = sys
/time.h
; then
27655 cat >>confdefs.h
<<\_ACEOF
27656 #define TM_IN_SYS_TIME 1
27661 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
27662 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
27663 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
27664 $as_echo_n "(cached) " >&6
27666 cat >conftest.
$ac_ext <<_ACEOF
27669 cat confdefs.h
>>conftest.
$ac_ext
27670 cat >>conftest.
$ac_ext <<_ACEOF
27671 /* end confdefs.h. */
27672 #include <sys/types.h>
27673 #include <$ac_cv_struct_tm>
27679 static struct tm ac_aggr;
27680 if (ac_aggr.tm_zone)
27686 rm -f conftest.
$ac_objext
27687 if { (ac_try
="$ac_compile"
27688 case "(($ac_try" in
27689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27690 *) ac_try_echo=$ac_try;;
27692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27693 $as_echo "$ac_try_echo") >&5
27694 (eval "$ac_compile") 2>conftest.er1
27696 grep -v '^ *+' conftest.er1 >conftest.err
27698 cat conftest.err >&5
27699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); } && {
27701 test -z "$ac_c_werror_flag" ||
27702 test ! -s conftest.err
27703 } && test -s conftest.$ac_objext; then
27704 ac_cv_member_struct_tm_tm_zone=yes
27706 $as_echo "$as_me: failed program was:" >&5
27707 sed 's/^/| /' conftest.$ac_ext >&5
27709 cat >conftest.$ac_ext <<_ACEOF
27712 cat confdefs.h >>conftest.$ac_ext
27713 cat >>conftest.$ac_ext <<_ACEOF
27714 /* end confdefs.h. */
27715 #include <sys/types.h>
27716 #include <$ac_cv_struct_tm>
27722 static struct tm ac_aggr;
27723 if (sizeof ac_aggr.tm_zone)
27729 rm -f conftest.$ac_objext
27730 if { (ac_try="$ac_compile"
27731 case "(($ac_try" in
27732 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27733 *) ac_try_echo
=$ac_try;;
27735 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27736 $as_echo "$ac_try_echo") >&5
27737 (eval "$ac_compile") 2>conftest.er1
27739 grep -v '^ *+' conftest.er1
>conftest.err
27741 cat conftest.err
>&5
27742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27743 (exit $ac_status); } && {
27744 test -z "$ac_c_werror_flag" ||
27745 test ! -s conftest.err
27746 } && test -s conftest.
$ac_objext; then
27747 ac_cv_member_struct_tm_tm_zone
=yes
27749 $as_echo "$as_me: failed program was:" >&5
27750 sed 's/^/| /' conftest.
$ac_ext >&5
27752 ac_cv_member_struct_tm_tm_zone
=no
27755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27760 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
27761 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
27762 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then
27764 cat >>confdefs.h
<<_ACEOF
27765 #define HAVE_STRUCT_TM_TM_ZONE 1
27771 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
27773 cat >>confdefs.h
<<\_ACEOF
27774 #define HAVE_TM_ZONE 1
27778 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
27779 $as_echo_n "checking whether tzname is declared... " >&6; }
27780 if test "${ac_cv_have_decl_tzname+set}" = set; then
27781 $as_echo_n "(cached) " >&6
27783 cat >conftest.
$ac_ext <<_ACEOF
27786 cat confdefs.h
>>conftest.
$ac_ext
27787 cat >>conftest.
$ac_ext <<_ACEOF
27788 /* end confdefs.h. */
27802 rm -f conftest.
$ac_objext
27803 if { (ac_try
="$ac_compile"
27804 case "(($ac_try" in
27805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27806 *) ac_try_echo=$ac_try;;
27808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27809 $as_echo "$ac_try_echo") >&5
27810 (eval "$ac_compile") 2>conftest.er1
27812 grep -v '^ *+' conftest.er1 >conftest.err
27814 cat conftest.err >&5
27815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816 (exit $ac_status); } && {
27817 test -z "$ac_c_werror_flag" ||
27818 test ! -s conftest.err
27819 } && test -s conftest.$ac_objext; then
27820 ac_cv_have_decl_tzname=yes
27822 $as_echo "$as_me: failed program was:" >&5
27823 sed 's/^/| /' conftest.$ac_ext >&5
27825 ac_cv_have_decl_tzname=no
27828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27830 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
27831 $as_echo "$ac_cv_have_decl_tzname" >&6; }
27832 if test "x$ac_cv_have_decl_tzname" = x""yes; then
27834 cat >>confdefs.h <<_ACEOF
27835 #define HAVE_DECL_TZNAME 1
27840 cat >>confdefs.h <<_ACEOF
27841 #define HAVE_DECL_TZNAME 0
27848 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
27849 $as_echo_n "checking for tzname... " >&6; }
27850 if test "${ac_cv_var_tzname+set}" = set; then
27851 $as_echo_n "(cached) " >&6
27853 cat >conftest.$ac_ext <<_ACEOF
27856 cat confdefs.h >>conftest.$ac_ext
27857 cat >>conftest.$ac_ext <<_ACEOF
27858 /* end confdefs.h. */
27860 #if !HAVE_DECL_TZNAME
27861 extern char *tzname[];
27867 return tzname[0][0];
27872 rm -f conftest.$ac_objext conftest$ac_exeext
27873 if { (ac_try="$ac_link"
27874 case "(($ac_try" in
27875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27876 *) ac_try_echo
=$ac_try;;
27878 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27879 $as_echo "$ac_try_echo") >&5
27880 (eval "$ac_link") 2>conftest.er1
27882 grep -v '^ *+' conftest.er1
>conftest.err
27884 cat conftest.err
>&5
27885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886 (exit $ac_status); } && {
27887 test -z "$ac_c_werror_flag" ||
27888 test ! -s conftest.err
27889 } && test -s conftest
$ac_exeext && {
27890 test "$cross_compiling" = yes ||
27891 $as_test_x conftest
$ac_exeext
27893 ac_cv_var_tzname
=yes
27895 $as_echo "$as_me: failed program was:" >&5
27896 sed 's/^/| /' conftest.
$ac_ext >&5
27898 ac_cv_var_tzname
=no
27901 rm -rf conftest.dSYM
27902 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27903 conftest
$ac_exeext conftest.
$ac_ext
27905 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
27906 $as_echo "$ac_cv_var_tzname" >&6; }
27907 if test $ac_cv_var_tzname = yes; then
27909 cat >>confdefs.h
<<\_ACEOF
27910 #define HAVE_TZNAME 1
27916 { $as_echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
27917 $as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; }
27918 if test "${bash_cv_struct_timezone+set}" = set; then
27919 $as_echo_n "(cached) " >&6
27922 cat >conftest.
$ac_ext <<_ACEOF
27925 cat confdefs.h
>>conftest.
$ac_ext
27926 cat >>conftest.
$ac_ext <<_ACEOF
27927 /* end confdefs.h. */
27928 #include <sys/time.h>
27931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27932 $EGREP "struct timezone" >/dev
/null
2>&1; then
27933 bash_cv_struct_timezone
=yes
27935 cat >conftest.
$ac_ext <<_ACEOF
27938 cat confdefs.h
>>conftest.
$ac_ext
27939 cat >>conftest.
$ac_ext <<_ACEOF
27940 /* end confdefs.h. */
27944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27945 $EGREP "struct timezone" >/dev
/null
2>&1; then
27946 bash_cv_struct_timezone
=yes
27948 bash_cv_struct_timezone
=no
27958 { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
27959 $as_echo "$bash_cv_struct_timezone" >&6; }
27960 if test $bash_cv_struct_timezone = yes; then
27961 cat >>confdefs.h
<<\_ACEOF
27962 #define HAVE_STRUCT_TIMEZONE 1
27968 { $as_echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
27969 $as_echo_n "checking for the existence of strsignal... " >&6; }
27970 if test "${bash_cv_have_strsignal+set}" = set; then
27971 $as_echo_n "(cached) " >&6
27973 cat >conftest.
$ac_ext <<_ACEOF
27976 cat confdefs.h
>>conftest.
$ac_ext
27977 cat >>conftest.
$ac_ext <<_ACEOF
27978 /* end confdefs.h. */
27979 #include <sys/types.h>
27980 #include <signal.h>
27984 char *s = (char *)strsignal(2);
27989 rm -f conftest.
$ac_objext conftest
$ac_exeext
27990 if { (ac_try
="$ac_link"
27991 case "(($ac_try" in
27992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27993 *) ac_try_echo=$ac_try;;
27995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27996 $as_echo "$ac_try_echo") >&5
27997 (eval "$ac_link") 2>conftest.er1
27999 grep -v '^ *+' conftest.er1 >conftest.err
28001 cat conftest.err >&5
28002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003 (exit $ac_status); } && {
28004 test -z "$ac_c_werror_flag" ||
28005 test ! -s conftest.err
28006 } && test -s conftest$ac_exeext && {
28007 test "$cross_compiling" = yes ||
28008 $as_test_x conftest$ac_exeext
28010 bash_cv_have_strsignal=yes
28012 $as_echo "$as_me: failed program was:" >&5
28013 sed 's/^/| /' conftest.$ac_ext >&5
28015 bash_cv_have_strsignal=no
28018 rm -rf conftest.dSYM
28019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28020 conftest$ac_exeext conftest.$ac_ext
28023 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
28024 $as_echo "$bash_cv_have_strsignal" >&6; }
28025 if test $bash_cv_have_strsignal = yes; then
28026 cat >>confdefs.h <<\_ACEOF
28027 #define HAVE_STRSIGNAL 1
28032 { $as_echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
28033 $as_echo_n "checking if opendir() opens non-directories... " >&6; }
28034 if test "${bash_cv_opendir_not_robust+set}" = set; then
28035 $as_echo_n "(cached) " >&6
28037 if test "$cross_compiling" = yes; then
28038 { $as_echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
28039 $as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
28040 bash_cv_opendir_not_robust=no
28043 cat >conftest.$ac_ext <<_ACEOF
28046 cat confdefs.h >>conftest.$ac_ext
28047 cat >>conftest.$ac_ext <<_ACEOF
28048 /* end confdefs.h. */
28051 #include <sys/types.h>
28053 #ifdef HAVE_UNISTD_H
28054 # include <unistd.h>
28055 #endif /* HAVE_UNISTD_H */
28056 #if defined(HAVE_DIRENT_H)
28057 # include <dirent.h>
28059 # define dirent direct
28060 # ifdef HAVE_SYS_NDIR_H
28061 # include <sys/ndir.h>
28062 # endif /* SYSNDIR */
28063 # ifdef HAVE_SYS_DIR_H
28064 # include <sys/dir.h>
28065 # endif /* SYSDIR */
28066 # ifdef HAVE_NDIR_H
28069 #endif /* HAVE_DIRENT_H */
28074 err = mkdir("bash-aclocal", 0700);
28079 unlink("bash-aclocal/not_a_directory");
28080 fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
28081 write(fd, "\n", 1);
28083 dir = opendir("bash-aclocal/not_a_directory");
28084 unlink("bash-aclocal/not_a_directory");
28085 rmdir("bash-aclocal");
28089 rm -f conftest$ac_exeext
28090 if { (ac_try="$ac_link"
28091 case "(($ac_try" in
28092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28093 *) ac_try_echo
=$ac_try;;
28095 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28096 $as_echo "$ac_try_echo") >&5
28097 (eval "$ac_link") 2>&5
28099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
28101 { (case "(($ac_try" in
28102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28103 *) ac_try_echo=$ac_try;;
28105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28106 $as_echo "$ac_try_echo") >&5
28107 (eval "$ac_try") 2>&5
28109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110 (exit $ac_status); }; }; then
28111 bash_cv_opendir_not_robust=yes
28113 $as_echo "$as_me: program exited with status $ac_status" >&5
28114 $as_echo "$as_me: failed program was:" >&5
28115 sed 's/^/| /' conftest.$ac_ext >&5
28117 ( exit $ac_status )
28118 bash_cv_opendir_not_robust=no
28120 rm -rf conftest.dSYM
28121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28127 { $as_echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
28128 $as_echo "$bash_cv_opendir_not_robust" >&6; }
28129 if test $bash_cv_opendir_not_robust = yes; then
28130 cat >>confdefs.h <<\_ACEOF
28131 #define OPENDIR_NOT_ROBUST 1
28136 { $as_echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
28137 $as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; }
28138 if test "${bash_cv_ulimit_maxfds+set}" = set; then
28139 $as_echo_n "(cached) " >&6
28141 if test "$cross_compiling" = yes; then
28142 { $as_echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
28143 $as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
28144 bash_cv_ulimit_maxfds=no
28147 cat >conftest.$ac_ext <<_ACEOF
28150 cat confdefs.h >>conftest.$ac_ext
28151 cat >>conftest.$ac_ext <<_ACEOF
28152 /* end confdefs.h. */
28156 long maxfds = ulimit(4, 0L);
28157 exit (maxfds == -1L);
28161 rm -f conftest$ac_exeext
28162 if { (ac_try="$ac_link"
28163 case "(($ac_try" in
28164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28165 *) ac_try_echo
=$ac_try;;
28167 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28168 $as_echo "$ac_try_echo") >&5
28169 (eval "$ac_link") 2>&5
28171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
28173 { (case "(($ac_try" in
28174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28175 *) ac_try_echo=$ac_try;;
28177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28178 $as_echo "$ac_try_echo") >&5
28179 (eval "$ac_try") 2>&5
28181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); }; }; then
28183 bash_cv_ulimit_maxfds=yes
28185 $as_echo "$as_me: program exited with status $ac_status" >&5
28186 $as_echo "$as_me: failed program was:" >&5
28187 sed 's/^/| /' conftest.$ac_ext >&5
28189 ( exit $ac_status )
28190 bash_cv_ulimit_maxfds=no
28192 rm -rf conftest.dSYM
28193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28199 { $as_echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
28200 $as_echo "$bash_cv_ulimit_maxfds" >&6; }
28201 if test $bash_cv_ulimit_maxfds = yes; then
28202 cat >>confdefs.h <<\_ACEOF
28203 #define ULIMIT_MAXFDS 1
28225 { $as_echo "$as_me:$LINENO: checking whether fpurge is declared" >&5
28226 $as_echo_n "checking whether fpurge is declared... " >&6; }
28227 if test "${ac_cv_have_decl_fpurge+set}" = set; then
28228 $as_echo_n "(cached) " >&6
28230 cat >conftest.$ac_ext <<_ACEOF
28233 cat confdefs.h >>conftest.$ac_ext
28234 cat >>conftest.$ac_ext <<_ACEOF
28235 /* end confdefs.h. */
28249 rm -f conftest.$ac_objext
28250 if { (ac_try="$ac_compile"
28251 case "(($ac_try" in
28252 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28253 *) ac_try_echo
=$ac_try;;
28255 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28256 $as_echo "$ac_try_echo") >&5
28257 (eval "$ac_compile") 2>conftest.er1
28259 grep -v '^ *+' conftest.er1
>conftest.err
28261 cat conftest.err
>&5
28262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263 (exit $ac_status); } && {
28264 test -z "$ac_c_werror_flag" ||
28265 test ! -s conftest.err
28266 } && test -s conftest.
$ac_objext; then
28267 ac_cv_have_decl_fpurge
=yes
28269 $as_echo "$as_me: failed program was:" >&5
28270 sed 's/^/| /' conftest.
$ac_ext >&5
28272 ac_cv_have_decl_fpurge
=no
28275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28277 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fpurge" >&5
28278 $as_echo "$ac_cv_have_decl_fpurge" >&6; }
28279 if test "x$ac_cv_have_decl_fpurge" = x
""yes; then
28281 cat >>confdefs.h
<<_ACEOF
28282 #define HAVE_DECL_FPURGE 1
28287 cat >>confdefs.h
<<_ACEOF
28288 #define HAVE_DECL_FPURGE 0
28296 { $as_echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
28297 $as_echo_n "checking to see if getenv can be redefined... " >&6; }
28298 if test "${bash_cv_getenv_redef+set}" = set; then
28299 $as_echo_n "(cached) " >&6
28301 if test "$cross_compiling" = yes; then
28302 { $as_echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
28303 $as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
28304 bash_cv_getenv_redef
=yes
28307 cat >conftest.
$ac_ext <<_ACEOF
28310 cat confdefs.h
>>conftest.
$ac_ext
28311 cat >>conftest.
$ac_ext <<_ACEOF
28312 /* end confdefs.h. */
28314 #ifdef HAVE_UNISTD_H
28315 # include <unistd.h>
28324 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
28328 #endif /* !__linux__ && !__bsdi__ && !convex */
28335 /* The next allows this program to run, but does not allow bash to link
28336 when it redefines getenv. I'm not really interested in figuring out
28341 s = getenv("ABCDE");
28342 exit(s == 0); /* force optimizer to leave getenv in */
28346 rm -f conftest
$ac_exeext
28347 if { (ac_try
="$ac_link"
28348 case "(($ac_try" in
28349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28350 *) ac_try_echo=$ac_try;;
28352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28353 $as_echo "$ac_try_echo") >&5
28354 (eval "$ac_link") 2>&5
28356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28358 { (case "(($ac_try" in
28359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28360 *) ac_try_echo
=$ac_try;;
28362 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28363 $as_echo "$ac_try_echo") >&5
28364 (eval "$ac_try") 2>&5
28366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); }; }; then
28368 bash_cv_getenv_redef
=yes
28370 $as_echo "$as_me: program exited with status $ac_status" >&5
28371 $as_echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.
$ac_ext >&5
28374 ( exit $ac_status )
28375 bash_cv_getenv_redef
=no
28377 rm -rf conftest.dSYM
28378 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28384 { $as_echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
28385 $as_echo "$bash_cv_getenv_redef" >&6; }
28386 if test $bash_cv_getenv_redef = yes; then
28387 cat >>confdefs.h
<<\_ACEOF
28388 #define CAN_REDEFINE_GETENV 1
28393 if test "$ac_cv_func_getcwd" = "yes"; then
28394 { $as_echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory with 0 size" >&5
28395 $as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
28396 if test "${bash_cv_getcwd_malloc+set}" = set; then
28397 $as_echo_n "(cached) " >&6
28399 if test "$cross_compiling" = yes; then
28400 { $as_echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
28401 $as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
28402 bash_cv_getcwd_malloc
=no
28405 cat >conftest.
$ac_ext <<_ACEOF
28408 cat confdefs.h
>>conftest.
$ac_ext
28409 cat >>conftest.
$ac_ext <<_ACEOF
28410 /* end confdefs.h. */
28413 #ifdef HAVE_UNISTD_H
28414 #include <unistd.h>
28420 xpwd = getcwd(0, 0);
28425 rm -f conftest
$ac_exeext
28426 if { (ac_try
="$ac_link"
28427 case "(($ac_try" in
28428 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28429 *) ac_try_echo=$ac_try;;
28431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28432 $as_echo "$ac_try_echo") >&5
28433 (eval "$ac_link") 2>&5
28435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28437 { (case "(($ac_try" in
28438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28439 *) ac_try_echo
=$ac_try;;
28441 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28442 $as_echo "$ac_try_echo") >&5
28443 (eval "$ac_try") 2>&5
28445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446 (exit $ac_status); }; }; then
28447 bash_cv_getcwd_malloc
=yes
28449 $as_echo "$as_me: program exited with status $ac_status" >&5
28450 $as_echo "$as_me: failed program was:" >&5
28451 sed 's/^/| /' conftest.
$ac_ext >&5
28453 ( exit $ac_status )
28454 bash_cv_getcwd_malloc
=no
28456 rm -rf conftest.dSYM
28457 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28463 { $as_echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
28464 $as_echo "$bash_cv_getcwd_malloc" >&6; }
28465 if test $bash_cv_getcwd_malloc = no
; then
28466 cat >>confdefs.h
<<\_ACEOF
28467 #define GETCWD_BROKEN 1
28470 case " $LIBOBJS " in
28471 *" getcwd.$ac_objext "* ) ;;
28472 *) LIBOBJS
="$LIBOBJS getcwd.$ac_objext"
28480 { $as_echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
28481 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
28482 if test "${bash_cv_func_sigsetjmp+set}" = set; then
28483 $as_echo_n "(cached) " >&6
28485 if test "$cross_compiling" = yes; then
28486 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
28487 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
28488 bash_cv_func_sigsetjmp
=missing
28491 cat >conftest.
$ac_ext <<_ACEOF
28494 cat confdefs.h
>>conftest.
$ac_ext
28495 cat >>conftest.
$ac_ext <<_ACEOF
28496 /* end confdefs.h. */
28498 #ifdef HAVE_UNISTD_H
28499 #include <unistd.h>
28501 #include <sys/types.h>
28502 #include <signal.h>
28503 #include <setjmp.h>
28507 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
28512 sigset_t set, oset;
28517 sigemptyset(&oset);
28518 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
28519 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
28522 code = sigsetjmp(xx, 1);
28524 exit(0); /* could get sigmask and compare to oset here. */
28527 sigaddset(&set, SIGINT);
28528 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
28530 /* and siglongjmp */
28531 siglongjmp(xx, 10);
28536 rm -f conftest
$ac_exeext
28537 if { (ac_try
="$ac_link"
28538 case "(($ac_try" in
28539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28540 *) ac_try_echo=$ac_try;;
28542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28543 $as_echo "$ac_try_echo") >&5
28544 (eval "$ac_link") 2>&5
28546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28548 { (case "(($ac_try" in
28549 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28550 *) ac_try_echo
=$ac_try;;
28552 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28553 $as_echo "$ac_try_echo") >&5
28554 (eval "$ac_try") 2>&5
28556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557 (exit $ac_status); }; }; then
28558 bash_cv_func_sigsetjmp
=present
28560 $as_echo "$as_me: program exited with status $ac_status" >&5
28561 $as_echo "$as_me: failed program was:" >&5
28562 sed 's/^/| /' conftest.
$ac_ext >&5
28564 ( exit $ac_status )
28565 bash_cv_func_sigsetjmp
=missing
28567 rm -rf conftest.dSYM
28568 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28574 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
28575 $as_echo "$bash_cv_func_sigsetjmp" >&6; }
28576 if test $bash_cv_func_sigsetjmp = present
; then
28577 cat >>confdefs.h
<<\_ACEOF
28578 #define HAVE_POSIX_SIGSETJMP 1
28584 { $as_echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
28585 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
28586 if test "${bash_cv_func_strcoll_broken+set}" = set; then
28587 $as_echo_n "(cached) " >&6
28589 if test "$cross_compiling" = yes; then
28590 { $as_echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
28591 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
28592 bash_cv_func_strcoll_broken
=no
28595 cat >conftest.
$ac_ext <<_ACEOF
28598 cat confdefs.h
>>conftest.
$ac_ext
28599 cat >>conftest.
$ac_ext <<_ACEOF
28600 /* end confdefs.h. */
28603 #if defined (HAVE_LOCALE_H)
28604 #include <locale.h>
28612 char *deflocale, *defcoll;
28614 #ifdef HAVE_SETLOCALE
28615 deflocale = setlocale(LC_ALL, "");
28616 defcoll = setlocale(LC_COLLATE, "");
28619 #ifdef HAVE_STRCOLL
28620 /* These two values are taken from tests/glob-test. */
28621 r1 = strcoll("abd", "aXd");
28625 r2 = strcmp("abd", "aXd");
28627 /* These two should both be greater than 0. It is permissible for
28628 a system to return different values, as long as the sign is the
28631 /* Exit with 1 (failure) if these two values are both > 0, since
28632 this tests whether strcoll(3) is broken with respect to strcmp(3)
28633 in the default locale. */
28634 exit (r1 > 0 && r2 > 0);
28638 rm -f conftest
$ac_exeext
28639 if { (ac_try
="$ac_link"
28640 case "(($ac_try" in
28641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28642 *) ac_try_echo=$ac_try;;
28644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28645 $as_echo "$ac_try_echo") >&5
28646 (eval "$ac_link") 2>&5
28648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28650 { (case "(($ac_try" in
28651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28652 *) ac_try_echo
=$ac_try;;
28654 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28655 $as_echo "$ac_try_echo") >&5
28656 (eval "$ac_try") 2>&5
28658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659 (exit $ac_status); }; }; then
28660 bash_cv_func_strcoll_broken
=yes
28662 $as_echo "$as_me: program exited with status $ac_status" >&5
28663 $as_echo "$as_me: failed program was:" >&5
28664 sed 's/^/| /' conftest.
$ac_ext >&5
28666 ( exit $ac_status )
28667 bash_cv_func_strcoll_broken
=no
28669 rm -rf conftest.dSYM
28670 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28676 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
28677 $as_echo "$bash_cv_func_strcoll_broken" >&6; }
28678 if test $bash_cv_func_strcoll_broken = yes; then
28679 cat >>confdefs.h
<<\_ACEOF
28680 #define STRCOLL_BROKEN 1
28694 if test X
$ac_cv_func_snprintf = Xyes
; then
28695 { $as_echo "$as_me:$LINENO: checking for standard-conformant snprintf" >&5
28696 $as_echo_n "checking for standard-conformant snprintf... " >&6; }
28697 if test "${bash_cv_func_snprintf+set}" = set; then
28698 $as_echo_n "(cached) " >&6
28700 if test "$cross_compiling" = yes; then
28701 { $as_echo "$as_me:$LINENO: WARNING: cannot check standard snprintf if cross-compiling" >&5
28702 $as_echo "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;}
28703 bash_cv_func_snprintf
=yes
28706 cat >conftest.
$ac_ext <<_ACEOF
28709 cat confdefs.h
>>conftest.
$ac_ext
28710 cat >>conftest.
$ac_ext <<_ACEOF
28711 /* end confdefs.h. */
28718 n = snprintf (0, 0, "%s", "0123456");
28723 rm -f conftest
$ac_exeext
28724 if { (ac_try
="$ac_link"
28725 case "(($ac_try" in
28726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28727 *) ac_try_echo=$ac_try;;
28729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28730 $as_echo "$ac_try_echo") >&5
28731 (eval "$ac_link") 2>&5
28733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28735 { (case "(($ac_try" in
28736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28737 *) ac_try_echo
=$ac_try;;
28739 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28740 $as_echo "$ac_try_echo") >&5
28741 (eval "$ac_try") 2>&5
28743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28744 (exit $ac_status); }; }; then
28745 bash_cv_func_snprintf
=yes
28747 $as_echo "$as_me: program exited with status $ac_status" >&5
28748 $as_echo "$as_me: failed program was:" >&5
28749 sed 's/^/| /' conftest.
$ac_ext >&5
28751 ( exit $ac_status )
28752 bash_cv_func_snprintf
=no
28754 rm -rf conftest.dSYM
28755 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28760 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_snprintf" >&5
28761 $as_echo "$bash_cv_func_snprintf" >&6; }
28762 if test $bash_cv_func_snprintf = no
; then
28763 ac_cv_func_snprintf
=no
28766 if test $ac_cv_func_snprintf = no
; then
28768 cat >>confdefs.h
<<\_ACEOF
28769 #define HAVE_SNPRINTF 0
28783 if test X
$ac_cv_func_vsnprintf = Xyes
; then
28784 { $as_echo "$as_me:$LINENO: checking for standard-conformant vsnprintf" >&5
28785 $as_echo_n "checking for standard-conformant vsnprintf... " >&6; }
28786 if test "${bash_cv_func_vsnprintf+set}" = set; then
28787 $as_echo_n "(cached) " >&6
28789 if test "$cross_compiling" = yes; then
28790 { $as_echo "$as_me:$LINENO: WARNING: cannot check standard vsnprintf if cross-compiling" >&5
28791 $as_echo "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;}
28792 bash_cv_func_vsnprintf
=yes
28795 cat >conftest.
$ac_ext <<_ACEOF
28798 cat confdefs.h
>>conftest.
$ac_ext
28799 cat >>conftest.
$ac_ext <<_ACEOF
28800 /* end confdefs.h. */
28803 #include <stdarg.h>
28805 #include <varargs.h>
28808 #include <stdlib.h>
28812 foo(const char *fmt, ...)
28814 foo(format, va_alist)
28815 const char *format;
28823 va_start(args, fmt);
28827 n = vsnprintf(0, 0, fmt, args);
28835 n = foo("%s", "0123456");
28840 rm -f conftest
$ac_exeext
28841 if { (ac_try
="$ac_link"
28842 case "(($ac_try" in
28843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28844 *) ac_try_echo=$ac_try;;
28846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28847 $as_echo "$ac_try_echo") >&5
28848 (eval "$ac_link") 2>&5
28850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28852 { (case "(($ac_try" in
28853 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28854 *) ac_try_echo
=$ac_try;;
28856 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28857 $as_echo "$ac_try_echo") >&5
28858 (eval "$ac_try") 2>&5
28860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); }; }; then
28862 bash_cv_func_vsnprintf
=yes
28864 $as_echo "$as_me: program exited with status $ac_status" >&5
28865 $as_echo "$as_me: failed program was:" >&5
28866 sed 's/^/| /' conftest.
$ac_ext >&5
28868 ( exit $ac_status )
28869 bash_cv_func_vsnprintf
=no
28871 rm -rf conftest.dSYM
28872 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28877 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_vsnprintf" >&5
28878 $as_echo "$bash_cv_func_vsnprintf" >&6; }
28879 if test $bash_cv_func_vsnprintf = no
; then
28880 ac_cv_func_vsnprintf
=no
28883 if test $ac_cv_func_vsnprintf = no
; then
28885 cat >>confdefs.h
<<\_ACEOF
28886 #define HAVE_VSNPRINTF 0
28893 if test "$ac_cv_func_putenv" = "yes"; then
28897 { $as_echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
28898 $as_echo_n "checking for standard-conformant putenv declaration... " >&6; }
28899 if test "${bash_cv_std_putenv+set}" = set; then
28900 $as_echo_n "(cached) " >&6
28902 cat >conftest.
$ac_ext <<_ACEOF
28905 cat confdefs.h
>>conftest.
$ac_ext
28906 cat >>conftest.
$ac_ext <<_ACEOF
28907 /* end confdefs.h. */
28910 #include <stdlib.h>
28911 #include <stddef.h>
28919 extern int putenv (char *);
28921 extern int putenv ();
28927 return (putenv == 0);
28932 rm -f conftest.
$ac_objext conftest
$ac_exeext
28933 if { (ac_try
="$ac_link"
28934 case "(($ac_try" in
28935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28936 *) ac_try_echo=$ac_try;;
28938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28939 $as_echo "$ac_try_echo") >&5
28940 (eval "$ac_link") 2>conftest.er1
28942 grep -v '^ *+' conftest.er1 >conftest.err
28944 cat conftest.err >&5
28945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946 (exit $ac_status); } && {
28947 test -z "$ac_c_werror_flag" ||
28948 test ! -s conftest.err
28949 } && test -s conftest$ac_exeext && {
28950 test "$cross_compiling" = yes ||
28951 $as_test_x conftest$ac_exeext
28953 bash_cv_std_putenv=yes
28955 $as_echo "$as_me: failed program was:" >&5
28956 sed 's/^/| /' conftest.$ac_ext >&5
28958 bash_cv_std_putenv=no
28962 rm -rf conftest.dSYM
28963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28964 conftest$ac_exeext conftest.$ac_ext
28966 { $as_echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
28967 $as_echo "$bash_cv_std_putenv" >&6; }
28968 if test $bash_cv_std_putenv = yes; then
28969 cat >>confdefs.h <<\_ACEOF
28970 #define HAVE_STD_PUTENV 1
28976 cat >>confdefs.h <<\_ACEOF
28977 #define HAVE_STD_PUTENV 1
28981 if test "$ac_cv_func_unsetenv" = "yes"; then
28985 { $as_echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
28986 $as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; }
28987 if test "${bash_cv_std_unsetenv+set}" = set; then
28988 $as_echo_n "(cached) " >&6
28990 cat >conftest.$ac_ext <<_ACEOF
28993 cat confdefs.h >>conftest.$ac_ext
28994 cat >>conftest.$ac_ext <<_ACEOF
28995 /* end confdefs.h. */
28998 #include <stdlib.h>
28999 #include <stddef.h>
29007 extern int unsetenv (const char *);
29009 extern int unsetenv ();
29015 return (unsetenv == 0);
29020 rm -f conftest.$ac_objext conftest$ac_exeext
29021 if { (ac_try="$ac_link"
29022 case "(($ac_try" in
29023 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29024 *) ac_try_echo
=$ac_try;;
29026 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29027 $as_echo "$ac_try_echo") >&5
29028 (eval "$ac_link") 2>conftest.er1
29030 grep -v '^ *+' conftest.er1
>conftest.err
29032 cat conftest.err
>&5
29033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034 (exit $ac_status); } && {
29035 test -z "$ac_c_werror_flag" ||
29036 test ! -s conftest.err
29037 } && test -s conftest
$ac_exeext && {
29038 test "$cross_compiling" = yes ||
29039 $as_test_x conftest
$ac_exeext
29041 bash_cv_std_unsetenv
=yes
29043 $as_echo "$as_me: failed program was:" >&5
29044 sed 's/^/| /' conftest.
$ac_ext >&5
29046 bash_cv_std_unsetenv
=no
29050 rm -rf conftest.dSYM
29051 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29052 conftest
$ac_exeext conftest.
$ac_ext
29054 { $as_echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
29055 $as_echo "$bash_cv_std_unsetenv" >&6; }
29056 if test $bash_cv_std_unsetenv = yes; then
29057 cat >>confdefs.h
<<\_ACEOF
29058 #define HAVE_STD_UNSETENV 1
29064 cat >>confdefs.h
<<\_ACEOF
29065 #define HAVE_STD_UNSETENV 1
29070 { $as_echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
29071 $as_echo_n "checking for printf floating point output in hex notation... " >&6; }
29072 if test "${bash_cv_printf_a_format+set}" = set; then
29073 $as_echo_n "(cached) " >&6
29075 if test "$cross_compiling" = yes; then
29076 { $as_echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
29077 $as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
29078 bash_cv_printf_a_format
=no
29081 cat >conftest.
$ac_ext <<_ACEOF
29084 cat confdefs.h
>>conftest.
$ac_ext
29085 cat >>conftest.
$ac_ext <<_ACEOF
29086 /* end confdefs.h. */
29089 #include <string.h>
29097 sprintf(abuf, "%A", y);
29098 exit(strchr(abuf, 'P') == (char *)0);
29102 rm -f conftest
$ac_exeext
29103 if { (ac_try
="$ac_link"
29104 case "(($ac_try" in
29105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29106 *) ac_try_echo=$ac_try;;
29108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29109 $as_echo "$ac_try_echo") >&5
29110 (eval "$ac_link") 2>&5
29112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29114 { (case "(($ac_try" in
29115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29116 *) ac_try_echo
=$ac_try;;
29118 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29119 $as_echo "$ac_try_echo") >&5
29120 (eval "$ac_try") 2>&5
29122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29123 (exit $ac_status); }; }; then
29124 bash_cv_printf_a_format
=yes
29126 $as_echo "$as_me: program exited with status $ac_status" >&5
29127 $as_echo "$as_me: failed program was:" >&5
29128 sed 's/^/| /' conftest.
$ac_ext >&5
29130 ( exit $ac_status )
29131 bash_cv_printf_a_format
=no
29133 rm -rf conftest.dSYM
29134 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
29140 { $as_echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
29141 $as_echo "$bash_cv_printf_a_format" >&6; }
29142 if test $bash_cv_printf_a_format = yes; then
29143 cat >>confdefs.h
<<\_ACEOF
29144 #define HAVE_PRINTF_A_FORMAT 1
29152 { $as_echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
29153 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
29154 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
29155 $as_echo_n "(cached) " >&6
29157 if test "$cross_compiling" = yes; then
29158 { $as_echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
29159 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
29160 bash_cv_must_reinstall_sighandlers
=no
29163 cat >conftest.
$ac_ext <<_ACEOF
29166 cat confdefs.h
>>conftest.
$ac_ext
29167 cat >>conftest.
$ac_ext <<_ACEOF
29168 /* end confdefs.h. */
29170 #include <signal.h>
29171 #ifdef HAVE_UNISTD_H
29172 #include <unistd.h>
29175 typedef RETSIGTYPE sigfunc();
29179 #ifdef HAVE_POSIX_SIGNALS
29181 set_signal_handler(sig, handler)
29185 struct sigaction act, oact;
29186 act.sa_handler = handler;
29188 sigemptyset (&act.sa_mask);
29189 sigemptyset (&oact.sa_mask);
29190 sigaction (sig, &act, &oact);
29191 return (oact.sa_handler);
29194 #define set_signal_handler(s, h) signal(s, h)
29207 set_signal_handler(SIGINT, sigint);
29208 kill((int)getpid(), SIGINT);
29209 kill((int)getpid(), SIGINT);
29210 exit(nsigint != 2);
29214 rm -f conftest
$ac_exeext
29215 if { (ac_try
="$ac_link"
29216 case "(($ac_try" in
29217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29218 *) ac_try_echo=$ac_try;;
29220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29221 $as_echo "$ac_try_echo") >&5
29222 (eval "$ac_link") 2>&5
29224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29226 { (case "(($ac_try" in
29227 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29228 *) ac_try_echo
=$ac_try;;
29230 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29231 $as_echo "$ac_try_echo") >&5
29232 (eval "$ac_try") 2>&5
29234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235 (exit $ac_status); }; }; then
29236 bash_cv_must_reinstall_sighandlers
=no
29238 $as_echo "$as_me: program exited with status $ac_status" >&5
29239 $as_echo "$as_me: failed program was:" >&5
29240 sed 's/^/| /' conftest.
$ac_ext >&5
29242 ( exit $ac_status )
29243 bash_cv_must_reinstall_sighandlers
=yes
29245 rm -rf conftest.dSYM
29246 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
29252 { $as_echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
29253 $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
29254 if test $bash_cv_must_reinstall_sighandlers = yes; then
29255 cat >>confdefs.h
<<\_ACEOF
29256 #define MUST_REINSTALL_SIGHANDLERS 1
29262 { $as_echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
29263 $as_echo_n "checking for presence of necessary job control definitions... " >&6; }
29264 if test "${bash_cv_job_control_missing+set}" = set; then
29265 $as_echo_n "(cached) " >&6
29267 if test "$cross_compiling" = yes; then
29268 { $as_echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
29269 $as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
29270 bash_cv_job_control_missing
=missing
29273 cat >conftest.
$ac_ext <<_ACEOF
29276 cat confdefs.h
>>conftest.
$ac_ext
29277 cat >>conftest.
$ac_ext <<_ACEOF
29278 /* end confdefs.h. */
29280 #include <sys/types.h>
29281 #ifdef HAVE_SYS_WAIT_H
29282 #include <sys/wait.h>
29284 #ifdef HAVE_UNISTD_H
29285 #include <unistd.h>
29287 #include <signal.h>
29289 /* Add more tests in here as appropriate. */
29293 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
29297 /* signals and tty control. */
29298 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
29302 /* process control */
29303 #if !defined (WNOHANG) || !defined (WUNTRACED)
29307 /* Posix systems have tcgetpgrp and waitpid. */
29308 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
29312 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
29316 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
29317 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
29324 rm -f conftest
$ac_exeext
29325 if { (ac_try
="$ac_link"
29326 case "(($ac_try" in
29327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29328 *) ac_try_echo=$ac_try;;
29330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29331 $as_echo "$ac_try_echo") >&5
29332 (eval "$ac_link") 2>&5
29334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29336 { (case "(($ac_try" in
29337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29338 *) ac_try_echo
=$ac_try;;
29340 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29341 $as_echo "$ac_try_echo") >&5
29342 (eval "$ac_try") 2>&5
29344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345 (exit $ac_status); }; }; then
29346 bash_cv_job_control_missing
=present
29348 $as_echo "$as_me: program exited with status $ac_status" >&5
29349 $as_echo "$as_me: failed program was:" >&5
29350 sed 's/^/| /' conftest.
$ac_ext >&5
29352 ( exit $ac_status )
29353 bash_cv_job_control_missing
=missing
29355 rm -rf conftest.dSYM
29356 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
29362 { $as_echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
29363 $as_echo "$bash_cv_job_control_missing" >&6; }
29364 if test $bash_cv_job_control_missing = missing
; then
29365 cat >>confdefs.h
<<\_ACEOF
29366 #define JOB_CONTROL_MISSING 1
29371 { $as_echo "$as_me:$LINENO: checking for presence of named pipes" >&5
29372 $as_echo_n "checking for presence of named pipes... " >&6; }
29373 if test "${bash_cv_sys_named_pipes+set}" = set; then
29374 $as_echo_n "(cached) " >&6
29376 if test "$cross_compiling" = yes; then
29377 { $as_echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
29378 $as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
29379 bash_cv_sys_named_pipes
=missing
29382 cat >conftest.
$ac_ext <<_ACEOF
29385 cat confdefs.h
>>conftest.
$ac_ext
29386 cat >>conftest.
$ac_ext <<_ACEOF
29387 /* end confdefs.h. */
29389 #include <sys/types.h>
29390 #include <sys/stat.h>
29391 #ifdef HAVE_UNISTD_H
29392 #include <unistd.h>
29395 /* Add more tests in here as appropriate. */
29400 #if defined (HAVE_MKFIFO)
29404 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
29411 err = mkdir("bash-aclocal", 0700);
29416 fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
29418 rmdir ("bash-aclocal");
29422 unlink ("bash-aclocal/sh-np-autoconf");
29423 rmdir ("bash-aclocal");
29427 rm -f conftest
$ac_exeext
29428 if { (ac_try
="$ac_link"
29429 case "(($ac_try" in
29430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29431 *) ac_try_echo=$ac_try;;
29433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29434 $as_echo "$ac_try_echo") >&5
29435 (eval "$ac_link") 2>&5
29437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29439 { (case "(($ac_try" in
29440 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29441 *) ac_try_echo
=$ac_try;;
29443 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29444 $as_echo "$ac_try_echo") >&5
29445 (eval "$ac_try") 2>&5
29447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448 (exit $ac_status); }; }; then
29449 bash_cv_sys_named_pipes
=present
29451 $as_echo "$as_me: program exited with status $ac_status" >&5
29452 $as_echo "$as_me: failed program was:" >&5
29453 sed 's/^/| /' conftest.
$ac_ext >&5
29455 ( exit $ac_status )
29456 bash_cv_sys_named_pipes
=missing
29458 rm -rf conftest.dSYM
29459 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
29465 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
29466 $as_echo "$bash_cv_sys_named_pipes" >&6; }
29467 if test $bash_cv_sys_named_pipes = missing
; then
29468 cat >>confdefs.h
<<\_ACEOF
29469 #define NAMED_PIPES_MISSING 1
29475 { $as_echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
29476 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
29477 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
29478 $as_echo_n "(cached) " >&6
29480 cat >conftest.
$ac_ext <<_ACEOF
29483 cat confdefs.h
>>conftest.
$ac_ext
29484 cat >>conftest.
$ac_ext <<_ACEOF
29485 /* end confdefs.h. */
29486 #include <sys/types.h>
29487 #include <termios.h>
29493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29494 $EGREP "yes" >/dev
/null
2>&1; then
29495 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
29497 ac_cv_sys_tiocgwinsz_in_termios_h
=no
29502 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
29503 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
29505 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
29506 { $as_echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
29507 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
29508 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
29509 $as_echo_n "(cached) " >&6
29511 cat >conftest.
$ac_ext <<_ACEOF
29514 cat confdefs.h
>>conftest.
$ac_ext
29515 cat >>conftest.
$ac_ext <<_ACEOF
29516 /* end confdefs.h. */
29517 #include <sys/types.h>
29518 #include <sys/ioctl.h>
29524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29525 $EGREP "yes" >/dev
/null
2>&1; then
29526 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
29528 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
29533 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
29534 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
29536 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
29538 cat >>confdefs.h
<<\_ACEOF
29539 #define GWINSZ_IN_SYS_IOCTL 1
29545 { $as_echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
29546 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
29547 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
29548 $as_echo_n "(cached) " >&6
29550 cat >conftest.
$ac_ext <<_ACEOF
29553 cat confdefs.h
>>conftest.
$ac_ext
29554 cat >>conftest.
$ac_ext <<_ACEOF
29555 /* end confdefs.h. */
29556 #include <sys/types.h>
29557 #include <sys/ioctl.h>
29566 rm -f conftest.
$ac_objext
29567 if { (ac_try
="$ac_compile"
29568 case "(($ac_try" in
29569 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29570 *) ac_try_echo=$ac_try;;
29572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29573 $as_echo "$ac_try_echo") >&5
29574 (eval "$ac_compile") 2>conftest.er1
29576 grep -v '^ *+' conftest.er1 >conftest.err
29578 cat conftest.err >&5
29579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580 (exit $ac_status); } && {
29581 test -z "$ac_c_werror_flag" ||
29582 test ! -s conftest.err
29583 } && test -s conftest.$ac_objext; then
29584 bash_cv_tiocstat_in_ioctl=yes
29586 $as_echo "$as_me: failed program was:" >&5
29587 sed 's/^/| /' conftest.$ac_ext >&5
29589 bash_cv_tiocstat_in_ioctl=no
29592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29595 { $as_echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
29596 $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
29597 if test $bash_cv_tiocstat_in_ioctl = yes; then
29598 cat >>confdefs.h <<\_ACEOF
29599 #define TIOCSTAT_IN_SYS_IOCTL 1
29604 { $as_echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
29605 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
29606 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
29607 $as_echo_n "(cached) " >&6
29609 cat >conftest.$ac_ext <<_ACEOF
29612 cat confdefs.h >>conftest.$ac_ext
29613 cat >>conftest.$ac_ext <<_ACEOF
29614 /* end confdefs.h. */
29615 #include <sys/types.h>
29616 #include <sys/ioctl.h>
29625 rm -f conftest.$ac_objext
29626 if { (ac_try="$ac_compile"
29627 case "(($ac_try" in
29628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29629 *) ac_try_echo
=$ac_try;;
29631 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29632 $as_echo "$ac_try_echo") >&5
29633 (eval "$ac_compile") 2>conftest.er1
29635 grep -v '^ *+' conftest.er1
>conftest.err
29637 cat conftest.err
>&5
29638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639 (exit $ac_status); } && {
29640 test -z "$ac_c_werror_flag" ||
29641 test ! -s conftest.err
29642 } && test -s conftest.
$ac_objext; then
29643 bash_cv_fionread_in_ioctl
=yes
29645 $as_echo "$as_me: failed program was:" >&5
29646 sed 's/^/| /' conftest.
$ac_ext >&5
29648 bash_cv_fionread_in_ioctl
=no
29651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29654 { $as_echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
29655 $as_echo "$bash_cv_fionread_in_ioctl" >&6; }
29656 if test $bash_cv_fionread_in_ioctl = yes; then
29657 cat >>confdefs.h
<<\_ACEOF
29658 #define FIONREAD_IN_SYS_IOCTL 1
29665 { $as_echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
29666 $as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
29667 if test "${bash_cv_wcontinued_broken+set}" = set; then
29668 $as_echo_n "(cached) " >&6
29670 if test "$cross_compiling" = yes; then
29671 { $as_echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
29672 $as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
29673 bash_cv_wcontinued_broken
=no
29676 cat >conftest.
$ac_ext <<_ACEOF
29679 cat confdefs.h
>>conftest.
$ac_ext
29680 cat >>conftest.
$ac_ext <<_ACEOF
29681 /* end confdefs.h. */
29683 #include <sys/types.h>
29684 #include <sys/wait.h>
29685 #include <unistd.h>
29695 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
29696 if (x == -1 && errno == EINVAL)
29703 rm -f conftest
$ac_exeext
29704 if { (ac_try
="$ac_link"
29705 case "(($ac_try" in
29706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29707 *) ac_try_echo=$ac_try;;
29709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29710 $as_echo "$ac_try_echo") >&5
29711 (eval "$ac_link") 2>&5
29713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29715 { (case "(($ac_try" in
29716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29717 *) ac_try_echo
=$ac_try;;
29719 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29720 $as_echo "$ac_try_echo") >&5
29721 (eval "$ac_try") 2>&5
29723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); }; }; then
29725 bash_cv_wcontinued_broken
=no
29727 $as_echo "$as_me: program exited with status $ac_status" >&5
29728 $as_echo "$as_me: failed program was:" >&5
29729 sed 's/^/| /' conftest.
$ac_ext >&5
29731 ( exit $ac_status )
29732 bash_cv_wcontinued_broken
=yes
29734 rm -rf conftest.dSYM
29735 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
29741 { $as_echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
29742 $as_echo "$bash_cv_wcontinued_broken" >&6; }
29743 if test $bash_cv_wcontinued_broken = yes; then
29744 cat >>confdefs.h
<<\_ACEOF
29745 #define WCONTINUED_BROKEN 1
29751 { $as_echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
29752 $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
29753 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
29754 $as_echo_n "(cached) " >&6
29756 cat >conftest.
$ac_ext <<_ACEOF
29759 cat confdefs.h
>>conftest.
$ac_ext
29760 cat >>conftest.
$ac_ext <<_ACEOF
29761 /* end confdefs.h. */
29762 #include <sys/types.h>
29771 rm -f conftest.
$ac_objext
29772 if { (ac_try
="$ac_compile"
29773 case "(($ac_try" in
29774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29775 *) ac_try_echo=$ac_try;;
29777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29778 $as_echo "$ac_try_echo") >&5
29779 (eval "$ac_compile") 2>conftest.er1
29781 grep -v '^ *+' conftest.er1 >conftest.err
29783 cat conftest.err >&5
29784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); } && {
29786 test -z "$ac_c_werror_flag" ||
29787 test ! -s conftest.err
29788 } && test -s conftest.$ac_objext; then
29789 bash_cv_speed_t_in_sys_types=yes
29791 $as_echo "$as_me: failed program was:" >&5
29792 sed 's/^/| /' conftest.$ac_ext >&5
29794 bash_cv_speed_t_in_sys_types=no
29797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29800 { $as_echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
29801 $as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
29802 if test $bash_cv_speed_t_in_sys_types = yes; then
29803 cat >>confdefs.h <<\_ACEOF
29804 #define SPEED_T_IN_SYS_TYPES 1
29809 { $as_echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
29810 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
29811 if test "${bash_cv_getpw_declared+set}" = set; then
29812 $as_echo_n "(cached) " >&6
29814 cat >conftest.$ac_ext <<_ACEOF
29817 cat confdefs.h >>conftest.$ac_ext
29818 cat >>conftest.$ac_ext <<_ACEOF
29819 /* end confdefs.h. */
29821 #include <sys/types.h>
29822 #ifdef HAVE_UNISTD_H
29823 # include <unistd.h>
29828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29829 $EGREP "getpwuid" >/dev/null 2>&1; then
29830 bash_cv_getpw_declared=yes
29832 bash_cv_getpw_declared=no
29838 { $as_echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
29839 $as_echo "$bash_cv_getpw_declared" >&6; }
29840 if test $bash_cv_getpw_declared = yes; then
29841 cat >>confdefs.h <<\_ACEOF
29842 #define HAVE_GETPW_DECLS 1
29847 { $as_echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
29848 $as_echo_n "checking for unusable real-time signals due to large values... " >&6; }
29849 if test "${bash_cv_unusable_rtsigs+set}" = set; then
29850 $as_echo_n "(cached) " >&6
29852 if test "$cross_compiling" = yes; then
29853 { $as_echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
29854 $as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
29855 bash_cv_unusable_rtsigs=yes
29858 cat >conftest.$ac_ext <<_ACEOF
29861 cat confdefs.h >>conftest.$ac_ext
29862 cat >>conftest.$ac_ext <<_ACEOF
29863 /* end confdefs.h. */
29865 #include <sys/types.h>
29866 #include <signal.h>
29874 int n_sigs = 2 * NSIG;
29876 int rtmin = SIGRTMIN;
29881 exit(rtmin < n_sigs);
29884 rm -f conftest$ac_exeext
29885 if { (ac_try="$ac_link"
29886 case "(($ac_try" in
29887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29888 *) ac_try_echo
=$ac_try;;
29890 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29891 $as_echo "$ac_try_echo") >&5
29892 (eval "$ac_link") 2>&5
29894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
29896 { (case "(($ac_try" in
29897 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29898 *) ac_try_echo=$ac_try;;
29900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29901 $as_echo "$ac_try_echo") >&5
29902 (eval "$ac_try") 2>&5
29904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29905 (exit $ac_status); }; }; then
29906 bash_cv_unusable_rtsigs=yes
29908 $as_echo "$as_me: program exited with status $ac_status" >&5
29909 $as_echo "$as_me: failed program was:" >&5
29910 sed 's/^/| /' conftest.$ac_ext >&5
29912 ( exit $ac_status )
29913 bash_cv_unusable_rtsigs=no
29915 rm -rf conftest.dSYM
29916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29922 { $as_echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
29923 $as_echo "$bash_cv_unusable_rtsigs" >&6; }
29924 if test $bash_cv_unusable_rtsigs = yes; then
29925 cat >>confdefs.h <<\_ACEOF
29926 #define UNUSABLE_RT_SIGNALS 1
29935 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
29936 SIGLIST_O=siglist.o
29944 hpux*) { $as_echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
29945 $as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
29946 if test "${bash_cv_kernel_rlimit+set}" = set; then
29947 $as_echo_n "(cached) " >&6
29949 cat >conftest.$ac_ext <<_ACEOF
29952 cat confdefs.h >>conftest.$ac_ext
29953 cat >>conftest.$ac_ext <<_ACEOF
29954 /* end confdefs.h. */
29956 #include <sys/types.h>
29957 #include <sys/resource.h>
29970 rm -f conftest.$ac_objext
29971 if { (ac_try="$ac_compile"
29972 case "(($ac_try" in
29973 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29974 *) ac_try_echo
=$ac_try;;
29976 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29977 $as_echo "$ac_try_echo") >&5
29978 (eval "$ac_compile") 2>conftest.er1
29980 grep -v '^ *+' conftest.er1
>conftest.err
29982 cat conftest.err
>&5
29983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29984 (exit $ac_status); } && {
29985 test -z "$ac_c_werror_flag" ||
29986 test ! -s conftest.err
29987 } && test -s conftest.
$ac_objext; then
29988 bash_cv_kernel_rlimit
=no
29990 $as_echo "$as_me: failed program was:" >&5
29991 sed 's/^/| /' conftest.
$ac_ext >&5
29993 cat >conftest.
$ac_ext <<_ACEOF
29996 cat confdefs.h
>>conftest.
$ac_ext
29997 cat >>conftest.
$ac_ext <<_ACEOF
29998 /* end confdefs.h. */
30000 #include <sys/types.h>
30002 #include <sys/resource.h>
30016 rm -f conftest.
$ac_objext
30017 if { (ac_try
="$ac_compile"
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_compile") 2>conftest.er1
30026 grep -v '^ *+' conftest.er1 >conftest.err
30028 cat conftest.err >&5
30029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30030 (exit $ac_status); } && {
30031 test -z "$ac_c_werror_flag" ||
30032 test ! -s conftest.err
30033 } && test -s conftest.$ac_objext; then
30034 bash_cv_kernel_rlimit=yes
30036 $as_echo "$as_me: failed program was:" >&5
30037 sed 's/^/| /' conftest.$ac_ext >&5
30039 bash_cv_kernel_rlimit=no
30042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30049 { $as_echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
30050 $as_echo "$bash_cv_kernel_rlimit" >&6; }
30051 if test $bash_cv_kernel_rlimit = yes; then
30052 cat >>confdefs.h <<\_ACEOF
30053 #define RLIMIT_NEEDS_KERNEL 1
30060 if test "$opt_readline" = yes; then
30062 aix*) prefer_curses=yes ;;
30065 if test "X$bash_cv_termcap_lib" = "X"; then
30068 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
30069 $as_echo_n "checking which library has the termcap functions... " >&6; }
30072 if test "${bash_cv_termcap_lib+set}" = set; then
30073 $as_echo_n "(cached) " >&6
30075 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
30076 $as_echo_n "checking for tgetent... " >&6; }
30077 if test "${ac_cv_func_tgetent+set}" = set; then
30078 $as_echo_n "(cached) " >&6
30080 cat >conftest.$ac_ext <<_ACEOF
30083 cat confdefs.h >>conftest.$ac_ext
30084 cat >>conftest.$ac_ext <<_ACEOF
30085 /* end confdefs.h. */
30086 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
30087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30088 #define tgetent innocuous_tgetent
30090 /* System header to define __stub macros and hopefully few prototypes,
30091 which can conflict with char tgetent (); below.
30092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30093 <limits.h> exists even on freestanding compilers. */
30096 # include <limits.h>
30098 # include <assert.h>
30103 /* Override any GCC internal prototype to avoid an error.
30104 Use char because int might match the return type of a GCC
30105 builtin and then its argument prototype would still apply. */
30110 /* The GNU C library defines this for functions which it implements
30111 to always fail with ENOSYS. Some functions are actually named
30112 something starting with __ and the normal name is an alias. */
30113 #if defined __stub_tgetent || defined __stub___tgetent
30125 rm -f conftest.$ac_objext conftest$ac_exeext
30126 if { (ac_try="$ac_link"
30127 case "(($ac_try" in
30128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30129 *) ac_try_echo
=$ac_try;;
30131 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
30132 $as_echo "$ac_try_echo") >&5
30133 (eval "$ac_link") 2>conftest.er1
30135 grep -v '^ *+' conftest.er1
>conftest.err
30137 cat conftest.err
>&5
30138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30139 (exit $ac_status); } && {
30140 test -z "$ac_c_werror_flag" ||
30141 test ! -s conftest.err
30142 } && test -s conftest
$ac_exeext && {
30143 test "$cross_compiling" = yes ||
30144 $as_test_x conftest
$ac_exeext
30146 ac_cv_func_tgetent
=yes
30148 $as_echo "$as_me: failed program was:" >&5
30149 sed 's/^/| /' conftest.
$ac_ext >&5
30151 ac_cv_func_tgetent
=no
30154 rm -rf conftest.dSYM
30155 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30156 conftest
$ac_exeext conftest.
$ac_ext
30158 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
30159 $as_echo "$ac_cv_func_tgetent" >&6; }
30160 if test "x$ac_cv_func_tgetent" = x
""yes; then
30161 bash_cv_termcap_lib
=libc
30163 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
30164 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
30165 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
30166 $as_echo_n "(cached) " >&6
30168 ac_check_lib_save_LIBS
=$LIBS
30169 LIBS
="-ltermcap $LIBS"
30170 cat >conftest.
$ac_ext <<_ACEOF
30173 cat confdefs.h
>>conftest.
$ac_ext
30174 cat >>conftest.
$ac_ext <<_ACEOF
30175 /* end confdefs.h. */
30177 /* Override any GCC internal prototype to avoid an error.
30178 Use char because int might match the return type of a GCC
30179 builtin and then its argument prototype would still apply. */
30192 rm -f conftest.
$ac_objext conftest
$ac_exeext
30193 if { (ac_try
="$ac_link"
30194 case "(($ac_try" in
30195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30196 *) ac_try_echo=$ac_try;;
30198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30199 $as_echo "$ac_try_echo") >&5
30200 (eval "$ac_link") 2>conftest.er1
30202 grep -v '^ *+' conftest.er1 >conftest.err
30204 cat conftest.err >&5
30205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); } && {
30207 test -z "$ac_c_werror_flag" ||
30208 test ! -s conftest.err
30209 } && test -s conftest$ac_exeext && {
30210 test "$cross_compiling" = yes ||
30211 $as_test_x conftest$ac_exeext
30213 ac_cv_lib_termcap_tgetent=yes
30215 $as_echo "$as_me: failed program was:" >&5
30216 sed 's/^/| /' conftest.$ac_ext >&5
30218 ac_cv_lib_termcap_tgetent=no
30221 rm -rf conftest.dSYM
30222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30223 conftest$ac_exeext conftest.$ac_ext
30224 LIBS=$ac_check_lib_save_LIBS
30226 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
30227 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
30228 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
30229 bash_cv_termcap_lib=libtermcap
30231 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
30232 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
30233 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
30234 $as_echo_n "(cached) " >&6
30236 ac_check_lib_save_LIBS=$LIBS
30237 LIBS="-ltinfo $LIBS"
30238 cat >conftest.$ac_ext <<_ACEOF
30241 cat confdefs.h >>conftest.$ac_ext
30242 cat >>conftest.$ac_ext <<_ACEOF
30243 /* end confdefs.h. */
30245 /* Override any GCC internal prototype to avoid an error.
30246 Use char because int might match the return type of a GCC
30247 builtin and then its argument prototype would still apply. */
30260 rm -f conftest.$ac_objext conftest$ac_exeext
30261 if { (ac_try="$ac_link"
30262 case "(($ac_try" in
30263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30264 *) ac_try_echo
=$ac_try;;
30266 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
30267 $as_echo "$ac_try_echo") >&5
30268 (eval "$ac_link") 2>conftest.er1
30270 grep -v '^ *+' conftest.er1
>conftest.err
30272 cat conftest.err
>&5
30273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274 (exit $ac_status); } && {
30275 test -z "$ac_c_werror_flag" ||
30276 test ! -s conftest.err
30277 } && test -s conftest
$ac_exeext && {
30278 test "$cross_compiling" = yes ||
30279 $as_test_x conftest
$ac_exeext
30281 ac_cv_lib_tinfo_tgetent
=yes
30283 $as_echo "$as_me: failed program was:" >&5
30284 sed 's/^/| /' conftest.
$ac_ext >&5
30286 ac_cv_lib_tinfo_tgetent
=no
30289 rm -rf conftest.dSYM
30290 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30291 conftest
$ac_exeext conftest.
$ac_ext
30292 LIBS
=$ac_check_lib_save_LIBS
30294 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
30295 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
30296 if test "x$ac_cv_lib_tinfo_tgetent" = x
""yes; then
30297 bash_cv_termcap_lib
=libtinfo
30299 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
30300 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
30301 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
30302 $as_echo_n "(cached) " >&6
30304 ac_check_lib_save_LIBS
=$LIBS
30305 LIBS
="-lcurses $LIBS"
30306 cat >conftest.
$ac_ext <<_ACEOF
30309 cat confdefs.h
>>conftest.
$ac_ext
30310 cat >>conftest.
$ac_ext <<_ACEOF
30311 /* end confdefs.h. */
30313 /* Override any GCC internal prototype to avoid an error.
30314 Use char because int might match the return type of a GCC
30315 builtin and then its argument prototype would still apply. */
30328 rm -f conftest.
$ac_objext conftest
$ac_exeext
30329 if { (ac_try
="$ac_link"
30330 case "(($ac_try" in
30331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30332 *) ac_try_echo=$ac_try;;
30334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30335 $as_echo "$ac_try_echo") >&5
30336 (eval "$ac_link") 2>conftest.er1
30338 grep -v '^ *+' conftest.er1 >conftest.err
30340 cat conftest.err >&5
30341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30342 (exit $ac_status); } && {
30343 test -z "$ac_c_werror_flag" ||
30344 test ! -s conftest.err
30345 } && test -s conftest$ac_exeext && {
30346 test "$cross_compiling" = yes ||
30347 $as_test_x conftest$ac_exeext
30349 ac_cv_lib_curses_tgetent=yes
30351 $as_echo "$as_me: failed program was:" >&5
30352 sed 's/^/| /' conftest.$ac_ext >&5
30354 ac_cv_lib_curses_tgetent=no
30357 rm -rf conftest.dSYM
30358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30359 conftest$ac_exeext conftest.$ac_ext
30360 LIBS=$ac_check_lib_save_LIBS
30362 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
30363 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
30364 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
30365 bash_cv_termcap_lib=libcurses
30367 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
30368 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
30369 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
30370 $as_echo_n "(cached) " >&6
30372 ac_check_lib_save_LIBS=$LIBS
30373 LIBS="-lncurses $LIBS"
30374 cat >conftest.$ac_ext <<_ACEOF
30377 cat confdefs.h >>conftest.$ac_ext
30378 cat >>conftest.$ac_ext <<_ACEOF
30379 /* end confdefs.h. */
30381 /* Override any GCC internal prototype to avoid an error.
30382 Use char because int might match the return type of a GCC
30383 builtin and then its argument prototype would still apply. */
30396 rm -f conftest.$ac_objext conftest$ac_exeext
30397 if { (ac_try="$ac_link"
30398 case "(($ac_try" in
30399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30400 *) ac_try_echo
=$ac_try;;
30402 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
30403 $as_echo "$ac_try_echo") >&5
30404 (eval "$ac_link") 2>conftest.er1
30406 grep -v '^ *+' conftest.er1
>conftest.err
30408 cat conftest.err
>&5
30409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30410 (exit $ac_status); } && {
30411 test -z "$ac_c_werror_flag" ||
30412 test ! -s conftest.err
30413 } && test -s conftest
$ac_exeext && {
30414 test "$cross_compiling" = yes ||
30415 $as_test_x conftest
$ac_exeext
30417 ac_cv_lib_ncurses_tgetent
=yes
30419 $as_echo "$as_me: failed program was:" >&5
30420 sed 's/^/| /' conftest.
$ac_ext >&5
30422 ac_cv_lib_ncurses_tgetent
=no
30425 rm -rf conftest.dSYM
30426 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30427 conftest
$ac_exeext conftest.
$ac_ext
30428 LIBS
=$ac_check_lib_save_LIBS
30430 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
30431 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
30432 if test "x$ac_cv_lib_ncurses_tgetent" = x
""yes; then
30433 bash_cv_termcap_lib
=libncurses
30435 bash_cv_termcap_lib
=gnutermcap
30448 if test "X$_bash_needmsg" = "Xyes"; then
30449 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
30450 $as_echo_n "checking which library has the termcap functions... " >&6; }
30452 { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
30453 $as_echo "using $bash_cv_termcap_lib" >&6; }
30454 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
30455 LDFLAGS
="$LDFLAGS -L./lib/termcap"
30456 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
30457 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
30458 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
30459 TERMCAP_LIB
=-ltermcap
30461 elif test $bash_cv_termcap_lib = libtinfo
; then
30462 TERMCAP_LIB
=-ltinfo
30464 elif test $bash_cv_termcap_lib = libncurses
; then
30465 TERMCAP_LIB
=-lncurses
30467 elif test $bash_cv_termcap_lib = libc
; then
30471 TERMCAP_LIB
=-lcurses
30479 { $as_echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
30480 $as_echo_n "checking whether /dev/fd is available... " >&6; }
30481 if test "${bash_cv_dev_fd+set}" = set; then
30482 $as_echo_n "(cached) " >&6
30485 if test -d /dev
/fd
&& (exec test -r /dev
/fd
/0 < /dev
/null
) ; then
30486 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
30487 if (exec test -r /dev
/fd
/3 3</dev
/null
) ; then
30488 bash_cv_dev_fd
=standard
30490 bash_cv_dev_fd
=absent
30493 if test -z "$bash_cv_dev_fd" ; then
30494 if test -d /proc
/self
/fd
&& (exec test -r /proc
/self
/fd
/0 < /dev
/null
) ; then
30495 bash_cv_dev_fd
=whacky
30497 bash_cv_dev_fd
=absent
30503 { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
30504 $as_echo "$bash_cv_dev_fd" >&6; }
30505 if test $bash_cv_dev_fd = "standard"; then
30506 cat >>confdefs.h
<<\_ACEOF
30507 #define HAVE_DEV_FD 1
30510 cat >>confdefs.h
<<\_ACEOF
30511 #define DEV_FD_PREFIX "/dev/fd/"
30514 elif test $bash_cv_dev_fd = "whacky"; then
30515 cat >>confdefs.h
<<\_ACEOF
30516 #define HAVE_DEV_FD 1
30519 cat >>confdefs.h
<<\_ACEOF
30520 #define DEV_FD_PREFIX "/proc/self/fd/"
30525 { $as_echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
30526 $as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; }
30527 if test "${bash_cv_dev_stdin+set}" = set; then
30528 $as_echo_n "(cached) " >&6
30530 if test -d /dev
/fd
&& (exec test -r /dev
/stdin
< /dev
/null
) ; then
30531 bash_cv_dev_stdin
=present
30532 elif test -d /proc
/self
/fd
&& (exec test -r /dev
/stdin
< /dev
/null
) ; then
30533 bash_cv_dev_stdin
=present
30535 bash_cv_dev_stdin
=absent
30540 { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
30541 $as_echo "$bash_cv_dev_stdin" >&6; }
30542 if test $bash_cv_dev_stdin = "present"; then
30543 cat >>confdefs.h
<<\_ACEOF
30544 #define HAVE_DEV_STDIN 1
30549 { $as_echo "$as_me:$LINENO: checking for default mail directory" >&5
30550 $as_echo_n "checking for default mail directory... " >&6; }
30551 if test "${bash_cv_mail_dir+set}" = set; then
30552 $as_echo_n "(cached) " >&6
30554 if test -d /var
/mail; then
30555 bash_cv_mail_dir
=/var
/mail
30556 elif test -d /var
/spool
/mail; then
30557 bash_cv_mail_dir
=/var
/spool
/mail
30558 elif test -d /usr
/mail; then
30559 bash_cv_mail_dir
=/usr
/mail
30560 elif test -d /usr
/spool
/mail; then
30561 bash_cv_mail_dir
=/usr
/spool
/mail
30563 bash_cv_mail_dir
=unknown
30568 { $as_echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
30569 $as_echo "$bash_cv_mail_dir" >&6; }
30570 cat >>confdefs.h
<<_ACEOF
30571 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
30576 if test "$bash_cv_job_control_missing" = missing
; then
30580 if test "$opt_job_control" = yes; then
30581 cat >>confdefs.h
<<\_ACEOF
30582 #define JOB_CONTROL 1
30596 case "${host_os}" in
30597 sysv4.2
*) cat >>confdefs.h
<<\_ACEOF
30601 cat >>confdefs.h
<<\_ACEOF
30605 sysv4
*) cat >>confdefs.h
<<\_ACEOF
30609 sysv5
*) cat >>confdefs.h
<<\_ACEOF
30613 hpux9
*) LOCAL_CFLAGS
="-DHPUX9 -DHPUX" ;;
30614 hpux
*) LOCAL_CFLAGS
=-DHPUX ;;
30615 dgux
*) LOCAL_CFLAGS
=-D_DGUX_SOURCE; LOCAL_LIBS
=-ldgc ;;
30616 isc
*) LOCAL_CFLAGS
=-Disc386 ;;
30617 rhapsody
*) LOCAL_CFLAGS
=-DRHAPSODY ;;
30618 darwin
*) LOCAL_CFLAGS
=-DMACOSX ;;
30619 sco3.2v5
*) LOCAL_CFLAGS
="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
30620 sco3.2v4
*) LOCAL_CFLAGS
="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
30621 sco3.2
*) LOCAL_CFLAGS
=-DMUST_UNBLOCK_CHLD ;;
30622 sunos4
*) LOCAL_CFLAGS
=-DSunOS4 ;;
30623 solaris2.5
*) LOCAL_CFLAGS
="-DSunOS5 -DSOLARIS" ;;
30624 solaris2.8
*) LOCAL_CFLAGS
=-DSOLARIS ;;
30625 solaris2.9
*) LOCAL_CFLAGS
=-DSOLARIS ;;
30626 solaris2.10
*) LOCAL_CFLAGS
=-DSOLARIS ;;
30627 solaris2
*) LOCAL_CFLAGS
=-DSOLARIS ;;
30628 lynxos
*) LOCAL_CFLAGS
=-DRECYCLES_PIDS ;;
30629 linux
*) LOCAL_LDFLAGS
=-rdynamic # allow dynamic loading
30630 case "`uname -r`" in
30631 2.
[456789]*|
3*) cat >>confdefs.h
<<\_ACEOF
30632 #define PGRP_PIPE 1
30636 *qnx6
*) LOCAL_CFLAGS
="-Dqnx -Dqnx6" LOCAL_LIBS
="-lncurses" ;;
30637 *qnx
*) LOCAL_CFLAGS
="-Dqnx -F -3s" LOCAL_LDFLAGS
="-3s" LOCAL_LIBS
="-lunix -lncurses" ;;
30638 powerux
*) LOCAL_LIBS
="-lgen" ;;
30639 cygwin
*) LOCAL_CFLAGS
=-DRECYCLES_PIDS ;;
30640 opennt
*|interix
*) LOCAL_CFLAGS
="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE" ;;
30643 case "${host_os}-${CC}" in
30644 aix4.2
*-*gcc
*) LOCAL_LDFLAGS
="-Xlinker -bexpall -Xlinker -brtl" ;;
30645 aix4.2
*) LOCAL_LDFLAGS
="-bexpall -brtl" ;;
30646 bsdi4
*-*gcc
*) LOCAL_LDFLAGS
="-rdynamic" ;; # allow dynamic loading, like Linux
30649 case "${host_os}" in
30651 if test -x /usr
/bin
/objformat
&& test "`/usr/bin/objformat`" = "elf" ; then
30652 LOCAL_LDFLAGS
=-rdynamic # allow dynamic loading
30654 freebsdelf
*) LOCAL_LDFLAGS
=-rdynamic ;; # allow dynamic loading
30655 dragonfly
*) LOCAL_LDFLAGS
=-rdynamic ;; # allow dynamic loading
30658 case "$host_cpu" in
30659 *cray
*) LOCAL_CFLAGS
="-DCRAY" ;; # shell var so config.h can use it
30662 case "$host_cpu-$host_os" in
30663 ibmrt-
*bsd4
*) LOCAL_CFLAGS
="-ma -U__STDC__" ;;
30666 case "$host_cpu-$host_vendor-$host_os" in
30667 m88k-motorola-sysv3
) LOCAL_CFLAGS
=-DWAITPID_BROKEN ;;
30668 mips-pyramid-sysv4
) LOCAL_CFLAGS
=-Xa ;;
30672 # Shared object configuration section. These values are generated by
30673 # ${srcdir}/support/shobj-conf
30675 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support
/shobj-conf
30677 { $as_echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
30678 $as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
30679 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
30687 { $as_echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
30688 $as_echo "$SHOBJ_STATUS" >&6; }
30691 # try to create a directory tree if the source is elsewhere
30692 # this should be packaged into a script accessible via ${srcdir}/support
30695 *) for d
in doc tests support lib examples
; do # dirs
30696 test -d $d || mkdir
$d
30698 for ld
in readline glob tilde malloc sh termcap
; do # libdirs
30699 test -d lib
/$ld || mkdir lib
/$ld
30701 test -d examples
/loadables || mkdir examples
/loadables
# loadable builtins
30702 test -d examples
/loadables
/perl || mkdir examples
/loadables
/perl
30707 case "$BUILD_DIR" in
30708 *\
*) BUILD_DIR
=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
30712 if test -z "$localedir"; then
30713 localedir
='${datarootdir}/locale'
30715 if test -z "$datarootdir"; then
30716 datarootdir
='${prefix}/share'
30724 # Some versions of autoconf don't substitute these automatically
30746 #AC_SUBST(ALLOCA_SOURCE)
30747 #AC_SUBST(ALLOCA_OBJECT)
30749 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"
30751 ac_config_commands
="$ac_config_commands default"
30753 cat >confcache
<<\_ACEOF
30754 # This file is a shell script that caches the results of configure
30755 # tests run on this system so they can be shared between configure
30756 # scripts and configure runs, see configure's option --config-cache.
30757 # It is not useful on other systems. If it contains results you don't
30758 # want to keep, you may remove or edit it.
30760 # config.status only pays attention to the cache file if you give it
30761 # the --recheck option to rerun configure.
30763 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30764 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30765 # following values.
30769 # The following way of writing the cache mishandles newlines in values,
30770 # but we know of no workaround that is simple, portable, and efficient.
30771 # So, we kill variables containing newlines.
30772 # Ultrix sh set writes to stderr and can't be redirected directly,
30773 # and sets the high bit in the cache file unless we assign to the vars.
30775 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30776 eval ac_val
=\$
$ac_var
30780 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
30781 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30784 _ | IFS | as_nl
) ;; #(
30785 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
30786 *) $as_unset $ac_var ;;
30792 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30793 *${as_nl}ac_space
=\
*)
30794 # `set' does not quote correctly, so add quotes (double-quote
30795 # substitution turns \\\\ into \\, and sed turns \\ into \).
30798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30801 # `set' quotes correctly as required by POSIX, so do not add quotes.
30802 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30811 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30813 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30815 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
30816 if test -w "$cache_file"; then
30817 test "x$cache_file" != "x/dev/null" &&
30818 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30819 $as_echo "$as_me: updating cache $cache_file" >&6;}
30820 cat confcache
>$cache_file
30822 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30823 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30828 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
30829 # Let make expand exec_prefix.
30830 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30832 DEFS
=-DHAVE_CONFIG_H
30836 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
30837 # 1. Remove the extension, and $U if already installed.
30838 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
30839 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
30840 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30841 # will be set to the directory where LIBOBJS objects are built.
30842 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30843 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30845 LIBOBJS
=$ac_libobjs
30847 LTLIBOBJS
=$ac_ltlibobjs
30852 : ${CONFIG_STATUS=./config.status}
30854 ac_clean_files_save
=$ac_clean_files
30855 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
30856 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30857 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30858 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30860 # Generated by $as_me.
30861 # Run this file to recreate the current configuration.
30862 # Compiler output produced by configure, useful for debugging
30863 # configure, is in config.log if it exists.
30866 ac_cs_recheck=false
30868 SHELL=\${CONFIG_SHELL-$SHELL}
30871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30872 ## --------------------- ##
30873 ## M4sh Initialization. ##
30874 ## --------------------- ##
30876 # Be more Bourne compatible
30877 DUALCASE
=1; export DUALCASE
# for MKS sh
30878 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
30881 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30882 # is contrary to our usage. Disable this feature.
30883 alias -g '${1+"$@"}'='"$@"'
30884 setopt NO_GLOB_SUBST
30886 case `(set -o) 2>/dev/null` in
30887 *posix
*) set -o posix
;;
30896 # Avoid depending upon Character Ranges.
30897 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30898 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30899 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30900 as_cr_digits
='0123456789'
30901 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30906 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30907 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30908 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30909 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30910 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30911 as_echo='printf %s
\n'
30912 as_echo_n='printf %s
'
30914 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30915 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30916 as_echo_n='/usr
/ucb
/echo -n'
30918 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30919 as_echo_n_body='eval
30923 expr "X$arg" : "X\\(.*\\)$as_nl";
30924 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30926 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30928 export as_echo_n_body
30929 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30931 export as_echo_body
30932 as_echo='sh
-c $as_echo_body as_echo
'
30935 # The user is always right.
30936 if test "${PATH_SEPARATOR+set}" != set; then
30938 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30939 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30944 # Support unset when possible.
30945 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30953 # We need space, tab and new line, in precisely that order. Quoting is
30954 # there to prevent editors from complaining about space-tab.
30955 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30956 # splitting by setting IFS to empty value.)
30959 # Find who we are. Look in the path if we contain no directory separator.
30961 *[\\/]* ) as_myself=$0 ;;
30962 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30963 for as_dir in $PATH
30966 test -z "$as_dir" && as_dir=.
30967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30973 # We did not find ourselves, most probably we were run as `sh COMMAND'
30974 # in which case we are not to be found in the path.
30975 if test "x$as_myself" = x
; then
30978 if test ! -f "$as_myself"; then
30979 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30980 { (exit 1); exit 1; }
30983 # Work around bugs in pre-3.0 UWIN ksh.
30984 for as_var
in ENV MAIL MAILPATH
30985 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
30997 # Required to use basename.
30998 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30999 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
31005 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31006 as_basename
=basename
31012 # Name of the executable.
31013 as_me
=`$as_basename -- "$0" ||
31014 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31015 X"$0" : 'X\(//\)$' \| \
31016 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31018 sed '/^.*\/\([^/][^/]*\)\/*$/{
31037 as_lineno_1
=$LINENO
31038 as_lineno_2
=$LINENO
31039 test "x$as_lineno_1" != "x$as_lineno_2" &&
31040 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
31042 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31043 # uniformly replaced by the line number. The first 'sed' inserts a
31044 # line-number line after each line using $LINENO; the second 'sed'
31045 # does the real work. The second script uses 'N' to pair each
31046 # line-number line with the line containing $LINENO, and appends
31047 # trailing '-' during substitution so that $LINENO is not a special
31048 # case at line end.
31049 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31050 # scripts with optimization help from Paolo Bonzini. Blame Lee
31051 # E. McMahon (1931-1989) for sed's syntax. :-)
31063 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31066 ' >$as_me.lineno
&&
31067 chmod +x
"$as_me.lineno" ||
31068 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31069 { (exit 1); exit 1; }; }
31071 # Don't try to exec as it changes $[0], causing all sort of problems
31072 # (the dirname of $[0] is not the place where we might find the
31073 # original and so on. Autoconf is especially sensitive to this).
31074 .
"./$as_me.lineno"
31075 # Exit status is that of the last command.
31080 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
31086 ECHO_C
= ECHO_N
= ECHO_T
=
31087 case `echo -n x` in
31089 case `echo 'x\c'` in
31090 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
31096 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
31097 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
31103 rm -f conf$$ conf$$.exe conf$$.
file
31104 if test -d conf$$.dir
; then
31105 rm -f conf$$.dir
/conf$$.
file
31108 mkdir conf$$.dir
2>/dev
/null
31110 if (echo >conf$$.
file) 2>/dev
/null
; then
31111 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
31113 # ... but there are two gotchas:
31114 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31115 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31116 # In both cases, we have to default to `cp -p'.
31117 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
31119 elif ln conf$$.
file conf$$
2>/dev
/null
; then
31127 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
31128 rmdir conf$$.dir
2>/dev
/null
31130 if mkdir
-p .
2>/dev
/null
; then
31133 test -d .
/-p && rmdir .
/-p
31137 if test -x / >/dev
/null
2>&1; then
31138 as_test_x
='test -x'
31140 if ls -dL / >/dev
/null
2>&1; then
31147 if test -d "$1"; then
31153 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31154 ???[sx]*):;;*)false;;esac;fi
31158 as_executable_p
=$as_test_x
31160 # Sed expression to map a string onto a valid CPP name.
31161 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31163 # Sed expression to map a string onto a valid variable name.
31164 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31169 # Save the log message, to keep $[0] and so on meaningful, and to
31170 # report actual input values of CONFIG_FILES etc. instead of their
31171 # values after options handling.
31173 This file was extended by bash $as_me 4.1-release, which was
31174 generated by GNU Autoconf 2.63. Invocation command line was
31176 CONFIG_FILES = $CONFIG_FILES
31177 CONFIG_HEADERS = $CONFIG_HEADERS
31178 CONFIG_LINKS = $CONFIG_LINKS
31179 CONFIG_COMMANDS = $CONFIG_COMMANDS
31182 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31187 case $ac_config_files in *"
31188 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
31191 case $ac_config_headers in *"
31192 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
31196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31197 # Files that config.status was made for.
31198 config_files="$ac_config_files"
31199 config_headers="$ac_config_headers"
31200 config_commands="$ac_config_commands"
31204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31206 \`$as_me' instantiates files from templates according to the
31207 current configuration.
31209 Usage: $0 [OPTION]... [FILE]...
31211 -h, --help print this help, then exit
31212 -V, --version print version number and configuration settings, then exit
31213 -q, --quiet, --silent
31214 do not print progress messages
31215 -d, --debug don't remove temporary files
31216 --recheck update $as_me by reconfiguring in the same conditions
31217 --file=FILE[:TEMPLATE]
31218 instantiate the configuration file FILE
31219 --header=FILE[:TEMPLATE]
31220 instantiate the configuration header FILE
31222 Configuration files:
31225 Configuration headers:
31228 Configuration commands:
31231 Report bugs to <bug-autoconf@gnu.org>."
31234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31236 bash config.status 4.1-release
31237 configured by $0, generated by GNU Autoconf 2.63,
31238 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31240 Copyright (C) 2008 Free Software Foundation, Inc.
31241 This config.status script is free software; the Free Software Foundation
31242 gives unlimited permission to copy, distribute and modify it."
31247 test -n "\$AWK" || AWK=awk
31250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31251 # The default lists apply if the user does not specify any file.
31257 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31258 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
31269 # Handling of the options.
31270 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
31272 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
31273 $as_echo "$ac_cs_version"; exit ;;
31274 --debug |
--debu |
--deb |
--de |
--d |
-d )
31276 --file |
--fil |
--fi |
--f )
31279 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31281 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
31282 ac_need_defaults
=false
;;
31283 --header |
--heade |
--head |
--hea )
31286 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31288 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
31289 ac_need_defaults
=false
;;
31291 # Conflict between --help and --header
31292 { $as_echo "$as_me: error: ambiguous option: $1
31293 Try \`$0 --help' for more information." >&2
31294 { (exit 1); exit 1; }; };;
31295 --help |
--hel |
-h )
31296 $as_echo "$ac_cs_usage"; exit ;;
31297 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
31298 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
31301 # This is an error.
31302 -*) { $as_echo "$as_me: error: unrecognized option: $1
31303 Try \`$0 --help' for more information." >&2
31304 { (exit 1); exit 1; }; } ;;
31306 *) ac_config_targets
="$ac_config_targets $1"
31307 ac_need_defaults
=false
;;
31313 ac_configure_extra_args
=
31315 if $ac_cs_silent; then
31317 ac_configure_extra_args
="$ac_configure_extra_args --silent"
31321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31322 if \$ac_cs_recheck; then
31323 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31325 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31326 CONFIG_SHELL='$SHELL'
31327 export CONFIG_SHELL
31332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31336 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31337 ## Running $as_me. ##
31343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31347 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31348 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
31350 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31351 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31352 LINGUAS="${LINGUAS-%UNSET%}"
31357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31359 # Handling of arguments.
31360 for ac_config_target
in $ac_config_targets
31362 case $ac_config_target in
31363 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
31364 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
31365 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
31366 "builtins/Makefile") CONFIG_FILES
="$CONFIG_FILES builtins/Makefile" ;;
31367 "lib/readline/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/readline/Makefile" ;;
31368 "lib/glob/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/glob/Makefile" ;;
31369 "lib/intl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/intl/Makefile" ;;
31370 "lib/malloc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/malloc/Makefile" ;;
31371 "lib/sh/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/sh/Makefile" ;;
31372 "lib/termcap/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/termcap/Makefile" ;;
31373 "lib/tilde/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/tilde/Makefile" ;;
31374 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
31375 "support/Makefile") CONFIG_FILES
="$CONFIG_FILES support/Makefile" ;;
31376 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
31377 "examples/loadables/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/loadables/Makefile" ;;
31378 "examples/loadables/perl/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
31379 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
31381 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31382 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31383 { (exit 1); exit 1; }; };;
31388 # If the user did not use the arguments to specify the items to instantiate,
31389 # then the envvar interface is used. Set only those that are not.
31390 # We use the long form for the default assignment because of an extremely
31391 # bizarre bug on SunOS 4.1.3.
31392 if $ac_need_defaults; then
31393 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
31394 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
31395 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
31398 # Have a temporary directory for convenience. Make it in the build tree
31399 # simply because there is no reason against having it here, and in addition,
31400 # creating and moving files from /tmp can sometimes cause problems.
31401 # Hook for its removal unless debugging.
31402 # Note that there is a small window in which the directory will not be cleaned:
31403 # after its creation but before its name has been assigned to `$tmp'.
31407 trap 'exit_status=$?
31408 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31410 trap '{ (exit 1); exit 1; }' 1 2 13 15
31412 # Create a (secure) tmp directory for tmp files.
31415 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31416 test -n "$tmp" && test -d "$tmp"
31419 tmp
=.
/conf$$
-$RANDOM
31420 (umask 077 && mkdir
"$tmp")
31423 $as_echo "$as_me: cannot create a temporary directory in ." >&2
31424 { (exit 1); exit 1; }
31427 # Set up the scripts for CONFIG_FILES section.
31428 # No need to generate them if there are no CONFIG_FILES.
31429 # This happens for instance with `./config.status config.h'.
31430 if test -n "$CONFIG_FILES"; then
31434 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31435 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31438 ac_cs_awk_cr
=$ac_cr
31441 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31446 echo "cat >conf$$subs.awk <<_ACEOF" &&
31447 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31449 } >conf$$subs.sh ||
31450 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
31451 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
31452 { (exit 1); exit 1; }; }
31453 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31455 for ac_last_try in false false false false false :; do
31456 . ./conf$$subs.sh ||
31457 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
31458 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
31459 { (exit 1); exit 1; }; }
31461 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
31462 if test $ac_delim_n = $ac_delim_num; then
31464 elif $ac_last_try; then
31465 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
31466 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
31467 { (exit 1); exit 1; }; }
31469 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31472 rm -f conf$$subs.sh
31474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31475 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
31479 s/^/S["/; s
/!.
*/"]=/
31489 s/\(.\{148\}\).*/\1/
31491 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
31496 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31503 s/\(.\{148\}\).*/\1/
31505 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
31509 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31514 ' <conf$$subs.awk | sed '
31519 ' >>$CONFIG_STATUS || ac_write_fail=1
31520 rm -f conf$$subs.awk
31521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31523 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
31524 for (key in S) S_is_set[key] = 1
31530 nfields = split(line, field, "@
")
31532 len = length(field[1])
31533 for (i = 2; i < nfields; i++) {
31535 keylen = length(key)
31536 if (S_is_set[key]) {
31538 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31539 len += length(value) + length(field[++i])
31550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31551 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31552 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
31555 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
31556 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
31557 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
31558 { (exit 1); exit 1; }; }
31561 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31562 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
31563 # trailing colons and then remove the whole line if VPATH becomes empty
31564 # (actually we leave an empty line to preserve line numbers).
31565 if test "x
$srcdir" = x.; then
31566 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31567 s/:*\$(srcdir):*/:/
31568 s/:*\${srcdir}:*/:/
31570 s/^\([^=]*=[ ]*\):*/\1/
31576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31577 fi # test -n "$CONFIG_FILES"
31579 # Set up the scripts for CONFIG_HEADERS section.
31580 # No need to generate them if there are no CONFIG_HEADERS.
31581 # This happens for instance with `./config.status Makefile'.
31582 if test -n "$CONFIG_HEADERS"; then
31583 cat >"$tmp/defines.
awk" <<\_ACAWK ||
31587 # Transform confdefs.h into an awk script `defines.awk', embedded as
31588 # here-document in config.status, that substitutes the proper values into
31589 # config.h.in to produce config.h.
31591 # Create a delimiter string that does not exist in confdefs.h, to ease
31592 # handling of long lines.
31594 for ac_last_try in false false :; do
31595 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
31596 if test -z "$ac_t"; then
31598 elif $ac_last_try; then
31599 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
31600 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
31601 { (exit 1); exit 1; }; }
31603 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31607 # For the awk script, D is an array of macro values keyed by name,
31608 # likewise P contains macro parameters if any. Preserve backslash
31609 # newline sequences.
31611 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31613 s/.\{148\}/&'"$ac_delim"'/g
31616 s/^[ ]*#[ ]*define[ ][ ]*/ /
31623 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
31625 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
31629 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
31630 D["\
1"]=" \
3\\\\\\n
"\\/p
31632 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
31637 s/.\{148\}/&'"$ac_delim"'/g
31642 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
31645 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
31647 ' <confdefs.h | sed '
31648 s/'"$ac_delim"'/"\\\
31649 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31652 for (key in D) D_is_set[key] = 1
31655 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31657 split(line, arg, " ")
31658 if (arg[1] == "#") {
31662 defundef
= substr
(arg
[1], 2)
31665 split(mac1
, mac2
, "(") #)
31667 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
31668 if (D_is_set
[macro
]) {
31669 # Preserve the white space surrounding the "#".
31670 print prefix
"define", macro P
[macro
] D
[macro
]
31673 # Replace #undef with comments. This is necessary, for example,
31674 # in the case of _POSIX_SOURCE, which is predefined and required
31675 # on some systems where configure will not decide to define it.
31676 if (defundef
== "undef") {
31677 print
"/*", prefix defundef
, macro
, "*/"
31685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31686 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
31687 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
31688 { (exit 1); exit 1; }; }
31689 fi # test -n "$CONFIG_HEADERS"
31692 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31697 :[FHLC
]) ac_mode
=$ac_tag; continue;;
31699 case $ac_mode$ac_tag in
31701 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
31702 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
31703 { (exit 1); exit 1; }; };;
31704 :[FH
]-) ac_tag
=-:-;;
31705 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
31722 -) ac_f
="$tmp/stdin";;
31723 *) # Look for the file first in the build tree, then in the source tree
31724 # (if the path is not absolute). The absolute path cannot be DOS-style,
31725 # because $ac_f cannot contain `:'.
31729 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
31731 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31732 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31733 { (exit 1); exit 1; }; };;
31735 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31736 ac_file_inputs
="$ac_file_inputs '$ac_f'"
31739 # Let's still pretend it is `configure' which instantiates (i.e., don't
31740 # use $as_me), people would be surprised to read:
31741 # /* config.h. Generated by config.status. */
31742 configure_input
='Generated from '`
31743 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31745 if test x
"$ac_file" != x-
; then
31746 configure_input
="$ac_file. $configure_input"
31747 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
31748 $as_echo "$as_me: creating $ac_file" >&6;}
31750 # Neutralize special characters interpreted by sed in replacement strings.
31751 case $configure_input in #(
31752 *\
&* |
*\|
* |
*\\* )
31753 ac_sed_conf_input
=`$as_echo "$configure_input" |
31754 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31755 *) ac_sed_conf_input
=$configure_input;;
31759 *:-:* |
*:-) cat >"$tmp/stdin" \
31760 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31761 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31762 { (exit 1); exit 1; }; } ;;
31767 ac_dir
=`$as_dirname -- "$ac_file" ||
31768 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31769 X"$ac_file" : 'X\(//\)[^/]' \| \
31770 X"$ac_file" : 'X\(//\)$' \| \
31771 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31772 $as_echo X"$ac_file" |
31773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31777 /^X\(\/\/\)[^/].*/{
31792 -*) as_dir
=.
/$as_dir;;
31794 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
31798 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31799 *) as_qdir
=$as_dir;;
31801 as_dirs
="'$as_qdir' $as_dirs"
31802 as_dir
=`$as_dirname -- "$as_dir" ||
31803 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31804 X"$as_dir" : 'X\(//\)[^/]' \| \
31805 X"$as_dir" : 'X\(//\)$' \| \
31806 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31807 $as_echo X"$as_dir" |
31808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31812 /^X\(\/\/\)[^/].*/{
31825 test -d "$as_dir" && break
31827 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
31828 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31829 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31830 { (exit 1); exit 1; }; }; }
31834 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31836 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31837 # A ".." for each directory in $ac_dir_suffix.
31838 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31839 case $ac_top_builddir_sub in
31840 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31841 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31844 ac_abs_top_builddir
=$ac_pwd
31845 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31846 # for backward compatibility:
31847 ac_top_builddir
=$ac_top_build_prefix
31850 .
) # We are building in place.
31852 ac_top_srcdir
=$ac_top_builddir_sub
31853 ac_abs_top_srcdir
=$ac_pwd ;;
31854 [\\/]* | ?
:[\\/]* ) # Absolute name.
31855 ac_srcdir
=$srcdir$ac_dir_suffix;
31856 ac_top_srcdir
=$srcdir
31857 ac_abs_top_srcdir
=$srcdir ;;
31858 *) # Relative name.
31859 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31860 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31861 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31863 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31873 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
31874 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
31878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31879 # If the template does not know about datarootdir, expand it.
31880 # FIXME: This hack should be removed a few years after 2.60.
31881 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31894 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31895 *datarootdir
*) ac_datarootdir_seen
=yes;;
31896 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31897 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31898 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31901 ac_datarootdir_hack='
31902 s&@datadir@&$datadir&g
31903 s&@docdir@&$docdir&g
31904 s&@infodir@&$infodir&g
31905 s&@localedir@&$localedir&g
31906 s&@mandir@&$mandir&g
31907 s&\\\${datarootdir}&$datarootdir&g' ;;
31911 # Neutralize VPATH when `$srcdir' = `.'.
31912 # Shell code in configure.ac might set extrasub.
31913 # FIXME: do we really want to maintain this feature?
31914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31915 ac_sed_extra="$ac_vpsub
31918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31920 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31921 s|@configure_input@|
$ac_sed_conf_input|
;t t
31922 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31923 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
31924 s
&@srcdir@
&$ac_srcdir&;t t
31925 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
31926 s
&@top_srcdir@
&$ac_top_srcdir&;t t
31927 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
31928 s
&@builddir@
&$ac_builddir&;t t
31929 s
&@abs_builddir@
&$ac_abs_builddir&;t t
31930 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
31931 s
&@INSTALL@
&$ac_INSTALL&;t t
31932 $ac_datarootdir_hack
31934 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
31935 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
31936 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
31937 { (exit 1); exit 1; }; }
31939 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31940 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
31941 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
31942 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
31943 which seems to be undefined. Please make sure it is defined." >&5
31944 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
31945 which seems to be undefined. Please make sure it is defined." >&2;}
31949 -) cat "$tmp/out" && rm -f "$tmp/out";;
31950 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31952 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31953 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31954 { (exit 1); exit 1; }; }
31960 if test x"$ac_file" != x-; then
31962 $as_echo "/* $configure_input */" \
31963 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31964 } >"$tmp/config.h" \
31965 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31966 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31967 { (exit 1); exit 1; }; }
31968 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31969 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31970 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31973 mv "$tmp/config.h" "$ac_file" \
31974 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31975 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31976 { (exit 1); exit 1; }; }
31979 $as_echo "/* $configure_input */" \
31980 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31981 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31982 $as_echo "$as_me: error: could not create -" >&2;}
31983 { (exit 1); exit 1; }; }
31987 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31988 $as_echo "$as_me: executing $ac_file commands" >&6;}
31993 case $ac_file$ac_mode in
31995 for ac_file in $CONFIG_FILES; do
31996 # Support "outfile[:infile[:infile...]]"
31998 *:*) ac_file=`echo "$ac_file"|sed 's
%:.
*%%'` ;;
32000 # PO directories have a Makefile.in generated from Makefile.in.in.
32001 case "$ac_file" in */Makefile.in)
32002 # Adjust a relative srcdir.
32003 ac_dir=`echo "$ac_file"|sed 's
%/[^
/][^
/]*$
%%'`
32004 ac_dir_suffix="/`echo "$ac_dir"|sed 's
%^\.
/%%'`"
32005 ac_dots=`echo "$ac_dir_suffix"|sed 's
%/[^
/]*%..
/%g
'`
32006 # In autoconf-2.13 it is called $ac_given_srcdir.
32007 # In autoconf-2.50 it is called $srcdir.
32008 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32009 case "$ac_given_srcdir" in
32010 .) top_srcdir=`echo $ac_dots|sed 's
%/$
%%'` ;;
32011 /*) top_srcdir="$ac_given_srcdir" ;;
32012 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32014 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32015 rm -f "$ac_dir/POTFILES"
32016 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32017 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32018 POMAKEFILEDEPS="POTFILES.in"
32019 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
32020 # on $ac_dir but don't depend on user-specified configuration
32022 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32023 # The LINGUAS file contains the set of available languages.
32024 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32025 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
32027 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32028 # Hide the ALL_LINGUAS assigment from automake.
32029 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32030 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
32032 # The set of available languages was given in configure.in.
32033 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32035 case "$ac_given_srcdir" in
32037 *) srcdirpre
='$(srcdir)/' ;;
32043 for lang
in $ALL_LINGUAS; do
32044 POFILES
="$POFILES $srcdirpre$lang.po"
32045 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
32046 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
32047 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
32049 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32050 # environment variable.
32052 if test -n "$ALL_LINGUAS"; then
32053 for presentlang
in $ALL_LINGUAS; do
32055 if test "%UNSET%" != "$LINGUAS"; then
32056 desiredlanguages
="$LINGUAS"
32058 desiredlanguages
="$ALL_LINGUAS"
32060 for desiredlang
in $desiredlanguages; do
32061 # Use the presentlang catalog if desiredlang is
32062 # a. equal to presentlang, or
32063 # b. a variant of presentlang (because in this case,
32064 # presentlang can be used as a fallback for messages
32065 # which are not translated in the desiredlang catalog).
32066 case "$desiredlang" in
32067 "$presentlang"*) useit
=yes;;
32070 if test $useit = yes; then
32071 INST_LINGUAS
="$INST_LINGUAS $presentlang"
32076 if test -n "$INST_LINGUAS"; then
32077 for lang
in $INST_LINGUAS; do
32078 CATALOGS
="$CATALOGS $lang.gmo"
32081 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
32082 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"
32083 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
32084 if test -f "$f"; then
32086 *.orig |
*.bak |
*~
) ;;
32087 *) cat "$f" >> "$ac_dir/Makefile" ;;
32096 # Makefile uses this timestamp file to record whether config.h is up to date.
32097 echo timestamp
> stamp-h
32104 { (exit 0); exit 0; }
32106 chmod +x
$CONFIG_STATUS
32107 ac_clean_files
=$ac_clean_files_save
32109 test $ac_write_fail = 0 ||
32110 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
32111 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
32112 { (exit 1); exit 1; }; }
32115 # configure is writing to config.log, and then calls config.status.
32116 # config.status does its own redirection, appending to config.log.
32117 # Unfortunately, on DOS this fails, as config.log is still kept open
32118 # by configure, so config.status won't be able to write to it; its
32119 # output is simply discarded. So we exec the FD to /dev/null,
32120 # effectively closing config.log, so it can be properly (re)opened and
32121 # appended to by config.status. When coming back to configure, we
32122 # need to make the FD available again.
32123 if test "$no_create" != yes; then
32125 ac_config_status_args
=
32126 test "$silent" = yes &&
32127 ac_config_status_args
="$ac_config_status_args --quiet"
32129 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
32131 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32132 # would make configure fail if this is the last instruction.
32133 $ac_cs_success ||
{ (exit 1); exit 1; }
32135 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
32136 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32137 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}