2 # From configure.in for Bash 4.2, version 4.032.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 for bash 4.2-devel.
6 # Report bugs to <bug-bash@gnu.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE
=1; export DUALCASE
# for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix
*) set -o posix
;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits
='0123456789'
41 as_cr_alnum
=$as_cr_Letters$as_cr_digits
46 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
56 as_echo_n='/usr
/ucb
/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
69 as_echo_n='sh
-c $as_echo_n_body as_echo
'
72 as_echo='sh
-c $as_echo_body as_echo
'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
84 # Support unset when possible.
85 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
93 # We need space, tab and new line, in precisely that order. Quoting is
94 # there to prevent editors from complaining about space-tab.
95 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
96 # splitting by setting IFS to empty value.)
99 # Find who we are. Look in the path if we contain no directory separator.
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
113 # We did not find ourselves, most probably we were run as `sh COMMAND'
114 # in which case we are not to be found in the path.
115 if test "x$as_myself" = x
; then
118 if test ! -f "$as_myself"; then
119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 { (exit 1); exit 1; }
123 # Work around bugs in pre-3.0 UWIN ksh.
124 for as_var
in ENV MAIL MAILPATH
125 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
137 # Required to use basename.
138 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
145 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
152 # Name of the executable.
153 as_me
=`$as_basename -- "$0" ||
154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155 X"$0" : 'X\(//\)$' \| \
156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
158 sed '/^.*\/\([^/][^/]*\)\/*$/{
176 if test "x$CONFIG_SHELL" = x
; then
177 if (eval ":") 2>/dev
/null
; then
183 if test $as_have_required = yes && (eval ":
193 as_func_ret_success () {
196 as_func_ret_failure () {
201 if as_func_success; then
205 echo as_func_success failed.
208 if as_func_failure; then
210 echo as_func_failure succeeded.
213 if as_func_ret_success; then
217 echo as_func_ret_success failed.
220 if as_func_ret_failure; then
222 echo as_func_ret_failure succeeded.
225 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
229 echo positional parameters were not saved.
232 test \$exitcode = 0) || { (exit 1); exit 1; }
237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239 ") 2> /dev
/null
; then
243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
244 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
247 test -z "$as_dir" && as_dir
=.
250 for as_base
in sh bash ksh sh5
; do
251 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
258 for as_shell
in $as_candidate_shells $SHELL; do
259 # Try only shells that exist, to save several forks.
260 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
261 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix
*) set -o posix
;;
280 CONFIG_SHELL
=$as_shell
282 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
283 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287 # is contrary to our usage. Disable this feature.
288 alias -g '${1+"$@"}'='"$@"'
291 case `(set -o) 2>/dev/null` in
292 *posix
*) set -o posix
;;
308 as_func_ret_success
() {
311 as_func_ret_failure
() {
316 if as_func_success
; then
320 echo as_func_success failed.
323 if as_func_failure
; then
325 echo as_func_failure succeeded.
328 if as_func_ret_success
; then
332 echo as_func_ret_success failed.
335 if as_func_ret_failure
; then
337 echo as_func_ret_failure succeeded.
340 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
344 echo positional parameters were not saved.
347 test $exitcode = 0) ||
{ (exit 1); exit 1; }
352 test "x$as_lineno_1" != "x$as_lineno_2" &&
353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
364 if test "x$CONFIG_SHELL" != x
; then
365 for as_var
in BASH_ENV ENV
366 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
373 if test $as_have_required = no
; then
374 echo This
script requires a shell
more modern than all the
375 echo shells that I found on your system. Please
install a
376 echo modern shell
, or manually run the
script under such a
377 echo shell
if you
do have one.
378 { (exit 1); exit 1; }
388 (eval "as_func_return () {
397 as_func_ret_success () {
400 as_func_ret_failure () {
405 if as_func_success; then
409 echo as_func_success failed.
412 if as_func_failure; then
414 echo as_func_failure succeeded.
417 if as_func_ret_success; then
421 echo as_func_ret_success failed.
424 if as_func_ret_failure; then
426 echo as_func_ret_failure succeeded.
429 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
433 echo positional parameters were not saved.
436 test \$exitcode = 0") ||
{
437 echo No shell found that supports shell functions.
438 echo Please tell bug-autoconf@gnu.org about your system
,
439 echo including any error possibly output before this message.
440 echo This can
help us improve future autoconf versions.
441 echo Configuration will now proceed without shell functions.
448 test "x$as_lineno_1" != "x$as_lineno_2" &&
449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452 # uniformly replaced by the line number. The first 'sed' inserts a
453 # line-number line after each line using $LINENO; the second 'sed'
454 # does the real work. The second script uses 'N' to pair each
455 # line-number line with the line containing $LINENO, and appends
456 # trailing '-' during substitution so that $LINENO is not a special
458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
459 # scripts with optimization help from Paolo Bonzini. Blame Lee
460 # E. McMahon (1931-1989) for sed's syntax. :-)
472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
476 chmod +x
"$as_me.lineno" ||
477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
478 { (exit 1); exit 1; }; }
480 # Don't try to exec as it changes $[0], causing all sort of problems
481 # (the dirname of $[0] is not the place where we might find the
482 # original and so on. Autoconf is especially sensitive to this).
484 # Exit status is that of the last command.
489 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
495 ECHO_C
= ECHO_N
= ECHO_T
=
499 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
505 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
512 rm -f conf$$ conf$$.exe conf$$.
file
513 if test -d conf$$.dir
; then
514 rm -f conf$$.dir
/conf$$.
file
517 mkdir conf$$.dir
2>/dev
/null
519 if (echo >conf$$.
file) 2>/dev
/null
; then
520 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -p'.
526 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
528 elif ln conf$$.
file conf$$
2>/dev
/null
; then
536 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
537 rmdir conf$$.dir
2>/dev
/null
539 if mkdir
-p .
2>/dev
/null
; then
542 test -d .
/-p && rmdir .
/-p
546 if test -x / >/dev
/null
2>&1; then
549 if ls -dL / >/dev
/null
2>&1; then
556 if test -d "$1"; then
562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563 ???[sx]*):;;*)false;;esac;fi
567 as_executable_p
=$as_test_x
569 # Sed expression to map a string onto a valid CPP name.
570 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572 # Sed expression to map a string onto a valid variable name.
573 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 exec 7<&0 </dev
/null
6>&1
580 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
581 # so uname gets run too.
582 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
587 ac_default_prefix
=/usr
/local
589 ac_config_libobj_dir
=.
595 SHELL
=${CONFIG_SHELL-/bin/sh}
597 # Identity of this package.
599 PACKAGE_TARNAME
='bash'
600 PACKAGE_VERSION
='4.2-devel'
601 PACKAGE_STRING
='bash 4.2-devel'
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.2-devel 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.2-devel:";;
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.2-devel
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.2-devel, 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
11508 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
11509 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
11510 stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h \
11513 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11515 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11516 $as_echo_n "checking for $ac_header... " >&6; }
11517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11518 $as_echo_n "(cached) " >&6
11520 ac_res=`eval 'as_val=${'$as_ac_Header'}
11521 $as_echo "$as_val"'`
11522 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11523 $as_echo "$ac_res" >&6; }
11525 # Is the header compilable?
11526 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11527 $as_echo_n "checking $ac_header usability... " >&6; }
11528 cat >conftest.$ac_ext <<_ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11534 $ac_includes_default
11535 #include <$ac_header>
11537 rm -f conftest.$ac_objext
11538 if { (ac_try="$ac_compile"
11539 case "(($ac_try" in
11540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11541 *) ac_try_echo
=$ac_try;;
11543 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11544 $as_echo "$ac_try_echo") >&5
11545 (eval "$ac_compile") 2>conftest.er1
11547 grep -v '^ *+' conftest.er1
>conftest.err
11549 cat conftest.err
>&5
11550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } && {
11552 test -z "$ac_c_werror_flag" ||
11553 test ! -s conftest.err
11554 } && test -s conftest.
$ac_objext; then
11555 ac_header_compiler
=yes
11557 $as_echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.
$ac_ext >&5
11560 ac_header_compiler
=no
11563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11564 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11565 $as_echo "$ac_header_compiler" >&6; }
11567 # Is the header present?
11568 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11569 $as_echo_n "checking $ac_header presence... " >&6; }
11570 cat >conftest.
$ac_ext <<_ACEOF
11573 cat confdefs.h
>>conftest.
$ac_ext
11574 cat >>conftest.
$ac_ext <<_ACEOF
11575 /* end confdefs.h. */
11576 #include <$ac_header>
11578 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11579 case "(($ac_try" in
11580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11581 *) ac_try_echo=$ac_try;;
11583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11584 $as_echo "$ac_try_echo") >&5
11585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11587 grep -v '^ *+' conftest.er1 >conftest.err
11589 cat conftest.err >&5
11590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } >/dev/null && {
11592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11593 test ! -s conftest.err
11595 ac_header_preproc=yes
11597 $as_echo "$as_me: failed program was:" >&5
11598 sed 's/^/| /' conftest.$ac_ext >&5
11600 ac_header_preproc=no
11603 rm -f conftest.err conftest.$ac_ext
11604 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11605 $as_echo "$ac_header_preproc" >&6; }
11607 # So? What about this header?
11608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11611 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11613 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11614 ac_header_preproc=yes
11617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11618 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11620 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11622 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11624 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11626 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11628 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11630 ## ------------------------------- ##
11631 ## Report this to bug-bash@gnu.org ##
11632 ## ------------------------------- ##
11634 ) | sed "s/^/$as_me: WARNING: /" >&2
11637 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11638 $as_echo_n "checking for $ac_header... " >&6; }
11639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11640 $as_echo_n "(cached) " >&6
11642 eval "$as_ac_Header=\$ac_header_preproc"
11644 ac_res=`eval 'as_val=${'$as_ac_Header'}
11645 $as_echo "$as_val"'`
11646 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11647 $as_echo "$ac_res" >&6; }
11650 as_val=`eval 'as_val=${'$as_ac_Header'}
11651 $as_echo "$as_val"'`
11652 if test "x$as_val" = x""yes; then
11653 cat >>confdefs.h <<_ACEOF
11654 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11673 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
11674 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
11675 sys/time.h sys/times.h sys/types.h sys/wait.h
11677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11679 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11680 $as_echo_n "checking for $ac_header... " >&6; }
11681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11682 $as_echo_n "(cached) " >&6
11684 ac_res=`eval 'as_val=${'$as_ac_Header'}
11685 $as_echo "$as_val"'`
11686 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11687 $as_echo "$ac_res" >&6; }
11689 # Is the header compilable?
11690 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11691 $as_echo_n "checking $ac_header usability... " >&6; }
11692 cat >conftest.$ac_ext <<_ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11698 $ac_includes_default
11699 #include <$ac_header>
11701 rm -f conftest.$ac_objext
11702 if { (ac_try="$ac_compile"
11703 case "(($ac_try" in
11704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11705 *) ac_try_echo
=$ac_try;;
11707 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11708 $as_echo "$ac_try_echo") >&5
11709 (eval "$ac_compile") 2>conftest.er1
11711 grep -v '^ *+' conftest.er1
>conftest.err
11713 cat conftest.err
>&5
11714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } && {
11716 test -z "$ac_c_werror_flag" ||
11717 test ! -s conftest.err
11718 } && test -s conftest.
$ac_objext; then
11719 ac_header_compiler
=yes
11721 $as_echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.
$ac_ext >&5
11724 ac_header_compiler
=no
11727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11728 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11729 $as_echo "$ac_header_compiler" >&6; }
11731 # Is the header present?
11732 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11733 $as_echo_n "checking $ac_header presence... " >&6; }
11734 cat >conftest.
$ac_ext <<_ACEOF
11737 cat confdefs.h
>>conftest.
$ac_ext
11738 cat >>conftest.
$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11740 #include <$ac_header>
11742 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11743 case "(($ac_try" in
11744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11745 *) ac_try_echo=$ac_try;;
11747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11748 $as_echo "$ac_try_echo") >&5
11749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11751 grep -v '^ *+' conftest.er1 >conftest.err
11753 cat conftest.err >&5
11754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } >/dev/null && {
11756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11757 test ! -s conftest.err
11759 ac_header_preproc=yes
11761 $as_echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11764 ac_header_preproc=no
11767 rm -f conftest.err conftest.$ac_ext
11768 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11769 $as_echo "$ac_header_preproc" >&6; }
11771 # So? What about this header?
11772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11775 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11777 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11778 ac_header_preproc=yes
11781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11782 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11784 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11786 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11788 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11790 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11792 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11794 ## ------------------------------- ##
11795 ## Report this to bug-bash@gnu.org ##
11796 ## ------------------------------- ##
11798 ) | sed "s/^/$as_me: WARNING: /" >&2
11801 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11802 $as_echo_n "checking for $ac_header... " >&6; }
11803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11804 $as_echo_n "(cached) " >&6
11806 eval "$as_ac_Header=\$ac_header_preproc"
11808 ac_res=`eval 'as_val=${'$as_ac_Header'}
11809 $as_echo "$as_val"'`
11810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11811 $as_echo "$ac_res" >&6; }
11814 as_val=`eval 'as_val=${'$as_ac_Header'}
11815 $as_echo "$as_val"'`
11816 if test "x$as_val" = x""yes; then
11817 cat >>confdefs.h <<_ACEOF
11818 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11827 for ac_header in netinet/in.h arpa/inet.h
11829 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11831 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11832 $as_echo_n "checking for $ac_header... " >&6; }
11833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11834 $as_echo_n "(cached) " >&6
11836 ac_res=`eval 'as_val=${'$as_ac_Header'}
11837 $as_echo "$as_val"'`
11838 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11839 $as_echo "$ac_res" >&6; }
11841 # Is the header compilable?
11842 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11843 $as_echo_n "checking $ac_header usability... " >&6; }
11844 cat >conftest.$ac_ext <<_ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h. */
11850 $ac_includes_default
11851 #include <$ac_header>
11853 rm -f conftest.$ac_objext
11854 if { (ac_try="$ac_compile"
11855 case "(($ac_try" in
11856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11857 *) ac_try_echo
=$ac_try;;
11859 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11860 $as_echo "$ac_try_echo") >&5
11861 (eval "$ac_compile") 2>conftest.er1
11863 grep -v '^ *+' conftest.er1
>conftest.err
11865 cat conftest.err
>&5
11866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } && {
11868 test -z "$ac_c_werror_flag" ||
11869 test ! -s conftest.err
11870 } && test -s conftest.
$ac_objext; then
11871 ac_header_compiler
=yes
11873 $as_echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.
$ac_ext >&5
11876 ac_header_compiler
=no
11879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11880 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11881 $as_echo "$ac_header_compiler" >&6; }
11883 # Is the header present?
11884 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11885 $as_echo_n "checking $ac_header presence... " >&6; }
11886 cat >conftest.
$ac_ext <<_ACEOF
11889 cat confdefs.h
>>conftest.
$ac_ext
11890 cat >>conftest.
$ac_ext <<_ACEOF
11891 /* end confdefs.h. */
11892 #include <$ac_header>
11894 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11895 case "(($ac_try" in
11896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11897 *) ac_try_echo=$ac_try;;
11899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11900 $as_echo "$ac_try_echo") >&5
11901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11903 grep -v '^ *+' conftest.er1 >conftest.err
11905 cat conftest.err >&5
11906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } >/dev/null && {
11908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11909 test ! -s conftest.err
11911 ac_header_preproc=yes
11913 $as_echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11916 ac_header_preproc=no
11919 rm -f conftest.err conftest.$ac_ext
11920 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11921 $as_echo "$ac_header_preproc" >&6; }
11923 # So? What about this header?
11924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11927 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11929 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11930 ac_header_preproc=yes
11933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11934 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11936 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11938 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11940 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11942 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11944 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11946 ## ------------------------------- ##
11947 ## Report this to bug-bash@gnu.org ##
11948 ## ------------------------------- ##
11950 ) | sed "s/^/$as_me: WARNING: /" >&2
11953 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11954 $as_echo_n "checking for $ac_header... " >&6; }
11955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11956 $as_echo_n "(cached) " >&6
11958 eval "$as_ac_Header=\$ac_header_preproc"
11960 ac_res=`eval 'as_val=${'$as_ac_Header'}
11961 $as_echo "$as_val"'`
11962 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11963 $as_echo "$ac_res" >&6; }
11966 as_val=`eval 'as_val=${'$as_ac_Header'}
11967 $as_echo "$as_val"'`
11968 if test "x$as_val" = x""yes; then
11969 cat >>confdefs.h <<_ACEOF
11970 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11978 { $as_echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
11979 $as_echo_n "checking for sys/ptem.h... " >&6; }
11980 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
11981 $as_echo_n "(cached) " >&6
11983 cat >conftest.$ac_ext <<_ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11990 #if HAVE_SYS_STREAM_H
11991 # include <sys/stream.h>
11995 #include <sys/ptem.h>
11997 rm -f conftest.$ac_objext
11998 if { (ac_try="$ac_compile"
11999 case "(($ac_try" in
12000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12001 *) ac_try_echo
=$ac_try;;
12003 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12004 $as_echo "$ac_try_echo") >&5
12005 (eval "$ac_compile") 2>conftest.er1
12007 grep -v '^ *+' conftest.er1
>conftest.err
12009 cat conftest.err
>&5
12010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } && {
12012 test -z "$ac_c_werror_flag" ||
12013 test ! -s conftest.err
12014 } && test -s conftest.
$ac_objext; then
12015 ac_cv_header_sys_ptem_h
=yes
12017 $as_echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.
$ac_ext >&5
12020 ac_cv_header_sys_ptem_h
=no
12023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12025 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
12026 $as_echo "$ac_cv_header_sys_ptem_h" >&6; }
12030 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12031 # for constant arguments. Useless!
12032 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
12033 $as_echo_n "checking for working alloca.h... " >&6; }
12034 if test "${ac_cv_working_alloca_h+set}" = set; then
12035 $as_echo_n "(cached) " >&6
12037 cat >conftest.
$ac_ext <<_ACEOF
12040 cat confdefs.h
>>conftest.
$ac_ext
12041 cat >>conftest.
$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12043 #include <alloca.h>
12047 char *p = (char *) alloca (2 * sizeof (int));
12053 rm -f conftest.
$ac_objext conftest
$ac_exeext
12054 if { (ac_try
="$ac_link"
12055 case "(($ac_try" in
12056 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12060 $as_echo "$ac_try_echo") >&5
12061 (eval "$ac_link") 2>conftest.er1
12063 grep -v '^ *+' conftest.er1 >conftest.err
12065 cat conftest.err >&5
12066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } && {
12068 test -z "$ac_c_werror_flag" ||
12069 test ! -s conftest.err
12070 } && test -s conftest$ac_exeext && {
12071 test "$cross_compiling" = yes ||
12072 $as_test_x conftest$ac_exeext
12074 ac_cv_working_alloca_h=yes
12076 $as_echo "$as_me: failed program was:" >&5
12077 sed 's/^/| /' conftest.$ac_ext >&5
12079 ac_cv_working_alloca_h=no
12082 rm -rf conftest.dSYM
12083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12084 conftest$ac_exeext conftest.$ac_ext
12086 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12087 $as_echo "$ac_cv_working_alloca_h" >&6; }
12088 if test $ac_cv_working_alloca_h = yes; then
12090 cat >>confdefs.h <<\_ACEOF
12091 #define HAVE_ALLOCA_H 1
12096 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
12097 $as_echo_n "checking for alloca... " >&6; }
12098 if test "${ac_cv_func_alloca_works+set}" = set; then
12099 $as_echo_n "(cached) " >&6
12101 cat >conftest.$ac_ext <<_ACEOF
12104 cat confdefs.h >>conftest.$ac_ext
12105 cat >>conftest.$ac_ext <<_ACEOF
12106 /* end confdefs.h. */
12108 # define alloca __builtin_alloca
12111 # include <malloc.h>
12112 # define alloca _alloca
12114 # ifdef HAVE_ALLOCA_H
12115 # include <alloca.h>
12120 # ifndef alloca /* predefined by HP cc +Olibcalls */
12131 char *p = (char *) alloca (1);
12137 rm -f conftest.$ac_objext conftest$ac_exeext
12138 if { (ac_try="$ac_link"
12139 case "(($ac_try" in
12140 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12141 *) ac_try_echo
=$ac_try;;
12143 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12144 $as_echo "$ac_try_echo") >&5
12145 (eval "$ac_link") 2>conftest.er1
12147 grep -v '^ *+' conftest.er1
>conftest.err
12149 cat conftest.err
>&5
12150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } && {
12152 test -z "$ac_c_werror_flag" ||
12153 test ! -s conftest.err
12154 } && test -s conftest
$ac_exeext && {
12155 test "$cross_compiling" = yes ||
12156 $as_test_x conftest
$ac_exeext
12158 ac_cv_func_alloca_works
=yes
12160 $as_echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.
$ac_ext >&5
12163 ac_cv_func_alloca_works
=no
12166 rm -rf conftest.dSYM
12167 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12168 conftest
$ac_exeext conftest.
$ac_ext
12170 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12171 $as_echo "$ac_cv_func_alloca_works" >&6; }
12173 if test $ac_cv_func_alloca_works = yes; then
12175 cat >>confdefs.h
<<\_ACEOF
12176 #define HAVE_ALLOCA 1
12180 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12181 # that cause trouble. Some versions do not even contain alloca or
12182 # contain a buggy version. If you still want to use their alloca,
12183 # use ar to extract alloca.o from them instead of compiling alloca.c.
12185 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12187 cat >>confdefs.h
<<\_ACEOF
12192 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12193 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12194 if test "${ac_cv_os_cray+set}" = set; then
12195 $as_echo_n "(cached) " >&6
12197 cat >conftest.
$ac_ext <<_ACEOF
12200 cat confdefs.h
>>conftest.
$ac_ext
12201 cat >>conftest.
$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12203 #if defined CRAY && ! defined CRAY2
12210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12211 $EGREP "webecray" >/dev
/null
2>&1; then
12219 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12220 $as_echo "$ac_cv_os_cray" >&6; }
12221 if test $ac_cv_os_cray = yes; then
12222 for ac_func
in _getb67 GETB67 getb67
; do
12223 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12224 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12225 $as_echo_n "checking for $ac_func... " >&6; }
12226 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12227 $as_echo_n "(cached) " >&6
12229 cat >conftest.
$ac_ext <<_ACEOF
12232 cat confdefs.h
>>conftest.
$ac_ext
12233 cat >>conftest.
$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12237 #define $ac_func innocuous_$ac_func
12239 /* System header to define __stub macros and hopefully few prototypes,
12240 which can conflict with char $ac_func (); below.
12241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12242 <limits.h> exists even on freestanding compilers. */
12245 # include <limits.h>
12247 # include <assert.h>
12252 /* Override any GCC internal prototype to avoid an error.
12253 Use char because int might match the return type of a GCC
12254 builtin and then its argument prototype would still apply. */
12259 /* The GNU C library defines this for functions which it implements
12260 to always fail with ENOSYS. Some functions are actually named
12261 something starting with __ and the normal name is an alias. */
12262 #if defined __stub_$ac_func || defined __stub___$ac_func
12269 return $ac_func ();
12274 rm -f conftest.
$ac_objext conftest
$ac_exeext
12275 if { (ac_try
="$ac_link"
12276 case "(($ac_try" in
12277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12281 $as_echo "$ac_try_echo") >&5
12282 (eval "$ac_link") 2>conftest.er1
12284 grep -v '^ *+' conftest.er1 >conftest.err
12286 cat conftest.err >&5
12287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } && {
12289 test -z "$ac_c_werror_flag" ||
12290 test ! -s conftest.err
12291 } && test -s conftest$ac_exeext && {
12292 test "$cross_compiling" = yes ||
12293 $as_test_x conftest$ac_exeext
12295 eval "$as_ac_var=yes"
12297 $as_echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12300 eval "$as_ac_var=no"
12303 rm -rf conftest.dSYM
12304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12305 conftest$ac_exeext conftest.$ac_ext
12307 ac_res=`eval 'as_val=${'$as_ac_var'}
12308 $as_echo "$as_val"'`
12309 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12310 $as_echo "$ac_res" >&6; }
12311 as_val=`eval 'as_val=${'$as_ac_var'}
12312 $as_echo "$as_val"'`
12313 if test "x$as_val" = x""yes; then
12315 cat >>confdefs.h <<_ACEOF
12316 #define CRAY_STACKSEG_END $ac_func
12325 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12326 $as_echo_n "checking stack direction for C alloca... " >&6; }
12327 if test "${ac_cv_c_stack_direction+set}" = set; then
12328 $as_echo_n "(cached) " >&6
12330 if test "$cross_compiling" = yes; then
12331 ac_cv_c_stack_direction=0
12333 cat >conftest.$ac_ext <<_ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12339 $ac_includes_default
12341 find_stack_direction ()
12343 static char *addr = 0;
12348 return find_stack_direction ();
12351 return (&dummy > addr) ? 1 : -1;
12357 return find_stack_direction () < 0;
12360 rm -f conftest$ac_exeext
12361 if { (ac_try="$ac_link"
12362 case "(($ac_try" in
12363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12364 *) ac_try_echo
=$ac_try;;
12366 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12367 $as_echo "$ac_try_echo") >&5
12368 (eval "$ac_link") 2>&5
12370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12372 { (case "(($ac_try" in
12373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12374 *) ac_try_echo=$ac_try;;
12376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12377 $as_echo "$ac_try_echo") >&5
12378 (eval "$ac_try") 2>&5
12380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; }; then
12382 ac_cv_c_stack_direction=1
12384 $as_echo "$as_me: program exited with status $ac_status" >&5
12385 $as_echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12388 ( exit $ac_status )
12389 ac_cv_c_stack_direction=-1
12391 rm -rf conftest.dSYM
12392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12397 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12398 $as_echo "$ac_cv_c_stack_direction" >&6; }
12400 cat >>confdefs.h <<_ACEOF
12401 #define STACK_DIRECTION $ac_cv_c_stack_direction
12407 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
12408 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12409 if test "${ac_cv_func_getpgrp_void+set}" = set; then
12410 $as_echo_n "(cached) " >&6
12412 # Use it with a single arg.
12413 cat >conftest.$ac_ext <<_ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12419 $ac_includes_default
12428 rm -f conftest.$ac_objext
12429 if { (ac_try="$ac_compile"
12430 case "(($ac_try" in
12431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12432 *) ac_try_echo
=$ac_try;;
12434 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12435 $as_echo "$ac_try_echo") >&5
12436 (eval "$ac_compile") 2>conftest.er1
12438 grep -v '^ *+' conftest.er1
>conftest.err
12440 cat conftest.err
>&5
12441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } && {
12443 test -z "$ac_c_werror_flag" ||
12444 test ! -s conftest.err
12445 } && test -s conftest.
$ac_objext; then
12446 ac_cv_func_getpgrp_void
=no
12448 $as_echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.
$ac_ext >&5
12451 ac_cv_func_getpgrp_void
=yes
12454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12457 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
12458 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12459 if test $ac_cv_func_getpgrp_void = yes; then
12461 cat >>confdefs.h
<<\_ACEOF
12462 #define GETPGRP_VOID 1
12467 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12468 $as_echo_n "(cached) " >&6
12470 ac_cv_func_setvbuf_reversed
=no
12475 for ac_func
in vprintf
12477 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12478 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12479 $as_echo_n "checking for $ac_func... " >&6; }
12480 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12481 $as_echo_n "(cached) " >&6
12483 cat >conftest.
$ac_ext <<_ACEOF
12486 cat confdefs.h
>>conftest.
$ac_ext
12487 cat >>conftest.
$ac_ext <<_ACEOF
12488 /* end confdefs.h. */
12489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12491 #define $ac_func innocuous_$ac_func
12493 /* System header to define __stub macros and hopefully few prototypes,
12494 which can conflict with char $ac_func (); below.
12495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12496 <limits.h> exists even on freestanding compilers. */
12499 # include <limits.h>
12501 # include <assert.h>
12506 /* Override any GCC internal prototype to avoid an error.
12507 Use char because int might match the return type of a GCC
12508 builtin and then its argument prototype would still apply. */
12513 /* The GNU C library defines this for functions which it implements
12514 to always fail with ENOSYS. Some functions are actually named
12515 something starting with __ and the normal name is an alias. */
12516 #if defined __stub_$ac_func || defined __stub___$ac_func
12523 return $ac_func ();
12528 rm -f conftest.
$ac_objext conftest
$ac_exeext
12529 if { (ac_try
="$ac_link"
12530 case "(($ac_try" in
12531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12535 $as_echo "$ac_try_echo") >&5
12536 (eval "$ac_link") 2>conftest.er1
12538 grep -v '^ *+' conftest.er1 >conftest.err
12540 cat conftest.err >&5
12541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } && {
12543 test -z "$ac_c_werror_flag" ||
12544 test ! -s conftest.err
12545 } && test -s conftest$ac_exeext && {
12546 test "$cross_compiling" = yes ||
12547 $as_test_x conftest$ac_exeext
12549 eval "$as_ac_var=yes"
12551 $as_echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12554 eval "$as_ac_var=no"
12557 rm -rf conftest.dSYM
12558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12559 conftest$ac_exeext conftest.$ac_ext
12561 ac_res=`eval 'as_val=${'$as_ac_var'}
12562 $as_echo "$as_val"'`
12563 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12564 $as_echo "$ac_res" >&6; }
12565 as_val=`eval 'as_val=${'$as_ac_var'}
12566 $as_echo "$as_val"'`
12567 if test "x$as_val" = x""yes; then
12568 cat >>confdefs.h <<_ACEOF
12569 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12572 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12573 $as_echo_n "checking for _doprnt... " >&6; }
12574 if test "${ac_cv_func__doprnt+set}" = set; then
12575 $as_echo_n "(cached) " >&6
12577 cat >conftest.$ac_ext <<_ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12583 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12585 #define _doprnt innocuous__doprnt
12587 /* System header to define __stub macros and hopefully few prototypes,
12588 which can conflict with char _doprnt (); below.
12589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12590 <limits.h> exists even on freestanding compilers. */
12593 # include <limits.h>
12595 # include <assert.h>
12600 /* Override any GCC internal prototype to avoid an error.
12601 Use char because int might match the return type of a GCC
12602 builtin and then its argument prototype would still apply. */
12607 /* The GNU C library defines this for functions which it implements
12608 to always fail with ENOSYS. Some functions are actually named
12609 something starting with __ and the normal name is an alias. */
12610 #if defined __stub__doprnt || defined __stub____doprnt
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (ac_try="$ac_link"
12624 case "(($ac_try" in
12625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12626 *) ac_try_echo
=$ac_try;;
12628 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12629 $as_echo "$ac_try_echo") >&5
12630 (eval "$ac_link") 2>conftest.er1
12632 grep -v '^ *+' conftest.er1
>conftest.err
12634 cat conftest.err
>&5
12635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } && {
12637 test -z "$ac_c_werror_flag" ||
12638 test ! -s conftest.err
12639 } && test -s conftest
$ac_exeext && {
12640 test "$cross_compiling" = yes ||
12641 $as_test_x conftest
$ac_exeext
12643 ac_cv_func__doprnt
=yes
12645 $as_echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.
$ac_ext >&5
12648 ac_cv_func__doprnt
=no
12651 rm -rf conftest.dSYM
12652 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12653 conftest
$ac_exeext conftest.
$ac_ext
12655 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12656 $as_echo "$ac_cv_func__doprnt" >&6; }
12657 if test "x$ac_cv_func__doprnt" = x
""yes; then
12659 cat >>confdefs.h
<<\_ACEOF
12660 #define HAVE_DOPRNT 1
12669 { $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
12670 $as_echo_n "checking for working strcoll... " >&6; }
12671 if test "${ac_cv_func_strcoll_works+set}" = set; then
12672 $as_echo_n "(cached) " >&6
12674 if test "$cross_compiling" = yes; then
12675 ac_cv_func_strcoll_works
=no
12677 cat >conftest.
$ac_ext <<_ACEOF
12680 cat confdefs.h
>>conftest.
$ac_ext
12681 cat >>conftest.
$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12683 $ac_includes_default
12687 return (strcoll ("abc", "def") >= 0 ||
12688 strcoll ("ABC", "DEF") >= 0 ||
12689 strcoll ("123", "456") >= 0)
12694 rm -f conftest
$ac_exeext
12695 if { (ac_try
="$ac_link"
12696 case "(($ac_try" in
12697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12698 *) ac_try_echo=$ac_try;;
12700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12701 $as_echo "$ac_try_echo") >&5
12702 (eval "$ac_link") 2>&5
12704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12706 { (case "(($ac_try" in
12707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12708 *) ac_try_echo
=$ac_try;;
12710 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12711 $as_echo "$ac_try_echo") >&5
12712 (eval "$ac_try") 2>&5
12714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; }; then
12716 ac_cv_func_strcoll_works
=yes
12718 $as_echo "$as_me: program exited with status $ac_status" >&5
12719 $as_echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.
$ac_ext >&5
12722 ( exit $ac_status )
12723 ac_cv_func_strcoll_works
=no
12725 rm -rf conftest.dSYM
12726 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12731 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
12732 $as_echo "$ac_cv_func_strcoll_works" >&6; }
12733 if test $ac_cv_func_strcoll_works = yes; then
12735 cat >>confdefs.h
<<\_ACEOF
12736 #define HAVE_STRCOLL 1
12743 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
12744 MALLOC_TARGET
=alloca
12745 MALLOC_SRC
=alloca.c
12747 MALLOC_LIB
='-lmalloc'
12748 MALLOC_LIBRARY
='$(ALLOC_LIBDIR)/libmalloc.a'
12749 MALLOC_LDFLAGS
='-L$(ALLOC_LIBDIR)'
12750 MALLOC_DEP
='$(MALLOC_LIBRARY)'
12753 if test "$ac_cv_func_vprintf" = no
; then
12754 { $as_echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
12755 $as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; }
12756 cat >conftest.
$ac_ext <<_ACEOF
12759 cat confdefs.h
>>conftest.
$ac_ext
12760 cat >>conftest.
$ac_ext <<_ACEOF
12761 /* end confdefs.h. */
12765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12766 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev
/null
2>&1; then
12767 ac_cv_func_vprintf
=yes
12771 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
12772 $as_echo "$ac_cv_func_vprintf" >&6; }
12773 if test $ac_cv_func_vprintf = yes; then
12774 cat >>confdefs.h
<<\_ACEOF
12775 #define HAVE_VPRINTF 1
12781 if test "$ac_cv_func_vprintf" = no
&& test "$ac_cv_func__doprnt" = "yes"; then
12782 case " $LIBOBJS " in
12783 *" vprint.$ac_objext "* ) ;;
12784 *) LIBOBJS
="$LIBOBJS vprint.$ac_objext"
12790 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12791 $as_echo_n "checking return type of signal handlers... " >&6; }
12792 if test "${ac_cv_type_signal+set}" = set; then
12793 $as_echo_n "(cached) " >&6
12795 cat >conftest.
$ac_ext <<_ACEOF
12798 cat confdefs.h
>>conftest.
$ac_ext
12799 cat >>conftest.
$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12801 #include <sys/types.h>
12802 #include <signal.h>
12807 return *(signal (0, 0)) (0) == 1;
12812 rm -f conftest.
$ac_objext
12813 if { (ac_try
="$ac_compile"
12814 case "(($ac_try" in
12815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12819 $as_echo "$ac_try_echo") >&5
12820 (eval "$ac_compile") 2>conftest.er1
12822 grep -v '^ *+' conftest.er1 >conftest.err
12824 cat conftest.err >&5
12825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } && {
12827 test -z "$ac_c_werror_flag" ||
12828 test ! -s conftest.err
12829 } && test -s conftest.$ac_objext; then
12830 ac_cv_type_signal=int
12832 $as_echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12835 ac_cv_type_signal=void
12838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12840 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12841 $as_echo "$ac_cv_type_signal" >&6; }
12843 cat >>confdefs.h <<_ACEOF
12844 #define RETSIGTYPE $ac_cv_type_signal
12849 { $as_echo "$as_me:$LINENO: checking for __setostype" >&5
12850 $as_echo_n "checking for __setostype... " >&6; }
12851 if test "${ac_cv_func___setostype+set}" = set; then
12852 $as_echo_n "(cached) " >&6
12854 cat >conftest.$ac_ext <<_ACEOF
12857 cat confdefs.h >>conftest.$ac_ext
12858 cat >>conftest.$ac_ext <<_ACEOF
12859 /* end confdefs.h. */
12860 /* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
12861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12862 #define __setostype innocuous___setostype
12864 /* System header to define __stub macros and hopefully few prototypes,
12865 which can conflict with char __setostype (); below.
12866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12867 <limits.h> exists even on freestanding compilers. */
12870 # include <limits.h>
12872 # include <assert.h>
12877 /* Override any GCC internal prototype to avoid an error.
12878 Use char because int might match the return type of a GCC
12879 builtin and then its argument prototype would still apply. */
12883 char __setostype ();
12884 /* The GNU C library defines this for functions which it implements
12885 to always fail with ENOSYS. Some functions are actually named
12886 something starting with __ and the normal name is an alias. */
12887 #if defined __stub___setostype || defined __stub_____setostype
12894 return __setostype ();
12899 rm -f conftest.$ac_objext conftest$ac_exeext
12900 if { (ac_try="$ac_link"
12901 case "(($ac_try" in
12902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12903 *) ac_try_echo
=$ac_try;;
12905 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12906 $as_echo "$ac_try_echo") >&5
12907 (eval "$ac_link") 2>conftest.er1
12909 grep -v '^ *+' conftest.er1
>conftest.err
12911 cat conftest.err
>&5
12912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } && {
12914 test -z "$ac_c_werror_flag" ||
12915 test ! -s conftest.err
12916 } && test -s conftest
$ac_exeext && {
12917 test "$cross_compiling" = yes ||
12918 $as_test_x conftest
$ac_exeext
12920 ac_cv_func___setostype
=yes
12922 $as_echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.
$ac_ext >&5
12925 ac_cv_func___setostype
=no
12928 rm -rf conftest.dSYM
12929 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12930 conftest
$ac_exeext conftest.
$ac_ext
12932 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
12933 $as_echo "$ac_cv_func___setostype" >&6; }
12934 if test "x$ac_cv_func___setostype" = x
""yes; then
12935 cat >>confdefs.h
<<\_ACEOF
12936 #define HAVE_SETOSTYPE 1
12941 { $as_echo "$as_me:$LINENO: checking for wait3" >&5
12942 $as_echo_n "checking for wait3... " >&6; }
12943 if test "${ac_cv_func_wait3+set}" = set; then
12944 $as_echo_n "(cached) " >&6
12946 cat >conftest.
$ac_ext <<_ACEOF
12949 cat confdefs.h
>>conftest.
$ac_ext
12950 cat >>conftest.
$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12952 /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
12953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12954 #define wait3 innocuous_wait3
12956 /* System header to define __stub macros and hopefully few prototypes,
12957 which can conflict with char wait3 (); below.
12958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12959 <limits.h> exists even on freestanding compilers. */
12962 # include <limits.h>
12964 # include <assert.h>
12969 /* Override any GCC internal prototype to avoid an error.
12970 Use char because int might match the return type of a GCC
12971 builtin and then its argument prototype would still apply. */
12976 /* The GNU C library defines this for functions which it implements
12977 to always fail with ENOSYS. Some functions are actually named
12978 something starting with __ and the normal name is an alias. */
12979 #if defined __stub_wait3 || defined __stub___wait3
12991 rm -f conftest.
$ac_objext conftest
$ac_exeext
12992 if { (ac_try
="$ac_link"
12993 case "(($ac_try" in
12994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12998 $as_echo "$ac_try_echo") >&5
12999 (eval "$ac_link") 2>conftest.er1
13001 grep -v '^ *+' conftest.er1 >conftest.err
13003 cat conftest.err >&5
13004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } && {
13006 test -z "$ac_c_werror_flag" ||
13007 test ! -s conftest.err
13008 } && test -s conftest$ac_exeext && {
13009 test "$cross_compiling" = yes ||
13010 $as_test_x conftest$ac_exeext
13012 ac_cv_func_wait3=yes
13014 $as_echo "$as_me: failed program was:" >&5
13015 sed 's/^/| /' conftest.$ac_ext >&5
13017 ac_cv_func_wait3=no
13020 rm -rf conftest.dSYM
13021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13022 conftest$ac_exeext conftest.$ac_ext
13024 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
13025 $as_echo "$ac_cv_func_wait3" >&6; }
13026 if test "x$ac_cv_func_wait3" = x""yes; then
13027 cat >>confdefs.h <<\_ACEOF
13028 #define HAVE_WAIT3 1
13033 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
13034 $as_echo_n "checking for isinf... " >&6; }
13035 if test "${ac_cv_func_isinf+set}" = set; then
13036 $as_echo_n "(cached) " >&6
13038 cat >conftest.$ac_ext <<_ACEOF
13041 cat confdefs.h >>conftest.$ac_ext
13042 cat >>conftest.$ac_ext <<_ACEOF
13043 /* end confdefs.h. */
13044 /* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
13045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13046 #define isinf innocuous_isinf
13048 /* System header to define __stub macros and hopefully few prototypes,
13049 which can conflict with char isinf (); below.
13050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13051 <limits.h> exists even on freestanding compilers. */
13054 # include <limits.h>
13056 # include <assert.h>
13061 /* Override any GCC internal prototype to avoid an error.
13062 Use char because int might match the return type of a GCC
13063 builtin and then its argument prototype would still apply. */
13068 /* The GNU C library defines this for functions which it implements
13069 to always fail with ENOSYS. Some functions are actually named
13070 something starting with __ and the normal name is an alias. */
13071 #if defined __stub_isinf || defined __stub___isinf
13083 rm -f conftest.$ac_objext conftest$ac_exeext
13084 if { (ac_try="$ac_link"
13085 case "(($ac_try" in
13086 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13087 *) ac_try_echo
=$ac_try;;
13089 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13090 $as_echo "$ac_try_echo") >&5
13091 (eval "$ac_link") 2>conftest.er1
13093 grep -v '^ *+' conftest.er1
>conftest.err
13095 cat conftest.err
>&5
13096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } && {
13098 test -z "$ac_c_werror_flag" ||
13099 test ! -s conftest.err
13100 } && test -s conftest
$ac_exeext && {
13101 test "$cross_compiling" = yes ||
13102 $as_test_x conftest
$ac_exeext
13104 ac_cv_func_isinf
=yes
13106 $as_echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.
$ac_ext >&5
13109 ac_cv_func_isinf
=no
13112 rm -rf conftest.dSYM
13113 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13114 conftest
$ac_exeext conftest.
$ac_ext
13116 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
13117 $as_echo "$ac_cv_func_isinf" >&6; }
13118 if test "x$ac_cv_func_isinf" = x
""yes; then
13119 cat >>confdefs.h
<<\_ACEOF
13120 #define HAVE_ISINF_IN_LIBC 1
13125 { $as_echo "$as_me:$LINENO: checking for isnan" >&5
13126 $as_echo_n "checking for isnan... " >&6; }
13127 if test "${ac_cv_func_isnan+set}" = set; then
13128 $as_echo_n "(cached) " >&6
13130 cat >conftest.
$ac_ext <<_ACEOF
13133 cat confdefs.h
>>conftest.
$ac_ext
13134 cat >>conftest.
$ac_ext <<_ACEOF
13135 /* end confdefs.h. */
13136 /* Define isnan to an innocuous variant, in case <limits.h> declares isnan.
13137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13138 #define isnan innocuous_isnan
13140 /* System header to define __stub macros and hopefully few prototypes,
13141 which can conflict with char isnan (); below.
13142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13143 <limits.h> exists even on freestanding compilers. */
13146 # include <limits.h>
13148 # include <assert.h>
13153 /* Override any GCC internal prototype to avoid an error.
13154 Use char because int might match the return type of a GCC
13155 builtin and then its argument prototype would still apply. */
13160 /* The GNU C library defines this for functions which it implements
13161 to always fail with ENOSYS. Some functions are actually named
13162 something starting with __ and the normal name is an alias. */
13163 #if defined __stub_isnan || defined __stub___isnan
13175 rm -f conftest.
$ac_objext conftest
$ac_exeext
13176 if { (ac_try
="$ac_link"
13177 case "(($ac_try" in
13178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13182 $as_echo "$ac_try_echo") >&5
13183 (eval "$ac_link") 2>conftest.er1
13185 grep -v '^ *+' conftest.er1 >conftest.err
13187 cat conftest.err >&5
13188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); } && {
13190 test -z "$ac_c_werror_flag" ||
13191 test ! -s conftest.err
13192 } && test -s conftest$ac_exeext && {
13193 test "$cross_compiling" = yes ||
13194 $as_test_x conftest$ac_exeext
13196 ac_cv_func_isnan=yes
13198 $as_echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13201 ac_cv_func_isnan=no
13204 rm -rf conftest.dSYM
13205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13206 conftest$ac_exeext conftest.$ac_ext
13208 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
13209 $as_echo "$ac_cv_func_isnan" >&6; }
13210 if test "x$ac_cv_func_isnan" = x""yes; then
13211 cat >>confdefs.h <<\_ACEOF
13212 #define HAVE_ISNAN_IN_LIBC 1
13218 { $as_echo "$as_me:$LINENO: checking for mkfifo" >&5
13219 $as_echo_n "checking for mkfifo... " >&6; }
13220 if test "${ac_cv_func_mkfifo+set}" = set; then
13221 $as_echo_n "(cached) " >&6
13223 cat >conftest.$ac_ext <<_ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h. */
13229 /* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
13230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13231 #define mkfifo innocuous_mkfifo
13233 /* System header to define __stub macros and hopefully few prototypes,
13234 which can conflict with char mkfifo (); below.
13235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13236 <limits.h> exists even on freestanding compilers. */
13239 # include <limits.h>
13241 # include <assert.h>
13246 /* Override any GCC internal prototype to avoid an error.
13247 Use char because int might match the return type of a GCC
13248 builtin and then its argument prototype would still apply. */
13253 /* The GNU C library defines this for functions which it implements
13254 to always fail with ENOSYS. Some functions are actually named
13255 something starting with __ and the normal name is an alias. */
13256 #if defined __stub_mkfifo || defined __stub___mkfifo
13268 rm -f conftest.$ac_objext conftest$ac_exeext
13269 if { (ac_try="$ac_link"
13270 case "(($ac_try" in
13271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13272 *) ac_try_echo
=$ac_try;;
13274 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13275 $as_echo "$ac_try_echo") >&5
13276 (eval "$ac_link") 2>conftest.er1
13278 grep -v '^ *+' conftest.er1
>conftest.err
13280 cat conftest.err
>&5
13281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); } && {
13283 test -z "$ac_c_werror_flag" ||
13284 test ! -s conftest.err
13285 } && test -s conftest
$ac_exeext && {
13286 test "$cross_compiling" = yes ||
13287 $as_test_x conftest
$ac_exeext
13289 ac_cv_func_mkfifo
=yes
13291 $as_echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.
$ac_ext >&5
13294 ac_cv_func_mkfifo
=no
13297 rm -rf conftest.dSYM
13298 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13299 conftest
$ac_exeext conftest.
$ac_ext
13301 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
13302 $as_echo "$ac_cv_func_mkfifo" >&6; }
13303 if test "x$ac_cv_func_mkfifo" = x
""yes; then
13304 cat >>confdefs.h
<<\_ACEOF
13305 #define HAVE_MKFIFO 1
13309 cat >>confdefs.h
<<\_ACEOF
13310 #define MKFIFO_MISSING 1
13339 for ac_func
in dup2 eaccess fcntl getdtablesize getgroups gethostname \
13340 getpagesize getpeername getrlimit getrusage gettimeofday \
13341 kill killpg lstat readlink sbrk
select setdtablesize \
13342 setitimer tcgetpgrp uname
ulimit waitpid
13344 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13345 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13346 $as_echo_n "checking for $ac_func... " >&6; }
13347 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13348 $as_echo_n "(cached) " >&6
13350 cat >conftest.
$ac_ext <<_ACEOF
13353 cat confdefs.h
>>conftest.
$ac_ext
13354 cat >>conftest.
$ac_ext <<_ACEOF
13355 /* end confdefs.h. */
13356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13358 #define $ac_func innocuous_$ac_func
13360 /* System header to define __stub macros and hopefully few prototypes,
13361 which can conflict with char $ac_func (); below.
13362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13363 <limits.h> exists even on freestanding compilers. */
13366 # include <limits.h>
13368 # include <assert.h>
13373 /* Override any GCC internal prototype to avoid an error.
13374 Use char because int might match the return type of a GCC
13375 builtin and then its argument prototype would still apply. */
13380 /* The GNU C library defines this for functions which it implements
13381 to always fail with ENOSYS. Some functions are actually named
13382 something starting with __ and the normal name is an alias. */
13383 #if defined __stub_$ac_func || defined __stub___$ac_func
13390 return $ac_func ();
13395 rm -f conftest.
$ac_objext conftest
$ac_exeext
13396 if { (ac_try
="$ac_link"
13397 case "(($ac_try" in
13398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13399 *) ac_try_echo=$ac_try;;
13401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13402 $as_echo "$ac_try_echo") >&5
13403 (eval "$ac_link") 2>conftest.er1
13405 grep -v '^ *+' conftest.er1 >conftest.err
13407 cat conftest.err >&5
13408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } && {
13410 test -z "$ac_c_werror_flag" ||
13411 test ! -s conftest.err
13412 } && test -s conftest$ac_exeext && {
13413 test "$cross_compiling" = yes ||
13414 $as_test_x conftest$ac_exeext
13416 eval "$as_ac_var=yes"
13418 $as_echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13421 eval "$as_ac_var=no"
13424 rm -rf conftest.dSYM
13425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13426 conftest$ac_exeext conftest.$ac_ext
13428 ac_res=`eval 'as_val=${'$as_ac_var'}
13429 $as_echo "$as_val"'`
13430 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13431 $as_echo "$ac_res" >&6; }
13432 as_val=`eval 'as_val=${'$as_ac_var'}
13433 $as_echo "$as_val"'`
13434 if test "x$as_val" = x""yes; then
13435 cat >>confdefs.h <<_ACEOF
13436 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13443 for ac_func in rename
13445 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13446 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13447 $as_echo_n "checking for $ac_func... " >&6; }
13448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13449 $as_echo_n "(cached) " >&6
13451 cat >conftest.$ac_ext <<_ACEOF
13454 cat confdefs.h >>conftest.$ac_ext
13455 cat >>conftest.$ac_ext <<_ACEOF
13456 /* end confdefs.h. */
13457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13459 #define $ac_func innocuous_$ac_func
13461 /* System header to define __stub macros and hopefully few prototypes,
13462 which can conflict with char $ac_func (); below.
13463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13464 <limits.h> exists even on freestanding compilers. */
13467 # include <limits.h>
13469 # include <assert.h>
13474 /* Override any GCC internal prototype to avoid an error.
13475 Use char because int might match the return type of a GCC
13476 builtin and then its argument prototype would still apply. */
13481 /* The GNU C library defines this for functions which it implements
13482 to always fail with ENOSYS. Some functions are actually named
13483 something starting with __ and the normal name is an alias. */
13484 #if defined __stub_$ac_func || defined __stub___$ac_func
13491 return $ac_func ();
13496 rm -f conftest.$ac_objext conftest$ac_exeext
13497 if { (ac_try="$ac_link"
13498 case "(($ac_try" in
13499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13500 *) ac_try_echo
=$ac_try;;
13502 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13503 $as_echo "$ac_try_echo") >&5
13504 (eval "$ac_link") 2>conftest.er1
13506 grep -v '^ *+' conftest.er1
>conftest.err
13508 cat conftest.err
>&5
13509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); } && {
13511 test -z "$ac_c_werror_flag" ||
13512 test ! -s conftest.err
13513 } && test -s conftest
$ac_exeext && {
13514 test "$cross_compiling" = yes ||
13515 $as_test_x conftest
$ac_exeext
13517 eval "$as_ac_var=yes"
13519 $as_echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.
$ac_ext >&5
13522 eval "$as_ac_var=no"
13525 rm -rf conftest.dSYM
13526 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13527 conftest
$ac_exeext conftest.
$ac_ext
13529 ac_res
=`eval 'as_val=${'$as_ac_var'}
13530 $as_echo "$as_val"'`
13531 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13532 $as_echo "$ac_res" >&6; }
13533 as_val
=`eval 'as_val=${'$as_ac_var'}
13534 $as_echo "$as_val"'`
13535 if test "x$as_val" = x
""yes; then
13536 cat >>confdefs.h
<<_ACEOF
13537 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13541 case " $LIBOBJS " in
13542 *" $ac_func.$ac_objext "* ) ;;
13543 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
13581 for ac_func
in bcopy bzero confstr faccessat fnmatch \
13582 getaddrinfo gethostbyname getservbyname getservent inet_aton \
13583 memmove pathconf putenv raise regcomp regexec \
13584 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
13585 sysconf syslog tcgetattr
times ttyname tzset unsetenv
13587 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13588 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13589 $as_echo_n "checking for $ac_func... " >&6; }
13590 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13591 $as_echo_n "(cached) " >&6
13593 cat >conftest.
$ac_ext <<_ACEOF
13596 cat confdefs.h
>>conftest.
$ac_ext
13597 cat >>conftest.
$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13601 #define $ac_func innocuous_$ac_func
13603 /* System header to define __stub macros and hopefully few prototypes,
13604 which can conflict with char $ac_func (); below.
13605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13606 <limits.h> exists even on freestanding compilers. */
13609 # include <limits.h>
13611 # include <assert.h>
13616 /* Override any GCC internal prototype to avoid an error.
13617 Use char because int might match the return type of a GCC
13618 builtin and then its argument prototype would still apply. */
13623 /* The GNU C library defines this for functions which it implements
13624 to always fail with ENOSYS. Some functions are actually named
13625 something starting with __ and the normal name is an alias. */
13626 #if defined __stub_$ac_func || defined __stub___$ac_func
13633 return $ac_func ();
13638 rm -f conftest.
$ac_objext conftest
$ac_exeext
13639 if { (ac_try
="$ac_link"
13640 case "(($ac_try" in
13641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13645 $as_echo "$ac_try_echo") >&5
13646 (eval "$ac_link") 2>conftest.er1
13648 grep -v '^ *+' conftest.er1 >conftest.err
13650 cat conftest.err >&5
13651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } && {
13653 test -z "$ac_c_werror_flag" ||
13654 test ! -s conftest.err
13655 } && test -s conftest$ac_exeext && {
13656 test "$cross_compiling" = yes ||
13657 $as_test_x conftest$ac_exeext
13659 eval "$as_ac_var=yes"
13661 $as_echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.$ac_ext >&5
13664 eval "$as_ac_var=no"
13667 rm -rf conftest.dSYM
13668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13669 conftest$ac_exeext conftest.$ac_ext
13671 ac_res=`eval 'as_val=${'$as_ac_var'}
13672 $as_echo "$as_val"'`
13673 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13674 $as_echo "$ac_res" >&6; }
13675 as_val=`eval 'as_val=${'$as_ac_var'}
13676 $as_echo "$as_val"'`
13677 if test "x$as_val" = x""yes; then
13678 cat >>confdefs.h <<_ACEOF
13679 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13688 for ac_func in vasprintf asprintf
13690 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13691 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13692 $as_echo_n "checking for $ac_func... " >&6; }
13693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13694 $as_echo_n "(cached) " >&6
13696 cat >conftest.$ac_ext <<_ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h. */
13702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13704 #define $ac_func innocuous_$ac_func
13706 /* System header to define __stub macros and hopefully few prototypes,
13707 which can conflict with char $ac_func (); below.
13708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13709 <limits.h> exists even on freestanding compilers. */
13712 # include <limits.h>
13714 # include <assert.h>
13719 /* Override any GCC internal prototype to avoid an error.
13720 Use char because int might match the return type of a GCC
13721 builtin and then its argument prototype would still apply. */
13726 /* The GNU C library defines this for functions which it implements
13727 to always fail with ENOSYS. Some functions are actually named
13728 something starting with __ and the normal name is an alias. */
13729 #if defined __stub_$ac_func || defined __stub___$ac_func
13736 return $ac_func ();
13741 rm -f conftest.$ac_objext conftest$ac_exeext
13742 if { (ac_try="$ac_link"
13743 case "(($ac_try" in
13744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13745 *) ac_try_echo
=$ac_try;;
13747 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13748 $as_echo "$ac_try_echo") >&5
13749 (eval "$ac_link") 2>conftest.er1
13751 grep -v '^ *+' conftest.er1
>conftest.err
13753 cat conftest.err
>&5
13754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } && {
13756 test -z "$ac_c_werror_flag" ||
13757 test ! -s conftest.err
13758 } && test -s conftest
$ac_exeext && {
13759 test "$cross_compiling" = yes ||
13760 $as_test_x conftest
$ac_exeext
13762 eval "$as_ac_var=yes"
13764 $as_echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.
$ac_ext >&5
13767 eval "$as_ac_var=no"
13770 rm -rf conftest.dSYM
13771 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13772 conftest
$ac_exeext conftest.
$ac_ext
13774 ac_res
=`eval 'as_val=${'$as_ac_var'}
13775 $as_echo "$as_val"'`
13776 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13777 $as_echo "$ac_res" >&6; }
13778 as_val
=`eval 'as_val=${'$as_ac_var'}
13779 $as_echo "$as_val"'`
13780 if test "x$as_val" = x
""yes; then
13781 cat >>confdefs.h
<<_ACEOF
13782 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13794 for ac_func
in isascii isblank isgraph isprint isspace isxdigit
13796 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13797 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13798 $as_echo_n "checking for $ac_func... " >&6; }
13799 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13800 $as_echo_n "(cached) " >&6
13802 cat >conftest.
$ac_ext <<_ACEOF
13805 cat confdefs.h
>>conftest.
$ac_ext
13806 cat >>conftest.
$ac_ext <<_ACEOF
13807 /* end confdefs.h. */
13808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13810 #define $ac_func innocuous_$ac_func
13812 /* System header to define __stub macros and hopefully few prototypes,
13813 which can conflict with char $ac_func (); below.
13814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13815 <limits.h> exists even on freestanding compilers. */
13818 # include <limits.h>
13820 # include <assert.h>
13825 /* Override any GCC internal prototype to avoid an error.
13826 Use char because int might match the return type of a GCC
13827 builtin and then its argument prototype would still apply. */
13832 /* The GNU C library defines this for functions which it implements
13833 to always fail with ENOSYS. Some functions are actually named
13834 something starting with __ and the normal name is an alias. */
13835 #if defined __stub_$ac_func || defined __stub___$ac_func
13842 return $ac_func ();
13847 rm -f conftest.
$ac_objext conftest
$ac_exeext
13848 if { (ac_try
="$ac_link"
13849 case "(($ac_try" in
13850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13851 *) ac_try_echo=$ac_try;;
13853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13854 $as_echo "$ac_try_echo") >&5
13855 (eval "$ac_link") 2>conftest.er1
13857 grep -v '^ *+' conftest.er1 >conftest.err
13859 cat conftest.err >&5
13860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); } && {
13862 test -z "$ac_c_werror_flag" ||
13863 test ! -s conftest.err
13864 } && test -s conftest$ac_exeext && {
13865 test "$cross_compiling" = yes ||
13866 $as_test_x conftest$ac_exeext
13868 eval "$as_ac_var=yes"
13870 $as_echo "$as_me: failed program was:" >&5
13871 sed 's/^/| /' conftest.$ac_ext >&5
13873 eval "$as_ac_var=no"
13876 rm -rf conftest.dSYM
13877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13878 conftest$ac_exeext conftest.$ac_ext
13880 ac_res=`eval 'as_val=${'$as_ac_var'}
13881 $as_echo "$as_val"'`
13882 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13883 $as_echo "$ac_res" >&6; }
13884 as_val=`eval 'as_val=${'$as_ac_var'}
13885 $as_echo "$as_val"'`
13886 if test "x$as_val" = x""yes; then
13887 cat >>confdefs.h <<_ACEOF
13888 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13897 for ac_func in getpwent getpwnam getpwuid
13899 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13900 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13901 $as_echo_n "checking for $ac_func... " >&6; }
13902 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13903 $as_echo_n "(cached) " >&6
13905 cat >conftest.$ac_ext <<_ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13913 #define $ac_func innocuous_$ac_func
13915 /* System header to define __stub macros and hopefully few prototypes,
13916 which can conflict with char $ac_func (); below.
13917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13918 <limits.h> exists even on freestanding compilers. */
13921 # include <limits.h>
13923 # include <assert.h>
13928 /* Override any GCC internal prototype to avoid an error.
13929 Use char because int might match the return type of a GCC
13930 builtin and then its argument prototype would still apply. */
13935 /* The GNU C library defines this for functions which it implements
13936 to always fail with ENOSYS. Some functions are actually named
13937 something starting with __ and the normal name is an alias. */
13938 #if defined __stub_$ac_func || defined __stub___$ac_func
13945 return $ac_func ();
13950 rm -f conftest.$ac_objext conftest$ac_exeext
13951 if { (ac_try="$ac_link"
13952 case "(($ac_try" in
13953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13954 *) ac_try_echo
=$ac_try;;
13956 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13957 $as_echo "$ac_try_echo") >&5
13958 (eval "$ac_link") 2>conftest.er1
13960 grep -v '^ *+' conftest.er1
>conftest.err
13962 cat conftest.err
>&5
13963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } && {
13965 test -z "$ac_c_werror_flag" ||
13966 test ! -s conftest.err
13967 } && test -s conftest
$ac_exeext && {
13968 test "$cross_compiling" = yes ||
13969 $as_test_x conftest
$ac_exeext
13971 eval "$as_ac_var=yes"
13973 $as_echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.
$ac_ext >&5
13976 eval "$as_ac_var=no"
13979 rm -rf conftest.dSYM
13980 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13981 conftest
$ac_exeext conftest.
$ac_ext
13983 ac_res
=`eval 'as_val=${'$as_ac_var'}
13984 $as_echo "$as_val"'`
13985 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13986 $as_echo "$ac_res" >&6; }
13987 as_val
=`eval 'as_val=${'$as_ac_var'}
13988 $as_echo "$as_val"'`
13989 if test "x$as_val" = x
""yes; then
13990 cat >>confdefs.h
<<_ACEOF
13991 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13999 for ac_func
in getcwd memset
14001 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14002 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14003 $as_echo_n "checking for $ac_func... " >&6; }
14004 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14005 $as_echo_n "(cached) " >&6
14007 cat >conftest.
$ac_ext <<_ACEOF
14010 cat confdefs.h
>>conftest.
$ac_ext
14011 cat >>conftest.
$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14015 #define $ac_func innocuous_$ac_func
14017 /* System header to define __stub macros and hopefully few prototypes,
14018 which can conflict with char $ac_func (); below.
14019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14020 <limits.h> exists even on freestanding compilers. */
14023 # include <limits.h>
14025 # include <assert.h>
14030 /* Override any GCC internal prototype to avoid an error.
14031 Use char because int might match the return type of a GCC
14032 builtin and then its argument prototype would still apply. */
14037 /* The GNU C library defines this for functions which it implements
14038 to always fail with ENOSYS. Some functions are actually named
14039 something starting with __ and the normal name is an alias. */
14040 #if defined __stub_$ac_func || defined __stub___$ac_func
14047 return $ac_func ();
14052 rm -f conftest.
$ac_objext conftest
$ac_exeext
14053 if { (ac_try
="$ac_link"
14054 case "(($ac_try" in
14055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14056 *) ac_try_echo=$ac_try;;
14058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14059 $as_echo "$ac_try_echo") >&5
14060 (eval "$ac_link") 2>conftest.er1
14062 grep -v '^ *+' conftest.er1 >conftest.err
14064 cat conftest.err >&5
14065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } && {
14067 test -z "$ac_c_werror_flag" ||
14068 test ! -s conftest.err
14069 } && test -s conftest$ac_exeext && {
14070 test "$cross_compiling" = yes ||
14071 $as_test_x conftest$ac_exeext
14073 eval "$as_ac_var=yes"
14075 $as_echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14078 eval "$as_ac_var=no"
14081 rm -rf conftest.dSYM
14082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14083 conftest$ac_exeext conftest.$ac_ext
14085 ac_res=`eval 'as_val=${'$as_ac_var'}
14086 $as_echo "$as_val"'`
14087 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14088 $as_echo "$ac_res" >&6; }
14089 as_val=`eval 'as_val=${'$as_ac_var'}
14090 $as_echo "$as_val"'`
14091 if test "x$as_val" = x""yes; then
14092 cat >>confdefs.h <<_ACEOF
14093 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14097 case " $LIBOBJS " in
14098 *" $ac_func.$ac_objext "* ) ;;
14099 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14114 for ac_func in strcasecmp strcasestr strerror strftime strnlen strpbrk strstr
14116 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
14117 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14118 $as_echo_n "checking for $ac_func... " >&6; }
14119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14120 $as_echo_n "(cached) " >&6
14122 cat >conftest.$ac_ext <<_ACEOF
14125 cat confdefs.h >>conftest.$ac_ext
14126 cat >>conftest.$ac_ext <<_ACEOF
14127 /* end confdefs.h. */
14128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14130 #define $ac_func innocuous_$ac_func
14132 /* System header to define __stub macros and hopefully few prototypes,
14133 which can conflict with char $ac_func (); below.
14134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14135 <limits.h> exists even on freestanding compilers. */
14138 # include <limits.h>
14140 # include <assert.h>
14145 /* Override any GCC internal prototype to avoid an error.
14146 Use char because int might match the return type of a GCC
14147 builtin and then its argument prototype would still apply. */
14152 /* The GNU C library defines this for functions which it implements
14153 to always fail with ENOSYS. Some functions are actually named
14154 something starting with __ and the normal name is an alias. */
14155 #if defined __stub_$ac_func || defined __stub___$ac_func
14162 return $ac_func ();
14167 rm -f conftest.$ac_objext conftest$ac_exeext
14168 if { (ac_try="$ac_link"
14169 case "(($ac_try" in
14170 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14171 *) ac_try_echo
=$ac_try;;
14173 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14174 $as_echo "$ac_try_echo") >&5
14175 (eval "$ac_link") 2>conftest.er1
14177 grep -v '^ *+' conftest.er1
>conftest.err
14179 cat conftest.err
>&5
14180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } && {
14182 test -z "$ac_c_werror_flag" ||
14183 test ! -s conftest.err
14184 } && test -s conftest
$ac_exeext && {
14185 test "$cross_compiling" = yes ||
14186 $as_test_x conftest
$ac_exeext
14188 eval "$as_ac_var=yes"
14190 $as_echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.
$ac_ext >&5
14193 eval "$as_ac_var=no"
14196 rm -rf conftest.dSYM
14197 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14198 conftest
$ac_exeext conftest.
$ac_ext
14200 ac_res
=`eval 'as_val=${'$as_ac_var'}
14201 $as_echo "$as_val"'`
14202 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14203 $as_echo "$ac_res" >&6; }
14204 as_val
=`eval 'as_val=${'$as_ac_var'}
14205 $as_echo "$as_val"'`
14206 if test "x$as_val" = x
""yes; then
14207 cat >>confdefs.h
<<_ACEOF
14208 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14212 case " $LIBOBJS " in
14213 *" $ac_func.$ac_objext "* ) ;;
14214 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
14229 for ac_func
in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
14231 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14232 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14233 $as_echo_n "checking for $ac_func... " >&6; }
14234 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14235 $as_echo_n "(cached) " >&6
14237 cat >conftest.
$ac_ext <<_ACEOF
14240 cat confdefs.h
>>conftest.
$ac_ext
14241 cat >>conftest.
$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14245 #define $ac_func innocuous_$ac_func
14247 /* System header to define __stub macros and hopefully few prototypes,
14248 which can conflict with char $ac_func (); below.
14249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14250 <limits.h> exists even on freestanding compilers. */
14253 # include <limits.h>
14255 # include <assert.h>
14260 /* Override any GCC internal prototype to avoid an error.
14261 Use char because int might match the return type of a GCC
14262 builtin and then its argument prototype would still apply. */
14267 /* The GNU C library defines this for functions which it implements
14268 to always fail with ENOSYS. Some functions are actually named
14269 something starting with __ and the normal name is an alias. */
14270 #if defined __stub_$ac_func || defined __stub___$ac_func
14277 return $ac_func ();
14282 rm -f conftest.
$ac_objext conftest
$ac_exeext
14283 if { (ac_try
="$ac_link"
14284 case "(($ac_try" in
14285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14289 $as_echo "$ac_try_echo") >&5
14290 (eval "$ac_link") 2>conftest.er1
14292 grep -v '^ *+' conftest.er1 >conftest.err
14294 cat conftest.err >&5
14295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } && {
14297 test -z "$ac_c_werror_flag" ||
14298 test ! -s conftest.err
14299 } && test -s conftest$ac_exeext && {
14300 test "$cross_compiling" = yes ||
14301 $as_test_x conftest$ac_exeext
14303 eval "$as_ac_var=yes"
14305 $as_echo "$as_me: failed program was:" >&5
14306 sed 's/^/| /' conftest.$ac_ext >&5
14308 eval "$as_ac_var=no"
14311 rm -rf conftest.dSYM
14312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14313 conftest$ac_exeext conftest.$ac_ext
14315 ac_res=`eval 'as_val=${'$as_ac_var'}
14316 $as_echo "$as_val"'`
14317 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14318 $as_echo "$ac_res" >&6; }
14319 as_val=`eval 'as_val=${'$as_ac_var'}
14320 $as_echo "$as_val"'`
14321 if test "x$as_val" = x""yes; then
14322 cat >>confdefs.h <<_ACEOF
14323 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14327 case " $LIBOBJS " in
14328 *" $ac_func.$ac_objext "* ) ;;
14329 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14338 for ac_func in dprintf
14340 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
14341 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14342 $as_echo_n "checking for $ac_func... " >&6; }
14343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14344 $as_echo_n "(cached) " >&6
14346 cat >conftest.$ac_ext <<_ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14354 #define $ac_func innocuous_$ac_func
14356 /* System header to define __stub macros and hopefully few prototypes,
14357 which can conflict with char $ac_func (); below.
14358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14359 <limits.h> exists even on freestanding compilers. */
14362 # include <limits.h>
14364 # include <assert.h>
14369 /* Override any GCC internal prototype to avoid an error.
14370 Use char because int might match the return type of a GCC
14371 builtin and then its argument prototype would still apply. */
14376 /* The GNU C library defines this for functions which it implements
14377 to always fail with ENOSYS. Some functions are actually named
14378 something starting with __ and the normal name is an alias. */
14379 #if defined __stub_$ac_func || defined __stub___$ac_func
14386 return $ac_func ();
14391 rm -f conftest.$ac_objext conftest$ac_exeext
14392 if { (ac_try="$ac_link"
14393 case "(($ac_try" in
14394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14395 *) ac_try_echo
=$ac_try;;
14397 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14398 $as_echo "$ac_try_echo") >&5
14399 (eval "$ac_link") 2>conftest.er1
14401 grep -v '^ *+' conftest.er1
>conftest.err
14403 cat conftest.err
>&5
14404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); } && {
14406 test -z "$ac_c_werror_flag" ||
14407 test ! -s conftest.err
14408 } && test -s conftest
$ac_exeext && {
14409 test "$cross_compiling" = yes ||
14410 $as_test_x conftest
$ac_exeext
14412 eval "$as_ac_var=yes"
14414 $as_echo "$as_me: failed program was:" >&5
14415 sed 's/^/| /' conftest.
$ac_ext >&5
14417 eval "$as_ac_var=no"
14420 rm -rf conftest.dSYM
14421 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14422 conftest
$ac_exeext conftest.
$ac_ext
14424 ac_res
=`eval 'as_val=${'$as_ac_var'}
14425 $as_echo "$as_val"'`
14426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14427 $as_echo "$ac_res" >&6; }
14428 as_val
=`eval 'as_val=${'$as_ac_var'}
14429 $as_echo "$as_val"'`
14430 if test "x$as_val" = x
""yes; then
14431 cat >>confdefs.h
<<_ACEOF
14432 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14436 case " $LIBOBJS " in
14437 *" $ac_func.$ac_objext "* ) ;;
14438 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
14447 for ac_func
in strchrnul
14449 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14450 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14451 $as_echo_n "checking for $ac_func... " >&6; }
14452 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14453 $as_echo_n "(cached) " >&6
14455 cat >conftest.
$ac_ext <<_ACEOF
14458 cat confdefs.h
>>conftest.
$ac_ext
14459 cat >>conftest.
$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14463 #define $ac_func innocuous_$ac_func
14465 /* System header to define __stub macros and hopefully few prototypes,
14466 which can conflict with char $ac_func (); below.
14467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14468 <limits.h> exists even on freestanding compilers. */
14471 # include <limits.h>
14473 # include <assert.h>
14478 /* Override any GCC internal prototype to avoid an error.
14479 Use char because int might match the return type of a GCC
14480 builtin and then its argument prototype would still apply. */
14485 /* The GNU C library defines this for functions which it implements
14486 to always fail with ENOSYS. Some functions are actually named
14487 something starting with __ and the normal name is an alias. */
14488 #if defined __stub_$ac_func || defined __stub___$ac_func
14495 return $ac_func ();
14500 rm -f conftest.
$ac_objext conftest
$ac_exeext
14501 if { (ac_try
="$ac_link"
14502 case "(($ac_try" in
14503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14504 *) ac_try_echo=$ac_try;;
14506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14507 $as_echo "$ac_try_echo") >&5
14508 (eval "$ac_link") 2>conftest.er1
14510 grep -v '^ *+' conftest.er1 >conftest.err
14512 cat conftest.err >&5
14513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); } && {
14515 test -z "$ac_c_werror_flag" ||
14516 test ! -s conftest.err
14517 } && test -s conftest$ac_exeext && {
14518 test "$cross_compiling" = yes ||
14519 $as_test_x conftest$ac_exeext
14521 eval "$as_ac_var=yes"
14523 $as_echo "$as_me: failed program was:" >&5
14524 sed 's/^/| /' conftest.$ac_ext >&5
14526 eval "$as_ac_var=no"
14529 rm -rf conftest.dSYM
14530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14531 conftest$ac_exeext conftest.$ac_ext
14533 ac_res=`eval 'as_val=${'$as_ac_var'}
14534 $as_echo "$as_val"'`
14535 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14536 $as_echo "$ac_res" >&6; }
14537 as_val=`eval 'as_val=${'$as_ac_var'}
14538 $as_echo "$as_val"'`
14539 if test "x$as_val" = x""yes; then
14540 cat >>confdefs.h <<_ACEOF
14541 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14545 case " $LIBOBJS " in
14546 *" $ac_func.$ac_objext "* ) ;;
14547 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14556 { $as_echo "$as_me:$LINENO: checking whether confstr is declared" >&5
14557 $as_echo_n "checking whether confstr is declared... " >&6; }
14558 if test "${ac_cv_have_decl_confstr+set}" = set; then
14559 $as_echo_n "(cached) " >&6
14561 cat >conftest.$ac_ext <<_ACEOF
14564 cat confdefs.h >>conftest.$ac_ext
14565 cat >>conftest.$ac_ext <<_ACEOF
14566 /* end confdefs.h. */
14567 $ac_includes_default
14579 rm -f conftest.$ac_objext
14580 if { (ac_try="$ac_compile"
14581 case "(($ac_try" in
14582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14583 *) ac_try_echo
=$ac_try;;
14585 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14586 $as_echo "$ac_try_echo") >&5
14587 (eval "$ac_compile") 2>conftest.er1
14589 grep -v '^ *+' conftest.er1
>conftest.err
14591 cat conftest.err
>&5
14592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); } && {
14594 test -z "$ac_c_werror_flag" ||
14595 test ! -s conftest.err
14596 } && test -s conftest.
$ac_objext; then
14597 ac_cv_have_decl_confstr
=yes
14599 $as_echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.
$ac_ext >&5
14602 ac_cv_have_decl_confstr
=no
14605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14607 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
14608 $as_echo "$ac_cv_have_decl_confstr" >&6; }
14609 if test "x$ac_cv_have_decl_confstr" = x
""yes; then
14611 cat >>confdefs.h
<<_ACEOF
14612 #define HAVE_DECL_CONFSTR 1
14617 cat >>confdefs.h
<<_ACEOF
14618 #define HAVE_DECL_CONFSTR 0
14625 { $as_echo "$as_me:$LINENO: checking whether printf is declared" >&5
14626 $as_echo_n "checking whether printf is declared... " >&6; }
14627 if test "${ac_cv_have_decl_printf+set}" = set; then
14628 $as_echo_n "(cached) " >&6
14630 cat >conftest.
$ac_ext <<_ACEOF
14633 cat confdefs.h
>>conftest.
$ac_ext
14634 cat >>conftest.
$ac_ext <<_ACEOF
14635 /* end confdefs.h. */
14636 $ac_includes_default
14648 rm -f conftest.
$ac_objext
14649 if { (ac_try
="$ac_compile"
14650 case "(($ac_try" in
14651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14652 *) ac_try_echo=$ac_try;;
14654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14655 $as_echo "$ac_try_echo") >&5
14656 (eval "$ac_compile") 2>conftest.er1
14658 grep -v '^ *+' conftest.er1 >conftest.err
14660 cat conftest.err >&5
14661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); } && {
14663 test -z "$ac_c_werror_flag" ||
14664 test ! -s conftest.err
14665 } && test -s conftest.$ac_objext; then
14666 ac_cv_have_decl_printf=yes
14668 $as_echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14671 ac_cv_have_decl_printf=no
14674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14676 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
14677 $as_echo "$ac_cv_have_decl_printf" >&6; }
14678 if test "x$ac_cv_have_decl_printf" = x""yes; then
14680 cat >>confdefs.h <<_ACEOF
14681 #define HAVE_DECL_PRINTF 1
14686 cat >>confdefs.h <<_ACEOF
14687 #define HAVE_DECL_PRINTF 0
14694 { $as_echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
14695 $as_echo_n "checking whether sbrk is declared... " >&6; }
14696 if test "${ac_cv_have_decl_sbrk+set}" = set; then
14697 $as_echo_n "(cached) " >&6
14699 cat >conftest.$ac_ext <<_ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h. */
14705 $ac_includes_default
14717 rm -f conftest.$ac_objext
14718 if { (ac_try="$ac_compile"
14719 case "(($ac_try" in
14720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14721 *) ac_try_echo
=$ac_try;;
14723 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14724 $as_echo "$ac_try_echo") >&5
14725 (eval "$ac_compile") 2>conftest.er1
14727 grep -v '^ *+' conftest.er1
>conftest.err
14729 cat conftest.err
>&5
14730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } && {
14732 test -z "$ac_c_werror_flag" ||
14733 test ! -s conftest.err
14734 } && test -s conftest.
$ac_objext; then
14735 ac_cv_have_decl_sbrk
=yes
14737 $as_echo "$as_me: failed program was:" >&5
14738 sed 's/^/| /' conftest.
$ac_ext >&5
14740 ac_cv_have_decl_sbrk
=no
14743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14745 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
14746 $as_echo "$ac_cv_have_decl_sbrk" >&6; }
14747 if test "x$ac_cv_have_decl_sbrk" = x
""yes; then
14749 cat >>confdefs.h
<<_ACEOF
14750 #define HAVE_DECL_SBRK 1
14755 cat >>confdefs.h
<<_ACEOF
14756 #define HAVE_DECL_SBRK 0
14763 { $as_echo "$as_me:$LINENO: checking whether setregid is declared" >&5
14764 $as_echo_n "checking whether setregid is declared... " >&6; }
14765 if test "${ac_cv_have_decl_setregid+set}" = set; then
14766 $as_echo_n "(cached) " >&6
14768 cat >conftest.
$ac_ext <<_ACEOF
14771 cat confdefs.h
>>conftest.
$ac_ext
14772 cat >>conftest.
$ac_ext <<_ACEOF
14773 /* end confdefs.h. */
14774 $ac_includes_default
14786 rm -f conftest.
$ac_objext
14787 if { (ac_try
="$ac_compile"
14788 case "(($ac_try" in
14789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14790 *) ac_try_echo=$ac_try;;
14792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14793 $as_echo "$ac_try_echo") >&5
14794 (eval "$ac_compile") 2>conftest.er1
14796 grep -v '^ *+' conftest.er1 >conftest.err
14798 cat conftest.err >&5
14799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } && {
14801 test -z "$ac_c_werror_flag" ||
14802 test ! -s conftest.err
14803 } && test -s conftest.$ac_objext; then
14804 ac_cv_have_decl_setregid=yes
14806 $as_echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14809 ac_cv_have_decl_setregid=no
14812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14814 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
14815 $as_echo "$ac_cv_have_decl_setregid" >&6; }
14816 if test "x$ac_cv_have_decl_setregid" = x""yes; then
14818 cat >>confdefs.h <<_ACEOF
14819 #define HAVE_DECL_SETREGID 1
14824 cat >>confdefs.h <<_ACEOF
14825 #define HAVE_DECL_SETREGID 0
14832 { $as_echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
14833 $as_echo_n "checking whether strcpy is declared... " >&6; }
14834 if test "${ac_cv_have_decl_strcpy+set}" = set; then
14835 $as_echo_n "(cached) " >&6
14837 cat >conftest.$ac_ext <<_ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h. */
14843 $ac_includes_default
14855 rm -f conftest.$ac_objext
14856 if { (ac_try="$ac_compile"
14857 case "(($ac_try" in
14858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14859 *) ac_try_echo
=$ac_try;;
14861 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14862 $as_echo "$ac_try_echo") >&5
14863 (eval "$ac_compile") 2>conftest.er1
14865 grep -v '^ *+' conftest.er1
>conftest.err
14867 cat conftest.err
>&5
14868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); } && {
14870 test -z "$ac_c_werror_flag" ||
14871 test ! -s conftest.err
14872 } && test -s conftest.
$ac_objext; then
14873 ac_cv_have_decl_strcpy
=yes
14875 $as_echo "$as_me: failed program was:" >&5
14876 sed 's/^/| /' conftest.
$ac_ext >&5
14878 ac_cv_have_decl_strcpy
=no
14881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14883 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
14884 $as_echo "$ac_cv_have_decl_strcpy" >&6; }
14885 if test "x$ac_cv_have_decl_strcpy" = x
""yes; then
14887 cat >>confdefs.h
<<_ACEOF
14888 #define HAVE_DECL_STRCPY 1
14893 cat >>confdefs.h
<<_ACEOF
14894 #define HAVE_DECL_STRCPY 0
14901 { $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
14902 $as_echo_n "checking whether strsignal is declared... " >&6; }
14903 if test "${ac_cv_have_decl_strsignal+set}" = set; then
14904 $as_echo_n "(cached) " >&6
14906 cat >conftest.
$ac_ext <<_ACEOF
14909 cat confdefs.h
>>conftest.
$ac_ext
14910 cat >>conftest.
$ac_ext <<_ACEOF
14911 /* end confdefs.h. */
14912 $ac_includes_default
14924 rm -f conftest.
$ac_objext
14925 if { (ac_try
="$ac_compile"
14926 case "(($ac_try" in
14927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14928 *) ac_try_echo=$ac_try;;
14930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14931 $as_echo "$ac_try_echo") >&5
14932 (eval "$ac_compile") 2>conftest.er1
14934 grep -v '^ *+' conftest.er1 >conftest.err
14936 cat conftest.err >&5
14937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } && {
14939 test -z "$ac_c_werror_flag" ||
14940 test ! -s conftest.err
14941 } && test -s conftest.$ac_objext; then
14942 ac_cv_have_decl_strsignal=yes
14944 $as_echo "$as_me: failed program was:" >&5
14945 sed 's/^/| /' conftest.$ac_ext >&5
14947 ac_cv_have_decl_strsignal=no
14950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14952 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
14953 $as_echo "$ac_cv_have_decl_strsignal" >&6; }
14954 if test "x$ac_cv_have_decl_strsignal" = x""yes; then
14956 cat >>confdefs.h <<_ACEOF
14957 #define HAVE_DECL_STRSIGNAL 1
14962 cat >>confdefs.h <<_ACEOF
14963 #define HAVE_DECL_STRSIGNAL 0
14971 { $as_echo "$as_me:$LINENO: checking whether strtold is declared" >&5
14972 $as_echo_n "checking whether strtold is declared... " >&6; }
14973 if test "${ac_cv_have_decl_strtold+set}" = set; then
14974 $as_echo_n "(cached) " >&6
14976 cat >conftest.$ac_ext <<_ACEOF
14979 cat confdefs.h >>conftest.$ac_ext
14980 cat >>conftest.$ac_ext <<_ACEOF
14981 /* end confdefs.h. */
14982 $ac_includes_default
14994 rm -f conftest.$ac_objext
14995 if { (ac_try="$ac_compile"
14996 case "(($ac_try" in
14997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14998 *) ac_try_echo
=$ac_try;;
15000 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15001 $as_echo "$ac_try_echo") >&5
15002 (eval "$ac_compile") 2>conftest.er1
15004 grep -v '^ *+' conftest.er1
>conftest.err
15006 cat conftest.err
>&5
15007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } && {
15009 test -z "$ac_c_werror_flag" ||
15010 test ! -s conftest.err
15011 } && test -s conftest.
$ac_objext; then
15012 ac_cv_have_decl_strtold
=yes
15014 $as_echo "$as_me: failed program was:" >&5
15015 sed 's/^/| /' conftest.
$ac_ext >&5
15017 ac_cv_have_decl_strtold
=no
15020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15022 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
15023 $as_echo "$ac_cv_have_decl_strtold" >&6; }
15024 if test "x$ac_cv_have_decl_strtold" = x
""yes; then
15026 cat >>confdefs.h
<<_ACEOF
15027 #define HAVE_DECL_STRTOLD 1
15031 { $as_echo "$as_me:$LINENO: checking for broken strtold" >&5
15032 $as_echo_n "checking for broken strtold... " >&6; }
15033 if test "${bash_cv_strtold_broken+set}" = set; then
15034 $as_echo_n "(cached) " >&6
15036 cat >conftest.
$ac_ext <<_ACEOF
15039 cat confdefs.h
>>conftest.
$ac_ext
15040 cat >>conftest.
$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15042 #include <stdlib.h>
15046 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
15051 rm -f conftest.
$ac_objext
15052 if { (ac_try
="$ac_compile"
15053 case "(($ac_try" in
15054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15055 *) ac_try_echo=$ac_try;;
15057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15058 $as_echo "$ac_try_echo") >&5
15059 (eval "$ac_compile") 2>conftest.er1
15061 grep -v '^ *+' conftest.er1 >conftest.err
15063 cat conftest.err >&5
15064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } && {
15066 test -z "$ac_c_werror_flag" ||
15067 test ! -s conftest.err
15068 } && test -s conftest.$ac_objext; then
15069 bash_cv_strtold_broken=no
15071 $as_echo "$as_me: failed program was:" >&5
15072 sed 's/^/| /' conftest.$ac_ext >&5
15074 bash_cv_strtold_broken=yes
15077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15082 { $as_echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
15083 $as_echo "$bash_cv_strtold_broken" >&6; }
15084 if test "$bash_cv_strtold_broken" = "yes" ; then
15085 cat >>confdefs.h <<\_ACEOF
15086 #define STRTOLD_BROKEN 1
15092 cat >>confdefs.h <<_ACEOF
15093 #define HAVE_DECL_STRTOLD 0
15105 { $as_echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
15106 $as_echo_n "checking for declaration of strtoimax... " >&6; }
15107 if test "${bash_cv_decl_strtoimax+set}" = set; then
15108 $as_echo_n "(cached) " >&6
15110 cat >conftest.$ac_ext <<_ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h. */
15118 # include <stdlib.h>
15120 #if HAVE_INTTYPES_H
15121 # include <inttypes.h>
15132 rm -f conftest.$ac_objext conftest$ac_exeext
15133 if { (ac_try="$ac_link"
15134 case "(($ac_try" in
15135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15136 *) ac_try_echo
=$ac_try;;
15138 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15139 $as_echo "$ac_try_echo") >&5
15140 (eval "$ac_link") 2>conftest.er1
15142 grep -v '^ *+' conftest.er1
>conftest.err
15144 cat conftest.err
>&5
15145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } && {
15147 test -z "$ac_c_werror_flag" ||
15148 test ! -s conftest.err
15149 } && test -s conftest
$ac_exeext && {
15150 test "$cross_compiling" = yes ||
15151 $as_test_x conftest
$ac_exeext
15153 bash_cv_decl_strtoimax
=yes
15155 $as_echo "$as_me: failed program was:" >&5
15156 sed 's/^/| /' conftest.
$ac_ext >&5
15158 bash_cv_decl_strtoimax
=no
15161 rm -rf conftest.dSYM
15162 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15163 conftest
$ac_exeext conftest.
$ac_ext
15165 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
15166 $as_echo "$bash_cv_decl_strtoimax" >&6; }
15167 bash_tr_func
=HAVE_DECL_
`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15168 if test $bash_cv_decl_strtoimax = yes; then
15169 cat >>confdefs.h
<<_ACEOF
15170 #define $bash_tr_func 1
15174 cat >>confdefs.h
<<_ACEOF
15175 #define $bash_tr_func 0
15183 { $as_echo "$as_me:$LINENO: checking for declaration of strtol" >&5
15184 $as_echo_n "checking for declaration of strtol... " >&6; }
15185 if test "${bash_cv_decl_strtol+set}" = set; then
15186 $as_echo_n "(cached) " >&6
15188 cat >conftest.
$ac_ext <<_ACEOF
15191 cat confdefs.h
>>conftest.
$ac_ext
15192 cat >>conftest.
$ac_ext <<_ACEOF
15193 /* end confdefs.h. */
15196 # include <stdlib.h>
15198 #if HAVE_INTTYPES_H
15199 # include <inttypes.h>
15210 rm -f conftest.
$ac_objext conftest
$ac_exeext
15211 if { (ac_try
="$ac_link"
15212 case "(($ac_try" in
15213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15214 *) ac_try_echo=$ac_try;;
15216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15217 $as_echo "$ac_try_echo") >&5
15218 (eval "$ac_link") 2>conftest.er1
15220 grep -v '^ *+' conftest.er1 >conftest.err
15222 cat conftest.err >&5
15223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } && {
15225 test -z "$ac_c_werror_flag" ||
15226 test ! -s conftest.err
15227 } && test -s conftest$ac_exeext && {
15228 test "$cross_compiling" = yes ||
15229 $as_test_x conftest$ac_exeext
15231 bash_cv_decl_strtol=yes
15233 $as_echo "$as_me: failed program was:" >&5
15234 sed 's/^/| /' conftest.$ac_ext >&5
15236 bash_cv_decl_strtol=no
15239 rm -rf conftest.dSYM
15240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15241 conftest$ac_exeext conftest.$ac_ext
15243 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
15244 $as_echo "$bash_cv_decl_strtol" >&6; }
15245 bash_tr_func=HAVE_DECL_`echo strtol |
tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15246 if test $bash_cv_decl_strtol = yes; then
15247 cat >>confdefs.h <<_ACEOF
15248 #define $bash_tr_func 1
15252 cat >>confdefs.h <<_ACEOF
15253 #define $bash_tr_func 0
15261 { $as_echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
15262 $as_echo_n "checking for declaration of strtoll... " >&6; }
15263 if test "${bash_cv_decl_strtoll+set}" = set; then
15264 $as_echo_n "(cached) " >&6
15266 cat >conftest.$ac_ext <<_ACEOF
15269 cat confdefs.h >>conftest.$ac_ext
15270 cat >>conftest.$ac_ext <<_ACEOF
15271 /* end confdefs.h. */
15274 # include <stdlib.h>
15276 #if HAVE_INTTYPES_H
15277 # include <inttypes.h>
15288 rm -f conftest.$ac_objext conftest$ac_exeext
15289 if { (ac_try="$ac_link"
15290 case "(($ac_try" in
15291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15292 *) ac_try_echo
=$ac_try;;
15294 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15295 $as_echo "$ac_try_echo") >&5
15296 (eval "$ac_link") 2>conftest.er1
15298 grep -v '^ *+' conftest.er1
>conftest.err
15300 cat conftest.err
>&5
15301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); } && {
15303 test -z "$ac_c_werror_flag" ||
15304 test ! -s conftest.err
15305 } && test -s conftest
$ac_exeext && {
15306 test "$cross_compiling" = yes ||
15307 $as_test_x conftest
$ac_exeext
15309 bash_cv_decl_strtoll
=yes
15311 $as_echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.
$ac_ext >&5
15314 bash_cv_decl_strtoll
=no
15317 rm -rf conftest.dSYM
15318 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15319 conftest
$ac_exeext conftest.
$ac_ext
15321 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
15322 $as_echo "$bash_cv_decl_strtoll" >&6; }
15323 bash_tr_func
=HAVE_DECL_
`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15324 if test $bash_cv_decl_strtoll = yes; then
15325 cat >>confdefs.h
<<_ACEOF
15326 #define $bash_tr_func 1
15330 cat >>confdefs.h
<<_ACEOF
15331 #define $bash_tr_func 0
15339 { $as_echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
15340 $as_echo_n "checking for declaration of strtoul... " >&6; }
15341 if test "${bash_cv_decl_strtoul+set}" = set; then
15342 $as_echo_n "(cached) " >&6
15344 cat >conftest.
$ac_ext <<_ACEOF
15347 cat confdefs.h
>>conftest.
$ac_ext
15348 cat >>conftest.
$ac_ext <<_ACEOF
15349 /* end confdefs.h. */
15352 # include <stdlib.h>
15354 #if HAVE_INTTYPES_H
15355 # include <inttypes.h>
15366 rm -f conftest.
$ac_objext conftest
$ac_exeext
15367 if { (ac_try
="$ac_link"
15368 case "(($ac_try" in
15369 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15370 *) ac_try_echo=$ac_try;;
15372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15373 $as_echo "$ac_try_echo") >&5
15374 (eval "$ac_link") 2>conftest.er1
15376 grep -v '^ *+' conftest.er1 >conftest.err
15378 cat conftest.err >&5
15379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } && {
15381 test -z "$ac_c_werror_flag" ||
15382 test ! -s conftest.err
15383 } && test -s conftest$ac_exeext && {
15384 test "$cross_compiling" = yes ||
15385 $as_test_x conftest$ac_exeext
15387 bash_cv_decl_strtoul=yes
15389 $as_echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 bash_cv_decl_strtoul=no
15395 rm -rf conftest.dSYM
15396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15397 conftest$ac_exeext conftest.$ac_ext
15399 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
15400 $as_echo "$bash_cv_decl_strtoul" >&6; }
15401 bash_tr_func=HAVE_DECL_`echo strtoul |
tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15402 if test $bash_cv_decl_strtoul = yes; then
15403 cat >>confdefs.h <<_ACEOF
15404 #define $bash_tr_func 1
15408 cat >>confdefs.h <<_ACEOF
15409 #define $bash_tr_func 0
15417 { $as_echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
15418 $as_echo_n "checking for declaration of strtoull... " >&6; }
15419 if test "${bash_cv_decl_strtoull+set}" = set; then
15420 $as_echo_n "(cached) " >&6
15422 cat >conftest.$ac_ext <<_ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h. */
15430 # include <stdlib.h>
15432 #if HAVE_INTTYPES_H
15433 # include <inttypes.h>
15444 rm -f conftest.$ac_objext conftest$ac_exeext
15445 if { (ac_try="$ac_link"
15446 case "(($ac_try" in
15447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15448 *) ac_try_echo
=$ac_try;;
15450 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15451 $as_echo "$ac_try_echo") >&5
15452 (eval "$ac_link") 2>conftest.er1
15454 grep -v '^ *+' conftest.er1
>conftest.err
15456 cat conftest.err
>&5
15457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } && {
15459 test -z "$ac_c_werror_flag" ||
15460 test ! -s conftest.err
15461 } && test -s conftest
$ac_exeext && {
15462 test "$cross_compiling" = yes ||
15463 $as_test_x conftest
$ac_exeext
15465 bash_cv_decl_strtoull
=yes
15467 $as_echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.
$ac_ext >&5
15470 bash_cv_decl_strtoull
=no
15473 rm -rf conftest.dSYM
15474 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15475 conftest
$ac_exeext conftest.
$ac_ext
15477 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
15478 $as_echo "$bash_cv_decl_strtoull" >&6; }
15479 bash_tr_func
=HAVE_DECL_
`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15480 if test $bash_cv_decl_strtoull = yes; then
15481 cat >>confdefs.h
<<_ACEOF
15482 #define $bash_tr_func 1
15486 cat >>confdefs.h
<<_ACEOF
15487 #define $bash_tr_func 0
15495 { $as_echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
15496 $as_echo_n "checking for declaration of strtoumax... " >&6; }
15497 if test "${bash_cv_decl_strtoumax+set}" = set; then
15498 $as_echo_n "(cached) " >&6
15500 cat >conftest.
$ac_ext <<_ACEOF
15503 cat confdefs.h
>>conftest.
$ac_ext
15504 cat >>conftest.
$ac_ext <<_ACEOF
15505 /* end confdefs.h. */
15508 # include <stdlib.h>
15510 #if HAVE_INTTYPES_H
15511 # include <inttypes.h>
15522 rm -f conftest.
$ac_objext conftest
$ac_exeext
15523 if { (ac_try
="$ac_link"
15524 case "(($ac_try" in
15525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15529 $as_echo "$ac_try_echo") >&5
15530 (eval "$ac_link") 2>conftest.er1
15532 grep -v '^ *+' conftest.er1 >conftest.err
15534 cat conftest.err >&5
15535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } && {
15537 test -z "$ac_c_werror_flag" ||
15538 test ! -s conftest.err
15539 } && test -s conftest$ac_exeext && {
15540 test "$cross_compiling" = yes ||
15541 $as_test_x conftest$ac_exeext
15543 bash_cv_decl_strtoumax=yes
15545 $as_echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.$ac_ext >&5
15548 bash_cv_decl_strtoumax=no
15551 rm -rf conftest.dSYM
15552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15553 conftest$ac_exeext conftest.$ac_ext
15555 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
15556 $as_echo "$bash_cv_decl_strtoumax" >&6; }
15557 bash_tr_func=HAVE_DECL_`echo strtoumax |
tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15558 if test $bash_cv_decl_strtoumax = yes; then
15559 cat >>confdefs.h <<_ACEOF
15560 #define $bash_tr_func 1
15564 cat >>confdefs.h <<_ACEOF
15565 #define $bash_tr_func 0
15575 for ac_header in $ac_header_list
15577 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
15578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15579 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15580 $as_echo_n "checking for $ac_header... " >&6; }
15581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15582 $as_echo_n "(cached) " >&6
15584 ac_res=`eval 'as_val=${'$as_ac_Header'}
15585 $as_echo "$as_val"'`
15586 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15587 $as_echo "$ac_res" >&6; }
15589 # Is the header compilable?
15590 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15591 $as_echo_n "checking $ac_header usability... " >&6; }
15592 cat >conftest.$ac_ext <<_ACEOF
15595 cat confdefs.h >>conftest.$ac_ext
15596 cat >>conftest.$ac_ext <<_ACEOF
15597 /* end confdefs.h. */
15598 $ac_includes_default
15599 #include <$ac_header>
15601 rm -f conftest.$ac_objext
15602 if { (ac_try="$ac_compile"
15603 case "(($ac_try" in
15604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15605 *) ac_try_echo
=$ac_try;;
15607 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15608 $as_echo "$ac_try_echo") >&5
15609 (eval "$ac_compile") 2>conftest.er1
15611 grep -v '^ *+' conftest.er1
>conftest.err
15613 cat conftest.err
>&5
15614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); } && {
15616 test -z "$ac_c_werror_flag" ||
15617 test ! -s conftest.err
15618 } && test -s conftest.
$ac_objext; then
15619 ac_header_compiler
=yes
15621 $as_echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.
$ac_ext >&5
15624 ac_header_compiler
=no
15627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15628 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15629 $as_echo "$ac_header_compiler" >&6; }
15631 # Is the header present?
15632 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15633 $as_echo_n "checking $ac_header presence... " >&6; }
15634 cat >conftest.
$ac_ext <<_ACEOF
15637 cat confdefs.h
>>conftest.
$ac_ext
15638 cat >>conftest.
$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15640 #include <$ac_header>
15642 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15643 case "(($ac_try" in
15644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15648 $as_echo "$ac_try_echo") >&5
15649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15651 grep -v '^ *+' conftest.er1 >conftest.err
15653 cat conftest.err >&5
15654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } >/dev/null && {
15656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15657 test ! -s conftest.err
15659 ac_header_preproc=yes
15661 $as_echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15664 ac_header_preproc=no
15667 rm -f conftest.err conftest.$ac_ext
15668 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15669 $as_echo "$ac_header_preproc" >&6; }
15671 # So? What about this header?
15672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15675 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15677 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15678 ac_header_preproc=yes
15681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15682 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15684 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15686 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15688 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15690 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15692 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15694 ## ------------------------------- ##
15695 ## Report this to bug-bash@gnu.org ##
15696 ## ------------------------------- ##
15698 ) | sed "s/^/$as_me: WARNING: /" >&2
15701 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15702 $as_echo_n "checking for $ac_header... " >&6; }
15703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15704 $as_echo_n "(cached) " >&6
15706 eval "$as_ac_Header=\$ac_header_preproc"
15708 ac_res=`eval 'as_val=${'$as_ac_Header'}
15709 $as_echo "$as_val"'`
15710 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15711 $as_echo "$ac_res" >&6; }
15714 as_val=`eval 'as_val=${'$as_ac_Header'}
15715 $as_echo "$as_val"'`
15716 if test "x$as_val" = x""yes; then
15717 cat >>confdefs.h <<_ACEOF
15718 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
15733 for ac_func in $ac_func_list
15735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15736 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15737 $as_echo_n "checking for $ac_func... " >&6; }
15738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15739 $as_echo_n "(cached) " >&6
15741 cat >conftest.$ac_ext <<_ACEOF
15744 cat confdefs.h >>conftest.$ac_ext
15745 cat >>conftest.$ac_ext <<_ACEOF
15746 /* end confdefs.h. */
15747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15749 #define $ac_func innocuous_$ac_func
15751 /* System header to define __stub macros and hopefully few prototypes,
15752 which can conflict with char $ac_func (); below.
15753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15754 <limits.h> exists even on freestanding compilers. */
15757 # include <limits.h>
15759 # include <assert.h>
15764 /* Override any GCC internal prototype to avoid an error.
15765 Use char because int might match the return type of a GCC
15766 builtin and then its argument prototype would still apply. */
15771 /* The GNU C library defines this for functions which it implements
15772 to always fail with ENOSYS. Some functions are actually named
15773 something starting with __ and the normal name is an alias. */
15774 #if defined __stub_$ac_func || defined __stub___$ac_func
15781 return $ac_func ();
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (ac_try="$ac_link"
15788 case "(($ac_try" in
15789 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15790 *) ac_try_echo
=$ac_try;;
15792 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15793 $as_echo "$ac_try_echo") >&5
15794 (eval "$ac_link") 2>conftest.er1
15796 grep -v '^ *+' conftest.er1
>conftest.err
15798 cat conftest.err
>&5
15799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } && {
15801 test -z "$ac_c_werror_flag" ||
15802 test ! -s conftest.err
15803 } && test -s conftest
$ac_exeext && {
15804 test "$cross_compiling" = yes ||
15805 $as_test_x conftest
$ac_exeext
15807 eval "$as_ac_var=yes"
15809 $as_echo "$as_me: failed program was:" >&5
15810 sed 's/^/| /' conftest.
$ac_ext >&5
15812 eval "$as_ac_var=no"
15815 rm -rf conftest.dSYM
15816 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15817 conftest
$ac_exeext conftest.
$ac_ext
15819 ac_res
=`eval 'as_val=${'$as_ac_var'}
15820 $as_echo "$as_val"'`
15821 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15822 $as_echo "$ac_res" >&6; }
15823 as_val
=`eval 'as_val=${'$as_ac_var'}
15824 $as_echo "$as_val"'`
15825 if test "x$as_val" = x
""yes; then
15826 cat >>confdefs.h
<<_ACEOF
15827 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15849 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
15850 $as_echo_n "checking for working mktime... " >&6; }
15851 if test "${ac_cv_func_working_mktime+set}" = set; then
15852 $as_echo_n "(cached) " >&6
15854 if test "$cross_compiling" = yes; then
15855 ac_cv_func_working_mktime
=no
15857 cat >conftest.
$ac_ext <<_ACEOF
15860 cat confdefs.h
>>conftest.
$ac_ext
15861 cat >>conftest.
$ac_ext <<_ACEOF
15862 /* end confdefs.h. */
15863 /* Test program from Paul Eggert and Tony Leneis. */
15864 #ifdef TIME_WITH_SYS_TIME
15865 # include <sys/time.h>
15868 # ifdef HAVE_SYS_TIME_H
15869 # include <sys/time.h>
15875 #include <limits.h>
15876 #include <stdlib.h>
15878 #ifdef HAVE_UNISTD_H
15879 # include <unistd.h>
15883 # define alarm(X) /* empty */
15886 /* Work around redefinition to rpl_putenv by other config tests. */
15889 static time_t time_t_max;
15890 static time_t time_t_min;
15892 /* Values we'll use to set the TZ environment variable. */
15893 static char *tz_strings[] = {
15894 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15895 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15897 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15899 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15900 Based on a problem report from Andreas Jaeger. */
15902 spring_forward_gap ()
15904 /* glibc (up to about 1998-10-07) failed this test. */
15907 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15908 instead of "TZ=America/Vancouver" in order to detect the bug even
15909 on systems that don't support the Olson extension, or don't have the
15910 full zoneinfo tables installed. */
15911 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15920 return mktime (&tm) != (time_t) -1;
15928 return ! (lt = localtime (&now)) || mktime (lt) == now;
15935 return (mktime_test1 (now)
15936 && mktime_test1 ((time_t) (time_t_max - now))
15937 && mktime_test1 ((time_t) (time_t_min + now)));
15943 /* Based on code from Ariel Faigon. */
15953 return tm.tm_mon == 2 && tm.tm_mday == 31;
15962 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15963 now = mktime (&tm);
15964 if (now != (time_t) -1)
15966 struct tm *lt = localtime (&now);
15968 && lt->tm_year == tm.tm_year
15969 && lt->tm_mon == tm.tm_mon
15970 && lt->tm_mday == tm.tm_mday
15971 && lt->tm_hour == tm.tm_hour
15972 && lt->tm_min == tm.tm_min
15973 && lt->tm_sec == tm.tm_sec
15974 && lt->tm_yday == tm.tm_yday
15975 && lt->tm_wday == tm.tm_wday
15976 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15977 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15986 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15987 ignoring leap seconds. */
15988 unsigned long int answer = 2527315200UL;
15992 tm.tm_year = 2050 - 1900;
15995 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15998 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15999 instead of "TZ=America/Vancouver" in order to detect the bug even
16000 on systems that don't support the Olson extension, or don't have the
16001 full zoneinfo tables installed. */
16002 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16006 /* Check that the result is either a failure, or close enough
16007 to the correct answer that we can assume the discrepancy is
16008 due to leap seconds. */
16009 return (t == (time_t) -1
16010 || (0 < t && answer - 120 <= t && t <= answer + 120));
16019 /* This test makes some buggy mktime implementations loop.
16020 Give up after 60 seconds; a mktime slower than that
16021 isn't worth using anyway. */
16026 t = (time_t_max << 1) + 1;
16027 if (t <= time_t_max)
16031 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16033 delta = time_t_max / 997; /* a suitable prime number */
16034 for (i = 0; i < N_STRINGS; i++)
16037 putenv (tz_strings[i]);
16039 for (t = 0; t <= time_t_max - delta; t += delta)
16040 if (! mktime_test (t))
16042 if (! (mktime_test ((time_t) 1)
16043 && mktime_test ((time_t) (60 * 60))
16044 && mktime_test ((time_t) (60 * 60 * 24))))
16047 for (j = 1; ; j <<= 1)
16048 if (! bigtime_test (j))
16050 else if (INT_MAX / 2 < j)
16052 if (! bigtime_test (INT_MAX))
16055 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16058 rm -f conftest
$ac_exeext
16059 if { (ac_try
="$ac_link"
16060 case "(($ac_try" in
16061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16065 $as_echo "$ac_try_echo") >&5
16066 (eval "$ac_link") 2>&5
16068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
16078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; }; then
16080 ac_cv_func_working_mktime
=yes
16082 $as_echo "$as_me: program exited with status $ac_status" >&5
16083 $as_echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.
$ac_ext >&5
16086 ( exit $ac_status )
16087 ac_cv_func_working_mktime
=no
16089 rm -rf conftest.dSYM
16090 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16095 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16096 $as_echo "$ac_cv_func_working_mktime" >&6; }
16097 if test $ac_cv_func_working_mktime = no
; then
16098 case " $LIBOBJS " in
16099 *" mktime.$ac_objext "* ) ;;
16100 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
16113 for ac_header
in argz.h errno.h fcntl.h malloc.h stdio_ext.h
16115 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16116 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16117 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16118 $as_echo_n "checking for $ac_header... " >&6; }
16119 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16120 $as_echo_n "(cached) " >&6
16122 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16123 $as_echo "$as_val"'`
16124 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16125 $as_echo "$ac_res" >&6; }
16127 # Is the header compilable?
16128 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16129 $as_echo_n "checking $ac_header usability... " >&6; }
16130 cat >conftest.
$ac_ext <<_ACEOF
16133 cat confdefs.h
>>conftest.
$ac_ext
16134 cat >>conftest.
$ac_ext <<_ACEOF
16135 /* end confdefs.h. */
16136 $ac_includes_default
16137 #include <$ac_header>
16139 rm -f conftest.
$ac_objext
16140 if { (ac_try
="$ac_compile"
16141 case "(($ac_try" in
16142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16143 *) ac_try_echo=$ac_try;;
16145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16146 $as_echo "$ac_try_echo") >&5
16147 (eval "$ac_compile") 2>conftest.er1
16149 grep -v '^ *+' conftest.er1 >conftest.err
16151 cat conftest.err >&5
16152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); } && {
16154 test -z "$ac_c_werror_flag" ||
16155 test ! -s conftest.err
16156 } && test -s conftest.$ac_objext; then
16157 ac_header_compiler=yes
16159 $as_echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16162 ac_header_compiler=no
16165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16166 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16167 $as_echo "$ac_header_compiler" >&6; }
16169 # Is the header present?
16170 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16171 $as_echo_n "checking $ac_header presence... " >&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 #include <$ac_header>
16180 if { (ac_try="$ac_cpp conftest.$ac_ext"
16181 case "(($ac_try" in
16182 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16183 *) ac_try_echo
=$ac_try;;
16185 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16186 $as_echo "$ac_try_echo") >&5
16187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16189 grep -v '^ *+' conftest.er1
>conftest.err
16191 cat conftest.err
>&5
16192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } >/dev
/null
&& {
16194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16195 test ! -s conftest.err
16197 ac_header_preproc
=yes
16199 $as_echo "$as_me: failed program was:" >&5
16200 sed 's/^/| /' conftest.
$ac_ext >&5
16202 ac_header_preproc
=no
16205 rm -f conftest.err conftest.
$ac_ext
16206 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16207 $as_echo "$ac_header_preproc" >&6; }
16209 # So? What about this header?
16210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16213 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16215 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16216 ac_header_preproc
=yes
16219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16220 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16222 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16224 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16226 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16228 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16230 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16232 ## ------------------------------- ##
16233 ## Report this to bug-bash@gnu.org ##
16234 ## ------------------------------- ##
16236 ) |
sed "s/^/$as_me: WARNING: /" >&2
16239 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16240 $as_echo_n "checking for $ac_header... " >&6; }
16241 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16242 $as_echo_n "(cached) " >&6
16244 eval "$as_ac_Header=\$ac_header_preproc"
16246 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16247 $as_echo "$as_val"'`
16248 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16249 $as_echo "$ac_res" >&6; }
16252 as_val
=`eval 'as_val=${'$as_ac_Header'}
16253 $as_echo "$as_val"'`
16254 if test "x$as_val" = x
""yes; then
16255 cat >>confdefs.h
<<_ACEOF
16256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16266 for ac_header
in stdlib.h unistd.h
16268 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16269 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16270 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16271 $as_echo_n "checking for $ac_header... " >&6; }
16272 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16273 $as_echo_n "(cached) " >&6
16275 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16276 $as_echo "$as_val"'`
16277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16278 $as_echo "$ac_res" >&6; }
16280 # Is the header compilable?
16281 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16282 $as_echo_n "checking $ac_header usability... " >&6; }
16283 cat >conftest.
$ac_ext <<_ACEOF
16286 cat confdefs.h
>>conftest.
$ac_ext
16287 cat >>conftest.
$ac_ext <<_ACEOF
16288 /* end confdefs.h. */
16289 $ac_includes_default
16290 #include <$ac_header>
16292 rm -f conftest.
$ac_objext
16293 if { (ac_try
="$ac_compile"
16294 case "(($ac_try" in
16295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16299 $as_echo "$ac_try_echo") >&5
16300 (eval "$ac_compile") 2>conftest.er1
16302 grep -v '^ *+' conftest.er1 >conftest.err
16304 cat conftest.err >&5
16305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } && {
16307 test -z "$ac_c_werror_flag" ||
16308 test ! -s conftest.err
16309 } && test -s conftest.$ac_objext; then
16310 ac_header_compiler=yes
16312 $as_echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16315 ac_header_compiler=no
16318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16319 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16320 $as_echo "$ac_header_compiler" >&6; }
16322 # Is the header present?
16323 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16324 $as_echo_n "checking $ac_header presence... " >&6; }
16325 cat >conftest.$ac_ext <<_ACEOF
16328 cat confdefs.h >>conftest.$ac_ext
16329 cat >>conftest.$ac_ext <<_ACEOF
16330 /* end confdefs.h. */
16331 #include <$ac_header>
16333 if { (ac_try="$ac_cpp conftest.$ac_ext"
16334 case "(($ac_try" in
16335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16336 *) ac_try_echo
=$ac_try;;
16338 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16339 $as_echo "$ac_try_echo") >&5
16340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16342 grep -v '^ *+' conftest.er1
>conftest.err
16344 cat conftest.err
>&5
16345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); } >/dev
/null
&& {
16347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16348 test ! -s conftest.err
16350 ac_header_preproc
=yes
16352 $as_echo "$as_me: failed program was:" >&5
16353 sed 's/^/| /' conftest.
$ac_ext >&5
16355 ac_header_preproc
=no
16358 rm -f conftest.err conftest.
$ac_ext
16359 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16360 $as_echo "$ac_header_preproc" >&6; }
16362 # So? What about this header?
16363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16366 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16368 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16369 ac_header_preproc
=yes
16372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16373 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16375 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16377 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16379 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16381 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16383 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16385 ## ------------------------------- ##
16386 ## Report this to bug-bash@gnu.org ##
16387 ## ------------------------------- ##
16389 ) |
sed "s/^/$as_me: WARNING: /" >&2
16392 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16393 $as_echo_n "checking for $ac_header... " >&6; }
16394 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16395 $as_echo_n "(cached) " >&6
16397 eval "$as_ac_Header=\$ac_header_preproc"
16399 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16400 $as_echo "$as_val"'`
16401 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16402 $as_echo "$ac_res" >&6; }
16405 as_val
=`eval 'as_val=${'$as_ac_Header'}
16406 $as_echo "$as_val"'`
16407 if test "x$as_val" = x
""yes; then
16408 cat >>confdefs.h
<<_ACEOF
16409 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16417 for ac_func
in getpagesize
16419 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16420 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16421 $as_echo_n "checking for $ac_func... " >&6; }
16422 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16423 $as_echo_n "(cached) " >&6
16425 cat >conftest.
$ac_ext <<_ACEOF
16428 cat confdefs.h
>>conftest.
$ac_ext
16429 cat >>conftest.
$ac_ext <<_ACEOF
16430 /* end confdefs.h. */
16431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16433 #define $ac_func innocuous_$ac_func
16435 /* System header to define __stub macros and hopefully few prototypes,
16436 which can conflict with char $ac_func (); below.
16437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16438 <limits.h> exists even on freestanding compilers. */
16441 # include <limits.h>
16443 # include <assert.h>
16448 /* Override any GCC internal prototype to avoid an error.
16449 Use char because int might match the return type of a GCC
16450 builtin and then its argument prototype would still apply. */
16455 /* The GNU C library defines this for functions which it implements
16456 to always fail with ENOSYS. Some functions are actually named
16457 something starting with __ and the normal name is an alias. */
16458 #if defined __stub_$ac_func || defined __stub___$ac_func
16465 return $ac_func ();
16470 rm -f conftest.
$ac_objext conftest
$ac_exeext
16471 if { (ac_try
="$ac_link"
16472 case "(($ac_try" in
16473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16477 $as_echo "$ac_try_echo") >&5
16478 (eval "$ac_link") 2>conftest.er1
16480 grep -v '^ *+' conftest.er1 >conftest.err
16482 cat conftest.err >&5
16483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); } && {
16485 test -z "$ac_c_werror_flag" ||
16486 test ! -s conftest.err
16487 } && test -s conftest$ac_exeext && {
16488 test "$cross_compiling" = yes ||
16489 $as_test_x conftest$ac_exeext
16491 eval "$as_ac_var=yes"
16493 $as_echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16496 eval "$as_ac_var=no"
16499 rm -rf conftest.dSYM
16500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16501 conftest$ac_exeext conftest.$ac_ext
16503 ac_res=`eval 'as_val=${'$as_ac_var'}
16504 $as_echo "$as_val"'`
16505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16506 $as_echo "$ac_res" >&6; }
16507 as_val=`eval 'as_val=${'$as_ac_var'}
16508 $as_echo "$as_val"'`
16509 if test "x$as_val" = x""yes; then
16510 cat >>confdefs.h <<_ACEOF
16511 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16517 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
16518 $as_echo_n "checking for working mmap... " >&6; }
16519 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16520 $as_echo_n "(cached) " >&6
16522 if test "$cross_compiling" = yes; then
16523 ac_cv_func_mmap_fixed_mapped=no
16525 cat >conftest.$ac_ext <<_ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h. */
16531 $ac_includes_default
16532 /* malloc might have been renamed as rpl_malloc. */
16535 /* Thanks to Mike Haertel and Jim Avera for this test.
16536 Here is a matrix of mmap possibilities:
16537 mmap private not fixed
16538 mmap private fixed at somewhere currently unmapped
16539 mmap private fixed at somewhere already mapped
16540 mmap shared not fixed
16541 mmap shared fixed at somewhere currently unmapped
16542 mmap shared fixed at somewhere already mapped
16543 For private mappings, we should verify that changes cannot be read()
16544 back from the file, nor mmap's back from the file at a different
16545 address. (There have been systems where private was not correctly
16546 implemented like the infamous i386 svr4.0, and systems where the
16547 VM page cache was not coherent with the file system buffer cache
16548 like early versions of FreeBSD and possibly contemporary NetBSD.)
16549 For shared mappings, we should conversely verify that changes get
16550 propagated back to all the places they're supposed to be.
16552 Grep wants private fixed already mapped.
16553 The main things grep needs to know about mmap are:
16554 * does it exist and is it safe to write into the mmap'd area
16555 * how to use it (BSD variants) */
16558 #include <sys/mman.h>
16560 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16564 /* This mess was copied from the GNU getpagesize.h. */
16565 #ifndef HAVE_GETPAGESIZE
16566 /* Assume that all systems that can run configure have sys/param.h. */
16567 # ifndef HAVE_SYS_PARAM_H
16568 # define HAVE_SYS_PARAM_H 1
16571 # ifdef _SC_PAGESIZE
16572 # define getpagesize() sysconf(_SC_PAGESIZE)
16573 # else /* no _SC_PAGESIZE */
16574 # ifdef HAVE_SYS_PARAM_H
16575 # include <sys/param.h>
16576 # ifdef EXEC_PAGESIZE
16577 # define getpagesize() EXEC_PAGESIZE
16578 # else /* no EXEC_PAGESIZE */
16580 # define getpagesize() NBPG * CLSIZE
16583 # endif /* no CLSIZE */
16584 # else /* no NBPG */
16586 # define getpagesize() NBPC
16587 # else /* no NBPC */
16589 # define getpagesize() PAGESIZE
16590 # endif /* PAGESIZE */
16591 # endif /* no NBPC */
16592 # endif /* no NBPG */
16593 # endif /* no EXEC_PAGESIZE */
16594 # else /* no HAVE_SYS_PARAM_H */
16595 # define getpagesize() 8192 /* punt totally */
16596 # endif /* no HAVE_SYS_PARAM_H */
16597 # endif /* no _SC_PAGESIZE */
16599 #endif /* no HAVE_GETPAGESIZE */
16604 char *data, *data2, *data3;
16608 pagesize = getpagesize ();
16610 /* First, make a file with some known garbage in it. */
16611 data = (char *) malloc (pagesize);
16614 for (i = 0; i < pagesize; ++i)
16615 *(data + i) = rand ();
16617 fd = creat ("conftest.mmap", 0600);
16620 if (write (fd, data, pagesize) != pagesize)
16624 /* Next, try to mmap the file at a fixed address which already has
16625 something else allocated at it. If we can, also make sure that
16626 we see the same garbage. */
16627 fd = open ("conftest.mmap", O_RDWR);
16630 data2 = (char *) malloc (2 * pagesize);
16633 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16634 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16635 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16637 for (i = 0; i < pagesize; ++i)
16638 if (*(data + i) != *(data2 + i))
16641 /* Finally, make sure that changes to the mapped area do not
16642 percolate back to the file as seen by read(). (This is a bug on
16643 some variants of i386 svr4.0.) */
16644 for (i = 0; i < pagesize; ++i)
16645 *(data2 + i) = *(data2 + i) + 1;
16646 data3 = (char *) malloc (pagesize);
16649 if (read (fd, data3, pagesize) != pagesize)
16651 for (i = 0; i < pagesize; ++i)
16652 if (*(data + i) != *(data3 + i))
16658 rm -f 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>&5
16668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16670 { (case "(($ac_try" in
16671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16675 $as_echo "$ac_try_echo") >&5
16676 (eval "$ac_try") 2>&5
16678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; }; then
16680 ac_cv_func_mmap_fixed_mapped=yes
16682 $as_echo "$as_me: program exited with status $ac_status" >&5
16683 $as_echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16686 ( exit $ac_status )
16687 ac_cv_func_mmap_fixed_mapped=no
16689 rm -rf conftest.dSYM
16690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16695 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16696 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16697 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16699 cat >>confdefs.h <<\_ACEOF
16700 #define HAVE_MMAP 1
16704 rm -f conftest.mmap
16715 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
16716 munmap stpcpy strcspn strdup
16718 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16719 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16720 $as_echo_n "checking for $ac_func... " >&6; }
16721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16722 $as_echo_n "(cached) " >&6
16724 cat >conftest.$ac_ext <<_ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h. */
16730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16732 #define $ac_func innocuous_$ac_func
16734 /* System header to define __stub macros and hopefully few prototypes,
16735 which can conflict with char $ac_func (); below.
16736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16737 <limits.h> exists even on freestanding compilers. */
16740 # include <limits.h>
16742 # include <assert.h>
16747 /* Override any GCC internal prototype to avoid an error.
16748 Use char because int might match the return type of a GCC
16749 builtin and then its argument prototype would still apply. */
16754 /* The GNU C library defines this for functions which it implements
16755 to always fail with ENOSYS. Some functions are actually named
16756 something starting with __ and the normal name is an alias. */
16757 #if defined __stub_$ac_func || defined __stub___$ac_func
16764 return $ac_func ();
16769 rm -f conftest.$ac_objext conftest$ac_exeext
16770 if { (ac_try="$ac_link"
16771 case "(($ac_try" in
16772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16773 *) ac_try_echo
=$ac_try;;
16775 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16776 $as_echo "$ac_try_echo") >&5
16777 (eval "$ac_link") 2>conftest.er1
16779 grep -v '^ *+' conftest.er1
>conftest.err
16781 cat conftest.err
>&5
16782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); } && {
16784 test -z "$ac_c_werror_flag" ||
16785 test ! -s conftest.err
16786 } && test -s conftest
$ac_exeext && {
16787 test "$cross_compiling" = yes ||
16788 $as_test_x conftest
$ac_exeext
16790 eval "$as_ac_var=yes"
16792 $as_echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.
$ac_ext >&5
16795 eval "$as_ac_var=no"
16798 rm -rf conftest.dSYM
16799 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16800 conftest
$ac_exeext conftest.
$ac_ext
16802 ac_res
=`eval 'as_val=${'$as_ac_var'}
16803 $as_echo "$as_val"'`
16804 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16805 $as_echo "$ac_res" >&6; }
16806 as_val
=`eval 'as_val=${'$as_ac_var'}
16807 $as_echo "$as_val"'`
16808 if test "x$as_val" = x
""yes; then
16809 cat >>confdefs.h
<<_ACEOF
16810 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16817 INTL_DEP
= INTL_INC
= LIBINTL_H
=
16818 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
16819 INTL_DEP
='${INTL_LIBDIR}/libintl.a'
16820 INTL_INC
='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
16821 LIBINTL_H
='${INTL_BUILDDIR}/libintl.h'
16830 for ac_header
in wctype.h
16832 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16833 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16834 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16835 $as_echo_n "checking for $ac_header... " >&6; }
16836 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16837 $as_echo_n "(cached) " >&6
16839 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16840 $as_echo "$as_val"'`
16841 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16842 $as_echo "$ac_res" >&6; }
16844 # Is the header compilable?
16845 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16846 $as_echo_n "checking $ac_header usability... " >&6; }
16847 cat >conftest.
$ac_ext <<_ACEOF
16850 cat confdefs.h
>>conftest.
$ac_ext
16851 cat >>conftest.
$ac_ext <<_ACEOF
16852 /* end confdefs.h. */
16853 $ac_includes_default
16854 #include <$ac_header>
16856 rm -f conftest.
$ac_objext
16857 if { (ac_try
="$ac_compile"
16858 case "(($ac_try" in
16859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16863 $as_echo "$ac_try_echo") >&5
16864 (eval "$ac_compile") 2>conftest.er1
16866 grep -v '^ *+' conftest.er1 >conftest.err
16868 cat conftest.err >&5
16869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } && {
16871 test -z "$ac_c_werror_flag" ||
16872 test ! -s conftest.err
16873 } && test -s conftest.$ac_objext; then
16874 ac_header_compiler=yes
16876 $as_echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16879 ac_header_compiler=no
16882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16883 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16884 $as_echo "$ac_header_compiler" >&6; }
16886 # Is the header present?
16887 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16888 $as_echo_n "checking $ac_header presence... " >&6; }
16889 cat >conftest.$ac_ext <<_ACEOF
16892 cat confdefs.h >>conftest.$ac_ext
16893 cat >>conftest.$ac_ext <<_ACEOF
16894 /* end confdefs.h. */
16895 #include <$ac_header>
16897 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev
/null
&& {
16911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16912 test ! -s conftest.err
16914 ac_header_preproc
=yes
16916 $as_echo "$as_me: failed program was:" >&5
16917 sed 's/^/| /' conftest.
$ac_ext >&5
16919 ac_header_preproc
=no
16922 rm -f conftest.err conftest.
$ac_ext
16923 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16924 $as_echo "$ac_header_preproc" >&6; }
16926 # So? What about this header?
16927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16930 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16932 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16933 ac_header_preproc
=yes
16936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16937 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16939 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16941 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16943 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16945 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16947 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16949 ## ------------------------------- ##
16950 ## Report this to bug-bash@gnu.org ##
16951 ## ------------------------------- ##
16953 ) |
sed "s/^/$as_me: WARNING: /" >&2
16956 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16957 $as_echo_n "checking for $ac_header... " >&6; }
16958 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16959 $as_echo_n "(cached) " >&6
16961 eval "$as_ac_Header=\$ac_header_preproc"
16963 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16964 $as_echo "$as_val"'`
16965 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16966 $as_echo "$ac_res" >&6; }
16969 as_val
=`eval 'as_val=${'$as_ac_Header'}
16970 $as_echo "$as_val"'`
16971 if test "x$as_val" = x
""yes; then
16972 cat >>confdefs.h
<<_ACEOF
16973 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16981 for ac_header
in wchar.h
16983 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16984 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16985 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16986 $as_echo_n "checking for $ac_header... " >&6; }
16987 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16988 $as_echo_n "(cached) " >&6
16990 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16991 $as_echo "$as_val"'`
16992 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16993 $as_echo "$ac_res" >&6; }
16995 # Is the header compilable?
16996 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16997 $as_echo_n "checking $ac_header usability... " >&6; }
16998 cat >conftest.
$ac_ext <<_ACEOF
17001 cat confdefs.h
>>conftest.
$ac_ext
17002 cat >>conftest.
$ac_ext <<_ACEOF
17003 /* end confdefs.h. */
17004 $ac_includes_default
17005 #include <$ac_header>
17007 rm -f conftest.
$ac_objext
17008 if { (ac_try
="$ac_compile"
17009 case "(($ac_try" in
17010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17011 *) ac_try_echo=$ac_try;;
17013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17014 $as_echo "$ac_try_echo") >&5
17015 (eval "$ac_compile") 2>conftest.er1
17017 grep -v '^ *+' conftest.er1 >conftest.err
17019 cat conftest.err >&5
17020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } && {
17022 test -z "$ac_c_werror_flag" ||
17023 test ! -s conftest.err
17024 } && test -s conftest.$ac_objext; then
17025 ac_header_compiler=yes
17027 $as_echo "$as_me: failed program was:" >&5
17028 sed 's/^/| /' conftest.$ac_ext >&5
17030 ac_header_compiler=no
17033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17034 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17035 $as_echo "$ac_header_compiler" >&6; }
17037 # Is the header present?
17038 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17039 $as_echo_n "checking $ac_header presence... " >&6; }
17040 cat >conftest.$ac_ext <<_ACEOF
17043 cat confdefs.h >>conftest.$ac_ext
17044 cat >>conftest.$ac_ext <<_ACEOF
17045 /* end confdefs.h. */
17046 #include <$ac_header>
17048 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev
/null
&& {
17062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17063 test ! -s conftest.err
17065 ac_header_preproc
=yes
17067 $as_echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.
$ac_ext >&5
17070 ac_header_preproc
=no
17073 rm -f conftest.err conftest.
$ac_ext
17074 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17075 $as_echo "$ac_header_preproc" >&6; }
17077 # So? What about this header?
17078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17081 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17083 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17084 ac_header_preproc
=yes
17087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17088 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17090 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17092 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17094 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17096 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17098 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17100 ## ------------------------------- ##
17101 ## Report this to bug-bash@gnu.org ##
17102 ## ------------------------------- ##
17104 ) |
sed "s/^/$as_me: WARNING: /" >&2
17107 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17108 $as_echo_n "checking for $ac_header... " >&6; }
17109 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17110 $as_echo_n "(cached) " >&6
17112 eval "$as_ac_Header=\$ac_header_preproc"
17114 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17115 $as_echo "$as_val"'`
17116 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17117 $as_echo "$ac_res" >&6; }
17120 as_val
=`eval 'as_val=${'$as_ac_Header'}
17121 $as_echo "$as_val"'`
17122 if test "x$as_val" = x
""yes; then
17123 cat >>confdefs.h
<<_ACEOF
17124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17132 for ac_header
in langinfo.h
17134 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17135 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17136 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17137 $as_echo_n "checking for $ac_header... " >&6; }
17138 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17139 $as_echo_n "(cached) " >&6
17141 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17142 $as_echo "$as_val"'`
17143 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17144 $as_echo "$ac_res" >&6; }
17146 # Is the header compilable?
17147 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17148 $as_echo_n "checking $ac_header usability... " >&6; }
17149 cat >conftest.
$ac_ext <<_ACEOF
17152 cat confdefs.h
>>conftest.
$ac_ext
17153 cat >>conftest.
$ac_ext <<_ACEOF
17154 /* end confdefs.h. */
17155 $ac_includes_default
17156 #include <$ac_header>
17158 rm -f conftest.
$ac_objext
17159 if { (ac_try
="$ac_compile"
17160 case "(($ac_try" in
17161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17165 $as_echo "$ac_try_echo") >&5
17166 (eval "$ac_compile") 2>conftest.er1
17168 grep -v '^ *+' conftest.er1 >conftest.err
17170 cat conftest.err >&5
17171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } && {
17173 test -z "$ac_c_werror_flag" ||
17174 test ! -s conftest.err
17175 } && test -s conftest.$ac_objext; then
17176 ac_header_compiler=yes
17178 $as_echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17181 ac_header_compiler=no
17184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17185 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17186 $as_echo "$ac_header_compiler" >&6; }
17188 # Is the header present?
17189 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17190 $as_echo_n "checking $ac_header presence... " >&6; }
17191 cat >conftest.$ac_ext <<_ACEOF
17194 cat confdefs.h >>conftest.$ac_ext
17195 cat >>conftest.$ac_ext <<_ACEOF
17196 /* end confdefs.h. */
17197 #include <$ac_header>
17199 if { (ac_try="$ac_cpp conftest.$ac_ext"
17200 case "(($ac_try" in
17201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17202 *) ac_try_echo
=$ac_try;;
17204 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17205 $as_echo "$ac_try_echo") >&5
17206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17208 grep -v '^ *+' conftest.er1
>conftest.err
17210 cat conftest.err
>&5
17211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } >/dev
/null
&& {
17213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17214 test ! -s conftest.err
17216 ac_header_preproc
=yes
17218 $as_echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.
$ac_ext >&5
17221 ac_header_preproc
=no
17224 rm -f conftest.err conftest.
$ac_ext
17225 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17226 $as_echo "$ac_header_preproc" >&6; }
17228 # So? What about this header?
17229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17232 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17234 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17235 ac_header_preproc
=yes
17238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17239 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17241 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17243 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17245 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17247 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17249 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17251 ## ------------------------------- ##
17252 ## Report this to bug-bash@gnu.org ##
17253 ## ------------------------------- ##
17255 ) |
sed "s/^/$as_me: WARNING: /" >&2
17258 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17259 $as_echo_n "checking for $ac_header... " >&6; }
17260 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17261 $as_echo_n "(cached) " >&6
17263 eval "$as_ac_Header=\$ac_header_preproc"
17265 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17266 $as_echo "$as_val"'`
17267 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17268 $as_echo "$ac_res" >&6; }
17271 as_val
=`eval 'as_val=${'$as_ac_Header'}
17272 $as_echo "$as_val"'`
17273 if test "x$as_val" = x
""yes; then
17274 cat >>confdefs.h
<<_ACEOF
17275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17283 { $as_echo "$as_me:$LINENO: checking for mbrlen" >&5
17284 $as_echo_n "checking for mbrlen... " >&6; }
17285 if test "${ac_cv_func_mbrlen+set}" = set; then
17286 $as_echo_n "(cached) " >&6
17288 cat >conftest.
$ac_ext <<_ACEOF
17291 cat confdefs.h
>>conftest.
$ac_ext
17292 cat >>conftest.
$ac_ext <<_ACEOF
17293 /* end confdefs.h. */
17294 /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
17295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17296 #define mbrlen innocuous_mbrlen
17298 /* System header to define __stub macros and hopefully few prototypes,
17299 which can conflict with char mbrlen (); below.
17300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17301 <limits.h> exists even on freestanding compilers. */
17304 # include <limits.h>
17306 # include <assert.h>
17311 /* Override any GCC internal prototype to avoid an error.
17312 Use char because int might match the return type of a GCC
17313 builtin and then its argument prototype would still apply. */
17318 /* The GNU C library defines this for functions which it implements
17319 to always fail with ENOSYS. Some functions are actually named
17320 something starting with __ and the normal name is an alias. */
17321 #if defined __stub_mbrlen || defined __stub___mbrlen
17333 rm -f conftest.
$ac_objext conftest
$ac_exeext
17334 if { (ac_try
="$ac_link"
17335 case "(($ac_try" in
17336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17340 $as_echo "$ac_try_echo") >&5
17341 (eval "$ac_link") 2>conftest.er1
17343 grep -v '^ *+' conftest.er1 >conftest.err
17345 cat conftest.err >&5
17346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } && {
17348 test -z "$ac_c_werror_flag" ||
17349 test ! -s conftest.err
17350 } && test -s conftest$ac_exeext && {
17351 test "$cross_compiling" = yes ||
17352 $as_test_x conftest$ac_exeext
17354 ac_cv_func_mbrlen=yes
17356 $as_echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17359 ac_cv_func_mbrlen=no
17362 rm -rf conftest.dSYM
17363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17364 conftest$ac_exeext conftest.$ac_ext
17366 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
17367 $as_echo "$ac_cv_func_mbrlen" >&6; }
17368 if test "x$ac_cv_func_mbrlen" = x""yes; then
17369 cat >>confdefs.h <<\_ACEOF
17370 #define HAVE_MBRLEN 1
17375 { $as_echo "$as_me:$LINENO: checking for mbscasecmp" >&5
17376 $as_echo_n "checking for mbscasecmp... " >&6; }
17377 if test "${ac_cv_func_mbscasecmp+set}" = set; then
17378 $as_echo_n "(cached) " >&6
17380 cat >conftest.$ac_ext <<_ACEOF
17383 cat confdefs.h >>conftest.$ac_ext
17384 cat >>conftest.$ac_ext <<_ACEOF
17385 /* end confdefs.h. */
17386 /* Define mbscasecmp to an innocuous variant, in case <limits.h> declares mbscasecmp.
17387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17388 #define mbscasecmp innocuous_mbscasecmp
17390 /* System header to define __stub macros and hopefully few prototypes,
17391 which can conflict with char mbscasecmp (); below.
17392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17393 <limits.h> exists even on freestanding compilers. */
17396 # include <limits.h>
17398 # include <assert.h>
17403 /* Override any GCC internal prototype to avoid an error.
17404 Use char because int might match the return type of a GCC
17405 builtin and then its argument prototype would still apply. */
17409 char mbscasecmp ();
17410 /* The GNU C library defines this for functions which it implements
17411 to always fail with ENOSYS. Some functions are actually named
17412 something starting with __ and the normal name is an alias. */
17413 #if defined __stub_mbscasecmp || defined __stub___mbscasecmp
17420 return mbscasecmp ();
17425 rm -f conftest.$ac_objext conftest$ac_exeext
17426 if { (ac_try="$ac_link"
17427 case "(($ac_try" in
17428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17429 *) ac_try_echo
=$ac_try;;
17431 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17432 $as_echo "$ac_try_echo") >&5
17433 (eval "$ac_link") 2>conftest.er1
17435 grep -v '^ *+' conftest.er1
>conftest.err
17437 cat conftest.err
>&5
17438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); } && {
17440 test -z "$ac_c_werror_flag" ||
17441 test ! -s conftest.err
17442 } && test -s conftest
$ac_exeext && {
17443 test "$cross_compiling" = yes ||
17444 $as_test_x conftest
$ac_exeext
17446 ac_cv_func_mbscasecmp
=yes
17448 $as_echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.
$ac_ext >&5
17451 ac_cv_func_mbscasecmp
=no
17454 rm -rf conftest.dSYM
17455 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17456 conftest
$ac_exeext conftest.
$ac_ext
17458 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscasecmp" >&5
17459 $as_echo "$ac_cv_func_mbscasecmp" >&6; }
17460 if test "x$ac_cv_func_mbscasecmp" = x
""yes; then
17461 cat >>confdefs.h
<<\_ACEOF
17462 #define HAVE_MBSCMP 1
17467 { $as_echo "$as_me:$LINENO: checking for mbscmp" >&5
17468 $as_echo_n "checking for mbscmp... " >&6; }
17469 if test "${ac_cv_func_mbscmp+set}" = set; then
17470 $as_echo_n "(cached) " >&6
17472 cat >conftest.
$ac_ext <<_ACEOF
17475 cat confdefs.h
>>conftest.
$ac_ext
17476 cat >>conftest.
$ac_ext <<_ACEOF
17477 /* end confdefs.h. */
17478 /* Define mbscmp to an innocuous variant, in case <limits.h> declares mbscmp.
17479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17480 #define mbscmp innocuous_mbscmp
17482 /* System header to define __stub macros and hopefully few prototypes,
17483 which can conflict with char mbscmp (); below.
17484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17485 <limits.h> exists even on freestanding compilers. */
17488 # include <limits.h>
17490 # include <assert.h>
17495 /* Override any GCC internal prototype to avoid an error.
17496 Use char because int might match the return type of a GCC
17497 builtin and then its argument prototype would still apply. */
17502 /* The GNU C library defines this for functions which it implements
17503 to always fail with ENOSYS. Some functions are actually named
17504 something starting with __ and the normal name is an alias. */
17505 #if defined __stub_mbscmp || defined __stub___mbscmp
17517 rm -f conftest.
$ac_objext conftest
$ac_exeext
17518 if { (ac_try
="$ac_link"
17519 case "(($ac_try" in
17520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17521 *) ac_try_echo=$ac_try;;
17523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17524 $as_echo "$ac_try_echo") >&5
17525 (eval "$ac_link") 2>conftest.er1
17527 grep -v '^ *+' conftest.er1 >conftest.err
17529 cat conftest.err >&5
17530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } && {
17532 test -z "$ac_c_werror_flag" ||
17533 test ! -s conftest.err
17534 } && test -s conftest$ac_exeext && {
17535 test "$cross_compiling" = yes ||
17536 $as_test_x conftest$ac_exeext
17538 ac_cv_func_mbscmp=yes
17540 $as_echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17543 ac_cv_func_mbscmp=no
17546 rm -rf conftest.dSYM
17547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17548 conftest$ac_exeext conftest.$ac_ext
17550 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscmp" >&5
17551 $as_echo "$ac_cv_func_mbscmp" >&6; }
17552 if test "x$ac_cv_func_mbscmp" = x""yes; then
17553 cat >>confdefs.h <<\_ACEOF
17554 #define HAVE_MBSCMP 1
17559 { $as_echo "$as_me:$LINENO: checking for mbsnrtowcs" >&5
17560 $as_echo_n "checking for mbsnrtowcs... " >&6; }
17561 if test "${ac_cv_func_mbsnrtowcs+set}" = set; then
17562 $as_echo_n "(cached) " >&6
17564 cat >conftest.$ac_ext <<_ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17570 /* Define mbsnrtowcs to an innocuous variant, in case <limits.h> declares mbsnrtowcs.
17571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17572 #define mbsnrtowcs innocuous_mbsnrtowcs
17574 /* System header to define __stub macros and hopefully few prototypes,
17575 which can conflict with char mbsnrtowcs (); below.
17576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17577 <limits.h> exists even on freestanding compilers. */
17580 # include <limits.h>
17582 # include <assert.h>
17587 /* Override any GCC internal prototype to avoid an error.
17588 Use char because int might match the return type of a GCC
17589 builtin and then its argument prototype would still apply. */
17593 char mbsnrtowcs ();
17594 /* The GNU C library defines this for functions which it implements
17595 to always fail with ENOSYS. Some functions are actually named
17596 something starting with __ and the normal name is an alias. */
17597 #if defined __stub_mbsnrtowcs || defined __stub___mbsnrtowcs
17604 return mbsnrtowcs ();
17609 rm -f conftest.$ac_objext conftest$ac_exeext
17610 if { (ac_try="$ac_link"
17611 case "(($ac_try" in
17612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17613 *) ac_try_echo
=$ac_try;;
17615 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17616 $as_echo "$ac_try_echo") >&5
17617 (eval "$ac_link") 2>conftest.er1
17619 grep -v '^ *+' conftest.er1
>conftest.err
17621 cat conftest.err
>&5
17622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); } && {
17624 test -z "$ac_c_werror_flag" ||
17625 test ! -s conftest.err
17626 } && test -s conftest
$ac_exeext && {
17627 test "$cross_compiling" = yes ||
17628 $as_test_x conftest
$ac_exeext
17630 ac_cv_func_mbsnrtowcs
=yes
17632 $as_echo "$as_me: failed program was:" >&5
17633 sed 's/^/| /' conftest.
$ac_ext >&5
17635 ac_cv_func_mbsnrtowcs
=no
17638 rm -rf conftest.dSYM
17639 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17640 conftest
$ac_exeext conftest.
$ac_ext
17642 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsnrtowcs" >&5
17643 $as_echo "$ac_cv_func_mbsnrtowcs" >&6; }
17644 if test "x$ac_cv_func_mbsnrtowcs" = x
""yes; then
17645 cat >>confdefs.h
<<\_ACEOF
17646 #define HAVE_MBSNRTOWCS 1
17651 { $as_echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
17652 $as_echo_n "checking for mbsrtowcs... " >&6; }
17653 if test "${ac_cv_func_mbsrtowcs+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 mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
17663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17664 #define mbsrtowcs innocuous_mbsrtowcs
17666 /* System header to define __stub macros and hopefully few prototypes,
17667 which can conflict with char mbsrtowcs (); 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_mbsrtowcs || defined __stub___mbsrtowcs
17696 return mbsrtowcs ();
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_mbsrtowcs=yes
17724 $as_echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17727 ac_cv_func_mbsrtowcs=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_mbsrtowcs" >&5
17735 $as_echo "$ac_cv_func_mbsrtowcs" >&6; }
17736 if test "x$ac_cv_func_mbsrtowcs" = x""yes; then
17737 cat >>confdefs.h <<\_ACEOF
17738 #define HAVE_MBSRTOWCS 1
17746 for ac_func in mbschr
17748 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17749 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17750 $as_echo_n "checking for $ac_func... " >&6; }
17751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17752 $as_echo_n "(cached) " >&6
17754 cat >conftest.$ac_ext <<_ACEOF
17757 cat confdefs.h >>conftest.$ac_ext
17758 cat >>conftest.$ac_ext <<_ACEOF
17759 /* end confdefs.h. */
17760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17762 #define $ac_func innocuous_$ac_func
17764 /* System header to define __stub macros and hopefully few prototypes,
17765 which can conflict with char $ac_func (); below.
17766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17767 <limits.h> exists even on freestanding compilers. */
17770 # include <limits.h>
17772 # include <assert.h>
17777 /* Override any GCC internal prototype to avoid an error.
17778 Use char because int might match the return type of a GCC
17779 builtin and then its argument prototype would still apply. */
17784 /* The GNU C library defines this for functions which it implements
17785 to always fail with ENOSYS. Some functions are actually named
17786 something starting with __ and the normal name is an alias. */
17787 #if defined __stub_$ac_func || defined __stub___$ac_func
17794 return $ac_func ();
17799 rm -f conftest.$ac_objext conftest$ac_exeext
17800 if { (ac_try="$ac_link"
17801 case "(($ac_try" in
17802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17803 *) ac_try_echo
=$ac_try;;
17805 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17806 $as_echo "$ac_try_echo") >&5
17807 (eval "$ac_link") 2>conftest.er1
17809 grep -v '^ *+' conftest.er1
>conftest.err
17811 cat conftest.err
>&5
17812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } && {
17814 test -z "$ac_c_werror_flag" ||
17815 test ! -s conftest.err
17816 } && test -s conftest
$ac_exeext && {
17817 test "$cross_compiling" = yes ||
17818 $as_test_x conftest
$ac_exeext
17820 eval "$as_ac_var=yes"
17822 $as_echo "$as_me: failed program was:" >&5
17823 sed 's/^/| /' conftest.
$ac_ext >&5
17825 eval "$as_ac_var=no"
17828 rm -rf conftest.dSYM
17829 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17830 conftest
$ac_exeext conftest.
$ac_ext
17832 ac_res
=`eval 'as_val=${'$as_ac_var'}
17833 $as_echo "$as_val"'`
17834 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17835 $as_echo "$ac_res" >&6; }
17836 as_val
=`eval 'as_val=${'$as_ac_var'}
17837 $as_echo "$as_val"'`
17838 if test "x$as_val" = x
""yes; then
17839 cat >>confdefs.h
<<_ACEOF
17840 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17844 case " $LIBOBJS " in
17845 *" $ac_func.$ac_objext "* ) ;;
17846 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
17855 { $as_echo "$as_me:$LINENO: checking for wcrtomb" >&5
17856 $as_echo_n "checking for wcrtomb... " >&6; }
17857 if test "${ac_cv_func_wcrtomb+set}" = set; then
17858 $as_echo_n "(cached) " >&6
17860 cat >conftest.
$ac_ext <<_ACEOF
17863 cat confdefs.h
>>conftest.
$ac_ext
17864 cat >>conftest.
$ac_ext <<_ACEOF
17865 /* end confdefs.h. */
17866 /* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb.
17867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17868 #define wcrtomb innocuous_wcrtomb
17870 /* System header to define __stub macros and hopefully few prototypes,
17871 which can conflict with char wcrtomb (); below.
17872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17873 <limits.h> exists even on freestanding compilers. */
17876 # include <limits.h>
17878 # include <assert.h>
17883 /* Override any GCC internal prototype to avoid an error.
17884 Use char because int might match the return type of a GCC
17885 builtin and then its argument prototype would still apply. */
17890 /* The GNU C library defines this for functions which it implements
17891 to always fail with ENOSYS. Some functions are actually named
17892 something starting with __ and the normal name is an alias. */
17893 #if defined __stub_wcrtomb || defined __stub___wcrtomb
17905 rm -f conftest.
$ac_objext conftest
$ac_exeext
17906 if { (ac_try
="$ac_link"
17907 case "(($ac_try" in
17908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17909 *) ac_try_echo=$ac_try;;
17911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17912 $as_echo "$ac_try_echo") >&5
17913 (eval "$ac_link") 2>conftest.er1
17915 grep -v '^ *+' conftest.er1 >conftest.err
17917 cat conftest.err >&5
17918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); } && {
17920 test -z "$ac_c_werror_flag" ||
17921 test ! -s conftest.err
17922 } && test -s conftest$ac_exeext && {
17923 test "$cross_compiling" = yes ||
17924 $as_test_x conftest$ac_exeext
17926 ac_cv_func_wcrtomb=yes
17928 $as_echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17931 ac_cv_func_wcrtomb=no
17934 rm -rf conftest.dSYM
17935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17936 conftest$ac_exeext conftest.$ac_ext
17938 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5
17939 $as_echo "$ac_cv_func_wcrtomb" >&6; }
17940 if test "x$ac_cv_func_wcrtomb" = x""yes; then
17941 cat >>confdefs.h <<\_ACEOF
17942 #define HAVE_WCRTOMB 1
17947 { $as_echo "$as_me:$LINENO: checking for wcscoll" >&5
17948 $as_echo_n "checking for wcscoll... " >&6; }
17949 if test "${ac_cv_func_wcscoll+set}" = set; then
17950 $as_echo_n "(cached) " >&6
17952 cat >conftest.$ac_ext <<_ACEOF
17955 cat confdefs.h >>conftest.$ac_ext
17956 cat >>conftest.$ac_ext <<_ACEOF
17957 /* end confdefs.h. */
17958 /* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll.
17959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17960 #define wcscoll innocuous_wcscoll
17962 /* System header to define __stub macros and hopefully few prototypes,
17963 which can conflict with char wcscoll (); below.
17964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17965 <limits.h> exists even on freestanding compilers. */
17968 # include <limits.h>
17970 # include <assert.h>
17975 /* Override any GCC internal prototype to avoid an error.
17976 Use char because int might match the return type of a GCC
17977 builtin and then its argument prototype would still apply. */
17982 /* The GNU C library defines this for functions which it implements
17983 to always fail with ENOSYS. Some functions are actually named
17984 something starting with __ and the normal name is an alias. */
17985 #if defined __stub_wcscoll || defined __stub___wcscoll
17997 rm -f conftest.$ac_objext conftest$ac_exeext
17998 if { (ac_try="$ac_link"
17999 case "(($ac_try" in
18000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18001 *) ac_try_echo
=$ac_try;;
18003 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18004 $as_echo "$ac_try_echo") >&5
18005 (eval "$ac_link") 2>conftest.er1
18007 grep -v '^ *+' conftest.er1
>conftest.err
18009 cat conftest.err
>&5
18010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); } && {
18012 test -z "$ac_c_werror_flag" ||
18013 test ! -s conftest.err
18014 } && test -s conftest
$ac_exeext && {
18015 test "$cross_compiling" = yes ||
18016 $as_test_x conftest
$ac_exeext
18018 ac_cv_func_wcscoll
=yes
18020 $as_echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.
$ac_ext >&5
18023 ac_cv_func_wcscoll
=no
18026 rm -rf conftest.dSYM
18027 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18028 conftest
$ac_exeext conftest.
$ac_ext
18030 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5
18031 $as_echo "$ac_cv_func_wcscoll" >&6; }
18032 if test "x$ac_cv_func_wcscoll" = x
""yes; then
18033 cat >>confdefs.h
<<\_ACEOF
18034 #define HAVE_WCSCOLL 1
18039 { $as_echo "$as_me:$LINENO: checking for wcsdup" >&5
18040 $as_echo_n "checking for wcsdup... " >&6; }
18041 if test "${ac_cv_func_wcsdup+set}" = set; then
18042 $as_echo_n "(cached) " >&6
18044 cat >conftest.
$ac_ext <<_ACEOF
18047 cat confdefs.h
>>conftest.
$ac_ext
18048 cat >>conftest.
$ac_ext <<_ACEOF
18049 /* end confdefs.h. */
18050 /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
18051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18052 #define wcsdup innocuous_wcsdup
18054 /* System header to define __stub macros and hopefully few prototypes,
18055 which can conflict with char wcsdup (); below.
18056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18057 <limits.h> exists even on freestanding compilers. */
18060 # include <limits.h>
18062 # include <assert.h>
18067 /* Override any GCC internal prototype to avoid an error.
18068 Use char because int might match the return type of a GCC
18069 builtin and then its argument prototype would still apply. */
18074 /* The GNU C library defines this for functions which it implements
18075 to always fail with ENOSYS. Some functions are actually named
18076 something starting with __ and the normal name is an alias. */
18077 #if defined __stub_wcsdup || defined __stub___wcsdup
18089 rm -f conftest.
$ac_objext conftest
$ac_exeext
18090 if { (ac_try
="$ac_link"
18091 case "(($ac_try" in
18092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18096 $as_echo "$ac_try_echo") >&5
18097 (eval "$ac_link") 2>conftest.er1
18099 grep -v '^ *+' conftest.er1 >conftest.err
18101 cat conftest.err >&5
18102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } && {
18104 test -z "$ac_c_werror_flag" ||
18105 test ! -s conftest.err
18106 } && test -s conftest$ac_exeext && {
18107 test "$cross_compiling" = yes ||
18108 $as_test_x conftest$ac_exeext
18110 ac_cv_func_wcsdup=yes
18112 $as_echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18115 ac_cv_func_wcsdup=no
18118 rm -rf conftest.dSYM
18119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18120 conftest$ac_exeext conftest.$ac_ext
18122 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
18123 $as_echo "$ac_cv_func_wcsdup" >&6; }
18124 if test "x$ac_cv_func_wcsdup" = x""yes; then
18125 cat >>confdefs.h <<\_ACEOF
18126 #define HAVE_WCSDUP 1
18131 { $as_echo "$as_me:$LINENO: checking for wcwidth" >&5
18132 $as_echo_n "checking for wcwidth... " >&6; }
18133 if test "${ac_cv_func_wcwidth+set}" = set; then
18134 $as_echo_n "(cached) " >&6
18136 cat >conftest.$ac_ext <<_ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h. */
18142 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
18143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18144 #define wcwidth innocuous_wcwidth
18146 /* System header to define __stub macros and hopefully few prototypes,
18147 which can conflict with char wcwidth (); below.
18148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18149 <limits.h> exists even on freestanding compilers. */
18152 # include <limits.h>
18154 # include <assert.h>
18159 /* Override any GCC internal prototype to avoid an error.
18160 Use char because int might match the return type of a GCC
18161 builtin and then its argument prototype would still apply. */
18166 /* The GNU C library defines this for functions which it implements
18167 to always fail with ENOSYS. Some functions are actually named
18168 something starting with __ and the normal name is an alias. */
18169 #if defined __stub_wcwidth || defined __stub___wcwidth
18181 rm -f conftest.$ac_objext conftest$ac_exeext
18182 if { (ac_try="$ac_link"
18183 case "(($ac_try" in
18184 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18185 *) ac_try_echo
=$ac_try;;
18187 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18188 $as_echo "$ac_try_echo") >&5
18189 (eval "$ac_link") 2>conftest.er1
18191 grep -v '^ *+' conftest.er1
>conftest.err
18193 cat conftest.err
>&5
18194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); } && {
18196 test -z "$ac_c_werror_flag" ||
18197 test ! -s conftest.err
18198 } && test -s conftest
$ac_exeext && {
18199 test "$cross_compiling" = yes ||
18200 $as_test_x conftest
$ac_exeext
18202 ac_cv_func_wcwidth
=yes
18204 $as_echo "$as_me: failed program was:" >&5
18205 sed 's/^/| /' conftest.
$ac_ext >&5
18207 ac_cv_func_wcwidth
=no
18210 rm -rf conftest.dSYM
18211 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18212 conftest
$ac_exeext conftest.
$ac_ext
18214 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
18215 $as_echo "$ac_cv_func_wcwidth" >&6; }
18216 if test "x$ac_cv_func_wcwidth" = x
""yes; then
18217 cat >>confdefs.h
<<\_ACEOF
18218 #define HAVE_WCWIDTH 1
18223 { $as_echo "$as_me:$LINENO: checking for wctype" >&5
18224 $as_echo_n "checking for wctype... " >&6; }
18225 if test "${ac_cv_func_wctype+set}" = set; then
18226 $as_echo_n "(cached) " >&6
18228 cat >conftest.
$ac_ext <<_ACEOF
18231 cat confdefs.h
>>conftest.
$ac_ext
18232 cat >>conftest.
$ac_ext <<_ACEOF
18233 /* end confdefs.h. */
18234 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
18235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18236 #define wctype innocuous_wctype
18238 /* System header to define __stub macros and hopefully few prototypes,
18239 which can conflict with char wctype (); below.
18240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18241 <limits.h> exists even on freestanding compilers. */
18244 # include <limits.h>
18246 # include <assert.h>
18251 /* Override any GCC internal prototype to avoid an error.
18252 Use char because int might match the return type of a GCC
18253 builtin and then its argument prototype would still apply. */
18258 /* The GNU C library defines this for functions which it implements
18259 to always fail with ENOSYS. Some functions are actually named
18260 something starting with __ and the normal name is an alias. */
18261 #if defined __stub_wctype || defined __stub___wctype
18273 rm -f conftest.
$ac_objext conftest
$ac_exeext
18274 if { (ac_try
="$ac_link"
18275 case "(($ac_try" in
18276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18280 $as_echo "$ac_try_echo") >&5
18281 (eval "$ac_link") 2>conftest.er1
18283 grep -v '^ *+' conftest.er1 >conftest.err
18285 cat conftest.err >&5
18286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); } && {
18288 test -z "$ac_c_werror_flag" ||
18289 test ! -s conftest.err
18290 } && test -s conftest$ac_exeext && {
18291 test "$cross_compiling" = yes ||
18292 $as_test_x conftest$ac_exeext
18294 ac_cv_func_wctype=yes
18296 $as_echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18299 ac_cv_func_wctype=no
18302 rm -rf conftest.dSYM
18303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18304 conftest$ac_exeext conftest.$ac_ext
18306 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
18307 $as_echo "$ac_cv_func_wctype" >&6; }
18308 if test "x$ac_cv_func_wctype" = x""yes; then
18309 cat >>confdefs.h <<\_ACEOF
18310 #define HAVE_WCTYPE 1
18317 for ac_func in wcswidth
18319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18320 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18321 $as_echo_n "checking for $ac_func... " >&6; }
18322 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18323 $as_echo_n "(cached) " >&6
18325 cat >conftest.$ac_ext <<_ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18333 #define $ac_func innocuous_$ac_func
18335 /* System header to define __stub macros and hopefully few prototypes,
18336 which can conflict with char $ac_func (); below.
18337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18338 <limits.h> exists even on freestanding compilers. */
18341 # include <limits.h>
18343 # include <assert.h>
18348 /* Override any GCC internal prototype to avoid an error.
18349 Use char because int might match the return type of a GCC
18350 builtin and then its argument prototype would still apply. */
18355 /* The GNU C library defines this for functions which it implements
18356 to always fail with ENOSYS. Some functions are actually named
18357 something starting with __ and the normal name is an alias. */
18358 #if defined __stub_$ac_func || defined __stub___$ac_func
18365 return $ac_func ();
18370 rm -f conftest.$ac_objext conftest$ac_exeext
18371 if { (ac_try="$ac_link"
18372 case "(($ac_try" in
18373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18374 *) ac_try_echo
=$ac_try;;
18376 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18377 $as_echo "$ac_try_echo") >&5
18378 (eval "$ac_link") 2>conftest.er1
18380 grep -v '^ *+' conftest.er1
>conftest.err
18382 cat conftest.err
>&5
18383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); } && {
18385 test -z "$ac_c_werror_flag" ||
18386 test ! -s conftest.err
18387 } && test -s conftest
$ac_exeext && {
18388 test "$cross_compiling" = yes ||
18389 $as_test_x conftest
$ac_exeext
18391 eval "$as_ac_var=yes"
18393 $as_echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.
$ac_ext >&5
18396 eval "$as_ac_var=no"
18399 rm -rf conftest.dSYM
18400 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18401 conftest
$ac_exeext conftest.
$ac_ext
18403 ac_res
=`eval 'as_val=${'$as_ac_var'}
18404 $as_echo "$as_val"'`
18405 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18406 $as_echo "$ac_res" >&6; }
18407 as_val
=`eval 'as_val=${'$as_ac_var'}
18408 $as_echo "$as_val"'`
18409 if test "x$as_val" = x
""yes; then
18410 cat >>confdefs.h
<<_ACEOF
18411 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18415 case " $LIBOBJS " in
18416 *" $ac_func.$ac_objext "* ) ;;
18417 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
18427 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
18428 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
18429 if test "${ac_cv_func_mbrtowc+set}" = set; then
18430 $as_echo_n "(cached) " >&6
18432 cat >conftest.
$ac_ext <<_ACEOF
18435 cat confdefs.h
>>conftest.
$ac_ext
18436 cat >>conftest.
$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18443 char const s[] = "";
18446 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
18451 rm -f conftest.
$ac_objext conftest
$ac_exeext
18452 if { (ac_try
="$ac_link"
18453 case "(($ac_try" in
18454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18458 $as_echo "$ac_try_echo") >&5
18459 (eval "$ac_link") 2>conftest.er1
18461 grep -v '^ *+' conftest.er1 >conftest.err
18463 cat conftest.err >&5
18464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); } && {
18466 test -z "$ac_c_werror_flag" ||
18467 test ! -s conftest.err
18468 } && test -s conftest$ac_exeext && {
18469 test "$cross_compiling" = yes ||
18470 $as_test_x conftest$ac_exeext
18472 ac_cv_func_mbrtowc=yes
18474 $as_echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18477 ac_cv_func_mbrtowc=no
18480 rm -rf conftest.dSYM
18481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18482 conftest$ac_exeext conftest.$ac_ext
18484 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
18485 $as_echo "$ac_cv_func_mbrtowc" >&6; }
18486 if test $ac_cv_func_mbrtowc = yes; then
18488 cat >>confdefs.h <<\_ACEOF
18489 #define HAVE_MBRTOWC 1
18494 if test $ac_cv_func_mbrtowc = yes; then
18495 cat >>confdefs.h <<\_ACEOF
18496 #define HAVE_MBSTATE_T 1
18506 for ac_func in iswlower iswupper towlower towupper iswctype
18508 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18509 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18510 $as_echo_n "checking for $ac_func... " >&6; }
18511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18512 $as_echo_n "(cached) " >&6
18514 cat >conftest.$ac_ext <<_ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h. */
18520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18522 #define $ac_func innocuous_$ac_func
18524 /* System header to define __stub macros and hopefully few prototypes,
18525 which can conflict with char $ac_func (); below.
18526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18527 <limits.h> exists even on freestanding compilers. */
18530 # include <limits.h>
18532 # include <assert.h>
18537 /* Override any GCC internal prototype to avoid an error.
18538 Use char because int might match the return type of a GCC
18539 builtin and then its argument prototype would still apply. */
18544 /* The GNU C library defines this for functions which it implements
18545 to always fail with ENOSYS. Some functions are actually named
18546 something starting with __ and the normal name is an alias. */
18547 #if defined __stub_$ac_func || defined __stub___$ac_func
18554 return $ac_func ();
18559 rm -f conftest.$ac_objext conftest$ac_exeext
18560 if { (ac_try="$ac_link"
18561 case "(($ac_try" in
18562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18563 *) ac_try_echo
=$ac_try;;
18565 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18566 $as_echo "$ac_try_echo") >&5
18567 (eval "$ac_link") 2>conftest.er1
18569 grep -v '^ *+' conftest.er1
>conftest.err
18571 cat conftest.err
>&5
18572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); } && {
18574 test -z "$ac_c_werror_flag" ||
18575 test ! -s conftest.err
18576 } && test -s conftest
$ac_exeext && {
18577 test "$cross_compiling" = yes ||
18578 $as_test_x conftest
$ac_exeext
18580 eval "$as_ac_var=yes"
18582 $as_echo "$as_me: failed program was:" >&5
18583 sed 's/^/| /' conftest.
$ac_ext >&5
18585 eval "$as_ac_var=no"
18588 rm -rf conftest.dSYM
18589 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18590 conftest
$ac_exeext conftest.
$ac_ext
18592 ac_res
=`eval 'as_val=${'$as_ac_var'}
18593 $as_echo "$as_val"'`
18594 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18595 $as_echo "$ac_res" >&6; }
18596 as_val
=`eval 'as_val=${'$as_ac_var'}
18597 $as_echo "$as_val"'`
18598 if test "x$as_val" = x
""yes; then
18599 cat >>confdefs.h
<<_ACEOF
18600 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18607 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
18608 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
18609 if test "${bash_cv_langinfo_codeset+set}" = set; then
18610 $as_echo_n "(cached) " >&6
18612 cat >conftest.
$ac_ext <<_ACEOF
18615 cat confdefs.h
>>conftest.
$ac_ext
18616 cat >>conftest.
$ac_ext <<_ACEOF
18617 /* end confdefs.h. */
18618 #include <langinfo.h>
18622 char* cs = nl_langinfo(CODESET);
18627 rm -f conftest.
$ac_objext conftest
$ac_exeext
18628 if { (ac_try
="$ac_link"
18629 case "(($ac_try" in
18630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18631 *) ac_try_echo=$ac_try;;
18633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18634 $as_echo "$ac_try_echo") >&5
18635 (eval "$ac_link") 2>conftest.er1
18637 grep -v '^ *+' conftest.er1 >conftest.err
18639 cat conftest.err >&5
18640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); } && {
18642 test -z "$ac_c_werror_flag" ||
18643 test ! -s conftest.err
18644 } && test -s conftest$ac_exeext && {
18645 test "$cross_compiling" = yes ||
18646 $as_test_x conftest$ac_exeext
18648 bash_cv_langinfo_codeset=yes
18650 $as_echo "$as_me: failed program was:" >&5
18651 sed 's/^/| /' conftest.$ac_ext >&5
18653 bash_cv_langinfo_codeset=no
18656 rm -rf conftest.dSYM
18657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18658 conftest$ac_exeext conftest.$ac_ext
18660 { $as_echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
18661 $as_echo "$bash_cv_langinfo_codeset" >&6; }
18662 if test $bash_cv_langinfo_codeset = yes; then
18663 cat >>confdefs.h <<\_ACEOF
18664 #define HAVE_LANGINFO_CODESET 1
18669 { $as_echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5
18670 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
18671 if test "${bash_cv_type_wchar_t+set}" = set; then
18672 $as_echo_n "(cached) " >&6
18674 cat >conftest.$ac_ext <<_ACEOF
18677 cat confdefs.h >>conftest.$ac_ext
18678 cat >>conftest.$ac_ext <<_ACEOF
18679 /* end confdefs.h. */
18693 rm -f conftest.$ac_objext
18694 if { (ac_try="$ac_compile"
18695 case "(($ac_try" in
18696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18697 *) ac_try_echo
=$ac_try;;
18699 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18700 $as_echo "$ac_try_echo") >&5
18701 (eval "$ac_compile") 2>conftest.er1
18703 grep -v '^ *+' conftest.er1
>conftest.err
18705 cat conftest.err
>&5
18706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); } && {
18708 test -z "$ac_c_werror_flag" ||
18709 test ! -s conftest.err
18710 } && test -s conftest.
$ac_objext; then
18711 bash_cv_type_wchar_t
=yes
18713 $as_echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.
$ac_ext >&5
18716 bash_cv_type_wchar_t
=no
18719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18721 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5
18722 $as_echo "$bash_cv_type_wchar_t" >&6; }
18723 if test $bash_cv_type_wchar_t = yes; then
18725 cat >>confdefs.h
<<\_ACEOF
18726 #define HAVE_WCHAR_T 1
18731 { $as_echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5
18732 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
18733 if test "${bash_cv_type_wctype_t+set}" = set; then
18734 $as_echo_n "(cached) " >&6
18736 cat >conftest.
$ac_ext <<_ACEOF
18739 cat confdefs.h
>>conftest.
$ac_ext
18740 cat >>conftest.
$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18742 #include <wctype.h>
18754 rm -f conftest.
$ac_objext
18755 if { (ac_try
="$ac_compile"
18756 case "(($ac_try" in
18757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18758 *) ac_try_echo=$ac_try;;
18760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18761 $as_echo "$ac_try_echo") >&5
18762 (eval "$ac_compile") 2>conftest.er1
18764 grep -v '^ *+' conftest.er1 >conftest.err
18766 cat conftest.err >&5
18767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); } && {
18769 test -z "$ac_c_werror_flag" ||
18770 test ! -s conftest.err
18771 } && test -s conftest.$ac_objext; then
18772 bash_cv_type_wctype_t=yes
18774 $as_echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18777 bash_cv_type_wctype_t=no
18780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18782 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5
18783 $as_echo "$bash_cv_type_wctype_t" >&6; }
18784 if test $bash_cv_type_wctype_t = yes; then
18786 cat >>confdefs.h <<\_ACEOF
18787 #define HAVE_WCTYPE_T 1
18792 { $as_echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5
18793 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
18794 if test "${bash_cv_type_wint_t+set}" = set; then
18795 $as_echo_n "(cached) " >&6
18797 cat >conftest.$ac_ext <<_ACEOF
18800 cat confdefs.h >>conftest.$ac_ext
18801 cat >>conftest.$ac_ext <<_ACEOF
18802 /* end confdefs.h. */
18803 #include <wctype.h>
18815 rm -f conftest.$ac_objext
18816 if { (ac_try="$ac_compile"
18817 case "(($ac_try" in
18818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18819 *) ac_try_echo
=$ac_try;;
18821 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18822 $as_echo "$ac_try_echo") >&5
18823 (eval "$ac_compile") 2>conftest.er1
18825 grep -v '^ *+' conftest.er1
>conftest.err
18827 cat conftest.err
>&5
18828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); } && {
18830 test -z "$ac_c_werror_flag" ||
18831 test ! -s conftest.err
18832 } && test -s conftest.
$ac_objext; then
18833 bash_cv_type_wint_t
=yes
18835 $as_echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.
$ac_ext >&5
18838 bash_cv_type_wint_t
=no
18841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18843 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5
18844 $as_echo "$bash_cv_type_wint_t" >&6; }
18845 if test $bash_cv_type_wint_t = yes; then
18847 cat >>confdefs.h
<<\_ACEOF
18848 #define HAVE_WINT_T 1
18853 if test "$am_cv_func_iconv" = yes; then
18855 LIBS
="$LIBS $LIBICONV"
18857 for ac_func
in locale_charset
18859 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18860 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18861 $as_echo_n "checking for $ac_func... " >&6; }
18862 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18863 $as_echo_n "(cached) " >&6
18865 cat >conftest.
$ac_ext <<_ACEOF
18868 cat confdefs.h
>>conftest.
$ac_ext
18869 cat >>conftest.
$ac_ext <<_ACEOF
18870 /* end confdefs.h. */
18871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18873 #define $ac_func innocuous_$ac_func
18875 /* System header to define __stub macros and hopefully few prototypes,
18876 which can conflict with char $ac_func (); below.
18877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18878 <limits.h> exists even on freestanding compilers. */
18881 # include <limits.h>
18883 # include <assert.h>
18888 /* Override any GCC internal prototype to avoid an error.
18889 Use char because int might match the return type of a GCC
18890 builtin and then its argument prototype would still apply. */
18895 /* The GNU C library defines this for functions which it implements
18896 to always fail with ENOSYS. Some functions are actually named
18897 something starting with __ and the normal name is an alias. */
18898 #if defined __stub_$ac_func || defined __stub___$ac_func
18905 return $ac_func ();
18910 rm -f conftest.
$ac_objext conftest
$ac_exeext
18911 if { (ac_try
="$ac_link"
18912 case "(($ac_try" in
18913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18914 *) ac_try_echo=$ac_try;;
18916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18917 $as_echo "$ac_try_echo") >&5
18918 (eval "$ac_link") 2>conftest.er1
18920 grep -v '^ *+' conftest.er1 >conftest.err
18922 cat conftest.err >&5
18923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); } && {
18925 test -z "$ac_c_werror_flag" ||
18926 test ! -s conftest.err
18927 } && test -s conftest$ac_exeext && {
18928 test "$cross_compiling" = yes ||
18929 $as_test_x conftest$ac_exeext
18931 eval "$as_ac_var=yes"
18933 $as_echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18936 eval "$as_ac_var=no"
18939 rm -rf conftest.dSYM
18940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18941 conftest$ac_exeext conftest.$ac_ext
18943 ac_res=`eval 'as_val=${'$as_ac_var'}
18944 $as_echo "$as_val"'`
18945 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18946 $as_echo "$ac_res" >&6; }
18947 as_val=`eval 'as_val=${'$as_ac_var'}
18948 $as_echo "$as_val"'`
18949 if test "x$as_val" = x""yes; then
18950 cat >>confdefs.h <<_ACEOF
18951 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18962 if test "$opt_static_link" != yes; then
18964 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18965 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18966 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18967 $as_echo_n "(cached) " >&6
18969 ac_check_lib_save_LIBS=$LIBS
18971 cat >conftest.$ac_ext <<_ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18978 /* Override any GCC internal prototype to avoid an error.
18979 Use char because int might match the return type of a GCC
18980 builtin and then its argument prototype would still apply. */
18993 rm -f conftest.$ac_objext conftest$ac_exeext
18994 if { (ac_try="$ac_link"
18995 case "(($ac_try" in
18996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18997 *) ac_try_echo
=$ac_try;;
18999 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19000 $as_echo "$ac_try_echo") >&5
19001 (eval "$ac_link") 2>conftest.er1
19003 grep -v '^ *+' conftest.er1
>conftest.err
19005 cat conftest.err
>&5
19006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); } && {
19008 test -z "$ac_c_werror_flag" ||
19009 test ! -s conftest.err
19010 } && test -s conftest
$ac_exeext && {
19011 test "$cross_compiling" = yes ||
19012 $as_test_x conftest
$ac_exeext
19014 ac_cv_lib_dl_dlopen
=yes
19016 $as_echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.
$ac_ext >&5
19019 ac_cv_lib_dl_dlopen
=no
19022 rm -rf conftest.dSYM
19023 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19024 conftest
$ac_exeext conftest.
$ac_ext
19025 LIBS
=$ac_check_lib_save_LIBS
19027 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19028 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19029 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
19030 cat >>confdefs.h
<<_ACEOF
19031 #define HAVE_LIBDL 1
19041 for ac_func
in dlopen dlclose dlsym
19043 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19044 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19045 $as_echo_n "checking for $ac_func... " >&6; }
19046 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19047 $as_echo_n "(cached) " >&6
19049 cat >conftest.
$ac_ext <<_ACEOF
19052 cat confdefs.h
>>conftest.
$ac_ext
19053 cat >>conftest.
$ac_ext <<_ACEOF
19054 /* end confdefs.h. */
19055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19057 #define $ac_func innocuous_$ac_func
19059 /* System header to define __stub macros and hopefully few prototypes,
19060 which can conflict with char $ac_func (); below.
19061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19062 <limits.h> exists even on freestanding compilers. */
19065 # include <limits.h>
19067 # include <assert.h>
19072 /* Override any GCC internal prototype to avoid an error.
19073 Use char because int might match the return type of a GCC
19074 builtin and then its argument prototype would still apply. */
19079 /* The GNU C library defines this for functions which it implements
19080 to always fail with ENOSYS. Some functions are actually named
19081 something starting with __ and the normal name is an alias. */
19082 #if defined __stub_$ac_func || defined __stub___$ac_func
19089 return $ac_func ();
19094 rm -f conftest.
$ac_objext conftest
$ac_exeext
19095 if { (ac_try
="$ac_link"
19096 case "(($ac_try" in
19097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19098 *) ac_try_echo=$ac_try;;
19100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19101 $as_echo "$ac_try_echo") >&5
19102 (eval "$ac_link") 2>conftest.er1
19104 grep -v '^ *+' conftest.er1 >conftest.err
19106 cat conftest.err >&5
19107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); } && {
19109 test -z "$ac_c_werror_flag" ||
19110 test ! -s conftest.err
19111 } && test -s conftest$ac_exeext && {
19112 test "$cross_compiling" = yes ||
19113 $as_test_x conftest$ac_exeext
19115 eval "$as_ac_var=yes"
19117 $as_echo "$as_me: failed program was:" >&5
19118 sed 's/^/| /' conftest.$ac_ext >&5
19120 eval "$as_ac_var=no"
19123 rm -rf conftest.dSYM
19124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19125 conftest$ac_exeext conftest.$ac_ext
19127 ac_res=`eval 'as_val=${'$as_ac_var'}
19128 $as_echo "$as_val"'`
19129 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19130 $as_echo "$ac_res" >&6; }
19131 as_val=`eval 'as_val=${'$as_ac_var'}
19132 $as_echo "$as_val"'`
19133 if test "x$as_val" = x""yes; then
19134 cat >>confdefs.h <<_ACEOF
19135 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19143 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
19144 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
19145 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
19146 $as_echo_n "(cached) " >&6
19148 cat >conftest.$ac_ext <<_ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19154 #include <signal.h>
19155 /* NetBSD declares sys_siglist in unistd.h. */
19156 #ifdef HAVE_UNISTD_H
19157 # include <unistd.h>
19164 #ifndef sys_siglist
19165 (void) sys_siglist;
19172 rm -f conftest.$ac_objext
19173 if { (ac_try="$ac_compile"
19174 case "(($ac_try" in
19175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19176 *) ac_try_echo
=$ac_try;;
19178 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19179 $as_echo "$ac_try_echo") >&5
19180 (eval "$ac_compile") 2>conftest.er1
19182 grep -v '^ *+' conftest.er1
>conftest.err
19184 cat conftest.err
>&5
19185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); } && {
19187 test -z "$ac_c_werror_flag" ||
19188 test ! -s conftest.err
19189 } && test -s conftest.
$ac_objext; then
19190 ac_cv_have_decl_sys_siglist
=yes
19192 $as_echo "$as_me: failed program was:" >&5
19193 sed 's/^/| /' conftest.
$ac_ext >&5
19195 ac_cv_have_decl_sys_siglist
=no
19198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19200 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
19201 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
19202 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then
19204 cat >>confdefs.h
<<_ACEOF
19205 #define HAVE_DECL_SYS_SIGLIST 1
19210 cat >>confdefs.h
<<_ACEOF
19211 #define HAVE_DECL_SYS_SIGLIST 0
19220 if test "$ac_cv_func_inet_aton" != 'yes'; then
19222 { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
19223 $as_echo_n "checking for inet_aton... " >&6; }
19224 if test "${bash_cv_func_inet_aton+set}" = set; then
19225 $as_echo_n "(cached) " >&6
19227 cat >conftest.
$ac_ext <<_ACEOF
19230 cat confdefs.h
>>conftest.
$ac_ext
19231 cat >>conftest.
$ac_ext <<_ACEOF
19232 /* end confdefs.h. */
19234 #include <sys/types.h>
19235 #include <netinet/in.h>
19236 #include <arpa/inet.h>
19241 inet_aton("127.0.0.1", &ap);
19246 rm -f conftest.
$ac_objext conftest
$ac_exeext
19247 if { (ac_try
="$ac_link"
19248 case "(($ac_try" in
19249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19250 *) ac_try_echo=$ac_try;;
19252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19253 $as_echo "$ac_try_echo") >&5
19254 (eval "$ac_link") 2>conftest.er1
19256 grep -v '^ *+' conftest.er1 >conftest.err
19258 cat conftest.err >&5
19259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); } && {
19261 test -z "$ac_c_werror_flag" ||
19262 test ! -s conftest.err
19263 } && test -s conftest$ac_exeext && {
19264 test "$cross_compiling" = yes ||
19265 $as_test_x conftest$ac_exeext
19267 bash_cv_func_inet_aton=yes
19269 $as_echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19272 bash_cv_func_inet_aton=no
19275 rm -rf conftest.dSYM
19276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19277 conftest$ac_exeext conftest.$ac_ext
19279 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
19280 $as_echo "$bash_cv_func_inet_aton" >&6; }
19281 if test $bash_cv_func_inet_aton = yes; then
19282 cat >>confdefs.h <<\_ACEOF
19283 #define HAVE_INET_ATON 1
19287 case " $LIBOBJS " in
19288 *" inet_aton.$ac_objext "* ) ;;
19289 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
19299 { $as_echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
19300 $as_echo_n "checking for getpwent in -lsun... " >&6; }
19301 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
19302 $as_echo_n "(cached) " >&6
19304 ac_check_lib_save_LIBS=$LIBS
19306 cat >conftest.$ac_ext <<_ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h. */
19313 /* Override any GCC internal prototype to avoid an error.
19314 Use char because int might match the return type of a GCC
19315 builtin and then its argument prototype would still apply. */
19323 return getpwent ();
19328 rm -f conftest.$ac_objext conftest$ac_exeext
19329 if { (ac_try="$ac_link"
19330 case "(($ac_try" in
19331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19332 *) ac_try_echo
=$ac_try;;
19334 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19335 $as_echo "$ac_try_echo") >&5
19336 (eval "$ac_link") 2>conftest.er1
19338 grep -v '^ *+' conftest.er1
>conftest.err
19340 cat conftest.err
>&5
19341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); } && {
19343 test -z "$ac_c_werror_flag" ||
19344 test ! -s conftest.err
19345 } && test -s conftest
$ac_exeext && {
19346 test "$cross_compiling" = yes ||
19347 $as_test_x conftest
$ac_exeext
19349 ac_cv_lib_sun_getpwent
=yes
19351 $as_echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.
$ac_ext >&5
19354 ac_cv_lib_sun_getpwent
=no
19357 rm -rf conftest.dSYM
19358 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19359 conftest
$ac_exeext conftest.
$ac_ext
19360 LIBS
=$ac_check_lib_save_LIBS
19362 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
19363 $as_echo "$ac_cv_lib_sun_getpwent" >&6; }
19364 if test "x$ac_cv_lib_sun_getpwent" = x
""yes; then
19365 cat >>confdefs.h
<<_ACEOF
19366 #define HAVE_LIBSUN 1
19375 if test "$ac_cv_func_getpeername" = no
; then
19377 if test "X$bash_cv_have_socklib" = "X"; then
19380 { $as_echo "$as_me:$LINENO: checking for socket library" >&5
19381 $as_echo_n "checking for socket library... " >&6; }
19384 if test "${bash_cv_have_socklib+set}" = set; then
19385 $as_echo_n "(cached) " >&6
19387 { $as_echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
19388 $as_echo_n "checking for getpeername in -lsocket... " >&6; }
19389 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
19390 $as_echo_n "(cached) " >&6
19392 ac_check_lib_save_LIBS
=$LIBS
19393 LIBS
="-lsocket -lnsl $LIBS"
19394 cat >conftest.
$ac_ext <<_ACEOF
19397 cat confdefs.h
>>conftest.
$ac_ext
19398 cat >>conftest.
$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19401 /* Override any GCC internal prototype to avoid an error.
19402 Use char because int might match the return type of a GCC
19403 builtin and then its argument prototype would still apply. */
19407 char getpeername ();
19411 return getpeername ();
19416 rm -f conftest.
$ac_objext conftest
$ac_exeext
19417 if { (ac_try
="$ac_link"
19418 case "(($ac_try" in
19419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19420 *) ac_try_echo=$ac_try;;
19422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19423 $as_echo "$ac_try_echo") >&5
19424 (eval "$ac_link") 2>conftest.er1
19426 grep -v '^ *+' conftest.er1 >conftest.err
19428 cat conftest.err >&5
19429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } && {
19431 test -z "$ac_c_werror_flag" ||
19432 test ! -s conftest.err
19433 } && test -s conftest$ac_exeext && {
19434 test "$cross_compiling" = yes ||
19435 $as_test_x conftest$ac_exeext
19437 ac_cv_lib_socket_getpeername=yes
19439 $as_echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.$ac_ext >&5
19442 ac_cv_lib_socket_getpeername=no
19445 rm -rf conftest.dSYM
19446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19447 conftest$ac_exeext conftest.$ac_ext
19448 LIBS=$ac_check_lib_save_LIBS
19450 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
19451 $as_echo "$ac_cv_lib_socket_getpeername" >&6; }
19452 if test "x$ac_cv_lib_socket_getpeername" = x""yes; then
19453 bash_cv_have_socklib=yes
19455 bash_cv_have_socklib=no
19460 if test "X$_bash_needmsg" = Xyes; then
19461 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
19462 $as_echo "$bash_cv_have_socklib" >&6; }
19465 if test $bash_cv_have_socklib = yes; then
19466 # check for libnsl, add it to LIBS if present
19467 if test "X$bash_cv_have_libnsl" = "X"; then
19470 { $as_echo "$as_me:$LINENO: checking for libnsl" >&5
19471 $as_echo_n "checking for libnsl... " >&6; }
19474 if test "${bash_cv_have_libnsl+set}" = set; then
19475 $as_echo_n "(cached) " >&6
19477 { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
19478 $as_echo_n "checking for t_open in -lnsl... " >&6; }
19479 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
19480 $as_echo_n "(cached) " >&6
19482 ac_check_lib_save_LIBS=$LIBS
19484 cat >conftest.$ac_ext <<_ACEOF
19487 cat confdefs.h >>conftest.$ac_ext
19488 cat >>conftest.$ac_ext <<_ACEOF
19489 /* end confdefs.h. */
19491 /* Override any GCC internal prototype to avoid an error.
19492 Use char because int might match the return type of a GCC
19493 builtin and then its argument prototype would still apply. */
19506 rm -f conftest.$ac_objext conftest$ac_exeext
19507 if { (ac_try="$ac_link"
19508 case "(($ac_try" in
19509 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19510 *) ac_try_echo
=$ac_try;;
19512 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19513 $as_echo "$ac_try_echo") >&5
19514 (eval "$ac_link") 2>conftest.er1
19516 grep -v '^ *+' conftest.er1
>conftest.err
19518 cat conftest.err
>&5
19519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } && {
19521 test -z "$ac_c_werror_flag" ||
19522 test ! -s conftest.err
19523 } && test -s conftest
$ac_exeext && {
19524 test "$cross_compiling" = yes ||
19525 $as_test_x conftest
$ac_exeext
19527 ac_cv_lib_nsl_t_open
=yes
19529 $as_echo "$as_me: failed program was:" >&5
19530 sed 's/^/| /' conftest.
$ac_ext >&5
19532 ac_cv_lib_nsl_t_open
=no
19535 rm -rf conftest.dSYM
19536 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19537 conftest
$ac_exeext conftest.
$ac_ext
19538 LIBS
=$ac_check_lib_save_LIBS
19540 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
19541 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
19542 if test "x$ac_cv_lib_nsl_t_open" = x
""yes; then
19543 bash_cv_have_libnsl
=yes
19545 bash_cv_have_libnsl
=no
19550 if test "X$_bash_needmsg" = Xyes
; then
19551 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
19552 $as_echo "$bash_cv_have_libnsl" >&6; }
19555 if test $bash_cv_have_libnsl = yes; then
19556 LIBS
="-lsocket -lnsl $LIBS"
19558 LIBS
="-lsocket $LIBS"
19560 cat >>confdefs.h
<<\_ACEOF
19561 #define HAVE_LIBSOCKET 1
19564 cat >>confdefs.h
<<\_ACEOF
19565 #define HAVE_GETPEERNAME 1
19571 if test "$ac_cv_func_gethostbyname" = no
; then
19572 if test "X$bash_cv_have_gethostbyname" = "X"; then
19575 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
19576 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
19579 if test "${bash_cv_have_gethostbyname+set}" = set; then
19580 $as_echo_n "(cached) " >&6
19582 cat >conftest.
$ac_ext <<_ACEOF
19585 cat confdefs.h
>>conftest.
$ac_ext
19586 cat >>conftest.
$ac_ext <<_ACEOF
19587 /* end confdefs.h. */
19592 struct hostent *hp;
19593 hp = gethostbyname("localhost");
19599 rm -f conftest.
$ac_objext conftest
$ac_exeext
19600 if { (ac_try
="$ac_link"
19601 case "(($ac_try" in
19602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19603 *) ac_try_echo=$ac_try;;
19605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19606 $as_echo "$ac_try_echo") >&5
19607 (eval "$ac_link") 2>conftest.er1
19609 grep -v '^ *+' conftest.er1 >conftest.err
19611 cat conftest.err >&5
19612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); } && {
19614 test -z "$ac_c_werror_flag" ||
19615 test ! -s conftest.err
19616 } && test -s conftest$ac_exeext && {
19617 test "$cross_compiling" = yes ||
19618 $as_test_x conftest$ac_exeext
19620 bash_cv_have_gethostbyname=yes
19622 $as_echo "$as_me: failed program was:" >&5
19623 sed 's/^/| /' conftest.$ac_ext >&5
19625 bash_cv_have_gethostbyname=no
19628 rm -rf conftest.dSYM
19629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19630 conftest$ac_exeext conftest.$ac_ext
19634 if test "X$_bash_needmsg" = Xyes; then
19635 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
19636 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
19638 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
19639 $as_echo "$bash_cv_have_gethostbyname" >&6; }
19640 if test "$bash_cv_have_gethostbyname" = yes; then
19641 cat >>confdefs.h <<\_ACEOF
19642 #define HAVE_GETHOSTBYNAME 1
19649 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19650 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19651 if test "${ac_cv_type_uid_t+set}" = set; then
19652 $as_echo_n "(cached) " >&6
19654 cat >conftest.$ac_ext <<_ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h. */
19660 #include <sys/types.h>
19663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19664 $EGREP "uid_t" >/dev/null 2>&1; then
19665 ac_cv_type_uid_t=yes
19667 ac_cv_type_uid_t=no
19672 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19673 $as_echo "$ac_cv_type_uid_t" >&6; }
19674 if test $ac_cv_type_uid_t = no; then
19676 cat >>confdefs.h <<\_ACEOF
19681 cat >>confdefs.h <<\_ACEOF
19687 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
19688 $as_echo_n "checking type of array argument to getgroups... " >&6; }
19689 if test "${ac_cv_type_getgroups+set}" = set; then
19690 $as_echo_n "(cached) " >&6
19692 if test "$cross_compiling" = yes; then
19693 ac_cv_type_getgroups=cross
19695 cat >conftest.$ac_ext <<_ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h. */
19701 /* Thanks to Mike Rendell for this test. */
19702 $ac_includes_default
19705 #define MAX(x, y) ((x) > (y) ? (x) : (y))
19710 gid_t gidset[NGID];
19712 union { gid_t gval; long int lval; } val;
19715 for (i = 0; i < NGID; i++)
19716 gidset[i] = val.gval;
19717 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
19719 /* Exit non-zero if getgroups seems to require an array of ints. This
19720 happens when gid_t is short int but getgroups modifies an array
19722 return n > 0 && gidset[n] != val.gval;
19725 rm -f conftest$ac_exeext
19726 if { (ac_try="$ac_link"
19727 case "(($ac_try" in
19728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19729 *) ac_try_echo
=$ac_try;;
19731 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19732 $as_echo "$ac_try_echo") >&5
19733 (eval "$ac_link") 2>&5
19735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19737 { (case "(($ac_try" in
19738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19739 *) ac_try_echo=$ac_try;;
19741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19742 $as_echo "$ac_try_echo") >&5
19743 (eval "$ac_try") 2>&5
19745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; }; then
19747 ac_cv_type_getgroups=gid_t
19749 $as_echo "$as_me: program exited with status $ac_status" >&5
19750 $as_echo "$as_me: failed program was:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19753 ( exit $ac_status )
19754 ac_cv_type_getgroups=int
19756 rm -rf conftest.dSYM
19757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19761 if test $ac_cv_type_getgroups = cross; then
19762 cat >conftest.$ac_ext <<_ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h. */
19768 #include <unistd.h>
19771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19772 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
19773 ac_cv_type_getgroups=gid_t
19775 ac_cv_type_getgroups=int
19781 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
19782 $as_echo "$ac_cv_type_getgroups" >&6; }
19784 cat >>confdefs.h <<_ACEOF
19785 #define GETGROUPS_T $ac_cv_type_getgroups
19789 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
19790 $as_echo_n "checking for off_t... " >&6; }
19791 if test "${ac_cv_type_off_t+set}" = set; then
19792 $as_echo_n "(cached) " >&6
19794 ac_cv_type_off_t=no
19795 cat >conftest.$ac_ext <<_ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19801 $ac_includes_default
19805 if (sizeof (off_t))
19811 rm -f conftest.$ac_objext
19812 if { (ac_try="$ac_compile"
19813 case "(($ac_try" in
19814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19815 *) ac_try_echo
=$ac_try;;
19817 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19818 $as_echo "$ac_try_echo") >&5
19819 (eval "$ac_compile") 2>conftest.er1
19821 grep -v '^ *+' conftest.er1
>conftest.err
19823 cat conftest.err
>&5
19824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); } && {
19826 test -z "$ac_c_werror_flag" ||
19827 test ! -s conftest.err
19828 } && test -s conftest.
$ac_objext; then
19829 cat >conftest.
$ac_ext <<_ACEOF
19832 cat confdefs.h
>>conftest.
$ac_ext
19833 cat >>conftest.
$ac_ext <<_ACEOF
19834 /* end confdefs.h. */
19835 $ac_includes_default
19839 if (sizeof ((off_t)))
19845 rm -f conftest.
$ac_objext
19846 if { (ac_try
="$ac_compile"
19847 case "(($ac_try" in
19848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19849 *) ac_try_echo=$ac_try;;
19851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19852 $as_echo "$ac_try_echo") >&5
19853 (eval "$ac_compile") 2>conftest.er1
19855 grep -v '^ *+' conftest.er1 >conftest.err
19857 cat conftest.err >&5
19858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } && {
19860 test -z "$ac_c_werror_flag" ||
19861 test ! -s conftest.err
19862 } && test -s conftest.$ac_objext; then
19865 $as_echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19868 ac_cv_type_off_t=yes
19871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19873 $as_echo "$as_me: failed program was:" >&5
19874 sed 's/^/| /' conftest.$ac_ext >&5
19879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19881 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19882 $as_echo "$ac_cv_type_off_t" >&6; }
19883 if test "x$ac_cv_type_off_t" = x""yes; then
19887 cat >>confdefs.h <<_ACEOF
19888 #define off_t long int
19893 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
19894 $as_echo_n "checking for mode_t... " >&6; }
19895 if test "${ac_cv_type_mode_t+set}" = set; then
19896 $as_echo_n "(cached) " >&6
19898 ac_cv_type_mode_t=no
19899 cat >conftest.$ac_ext <<_ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19905 $ac_includes_default
19909 if (sizeof (mode_t))
19915 rm -f conftest.$ac_objext
19916 if { (ac_try="$ac_compile"
19917 case "(($ac_try" in
19918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19919 *) ac_try_echo
=$ac_try;;
19921 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19922 $as_echo "$ac_try_echo") >&5
19923 (eval "$ac_compile") 2>conftest.er1
19925 grep -v '^ *+' conftest.er1
>conftest.err
19927 cat conftest.err
>&5
19928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } && {
19930 test -z "$ac_c_werror_flag" ||
19931 test ! -s conftest.err
19932 } && test -s conftest.
$ac_objext; then
19933 cat >conftest.
$ac_ext <<_ACEOF
19936 cat confdefs.h
>>conftest.
$ac_ext
19937 cat >>conftest.
$ac_ext <<_ACEOF
19938 /* end confdefs.h. */
19939 $ac_includes_default
19943 if (sizeof ((mode_t)))
19949 rm -f conftest.
$ac_objext
19950 if { (ac_try
="$ac_compile"
19951 case "(($ac_try" in
19952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19956 $as_echo "$ac_try_echo") >&5
19957 (eval "$ac_compile") 2>conftest.er1
19959 grep -v '^ *+' conftest.er1 >conftest.err
19961 cat conftest.err >&5
19962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); } && {
19964 test -z "$ac_c_werror_flag" ||
19965 test ! -s conftest.err
19966 } && test -s conftest.$ac_objext; then
19969 $as_echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19972 ac_cv_type_mode_t=yes
19975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19977 $as_echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19985 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19986 $as_echo "$ac_cv_type_mode_t" >&6; }
19987 if test "x$ac_cv_type_mode_t" = x""yes; then
19991 cat >>confdefs.h <<_ACEOF
19997 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19998 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19999 if test "${ac_cv_type_uid_t+set}" = set; then
20000 $as_echo_n "(cached) " >&6
20002 cat >conftest.$ac_ext <<_ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h. */
20008 #include <sys/types.h>
20011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20012 $EGREP "uid_t" >/dev/null 2>&1; then
20013 ac_cv_type_uid_t=yes
20015 ac_cv_type_uid_t=no
20020 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20021 $as_echo "$ac_cv_type_uid_t" >&6; }
20022 if test $ac_cv_type_uid_t = no; then
20024 cat >>confdefs.h <<\_ACEOF
20029 cat >>confdefs.h <<\_ACEOF
20035 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
20036 $as_echo_n "checking for pid_t... " >&6; }
20037 if test "${ac_cv_type_pid_t+set}" = set; then
20038 $as_echo_n "(cached) " >&6
20040 ac_cv_type_pid_t=no
20041 cat >conftest.$ac_ext <<_ACEOF
20044 cat confdefs.h >>conftest.$ac_ext
20045 cat >>conftest.$ac_ext <<_ACEOF
20046 /* end confdefs.h. */
20047 $ac_includes_default
20051 if (sizeof (pid_t))
20057 rm -f conftest.$ac_objext
20058 if { (ac_try="$ac_compile"
20059 case "(($ac_try" in
20060 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20061 *) ac_try_echo
=$ac_try;;
20063 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20064 $as_echo "$ac_try_echo") >&5
20065 (eval "$ac_compile") 2>conftest.er1
20067 grep -v '^ *+' conftest.er1
>conftest.err
20069 cat conftest.err
>&5
20070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } && {
20072 test -z "$ac_c_werror_flag" ||
20073 test ! -s conftest.err
20074 } && test -s conftest.
$ac_objext; then
20075 cat >conftest.
$ac_ext <<_ACEOF
20078 cat confdefs.h
>>conftest.
$ac_ext
20079 cat >>conftest.
$ac_ext <<_ACEOF
20080 /* end confdefs.h. */
20081 $ac_includes_default
20085 if (sizeof ((pid_t)))
20091 rm -f conftest.
$ac_objext
20092 if { (ac_try
="$ac_compile"
20093 case "(($ac_try" in
20094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20095 *) ac_try_echo=$ac_try;;
20097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20098 $as_echo "$ac_try_echo") >&5
20099 (eval "$ac_compile") 2>conftest.er1
20101 grep -v '^ *+' conftest.er1 >conftest.err
20103 cat conftest.err >&5
20104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); } && {
20106 test -z "$ac_c_werror_flag" ||
20107 test ! -s conftest.err
20108 } && test -s conftest.$ac_objext; then
20111 $as_echo "$as_me: failed program was:" >&5
20112 sed 's/^/| /' conftest.$ac_ext >&5
20114 ac_cv_type_pid_t=yes
20117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20119 $as_echo "$as_me: failed program was:" >&5
20120 sed 's/^/| /' conftest.$ac_ext >&5
20125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20127 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20128 $as_echo "$ac_cv_type_pid_t" >&6; }
20129 if test "x$ac_cv_type_pid_t" = x""yes; then
20133 cat >>confdefs.h <<_ACEOF
20139 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
20140 $as_echo_n "checking for size_t... " >&6; }
20141 if test "${ac_cv_type_size_t+set}" = set; then
20142 $as_echo_n "(cached) " >&6
20144 ac_cv_type_size_t=no
20145 cat >conftest.$ac_ext <<_ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h. */
20151 $ac_includes_default
20155 if (sizeof (size_t))
20161 rm -f conftest.$ac_objext
20162 if { (ac_try="$ac_compile"
20163 case "(($ac_try" in
20164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20165 *) ac_try_echo
=$ac_try;;
20167 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20168 $as_echo "$ac_try_echo") >&5
20169 (eval "$ac_compile") 2>conftest.er1
20171 grep -v '^ *+' conftest.er1
>conftest.err
20173 cat conftest.err
>&5
20174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } && {
20176 test -z "$ac_c_werror_flag" ||
20177 test ! -s conftest.err
20178 } && test -s conftest.
$ac_objext; then
20179 cat >conftest.
$ac_ext <<_ACEOF
20182 cat confdefs.h
>>conftest.
$ac_ext
20183 cat >>conftest.
$ac_ext <<_ACEOF
20184 /* end confdefs.h. */
20185 $ac_includes_default
20189 if (sizeof ((size_t)))
20195 rm -f conftest.
$ac_objext
20196 if { (ac_try
="$ac_compile"
20197 case "(($ac_try" in
20198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20199 *) ac_try_echo=$ac_try;;
20201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20202 $as_echo "$ac_try_echo") >&5
20203 (eval "$ac_compile") 2>conftest.er1
20205 grep -v '^ *+' conftest.er1 >conftest.err
20207 cat conftest.err >&5
20208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); } && {
20210 test -z "$ac_c_werror_flag" ||
20211 test ! -s conftest.err
20212 } && test -s conftest.$ac_objext; then
20215 $as_echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20218 ac_cv_type_size_t=yes
20221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20223 $as_echo "$as_me: failed program was:" >&5
20224 sed 's/^/| /' conftest.$ac_ext >&5
20229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20231 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20232 $as_echo "$ac_cv_type_size_t" >&6; }
20233 if test "x$ac_cv_type_size_t" = x""yes; then
20237 cat >>confdefs.h <<_ACEOF
20238 #define size_t unsigned int
20243 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
20244 $as_echo_n "checking for ssize_t... " >&6; }
20245 if test "${ac_cv_type_ssize_t+set}" = set; then
20246 $as_echo_n "(cached) " >&6
20248 ac_cv_type_ssize_t=no
20249 cat >conftest.$ac_ext <<_ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 $ac_includes_default
20259 if (sizeof (ssize_t))
20265 rm -f conftest.$ac_objext
20266 if { (ac_try="$ac_compile"
20267 case "(($ac_try" in
20268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20269 *) ac_try_echo
=$ac_try;;
20271 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20272 $as_echo "$ac_try_echo") >&5
20273 (eval "$ac_compile") 2>conftest.er1
20275 grep -v '^ *+' conftest.er1
>conftest.err
20277 cat conftest.err
>&5
20278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } && {
20280 test -z "$ac_c_werror_flag" ||
20281 test ! -s conftest.err
20282 } && test -s conftest.
$ac_objext; then
20283 cat >conftest.
$ac_ext <<_ACEOF
20286 cat confdefs.h
>>conftest.
$ac_ext
20287 cat >>conftest.
$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20289 $ac_includes_default
20293 if (sizeof ((ssize_t)))
20299 rm -f conftest.
$ac_objext
20300 if { (ac_try
="$ac_compile"
20301 case "(($ac_try" in
20302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20303 *) ac_try_echo=$ac_try;;
20305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20306 $as_echo "$ac_try_echo") >&5
20307 (eval "$ac_compile") 2>conftest.er1
20309 grep -v '^ *+' conftest.er1 >conftest.err
20311 cat conftest.err >&5
20312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); } && {
20314 test -z "$ac_c_werror_flag" ||
20315 test ! -s conftest.err
20316 } && test -s conftest.$ac_objext; then
20319 $as_echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.$ac_ext >&5
20322 ac_cv_type_ssize_t=yes
20325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20327 $as_echo "$as_me: failed program was:" >&5
20328 sed 's/^/| /' conftest.$ac_ext >&5
20333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20335 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20336 $as_echo "$ac_cv_type_ssize_t" >&6; }
20337 if test "x$ac_cv_type_ssize_t" = x""yes; then
20341 cat >>confdefs.h <<_ACEOF
20342 #define ssize_t int
20347 { $as_echo "$as_me:$LINENO: checking for time_t" >&5
20348 $as_echo_n "checking for time_t... " >&6; }
20349 if test "${ac_cv_type_time_t+set}" = set; then
20350 $as_echo_n "(cached) " >&6
20352 ac_cv_type_time_t=no
20353 cat >conftest.$ac_ext <<_ACEOF
20356 cat confdefs.h >>conftest.$ac_ext
20357 cat >>conftest.$ac_ext <<_ACEOF
20358 /* end confdefs.h. */
20359 $ac_includes_default
20363 if (sizeof (time_t))
20369 rm -f conftest.$ac_objext
20370 if { (ac_try="$ac_compile"
20371 case "(($ac_try" in
20372 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20373 *) ac_try_echo
=$ac_try;;
20375 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20376 $as_echo "$ac_try_echo") >&5
20377 (eval "$ac_compile") 2>conftest.er1
20379 grep -v '^ *+' conftest.er1
>conftest.err
20381 cat conftest.err
>&5
20382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); } && {
20384 test -z "$ac_c_werror_flag" ||
20385 test ! -s conftest.err
20386 } && test -s conftest.
$ac_objext; then
20387 cat >conftest.
$ac_ext <<_ACEOF
20390 cat confdefs.h
>>conftest.
$ac_ext
20391 cat >>conftest.
$ac_ext <<_ACEOF
20392 /* end confdefs.h. */
20393 $ac_includes_default
20397 if (sizeof ((time_t)))
20403 rm -f conftest.
$ac_objext
20404 if { (ac_try
="$ac_compile"
20405 case "(($ac_try" in
20406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20407 *) ac_try_echo=$ac_try;;
20409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20410 $as_echo "$ac_try_echo") >&5
20411 (eval "$ac_compile") 2>conftest.er1
20413 grep -v '^ *+' conftest.er1 >conftest.err
20415 cat conftest.err >&5
20416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } && {
20418 test -z "$ac_c_werror_flag" ||
20419 test ! -s conftest.err
20420 } && test -s conftest.$ac_objext; then
20423 $as_echo "$as_me: failed program was:" >&5
20424 sed 's/^/| /' conftest.$ac_ext >&5
20426 ac_cv_type_time_t=yes
20429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20431 $as_echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20439 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
20440 $as_echo "$ac_cv_type_time_t" >&6; }
20441 if test "x$ac_cv_type_time_t" = x""yes; then
20445 cat >>confdefs.h <<_ACEOF
20446 #define time_t long
20453 { $as_echo "$as_me:$LINENO: checking for long long" >&5
20454 $as_echo_n "checking for long long... " >&6; }
20455 if test "${bash_cv_type_long_long+set}" = set; then
20456 $as_echo_n "(cached) " >&6
20458 cat >conftest.$ac_ext <<_ACEOF
20461 cat confdefs.h >>conftest.$ac_ext
20462 cat >>conftest.$ac_ext <<_ACEOF
20463 /* end confdefs.h. */
20465 long long ll = 1; int i = 63;
20470 long long llm = (long long) -1;
20471 return ll << i | ll >> i | llm / ll | llm % ll;
20477 rm -f conftest.$ac_objext conftest$ac_exeext
20478 if { (ac_try="$ac_link"
20479 case "(($ac_try" in
20480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20481 *) ac_try_echo
=$ac_try;;
20483 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20484 $as_echo "$ac_try_echo") >&5
20485 (eval "$ac_link") 2>conftest.er1
20487 grep -v '^ *+' conftest.er1
>conftest.err
20489 cat conftest.err
>&5
20490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); } && {
20492 test -z "$ac_c_werror_flag" ||
20493 test ! -s conftest.err
20494 } && test -s conftest
$ac_exeext && {
20495 test "$cross_compiling" = yes ||
20496 $as_test_x conftest
$ac_exeext
20498 bash_cv_type_long_long
='long long'
20500 $as_echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.
$ac_ext >&5
20503 bash_cv_type_long_long
='long'
20506 rm -rf conftest.dSYM
20507 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20508 conftest
$ac_exeext conftest.
$ac_ext
20510 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
20511 $as_echo "$bash_cv_type_long_long" >&6; }
20512 if test "$bash_cv_type_long_long" = 'long long'; then
20513 cat >>confdefs.h
<<\_ACEOF
20514 #define HAVE_LONG_LONG 1
20520 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
20521 $as_echo_n "checking for unsigned long long... " >&6; }
20522 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
20523 $as_echo_n "(cached) " >&6
20525 cat >conftest.
$ac_ext <<_ACEOF
20528 cat confdefs.h
>>conftest.
$ac_ext
20529 cat >>conftest.
$ac_ext <<_ACEOF
20530 /* end confdefs.h. */
20532 unsigned long long ull = 1; int i = 63;
20537 unsigned long long ullmax = (unsigned long long) -1;
20538 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20544 rm -f conftest.
$ac_objext conftest
$ac_exeext
20545 if { (ac_try
="$ac_link"
20546 case "(($ac_try" in
20547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20548 *) ac_try_echo=$ac_try;;
20550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20551 $as_echo "$ac_try_echo") >&5
20552 (eval "$ac_link") 2>conftest.er1
20554 grep -v '^ *+' conftest.er1 >conftest.err
20556 cat conftest.err >&5
20557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); } && {
20559 test -z "$ac_c_werror_flag" ||
20560 test ! -s conftest.err
20561 } && test -s conftest$ac_exeext && {
20562 test "$cross_compiling" = yes ||
20563 $as_test_x conftest$ac_exeext
20565 bash_cv_type_unsigned_long_long='unsigned long long'
20567 $as_echo "$as_me: failed program was:" >&5
20568 sed 's/^/| /' conftest.$ac_ext >&5
20570 bash_cv_type_unsigned_long_long='unsigned long'
20573 rm -rf conftest.dSYM
20574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20575 conftest$ac_exeext conftest.$ac_ext
20577 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
20578 $as_echo "$bash_cv_type_unsigned_long_long" >&6; }
20579 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
20580 cat >>confdefs.h <<\_ACEOF
20581 #define HAVE_UNSIGNED_LONG_LONG 1
20587 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20588 $as_echo_n "checking return type of signal handlers... " >&6; }
20589 if test "${ac_cv_type_signal+set}" = set; then
20590 $as_echo_n "(cached) " >&6
20592 cat >conftest.$ac_ext <<_ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h. */
20598 #include <sys/types.h>
20599 #include <signal.h>
20604 return *(signal (0, 0)) (0) == 1;
20609 rm -f conftest.$ac_objext
20610 if { (ac_try="$ac_compile"
20611 case "(($ac_try" in
20612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20613 *) ac_try_echo
=$ac_try;;
20615 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20616 $as_echo "$ac_try_echo") >&5
20617 (eval "$ac_compile") 2>conftest.er1
20619 grep -v '^ *+' conftest.er1
>conftest.err
20621 cat conftest.err
>&5
20622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } && {
20624 test -z "$ac_c_werror_flag" ||
20625 test ! -s conftest.err
20626 } && test -s conftest.
$ac_objext; then
20627 ac_cv_type_signal
=int
20629 $as_echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.
$ac_ext >&5
20632 ac_cv_type_signal
=void
20635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20637 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20638 $as_echo "$ac_cv_type_signal" >&6; }
20640 cat >>confdefs.h
<<_ACEOF
20641 #define RETSIGTYPE $ac_cv_type_signal
20645 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
20646 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
20647 if test "${ac_cv_have_sig_atomic_t+set}" = set; then
20648 $as_echo_n "(cached) " >&6
20650 cat >conftest.
$ac_ext <<_ACEOF
20653 cat confdefs.h
>>conftest.
$ac_ext
20654 cat >>conftest.
$ac_ext <<_ACEOF
20655 /* end confdefs.h. */
20657 #include <signal.h>
20667 rm -f conftest.
$ac_objext conftest
$ac_exeext
20668 if { (ac_try
="$ac_link"
20669 case "(($ac_try" in
20670 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20671 *) ac_try_echo=$ac_try;;
20673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20674 $as_echo "$ac_try_echo") >&5
20675 (eval "$ac_link") 2>conftest.er1
20677 grep -v '^ *+' conftest.er1 >conftest.err
20679 cat conftest.err >&5
20680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); } && {
20682 test -z "$ac_c_werror_flag" ||
20683 test ! -s conftest.err
20684 } && test -s conftest$ac_exeext && {
20685 test "$cross_compiling" = yes ||
20686 $as_test_x conftest$ac_exeext
20688 ac_cv_have_sig_atomic_t=yes
20690 $as_echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20693 ac_cv_have_sig_atomic_t=no
20696 rm -rf conftest.dSYM
20697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20698 conftest$ac_exeext conftest.$ac_ext
20700 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_sig_atomic_t" >&5
20701 $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
20702 if test "$ac_cv_have_sig_atomic_t" = "no"
20704 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
20705 $as_echo_n "checking for sig_atomic_t... " >&6; }
20706 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
20707 $as_echo_n "(cached) " >&6
20709 ac_cv_type_sig_atomic_t=no
20710 cat >conftest.$ac_ext <<_ACEOF
20713 cat confdefs.h >>conftest.$ac_ext
20714 cat >>conftest.$ac_ext <<_ACEOF
20715 /* end confdefs.h. */
20716 $ac_includes_default
20720 if (sizeof (sig_atomic_t))
20726 rm -f conftest.$ac_objext
20727 if { (ac_try="$ac_compile"
20728 case "(($ac_try" in
20729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20730 *) ac_try_echo
=$ac_try;;
20732 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20733 $as_echo "$ac_try_echo") >&5
20734 (eval "$ac_compile") 2>conftest.er1
20736 grep -v '^ *+' conftest.er1
>conftest.err
20738 cat conftest.err
>&5
20739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); } && {
20741 test -z "$ac_c_werror_flag" ||
20742 test ! -s conftest.err
20743 } && test -s conftest.
$ac_objext; then
20744 cat >conftest.
$ac_ext <<_ACEOF
20747 cat confdefs.h
>>conftest.
$ac_ext
20748 cat >>conftest.
$ac_ext <<_ACEOF
20749 /* end confdefs.h. */
20750 $ac_includes_default
20754 if (sizeof ((sig_atomic_t)))
20760 rm -f conftest.
$ac_objext
20761 if { (ac_try
="$ac_compile"
20762 case "(($ac_try" in
20763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20764 *) ac_try_echo=$ac_try;;
20766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20767 $as_echo "$ac_try_echo") >&5
20768 (eval "$ac_compile") 2>conftest.er1
20770 grep -v '^ *+' conftest.er1 >conftest.err
20772 cat conftest.err >&5
20773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); } && {
20775 test -z "$ac_c_werror_flag" ||
20776 test ! -s conftest.err
20777 } && test -s conftest.$ac_objext; then
20780 $as_echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20783 ac_cv_type_sig_atomic_t=yes
20786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20788 $as_echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20796 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
20797 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
20798 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
20802 cat >>confdefs.h <<_ACEOF
20803 #define sig_atomic_t int
20811 # The cast to long int works around a bug in the HP C Compiler
20812 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20813 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
20814 # This bug is HP SR number 8606223364.
20815 { $as_echo "$as_me:$LINENO: checking size of char" >&5
20816 $as_echo_n "checking size of char... " >&6; }
20817 if test "${ac_cv_sizeof_char+set}" = set; then
20818 $as_echo_n "(cached) " >&6
20820 if test "$cross_compiling" = yes; then
20821 # Depending upon the size, compute the lo and hi bounds.
20822 cat >conftest.$ac_ext <<_ACEOF
20825 cat confdefs.h >>conftest.$ac_ext
20826 cat >>conftest.$ac_ext <<_ACEOF
20827 /* end confdefs.h. */
20828 $ac_includes_default
20832 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
20839 rm -f conftest.$ac_objext
20840 if { (ac_try="$ac_compile"
20841 case "(($ac_try" in
20842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843 *) ac_try_echo=$ac_try;;
20845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20846 $as_echo "$ac_try_echo") >&5
20847 (eval "$ac_compile") 2>conftest.er1
20849 grep -v '^
*+' conftest.er1 >conftest.err
20851 cat conftest.err >&5
20852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); } && {
20854 test -z "$ac_c_werror_flag" ||
20855 test ! -s conftest.err
20856 } && test -s conftest.$ac_objext; then
20859 cat >conftest.$ac_ext <<_ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20865 $ac_includes_default
20869 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
20876 rm -f conftest.$ac_objext
20877 if { (ac_try="$ac_compile"
20878 case "(($ac_try" in
20879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20880 *) ac_try_echo=$ac_try;;
20882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20883 $as_echo "$ac_try_echo") >&5
20884 (eval "$ac_compile") 2>conftest.er1
20886 grep -v '^
*+' conftest.er1 >conftest.err
20888 cat conftest.err >&5
20889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); } && {
20891 test -z "$ac_c_werror_flag" ||
20892 test ! -s conftest.err
20893 } && test -s conftest.$ac_objext; then
20894 ac_hi=$ac_mid; break
20896 $as_echo "$as_me: failed program was:" >&5
20897 sed 's
/^
/|
/' conftest.$ac_ext >&5
20899 ac_lo=`expr $ac_mid + 1`
20900 if test $ac_lo -le $ac_mid; then
20904 ac_mid=`expr 2 '*' $ac_mid + 1`
20907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20910 $as_echo "$as_me: failed program was:" >&5
20911 sed 's
/^
/|
/' conftest.$ac_ext >&5
20913 cat >conftest.$ac_ext <<_ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20919 $ac_includes_default
20923 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
20930 rm -f conftest.$ac_objext
20931 if { (ac_try="$ac_compile"
20932 case "(($ac_try" in
20933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20934 *) ac_try_echo=$ac_try;;
20936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20937 $as_echo "$ac_try_echo") >&5
20938 (eval "$ac_compile") 2>conftest.er1
20940 grep -v '^
*+' conftest.er1 >conftest.err
20942 cat conftest.err >&5
20943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); } && {
20945 test -z "$ac_c_werror_flag" ||
20946 test ! -s conftest.err
20947 } && test -s conftest.$ac_objext; then
20950 cat >conftest.$ac_ext <<_ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20956 $ac_includes_default
20960 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
20967 rm -f conftest.$ac_objext
20968 if { (ac_try="$ac_compile"
20969 case "(($ac_try" in
20970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971 *) ac_try_echo=$ac_try;;
20973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20974 $as_echo "$ac_try_echo") >&5
20975 (eval "$ac_compile") 2>conftest.er1
20977 grep -v '^
*+' conftest.er1 >conftest.err
20979 cat conftest.err >&5
20980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } && {
20982 test -z "$ac_c_werror_flag" ||
20983 test ! -s conftest.err
20984 } && test -s conftest.$ac_objext; then
20985 ac_lo=$ac_mid; break
20987 $as_echo "$as_me: failed program was:" >&5
20988 sed 's
/^
/|
/' conftest.$ac_ext >&5
20990 ac_hi=`expr '(' $ac_mid ')' - 1`
20991 if test $ac_mid -le $ac_hi; then
20995 ac_mid=`expr 2 '*' $ac_mid`
20998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21001 $as_echo "$as_me: failed program was:" >&5
21002 sed 's
/^
/|
/' conftest.$ac_ext >&5
21007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21011 # Binary search between lo and hi bounds.
21012 while test "x$ac_lo" != "x$ac_hi"; do
21013 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21014 cat >conftest.$ac_ext <<_ACEOF
21017 cat confdefs.h >>conftest.$ac_ext
21018 cat >>conftest.$ac_ext <<_ACEOF
21019 /* end confdefs.h. */
21020 $ac_includes_default
21024 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
21031 rm -f conftest.$ac_objext
21032 if { (ac_try="$ac_compile"
21033 case "(($ac_try" in
21034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21035 *) ac_try_echo=$ac_try;;
21037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21038 $as_echo "$ac_try_echo") >&5
21039 (eval "$ac_compile") 2>conftest.er1
21041 grep -v '^
*+' conftest.er1 >conftest.err
21043 cat conftest.err >&5
21044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); } && {
21046 test -z "$ac_c_werror_flag" ||
21047 test ! -s conftest.err
21048 } && test -s conftest.$ac_objext; then
21051 $as_echo "$as_me: failed program was:" >&5
21052 sed 's
/^
/|
/' conftest.$ac_ext >&5
21054 ac_lo=`expr '(' $ac_mid ')' + 1`
21057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21060 ?*) ac_cv_sizeof_char=$ac_lo;;
21061 '') if test "$ac_cv_type_char" = yes; then
21062 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21063 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
21064 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
21065 See \`config.log
' for more details." >&5
21066 $as_echo "$as_me: error: cannot compute sizeof (char)
21067 See \`config.log' for more details.
" >&2;}
21068 { (exit 77); exit 77; }; }; }
21070 ac_cv_sizeof_char=0
21074 cat >conftest.$ac_ext <<_ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21080 $ac_includes_default
21081 static long int longval () { return (long int) (sizeof (char)); }
21082 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
21084 #include <stdlib.h>
21089 FILE *f = fopen ("conftest.val
", "w
");
21092 if (((long int) (sizeof (char))) < 0)
21094 long int i = longval ();
21095 if (i != ((long int) (sizeof (char))))
21097 fprintf (f, "%ld
", i);
21101 unsigned long int i = ulongval ();
21102 if (i != ((long int) (sizeof (char))))
21104 fprintf (f, "%lu
", i);
21106 /* Do not output a trailing newline, as this causes \r\n confusion
21107 on some platforms. */
21108 return ferror (f) || fclose (f) != 0;
21114 rm -f conftest$ac_exeext
21115 if { (ac_try="$ac_link"
21116 case "(($ac_try" in
21117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118 *) ac_try_echo=$ac_try;;
21120 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21121 $as_echo "$ac_try_echo") >&5
21122 (eval "$ac_link") 2>&5
21124 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21126 { (case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21130 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21131 $as_echo "$ac_try_echo") >&5
21132 (eval "$ac_try") 2>&5
21134 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21135 (exit $ac_status); }; }; then
21136 ac_cv_sizeof_char=`cat conftest.val`
21138 $as_echo "$as_me: program exited with status
$ac_status" >&5
21139 $as_echo "$as_me: failed program was
:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21142 ( exit $ac_status )
21143 if test "$ac_cv_type_char" = yes; then
21144 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
21145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21146 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
21147 See \`config.log' for more details.
" >&5
21148 $as_echo "$as_me: error
: cannot compute sizeof
(char
)
21149 See \
`config.log' for more details." >&2;}
21150 { (exit 77); exit 77; }; }; }
21152 ac_cv_sizeof_char=0
21155 rm -rf conftest.dSYM
21156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21160 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
21161 $as_echo "$ac_cv_sizeof_char" >&6; }
21165 cat >>confdefs.h <<_ACEOF
21166 #define SIZEOF_CHAR $ac_cv_sizeof_char
21170 # The cast to long int works around a bug in the HP C Compiler
21171 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21172 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
21173 # This bug is HP SR number 8606223364.
21174 { $as_echo "$as_me:$LINENO: checking size of short" >&5
21175 $as_echo_n "checking size of short... " >&6; }
21176 if test "${ac_cv_sizeof_short+set}" = set; then
21177 $as_echo_n "(cached) " >&6
21179 if test "$cross_compiling" = yes; then
21180 # Depending upon the size, compute the lo and hi bounds.
21181 cat >conftest.$ac_ext <<_ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 $ac_includes_default
21191 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
21198 rm -f conftest.$ac_objext
21199 if { (ac_try="$ac_compile"
21200 case "(($ac_try" in
21201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202 *) ac_try_echo=$ac_try;;
21204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21205 $as_echo "$ac_try_echo") >&5
21206 (eval "$ac_compile") 2>conftest.er1
21208 grep -v '^
*+' conftest.er1 >conftest.err
21210 cat conftest.err >&5
21211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); } && {
21213 test -z "$ac_c_werror_flag" ||
21214 test ! -s conftest.err
21215 } && test -s conftest.$ac_objext; then
21218 cat >conftest.$ac_ext <<_ACEOF
21221 cat confdefs.h >>conftest.$ac_ext
21222 cat >>conftest.$ac_ext <<_ACEOF
21223 /* end confdefs.h. */
21224 $ac_includes_default
21228 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
21235 rm -f conftest.$ac_objext
21236 if { (ac_try="$ac_compile"
21237 case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21242 $as_echo "$ac_try_echo") >&5
21243 (eval "$ac_compile") 2>conftest.er1
21245 grep -v '^
*+' conftest.er1 >conftest.err
21247 cat conftest.err >&5
21248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); } && {
21250 test -z "$ac_c_werror_flag" ||
21251 test ! -s conftest.err
21252 } && test -s conftest.$ac_objext; then
21253 ac_hi=$ac_mid; break
21255 $as_echo "$as_me: failed program was:" >&5
21256 sed 's
/^
/|
/' conftest.$ac_ext >&5
21258 ac_lo=`expr $ac_mid + 1`
21259 if test $ac_lo -le $ac_mid; then
21263 ac_mid=`expr 2 '*' $ac_mid + 1`
21266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21269 $as_echo "$as_me: failed program was:" >&5
21270 sed 's
/^
/|
/' conftest.$ac_ext >&5
21272 cat >conftest.$ac_ext <<_ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h. */
21278 $ac_includes_default
21282 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
21289 rm -f conftest.$ac_objext
21290 if { (ac_try="$ac_compile"
21291 case "(($ac_try" in
21292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293 *) ac_try_echo=$ac_try;;
21295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21296 $as_echo "$ac_try_echo") >&5
21297 (eval "$ac_compile") 2>conftest.er1
21299 grep -v '^
*+' conftest.er1 >conftest.err
21301 cat conftest.err >&5
21302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); } && {
21304 test -z "$ac_c_werror_flag" ||
21305 test ! -s conftest.err
21306 } && test -s conftest.$ac_objext; then
21309 cat >conftest.$ac_ext <<_ACEOF
21312 cat confdefs.h >>conftest.$ac_ext
21313 cat >>conftest.$ac_ext <<_ACEOF
21314 /* end confdefs.h. */
21315 $ac_includes_default
21319 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
21326 rm -f conftest.$ac_objext
21327 if { (ac_try="$ac_compile"
21328 case "(($ac_try" in
21329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21330 *) ac_try_echo=$ac_try;;
21332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21333 $as_echo "$ac_try_echo") >&5
21334 (eval "$ac_compile") 2>conftest.er1
21336 grep -v '^
*+' conftest.er1 >conftest.err
21338 cat conftest.err >&5
21339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); } && {
21341 test -z "$ac_c_werror_flag" ||
21342 test ! -s conftest.err
21343 } && test -s conftest.$ac_objext; then
21344 ac_lo=$ac_mid; break
21346 $as_echo "$as_me: failed program was:" >&5
21347 sed 's
/^
/|
/' conftest.$ac_ext >&5
21349 ac_hi=`expr '(' $ac_mid ')' - 1`
21350 if test $ac_mid -le $ac_hi; then
21354 ac_mid=`expr 2 '*' $ac_mid`
21357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21360 $as_echo "$as_me: failed program was:" >&5
21361 sed 's
/^
/|
/' conftest.$ac_ext >&5
21366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21370 # Binary search between lo and hi bounds.
21371 while test "x$ac_lo" != "x$ac_hi"; do
21372 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21373 cat >conftest.$ac_ext <<_ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h. */
21379 $ac_includes_default
21383 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
21390 rm -f conftest.$ac_objext
21391 if { (ac_try="$ac_compile"
21392 case "(($ac_try" in
21393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21394 *) ac_try_echo=$ac_try;;
21396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21397 $as_echo "$ac_try_echo") >&5
21398 (eval "$ac_compile") 2>conftest.er1
21400 grep -v '^
*+' conftest.er1 >conftest.err
21402 cat conftest.err >&5
21403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } && {
21405 test -z "$ac_c_werror_flag" ||
21406 test ! -s conftest.err
21407 } && test -s conftest.$ac_objext; then
21410 $as_echo "$as_me: failed program was:" >&5
21411 sed 's
/^
/|
/' conftest.$ac_ext >&5
21413 ac_lo=`expr '(' $ac_mid ')' + 1`
21416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21419 ?*) ac_cv_sizeof_short=$ac_lo;;
21420 '') if test "$ac_cv_type_short" = yes; then
21421 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21422 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
21423 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21424 See \`config.log
' for more details." >&5
21425 $as_echo "$as_me: error: cannot compute sizeof (short)
21426 See \`config.log' for more details.
" >&2;}
21427 { (exit 77); exit 77; }; }; }
21429 ac_cv_sizeof_short=0
21433 cat >conftest.$ac_ext <<_ACEOF
21436 cat confdefs.h >>conftest.$ac_ext
21437 cat >>conftest.$ac_ext <<_ACEOF
21438 /* end confdefs.h. */
21439 $ac_includes_default
21440 static long int longval () { return (long int) (sizeof (short)); }
21441 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
21443 #include <stdlib.h>
21448 FILE *f = fopen ("conftest.val
", "w
");
21451 if (((long int) (sizeof (short))) < 0)
21453 long int i = longval ();
21454 if (i != ((long int) (sizeof (short))))
21456 fprintf (f, "%ld
", i);
21460 unsigned long int i = ulongval ();
21461 if (i != ((long int) (sizeof (short))))
21463 fprintf (f, "%lu
", i);
21465 /* Do not output a trailing newline, as this causes \r\n confusion
21466 on some platforms. */
21467 return ferror (f) || fclose (f) != 0;
21473 rm -f conftest$ac_exeext
21474 if { (ac_try="$ac_link"
21475 case "(($ac_try" in
21476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21477 *) ac_try_echo=$ac_try;;
21479 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21480 $as_echo "$ac_try_echo") >&5
21481 (eval "$ac_link") 2>&5
21483 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21485 { (case "(($ac_try" in
21486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21487 *) ac_try_echo=$ac_try;;
21489 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21490 $as_echo "$ac_try_echo") >&5
21491 (eval "$ac_try") 2>&5
21493 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21494 (exit $ac_status); }; }; then
21495 ac_cv_sizeof_short=`cat conftest.val`
21497 $as_echo "$as_me: program exited with status
$ac_status" >&5
21498 $as_echo "$as_me: failed program was
:" >&5
21499 sed 's/^/| /' conftest.$ac_ext >&5
21501 ( exit $ac_status )
21502 if test "$ac_cv_type_short" = yes; then
21503 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
21504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21505 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21506 See \`config.log' for more details.
" >&5
21507 $as_echo "$as_me: error
: cannot compute sizeof
(short
)
21508 See \
`config.log' for more details." >&2;}
21509 { (exit 77); exit 77; }; }; }
21511 ac_cv_sizeof_short=0
21514 rm -rf conftest.dSYM
21515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21519 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21520 $as_echo "$ac_cv_sizeof_short" >&6; }
21524 cat >>confdefs.h <<_ACEOF
21525 #define SIZEOF_SHORT $ac_cv_sizeof_short
21529 # The cast to long int works around a bug in the HP C Compiler
21530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21531 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
21532 # This bug is HP SR number 8606223364.
21533 { $as_echo "$as_me:$LINENO: checking size of int" >&5
21534 $as_echo_n "checking size of int... " >&6; }
21535 if test "${ac_cv_sizeof_int+set}" = set; then
21536 $as_echo_n "(cached) " >&6
21538 if test "$cross_compiling" = yes; then
21539 # Depending upon the size, compute the lo and hi bounds.
21540 cat >conftest.$ac_ext <<_ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h. */
21546 $ac_includes_default
21550 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
21557 rm -f conftest.$ac_objext
21558 if { (ac_try="$ac_compile"
21559 case "(($ac_try" in
21560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21561 *) ac_try_echo=$ac_try;;
21563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21564 $as_echo "$ac_try_echo") >&5
21565 (eval "$ac_compile") 2>conftest.er1
21567 grep -v '^
*+' conftest.er1 >conftest.err
21569 cat conftest.err >&5
21570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); } && {
21572 test -z "$ac_c_werror_flag" ||
21573 test ! -s conftest.err
21574 } && test -s conftest.$ac_objext; then
21577 cat >conftest.$ac_ext <<_ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h. */
21583 $ac_includes_default
21587 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
21594 rm -f conftest.$ac_objext
21595 if { (ac_try="$ac_compile"
21596 case "(($ac_try" in
21597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21598 *) ac_try_echo=$ac_try;;
21600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21601 $as_echo "$ac_try_echo") >&5
21602 (eval "$ac_compile") 2>conftest.er1
21604 grep -v '^
*+' conftest.er1 >conftest.err
21606 cat conftest.err >&5
21607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } && {
21609 test -z "$ac_c_werror_flag" ||
21610 test ! -s conftest.err
21611 } && test -s conftest.$ac_objext; then
21612 ac_hi=$ac_mid; break
21614 $as_echo "$as_me: failed program was:" >&5
21615 sed 's
/^
/|
/' conftest.$ac_ext >&5
21617 ac_lo=`expr $ac_mid + 1`
21618 if test $ac_lo -le $ac_mid; then
21622 ac_mid=`expr 2 '*' $ac_mid + 1`
21625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21628 $as_echo "$as_me: failed program was:" >&5
21629 sed 's
/^
/|
/' conftest.$ac_ext >&5
21631 cat >conftest.$ac_ext <<_ACEOF
21634 cat confdefs.h >>conftest.$ac_ext
21635 cat >>conftest.$ac_ext <<_ACEOF
21636 /* end confdefs.h. */
21637 $ac_includes_default
21641 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
21648 rm -f conftest.$ac_objext
21649 if { (ac_try="$ac_compile"
21650 case "(($ac_try" in
21651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21652 *) ac_try_echo=$ac_try;;
21654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21655 $as_echo "$ac_try_echo") >&5
21656 (eval "$ac_compile") 2>conftest.er1
21658 grep -v '^
*+' conftest.er1 >conftest.err
21660 cat conftest.err >&5
21661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); } && {
21663 test -z "$ac_c_werror_flag" ||
21664 test ! -s conftest.err
21665 } && test -s conftest.$ac_objext; then
21668 cat >conftest.$ac_ext <<_ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h. */
21674 $ac_includes_default
21678 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
21685 rm -f conftest.$ac_objext
21686 if { (ac_try="$ac_compile"
21687 case "(($ac_try" in
21688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21689 *) ac_try_echo=$ac_try;;
21691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21692 $as_echo "$ac_try_echo") >&5
21693 (eval "$ac_compile") 2>conftest.er1
21695 grep -v '^
*+' conftest.er1 >conftest.err
21697 cat conftest.err >&5
21698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); } && {
21700 test -z "$ac_c_werror_flag" ||
21701 test ! -s conftest.err
21702 } && test -s conftest.$ac_objext; then
21703 ac_lo=$ac_mid; break
21705 $as_echo "$as_me: failed program was:" >&5
21706 sed 's
/^
/|
/' conftest.$ac_ext >&5
21708 ac_hi=`expr '(' $ac_mid ')' - 1`
21709 if test $ac_mid -le $ac_hi; then
21713 ac_mid=`expr 2 '*' $ac_mid`
21716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21719 $as_echo "$as_me: failed program was:" >&5
21720 sed 's
/^
/|
/' conftest.$ac_ext >&5
21725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21729 # Binary search between lo and hi bounds.
21730 while test "x$ac_lo" != "x$ac_hi"; do
21731 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21732 cat >conftest.$ac_ext <<_ACEOF
21735 cat confdefs.h >>conftest.$ac_ext
21736 cat >>conftest.$ac_ext <<_ACEOF
21737 /* end confdefs.h. */
21738 $ac_includes_default
21742 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
21749 rm -f conftest.$ac_objext
21750 if { (ac_try="$ac_compile"
21751 case "(($ac_try" in
21752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753 *) ac_try_echo=$ac_try;;
21755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21756 $as_echo "$ac_try_echo") >&5
21757 (eval "$ac_compile") 2>conftest.er1
21759 grep -v '^
*+' conftest.er1 >conftest.err
21761 cat conftest.err >&5
21762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); } && {
21764 test -z "$ac_c_werror_flag" ||
21765 test ! -s conftest.err
21766 } && test -s conftest.$ac_objext; then
21769 $as_echo "$as_me: failed program was:" >&5
21770 sed 's
/^
/|
/' conftest.$ac_ext >&5
21772 ac_lo=`expr '(' $ac_mid ')' + 1`
21775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21778 ?*) ac_cv_sizeof_int=$ac_lo;;
21779 '') if test "$ac_cv_type_int" = yes; then
21780 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21781 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
21782 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21783 See \`config.log
' for more details." >&5
21784 $as_echo "$as_me: error: cannot compute sizeof (int)
21785 See \`config.log' for more details.
" >&2;}
21786 { (exit 77); exit 77; }; }; }
21792 cat >conftest.$ac_ext <<_ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h. */
21798 $ac_includes_default
21799 static long int longval () { return (long int) (sizeof (int)); }
21800 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
21802 #include <stdlib.h>
21807 FILE *f = fopen ("conftest.val
", "w
");
21810 if (((long int) (sizeof (int))) < 0)
21812 long int i = longval ();
21813 if (i != ((long int) (sizeof (int))))
21815 fprintf (f, "%ld
", i);
21819 unsigned long int i = ulongval ();
21820 if (i != ((long int) (sizeof (int))))
21822 fprintf (f, "%lu
", i);
21824 /* Do not output a trailing newline, as this causes \r\n confusion
21825 on some platforms. */
21826 return ferror (f) || fclose (f) != 0;
21832 rm -f conftest$ac_exeext
21833 if { (ac_try="$ac_link"
21834 case "(($ac_try" in
21835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21836 *) ac_try_echo=$ac_try;;
21838 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21839 $as_echo "$ac_try_echo") >&5
21840 (eval "$ac_link") 2>&5
21842 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21844 { (case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21848 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21849 $as_echo "$ac_try_echo") >&5
21850 (eval "$ac_try") 2>&5
21852 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21853 (exit $ac_status); }; }; then
21854 ac_cv_sizeof_int=`cat conftest.val`
21856 $as_echo "$as_me: program exited with status
$ac_status" >&5
21857 $as_echo "$as_me: failed program was
:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21860 ( exit $ac_status )
21861 if test "$ac_cv_type_int" = yes; then
21862 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
21863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21864 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21865 See \`config.log' for more details.
" >&5
21866 $as_echo "$as_me: error
: cannot compute sizeof
(int
)
21867 See \
`config.log' for more details." >&2;}
21868 { (exit 77); exit 77; }; }; }
21873 rm -rf conftest.dSYM
21874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21878 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21879 $as_echo "$ac_cv_sizeof_int" >&6; }
21883 cat >>confdefs.h <<_ACEOF
21884 #define SIZEOF_INT $ac_cv_sizeof_int
21888 # The cast to long int works around a bug in the HP C Compiler
21889 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21890 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
21891 # This bug is HP SR number 8606223364.
21892 { $as_echo "$as_me:$LINENO: checking size of long" >&5
21893 $as_echo_n "checking size of long... " >&6; }
21894 if test "${ac_cv_sizeof_long+set}" = set; then
21895 $as_echo_n "(cached) " >&6
21897 if test "$cross_compiling" = yes; then
21898 # Depending upon the size, compute the lo and hi bounds.
21899 cat >conftest.$ac_ext <<_ACEOF
21902 cat confdefs.h >>conftest.$ac_ext
21903 cat >>conftest.$ac_ext <<_ACEOF
21904 /* end confdefs.h. */
21905 $ac_includes_default
21909 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
21916 rm -f conftest.$ac_objext
21917 if { (ac_try="$ac_compile"
21918 case "(($ac_try" in
21919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21920 *) ac_try_echo=$ac_try;;
21922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21923 $as_echo "$ac_try_echo") >&5
21924 (eval "$ac_compile") 2>conftest.er1
21926 grep -v '^
*+' conftest.er1 >conftest.err
21928 cat conftest.err >&5
21929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } && {
21931 test -z "$ac_c_werror_flag" ||
21932 test ! -s conftest.err
21933 } && test -s conftest.$ac_objext; then
21936 cat >conftest.$ac_ext <<_ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h. */
21942 $ac_includes_default
21946 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
21953 rm -f conftest.$ac_objext
21954 if { (ac_try="$ac_compile"
21955 case "(($ac_try" in
21956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21957 *) ac_try_echo=$ac_try;;
21959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21960 $as_echo "$ac_try_echo") >&5
21961 (eval "$ac_compile") 2>conftest.er1
21963 grep -v '^
*+' conftest.er1 >conftest.err
21965 cat conftest.err >&5
21966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); } && {
21968 test -z "$ac_c_werror_flag" ||
21969 test ! -s conftest.err
21970 } && test -s conftest.$ac_objext; then
21971 ac_hi=$ac_mid; break
21973 $as_echo "$as_me: failed program was:" >&5
21974 sed 's
/^
/|
/' conftest.$ac_ext >&5
21976 ac_lo=`expr $ac_mid + 1`
21977 if test $ac_lo -le $ac_mid; then
21981 ac_mid=`expr 2 '*' $ac_mid + 1`
21984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21987 $as_echo "$as_me: failed program was:" >&5
21988 sed 's
/^
/|
/' conftest.$ac_ext >&5
21990 cat >conftest.$ac_ext <<_ACEOF
21993 cat confdefs.h >>conftest.$ac_ext
21994 cat >>conftest.$ac_ext <<_ACEOF
21995 /* end confdefs.h. */
21996 $ac_includes_default
22000 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
22007 rm -f conftest.$ac_objext
22008 if { (ac_try="$ac_compile"
22009 case "(($ac_try" in
22010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011 *) ac_try_echo=$ac_try;;
22013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22014 $as_echo "$ac_try_echo") >&5
22015 (eval "$ac_compile") 2>conftest.er1
22017 grep -v '^
*+' conftest.er1 >conftest.err
22019 cat conftest.err >&5
22020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } && {
22022 test -z "$ac_c_werror_flag" ||
22023 test ! -s conftest.err
22024 } && test -s conftest.$ac_objext; then
22027 cat >conftest.$ac_ext <<_ACEOF
22030 cat confdefs.h >>conftest.$ac_ext
22031 cat >>conftest.$ac_ext <<_ACEOF
22032 /* end confdefs.h. */
22033 $ac_includes_default
22037 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
22044 rm -f conftest.$ac_objext
22045 if { (ac_try="$ac_compile"
22046 case "(($ac_try" in
22047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048 *) ac_try_echo=$ac_try;;
22050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22051 $as_echo "$ac_try_echo") >&5
22052 (eval "$ac_compile") 2>conftest.er1
22054 grep -v '^
*+' conftest.er1 >conftest.err
22056 cat conftest.err >&5
22057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); } && {
22059 test -z "$ac_c_werror_flag" ||
22060 test ! -s conftest.err
22061 } && test -s conftest.$ac_objext; then
22062 ac_lo=$ac_mid; break
22064 $as_echo "$as_me: failed program was:" >&5
22065 sed 's
/^
/|
/' conftest.$ac_ext >&5
22067 ac_hi=`expr '(' $ac_mid ')' - 1`
22068 if test $ac_mid -le $ac_hi; then
22072 ac_mid=`expr 2 '*' $ac_mid`
22075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22078 $as_echo "$as_me: failed program was:" >&5
22079 sed 's
/^
/|
/' conftest.$ac_ext >&5
22084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22088 # Binary search between lo and hi bounds.
22089 while test "x$ac_lo" != "x$ac_hi"; do
22090 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22091 cat >conftest.$ac_ext <<_ACEOF
22094 cat confdefs.h >>conftest.$ac_ext
22095 cat >>conftest.$ac_ext <<_ACEOF
22096 /* end confdefs.h. */
22097 $ac_includes_default
22101 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
22108 rm -f conftest.$ac_objext
22109 if { (ac_try="$ac_compile"
22110 case "(($ac_try" in
22111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112 *) ac_try_echo=$ac_try;;
22114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22115 $as_echo "$ac_try_echo") >&5
22116 (eval "$ac_compile") 2>conftest.er1
22118 grep -v '^
*+' conftest.er1 >conftest.err
22120 cat conftest.err >&5
22121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); } && {
22123 test -z "$ac_c_werror_flag" ||
22124 test ! -s conftest.err
22125 } && test -s conftest.$ac_objext; then
22128 $as_echo "$as_me: failed program was:" >&5
22129 sed 's
/^
/|
/' conftest.$ac_ext >&5
22131 ac_lo=`expr '(' $ac_mid ')' + 1`
22134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22137 ?*) ac_cv_sizeof_long=$ac_lo;;
22138 '') if test "$ac_cv_type_long" = yes; then
22139 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22140 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
22141 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22142 See \`config.log
' for more details." >&5
22143 $as_echo "$as_me: error: cannot compute sizeof (long)
22144 See \`config.log' for more details.
" >&2;}
22145 { (exit 77); exit 77; }; }; }
22147 ac_cv_sizeof_long=0
22151 cat >conftest.$ac_ext <<_ACEOF
22154 cat confdefs.h >>conftest.$ac_ext
22155 cat >>conftest.$ac_ext <<_ACEOF
22156 /* end confdefs.h. */
22157 $ac_includes_default
22158 static long int longval () { return (long int) (sizeof (long)); }
22159 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
22161 #include <stdlib.h>
22166 FILE *f = fopen ("conftest.val
", "w
");
22169 if (((long int) (sizeof (long))) < 0)
22171 long int i = longval ();
22172 if (i != ((long int) (sizeof (long))))
22174 fprintf (f, "%ld
", i);
22178 unsigned long int i = ulongval ();
22179 if (i != ((long int) (sizeof (long))))
22181 fprintf (f, "%lu
", i);
22183 /* Do not output a trailing newline, as this causes \r\n confusion
22184 on some platforms. */
22185 return ferror (f) || fclose (f) != 0;
22191 rm -f conftest$ac_exeext
22192 if { (ac_try="$ac_link"
22193 case "(($ac_try" in
22194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22195 *) ac_try_echo=$ac_try;;
22197 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22198 $as_echo "$ac_try_echo") >&5
22199 (eval "$ac_link") 2>&5
22201 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22203 { (case "(($ac_try" in
22204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22205 *) ac_try_echo=$ac_try;;
22207 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22208 $as_echo "$ac_try_echo") >&5
22209 (eval "$ac_try") 2>&5
22211 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22212 (exit $ac_status); }; }; then
22213 ac_cv_sizeof_long=`cat conftest.val`
22215 $as_echo "$as_me: program exited with status
$ac_status" >&5
22216 $as_echo "$as_me: failed program was
:" >&5
22217 sed 's/^/| /' conftest.$ac_ext >&5
22219 ( exit $ac_status )
22220 if test "$ac_cv_type_long" = yes; then
22221 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
22222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22223 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22224 See \`config.log' for more details.
" >&5
22225 $as_echo "$as_me: error
: cannot compute sizeof
(long
)
22226 See \
`config.log' for more details." >&2;}
22227 { (exit 77); exit 77; }; }; }
22229 ac_cv_sizeof_long=0
22232 rm -rf conftest.dSYM
22233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22237 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22238 $as_echo "$ac_cv_sizeof_long" >&6; }
22242 cat >>confdefs.h <<_ACEOF
22243 #define SIZEOF_LONG $ac_cv_sizeof_long
22247 # The cast to long int works around a bug in the HP C Compiler
22248 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22249 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
22250 # This bug is HP SR number 8606223364.
22251 { $as_echo "$as_me:$LINENO: checking size of char *" >&5
22252 $as_echo_n "checking size of char *... " >&6; }
22253 if test "${ac_cv_sizeof_char_p+set}" = set; then
22254 $as_echo_n "(cached) " >&6
22256 if test "$cross_compiling" = yes; then
22257 # Depending upon the size, compute the lo and hi bounds.
22258 cat >conftest.$ac_ext <<_ACEOF
22261 cat confdefs.h >>conftest.$ac_ext
22262 cat >>conftest.$ac_ext <<_ACEOF
22263 /* end confdefs.h. */
22264 $ac_includes_default
22268 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= 0)];
22275 rm -f conftest.$ac_objext
22276 if { (ac_try="$ac_compile"
22277 case "(($ac_try" in
22278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22279 *) ac_try_echo=$ac_try;;
22281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22282 $as_echo "$ac_try_echo") >&5
22283 (eval "$ac_compile") 2>conftest.er1
22285 grep -v '^
*+' conftest.er1 >conftest.err
22287 cat conftest.err >&5
22288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); } && {
22290 test -z "$ac_c_werror_flag" ||
22291 test ! -s conftest.err
22292 } && test -s conftest.$ac_objext; then
22295 cat >conftest.$ac_ext <<_ACEOF
22298 cat confdefs.h >>conftest.$ac_ext
22299 cat >>conftest.$ac_ext <<_ACEOF
22300 /* end confdefs.h. */
22301 $ac_includes_default
22305 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
22312 rm -f conftest.$ac_objext
22313 if { (ac_try="$ac_compile"
22314 case "(($ac_try" in
22315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22316 *) ac_try_echo=$ac_try;;
22318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22319 $as_echo "$ac_try_echo") >&5
22320 (eval "$ac_compile") 2>conftest.er1
22322 grep -v '^
*+' conftest.er1 >conftest.err
22324 cat conftest.err >&5
22325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } && {
22327 test -z "$ac_c_werror_flag" ||
22328 test ! -s conftest.err
22329 } && test -s conftest.$ac_objext; then
22330 ac_hi=$ac_mid; break
22332 $as_echo "$as_me: failed program was:" >&5
22333 sed 's
/^
/|
/' conftest.$ac_ext >&5
22335 ac_lo=`expr $ac_mid + 1`
22336 if test $ac_lo -le $ac_mid; then
22340 ac_mid=`expr 2 '*' $ac_mid + 1`
22343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22346 $as_echo "$as_me: failed program was:" >&5
22347 sed 's
/^
/|
/' conftest.$ac_ext >&5
22349 cat >conftest.$ac_ext <<_ACEOF
22352 cat confdefs.h >>conftest.$ac_ext
22353 cat >>conftest.$ac_ext <<_ACEOF
22354 /* end confdefs.h. */
22355 $ac_includes_default
22359 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) < 0)];
22366 rm -f conftest.$ac_objext
22367 if { (ac_try="$ac_compile"
22368 case "(($ac_try" in
22369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22370 *) ac_try_echo=$ac_try;;
22372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22373 $as_echo "$ac_try_echo") >&5
22374 (eval "$ac_compile") 2>conftest.er1
22376 grep -v '^
*+' conftest.er1 >conftest.err
22378 cat conftest.err >&5
22379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); } && {
22381 test -z "$ac_c_werror_flag" ||
22382 test ! -s conftest.err
22383 } && test -s conftest.$ac_objext; then
22386 cat >conftest.$ac_ext <<_ACEOF
22389 cat confdefs.h >>conftest.$ac_ext
22390 cat >>conftest.$ac_ext <<_ACEOF
22391 /* end confdefs.h. */
22392 $ac_includes_default
22396 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)];
22403 rm -f conftest.$ac_objext
22404 if { (ac_try="$ac_compile"
22405 case "(($ac_try" in
22406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22407 *) ac_try_echo=$ac_try;;
22409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22410 $as_echo "$ac_try_echo") >&5
22411 (eval "$ac_compile") 2>conftest.er1
22413 grep -v '^
*+' conftest.er1 >conftest.err
22415 cat conftest.err >&5
22416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } && {
22418 test -z "$ac_c_werror_flag" ||
22419 test ! -s conftest.err
22420 } && test -s conftest.$ac_objext; then
22421 ac_lo=$ac_mid; break
22423 $as_echo "$as_me: failed program was:" >&5
22424 sed 's
/^
/|
/' conftest.$ac_ext >&5
22426 ac_hi=`expr '(' $ac_mid ')' - 1`
22427 if test $ac_mid -le $ac_hi; then
22431 ac_mid=`expr 2 '*' $ac_mid`
22434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22437 $as_echo "$as_me: failed program was:" >&5
22438 sed 's
/^
/|
/' conftest.$ac_ext >&5
22443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22447 # Binary search between lo and hi bounds.
22448 while test "x$ac_lo" != "x$ac_hi"; do
22449 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22450 cat >conftest.$ac_ext <<_ACEOF
22453 cat confdefs.h >>conftest.$ac_ext
22454 cat >>conftest.$ac_ext <<_ACEOF
22455 /* end confdefs.h. */
22456 $ac_includes_default
22460 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
22467 rm -f conftest.$ac_objext
22468 if { (ac_try="$ac_compile"
22469 case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22474 $as_echo "$ac_try_echo") >&5
22475 (eval "$ac_compile") 2>conftest.er1
22477 grep -v '^
*+' conftest.er1 >conftest.err
22479 cat conftest.err >&5
22480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); } && {
22482 test -z "$ac_c_werror_flag" ||
22483 test ! -s conftest.err
22484 } && test -s conftest.$ac_objext; then
22487 $as_echo "$as_me: failed program was:" >&5
22488 sed 's
/^
/|
/' conftest.$ac_ext >&5
22490 ac_lo=`expr '(' $ac_mid ')' + 1`
22493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22496 ?*) ac_cv_sizeof_char_p=$ac_lo;;
22497 '') if test "$ac_cv_type_char_p" = yes; then
22498 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22499 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
22500 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
22501 See \`config.log
' for more details." >&5
22502 $as_echo "$as_me: error: cannot compute sizeof (char *)
22503 See \`config.log' for more details.
" >&2;}
22504 { (exit 77); exit 77; }; }; }
22506 ac_cv_sizeof_char_p=0
22510 cat >conftest.$ac_ext <<_ACEOF
22513 cat confdefs.h >>conftest.$ac_ext
22514 cat >>conftest.$ac_ext <<_ACEOF
22515 /* end confdefs.h. */
22516 $ac_includes_default
22517 static long int longval () { return (long int) (sizeof (char *)); }
22518 static unsigned long int ulongval () { return (long int) (sizeof (char *)); }
22520 #include <stdlib.h>
22525 FILE *f = fopen ("conftest.val
", "w
");
22528 if (((long int) (sizeof (char *))) < 0)
22530 long int i = longval ();
22531 if (i != ((long int) (sizeof (char *))))
22533 fprintf (f, "%ld
", i);
22537 unsigned long int i = ulongval ();
22538 if (i != ((long int) (sizeof (char *))))
22540 fprintf (f, "%lu
", i);
22542 /* Do not output a trailing newline, as this causes \r\n confusion
22543 on some platforms. */
22544 return ferror (f) || fclose (f) != 0;
22550 rm -f conftest$ac_exeext
22551 if { (ac_try="$ac_link"
22552 case "(($ac_try" in
22553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22554 *) ac_try_echo=$ac_try;;
22556 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22557 $as_echo "$ac_try_echo") >&5
22558 (eval "$ac_link") 2>&5
22560 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22562 { (case "(($ac_try" in
22563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22564 *) ac_try_echo=$ac_try;;
22566 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22567 $as_echo "$ac_try_echo") >&5
22568 (eval "$ac_try") 2>&5
22570 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22571 (exit $ac_status); }; }; then
22572 ac_cv_sizeof_char_p=`cat conftest.val`
22574 $as_echo "$as_me: program exited with status
$ac_status" >&5
22575 $as_echo "$as_me: failed program was
:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22578 ( exit $ac_status )
22579 if test "$ac_cv_type_char_p" = yes; then
22580 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
22581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22582 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
22583 See \`config.log' for more details.
" >&5
22584 $as_echo "$as_me: error
: cannot compute sizeof
(char
*)
22585 See \
`config.log' for more details." >&2;}
22586 { (exit 77); exit 77; }; }; }
22588 ac_cv_sizeof_char_p=0
22591 rm -rf conftest.dSYM
22592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22596 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
22597 $as_echo "$ac_cv_sizeof_char_p" >&6; }
22601 cat >>confdefs.h <<_ACEOF
22602 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
22606 # The cast to long int works around a bug in the HP C Compiler
22607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22608 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
22609 # This bug is HP SR number 8606223364.
22610 { $as_echo "$as_me:$LINENO: checking size of double" >&5
22611 $as_echo_n "checking size of double... " >&6; }
22612 if test "${ac_cv_sizeof_double+set}" = set; then
22613 $as_echo_n "(cached) " >&6
22615 if test "$cross_compiling" = yes; then
22616 # Depending upon the size, compute the lo and hi bounds.
22617 cat >conftest.$ac_ext <<_ACEOF
22620 cat confdefs.h >>conftest.$ac_ext
22621 cat >>conftest.$ac_ext <<_ACEOF
22622 /* end confdefs.h. */
22623 $ac_includes_default
22627 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
22634 rm -f conftest.$ac_objext
22635 if { (ac_try="$ac_compile"
22636 case "(($ac_try" in
22637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22638 *) ac_try_echo=$ac_try;;
22640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22641 $as_echo "$ac_try_echo") >&5
22642 (eval "$ac_compile") 2>conftest.er1
22644 grep -v '^
*+' conftest.er1 >conftest.err
22646 cat conftest.err >&5
22647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); } && {
22649 test -z "$ac_c_werror_flag" ||
22650 test ! -s conftest.err
22651 } && test -s conftest.$ac_objext; then
22654 cat >conftest.$ac_ext <<_ACEOF
22657 cat confdefs.h >>conftest.$ac_ext
22658 cat >>conftest.$ac_ext <<_ACEOF
22659 /* end confdefs.h. */
22660 $ac_includes_default
22664 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
22671 rm -f conftest.$ac_objext
22672 if { (ac_try="$ac_compile"
22673 case "(($ac_try" in
22674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22675 *) ac_try_echo=$ac_try;;
22677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22678 $as_echo "$ac_try_echo") >&5
22679 (eval "$ac_compile") 2>conftest.er1
22681 grep -v '^
*+' conftest.er1 >conftest.err
22683 cat conftest.err >&5
22684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); } && {
22686 test -z "$ac_c_werror_flag" ||
22687 test ! -s conftest.err
22688 } && test -s conftest.$ac_objext; then
22689 ac_hi=$ac_mid; break
22691 $as_echo "$as_me: failed program was:" >&5
22692 sed 's
/^
/|
/' conftest.$ac_ext >&5
22694 ac_lo=`expr $ac_mid + 1`
22695 if test $ac_lo -le $ac_mid; then
22699 ac_mid=`expr 2 '*' $ac_mid + 1`
22702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22705 $as_echo "$as_me: failed program was:" >&5
22706 sed 's
/^
/|
/' conftest.$ac_ext >&5
22708 cat >conftest.$ac_ext <<_ACEOF
22711 cat confdefs.h >>conftest.$ac_ext
22712 cat >>conftest.$ac_ext <<_ACEOF
22713 /* end confdefs.h. */
22714 $ac_includes_default
22718 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
22725 rm -f conftest.$ac_objext
22726 if { (ac_try="$ac_compile"
22727 case "(($ac_try" in
22728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22729 *) ac_try_echo=$ac_try;;
22731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22732 $as_echo "$ac_try_echo") >&5
22733 (eval "$ac_compile") 2>conftest.er1
22735 grep -v '^
*+' conftest.er1 >conftest.err
22737 cat conftest.err >&5
22738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739 (exit $ac_status); } && {
22740 test -z "$ac_c_werror_flag" ||
22741 test ! -s conftest.err
22742 } && test -s conftest.$ac_objext; then
22745 cat >conftest.$ac_ext <<_ACEOF
22748 cat confdefs.h >>conftest.$ac_ext
22749 cat >>conftest.$ac_ext <<_ACEOF
22750 /* end confdefs.h. */
22751 $ac_includes_default
22755 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
22762 rm -f conftest.$ac_objext
22763 if { (ac_try="$ac_compile"
22764 case "(($ac_try" in
22765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22766 *) ac_try_echo=$ac_try;;
22768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22769 $as_echo "$ac_try_echo") >&5
22770 (eval "$ac_compile") 2>conftest.er1
22772 grep -v '^
*+' conftest.er1 >conftest.err
22774 cat conftest.err >&5
22775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); } && {
22777 test -z "$ac_c_werror_flag" ||
22778 test ! -s conftest.err
22779 } && test -s conftest.$ac_objext; then
22780 ac_lo=$ac_mid; break
22782 $as_echo "$as_me: failed program was:" >&5
22783 sed 's
/^
/|
/' conftest.$ac_ext >&5
22785 ac_hi=`expr '(' $ac_mid ')' - 1`
22786 if test $ac_mid -le $ac_hi; then
22790 ac_mid=`expr 2 '*' $ac_mid`
22793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22796 $as_echo "$as_me: failed program was:" >&5
22797 sed 's
/^
/|
/' conftest.$ac_ext >&5
22802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22806 # Binary search between lo and hi bounds.
22807 while test "x$ac_lo" != "x$ac_hi"; do
22808 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22809 cat >conftest.$ac_ext <<_ACEOF
22812 cat confdefs.h >>conftest.$ac_ext
22813 cat >>conftest.$ac_ext <<_ACEOF
22814 /* end confdefs.h. */
22815 $ac_includes_default
22819 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
22826 rm -f conftest.$ac_objext
22827 if { (ac_try="$ac_compile"
22828 case "(($ac_try" in
22829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22830 *) ac_try_echo=$ac_try;;
22832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22833 $as_echo "$ac_try_echo") >&5
22834 (eval "$ac_compile") 2>conftest.er1
22836 grep -v '^
*+' conftest.er1 >conftest.err
22838 cat conftest.err >&5
22839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); } && {
22841 test -z "$ac_c_werror_flag" ||
22842 test ! -s conftest.err
22843 } && test -s conftest.$ac_objext; then
22846 $as_echo "$as_me: failed program was:" >&5
22847 sed 's
/^
/|
/' conftest.$ac_ext >&5
22849 ac_lo=`expr '(' $ac_mid ')' + 1`
22852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22855 ?*) ac_cv_sizeof_double=$ac_lo;;
22856 '') if test "$ac_cv_type_double" = yes; then
22857 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22858 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
22859 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
22860 See \`config.log
' for more details." >&5
22861 $as_echo "$as_me: error: cannot compute sizeof (double)
22862 See \`config.log' for more details.
" >&2;}
22863 { (exit 77); exit 77; }; }; }
22865 ac_cv_sizeof_double=0
22869 cat >conftest.$ac_ext <<_ACEOF
22872 cat confdefs.h >>conftest.$ac_ext
22873 cat >>conftest.$ac_ext <<_ACEOF
22874 /* end confdefs.h. */
22875 $ac_includes_default
22876 static long int longval () { return (long int) (sizeof (double)); }
22877 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
22879 #include <stdlib.h>
22884 FILE *f = fopen ("conftest.val
", "w
");
22887 if (((long int) (sizeof (double))) < 0)
22889 long int i = longval ();
22890 if (i != ((long int) (sizeof (double))))
22892 fprintf (f, "%ld
", i);
22896 unsigned long int i = ulongval ();
22897 if (i != ((long int) (sizeof (double))))
22899 fprintf (f, "%lu
", i);
22901 /* Do not output a trailing newline, as this causes \r\n confusion
22902 on some platforms. */
22903 return ferror (f) || fclose (f) != 0;
22909 rm -f conftest$ac_exeext
22910 if { (ac_try="$ac_link"
22911 case "(($ac_try" in
22912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22913 *) ac_try_echo=$ac_try;;
22915 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22916 $as_echo "$ac_try_echo") >&5
22917 (eval "$ac_link") 2>&5
22919 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22921 { (case "(($ac_try" in
22922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923 *) ac_try_echo=$ac_try;;
22925 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22926 $as_echo "$ac_try_echo") >&5
22927 (eval "$ac_try") 2>&5
22929 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22930 (exit $ac_status); }; }; then
22931 ac_cv_sizeof_double=`cat conftest.val`
22933 $as_echo "$as_me: program exited with status
$ac_status" >&5
22934 $as_echo "$as_me: failed program was
:" >&5
22935 sed 's/^/| /' conftest.$ac_ext >&5
22937 ( exit $ac_status )
22938 if test "$ac_cv_type_double" = yes; then
22939 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
22940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22941 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
22942 See \`config.log' for more details.
" >&5
22943 $as_echo "$as_me: error
: cannot compute sizeof
(double
)
22944 See \
`config.log' for more details." >&2;}
22945 { (exit 77); exit 77; }; }; }
22947 ac_cv_sizeof_double=0
22950 rm -rf conftest.dSYM
22951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22955 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
22956 $as_echo "$ac_cv_sizeof_double" >&6; }
22960 cat >>confdefs.h <<_ACEOF
22961 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
22965 # The cast to long int works around a bug in the HP C Compiler
22966 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22967 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
22968 # This bug is HP SR number 8606223364.
22969 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
22970 $as_echo_n "checking size of long long... " >&6; }
22971 if test "${ac_cv_sizeof_long_long+set}" = set; then
22972 $as_echo_n "(cached) " >&6
22974 if test "$cross_compiling" = yes; then
22975 # Depending upon the size, compute the lo and hi bounds.
22976 cat >conftest.$ac_ext <<_ACEOF
22979 cat confdefs.h >>conftest.$ac_ext
22980 cat >>conftest.$ac_ext <<_ACEOF
22981 /* end confdefs.h. */
22982 $ac_includes_default
22986 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
22993 rm -f conftest.$ac_objext
22994 if { (ac_try="$ac_compile"
22995 case "(($ac_try" in
22996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22997 *) ac_try_echo=$ac_try;;
22999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23000 $as_echo "$ac_try_echo") >&5
23001 (eval "$ac_compile") 2>conftest.er1
23003 grep -v '^
*+' conftest.er1 >conftest.err
23005 cat conftest.err >&5
23006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); } && {
23008 test -z "$ac_c_werror_flag" ||
23009 test ! -s conftest.err
23010 } && test -s conftest.$ac_objext; then
23013 cat >conftest.$ac_ext <<_ACEOF
23016 cat confdefs.h >>conftest.$ac_ext
23017 cat >>conftest.$ac_ext <<_ACEOF
23018 /* end confdefs.h. */
23019 $ac_includes_default
23023 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
23030 rm -f conftest.$ac_objext
23031 if { (ac_try="$ac_compile"
23032 case "(($ac_try" in
23033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23034 *) ac_try_echo=$ac_try;;
23036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23037 $as_echo "$ac_try_echo") >&5
23038 (eval "$ac_compile") 2>conftest.er1
23040 grep -v '^
*+' conftest.er1 >conftest.err
23042 cat conftest.err >&5
23043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); } && {
23045 test -z "$ac_c_werror_flag" ||
23046 test ! -s conftest.err
23047 } && test -s conftest.$ac_objext; then
23048 ac_hi=$ac_mid; break
23050 $as_echo "$as_me: failed program was:" >&5
23051 sed 's
/^
/|
/' conftest.$ac_ext >&5
23053 ac_lo=`expr $ac_mid + 1`
23054 if test $ac_lo -le $ac_mid; then
23058 ac_mid=`expr 2 '*' $ac_mid + 1`
23061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23064 $as_echo "$as_me: failed program was:" >&5
23065 sed 's
/^
/|
/' conftest.$ac_ext >&5
23067 cat >conftest.$ac_ext <<_ACEOF
23070 cat confdefs.h >>conftest.$ac_ext
23071 cat >>conftest.$ac_ext <<_ACEOF
23072 /* end confdefs.h. */
23073 $ac_includes_default
23077 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
23084 rm -f conftest.$ac_objext
23085 if { (ac_try="$ac_compile"
23086 case "(($ac_try" in
23087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088 *) ac_try_echo=$ac_try;;
23090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23091 $as_echo "$ac_try_echo") >&5
23092 (eval "$ac_compile") 2>conftest.er1
23094 grep -v '^
*+' conftest.er1 >conftest.err
23096 cat conftest.err >&5
23097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); } && {
23099 test -z "$ac_c_werror_flag" ||
23100 test ! -s conftest.err
23101 } && test -s conftest.$ac_objext; then
23104 cat >conftest.$ac_ext <<_ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h. */
23110 $ac_includes_default
23114 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
23121 rm -f conftest.$ac_objext
23122 if { (ac_try="$ac_compile"
23123 case "(($ac_try" in
23124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125 *) ac_try_echo=$ac_try;;
23127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23128 $as_echo "$ac_try_echo") >&5
23129 (eval "$ac_compile") 2>conftest.er1
23131 grep -v '^
*+' conftest.er1 >conftest.err
23133 cat conftest.err >&5
23134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); } && {
23136 test -z "$ac_c_werror_flag" ||
23137 test ! -s conftest.err
23138 } && test -s conftest.$ac_objext; then
23139 ac_lo=$ac_mid; break
23141 $as_echo "$as_me: failed program was:" >&5
23142 sed 's
/^
/|
/' conftest.$ac_ext >&5
23144 ac_hi=`expr '(' $ac_mid ')' - 1`
23145 if test $ac_mid -le $ac_hi; then
23149 ac_mid=`expr 2 '*' $ac_mid`
23152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23155 $as_echo "$as_me: failed program was:" >&5
23156 sed 's
/^
/|
/' conftest.$ac_ext >&5
23161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23165 # Binary search between lo and hi bounds.
23166 while test "x$ac_lo" != "x$ac_hi"; do
23167 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23168 cat >conftest.$ac_ext <<_ACEOF
23171 cat confdefs.h >>conftest.$ac_ext
23172 cat >>conftest.$ac_ext <<_ACEOF
23173 /* end confdefs.h. */
23174 $ac_includes_default
23178 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
23185 rm -f conftest.$ac_objext
23186 if { (ac_try="$ac_compile"
23187 case "(($ac_try" in
23188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23189 *) ac_try_echo=$ac_try;;
23191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23192 $as_echo "$ac_try_echo") >&5
23193 (eval "$ac_compile") 2>conftest.er1
23195 grep -v '^
*+' conftest.er1 >conftest.err
23197 cat conftest.err >&5
23198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199 (exit $ac_status); } && {
23200 test -z "$ac_c_werror_flag" ||
23201 test ! -s conftest.err
23202 } && test -s conftest.$ac_objext; then
23205 $as_echo "$as_me: failed program was:" >&5
23206 sed 's
/^
/|
/' conftest.$ac_ext >&5
23208 ac_lo=`expr '(' $ac_mid ')' + 1`
23211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23214 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23215 '') if test "$ac_cv_type_long_long" = yes; then
23216 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23217 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
23218 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23219 See \`config.log
' for more details." >&5
23220 $as_echo "$as_me: error: cannot compute sizeof (long long)
23221 See \`config.log' for more details.
" >&2;}
23222 { (exit 77); exit 77; }; }; }
23224 ac_cv_sizeof_long_long=0
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
23235 static long int longval () { return (long int) (sizeof (long long)); }
23236 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
23238 #include <stdlib.h>
23243 FILE *f = fopen ("conftest.val
", "w
");
23246 if (((long int) (sizeof (long long))) < 0)
23248 long int i = longval ();
23249 if (i != ((long int) (sizeof (long long))))
23251 fprintf (f, "%ld
", i);
23255 unsigned long int i = ulongval ();
23256 if (i != ((long int) (sizeof (long long))))
23258 fprintf (f, "%lu
", i);
23260 /* Do not output a trailing newline, as this causes \r\n confusion
23261 on some platforms. */
23262 return ferror (f) || fclose (f) != 0;
23268 rm -f conftest$ac_exeext
23269 if { (ac_try="$ac_link"
23270 case "(($ac_try" in
23271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23272 *) ac_try_echo=$ac_try;;
23274 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23275 $as_echo "$ac_try_echo") >&5
23276 (eval "$ac_link") 2>&5
23278 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
23288 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23289 (exit $ac_status); }; }; then
23290 ac_cv_sizeof_long_long=`cat conftest.val`
23292 $as_echo "$as_me: program exited with status
$ac_status" >&5
23293 $as_echo "$as_me: failed program was
:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23296 ( exit $ac_status )
23297 if test "$ac_cv_type_long_long" = yes; then
23298 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
23299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23300 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23301 See \`config.log' for more details.
" >&5
23302 $as_echo "$as_me: error
: cannot compute sizeof
(long long
)
23303 See \
`config.log' for more details." >&2;}
23304 { (exit 77); exit 77; }; }; }
23306 ac_cv_sizeof_long_long=0
23309 rm -rf conftest.dSYM
23310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23314 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23315 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23319 cat >>confdefs.h <<_ACEOF
23320 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23325 { $as_echo "$as_me:$LINENO: checking for u_int" >&5
23326 $as_echo_n "checking for u_int... " >&6; }
23327 if test "${ac_cv_type_u_int+set}" = set; then
23328 $as_echo_n "(cached) " >&6
23330 ac_cv_type_u_int=no
23331 cat >conftest.$ac_ext <<_ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h. */
23337 $ac_includes_default
23341 if (sizeof (u_int))
23347 rm -f conftest.$ac_objext
23348 if { (ac_try="$ac_compile"
23349 case "(($ac_try" in
23350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23351 *) ac_try_echo
=$ac_try;;
23353 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23354 $as_echo "$ac_try_echo") >&5
23355 (eval "$ac_compile") 2>conftest.er1
23357 grep -v '^ *+' conftest.er1
>conftest.err
23359 cat conftest.err
>&5
23360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); } && {
23362 test -z "$ac_c_werror_flag" ||
23363 test ! -s conftest.err
23364 } && test -s conftest.
$ac_objext; then
23365 cat >conftest.
$ac_ext <<_ACEOF
23368 cat confdefs.h
>>conftest.
$ac_ext
23369 cat >>conftest.
$ac_ext <<_ACEOF
23370 /* end confdefs.h. */
23371 $ac_includes_default
23375 if (sizeof ((u_int)))
23381 rm -f conftest.
$ac_objext
23382 if { (ac_try
="$ac_compile"
23383 case "(($ac_try" in
23384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23385 *) ac_try_echo=$ac_try;;
23387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23388 $as_echo "$ac_try_echo") >&5
23389 (eval "$ac_compile") 2>conftest.er1
23391 grep -v '^ *+' conftest.er1 >conftest.err
23393 cat conftest.err >&5
23394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); } && {
23396 test -z "$ac_c_werror_flag" ||
23397 test ! -s conftest.err
23398 } && test -s conftest.$ac_objext; then
23401 $as_echo "$as_me: failed program was:" >&5
23402 sed 's/^/| /' conftest.$ac_ext >&5
23404 ac_cv_type_u_int=yes
23407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23409 $as_echo "$as_me: failed program was:" >&5
23410 sed 's/^/| /' conftest.$ac_ext >&5
23415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23417 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
23418 $as_echo "$ac_cv_type_u_int" >&6; }
23419 if test "x$ac_cv_type_u_int" = x""yes; then
23423 cat >>confdefs.h <<_ACEOF
23424 #define u_int unsigned int
23429 { $as_echo "$as_me:$LINENO: checking for u_long" >&5
23430 $as_echo_n "checking for u_long... " >&6; }
23431 if test "${ac_cv_type_u_long+set}" = set; then
23432 $as_echo_n "(cached) " >&6
23434 ac_cv_type_u_long=no
23435 cat >conftest.$ac_ext <<_ACEOF
23438 cat confdefs.h >>conftest.$ac_ext
23439 cat >>conftest.$ac_ext <<_ACEOF
23440 /* end confdefs.h. */
23441 $ac_includes_default
23445 if (sizeof (u_long))
23451 rm -f conftest.$ac_objext
23452 if { (ac_try="$ac_compile"
23453 case "(($ac_try" in
23454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23455 *) ac_try_echo
=$ac_try;;
23457 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23458 $as_echo "$ac_try_echo") >&5
23459 (eval "$ac_compile") 2>conftest.er1
23461 grep -v '^ *+' conftest.er1
>conftest.err
23463 cat conftest.err
>&5
23464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); } && {
23466 test -z "$ac_c_werror_flag" ||
23467 test ! -s conftest.err
23468 } && test -s conftest.
$ac_objext; then
23469 cat >conftest.
$ac_ext <<_ACEOF
23472 cat confdefs.h
>>conftest.
$ac_ext
23473 cat >>conftest.
$ac_ext <<_ACEOF
23474 /* end confdefs.h. */
23475 $ac_includes_default
23479 if (sizeof ((u_long)))
23485 rm -f conftest.
$ac_objext
23486 if { (ac_try
="$ac_compile"
23487 case "(($ac_try" in
23488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23489 *) ac_try_echo=$ac_try;;
23491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23492 $as_echo "$ac_try_echo") >&5
23493 (eval "$ac_compile") 2>conftest.er1
23495 grep -v '^ *+' conftest.er1 >conftest.err
23497 cat conftest.err >&5
23498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499 (exit $ac_status); } && {
23500 test -z "$ac_c_werror_flag" ||
23501 test ! -s conftest.err
23502 } && test -s conftest.$ac_objext; then
23505 $as_echo "$as_me: failed program was:" >&5
23506 sed 's/^/| /' conftest.$ac_ext >&5
23508 ac_cv_type_u_long=yes
23511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23513 $as_echo "$as_me: failed program was:" >&5
23514 sed 's/^/| /' conftest.$ac_ext >&5
23519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23521 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
23522 $as_echo "$ac_cv_type_u_long" >&6; }
23523 if test "x$ac_cv_type_u_long" = x""yes; then
23527 cat >>confdefs.h <<_ACEOF
23528 #define u_long unsigned long
23535 if test "$ac_cv_sizeof_short" = 2; then
23536 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23537 $as_echo_n "checking for bits16_t... " >&6; }
23538 if test "${ac_cv_type_bits16_t+set}" = set; then
23539 $as_echo_n "(cached) " >&6
23541 ac_cv_type_bits16_t=no
23542 cat >conftest.$ac_ext <<_ACEOF
23545 cat confdefs.h >>conftest.$ac_ext
23546 cat >>conftest.$ac_ext <<_ACEOF
23547 /* end confdefs.h. */
23548 $ac_includes_default
23552 if (sizeof (bits16_t))
23558 rm -f conftest.$ac_objext
23559 if { (ac_try="$ac_compile"
23560 case "(($ac_try" in
23561 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23562 *) ac_try_echo
=$ac_try;;
23564 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23565 $as_echo "$ac_try_echo") >&5
23566 (eval "$ac_compile") 2>conftest.er1
23568 grep -v '^ *+' conftest.er1
>conftest.err
23570 cat conftest.err
>&5
23571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); } && {
23573 test -z "$ac_c_werror_flag" ||
23574 test ! -s conftest.err
23575 } && test -s conftest.
$ac_objext; then
23576 cat >conftest.
$ac_ext <<_ACEOF
23579 cat confdefs.h
>>conftest.
$ac_ext
23580 cat >>conftest.
$ac_ext <<_ACEOF
23581 /* end confdefs.h. */
23582 $ac_includes_default
23586 if (sizeof ((bits16_t)))
23592 rm -f conftest.
$ac_objext
23593 if { (ac_try
="$ac_compile"
23594 case "(($ac_try" in
23595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23596 *) ac_try_echo=$ac_try;;
23598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23599 $as_echo "$ac_try_echo") >&5
23600 (eval "$ac_compile") 2>conftest.er1
23602 grep -v '^ *+' conftest.er1 >conftest.err
23604 cat conftest.err >&5
23605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); } && {
23607 test -z "$ac_c_werror_flag" ||
23608 test ! -s conftest.err
23609 } && test -s conftest.$ac_objext; then
23612 $as_echo "$as_me: failed program was:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23615 ac_cv_type_bits16_t=yes
23618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23620 $as_echo "$as_me: failed program was:" >&5
23621 sed 's/^/| /' conftest.$ac_ext >&5
23626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23628 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23629 $as_echo "$ac_cv_type_bits16_t" >&6; }
23630 if test "x$ac_cv_type_bits16_t" = x""yes; then
23634 cat >>confdefs.h <<_ACEOF
23635 #define bits16_t short
23640 elif test "$ac_cv_sizeof_char" = 2; then
23641 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23642 $as_echo_n "checking for bits16_t... " >&6; }
23643 if test "${ac_cv_type_bits16_t+set}" = set; then
23644 $as_echo_n "(cached) " >&6
23646 ac_cv_type_bits16_t=no
23647 cat >conftest.$ac_ext <<_ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h. */
23653 $ac_includes_default
23657 if (sizeof (bits16_t))
23663 rm -f conftest.$ac_objext
23664 if { (ac_try="$ac_compile"
23665 case "(($ac_try" in
23666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23667 *) ac_try_echo
=$ac_try;;
23669 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23670 $as_echo "$ac_try_echo") >&5
23671 (eval "$ac_compile") 2>conftest.er1
23673 grep -v '^ *+' conftest.er1
>conftest.err
23675 cat conftest.err
>&5
23676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); } && {
23678 test -z "$ac_c_werror_flag" ||
23679 test ! -s conftest.err
23680 } && test -s conftest.
$ac_objext; then
23681 cat >conftest.
$ac_ext <<_ACEOF
23684 cat confdefs.h
>>conftest.
$ac_ext
23685 cat >>conftest.
$ac_ext <<_ACEOF
23686 /* end confdefs.h. */
23687 $ac_includes_default
23691 if (sizeof ((bits16_t)))
23697 rm -f conftest.
$ac_objext
23698 if { (ac_try
="$ac_compile"
23699 case "(($ac_try" in
23700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23701 *) ac_try_echo=$ac_try;;
23703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23704 $as_echo "$ac_try_echo") >&5
23705 (eval "$ac_compile") 2>conftest.er1
23707 grep -v '^ *+' conftest.er1 >conftest.err
23709 cat conftest.err >&5
23710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711 (exit $ac_status); } && {
23712 test -z "$ac_c_werror_flag" ||
23713 test ! -s conftest.err
23714 } && test -s conftest.$ac_objext; then
23717 $as_echo "$as_me: failed program was:" >&5
23718 sed 's/^/| /' conftest.$ac_ext >&5
23720 ac_cv_type_bits16_t=yes
23723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23725 $as_echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23733 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23734 $as_echo "$ac_cv_type_bits16_t" >&6; }
23735 if test "x$ac_cv_type_bits16_t" = x""yes; then
23739 cat >>confdefs.h <<_ACEOF
23740 #define bits16_t char
23746 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23747 $as_echo_n "checking for bits16_t... " >&6; }
23748 if test "${ac_cv_type_bits16_t+set}" = set; then
23749 $as_echo_n "(cached) " >&6
23751 ac_cv_type_bits16_t=no
23752 cat >conftest.$ac_ext <<_ACEOF
23755 cat confdefs.h >>conftest.$ac_ext
23756 cat >>conftest.$ac_ext <<_ACEOF
23757 /* end confdefs.h. */
23758 $ac_includes_default
23762 if (sizeof (bits16_t))
23768 rm -f conftest.$ac_objext
23769 if { (ac_try="$ac_compile"
23770 case "(($ac_try" in
23771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23772 *) ac_try_echo
=$ac_try;;
23774 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23775 $as_echo "$ac_try_echo") >&5
23776 (eval "$ac_compile") 2>conftest.er1
23778 grep -v '^ *+' conftest.er1
>conftest.err
23780 cat conftest.err
>&5
23781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782 (exit $ac_status); } && {
23783 test -z "$ac_c_werror_flag" ||
23784 test ! -s conftest.err
23785 } && test -s conftest.
$ac_objext; then
23786 cat >conftest.
$ac_ext <<_ACEOF
23789 cat confdefs.h
>>conftest.
$ac_ext
23790 cat >>conftest.
$ac_ext <<_ACEOF
23791 /* end confdefs.h. */
23792 $ac_includes_default
23796 if (sizeof ((bits16_t)))
23802 rm -f conftest.
$ac_objext
23803 if { (ac_try
="$ac_compile"
23804 case "(($ac_try" in
23805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23806 *) ac_try_echo=$ac_try;;
23808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23809 $as_echo "$ac_try_echo") >&5
23810 (eval "$ac_compile") 2>conftest.er1
23812 grep -v '^ *+' conftest.er1 >conftest.err
23814 cat conftest.err >&5
23815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); } && {
23817 test -z "$ac_c_werror_flag" ||
23818 test ! -s conftest.err
23819 } && test -s conftest.$ac_objext; then
23822 $as_echo "$as_me: failed program was:" >&5
23823 sed 's/^/| /' conftest.$ac_ext >&5
23825 ac_cv_type_bits16_t=yes
23828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23830 $as_echo "$as_me: failed program was:" >&5
23831 sed 's/^/| /' conftest.$ac_ext >&5
23836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23838 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23839 $as_echo "$ac_cv_type_bits16_t" >&6; }
23840 if test "x$ac_cv_type_bits16_t" = x""yes; then
23844 cat >>confdefs.h <<_ACEOF
23845 #define bits16_t short
23853 if test "$ac_cv_sizeof_short" = 2; then
23854 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23855 $as_echo_n "checking for u_bits16_t... " >&6; }
23856 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23857 $as_echo_n "(cached) " >&6
23859 ac_cv_type_u_bits16_t=no
23860 cat >conftest.$ac_ext <<_ACEOF
23863 cat confdefs.h >>conftest.$ac_ext
23864 cat >>conftest.$ac_ext <<_ACEOF
23865 /* end confdefs.h. */
23866 $ac_includes_default
23870 if (sizeof (u_bits16_t))
23876 rm -f conftest.$ac_objext
23877 if { (ac_try="$ac_compile"
23878 case "(($ac_try" in
23879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23880 *) ac_try_echo
=$ac_try;;
23882 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23883 $as_echo "$ac_try_echo") >&5
23884 (eval "$ac_compile") 2>conftest.er1
23886 grep -v '^ *+' conftest.er1
>conftest.err
23888 cat conftest.err
>&5
23889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); } && {
23891 test -z "$ac_c_werror_flag" ||
23892 test ! -s conftest.err
23893 } && test -s conftest.
$ac_objext; then
23894 cat >conftest.
$ac_ext <<_ACEOF
23897 cat confdefs.h
>>conftest.
$ac_ext
23898 cat >>conftest.
$ac_ext <<_ACEOF
23899 /* end confdefs.h. */
23900 $ac_includes_default
23904 if (sizeof ((u_bits16_t)))
23910 rm -f conftest.
$ac_objext
23911 if { (ac_try
="$ac_compile"
23912 case "(($ac_try" in
23913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23914 *) ac_try_echo=$ac_try;;
23916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23917 $as_echo "$ac_try_echo") >&5
23918 (eval "$ac_compile") 2>conftest.er1
23920 grep -v '^ *+' conftest.er1 >conftest.err
23922 cat conftest.err >&5
23923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); } && {
23925 test -z "$ac_c_werror_flag" ||
23926 test ! -s conftest.err
23927 } && test -s conftest.$ac_objext; then
23930 $as_echo "$as_me: failed program was:" >&5
23931 sed 's/^/| /' conftest.$ac_ext >&5
23933 ac_cv_type_u_bits16_t=yes
23936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23938 $as_echo "$as_me: failed program was:" >&5
23939 sed 's/^/| /' conftest.$ac_ext >&5
23944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23946 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
23947 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
23948 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
23952 cat >>confdefs.h <<_ACEOF
23953 #define u_bits16_t unsigned short
23958 elif test "$ac_cv_sizeof_char" = 2; then
23959 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23960 $as_echo_n "checking for u_bits16_t... " >&6; }
23961 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23962 $as_echo_n "(cached) " >&6
23964 ac_cv_type_u_bits16_t=no
23965 cat >conftest.$ac_ext <<_ACEOF
23968 cat confdefs.h >>conftest.$ac_ext
23969 cat >>conftest.$ac_ext <<_ACEOF
23970 /* end confdefs.h. */
23971 $ac_includes_default
23975 if (sizeof (u_bits16_t))
23981 rm -f conftest.$ac_objext
23982 if { (ac_try="$ac_compile"
23983 case "(($ac_try" in
23984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23985 *) ac_try_echo
=$ac_try;;
23987 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23988 $as_echo "$ac_try_echo") >&5
23989 (eval "$ac_compile") 2>conftest.er1
23991 grep -v '^ *+' conftest.er1
>conftest.err
23993 cat conftest.err
>&5
23994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); } && {
23996 test -z "$ac_c_werror_flag" ||
23997 test ! -s conftest.err
23998 } && test -s conftest.
$ac_objext; then
23999 cat >conftest.
$ac_ext <<_ACEOF
24002 cat confdefs.h
>>conftest.
$ac_ext
24003 cat >>conftest.
$ac_ext <<_ACEOF
24004 /* end confdefs.h. */
24005 $ac_includes_default
24009 if (sizeof ((u_bits16_t)))
24015 rm -f conftest.
$ac_objext
24016 if { (ac_try
="$ac_compile"
24017 case "(($ac_try" in
24018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24019 *) ac_try_echo=$ac_try;;
24021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24022 $as_echo "$ac_try_echo") >&5
24023 (eval "$ac_compile") 2>conftest.er1
24025 grep -v '^ *+' conftest.er1 >conftest.err
24027 cat conftest.err >&5
24028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029 (exit $ac_status); } && {
24030 test -z "$ac_c_werror_flag" ||
24031 test ! -s conftest.err
24032 } && test -s conftest.$ac_objext; then
24035 $as_echo "$as_me: failed program was:" >&5
24036 sed 's/^/| /' conftest.$ac_ext >&5
24038 ac_cv_type_u_bits16_t=yes
24041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24043 $as_echo "$as_me: failed program was:" >&5
24044 sed 's/^/| /' conftest.$ac_ext >&5
24049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24051 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
24052 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
24053 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
24057 cat >>confdefs.h <<_ACEOF
24058 #define u_bits16_t unsigned char
24064 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
24065 $as_echo_n "checking for u_bits16_t... " >&6; }
24066 if test "${ac_cv_type_u_bits16_t+set}" = set; then
24067 $as_echo_n "(cached) " >&6
24069 ac_cv_type_u_bits16_t=no
24070 cat >conftest.$ac_ext <<_ACEOF
24073 cat confdefs.h >>conftest.$ac_ext
24074 cat >>conftest.$ac_ext <<_ACEOF
24075 /* end confdefs.h. */
24076 $ac_includes_default
24080 if (sizeof (u_bits16_t))
24086 rm -f conftest.$ac_objext
24087 if { (ac_try="$ac_compile"
24088 case "(($ac_try" in
24089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24090 *) ac_try_echo
=$ac_try;;
24092 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24093 $as_echo "$ac_try_echo") >&5
24094 (eval "$ac_compile") 2>conftest.er1
24096 grep -v '^ *+' conftest.er1
>conftest.err
24098 cat conftest.err
>&5
24099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100 (exit $ac_status); } && {
24101 test -z "$ac_c_werror_flag" ||
24102 test ! -s conftest.err
24103 } && test -s conftest.
$ac_objext; then
24104 cat >conftest.
$ac_ext <<_ACEOF
24107 cat confdefs.h
>>conftest.
$ac_ext
24108 cat >>conftest.
$ac_ext <<_ACEOF
24109 /* end confdefs.h. */
24110 $ac_includes_default
24114 if (sizeof ((u_bits16_t)))
24120 rm -f conftest.
$ac_objext
24121 if { (ac_try
="$ac_compile"
24122 case "(($ac_try" in
24123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24124 *) ac_try_echo=$ac_try;;
24126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24127 $as_echo "$ac_try_echo") >&5
24128 (eval "$ac_compile") 2>conftest.er1
24130 grep -v '^ *+' conftest.er1 >conftest.err
24132 cat conftest.err >&5
24133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24134 (exit $ac_status); } && {
24135 test -z "$ac_c_werror_flag" ||
24136 test ! -s conftest.err
24137 } && test -s conftest.$ac_objext; then
24140 $as_echo "$as_me: failed program was:" >&5
24141 sed 's/^/| /' conftest.$ac_ext >&5
24143 ac_cv_type_u_bits16_t=yes
24146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24148 $as_echo "$as_me: failed program was:" >&5
24149 sed 's/^/| /' conftest.$ac_ext >&5
24154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24156 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
24157 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
24158 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
24162 cat >>confdefs.h <<_ACEOF
24163 #define u_bits16_t unsigned short
24171 if test "$ac_cv_sizeof_int" = 4; then
24172 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
24173 $as_echo_n "checking for bits32_t... " >&6; }
24174 if test "${ac_cv_type_bits32_t+set}" = set; then
24175 $as_echo_n "(cached) " >&6
24177 ac_cv_type_bits32_t=no
24178 cat >conftest.$ac_ext <<_ACEOF
24181 cat confdefs.h >>conftest.$ac_ext
24182 cat >>conftest.$ac_ext <<_ACEOF
24183 /* end confdefs.h. */
24184 $ac_includes_default
24188 if (sizeof (bits32_t))
24194 rm -f conftest.$ac_objext
24195 if { (ac_try="$ac_compile"
24196 case "(($ac_try" in
24197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24198 *) ac_try_echo
=$ac_try;;
24200 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24201 $as_echo "$ac_try_echo") >&5
24202 (eval "$ac_compile") 2>conftest.er1
24204 grep -v '^ *+' conftest.er1
>conftest.err
24206 cat conftest.err
>&5
24207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208 (exit $ac_status); } && {
24209 test -z "$ac_c_werror_flag" ||
24210 test ! -s conftest.err
24211 } && test -s conftest.
$ac_objext; then
24212 cat >conftest.
$ac_ext <<_ACEOF
24215 cat confdefs.h
>>conftest.
$ac_ext
24216 cat >>conftest.
$ac_ext <<_ACEOF
24217 /* end confdefs.h. */
24218 $ac_includes_default
24222 if (sizeof ((bits32_t)))
24228 rm -f conftest.
$ac_objext
24229 if { (ac_try
="$ac_compile"
24230 case "(($ac_try" in
24231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24232 *) ac_try_echo=$ac_try;;
24234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24235 $as_echo "$ac_try_echo") >&5
24236 (eval "$ac_compile") 2>conftest.er1
24238 grep -v '^ *+' conftest.er1 >conftest.err
24240 cat conftest.err >&5
24241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24242 (exit $ac_status); } && {
24243 test -z "$ac_c_werror_flag" ||
24244 test ! -s conftest.err
24245 } && test -s conftest.$ac_objext; then
24248 $as_echo "$as_me: failed program was:" >&5
24249 sed 's/^/| /' conftest.$ac_ext >&5
24251 ac_cv_type_bits32_t=yes
24254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24256 $as_echo "$as_me: failed program was:" >&5
24257 sed 's/^/| /' conftest.$ac_ext >&5
24262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24264 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24265 $as_echo "$ac_cv_type_bits32_t" >&6; }
24266 if test "x$ac_cv_type_bits32_t" = x""yes; then
24270 cat >>confdefs.h <<_ACEOF
24271 #define bits32_t int
24276 elif test "$ac_cv_sizeof_long" = 4; then
24277 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
24278 $as_echo_n "checking for bits32_t... " >&6; }
24279 if test "${ac_cv_type_bits32_t+set}" = set; then
24280 $as_echo_n "(cached) " >&6
24282 ac_cv_type_bits32_t=no
24283 cat >conftest.$ac_ext <<_ACEOF
24286 cat confdefs.h >>conftest.$ac_ext
24287 cat >>conftest.$ac_ext <<_ACEOF
24288 /* end confdefs.h. */
24289 $ac_includes_default
24293 if (sizeof (bits32_t))
24299 rm -f conftest.$ac_objext
24300 if { (ac_try="$ac_compile"
24301 case "(($ac_try" in
24302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24303 *) ac_try_echo
=$ac_try;;
24305 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24306 $as_echo "$ac_try_echo") >&5
24307 (eval "$ac_compile") 2>conftest.er1
24309 grep -v '^ *+' conftest.er1
>conftest.err
24311 cat conftest.err
>&5
24312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313 (exit $ac_status); } && {
24314 test -z "$ac_c_werror_flag" ||
24315 test ! -s conftest.err
24316 } && test -s conftest.
$ac_objext; then
24317 cat >conftest.
$ac_ext <<_ACEOF
24320 cat confdefs.h
>>conftest.
$ac_ext
24321 cat >>conftest.
$ac_ext <<_ACEOF
24322 /* end confdefs.h. */
24323 $ac_includes_default
24327 if (sizeof ((bits32_t)))
24333 rm -f conftest.
$ac_objext
24334 if { (ac_try
="$ac_compile"
24335 case "(($ac_try" in
24336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24337 *) ac_try_echo=$ac_try;;
24339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24340 $as_echo "$ac_try_echo") >&5
24341 (eval "$ac_compile") 2>conftest.er1
24343 grep -v '^ *+' conftest.er1 >conftest.err
24345 cat conftest.err >&5
24346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347 (exit $ac_status); } && {
24348 test -z "$ac_c_werror_flag" ||
24349 test ! -s conftest.err
24350 } && test -s conftest.$ac_objext; then
24353 $as_echo "$as_me: failed program was:" >&5
24354 sed 's/^/| /' conftest.$ac_ext >&5
24356 ac_cv_type_bits32_t=yes
24359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24361 $as_echo "$as_me: failed program was:" >&5
24362 sed 's/^/| /' conftest.$ac_ext >&5
24367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24369 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24370 $as_echo "$ac_cv_type_bits32_t" >&6; }
24371 if test "x$ac_cv_type_bits32_t" = x""yes; then
24375 cat >>confdefs.h <<_ACEOF
24376 #define bits32_t long
24382 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
24383 $as_echo_n "checking for bits32_t... " >&6; }
24384 if test "${ac_cv_type_bits32_t+set}" = set; then
24385 $as_echo_n "(cached) " >&6
24387 ac_cv_type_bits32_t=no
24388 cat >conftest.$ac_ext <<_ACEOF
24391 cat confdefs.h >>conftest.$ac_ext
24392 cat >>conftest.$ac_ext <<_ACEOF
24393 /* end confdefs.h. */
24394 $ac_includes_default
24398 if (sizeof (bits32_t))
24404 rm -f conftest.$ac_objext
24405 if { (ac_try="$ac_compile"
24406 case "(($ac_try" in
24407 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24408 *) ac_try_echo
=$ac_try;;
24410 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24411 $as_echo "$ac_try_echo") >&5
24412 (eval "$ac_compile") 2>conftest.er1
24414 grep -v '^ *+' conftest.er1
>conftest.err
24416 cat conftest.err
>&5
24417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418 (exit $ac_status); } && {
24419 test -z "$ac_c_werror_flag" ||
24420 test ! -s conftest.err
24421 } && test -s conftest.
$ac_objext; then
24422 cat >conftest.
$ac_ext <<_ACEOF
24425 cat confdefs.h
>>conftest.
$ac_ext
24426 cat >>conftest.
$ac_ext <<_ACEOF
24427 /* end confdefs.h. */
24428 $ac_includes_default
24432 if (sizeof ((bits32_t)))
24438 rm -f conftest.
$ac_objext
24439 if { (ac_try
="$ac_compile"
24440 case "(($ac_try" in
24441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24442 *) ac_try_echo=$ac_try;;
24444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24445 $as_echo "$ac_try_echo") >&5
24446 (eval "$ac_compile") 2>conftest.er1
24448 grep -v '^ *+' conftest.er1 >conftest.err
24450 cat conftest.err >&5
24451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452 (exit $ac_status); } && {
24453 test -z "$ac_c_werror_flag" ||
24454 test ! -s conftest.err
24455 } && test -s conftest.$ac_objext; then
24458 $as_echo "$as_me: failed program was:" >&5
24459 sed 's/^/| /' conftest.$ac_ext >&5
24461 ac_cv_type_bits32_t=yes
24464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24466 $as_echo "$as_me: failed program was:" >&5
24467 sed 's/^/| /' conftest.$ac_ext >&5
24472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24474 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24475 $as_echo "$ac_cv_type_bits32_t" >&6; }
24476 if test "x$ac_cv_type_bits32_t" = x""yes; then
24480 cat >>confdefs.h <<_ACEOF
24481 #define bits32_t int
24489 if test "$ac_cv_sizeof_int" = 4; then
24490 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24491 $as_echo_n "checking for u_bits32_t... " >&6; }
24492 if test "${ac_cv_type_u_bits32_t+set}" = set; then
24493 $as_echo_n "(cached) " >&6
24495 ac_cv_type_u_bits32_t=no
24496 cat >conftest.$ac_ext <<_ACEOF
24499 cat confdefs.h >>conftest.$ac_ext
24500 cat >>conftest.$ac_ext <<_ACEOF
24501 /* end confdefs.h. */
24502 $ac_includes_default
24506 if (sizeof (u_bits32_t))
24512 rm -f conftest.$ac_objext
24513 if { (ac_try="$ac_compile"
24514 case "(($ac_try" in
24515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24516 *) ac_try_echo
=$ac_try;;
24518 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24519 $as_echo "$ac_try_echo") >&5
24520 (eval "$ac_compile") 2>conftest.er1
24522 grep -v '^ *+' conftest.er1
>conftest.err
24524 cat conftest.err
>&5
24525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526 (exit $ac_status); } && {
24527 test -z "$ac_c_werror_flag" ||
24528 test ! -s conftest.err
24529 } && test -s conftest.
$ac_objext; then
24530 cat >conftest.
$ac_ext <<_ACEOF
24533 cat confdefs.h
>>conftest.
$ac_ext
24534 cat >>conftest.
$ac_ext <<_ACEOF
24535 /* end confdefs.h. */
24536 $ac_includes_default
24540 if (sizeof ((u_bits32_t)))
24546 rm -f conftest.
$ac_objext
24547 if { (ac_try
="$ac_compile"
24548 case "(($ac_try" in
24549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24550 *) ac_try_echo=$ac_try;;
24552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24553 $as_echo "$ac_try_echo") >&5
24554 (eval "$ac_compile") 2>conftest.er1
24556 grep -v '^ *+' conftest.er1 >conftest.err
24558 cat conftest.err >&5
24559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560 (exit $ac_status); } && {
24561 test -z "$ac_c_werror_flag" ||
24562 test ! -s conftest.err
24563 } && test -s conftest.$ac_objext; then
24566 $as_echo "$as_me: failed program was:" >&5
24567 sed 's/^/| /' conftest.$ac_ext >&5
24569 ac_cv_type_u_bits32_t=yes
24572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24574 $as_echo "$as_me: failed program was:" >&5
24575 sed 's/^/| /' conftest.$ac_ext >&5
24580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24582 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24583 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24584 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24588 cat >>confdefs.h <<_ACEOF
24589 #define u_bits32_t unsigned int
24594 elif test "$ac_cv_sizeof_long" = 4; then
24595 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24596 $as_echo_n "checking for u_bits32_t... " >&6; }
24597 if test "${ac_cv_type_u_bits32_t+set}" = set; then
24598 $as_echo_n "(cached) " >&6
24600 ac_cv_type_u_bits32_t=no
24601 cat >conftest.$ac_ext <<_ACEOF
24604 cat confdefs.h >>conftest.$ac_ext
24605 cat >>conftest.$ac_ext <<_ACEOF
24606 /* end confdefs.h. */
24607 $ac_includes_default
24611 if (sizeof (u_bits32_t))
24617 rm -f conftest.$ac_objext
24618 if { (ac_try="$ac_compile"
24619 case "(($ac_try" in
24620 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24621 *) ac_try_echo
=$ac_try;;
24623 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24624 $as_echo "$ac_try_echo") >&5
24625 (eval "$ac_compile") 2>conftest.er1
24627 grep -v '^ *+' conftest.er1
>conftest.err
24629 cat conftest.err
>&5
24630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631 (exit $ac_status); } && {
24632 test -z "$ac_c_werror_flag" ||
24633 test ! -s conftest.err
24634 } && test -s conftest.
$ac_objext; then
24635 cat >conftest.
$ac_ext <<_ACEOF
24638 cat confdefs.h
>>conftest.
$ac_ext
24639 cat >>conftest.
$ac_ext <<_ACEOF
24640 /* end confdefs.h. */
24641 $ac_includes_default
24645 if (sizeof ((u_bits32_t)))
24651 rm -f conftest.
$ac_objext
24652 if { (ac_try
="$ac_compile"
24653 case "(($ac_try" in
24654 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24655 *) ac_try_echo=$ac_try;;
24657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24658 $as_echo "$ac_try_echo") >&5
24659 (eval "$ac_compile") 2>conftest.er1
24661 grep -v '^ *+' conftest.er1 >conftest.err
24663 cat conftest.err >&5
24664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); } && {
24666 test -z "$ac_c_werror_flag" ||
24667 test ! -s conftest.err
24668 } && test -s conftest.$ac_objext; then
24671 $as_echo "$as_me: failed program was:" >&5
24672 sed 's/^/| /' conftest.$ac_ext >&5
24674 ac_cv_type_u_bits32_t=yes
24677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24679 $as_echo "$as_me: failed program was:" >&5
24680 sed 's/^/| /' conftest.$ac_ext >&5
24685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24687 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24688 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24689 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24693 cat >>confdefs.h <<_ACEOF
24694 #define u_bits32_t unsigned long
24700 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24701 $as_echo_n "checking for u_bits32_t... " >&6; }
24702 if test "${ac_cv_type_u_bits32_t+set}" = set; then
24703 $as_echo_n "(cached) " >&6
24705 ac_cv_type_u_bits32_t=no
24706 cat >conftest.$ac_ext <<_ACEOF
24709 cat confdefs.h >>conftest.$ac_ext
24710 cat >>conftest.$ac_ext <<_ACEOF
24711 /* end confdefs.h. */
24712 $ac_includes_default
24716 if (sizeof (u_bits32_t))
24722 rm -f conftest.$ac_objext
24723 if { (ac_try="$ac_compile"
24724 case "(($ac_try" in
24725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24726 *) ac_try_echo
=$ac_try;;
24728 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24729 $as_echo "$ac_try_echo") >&5
24730 (eval "$ac_compile") 2>conftest.er1
24732 grep -v '^ *+' conftest.er1
>conftest.err
24734 cat conftest.err
>&5
24735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); } && {
24737 test -z "$ac_c_werror_flag" ||
24738 test ! -s conftest.err
24739 } && test -s conftest.
$ac_objext; then
24740 cat >conftest.
$ac_ext <<_ACEOF
24743 cat confdefs.h
>>conftest.
$ac_ext
24744 cat >>conftest.
$ac_ext <<_ACEOF
24745 /* end confdefs.h. */
24746 $ac_includes_default
24750 if (sizeof ((u_bits32_t)))
24756 rm -f conftest.
$ac_objext
24757 if { (ac_try
="$ac_compile"
24758 case "(($ac_try" in
24759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24760 *) ac_try_echo=$ac_try;;
24762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24763 $as_echo "$ac_try_echo") >&5
24764 (eval "$ac_compile") 2>conftest.er1
24766 grep -v '^ *+' conftest.er1 >conftest.err
24768 cat conftest.err >&5
24769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); } && {
24771 test -z "$ac_c_werror_flag" ||
24772 test ! -s conftest.err
24773 } && test -s conftest.$ac_objext; then
24776 $as_echo "$as_me: failed program was:" >&5
24777 sed 's/^/| /' conftest.$ac_ext >&5
24779 ac_cv_type_u_bits32_t=yes
24782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24784 $as_echo "$as_me: failed program was:" >&5
24785 sed 's/^/| /' conftest.$ac_ext >&5
24790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24792 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24793 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24794 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24798 cat >>confdefs.h <<_ACEOF
24799 #define u_bits32_t unsigned int
24807 if test "$ac_cv_sizeof_char_p" = 8; then
24808 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24809 $as_echo_n "checking for bits64_t... " >&6; }
24810 if test "${ac_cv_type_bits64_t+set}" = set; then
24811 $as_echo_n "(cached) " >&6
24813 ac_cv_type_bits64_t=no
24814 cat >conftest.$ac_ext <<_ACEOF
24817 cat confdefs.h >>conftest.$ac_ext
24818 cat >>conftest.$ac_ext <<_ACEOF
24819 /* end confdefs.h. */
24820 $ac_includes_default
24824 if (sizeof (bits64_t))
24830 rm -f conftest.$ac_objext
24831 if { (ac_try="$ac_compile"
24832 case "(($ac_try" in
24833 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24834 *) ac_try_echo
=$ac_try;;
24836 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24837 $as_echo "$ac_try_echo") >&5
24838 (eval "$ac_compile") 2>conftest.er1
24840 grep -v '^ *+' conftest.er1
>conftest.err
24842 cat conftest.err
>&5
24843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844 (exit $ac_status); } && {
24845 test -z "$ac_c_werror_flag" ||
24846 test ! -s conftest.err
24847 } && test -s conftest.
$ac_objext; then
24848 cat >conftest.
$ac_ext <<_ACEOF
24851 cat confdefs.h
>>conftest.
$ac_ext
24852 cat >>conftest.
$ac_ext <<_ACEOF
24853 /* end confdefs.h. */
24854 $ac_includes_default
24858 if (sizeof ((bits64_t)))
24864 rm -f conftest.
$ac_objext
24865 if { (ac_try
="$ac_compile"
24866 case "(($ac_try" in
24867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24868 *) ac_try_echo=$ac_try;;
24870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24871 $as_echo "$ac_try_echo") >&5
24872 (eval "$ac_compile") 2>conftest.er1
24874 grep -v '^ *+' conftest.er1 >conftest.err
24876 cat conftest.err >&5
24877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878 (exit $ac_status); } && {
24879 test -z "$ac_c_werror_flag" ||
24880 test ! -s conftest.err
24881 } && test -s conftest.$ac_objext; then
24884 $as_echo "$as_me: failed program was:" >&5
24885 sed 's/^/| /' conftest.$ac_ext >&5
24887 ac_cv_type_bits64_t=yes
24890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24892 $as_echo "$as_me: failed program was:" >&5
24893 sed 's/^/| /' conftest.$ac_ext >&5
24898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24900 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24901 $as_echo "$ac_cv_type_bits64_t" >&6; }
24902 if test "x$ac_cv_type_bits64_t" = x""yes; then
24906 cat >>confdefs.h <<_ACEOF
24907 #define bits64_t char *
24912 elif test "$ac_cv_sizeof_double" = 8; then
24913 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24914 $as_echo_n "checking for bits64_t... " >&6; }
24915 if test "${ac_cv_type_bits64_t+set}" = set; then
24916 $as_echo_n "(cached) " >&6
24918 ac_cv_type_bits64_t=no
24919 cat >conftest.$ac_ext <<_ACEOF
24922 cat confdefs.h >>conftest.$ac_ext
24923 cat >>conftest.$ac_ext <<_ACEOF
24924 /* end confdefs.h. */
24925 $ac_includes_default
24929 if (sizeof (bits64_t))
24935 rm -f conftest.$ac_objext
24936 if { (ac_try="$ac_compile"
24937 case "(($ac_try" in
24938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24939 *) ac_try_echo
=$ac_try;;
24941 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24942 $as_echo "$ac_try_echo") >&5
24943 (eval "$ac_compile") 2>conftest.er1
24945 grep -v '^ *+' conftest.er1
>conftest.err
24947 cat conftest.err
>&5
24948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); } && {
24950 test -z "$ac_c_werror_flag" ||
24951 test ! -s conftest.err
24952 } && test -s conftest.
$ac_objext; then
24953 cat >conftest.
$ac_ext <<_ACEOF
24956 cat confdefs.h
>>conftest.
$ac_ext
24957 cat >>conftest.
$ac_ext <<_ACEOF
24958 /* end confdefs.h. */
24959 $ac_includes_default
24963 if (sizeof ((bits64_t)))
24969 rm -f conftest.
$ac_objext
24970 if { (ac_try
="$ac_compile"
24971 case "(($ac_try" in
24972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24973 *) ac_try_echo=$ac_try;;
24975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24976 $as_echo "$ac_try_echo") >&5
24977 (eval "$ac_compile") 2>conftest.er1
24979 grep -v '^ *+' conftest.er1 >conftest.err
24981 cat conftest.err >&5
24982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983 (exit $ac_status); } && {
24984 test -z "$ac_c_werror_flag" ||
24985 test ! -s conftest.err
24986 } && test -s conftest.$ac_objext; then
24989 $as_echo "$as_me: failed program was:" >&5
24990 sed 's/^/| /' conftest.$ac_ext >&5
24992 ac_cv_type_bits64_t=yes
24995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24997 $as_echo "$as_me: failed program was:" >&5
24998 sed 's/^/| /' conftest.$ac_ext >&5
25003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25005 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25006 $as_echo "$ac_cv_type_bits64_t" >&6; }
25007 if test "x$ac_cv_type_bits64_t" = x""yes; then
25011 cat >>confdefs.h <<_ACEOF
25012 #define bits64_t double
25017 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
25018 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
25019 $as_echo_n "checking for bits64_t... " >&6; }
25020 if test "${ac_cv_type_bits64_t+set}" = set; then
25021 $as_echo_n "(cached) " >&6
25023 ac_cv_type_bits64_t=no
25024 cat >conftest.$ac_ext <<_ACEOF
25027 cat confdefs.h >>conftest.$ac_ext
25028 cat >>conftest.$ac_ext <<_ACEOF
25029 /* end confdefs.h. */
25030 $ac_includes_default
25034 if (sizeof (bits64_t))
25040 rm -f conftest.$ac_objext
25041 if { (ac_try="$ac_compile"
25042 case "(($ac_try" in
25043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25044 *) ac_try_echo
=$ac_try;;
25046 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25047 $as_echo "$ac_try_echo") >&5
25048 (eval "$ac_compile") 2>conftest.er1
25050 grep -v '^ *+' conftest.er1
>conftest.err
25052 cat conftest.err
>&5
25053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054 (exit $ac_status); } && {
25055 test -z "$ac_c_werror_flag" ||
25056 test ! -s conftest.err
25057 } && test -s conftest.
$ac_objext; then
25058 cat >conftest.
$ac_ext <<_ACEOF
25061 cat confdefs.h
>>conftest.
$ac_ext
25062 cat >>conftest.
$ac_ext <<_ACEOF
25063 /* end confdefs.h. */
25064 $ac_includes_default
25068 if (sizeof ((bits64_t)))
25074 rm -f conftest.
$ac_objext
25075 if { (ac_try
="$ac_compile"
25076 case "(($ac_try" in
25077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25078 *) ac_try_echo=$ac_try;;
25080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25081 $as_echo "$ac_try_echo") >&5
25082 (eval "$ac_compile") 2>conftest.er1
25084 grep -v '^ *+' conftest.er1 >conftest.err
25086 cat conftest.err >&5
25087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); } && {
25089 test -z "$ac_c_werror_flag" ||
25090 test ! -s conftest.err
25091 } && test -s conftest.$ac_objext; then
25094 $as_echo "$as_me: failed program was:" >&5
25095 sed 's/^/| /' conftest.$ac_ext >&5
25097 ac_cv_type_bits64_t=yes
25100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25102 $as_echo "$as_me: failed program was:" >&5
25103 sed 's/^/| /' conftest.$ac_ext >&5
25108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25110 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25111 $as_echo "$ac_cv_type_bits64_t" >&6; }
25112 if test "x$ac_cv_type_bits64_t" = x""yes; then
25116 cat >>confdefs.h <<_ACEOF
25117 #define bits64_t long long
25122 elif test "$ac_cv_sizeof_long" = 8; then
25123 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
25124 $as_echo_n "checking for bits64_t... " >&6; }
25125 if test "${ac_cv_type_bits64_t+set}" = set; then
25126 $as_echo_n "(cached) " >&6
25128 ac_cv_type_bits64_t=no
25129 cat >conftest.$ac_ext <<_ACEOF
25132 cat confdefs.h >>conftest.$ac_ext
25133 cat >>conftest.$ac_ext <<_ACEOF
25134 /* end confdefs.h. */
25135 $ac_includes_default
25139 if (sizeof (bits64_t))
25145 rm -f conftest.$ac_objext
25146 if { (ac_try="$ac_compile"
25147 case "(($ac_try" in
25148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25149 *) ac_try_echo
=$ac_try;;
25151 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25152 $as_echo "$ac_try_echo") >&5
25153 (eval "$ac_compile") 2>conftest.er1
25155 grep -v '^ *+' conftest.er1
>conftest.err
25157 cat conftest.err
>&5
25158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); } && {
25160 test -z "$ac_c_werror_flag" ||
25161 test ! -s conftest.err
25162 } && test -s conftest.
$ac_objext; then
25163 cat >conftest.
$ac_ext <<_ACEOF
25166 cat confdefs.h
>>conftest.
$ac_ext
25167 cat >>conftest.
$ac_ext <<_ACEOF
25168 /* end confdefs.h. */
25169 $ac_includes_default
25173 if (sizeof ((bits64_t)))
25179 rm -f conftest.
$ac_objext
25180 if { (ac_try
="$ac_compile"
25181 case "(($ac_try" in
25182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25183 *) ac_try_echo=$ac_try;;
25185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25186 $as_echo "$ac_try_echo") >&5
25187 (eval "$ac_compile") 2>conftest.er1
25189 grep -v '^ *+' conftest.er1 >conftest.err
25191 cat conftest.err >&5
25192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193 (exit $ac_status); } && {
25194 test -z "$ac_c_werror_flag" ||
25195 test ! -s conftest.err
25196 } && test -s conftest.$ac_objext; then
25199 $as_echo "$as_me: failed program was:" >&5
25200 sed 's/^/| /' conftest.$ac_ext >&5
25202 ac_cv_type_bits64_t=yes
25205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25207 $as_echo "$as_me: failed program was:" >&5
25208 sed 's/^/| /' conftest.$ac_ext >&5
25213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25215 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25216 $as_echo "$ac_cv_type_bits64_t" >&6; }
25217 if test "x$ac_cv_type_bits64_t" = x""yes; then
25221 cat >>confdefs.h <<_ACEOF
25222 #define bits64_t long
25228 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
25229 $as_echo_n "checking for bits64_t... " >&6; }
25230 if test "${ac_cv_type_bits64_t+set}" = set; then
25231 $as_echo_n "(cached) " >&6
25233 ac_cv_type_bits64_t=no
25234 cat >conftest.$ac_ext <<_ACEOF
25237 cat confdefs.h >>conftest.$ac_ext
25238 cat >>conftest.$ac_ext <<_ACEOF
25239 /* end confdefs.h. */
25240 $ac_includes_default
25244 if (sizeof (bits64_t))
25250 rm -f conftest.$ac_objext
25251 if { (ac_try="$ac_compile"
25252 case "(($ac_try" in
25253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25254 *) ac_try_echo
=$ac_try;;
25256 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25257 $as_echo "$ac_try_echo") >&5
25258 (eval "$ac_compile") 2>conftest.er1
25260 grep -v '^ *+' conftest.er1
>conftest.err
25262 cat conftest.err
>&5
25263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264 (exit $ac_status); } && {
25265 test -z "$ac_c_werror_flag" ||
25266 test ! -s conftest.err
25267 } && test -s conftest.
$ac_objext; then
25268 cat >conftest.
$ac_ext <<_ACEOF
25271 cat confdefs.h
>>conftest.
$ac_ext
25272 cat >>conftest.
$ac_ext <<_ACEOF
25273 /* end confdefs.h. */
25274 $ac_includes_default
25278 if (sizeof ((bits64_t)))
25284 rm -f conftest.
$ac_objext
25285 if { (ac_try
="$ac_compile"
25286 case "(($ac_try" in
25287 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25288 *) ac_try_echo=$ac_try;;
25290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25291 $as_echo "$ac_try_echo") >&5
25292 (eval "$ac_compile") 2>conftest.er1
25294 grep -v '^ *+' conftest.er1 >conftest.err
25296 cat conftest.err >&5
25297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25298 (exit $ac_status); } && {
25299 test -z "$ac_c_werror_flag" ||
25300 test ! -s conftest.err
25301 } && test -s conftest.$ac_objext; then
25304 $as_echo "$as_me: failed program was:" >&5
25305 sed 's/^/| /' conftest.$ac_ext >&5
25307 ac_cv_type_bits64_t=yes
25310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25312 $as_echo "$as_me: failed program was:" >&5
25313 sed 's/^/| /' conftest.$ac_ext >&5
25318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25320 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25321 $as_echo "$ac_cv_type_bits64_t" >&6; }
25322 if test "x$ac_cv_type_bits64_t" = x""yes; then
25326 cat >>confdefs.h <<_ACEOF
25327 #define bits64_t double
25336 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
25337 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25338 $as_echo_n "checking for ptrdiff_t... " >&6; }
25339 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25340 $as_echo_n "(cached) " >&6
25342 ac_cv_type_ptrdiff_t=no
25343 cat >conftest.$ac_ext <<_ACEOF
25346 cat confdefs.h >>conftest.$ac_ext
25347 cat >>conftest.$ac_ext <<_ACEOF
25348 /* end confdefs.h. */
25349 $ac_includes_default
25353 if (sizeof (ptrdiff_t))
25359 rm -f conftest.$ac_objext
25360 if { (ac_try="$ac_compile"
25361 case "(($ac_try" in
25362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25363 *) ac_try_echo
=$ac_try;;
25365 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25366 $as_echo "$ac_try_echo") >&5
25367 (eval "$ac_compile") 2>conftest.er1
25369 grep -v '^ *+' conftest.er1
>conftest.err
25371 cat conftest.err
>&5
25372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373 (exit $ac_status); } && {
25374 test -z "$ac_c_werror_flag" ||
25375 test ! -s conftest.err
25376 } && test -s conftest.
$ac_objext; then
25377 cat >conftest.
$ac_ext <<_ACEOF
25380 cat confdefs.h
>>conftest.
$ac_ext
25381 cat >>conftest.
$ac_ext <<_ACEOF
25382 /* end confdefs.h. */
25383 $ac_includes_default
25387 if (sizeof ((ptrdiff_t)))
25393 rm -f conftest.
$ac_objext
25394 if { (ac_try
="$ac_compile"
25395 case "(($ac_try" in
25396 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25397 *) ac_try_echo=$ac_try;;
25399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25400 $as_echo "$ac_try_echo") >&5
25401 (eval "$ac_compile") 2>conftest.er1
25403 grep -v '^ *+' conftest.er1 >conftest.err
25405 cat conftest.err >&5
25406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25407 (exit $ac_status); } && {
25408 test -z "$ac_c_werror_flag" ||
25409 test ! -s conftest.err
25410 } && test -s conftest.$ac_objext; then
25413 $as_echo "$as_me: failed program was:" >&5
25414 sed 's/^/| /' conftest.$ac_ext >&5
25416 ac_cv_type_ptrdiff_t=yes
25419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25421 $as_echo "$as_me: failed program was:" >&5
25422 sed 's/^/| /' conftest.$ac_ext >&5
25427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25429 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25430 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25431 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25435 cat >>confdefs.h <<_ACEOF
25436 #define ptrdiff_t int
25441 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
25442 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25443 $as_echo_n "checking for ptrdiff_t... " >&6; }
25444 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25445 $as_echo_n "(cached) " >&6
25447 ac_cv_type_ptrdiff_t=no
25448 cat >conftest.$ac_ext <<_ACEOF
25451 cat confdefs.h >>conftest.$ac_ext
25452 cat >>conftest.$ac_ext <<_ACEOF
25453 /* end confdefs.h. */
25454 $ac_includes_default
25458 if (sizeof (ptrdiff_t))
25464 rm -f conftest.$ac_objext
25465 if { (ac_try="$ac_compile"
25466 case "(($ac_try" in
25467 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25468 *) ac_try_echo
=$ac_try;;
25470 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25471 $as_echo "$ac_try_echo") >&5
25472 (eval "$ac_compile") 2>conftest.er1
25474 grep -v '^ *+' conftest.er1
>conftest.err
25476 cat conftest.err
>&5
25477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); } && {
25479 test -z "$ac_c_werror_flag" ||
25480 test ! -s conftest.err
25481 } && test -s conftest.
$ac_objext; then
25482 cat >conftest.
$ac_ext <<_ACEOF
25485 cat confdefs.h
>>conftest.
$ac_ext
25486 cat >>conftest.
$ac_ext <<_ACEOF
25487 /* end confdefs.h. */
25488 $ac_includes_default
25492 if (sizeof ((ptrdiff_t)))
25498 rm -f conftest.
$ac_objext
25499 if { (ac_try
="$ac_compile"
25500 case "(($ac_try" in
25501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25502 *) ac_try_echo=$ac_try;;
25504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25505 $as_echo "$ac_try_echo") >&5
25506 (eval "$ac_compile") 2>conftest.er1
25508 grep -v '^ *+' conftest.er1 >conftest.err
25510 cat conftest.err >&5
25511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512 (exit $ac_status); } && {
25513 test -z "$ac_c_werror_flag" ||
25514 test ! -s conftest.err
25515 } && test -s conftest.$ac_objext; then
25518 $as_echo "$as_me: failed program was:" >&5
25519 sed 's/^/| /' conftest.$ac_ext >&5
25521 ac_cv_type_ptrdiff_t=yes
25524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25526 $as_echo "$as_me: failed program was:" >&5
25527 sed 's/^/| /' conftest.$ac_ext >&5
25532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25534 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25535 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25536 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25540 cat >>confdefs.h <<_ACEOF
25541 #define ptrdiff_t long
25546 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
25547 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25548 $as_echo_n "checking for ptrdiff_t... " >&6; }
25549 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25550 $as_echo_n "(cached) " >&6
25552 ac_cv_type_ptrdiff_t=no
25553 cat >conftest.$ac_ext <<_ACEOF
25556 cat confdefs.h >>conftest.$ac_ext
25557 cat >>conftest.$ac_ext <<_ACEOF
25558 /* end confdefs.h. */
25559 $ac_includes_default
25563 if (sizeof (ptrdiff_t))
25569 rm -f conftest.$ac_objext
25570 if { (ac_try="$ac_compile"
25571 case "(($ac_try" in
25572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25573 *) ac_try_echo
=$ac_try;;
25575 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25576 $as_echo "$ac_try_echo") >&5
25577 (eval "$ac_compile") 2>conftest.er1
25579 grep -v '^ *+' conftest.er1
>conftest.err
25581 cat conftest.err
>&5
25582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); } && {
25584 test -z "$ac_c_werror_flag" ||
25585 test ! -s conftest.err
25586 } && test -s conftest.
$ac_objext; then
25587 cat >conftest.
$ac_ext <<_ACEOF
25590 cat confdefs.h
>>conftest.
$ac_ext
25591 cat >>conftest.
$ac_ext <<_ACEOF
25592 /* end confdefs.h. */
25593 $ac_includes_default
25597 if (sizeof ((ptrdiff_t)))
25603 rm -f conftest.
$ac_objext
25604 if { (ac_try
="$ac_compile"
25605 case "(($ac_try" in
25606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25607 *) ac_try_echo=$ac_try;;
25609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25610 $as_echo "$ac_try_echo") >&5
25611 (eval "$ac_compile") 2>conftest.er1
25613 grep -v '^ *+' conftest.er1 >conftest.err
25615 cat conftest.err >&5
25616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); } && {
25618 test -z "$ac_c_werror_flag" ||
25619 test ! -s conftest.err
25620 } && test -s conftest.$ac_objext; then
25623 $as_echo "$as_me: failed program was:" >&5
25624 sed 's/^/| /' conftest.$ac_ext >&5
25626 ac_cv_type_ptrdiff_t=yes
25629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25631 $as_echo "$as_me: failed program was:" >&5
25632 sed 's/^/| /' conftest.$ac_ext >&5
25637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25639 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25640 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25641 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25645 cat >>confdefs.h <<_ACEOF
25646 #define ptrdiff_t long long
25652 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25653 $as_echo_n "checking for ptrdiff_t... " >&6; }
25654 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25655 $as_echo_n "(cached) " >&6
25657 ac_cv_type_ptrdiff_t=no
25658 cat >conftest.$ac_ext <<_ACEOF
25661 cat confdefs.h >>conftest.$ac_ext
25662 cat >>conftest.$ac_ext <<_ACEOF
25663 /* end confdefs.h. */
25664 $ac_includes_default
25668 if (sizeof (ptrdiff_t))
25674 rm -f conftest.$ac_objext
25675 if { (ac_try="$ac_compile"
25676 case "(($ac_try" in
25677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25678 *) ac_try_echo
=$ac_try;;
25680 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25681 $as_echo "$ac_try_echo") >&5
25682 (eval "$ac_compile") 2>conftest.er1
25684 grep -v '^ *+' conftest.er1
>conftest.err
25686 cat conftest.err
>&5
25687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); } && {
25689 test -z "$ac_c_werror_flag" ||
25690 test ! -s conftest.err
25691 } && test -s conftest.
$ac_objext; then
25692 cat >conftest.
$ac_ext <<_ACEOF
25695 cat confdefs.h
>>conftest.
$ac_ext
25696 cat >>conftest.
$ac_ext <<_ACEOF
25697 /* end confdefs.h. */
25698 $ac_includes_default
25702 if (sizeof ((ptrdiff_t)))
25708 rm -f conftest.
$ac_objext
25709 if { (ac_try
="$ac_compile"
25710 case "(($ac_try" in
25711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25712 *) ac_try_echo=$ac_try;;
25714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25715 $as_echo "$ac_try_echo") >&5
25716 (eval "$ac_compile") 2>conftest.er1
25718 grep -v '^ *+' conftest.er1 >conftest.err
25720 cat conftest.err >&5
25721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722 (exit $ac_status); } && {
25723 test -z "$ac_c_werror_flag" ||
25724 test ! -s conftest.err
25725 } && test -s conftest.$ac_objext; then
25728 $as_echo "$as_me: failed program was:" >&5
25729 sed 's/^/| /' conftest.$ac_ext >&5
25731 ac_cv_type_ptrdiff_t=yes
25734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25736 $as_echo "$as_me: failed program was:" >&5
25737 sed 's/^/| /' conftest.$ac_ext >&5
25742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25744 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25745 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25746 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25750 cat >>confdefs.h <<_ACEOF
25751 #define ptrdiff_t int
25759 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25760 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25761 if test "${ac_cv_header_stat_broken+set}" = set; then
25762 $as_echo_n "(cached) " >&6
25764 cat >conftest.$ac_ext <<_ACEOF
25767 cat confdefs.h >>conftest.$ac_ext
25768 cat >>conftest.$ac_ext <<_ACEOF
25769 /* end confdefs.h. */
25770 #include <sys/types.h>
25771 #include <sys/stat.h>
25773 #if defined S_ISBLK && defined S_IFDIR
25774 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25777 #if defined S_ISBLK && defined S_IFCHR
25778 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25781 #if defined S_ISLNK && defined S_IFREG
25782 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25785 #if defined S_ISSOCK && defined S_IFREG
25786 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25790 rm -f conftest.$ac_objext
25791 if { (ac_try="$ac_compile"
25792 case "(($ac_try" in
25793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25794 *) ac_try_echo
=$ac_try;;
25796 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25797 $as_echo "$ac_try_echo") >&5
25798 (eval "$ac_compile") 2>conftest.er1
25800 grep -v '^ *+' conftest.er1
>conftest.err
25802 cat conftest.err
>&5
25803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804 (exit $ac_status); } && {
25805 test -z "$ac_c_werror_flag" ||
25806 test ! -s conftest.err
25807 } && test -s conftest.
$ac_objext; then
25808 ac_cv_header_stat_broken
=no
25810 $as_echo "$as_me: failed program was:" >&5
25811 sed 's/^/| /' conftest.
$ac_ext >&5
25813 ac_cv_header_stat_broken
=yes
25816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25818 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25819 $as_echo "$ac_cv_header_stat_broken" >&6; }
25820 if test $ac_cv_header_stat_broken = yes; then
25822 cat >>confdefs.h
<<\_ACEOF
25823 #define STAT_MACROS_BROKEN 1
25829 { $as_echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
25830 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
25831 if test "${ac_cv_sys_interpreter+set}" = set; then
25832 $as_echo_n "(cached) " >&6
25838 (SHELL
=/bin
/sh
; export SHELL
; .
/conftest
>/dev
/null
2>&1)
25839 if test $?
-ne 69; then
25840 ac_cv_sys_interpreter
=yes
25842 ac_cv_sys_interpreter
=no
25846 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
25847 $as_echo "$ac_cv_sys_interpreter" >&6; }
25848 interpval
=$ac_cv_sys_interpreter
25850 if test $ac_cv_sys_interpreter = yes; then
25851 cat >>confdefs.h
<<\_ACEOF
25852 #define HAVE_HASH_BANG_EXEC 1
25857 if test "$ac_cv_func_lstat" = "no"; then
25858 { $as_echo "$as_me:$LINENO: checking for lstat" >&5
25859 $as_echo_n "checking for lstat... " >&6; }
25860 if test "${bash_cv_func_lstat+set}" = set; then
25861 $as_echo_n "(cached) " >&6
25863 cat >conftest.
$ac_ext <<_ACEOF
25866 cat confdefs.h
>>conftest.
$ac_ext
25867 cat >>conftest.
$ac_ext <<_ACEOF
25868 /* end confdefs.h. */
25870 #include <sys/types.h>
25871 #include <sys/stat.h>
25876 lstat(".",(struct stat *)0);
25881 rm -f conftest.
$ac_objext conftest
$ac_exeext
25882 if { (ac_try
="$ac_link"
25883 case "(($ac_try" in
25884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25885 *) ac_try_echo=$ac_try;;
25887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25888 $as_echo "$ac_try_echo") >&5
25889 (eval "$ac_link") 2>conftest.er1
25891 grep -v '^ *+' conftest.er1 >conftest.err
25893 cat conftest.err >&5
25894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895 (exit $ac_status); } && {
25896 test -z "$ac_c_werror_flag" ||
25897 test ! -s conftest.err
25898 } && test -s conftest$ac_exeext && {
25899 test "$cross_compiling" = yes ||
25900 $as_test_x conftest$ac_exeext
25902 bash_cv_func_lstat=yes
25904 $as_echo "$as_me: failed program was:" >&5
25905 sed 's/^/| /' conftest.$ac_ext >&5
25907 bash_cv_func_lstat=no
25910 rm -rf conftest.dSYM
25911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25912 conftest$ac_exeext conftest.$ac_ext
25914 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
25915 $as_echo "$bash_cv_func_lstat" >&6; }
25916 if test $bash_cv_func_lstat = yes; then
25917 cat >>confdefs.h <<\_ACEOF
25918 #define HAVE_LSTAT 1
25926 { $as_echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
25927 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
25928 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
25929 $as_echo_n "(cached) " >&6
25931 if test "$cross_compiling" = yes; then
25932 { $as_echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
25933 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
25934 bash_cv_func_ctype_nonascii=no
25937 cat >conftest.$ac_ext <<_ACEOF
25940 cat confdefs.h >>conftest.$ac_ext
25941 cat >>conftest.$ac_ext <<_ACEOF
25942 /* end confdefs.h. */
25944 #ifdef HAVE_LOCALE_H
25945 #include <locale.h>
25958 #ifdef HAVE_SETLOCALE
25959 /* We take a shot here. If that locale is not known, try the
25960 system default. We try this one because '\342' (226) is
25961 known to be a printable character in that locale. */
25962 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
25963 if (deflocale == 0)
25964 deflocale = setlocale(LC_ALL, "");
25971 exit (r1 == 0 || r2 == 0);
25975 rm -f conftest$ac_exeext
25976 if { (ac_try="$ac_link"
25977 case "(($ac_try" in
25978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25979 *) ac_try_echo
=$ac_try;;
25981 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25982 $as_echo "$ac_try_echo") >&5
25983 (eval "$ac_link") 2>&5
25985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25987 { (case "(($ac_try" in
25988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25989 *) ac_try_echo=$ac_try;;
25991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25992 $as_echo "$ac_try_echo") >&5
25993 (eval "$ac_try") 2>&5
25995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25996 (exit $ac_status); }; }; then
25997 bash_cv_func_ctype_nonascii=yes
25999 $as_echo "$as_me: program exited with status $ac_status" >&5
26000 $as_echo "$as_me: failed program was:" >&5
26001 sed 's/^/| /' conftest.$ac_ext >&5
26003 ( exit $ac_status )
26004 bash_cv_func_ctype_nonascii=no
26006 rm -rf conftest.dSYM
26007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26013 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
26014 $as_echo "$bash_cv_func_ctype_nonascii" >&6; }
26015 if test $bash_cv_func_ctype_nonascii = yes; then
26016 cat >>confdefs.h <<\_ACEOF
26017 #define CTYPE_NON_ASCII 1
26022 { $as_echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
26023 $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
26024 if test "${bash_cv_dup2_broken+set}" = set; then
26025 $as_echo_n "(cached) " >&6
26027 if test "$cross_compiling" = yes; then
26028 { $as_echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
26029 $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
26030 bash_cv_dup2_broken=no
26032 cat >conftest.$ac_ext <<_ACEOF
26035 cat confdefs.h >>conftest.$ac_ext
26036 cat >>conftest.$ac_ext <<_ACEOF
26037 /* end confdefs.h. */
26039 #include <sys/types.h>
26044 fd1 = open("/dev/null", 2);
26045 if (fcntl(fd1, 2, 1) < 0)
26047 fd2 = dup2(fd1, 1);
26050 fl = fcntl(fd2, 1, 0);
26051 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
26056 rm -f conftest$ac_exeext
26057 if { (ac_try="$ac_link"
26058 case "(($ac_try" in
26059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26060 *) ac_try_echo
=$ac_try;;
26062 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26063 $as_echo "$ac_try_echo") >&5
26064 (eval "$ac_link") 2>&5
26066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26068 { (case "(($ac_try" in
26069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26070 *) ac_try_echo=$ac_try;;
26072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26073 $as_echo "$ac_try_echo") >&5
26074 (eval "$ac_try") 2>&5
26076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077 (exit $ac_status); }; }; then
26078 bash_cv_dup2_broken=yes
26080 $as_echo "$as_me: program exited with status $ac_status" >&5
26081 $as_echo "$as_me: failed program was:" >&5
26082 sed 's/^/| /' conftest.$ac_ext >&5
26084 ( exit $ac_status )
26085 bash_cv_dup2_broken=no
26087 rm -rf conftest.dSYM
26088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26095 { $as_echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
26096 $as_echo "$bash_cv_dup2_broken" >&6; }
26097 if test $bash_cv_dup2_broken = yes; then
26098 cat >>confdefs.h <<\_ACEOF
26099 #define DUP2_BROKEN 1
26105 { $as_echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
26106 $as_echo_n "checking whether pgrps need synchronization... " >&6; }
26107 if test "${bash_cv_pgrp_pipe+set}" = set; then
26108 $as_echo_n "(cached) " >&6
26110 if test "$cross_compiling" = yes; then
26111 { $as_echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
26112 $as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
26113 bash_cv_pgrp_pipe=no
26115 cat >conftest.$ac_ext <<_ACEOF
26118 cat confdefs.h >>conftest.$ac_ext
26119 cat >>conftest.$ac_ext <<_ACEOF
26120 /* end confdefs.h. */
26122 #ifdef HAVE_UNISTD_H
26123 # include <unistd.h>
26127 # ifdef GETPGRP_VOID
26128 # define getpgID() getpgrp()
26130 # define getpgID() getpgrp(0)
26131 # define setpgid(x,y) setpgrp(x,y)
26133 int pid1, pid2, fds[2];
26137 switch (pid1 = fork()) {
26141 setpgid(0, getpid());
26144 setpgid(pid1, pid1);
26146 sleep(2); /* let first child die */
26151 switch (pid2 = fork()) {
26156 ok = getpgID() == pid1;
26157 write(fds[1], &ok, 1);
26160 setpgid(pid2, pid1);
26163 if (read(fds[0], &ok, 1) != 1)
26171 rm -f conftest$ac_exeext
26172 if { (ac_try="$ac_link"
26173 case "(($ac_try" in
26174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26175 *) ac_try_echo
=$ac_try;;
26177 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26178 $as_echo "$ac_try_echo") >&5
26179 (eval "$ac_link") 2>&5
26181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26183 { (case "(($ac_try" in
26184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26185 *) ac_try_echo=$ac_try;;
26187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26188 $as_echo "$ac_try_echo") >&5
26189 (eval "$ac_try") 2>&5
26191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192 (exit $ac_status); }; }; then
26193 bash_cv_pgrp_pipe=no
26195 $as_echo "$as_me: program exited with status $ac_status" >&5
26196 $as_echo "$as_me: failed program was:" >&5
26197 sed 's/^/| /' conftest.$ac_ext >&5
26199 ( exit $ac_status )
26200 bash_cv_pgrp_pipe=yes
26202 rm -rf conftest.dSYM
26203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26210 { $as_echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
26211 $as_echo "$bash_cv_pgrp_pipe" >&6; }
26212 if test $bash_cv_pgrp_pipe = yes; then
26213 cat >>confdefs.h <<\_ACEOF
26214 #define PGRP_PIPE 1
26220 { $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5
26221 $as_echo_n "checking for type of signal functions... " >&6; }
26222 if test "${bash_cv_signal_vintage+set}" = set; then
26223 $as_echo_n "(cached) " >&6
26226 cat >conftest.$ac_ext <<_ACEOF
26229 cat confdefs.h >>conftest.$ac_ext
26230 cat >>conftest.$ac_ext <<_ACEOF
26231 /* end confdefs.h. */
26232 #include <signal.h>
26238 struct sigaction sa;
26239 sigemptyset(&ss); sigsuspend(&ss);
26240 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26241 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26247 rm -f conftest.$ac_objext conftest$ac_exeext
26248 if { (ac_try="$ac_link"
26249 case "(($ac_try" in
26250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26251 *) ac_try_echo
=$ac_try;;
26253 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26254 $as_echo "$ac_try_echo") >&5
26255 (eval "$ac_link") 2>conftest.er1
26257 grep -v '^ *+' conftest.er1
>conftest.err
26259 cat conftest.err
>&5
26260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26261 (exit $ac_status); } && {
26262 test -z "$ac_c_werror_flag" ||
26263 test ! -s conftest.err
26264 } && test -s conftest
$ac_exeext && {
26265 test "$cross_compiling" = yes ||
26266 $as_test_x conftest
$ac_exeext
26268 bash_cv_signal_vintage
=posix
26270 $as_echo "$as_me: failed program was:" >&5
26271 sed 's/^/| /' conftest.
$ac_ext >&5
26274 cat >conftest.
$ac_ext <<_ACEOF
26277 cat confdefs.h
>>conftest.
$ac_ext
26278 cat >>conftest.
$ac_ext <<_ACEOF
26279 /* end confdefs.h. */
26280 #include <signal.h>
26285 int mask = sigmask(SIGINT);
26286 sigsetmask(mask); sigblock(mask); sigpause(mask);
26292 rm -f conftest.
$ac_objext conftest
$ac_exeext
26293 if { (ac_try
="$ac_link"
26294 case "(($ac_try" in
26295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26296 *) ac_try_echo=$ac_try;;
26298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26299 $as_echo "$ac_try_echo") >&5
26300 (eval "$ac_link") 2>conftest.er1
26302 grep -v '^ *+' conftest.er1 >conftest.err
26304 cat conftest.err >&5
26305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); } && {
26307 test -z "$ac_c_werror_flag" ||
26308 test ! -s conftest.err
26309 } && test -s conftest$ac_exeext && {
26310 test "$cross_compiling" = yes ||
26311 $as_test_x conftest$ac_exeext
26313 bash_cv_signal_vintage=4.2bsd
26315 $as_echo "$as_me: failed program was:" >&5
26316 sed 's/^/| /' conftest.$ac_ext >&5
26319 cat >conftest.$ac_ext <<_ACEOF
26322 cat confdefs.h >>conftest.$ac_ext
26323 cat >>conftest.$ac_ext <<_ACEOF
26324 /* end confdefs.h. */
26326 #include <signal.h>
26327 RETSIGTYPE foo() { }
26332 int mask = sigmask(SIGINT);
26333 sigset(SIGINT, foo); sigrelse(SIGINT);
26334 sighold(SIGINT); sigpause(SIGINT);
26340 rm -f conftest.$ac_objext conftest$ac_exeext
26341 if { (ac_try="$ac_link"
26342 case "(($ac_try" in
26343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26344 *) ac_try_echo
=$ac_try;;
26346 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26347 $as_echo "$ac_try_echo") >&5
26348 (eval "$ac_link") 2>conftest.er1
26350 grep -v '^ *+' conftest.er1
>conftest.err
26352 cat conftest.err
>&5
26353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354 (exit $ac_status); } && {
26355 test -z "$ac_c_werror_flag" ||
26356 test ! -s conftest.err
26357 } && test -s conftest
$ac_exeext && {
26358 test "$cross_compiling" = yes ||
26359 $as_test_x conftest
$ac_exeext
26361 bash_cv_signal_vintage
=svr3
26363 $as_echo "$as_me: failed program was:" >&5
26364 sed 's/^/| /' conftest.
$ac_ext >&5
26366 bash_cv_signal_vintage
=v7
26370 rm -rf conftest.dSYM
26371 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26372 conftest
$ac_exeext conftest.
$ac_ext
26376 rm -rf conftest.dSYM
26377 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26378 conftest
$ac_exeext conftest.
$ac_ext
26382 rm -rf conftest.dSYM
26383 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26384 conftest
$ac_exeext conftest.
$ac_ext
26388 { $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
26389 $as_echo "$bash_cv_signal_vintage" >&6; }
26390 if test "$bash_cv_signal_vintage" = posix
; then
26391 cat >>confdefs.h
<<\_ACEOF
26392 #define HAVE_POSIX_SIGNALS 1
26395 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26396 cat >>confdefs.h
<<\_ACEOF
26397 #define HAVE_BSD_SIGNALS 1
26400 elif test "$bash_cv_signal_vintage" = svr3
; then
26401 cat >>confdefs.h
<<\_ACEOF
26402 #define HAVE_USG_SIGHOLD 1
26408 { $as_echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
26409 $as_echo_n "checking for sys_errlist and sys_nerr... " >&6; }
26410 if test "${bash_cv_sys_errlist+set}" = set; then
26411 $as_echo_n "(cached) " >&6
26413 cat >conftest.
$ac_ext <<_ACEOF
26416 cat confdefs.h
>>conftest.
$ac_ext
26417 cat >>conftest.
$ac_ext <<_ACEOF
26418 /* end confdefs.h. */
26423 extern char *sys_errlist[];
26424 extern int sys_nerr;
26425 char *msg = sys_errlist[sys_nerr - 1];
26430 rm -f conftest.
$ac_objext conftest
$ac_exeext
26431 if { (ac_try
="$ac_link"
26432 case "(($ac_try" in
26433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26434 *) ac_try_echo=$ac_try;;
26436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26437 $as_echo "$ac_try_echo") >&5
26438 (eval "$ac_link") 2>conftest.er1
26440 grep -v '^ *+' conftest.er1 >conftest.err
26442 cat conftest.err >&5
26443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26444 (exit $ac_status); } && {
26445 test -z "$ac_c_werror_flag" ||
26446 test ! -s conftest.err
26447 } && test -s conftest$ac_exeext && {
26448 test "$cross_compiling" = yes ||
26449 $as_test_x conftest$ac_exeext
26451 bash_cv_sys_errlist=yes
26453 $as_echo "$as_me: failed program was:" >&5
26454 sed 's/^/| /' conftest.$ac_ext >&5
26456 bash_cv_sys_errlist=no
26459 rm -rf conftest.dSYM
26460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26461 conftest$ac_exeext conftest.$ac_ext
26463 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
26464 $as_echo "$bash_cv_sys_errlist" >&6; }
26465 if test $bash_cv_sys_errlist = yes; then
26466 cat >>confdefs.h <<\_ACEOF
26467 #define HAVE_SYS_ERRLIST 1
26473 { $as_echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
26474 $as_echo_n "checking for sys_siglist in system C library... " >&6; }
26475 if test "${bash_cv_sys_siglist+set}" = set; then
26476 $as_echo_n "(cached) " >&6
26478 if test "$cross_compiling" = yes; then
26479 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
26480 $as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
26481 bash_cv_sys_siglist=no
26483 cat >conftest.$ac_ext <<_ACEOF
26486 cat confdefs.h >>conftest.$ac_ext
26487 cat >>conftest.$ac_ext <<_ACEOF
26488 /* end confdefs.h. */
26490 #include <sys/types.h>
26491 #include <signal.h>
26492 #ifdef HAVE_UNISTD_H
26493 #include <unistd.h>
26495 #if !HAVE_DECL_SYS_SIGLIST
26496 extern char *sys_siglist[];
26500 char *msg = sys_siglist[2];
26504 rm -f conftest$ac_exeext
26505 if { (ac_try="$ac_link"
26506 case "(($ac_try" in
26507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26508 *) ac_try_echo
=$ac_try;;
26510 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26511 $as_echo "$ac_try_echo") >&5
26512 (eval "$ac_link") 2>&5
26514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26516 { (case "(($ac_try" in
26517 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26518 *) ac_try_echo=$ac_try;;
26520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26521 $as_echo "$ac_try_echo") >&5
26522 (eval "$ac_try") 2>&5
26524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525 (exit $ac_status); }; }; then
26526 bash_cv_sys_siglist=yes
26528 $as_echo "$as_me: program exited with status $ac_status" >&5
26529 $as_echo "$as_me: failed program was:" >&5
26530 sed 's/^/| /' conftest.$ac_ext >&5
26532 ( exit $ac_status )
26533 bash_cv_sys_siglist=no
26535 rm -rf conftest.dSYM
26536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26542 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
26543 $as_echo "$bash_cv_sys_siglist" >&6; }
26544 if test $bash_cv_sys_siglist = yes; then
26545 cat >>confdefs.h <<\_ACEOF
26546 #define HAVE_SYS_SIGLIST 1
26551 { $as_echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
26552 $as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
26553 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
26554 $as_echo_n "(cached) " >&6
26556 cat >conftest.$ac_ext <<_ACEOF
26559 cat confdefs.h >>conftest.$ac_ext
26560 cat >>conftest.$ac_ext <<_ACEOF
26561 /* end confdefs.h. */
26563 #include <sys/types.h>
26564 #include <signal.h>
26565 #ifdef HAVE_UNISTD_H
26566 #include <unistd.h>
26571 char *msg = _sys_siglist[2];
26576 rm -f conftest.$ac_objext
26577 if { (ac_try="$ac_compile"
26578 case "(($ac_try" in
26579 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26580 *) ac_try_echo
=$ac_try;;
26582 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26583 $as_echo "$ac_try_echo") >&5
26584 (eval "$ac_compile") 2>conftest.er1
26586 grep -v '^ *+' conftest.er1
>conftest.err
26588 cat conftest.err
>&5
26589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590 (exit $ac_status); } && {
26591 test -z "$ac_c_werror_flag" ||
26592 test ! -s conftest.err
26593 } && test -s conftest.
$ac_objext; then
26594 bash_cv_decl_under_sys_siglist
=yes
26596 $as_echo "$as_me: failed program was:" >&5
26597 sed 's/^/| /' conftest.
$ac_ext >&5
26599 bash_cv_decl_under_sys_siglist
=no
26602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26604 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
26605 $as_echo "$bash_cv_decl_under_sys_siglist" >&6; }
26606 if test $bash_cv_decl_under_sys_siglist = yes; then
26607 cat >>confdefs.h
<<\_ACEOF
26608 #define UNDER_SYS_SIGLIST_DECLARED 1
26614 { $as_echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
26615 $as_echo_n "checking for _sys_siglist in system C library... " >&6; }
26616 if test "${bash_cv_under_sys_siglist+set}" = set; then
26617 $as_echo_n "(cached) " >&6
26619 if test "$cross_compiling" = yes; then
26620 { $as_echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
26621 $as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
26622 bash_cv_under_sys_siglist
=no
26624 cat >conftest.
$ac_ext <<_ACEOF
26627 cat confdefs.h
>>conftest.
$ac_ext
26628 cat >>conftest.
$ac_ext <<_ACEOF
26629 /* end confdefs.h. */
26631 #include <sys/types.h>
26632 #include <signal.h>
26633 #ifdef HAVE_UNISTD_H
26634 #include <unistd.h>
26636 #ifndef UNDER_SYS_SIGLIST_DECLARED
26637 extern char *_sys_siglist[];
26641 char *msg = (char *)_sys_siglist[2];
26645 rm -f conftest
$ac_exeext
26646 if { (ac_try
="$ac_link"
26647 case "(($ac_try" in
26648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26649 *) ac_try_echo=$ac_try;;
26651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26652 $as_echo "$ac_try_echo") >&5
26653 (eval "$ac_link") 2>&5
26655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26657 { (case "(($ac_try" in
26658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26659 *) ac_try_echo
=$ac_try;;
26661 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26662 $as_echo "$ac_try_echo") >&5
26663 (eval "$ac_try") 2>&5
26665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666 (exit $ac_status); }; }; then
26667 bash_cv_under_sys_siglist
=yes
26669 $as_echo "$as_me: program exited with status $ac_status" >&5
26670 $as_echo "$as_me: failed program was:" >&5
26671 sed 's/^/| /' conftest.
$ac_ext >&5
26673 ( exit $ac_status )
26674 bash_cv_under_sys_siglist
=no
26676 rm -rf conftest.dSYM
26677 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26683 { $as_echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
26684 $as_echo "$bash_cv_under_sys_siglist" >&6; }
26685 if test $bash_cv_under_sys_siglist = yes; then
26686 cat >>confdefs.h
<<\_ACEOF
26687 #define HAVE_UNDER_SYS_SIGLIST 1
26693 { $as_echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
26694 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
26695 if test "${bash_cv_void_sighandler+set}" = set; then
26696 $as_echo_n "(cached) " >&6
26698 cat >conftest.
$ac_ext <<_ACEOF
26701 cat confdefs.h
>>conftest.
$ac_ext
26702 cat >>conftest.
$ac_ext <<_ACEOF
26703 /* end confdefs.h. */
26704 #include <sys/types.h>
26705 #include <signal.h>
26712 void (*signal ()) ();
26721 rm -f conftest.
$ac_objext
26722 if { (ac_try
="$ac_compile"
26723 case "(($ac_try" in
26724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26725 *) ac_try_echo=$ac_try;;
26727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26728 $as_echo "$ac_try_echo") >&5
26729 (eval "$ac_compile") 2>conftest.er1
26731 grep -v '^ *+' conftest.er1 >conftest.err
26733 cat conftest.err >&5
26734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735 (exit $ac_status); } && {
26736 test -z "$ac_c_werror_flag" ||
26737 test ! -s conftest.err
26738 } && test -s conftest.$ac_objext; then
26739 bash_cv_void_sighandler=yes
26741 $as_echo "$as_me: failed program was:" >&5
26742 sed 's/^/| /' conftest.$ac_ext >&5
26744 bash_cv_void_sighandler=no
26747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26749 { $as_echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
26750 $as_echo "$bash_cv_void_sighandler" >&6; }
26751 if test $bash_cv_void_sighandler = yes; then
26752 cat >>confdefs.h <<\_ACEOF
26753 #define VOID_SIGHANDLER 1
26760 { $as_echo "$as_me:$LINENO: checking for clock_t" >&5
26761 $as_echo_n "checking for clock_t... " >&6; }
26762 if test "${bash_cv_type_clock_t+set}" = set; then
26763 $as_echo_n "(cached) " >&6
26765 cat >conftest.$ac_ext <<_ACEOF
26768 cat confdefs.h >>conftest.$ac_ext
26769 cat >>conftest.$ac_ext <<_ACEOF
26770 /* end confdefs.h. */
26771 #include <sys/types.h>
26773 #include <stdlib.h>
26774 #include <stddef.h>
26776 #if HAVE_INTTYPES_H
26777 #include <inttypes.h>
26780 #include <stdint.h>
26782 #include <sys/times.h>
26785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26786 $EGREP "clock_t" >/dev/null 2>&1; then
26787 bash_cv_type_clock_t=yes
26789 bash_cv_type_clock_t=no
26795 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
26796 $as_echo "$bash_cv_type_clock_t" >&6; }
26798 if test $bash_cv_type_clock_t = no; then
26799 cat >>confdefs.h <<_ACEOF
26800 #define clock_t long
26807 { $as_echo "$as_me:$LINENO: checking for sigset_t" >&5
26808 $as_echo_n "checking for sigset_t... " >&6; }
26809 if test "${bash_cv_type_sigset_t+set}" = set; then
26810 $as_echo_n "(cached) " >&6
26812 cat >conftest.$ac_ext <<_ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h. */
26818 #include <sys/types.h>
26820 #include <stdlib.h>
26821 #include <stddef.h>
26823 #if HAVE_INTTYPES_H
26824 #include <inttypes.h>
26827 #include <stdint.h>
26829 #include <signal.h>
26832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26833 $EGREP "sigset_t" >/dev/null 2>&1; then
26834 bash_cv_type_sigset_t=yes
26836 bash_cv_type_sigset_t=no
26842 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
26843 $as_echo "$bash_cv_type_sigset_t" >&6; }
26845 if test $bash_cv_type_sigset_t = no; then
26846 cat >>confdefs.h <<_ACEOF
26847 #define sigset_t int
26854 { $as_echo "$as_me:$LINENO: checking for quad_t" >&5
26855 $as_echo_n "checking for quad_t... " >&6; }
26856 if test "${bash_cv_type_quad_t+set}" = set; then
26857 $as_echo_n "(cached) " >&6
26859 cat >conftest.$ac_ext <<_ACEOF
26862 cat confdefs.h >>conftest.$ac_ext
26863 cat >>conftest.$ac_ext <<_ACEOF
26864 /* end confdefs.h. */
26865 #include <sys/types.h>
26867 #include <stdlib.h>
26868 #include <stddef.h>
26870 #if HAVE_INTTYPES_H
26871 #include <inttypes.h>
26874 #include <stdint.h>
26879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26880 $EGREP "quad_t" >/dev/null 2>&1; then
26881 bash_cv_type_quad_t=yes
26883 bash_cv_type_quad_t=no
26889 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
26890 $as_echo "$bash_cv_type_quad_t" >&6; }
26891 if test $bash_cv_type_quad_t = yes; then
26892 cat >>confdefs.h <<\_ACEOF
26893 #define HAVE_QUAD_T 1
26897 if test $bash_cv_type_quad_t = no; then
26898 cat >>confdefs.h <<_ACEOF
26899 #define quad_t long
26906 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
26907 $as_echo_n "checking for intmax_t... " >&6; }
26908 if test "${bash_cv_type_intmax_t+set}" = set; then
26909 $as_echo_n "(cached) " >&6
26911 cat >conftest.$ac_ext <<_ACEOF
26914 cat confdefs.h >>conftest.$ac_ext
26915 cat >>conftest.$ac_ext <<_ACEOF
26916 /* end confdefs.h. */
26917 #include <sys/types.h>
26919 #include <stdlib.h>
26920 #include <stddef.h>
26922 #if HAVE_INTTYPES_H
26923 #include <inttypes.h>
26926 #include <stdint.h>
26931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26932 $EGREP "intmax_t" >/dev/null 2>&1; then
26933 bash_cv_type_intmax_t=yes
26935 bash_cv_type_intmax_t=no
26941 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
26942 $as_echo "$bash_cv_type_intmax_t" >&6; }
26944 if test $bash_cv_type_intmax_t = no; then
26945 cat >>confdefs.h <<_ACEOF
26946 #define intmax_t $bash_cv_type_long_long
26953 { $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5
26954 $as_echo_n "checking for uintmax_t... " >&6; }
26955 if test "${bash_cv_type_uintmax_t+set}" = set; then
26956 $as_echo_n "(cached) " >&6
26958 cat >conftest.$ac_ext <<_ACEOF
26961 cat confdefs.h >>conftest.$ac_ext
26962 cat >>conftest.$ac_ext <<_ACEOF
26963 /* end confdefs.h. */
26964 #include <sys/types.h>
26966 #include <stdlib.h>
26967 #include <stddef.h>
26969 #if HAVE_INTTYPES_H
26970 #include <inttypes.h>
26973 #include <stdint.h>
26978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26979 $EGREP "uintmax_t" >/dev/null 2>&1; then
26980 bash_cv_type_uintmax_t=yes
26982 bash_cv_type_uintmax_t=no
26988 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
26989 $as_echo "$bash_cv_type_uintmax_t" >&6; }
26991 if test $bash_cv_type_uintmax_t = no; then
26992 cat >>confdefs.h <<_ACEOF
26993 #define uintmax_t $bash_cv_type_unsigned_long_long
26998 if test "$ac_cv_header_sys_socket_h" = "yes"; then
27001 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
27002 $as_echo_n "checking for socklen_t... " >&6; }
27003 if test "${bash_cv_type_socklen_t+set}" = set; then
27004 $as_echo_n "(cached) " >&6
27006 cat >conftest.$ac_ext <<_ACEOF
27009 cat confdefs.h >>conftest.$ac_ext
27010 cat >>conftest.$ac_ext <<_ACEOF
27011 /* end confdefs.h. */
27012 #include <sys/types.h>
27014 #include <stdlib.h>
27015 #include <stddef.h>
27017 #if HAVE_INTTYPES_H
27018 #include <inttypes.h>
27021 #include <stdint.h>
27023 #include <sys/socket.h>
27026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27027 $EGREP "socklen_t" >/dev/null 2>&1; then
27028 bash_cv_type_socklen_t=yes
27030 bash_cv_type_socklen_t=no
27036 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
27037 $as_echo "$bash_cv_type_socklen_t" >&6; }
27038 if test $bash_cv_type_socklen_t = yes; then
27039 cat >>confdefs.h <<\_ACEOF
27040 #define HAVE_SOCKLEN_T 1
27044 if test $bash_cv_type_socklen_t = no; then
27045 cat >>confdefs.h <<_ACEOF
27046 #define socklen_t int
27052 { $as_echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
27053 $as_echo_n "checking for size and type of struct rlimit fields... " >&6; }
27054 if test "${bash_cv_type_rlimit+set}" = set; then
27055 $as_echo_n "(cached) " >&6
27057 cat >conftest.$ac_ext <<_ACEOF
27060 cat confdefs.h >>conftest.$ac_ext
27061 cat >>conftest.$ac_ext <<_ACEOF
27062 /* end confdefs.h. */
27063 #include <sys/types.h>
27064 #include <sys/resource.h>
27073 rm -f conftest.$ac_objext
27074 if { (ac_try="$ac_compile"
27075 case "(($ac_try" in
27076 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27077 *) ac_try_echo
=$ac_try;;
27079 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27080 $as_echo "$ac_try_echo") >&5
27081 (eval "$ac_compile") 2>conftest.er1
27083 grep -v '^ *+' conftest.er1
>conftest.err
27085 cat conftest.err
>&5
27086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); } && {
27088 test -z "$ac_c_werror_flag" ||
27089 test ! -s conftest.err
27090 } && test -s conftest.
$ac_objext; then
27091 bash_cv_type_rlimit
=rlim_t
27093 $as_echo "$as_me: failed program was:" >&5
27094 sed 's/^/| /' conftest.
$ac_ext >&5
27097 if test "$cross_compiling" = yes; then
27098 { $as_echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
27099 $as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
27100 bash_cv_type_rlimit
=long
27102 cat >conftest.
$ac_ext <<_ACEOF
27105 cat confdefs.h
>>conftest.
$ac_ext
27106 cat >>conftest.
$ac_ext <<_ACEOF
27107 /* end confdefs.h. */
27109 #include <sys/types.h>
27110 #include <sys/time.h>
27111 #include <sys/resource.h>
27116 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
27122 rm -f conftest
$ac_exeext
27123 if { (ac_try
="$ac_link"
27124 case "(($ac_try" in
27125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27126 *) ac_try_echo=$ac_try;;
27128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27129 $as_echo "$ac_try_echo") >&5
27130 (eval "$ac_link") 2>&5
27132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
27142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143 (exit $ac_status); }; }; then
27144 bash_cv_type_rlimit
=quad_t
27146 $as_echo "$as_me: program exited with status $ac_status" >&5
27147 $as_echo "$as_me: failed program was:" >&5
27148 sed 's/^/| /' conftest.
$ac_ext >&5
27150 ( exit $ac_status )
27151 bash_cv_type_rlimit
=long
27153 rm -rf conftest.dSYM
27154 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27164 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
27165 $as_echo "$bash_cv_type_rlimit" >&6; }
27166 if test $bash_cv_type_rlimit = quad_t
; then
27167 cat >>confdefs.h
<<\_ACEOF
27168 #define RLIMTYPE quad_t
27171 elif test $bash_cv_type_rlimit = rlim_t
; then
27172 cat >>confdefs.h
<<\_ACEOF
27173 #define RLIMTYPE rlim_t
27179 # The cast to long int works around a bug in the HP C Compiler
27180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27182 # This bug is HP SR number 8606223364.
27183 { $as_echo "$as_me:$LINENO: checking size of intmax_t" >&5
27184 $as_echo_n "checking size of intmax_t... " >&6; }
27185 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
27186 $as_echo_n "(cached) " >&6
27188 if test "$cross_compiling" = yes; then
27189 # Depending upon the size, compute the lo and hi bounds.
27190 cat >conftest.
$ac_ext <<_ACEOF
27193 cat confdefs.h
>>conftest.
$ac_ext
27194 cat >>conftest.
$ac_ext <<_ACEOF
27195 /* end confdefs.h. */
27196 $ac_includes_default
27200 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= 0)];
27207 rm -f conftest.
$ac_objext
27208 if { (ac_try
="$ac_compile"
27209 case "(($ac_try" in
27210 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27211 *) ac_try_echo=$ac_try;;
27213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27214 $as_echo "$ac_try_echo") >&5
27215 (eval "$ac_compile") 2>conftest.er1
27217 grep -v '^ *+' conftest.er1 >conftest.err
27219 cat conftest.err >&5
27220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221 (exit $ac_status); } && {
27222 test -z "$ac_c_werror_flag" ||
27223 test ! -s conftest.err
27224 } && test -s conftest.$ac_objext; then
27227 cat >conftest.$ac_ext <<_ACEOF
27230 cat confdefs.h >>conftest.$ac_ext
27231 cat >>conftest.$ac_ext <<_ACEOF
27232 /* end confdefs.h. */
27233 $ac_includes_default
27237 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
27244 rm -f conftest.$ac_objext
27245 if { (ac_try="$ac_compile"
27246 case "(($ac_try" in
27247 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27248 *) ac_try_echo
=$ac_try;;
27250 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27251 $as_echo "$ac_try_echo") >&5
27252 (eval "$ac_compile") 2>conftest.er1
27254 grep -v '^ *+' conftest.er1
>conftest.err
27256 cat conftest.err
>&5
27257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258 (exit $ac_status); } && {
27259 test -z "$ac_c_werror_flag" ||
27260 test ! -s conftest.err
27261 } && test -s conftest.
$ac_objext; then
27262 ac_hi
=$ac_mid; break
27264 $as_echo "$as_me: failed program was:" >&5
27265 sed 's/^/| /' conftest.
$ac_ext >&5
27267 ac_lo
=`expr $ac_mid + 1`
27268 if test $ac_lo -le $ac_mid; then
27272 ac_mid
=`expr 2 '*' $ac_mid + 1`
27275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27278 $as_echo "$as_me: failed program was:" >&5
27279 sed 's/^/| /' conftest.
$ac_ext >&5
27281 cat >conftest.
$ac_ext <<_ACEOF
27284 cat confdefs.h
>>conftest.
$ac_ext
27285 cat >>conftest.
$ac_ext <<_ACEOF
27286 /* end confdefs.h. */
27287 $ac_includes_default
27291 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) < 0)];
27298 rm -f conftest.
$ac_objext
27299 if { (ac_try
="$ac_compile"
27300 case "(($ac_try" in
27301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27302 *) ac_try_echo=$ac_try;;
27304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27305 $as_echo "$ac_try_echo") >&5
27306 (eval "$ac_compile") 2>conftest.er1
27308 grep -v '^ *+' conftest.er1 >conftest.err
27310 cat conftest.err >&5
27311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); } && {
27313 test -z "$ac_c_werror_flag" ||
27314 test ! -s conftest.err
27315 } && test -s conftest.$ac_objext; then
27318 cat >conftest.$ac_ext <<_ACEOF
27321 cat confdefs.h >>conftest.$ac_ext
27322 cat >>conftest.$ac_ext <<_ACEOF
27323 /* end confdefs.h. */
27324 $ac_includes_default
27328 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= $ac_mid)];
27335 rm -f conftest.$ac_objext
27336 if { (ac_try="$ac_compile"
27337 case "(($ac_try" in
27338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27339 *) ac_try_echo
=$ac_try;;
27341 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27342 $as_echo "$ac_try_echo") >&5
27343 (eval "$ac_compile") 2>conftest.er1
27345 grep -v '^ *+' conftest.er1
>conftest.err
27347 cat conftest.err
>&5
27348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27349 (exit $ac_status); } && {
27350 test -z "$ac_c_werror_flag" ||
27351 test ! -s conftest.err
27352 } && test -s conftest.
$ac_objext; then
27353 ac_lo
=$ac_mid; break
27355 $as_echo "$as_me: failed program was:" >&5
27356 sed 's/^/| /' conftest.
$ac_ext >&5
27358 ac_hi
=`expr '(' $ac_mid ')' - 1`
27359 if test $ac_mid -le $ac_hi; then
27363 ac_mid
=`expr 2 '*' $ac_mid`
27366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27369 $as_echo "$as_me: failed program was:" >&5
27370 sed 's/^/| /' conftest.
$ac_ext >&5
27375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27379 # Binary search between lo and hi bounds.
27380 while test "x$ac_lo" != "x$ac_hi"; do
27381 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27382 cat >conftest.
$ac_ext <<_ACEOF
27385 cat confdefs.h
>>conftest.
$ac_ext
27386 cat >>conftest.
$ac_ext <<_ACEOF
27387 /* end confdefs.h. */
27388 $ac_includes_default
27392 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
27399 rm -f conftest.
$ac_objext
27400 if { (ac_try
="$ac_compile"
27401 case "(($ac_try" in
27402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27403 *) ac_try_echo=$ac_try;;
27405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27406 $as_echo "$ac_try_echo") >&5
27407 (eval "$ac_compile") 2>conftest.er1
27409 grep -v '^ *+' conftest.er1 >conftest.err
27411 cat conftest.err >&5
27412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413 (exit $ac_status); } && {
27414 test -z "$ac_c_werror_flag" ||
27415 test ! -s conftest.err
27416 } && test -s conftest.$ac_objext; then
27419 $as_echo "$as_me: failed program was:" >&5
27420 sed 's/^/| /' conftest.$ac_ext >&5
27422 ac_lo=`expr '(' $ac_mid ')' + 1`
27425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27428 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
27429 '') if test "$ac_cv_type_intmax_t" = yes; then
27430 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27432 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(intmax_t
)
27433 See \
`config.log' for more details." >&5
27434 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
27435 See \`config.log
' for more details." >&2;}
27436 { (exit 77); exit 77; }; }; }
27438 ac_cv_sizeof_intmax_t=0
27442 cat >conftest.$ac_ext <<_ACEOF
27445 cat confdefs.h >>conftest.$ac_ext
27446 cat >>conftest.$ac_ext <<_ACEOF
27447 /* end confdefs.h. */
27448 $ac_includes_default
27449 static long int longval () { return (long int) (sizeof (intmax_t)); }
27450 static unsigned long int ulongval () { return (long int) (sizeof (intmax_t)); }
27452 #include <stdlib.h>
27457 FILE *f = fopen ("conftest.val", "w");
27460 if (((long int) (sizeof (intmax_t))) < 0)
27462 long int i = longval ();
27463 if (i != ((long int) (sizeof (intmax_t))))
27465 fprintf (f, "%ld", i);
27469 unsigned long int i = ulongval ();
27470 if (i != ((long int) (sizeof (intmax_t))))
27472 fprintf (f, "%lu", i);
27474 /* Do not output a trailing newline, as this causes \r\n confusion
27475 on some platforms. */
27476 return ferror (f) || fclose (f) != 0;
27482 rm -f conftest$ac_exeext
27483 if { (ac_try="$ac_link"
27484 case "(($ac_try" in
27485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27486 *) ac_try_echo=$ac_try;;
27488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27489 $as_echo "$ac_try_echo") >&5
27490 (eval "$ac_link") 2>&5
27492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27493 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
27494 { (case "(($ac_try" in
27495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27496 *) ac_try_echo=$ac_try;;
27498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27499 $as_echo "$ac_try_echo") >&5
27500 (eval "$ac_try") 2>&5
27502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503 (exit $ac_status); }; }; then
27504 ac_cv_sizeof_intmax_t=`cat conftest.val`
27506 $as_echo "$as_me: program exited with status $ac_status" >&5
27507 $as_echo "$as_me: failed program was:" >&5
27508 sed 's
/^
/|
/' conftest.$ac_ext >&5
27510 ( exit $ac_status )
27511 if test "$ac_cv_type_intmax_t" = yes; then
27512 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27513 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
27514 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
27515 See \`config.log
' for more details." >&5
27516 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
27517 See \`config.log' for more details.
" >&2;}
27518 { (exit 77); exit 77; }; }; }
27520 ac_cv_sizeof_intmax_t=0
27523 rm -rf conftest.dSYM
27524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27528 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof_intmax_t" >&5
27529 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
27533 cat >>confdefs.h <<_ACEOF
27534 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
27540 { $as_echo "$as_me:$LINENO: checking
for struct termios.c_line
" >&5
27541 $as_echo_n "checking
for struct termios.c_line...
" >&6; }
27542 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
27543 $as_echo_n "(cached
) " >&6
27545 cat >conftest.$ac_ext <<_ACEOF
27548 cat confdefs.h >>conftest.$ac_ext
27549 cat >>conftest.$ac_ext <<_ACEOF
27550 /* end confdefs.h. */
27552 #include <sys/types.h>
27553 #include <termios.h>
27559 static struct termios ac_aggr;
27560 if (ac_aggr.c_line)
27566 rm -f conftest.$ac_objext
27567 if { (ac_try="$ac_compile"
27568 case "(($ac_try" in
27569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27570 *) ac_try_echo=$ac_try;;
27572 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
27573 $as_echo "$ac_try_echo") >&5
27574 (eval "$ac_compile") 2>conftest.er1
27576 grep -v '^ *+' conftest.er1 >conftest.err
27578 cat conftest.err >&5
27579 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27580 (exit $ac_status); } && {
27581 test -z "$ac_c_werror_flag" ||
27582 test ! -s conftest.err
27583 } && test -s conftest.$ac_objext; then
27584 ac_cv_member_struct_termios_c_line=yes
27586 $as_echo "$as_me: failed program was
:" >&5
27587 sed 's/^/| /' conftest.$ac_ext >&5
27589 cat >conftest.$ac_ext <<_ACEOF
27592 cat confdefs.h >>conftest.$ac_ext
27593 cat >>conftest.$ac_ext <<_ACEOF
27594 /* end confdefs.h. */
27596 #include <sys/types.h>
27597 #include <termios.h>
27603 static struct termios ac_aggr;
27604 if (sizeof ac_aggr.c_line)
27610 rm -f conftest.$ac_objext
27611 if { (ac_try="$ac_compile"
27612 case "(($ac_try" in
27613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27614 *) ac_try_echo=$ac_try;;
27616 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
27617 $as_echo "$ac_try_echo") >&5
27618 (eval "$ac_compile") 2>conftest.er1
27620 grep -v '^ *+' conftest.er1 >conftest.err
27622 cat conftest.err >&5
27623 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27624 (exit $ac_status); } && {
27625 test -z "$ac_c_werror_flag" ||
27626 test ! -s conftest.err
27627 } && test -s conftest.$ac_objext; then
27628 ac_cv_member_struct_termios_c_line=yes
27630 $as_echo "$as_me: failed program was
:" >&5
27631 sed 's/^/| /' conftest.$ac_ext >&5
27633 ac_cv_member_struct_termios_c_line=no
27636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27641 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_termios_c_line" >&5
27642 $as_echo "$ac_cv_member_struct_termios_c_line" >&6; }
27643 if test "x
$ac_cv_member_struct_termios_c_line" = x""yes; then
27644 cat >>confdefs.h <<\_ACEOF
27645 #define TERMIOS_LDISC 1
27652 { $as_echo "$as_me:$LINENO: checking
for struct termio.c_line
" >&5
27653 $as_echo_n "checking
for struct termio.c_line...
" >&6; }
27654 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
27655 $as_echo_n "(cached
) " >&6
27657 cat >conftest.$ac_ext <<_ACEOF
27660 cat confdefs.h >>conftest.$ac_ext
27661 cat >>conftest.$ac_ext <<_ACEOF
27662 /* end confdefs.h. */
27664 #include <sys/types.h>
27665 #include <termio.h>
27671 static struct termio ac_aggr;
27672 if (ac_aggr.c_line)
27678 rm -f conftest.$ac_objext
27679 if { (ac_try="$ac_compile"
27680 case "(($ac_try" in
27681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27682 *) ac_try_echo=$ac_try;;
27684 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
27685 $as_echo "$ac_try_echo") >&5
27686 (eval "$ac_compile") 2>conftest.er1
27688 grep -v '^ *+' conftest.er1 >conftest.err
27690 cat conftest.err >&5
27691 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27692 (exit $ac_status); } && {
27693 test -z "$ac_c_werror_flag" ||
27694 test ! -s conftest.err
27695 } && test -s conftest.$ac_objext; then
27696 ac_cv_member_struct_termio_c_line=yes
27698 $as_echo "$as_me: failed program was
:" >&5
27699 sed 's/^/| /' conftest.$ac_ext >&5
27701 cat >conftest.$ac_ext <<_ACEOF
27704 cat confdefs.h >>conftest.$ac_ext
27705 cat >>conftest.$ac_ext <<_ACEOF
27706 /* end confdefs.h. */
27708 #include <sys/types.h>
27709 #include <termio.h>
27715 static struct termio ac_aggr;
27716 if (sizeof ac_aggr.c_line)
27722 rm -f conftest.$ac_objext
27723 if { (ac_try="$ac_compile"
27724 case "(($ac_try" in
27725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27726 *) ac_try_echo=$ac_try;;
27728 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
27729 $as_echo "$ac_try_echo") >&5
27730 (eval "$ac_compile") 2>conftest.er1
27732 grep -v '^ *+' conftest.er1 >conftest.err
27734 cat conftest.err >&5
27735 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27736 (exit $ac_status); } && {
27737 test -z "$ac_c_werror_flag" ||
27738 test ! -s conftest.err
27739 } && test -s conftest.$ac_objext; then
27740 ac_cv_member_struct_termio_c_line=yes
27742 $as_echo "$as_me: failed program was
:" >&5
27743 sed 's/^/| /' conftest.$ac_ext >&5
27745 ac_cv_member_struct_termio_c_line=no
27748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27753 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_termio_c_line" >&5
27754 $as_echo "$ac_cv_member_struct_termio_c_line" >&6; }
27755 if test "x
$ac_cv_member_struct_termio_c_line" = x""yes; then
27756 cat >>confdefs.h <<\_ACEOF
27757 #define TERMIO_LDISC 1
27764 { $as_echo "$as_me:$LINENO: checking
for struct dirent.d_ino
" >&5
27765 $as_echo_n "checking
for struct dirent.d_ino...
" >&6; }
27766 if test "${bash_cv_dirent_has_dino+set}" = set; then
27767 $as_echo_n "(cached
) " >&6
27769 cat >conftest.$ac_ext <<_ACEOF
27772 cat confdefs.h >>conftest.$ac_ext
27773 cat >>conftest.$ac_ext <<_ACEOF
27774 /* end confdefs.h. */
27777 #include <sys/types.h>
27778 #ifdef HAVE_UNISTD_H
27779 # include <unistd.h>
27780 #endif /* HAVE_UNISTD_H */
27781 #if defined(HAVE_DIRENT_H)
27782 # include <dirent.h>
27784 # define dirent direct
27785 # ifdef HAVE_SYS_NDIR_H
27786 # include <sys/ndir.h>
27787 # endif /* SYSNDIR */
27788 # ifdef HAVE_SYS_DIR_H
27789 # include <sys/dir.h>
27790 # endif /* SYSDIR */
27791 # ifdef HAVE_NDIR_H
27794 #endif /* HAVE_DIRENT_H */
27800 struct dirent d; int z; z = d.d_ino;
27806 rm -f conftest.$ac_objext
27807 if { (ac_try="$ac_compile"
27808 case "(($ac_try" in
27809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27810 *) ac_try_echo=$ac_try;;
27812 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
27813 $as_echo "$ac_try_echo") >&5
27814 (eval "$ac_compile") 2>conftest.er1
27816 grep -v '^ *+' conftest.er1 >conftest.err
27818 cat conftest.err >&5
27819 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27820 (exit $ac_status); } && {
27821 test -z "$ac_c_werror_flag" ||
27822 test ! -s conftest.err
27823 } && test -s conftest.$ac_objext; then
27824 bash_cv_dirent_has_dino=yes
27826 $as_echo "$as_me: failed program was
:" >&5
27827 sed 's/^/| /' conftest.$ac_ext >&5
27829 bash_cv_dirent_has_dino=no
27832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27835 { $as_echo "$as_me:$LINENO: result
: $bash_cv_dirent_has_dino" >&5
27836 $as_echo "$bash_cv_dirent_has_dino" >&6; }
27837 if test $bash_cv_dirent_has_dino = yes; then
27838 cat >>confdefs.h <<\_ACEOF
27839 #define HAVE_STRUCT_DIRENT_D_INO 1
27845 { $as_echo "$as_me:$LINENO: checking
for struct dirent.d_fileno
" >&5
27846 $as_echo_n "checking
for struct dirent.d_fileno...
" >&6; }
27847 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
27848 $as_echo_n "(cached
) " >&6
27850 cat >conftest.$ac_ext <<_ACEOF
27853 cat confdefs.h >>conftest.$ac_ext
27854 cat >>conftest.$ac_ext <<_ACEOF
27855 /* end confdefs.h. */
27858 #include <sys/types.h>
27859 #ifdef HAVE_UNISTD_H
27860 # include <unistd.h>
27861 #endif /* HAVE_UNISTD_H */
27862 #if defined(HAVE_DIRENT_H)
27863 # include <dirent.h>
27865 # define dirent direct
27866 # ifdef HAVE_SYS_NDIR_H
27867 # include <sys/ndir.h>
27868 # endif /* SYSNDIR */
27869 # ifdef HAVE_SYS_DIR_H
27870 # include <sys/dir.h>
27871 # endif /* SYSDIR */
27872 # ifdef HAVE_NDIR_H
27875 #endif /* HAVE_DIRENT_H */
27881 struct dirent d; int z; z = d.d_fileno;
27887 rm -f conftest.$ac_objext
27888 if { (ac_try="$ac_compile"
27889 case "(($ac_try" in
27890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27891 *) ac_try_echo=$ac_try;;
27893 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
27894 $as_echo "$ac_try_echo") >&5
27895 (eval "$ac_compile") 2>conftest.er1
27897 grep -v '^ *+' conftest.er1 >conftest.err
27899 cat conftest.err >&5
27900 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27901 (exit $ac_status); } && {
27902 test -z "$ac_c_werror_flag" ||
27903 test ! -s conftest.err
27904 } && test -s conftest.$ac_objext; then
27905 bash_cv_dirent_has_d_fileno=yes
27907 $as_echo "$as_me: failed program was
:" >&5
27908 sed 's/^/| /' conftest.$ac_ext >&5
27910 bash_cv_dirent_has_d_fileno=no
27913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27916 { $as_echo "$as_me:$LINENO: result
: $bash_cv_dirent_has_d_fileno" >&5
27917 $as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
27918 if test $bash_cv_dirent_has_d_fileno = yes; then
27919 cat >>confdefs.h <<\_ACEOF
27920 #define HAVE_STRUCT_DIRENT_D_FILENO 1
27926 { $as_echo "$as_me:$LINENO: checking
for struct dirent.d_namlen
" >&5
27927 $as_echo_n "checking
for struct dirent.d_namlen...
" >&6; }
27928 if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
27929 $as_echo_n "(cached
) " >&6
27931 cat >conftest.$ac_ext <<_ACEOF
27934 cat confdefs.h >>conftest.$ac_ext
27935 cat >>conftest.$ac_ext <<_ACEOF
27936 /* end confdefs.h. */
27939 #include <sys/types.h>
27940 #ifdef HAVE_UNISTD_H
27941 # include <unistd.h>
27942 #endif /* HAVE_UNISTD_H */
27943 #if defined(HAVE_DIRENT_H)
27944 # include <dirent.h>
27946 # define dirent direct
27947 # ifdef HAVE_SYS_NDIR_H
27948 # include <sys/ndir.h>
27949 # endif /* SYSNDIR */
27950 # ifdef HAVE_SYS_DIR_H
27951 # include <sys/dir.h>
27952 # endif /* SYSDIR */
27953 # ifdef HAVE_NDIR_H
27956 #endif /* HAVE_DIRENT_H */
27962 struct dirent d; int z; z = d.d_namlen;
27968 rm -f conftest.$ac_objext
27969 if { (ac_try="$ac_compile"
27970 case "(($ac_try" in
27971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27972 *) ac_try_echo=$ac_try;;
27974 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
27975 $as_echo "$ac_try_echo") >&5
27976 (eval "$ac_compile") 2>conftest.er1
27978 grep -v '^ *+' conftest.er1 >conftest.err
27980 cat conftest.err >&5
27981 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27982 (exit $ac_status); } && {
27983 test -z "$ac_c_werror_flag" ||
27984 test ! -s conftest.err
27985 } && test -s conftest.$ac_objext; then
27986 bash_cv_dirent_has_d_namlen=yes
27988 $as_echo "$as_me: failed program was
:" >&5
27989 sed 's/^/| /' conftest.$ac_ext >&5
27991 bash_cv_dirent_has_d_namlen=no
27994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27997 { $as_echo "$as_me:$LINENO: result
: $bash_cv_dirent_has_d_namlen" >&5
27998 $as_echo "$bash_cv_dirent_has_d_namlen" >&6; }
27999 if test $bash_cv_dirent_has_d_namlen = yes; then
28000 cat >>confdefs.h <<\_ACEOF
28001 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
28006 { $as_echo "$as_me:$LINENO: checking
for struct winsize
in sys
/ioctl.h and termios.h
" >&5
28007 $as_echo_n "checking
for struct winsize
in sys
/ioctl.h and termios.h...
" >&6; }
28008 if test "${bash_cv_struct_winsize_header+set}" = set; then
28009 $as_echo_n "(cached
) " >&6
28011 cat >conftest.$ac_ext <<_ACEOF
28014 cat confdefs.h >>conftest.$ac_ext
28015 cat >>conftest.$ac_ext <<_ACEOF
28016 /* end confdefs.h. */
28017 #include <sys/types.h>
28018 #include <sys/ioctl.h>
28027 rm -f conftest.$ac_objext
28028 if { (ac_try="$ac_compile"
28029 case "(($ac_try" in
28030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28031 *) ac_try_echo=$ac_try;;
28033 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
28034 $as_echo "$ac_try_echo") >&5
28035 (eval "$ac_compile") 2>conftest.er1
28037 grep -v '^ *+' conftest.er1 >conftest.err
28039 cat conftest.err >&5
28040 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28041 (exit $ac_status); } && {
28042 test -z "$ac_c_werror_flag" ||
28043 test ! -s conftest.err
28044 } && test -s conftest.$ac_objext; then
28045 bash_cv_struct_winsize_header=ioctl_h
28047 $as_echo "$as_me: failed program was
:" >&5
28048 sed 's/^/| /' conftest.$ac_ext >&5
28050 cat >conftest.$ac_ext <<_ACEOF
28053 cat confdefs.h >>conftest.$ac_ext
28054 cat >>conftest.$ac_ext <<_ACEOF
28055 /* end confdefs.h. */
28056 #include <sys/types.h>
28057 #include <termios.h>
28066 rm -f conftest.$ac_objext
28067 if { (ac_try="$ac_compile"
28068 case "(($ac_try" in
28069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28070 *) ac_try_echo=$ac_try;;
28072 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
28073 $as_echo "$ac_try_echo") >&5
28074 (eval "$ac_compile") 2>conftest.er1
28076 grep -v '^ *+' conftest.er1 >conftest.err
28078 cat conftest.err >&5
28079 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28080 (exit $ac_status); } && {
28081 test -z "$ac_c_werror_flag" ||
28082 test ! -s conftest.err
28083 } && test -s conftest.$ac_objext; then
28084 bash_cv_struct_winsize_header=termios_h
28086 $as_echo "$as_me: failed program was
:" >&5
28087 sed 's/^/| /' conftest.$ac_ext >&5
28089 bash_cv_struct_winsize_header=other
28092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28099 if test $bash_cv_struct_winsize_header = ioctl_h; then
28100 { $as_echo "$as_me:$LINENO: result
: sys
/ioctl.h
" >&5
28101 $as_echo "sys
/ioctl.h
" >&6; }
28102 cat >>confdefs.h <<\_ACEOF
28103 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
28106 elif test $bash_cv_struct_winsize_header = termios_h; then
28107 { $as_echo "$as_me:$LINENO: result
: termios.h
" >&5
28108 $as_echo "termios.h
" >&6; }
28109 cat >>confdefs.h <<\_ACEOF
28110 #define STRUCT_WINSIZE_IN_TERMIOS 1
28114 { $as_echo "$as_me:$LINENO: result
: not found
" >&5
28115 $as_echo "not found
" >&6; }
28118 { $as_echo "$as_me:$LINENO: checking
for struct timeval
in sys
/time.h and
time.h
" >&5
28119 $as_echo_n "checking
for struct timeval
in sys
/time.h and
time.h...
" >&6; }
28120 if test "${bash_cv_struct_timeval+set}" = set; then
28121 $as_echo_n "(cached
) " >&6
28124 cat >conftest.$ac_ext <<_ACEOF
28127 cat confdefs.h >>conftest.$ac_ext
28128 cat >>conftest.$ac_ext <<_ACEOF
28129 /* end confdefs.h. */
28130 #include <sys/time.h>
28133 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
28134 $EGREP "struct timeval
" >/dev/null 2>&1; then
28135 bash_cv_struct_timeval=yes
28137 cat >conftest.$ac_ext <<_ACEOF
28140 cat confdefs.h >>conftest.$ac_ext
28141 cat >>conftest.$ac_ext <<_ACEOF
28142 /* end confdefs.h. */
28146 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
28147 $EGREP "struct timeval
" >/dev/null 2>&1; then
28148 bash_cv_struct_timeval=yes
28150 bash_cv_struct_timeval=no
28160 { $as_echo "$as_me:$LINENO: result
: $bash_cv_struct_timeval" >&5
28161 $as_echo "$bash_cv_struct_timeval" >&6; }
28162 if test $bash_cv_struct_timeval = yes; then
28163 cat >>confdefs.h <<\_ACEOF
28164 #define HAVE_TIMEVAL 1
28169 { $as_echo "$as_me:$LINENO: checking
for struct stat.st_blocks
" >&5
28170 $as_echo_n "checking
for struct stat.st_blocks...
" >&6; }
28171 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
28172 $as_echo_n "(cached
) " >&6
28174 cat >conftest.$ac_ext <<_ACEOF
28177 cat confdefs.h >>conftest.$ac_ext
28178 cat >>conftest.$ac_ext <<_ACEOF
28179 /* end confdefs.h. */
28180 $ac_includes_default
28184 static struct stat ac_aggr;
28185 if (ac_aggr.st_blocks)
28191 rm -f conftest.$ac_objext
28192 if { (ac_try="$ac_compile"
28193 case "(($ac_try" in
28194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28195 *) ac_try_echo=$ac_try;;
28197 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
28198 $as_echo "$ac_try_echo") >&5
28199 (eval "$ac_compile") 2>conftest.er1
28201 grep -v '^ *+' conftest.er1 >conftest.err
28203 cat conftest.err >&5
28204 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28205 (exit $ac_status); } && {
28206 test -z "$ac_c_werror_flag" ||
28207 test ! -s conftest.err
28208 } && test -s conftest.$ac_objext; then
28209 ac_cv_member_struct_stat_st_blocks=yes
28211 $as_echo "$as_me: failed program was
:" >&5
28212 sed 's/^/| /' conftest.$ac_ext >&5
28214 cat >conftest.$ac_ext <<_ACEOF
28217 cat confdefs.h >>conftest.$ac_ext
28218 cat >>conftest.$ac_ext <<_ACEOF
28219 /* end confdefs.h. */
28220 $ac_includes_default
28224 static struct stat ac_aggr;
28225 if (sizeof ac_aggr.st_blocks)
28231 rm -f conftest.$ac_objext
28232 if { (ac_try="$ac_compile"
28233 case "(($ac_try" in
28234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28235 *) ac_try_echo=$ac_try;;
28237 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
28238 $as_echo "$ac_try_echo") >&5
28239 (eval "$ac_compile") 2>conftest.er1
28241 grep -v '^ *+' conftest.er1 >conftest.err
28243 cat conftest.err >&5
28244 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28245 (exit $ac_status); } && {
28246 test -z "$ac_c_werror_flag" ||
28247 test ! -s conftest.err
28248 } && test -s conftest.$ac_objext; then
28249 ac_cv_member_struct_stat_st_blocks=yes
28251 $as_echo "$as_me: failed program was
:" >&5
28252 sed 's/^/| /' conftest.$ac_ext >&5
28254 ac_cv_member_struct_stat_st_blocks=no
28257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28262 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_stat_st_blocks" >&5
28263 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
28264 if test "x
$ac_cv_member_struct_stat_st_blocks" = x""yes; then
28266 cat >>confdefs.h <<_ACEOF
28267 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
28273 { $as_echo "$as_me:$LINENO: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
28274 $as_echo_n "checking whether struct tm is
in sys
/time.h or
time.h...
" >&6; }
28275 if test "${ac_cv_struct_tm+set}" = set; then
28276 $as_echo_n "(cached
) " >&6
28278 cat >conftest.$ac_ext <<_ACEOF
28281 cat confdefs.h >>conftest.$ac_ext
28282 cat >>conftest.$ac_ext <<_ACEOF
28283 /* end confdefs.h. */
28284 #include <sys/types.h>
28291 int *p = &tm.tm_sec;
28297 rm -f conftest.$ac_objext
28298 if { (ac_try="$ac_compile"
28299 case "(($ac_try" in
28300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28301 *) ac_try_echo=$ac_try;;
28303 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
28304 $as_echo "$ac_try_echo") >&5
28305 (eval "$ac_compile") 2>conftest.er1
28307 grep -v '^ *+' conftest.er1 >conftest.err
28309 cat conftest.err >&5
28310 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28311 (exit $ac_status); } && {
28312 test -z "$ac_c_werror_flag" ||
28313 test ! -s conftest.err
28314 } && test -s conftest.$ac_objext; then
28315 ac_cv_struct_tm=time.h
28317 $as_echo "$as_me: failed program was
:" >&5
28318 sed 's/^/| /' conftest.$ac_ext >&5
28320 ac_cv_struct_tm=sys/time.h
28323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28325 { $as_echo "$as_me:$LINENO: result
: $ac_cv_struct_tm" >&5
28326 $as_echo "$ac_cv_struct_tm" >&6; }
28327 if test $ac_cv_struct_tm = sys/time.h; then
28329 cat >>confdefs.h <<\_ACEOF
28330 #define TM_IN_SYS_TIME 1
28335 { $as_echo "$as_me:$LINENO: checking
for struct tm.tm_zone
" >&5
28336 $as_echo_n "checking
for struct tm.tm_zone...
" >&6; }
28337 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
28338 $as_echo_n "(cached
) " >&6
28340 cat >conftest.$ac_ext <<_ACEOF
28343 cat confdefs.h >>conftest.$ac_ext
28344 cat >>conftest.$ac_ext <<_ACEOF
28345 /* end confdefs.h. */
28346 #include <sys/types.h>
28347 #include <$ac_cv_struct_tm>
28353 static struct tm ac_aggr;
28354 if (ac_aggr.tm_zone)
28360 rm -f conftest.$ac_objext
28361 if { (ac_try="$ac_compile"
28362 case "(($ac_try" in
28363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28364 *) ac_try_echo=$ac_try;;
28366 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
28367 $as_echo "$ac_try_echo") >&5
28368 (eval "$ac_compile") 2>conftest.er1
28370 grep -v '^ *+' conftest.er1 >conftest.err
28372 cat conftest.err >&5
28373 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28374 (exit $ac_status); } && {
28375 test -z "$ac_c_werror_flag" ||
28376 test ! -s conftest.err
28377 } && test -s conftest.$ac_objext; then
28378 ac_cv_member_struct_tm_tm_zone=yes
28380 $as_echo "$as_me: failed program was
:" >&5
28381 sed 's/^/| /' conftest.$ac_ext >&5
28383 cat >conftest.$ac_ext <<_ACEOF
28386 cat confdefs.h >>conftest.$ac_ext
28387 cat >>conftest.$ac_ext <<_ACEOF
28388 /* end confdefs.h. */
28389 #include <sys/types.h>
28390 #include <$ac_cv_struct_tm>
28396 static struct tm ac_aggr;
28397 if (sizeof ac_aggr.tm_zone)
28403 rm -f conftest.$ac_objext
28404 if { (ac_try="$ac_compile"
28405 case "(($ac_try" in
28406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28407 *) ac_try_echo=$ac_try;;
28409 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
28410 $as_echo "$ac_try_echo") >&5
28411 (eval "$ac_compile") 2>conftest.er1
28413 grep -v '^ *+' conftest.er1 >conftest.err
28415 cat conftest.err >&5
28416 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28417 (exit $ac_status); } && {
28418 test -z "$ac_c_werror_flag" ||
28419 test ! -s conftest.err
28420 } && test -s conftest.$ac_objext; then
28421 ac_cv_member_struct_tm_tm_zone=yes
28423 $as_echo "$as_me: failed program was
:" >&5
28424 sed 's/^/| /' conftest.$ac_ext >&5
28426 ac_cv_member_struct_tm_tm_zone=no
28429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28434 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_tm_tm_zone" >&5
28435 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
28436 if test "x
$ac_cv_member_struct_tm_tm_zone" = x""yes; then
28438 cat >>confdefs.h <<_ACEOF
28439 #define HAVE_STRUCT_TM_TM_ZONE 1
28445 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
28447 cat >>confdefs.h <<\_ACEOF
28448 #define HAVE_TM_ZONE 1
28452 { $as_echo "$as_me:$LINENO: checking whether tzname is declared
" >&5
28453 $as_echo_n "checking whether tzname is declared...
" >&6; }
28454 if test "${ac_cv_have_decl_tzname+set}" = set; then
28455 $as_echo_n "(cached
) " >&6
28457 cat >conftest.$ac_ext <<_ACEOF
28460 cat confdefs.h >>conftest.$ac_ext
28461 cat >>conftest.$ac_ext <<_ACEOF
28462 /* end confdefs.h. */
28476 rm -f conftest.$ac_objext
28477 if { (ac_try="$ac_compile"
28478 case "(($ac_try" in
28479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28480 *) ac_try_echo=$ac_try;;
28482 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
28483 $as_echo "$ac_try_echo") >&5
28484 (eval "$ac_compile") 2>conftest.er1
28486 grep -v '^ *+' conftest.er1 >conftest.err
28488 cat conftest.err >&5
28489 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28490 (exit $ac_status); } && {
28491 test -z "$ac_c_werror_flag" ||
28492 test ! -s conftest.err
28493 } && test -s conftest.$ac_objext; then
28494 ac_cv_have_decl_tzname=yes
28496 $as_echo "$as_me: failed program was
:" >&5
28497 sed 's/^/| /' conftest.$ac_ext >&5
28499 ac_cv_have_decl_tzname=no
28502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28504 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_tzname" >&5
28505 $as_echo "$ac_cv_have_decl_tzname" >&6; }
28506 if test "x
$ac_cv_have_decl_tzname" = x""yes; then
28508 cat >>confdefs.h <<_ACEOF
28509 #define HAVE_DECL_TZNAME 1
28514 cat >>confdefs.h <<_ACEOF
28515 #define HAVE_DECL_TZNAME 0
28522 { $as_echo "$as_me:$LINENO: checking
for tzname
" >&5
28523 $as_echo_n "checking
for tzname...
" >&6; }
28524 if test "${ac_cv_var_tzname+set}" = set; then
28525 $as_echo_n "(cached
) " >&6
28527 cat >conftest.$ac_ext <<_ACEOF
28530 cat confdefs.h >>conftest.$ac_ext
28531 cat >>conftest.$ac_ext <<_ACEOF
28532 /* end confdefs.h. */
28534 #if !HAVE_DECL_TZNAME
28535 extern char *tzname[];
28541 return tzname[0][0];
28546 rm -f conftest.$ac_objext conftest$ac_exeext
28547 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
28556 grep -v '^ *+' conftest.er1 >conftest.err
28558 cat conftest.err >&5
28559 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28560 (exit $ac_status); } && {
28561 test -z "$ac_c_werror_flag" ||
28562 test ! -s conftest.err
28563 } && test -s conftest$ac_exeext && {
28564 test "$cross_compiling" = yes ||
28565 $as_test_x conftest$ac_exeext
28567 ac_cv_var_tzname=yes
28569 $as_echo "$as_me: failed program was
:" >&5
28570 sed 's/^/| /' conftest.$ac_ext >&5
28572 ac_cv_var_tzname=no
28575 rm -rf conftest.dSYM
28576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28577 conftest$ac_exeext conftest.$ac_ext
28579 { $as_echo "$as_me:$LINENO: result
: $ac_cv_var_tzname" >&5
28580 $as_echo "$ac_cv_var_tzname" >&6; }
28581 if test $ac_cv_var_tzname = yes; then
28583 cat >>confdefs.h <<\_ACEOF
28584 #define HAVE_TZNAME 1
28590 { $as_echo "$as_me:$LINENO: checking
for struct timezone
in sys
/time.h and
time.h
" >&5
28591 $as_echo_n "checking
for struct timezone
in sys
/time.h and
time.h...
" >&6; }
28592 if test "${bash_cv_struct_timezone+set}" = set; then
28593 $as_echo_n "(cached
) " >&6
28596 cat >conftest.$ac_ext <<_ACEOF
28599 cat confdefs.h >>conftest.$ac_ext
28600 cat >>conftest.$ac_ext <<_ACEOF
28601 /* end confdefs.h. */
28602 #include <sys/time.h>
28605 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
28606 $EGREP "struct timezone
" >/dev/null 2>&1; then
28607 bash_cv_struct_timezone=yes
28609 cat >conftest.$ac_ext <<_ACEOF
28612 cat confdefs.h >>conftest.$ac_ext
28613 cat >>conftest.$ac_ext <<_ACEOF
28614 /* end confdefs.h. */
28618 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
28619 $EGREP "struct timezone
" >/dev/null 2>&1; then
28620 bash_cv_struct_timezone=yes
28622 bash_cv_struct_timezone=no
28632 { $as_echo "$as_me:$LINENO: result
: $bash_cv_struct_timezone" >&5
28633 $as_echo "$bash_cv_struct_timezone" >&6; }
28634 if test $bash_cv_struct_timezone = yes; then
28635 cat >>confdefs.h <<\_ACEOF
28636 #define HAVE_STRUCT_TIMEZONE 1
28642 { $as_echo "$as_me:$LINENO: checking
for offset of
exit status
in return status from
wait" >&5
28643 $as_echo_n "checking
for offset of
exit status
in return status from
wait...
" >&6; }
28644 if test "${bash_cv_wexitstatus_offset+set}" = set; then
28645 $as_echo_n "(cached
) " >&6
28647 if test "$cross_compiling" = yes; then
28648 { $as_echo "$as_me:$LINENO: WARNING
: cannot check WEXITSTATUS offset
if cross compiling
-- defaulting to
0" >&5
28649 $as_echo "$as_me: WARNING
: cannot check WEXITSTATUS offset
if cross compiling
-- defaulting to
0" >&2;}
28650 bash_cv_wexitstatus_offset=0
28653 cat >conftest.$ac_ext <<_ACEOF
28655 #include <stdlib.h>
28656 #include <unistd.h>
28658 #include <sys/wait.h>
28672 /* wait for the process */
28678 for (i = 0; i < (sizeof(s) - 8); i++)
28680 n = (s >> i) & 0xff;
28689 rm -f conftest$ac_exeext
28690 if { (ac_try="$ac_link"
28691 case "(($ac_try" in
28692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28693 *) ac_try_echo=$ac_try;;
28695 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
28696 $as_echo "$ac_try_echo") >&5
28697 (eval "$ac_link") 2>&5
28699 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28701 { (case "(($ac_try" in
28702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28703 *) ac_try_echo=$ac_try;;
28705 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
28706 $as_echo "$ac_try_echo") >&5
28707 (eval "$ac_try") 2>&5
28709 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28710 (exit $ac_status); }; }; then
28711 bash_cv_wexitstatus_offset=0
28713 $as_echo "$as_me: program exited with status
$ac_status" >&5
28714 $as_echo "$as_me: failed program was
:" >&5
28715 sed 's/^/| /' conftest.$ac_ext >&5
28717 ( exit $ac_status )
28718 bash_cv_wexitstatus_offset=$?
28720 rm -rf conftest.dSYM
28721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28727 if test "$bash_cv_wexitstatus_offset" -gt 32 ; then
28728 { $as_echo "$as_me:$LINENO: WARNING
: bad
exit status from
test program
-- defaulting to
0" >&5
28729 $as_echo "$as_me: WARNING
: bad
exit status from
test program
-- defaulting to
0" >&2;}
28730 bash_cv_wexitstatus_offset=0
28732 { $as_echo "$as_me:$LINENO: result
: $bash_cv_wexitstatus_offset" >&5
28733 $as_echo "$bash_cv_wexitstatus_offset" >&6; }
28735 cat >>confdefs.h <<_ACEOF
28736 #define WEXITSTATUS_OFFSET $bash_cv_wexitstatus_offset
28741 { $as_echo "$as_me:$LINENO: checking
for the existence of strsignal
" >&5
28742 $as_echo_n "checking
for the existence of strsignal...
" >&6; }
28743 if test "${bash_cv_have_strsignal+set}" = set; then
28744 $as_echo_n "(cached
) " >&6
28746 cat >conftest.$ac_ext <<_ACEOF
28749 cat confdefs.h >>conftest.$ac_ext
28750 cat >>conftest.$ac_ext <<_ACEOF
28751 /* end confdefs.h. */
28752 #include <sys/types.h>
28753 #include <signal.h>
28757 char *s = (char *)strsignal(2);
28762 rm -f conftest.$ac_objext conftest$ac_exeext
28763 if { (ac_try="$ac_link"
28764 case "(($ac_try" in
28765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28766 *) ac_try_echo=$ac_try;;
28768 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
28769 $as_echo "$ac_try_echo") >&5
28770 (eval "$ac_link") 2>conftest.er1
28772 grep -v '^ *+' conftest.er1 >conftest.err
28774 cat conftest.err >&5
28775 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28776 (exit $ac_status); } && {
28777 test -z "$ac_c_werror_flag" ||
28778 test ! -s conftest.err
28779 } && test -s conftest$ac_exeext && {
28780 test "$cross_compiling" = yes ||
28781 $as_test_x conftest$ac_exeext
28783 bash_cv_have_strsignal=yes
28785 $as_echo "$as_me: failed program was
:" >&5
28786 sed 's/^/| /' conftest.$ac_ext >&5
28788 bash_cv_have_strsignal=no
28791 rm -rf conftest.dSYM
28792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28793 conftest$ac_exeext conftest.$ac_ext
28796 { $as_echo "$as_me:$LINENO: result
: $bash_cv_have_strsignal" >&5
28797 $as_echo "$bash_cv_have_strsignal" >&6; }
28798 if test $bash_cv_have_strsignal = yes; then
28799 cat >>confdefs.h <<\_ACEOF
28800 #define HAVE_STRSIGNAL 1
28805 { $as_echo "$as_me:$LINENO: checking
if opendir
() opens non-directories
" >&5
28806 $as_echo_n "checking
if opendir
() opens non-directories...
" >&6; }
28807 if test "${bash_cv_opendir_not_robust+set}" = set; then
28808 $as_echo_n "(cached
) " >&6
28810 if test "$cross_compiling" = yes; then
28811 { $as_echo "$as_me:$LINENO: WARNING
: cannot check opendir
if cross compiling
-- defaulting to no
" >&5
28812 $as_echo "$as_me: WARNING
: cannot check opendir
if cross compiling
-- defaulting to no
" >&2;}
28813 bash_cv_opendir_not_robust=no
28816 cat >conftest.$ac_ext <<_ACEOF
28819 cat confdefs.h >>conftest.$ac_ext
28820 cat >>conftest.$ac_ext <<_ACEOF
28821 /* end confdefs.h. */
28824 #include <sys/types.h>
28826 #ifdef HAVE_UNISTD_H
28827 # include <unistd.h>
28828 #endif /* HAVE_UNISTD_H */
28829 #if defined(HAVE_DIRENT_H)
28830 # include <dirent.h>
28832 # define dirent direct
28833 # ifdef HAVE_SYS_NDIR_H
28834 # include <sys/ndir.h>
28835 # endif /* SYSNDIR */
28836 # ifdef HAVE_SYS_DIR_H
28837 # include <sys/dir.h>
28838 # endif /* SYSDIR */
28839 # ifdef HAVE_NDIR_H
28842 #endif /* HAVE_DIRENT_H */
28847 err = mkdir("bash-aclocal
", 0700);
28852 unlink("bash-aclocal
/not_a_directory
");
28853 fd = open("bash-aclocal
/not_a_directory
", O_WRONLY|O_CREAT|O_EXCL, 0666);
28854 write(fd, "\n", 1);
28856 dir = opendir("bash-aclocal
/not_a_directory
");
28857 unlink("bash-aclocal
/not_a_directory
");
28858 rmdir("bash-aclocal
");
28862 rm -f conftest$ac_exeext
28863 if { (ac_try="$ac_link"
28864 case "(($ac_try" in
28865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28866 *) ac_try_echo=$ac_try;;
28868 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
28869 $as_echo "$ac_try_echo") >&5
28870 (eval "$ac_link") 2>&5
28872 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28874 { (case "(($ac_try" in
28875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28876 *) ac_try_echo=$ac_try;;
28878 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
28879 $as_echo "$ac_try_echo") >&5
28880 (eval "$ac_try") 2>&5
28882 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28883 (exit $ac_status); }; }; then
28884 bash_cv_opendir_not_robust=yes
28886 $as_echo "$as_me: program exited with status
$ac_status" >&5
28887 $as_echo "$as_me: failed program was
:" >&5
28888 sed 's/^/| /' conftest.$ac_ext >&5
28890 ( exit $ac_status )
28891 bash_cv_opendir_not_robust=no
28893 rm -rf conftest.dSYM
28894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28900 { $as_echo "$as_me:$LINENO: result
: $bash_cv_opendir_not_robust" >&5
28901 $as_echo "$bash_cv_opendir_not_robust" >&6; }
28902 if test $bash_cv_opendir_not_robust = yes; then
28903 cat >>confdefs.h <<\_ACEOF
28904 #define OPENDIR_NOT_ROBUST 1
28909 { $as_echo "$as_me:$LINENO: checking whether
ulimit can substitute
for getdtablesize
" >&5
28910 $as_echo_n "checking whether
ulimit can substitute
for getdtablesize...
" >&6; }
28911 if test "${bash_cv_ulimit_maxfds+set}" = set; then
28912 $as_echo_n "(cached
) " >&6
28914 if test "$cross_compiling" = yes; then
28915 { $as_echo "$as_me:$LINENO: WARNING
: cannot check
ulimit if cross compiling
-- defaulting to no
" >&5
28916 $as_echo "$as_me: WARNING
: cannot check
ulimit if cross compiling
-- defaulting to no
" >&2;}
28917 bash_cv_ulimit_maxfds=no
28920 cat >conftest.$ac_ext <<_ACEOF
28923 cat confdefs.h >>conftest.$ac_ext
28924 cat >>conftest.$ac_ext <<_ACEOF
28925 /* end confdefs.h. */
28929 long maxfds = ulimit(4, 0L);
28930 exit (maxfds == -1L);
28934 rm -f conftest$ac_exeext
28935 if { (ac_try="$ac_link"
28936 case "(($ac_try" in
28937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28938 *) ac_try_echo=$ac_try;;
28940 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
28941 $as_echo "$ac_try_echo") >&5
28942 (eval "$ac_link") 2>&5
28944 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28946 { (case "(($ac_try" in
28947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28948 *) ac_try_echo=$ac_try;;
28950 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
28951 $as_echo "$ac_try_echo") >&5
28952 (eval "$ac_try") 2>&5
28954 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28955 (exit $ac_status); }; }; then
28956 bash_cv_ulimit_maxfds=yes
28958 $as_echo "$as_me: program exited with status
$ac_status" >&5
28959 $as_echo "$as_me: failed program was
:" >&5
28960 sed 's/^/| /' conftest.$ac_ext >&5
28962 ( exit $ac_status )
28963 bash_cv_ulimit_maxfds=no
28965 rm -rf conftest.dSYM
28966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28972 { $as_echo "$as_me:$LINENO: result
: $bash_cv_ulimit_maxfds" >&5
28973 $as_echo "$bash_cv_ulimit_maxfds" >&6; }
28974 if test $bash_cv_ulimit_maxfds = yes; then
28975 cat >>confdefs.h <<\_ACEOF
28976 #define ULIMIT_MAXFDS 1
28998 { $as_echo "$as_me:$LINENO: checking whether fpurge is declared
" >&5
28999 $as_echo_n "checking whether fpurge is declared...
" >&6; }
29000 if test "${ac_cv_have_decl_fpurge+set}" = set; then
29001 $as_echo_n "(cached
) " >&6
29003 cat >conftest.$ac_ext <<_ACEOF
29006 cat confdefs.h >>conftest.$ac_ext
29007 cat >>conftest.$ac_ext <<_ACEOF
29008 /* end confdefs.h. */
29022 rm -f conftest.$ac_objext
29023 if { (ac_try="$ac_compile"
29024 case "(($ac_try" in
29025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29026 *) ac_try_echo=$ac_try;;
29028 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
29029 $as_echo "$ac_try_echo") >&5
29030 (eval "$ac_compile") 2>conftest.er1
29032 grep -v '^ *+' conftest.er1 >conftest.err
29034 cat conftest.err >&5
29035 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29036 (exit $ac_status); } && {
29037 test -z "$ac_c_werror_flag" ||
29038 test ! -s conftest.err
29039 } && test -s conftest.$ac_objext; then
29040 ac_cv_have_decl_fpurge=yes
29042 $as_echo "$as_me: failed program was
:" >&5
29043 sed 's/^/| /' conftest.$ac_ext >&5
29045 ac_cv_have_decl_fpurge=no
29048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29050 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_fpurge" >&5
29051 $as_echo "$ac_cv_have_decl_fpurge" >&6; }
29052 if test "x
$ac_cv_have_decl_fpurge" = x""yes; then
29054 cat >>confdefs.h <<_ACEOF
29055 #define HAVE_DECL_FPURGE 1
29060 cat >>confdefs.h <<_ACEOF
29061 #define HAVE_DECL_FPURGE 0
29069 { $as_echo "$as_me:$LINENO: checking to see
if getenv can be redefined
" >&5
29070 $as_echo_n "checking to see
if getenv can be redefined...
" >&6; }
29071 if test "${bash_cv_getenv_redef+set}" = set; then
29072 $as_echo_n "(cached
) " >&6
29074 if test "$cross_compiling" = yes; then
29075 { $as_echo "$as_me:$LINENO: WARNING
: cannot check getenv redefinition
if cross compiling
-- defaulting to
yes" >&5
29076 $as_echo "$as_me: WARNING
: cannot check getenv redefinition
if cross compiling
-- defaulting to
yes" >&2;}
29077 bash_cv_getenv_redef=yes
29080 cat >conftest.$ac_ext <<_ACEOF
29083 cat confdefs.h >>conftest.$ac_ext
29084 cat >>conftest.$ac_ext <<_ACEOF
29085 /* end confdefs.h. */
29087 #ifdef HAVE_UNISTD_H
29088 # include <unistd.h>
29097 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
29101 #endif /* !__linux__ && !__bsdi__ && !convex */
29108 /* The next allows this program to run, but does not allow bash to link
29109 when it redefines getenv. I'm not really interested in figuring out
29114 s = getenv("ABCDE
");
29115 exit(s == 0); /* force optimizer to leave getenv in */
29119 rm -f conftest$ac_exeext
29120 if { (ac_try="$ac_link"
29121 case "(($ac_try" in
29122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29123 *) ac_try_echo=$ac_try;;
29125 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
29126 $as_echo "$ac_try_echo") >&5
29127 (eval "$ac_link") 2>&5
29129 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29131 { (case "(($ac_try" in
29132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29133 *) ac_try_echo=$ac_try;;
29135 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
29136 $as_echo "$ac_try_echo") >&5
29137 (eval "$ac_try") 2>&5
29139 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29140 (exit $ac_status); }; }; then
29141 bash_cv_getenv_redef=yes
29143 $as_echo "$as_me: program exited with status
$ac_status" >&5
29144 $as_echo "$as_me: failed program was
:" >&5
29145 sed 's/^/| /' conftest.$ac_ext >&5
29147 ( exit $ac_status )
29148 bash_cv_getenv_redef=no
29150 rm -rf conftest.dSYM
29151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29157 { $as_echo "$as_me:$LINENO: result
: $bash_cv_getenv_redef" >&5
29158 $as_echo "$bash_cv_getenv_redef" >&6; }
29159 if test $bash_cv_getenv_redef = yes; then
29160 cat >>confdefs.h <<\_ACEOF
29161 #define CAN_REDEFINE_GETENV 1
29166 if test "$ac_cv_func_getcwd" = "yes"; then
29167 { $as_echo "$as_me:$LINENO: checking
if getcwd
() will dynamically allocate memory with
0 size
" >&5
29168 $as_echo_n "checking
if getcwd
() will dynamically allocate memory with
0 size...
" >&6; }
29169 if test "${bash_cv_getcwd_malloc+set}" = set; then
29170 $as_echo_n "(cached
) " >&6
29172 if test "$cross_compiling" = yes; then
29173 { $as_echo "$as_me:$LINENO: WARNING
: cannot check whether getcwd allocates memory when cross-compiling
-- defaulting to no
" >&5
29174 $as_echo "$as_me: WARNING
: cannot check whether getcwd allocates memory when cross-compiling
-- defaulting to no
" >&2;}
29175 bash_cv_getcwd_malloc=no
29178 cat >conftest.$ac_ext <<_ACEOF
29181 cat confdefs.h >>conftest.$ac_ext
29182 cat >>conftest.$ac_ext <<_ACEOF
29183 /* end confdefs.h. */
29186 #ifdef HAVE_UNISTD_H
29187 #include <unistd.h>
29193 xpwd = getcwd(0, 0);
29198 rm -f conftest$ac_exeext
29199 if { (ac_try="$ac_link"
29200 case "(($ac_try" in
29201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29202 *) ac_try_echo=$ac_try;;
29204 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
29205 $as_echo "$ac_try_echo") >&5
29206 (eval "$ac_link") 2>&5
29208 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29210 { (case "(($ac_try" in
29211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29212 *) ac_try_echo=$ac_try;;
29214 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
29215 $as_echo "$ac_try_echo") >&5
29216 (eval "$ac_try") 2>&5
29218 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29219 (exit $ac_status); }; }; then
29220 bash_cv_getcwd_malloc=yes
29222 $as_echo "$as_me: program exited with status
$ac_status" >&5
29223 $as_echo "$as_me: failed program was
:" >&5
29224 sed 's/^/| /' conftest.$ac_ext >&5
29226 ( exit $ac_status )
29227 bash_cv_getcwd_malloc=no
29229 rm -rf conftest.dSYM
29230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29236 { $as_echo "$as_me:$LINENO: result
: $bash_cv_getcwd_malloc" >&5
29237 $as_echo "$bash_cv_getcwd_malloc" >&6; }
29238 if test $bash_cv_getcwd_malloc = no; then
29239 cat >>confdefs.h <<\_ACEOF
29240 #define GETCWD_BROKEN 1
29243 case " $LIBOBJS " in
29244 *" getcwd.
$ac_objext "* ) ;;
29245 *) LIBOBJS="$LIBOBJS getcwd.
$ac_objext"
29253 { $as_echo "$as_me:$LINENO: checking
for presence of POSIX-style sigsetjmp
/siglongjmp
" >&5
29254 $as_echo_n "checking
for presence of POSIX-style sigsetjmp
/siglongjmp...
" >&6; }
29255 if test "${bash_cv_func_sigsetjmp+set}" = set; then
29256 $as_echo_n "(cached
) " >&6
29258 if test "$cross_compiling" = yes; then
29259 { $as_echo "$as_me:$LINENO: WARNING
: cannot check
for sigsetjmp
/siglongjmp
if cross-compiling
-- defaulting to missing
" >&5
29260 $as_echo "$as_me: WARNING
: cannot check
for sigsetjmp
/siglongjmp
if cross-compiling
-- defaulting to missing
" >&2;}
29261 bash_cv_func_sigsetjmp=missing
29264 cat >conftest.$ac_ext <<_ACEOF
29267 cat confdefs.h >>conftest.$ac_ext
29268 cat >>conftest.$ac_ext <<_ACEOF
29269 /* end confdefs.h. */
29271 #ifdef HAVE_UNISTD_H
29272 #include <unistd.h>
29274 #include <sys/types.h>
29275 #include <signal.h>
29276 #include <setjmp.h>
29280 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
29285 sigset_t set, oset;
29290 sigemptyset(&oset);
29291 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
29292 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
29295 code = sigsetjmp(xx, 1);
29297 exit(0); /* could get sigmask and compare to oset here. */
29300 sigaddset(&set, SIGINT);
29301 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
29303 /* and siglongjmp */
29304 siglongjmp(xx, 10);
29309 rm -f conftest$ac_exeext
29310 if { (ac_try="$ac_link"
29311 case "(($ac_try" in
29312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29313 *) ac_try_echo=$ac_try;;
29315 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
29316 $as_echo "$ac_try_echo") >&5
29317 (eval "$ac_link") 2>&5
29319 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29321 { (case "(($ac_try" in
29322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29323 *) ac_try_echo=$ac_try;;
29325 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
29326 $as_echo "$ac_try_echo") >&5
29327 (eval "$ac_try") 2>&5
29329 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29330 (exit $ac_status); }; }; then
29331 bash_cv_func_sigsetjmp=present
29333 $as_echo "$as_me: program exited with status
$ac_status" >&5
29334 $as_echo "$as_me: failed program was
:" >&5
29335 sed 's/^/| /' conftest.$ac_ext >&5
29337 ( exit $ac_status )
29338 bash_cv_func_sigsetjmp=missing
29340 rm -rf conftest.dSYM
29341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29347 { $as_echo "$as_me:$LINENO: result
: $bash_cv_func_sigsetjmp" >&5
29348 $as_echo "$bash_cv_func_sigsetjmp" >&6; }
29349 if test $bash_cv_func_sigsetjmp = present; then
29350 cat >>confdefs.h <<\_ACEOF
29351 #define HAVE_POSIX_SIGSETJMP 1
29357 { $as_echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ
" >&5
29358 $as_echo_n "checking whether or not strcoll and strcmp differ...
" >&6; }
29359 if test "${bash_cv_func_strcoll_broken+set}" = set; then
29360 $as_echo_n "(cached
) " >&6
29362 if test "$cross_compiling" = yes; then
29363 { $as_echo "$as_me:$LINENO: WARNING
: cannot check strcoll
if cross compiling
-- defaulting to no
" >&5
29364 $as_echo "$as_me: WARNING
: cannot check strcoll
if cross compiling
-- defaulting to no
" >&2;}
29365 bash_cv_func_strcoll_broken=no
29368 cat >conftest.$ac_ext <<_ACEOF
29371 cat confdefs.h >>conftest.$ac_ext
29372 cat >>conftest.$ac_ext <<_ACEOF
29373 /* end confdefs.h. */
29376 #if defined (HAVE_LOCALE_H)
29377 #include <locale.h>
29385 char *deflocale, *defcoll;
29387 #ifdef HAVE_SETLOCALE
29388 deflocale = setlocale(LC_ALL, "");
29389 defcoll = setlocale(LC_COLLATE, "");
29392 #ifdef HAVE_STRCOLL
29393 /* These two values are taken from tests/glob-test. */
29394 r1 = strcoll("abd
", "aXd
");
29398 r2 = strcmp("abd
", "aXd
");
29400 /* These two should both be greater than 0. It is permissible for
29401 a system to return different values, as long as the sign is the
29404 /* Exit with 1 (failure) if these two values are both > 0, since
29405 this tests whether strcoll(3) is broken with respect to strcmp(3)
29406 in the default locale. */
29407 exit (r1 > 0 && r2 > 0);
29411 rm -f conftest$ac_exeext
29412 if { (ac_try="$ac_link"
29413 case "(($ac_try" in
29414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415 *) ac_try_echo=$ac_try;;
29417 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
29418 $as_echo "$ac_try_echo") >&5
29419 (eval "$ac_link") 2>&5
29421 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29423 { (case "(($ac_try" in
29424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29425 *) ac_try_echo=$ac_try;;
29427 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
29428 $as_echo "$ac_try_echo") >&5
29429 (eval "$ac_try") 2>&5
29431 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29432 (exit $ac_status); }; }; then
29433 bash_cv_func_strcoll_broken=yes
29435 $as_echo "$as_me: program exited with status
$ac_status" >&5
29436 $as_echo "$as_me: failed program was
:" >&5
29437 sed 's/^/| /' conftest.$ac_ext >&5
29439 ( exit $ac_status )
29440 bash_cv_func_strcoll_broken=no
29442 rm -rf conftest.dSYM
29443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29449 { $as_echo "$as_me:$LINENO: result
: $bash_cv_func_strcoll_broken" >&5
29450 $as_echo "$bash_cv_func_strcoll_broken" >&6; }
29451 if test $bash_cv_func_strcoll_broken = yes; then
29452 cat >>confdefs.h <<\_ACEOF
29453 #define STRCOLL_BROKEN 1
29467 if test X$ac_cv_func_snprintf = Xyes; then
29468 { $as_echo "$as_me:$LINENO: checking
for standard-conformant snprintf
" >&5
29469 $as_echo_n "checking
for standard-conformant snprintf...
" >&6; }
29470 if test "${bash_cv_func_snprintf+set}" = set; then
29471 $as_echo_n "(cached
) " >&6
29473 if test "$cross_compiling" = yes; then
29474 { $as_echo "$as_me:$LINENO: WARNING
: cannot check standard snprintf
if cross-compiling
" >&5
29475 $as_echo "$as_me: WARNING
: cannot check standard snprintf
if cross-compiling
" >&2;}
29476 bash_cv_func_snprintf=yes
29479 cat >conftest.$ac_ext <<_ACEOF
29482 cat confdefs.h >>conftest.$ac_ext
29483 cat >>conftest.$ac_ext <<_ACEOF
29484 /* end confdefs.h. */
29491 n = snprintf (0, 0, "%s
", "0123456");
29496 rm -f conftest$ac_exeext
29497 if { (ac_try="$ac_link"
29498 case "(($ac_try" in
29499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29500 *) ac_try_echo=$ac_try;;
29502 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
29503 $as_echo "$ac_try_echo") >&5
29504 (eval "$ac_link") 2>&5
29506 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29508 { (case "(($ac_try" in
29509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29510 *) ac_try_echo=$ac_try;;
29512 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
29513 $as_echo "$ac_try_echo") >&5
29514 (eval "$ac_try") 2>&5
29516 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29517 (exit $ac_status); }; }; then
29518 bash_cv_func_snprintf=yes
29520 $as_echo "$as_me: program exited with status
$ac_status" >&5
29521 $as_echo "$as_me: failed program was
:" >&5
29522 sed 's/^/| /' conftest.$ac_ext >&5
29524 ( exit $ac_status )
29525 bash_cv_func_snprintf=no
29527 rm -rf conftest.dSYM
29528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29533 { $as_echo "$as_me:$LINENO: result
: $bash_cv_func_snprintf" >&5
29534 $as_echo "$bash_cv_func_snprintf" >&6; }
29535 if test $bash_cv_func_snprintf = no; then
29536 ac_cv_func_snprintf=no
29539 if test $ac_cv_func_snprintf = no; then
29541 cat >>confdefs.h <<\_ACEOF
29542 #define HAVE_SNPRINTF 0
29556 if test X$ac_cv_func_vsnprintf = Xyes; then
29557 { $as_echo "$as_me:$LINENO: checking
for standard-conformant vsnprintf
" >&5
29558 $as_echo_n "checking
for standard-conformant vsnprintf...
" >&6; }
29559 if test "${bash_cv_func_vsnprintf+set}" = set; then
29560 $as_echo_n "(cached
) " >&6
29562 if test "$cross_compiling" = yes; then
29563 { $as_echo "$as_me:$LINENO: WARNING
: cannot check standard vsnprintf
if cross-compiling
" >&5
29564 $as_echo "$as_me: WARNING
: cannot check standard vsnprintf
if cross-compiling
" >&2;}
29565 bash_cv_func_vsnprintf=yes
29568 cat >conftest.$ac_ext <<_ACEOF
29571 cat confdefs.h >>conftest.$ac_ext
29572 cat >>conftest.$ac_ext <<_ACEOF
29573 /* end confdefs.h. */
29576 #include <stdarg.h>
29578 #include <varargs.h>
29581 #include <stdlib.h>
29585 foo(const char *fmt, ...)
29587 foo(format, va_alist)
29588 const char *format;
29596 va_start(args, fmt);
29600 n = vsnprintf(0, 0, fmt, args);
29608 n = foo("%s
", "0123456");
29613 rm -f conftest$ac_exeext
29614 if { (ac_try="$ac_link"
29615 case "(($ac_try" in
29616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29617 *) ac_try_echo=$ac_try;;
29619 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
29620 $as_echo "$ac_try_echo") >&5
29621 (eval "$ac_link") 2>&5
29623 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29625 { (case "(($ac_try" in
29626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29627 *) ac_try_echo=$ac_try;;
29629 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
29630 $as_echo "$ac_try_echo") >&5
29631 (eval "$ac_try") 2>&5
29633 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29634 (exit $ac_status); }; }; then
29635 bash_cv_func_vsnprintf=yes
29637 $as_echo "$as_me: program exited with status
$ac_status" >&5
29638 $as_echo "$as_me: failed program was
:" >&5
29639 sed 's/^/| /' conftest.$ac_ext >&5
29641 ( exit $ac_status )
29642 bash_cv_func_vsnprintf=no
29644 rm -rf conftest.dSYM
29645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29650 { $as_echo "$as_me:$LINENO: result
: $bash_cv_func_vsnprintf" >&5
29651 $as_echo "$bash_cv_func_vsnprintf" >&6; }
29652 if test $bash_cv_func_vsnprintf = no; then
29653 ac_cv_func_vsnprintf=no
29656 if test $ac_cv_func_vsnprintf = no; then
29658 cat >>confdefs.h <<\_ACEOF
29659 #define HAVE_VSNPRINTF 0
29666 if test "$ac_cv_func_putenv" = "yes"; then
29670 { $as_echo "$as_me:$LINENO: checking
for standard-conformant putenv declaration
" >&5
29671 $as_echo_n "checking
for standard-conformant putenv declaration...
" >&6; }
29672 if test "${bash_cv_std_putenv+set}" = set; then
29673 $as_echo_n "(cached
) " >&6
29675 cat >conftest.$ac_ext <<_ACEOF
29678 cat confdefs.h >>conftest.$ac_ext
29679 cat >>conftest.$ac_ext <<_ACEOF
29680 /* end confdefs.h. */
29683 #include <stdlib.h>
29684 #include <stddef.h>
29692 extern int putenv (char *);
29694 extern int putenv ();
29700 return (putenv == 0);
29705 rm -f conftest.$ac_objext conftest$ac_exeext
29706 if { (ac_try="$ac_link"
29707 case "(($ac_try" in
29708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29709 *) ac_try_echo=$ac_try;;
29711 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
29712 $as_echo "$ac_try_echo") >&5
29713 (eval "$ac_link") 2>conftest.er1
29715 grep -v '^ *+' conftest.er1 >conftest.err
29717 cat conftest.err >&5
29718 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29719 (exit $ac_status); } && {
29720 test -z "$ac_c_werror_flag" ||
29721 test ! -s conftest.err
29722 } && test -s conftest$ac_exeext && {
29723 test "$cross_compiling" = yes ||
29724 $as_test_x conftest$ac_exeext
29726 bash_cv_std_putenv=yes
29728 $as_echo "$as_me: failed program was
:" >&5
29729 sed 's/^/| /' conftest.$ac_ext >&5
29731 bash_cv_std_putenv=no
29735 rm -rf conftest.dSYM
29736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29737 conftest$ac_exeext conftest.$ac_ext
29739 { $as_echo "$as_me:$LINENO: result
: $bash_cv_std_putenv" >&5
29740 $as_echo "$bash_cv_std_putenv" >&6; }
29741 if test $bash_cv_std_putenv = yes; then
29742 cat >>confdefs.h <<\_ACEOF
29743 #define HAVE_STD_PUTENV 1
29749 cat >>confdefs.h <<\_ACEOF
29750 #define HAVE_STD_PUTENV 1
29754 if test "$ac_cv_func_unsetenv" = "yes"; then
29758 { $as_echo "$as_me:$LINENO: checking
for standard-conformant unsetenv declaration
" >&5
29759 $as_echo_n "checking
for standard-conformant unsetenv declaration...
" >&6; }
29760 if test "${bash_cv_std_unsetenv+set}" = set; then
29761 $as_echo_n "(cached
) " >&6
29763 cat >conftest.$ac_ext <<_ACEOF
29766 cat confdefs.h >>conftest.$ac_ext
29767 cat >>conftest.$ac_ext <<_ACEOF
29768 /* end confdefs.h. */
29771 #include <stdlib.h>
29772 #include <stddef.h>
29780 extern int unsetenv (const char *);
29782 extern int unsetenv ();
29788 return (unsetenv == 0);
29793 rm -f conftest.$ac_objext conftest$ac_exeext
29794 if { (ac_try="$ac_link"
29795 case "(($ac_try" in
29796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29797 *) ac_try_echo=$ac_try;;
29799 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
29800 $as_echo "$ac_try_echo") >&5
29801 (eval "$ac_link") 2>conftest.er1
29803 grep -v '^ *+' conftest.er1 >conftest.err
29805 cat conftest.err >&5
29806 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29807 (exit $ac_status); } && {
29808 test -z "$ac_c_werror_flag" ||
29809 test ! -s conftest.err
29810 } && test -s conftest$ac_exeext && {
29811 test "$cross_compiling" = yes ||
29812 $as_test_x conftest$ac_exeext
29814 bash_cv_std_unsetenv=yes
29816 $as_echo "$as_me: failed program was
:" >&5
29817 sed 's/^/| /' conftest.$ac_ext >&5
29819 bash_cv_std_unsetenv=no
29823 rm -rf conftest.dSYM
29824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29825 conftest$ac_exeext conftest.$ac_ext
29827 { $as_echo "$as_me:$LINENO: result
: $bash_cv_std_unsetenv" >&5
29828 $as_echo "$bash_cv_std_unsetenv" >&6; }
29829 if test $bash_cv_std_unsetenv = yes; then
29830 cat >>confdefs.h <<\_ACEOF
29831 #define HAVE_STD_UNSETENV 1
29837 cat >>confdefs.h <<\_ACEOF
29838 #define HAVE_STD_UNSETENV 1
29843 { $as_echo "$as_me:$LINENO: checking
for printf floating point output
in hex notation
" >&5
29844 $as_echo_n "checking
for printf floating point output
in hex notation...
" >&6; }
29845 if test "${bash_cv_printf_a_format+set}" = set; then
29846 $as_echo_n "(cached
) " >&6
29848 if test "$cross_compiling" = yes; then
29849 { $as_echo "$as_me:$LINENO: WARNING
: cannot check
printf if cross compiling
-- defaulting to no
" >&5
29850 $as_echo "$as_me: WARNING
: cannot check
printf if cross compiling
-- defaulting to no
" >&2;}
29851 bash_cv_printf_a_format=no
29854 cat >conftest.$ac_ext <<_ACEOF
29857 cat confdefs.h >>conftest.$ac_ext
29858 cat >>conftest.$ac_ext <<_ACEOF
29859 /* end confdefs.h. */
29862 #include <string.h>
29870 sprintf(abuf, "%A
", y);
29871 exit(strchr(abuf, 'P') == (char *)0);
29875 rm -f conftest$ac_exeext
29876 if { (ac_try="$ac_link"
29877 case "(($ac_try" in
29878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29879 *) ac_try_echo=$ac_try;;
29881 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
29882 $as_echo "$ac_try_echo") >&5
29883 (eval "$ac_link") 2>&5
29885 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29887 { (case "(($ac_try" in
29888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29889 *) ac_try_echo=$ac_try;;
29891 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
29892 $as_echo "$ac_try_echo") >&5
29893 (eval "$ac_try") 2>&5
29895 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29896 (exit $ac_status); }; }; then
29897 bash_cv_printf_a_format=yes
29899 $as_echo "$as_me: program exited with status
$ac_status" >&5
29900 $as_echo "$as_me: failed program was
:" >&5
29901 sed 's/^/| /' conftest.$ac_ext >&5
29903 ( exit $ac_status )
29904 bash_cv_printf_a_format=no
29906 rm -rf conftest.dSYM
29907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29913 { $as_echo "$as_me:$LINENO: result
: $bash_cv_printf_a_format" >&5
29914 $as_echo "$bash_cv_printf_a_format" >&6; }
29915 if test $bash_cv_printf_a_format = yes; then
29916 cat >>confdefs.h <<\_ACEOF
29917 #define HAVE_PRINTF_A_FORMAT 1
29925 { $as_echo "$as_me:$LINENO: checking
if signal handlers must be reinstalled when invoked
" >&5
29926 $as_echo_n "checking
if signal handlers must be reinstalled when invoked...
" >&6; }
29927 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
29928 $as_echo_n "(cached
) " >&6
29930 if test "$cross_compiling" = yes; then
29931 { $as_echo "$as_me:$LINENO: WARNING
: cannot check signal handling
if cross compiling
-- defaulting to no
" >&5
29932 $as_echo "$as_me: WARNING
: cannot check signal handling
if cross compiling
-- defaulting to no
" >&2;}
29933 bash_cv_must_reinstall_sighandlers=no
29936 cat >conftest.$ac_ext <<_ACEOF
29939 cat confdefs.h >>conftest.$ac_ext
29940 cat >>conftest.$ac_ext <<_ACEOF
29941 /* end confdefs.h. */
29943 #include <signal.h>
29944 #ifdef HAVE_UNISTD_H
29945 #include <unistd.h>
29948 typedef RETSIGTYPE sigfunc();
29952 #ifdef HAVE_POSIX_SIGNALS
29954 set_signal_handler(sig, handler)
29958 struct sigaction act, oact;
29959 act.sa_handler = handler;
29961 sigemptyset (&act.sa_mask);
29962 sigemptyset (&oact.sa_mask);
29963 sigaction (sig, &act, &oact);
29964 return (oact.sa_handler);
29967 #define set_signal_handler(s, h) signal(s, h)
29980 set_signal_handler(SIGINT, sigint);
29981 kill((int)getpid(), SIGINT);
29982 kill((int)getpid(), SIGINT);
29983 exit(nsigint != 2);
29987 rm -f conftest$ac_exeext
29988 if { (ac_try="$ac_link"
29989 case "(($ac_try" in
29990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29991 *) ac_try_echo=$ac_try;;
29993 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
29994 $as_echo "$ac_try_echo") >&5
29995 (eval "$ac_link") 2>&5
29997 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29999 { (case "(($ac_try" in
30000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30001 *) ac_try_echo=$ac_try;;
30003 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
30004 $as_echo "$ac_try_echo") >&5
30005 (eval "$ac_try") 2>&5
30007 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30008 (exit $ac_status); }; }; then
30009 bash_cv_must_reinstall_sighandlers=no
30011 $as_echo "$as_me: program exited with status
$ac_status" >&5
30012 $as_echo "$as_me: failed program was
:" >&5
30013 sed 's/^/| /' conftest.$ac_ext >&5
30015 ( exit $ac_status )
30016 bash_cv_must_reinstall_sighandlers=yes
30018 rm -rf conftest.dSYM
30019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30025 { $as_echo "$as_me:$LINENO: result
: $bash_cv_must_reinstall_sighandlers" >&5
30026 $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
30027 if test $bash_cv_must_reinstall_sighandlers = yes; then
30028 cat >>confdefs.h <<\_ACEOF
30029 #define MUST_REINSTALL_SIGHANDLERS 1
30035 { $as_echo "$as_me:$LINENO: checking
for presence of necessary job control definitions
" >&5
30036 $as_echo_n "checking
for presence of necessary job control definitions...
" >&6; }
30037 if test "${bash_cv_job_control_missing+set}" = set; then
30038 $as_echo_n "(cached
) " >&6
30040 if test "$cross_compiling" = yes; then
30041 { $as_echo "$as_me:$LINENO: WARNING
: cannot check job control
if cross-compiling
-- defaulting to missing
" >&5
30042 $as_echo "$as_me: WARNING
: cannot check job control
if cross-compiling
-- defaulting to missing
" >&2;}
30043 bash_cv_job_control_missing=missing
30046 cat >conftest.$ac_ext <<_ACEOF
30049 cat confdefs.h >>conftest.$ac_ext
30050 cat >>conftest.$ac_ext <<_ACEOF
30051 /* end confdefs.h. */
30053 #include <sys/types.h>
30054 #ifdef HAVE_SYS_WAIT_H
30055 #include <sys/wait.h>
30057 #ifdef HAVE_UNISTD_H
30058 #include <unistd.h>
30060 #include <signal.h>
30062 /* Add more tests in here as appropriate. */
30066 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
30070 /* signals and tty control. */
30071 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
30075 /* process control */
30076 #if !defined (WNOHANG) || !defined (WUNTRACED)
30080 /* Posix systems have tcgetpgrp and waitpid. */
30081 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
30085 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
30089 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
30090 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
30097 rm -f conftest$ac_exeext
30098 if { (ac_try="$ac_link"
30099 case "(($ac_try" in
30100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30101 *) ac_try_echo=$ac_try;;
30103 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
30104 $as_echo "$ac_try_echo") >&5
30105 (eval "$ac_link") 2>&5
30107 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30109 { (case "(($ac_try" in
30110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30111 *) ac_try_echo=$ac_try;;
30113 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
30114 $as_echo "$ac_try_echo") >&5
30115 (eval "$ac_try") 2>&5
30117 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30118 (exit $ac_status); }; }; then
30119 bash_cv_job_control_missing=present
30121 $as_echo "$as_me: program exited with status
$ac_status" >&5
30122 $as_echo "$as_me: failed program was
:" >&5
30123 sed 's/^/| /' conftest.$ac_ext >&5
30125 ( exit $ac_status )
30126 bash_cv_job_control_missing=missing
30128 rm -rf conftest.dSYM
30129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30135 { $as_echo "$as_me:$LINENO: result
: $bash_cv_job_control_missing" >&5
30136 $as_echo "$bash_cv_job_control_missing" >&6; }
30137 if test $bash_cv_job_control_missing = missing; then
30138 cat >>confdefs.h <<\_ACEOF
30139 #define JOB_CONTROL_MISSING 1
30144 { $as_echo "$as_me:$LINENO: checking
for presence of named pipes
" >&5
30145 $as_echo_n "checking
for presence of named pipes...
" >&6; }
30146 if test "${bash_cv_sys_named_pipes+set}" = set; then
30147 $as_echo_n "(cached
) " >&6
30149 if test "$cross_compiling" = yes; then
30150 { $as_echo "$as_me:$LINENO: WARNING
: cannot check
for named pipes
if cross-compiling
-- defaulting to missing
" >&5
30151 $as_echo "$as_me: WARNING
: cannot check
for named pipes
if cross-compiling
-- defaulting to missing
" >&2;}
30152 bash_cv_sys_named_pipes=missing
30155 cat >conftest.$ac_ext <<_ACEOF
30158 cat confdefs.h >>conftest.$ac_ext
30159 cat >>conftest.$ac_ext <<_ACEOF
30160 /* end confdefs.h. */
30162 #include <sys/types.h>
30163 #include <sys/stat.h>
30164 #ifdef HAVE_UNISTD_H
30165 #include <unistd.h>
30168 /* Add more tests in here as appropriate. */
30173 #if defined (HAVE_MKFIFO)
30177 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
30184 err = mkdir("bash-aclocal
", 0700);
30189 fd = mknod ("bash-aclocal
/sh-np-autoconf
", 0666 | S_IFIFO, 0);
30191 rmdir ("bash-aclocal
");
30195 unlink ("bash-aclocal
/sh-np-autoconf
");
30196 rmdir ("bash-aclocal
");
30200 rm -f conftest$ac_exeext
30201 if { (ac_try="$ac_link"
30202 case "(($ac_try" in
30203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30204 *) ac_try_echo=$ac_try;;
30206 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
30207 $as_echo "$ac_try_echo") >&5
30208 (eval "$ac_link") 2>&5
30210 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30212 { (case "(($ac_try" in
30213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30214 *) ac_try_echo=$ac_try;;
30216 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
30217 $as_echo "$ac_try_echo") >&5
30218 (eval "$ac_try") 2>&5
30220 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30221 (exit $ac_status); }; }; then
30222 bash_cv_sys_named_pipes=present
30224 $as_echo "$as_me: program exited with status
$ac_status" >&5
30225 $as_echo "$as_me: failed program was
:" >&5
30226 sed 's/^/| /' conftest.$ac_ext >&5
30228 ( exit $ac_status )
30229 bash_cv_sys_named_pipes=missing
30231 rm -rf conftest.dSYM
30232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30238 { $as_echo "$as_me:$LINENO: result
: $bash_cv_sys_named_pipes" >&5
30239 $as_echo "$bash_cv_sys_named_pipes" >&6; }
30240 if test $bash_cv_sys_named_pipes = missing; then
30241 cat >>confdefs.h <<\_ACEOF
30242 #define NAMED_PIPES_MISSING 1
30248 { $as_echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ
" >&5
30249 $as_echo_n "checking whether termios.h defines TIOCGWINSZ...
" >&6; }
30250 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
30251 $as_echo_n "(cached
) " >&6
30253 cat >conftest.$ac_ext <<_ACEOF
30256 cat confdefs.h >>conftest.$ac_ext
30257 cat >>conftest.$ac_ext <<_ACEOF
30258 /* end confdefs.h. */
30259 #include <sys/types.h>
30260 #include <termios.h>
30266 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
30267 $EGREP "yes" >/dev/null 2>&1; then
30268 ac_cv_sys_tiocgwinsz_in_termios_h=yes
30270 ac_cv_sys_tiocgwinsz_in_termios_h=no
30275 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
30276 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
30278 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
30279 { $as_echo "$as_me:$LINENO: checking whether sys
/ioctl.h defines TIOCGWINSZ
" >&5
30280 $as_echo_n "checking whether sys
/ioctl.h defines TIOCGWINSZ...
" >&6; }
30281 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
30282 $as_echo_n "(cached
) " >&6
30284 cat >conftest.$ac_ext <<_ACEOF
30287 cat confdefs.h >>conftest.$ac_ext
30288 cat >>conftest.$ac_ext <<_ACEOF
30289 /* end confdefs.h. */
30290 #include <sys/types.h>
30291 #include <sys/ioctl.h>
30297 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
30298 $EGREP "yes" >/dev/null 2>&1; then
30299 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
30301 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
30306 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
30307 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
30309 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
30311 cat >>confdefs.h <<\_ACEOF
30312 #define GWINSZ_IN_SYS_IOCTL 1
30318 { $as_echo "$as_me:$LINENO: checking
for TIOCSTAT
in sys
/ioctl.h
" >&5
30319 $as_echo_n "checking
for TIOCSTAT
in sys
/ioctl.h...
" >&6; }
30320 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
30321 $as_echo_n "(cached
) " >&6
30323 cat >conftest.$ac_ext <<_ACEOF
30326 cat confdefs.h >>conftest.$ac_ext
30327 cat >>conftest.$ac_ext <<_ACEOF
30328 /* end confdefs.h. */
30329 #include <sys/types.h>
30330 #include <sys/ioctl.h>
30339 rm -f conftest.$ac_objext
30340 if { (ac_try="$ac_compile"
30341 case "(($ac_try" in
30342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30343 *) ac_try_echo=$ac_try;;
30345 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
30346 $as_echo "$ac_try_echo") >&5
30347 (eval "$ac_compile") 2>conftest.er1
30349 grep -v '^ *+' conftest.er1 >conftest.err
30351 cat conftest.err >&5
30352 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30353 (exit $ac_status); } && {
30354 test -z "$ac_c_werror_flag" ||
30355 test ! -s conftest.err
30356 } && test -s conftest.$ac_objext; then
30357 bash_cv_tiocstat_in_ioctl=yes
30359 $as_echo "$as_me: failed program was
:" >&5
30360 sed 's/^/| /' conftest.$ac_ext >&5
30362 bash_cv_tiocstat_in_ioctl=no
30365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30368 { $as_echo "$as_me:$LINENO: result
: $bash_cv_tiocstat_in_ioctl" >&5
30369 $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
30370 if test $bash_cv_tiocstat_in_ioctl = yes; then
30371 cat >>confdefs.h <<\_ACEOF
30372 #define TIOCSTAT_IN_SYS_IOCTL 1
30377 { $as_echo "$as_me:$LINENO: checking
for FIONREAD
in sys
/ioctl.h
" >&5
30378 $as_echo_n "checking
for FIONREAD
in sys
/ioctl.h...
" >&6; }
30379 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
30380 $as_echo_n "(cached
) " >&6
30382 cat >conftest.$ac_ext <<_ACEOF
30385 cat confdefs.h >>conftest.$ac_ext
30386 cat >>conftest.$ac_ext <<_ACEOF
30387 /* end confdefs.h. */
30388 #include <sys/types.h>
30389 #include <sys/ioctl.h>
30398 rm -f conftest.$ac_objext
30399 if { (ac_try="$ac_compile"
30400 case "(($ac_try" in
30401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30402 *) ac_try_echo=$ac_try;;
30404 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
30405 $as_echo "$ac_try_echo") >&5
30406 (eval "$ac_compile") 2>conftest.er1
30408 grep -v '^ *+' conftest.er1 >conftest.err
30410 cat conftest.err >&5
30411 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30412 (exit $ac_status); } && {
30413 test -z "$ac_c_werror_flag" ||
30414 test ! -s conftest.err
30415 } && test -s conftest.$ac_objext; then
30416 bash_cv_fionread_in_ioctl=yes
30418 $as_echo "$as_me: failed program was
:" >&5
30419 sed 's/^/| /' conftest.$ac_ext >&5
30421 bash_cv_fionread_in_ioctl=no
30424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30427 { $as_echo "$as_me:$LINENO: result
: $bash_cv_fionread_in_ioctl" >&5
30428 $as_echo "$bash_cv_fionread_in_ioctl" >&6; }
30429 if test $bash_cv_fionread_in_ioctl = yes; then
30430 cat >>confdefs.h <<\_ACEOF
30431 #define FIONREAD_IN_SYS_IOCTL 1
30438 { $as_echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken
" >&5
30439 $as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken...
" >&6; }
30440 if test "${bash_cv_wcontinued_broken+set}" = set; then
30441 $as_echo_n "(cached
) " >&6
30443 if test "$cross_compiling" = yes; then
30444 { $as_echo "$as_me:$LINENO: WARNING
: cannot check WCONTINUED
if cross compiling
-- defaulting to no
" >&5
30445 $as_echo "$as_me: WARNING
: cannot check WCONTINUED
if cross compiling
-- defaulting to no
" >&2;}
30446 bash_cv_wcontinued_broken=no
30449 cat >conftest.$ac_ext <<_ACEOF
30452 cat confdefs.h >>conftest.$ac_ext
30453 cat >>conftest.$ac_ext <<_ACEOF
30454 /* end confdefs.h. */
30456 #include <sys/types.h>
30457 #include <sys/wait.h>
30458 #include <unistd.h>
30468 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
30469 if (x == -1 && errno == EINVAL)
30476 rm -f conftest$ac_exeext
30477 if { (ac_try="$ac_link"
30478 case "(($ac_try" in
30479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30480 *) ac_try_echo=$ac_try;;
30482 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
30483 $as_echo "$ac_try_echo") >&5
30484 (eval "$ac_link") 2>&5
30486 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30488 { (case "(($ac_try" in
30489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30490 *) ac_try_echo=$ac_try;;
30492 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
30493 $as_echo "$ac_try_echo") >&5
30494 (eval "$ac_try") 2>&5
30496 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30497 (exit $ac_status); }; }; then
30498 bash_cv_wcontinued_broken=no
30500 $as_echo "$as_me: program exited with status
$ac_status" >&5
30501 $as_echo "$as_me: failed program was
:" >&5
30502 sed 's/^/| /' conftest.$ac_ext >&5
30504 ( exit $ac_status )
30505 bash_cv_wcontinued_broken=yes
30507 rm -rf conftest.dSYM
30508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30514 { $as_echo "$as_me:$LINENO: result
: $bash_cv_wcontinued_broken" >&5
30515 $as_echo "$bash_cv_wcontinued_broken" >&6; }
30516 if test $bash_cv_wcontinued_broken = yes; then
30517 cat >>confdefs.h <<\_ACEOF
30518 #define WCONTINUED_BROKEN 1
30524 { $as_echo "$as_me:$LINENO: checking
for speed_t
in sys
/types.h
" >&5
30525 $as_echo_n "checking
for speed_t
in sys
/types.h...
" >&6; }
30526 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
30527 $as_echo_n "(cached
) " >&6
30529 cat >conftest.$ac_ext <<_ACEOF
30532 cat confdefs.h >>conftest.$ac_ext
30533 cat >>conftest.$ac_ext <<_ACEOF
30534 /* end confdefs.h. */
30535 #include <sys/types.h>
30544 rm -f conftest.$ac_objext
30545 if { (ac_try="$ac_compile"
30546 case "(($ac_try" in
30547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30548 *) ac_try_echo=$ac_try;;
30550 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
30551 $as_echo "$ac_try_echo") >&5
30552 (eval "$ac_compile") 2>conftest.er1
30554 grep -v '^ *+' conftest.er1 >conftest.err
30556 cat conftest.err >&5
30557 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30558 (exit $ac_status); } && {
30559 test -z "$ac_c_werror_flag" ||
30560 test ! -s conftest.err
30561 } && test -s conftest.$ac_objext; then
30562 bash_cv_speed_t_in_sys_types=yes
30564 $as_echo "$as_me: failed program was
:" >&5
30565 sed 's/^/| /' conftest.$ac_ext >&5
30567 bash_cv_speed_t_in_sys_types=no
30570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30573 { $as_echo "$as_me:$LINENO: result
: $bash_cv_speed_t_in_sys_types" >&5
30574 $as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
30575 if test $bash_cv_speed_t_in_sys_types = yes; then
30576 cat >>confdefs.h <<\_ACEOF
30577 #define SPEED_T_IN_SYS_TYPES 1
30582 { $as_echo "$as_me:$LINENO: checking whether getpw functions are declared
in pwd.h
" >&5
30583 $as_echo_n "checking whether getpw functions are declared
in pwd.h...
" >&6; }
30584 if test "${bash_cv_getpw_declared+set}" = set; then
30585 $as_echo_n "(cached
) " >&6
30587 cat >conftest.$ac_ext <<_ACEOF
30590 cat confdefs.h >>conftest.$ac_ext
30591 cat >>conftest.$ac_ext <<_ACEOF
30592 /* end confdefs.h. */
30594 #include <sys/types.h>
30595 #ifdef HAVE_UNISTD_H
30596 # include <unistd.h>
30601 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
30602 $EGREP "getpwuid
" >/dev/null 2>&1; then
30603 bash_cv_getpw_declared=yes
30605 bash_cv_getpw_declared=no
30611 { $as_echo "$as_me:$LINENO: result
: $bash_cv_getpw_declared" >&5
30612 $as_echo "$bash_cv_getpw_declared" >&6; }
30613 if test $bash_cv_getpw_declared = yes; then
30614 cat >>confdefs.h <<\_ACEOF
30615 #define HAVE_GETPW_DECLS 1
30620 { $as_echo "$as_me:$LINENO: checking
for unusable real-time signals due to large values
" >&5
30621 $as_echo_n "checking
for unusable real-time signals due to large values...
" >&6; }
30622 if test "${bash_cv_unusable_rtsigs+set}" = set; then
30623 $as_echo_n "(cached
) " >&6
30625 if test "$cross_compiling" = yes; then
30626 { $as_echo "$as_me:$LINENO: WARNING
: cannot check real-time signals
if cross compiling
-- defaulting to
yes" >&5
30627 $as_echo "$as_me: WARNING
: cannot check real-time signals
if cross compiling
-- defaulting to
yes" >&2;}
30628 bash_cv_unusable_rtsigs=yes
30631 cat >conftest.$ac_ext <<_ACEOF
30634 cat confdefs.h >>conftest.$ac_ext
30635 cat >>conftest.$ac_ext <<_ACEOF
30636 /* end confdefs.h. */
30638 #include <sys/types.h>
30639 #include <signal.h>
30647 int n_sigs = 2 * NSIG;
30649 int rtmin = SIGRTMIN;
30654 exit(rtmin < n_sigs);
30657 rm -f conftest$ac_exeext
30658 if { (ac_try="$ac_link"
30659 case "(($ac_try" in
30660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30661 *) ac_try_echo=$ac_try;;
30663 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
30664 $as_echo "$ac_try_echo") >&5
30665 (eval "$ac_link") 2>&5
30667 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30669 { (case "(($ac_try" in
30670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30671 *) ac_try_echo=$ac_try;;
30673 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
30674 $as_echo "$ac_try_echo") >&5
30675 (eval "$ac_try") 2>&5
30677 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30678 (exit $ac_status); }; }; then
30679 bash_cv_unusable_rtsigs=yes
30681 $as_echo "$as_me: program exited with status
$ac_status" >&5
30682 $as_echo "$as_me: failed program was
:" >&5
30683 sed 's/^/| /' conftest.$ac_ext >&5
30685 ( exit $ac_status )
30686 bash_cv_unusable_rtsigs=no
30688 rm -rf conftest.dSYM
30689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30695 { $as_echo "$as_me:$LINENO: result
: $bash_cv_unusable_rtsigs" >&5
30696 $as_echo "$bash_cv_unusable_rtsigs" >&6; }
30697 if test $bash_cv_unusable_rtsigs = yes; then
30698 cat >>confdefs.h <<\_ACEOF
30699 #define UNUSABLE_RT_SIGNALS 1
30708 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
30709 SIGLIST_O=siglist.o
30717 hpux*) { $as_echo "$as_me:$LINENO: checking whether
$host_os needs _KERNEL
for RLIMIT defines
" >&5
30718 $as_echo_n "checking whether
$host_os needs _KERNEL
for RLIMIT defines...
" >&6; }
30719 if test "${bash_cv_kernel_rlimit+set}" = set; then
30720 $as_echo_n "(cached
) " >&6
30722 cat >conftest.$ac_ext <<_ACEOF
30725 cat confdefs.h >>conftest.$ac_ext
30726 cat >>conftest.$ac_ext <<_ACEOF
30727 /* end confdefs.h. */
30729 #include <sys/types.h>
30730 #include <sys/resource.h>
30743 rm -f conftest.$ac_objext
30744 if { (ac_try="$ac_compile"
30745 case "(($ac_try" in
30746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30747 *) ac_try_echo=$ac_try;;
30749 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
30750 $as_echo "$ac_try_echo") >&5
30751 (eval "$ac_compile") 2>conftest.er1
30753 grep -v '^ *+' conftest.er1 >conftest.err
30755 cat conftest.err >&5
30756 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30757 (exit $ac_status); } && {
30758 test -z "$ac_c_werror_flag" ||
30759 test ! -s conftest.err
30760 } && test -s conftest.$ac_objext; then
30761 bash_cv_kernel_rlimit=no
30763 $as_echo "$as_me: failed program was
:" >&5
30764 sed 's/^/| /' conftest.$ac_ext >&5
30766 cat >conftest.$ac_ext <<_ACEOF
30769 cat confdefs.h >>conftest.$ac_ext
30770 cat >>conftest.$ac_ext <<_ACEOF
30771 /* end confdefs.h. */
30773 #include <sys/types.h>
30775 #include <sys/resource.h>
30789 rm -f conftest.$ac_objext
30790 if { (ac_try="$ac_compile"
30791 case "(($ac_try" in
30792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30793 *) ac_try_echo=$ac_try;;
30795 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
30796 $as_echo "$ac_try_echo") >&5
30797 (eval "$ac_compile") 2>conftest.er1
30799 grep -v '^ *+' conftest.er1 >conftest.err
30801 cat conftest.err >&5
30802 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30803 (exit $ac_status); } && {
30804 test -z "$ac_c_werror_flag" ||
30805 test ! -s conftest.err
30806 } && test -s conftest.$ac_objext; then
30807 bash_cv_kernel_rlimit=yes
30809 $as_echo "$as_me: failed program was
:" >&5
30810 sed 's/^/| /' conftest.$ac_ext >&5
30812 bash_cv_kernel_rlimit=no
30815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30822 { $as_echo "$as_me:$LINENO: result
: $bash_cv_kernel_rlimit" >&5
30823 $as_echo "$bash_cv_kernel_rlimit" >&6; }
30824 if test $bash_cv_kernel_rlimit = yes; then
30825 cat >>confdefs.h <<\_ACEOF
30826 #define RLIMIT_NEEDS_KERNEL 1
30833 if test "$opt_readline" = yes; then
30835 aix*) prefer_curses=yes ;;
30838 if test "X
$bash_cv_termcap_lib" = "X
"; then
30841 { $as_echo "$as_me:$LINENO: checking
which library has the termcap functions
" >&5
30842 $as_echo_n "checking
which library has the termcap functions...
" >&6; }
30845 if test "${bash_cv_termcap_lib+set}" = set; then
30846 $as_echo_n "(cached
) " >&6
30848 { $as_echo "$as_me:$LINENO: checking
for tgetent
" >&5
30849 $as_echo_n "checking
for tgetent...
" >&6; }
30850 if test "${ac_cv_func_tgetent+set}" = set; then
30851 $as_echo_n "(cached
) " >&6
30853 cat >conftest.$ac_ext <<_ACEOF
30856 cat confdefs.h >>conftest.$ac_ext
30857 cat >>conftest.$ac_ext <<_ACEOF
30858 /* end confdefs.h. */
30859 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
30860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30861 #define tgetent innocuous_tgetent
30863 /* System header to define __stub macros and hopefully few prototypes,
30864 which can conflict with char tgetent (); below.
30865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30866 <limits.h> exists even on freestanding compilers. */
30869 # include <limits.h>
30871 # include <assert.h>
30876 /* Override any GCC internal prototype to avoid an error.
30877 Use char because int might match the return type of a GCC
30878 builtin and then its argument prototype would still apply. */
30883 /* The GNU C library defines this for functions which it implements
30884 to always fail with ENOSYS. Some functions are actually named
30885 something starting with __ and the normal name is an alias. */
30886 #if defined __stub_tgetent || defined __stub___tgetent
30898 rm -f conftest.$ac_objext conftest$ac_exeext
30899 if { (ac_try="$ac_link"
30900 case "(($ac_try" in
30901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30902 *) ac_try_echo=$ac_try;;
30904 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
30905 $as_echo "$ac_try_echo") >&5
30906 (eval "$ac_link") 2>conftest.er1
30908 grep -v '^ *+' conftest.er1 >conftest.err
30910 cat conftest.err >&5
30911 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30912 (exit $ac_status); } && {
30913 test -z "$ac_c_werror_flag" ||
30914 test ! -s conftest.err
30915 } && test -s conftest$ac_exeext && {
30916 test "$cross_compiling" = yes ||
30917 $as_test_x conftest$ac_exeext
30919 ac_cv_func_tgetent=yes
30921 $as_echo "$as_me: failed program was
:" >&5
30922 sed 's/^/| /' conftest.$ac_ext >&5
30924 ac_cv_func_tgetent=no
30927 rm -rf conftest.dSYM
30928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30929 conftest$ac_exeext conftest.$ac_ext
30931 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_tgetent" >&5
30932 $as_echo "$ac_cv_func_tgetent" >&6; }
30933 if test "x
$ac_cv_func_tgetent" = x""yes; then
30934 bash_cv_termcap_lib=libc
30936 { $as_echo "$as_me:$LINENO: checking
for tgetent
in -ltermcap" >&5
30937 $as_echo_n "checking
for tgetent
in -ltermcap...
" >&6; }
30938 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
30939 $as_echo_n "(cached
) " >&6
30941 ac_check_lib_save_LIBS=$LIBS
30942 LIBS="-ltermcap $LIBS"
30943 cat >conftest.$ac_ext <<_ACEOF
30946 cat confdefs.h >>conftest.$ac_ext
30947 cat >>conftest.$ac_ext <<_ACEOF
30948 /* end confdefs.h. */
30950 /* Override any GCC internal prototype to avoid an error.
30951 Use char because int might match the return type of a GCC
30952 builtin and then its argument prototype would still apply. */
30965 rm -f conftest.$ac_objext conftest$ac_exeext
30966 if { (ac_try="$ac_link"
30967 case "(($ac_try" in
30968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30969 *) ac_try_echo=$ac_try;;
30971 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
30972 $as_echo "$ac_try_echo") >&5
30973 (eval "$ac_link") 2>conftest.er1
30975 grep -v '^ *+' conftest.er1 >conftest.err
30977 cat conftest.err >&5
30978 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30979 (exit $ac_status); } && {
30980 test -z "$ac_c_werror_flag" ||
30981 test ! -s conftest.err
30982 } && test -s conftest$ac_exeext && {
30983 test "$cross_compiling" = yes ||
30984 $as_test_x conftest$ac_exeext
30986 ac_cv_lib_termcap_tgetent=yes
30988 $as_echo "$as_me: failed program was
:" >&5
30989 sed 's/^/| /' conftest.$ac_ext >&5
30991 ac_cv_lib_termcap_tgetent=no
30994 rm -rf conftest.dSYM
30995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30996 conftest$ac_exeext conftest.$ac_ext
30997 LIBS=$ac_check_lib_save_LIBS
30999 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_termcap_tgetent" >&5
31000 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
31001 if test "x
$ac_cv_lib_termcap_tgetent" = x""yes; then
31002 bash_cv_termcap_lib=libtermcap
31004 { $as_echo "$as_me:$LINENO: checking
for tgetent
in -ltinfo" >&5
31005 $as_echo_n "checking
for tgetent
in -ltinfo...
" >&6; }
31006 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
31007 $as_echo_n "(cached
) " >&6
31009 ac_check_lib_save_LIBS=$LIBS
31010 LIBS="-ltinfo $LIBS"
31011 cat >conftest.$ac_ext <<_ACEOF
31014 cat confdefs.h >>conftest.$ac_ext
31015 cat >>conftest.$ac_ext <<_ACEOF
31016 /* end confdefs.h. */
31018 /* Override any GCC internal prototype to avoid an error.
31019 Use char because int might match the return type of a GCC
31020 builtin and then its argument prototype would still apply. */
31033 rm -f conftest.$ac_objext conftest$ac_exeext
31034 if { (ac_try="$ac_link"
31035 case "(($ac_try" in
31036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31037 *) ac_try_echo=$ac_try;;
31039 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
31040 $as_echo "$ac_try_echo") >&5
31041 (eval "$ac_link") 2>conftest.er1
31043 grep -v '^ *+' conftest.er1 >conftest.err
31045 cat conftest.err >&5
31046 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31047 (exit $ac_status); } && {
31048 test -z "$ac_c_werror_flag" ||
31049 test ! -s conftest.err
31050 } && test -s conftest$ac_exeext && {
31051 test "$cross_compiling" = yes ||
31052 $as_test_x conftest$ac_exeext
31054 ac_cv_lib_tinfo_tgetent=yes
31056 $as_echo "$as_me: failed program was
:" >&5
31057 sed 's/^/| /' conftest.$ac_ext >&5
31059 ac_cv_lib_tinfo_tgetent=no
31062 rm -rf conftest.dSYM
31063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31064 conftest$ac_exeext conftest.$ac_ext
31065 LIBS=$ac_check_lib_save_LIBS
31067 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_tinfo_tgetent" >&5
31068 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
31069 if test "x
$ac_cv_lib_tinfo_tgetent" = x""yes; then
31070 bash_cv_termcap_lib=libtinfo
31072 { $as_echo "$as_me:$LINENO: checking
for tgetent
in -lcurses" >&5
31073 $as_echo_n "checking
for tgetent
in -lcurses...
" >&6; }
31074 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
31075 $as_echo_n "(cached
) " >&6
31077 ac_check_lib_save_LIBS=$LIBS
31078 LIBS="-lcurses $LIBS"
31079 cat >conftest.$ac_ext <<_ACEOF
31082 cat confdefs.h >>conftest.$ac_ext
31083 cat >>conftest.$ac_ext <<_ACEOF
31084 /* end confdefs.h. */
31086 /* Override any GCC internal prototype to avoid an error.
31087 Use char because int might match the return type of a GCC
31088 builtin and then its argument prototype would still apply. */
31101 rm -f conftest.$ac_objext conftest$ac_exeext
31102 if { (ac_try="$ac_link"
31103 case "(($ac_try" in
31104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31105 *) ac_try_echo=$ac_try;;
31107 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
31108 $as_echo "$ac_try_echo") >&5
31109 (eval "$ac_link") 2>conftest.er1
31111 grep -v '^ *+' conftest.er1 >conftest.err
31113 cat conftest.err >&5
31114 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31115 (exit $ac_status); } && {
31116 test -z "$ac_c_werror_flag" ||
31117 test ! -s conftest.err
31118 } && test -s conftest$ac_exeext && {
31119 test "$cross_compiling" = yes ||
31120 $as_test_x conftest$ac_exeext
31122 ac_cv_lib_curses_tgetent=yes
31124 $as_echo "$as_me: failed program was
:" >&5
31125 sed 's/^/| /' conftest.$ac_ext >&5
31127 ac_cv_lib_curses_tgetent=no
31130 rm -rf conftest.dSYM
31131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31132 conftest$ac_exeext conftest.$ac_ext
31133 LIBS=$ac_check_lib_save_LIBS
31135 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_curses_tgetent" >&5
31136 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
31137 if test "x
$ac_cv_lib_curses_tgetent" = x""yes; then
31138 bash_cv_termcap_lib=libcurses
31140 { $as_echo "$as_me:$LINENO: checking
for tgetent
in -lncurses" >&5
31141 $as_echo_n "checking
for tgetent
in -lncurses...
" >&6; }
31142 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
31143 $as_echo_n "(cached
) " >&6
31145 ac_check_lib_save_LIBS=$LIBS
31146 LIBS="-lncurses $LIBS"
31147 cat >conftest.$ac_ext <<_ACEOF
31150 cat confdefs.h >>conftest.$ac_ext
31151 cat >>conftest.$ac_ext <<_ACEOF
31152 /* end confdefs.h. */
31154 /* Override any GCC internal prototype to avoid an error.
31155 Use char because int might match the return type of a GCC
31156 builtin and then its argument prototype would still apply. */
31169 rm -f conftest.$ac_objext conftest$ac_exeext
31170 if { (ac_try="$ac_link"
31171 case "(($ac_try" in
31172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31173 *) ac_try_echo=$ac_try;;
31175 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
31176 $as_echo "$ac_try_echo") >&5
31177 (eval "$ac_link") 2>conftest.er1
31179 grep -v '^ *+' conftest.er1 >conftest.err
31181 cat conftest.err >&5
31182 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31183 (exit $ac_status); } && {
31184 test -z "$ac_c_werror_flag" ||
31185 test ! -s conftest.err
31186 } && test -s conftest$ac_exeext && {
31187 test "$cross_compiling" = yes ||
31188 $as_test_x conftest$ac_exeext
31190 ac_cv_lib_ncurses_tgetent=yes
31192 $as_echo "$as_me: failed program was
:" >&5
31193 sed 's/^/| /' conftest.$ac_ext >&5
31195 ac_cv_lib_ncurses_tgetent=no
31198 rm -rf conftest.dSYM
31199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31200 conftest$ac_exeext conftest.$ac_ext
31201 LIBS=$ac_check_lib_save_LIBS
31203 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tgetent" >&5
31204 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
31205 if test "x
$ac_cv_lib_ncurses_tgetent" = x""yes; then
31206 bash_cv_termcap_lib=libncurses
31208 bash_cv_termcap_lib=gnutermcap
31221 if test "X
$_bash_needmsg" = "Xyes
"; then
31222 { $as_echo "$as_me:$LINENO: checking
which library has the termcap functions
" >&5
31223 $as_echo_n "checking
which library has the termcap functions...
" >&6; }
31225 { $as_echo "$as_me:$LINENO: result
: using
$bash_cv_termcap_lib" >&5
31226 $as_echo "using
$bash_cv_termcap_lib" >&6; }
31227 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
31228 LDFLAGS="$LDFLAGS -L.
/lib
/termcap
"
31229 TERMCAP_LIB=".
/lib
/termcap
/libtermcap.a
"
31230 TERMCAP_DEP=".
/lib
/termcap
/libtermcap.a
"
31231 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
31232 TERMCAP_LIB=-ltermcap
31234 elif test $bash_cv_termcap_lib = libtinfo; then
31235 TERMCAP_LIB=-ltinfo
31237 elif test $bash_cv_termcap_lib = libncurses; then
31238 TERMCAP_LIB=-lncurses
31240 elif test $bash_cv_termcap_lib = libc; then
31244 TERMCAP_LIB=-lcurses
31252 { $as_echo "$as_me:$LINENO: checking whether
/dev
/fd is available
" >&5
31253 $as_echo_n "checking whether
/dev
/fd is available...
" >&6; }
31254 if test "${bash_cv_dev_fd+set}" = set; then
31255 $as_echo_n "(cached
) " >&6
31258 if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then
31259 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
31260 if (exec test -r /dev/fd/3 3</dev/null) ; then
31261 bash_cv_dev_fd=standard
31263 bash_cv_dev_fd=absent
31266 if test -z "$bash_cv_dev_fd" ; then
31267 if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then
31268 bash_cv_dev_fd=whacky
31270 bash_cv_dev_fd=absent
31276 { $as_echo "$as_me:$LINENO: result
: $bash_cv_dev_fd" >&5
31277 $as_echo "$bash_cv_dev_fd" >&6; }
31278 if test $bash_cv_dev_fd = "standard
"; then
31279 cat >>confdefs.h <<\_ACEOF
31280 #define HAVE_DEV_FD 1
31283 cat >>confdefs.h <<\_ACEOF
31284 #define DEV_FD_PREFIX "/dev
/fd
/"
31287 elif test $bash_cv_dev_fd = "whacky
"; then
31288 cat >>confdefs.h <<\_ACEOF
31289 #define HAVE_DEV_FD 1
31292 cat >>confdefs.h <<\_ACEOF
31293 #define DEV_FD_PREFIX "/proc
/self
/fd
/"
31298 { $as_echo "$as_me:$LINENO: checking whether
/dev
/stdin stdout stderr are available
" >&5
31299 $as_echo_n "checking whether
/dev
/stdin stdout stderr are available...
" >&6; }
31300 if test "${bash_cv_dev_stdin+set}" = set; then
31301 $as_echo_n "(cached
) " >&6
31303 if test -d /dev/fd && (exec test -r /dev/stdin < /dev/null) ; then
31304 bash_cv_dev_stdin=present
31305 elif test -d /proc/self/fd && (exec test -r /dev/stdin < /dev/null) ; then
31306 bash_cv_dev_stdin=present
31308 bash_cv_dev_stdin=absent
31313 { $as_echo "$as_me:$LINENO: result
: $bash_cv_dev_stdin" >&5
31314 $as_echo "$bash_cv_dev_stdin" >&6; }
31315 if test $bash_cv_dev_stdin = "present
"; then
31316 cat >>confdefs.h <<\_ACEOF
31317 #define HAVE_DEV_STDIN 1
31322 { $as_echo "$as_me:$LINENO: checking
for default
mail directory
" >&5
31323 $as_echo_n "checking
for default
mail directory...
" >&6; }
31324 if test "${bash_cv_mail_dir+set}" = set; then
31325 $as_echo_n "(cached
) " >&6
31327 if test -d /var/mail; then
31328 bash_cv_mail_dir=/var/mail
31329 elif test -d /var/spool/mail; then
31330 bash_cv_mail_dir=/var/spool/mail
31331 elif test -d /usr/mail; then
31332 bash_cv_mail_dir=/usr/mail
31333 elif test -d /usr/spool/mail; then
31334 bash_cv_mail_dir=/usr/spool/mail
31336 bash_cv_mail_dir=unknown
31341 { $as_echo "$as_me:$LINENO: result
: $bash_cv_mail_dir" >&5
31342 $as_echo "$bash_cv_mail_dir" >&6; }
31343 cat >>confdefs.h <<_ACEOF
31344 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
31349 if test "$bash_cv_job_control_missing" = missing; then
31353 if test "$opt_job_control" = yes; then
31354 cat >>confdefs.h <<\_ACEOF
31355 #define JOB_CONTROL 1
31369 case "${host_os}" in
31370 sysv4.2*) cat >>confdefs.h <<\_ACEOF
31374 cat >>confdefs.h <<\_ACEOF
31378 sysv4*) cat >>confdefs.h <<\_ACEOF
31382 sysv5*) cat >>confdefs.h <<\_ACEOF
31386 hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
31387 hpux*) LOCAL_CFLAGS=-DHPUX ;;
31388 dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
31389 isc*) LOCAL_CFLAGS=-Disc386 ;;
31390 rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
31391 darwin*) LOCAL_CFLAGS=-DMACOSX ;;
31392 sco3.2v5*) LOCAL_CFLAGS="-b elf
-DWAITPID_BROKEN -DPATH_MAX=1024" ;;
31393 sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
31394 sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
31395 sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
31396 solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;;
31397 solaris2.8*) LOCAL_CFLAGS=-DSOLARIS ;;
31398 solaris2.9*) LOCAL_CFLAGS=-DSOLARIS ;;
31399 solaris2.10*) LOCAL_CFLAGS=-DSOLARIS ;;
31400 solaris2*) LOCAL_CFLAGS=-DSOLARIS ;;
31401 lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
31402 linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
31403 case "`uname -r`" in
31404 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF
31405 #define PGRP_PIPE 1
31409 *qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;;
31410 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
31411 powerux*) LOCAL_LIBS="-lgen" ;;
31412 cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
31413 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE" ;;
31416 case "${host_os}-${CC}" in
31417 aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
31418 aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
31419 bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
31422 case "${host_os}" in
31424 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf
" ; then
31425 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
31427 freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
31428 dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
31431 case "$host_cpu" in
31432 *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
31435 case "$host_cpu-$host_os" in
31436 ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
31439 case "$host_cpu-$host_vendor-$host_os" in
31440 m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
31441 mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
31445 # Shared object configuration section. These values are generated by
31446 # ${srcdir}/support/shobj-conf
31448 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
31450 { $as_echo "$as_me:$LINENO: checking shared object configuration
for loadable builtins
" >&5
31451 $as_echo_n "checking shared object configuration
for loadable builtins...
" >&6; }
31452 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
31460 { $as_echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
31461 $as_echo "$SHOBJ_STATUS" >&6; }
31464 # try to create a directory tree if the source is elsewhere
31465 # this should be packaged into a script accessible via ${srcdir}/support
31468 *) for d in doc tests support lib examples; do # dirs
31469 test -d $d || mkdir $d
31471 for ld in readline glob tilde malloc sh termcap; do # libdirs
31472 test -d lib/$ld || mkdir lib/$ld
31474 test -d examples/loadables || mkdir examples/loadables # loadable builtins
31475 test -d examples/loadables/perl || mkdir examples/loadables/perl
31480 case "$BUILD_DIR" in
31481 *\ *) BUILD_DIR=`echo "$BUILD_DIR" |
sed 's: :\\\\ :g'` ;;
31485 if test -z "$localedir"; then
31486 localedir='${datarootdir}/locale'
31488 if test -z "$datarootdir"; then
31489 datarootdir='${prefix}/share'
31497 # Some versions of autoconf don't substitute these automatically
31519 #AC_SUBST(ALLOCA_SOURCE)
31520 #AC_SUBST(ALLOCA_OBJECT)
31522 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"
31524 ac_config_commands="$ac_config_commands default"
31526 cat >confcache <<\_ACEOF
31527 # This file is a shell script that caches the results of configure
31528 # tests run on this system so they can be shared between configure
31529 # scripts and configure runs, see configure's option --config-cache.
31530 # It is not useful on other systems. If it contains results you don't
31531 # want to keep, you may remove or edit it.
31533 # config.status only pays attention to the cache file if you give it
31534 # the --recheck option to rerun configure.
31536 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
31537 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31538 # following values.
31542 # The following way of writing the cache mishandles newlines in values,
31543 # but we know of no workaround that is simple, portable, and efficient.
31544 # So, we kill variables containing newlines.
31545 # Ultrix sh set writes to stderr and can't be redirected directly,
31546 # and sets the high bit in the cache file unless we assign to the vars.
31548 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31549 eval ac_val
=\$
$ac_var
31553 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
31554 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31557 _ | IFS | as_nl
) ;; #(
31558 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
31559 *) $as_unset $ac_var ;;
31565 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31566 *${as_nl}ac_space
=\
*)
31567 # `set' does not quote correctly, so add quotes (double-quote
31568 # substitution turns \\\\ into \\, and sed turns \\ into \).
31571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31574 # `set' quotes correctly as required by POSIX, so do not add quotes.
31575 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31584 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31586 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31588 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
31589 if test -w "$cache_file"; then
31590 test "x$cache_file" != "x/dev/null" &&
31591 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
31592 $as_echo "$as_me: updating cache $cache_file" >&6;}
31593 cat confcache
>$cache_file
31595 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
31596 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31601 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
31602 # Let make expand exec_prefix.
31603 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
31605 DEFS
=-DHAVE_CONFIG_H
31609 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
31610 # 1. Remove the extension, and $U if already installed.
31611 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
31612 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
31613 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31614 # will be set to the directory where LIBOBJS objects are built.
31615 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31616 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
31618 LIBOBJS
=$ac_libobjs
31620 LTLIBOBJS
=$ac_ltlibobjs
31625 : ${CONFIG_STATUS=./config.status}
31627 ac_clean_files_save
=$ac_clean_files
31628 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
31629 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31630 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31631 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31633 # Generated by $as_me.
31634 # Run this file to recreate the current configuration.
31635 # Compiler output produced by configure, useful for debugging
31636 # configure, is in config.log if it exists.
31639 ac_cs_recheck=false
31641 SHELL=\${CONFIG_SHELL-$SHELL}
31644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31645 ## --------------------- ##
31646 ## M4sh Initialization. ##
31647 ## --------------------- ##
31649 # Be more Bourne compatible
31650 DUALCASE
=1; export DUALCASE
# for MKS sh
31651 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
31654 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31655 # is contrary to our usage. Disable this feature.
31656 alias -g '${1+"$@"}'='"$@"'
31657 setopt NO_GLOB_SUBST
31659 case `(set -o) 2>/dev/null` in
31660 *posix
*) set -o posix
;;
31669 # Avoid depending upon Character Ranges.
31670 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
31671 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31672 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
31673 as_cr_digits
='0123456789'
31674 as_cr_alnum
=$as_cr_Letters$as_cr_digits
31679 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31680 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31681 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31682 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31683 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31684 as_echo='printf %s
\n'
31685 as_echo_n='printf %s
'
31687 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31688 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
31689 as_echo_n='/usr
/ucb
/echo -n'
31691 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31692 as_echo_n_body='eval
31696 expr "X$arg" : "X\\(.*\\)$as_nl";
31697 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31699 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
31701 export as_echo_n_body
31702 as_echo_n='sh
-c $as_echo_n_body as_echo
'
31704 export as_echo_body
31705 as_echo='sh
-c $as_echo_body as_echo
'
31708 # The user is always right.
31709 if test "${PATH_SEPARATOR+set}" != set; then
31711 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31712 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31717 # Support unset when possible.
31718 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31726 # We need space, tab and new line, in precisely that order. Quoting is
31727 # there to prevent editors from complaining about space-tab.
31728 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31729 # splitting by setting IFS to empty value.)
31732 # Find who we are. Look in the path if we contain no directory separator.
31734 *[\\/]* ) as_myself=$0 ;;
31735 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31736 for as_dir in $PATH
31739 test -z "$as_dir" && as_dir=.
31740 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31746 # We did not find ourselves, most probably we were run as `sh COMMAND'
31747 # in which case we are not to be found in the path.
31748 if test "x$as_myself" = x
; then
31751 if test ! -f "$as_myself"; then
31752 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31753 { (exit 1); exit 1; }
31756 # Work around bugs in pre-3.0 UWIN ksh.
31757 for as_var
in ENV MAIL MAILPATH
31758 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
31770 # Required to use basename.
31771 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
31772 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
31778 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31779 as_basename
=basename
31785 # Name of the executable.
31786 as_me
=`$as_basename -- "$0" ||
31787 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31788 X"$0" : 'X\(//\)$' \| \
31789 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31791 sed '/^.*\/\([^/][^/]*\)\/*$/{
31810 as_lineno_1
=$LINENO
31811 as_lineno_2
=$LINENO
31812 test "x$as_lineno_1" != "x$as_lineno_2" &&
31813 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
31815 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31816 # uniformly replaced by the line number. The first 'sed' inserts a
31817 # line-number line after each line using $LINENO; the second 'sed'
31818 # does the real work. The second script uses 'N' to pair each
31819 # line-number line with the line containing $LINENO, and appends
31820 # trailing '-' during substitution so that $LINENO is not a special
31821 # case at line end.
31822 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31823 # scripts with optimization help from Paolo Bonzini. Blame Lee
31824 # E. McMahon (1931-1989) for sed's syntax. :-)
31836 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31839 ' >$as_me.lineno
&&
31840 chmod +x
"$as_me.lineno" ||
31841 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31842 { (exit 1); exit 1; }; }
31844 # Don't try to exec as it changes $[0], causing all sort of problems
31845 # (the dirname of $[0] is not the place where we might find the
31846 # original and so on. Autoconf is especially sensitive to this).
31847 .
"./$as_me.lineno"
31848 # Exit status is that of the last command.
31853 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
31859 ECHO_C
= ECHO_N
= ECHO_T
=
31860 case `echo -n x` in
31862 case `echo 'x\c'` in
31863 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
31869 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
31870 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
31876 rm -f conf$$ conf$$.exe conf$$.
file
31877 if test -d conf$$.dir
; then
31878 rm -f conf$$.dir
/conf$$.
file
31881 mkdir conf$$.dir
2>/dev
/null
31883 if (echo >conf$$.
file) 2>/dev
/null
; then
31884 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
31886 # ... but there are two gotchas:
31887 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31888 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31889 # In both cases, we have to default to `cp -p'.
31890 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
31892 elif ln conf$$.
file conf$$
2>/dev
/null
; then
31900 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
31901 rmdir conf$$.dir
2>/dev
/null
31903 if mkdir
-p .
2>/dev
/null
; then
31906 test -d .
/-p && rmdir .
/-p
31910 if test -x / >/dev
/null
2>&1; then
31911 as_test_x
='test -x'
31913 if ls -dL / >/dev
/null
2>&1; then
31920 if test -d "$1"; then
31926 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31927 ???[sx]*):;;*)false;;esac;fi
31931 as_executable_p
=$as_test_x
31933 # Sed expression to map a string onto a valid CPP name.
31934 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31936 # Sed expression to map a string onto a valid variable name.
31937 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31942 # Save the log message, to keep $[0] and so on meaningful, and to
31943 # report actual input values of CONFIG_FILES etc. instead of their
31944 # values after options handling.
31946 This file was extended by bash $as_me 4.2-devel, which was
31947 generated by GNU Autoconf 2.63. Invocation command line was
31949 CONFIG_FILES = $CONFIG_FILES
31950 CONFIG_HEADERS = $CONFIG_HEADERS
31951 CONFIG_LINKS = $CONFIG_LINKS
31952 CONFIG_COMMANDS = $CONFIG_COMMANDS
31955 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31960 case $ac_config_files in *"
31961 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
31964 case $ac_config_headers in *"
31965 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
31969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31970 # Files that config.status was made for.
31971 config_files="$ac_config_files"
31972 config_headers="$ac_config_headers"
31973 config_commands="$ac_config_commands"
31977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31979 \`$as_me' instantiates files from templates according to the
31980 current configuration.
31982 Usage: $0 [OPTION]... [FILE]...
31984 -h, --help print this help, then exit
31985 -V, --version print version number and configuration settings, then exit
31986 -q, --quiet, --silent
31987 do not print progress messages
31988 -d, --debug don't remove temporary files
31989 --recheck update $as_me by reconfiguring in the same conditions
31990 --file=FILE[:TEMPLATE]
31991 instantiate the configuration file FILE
31992 --header=FILE[:TEMPLATE]
31993 instantiate the configuration header FILE
31995 Configuration files:
31998 Configuration headers:
32001 Configuration commands:
32004 Report bugs to <bug-autoconf@gnu.org>."
32007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32009 bash config.status 4.2-devel
32010 configured by $0, generated by GNU Autoconf 2.63,
32011 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32013 Copyright (C) 2008 Free Software Foundation, Inc.
32014 This config.status script is free software; the Free Software Foundation
32015 gives unlimited permission to copy, distribute and modify it."
32020 test -n "\$AWK" || AWK=awk
32023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32024 # The default lists apply if the user does not specify any file.
32030 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
32031 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
32042 # Handling of the options.
32043 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
32045 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
32046 $as_echo "$ac_cs_version"; exit ;;
32047 --debug |
--debu |
--deb |
--de |
--d |
-d )
32049 --file |
--fil |
--fi |
--f )
32052 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32054 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
32055 ac_need_defaults
=false
;;
32056 --header |
--heade |
--head |
--hea )
32059 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32061 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
32062 ac_need_defaults
=false
;;
32064 # Conflict between --help and --header
32065 { $as_echo "$as_me: error: ambiguous option: $1
32066 Try \`$0 --help' for more information." >&2
32067 { (exit 1); exit 1; }; };;
32068 --help |
--hel |
-h )
32069 $as_echo "$ac_cs_usage"; exit ;;
32070 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
32071 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
32074 # This is an error.
32075 -*) { $as_echo "$as_me: error: unrecognized option: $1
32076 Try \`$0 --help' for more information." >&2
32077 { (exit 1); exit 1; }; } ;;
32079 *) ac_config_targets
="$ac_config_targets $1"
32080 ac_need_defaults
=false
;;
32086 ac_configure_extra_args
=
32088 if $ac_cs_silent; then
32090 ac_configure_extra_args
="$ac_configure_extra_args --silent"
32094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32095 if \$ac_cs_recheck; then
32096 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32098 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32099 CONFIG_SHELL='$SHELL'
32100 export CONFIG_SHELL
32105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32109 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32110 ## Running $as_me. ##
32116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32120 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32121 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
32123 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32124 # Capture the value of LINGUAS because we need it to compute CATALOGS.
32125 LINGUAS="${LINGUAS-%UNSET%}"
32130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32132 # Handling of arguments.
32133 for ac_config_target
in $ac_config_targets
32135 case $ac_config_target in
32136 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
32137 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
32138 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
32139 "builtins/Makefile") CONFIG_FILES
="$CONFIG_FILES builtins/Makefile" ;;
32140 "lib/readline/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/readline/Makefile" ;;
32141 "lib/glob/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/glob/Makefile" ;;
32142 "lib/intl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/intl/Makefile" ;;
32143 "lib/malloc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/malloc/Makefile" ;;
32144 "lib/sh/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/sh/Makefile" ;;
32145 "lib/termcap/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/termcap/Makefile" ;;
32146 "lib/tilde/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/tilde/Makefile" ;;
32147 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
32148 "support/Makefile") CONFIG_FILES
="$CONFIG_FILES support/Makefile" ;;
32149 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
32150 "examples/loadables/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/loadables/Makefile" ;;
32151 "examples/loadables/perl/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
32152 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
32154 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32155 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32156 { (exit 1); exit 1; }; };;
32161 # If the user did not use the arguments to specify the items to instantiate,
32162 # then the envvar interface is used. Set only those that are not.
32163 # We use the long form for the default assignment because of an extremely
32164 # bizarre bug on SunOS 4.1.3.
32165 if $ac_need_defaults; then
32166 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
32167 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
32168 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
32171 # Have a temporary directory for convenience. Make it in the build tree
32172 # simply because there is no reason against having it here, and in addition,
32173 # creating and moving files from /tmp can sometimes cause problems.
32174 # Hook for its removal unless debugging.
32175 # Note that there is a small window in which the directory will not be cleaned:
32176 # after its creation but before its name has been assigned to `$tmp'.
32180 trap 'exit_status=$?
32181 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32183 trap '{ (exit 1); exit 1; }' 1 2 13 15
32185 # Create a (secure) tmp directory for tmp files.
32188 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32189 test -n "$tmp" && test -d "$tmp"
32192 tmp
=.
/conf$$
-$RANDOM
32193 (umask 077 && mkdir
"$tmp")
32196 $as_echo "$as_me: cannot create a temporary directory in ." >&2
32197 { (exit 1); exit 1; }
32200 # Set up the scripts for CONFIG_FILES section.
32201 # No need to generate them if there are no CONFIG_FILES.
32202 # This happens for instance with `./config.status config.h'.
32203 if test -n "$CONFIG_FILES"; then
32207 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32208 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32211 ac_cs_awk_cr
=$ac_cr
32214 echo 'BEGIN {' >"$tmp/subs1.awk" &&
32219 echo "cat >conf$$subs.awk <<_ACEOF" &&
32220 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32222 } >conf$$subs.sh ||
32223 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
32224 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
32225 { (exit 1); exit 1; }; }
32226 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32228 for ac_last_try in false false false false false :; do
32229 . ./conf$$subs.sh ||
32230 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
32231 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
32232 { (exit 1); exit 1; }; }
32234 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
32235 if test $ac_delim_n = $ac_delim_num; then
32237 elif $ac_last_try; then
32238 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
32239 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
32240 { (exit 1); exit 1; }; }
32242 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
32245 rm -f conf$$subs.sh
32247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32248 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
32252 s/^/S["/; s
/!.
*/"]=/
32262 s/\(.\{148\}\).*/\1/
32264 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
32269 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
32276 s/\(.\{148\}\).*/\1/
32278 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
32282 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
32287 ' <conf$$subs.awk | sed '
32292 ' >>$CONFIG_STATUS || ac_write_fail=1
32293 rm -f conf$$subs.awk
32294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32296 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
32297 for (key in S) S_is_set[key] = 1
32303 nfields = split(line, field, "@
")
32305 len = length(field[1])
32306 for (i = 2; i < nfields; i++) {
32308 keylen = length(key)
32309 if (S_is_set[key]) {
32311 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32312 len += length(value) + length(field[++i])
32323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32324 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32325 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
32328 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
32329 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
32330 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
32331 { (exit 1); exit 1; }; }
32334 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32335 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
32336 # trailing colons and then remove the whole line if VPATH becomes empty
32337 # (actually we leave an empty line to preserve line numbers).
32338 if test "x
$srcdir" = x.; then
32339 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32340 s/:*\$(srcdir):*/:/
32341 s/:*\${srcdir}:*/:/
32343 s/^\([^=]*=[ ]*\):*/\1/
32349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32350 fi # test -n "$CONFIG_FILES"
32352 # Set up the scripts for CONFIG_HEADERS section.
32353 # No need to generate them if there are no CONFIG_HEADERS.
32354 # This happens for instance with `./config.status Makefile'.
32355 if test -n "$CONFIG_HEADERS"; then
32356 cat >"$tmp/defines.
awk" <<\_ACAWK ||
32360 # Transform confdefs.h into an awk script `defines.awk', embedded as
32361 # here-document in config.status, that substitutes the proper values into
32362 # config.h.in to produce config.h.
32364 # Create a delimiter string that does not exist in confdefs.h, to ease
32365 # handling of long lines.
32367 for ac_last_try in false false :; do
32368 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
32369 if test -z "$ac_t"; then
32371 elif $ac_last_try; then
32372 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
32373 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
32374 { (exit 1); exit 1; }; }
32376 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
32380 # For the awk script, D is an array of macro values keyed by name,
32381 # likewise P contains macro parameters if any. Preserve backslash
32382 # newline sequences.
32384 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32386 s/.\{148\}/&'"$ac_delim"'/g
32389 s/^[ ]*#[ ]*define[ ][ ]*/ /
32396 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
32398 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
32402 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
32403 D["\
1"]=" \
3\\\\\\n
"\\/p
32405 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
32410 s/.\{148\}/&'"$ac_delim"'/g
32415 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
32418 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
32420 ' <confdefs.h | sed '
32421 s/'"$ac_delim"'/"\\\
32422 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32425 for (key in D) D_is_set[key] = 1
32428 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32430 split(line, arg, " ")
32431 if (arg[1] == "#") {
32435 defundef
= substr
(arg
[1], 2)
32438 split(mac1
, mac2
, "(") #)
32440 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
32441 if (D_is_set
[macro
]) {
32442 # Preserve the white space surrounding the "#".
32443 print prefix
"define", macro P
[macro
] D
[macro
]
32446 # Replace #undef with comments. This is necessary, for example,
32447 # in the case of _POSIX_SOURCE, which is predefined and required
32448 # on some systems where configure will not decide to define it.
32449 if (defundef
== "undef") {
32450 print
"/*", prefix defundef
, macro
, "*/"
32458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32459 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
32460 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
32461 { (exit 1); exit 1; }; }
32462 fi # test -n "$CONFIG_HEADERS"
32465 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32470 :[FHLC
]) ac_mode
=$ac_tag; continue;;
32472 case $ac_mode$ac_tag in
32474 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
32475 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
32476 { (exit 1); exit 1; }; };;
32477 :[FH
]-) ac_tag
=-:-;;
32478 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
32495 -) ac_f
="$tmp/stdin";;
32496 *) # Look for the file first in the build tree, then in the source tree
32497 # (if the path is not absolute). The absolute path cannot be DOS-style,
32498 # because $ac_f cannot contain `:'.
32502 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
32504 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32505 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32506 { (exit 1); exit 1; }; };;
32508 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32509 ac_file_inputs
="$ac_file_inputs '$ac_f'"
32512 # Let's still pretend it is `configure' which instantiates (i.e., don't
32513 # use $as_me), people would be surprised to read:
32514 # /* config.h. Generated by config.status. */
32515 configure_input
='Generated from '`
32516 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32518 if test x
"$ac_file" != x-
; then
32519 configure_input
="$ac_file. $configure_input"
32520 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
32521 $as_echo "$as_me: creating $ac_file" >&6;}
32523 # Neutralize special characters interpreted by sed in replacement strings.
32524 case $configure_input in #(
32525 *\
&* |
*\|
* |
*\\* )
32526 ac_sed_conf_input
=`$as_echo "$configure_input" |
32527 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32528 *) ac_sed_conf_input
=$configure_input;;
32532 *:-:* |
*:-) cat >"$tmp/stdin" \
32533 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32534 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32535 { (exit 1); exit 1; }; } ;;
32540 ac_dir
=`$as_dirname -- "$ac_file" ||
32541 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32542 X"$ac_file" : 'X\(//\)[^/]' \| \
32543 X"$ac_file" : 'X\(//\)$' \| \
32544 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32545 $as_echo X"$ac_file" |
32546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32550 /^X\(\/\/\)[^/].*/{
32565 -*) as_dir
=.
/$as_dir;;
32567 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
32571 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32572 *) as_qdir
=$as_dir;;
32574 as_dirs
="'$as_qdir' $as_dirs"
32575 as_dir
=`$as_dirname -- "$as_dir" ||
32576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32577 X"$as_dir" : 'X\(//\)[^/]' \| \
32578 X"$as_dir" : 'X\(//\)$' \| \
32579 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32580 $as_echo X"$as_dir" |
32581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32585 /^X\(\/\/\)[^/].*/{
32598 test -d "$as_dir" && break
32600 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
32601 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32602 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
32603 { (exit 1); exit 1; }; }; }
32607 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32609 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32610 # A ".." for each directory in $ac_dir_suffix.
32611 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32612 case $ac_top_builddir_sub in
32613 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32614 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
32617 ac_abs_top_builddir
=$ac_pwd
32618 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
32619 # for backward compatibility:
32620 ac_top_builddir
=$ac_top_build_prefix
32623 .
) # We are building in place.
32625 ac_top_srcdir
=$ac_top_builddir_sub
32626 ac_abs_top_srcdir
=$ac_pwd ;;
32627 [\\/]* | ?
:[\\/]* ) # Absolute name.
32628 ac_srcdir
=$srcdir$ac_dir_suffix;
32629 ac_top_srcdir
=$srcdir
32630 ac_abs_top_srcdir
=$srcdir ;;
32631 *) # Relative name.
32632 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
32633 ac_top_srcdir
=$ac_top_build_prefix$srcdir
32634 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
32636 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
32646 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
32647 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
32651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32652 # If the template does not know about datarootdir, expand it.
32653 # FIXME: This hack should be removed a few years after 2.60.
32654 ac_datarootdir_hack
=; ac_datarootdir_seen
=
32667 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32668 *datarootdir
*) ac_datarootdir_seen
=yes;;
32669 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
32670 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32671 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32674 ac_datarootdir_hack='
32675 s&@datadir@&$datadir&g
32676 s&@docdir@&$docdir&g
32677 s&@infodir@&$infodir&g
32678 s&@localedir@&$localedir&g
32679 s&@mandir@&$mandir&g
32680 s&\\\${datarootdir}&$datarootdir&g' ;;
32684 # Neutralize VPATH when `$srcdir' = `.'.
32685 # Shell code in configure.ac might set extrasub.
32686 # FIXME: do we really want to maintain this feature?
32687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32688 ac_sed_extra="$ac_vpsub
32691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32693 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
32694 s|@configure_input@|
$ac_sed_conf_input|
;t t
32695 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
32696 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
32697 s
&@srcdir@
&$ac_srcdir&;t t
32698 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
32699 s
&@top_srcdir@
&$ac_top_srcdir&;t t
32700 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
32701 s
&@builddir@
&$ac_builddir&;t t
32702 s
&@abs_builddir@
&$ac_abs_builddir&;t t
32703 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
32704 s
&@INSTALL@
&$ac_INSTALL&;t t
32705 $ac_datarootdir_hack
32707 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
32708 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
32709 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
32710 { (exit 1); exit 1; }; }
32712 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32713 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
32714 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
32715 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
32716 which seems to be undefined. Please make sure it is defined." >&5
32717 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
32718 which seems to be undefined. Please make sure it is defined." >&2;}
32722 -) cat "$tmp/out" && rm -f "$tmp/out";;
32723 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32725 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32726 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32727 { (exit 1); exit 1; }; }
32733 if test x"$ac_file" != x-; then
32735 $as_echo "/* $configure_input */" \
32736 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32737 } >"$tmp/config.h" \
32738 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32739 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32740 { (exit 1); exit 1; }; }
32741 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
32742 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32743 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32746 mv "$tmp/config.h" "$ac_file" \
32747 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32748 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32749 { (exit 1); exit 1; }; }
32752 $as_echo "/* $configure_input */" \
32753 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
32754 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
32755 $as_echo "$as_me: error: could not create -" >&2;}
32756 { (exit 1); exit 1; }; }
32760 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
32761 $as_echo "$as_me: executing $ac_file commands" >&6;}
32766 case $ac_file$ac_mode in
32768 for ac_file in $CONFIG_FILES; do
32769 # Support "outfile[:infile[:infile...]]"
32771 *:*) ac_file=`echo "$ac_file"|sed 's
%:.
*%%'` ;;
32773 # PO directories have a Makefile.in generated from Makefile.in.in.
32774 case "$ac_file" in */Makefile.in)
32775 # Adjust a relative srcdir.
32776 ac_dir=`echo "$ac_file"|sed 's
%/[^
/][^
/]*$
%%'`
32777 ac_dir_suffix="/`echo "$ac_dir"|sed 's
%^\.
/%%'`"
32778 ac_dots=`echo "$ac_dir_suffix"|sed 's
%/[^
/]*%..
/%g
'`
32779 # In autoconf-2.13 it is called $ac_given_srcdir.
32780 # In autoconf-2.50 it is called $srcdir.
32781 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32782 case "$ac_given_srcdir" in
32783 .) top_srcdir=`echo $ac_dots|sed 's
%/$
%%'` ;;
32784 /*) top_srcdir="$ac_given_srcdir" ;;
32785 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32787 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32788 rm -f "$ac_dir/POTFILES"
32789 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32790 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32791 POMAKEFILEDEPS="POTFILES.in"
32792 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
32793 # on $ac_dir but don't depend on user-specified configuration
32795 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32796 # The LINGUAS file contains the set of available languages.
32797 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32798 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
32800 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32801 # Hide the ALL_LINGUAS assigment from automake.
32802 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32803 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
32805 # The set of available languages was given in configure.in.
32806 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32808 case "$ac_given_srcdir" in
32810 *) srcdirpre
='$(srcdir)/' ;;
32816 for lang
in $ALL_LINGUAS; do
32817 POFILES
="$POFILES $srcdirpre$lang.po"
32818 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
32819 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
32820 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
32822 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32823 # environment variable.
32825 if test -n "$ALL_LINGUAS"; then
32826 for presentlang
in $ALL_LINGUAS; do
32828 if test "%UNSET%" != "$LINGUAS"; then
32829 desiredlanguages
="$LINGUAS"
32831 desiredlanguages
="$ALL_LINGUAS"
32833 for desiredlang
in $desiredlanguages; do
32834 # Use the presentlang catalog if desiredlang is
32835 # a. equal to presentlang, or
32836 # b. a variant of presentlang (because in this case,
32837 # presentlang can be used as a fallback for messages
32838 # which are not translated in the desiredlang catalog).
32839 case "$desiredlang" in
32840 "$presentlang"*) useit
=yes;;
32843 if test $useit = yes; then
32844 INST_LINGUAS
="$INST_LINGUAS $presentlang"
32849 if test -n "$INST_LINGUAS"; then
32850 for lang
in $INST_LINGUAS; do
32851 CATALOGS
="$CATALOGS $lang.gmo"
32854 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
32855 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"
32856 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
32857 if test -f "$f"; then
32859 *.orig |
*.bak |
*~
) ;;
32860 *) cat "$f" >> "$ac_dir/Makefile" ;;
32869 # Makefile uses this timestamp file to record whether config.h is up to date.
32870 echo timestamp
> stamp-h
32877 { (exit 0); exit 0; }
32879 chmod +x
$CONFIG_STATUS
32880 ac_clean_files
=$ac_clean_files_save
32882 test $ac_write_fail = 0 ||
32883 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
32884 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
32885 { (exit 1); exit 1; }; }
32888 # configure is writing to config.log, and then calls config.status.
32889 # config.status does its own redirection, appending to config.log.
32890 # Unfortunately, on DOS this fails, as config.log is still kept open
32891 # by configure, so config.status won't be able to write to it; its
32892 # output is simply discarded. So we exec the FD to /dev/null,
32893 # effectively closing config.log, so it can be properly (re)opened and
32894 # appended to by config.status. When coming back to configure, we
32895 # need to make the FD available again.
32896 if test "$no_create" != yes; then
32898 ac_config_status_args
=
32899 test "$silent" = yes &&
32900 ac_config_status_args
="$ac_config_status_args --quiet"
32902 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
32904 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32905 # would make configure fail if this is the last instruction.
32906 $ac_cs_success ||
{ (exit 1); exit 1; }
32908 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
32909 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32910 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}