2 # From configure.in for Bash 4.0, version 4.009.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 for bash 4.0-rc1.
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.0-rc1'
601 PACKAGE_STRING
='bash 4.0-rc1'
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
826 enable_net_redirections
827 enable_process_substitution
829 enable_prompt_string_decoding
833 enable_separate_helpfiles
834 enable_single_help_strings
835 enable_strict_posix_default
836 enable_usg_echo_default
837 enable_xpg_echo_default
846 with_included_gettext
849 ac_precious_vars
='build_alias
863 # Initialize some variables set by options.
865 ac_init_version
=false
866 ac_unrecognized_opts
=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
877 program_transform_name
=s
,x
,x
,
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir
='${exec_prefix}/bin'
892 sbindir
='${exec_prefix}/sbin'
893 libexecdir
='${exec_prefix}/libexec'
894 datarootdir
='${prefix}/share'
895 datadir
='${datarootdir}'
896 sysconfdir
='${prefix}/etc'
897 sharedstatedir
='${prefix}/com'
898 localstatedir
='${prefix}/var'
899 includedir
='${prefix}/include'
900 oldincludedir
='/usr/include'
901 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir
='${datarootdir}/info'
907 libdir
='${exec_prefix}/lib'
908 localedir
='${datarootdir}/locale'
909 mandir
='${datarootdir}/man'
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\
$ac_option
923 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 # Accept the important Cygnus configure options, so we can diagnose typos.
929 case $ac_dashdash$ac_option in
933 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
935 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
938 -build |
--build |
--buil |
--bui |
--bu)
939 ac_prev
=build_alias
;;
940 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
941 build_alias
=$ac_optarg ;;
943 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
944 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
945 ac_prev
=cache_file
;;
946 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
947 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
948 cache_file
=$ac_optarg ;;
951 cache_file
=config.cache
;;
953 -datadir |
--datadir |
--datadi |
--datad)
955 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
956 datadir
=$ac_optarg ;;
958 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
959 |
--dataroo |
--dataro |
--datar)
960 ac_prev
=datarootdir
;;
961 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
962 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
963 datarootdir
=$ac_optarg ;;
965 -disable-* |
--disable-*)
966 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
969 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
970 { (exit 1); exit 1; }; }
971 ac_useropt_orig
=$ac_useropt
972 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
977 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978 ac_unrecognized_sep
=', ';;
980 eval enable_
$ac_useropt=no
;;
982 -docdir |
--docdir |
--docdi |
--doc |
--do)
984 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
987 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
989 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
992 -enable-* |
--enable-*)
993 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
996 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
997 { (exit 1); exit 1; }; }
998 ac_useropt_orig
=$ac_useropt
999 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1002 "enable_
$ac_useropt"
1004 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep
=', ';;
1007 eval enable_
$ac_useropt=\
$ac_optarg ;;
1009 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1010 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1011 |
--exec |
--exe |
--ex)
1012 ac_prev
=exec_prefix
;;
1013 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1014 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1015 |
--exec=* |
--exe=* |
--ex=*)
1016 exec_prefix
=$ac_optarg ;;
1018 -gas |
--gas |
--ga |
--g)
1019 # Obsolete; use --with-gas.
1022 -help |
--help |
--hel |
--he |
-h)
1023 ac_init_help
=long
;;
1024 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1025 ac_init_help
=recursive
;;
1026 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1027 ac_init_help
=short
;;
1029 -host |
--host |
--hos |
--ho)
1030 ac_prev
=host_alias
;;
1031 -host=* |
--host=* |
--hos=* |
--ho=*)
1032 host_alias
=$ac_optarg ;;
1034 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1036 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1038 htmldir
=$ac_optarg ;;
1040 -includedir |
--includedir |
--includedi |
--included |
--include \
1041 |
--includ |
--inclu |
--incl |
--inc)
1042 ac_prev
=includedir
;;
1043 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1044 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1045 includedir
=$ac_optarg ;;
1047 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1049 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1050 infodir
=$ac_optarg ;;
1052 -libdir |
--libdir |
--libdi |
--libd)
1054 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1055 libdir
=$ac_optarg ;;
1057 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1058 |
--libexe |
--libex |
--libe)
1059 ac_prev
=libexecdir
;;
1060 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1061 |
--libexe=* |
--libex=* |
--libe=*)
1062 libexecdir
=$ac_optarg ;;
1064 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1065 ac_prev
=localedir
;;
1066 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1067 localedir
=$ac_optarg ;;
1069 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1070 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1071 ac_prev
=localstatedir
;;
1072 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1073 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1074 localstatedir
=$ac_optarg ;;
1076 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1078 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1079 mandir
=$ac_optarg ;;
1081 -nfp |
--nfp |
--nf)
1082 # Obsolete; use --without-fp.
1085 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1086 |
--no-cr |
--no-c |
-n)
1089 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1090 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1093 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1094 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1095 |
--oldin |
--oldi |
--old |
--ol |
--o)
1096 ac_prev
=oldincludedir
;;
1097 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1098 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1099 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1100 oldincludedir
=$ac_optarg ;;
1102 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1104 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1105 prefix
=$ac_optarg ;;
1107 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1108 |
--program-pre |
--program-pr |
--program-p)
1109 ac_prev
=program_prefix
;;
1110 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1111 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1112 program_prefix
=$ac_optarg ;;
1114 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1115 |
--program-suf |
--program-su |
--program-s)
1116 ac_prev
=program_suffix
;;
1117 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1118 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1119 program_suffix
=$ac_optarg ;;
1121 -program-transform-name |
--program-transform-name \
1122 |
--program-transform-nam |
--program-transform-na \
1123 |
--program-transform-n |
--program-transform- \
1124 |
--program-transform |
--program-transfor \
1125 |
--program-transfo |
--program-transf \
1126 |
--program-trans |
--program-tran \
1127 |
--progr-tra |
--program-tr |
--program-t)
1128 ac_prev
=program_transform_name
;;
1129 -program-transform-name=* |
--program-transform-name=* \
1130 |
--program-transform-nam=* |
--program-transform-na=* \
1131 |
--program-transform-n=* |
--program-transform-=* \
1132 |
--program-transform=* |
--program-transfor=* \
1133 |
--program-transfo=* |
--program-transf=* \
1134 |
--program-trans=* |
--program-tran=* \
1135 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1136 program_transform_name
=$ac_optarg ;;
1138 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1140 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1141 pdfdir
=$ac_optarg ;;
1143 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1145 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1148 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1149 |
-silent |
--silent |
--silen |
--sile |
--sil)
1152 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1154 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1156 sbindir
=$ac_optarg ;;
1158 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1159 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1160 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1162 ac_prev
=sharedstatedir
;;
1163 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1164 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1165 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1167 sharedstatedir
=$ac_optarg ;;
1169 -site |
--site |
--sit)
1171 -site=* |
--site=* |
--sit=*)
1174 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1176 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1177 srcdir
=$ac_optarg ;;
1179 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1180 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1181 ac_prev
=sysconfdir
;;
1182 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1183 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1184 sysconfdir
=$ac_optarg ;;
1186 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1187 ac_prev
=target_alias
;;
1188 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1189 target_alias
=$ac_optarg ;;
1191 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1194 -version |
--version |
--versio |
--versi |
--vers |
-V)
1195 ac_init_version
=: ;;
1198 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1201 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_useropt_orig
=$ac_useropt
1204 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1209 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210 ac_unrecognized_sep
=', ';;
1212 eval with_
$ac_useropt=\
$ac_optarg ;;
1214 -without-* |
--without-*)
1215 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1218 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_useropt_orig
=$ac_useropt
1221 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1226 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227 ac_unrecognized_sep
=', ';;
1229 eval with_
$ac_useropt=no
;;
1232 # Obsolete; use --with-x.
1235 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1236 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1237 ac_prev
=x_includes
;;
1238 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1239 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1240 x_includes
=$ac_optarg ;;
1242 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1243 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1244 ac_prev
=x_libraries
;;
1245 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1246 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1247 x_libraries
=$ac_optarg ;;
1249 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251 { (exit 1); exit 1; }; }
1255 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1258 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259 { (exit 1); exit 1; }; }
1260 eval $ac_envvar=\
$ac_optarg
1261 export $ac_envvar ;;
1264 # FIXME: should be removed in autoconf 3.0.
1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274 if test -n "$ac_prev"; then
1275 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1276 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1277 { (exit 1); exit 1; }; }
1280 if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1283 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1284 { (exit 1); exit 1; }; } ;;
1285 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1289 # Check all directory arguments for consistency.
1290 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291 datadir sysconfdir sharedstatedir localstatedir includedir \
1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293 libdir localedir mandir
1295 eval ac_val
=\$
$ac_var
1296 # Remove trailing slashes.
1299 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300 eval $ac_var=\
$ac_val;;
1302 # Be sure to have absolute directory names.
1304 [\\/$
]* | ?
:[\\/]* ) continue;;
1305 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1307 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308 { (exit 1); exit 1; }; }
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1316 target
=$target_alias
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x
; then
1320 if test "x$build_alias" = x
; then
1321 cross_compiling
=maybe
1322 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323 If a cross compiler is detected then cross compile mode will be used." >&2
1324 elif test "x$build_alias" != "x$host_alias"; then
1330 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1332 test "$silent" = yes && exec 6>/dev
/null
1335 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di
=`ls -di .` &&
1337 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1338 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1339 { (exit 1); exit 1; }; }
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1342 { (exit 1); exit 1; }; }
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted
=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir
=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 $as_echo X"$as_myself" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1377 ac_srcdir_defaulted
=no
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1381 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382 { (exit 1); exit 1; }; }
1384 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1387 { (exit 1); exit 1; }; }
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1397 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 for ac_var
in $ac_precious_vars; do
1400 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1402 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1407 # Report the --help message.
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1413 \`configure' configures bash 4.0-rc1 to adapt to many kinds of systems.
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1420 Defaults for the options are specified in brackets.
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1444 For better control, use the options below.
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/bash]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1471 --build=BUILD configure
for building on BUILD
[guessed
]
1472 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1476 if test -n "$ac_init_help"; then
1477 case $ac_init_help in
1478 short | recursive
) echo "Configuration of bash 4.0-rc1:";;
1483 --disable-option-checking ignore unrecognized
--enable/--with options
1484 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1485 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1486 --enable-minimal-config a minimal sh-like configuration
1487 --enable-alias enable shell aliases
1488 --enable-arith-for-command
1489 enable arithmetic
for command
1490 --enable-array-variables
1491 include shell array variables
1492 --enable-bang-history turn on csh-style
history substitution
1493 --enable-brace-expansion
1494 include brace expansion
1495 --enable-casemod-attributes
1496 include case-modifying variable attributes
1497 --enable-casemod-expansions
1498 include case-modifying word expansions
1499 --enable-command-timing enable the
time reserved word and
command timing
1500 --enable-cond-command enable the conditional
command
1501 --enable-cond-regexp enable extended regular expression matching
in
1502 conditional commands
1503 --enable-coprocesses enable coprocess support and the coproc reserved
1505 --enable-debugger enable support
for bash debugger
1506 --enable-directory-stack
1507 enable builtins pushd
/popd
/dirs
1508 --enable-disabled-builtins
1509 allow disabled builtins to still be invoked
1510 --enable-dparen-arithmetic
1511 include
((...
)) command
1512 --enable-extended-glob include ksh-style extended pattern matching
1513 --enable-help-builtin include the
help builtin
1514 --enable-history turn on
command history
1515 --enable-job-control enable job control features
1516 --enable-multibyte enable multibyte characters
if OS supports them
1517 --enable-net-redirections
1518 enable /dev
/tcp
/host
/port redirection
1519 --enable-process-substitution
1520 enable process substitution
1521 --enable-progcomp enable programmable completion and the complete
1523 --enable-prompt-string-decoding
1524 turn on escape character decoding
in prompts
1525 --enable-readline turn on
command line editing
1526 --enable-restricted enable a restricted shell
1527 --enable-select include
select command
1528 --enable-separate-helpfiles
1529 use external files
for help builtin documentation
1530 --enable-single-help-strings
1531 store
help documentation as a single string to ease
1533 --enable-strict-posix-default
1534 configure bash to be posix-conformant by default
1535 --enable-usg-echo-default
1536 a synonym
for --enable-xpg-echo-default
1537 --enable-xpg-echo-default
1538 make the
echo builtin expand escape sequences by
1540 --enable-mem-scramble scramble memory on calls to malloc and free
1541 --enable-profiling allow profiling with gprof
1542 --enable-static-link link bash statically
, for use as a root shell
1543 --disable-largefile omit support
for large files
1544 --disable-nls do not use Native Language Support
1545 --disable-rpath do not hardcode runtime library paths
1548 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1549 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1550 --with-lispdir override the default lisp directory
1551 --with-afs if you are running AFS
1552 --with-bash-malloc use the Bash version of malloc
1553 --with-curses use the curses library instead of the termcap
1555 --with-gnu-malloc synonym
for --with-bash-malloc
1556 --with-installed-readline
1557 use a version of the readline library that is
1559 --with-purecov configure to postprocess with pure coverage
1560 --with-purify configure to postprocess with purify
1561 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1562 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1563 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1564 --with-included-gettext use the GNU gettext library included here
1565 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1566 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1568 Some influential environment variables
:
1570 location of bash debugger initialization
file
1571 CC C compiler
command
1572 CFLAGS C compiler flags
1573 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1574 nonstandard directory
<lib dir
>
1575 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1576 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1577 you have headers
in a nonstandard directory
<include dir
>
1579 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1580 the first program found out of: `bison
-y', `byacc', `yacc'.
1581 YFLAGS The list of arguments that will be passed by default to $YACC.
1582 This script will default YFLAGS to the empty string to avoid a
1583 default value of `-d' given by some make applications.
1585 Use these variables to override the choices made by `configure' or to
help
1586 it to
find libraries and programs with nonstandard names
/locations.
1588 Report bugs to
<bug-bash@gnu.org
>.
1593 if test "$ac_init_help" = "recursive"; then
1594 # If there are subdirs, report their specific --help.
1595 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1596 test -d "$ac_dir" ||
1597 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1602 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1604 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1605 # A ".." for each directory in $ac_dir_suffix.
1606 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1607 case $ac_top_builddir_sub in
1608 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1609 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1612 ac_abs_top_builddir
=$ac_pwd
1613 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1614 # for backward compatibility:
1615 ac_top_builddir
=$ac_top_build_prefix
1618 .
) # We are building in place.
1620 ac_top_srcdir
=$ac_top_builddir_sub
1621 ac_abs_top_srcdir
=$ac_pwd ;;
1622 [\\/]* | ?
:[\\/]* ) # Absolute name.
1623 ac_srcdir
=$srcdir$ac_dir_suffix;
1624 ac_top_srcdir
=$srcdir
1625 ac_abs_top_srcdir
=$srcdir ;;
1627 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1629 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1631 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1633 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1634 # Check for guested configure.
1635 if test -f "$ac_srcdir/configure.gnu"; then
1637 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1638 elif test -f "$ac_srcdir/configure"; then
1640 $SHELL "$ac_srcdir/configure" --help=recursive
1642 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1644 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1648 test -n "$ac_init_help" && exit $ac_status
1649 if $ac_init_version; then
1651 bash configure
4.0-rc1
1652 generated by GNU Autoconf
2.63
1654 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1655 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1656 This configure
script is free software
; the Free Software Foundation
1657 gives unlimited permission to copy
, distribute and modify it.
1661 cat >config.log
<<_ACEOF
1662 This file contains any messages produced by compilers while
1663 running configure, to aid debugging if configure makes a mistake.
1665 It was created by bash $as_me 4.0-rc1, which was
1666 generated by GNU Autoconf 2.63. Invocation command line was
1678 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1679 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1680 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1681 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1682 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1684 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1685 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1687 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1688 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1689 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1690 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1691 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1692 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1693 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1701 test -z "$as_dir" && as_dir
=.
1702 $as_echo "PATH: $as_dir"
1718 # Keep a trace of the command line.
1719 # Strip out --no-create and --no-recursion so they do not pile up.
1720 # Strip out --silent because we don't want to record it for future runs.
1721 # Also quote any args containing shell meta-characters.
1722 # Make two passes to allow for proper duplicate-argument suppression.
1726 ac_must_keep_next
=false
1732 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1733 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1734 |
-silent |
--silent |
--silen |
--sile |
--sil)
1737 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1740 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1742 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1743 if test $ac_must_keep_next = true
; then
1744 ac_must_keep_next
=false
# Got value, back to normal.
1747 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1748 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1749 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1750 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1751 case "$ac_configure_args0 " in
1752 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1755 -* ) ac_must_keep_next
=true
;;
1758 ac_configure_args
="$ac_configure_args '$ac_arg'"
1763 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1764 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1766 # When interrupted or exit'd, cleanup temporary files, and complete
1767 # config.log. We remove comments because anyway the quotes in there
1768 # would cause problems or look ugly.
1769 # WARNING: Use '\'' to represent an apostrophe within the trap.
1770 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1771 trap 'exit_status=$?
1772 # Save into config.log some information that might help in debugging.
1777 ## ---------------- ##
1778 ## Cache variables. ##
1779 ## ---------------- ##
1782 # The following way of writing the cache mishandles newlines in values,
1784 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1785 eval ac_val=\$$ac_var
1789 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1790 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1793 _ | IFS | as_nl) ;; #(
1794 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1795 *) $as_unset $ac_var ;;
1800 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1801 *${as_nl}ac_space=\ *)
1803 "s/'\''/'\''\\\\'\'''\''/g;
1804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1807 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1815 ## ----------------- ##
1816 ## Output variables. ##
1817 ## ----------------- ##
1820 for ac_var in $ac_subst_vars
1822 eval ac_val=\$$ac_var
1824 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826 $as_echo "$ac_var='\''$ac_val'\''"
1830 if test -n "$ac_subst_files"; then
1832 ## ------------------- ##
1833 ## File substitutions. ##
1834 ## ------------------- ##
1837 for ac_var
in $ac_subst_files
1839 eval ac_val
=\$
$ac_var
1841 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843 $as_echo "$ac_var='\''$ac_val'\''"
1848 if test -s confdefs.h; then
1858 test "$ac_signal" != 0 &&
1859 $as_echo "$as_me: caught signal $ac_signal"
1860 $as_echo "$as_me: exit $exit_status"
1862 rm -f core *.core core.conftest.* &&
1863 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1866 for ac_signal
in 1 2 13 15; do
1867 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1871 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1872 rm -f -r conftest
* confdefs.h
1874 # Predefined preprocessor variables.
1876 cat >>confdefs.h
<<_ACEOF
1877 #define PACKAGE_NAME "$PACKAGE_NAME"
1881 cat >>confdefs.h
<<_ACEOF
1882 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1886 cat >>confdefs.h
<<_ACEOF
1887 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1891 cat >>confdefs.h
<<_ACEOF
1892 #define PACKAGE_STRING "$PACKAGE_STRING"
1896 cat >>confdefs.h
<<_ACEOF
1897 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1901 # Let the site file select an alternate cache file if it wants to.
1902 # Prefer an explicitly selected file to automatically selected ones.
1905 if test -n "$CONFIG_SITE"; then
1906 ac_site_file1
=$CONFIG_SITE
1907 elif test "x$prefix" != xNONE
; then
1908 ac_site_file1
=$prefix/share
/config.site
1909 ac_site_file2
=$prefix/etc
/config.site
1911 ac_site_file1
=$ac_default_prefix/share
/config.site
1912 ac_site_file2
=$ac_default_prefix/etc
/config.site
1914 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1916 test "x$ac_site_file" = xNONE
&& continue
1917 if test -r "$ac_site_file"; then
1918 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1919 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1920 sed 's/^/| /' "$ac_site_file" >&5
1925 if test -r "$cache_file"; then
1926 # Some versions of bash will fail to source /dev/null (special
1927 # files actually), so we avoid doing that.
1928 if test -f "$cache_file"; then
1929 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1930 $as_echo "$as_me: loading cache $cache_file" >&6;}
1932 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1933 *) .
"./$cache_file";;
1937 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1938 $as_echo "$as_me: creating cache $cache_file" >&6;}
1942 ac_header_list
="$ac_header_list sys/time.h"
1943 ac_header_list
="$ac_header_list unistd.h"
1944 ac_func_list
="$ac_func_list alarm"
1945 ac_func_list
="$ac_func_list fpurge"
1946 ac_func_list
="$ac_func_list __fpurge"
1947 # Check that the precious variables saved in the cache have kept the same
1949 ac_cache_corrupted
=false
1950 for ac_var
in $ac_precious_vars; do
1951 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1952 eval ac_new_set
=\
$ac_env_${ac_var}_set
1953 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1954 eval ac_new_val
=\
$ac_env_${ac_var}_value
1955 case $ac_old_set,$ac_new_set in
1957 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1958 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1959 ac_cache_corrupted
=: ;;
1961 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1962 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1963 ac_cache_corrupted
=: ;;
1966 if test "x$ac_old_val" != "x$ac_new_val"; then
1967 # differences in whitespace do not lead to failure.
1968 ac_old_val_w
=`echo x $ac_old_val`
1969 ac_new_val_w
=`echo x $ac_new_val`
1970 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1971 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1972 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1973 ac_cache_corrupted
=:
1975 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1976 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1977 eval $ac_var=\
$ac_old_val
1979 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1980 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1981 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1982 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1985 # Pass precious variables to config.status.
1986 if test "$ac_new_set" = set; then
1988 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1989 *) ac_arg
=$ac_var=$ac_new_val ;;
1991 case " $ac_configure_args " in
1992 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1993 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1997 if $ac_cache_corrupted; then
1998 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2000 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2001 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2002 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2003 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2004 { (exit 1); exit 1; }; }
2032 ac_cpp
='$CPP $CPPFLAGS'
2033 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2034 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2035 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2043 for ac_dir
in .
/support
"$srcdir"/.
/support
; do
2044 if test -f "$ac_dir/install-sh"; then
2046 ac_install_sh
="$ac_aux_dir/install-sh -c"
2048 elif test -f "$ac_dir/install.sh"; then
2050 ac_install_sh
="$ac_aux_dir/install.sh -c"
2052 elif test -f "$ac_dir/shtool"; then
2054 ac_install_sh
="$ac_aux_dir/shtool install -c"
2058 if test -z "$ac_aux_dir"; then
2059 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&5
2060 $as_echo "$as_me: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&2;}
2061 { (exit 1); exit 1; }; }
2064 # These three variables are undocumented and unsupported,
2065 # and are intended to be withdrawn in a future Autoconf release.
2066 # They can cause serious problems if a builder's source tree is in a directory
2067 # whose full name contains unusual characters.
2068 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2069 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2070 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2073 ac_config_headers
="$ac_config_headers config.h"
2079 case "$RELSTATUS" in
2080 alp
*|bet
*|dev
*|rc
*|maint
*) DEBUG
='-DDEBUG' MALLOC_DEBUG
='-DMALLOC_DEBUG' ;;
2081 *) DEBUG
= MALLOC_DEBUG
= ;;
2084 # Make sure we can run config.sub.
2085 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2086 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2087 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2088 { (exit 1); exit 1; }; }
2090 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2091 $as_echo_n "checking build system type... " >&6; }
2092 if test "${ac_cv_build+set}" = set; then
2093 $as_echo_n "(cached) " >&6
2095 ac_build_alias
=$build_alias
2096 test "x$ac_build_alias" = x
&&
2097 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2098 test "x$ac_build_alias" = x
&&
2099 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2100 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2101 { (exit 1); exit 1; }; }
2102 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2103 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2104 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2105 { (exit 1); exit 1; }; }
2108 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2109 $as_echo "$ac_cv_build" >&6; }
2110 case $ac_cv_build in
2112 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2113 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2114 { (exit 1); exit 1; }; };;
2117 ac_save_IFS
=$IFS; IFS
='-'
2123 # Remember, the first character of IFS is used to create $*,
2124 # except with old shells:
2127 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2130 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2131 $as_echo_n "checking host system type... " >&6; }
2132 if test "${ac_cv_host+set}" = set; then
2133 $as_echo_n "(cached) " >&6
2135 if test "x$host_alias" = x
; then
2136 ac_cv_host
=$ac_cv_build
2138 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2139 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2140 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2141 { (exit 1); exit 1; }; }
2145 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2146 $as_echo "$ac_cv_host" >&6; }
2149 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2150 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2151 { (exit 1); exit 1; }; };;
2154 ac_save_IFS
=$IFS; IFS
='-'
2160 # Remember, the first character of IFS is used to create $*,
2161 # except with old shells:
2164 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2173 opt_with_installed_readline
=no
2177 case "${host_cpu}-${host_os}" in
2178 alpha
*-*) opt_bash_malloc
=no
;; # alpha running osf/1 or linux
2179 *[Cc
]ray
*-*) opt_bash_malloc
=no
;; # Crays
2180 *-osf1*) opt_bash_malloc
=no
;; # other osf/1 machines
2181 sparc-svr4
*) opt_bash_malloc
=no
;; # sparc SVR4, SVR4.2
2182 sparc-netbsd
*) opt_bash_malloc
=no
;; # needs 8-byte alignment
2183 mips-irix6
*) opt_bash_malloc
=no
;; # needs 8-byte alignment
2184 m68k-sysv
) opt_bash_malloc
=no
;; # fixes file descriptor leak in closedir
2185 sparc-linux
*) opt_bash_malloc
=no
;; # sparc running linux; requires ELF
2186 #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
2187 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
2188 *-openbsd*) opt_bash_malloc
=no
;; # they claim it needs eight-bit alignment
2189 *-aix*) opt_bash_malloc
=no
;; # AIX machines
2190 *-nextstep*) opt_bash_malloc
=no
;; # NeXT machines running NeXTstep
2191 *-macos*) opt_bash_malloc
=no
;; # Apple MacOS X
2192 *-rhapsody*) opt_bash_malloc
=no
;; # Apple Rhapsody (MacOS X)
2193 *-darwin*) opt_bash_malloc
=no
;; # Apple Darwin (MacOS X)
2194 *-dgux*) opt_bash_malloc
=no
;; # DG/UX machines
2195 *-qnx*) opt_bash_malloc
=no
;; # QNX 4.2, QNX 6.x
2196 *-machten4) opt_bash_malloc
=no
;; # MachTen 4.x
2197 *-bsdi2.1|
*-bsdi3.?
) opt_bash_malloc
=no
; : ${CC:=shlicc2} ;; # for loadable builtins
2198 *-beos*) opt_bash_malloc
=no
;; # they say it's suitable
2199 *-cygwin*) opt_bash_malloc
=no
;; # Cygnus's CYGWIN environment
2200 *-opennt*|
*-interix*) opt_bash_malloc
=no
;; # Interix, now owned by Microsoft
2203 # memory scrambling on free()
2204 case "${host_os}" in
2205 sco3.2v5
*|sco3.2v4
*) opt_memscramble
=no
;;
2206 *) opt_memscramble
=yes ;;
2210 # Check whether --with-lispdir was given.
2211 if test "${with_lispdir+set}" = set; then
2212 withval
=$with_lispdir; lispdir
="$withval"
2213 { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5
2214 $as_echo_n "checking where .elc files should go... " >&6; }
2215 { $as_echo "$as_me:$LINENO: result: $lispdir" >&5
2216 $as_echo "$lispdir" >&6; }
2219 # If set to t, that means we are running in a shell under Emacs.
2220 # If you have an Emacs named "t", then use the full path.
2221 test x
"$EMACS" = xt
&& EMACS
=
2222 for ac_prog
in emacs xemacs
2224 # Extract the first word of "$ac_prog", so it can be a program name with args.
2225 set dummy
$ac_prog; ac_word
=$2
2226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 $as_echo_n "checking for $ac_word... " >&6; }
2228 if test "${ac_cv_prog_EMACS+set}" = set; then
2229 $as_echo_n "(cached) " >&6
2231 if test -n "$EMACS"; then
2232 ac_cv_prog_EMACS
="$EMACS" # Let the user override the test.
2234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2238 test -z "$as_dir" && as_dir
=.
2239 for ac_exec_ext
in '' $ac_executable_extensions; do
2240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2241 ac_cv_prog_EMACS
="$ac_prog"
2242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2251 EMACS
=$ac_cv_prog_EMACS
2252 if test -n "$EMACS"; then
2253 { $as_echo "$as_me:$LINENO: result: $EMACS" >&5
2254 $as_echo "$EMACS" >&6; }
2256 { $as_echo "$as_me:$LINENO: result: no" >&5
2257 $as_echo "no" >&6; }
2261 test -n "$EMACS" && break
2263 test -n "$EMACS" || EMACS
="no"
2265 if test $EMACS != "no"; then
2266 if test x
${lispdir+set} != xset
; then
2267 { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5
2268 $as_echo_n "checking where .elc files should go... " >&6; }
2269 if test "${am_cv_lispdir+set}" = set; then
2270 $as_echo_n "(cached) " >&6
2272 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;}'`
2273 if test -z "$am_cv_lispdir"; then
2274 am_cv_lispdir
='${datadir}/emacs/site-lisp'
2278 { $as_echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2279 $as_echo "$am_cv_lispdir" >&6; }
2280 lispdir
="$am_cv_lispdir"
2291 # Check whether --with-afs was given.
2292 if test "${with_afs+set}" = set; then
2293 withval
=$with_afs; opt_afs
=$withval
2297 # Check whether --with-bash-malloc was given.
2298 if test "${with_bash_malloc+set}" = set; then
2299 withval
=$with_bash_malloc; opt_bash_malloc
=$withval
2303 # Check whether --with-curses was given.
2304 if test "${with_curses+set}" = set; then
2305 withval
=$with_curses; opt_curses
=$withval
2309 # Check whether --with-gnu-malloc was given.
2310 if test "${with_gnu_malloc+set}" = set; then
2311 withval
=$with_gnu_malloc; opt_bash_malloc
=$withval
2315 # Check whether --with-installed-readline was given.
2316 if test "${with_installed_readline+set}" = set; then
2317 withval
=$with_installed_readline; opt_with_installed_readline
=$withval
2321 # Check whether --with-purecov was given.
2322 if test "${with_purecov+set}" = set; then
2323 withval
=$with_purecov; opt_purecov
=$withval
2327 # Check whether --with-purify was given.
2328 if test "${with_purify+set}" = set; then
2329 withval
=$with_purify; opt_purify
=$withval
2333 if test "$opt_bash_malloc" = yes; then
2334 MALLOC_TARGET
=malloc
2337 MALLOC_LIB
='-lmalloc'
2338 MALLOC_LIBRARY
='$(ALLOC_LIBDIR)/libmalloc.a'
2339 MALLOC_LDFLAGS
='-L$(ALLOC_LIBDIR)'
2340 MALLOC_DEP
='$(MALLOC_LIBRARY)'
2342 cat >>confdefs.h
<<\_ACEOF
2343 #define USING_BASH_MALLOC 1
2353 if test "$opt_purify" = yes; then
2355 cat >>confdefs.h
<<\_ACEOF
2356 #define DISABLE_MALLOC_WRAPPERS 1
2363 if test "$opt_purecov" = yes; then
2364 PURIFY
="${PURIFY}purecov"
2367 if test "$opt_afs" = yes; then
2368 cat >>confdefs.h
<<\_ACEOF
2374 if test "$opt_curses" = yes; then
2378 if test -z "${DEBUGGER_START_FILE}"; then
2379 DEBUGGER_START_FILE
='${datadir}/bashdb/bashdb-main.inc'
2382 opt_minimal_config
=no
2388 opt_bang_history
=yes
2391 opt_process_subst
=yes
2392 opt_prompt_decoding
=yes
2395 opt_array_variables
=yes
2396 opt_dparen_arith
=yes
2397 opt_extended_glob
=yes
2398 opt_brace_expansion
=yes
2399 opt_disabled_builtins
=no
2400 opt_command_timing
=yes
2403 opt_cond_command
=yes
2406 opt_arith_for_command
=yes
2409 opt_separate_help
=no
2412 opt_single_longdoc_strings
=yes
2413 opt_casemod_attrs
=yes
2414 opt_casemod_expansions
=yes
2419 # Check whether --enable-minimal-config was given.
2420 if test "${enable_minimal_config+set}" = set; then
2421 enableval
=$enable_minimal_config; opt_minimal_config
=$enableval
2425 if test $opt_minimal_config = yes; then
2426 opt_job_control
=no opt_alias
=no opt_readline
=no
2427 opt_history
=no opt_bang_history
=no opt_dirstack
=no
2428 opt_restricted
=no opt_process_subst
=no opt_prompt_decoding
=no
2429 opt_select
=no opt_help
=no opt_array_variables
=no opt_dparen_arith
=no
2430 opt_brace_expansion
=no opt_disabled_builtins
=no opt_command_timing
=no
2431 opt_extended_glob
=no opt_cond_command
=no opt_arith_for_command
=no
2432 opt_net_redirs
=no opt_progcomp
=no opt_separate_help
=no
2433 opt_multibyte
=yes opt_cond_regexp
=no opt_coproc
=no
2434 opt_casemod_attrs
=no opt_casemod_expansions
=no
2437 # Check whether --enable-alias was given.
2438 if test "${enable_alias+set}" = set; then
2439 enableval
=$enable_alias; opt_alias
=$enableval
2442 # Check whether --enable-arith-for-command was given.
2443 if test "${enable_arith_for_command+set}" = set; then
2444 enableval
=$enable_arith_for_command; opt_arith_for_command
=$enableval
2447 # Check whether --enable-array-variables was given.
2448 if test "${enable_array_variables+set}" = set; then
2449 enableval
=$enable_array_variables; opt_array_variables
=$enableval
2452 # Check whether --enable-bang-history was given.
2453 if test "${enable_bang_history+set}" = set; then
2454 enableval
=$enable_bang_history; opt_bang_history
=$enableval
2457 # Check whether --enable-brace-expansion was given.
2458 if test "${enable_brace_expansion+set}" = set; then
2459 enableval
=$enable_brace_expansion; opt_brace_expansion
=$enableval
2462 # Check whether --enable-casemod-attributes was given.
2463 if test "${enable_casemod_attributes+set}" = set; then
2464 enableval
=$enable_casemod_attributes; opt_casemod_attrs
=$enableval
2467 # Check whether --enable-casemod-expansions was given.
2468 if test "${enable_casemod_expansions+set}" = set; then
2469 enableval
=$enable_casemod_expansions; opt_casemod_expansions
=$enableval
2472 # Check whether --enable-command-timing was given.
2473 if test "${enable_command_timing+set}" = set; then
2474 enableval
=$enable_command_timing; opt_command_timing
=$enableval
2477 # Check whether --enable-cond-command was given.
2478 if test "${enable_cond_command+set}" = set; then
2479 enableval
=$enable_cond_command; opt_cond_command
=$enableval
2482 # Check whether --enable-cond-regexp was given.
2483 if test "${enable_cond_regexp+set}" = set; then
2484 enableval
=$enable_cond_regexp; opt_cond_regexp
=$enableval
2487 # Check whether --enable-coprocesses was given.
2488 if test "${enable_coprocesses+set}" = set; then
2489 enableval
=$enable_coprocesses; opt_coproc
=$enableval
2492 # Check whether --enable-debugger was given.
2493 if test "${enable_debugger+set}" = set; then
2494 enableval
=$enable_debugger; opt_debugger
=$enableval
2497 # Check whether --enable-directory-stack was given.
2498 if test "${enable_directory_stack+set}" = set; then
2499 enableval
=$enable_directory_stack; opt_dirstack
=$enableval
2502 # Check whether --enable-disabled-builtins was given.
2503 if test "${enable_disabled_builtins+set}" = set; then
2504 enableval
=$enable_disabled_builtins; opt_disabled_builtins
=$enableval
2507 # Check whether --enable-dparen-arithmetic was given.
2508 if test "${enable_dparen_arithmetic+set}" = set; then
2509 enableval
=$enable_dparen_arithmetic; opt_dparen_arith
=$enableval
2512 # Check whether --enable-extended-glob was given.
2513 if test "${enable_extended_glob+set}" = set; then
2514 enableval
=$enable_extended_glob; opt_extended_glob
=$enableval
2517 # Check whether --enable-help-builtin was given.
2518 if test "${enable_help_builtin+set}" = set; then
2519 enableval
=$enable_help_builtin; opt_help
=$enableval
2522 # Check whether --enable-history was given.
2523 if test "${enable_history+set}" = set; then
2524 enableval
=$enable_history; opt_history
=$enableval
2527 # Check whether --enable-job-control was given.
2528 if test "${enable_job_control+set}" = set; then
2529 enableval
=$enable_job_control; opt_job_control
=$enableval
2532 # Check whether --enable-multibyte was given.
2533 if test "${enable_multibyte+set}" = set; then
2534 enableval
=$enable_multibyte; opt_multibyte
=$enableval
2537 # Check whether --enable-net-redirections was given.
2538 if test "${enable_net_redirections+set}" = set; then
2539 enableval
=$enable_net_redirections; opt_net_redirs
=$enableval
2542 # Check whether --enable-process-substitution was given.
2543 if test "${enable_process_substitution+set}" = set; then
2544 enableval
=$enable_process_substitution; opt_process_subst
=$enableval
2547 # Check whether --enable-progcomp was given.
2548 if test "${enable_progcomp+set}" = set; then
2549 enableval
=$enable_progcomp; opt_progcomp
=$enableval
2552 # Check whether --enable-prompt-string-decoding was given.
2553 if test "${enable_prompt_string_decoding+set}" = set; then
2554 enableval
=$enable_prompt_string_decoding; opt_prompt_decoding
=$enableval
2557 # Check whether --enable-readline was given.
2558 if test "${enable_readline+set}" = set; then
2559 enableval
=$enable_readline; opt_readline
=$enableval
2562 # Check whether --enable-restricted was given.
2563 if test "${enable_restricted+set}" = set; then
2564 enableval
=$enable_restricted; opt_restricted
=$enableval
2567 # Check whether --enable-select was given.
2568 if test "${enable_select+set}" = set; then
2569 enableval
=$enable_select; opt_select
=$enableval
2572 # Check whether --enable-separate-helpfiles was given.
2573 if test "${enable_separate_helpfiles+set}" = set; then
2574 enableval
=$enable_separate_helpfiles; opt_separate_help
=$enableval
2577 # Check whether --enable-single-help-strings was given.
2578 if test "${enable_single_help_strings+set}" = set; then
2579 enableval
=$enable_single_help_strings; opt_single_longdoc_strings
=$enableval
2582 # Check whether --enable-strict-posix-default was given.
2583 if test "${enable_strict_posix_default+set}" = set; then
2584 enableval
=$enable_strict_posix_default; opt_strict_posix
=$enableval
2587 # Check whether --enable-usg-echo-default was given.
2588 if test "${enable_usg_echo_default+set}" = set; then
2589 enableval
=$enable_usg_echo_default; opt_xpg_echo
=$enableval
2592 # Check whether --enable-xpg-echo-default was given.
2593 if test "${enable_xpg_echo_default+set}" = set; then
2594 enableval
=$enable_xpg_echo_default; opt_xpg_echo
=$enableval
2598 # Check whether --enable-mem-scramble was given.
2599 if test "${enable_mem_scramble+set}" = set; then
2600 enableval
=$enable_mem_scramble; opt_memscramble
=$enableval
2603 # Check whether --enable-profiling was given.
2604 if test "${enable_profiling+set}" = set; then
2605 enableval
=$enable_profiling; opt_profiling
=$enableval
2608 # Check whether --enable-static-link was given.
2609 if test "${enable_static_link+set}" = set; then
2610 enableval
=$enable_static_link; opt_static_link
=$enableval
2616 if test $opt_alias = yes; then
2617 cat >>confdefs.h
<<\_ACEOF
2622 if test $opt_dirstack = yes; then
2623 cat >>confdefs.h
<<\_ACEOF
2624 #define PUSHD_AND_POPD 1
2628 if test $opt_restricted = yes; then
2629 cat >>confdefs.h
<<\_ACEOF
2630 #define RESTRICTED_SHELL 1
2634 if test $opt_process_subst = yes; then
2635 cat >>confdefs.h
<<\_ACEOF
2636 #define PROCESS_SUBSTITUTION 1
2640 if test $opt_prompt_decoding = yes; then
2641 cat >>confdefs.h
<<\_ACEOF
2642 #define PROMPT_STRING_DECODE 1
2646 if test $opt_select = yes; then
2647 cat >>confdefs.h
<<\_ACEOF
2648 #define SELECT_COMMAND 1
2652 if test $opt_help = yes; then
2653 cat >>confdefs.h
<<\_ACEOF
2654 #define HELP_BUILTIN 1
2658 if test $opt_array_variables = yes; then
2659 cat >>confdefs.h
<<\_ACEOF
2660 #define ARRAY_VARS 1
2664 if test $opt_dparen_arith = yes; then
2665 cat >>confdefs.h
<<\_ACEOF
2666 #define DPAREN_ARITHMETIC 1
2670 if test $opt_brace_expansion = yes; then
2671 cat >>confdefs.h
<<\_ACEOF
2672 #define BRACE_EXPANSION 1
2676 if test $opt_disabled_builtins = yes; then
2677 cat >>confdefs.h
<<\_ACEOF
2678 #define DISABLED_BUILTINS 1
2682 if test $opt_command_timing = yes; then
2683 cat >>confdefs.h
<<\_ACEOF
2684 #define COMMAND_TIMING 1
2688 if test $opt_xpg_echo = yes ; then
2689 cat >>confdefs.h
<<\_ACEOF
2690 #define DEFAULT_ECHO_TO_XPG 1
2694 if test $opt_strict_posix = yes; then
2695 cat >>confdefs.h
<<\_ACEOF
2696 #define STRICT_POSIX 1
2700 if test $opt_extended_glob = yes ; then
2701 cat >>confdefs.h
<<\_ACEOF
2702 #define EXTENDED_GLOB 1
2706 if test $opt_cond_command = yes ; then
2707 cat >>confdefs.h
<<\_ACEOF
2708 #define COND_COMMAND 1
2712 if test $opt_cond_regexp = yes ; then
2713 cat >>confdefs.h
<<\_ACEOF
2714 #define COND_REGEXP 1
2718 if test $opt_coproc = yes; then
2719 cat >>confdefs.h
<<\_ACEOF
2720 #define COPROCESS_SUPPORT 1
2724 if test $opt_arith_for_command = yes; then
2725 cat >>confdefs.h
<<\_ACEOF
2726 #define ARITH_FOR_COMMAND 1
2730 if test $opt_net_redirs = yes; then
2731 cat >>confdefs.h
<<\_ACEOF
2732 #define NETWORK_REDIRECTIONS 1
2736 if test $opt_progcomp = yes; then
2737 cat >>confdefs.h
<<\_ACEOF
2738 #define PROGRAMMABLE_COMPLETION 1
2742 if test $opt_multibyte = no
; then
2743 cat >>confdefs.h
<<\_ACEOF
2744 #define NO_MULTIBYTE_SUPPORT 1
2748 if test $opt_debugger = yes; then
2749 cat >>confdefs.h
<<\_ACEOF
2754 if test $opt_casemod_attrs = yes; then
2755 cat >>confdefs.h
<<\_ACEOF
2756 #define CASEMOD_ATTRS 1
2760 if test $opt_casemod_expansions = yes; then
2761 cat >>confdefs.h
<<\_ACEOF
2762 #define CASEMOD_EXPANSIONS 1
2767 if test $opt_memscramble = yes; then
2768 cat >>confdefs.h
<<\_ACEOF
2769 #define MEMSCRAMBLE 1
2774 if test "$opt_minimal_config" = yes; then
2775 TESTSCRIPT
=run-minimal
2780 HELPDIR
= HELPDIRDEFINE
= HELPINSTALL
=
2781 if test "$opt_separate_help" != no
; then
2782 if test "$opt_separate_help" = "yes" ; then
2783 HELPDIR
='${datadir}/bash'
2785 HELPDIR
=$opt_separate_help
2787 HELPDIRDEFINE
='-H ${HELPDIR}'
2788 HELPINSTALL
='install-help'
2791 if test "$opt_single_longdoc_strings" != "yes"; then
2813 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
2817 ac_cpp
='$CPP $CPPFLAGS'
2818 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2819 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2820 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2821 if test -n "$ac_tool_prefix"; then
2822 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2823 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2824 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_CC+set}" = set; then
2827 $as_echo_n "(cached) " >&6
2829 if test -n "$CC"; then
2830 ac_cv_prog_CC
="$CC" # Let the user override the test.
2832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir
=.
2837 for ac_exec_ext
in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2840 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 if test -n "$CC"; then
2851 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2852 $as_echo "$CC" >&6; }
2854 { $as_echo "$as_me:$LINENO: result: no" >&5
2855 $as_echo "no" >&6; }
2860 if test -z "$ac_cv_prog_CC"; then
2862 # Extract the first word of "gcc", so it can be a program name with args.
2863 set dummy gcc
; ac_word
=$2
2864 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2867 $as_echo_n "(cached) " >&6
2869 if test -n "$ac_ct_CC"; then
2870 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2876 test -z "$as_dir" && as_dir
=.
2877 for ac_exec_ext
in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 ac_cv_prog_ac_ct_CC
="gcc"
2880 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2890 if test -n "$ac_ct_CC"; then
2891 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2892 $as_echo "$ac_ct_CC" >&6; }
2894 { $as_echo "$as_me:$LINENO: result: no" >&5
2895 $as_echo "no" >&6; }
2898 if test "x$ac_ct_CC" = x
; then
2901 case $cross_compiling:$ac_tool_warned in
2903 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2905 ac_tool_warned
=yes ;;
2913 if test -z "$CC"; then
2914 if test -n "$ac_tool_prefix"; then
2915 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2916 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2917 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if test "${ac_cv_prog_CC+set}" = set; then
2920 $as_echo_n "(cached) " >&6
2922 if test -n "$CC"; then
2923 ac_cv_prog_CC
="$CC" # Let the user override the test.
2925 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2929 test -z "$as_dir" && as_dir
=.
2930 for ac_exec_ext
in '' $ac_executable_extensions; do
2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2933 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 if test -n "$CC"; then
2944 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2945 $as_echo "$CC" >&6; }
2947 { $as_echo "$as_me:$LINENO: result: no" >&5
2948 $as_echo "no" >&6; }
2954 if test -z "$CC"; then
2955 # Extract the first word of "cc", so it can be a program name with args.
2956 set dummy cc
; ac_word
=$2
2957 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if test "${ac_cv_prog_CC+set}" = set; then
2960 $as_echo_n "(cached) " >&6
2962 if test -n "$CC"; then
2963 ac_cv_prog_CC
="$CC" # Let the user override the test.
2966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2970 test -z "$as_dir" && as_dir
=.
2971 for ac_exec_ext
in '' $ac_executable_extensions; do
2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2974 ac_prog_rejected
=yes
2978 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 if test $ac_prog_rejected = yes; then
2986 # We found a bogon in the path, so make sure we never use it.
2987 set dummy
$ac_cv_prog_CC
2989 if test $# != 0; then
2990 # We chose a different compiler from the bogus one.
2991 # However, it has the same basename, so the bogon will be chosen
2992 # first if we set CC to just the basename; use the full file name.
2994 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3000 if test -n "$CC"; then
3001 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3002 $as_echo "$CC" >&6; }
3004 { $as_echo "$as_me:$LINENO: result: no" >&5
3005 $as_echo "no" >&6; }
3010 if test -z "$CC"; then
3011 if test -n "$ac_tool_prefix"; then
3012 for ac_prog
in cl.exe
3014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3015 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3016 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if test "${ac_cv_prog_CC+set}" = set; then
3019 $as_echo_n "(cached) " >&6
3021 if test -n "$CC"; then
3022 ac_cv_prog_CC
="$CC" # Let the user override the test.
3024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3028 test -z "$as_dir" && as_dir
=.
3029 for ac_exec_ext
in '' $ac_executable_extensions; do
3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3032 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 if test -n "$CC"; then
3043 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3044 $as_echo "$CC" >&6; }
3046 { $as_echo "$as_me:$LINENO: result: no" >&5
3047 $as_echo "no" >&6; }
3051 test -n "$CC" && break
3054 if test -z "$CC"; then
3056 for ac_prog
in cl.exe
3058 # Extract the first word of "$ac_prog", so it can be a program name with args.
3059 set dummy
$ac_prog; ac_word
=$2
3060 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3063 $as_echo_n "(cached) " >&6
3065 if test -n "$ac_ct_CC"; then
3066 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3072 test -z "$as_dir" && as_dir
=.
3073 for ac_exec_ext
in '' $ac_executable_extensions; do
3074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3075 ac_cv_prog_ac_ct_CC
="$ac_prog"
3076 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3086 if test -n "$ac_ct_CC"; then
3087 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3088 $as_echo "$ac_ct_CC" >&6; }
3090 { $as_echo "$as_me:$LINENO: result: no" >&5
3091 $as_echo "no" >&6; }
3095 test -n "$ac_ct_CC" && break
3098 if test "x$ac_ct_CC" = x
; then
3101 case $cross_compiling:$ac_tool_warned in
3103 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3105 ac_tool_warned
=yes ;;
3114 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3116 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3117 See \`config.log' for more details." >&5
3118 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3119 See \`config.log' for more details." >&2;}
3120 { (exit 1); exit 1; }; }; }
3122 # Provide some information about the compiler.
3123 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3126 { (ac_try
="$ac_compiler --version >&5"
3128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3132 $as_echo "$ac_try_echo") >&5
3133 (eval "$ac_compiler --version >&5") 2>&5
3135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }
3137 { (ac_try="$ac_compiler -v >&5"
3139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3140 *) ac_try_echo
=$ac_try;;
3142 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3143 $as_echo "$ac_try_echo") >&5
3144 (eval "$ac_compiler -v >&5") 2>&5
3146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }
3148 { (ac_try
="$ac_compiler -V >&5"
3150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3154 $as_echo "$ac_try_echo") >&5
3155 (eval "$ac_compiler -V >&5") 2>&5
3157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }
3160 cat >conftest.$ac_ext <<_ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3175 ac_clean_files_save=$ac_clean_files
3176 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3177 # Try to create an executable without -o first, disregard a.out.
3178 # It will help us diagnose broken compilers, and finding out an intuition
3180 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3181 $as_echo_n "checking for C compiler default output file name... " >&6; }
3182 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3184 # The possible output files:
3185 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3188 for ac_file in $ac_files
3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3192 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3197 if { (ac_try="$ac_link_default"
3199 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3200 *) ac_try_echo
=$ac_try;;
3202 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3203 $as_echo "$ac_try_echo") >&5
3204 (eval "$ac_link_default") 2>&5
3206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; then
3208 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3209 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3210 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3211 # so that the user can short-circuit this test for compilers unknown to
3213 for ac_file
in $ac_files ''
3215 test -f "$ac_file" ||
continue
3217 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3220 # We found the default executable, but exeext='' is most
3224 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3226 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3228 # We set ac_cv_exeext here because the later test for it is not
3229 # safe: cross compilers may not add the suffix if given an `-o'
3230 # argument, so we may need to know it at that point already.
3231 # Even if this section looks crufty: it has the advantage of
3238 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3244 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3245 $as_echo "$ac_file" >&6; }
3246 if test -z "$ac_file"; then
3247 $as_echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.
$ac_ext >&5
3250 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3252 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3253 See \`config.log' for more details." >&5
3254 $as_echo "$as_me: error: C compiler cannot create executables
3255 See \`config.log' for more details." >&2;}
3256 { (exit 77); exit 77; }; }; }
3259 ac_exeext
=$ac_cv_exeext
3261 # Check that the compiler produces executables we can run. If not, either
3262 # the compiler is broken, or we cross compile.
3263 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3264 $as_echo_n "checking whether the C compiler works... " >&6; }
3265 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3266 # If not cross compiling, check that we can run a simple program.
3267 if test "$cross_compiling" != yes; then
3268 if { ac_try
='./$ac_file'
3269 { (case "(($ac_try" in
3270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3274 $as_echo "$ac_try_echo") >&5
3275 (eval "$ac_try") 2>&5
3277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3281 if test "$cross_compiling" = maybe; then
3284 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
3287 If you meant to cross compile
, use \
`--host'.
3288 See \`config.log
' for more details." >&5
3289 $as_echo "$as_me: error: cannot run C compiled programs.
3290 If you meant to cross compile, use \`--host'.
3291 See \
`config.log' for more details." >&2;}
3292 { (exit 1); exit 1; }; }; }
3296 { $as_echo "$as_me:$LINENO: result: yes" >&5
3297 $as_echo "yes" >&6; }
3299 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3300 ac_clean_files=$ac_clean_files_save
3301 # Check that the compiler produces executables we can run. If not, either
3302 # the compiler is broken, or we cross compile.
3303 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3304 $as_echo_n "checking whether we are cross compiling... " >&6; }
3305 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3306 $as_echo "$cross_compiling" >&6; }
3308 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3309 $as_echo_n "checking for suffix of executables... " >&6; }
3310 if { (ac_try="$ac_link"
3312 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3313 *) ac_try_echo
=$ac_try;;
3315 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3316 $as_echo "$ac_try_echo") >&5
3317 (eval "$ac_link") 2>&5
3319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; then
3321 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3322 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3323 # work properly (i.e., refer to `conftest.exe'), while it won't with
3325 for ac_file
in conftest.exe conftest conftest.
*; do
3326 test -f "$ac_file" ||
continue
3328 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3329 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3335 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3338 See \`config.log' for more details." >&5
3339 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3340 See \`config.log' for more details." >&2;}
3341 { (exit 1); exit 1; }; }; }
3344 rm -f conftest
$ac_cv_exeext
3345 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3346 $as_echo "$ac_cv_exeext" >&6; }
3348 rm -f conftest.
$ac_ext
3349 EXEEXT
=$ac_cv_exeext
3351 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3352 $as_echo_n "checking for suffix of object files... " >&6; }
3353 if test "${ac_cv_objext+set}" = set; then
3354 $as_echo_n "(cached) " >&6
3356 cat >conftest.
$ac_ext <<_ACEOF
3359 cat confdefs.h
>>conftest.
$ac_ext
3360 cat >>conftest.
$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3371 rm -f conftest.o conftest.obj
3372 if { (ac_try
="$ac_compile"
3374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3378 $as_echo "$ac_try_echo") >&5
3379 (eval "$ac_compile") 2>&5
3381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; then
3383 for ac_file in conftest.o conftest.obj conftest.*; do
3384 test -f "$ac_file" || continue;
3386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3387 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3392 $as_echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3395 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3398 See \
`config.log' for more details." >&5
3399 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3400 See \`config.log
' for more details." >&2;}
3401 { (exit 1); exit 1; }; }; }
3404 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3406 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3407 $as_echo "$ac_cv_objext" >&6; }
3408 OBJEXT=$ac_cv_objext
3410 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3411 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3412 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3413 $as_echo_n "(cached) " >&6
3415 cat >conftest.$ac_ext <<_ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3433 rm -f conftest.$ac_objext
3434 if { (ac_try="$ac_compile"
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3440 $as_echo "$ac_try_echo") >&5
3441 (eval "$ac_compile") 2>conftest.er1
3443 grep -v '^
*+' conftest.er1 >conftest.err
3445 cat conftest.err >&5
3446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } && {
3448 test -z "$ac_c_werror_flag" ||
3449 test ! -s conftest.err
3450 } && test -s conftest.$ac_objext; then
3453 $as_echo "$as_me: failed program was:" >&5
3454 sed 's
/^
/|
/' conftest.$ac_ext >&5
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3463 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3464 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3465 if test $ac_compiler_gnu = yes; then
3470 ac_test_CFLAGS=${CFLAGS+set}
3471 ac_save_CFLAGS=$CFLAGS
3472 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3473 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3474 if test "${ac_cv_prog_cc_g+set}" = set; then
3475 $as_echo_n "(cached) " >&6
3477 ac_save_c_werror_flag=$ac_c_werror_flag
3478 ac_c_werror_flag=yes
3481 cat >conftest.$ac_ext <<_ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3496 rm -f conftest.$ac_objext
3497 if { (ac_try="$ac_compile"
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3503 $as_echo "$ac_try_echo") >&5
3504 (eval "$ac_compile") 2>conftest.er1
3506 grep -v '^
*+' conftest.er1 >conftest.err
3508 cat conftest.err >&5
3509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } && {
3511 test -z "$ac_c_werror_flag" ||
3512 test ! -s conftest.err
3513 } && test -s conftest.$ac_objext; then
3516 $as_echo "$as_me: failed program was:" >&5
3517 sed 's
/^
/|
/' conftest.$ac_ext >&5
3520 cat >conftest.$ac_ext <<_ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3535 rm -f conftest.$ac_objext
3536 if { (ac_try="$ac_compile"
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3542 $as_echo "$ac_try_echo") >&5
3543 (eval "$ac_compile") 2>conftest.er1
3545 grep -v '^
*+' conftest.er1 >conftest.err
3547 cat conftest.err >&5
3548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } && {
3550 test -z "$ac_c_werror_flag" ||
3551 test ! -s conftest.err
3552 } && test -s conftest.$ac_objext; then
3555 $as_echo "$as_me: failed program was:" >&5
3556 sed 's
/^
/|
/' conftest.$ac_ext >&5
3558 ac_c_werror_flag=$ac_save_c_werror_flag
3560 cat >conftest.$ac_ext <<_ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3575 rm -f conftest.$ac_objext
3576 if { (ac_try="$ac_compile"
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3582 $as_echo "$ac_try_echo") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3585 grep -v '^
*+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3595 $as_echo "$as_me: failed program was:" >&5
3596 sed 's
/^
/|
/' conftest.$ac_ext >&5
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 ac_c_werror_flag=$ac_save_c_werror_flag
3610 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3611 $as_echo "$ac_cv_prog_cc_g" >&6; }
3612 if test "$ac_test_CFLAGS" = set; then
3613 CFLAGS=$ac_save_CFLAGS
3614 elif test $ac_cv_prog_cc_g = yes; then
3615 if test "$GCC" = yes; then
3621 if test "$GCC" = yes; then
3627 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3628 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3629 if test "${ac_cv_prog_cc_c89+set}" = set; then
3630 $as_echo_n "(cached) " >&6
3632 ac_cv_prog_cc_c89=no
3634 cat >conftest.$ac_ext <<_ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h. */
3642 #include <sys/types.h>
3643 #include <sys/stat.h>
3644 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3645 struct buf
{ int x
; };
3646 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3647 static char
*e
(p
, i
)
3653 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3658 s
= g
(p
, va_arg
(v
,int
));
3663 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3664 function prototypes and stuff
, but not
'\xHH' hex character constants.
3665 These don
't provoke an error unfortunately, instead are silently treated
3666 as 'x
'. The following induces an error, until -std is added to get
3667 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3668 array size at least. It's necessary to
write '\x00'==0 to get something
3669 that
's true only with -std. */
3670 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3672 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3673 inside strings and character constants. */
3675 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3677 int test (int i, double x);
3678 struct s1 {int (*f) (int a);};
3679 struct s2 {int (*f) (double a);};
3680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3686 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3694 CC="$ac_save_CC $ac_arg"
3695 rm -f conftest.$ac_objext
3696 if { (ac_try="$ac_compile"
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3702 $as_echo "$ac_try_echo") >&5
3703 (eval "$ac_compile") 2>conftest.er1
3705 grep -v '^
*+' conftest.er1 >conftest.err
3707 cat conftest.err >&5
3708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } && {
3710 test -z "$ac_c_werror_flag" ||
3711 test ! -s conftest.err
3712 } && test -s conftest.$ac_objext; then
3713 ac_cv_prog_cc_c89=$ac_arg
3715 $as_echo "$as_me: failed program was:" >&5
3716 sed 's
/^
/|
/' conftest.$ac_ext >&5
3721 rm -f core conftest.err conftest.$ac_objext
3722 test "x$ac_cv_prog_cc_c89" != "xno" && break
3724 rm -f conftest.$ac_ext
3729 case "x$ac_cv_prog_cc_c89" in
3731 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3732 $as_echo "none needed" >&6; } ;;
3734 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3735 $as_echo "unsupported" >&6; } ;;
3737 CC="$CC $ac_cv_prog_cc_c89"
3738 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3739 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3746 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3753 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3754 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3755 $as_echo_n "(cached) " >&6
3757 ac_check_lib_save_LIBS=$LIBS
3758 LIBS="-lcposix $LIBS"
3759 cat >conftest.$ac_ext <<_ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3766 /* Override any GCC internal prototype to avoid an error.
3767 Use char because int might match the return type of a GCC
3768 builtin and then its argument prototype would still apply. */
3781 rm -f conftest.$ac_objext conftest$ac_exeext
3782 if { (ac_try="$ac_link"
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3788 $as_echo "$ac_try_echo") >&5
3789 (eval "$ac_link") 2>conftest.er1
3791 grep -v '^
*+' conftest.er1 >conftest.err
3793 cat conftest.err >&5
3794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } && {
3796 test -z "$ac_c_werror_flag" ||
3797 test ! -s conftest.err
3798 } && test -s conftest$ac_exeext && {
3799 test "$cross_compiling" = yes ||
3800 $as_test_x conftest$ac_exeext
3802 ac_cv_lib_cposix_strerror=yes
3804 $as_echo "$as_me: failed program was:" >&5
3805 sed 's
/^
/|
/' conftest.$ac_ext >&5
3807 ac_cv_lib_cposix_strerror=no
3810 rm -rf conftest.dSYM
3811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3812 conftest$ac_exeext conftest.$ac_ext
3813 LIBS=$ac_check_lib_save_LIBS
3815 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3816 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3817 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
3818 LIBS="$LIBS -lcposix"
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3826 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3829 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3830 # On Suns, sometimes $CPP names a directory.
3831 if test -n "$CPP" && test -d "$CPP"; then
3834 if test -z "$CPP"; then
3835 if test "${ac_cv_prog_CPP+set}" = set; then
3836 $as_echo_n "(cached) " >&6
3838 # Double quotes because CPP needs to be expanded
3839 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3842 for ac_c_preproc_warn_flag in '' yes
3844 # Use a header file that comes with gcc, so configuring glibc
3845 # with a fresh cross-compiler works.
3846 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3847 # <limits.h> exists even on freestanding compilers.
3848 # On the NeXT, cc -E runs the code through the compiler's parser
,
3849 # not just through cpp. "Syntax error" is here to catch this case.
3850 cat >conftest.
$ac_ext <<_ACEOF
3853 cat confdefs.h
>>conftest.
$ac_ext
3854 cat >>conftest.
$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3857 # include <limits.h>
3859 # include <assert.h>
3863 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3869 $as_echo "$ac_try_echo") >&5
3870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3872 grep -v '^ *+' conftest.er1 >conftest.err
3874 cat conftest.err >&5
3875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } >/dev/null && {
3877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3878 test ! -s conftest.err
3882 $as_echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3885 # Broken: fails on valid input.
3889 rm -f conftest.err conftest.$ac_ext
3891 # OK, works on sane cases. Now check whether nonexistent headers
3892 # can be detected and how.
3893 cat >conftest.$ac_ext <<_ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3899 #include <ac_nonexistent.h>
3901 if { (ac_try="$ac_cpp conftest.$ac_ext"
3903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3904 *) ac_try_echo
=$ac_try;;
3906 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3907 $as_echo "$ac_try_echo") >&5
3908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3910 grep -v '^ *+' conftest.er1
>conftest.err
3912 cat conftest.err
>&5
3913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } >/dev
/null
&& {
3915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3916 test ! -s conftest.err
3918 # Broken: success on invalid input.
3921 $as_echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.
$ac_ext >&5
3924 # Passes both tests.
3929 rm -f conftest.err conftest.
$ac_ext
3932 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3933 rm -f conftest.err conftest.
$ac_ext
3934 if $ac_preproc_ok; then
3946 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3947 $as_echo "$CPP" >&6; }
3949 for ac_c_preproc_warn_flag
in '' yes
3951 # Use a header file that comes with gcc, so configuring glibc
3952 # with a fresh cross-compiler works.
3953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3954 # <limits.h> exists even on freestanding compilers.
3955 # On the NeXT, cc -E runs the code through the compiler's parser,
3956 # not just through cpp. "Syntax error" is here to catch this case.
3957 cat >conftest.
$ac_ext <<_ACEOF
3960 cat confdefs.h
>>conftest.
$ac_ext
3961 cat >>conftest.
$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3964 # include <limits.h>
3966 # include <assert.h>
3970 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3976 $as_echo "$ac_try_echo") >&5
3977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3979 grep -v '^ *+' conftest.er1 >conftest.err
3981 cat conftest.err >&5
3982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } >/dev/null && {
3984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3985 test ! -s conftest.err
3989 $as_echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 # Broken: fails on valid input.
3996 rm -f conftest.err conftest.$ac_ext
3998 # OK, works on sane cases. Now check whether nonexistent headers
3999 # can be detected and how.
4000 cat >conftest.$ac_ext <<_ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4006 #include <ac_nonexistent.h>
4008 if { (ac_try="$ac_cpp conftest.$ac_ext"
4010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4011 *) ac_try_echo
=$ac_try;;
4013 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4014 $as_echo "$ac_try_echo") >&5
4015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4017 grep -v '^ *+' conftest.er1
>conftest.err
4019 cat conftest.err
>&5
4020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } >/dev
/null
&& {
4022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4023 test ! -s conftest.err
4025 # Broken: success on invalid input.
4028 $as_echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.
$ac_ext >&5
4031 # Passes both tests.
4036 rm -f conftest.err conftest.
$ac_ext
4039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4040 rm -f conftest.err conftest.
$ac_ext
4041 if $ac_preproc_ok; then
4044 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4046 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4047 See \`config.log' for more details." >&5
4048 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4049 See \`config.log' for more details." >&2;}
4050 { (exit 1); exit 1; }; }; }
4054 ac_cpp
='$CPP $CPPFLAGS'
4055 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4060 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4061 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4062 if test "${ac_cv_path_GREP+set}" = set; then
4063 $as_echo_n "(cached) " >&6
4065 if test -z "$GREP"; then
4066 ac_path_GREP_found
=false
4067 # Loop through the user's path and test for each of PROGNAME-LIST
4068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4069 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4072 test -z "$as_dir" && as_dir
=.
4073 for ac_prog
in grep ggrep
; do
4074 for ac_exec_ext
in '' $ac_executable_extensions; do
4075 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4076 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4077 # Check for GNU ac_path_GREP and select it if it is found.
4078 # Check for GNU $ac_path_GREP
4079 case `"$ac_path_GREP" --version 2>&1` in
4081 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4084 $as_echo_n 0123456789 >"conftest.in"
4087 cat "conftest.in" "conftest.in" >"conftest.tmp"
4088 mv "conftest.tmp" "conftest.in"
4089 cp "conftest.in" "conftest.nl"
4090 $as_echo 'GREP' >> "conftest.nl"
4091 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4092 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4093 ac_count
=`expr $ac_count + 1`
4094 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4095 # Best one so far, save it but keep looking for a better one
4096 ac_cv_path_GREP
="$ac_path_GREP"
4097 ac_path_GREP_max
=$ac_count
4099 # 10*(2^10) chars as input seems more than enough
4100 test $ac_count -gt 10 && break
4102 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4105 $ac_path_GREP_found && break 3
4110 if test -z "$ac_cv_path_GREP"; then
4111 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4112 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4113 { (exit 1); exit 1; }; }
4116 ac_cv_path_GREP
=$GREP
4120 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4121 $as_echo "$ac_cv_path_GREP" >&6; }
4122 GREP
="$ac_cv_path_GREP"
4125 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4126 $as_echo_n "checking for egrep... " >&6; }
4127 if test "${ac_cv_path_EGREP+set}" = set; then
4128 $as_echo_n "(cached) " >&6
4130 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4131 then ac_cv_path_EGREP
="$GREP -E"
4133 if test -z "$EGREP"; then
4134 ac_path_EGREP_found
=false
4135 # Loop through the user's path and test for each of PROGNAME-LIST
4136 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4137 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4140 test -z "$as_dir" && as_dir
=.
4141 for ac_prog
in egrep; do
4142 for ac_exec_ext
in '' $ac_executable_extensions; do
4143 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4144 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4145 # Check for GNU ac_path_EGREP and select it if it is found.
4146 # Check for GNU $ac_path_EGREP
4147 case `"$ac_path_EGREP" --version 2>&1` in
4149 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4152 $as_echo_n 0123456789 >"conftest.in"
4155 cat "conftest.in" "conftest.in" >"conftest.tmp"
4156 mv "conftest.tmp" "conftest.in"
4157 cp "conftest.in" "conftest.nl"
4158 $as_echo 'EGREP' >> "conftest.nl"
4159 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4160 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4161 ac_count
=`expr $ac_count + 1`
4162 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4163 # Best one so far, save it but keep looking for a better one
4164 ac_cv_path_EGREP
="$ac_path_EGREP"
4165 ac_path_EGREP_max
=$ac_count
4167 # 10*(2^10) chars as input seems more than enough
4168 test $ac_count -gt 10 && break
4170 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4173 $ac_path_EGREP_found && break 3
4178 if test -z "$ac_cv_path_EGREP"; then
4179 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4180 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4181 { (exit 1); exit 1; }; }
4184 ac_cv_path_EGREP
=$EGREP
4189 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4190 $as_echo "$ac_cv_path_EGREP" >&6; }
4191 EGREP
="$ac_cv_path_EGREP"
4194 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4195 $as_echo_n "checking for ANSI C header files... " >&6; }
4196 if test "${ac_cv_header_stdc+set}" = set; then
4197 $as_echo_n "(cached) " >&6
4199 cat >conftest.
$ac_ext <<_ACEOF
4202 cat confdefs.h
>>conftest.
$ac_ext
4203 cat >>conftest.
$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4218 rm -f conftest.
$ac_objext
4219 if { (ac_try
="$ac_compile"
4221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4225 $as_echo "$ac_try_echo") >&5
4226 (eval "$ac_compile") 2>conftest.er1
4228 grep -v '^ *+' conftest.er1 >conftest.err
4230 cat conftest.err >&5
4231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } && {
4233 test -z "$ac_c_werror_flag" ||
4234 test ! -s conftest.err
4235 } && test -s conftest.$ac_objext; then
4236 ac_cv_header_stdc=yes
4238 $as_echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4241 ac_cv_header_stdc=no
4244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 if test $ac_cv_header_stdc = yes; then
4247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4248 cat >conftest.$ac_ext <<_ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4258 $EGREP "memchr" >/dev/null 2>&1; then
4261 ac_cv_header_stdc=no
4267 if test $ac_cv_header_stdc = yes; then
4268 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4269 cat >conftest.$ac_ext <<_ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4279 $EGREP "free" >/dev/null 2>&1; then
4282 ac_cv_header_stdc=no
4288 if test $ac_cv_header_stdc = yes; then
4289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4290 if test "$cross_compiling" = yes; then
4293 cat >conftest.$ac_ext <<_ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4301 #if ((' ' & 0x0FF) == 0x020)
4302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4305 # define ISLOWER(c) \
4306 (('a' <= (c) && (c) <= 'i') \
4307 || ('j' <= (c) && (c) <= 'r') \
4308 || ('s' <= (c) && (c) <= 'z'))
4309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4317 for (i = 0; i < 256; i++)
4318 if (XOR (islower (i), ISLOWER (i))
4319 || toupper (i) != TOUPPER (i))
4324 rm -f conftest$ac_exeext
4325 if { (ac_try="$ac_link"
4327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4328 *) ac_try_echo
=$ac_try;;
4330 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4331 $as_echo "$ac_try_echo") >&5
4332 (eval "$ac_link") 2>&5
4334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4336 { (case "(($ac_try" in
4337 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4341 $as_echo "$ac_try_echo") >&5
4342 (eval "$ac_try") 2>&5
4344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; }; then
4348 $as_echo "$as_me: program exited with status $ac_status" >&5
4349 $as_echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4353 ac_cv_header_stdc=no
4355 rm -rf conftest.dSYM
4356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4362 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4363 $as_echo "$ac_cv_header_stdc" >&6; }
4364 if test $ac_cv_header_stdc = yes; then
4366 cat >>confdefs.h <<\_ACEOF
4367 #define STDC_HEADERS 1
4372 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4382 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4383 inttypes.h stdint.h unistd.h
4385 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4386 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4387 $as_echo_n "checking for $ac_header... " >&6; }
4388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4389 $as_echo_n "(cached) " >&6
4391 cat >conftest.$ac_ext <<_ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4397 $ac_includes_default
4399 #include <$ac_header>
4401 rm -f conftest.$ac_objext
4402 if { (ac_try="$ac_compile"
4404 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4405 *) ac_try_echo
=$ac_try;;
4407 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4408 $as_echo "$ac_try_echo") >&5
4409 (eval "$ac_compile") 2>conftest.er1
4411 grep -v '^ *+' conftest.er1
>conftest.err
4413 cat conftest.err
>&5
4414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } && {
4416 test -z "$ac_c_werror_flag" ||
4417 test ! -s conftest.err
4418 } && test -s conftest.
$ac_objext; then
4419 eval "$as_ac_Header=yes"
4421 $as_echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.
$ac_ext >&5
4424 eval "$as_ac_Header=no"
4427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4429 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4430 $as_echo "$as_val"'`
4431 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4432 $as_echo "$ac_res" >&6; }
4433 as_val
=`eval 'as_val=${'$as_ac_Header'}
4434 $as_echo "$as_val"'`
4435 if test "x$as_val" = x
""yes; then
4436 cat >>confdefs.h
<<_ACEOF
4437 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4446 if test "${ac_cv_header_minix_config_h+set}" = set; then
4447 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4448 $as_echo_n "checking for minix/config.h... " >&6; }
4449 if test "${ac_cv_header_minix_config_h+set}" = set; then
4450 $as_echo_n "(cached) " >&6
4452 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4453 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4455 # Is the header compilable?
4456 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4457 $as_echo_n "checking minix/config.h usability... " >&6; }
4458 cat >conftest.
$ac_ext <<_ACEOF
4461 cat confdefs.h
>>conftest.
$ac_ext
4462 cat >>conftest.
$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4464 $ac_includes_default
4465 #include <minix/config.h>
4467 rm -f conftest.
$ac_objext
4468 if { (ac_try
="$ac_compile"
4470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4474 $as_echo "$ac_try_echo") >&5
4475 (eval "$ac_compile") 2>conftest.er1
4477 grep -v '^ *+' conftest.er1 >conftest.err
4479 cat conftest.err >&5
4480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } && {
4482 test -z "$ac_c_werror_flag" ||
4483 test ! -s conftest.err
4484 } && test -s conftest.$ac_objext; then
4485 ac_header_compiler=yes
4487 $as_echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4490 ac_header_compiler=no
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4495 $as_echo "$ac_header_compiler" >&6; }
4497 # Is the header present?
4498 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4499 $as_echo_n "checking minix/config.h presence... " >&6; }
4500 cat >conftest.$ac_ext <<_ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4506 #include <minix/config.h>
4508 if { (ac_try="$ac_cpp conftest.$ac_ext"
4510 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4511 *) ac_try_echo
=$ac_try;;
4513 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4514 $as_echo "$ac_try_echo") >&5
4515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4517 grep -v '^ *+' conftest.er1
>conftest.err
4519 cat conftest.err
>&5
4520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } >/dev
/null
&& {
4522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4523 test ! -s conftest.err
4525 ac_header_preproc
=yes
4527 $as_echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.
$ac_ext >&5
4530 ac_header_preproc
=no
4533 rm -f conftest.err conftest.
$ac_ext
4534 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4535 $as_echo "$ac_header_preproc" >&6; }
4537 # So? What about this header?
4538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4540 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4541 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4542 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4543 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4544 ac_header_preproc
=yes
4547 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4548 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4549 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4550 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4551 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4552 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4553 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4554 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4555 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4556 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4557 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4558 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4560 ## ------------------------------- ##
4561 ## Report this to bug-bash@gnu.org ##
4562 ## ------------------------------- ##
4564 ) |
sed "s/^/$as_me: WARNING: /" >&2
4567 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4568 $as_echo_n "checking for minix/config.h... " >&6; }
4569 if test "${ac_cv_header_minix_config_h+set}" = set; then
4570 $as_echo_n "(cached) " >&6
4572 ac_cv_header_minix_config_h
=$ac_header_preproc
4574 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4575 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4578 if test "x$ac_cv_header_minix_config_h" = x
""yes; then
4585 if test "$MINIX" = yes; then
4587 cat >>confdefs.h
<<\_ACEOF
4588 #define _POSIX_SOURCE 1
4592 cat >>confdefs.h
<<\_ACEOF
4593 #define _POSIX_1_SOURCE 2
4597 cat >>confdefs.h
<<\_ACEOF
4605 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4606 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4607 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4608 $as_echo_n "(cached) " >&6
4610 cat >conftest.
$ac_ext <<_ACEOF
4613 cat confdefs.h
>>conftest.
$ac_ext
4614 cat >>conftest.
$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4617 # define __EXTENSIONS__ 1
4618 $ac_includes_default
4627 rm -f conftest.
$ac_objext
4628 if { (ac_try
="$ac_compile"
4630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4634 $as_echo "$ac_try_echo") >&5
4635 (eval "$ac_compile") 2>conftest.er1
4637 grep -v '^ *+' conftest.er1 >conftest.err
4639 cat conftest.err >&5
4640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && {
4642 test -z "$ac_c_werror_flag" ||
4643 test ! -s conftest.err
4644 } && test -s conftest.$ac_objext; then
4645 ac_cv_safe_to_define___extensions__=yes
4647 $as_echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4650 ac_cv_safe_to_define___extensions__=no
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4656 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4657 test $ac_cv_safe_to_define___extensions__ = yes &&
4658 cat >>confdefs.h <<\_ACEOF
4659 #define __EXTENSIONS__ 1
4662 cat >>confdefs.h <<\_ACEOF
4663 #define _ALL_SOURCE 1
4666 cat >>confdefs.h <<\_ACEOF
4667 #define _GNU_SOURCE 1
4670 cat >>confdefs.h <<\_ACEOF
4671 #define _POSIX_PTHREAD_SEMANTICS 1
4674 cat >>confdefs.h <<\_ACEOF
4675 #define _TANDEM_SOURCE 1
4680 # Check whether --enable-largefile was given.
4681 if test "${enable_largefile+set}" = set; then
4682 enableval=$enable_largefile;
4685 if test "$enable_largefile" != no; then
4687 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4688 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4689 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4690 $as_echo_n "(cached) " >&6
4692 ac_cv_sys_largefile_CC=no
4693 if test "$GCC" != yes; then
4696 # IRIX 6.2 and later do not support large files by default,
4697 # so use the C compiler's -n32 option if that helps.
4698 cat >conftest.$ac_ext <<_ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4704 #include <sys/types.h>
4705 /* Check that off_t can represent 2**63 - 1 correctly.
4706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4707 since some C++ compilers masquerading as C compilers
4708 incorrectly reject 9223372036854775807. */
4709 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4711 && LARGE_OFF_T % 2147483647 == 1)
4721 rm -f conftest.$ac_objext
4722 if { (ac_try="$ac_compile"
4724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4725 *) ac_try_echo
=$ac_try;;
4727 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4728 $as_echo "$ac_try_echo") >&5
4729 (eval "$ac_compile") 2>conftest.er1
4731 grep -v '^ *+' conftest.er1
>conftest.err
4733 cat conftest.err
>&5
4734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } && {
4736 test -z "$ac_c_werror_flag" ||
4737 test ! -s conftest.err
4738 } && test -s conftest.
$ac_objext; then
4741 $as_echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.
$ac_ext >&5
4747 rm -f core conftest.err conftest.
$ac_objext
4749 rm -f conftest.
$ac_objext
4750 if { (ac_try
="$ac_compile"
4752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4756 $as_echo "$ac_try_echo") >&5
4757 (eval "$ac_compile") 2>conftest.er1
4759 grep -v '^ *+' conftest.er1 >conftest.err
4761 cat conftest.err >&5
4762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } && {
4764 test -z "$ac_c_werror_flag" ||
4765 test ! -s conftest.err
4766 } && test -s conftest.$ac_objext; then
4767 ac_cv_sys_largefile_CC=' -n32'; break
4769 $as_echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4775 rm -f core conftest.err conftest.$ac_objext
4779 rm -f conftest.$ac_ext
4782 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4783 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4784 if test "$ac_cv_sys_largefile_CC" != no; then
4785 CC=$CC$ac_cv_sys_largefile_CC
4788 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4789 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4790 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4791 $as_echo_n "(cached) " >&6
4794 cat >conftest.$ac_ext <<_ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4800 #include <sys/types.h>
4801 /* Check that off_t can represent 2**63 - 1 correctly.
4802 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4803 since some C++ compilers masquerading as C compilers
4804 incorrectly reject 9223372036854775807. */
4805 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4806 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4807 && LARGE_OFF_T % 2147483647 == 1)
4817 rm -f conftest.$ac_objext
4818 if { (ac_try="$ac_compile"
4820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4821 *) ac_try_echo
=$ac_try;;
4823 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4824 $as_echo "$ac_try_echo") >&5
4825 (eval "$ac_compile") 2>conftest.er1
4827 grep -v '^ *+' conftest.er1
>conftest.err
4829 cat conftest.err
>&5
4830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } && {
4832 test -z "$ac_c_werror_flag" ||
4833 test ! -s conftest.err
4834 } && test -s conftest.
$ac_objext; then
4835 ac_cv_sys_file_offset_bits
=no
; break
4837 $as_echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.
$ac_ext >&5
4843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4844 cat >conftest.
$ac_ext <<_ACEOF
4847 cat confdefs.h
>>conftest.
$ac_ext
4848 cat >>conftest.
$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 #define _FILE_OFFSET_BITS 64
4851 #include <sys/types.h>
4852 /* Check that off_t can represent 2**63 - 1 correctly.
4853 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4854 since some C++ compilers masquerading as C compilers
4855 incorrectly reject 9223372036854775807. */
4856 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4857 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4858 && LARGE_OFF_T % 2147483647 == 1)
4868 rm -f conftest.
$ac_objext
4869 if { (ac_try
="$ac_compile"
4871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4875 $as_echo "$ac_try_echo") >&5
4876 (eval "$ac_compile") 2>conftest.er1
4878 grep -v '^ *+' conftest.er1 >conftest.err
4880 cat conftest.err >&5
4881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } && {
4883 test -z "$ac_c_werror_flag" ||
4884 test ! -s conftest.err
4885 } && test -s conftest.$ac_objext; then
4886 ac_cv_sys_file_offset_bits=64; break
4888 $as_echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 ac_cv_sys_file_offset_bits=unknown
4899 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4900 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4901 case $ac_cv_sys_file_offset_bits in #(
4904 cat >>confdefs.h <<_ACEOF
4905 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4910 if test $ac_cv_sys_file_offset_bits = unknown; then
4911 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4912 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4913 if test "${ac_cv_sys_large_files+set}" = set; then
4914 $as_echo_n "(cached) " >&6
4917 cat >conftest.$ac_ext <<_ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4923 #include <sys/types.h>
4924 /* Check that off_t can represent 2**63 - 1 correctly.
4925 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4926 since some C++ compilers masquerading as C compilers
4927 incorrectly reject 9223372036854775807. */
4928 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4929 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4930 && LARGE_OFF_T % 2147483647 == 1)
4940 rm -f conftest.$ac_objext
4941 if { (ac_try="$ac_compile"
4943 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4944 *) ac_try_echo
=$ac_try;;
4946 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4947 $as_echo "$ac_try_echo") >&5
4948 (eval "$ac_compile") 2>conftest.er1
4950 grep -v '^ *+' conftest.er1
>conftest.err
4952 cat conftest.err
>&5
4953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } && {
4955 test -z "$ac_c_werror_flag" ||
4956 test ! -s conftest.err
4957 } && test -s conftest.
$ac_objext; then
4958 ac_cv_sys_large_files
=no
; break
4960 $as_echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.
$ac_ext >&5
4966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4967 cat >conftest.
$ac_ext <<_ACEOF
4970 cat confdefs.h
>>conftest.
$ac_ext
4971 cat >>conftest.
$ac_ext <<_ACEOF
4972 /* end confdefs.h. */
4973 #define _LARGE_FILES 1
4974 #include <sys/types.h>
4975 /* Check that off_t can represent 2**63 - 1 correctly.
4976 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4977 since some C++ compilers masquerading as C compilers
4978 incorrectly reject 9223372036854775807. */
4979 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4980 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4981 && LARGE_OFF_T % 2147483647 == 1)
4991 rm -f conftest.
$ac_objext
4992 if { (ac_try
="$ac_compile"
4994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4998 $as_echo "$ac_try_echo") >&5
4999 (eval "$ac_compile") 2>conftest.er1
5001 grep -v '^ *+' conftest.er1 >conftest.err
5003 cat conftest.err >&5
5004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } && {
5006 test -z "$ac_c_werror_flag" ||
5007 test ! -s conftest.err
5008 } && test -s conftest.$ac_objext; then
5009 ac_cv_sys_large_files=1; break
5011 $as_echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 ac_cv_sys_large_files=unknown
5022 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5023 $as_echo "$ac_cv_sys_large_files" >&6; }
5024 case $ac_cv_sys_large_files in #(
5027 cat >>confdefs.h <<_ACEOF
5028 #define _LARGE_FILES $ac_cv_sys_large_files
5039 SIGNAMES_H=lsignames.h
5044 if test "x$cross_compiling" = "xyes"; then
5047 cross_cache=${srcdir}/cross-build/cygwin32.cache
5050 cross_cache=${srcdir}/cross-build/cygwin32.cache
5053 cross_cache=${srcdir}/cross-build/x86-beos.cache
5055 *) echo "configure: cross-compiling for $host is not supported" >&2
5058 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
5059 echo "loading cross-build cache file ${cross_cache}"
5063 SIGNAMES_O='signames.o'
5064 CROSS_COMPILE='-DCROSS_COMPILING'
5070 if test -z "$CC_FOR_BUILD"; then
5071 if test "x$cross_compiling" = "xno"; then
5072 CC_FOR_BUILD='$(CC)'
5080 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
5082 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
5084 if test "$opt_profiling" = "yes"; then
5088 *) opt_static_link=yes ;;
5090 DEBUG= MALLOC_DEBUG=
5093 if test "$opt_static_link" = yes; then
5094 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
5095 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
5099 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
5104 if test "X$cross_compiling" = "Xno"; then
5105 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
5106 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
5108 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
5109 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
5112 test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
5123 if test $ac_cv_c_compiler_gnu = yes; then
5124 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5125 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5126 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5127 $as_echo_n "(cached) " >&6
5129 ac_pattern="Autoconf.*'x
'"
5130 cat >conftest.$ac_ext <<_ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h. */
5139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5140 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5141 ac_cv_prog_gcc_traditional=yes
5143 ac_cv_prog_gcc_traditional=no
5148 if test $ac_cv_prog_gcc_traditional = no; then
5149 cat >conftest.$ac_ext <<_ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h. */
5158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5159 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5160 ac_cv_prog_gcc_traditional=yes
5166 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5167 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5168 if test $ac_cv_prog_gcc_traditional = yes; then
5169 CC="$CC -traditional"
5175 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
5177 # If the user specified --with-installed-readline=PREFIX and PREFIX
5178 # is not `yes', set ac_cv_rl_prefix to PREFIX
5179 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix
=$opt_with_installed_readline
5182 if test "X$bash_cv_termcap_lib" = "X"; then
5185 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5186 $as_echo_n "checking which library has the termcap functions... " >&6; }
5189 if test "${bash_cv_termcap_lib+set}" = set; then
5190 $as_echo_n "(cached) " >&6
5192 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
5193 $as_echo_n "checking for tgetent... " >&6; }
5194 if test "${ac_cv_func_tgetent+set}" = set; then
5195 $as_echo_n "(cached) " >&6
5197 cat >conftest.
$ac_ext <<_ACEOF
5200 cat confdefs.h
>>conftest.
$ac_ext
5201 cat >>conftest.
$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5203 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
5204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5205 #define tgetent innocuous_tgetent
5207 /* System header to define __stub macros and hopefully few prototypes,
5208 which can conflict with char tgetent (); below.
5209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5210 <limits.h> exists even on freestanding compilers. */
5213 # include <limits.h>
5215 # include <assert.h>
5220 /* Override any GCC internal prototype to avoid an error.
5221 Use char because int might match the return type of a GCC
5222 builtin and then its argument prototype would still apply. */
5227 /* The GNU C library defines this for functions which it implements
5228 to always fail with ENOSYS. Some functions are actually named
5229 something starting with __ and the normal name is an alias. */
5230 #if defined __stub_tgetent || defined __stub___tgetent
5242 rm -f conftest.
$ac_objext conftest
$ac_exeext
5243 if { (ac_try
="$ac_link"
5245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5246 *) ac_try_echo=$ac_try;;
5248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5249 $as_echo "$ac_try_echo") >&5
5250 (eval "$ac_link") 2>conftest.er1
5252 grep -v '^ *+' conftest.er1 >conftest.err
5254 cat conftest.err >&5
5255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } && {
5257 test -z "$ac_c_werror_flag" ||
5258 test ! -s conftest.err
5259 } && test -s conftest$ac_exeext && {
5260 test "$cross_compiling" = yes ||
5261 $as_test_x conftest$ac_exeext
5263 ac_cv_func_tgetent=yes
5265 $as_echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5268 ac_cv_func_tgetent=no
5271 rm -rf conftest.dSYM
5272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5273 conftest$ac_exeext conftest.$ac_ext
5275 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
5276 $as_echo "$ac_cv_func_tgetent" >&6; }
5277 if test "x$ac_cv_func_tgetent" = x""yes; then
5278 bash_cv_termcap_lib=libc
5280 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5281 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5282 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5283 $as_echo_n "(cached) " >&6
5285 ac_check_lib_save_LIBS=$LIBS
5286 LIBS="-ltermcap $LIBS"
5287 cat >conftest.$ac_ext <<_ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5294 /* Override any GCC internal prototype to avoid an error.
5295 Use char because int might match the return type of a GCC
5296 builtin and then its argument prototype would still apply. */
5309 rm -f conftest.$ac_objext conftest$ac_exeext
5310 if { (ac_try="$ac_link"
5312 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5313 *) ac_try_echo
=$ac_try;;
5315 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5316 $as_echo "$ac_try_echo") >&5
5317 (eval "$ac_link") 2>conftest.er1
5319 grep -v '^ *+' conftest.er1
>conftest.err
5321 cat conftest.err
>&5
5322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } && {
5324 test -z "$ac_c_werror_flag" ||
5325 test ! -s conftest.err
5326 } && test -s conftest
$ac_exeext && {
5327 test "$cross_compiling" = yes ||
5328 $as_test_x conftest
$ac_exeext
5330 ac_cv_lib_termcap_tgetent
=yes
5332 $as_echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.
$ac_ext >&5
5335 ac_cv_lib_termcap_tgetent
=no
5338 rm -rf conftest.dSYM
5339 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5340 conftest
$ac_exeext conftest.
$ac_ext
5341 LIBS
=$ac_check_lib_save_LIBS
5343 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5344 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5345 if test "x$ac_cv_lib_termcap_tgetent" = x
""yes; then
5346 bash_cv_termcap_lib
=libtermcap
5348 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
5349 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5350 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
5351 $as_echo_n "(cached) " >&6
5353 ac_check_lib_save_LIBS
=$LIBS
5354 LIBS
="-ltinfo $LIBS"
5355 cat >conftest.
$ac_ext <<_ACEOF
5358 cat confdefs.h
>>conftest.
$ac_ext
5359 cat >>conftest.
$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5362 /* Override any GCC internal prototype to avoid an error.
5363 Use char because int might match the return type of a GCC
5364 builtin and then its argument prototype would still apply. */
5377 rm -f conftest.
$ac_objext conftest
$ac_exeext
5378 if { (ac_try
="$ac_link"
5380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5384 $as_echo "$ac_try_echo") >&5
5385 (eval "$ac_link") 2>conftest.er1
5387 grep -v '^ *+' conftest.er1 >conftest.err
5389 cat conftest.err >&5
5390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } && {
5392 test -z "$ac_c_werror_flag" ||
5393 test ! -s conftest.err
5394 } && test -s conftest$ac_exeext && {
5395 test "$cross_compiling" = yes ||
5396 $as_test_x conftest$ac_exeext
5398 ac_cv_lib_tinfo_tgetent=yes
5400 $as_echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5403 ac_cv_lib_tinfo_tgetent=no
5406 rm -rf conftest.dSYM
5407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5408 conftest$ac_exeext conftest.$ac_ext
5409 LIBS=$ac_check_lib_save_LIBS
5411 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
5412 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5413 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
5414 bash_cv_termcap_lib=libtinfo
5416 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5417 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
5418 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5419 $as_echo_n "(cached) " >&6
5421 ac_check_lib_save_LIBS=$LIBS
5422 LIBS="-lcurses $LIBS"
5423 cat >conftest.$ac_ext <<_ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5430 /* Override any GCC internal prototype to avoid an error.
5431 Use char because int might match the return type of a GCC
5432 builtin and then its argument prototype would still apply. */
5445 rm -f conftest.$ac_objext conftest$ac_exeext
5446 if { (ac_try="$ac_link"
5448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5449 *) ac_try_echo
=$ac_try;;
5451 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5452 $as_echo "$ac_try_echo") >&5
5453 (eval "$ac_link") 2>conftest.er1
5455 grep -v '^ *+' conftest.er1
>conftest.err
5457 cat conftest.err
>&5
5458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } && {
5460 test -z "$ac_c_werror_flag" ||
5461 test ! -s conftest.err
5462 } && test -s conftest
$ac_exeext && {
5463 test "$cross_compiling" = yes ||
5464 $as_test_x conftest
$ac_exeext
5466 ac_cv_lib_curses_tgetent
=yes
5468 $as_echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.
$ac_ext >&5
5471 ac_cv_lib_curses_tgetent
=no
5474 rm -rf conftest.dSYM
5475 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5476 conftest
$ac_exeext conftest.
$ac_ext
5477 LIBS
=$ac_check_lib_save_LIBS
5479 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5480 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
5481 if test "x$ac_cv_lib_curses_tgetent" = x
""yes; then
5482 bash_cv_termcap_lib
=libcurses
5484 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5485 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
5486 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5487 $as_echo_n "(cached) " >&6
5489 ac_check_lib_save_LIBS
=$LIBS
5490 LIBS
="-lncurses $LIBS"
5491 cat >conftest.
$ac_ext <<_ACEOF
5494 cat confdefs.h
>>conftest.
$ac_ext
5495 cat >>conftest.
$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5498 /* Override any GCC internal prototype to avoid an error.
5499 Use char because int might match the return type of a GCC
5500 builtin and then its argument prototype would still apply. */
5513 rm -f conftest.
$ac_objext conftest
$ac_exeext
5514 if { (ac_try
="$ac_link"
5516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5520 $as_echo "$ac_try_echo") >&5
5521 (eval "$ac_link") 2>conftest.er1
5523 grep -v '^ *+' conftest.er1 >conftest.err
5525 cat conftest.err >&5
5526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } && {
5528 test -z "$ac_c_werror_flag" ||
5529 test ! -s conftest.err
5530 } && test -s conftest$ac_exeext && {
5531 test "$cross_compiling" = yes ||
5532 $as_test_x conftest$ac_exeext
5534 ac_cv_lib_ncurses_tgetent=yes
5536 $as_echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5539 ac_cv_lib_ncurses_tgetent=no
5542 rm -rf conftest.dSYM
5543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5544 conftest$ac_exeext conftest.$ac_ext
5545 LIBS=$ac_check_lib_save_LIBS
5547 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5548 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
5549 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
5550 bash_cv_termcap_lib=libncurses
5552 bash_cv_termcap_lib=gnutermcap
5565 if test "X$_bash_needmsg" = "Xyes"; then
5566 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5567 $as_echo_n "checking which library has the termcap functions... " >&6; }
5569 { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
5570 $as_echo "using $bash_cv_termcap_lib" >&6; }
5571 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5572 LDFLAGS="$LDFLAGS -L./lib/termcap"
5573 TERMCAP_LIB="./lib/termcap/libtermcap.a"
5574 TERMCAP_DEP="./lib/termcap/libtermcap.a"
5575 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5576 TERMCAP_LIB=-ltermcap
5578 elif test $bash_cv_termcap_lib = libtinfo; then
5581 elif test $bash_cv_termcap_lib = libncurses; then
5582 TERMCAP_LIB=-lncurses
5584 elif test $bash_cv_termcap_lib = libc; then
5588 TERMCAP_LIB=-lcurses
5595 { $as_echo "$as_me:$LINENO: checking version of installed readline library" >&5
5596 $as_echo_n "checking version of installed readline library... " >&6; }
5598 # What a pain in the ass this is.
5600 # save cpp and ld options
5601 _save_CFLAGS="$CFLAGS"
5602 _save_LDFLAGS="$LDFLAGS"
5605 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5606 # allows the caller to do something like $_rl_prefix=$withval if the user
5607 # specifies --with-installed-readline=PREFIX as an argument to configure
5609 if test -z "$ac_cv_rl_prefix"; then
5610 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
5613 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
5614 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
5616 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
5617 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
5618 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
5620 if test "${ac_cv_rl_version+set}" = set; then
5621 $as_echo_n "(cached) " >&6
5623 if test "$cross_compiling" = yes; then
5624 ac_cv_rl_version='4.2'
5626 cat >conftest.$ac_ext <<_ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5634 #include <readline/readline.h>
5636 extern int rl_gnu_readline_p;
5641 fp = fopen("conftest.rlv", "w");
5644 if (rl_gnu_readline_p != 1)
5645 fprintf(fp, "0.0\n");
5647 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
5653 rm -f conftest$ac_exeext
5654 if { (ac_try="$ac_link"
5656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5657 *) ac_try_echo
=$ac_try;;
5659 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5660 $as_echo "$ac_try_echo") >&5
5661 (eval "$ac_link") 2>&5
5663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5665 { (case "(($ac_try" in
5666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5667 *) ac_try_echo=$ac_try;;
5669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5670 $as_echo "$ac_try_echo") >&5
5671 (eval "$ac_try") 2>&5
5673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; }; then
5675 ac_cv_rl_version=`cat conftest.rlv
`
5677 $as_echo "$as_me: program exited with status $ac_status" >&5
5678 $as_echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5682 ac_cv_rl_version='0.0'
5684 rm -rf conftest.dSYM
5685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5692 CFLAGS="$_save_CFLAGS"
5693 LDFLAGS="$_save_LDFLAGS"
5700 case "$ac_cv_rl_version" in
5701 2*|3*|4*|5*|6*|7*|8*|9*)
5702 RL_MAJOR=`echo $ac_cv_rl_version |
sed 's:\..*$::'`
5703 RL_MINOR=`echo $ac_cv_rl_version |
sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
5709 [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
5710 [0-9]) _RL_MAJOR=0$RL_MAJOR ;;
5716 [0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
5717 [0-9]) _RL_MINOR=0$RL_MINOR ;;
5721 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
5723 # Readline versions greater than 4.2 have these defines in readline.h
5725 if test $ac_cv_rl_version = '0.0' ; then
5726 { $as_echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
5727 $as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
5728 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
5729 # set these for use by the caller
5730 RL_PREFIX=$ac_cv_rl_prefix
5731 RL_LIBDIR=$ac_cv_rl_libdir
5732 RL_INCLUDEDIR=$ac_cv_rl_includedir
5733 { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5734 $as_echo "$ac_cv_rl_version" >&6; }
5738 cat >>confdefs.h <<_ACEOF
5739 #define RL_READLINE_VERSION $RL_VERSION
5743 cat >>confdefs.h <<_ACEOF
5744 #define RL_VERSION_MAJOR $RL_MAJOR
5748 cat >>confdefs.h <<_ACEOF
5749 #define RL_VERSION_MINOR $RL_MINOR
5757 # set these for use by the caller
5758 RL_PREFIX=$ac_cv_rl_prefix
5759 RL_LIBDIR=$ac_cv_rl_libdir
5760 RL_INCLUDEDIR=$ac_cv_rl_includedir
5762 { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5763 $as_echo "$ac_cv_rl_version" >&6; }
5768 case "$ac_cv_rl_version" in
5770 *) opt_with_installed_readline=no
5771 { $as_echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
5772 $as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
5773 { $as_echo "$as_me:$LINENO: WARNING: using private bash version" >&5
5774 $as_echo "$as_me: WARNING: using private bash version" >&2;}
5780 if test $opt_readline = yes; then
5781 cat >>confdefs.h <<\_ACEOF
5785 if test "$opt_with_installed_readline" != "no" ; then
5786 case "$opt_with_installed_readline" in
5788 *) case "$RL_INCLUDEDIR" in
5790 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5795 READLINE_LIB=-lreadline
5796 # section for OS versions that don't allow unresolved symbols
5797 # to be compiled into dynamic libraries.
5799 cygwin*) TILDE_LIB= ;;
5802 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5803 READLINE_DEP='$(READLINE_LIBRARY)'
5804 # section for OS versions that ship an older/broken version of
5805 # readline as a standard dynamic library and don't allow a
5806 # static version specified as -llibname to override the
5808 case "${host_os}" in
5809 darwin[89]*) READLINE_LIB='${READLINE_LIBRARY}' ;;
5810 *) READLINE_LIB=-lreadline ;;
5814 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5815 READLINE_LIB= READLINE_DEP=
5817 if test $opt_history = yes || test $opt_bang_history = yes; then
5818 if test $opt_history = yes; then
5819 cat >>confdefs.h <<\_ACEOF
5824 if test $opt_bang_history = yes; then
5825 cat >>confdefs.h <<\_ACEOF
5826 #define BANG_HISTORY 1
5830 if test "$opt_with_installed_readline" != "no"; then
5831 HIST_LIBDIR=$RL_LIBDIR
5833 HISTORY_LIB=-lhistory
5834 case "$opt_with_installed_readline" in
5836 *) case "$RL_INCLUDEDIR" in
5838 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5843 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5844 HISTORY_DEP='$(HISTORY_LIBRARY)'
5845 # section for OS versions that ship an older version of
5846 # readline as a standard dynamic library and don't allow a
5847 # static version specified as -llibname to override the
5849 case "${host_os}" in
5850 darwin[89]*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
5851 *) HISTORY_LIB=-lhistory ;;
5855 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5856 HISTORY_LIB= HISTORY_DEP=
5869 # Find a good install program. We prefer a C program (faster),
5870 # so one script is as good as another. But avoid the broken or
5871 # incompatible versions:
5872 # SysV /etc/install, /usr/sbin/install
5873 # SunOS /usr/etc/install
5874 # IRIX /sbin/install
5876 # AmigaOS /C/install, which installs bootblocks on floppy discs
5877 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5878 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5879 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5880 # OS/2's system install, which has a completely different semantic
5881 # ./install, which can be erroneously created by make from ./install.sh.
5882 # Reject install programs that cannot install multiple files.
5883 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5884 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5885 if test -z "$INSTALL"; then
5886 if test "${ac_cv_path_install+set}" = set; then
5887 $as_echo_n "(cached) " >&6
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 test -z "$as_dir" && as_dir=.
5894 # Account for people who put trailing slashes in PATH elements.
5896 ./ | .// | /cC/* | \
5897 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5898 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5901 # OSF1 and SCO ODT 3.0 have their own names for install.
5902 # Don't use installbsd from OSF since it installs stuff as root
5904 for ac_prog in ginstall scoinst install; do
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5907 if test $ac_prog = install &&
5908 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5909 # AIX install. It has an incompatible calling convention.
5911 elif test $ac_prog = install &&
5912 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5913 # program-specific install script used by HP pwplus--don't use.
5916 rm -rf conftest.one conftest.two conftest.dir
5917 echo one > conftest.one
5918 echo two > conftest.two
5920 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5921 test -s conftest.one && test -s conftest.two &&
5922 test -s conftest.dir/conftest.one &&
5923 test -s conftest.dir/conftest.two
5925 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5938 rm -rf conftest.one conftest.two conftest.dir
5941 if test "${ac_cv_path_install+set}" = set; then
5942 INSTALL=$ac_cv_path_install
5944 # As a last resort, use the slow shell script. Don't cache a
5945 # value for INSTALL within a source directory, because that will
5946 # break other packages using the cache if that directory is
5947 # removed, or if the value is a relative name.
5948 INSTALL=$ac_install_sh
5951 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5952 $as_echo "$INSTALL" >&6; }
5954 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5955 # It thinks the first close brace ends the variable substitution.
5956 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5958 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5960 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5962 # Extract the first word of "ar", so it can be a program name with args.
5963 set dummy ar; ac_word=$2
5964 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 $as_echo_n "checking for $ac_word... " >&6; }
5966 if test "${ac_cv_prog_AR+set}" = set; then
5967 $as_echo_n "(cached) " >&6
5969 if test -n "$AR"; then
5970 ac_cv_prog_AR="$AR" # Let the user override the test.
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5980 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
5991 if test -n "$AR"; then
5992 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5993 $as_echo "$AR" >&6; }
5995 { $as_echo "$as_me:$LINENO: result: no" >&5
5996 $as_echo "no" >&6; }
6000 test -n "$ARFLAGS" || ARFLAGS="cr"
6001 if test -n "$ac_tool_prefix"; then
6002 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6003 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6004 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6005 $as_echo_n "checking for $ac_word... " >&6; }
6006 if test "${ac_cv_prog_RANLIB+set}" = set; then
6007 $as_echo_n "(cached) " >&6
6009 if test -n "$RANLIB"; then
6010 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 test -z "$as_dir" && as_dir=.
6017 for ac_exec_ext in '' $ac_executable_extensions; do
6018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6019 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6020 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 RANLIB=$ac_cv_prog_RANLIB
6030 if test -n "$RANLIB"; then
6031 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6032 $as_echo "$RANLIB" >&6; }
6034 { $as_echo "$as_me:$LINENO: result: no" >&5
6035 $as_echo "no" >&6; }
6040 if test -z "$ac_cv_prog_RANLIB"; then
6041 ac_ct_RANLIB=$RANLIB
6042 # Extract the first word of "ranlib", so it can be a program name with args.
6043 set dummy ranlib; ac_word=$2
6044 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6045 $as_echo_n "checking for $ac_word... " >&6; }
6046 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6047 $as_echo_n "(cached) " >&6
6049 if test -n "$ac_ct_RANLIB"; then
6050 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6059 ac_cv_prog_ac_ct_RANLIB="ranlib"
6060 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6070 if test -n "$ac_ct_RANLIB"; then
6071 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6072 $as_echo "$ac_ct_RANLIB" >&6; }
6074 { $as_echo "$as_me:$LINENO: result: no" >&5
6075 $as_echo "no" >&6; }
6078 if test "x$ac_ct_RANLIB" = x; then
6081 case $cross_compiling:$ac_tool_warned in
6083 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6085 ac_tool_warned=yes ;;
6087 RANLIB=$ac_ct_RANLIB
6090 RANLIB="$ac_cv_prog_RANLIB"
6093 for ac_prog in 'bison -y' byacc
6095 # Extract the first word of "$ac_prog", so it can be a program name with args.
6096 set dummy $ac_prog; ac_word=$2
6097 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6098 $as_echo_n "checking for $ac_word... " >&6; }
6099 if test "${ac_cv_prog_YACC+set}" = set; then
6100 $as_echo_n "(cached) " >&6
6102 if test -n "$YACC"; then
6103 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6112 ac_cv_prog_YACC="$ac_prog"
6113 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 YACC=$ac_cv_prog_YACC
6123 if test -n "$YACC"; then
6124 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6125 $as_echo "$YACC" >&6; }
6127 { $as_echo "$as_me:$LINENO: result: no" >&5
6128 $as_echo "no" >&6; }
6132 test -n "$YACC" && break
6134 test -n "$YACC" || YACC="yacc"
6136 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6137 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6139 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6140 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6141 $as_echo_n "(cached) " >&6
6143 cat >conftest.make <<\_ACEOF
6146 @echo '@@@%%%=$(MAKE)=@@@%%%'
6148 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6149 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
6151 eval ac_cv_prog_make_${ac_make}_set=yes;;
6153 eval ac_cv_prog_make_${ac_make}_set=no;;
6157 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6158 { $as_echo "$as_me:$LINENO: result: yes" >&5
6159 $as_echo "yes" >&6; }
6162 { $as_echo "$as_me:$LINENO: result: no" >&5
6163 $as_echo "no" >&6; }
6164 SET_MAKE="MAKE=${MAKE-make}"
6169 opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
6170 *) MAKE_SHELL=/bin/sh ;;
6174 if test x$SIZE = x; then
6175 if test x$ac_tool_prefix = x; then
6178 SIZE=${ac_tool_prefix}size
6179 save_IFS=$IFS ; IFS=:
6181 for dir in $PATH; do
6182 if test -x $dir/$SIZE ; then
6187 if test $size_found -eq 0; then
6195 cat >>confdefs.h <<\_ACEOF
6196 #define _GNU_SOURCE 1
6200 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6201 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6202 if test "${ac_cv_c_const+set}" = set; then
6203 $as_echo_n "(cached) " >&6
6205 cat >conftest.$ac_ext <<_ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6215 /* FIXME: Include the comments suggested by Paul. */
6217 /* Ultrix mips cc rejects this. */
6218 typedef int charset[2];
6220 /* SunOS 4.1.1 cc rejects this. */
6221 char const *const *pcpcc;
6223 /* NEC SVR4.0.2 mips cc rejects this. */
6224 struct point {int x, y;};
6225 static struct point const zero = {0,0};
6226 /* AIX XL C 1.02.0.0 rejects this.
6227 It does not let you subtract one const X* pointer from another in
6228 an arm of an if-expression whose if-part is not a constant
6230 const char *g = "string";
6231 pcpcc = &g + (g ? g-g : 0);
6232 /* HPUX 7.0 cc rejects these. */
6234 ppc = (char**) pcpcc;
6235 pcpcc = (char const *const *) ppc;
6236 { /* SCO 3.2v4 cc rejects this. */
6238 char const *s = 0 ? (char *) 0 : (char const *) 0;
6243 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6245 const int *foo = &x[0];
6248 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6249 typedef const int *iptr;
6253 { /* AIX XL C 1.02.0.0 rejects this saying
6254 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6255 struct s { int j; const int *ap[3]; };
6256 struct s *b; b->j = 5;
6258 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6262 return !cs[0] && !zero.x;
6269 rm -f conftest.$ac_objext
6270 if { (ac_try="$ac_compile"
6272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6273 *) ac_try_echo
=$ac_try;;
6275 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6276 $as_echo "$ac_try_echo") >&5
6277 (eval "$ac_compile") 2>conftest.er1
6279 grep -v '^ *+' conftest.er1
>conftest.err
6281 cat conftest.err
>&5
6282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } && {
6284 test -z "$ac_c_werror_flag" ||
6285 test ! -s conftest.err
6286 } && test -s conftest.
$ac_objext; then
6289 $as_echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.
$ac_ext >&5
6295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6297 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6298 $as_echo "$ac_cv_c_const" >&6; }
6299 if test $ac_cv_c_const = no
; then
6301 cat >>confdefs.h
<<\_ACEOF
6307 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6308 $as_echo_n "checking for inline... " >&6; }
6309 if test "${ac_cv_c_inline+set}" = set; then
6310 $as_echo_n "(cached) " >&6
6313 for ac_kw
in inline __inline__ __inline
; do
6314 cat >conftest.
$ac_ext <<_ACEOF
6317 cat confdefs.h
>>conftest.
$ac_ext
6318 cat >>conftest.
$ac_ext <<_ACEOF
6319 /* end confdefs.h. */
6322 static $ac_kw foo_t static_foo () {return 0; }
6323 $ac_kw foo_t foo () {return 0; }
6327 rm -f conftest.
$ac_objext
6328 if { (ac_try
="$ac_compile"
6330 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6331 *) ac_try_echo=$ac_try;;
6333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6334 $as_echo "$ac_try_echo") >&5
6335 (eval "$ac_compile") 2>conftest.er1
6337 grep -v '^ *+' conftest.er1 >conftest.err
6339 cat conftest.err >&5
6340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && {
6342 test -z "$ac_c_werror_flag" ||
6343 test ! -s conftest.err
6344 } && test -s conftest.$ac_objext; then
6345 ac_cv_c_inline=$ac_kw
6347 $as_echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 test "$ac_cv_c_inline" != no && break
6358 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6359 $as_echo "$ac_cv_c_inline" >&6; }
6362 case $ac_cv_c_inline in
6365 case $ac_cv_c_inline in
6367 *) ac_val=$ac_cv_c_inline;;
6369 cat >>confdefs.h <<_ACEOF
6371 #define inline $ac_val
6378 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6379 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6380 if test "${ac_cv_c_bigendian+set}" = set; then
6381 $as_echo_n "(cached) " >&6
6383 ac_cv_c_bigendian=unknown
6384 # See if we're dealing with a universal compiler.
6385 cat >conftest.$ac_ext <<_ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6391 #ifndef __APPLE_CC__
6392 not a universal capable compiler
6397 rm -f conftest.$ac_objext
6398 if { (ac_try="$ac_compile"
6400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6401 *) ac_try_echo
=$ac_try;;
6403 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6404 $as_echo "$ac_try_echo") >&5
6405 (eval "$ac_compile") 2>conftest.er1
6407 grep -v '^ *+' conftest.er1
>conftest.err
6409 cat conftest.err
>&5
6410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } && {
6412 test -z "$ac_c_werror_flag" ||
6413 test ! -s conftest.err
6414 } && test -s conftest.
$ac_objext; then
6416 # Check for potential -arch flags. It is not universal unless
6417 # there are some -arch flags. Note that *ppc* also matches
6418 # ppc64. This check is also rather less than ideal.
6419 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
6420 *-arch*ppc
*|
*-arch*i386
*|
*-arch*x86_64
*) ac_cv_c_bigendian
=universal
;;
6423 $as_echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.
$ac_ext >&5
6429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6430 if test $ac_cv_c_bigendian = unknown
; then
6431 # See if sys/param.h defines the BYTE_ORDER macro.
6432 cat >conftest.
$ac_ext <<_ACEOF
6435 cat confdefs.h
>>conftest.
$ac_ext
6436 cat >>conftest.
$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6438 #include <sys/types.h>
6439 #include <sys/param.h>
6444 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6445 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6454 rm -f conftest.
$ac_objext
6455 if { (ac_try
="$ac_compile"
6457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6461 $as_echo "$ac_try_echo") >&5
6462 (eval "$ac_compile") 2>conftest.er1
6464 grep -v '^ *+' conftest.er1 >conftest.err
6466 cat conftest.err >&5
6467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } && {
6469 test -z "$ac_c_werror_flag" ||
6470 test ! -s conftest.err
6471 } && test -s conftest.$ac_objext; then
6472 # It does; now see whether it defined to BIG_ENDIAN or not.
6473 cat >conftest.$ac_ext <<_ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6479 #include <sys/types.h>
6480 #include <sys/param.h>
6485 #if BYTE_ORDER != BIG_ENDIAN
6493 rm -f conftest.$ac_objext
6494 if { (ac_try="$ac_compile"
6496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6497 *) ac_try_echo
=$ac_try;;
6499 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6500 $as_echo "$ac_try_echo") >&5
6501 (eval "$ac_compile") 2>conftest.er1
6503 grep -v '^ *+' conftest.er1
>conftest.err
6505 cat conftest.err
>&5
6506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } && {
6508 test -z "$ac_c_werror_flag" ||
6509 test ! -s conftest.err
6510 } && test -s conftest.
$ac_objext; then
6511 ac_cv_c_bigendian
=yes
6513 $as_echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.
$ac_ext >&5
6516 ac_cv_c_bigendian
=no
6519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6521 $as_echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.
$ac_ext >&5
6527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6529 if test $ac_cv_c_bigendian = unknown
; then
6530 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6531 cat >conftest.
$ac_ext <<_ACEOF
6534 cat confdefs.h
>>conftest.
$ac_ext
6535 cat >>conftest.
$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6542 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6550 rm -f conftest.
$ac_objext
6551 if { (ac_try
="$ac_compile"
6553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6554 *) ac_try_echo=$ac_try;;
6556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6557 $as_echo "$ac_try_echo") >&5
6558 (eval "$ac_compile") 2>conftest.er1
6560 grep -v '^ *+' conftest.er1 >conftest.err
6562 cat conftest.err >&5
6563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } && {
6565 test -z "$ac_c_werror_flag" ||
6566 test ! -s conftest.err
6567 } && test -s conftest.$ac_objext; then
6568 # It does; now see whether it defined to _BIG_ENDIAN or not.
6569 cat >conftest.$ac_ext <<_ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6588 rm -f conftest.$ac_objext
6589 if { (ac_try="$ac_compile"
6591 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6592 *) ac_try_echo
=$ac_try;;
6594 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6595 $as_echo "$ac_try_echo") >&5
6596 (eval "$ac_compile") 2>conftest.er1
6598 grep -v '^ *+' conftest.er1
>conftest.err
6600 cat conftest.err
>&5
6601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } && {
6603 test -z "$ac_c_werror_flag" ||
6604 test ! -s conftest.err
6605 } && test -s conftest.
$ac_objext; then
6606 ac_cv_c_bigendian
=yes
6608 $as_echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.
$ac_ext >&5
6611 ac_cv_c_bigendian
=no
6614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6616 $as_echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.
$ac_ext >&5
6622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6624 if test $ac_cv_c_bigendian = unknown
; then
6625 # Compile a test program.
6626 if test "$cross_compiling" = yes; then
6627 # Try to guess by grepping values from an object file.
6628 cat >conftest.
$ac_ext <<_ACEOF
6631 cat confdefs.h
>>conftest.
$ac_ext
6632 cat >>conftest.
$ac_ext <<_ACEOF
6633 /* end confdefs.h. */
6634 short int ascii_mm[] =
6635 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6636 short int ascii_ii[] =
6637 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6638 int use_ascii (int i) {
6639 return ascii_mm[i] + ascii_ii[i];
6641 short int ebcdic_ii[] =
6642 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6643 short int ebcdic_mm[] =
6644 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6645 int use_ebcdic (int i) {
6646 return ebcdic_mm[i] + ebcdic_ii[i];
6653 return use_ascii (foo) == use_ebcdic (foo);
6658 rm -f conftest.
$ac_objext
6659 if { (ac_try
="$ac_compile"
6661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6662 *) ac_try_echo=$ac_try;;
6664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6665 $as_echo "$ac_try_echo") >&5
6666 (eval "$ac_compile") 2>conftest.er1
6668 grep -v '^ *+' conftest.er1 >conftest.err
6670 cat conftest.err >&5
6671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } && {
6673 test -z "$ac_c_werror_flag" ||
6674 test ! -s conftest.err
6675 } && test -s conftest.$ac_objext; then
6676 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6677 ac_cv_c_bigendian=yes
6679 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6680 if test "$ac_cv_c_bigendian" = unknown; then
6681 ac_cv_c_bigendian=no
6683 # finding both strings is unlikely to happen, but who knows?
6684 ac_cv_c_bigendian=unknown
6688 $as_echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696 cat >conftest.$ac_ext <<_ACEOF
6699 cat confdefs.h >>conftest.$ac_ext
6700 cat >>conftest.$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6702 $ac_includes_default
6707 /* Are we little or big endian? From Harbison&Steele. */
6711 char c[sizeof (long int)];
6714 return u.c[sizeof (long int) - 1] == 1;
6720 rm -f conftest$ac_exeext
6721 if { (ac_try="$ac_link"
6723 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6724 *) ac_try_echo
=$ac_try;;
6726 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6727 $as_echo "$ac_try_echo") >&5
6728 (eval "$ac_link") 2>&5
6730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6732 { (case "(($ac_try" in
6733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6737 $as_echo "$ac_try_echo") >&5
6738 (eval "$ac_try") 2>&5
6740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; }; then
6742 ac_cv_c_bigendian=no
6744 $as_echo "$as_me: program exited with status $ac_status" >&5
6745 $as_echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6749 ac_cv_c_bigendian=yes
6751 rm -rf conftest.dSYM
6752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6758 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6759 $as_echo "$ac_cv_c_bigendian" >&6; }
6760 case $ac_cv_c_bigendian in #(
6762 cat >>confdefs.h <<\_ACEOF
6763 #define WORDS_BIGENDIAN 1
6770 cat >>confdefs.h <<\_ACEOF
6771 #define AC_APPLE_UNIVERSAL_BUILD 1
6776 { { $as_echo "$as_me:$LINENO: error: unknown endianness
6777 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6778 $as_echo "$as_me: error: unknown endianness
6779 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6780 { (exit 1); exit 1; }; } ;;
6783 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
6784 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
6785 if test "${ac_cv_c_stringize+set}" = set; then
6786 $as_echo_n "(cached) " >&6
6788 cat >conftest.$ac_ext <<_ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6796 char *s = x(teststring);
6798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6799 $EGREP "#teststring" >/dev/null 2>&1; then
6800 ac_cv_c_stringize=no
6802 ac_cv_c_stringize=yes
6807 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
6808 $as_echo "$ac_cv_c_stringize" >&6; }
6809 if test $ac_cv_c_stringize = yes; then
6811 cat >>confdefs.h <<\_ACEOF
6812 #define HAVE_STRINGIZE 1
6819 { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
6820 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
6821 if test "${ac_cv_type_long_double_wider+set}" = set; then
6822 $as_echo_n "(cached) " >&6
6824 cat >conftest.$ac_ext <<_ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6831 long double const a[] =
6833 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6834 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6839 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6840 + (x ? f (x) : 'c'));
6846 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6847 + (DBL_MANT_DIG < LDBL_MANT_DIG)
6848 - (LDBL_MAX_EXP < DBL_MAX_EXP)
6849 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6850 && (int) LDBL_EPSILON == 0
6858 rm -f conftest.$ac_objext
6859 if { (ac_try="$ac_compile"
6861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6862 *) ac_try_echo
=$ac_try;;
6864 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6865 $as_echo "$ac_try_echo") >&5
6866 (eval "$ac_compile") 2>conftest.er1
6868 grep -v '^ *+' conftest.er1
>conftest.err
6870 cat conftest.err
>&5
6871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } && {
6873 test -z "$ac_c_werror_flag" ||
6874 test ! -s conftest.err
6875 } && test -s conftest.
$ac_objext; then
6876 ac_cv_type_long_double_wider
=yes
6878 $as_echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.
$ac_ext >&5
6881 ac_cv_type_long_double_wider
=no
6884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6886 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
6887 $as_echo "$ac_cv_type_long_double_wider" >&6; }
6888 if test $ac_cv_type_long_double_wider = yes; then
6890 cat >>confdefs.h
<<\_ACEOF
6891 #define HAVE_LONG_DOUBLE_WIDER 1
6896 ac_cv_c_long_double
=$ac_cv_type_long_double_wider
6897 if test $ac_cv_c_long_double = yes; then
6899 cat >>confdefs.h
<<\_ACEOF
6900 #define HAVE_LONG_DOUBLE 1
6905 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
6906 $as_echo_n "checking for function prototypes... " >&6; }
6907 if test "$ac_cv_prog_cc_c89" != no
; then
6908 { $as_echo "$as_me:$LINENO: result: yes" >&5
6909 $as_echo "yes" >&6; }
6911 cat >>confdefs.h
<<\_ACEOF
6912 #define PROTOTYPES 1
6916 cat >>confdefs.h
<<\_ACEOF
6917 #define __PROTOTYPES 1
6921 { $as_echo "$as_me:$LINENO: result: no" >&5
6922 $as_echo "no" >&6; }
6926 { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
6927 $as_echo_n "checking whether char is unsigned... " >&6; }
6928 if test "${ac_cv_c_char_unsigned+set}" = set; then
6929 $as_echo_n "(cached) " >&6
6931 cat >conftest.
$ac_ext <<_ACEOF
6934 cat confdefs.h
>>conftest.
$ac_ext
6935 cat >>conftest.
$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6937 $ac_includes_default
6941 static int test_array [1 - 2 * !(((char) -1) < 0)];
6948 rm -f conftest.
$ac_objext
6949 if { (ac_try
="$ac_compile"
6951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6955 $as_echo "$ac_try_echo") >&5
6956 (eval "$ac_compile") 2>conftest.er1
6958 grep -v '^ *+' conftest.er1 >conftest.err
6960 cat conftest.err >&5
6961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } && {
6963 test -z "$ac_c_werror_flag" ||
6964 test ! -s conftest.err
6965 } && test -s conftest.$ac_objext; then
6966 ac_cv_c_char_unsigned=no
6968 $as_echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6971 ac_cv_c_char_unsigned=yes
6974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6976 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
6977 $as_echo "$ac_cv_c_char_unsigned" >&6; }
6978 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
6979 cat >>confdefs.h <<\_ACEOF
6980 #define __CHAR_UNSIGNED__ 1
6988 if test -n "$ac_aux_dir"; then
6989 case "$ac_aux_dir" in
6990 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6991 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6994 if test -z "$MKINSTALLDIRS"; then
6995 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7000 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7001 $as_echo_n "checking whether NLS is requested... " >&6; }
7002 # Check whether --enable-nls was given.
7003 if test "${enable_nls+set}" = set; then
7004 enableval=$enable_nls; USE_NLS=$enableval
7009 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
7010 $as_echo "$USE_NLS" >&6; }
7017 # Prepare PATH_SEPARATOR.
7018 # The user is always right.
7019 if test "${PATH_SEPARATOR+set}" != set; then
7020 echo "#! /bin/sh" >conf$$.sh
7021 echo "exit 0" >>conf$$.sh
7023 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7031 # Find out how to test for executable files. Don't use a zero-byte file,
7032 # as systems may use methods other than mode bits to determine executability.
7033 cat >conf$$.file <<_ASEOF
7037 chmod +x conf$$.file
7038 if test -x conf$$.file >/dev/null 2>&1; then
7039 ac_executable_p="test -x"
7041 ac_executable_p="test -f"
7045 # Extract the first word of "msgfmt", so it can be a program name with args.
7046 set dummy msgfmt; ac_word=$2
7047 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if test "${ac_cv_path_MSGFMT+set}" = set; then
7050 $as_echo_n "(cached) " >&6
7054 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7057 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7058 for ac_dir in $PATH; do
7060 test -z "$ac_dir" && ac_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7063 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7064 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7065 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7072 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7076 MSGFMT="$ac_cv_path_MSGFMT"
7077 if test "$MSGFMT" != ":"; then
7078 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7079 $as_echo "$MSGFMT" >&6; }
7081 { $as_echo "$as_me:$LINENO: result: no" >&5
7082 $as_echo "no" >&6; }
7085 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7086 set dummy gmsgfmt; ac_word=$2
7087 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 $as_echo_n "checking for $ac_word... " >&6; }
7089 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7090 $as_echo_n "(cached) " >&6
7094 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7104 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7105 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7116 GMSGFMT=$ac_cv_path_GMSGFMT
7117 if test -n "$GMSGFMT"; then
7118 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7119 $as_echo "$GMSGFMT" >&6; }
7121 { $as_echo "$as_me:$LINENO: result: no" >&5
7122 $as_echo "no" >&6; }
7128 # Prepare PATH_SEPARATOR.
7129 # The user is always right.
7130 if test "${PATH_SEPARATOR+set}" != set; then
7131 echo "#! /bin/sh" >conf$$.sh
7132 echo "exit 0" >>conf$$.sh
7134 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7142 # Find out how to test for executable files. Don't use a zero-byte file,
7143 # as systems may use methods other than mode bits to determine executability.
7144 cat >conf$$.file <<_ASEOF
7148 chmod +x conf$$.file
7149 if test -x conf$$.file >/dev/null 2>&1; then
7150 ac_executable_p="test -x"
7152 ac_executable_p="test -f"
7156 # Extract the first word of "xgettext", so it can be a program name with args.
7157 set dummy xgettext; ac_word=$2
7158 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7159 $as_echo_n "checking for $ac_word... " >&6; }
7160 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7161 $as_echo_n "(cached) " >&6
7165 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7168 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7169 for ac_dir in $PATH; do
7171 test -z "$ac_dir" && ac_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7174 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7175 (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
7176 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7183 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7187 XGETTEXT="$ac_cv_path_XGETTEXT"
7188 if test "$XGETTEXT" != ":"; then
7189 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7190 $as_echo "$XGETTEXT" >&6; }
7192 { $as_echo "$as_me:$LINENO: result: no" >&5
7193 $as_echo "no" >&6; }
7199 # Prepare PATH_SEPARATOR.
7200 # The user is always right.
7201 if test "${PATH_SEPARATOR+set}" != set; then
7202 echo "#! /bin/sh" >conf$$.sh
7203 echo "exit 0" >>conf$$.sh
7205 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7213 # Find out how to test for executable files. Don't use a zero-byte file,
7214 # as systems may use methods other than mode bits to determine executability.
7215 cat >conf$$.file <<_ASEOF
7219 chmod +x conf$$.file
7220 if test -x conf$$.file >/dev/null 2>&1; then
7221 ac_executable_p="test -x"
7223 ac_executable_p="test -f"
7227 # Extract the first word of "msgmerge", so it can be a program name with args.
7228 set dummy msgmerge; ac_word=$2
7229 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7232 $as_echo_n "(cached) " >&6
7236 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7239 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7240 for ac_dir in $PATH; do
7242 test -z "$ac_dir" && ac_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7245 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7246 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7253 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7257 MSGMERGE="$ac_cv_path_MSGMERGE"
7258 if test "$MSGMERGE" != ":"; then
7259 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7260 $as_echo "$MSGMERGE" >&6; }
7262 { $as_echo "$as_me:$LINENO: result: no" >&5
7263 $as_echo "no" >&6; }
7267 if test "$GMSGFMT" != ":"; then
7268 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7269 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7272 GMSGFMT=`echo "$GMSGFMT" |
sed -e 's,^.*/,,'`
7273 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7274 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7279 if test "$XGETTEXT" != ":"; then
7280 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7281 (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
7284 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7285 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7291 ac_config_commands="$ac_config_commands default-1"
7294 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
7295 $as_echo_n "checking for off_t... " >&6; }
7296 if test "${ac_cv_type_off_t+set}" = set; then
7297 $as_echo_n "(cached) " >&6
7300 cat >conftest.$ac_ext <<_ACEOF
7303 cat confdefs.h >>conftest.$ac_ext
7304 cat >>conftest.$ac_ext <<_ACEOF
7305 /* end confdefs.h. */
7306 $ac_includes_default
7316 rm -f conftest.$ac_objext
7317 if { (ac_try="$ac_compile"
7319 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7320 *) ac_try_echo
=$ac_try;;
7322 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7323 $as_echo "$ac_try_echo") >&5
7324 (eval "$ac_compile") 2>conftest.er1
7326 grep -v '^ *+' conftest.er1
>conftest.err
7328 cat conftest.err
>&5
7329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && {
7331 test -z "$ac_c_werror_flag" ||
7332 test ! -s conftest.err
7333 } && test -s conftest.
$ac_objext; then
7334 cat >conftest.
$ac_ext <<_ACEOF
7337 cat confdefs.h
>>conftest.
$ac_ext
7338 cat >>conftest.
$ac_ext <<_ACEOF
7339 /* end confdefs.h. */
7340 $ac_includes_default
7344 if (sizeof ((off_t)))
7350 rm -f conftest.
$ac_objext
7351 if { (ac_try
="$ac_compile"
7353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7357 $as_echo "$ac_try_echo") >&5
7358 (eval "$ac_compile") 2>conftest.er1
7360 grep -v '^ *+' conftest.er1 >conftest.err
7362 cat conftest.err >&5
7363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } && {
7365 test -z "$ac_c_werror_flag" ||
7366 test ! -s conftest.err
7367 } && test -s conftest.$ac_objext; then
7370 $as_echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7373 ac_cv_type_off_t=yes
7376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378 $as_echo "$as_me: failed program was:" >&5
7379 sed 's/^/| /' conftest.$ac_ext >&5
7384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7386 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7387 $as_echo "$ac_cv_type_off_t" >&6; }
7388 if test "x$ac_cv_type_off_t" = x""yes; then
7392 cat >>confdefs.h <<_ACEOF
7393 #define off_t long int
7398 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
7399 $as_echo_n "checking for size_t... " >&6; }
7400 if test "${ac_cv_type_size_t+set}" = set; then
7401 $as_echo_n "(cached) " >&6
7403 ac_cv_type_size_t=no
7404 cat >conftest.$ac_ext <<_ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h. */
7410 $ac_includes_default
7414 if (sizeof (size_t))
7420 rm -f conftest.$ac_objext
7421 if { (ac_try="$ac_compile"
7423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7424 *) ac_try_echo
=$ac_try;;
7426 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7427 $as_echo "$ac_try_echo") >&5
7428 (eval "$ac_compile") 2>conftest.er1
7430 grep -v '^ *+' conftest.er1
>conftest.err
7432 cat conftest.err
>&5
7433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } && {
7435 test -z "$ac_c_werror_flag" ||
7436 test ! -s conftest.err
7437 } && test -s conftest.
$ac_objext; then
7438 cat >conftest.
$ac_ext <<_ACEOF
7441 cat confdefs.h
>>conftest.
$ac_ext
7442 cat >>conftest.
$ac_ext <<_ACEOF
7443 /* end confdefs.h. */
7444 $ac_includes_default
7448 if (sizeof ((size_t)))
7454 rm -f conftest.
$ac_objext
7455 if { (ac_try
="$ac_compile"
7457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7458 *) ac_try_echo=$ac_try;;
7460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7461 $as_echo "$ac_try_echo") >&5
7462 (eval "$ac_compile") 2>conftest.er1
7464 grep -v '^ *+' conftest.er1 >conftest.err
7466 cat conftest.err >&5
7467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } && {
7469 test -z "$ac_c_werror_flag" ||
7470 test ! -s conftest.err
7471 } && test -s conftest.$ac_objext; then
7474 $as_echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7477 ac_cv_type_size_t=yes
7480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482 $as_echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7491 $as_echo "$ac_cv_type_size_t" >&6; }
7492 if test "x$ac_cv_type_size_t" = x""yes; then
7496 cat >>confdefs.h <<_ACEOF
7497 #define size_t unsigned int
7502 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7503 # for constant arguments. Useless!
7504 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
7505 $as_echo_n "checking for working alloca.h... " >&6; }
7506 if test "${ac_cv_working_alloca_h+set}" = set; then
7507 $as_echo_n "(cached) " >&6
7509 cat >conftest.$ac_ext <<_ACEOF
7512 cat confdefs.h >>conftest.$ac_ext
7513 cat >>conftest.$ac_ext <<_ACEOF
7514 /* end confdefs.h. */
7519 char *p = (char *) alloca (2 * sizeof (int));
7525 rm -f conftest.$ac_objext conftest$ac_exeext
7526 if { (ac_try="$ac_link"
7528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7529 *) ac_try_echo
=$ac_try;;
7531 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7532 $as_echo "$ac_try_echo") >&5
7533 (eval "$ac_link") 2>conftest.er1
7535 grep -v '^ *+' conftest.er1
>conftest.err
7537 cat conftest.err
>&5
7538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } && {
7540 test -z "$ac_c_werror_flag" ||
7541 test ! -s conftest.err
7542 } && test -s conftest
$ac_exeext && {
7543 test "$cross_compiling" = yes ||
7544 $as_test_x conftest
$ac_exeext
7546 ac_cv_working_alloca_h
=yes
7548 $as_echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.
$ac_ext >&5
7551 ac_cv_working_alloca_h
=no
7554 rm -rf conftest.dSYM
7555 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7556 conftest
$ac_exeext conftest.
$ac_ext
7558 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7559 $as_echo "$ac_cv_working_alloca_h" >&6; }
7560 if test $ac_cv_working_alloca_h = yes; then
7562 cat >>confdefs.h
<<\_ACEOF
7563 #define HAVE_ALLOCA_H 1
7568 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
7569 $as_echo_n "checking for alloca... " >&6; }
7570 if test "${ac_cv_func_alloca_works+set}" = set; then
7571 $as_echo_n "(cached) " >&6
7573 cat >conftest.
$ac_ext <<_ACEOF
7576 cat confdefs.h
>>conftest.
$ac_ext
7577 cat >>conftest.
$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7580 # define alloca __builtin_alloca
7583 # include <malloc.h>
7584 # define alloca _alloca
7586 # ifdef HAVE_ALLOCA_H
7587 # include <alloca.h>
7592 # ifndef alloca /* predefined by HP cc +Olibcalls */
7603 char *p = (char *) alloca (1);
7609 rm -f conftest.
$ac_objext conftest
$ac_exeext
7610 if { (ac_try
="$ac_link"
7612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7613 *) ac_try_echo=$ac_try;;
7615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7616 $as_echo "$ac_try_echo") >&5
7617 (eval "$ac_link") 2>conftest.er1
7619 grep -v '^ *+' conftest.er1 >conftest.err
7621 cat conftest.err >&5
7622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } && {
7624 test -z "$ac_c_werror_flag" ||
7625 test ! -s conftest.err
7626 } && test -s conftest$ac_exeext && {
7627 test "$cross_compiling" = yes ||
7628 $as_test_x conftest$ac_exeext
7630 ac_cv_func_alloca_works=yes
7632 $as_echo "$as_me: failed program was:" >&5
7633 sed 's/^/| /' conftest.$ac_ext >&5
7635 ac_cv_func_alloca_works=no
7638 rm -rf conftest.dSYM
7639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7640 conftest$ac_exeext conftest.$ac_ext
7642 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7643 $as_echo "$ac_cv_func_alloca_works" >&6; }
7645 if test $ac_cv_func_alloca_works = yes; then
7647 cat >>confdefs.h <<\_ACEOF
7648 #define HAVE_ALLOCA 1
7652 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7653 # that cause trouble. Some versions do not even contain alloca or
7654 # contain a buggy version. If you still want to use their alloca,
7655 # use ar to extract alloca.o from them instead of compiling alloca.c.
7657 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7659 cat >>confdefs.h <<\_ACEOF
7664 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
7665 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
7666 if test "${ac_cv_os_cray+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. */
7675 #if defined CRAY && ! defined CRAY2
7682 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7683 $EGREP "webecray
" >/dev/null 2>&1; then
7691 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
7692 $as_echo "$ac_cv_os_cray" >&6; }
7693 if test $ac_cv_os_cray = yes; then
7694 for ac_func in _getb67 GETB67 getb67; do
7695 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
7696 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
7697 $as_echo_n "checking
for $ac_func...
" >&6; }
7698 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
7699 $as_echo_n "(cached
) " >&6
7701 cat >conftest.$ac_ext <<_ACEOF
7704 cat confdefs.h >>conftest.$ac_ext
7705 cat >>conftest.$ac_ext <<_ACEOF
7706 /* end confdefs.h. */
7707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7709 #define $ac_func innocuous_$ac_func
7711 /* System header to define __stub macros and hopefully few prototypes,
7712 which can conflict with char $ac_func (); below.
7713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7714 <limits.h> exists even on freestanding compilers. */
7717 # include <limits.h>
7719 # include <assert.h>
7724 /* Override any GCC internal prototype to avoid an error.
7725 Use char because int might match the return type of a GCC
7726 builtin and then its argument prototype would still apply. */
7731 /* The GNU C library defines this for functions which it implements
7732 to always fail with ENOSYS. Some functions are actually named
7733 something starting with __ and the normal name is an alias. */
7734 #if defined __stub_$ac_func || defined __stub___$ac_func
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (ac_try="$ac_link"
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7752 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7753 $as_echo "$ac_try_echo") >&5
7754 (eval "$ac_link") 2>conftest.er1
7756 grep -v '^ *+' conftest.er1 >conftest.err
7758 cat conftest.err >&5
7759 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7760 (exit $ac_status); } && {
7761 test -z "$ac_c_werror_flag" ||
7762 test ! -s conftest.err
7763 } && test -s conftest$ac_exeext && {
7764 test "$cross_compiling" = yes ||
7765 $as_test_x conftest$ac_exeext
7767 eval "$as_ac_var=yes"
7769 $as_echo "$as_me: failed program was
:" >&5
7770 sed 's/^/| /' conftest.$ac_ext >&5
7772 eval "$as_ac_var=no
"
7775 rm -rf conftest.dSYM
7776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7777 conftest$ac_exeext conftest.$ac_ext
7779 ac_res=`eval 'as_val=${'$as_ac_var'}
7780 $as_echo "$as_val"'`
7781 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
7782 $as_echo "$ac_res" >&6; }
7783 as_val=`eval 'as_val=${'$as_ac_var'}
7784 $as_echo "$as_val"'`
7785 if test "x
$as_val" = x""yes; then
7787 cat >>confdefs.h <<_ACEOF
7788 #define CRAY_STACKSEG_END $ac_func
7797 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
7798 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
7799 if test "${ac_cv_c_stack_direction+set}" = set; then
7800 $as_echo_n "(cached
) " >&6
7802 if test "$cross_compiling" = yes; then
7803 ac_cv_c_stack_direction=0
7805 cat >conftest.$ac_ext <<_ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7811 $ac_includes_default
7813 find_stack_direction ()
7815 static char *addr = 0;
7820 return find_stack_direction ();
7823 return (&dummy > addr) ? 1 : -1;
7829 return find_stack_direction () < 0;
7832 rm -f conftest$ac_exeext
7833 if { (ac_try="$ac_link"
7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7838 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7839 $as_echo "$ac_try_echo") >&5
7840 (eval "$ac_link") 2>&5
7842 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7844 { (case "(($ac_try" in
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7848 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7849 $as_echo "$ac_try_echo") >&5
7850 (eval "$ac_try") 2>&5
7852 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7853 (exit $ac_status); }; }; then
7854 ac_cv_c_stack_direction=1
7856 $as_echo "$as_me: program exited with status
$ac_status" >&5
7857 $as_echo "$as_me: failed program was
:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7861 ac_cv_c_stack_direction=-1
7863 rm -rf conftest.dSYM
7864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7869 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
7870 $as_echo "$ac_cv_c_stack_direction" >&6; }
7872 cat >>confdefs.h <<_ACEOF
7873 #define STACK_DIRECTION $ac_cv_c_stack_direction
7881 for ac_header in stdlib.h unistd.h
7883 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
7884 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7885 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
7886 $as_echo_n "checking
for $ac_header...
" >&6; }
7887 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7888 $as_echo_n "(cached
) " >&6
7890 ac_res=`eval 'as_val=${'$as_ac_Header'}
7891 $as_echo "$as_val"'`
7892 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
7893 $as_echo "$ac_res" >&6; }
7895 # Is the header compilable?
7896 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
7897 $as_echo_n "checking
$ac_header usability...
" >&6; }
7898 cat >conftest.$ac_ext <<_ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h. */
7904 $ac_includes_default
7905 #include <$ac_header>
7907 rm -f conftest.$ac_objext
7908 if { (ac_try="$ac_compile"
7910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7913 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7914 $as_echo "$ac_try_echo") >&5
7915 (eval "$ac_compile") 2>conftest.er1
7917 grep -v '^ *+' conftest.er1 >conftest.err
7919 cat conftest.err >&5
7920 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7921 (exit $ac_status); } && {
7922 test -z "$ac_c_werror_flag" ||
7923 test ! -s conftest.err
7924 } && test -s conftest.$ac_objext; then
7925 ac_header_compiler=yes
7927 $as_echo "$as_me: failed program was
:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7930 ac_header_compiler=no
7933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
7935 $as_echo "$ac_header_compiler" >&6; }
7937 # Is the header present?
7938 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
7939 $as_echo_n "checking
$ac_header presence...
" >&6; }
7940 cat >conftest.$ac_ext <<_ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 #include <$ac_header>
7948 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7951 *) ac_try_echo=$ac_try;;
7953 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7954 $as_echo "$ac_try_echo") >&5
7955 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7957 grep -v '^ *+' conftest.er1 >conftest.err
7959 cat conftest.err >&5
7960 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7961 (exit $ac_status); } >/dev/null && {
7962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7963 test ! -s conftest.err
7965 ac_header_preproc=yes
7967 $as_echo "$as_me: failed program was
:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7970 ac_header_preproc=no
7973 rm -f conftest.err conftest.$ac_ext
7974 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
7975 $as_echo "$ac_header_preproc" >&6; }
7977 # So? What about this header?
7978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7980 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
7981 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
7982 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
7983 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
7984 ac_header_preproc=yes
7987 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
7988 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
7989 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
7990 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
7991 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
7992 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
7993 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
7994 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
7995 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
7996 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
7997 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
7998 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
8000 ## ------------------------------- ##
8001 ## Report this to bug-bash@gnu.org ##
8002 ## ------------------------------- ##
8004 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
8007 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
8008 $as_echo_n "checking
for $ac_header...
" >&6; }
8009 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8010 $as_echo_n "(cached
) " >&6
8012 eval "$as_ac_Header=\
$ac_header_preproc"
8014 ac_res=`eval 'as_val=${'$as_ac_Header'}
8015 $as_echo "$as_val"'`
8016 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
8017 $as_echo "$ac_res" >&6; }
8020 as_val=`eval 'as_val=${'$as_ac_Header'}
8021 $as_echo "$as_val"'`
8022 if test "x
$as_val" = x""yes; then
8023 cat >>confdefs.h <<_ACEOF
8024 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
8032 for ac_func in getpagesize
8034 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
8035 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
8036 $as_echo_n "checking
for $ac_func...
" >&6; }
8037 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
8038 $as_echo_n "(cached
) " >&6
8040 cat >conftest.$ac_ext <<_ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8048 #define $ac_func innocuous_$ac_func
8050 /* System header to define __stub macros and hopefully few prototypes,
8051 which can conflict with char $ac_func (); below.
8052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8053 <limits.h> exists even on freestanding compilers. */
8056 # include <limits.h>
8058 # include <assert.h>
8063 /* Override any GCC internal prototype to avoid an error.
8064 Use char because int might match the return type of a GCC
8065 builtin and then its argument prototype would still apply. */
8070 /* The GNU C library defines this for functions which it implements
8071 to always fail with ENOSYS. Some functions are actually named
8072 something starting with __ and the normal name is an alias. */
8073 #if defined __stub_$ac_func || defined __stub___$ac_func
8085 rm -f conftest.$ac_objext conftest$ac_exeext
8086 if { (ac_try="$ac_link"
8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089 *) ac_try_echo=$ac_try;;
8091 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8092 $as_echo "$ac_try_echo") >&5
8093 (eval "$ac_link") 2>conftest.er1
8095 grep -v '^ *+' conftest.er1 >conftest.err
8097 cat conftest.err >&5
8098 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8099 (exit $ac_status); } && {
8100 test -z "$ac_c_werror_flag" ||
8101 test ! -s conftest.err
8102 } && test -s conftest$ac_exeext && {
8103 test "$cross_compiling" = yes ||
8104 $as_test_x conftest$ac_exeext
8106 eval "$as_ac_var=yes"
8108 $as_echo "$as_me: failed program was
:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8111 eval "$as_ac_var=no
"
8114 rm -rf conftest.dSYM
8115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8116 conftest$ac_exeext conftest.$ac_ext
8118 ac_res=`eval 'as_val=${'$as_ac_var'}
8119 $as_echo "$as_val"'`
8120 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
8121 $as_echo "$ac_res" >&6; }
8122 as_val=`eval 'as_val=${'$as_ac_var'}
8123 $as_echo "$as_val"'`
8124 if test "x
$as_val" = x""yes; then
8125 cat >>confdefs.h <<_ACEOF
8126 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
8132 { $as_echo "$as_me:$LINENO: checking
for working mmap
" >&5
8133 $as_echo_n "checking
for working mmap...
" >&6; }
8134 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8135 $as_echo_n "(cached
) " >&6
8137 if test "$cross_compiling" = yes; then
8138 ac_cv_func_mmap_fixed_mapped=no
8140 cat >conftest.$ac_ext <<_ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h. */
8146 $ac_includes_default
8147 /* malloc might have been renamed as rpl_malloc. */
8150 /* Thanks to Mike Haertel and Jim Avera for this test.
8151 Here is a matrix of mmap possibilities:
8152 mmap private not fixed
8153 mmap private fixed at somewhere currently unmapped
8154 mmap private fixed at somewhere already mapped
8155 mmap shared not fixed
8156 mmap shared fixed at somewhere currently unmapped
8157 mmap shared fixed at somewhere already mapped
8158 For private mappings, we should verify that changes cannot be read()
8159 back from the file, nor mmap's back from the file at a different
8160 address. (There have been systems where private was not correctly
8161 implemented like the infamous i386 svr4.0, and systems where the
8162 VM page cache was not coherent with the file system buffer cache
8163 like early versions of FreeBSD and possibly contemporary NetBSD.)
8164 For shared mappings, we should conversely verify that changes get
8165 propagated back to all the places they're supposed to be.
8167 Grep wants private fixed already mapped.
8168 The main things grep needs to know about mmap are:
8169 * does it exist and is it safe to write into the mmap'd area
8170 * how to use it (BSD variants) */
8173 #include <sys/mman.h>
8175 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8179 /* This mess was copied from the GNU getpagesize.h. */
8180 #ifndef HAVE_GETPAGESIZE
8181 /* Assume that all systems that can run configure have sys/param.h. */
8182 # ifndef HAVE_SYS_PARAM_H
8183 # define HAVE_SYS_PARAM_H 1
8186 # ifdef _SC_PAGESIZE
8187 # define getpagesize() sysconf(_SC_PAGESIZE)
8188 # else /* no _SC_PAGESIZE */
8189 # ifdef HAVE_SYS_PARAM_H
8190 # include <sys/param.h>
8191 # ifdef EXEC_PAGESIZE
8192 # define getpagesize() EXEC_PAGESIZE
8193 # else /* no EXEC_PAGESIZE */
8195 # define getpagesize() NBPG * CLSIZE
8198 # endif /* no CLSIZE */
8199 # else /* no NBPG */
8201 # define getpagesize() NBPC
8202 # else /* no NBPC */
8204 # define getpagesize() PAGESIZE
8205 # endif /* PAGESIZE */
8206 # endif /* no NBPC */
8207 # endif /* no NBPG */
8208 # endif /* no EXEC_PAGESIZE */
8209 # else /* no HAVE_SYS_PARAM_H */
8210 # define getpagesize() 8192 /* punt totally */
8211 # endif /* no HAVE_SYS_PARAM_H */
8212 # endif /* no _SC_PAGESIZE */
8214 #endif /* no HAVE_GETPAGESIZE */
8219 char *data, *data2, *data3;
8223 pagesize = getpagesize ();
8225 /* First, make a file with some known garbage in it. */
8226 data = (char *) malloc (pagesize);
8229 for (i = 0; i < pagesize; ++i)
8230 *(data + i) = rand ();
8232 fd = creat ("conftest.mmap
", 0600);
8235 if (write (fd, data, pagesize) != pagesize)
8239 /* Next, try to mmap the file at a fixed address which already has
8240 something else allocated at it. If we can, also make sure that
8241 we see the same garbage. */
8242 fd = open ("conftest.mmap
", O_RDWR);
8245 data2 = (char *) malloc (2 * pagesize);
8248 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8249 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8250 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8252 for (i = 0; i < pagesize; ++i)
8253 if (*(data + i) != *(data2 + i))
8256 /* Finally, make sure that changes to the mapped area do not
8257 percolate back to the file as seen by read(). (This is a bug on
8258 some variants of i386 svr4.0.) */
8259 for (i = 0; i < pagesize; ++i)
8260 *(data2 + i) = *(data2 + i) + 1;
8261 data3 = (char *) malloc (pagesize);
8264 if (read (fd, data3, pagesize) != pagesize)
8266 for (i = 0; i < pagesize; ++i)
8267 if (*(data + i) != *(data3 + i))
8273 rm -f conftest$ac_exeext
8274 if { (ac_try="$ac_link"
8276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8279 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8280 $as_echo "$ac_try_echo") >&5
8281 (eval "$ac_link") 2>&5
8283 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8285 { (case "(($ac_try" in
8286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8289 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8290 $as_echo "$ac_try_echo") >&5
8291 (eval "$ac_try") 2>&5
8293 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8294 (exit $ac_status); }; }; then
8295 ac_cv_func_mmap_fixed_mapped=yes
8297 $as_echo "$as_me: program exited with status
$ac_status" >&5
8298 $as_echo "$as_me: failed program was
:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8302 ac_cv_func_mmap_fixed_mapped=no
8304 rm -rf conftest.dSYM
8305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8310 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
8311 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8312 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8314 cat >>confdefs.h <<\_ACEOF
8322 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library
2.1 or newer
" >&5
8323 $as_echo_n "checking whether we are using the GNU C Library
2.1 or newer...
" >&6; }
8324 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8325 $as_echo_n "(cached
) " >&6
8327 cat >conftest.$ac_ext <<_ACEOF
8330 cat confdefs.h >>conftest.$ac_ext
8331 cat >>conftest.$ac_ext <<_ACEOF
8332 /* end confdefs.h. */
8334 #include <features.h>
8335 #ifdef __GNU_LIBRARY__
8336 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8342 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
8343 $EGREP "Lucky GNU user
" >/dev/null 2>&1; then
8344 ac_cv_gnu_library_2_1=yes
8346 ac_cv_gnu_library_2_1=no
8353 { $as_echo "$as_me:$LINENO: result
: $ac_cv_gnu_library_2_1" >&5
8354 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8356 GLIBC21="$ac_cv_gnu_library_2_1"
8361 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE
" >&5
8362 $as_echo_n "checking whether integer division by zero raises SIGFPE...
" >&6; }
8363 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8364 $as_echo_n "(cached
) " >&6
8367 if test "$cross_compiling" = yes; then
8369 # Guess based on the CPU.
8371 alpha* | i3456786 | m68k | s390*)
8372 gt_cv_int_divbyzero_sigfpe="guessing
yes";;
8374 gt_cv_int_divbyzero_sigfpe="guessing no
";;
8378 cat >conftest.$ac_ext <<_ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8390 sigfpe_handler (int sig)
8392 sigfpe_handler (sig) int sig;
8395 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8396 exit (sig != SIGFPE);
8406 signal (SIGFPE, sigfpe_handler);
8407 /* IRIX and AIX (when "xlc
-qcheck" is used) yield signal SIGTRAP. */
8408 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8409 signal (SIGTRAP, sigfpe_handler);
8411 /* Linux/SPARC yields signal SIGILL. */
8412 #if defined (__sparc__) && defined (__linux__)
8413 signal (SIGILL, sigfpe_handler);
8422 rm -f conftest$ac_exeext
8423 if { (ac_try="$ac_link"
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8428 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8429 $as_echo "$ac_try_echo") >&5
8430 (eval "$ac_link") 2>&5
8432 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8434 { (case "(($ac_try" in
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8438 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8439 $as_echo "$ac_try_echo") >&5
8440 (eval "$ac_try") 2>&5
8442 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8443 (exit $ac_status); }; }; then
8444 gt_cv_int_divbyzero_sigfpe=yes
8446 $as_echo "$as_me: program exited with status
$ac_status" >&5
8447 $as_echo "$as_me: failed program was
:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8451 gt_cv_int_divbyzero_sigfpe=no
8453 rm -rf conftest.dSYM
8454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8460 { $as_echo "$as_me:$LINENO: result
: $gt_cv_int_divbyzero_sigfpe" >&5
8461 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
8462 case "$gt_cv_int_divbyzero_sigfpe" in
8467 cat >>confdefs.h <<_ACEOF
8468 #define INTDIV0_RAISES_SIGFPE $value
8473 { $as_echo "$as_me:$LINENO: checking
for inttypes.h
" >&5
8474 $as_echo_n "checking
for inttypes.h...
" >&6; }
8475 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
8476 $as_echo_n "(cached
) " >&6
8478 cat >conftest.$ac_ext <<_ACEOF
8481 cat confdefs.h >>conftest.$ac_ext
8482 cat >>conftest.$ac_ext <<_ACEOF
8483 /* end confdefs.h. */
8484 #include <sys/types.h>
8485 #include <inttypes.h>
8489 uintmax_t i = (uintmax_t) -1;
8494 rm -f conftest.$ac_objext
8495 if { (ac_try="$ac_compile"
8497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8500 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8501 $as_echo "$ac_try_echo") >&5
8502 (eval "$ac_compile") 2>conftest.er1
8504 grep -v '^ *+' conftest.er1 >conftest.err
8506 cat conftest.err >&5
8507 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8508 (exit $ac_status); } && {
8509 test -z "$ac_c_werror_flag" ||
8510 test ! -s conftest.err
8511 } && test -s conftest.$ac_objext; then
8512 jm_ac_cv_header_inttypes_h=yes
8514 $as_echo "$as_me: failed program was
:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8517 jm_ac_cv_header_inttypes_h=no
8520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8522 { $as_echo "$as_me:$LINENO: result
: $jm_ac_cv_header_inttypes_h" >&5
8523 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
8524 if test $jm_ac_cv_header_inttypes_h = yes; then
8526 cat >>confdefs.h <<_ACEOF
8527 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8533 { $as_echo "$as_me:$LINENO: checking
for stdint.h
" >&5
8534 $as_echo_n "checking
for stdint.h...
" >&6; }
8535 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
8536 $as_echo_n "(cached
) " >&6
8538 cat >conftest.$ac_ext <<_ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8544 #include <sys/types.h>
8549 uintmax_t i = (uintmax_t) -1;
8554 rm -f conftest.$ac_objext
8555 if { (ac_try="$ac_compile"
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8560 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8561 $as_echo "$ac_try_echo") >&5
8562 (eval "$ac_compile") 2>conftest.er1
8564 grep -v '^ *+' conftest.er1 >conftest.err
8566 cat conftest.err >&5
8567 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8568 (exit $ac_status); } && {
8569 test -z "$ac_c_werror_flag" ||
8570 test ! -s conftest.err
8571 } && test -s conftest.$ac_objext; then
8572 jm_ac_cv_header_stdint_h=yes
8574 $as_echo "$as_me: failed program was
:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8577 jm_ac_cv_header_stdint_h=no
8580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8582 { $as_echo "$as_me:$LINENO: result
: $jm_ac_cv_header_stdint_h" >&5
8583 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
8584 if test $jm_ac_cv_header_stdint_h = yes; then
8586 cat >>confdefs.h <<_ACEOF
8587 #define HAVE_STDINT_H_WITH_UINTMAX 1
8593 { $as_echo "$as_me:$LINENO: checking
for unsigned long long
" >&5
8594 $as_echo_n "checking
for unsigned long long...
" >&6; }
8595 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
8596 $as_echo_n "(cached
) " >&6
8598 cat >conftest.$ac_ext <<_ACEOF
8601 cat confdefs.h >>conftest.$ac_ext
8602 cat >>conftest.$ac_ext <<_ACEOF
8603 /* end confdefs.h. */
8604 unsigned long long ull = 1; int i = 63;
8608 unsigned long long ullmax = (unsigned long long) -1;
8609 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8614 rm -f conftest.$ac_objext conftest$ac_exeext
8615 if { (ac_try="$ac_link"
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8620 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8621 $as_echo "$ac_try_echo") >&5
8622 (eval "$ac_link") 2>conftest.er1
8624 grep -v '^ *+' conftest.er1 >conftest.err
8626 cat conftest.err >&5
8627 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8628 (exit $ac_status); } && {
8629 test -z "$ac_c_werror_flag" ||
8630 test ! -s conftest.err
8631 } && test -s conftest$ac_exeext && {
8632 test "$cross_compiling" = yes ||
8633 $as_test_x conftest$ac_exeext
8635 ac_cv_type_unsigned_long_long=yes
8637 $as_echo "$as_me: failed program was
:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8640 ac_cv_type_unsigned_long_long=no
8643 rm -rf conftest.dSYM
8644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8645 conftest$ac_exeext conftest.$ac_ext
8647 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_unsigned_long_long" >&5
8648 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
8649 if test $ac_cv_type_unsigned_long_long = yes; then
8651 cat >>confdefs.h <<\_ACEOF
8652 #define HAVE_UNSIGNED_LONG_LONG 1
8660 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
8662 test $ac_cv_type_unsigned_long_long = yes \
8663 && ac_type='unsigned long long' \
8664 || ac_type='unsigned long'
8666 cat >>confdefs.h <<_ACEOF
8667 #define uintmax_t $ac_type
8672 cat >>confdefs.h <<\_ACEOF
8673 #define HAVE_UINTMAX_T 1
8679 { $as_echo "$as_me:$LINENO: checking
for inttypes.h
" >&5
8680 $as_echo_n "checking
for inttypes.h...
" >&6; }
8681 if test "${gt_cv_header_inttypes_h+set}" = set; then
8682 $as_echo_n "(cached
) " >&6
8685 cat >conftest.$ac_ext <<_ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h. */
8691 #include <sys/types.h>
8692 #include <inttypes.h>
8701 rm -f conftest.$ac_objext
8702 if { (ac_try="$ac_compile"
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8707 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8708 $as_echo "$ac_try_echo") >&5
8709 (eval "$ac_compile") 2>conftest.er1
8711 grep -v '^ *+' conftest.er1 >conftest.err
8713 cat conftest.err >&5
8714 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8715 (exit $ac_status); } && {
8716 test -z "$ac_c_werror_flag" ||
8717 test ! -s conftest.err
8718 } && test -s conftest.$ac_objext; then
8719 gt_cv_header_inttypes_h=yes
8721 $as_echo "$as_me: failed program was
:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8724 gt_cv_header_inttypes_h=no
8727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8730 { $as_echo "$as_me:$LINENO: result
: $gt_cv_header_inttypes_h" >&5
8731 $as_echo "$gt_cv_header_inttypes_h" >&6; }
8732 if test $gt_cv_header_inttypes_h = yes; then
8734 cat >>confdefs.h <<_ACEOF
8735 #define HAVE_INTTYPES_H 1
8742 if test $gt_cv_header_inttypes_h = yes; then
8743 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken
" >&5
8744 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken...
" >&6; }
8745 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
8746 $as_echo_n "(cached
) " >&6
8749 cat >conftest.$ac_ext <<_ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h. */
8755 #include <inttypes.h>
8768 rm -f conftest.$ac_objext
8769 if { (ac_try="$ac_compile"
8771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772 *) ac_try_echo=$ac_try;;
8774 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8775 $as_echo "$ac_try_echo") >&5
8776 (eval "$ac_compile") 2>conftest.er1
8778 grep -v '^ *+' conftest.er1 >conftest.err
8780 cat conftest.err >&5
8781 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8782 (exit $ac_status); } && {
8783 test -z "$ac_c_werror_flag" ||
8784 test ! -s conftest.err
8785 } && test -s conftest.$ac_objext; then
8786 gt_cv_inttypes_pri_broken=no
8788 $as_echo "$as_me: failed program was
:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8791 gt_cv_inttypes_pri_broken=yes
8794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8797 { $as_echo "$as_me:$LINENO: result
: $gt_cv_inttypes_pri_broken" >&5
8798 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8800 if test "$gt_cv_inttypes_pri_broken" = yes; then
8802 cat >>confdefs.h <<_ACEOF
8803 #define PRI_MACROS_BROKEN 1
8809 if test "X
$prefix" = "XNONE
"; then
8810 acl_final_prefix="$ac_default_prefix"
8812 acl_final_prefix="$prefix"
8814 if test "X
$exec_prefix" = "XNONE
"; then
8815 acl_final_exec_prefix='${prefix}'
8817 acl_final_exec_prefix="$exec_prefix"
8819 acl_save_prefix="$prefix"
8820 prefix="$acl_final_prefix"
8821 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8822 prefix="$acl_save_prefix"
8825 # Check whether --with-gnu-ld was given.
8826 if test "${with_gnu_ld+set}" = set; then
8827 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8832 # Prepare PATH_SEPARATOR.
8833 # The user is always right.
8834 if test "${PATH_SEPARATOR+set}" != set; then
8835 echo "#! /bin/sh" >conf$$.sh
8836 echo "exit 0" >>conf$$.sh
8838 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8846 if test "$GCC" = yes; then
8847 # Check if gcc -print-prog-name=ld gives a path.
8848 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8849 $as_echo_n "checking for ld used by GCC... " >&6; }
8852 # gcc leaves a trailing carriage return which upsets mingw
8853 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8855 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8858 # Accept absolute paths.
8859 [\\/]* |
[A-Za-z
]:[\\/]*)
8860 re_direlt
='/[^/][^/]*/\.\./'
8861 # Canonicalize the path of ld
8862 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8863 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8864 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8866 test -z "$LD" && LD
="$ac_prog"
8869 # If it fails, then pretend we aren't using GCC.
8873 # If it is relative, then search for the first ld in PATH.
8877 elif test "$with_gnu_ld" = yes; then
8878 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
8879 $as_echo_n "checking for GNU ld... " >&6; }
8881 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8882 $as_echo_n "checking for non-GNU ld... " >&6; }
8884 if test "${acl_cv_path_LD+set}" = set; then
8885 $as_echo_n "(cached) " >&6
8887 if test -z "$LD"; then
8888 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8889 for ac_dir
in $PATH; do
8890 test -z "$ac_dir" && ac_dir
=.
8891 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8892 acl_cv_path_LD
="$ac_dir/$ac_prog"
8893 # Check to see if the program is GNU ld. I'd rather use --version,
8894 # but apparently some GNU ld's only accept -v.
8895 # Break only if it was the GNU/non-GNU ld that we prefer.
8896 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8897 test "$with_gnu_ld" != no
&& break
8899 test "$with_gnu_ld" != yes && break
8905 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8909 LD
="$acl_cv_path_LD"
8910 if test -n "$LD"; then
8911 { $as_echo "$as_me:$LINENO: result: $LD" >&5
8912 $as_echo "$LD" >&6; }
8914 { $as_echo "$as_me:$LINENO: result: no" >&5
8915 $as_echo "no" >&6; }
8917 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8918 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8919 { (exit 1); exit 1; }; }
8920 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8921 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8922 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8923 $as_echo_n "(cached) " >&6
8925 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8926 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8927 acl_cv_prog_gnu_ld
=yes
8929 acl_cv_prog_gnu_ld
=no
8932 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8933 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8934 with_gnu_ld
=$acl_cv_prog_gnu_ld
8938 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8939 $as_echo_n "checking for shared library run path origin... " >&6; }
8940 if test "${acl_cv_rpath+set}" = set; then
8941 $as_echo_n "(cached) " >&6
8944 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8945 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8951 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8952 $as_echo "$acl_cv_rpath" >&6; }
8954 libext
="$acl_cv_libext"
8955 shlibext
="$acl_cv_shlibext"
8956 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8957 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8958 hardcode_direct
="$acl_cv_hardcode_direct"
8959 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8960 # Check whether --enable-rpath was given.
8961 if test "${enable_rpath+set}" = set; then
8962 enableval
=$enable_rpath; :
8976 acl_save_prefix
="$prefix"
8977 prefix
="$acl_final_prefix"
8978 acl_save_exec_prefix
="$exec_prefix"
8979 exec_prefix
="$acl_final_exec_prefix"
8981 eval additional_includedir
=\"$includedir\"
8982 eval additional_libdir
=\"$libdir\"
8984 exec_prefix
="$acl_save_exec_prefix"
8985 prefix
="$acl_save_prefix"
8988 # Check whether --with-libiconv-prefix was given.
8989 if test "${with_libiconv_prefix+set}" = set; then
8990 withval
=$with_libiconv_prefix;
8991 if test "X$withval" = "Xno"; then
8994 if test "X$withval" = "X"; then
8996 acl_save_prefix
="$prefix"
8997 prefix
="$acl_final_prefix"
8998 acl_save_exec_prefix
="$exec_prefix"
8999 exec_prefix
="$acl_final_exec_prefix"
9001 eval additional_includedir
=\"$includedir\"
9002 eval additional_libdir
=\"$libdir\"
9004 exec_prefix
="$acl_save_exec_prefix"
9005 prefix
="$acl_save_prefix"
9008 additional_includedir
="$withval/include"
9009 additional_libdir
="$withval/lib"
9020 names_already_handled
=
9021 names_next_round
='iconv '
9022 while test -n "$names_next_round"; do
9023 names_this_round
="$names_next_round"
9025 for name
in $names_this_round; do
9027 for n
in $names_already_handled; do
9028 if test "$n" = "$name"; then
9033 if test -z "$already_handled"; then
9034 names_already_handled
="$names_already_handled $name"
9035 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9036 eval value
=\"\
$HAVE_LIB$uppername\"
9037 if test -n "$value"; then
9038 if test "$value" = yes; then
9039 eval value
=\"\
$LIB$uppername\"
9040 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9041 eval value
=\"\
$LTLIB$uppername\"
9042 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9051 if test $use_additional = yes; then
9052 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9053 found_dir
="$additional_libdir"
9054 found_so
="$additional_libdir/lib$name.$shlibext"
9055 if test -f "$additional_libdir/lib$name.la"; then
9056 found_la
="$additional_libdir/lib$name.la"
9059 if test -f "$additional_libdir/lib$name.$libext"; then
9060 found_dir
="$additional_libdir"
9061 found_a
="$additional_libdir/lib$name.$libext"
9062 if test -f "$additional_libdir/lib$name.la"; then
9063 found_la
="$additional_libdir/lib$name.la"
9068 if test "X$found_dir" = "X"; then
9069 for x
in $LDFLAGS $LTLIBICONV; do
9071 acl_save_prefix
="$prefix"
9072 prefix
="$acl_final_prefix"
9073 acl_save_exec_prefix
="$exec_prefix"
9074 exec_prefix
="$acl_final_exec_prefix"
9076 exec_prefix
="$acl_save_exec_prefix"
9077 prefix
="$acl_save_prefix"
9081 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9082 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9084 found_so
="$dir/lib$name.$shlibext"
9085 if test -f "$dir/lib$name.la"; then
9086 found_la
="$dir/lib$name.la"
9089 if test -f "$dir/lib$name.$libext"; then
9091 found_a
="$dir/lib$name.$libext"
9092 if test -f "$dir/lib$name.la"; then
9093 found_la
="$dir/lib$name.la"
9099 if test "X$found_dir" != "X"; then
9104 if test "X$found_dir" != "X"; then
9105 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9106 if test "X$found_so" != "X"; then
9107 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9108 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9111 for x
in $ltrpathdirs; do
9112 if test "X$x" = "X$found_dir"; then
9117 if test -z "$haveit"; then
9118 ltrpathdirs
="$ltrpathdirs $found_dir"
9120 if test "$hardcode_direct" = yes; then
9121 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9123 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9124 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9126 for x
in $rpathdirs; do
9127 if test "X$x" = "X$found_dir"; then
9132 if test -z "$haveit"; then
9133 rpathdirs
="$rpathdirs $found_dir"
9137 for x
in $LDFLAGS $LIBICONV; do
9139 acl_save_prefix
="$prefix"
9140 prefix
="$acl_final_prefix"
9141 acl_save_exec_prefix
="$exec_prefix"
9142 exec_prefix
="$acl_final_exec_prefix"
9144 exec_prefix
="$acl_save_exec_prefix"
9145 prefix
="$acl_save_prefix"
9147 if test "X$x" = "X-L$found_dir"; then
9152 if test -z "$haveit"; then
9153 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9155 if test "$hardcode_minus_L" != no
; then
9156 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9158 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9164 if test "X$found_a" != "X"; then
9165 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9167 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9170 additional_includedir
=
9171 case "$found_dir" in
9173 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9174 additional_includedir
="$basedir/include"
9177 if test "X$additional_includedir" != "X"; then
9178 if test "X$additional_includedir" != "X/usr/include"; then
9180 if test "X$additional_includedir" = "X/usr/local/include"; then
9181 if test -n "$GCC"; then
9183 linux
*) haveit
=yes;;
9187 if test -z "$haveit"; then
9188 for x
in $CPPFLAGS $INCICONV; do
9190 acl_save_prefix
="$prefix"
9191 prefix
="$acl_final_prefix"
9192 acl_save_exec_prefix
="$exec_prefix"
9193 exec_prefix
="$acl_final_exec_prefix"
9195 exec_prefix
="$acl_save_exec_prefix"
9196 prefix
="$acl_save_prefix"
9198 if test "X$x" = "X-I$additional_includedir"; then
9203 if test -z "$haveit"; then
9204 if test -d "$additional_includedir"; then
9205 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9211 if test -n "$found_la"; then
9212 save_libdir
="$libdir"
9214 */* |
*\\*) .
"$found_la" ;;
9215 *) .
"./$found_la" ;;
9217 libdir
="$save_libdir"
9218 for dep
in $dependency_libs; do
9221 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9222 if test "X$additional_libdir" != "X/usr/lib"; then
9224 if test "X$additional_libdir" = "X/usr/local/lib"; then
9225 if test -n "$GCC"; then
9227 linux
*) haveit
=yes;;
9231 if test -z "$haveit"; then
9233 for x
in $LDFLAGS $LIBICONV; do
9235 acl_save_prefix
="$prefix"
9236 prefix
="$acl_final_prefix"
9237 acl_save_exec_prefix
="$exec_prefix"
9238 exec_prefix
="$acl_final_exec_prefix"
9240 exec_prefix
="$acl_save_exec_prefix"
9241 prefix
="$acl_save_prefix"
9243 if test "X$x" = "X-L$additional_libdir"; then
9248 if test -z "$haveit"; then
9249 if test -d "$additional_libdir"; then
9250 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9254 for x
in $LDFLAGS $LTLIBICONV; do
9256 acl_save_prefix
="$prefix"
9257 prefix
="$acl_final_prefix"
9258 acl_save_exec_prefix
="$exec_prefix"
9259 exec_prefix
="$acl_final_exec_prefix"
9261 exec_prefix
="$acl_save_exec_prefix"
9262 prefix
="$acl_save_prefix"
9264 if test "X$x" = "X-L$additional_libdir"; then
9269 if test -z "$haveit"; then
9270 if test -d "$additional_libdir"; then
9271 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9278 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9279 if test "$enable_rpath" != no
; then
9281 for x
in $rpathdirs; do
9282 if test "X$x" = "X$dir"; then
9287 if test -z "$haveit"; then
9288 rpathdirs
="$rpathdirs $dir"
9291 for x
in $ltrpathdirs; do
9292 if test "X$x" = "X$dir"; then
9297 if test -z "$haveit"; then
9298 ltrpathdirs
="$ltrpathdirs $dir"
9303 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9306 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9309 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9310 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9316 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9317 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9323 if test "X$rpathdirs" != "X"; then
9324 if test -n "$hardcode_libdir_separator"; then
9326 for found_dir
in $rpathdirs; do
9327 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9329 acl_save_libdir
="$libdir"
9331 eval flag
=\"$hardcode_libdir_flag_spec\"
9332 libdir
="$acl_save_libdir"
9333 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9335 for found_dir
in $rpathdirs; do
9336 acl_save_libdir
="$libdir"
9338 eval flag
=\"$hardcode_libdir_flag_spec\"
9339 libdir
="$acl_save_libdir"
9340 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9344 if test "X$ltrpathdirs" != "X"; then
9345 for found_dir
in $ltrpathdirs; do
9346 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9363 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9364 stdlib.h string.h unistd.h sys
/param.h
9366 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9367 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9368 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9369 $as_echo_n "checking for $ac_header... " >&6; }
9370 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9371 $as_echo_n "(cached) " >&6
9373 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9374 $as_echo "$as_val"'`
9375 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9376 $as_echo "$ac_res" >&6; }
9378 # Is the header compilable?
9379 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9380 $as_echo_n "checking $ac_header usability... " >&6; }
9381 cat >conftest.
$ac_ext <<_ACEOF
9384 cat confdefs.h
>>conftest.
$ac_ext
9385 cat >>conftest.
$ac_ext <<_ACEOF
9386 /* end confdefs.h. */
9387 $ac_includes_default
9388 #include <$ac_header>
9390 rm -f conftest.
$ac_objext
9391 if { (ac_try
="$ac_compile"
9393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9394 *) ac_try_echo=$ac_try;;
9396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9397 $as_echo "$ac_try_echo") >&5
9398 (eval "$ac_compile") 2>conftest.er1
9400 grep -v '^ *+' conftest.er1 >conftest.err
9402 cat conftest.err >&5
9403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } && {
9405 test -z "$ac_c_werror_flag" ||
9406 test ! -s conftest.err
9407 } && test -s conftest.$ac_objext; then
9408 ac_header_compiler=yes
9410 $as_echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9413 ac_header_compiler=no
9416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9417 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9418 $as_echo "$ac_header_compiler" >&6; }
9420 # Is the header present?
9421 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9422 $as_echo_n "checking $ac_header presence... " >&6; }
9423 cat >conftest.$ac_ext <<_ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9429 #include <$ac_header>
9431 if { (ac_try="$ac_cpp conftest.$ac_ext"
9433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9434 *) ac_try_echo
=$ac_try;;
9436 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9437 $as_echo "$ac_try_echo") >&5
9438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9440 grep -v '^ *+' conftest.er1
>conftest.err
9442 cat conftest.err
>&5
9443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } >/dev
/null
&& {
9445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9446 test ! -s conftest.err
9448 ac_header_preproc
=yes
9450 $as_echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.
$ac_ext >&5
9453 ac_header_preproc
=no
9456 rm -f conftest.err conftest.
$ac_ext
9457 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9458 $as_echo "$ac_header_preproc" >&6; }
9460 # So? What about this header?
9461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9464 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9466 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9467 ac_header_preproc
=yes
9470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9471 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9473 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9475 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9477 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9479 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9481 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9483 ## ------------------------------- ##
9484 ## Report this to bug-bash@gnu.org ##
9485 ## ------------------------------- ##
9487 ) |
sed "s/^/$as_me: WARNING: /" >&2
9490 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9491 $as_echo_n "checking for $ac_header... " >&6; }
9492 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9493 $as_echo_n "(cached) " >&6
9495 eval "$as_ac_Header=\$ac_header_preproc"
9497 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9498 $as_echo "$as_val"'`
9499 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9500 $as_echo "$ac_res" >&6; }
9503 as_val
=`eval 'as_val=${'$as_ac_Header'}
9504 $as_echo "$as_val"'`
9505 if test "x$as_val" = x
""yes; then
9506 cat >>confdefs.h
<<_ACEOF
9507 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9537 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
9538 geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \
9539 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
9542 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9543 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9544 $as_echo_n "checking for $ac_func... " >&6; }
9545 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9546 $as_echo_n "(cached) " >&6
9548 cat >conftest.
$ac_ext <<_ACEOF
9551 cat confdefs.h
>>conftest.
$ac_ext
9552 cat >>conftest.
$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9556 #define $ac_func innocuous_$ac_func
9558 /* System header to define __stub macros and hopefully few prototypes,
9559 which can conflict with char $ac_func (); below.
9560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9561 <limits.h> exists even on freestanding compilers. */
9564 # include <limits.h>
9566 # include <assert.h>
9571 /* Override any GCC internal prototype to avoid an error.
9572 Use char because int might match the return type of a GCC
9573 builtin and then its argument prototype would still apply. */
9578 /* The GNU C library defines this for functions which it implements
9579 to always fail with ENOSYS. Some functions are actually named
9580 something starting with __ and the normal name is an alias. */
9581 #if defined __stub_$ac_func || defined __stub___$ac_func
9593 rm -f conftest.
$ac_objext conftest
$ac_exeext
9594 if { (ac_try
="$ac_link"
9596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9597 *) ac_try_echo=$ac_try;;
9599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9600 $as_echo "$ac_try_echo") >&5
9601 (eval "$ac_link") 2>conftest.er1
9603 grep -v '^ *+' conftest.er1 >conftest.err
9605 cat conftest.err >&5
9606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } && {
9608 test -z "$ac_c_werror_flag" ||
9609 test ! -s conftest.err
9610 } && test -s conftest$ac_exeext && {
9611 test "$cross_compiling" = yes ||
9612 $as_test_x conftest$ac_exeext
9614 eval "$as_ac_var=yes"
9616 $as_echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9619 eval "$as_ac_var=no"
9622 rm -rf conftest.dSYM
9623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9624 conftest$ac_exeext conftest.$ac_ext
9626 ac_res=`eval 'as_val=${'$as_ac_var'}
9627 $as_echo "$as_val"'`
9628 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9629 $as_echo "$ac_res" >&6; }
9630 as_val=`eval 'as_val=${'$as_ac_var'}
9631 $as_echo "$as_val"'`
9632 if test "x$as_val" = x""yes; then
9633 cat >>confdefs.h <<_ACEOF
9634 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9646 am_save_CPPFLAGS="$CPPFLAGS"
9648 for element in $INCICONV; do
9650 for x in $CPPFLAGS; do
9652 acl_save_prefix="$prefix"
9653 prefix="$acl_final_prefix"
9654 acl_save_exec_prefix="$exec_prefix"
9655 exec_prefix="$acl_final_exec_prefix"
9657 exec_prefix="$acl_save_exec_prefix"
9658 prefix="$acl_save_prefix"
9660 if test "X$x" = "X$element"; then
9665 if test -z "$haveit"; then
9666 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9671 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
9672 $as_echo_n "checking for iconv... " >&6; }
9673 if test "${am_cv_func_iconv+set}" = set; then
9674 $as_echo_n "(cached) " >&6
9677 am_cv_func_iconv="no, consider installing GNU libiconv"
9679 cat >conftest.$ac_ext <<_ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9690 iconv_t cd = iconv_open("","");
9691 iconv(cd,NULL,NULL,NULL,NULL);
9697 rm -f conftest.$ac_objext conftest$ac_exeext
9698 if { (ac_try="$ac_link"
9700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9701 *) ac_try_echo
=$ac_try;;
9703 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9704 $as_echo "$ac_try_echo") >&5
9705 (eval "$ac_link") 2>conftest.er1
9707 grep -v '^ *+' conftest.er1
>conftest.err
9709 cat conftest.err
>&5
9710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } && {
9712 test -z "$ac_c_werror_flag" ||
9713 test ! -s conftest.err
9714 } && test -s conftest
$ac_exeext && {
9715 test "$cross_compiling" = yes ||
9716 $as_test_x conftest
$ac_exeext
9718 am_cv_func_iconv
=yes
9720 $as_echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.
$ac_ext >&5
9726 rm -rf conftest.dSYM
9727 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9728 conftest
$ac_exeext conftest.
$ac_ext
9729 if test "$am_cv_func_iconv" != yes; then
9730 am_save_LIBS
="$LIBS"
9731 LIBS
="$LIBS $LIBICONV"
9732 cat >conftest.
$ac_ext <<_ACEOF
9735 cat confdefs.h
>>conftest.
$ac_ext
9736 cat >>conftest.
$ac_ext <<_ACEOF
9737 /* end confdefs.h. */
9743 iconv_t cd = iconv_open("","");
9744 iconv(cd,NULL,NULL,NULL,NULL);
9750 rm -f conftest.
$ac_objext conftest
$ac_exeext
9751 if { (ac_try
="$ac_link"
9753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9757 $as_echo "$ac_try_echo") >&5
9758 (eval "$ac_link") 2>conftest.er1
9760 grep -v '^ *+' conftest.er1 >conftest.err
9762 cat conftest.err >&5
9763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } && {
9765 test -z "$ac_c_werror_flag" ||
9766 test ! -s conftest.err
9767 } && test -s conftest$ac_exeext && {
9768 test "$cross_compiling" = yes ||
9769 $as_test_x conftest$ac_exeext
9772 am_cv_func_iconv=yes
9774 $as_echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9780 rm -rf conftest.dSYM
9781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9782 conftest$ac_exeext conftest.$ac_ext
9783 LIBS="$am_save_LIBS"
9787 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9788 $as_echo "$am_cv_func_iconv" >&6; }
9789 if test "$am_cv_func_iconv" = yes; then
9791 cat >>confdefs.h <<\_ACEOF
9792 #define HAVE_ICONV 1
9796 if test "$am_cv_lib_iconv" = yes; then
9797 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9798 $as_echo_n "checking how to link with libiconv... " >&6; }
9799 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
9800 $as_echo "$LIBICONV" >&6; }
9802 CPPFLAGS="$am_save_CPPFLAGS"
9809 if test "$am_cv_func_iconv" = yes; then
9810 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
9811 $as_echo_n "checking for iconv declaration... " >&6; }
9812 if test "${am_cv_proto_iconv+set}" = set; then
9813 $as_echo_n "(cached) " >&6
9816 cat >conftest.$ac_ext <<_ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9829 #if defined(__STDC__) || defined(__cplusplus)
9830 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9843 rm -f conftest.$ac_objext
9844 if { (ac_try="$ac_compile"
9846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9847 *) ac_try_echo
=$ac_try;;
9849 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9850 $as_echo "$ac_try_echo") >&5
9851 (eval "$ac_compile") 2>conftest.er1
9853 grep -v '^ *+' conftest.er1
>conftest.err
9855 cat conftest.err
>&5
9856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } && {
9858 test -z "$ac_c_werror_flag" ||
9859 test ! -s conftest.err
9860 } && test -s conftest.
$ac_objext; then
9861 am_cv_proto_iconv_arg1
=""
9863 $as_echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.
$ac_ext >&5
9866 am_cv_proto_iconv_arg1
="const"
9869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9870 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);"
9873 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9874 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
9875 }$am_cv_proto_iconv" >&5
9877 }$am_cv_proto_iconv" >&6; }
9879 cat >>confdefs.h
<<_ACEOF
9880 #define ICONV_CONST $am_cv_proto_iconv_arg1
9886 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9887 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9888 if test "${am_cv_langinfo_codeset+set}" = set; then
9889 $as_echo_n "(cached) " >&6
9891 cat >conftest.
$ac_ext <<_ACEOF
9894 cat confdefs.h
>>conftest.
$ac_ext
9895 cat >>conftest.
$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 #include <langinfo.h>
9901 char* cs = nl_langinfo(CODESET);
9906 rm -f conftest.
$ac_objext conftest
$ac_exeext
9907 if { (ac_try
="$ac_link"
9909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9910 *) ac_try_echo=$ac_try;;
9912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9913 $as_echo "$ac_try_echo") >&5
9914 (eval "$ac_link") 2>conftest.er1
9916 grep -v '^ *+' conftest.er1 >conftest.err
9918 cat conftest.err >&5
9919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); } && {
9921 test -z "$ac_c_werror_flag" ||
9922 test ! -s conftest.err
9923 } && test -s conftest$ac_exeext && {
9924 test "$cross_compiling" = yes ||
9925 $as_test_x conftest$ac_exeext
9927 am_cv_langinfo_codeset=yes
9929 $as_echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9932 am_cv_langinfo_codeset=no
9935 rm -rf conftest.dSYM
9936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9937 conftest$ac_exeext conftest.$ac_ext
9940 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9941 $as_echo "$am_cv_langinfo_codeset" >&6; }
9942 if test $am_cv_langinfo_codeset = yes; then
9944 cat >>confdefs.h <<\_ACEOF
9945 #define HAVE_LANGINFO_CODESET 1
9950 if test $ac_cv_header_locale_h = yes; then
9952 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9953 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9954 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9955 $as_echo_n "(cached) " >&6
9957 cat >conftest.$ac_ext <<_ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9972 rm -f conftest.$ac_objext conftest$ac_exeext
9973 if { (ac_try="$ac_link"
9975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9976 *) ac_try_echo
=$ac_try;;
9978 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9979 $as_echo "$ac_try_echo") >&5
9980 (eval "$ac_link") 2>conftest.er1
9982 grep -v '^ *+' conftest.er1
>conftest.err
9984 cat conftest.err
>&5
9985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } && {
9987 test -z "$ac_c_werror_flag" ||
9988 test ! -s conftest.err
9989 } && test -s conftest
$ac_exeext && {
9990 test "$cross_compiling" = yes ||
9991 $as_test_x conftest
$ac_exeext
9993 am_cv_val_LC_MESSAGES
=yes
9995 $as_echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.
$ac_ext >&5
9998 am_cv_val_LC_MESSAGES
=no
10001 rm -rf conftest.dSYM
10002 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10003 conftest
$ac_exeext conftest.
$ac_ext
10005 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10006 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10007 if test $am_cv_val_LC_MESSAGES = yes; then
10009 cat >>confdefs.h
<<\_ACEOF
10010 #define HAVE_LC_MESSAGES 1
10017 for ac_prog
in bison
10019 # Extract the first word of "$ac_prog", so it can be a program name with args.
10020 set dummy
$ac_prog; ac_word
=$2
10021 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10022 $as_echo_n "checking for $ac_word... " >&6; }
10023 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10024 $as_echo_n "(cached) " >&6
10026 if test -n "$INTLBISON"; then
10027 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
10029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10030 for as_dir
in $PATH
10033 test -z "$as_dir" && as_dir
=.
10034 for ac_exec_ext
in '' $ac_executable_extensions; do
10035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10036 ac_cv_prog_INTLBISON
="$ac_prog"
10037 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10046 INTLBISON
=$ac_cv_prog_INTLBISON
10047 if test -n "$INTLBISON"; then
10048 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
10049 $as_echo "$INTLBISON" >&6; }
10051 { $as_echo "$as_me:$LINENO: result: no" >&5
10052 $as_echo "no" >&6; }
10056 test -n "$INTLBISON" && break
10059 if test -z "$INTLBISON"; then
10062 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
10063 $as_echo_n "checking version of bison... " >&6; }
10064 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10065 case $ac_prog_version in
10066 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
10067 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
10068 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
10069 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
10071 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10072 $as_echo "$ac_prog_version" >&6; }
10074 if test $ac_verc_fail = yes; then
10093 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10094 $as_echo_n "checking whether NLS is requested... " >&6; }
10095 # Check whether --enable-nls was given.
10096 if test "${enable_nls+set}" = set; then
10097 enableval
=$enable_nls; USE_NLS
=$enableval
10102 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10103 $as_echo "$USE_NLS" >&6; }
10108 BUILD_INCLUDED_LIBINTL
=no
10109 USE_INCLUDED_LIBINTL
=no
10115 if test "$USE_NLS" = "yes"; then
10116 gt_use_preinstalled_gnugettext
=no
10118 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10119 $as_echo_n "checking whether included gettext is requested... " >&6; }
10121 # Check whether --with-included-gettext was given.
10122 if test "${with_included_gettext+set}" = set; then
10123 withval
=$with_included_gettext; nls_cv_force_use_gnu_gettext
=$withval
10125 nls_cv_force_use_gnu_gettext
=no
10128 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10129 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10131 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
10132 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10139 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10140 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10141 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
10142 $as_echo_n "(cached) " >&6
10144 cat >conftest.
$ac_ext <<_ACEOF
10147 cat confdefs.h
>>conftest.
$ac_ext
10148 cat >>conftest.
$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10150 #include <libintl.h>
10151 extern int _nl_msg_cat_cntr;
10152 extern int *_nl_domain_bindings;
10156 bindtextdomain ("", "");
10157 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
10162 rm -f conftest.
$ac_objext conftest
$ac_exeext
10163 if { (ac_try
="$ac_link"
10164 case "(($ac_try" in
10165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10166 *) ac_try_echo=$ac_try;;
10168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10169 $as_echo "$ac_try_echo") >&5
10170 (eval "$ac_link") 2>conftest.er1
10172 grep -v '^ *+' conftest.er1 >conftest.err
10174 cat conftest.err >&5
10175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } && {
10177 test -z "$ac_c_werror_flag" ||
10178 test ! -s conftest.err
10179 } && test -s conftest$ac_exeext && {
10180 test "$cross_compiling" = yes ||
10181 $as_test_x conftest$ac_exeext
10183 gt_cv_func_gnugettext2_libc=yes
10185 $as_echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10188 gt_cv_func_gnugettext2_libc=no
10191 rm -rf conftest.dSYM
10192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10193 conftest$ac_exeext conftest.$ac_ext
10195 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
10196 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
10198 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
10204 acl_save_prefix="$prefix"
10205 prefix="$acl_final_prefix"
10206 acl_save_exec_prefix="$exec_prefix"
10207 exec_prefix="$acl_final_exec_prefix"
10209 eval additional_includedir=\"$includedir\"
10210 eval additional_libdir=\"$libdir\"
10212 exec_prefix="$acl_save_exec_prefix"
10213 prefix="$acl_save_prefix"
10216 # Check whether --with-libintl-prefix was given.
10217 if test "${with_libintl_prefix+set}" = set; then
10218 withval=$with_libintl_prefix;
10219 if test "X$withval" = "Xno"; then
10222 if test "X$withval" = "X"; then
10224 acl_save_prefix="$prefix"
10225 prefix="$acl_final_prefix"
10226 acl_save_exec_prefix="$exec_prefix"
10227 exec_prefix="$acl_final_exec_prefix"
10229 eval additional_includedir=\"$includedir\"
10230 eval additional_libdir=\"$libdir\"
10232 exec_prefix="$acl_save_exec_prefix"
10233 prefix="$acl_save_prefix"
10236 additional_includedir="$withval/include"
10237 additional_libdir="$withval/lib"
10248 names_already_handled=
10249 names_next_round='intl '
10250 while test -n "$names_next_round"; do
10251 names_this_round="$names_next_round"
10253 for name in $names_this_round; do
10255 for n in $names_already_handled; do
10256 if test "$n" = "$name"; then
10257 already_handled=yes
10261 if test -z "$already_handled"; then
10262 names_already_handled="$names_already_handled $name"
10263 uppername=`echo "$name" |
sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10264 eval value=\"\$HAVE_LIB$uppername\"
10265 if test -n "$value"; then
10266 if test "$value" = yes; then
10267 eval value=\"\$LIB$uppername\"
10268 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10269 eval value=\"\$LTLIB$uppername\"
10270 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10279 if test $use_additional = yes; then
10280 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10281 found_dir="$additional_libdir"
10282 found_so="$additional_libdir/lib$name.$shlibext"
10283 if test -f "$additional_libdir/lib$name.la"; then
10284 found_la="$additional_libdir/lib$name.la"
10287 if test -f "$additional_libdir/lib$name.$libext"; then
10288 found_dir="$additional_libdir"
10289 found_a="$additional_libdir/lib$name.$libext"
10290 if test -f "$additional_libdir/lib$name.la"; then
10291 found_la="$additional_libdir/lib$name.la"
10296 if test "X$found_dir" = "X"; then
10297 for x in $LDFLAGS $LTLIBINTL; do
10299 acl_save_prefix="$prefix"
10300 prefix="$acl_final_prefix"
10301 acl_save_exec_prefix="$exec_prefix"
10302 exec_prefix="$acl_final_exec_prefix"
10304 exec_prefix="$acl_save_exec_prefix"
10305 prefix="$acl_save_prefix"
10309 dir=`echo "X$x" |
sed -e 's/^X-L//'`
10310 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10312 found_so="$dir/lib$name.$shlibext"
10313 if test -f "$dir/lib$name.la"; then
10314 found_la="$dir/lib$name.la"
10317 if test -f "$dir/lib$name.$libext"; then
10319 found_a="$dir/lib$name.$libext"
10320 if test -f "$dir/lib$name.la"; then
10321 found_la="$dir/lib$name.la"
10327 if test "X$found_dir" != "X"; then
10332 if test "X$found_dir" != "X"; then
10333 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10334 if test "X$found_so" != "X"; then
10335 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10336 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10339 for x in $ltrpathdirs; do
10340 if test "X$x" = "X$found_dir"; then
10345 if test -z "$haveit"; then
10346 ltrpathdirs="$ltrpathdirs $found_dir"
10348 if test "$hardcode_direct" = yes; then
10349 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10351 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10352 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10354 for x in $rpathdirs; do
10355 if test "X$x" = "X$found_dir"; then
10360 if test -z "$haveit"; then
10361 rpathdirs="$rpathdirs $found_dir"
10365 for x in $LDFLAGS $LIBINTL; do
10367 acl_save_prefix="$prefix"
10368 prefix="$acl_final_prefix"
10369 acl_save_exec_prefix="$exec_prefix"
10370 exec_prefix="$acl_final_exec_prefix"
10372 exec_prefix="$acl_save_exec_prefix"
10373 prefix="$acl_save_prefix"
10375 if test "X$x" = "X-L$found_dir"; then
10380 if test -z "$haveit"; then
10381 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10383 if test "$hardcode_minus_L" != no; then
10384 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10386 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10392 if test "X$found_a" != "X"; then
10393 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10395 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10398 additional_includedir=
10399 case "$found_dir" in
10401 basedir=`echo "X$found_dir" |
sed -e 's,^X,,' -e 's,/lib/*$,,'`
10402 additional_includedir="$basedir/include"
10405 if test "X$additional_includedir" != "X"; then
10406 if test "X$additional_includedir" != "X/usr/include"; then
10408 if test "X$additional_includedir" = "X/usr/local/include"; then
10409 if test -n "$GCC"; then
10411 linux*) haveit=yes;;
10415 if test -z "$haveit"; then
10416 for x in $CPPFLAGS $INCINTL; do
10418 acl_save_prefix="$prefix"
10419 prefix="$acl_final_prefix"
10420 acl_save_exec_prefix="$exec_prefix"
10421 exec_prefix="$acl_final_exec_prefix"
10423 exec_prefix="$acl_save_exec_prefix"
10424 prefix="$acl_save_prefix"
10426 if test "X$x" = "X-I$additional_includedir"; then
10431 if test -z "$haveit"; then
10432 if test -d "$additional_includedir"; then
10433 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10439 if test -n "$found_la"; then
10440 save_libdir="$libdir"
10441 case "$found_la" in
10442 */* | *\\*) . "$found_la" ;;
10443 *) . "./$found_la" ;;
10445 libdir="$save_libdir"
10446 for dep in $dependency_libs; do
10449 additional_libdir=`echo "X$dep" |
sed -e 's/^X-L//'`
10450 if test "X$additional_libdir" != "X/usr/lib"; then
10452 if test "X$additional_libdir" = "X/usr/local/lib"; then
10453 if test -n "$GCC"; then
10455 linux*) haveit=yes;;
10459 if test -z "$haveit"; then
10461 for x in $LDFLAGS $LIBINTL; do
10463 acl_save_prefix="$prefix"
10464 prefix="$acl_final_prefix"
10465 acl_save_exec_prefix="$exec_prefix"
10466 exec_prefix="$acl_final_exec_prefix"
10468 exec_prefix="$acl_save_exec_prefix"
10469 prefix="$acl_save_prefix"
10471 if test "X$x" = "X-L$additional_libdir"; then
10476 if test -z "$haveit"; then
10477 if test -d "$additional_libdir"; then
10478 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10482 for x in $LDFLAGS $LTLIBINTL; do
10484 acl_save_prefix="$prefix"
10485 prefix="$acl_final_prefix"
10486 acl_save_exec_prefix="$exec_prefix"
10487 exec_prefix="$acl_final_exec_prefix"
10489 exec_prefix="$acl_save_exec_prefix"
10490 prefix="$acl_save_prefix"
10492 if test "X$x" = "X-L$additional_libdir"; then
10497 if test -z "$haveit"; then
10498 if test -d "$additional_libdir"; then
10499 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10506 dir=`echo "X$dep" |
sed -e 's/^X-R//'`
10507 if test "$enable_rpath" != no; then
10509 for x in $rpathdirs; do
10510 if test "X$x" = "X$dir"; then
10515 if test -z "$haveit"; then
10516 rpathdirs="$rpathdirs $dir"
10519 for x in $ltrpathdirs; do
10520 if test "X$x" = "X$dir"; then
10525 if test -z "$haveit"; then
10526 ltrpathdirs="$ltrpathdirs $dir"
10531 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's/^X-l//'`
10534 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10537 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10538 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10544 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10545 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10551 if test "X$rpathdirs" != "X"; then
10552 if test -n "$hardcode_libdir_separator"; then
10554 for found_dir in $rpathdirs; do
10555 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10557 acl_save_libdir="$libdir"
10559 eval flag=\"$hardcode_libdir_flag_spec\"
10560 libdir="$acl_save_libdir"
10561 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10563 for found_dir in $rpathdirs; do
10564 acl_save_libdir="$libdir"
10565 libdir="$found_dir"
10566 eval flag=\"$hardcode_libdir_flag_spec\"
10567 libdir="$acl_save_libdir"
10568 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10572 if test "X$ltrpathdirs" != "X"; then
10573 for found_dir in $ltrpathdirs; do
10574 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10578 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10579 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
10580 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
10581 $as_echo_n "(cached) " >&6
10583 gt_save_CPPFLAGS="$CPPFLAGS"
10584 CPPFLAGS="$CPPFLAGS $INCINTL"
10585 gt_save_LIBS="$LIBS"
10586 LIBS="$LIBS $LIBINTL"
10587 cat >conftest.$ac_ext <<_ACEOF
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10593 #include <libintl.h>
10594 extern int _nl_msg_cat_cntr;
10599 const char *_nl_expand_alias ();
10603 bindtextdomain ("", "");
10604 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10609 rm -f conftest.$ac_objext conftest$ac_exeext
10610 if { (ac_try="$ac_link"
10611 case "(($ac_try" in
10612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10613 *) ac_try_echo
=$ac_try;;
10615 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10616 $as_echo "$ac_try_echo") >&5
10617 (eval "$ac_link") 2>conftest.er1
10619 grep -v '^ *+' conftest.er1
>conftest.err
10621 cat conftest.err
>&5
10622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } && {
10624 test -z "$ac_c_werror_flag" ||
10625 test ! -s conftest.err
10626 } && test -s conftest
$ac_exeext && {
10627 test "$cross_compiling" = yes ||
10628 $as_test_x conftest
$ac_exeext
10630 gt_cv_func_gnugettext2_libintl
=yes
10632 $as_echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.
$ac_ext >&5
10635 gt_cv_func_gnugettext2_libintl
=no
10638 rm -rf conftest.dSYM
10639 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10640 conftest
$ac_exeext conftest.
$ac_ext
10641 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
10642 LIBS
="$LIBS $LIBICONV"
10643 cat >conftest.
$ac_ext <<_ACEOF
10646 cat confdefs.h
>>conftest.
$ac_ext
10647 cat >>conftest.
$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10649 #include <libintl.h>
10650 extern int _nl_msg_cat_cntr;
10655 const char *_nl_expand_alias ();
10659 bindtextdomain ("", "");
10660 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10665 rm -f conftest.
$ac_objext conftest
$ac_exeext
10666 if { (ac_try
="$ac_link"
10667 case "(($ac_try" in
10668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10672 $as_echo "$ac_try_echo") >&5
10673 (eval "$ac_link") 2>conftest.er1
10675 grep -v '^ *+' conftest.er1 >conftest.err
10677 cat conftest.err >&5
10678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } && {
10680 test -z "$ac_c_werror_flag" ||
10681 test ! -s conftest.err
10682 } && test -s conftest$ac_exeext && {
10683 test "$cross_compiling" = yes ||
10684 $as_test_x conftest$ac_exeext
10686 LIBINTL="$LIBINTL $LIBICONV"
10687 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10688 gt_cv_func_gnugettext2_libintl=yes
10691 $as_echo "$as_me: failed program was:" >&5
10692 sed 's/^/| /' conftest.$ac_ext >&5
10697 rm -rf conftest.dSYM
10698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10699 conftest$ac_exeext conftest.$ac_ext
10701 CPPFLAGS="$gt_save_CPPFLAGS"
10702 LIBS="$gt_save_LIBS"
10704 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
10705 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
10708 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
10709 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
10710 && test "$PACKAGE" != gettext-runtime \
10711 && test "$PACKAGE" != gettext-tools; }; then
10712 gt_use_preinstalled_gnugettext=yes
10720 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10721 nls_cv_use_gnu_gettext=yes
10725 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10726 BUILD_INCLUDED_LIBINTL=yes
10727 USE_INCLUDED_LIBINTL=yes
10728 LIBINTL="lib/intl/libintl.a $LIBICONV"
10729 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
10730 LIBS=`echo " $LIBS " |
sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10733 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10734 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10739 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10740 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10742 cat >>confdefs.h <<\_ACEOF
10743 #define ENABLE_NLS 1
10751 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
10752 $as_echo_n "checking whether to use NLS... " >&6; }
10753 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10754 $as_echo "$USE_NLS" >&6; }
10755 if test "$USE_NLS" = "yes"; then
10756 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10757 $as_echo_n "checking where the gettext function comes from... " >&6; }
10758 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10759 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10760 gt_source="external libintl"
10765 gt_source="included intl directory"
10767 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
10768 $as_echo "$gt_source" >&6; }
10771 if test "$USE_NLS" = "yes"; then
10773 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10774 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10775 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
10776 $as_echo_n "checking how to link with libintl... " >&6; }
10777 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
10778 $as_echo "$LIBINTL" >&6; }
10780 for element in $INCINTL; do
10782 for x in $CPPFLAGS; do
10784 acl_save_prefix="$prefix"
10785 prefix="$acl_final_prefix"
10786 acl_save_exec_prefix="$exec_prefix"
10787 exec_prefix="$acl_final_exec_prefix"
10789 exec_prefix="$acl_save_exec_prefix"
10790 prefix="$acl_save_prefix"
10792 if test "X$x" = "X$element"; then
10797 if test -z "$haveit"; then
10798 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10805 cat >>confdefs.h <<\_ACEOF
10806 #define HAVE_GETTEXT 1
10810 cat >>confdefs.h <<\_ACEOF
10811 #define HAVE_DCGETTEXT 1
10820 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10821 BUILD_INCLUDED_LIBINTL=yes
10828 nls_cv_header_intl=
10829 nls_cv_header_libgt=
10840 if test "$USE_INCLUDED_LIBINTL" = yes; then
10841 INTLOBJS="\$(GETTOBJS)"
10845 INTL_LIBTOOL_SUFFIX_PREFIX=
10849 INTLLIBS="$LIBINTL"
10862 ac_header_dirent=no
10863 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10864 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
10865 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10866 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10868 $as_echo_n "(cached) " >&6
10870 cat >conftest.$ac_ext <<_ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10876 #include <sys/types.h>
10888 rm -f conftest.$ac_objext
10889 if { (ac_try="$ac_compile"
10890 case "(($ac_try" in
10891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10892 *) ac_try_echo
=$ac_try;;
10894 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10895 $as_echo "$ac_try_echo") >&5
10896 (eval "$ac_compile") 2>conftest.er1
10898 grep -v '^ *+' conftest.er1
>conftest.err
10900 cat conftest.err
>&5
10901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } && {
10903 test -z "$ac_c_werror_flag" ||
10904 test ! -s conftest.err
10905 } && test -s conftest.
$ac_objext; then
10906 eval "$as_ac_Header=yes"
10908 $as_echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.
$ac_ext >&5
10911 eval "$as_ac_Header=no"
10914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10916 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10917 $as_echo "$as_val"'`
10918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10919 $as_echo "$ac_res" >&6; }
10920 as_val
=`eval 'as_val=${'$as_ac_Header'}
10921 $as_echo "$as_val"'`
10922 if test "x$as_val" = x
""yes; then
10923 cat >>confdefs.h
<<_ACEOF
10924 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10927 ac_header_dirent
=$ac_hdr; break
10931 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10932 if test $ac_header_dirent = dirent.h
; then
10933 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10934 $as_echo_n "checking for library containing opendir... " >&6; }
10935 if test "${ac_cv_search_opendir+set}" = set; then
10936 $as_echo_n "(cached) " >&6
10938 ac_func_search_save_LIBS
=$LIBS
10939 cat >conftest.
$ac_ext <<_ACEOF
10942 cat confdefs.h
>>conftest.
$ac_ext
10943 cat >>conftest.
$ac_ext <<_ACEOF
10944 /* end confdefs.h. */
10946 /* Override any GCC internal prototype to avoid an error.
10947 Use char because int might match the return type of a GCC
10948 builtin and then its argument prototype would still apply. */
10961 for ac_lib
in '' dir
; do
10962 if test -z "$ac_lib"; then
10963 ac_res
="none required"
10966 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10968 rm -f conftest.
$ac_objext conftest
$ac_exeext
10969 if { (ac_try
="$ac_link"
10970 case "(($ac_try" in
10971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10972 *) ac_try_echo=$ac_try;;
10974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10975 $as_echo "$ac_try_echo") >&5
10976 (eval "$ac_link") 2>conftest.er1
10978 grep -v '^ *+' conftest.er1 >conftest.err
10980 cat conftest.err >&5
10981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } && {
10983 test -z "$ac_c_werror_flag" ||
10984 test ! -s conftest.err
10985 } && test -s conftest$ac_exeext && {
10986 test "$cross_compiling" = yes ||
10987 $as_test_x conftest$ac_exeext
10989 ac_cv_search_opendir=$ac_res
10991 $as_echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10997 rm -rf conftest.dSYM
10998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11000 if test "${ac_cv_search_opendir+set}" = set; then
11004 if test "${ac_cv_search_opendir+set}" = set; then
11007 ac_cv_search_opendir=no
11009 rm conftest.$ac_ext
11010 LIBS=$ac_func_search_save_LIBS
11012 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11013 $as_echo "$ac_cv_search_opendir" >&6; }
11014 ac_res=$ac_cv_search_opendir
11015 if test "$ac_res" != no; then
11016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11021 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11022 $as_echo_n "checking for library containing opendir... " >&6; }
11023 if test "${ac_cv_search_opendir+set}" = set; then
11024 $as_echo_n "(cached) " >&6
11026 ac_func_search_save_LIBS=$LIBS
11027 cat >conftest.$ac_ext <<_ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h. */
11034 /* Override any GCC internal prototype to avoid an error.
11035 Use char because int might match the return type of a GCC
11036 builtin and then its argument prototype would still apply. */
11049 for ac_lib in '' x; do
11050 if test -z "$ac_lib"; then
11051 ac_res="none required"
11054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11056 rm -f conftest.$ac_objext conftest$ac_exeext
11057 if { (ac_try="$ac_link"
11058 case "(($ac_try" in
11059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11060 *) ac_try_echo
=$ac_try;;
11062 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11063 $as_echo "$ac_try_echo") >&5
11064 (eval "$ac_link") 2>conftest.er1
11066 grep -v '^ *+' conftest.er1
>conftest.err
11068 cat conftest.err
>&5
11069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); } && {
11071 test -z "$ac_c_werror_flag" ||
11072 test ! -s conftest.err
11073 } && test -s conftest
$ac_exeext && {
11074 test "$cross_compiling" = yes ||
11075 $as_test_x conftest
$ac_exeext
11077 ac_cv_search_opendir
=$ac_res
11079 $as_echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.
$ac_ext >&5
11085 rm -rf conftest.dSYM
11086 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11088 if test "${ac_cv_search_opendir+set}" = set; then
11092 if test "${ac_cv_search_opendir+set}" = set; then
11095 ac_cv_search_opendir
=no
11097 rm conftest.
$ac_ext
11098 LIBS
=$ac_func_search_save_LIBS
11100 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11101 $as_echo "$ac_cv_search_opendir" >&6; }
11102 ac_res
=$ac_cv_search_opendir
11103 if test "$ac_res" != no
; then
11104 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11110 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11111 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11112 if test "${ac_cv_header_time+set}" = set; then
11113 $as_echo_n "(cached) " >&6
11115 cat >conftest.
$ac_ext <<_ACEOF
11118 cat confdefs.h
>>conftest.
$ac_ext
11119 cat >>conftest.
$ac_ext <<_ACEOF
11120 /* end confdefs.h. */
11121 #include <sys/types.h>
11122 #include <sys/time.h>
11128 if ((struct tm *) 0)
11134 rm -f conftest.
$ac_objext
11135 if { (ac_try
="$ac_compile"
11136 case "(($ac_try" in
11137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11141 $as_echo "$ac_try_echo") >&5
11142 (eval "$ac_compile") 2>conftest.er1
11144 grep -v '^ *+' conftest.er1 >conftest.err
11146 cat conftest.err >&5
11147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } && {
11149 test -z "$ac_c_werror_flag" ||
11150 test ! -s conftest.err
11151 } && test -s conftest.$ac_objext; then
11152 ac_cv_header_time=yes
11154 $as_echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11157 ac_cv_header_time=no
11160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11162 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11163 $as_echo "$ac_cv_header_time" >&6; }
11164 if test $ac_cv_header_time = yes; then
11166 cat >>confdefs.h <<\_ACEOF
11167 #define TIME_WITH_SYS_TIME 1
11175 for ac_header in inttypes.h
11177 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11179 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11180 $as_echo_n "checking for $ac_header... " >&6; }
11181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11182 $as_echo_n "(cached) " >&6
11184 ac_res=`eval 'as_val=${'$as_ac_Header'}
11185 $as_echo "$as_val"'`
11186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11187 $as_echo "$ac_res" >&6; }
11189 # Is the header compilable?
11190 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11191 $as_echo_n "checking $ac_header usability... " >&6; }
11192 cat >conftest.$ac_ext <<_ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11198 $ac_includes_default
11199 #include <$ac_header>
11201 rm -f conftest.$ac_objext
11202 if { (ac_try="$ac_compile"
11203 case "(($ac_try" in
11204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11205 *) ac_try_echo
=$ac_try;;
11207 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11208 $as_echo "$ac_try_echo") >&5
11209 (eval "$ac_compile") 2>conftest.er1
11211 grep -v '^ *+' conftest.er1
>conftest.err
11213 cat conftest.err
>&5
11214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); } && {
11216 test -z "$ac_c_werror_flag" ||
11217 test ! -s conftest.err
11218 } && test -s conftest.
$ac_objext; then
11219 ac_header_compiler
=yes
11221 $as_echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.
$ac_ext >&5
11224 ac_header_compiler
=no
11227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11228 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11229 $as_echo "$ac_header_compiler" >&6; }
11231 # Is the header present?
11232 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11233 $as_echo_n "checking $ac_header presence... " >&6; }
11234 cat >conftest.
$ac_ext <<_ACEOF
11237 cat confdefs.h
>>conftest.
$ac_ext
11238 cat >>conftest.
$ac_ext <<_ACEOF
11239 /* end confdefs.h. */
11240 #include <$ac_header>
11242 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11243 case "(($ac_try" in
11244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11248 $as_echo "$ac_try_echo") >&5
11249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11251 grep -v '^ *+' conftest.er1 >conftest.err
11253 cat conftest.err >&5
11254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } >/dev/null && {
11256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11257 test ! -s conftest.err
11259 ac_header_preproc=yes
11261 $as_echo "$as_me: failed program was:" >&5
11262 sed 's/^/| /' conftest.$ac_ext >&5
11264 ac_header_preproc=no
11267 rm -f conftest.err conftest.$ac_ext
11268 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11269 $as_echo "$ac_header_preproc" >&6; }
11271 # So? What about this header?
11272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11275 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11277 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11278 ac_header_preproc=yes
11281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11282 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11284 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11286 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11288 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11290 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11292 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11294 ## ------------------------------- ##
11295 ## Report this to bug-bash@gnu.org ##
11296 ## ------------------------------- ##
11298 ) | sed "s/^/$as_me: WARNING: /" >&2
11301 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11302 $as_echo_n "checking for $ac_header... " >&6; }
11303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11304 $as_echo_n "(cached) " >&6
11306 eval "$as_ac_Header=\$ac_header_preproc"
11308 ac_res=`eval 'as_val=${'$as_ac_Header'}
11309 $as_echo "$as_val"'`
11310 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11311 $as_echo "$ac_res" >&6; }
11314 as_val=`eval 'as_val=${'$as_ac_Header'}
11315 $as_echo "$as_val"'`
11316 if test "x$as_val" = x""yes; then
11317 cat >>confdefs.h <<_ACEOF
11318 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11346 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
11347 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
11348 stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h
11350 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11352 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11353 $as_echo_n "checking for $ac_header... " >&6; }
11354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11355 $as_echo_n "(cached) " >&6
11357 ac_res=`eval 'as_val=${'$as_ac_Header'}
11358 $as_echo "$as_val"'`
11359 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11360 $as_echo "$ac_res" >&6; }
11362 # Is the header compilable?
11363 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11364 $as_echo_n "checking $ac_header usability... " >&6; }
11365 cat >conftest.$ac_ext <<_ACEOF
11368 cat confdefs.h >>conftest.$ac_ext
11369 cat >>conftest.$ac_ext <<_ACEOF
11370 /* end confdefs.h. */
11371 $ac_includes_default
11372 #include <$ac_header>
11374 rm -f conftest.$ac_objext
11375 if { (ac_try="$ac_compile"
11376 case "(($ac_try" in
11377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11378 *) ac_try_echo
=$ac_try;;
11380 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11381 $as_echo "$ac_try_echo") >&5
11382 (eval "$ac_compile") 2>conftest.er1
11384 grep -v '^ *+' conftest.er1
>conftest.err
11386 cat conftest.err
>&5
11387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } && {
11389 test -z "$ac_c_werror_flag" ||
11390 test ! -s conftest.err
11391 } && test -s conftest.
$ac_objext; then
11392 ac_header_compiler
=yes
11394 $as_echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.
$ac_ext >&5
11397 ac_header_compiler
=no
11400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11401 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11402 $as_echo "$ac_header_compiler" >&6; }
11404 # Is the header present?
11405 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11406 $as_echo_n "checking $ac_header presence... " >&6; }
11407 cat >conftest.
$ac_ext <<_ACEOF
11410 cat confdefs.h
>>conftest.
$ac_ext
11411 cat >>conftest.
$ac_ext <<_ACEOF
11412 /* end confdefs.h. */
11413 #include <$ac_header>
11415 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11416 case "(($ac_try" in
11417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11421 $as_echo "$ac_try_echo") >&5
11422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11424 grep -v '^ *+' conftest.er1 >conftest.err
11426 cat conftest.err >&5
11427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } >/dev/null && {
11429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11430 test ! -s conftest.err
11432 ac_header_preproc=yes
11434 $as_echo "$as_me: failed program was:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11437 ac_header_preproc=no
11440 rm -f conftest.err conftest.$ac_ext
11441 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11442 $as_echo "$ac_header_preproc" >&6; }
11444 # So? What about this header?
11445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11448 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11450 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11451 ac_header_preproc=yes
11454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11455 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11457 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11459 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11461 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11463 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11465 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11467 ## ------------------------------- ##
11468 ## Report this to bug-bash@gnu.org ##
11469 ## ------------------------------- ##
11471 ) | sed "s/^/$as_me: WARNING: /" >&2
11474 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11475 $as_echo_n "checking for $ac_header... " >&6; }
11476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11477 $as_echo_n "(cached) " >&6
11479 eval "$as_ac_Header=\$ac_header_preproc"
11481 ac_res=`eval 'as_val=${'$as_ac_Header'}
11482 $as_echo "$as_val"'`
11483 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11484 $as_echo "$ac_res" >&6; }
11487 as_val=`eval 'as_val=${'$as_ac_Header'}
11488 $as_echo "$as_val"'`
11489 if test "x$as_val" = x""yes; then
11490 cat >>confdefs.h <<_ACEOF
11491 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11510 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
11511 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
11512 sys/time.h sys/times.h sys/types.h sys/wait.h
11514 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11516 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11517 $as_echo_n "checking for $ac_header... " >&6; }
11518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11519 $as_echo_n "(cached) " >&6
11521 ac_res=`eval 'as_val=${'$as_ac_Header'}
11522 $as_echo "$as_val"'`
11523 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11524 $as_echo "$ac_res" >&6; }
11526 # Is the header compilable?
11527 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11528 $as_echo_n "checking $ac_header usability... " >&6; }
11529 cat >conftest.$ac_ext <<_ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h. */
11535 $ac_includes_default
11536 #include <$ac_header>
11538 rm -f conftest.$ac_objext
11539 if { (ac_try="$ac_compile"
11540 case "(($ac_try" in
11541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11542 *) ac_try_echo
=$ac_try;;
11544 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11545 $as_echo "$ac_try_echo") >&5
11546 (eval "$ac_compile") 2>conftest.er1
11548 grep -v '^ *+' conftest.er1
>conftest.err
11550 cat conftest.err
>&5
11551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } && {
11553 test -z "$ac_c_werror_flag" ||
11554 test ! -s conftest.err
11555 } && test -s conftest.
$ac_objext; then
11556 ac_header_compiler
=yes
11558 $as_echo "$as_me: failed program was:" >&5
11559 sed 's/^/| /' conftest.
$ac_ext >&5
11561 ac_header_compiler
=no
11564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11565 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11566 $as_echo "$ac_header_compiler" >&6; }
11568 # Is the header present?
11569 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11570 $as_echo_n "checking $ac_header presence... " >&6; }
11571 cat >conftest.
$ac_ext <<_ACEOF
11574 cat confdefs.h
>>conftest.
$ac_ext
11575 cat >>conftest.
$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11577 #include <$ac_header>
11579 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11580 case "(($ac_try" in
11581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11582 *) ac_try_echo=$ac_try;;
11584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11585 $as_echo "$ac_try_echo") >&5
11586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11588 grep -v '^ *+' conftest.er1 >conftest.err
11590 cat conftest.err >&5
11591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); } >/dev/null && {
11593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11594 test ! -s conftest.err
11596 ac_header_preproc=yes
11598 $as_echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.$ac_ext >&5
11601 ac_header_preproc=no
11604 rm -f conftest.err conftest.$ac_ext
11605 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11606 $as_echo "$ac_header_preproc" >&6; }
11608 # So? What about this header?
11609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11612 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11614 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11615 ac_header_preproc=yes
11618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11619 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11621 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11623 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11625 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11627 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11629 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11631 ## ------------------------------- ##
11632 ## Report this to bug-bash@gnu.org ##
11633 ## ------------------------------- ##
11635 ) | sed "s/^/$as_me: WARNING: /" >&2
11638 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11639 $as_echo_n "checking for $ac_header... " >&6; }
11640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11641 $as_echo_n "(cached) " >&6
11643 eval "$as_ac_Header=\$ac_header_preproc"
11645 ac_res=`eval 'as_val=${'$as_ac_Header'}
11646 $as_echo "$as_val"'`
11647 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11648 $as_echo "$ac_res" >&6; }
11651 as_val=`eval 'as_val=${'$as_ac_Header'}
11652 $as_echo "$as_val"'`
11653 if test "x$as_val" = x""yes; then
11654 cat >>confdefs.h <<_ACEOF
11655 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11664 for ac_header in netinet/in.h arpa/inet.h
11666 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11669 $as_echo_n "checking for $ac_header... " >&6; }
11670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11671 $as_echo_n "(cached) " >&6
11673 ac_res=`eval 'as_val=${'$as_ac_Header'}
11674 $as_echo "$as_val"'`
11675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11676 $as_echo "$ac_res" >&6; }
11678 # Is the header compilable?
11679 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11680 $as_echo_n "checking $ac_header usability... " >&6; }
11681 cat >conftest.$ac_ext <<_ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11687 $ac_includes_default
11688 #include <$ac_header>
11690 rm -f conftest.$ac_objext
11691 if { (ac_try="$ac_compile"
11692 case "(($ac_try" in
11693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11694 *) ac_try_echo
=$ac_try;;
11696 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11697 $as_echo "$ac_try_echo") >&5
11698 (eval "$ac_compile") 2>conftest.er1
11700 grep -v '^ *+' conftest.er1
>conftest.err
11702 cat conftest.err
>&5
11703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } && {
11705 test -z "$ac_c_werror_flag" ||
11706 test ! -s conftest.err
11707 } && test -s conftest.
$ac_objext; then
11708 ac_header_compiler
=yes
11710 $as_echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.
$ac_ext >&5
11713 ac_header_compiler
=no
11716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11717 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11718 $as_echo "$ac_header_compiler" >&6; }
11720 # Is the header present?
11721 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11722 $as_echo_n "checking $ac_header presence... " >&6; }
11723 cat >conftest.
$ac_ext <<_ACEOF
11726 cat confdefs.h
>>conftest.
$ac_ext
11727 cat >>conftest.
$ac_ext <<_ACEOF
11728 /* end confdefs.h. */
11729 #include <$ac_header>
11731 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11732 case "(($ac_try" in
11733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11734 *) ac_try_echo=$ac_try;;
11736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11737 $as_echo "$ac_try_echo") >&5
11738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11740 grep -v '^ *+' conftest.er1 >conftest.err
11742 cat conftest.err >&5
11743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } >/dev/null && {
11745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11746 test ! -s conftest.err
11748 ac_header_preproc=yes
11750 $as_echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11753 ac_header_preproc=no
11756 rm -f conftest.err conftest.$ac_ext
11757 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11758 $as_echo "$ac_header_preproc" >&6; }
11760 # So? What about this header?
11761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11764 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11766 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11767 ac_header_preproc=yes
11770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11771 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11773 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11775 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11777 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11779 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11781 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11783 ## ------------------------------- ##
11784 ## Report this to bug-bash@gnu.org ##
11785 ## ------------------------------- ##
11787 ) | sed "s/^/$as_me: WARNING: /" >&2
11790 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11791 $as_echo_n "checking for $ac_header... " >&6; }
11792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11793 $as_echo_n "(cached) " >&6
11795 eval "$as_ac_Header=\$ac_header_preproc"
11797 ac_res=`eval 'as_val=${'$as_ac_Header'}
11798 $as_echo "$as_val"'`
11799 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11800 $as_echo "$ac_res" >&6; }
11803 as_val=`eval 'as_val=${'$as_ac_Header'}
11804 $as_echo "$as_val"'`
11805 if test "x$as_val" = x""yes; then
11806 cat >>confdefs.h <<_ACEOF
11807 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11815 { $as_echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
11816 $as_echo_n "checking for sys/ptem.h... " >&6; }
11817 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
11818 $as_echo_n "(cached) " >&6
11820 cat >conftest.$ac_ext <<_ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11827 #if HAVE_SYS_STREAM_H
11828 # include <sys/stream.h>
11832 #include <sys/ptem.h>
11834 rm -f conftest.$ac_objext
11835 if { (ac_try="$ac_compile"
11836 case "(($ac_try" in
11837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11838 *) ac_try_echo
=$ac_try;;
11840 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11841 $as_echo "$ac_try_echo") >&5
11842 (eval "$ac_compile") 2>conftest.er1
11844 grep -v '^ *+' conftest.er1
>conftest.err
11846 cat conftest.err
>&5
11847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } && {
11849 test -z "$ac_c_werror_flag" ||
11850 test ! -s conftest.err
11851 } && test -s conftest.
$ac_objext; then
11852 ac_cv_header_sys_ptem_h
=yes
11854 $as_echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.
$ac_ext >&5
11857 ac_cv_header_sys_ptem_h
=no
11860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11862 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
11863 $as_echo "$ac_cv_header_sys_ptem_h" >&6; }
11867 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11868 # for constant arguments. Useless!
11869 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
11870 $as_echo_n "checking for working alloca.h... " >&6; }
11871 if test "${ac_cv_working_alloca_h+set}" = set; then
11872 $as_echo_n "(cached) " >&6
11874 cat >conftest.
$ac_ext <<_ACEOF
11877 cat confdefs.h
>>conftest.
$ac_ext
11878 cat >>conftest.
$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11880 #include <alloca.h>
11884 char *p = (char *) alloca (2 * sizeof (int));
11890 rm -f conftest.
$ac_objext conftest
$ac_exeext
11891 if { (ac_try
="$ac_link"
11892 case "(($ac_try" in
11893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11897 $as_echo "$ac_try_echo") >&5
11898 (eval "$ac_link") 2>conftest.er1
11900 grep -v '^ *+' conftest.er1 >conftest.err
11902 cat conftest.err >&5
11903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } && {
11905 test -z "$ac_c_werror_flag" ||
11906 test ! -s conftest.err
11907 } && test -s conftest$ac_exeext && {
11908 test "$cross_compiling" = yes ||
11909 $as_test_x conftest$ac_exeext
11911 ac_cv_working_alloca_h=yes
11913 $as_echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11916 ac_cv_working_alloca_h=no
11919 rm -rf conftest.dSYM
11920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11921 conftest$ac_exeext conftest.$ac_ext
11923 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11924 $as_echo "$ac_cv_working_alloca_h" >&6; }
11925 if test $ac_cv_working_alloca_h = yes; then
11927 cat >>confdefs.h <<\_ACEOF
11928 #define HAVE_ALLOCA_H 1
11933 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
11934 $as_echo_n "checking for alloca... " >&6; }
11935 if test "${ac_cv_func_alloca_works+set}" = set; then
11936 $as_echo_n "(cached) " >&6
11938 cat >conftest.$ac_ext <<_ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h. */
11945 # define alloca __builtin_alloca
11948 # include <malloc.h>
11949 # define alloca _alloca
11951 # ifdef HAVE_ALLOCA_H
11952 # include <alloca.h>
11957 # ifndef alloca /* predefined by HP cc +Olibcalls */
11968 char *p = (char *) alloca (1);
11974 rm -f conftest.$ac_objext conftest$ac_exeext
11975 if { (ac_try="$ac_link"
11976 case "(($ac_try" in
11977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11978 *) ac_try_echo
=$ac_try;;
11980 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11981 $as_echo "$ac_try_echo") >&5
11982 (eval "$ac_link") 2>conftest.er1
11984 grep -v '^ *+' conftest.er1
>conftest.err
11986 cat conftest.err
>&5
11987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } && {
11989 test -z "$ac_c_werror_flag" ||
11990 test ! -s conftest.err
11991 } && test -s conftest
$ac_exeext && {
11992 test "$cross_compiling" = yes ||
11993 $as_test_x conftest
$ac_exeext
11995 ac_cv_func_alloca_works
=yes
11997 $as_echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.
$ac_ext >&5
12000 ac_cv_func_alloca_works
=no
12003 rm -rf conftest.dSYM
12004 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12005 conftest
$ac_exeext conftest.
$ac_ext
12007 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12008 $as_echo "$ac_cv_func_alloca_works" >&6; }
12010 if test $ac_cv_func_alloca_works = yes; then
12012 cat >>confdefs.h
<<\_ACEOF
12013 #define HAVE_ALLOCA 1
12017 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12018 # that cause trouble. Some versions do not even contain alloca or
12019 # contain a buggy version. If you still want to use their alloca,
12020 # use ar to extract alloca.o from them instead of compiling alloca.c.
12022 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12024 cat >>confdefs.h
<<\_ACEOF
12029 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12030 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12031 if test "${ac_cv_os_cray+set}" = set; then
12032 $as_echo_n "(cached) " >&6
12034 cat >conftest.
$ac_ext <<_ACEOF
12037 cat confdefs.h
>>conftest.
$ac_ext
12038 cat >>conftest.
$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040 #if defined CRAY && ! defined CRAY2
12047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12048 $EGREP "webecray" >/dev
/null
2>&1; then
12056 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12057 $as_echo "$ac_cv_os_cray" >&6; }
12058 if test $ac_cv_os_cray = yes; then
12059 for ac_func
in _getb67 GETB67 getb67
; do
12060 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12061 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12062 $as_echo_n "checking for $ac_func... " >&6; }
12063 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12064 $as_echo_n "(cached) " >&6
12066 cat >conftest.
$ac_ext <<_ACEOF
12069 cat confdefs.h
>>conftest.
$ac_ext
12070 cat >>conftest.
$ac_ext <<_ACEOF
12071 /* end confdefs.h. */
12072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12074 #define $ac_func innocuous_$ac_func
12076 /* System header to define __stub macros and hopefully few prototypes,
12077 which can conflict with char $ac_func (); below.
12078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12079 <limits.h> exists even on freestanding compilers. */
12082 # include <limits.h>
12084 # include <assert.h>
12089 /* Override any GCC internal prototype to avoid an error.
12090 Use char because int might match the return type of a GCC
12091 builtin and then its argument prototype would still apply. */
12096 /* The GNU C library defines this for functions which it implements
12097 to always fail with ENOSYS. Some functions are actually named
12098 something starting with __ and the normal name is an alias. */
12099 #if defined __stub_$ac_func || defined __stub___$ac_func
12106 return $ac_func ();
12111 rm -f conftest.
$ac_objext conftest
$ac_exeext
12112 if { (ac_try
="$ac_link"
12113 case "(($ac_try" in
12114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12118 $as_echo "$ac_try_echo") >&5
12119 (eval "$ac_link") 2>conftest.er1
12121 grep -v '^ *+' conftest.er1 >conftest.err
12123 cat conftest.err >&5
12124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } && {
12126 test -z "$ac_c_werror_flag" ||
12127 test ! -s conftest.err
12128 } && test -s conftest$ac_exeext && {
12129 test "$cross_compiling" = yes ||
12130 $as_test_x conftest$ac_exeext
12132 eval "$as_ac_var=yes"
12134 $as_echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12137 eval "$as_ac_var=no"
12140 rm -rf conftest.dSYM
12141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12142 conftest$ac_exeext conftest.$ac_ext
12144 ac_res=`eval 'as_val=${'$as_ac_var'}
12145 $as_echo "$as_val"'`
12146 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12147 $as_echo "$ac_res" >&6; }
12148 as_val=`eval 'as_val=${'$as_ac_var'}
12149 $as_echo "$as_val"'`
12150 if test "x$as_val" = x""yes; then
12152 cat >>confdefs.h <<_ACEOF
12153 #define CRAY_STACKSEG_END $ac_func
12162 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12163 $as_echo_n "checking stack direction for C alloca... " >&6; }
12164 if test "${ac_cv_c_stack_direction+set}" = set; then
12165 $as_echo_n "(cached) " >&6
12167 if test "$cross_compiling" = yes; then
12168 ac_cv_c_stack_direction=0
12170 cat >conftest.$ac_ext <<_ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12176 $ac_includes_default
12178 find_stack_direction ()
12180 static char *addr = 0;
12185 return find_stack_direction ();
12188 return (&dummy > addr) ? 1 : -1;
12194 return find_stack_direction () < 0;
12197 rm -f conftest$ac_exeext
12198 if { (ac_try="$ac_link"
12199 case "(($ac_try" in
12200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12201 *) ac_try_echo
=$ac_try;;
12203 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12204 $as_echo "$ac_try_echo") >&5
12205 (eval "$ac_link") 2>&5
12207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12209 { (case "(($ac_try" in
12210 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12214 $as_echo "$ac_try_echo") >&5
12215 (eval "$ac_try") 2>&5
12217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; }; then
12219 ac_cv_c_stack_direction=1
12221 $as_echo "$as_me: program exited with status $ac_status" >&5
12222 $as_echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12225 ( exit $ac_status )
12226 ac_cv_c_stack_direction=-1
12228 rm -rf conftest.dSYM
12229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12234 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12235 $as_echo "$ac_cv_c_stack_direction" >&6; }
12237 cat >>confdefs.h <<_ACEOF
12238 #define STACK_DIRECTION $ac_cv_c_stack_direction
12244 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
12245 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12246 if test "${ac_cv_func_getpgrp_void+set}" = set; then
12247 $as_echo_n "(cached) " >&6
12249 # Use it with a single arg.
12250 cat >conftest.$ac_ext <<_ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12256 $ac_includes_default
12265 rm -f conftest.$ac_objext
12266 if { (ac_try="$ac_compile"
12267 case "(($ac_try" in
12268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12269 *) ac_try_echo
=$ac_try;;
12271 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12272 $as_echo "$ac_try_echo") >&5
12273 (eval "$ac_compile") 2>conftest.er1
12275 grep -v '^ *+' conftest.er1
>conftest.err
12277 cat conftest.err
>&5
12278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } && {
12280 test -z "$ac_c_werror_flag" ||
12281 test ! -s conftest.err
12282 } && test -s conftest.
$ac_objext; then
12283 ac_cv_func_getpgrp_void
=no
12285 $as_echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.
$ac_ext >&5
12288 ac_cv_func_getpgrp_void
=yes
12291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12294 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
12295 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12296 if test $ac_cv_func_getpgrp_void = yes; then
12298 cat >>confdefs.h
<<\_ACEOF
12299 #define GETPGRP_VOID 1
12304 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12305 $as_echo_n "(cached) " >&6
12307 ac_cv_func_setvbuf_reversed
=no
12312 for ac_func
in vprintf
12314 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12315 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12316 $as_echo_n "checking for $ac_func... " >&6; }
12317 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12318 $as_echo_n "(cached) " >&6
12320 cat >conftest.
$ac_ext <<_ACEOF
12323 cat confdefs.h
>>conftest.
$ac_ext
12324 cat >>conftest.
$ac_ext <<_ACEOF
12325 /* end confdefs.h. */
12326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12328 #define $ac_func innocuous_$ac_func
12330 /* System header to define __stub macros and hopefully few prototypes,
12331 which can conflict with char $ac_func (); below.
12332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12333 <limits.h> exists even on freestanding compilers. */
12336 # include <limits.h>
12338 # include <assert.h>
12343 /* Override any GCC internal prototype to avoid an error.
12344 Use char because int might match the return type of a GCC
12345 builtin and then its argument prototype would still apply. */
12350 /* The GNU C library defines this for functions which it implements
12351 to always fail with ENOSYS. Some functions are actually named
12352 something starting with __ and the normal name is an alias. */
12353 #if defined __stub_$ac_func || defined __stub___$ac_func
12360 return $ac_func ();
12365 rm -f conftest.
$ac_objext conftest
$ac_exeext
12366 if { (ac_try
="$ac_link"
12367 case "(($ac_try" in
12368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12369 *) ac_try_echo=$ac_try;;
12371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12372 $as_echo "$ac_try_echo") >&5
12373 (eval "$ac_link") 2>conftest.er1
12375 grep -v '^ *+' conftest.er1 >conftest.err
12377 cat conftest.err >&5
12378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } && {
12380 test -z "$ac_c_werror_flag" ||
12381 test ! -s conftest.err
12382 } && test -s conftest$ac_exeext && {
12383 test "$cross_compiling" = yes ||
12384 $as_test_x conftest$ac_exeext
12386 eval "$as_ac_var=yes"
12388 $as_echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12391 eval "$as_ac_var=no"
12394 rm -rf conftest.dSYM
12395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12396 conftest$ac_exeext conftest.$ac_ext
12398 ac_res=`eval 'as_val=${'$as_ac_var'}
12399 $as_echo "$as_val"'`
12400 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12401 $as_echo "$ac_res" >&6; }
12402 as_val=`eval 'as_val=${'$as_ac_var'}
12403 $as_echo "$as_val"'`
12404 if test "x$as_val" = x""yes; then
12405 cat >>confdefs.h <<_ACEOF
12406 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12409 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12410 $as_echo_n "checking for _doprnt... " >&6; }
12411 if test "${ac_cv_func__doprnt+set}" = set; then
12412 $as_echo_n "(cached) " >&6
12414 cat >conftest.$ac_ext <<_ACEOF
12417 cat confdefs.h >>conftest.$ac_ext
12418 cat >>conftest.$ac_ext <<_ACEOF
12419 /* end confdefs.h. */
12420 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12422 #define _doprnt innocuous__doprnt
12424 /* System header to define __stub macros and hopefully few prototypes,
12425 which can conflict with char _doprnt (); below.
12426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12427 <limits.h> exists even on freestanding compilers. */
12430 # include <limits.h>
12432 # include <assert.h>
12437 /* Override any GCC internal prototype to avoid an error.
12438 Use char because int might match the return type of a GCC
12439 builtin and then its argument prototype would still apply. */
12444 /* The GNU C library defines this for functions which it implements
12445 to always fail with ENOSYS. Some functions are actually named
12446 something starting with __ and the normal name is an alias. */
12447 #if defined __stub__doprnt || defined __stub____doprnt
12459 rm -f conftest.$ac_objext conftest$ac_exeext
12460 if { (ac_try="$ac_link"
12461 case "(($ac_try" in
12462 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12463 *) ac_try_echo
=$ac_try;;
12465 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12466 $as_echo "$ac_try_echo") >&5
12467 (eval "$ac_link") 2>conftest.er1
12469 grep -v '^ *+' conftest.er1
>conftest.err
12471 cat conftest.err
>&5
12472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); } && {
12474 test -z "$ac_c_werror_flag" ||
12475 test ! -s conftest.err
12476 } && test -s conftest
$ac_exeext && {
12477 test "$cross_compiling" = yes ||
12478 $as_test_x conftest
$ac_exeext
12480 ac_cv_func__doprnt
=yes
12482 $as_echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.
$ac_ext >&5
12485 ac_cv_func__doprnt
=no
12488 rm -rf conftest.dSYM
12489 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12490 conftest
$ac_exeext conftest.
$ac_ext
12492 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12493 $as_echo "$ac_cv_func__doprnt" >&6; }
12494 if test "x$ac_cv_func__doprnt" = x
""yes; then
12496 cat >>confdefs.h
<<\_ACEOF
12497 #define HAVE_DOPRNT 1
12506 { $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
12507 $as_echo_n "checking for working strcoll... " >&6; }
12508 if test "${ac_cv_func_strcoll_works+set}" = set; then
12509 $as_echo_n "(cached) " >&6
12511 if test "$cross_compiling" = yes; then
12512 ac_cv_func_strcoll_works
=no
12514 cat >conftest.
$ac_ext <<_ACEOF
12517 cat confdefs.h
>>conftest.
$ac_ext
12518 cat >>conftest.
$ac_ext <<_ACEOF
12519 /* end confdefs.h. */
12520 $ac_includes_default
12524 return (strcoll ("abc", "def") >= 0 ||
12525 strcoll ("ABC", "DEF") >= 0 ||
12526 strcoll ("123", "456") >= 0)
12531 rm -f conftest
$ac_exeext
12532 if { (ac_try
="$ac_link"
12533 case "(($ac_try" in
12534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12535 *) ac_try_echo=$ac_try;;
12537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12538 $as_echo "$ac_try_echo") >&5
12539 (eval "$ac_link") 2>&5
12541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12543 { (case "(($ac_try" in
12544 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12545 *) ac_try_echo
=$ac_try;;
12547 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12548 $as_echo "$ac_try_echo") >&5
12549 (eval "$ac_try") 2>&5
12551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; }; then
12553 ac_cv_func_strcoll_works
=yes
12555 $as_echo "$as_me: program exited with status $ac_status" >&5
12556 $as_echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.
$ac_ext >&5
12559 ( exit $ac_status )
12560 ac_cv_func_strcoll_works
=no
12562 rm -rf conftest.dSYM
12563 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12568 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
12569 $as_echo "$ac_cv_func_strcoll_works" >&6; }
12570 if test $ac_cv_func_strcoll_works = yes; then
12572 cat >>confdefs.h
<<\_ACEOF
12573 #define HAVE_STRCOLL 1
12580 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
12581 MALLOC_TARGET
=alloca
12582 MALLOC_SRC
=alloca.c
12584 MALLOC_LIB
='-lmalloc'
12585 MALLOC_LIBRARY
='$(ALLOC_LIBDIR)/libmalloc.a'
12586 MALLOC_LDFLAGS
='-L$(ALLOC_LIBDIR)'
12587 MALLOC_DEP
='$(MALLOC_LIBRARY)'
12590 if test "$ac_cv_func_vprintf" = no
; then
12591 { $as_echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
12592 $as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; }
12593 cat >conftest.
$ac_ext <<_ACEOF
12596 cat confdefs.h
>>conftest.
$ac_ext
12597 cat >>conftest.
$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12603 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev
/null
2>&1; then
12604 ac_cv_func_vprintf
=yes
12608 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
12609 $as_echo "$ac_cv_func_vprintf" >&6; }
12610 if test $ac_cv_func_vprintf = yes; then
12611 cat >>confdefs.h
<<\_ACEOF
12612 #define HAVE_VPRINTF 1
12618 if test "$ac_cv_func_vprintf" = no
&& test "$ac_cv_func__doprnt" = "yes"; then
12619 case " $LIBOBJS " in
12620 *" vprint.$ac_objext "* ) ;;
12621 *) LIBOBJS
="$LIBOBJS vprint.$ac_objext"
12627 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12628 $as_echo_n "checking return type of signal handlers... " >&6; }
12629 if test "${ac_cv_type_signal+set}" = set; then
12630 $as_echo_n "(cached) " >&6
12632 cat >conftest.
$ac_ext <<_ACEOF
12635 cat confdefs.h
>>conftest.
$ac_ext
12636 cat >>conftest.
$ac_ext <<_ACEOF
12637 /* end confdefs.h. */
12638 #include <sys/types.h>
12639 #include <signal.h>
12644 return *(signal (0, 0)) (0) == 1;
12649 rm -f conftest.
$ac_objext
12650 if { (ac_try
="$ac_compile"
12651 case "(($ac_try" in
12652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12653 *) ac_try_echo=$ac_try;;
12655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12656 $as_echo "$ac_try_echo") >&5
12657 (eval "$ac_compile") 2>conftest.er1
12659 grep -v '^ *+' conftest.er1 >conftest.err
12661 cat conftest.err >&5
12662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } && {
12664 test -z "$ac_c_werror_flag" ||
12665 test ! -s conftest.err
12666 } && test -s conftest.$ac_objext; then
12667 ac_cv_type_signal=int
12669 $as_echo "$as_me: failed program was:" >&5
12670 sed 's/^/| /' conftest.$ac_ext >&5
12672 ac_cv_type_signal=void
12675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12677 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12678 $as_echo "$ac_cv_type_signal" >&6; }
12680 cat >>confdefs.h <<_ACEOF
12681 #define RETSIGTYPE $ac_cv_type_signal
12686 { $as_echo "$as_me:$LINENO: checking for __setostype" >&5
12687 $as_echo_n "checking for __setostype... " >&6; }
12688 if test "${ac_cv_func___setostype+set}" = set; then
12689 $as_echo_n "(cached) " >&6
12691 cat >conftest.$ac_ext <<_ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h. */
12697 /* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
12698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12699 #define __setostype innocuous___setostype
12701 /* System header to define __stub macros and hopefully few prototypes,
12702 which can conflict with char __setostype (); below.
12703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12704 <limits.h> exists even on freestanding compilers. */
12707 # include <limits.h>
12709 # include <assert.h>
12714 /* Override any GCC internal prototype to avoid an error.
12715 Use char because int might match the return type of a GCC
12716 builtin and then its argument prototype would still apply. */
12720 char __setostype ();
12721 /* The GNU C library defines this for functions which it implements
12722 to always fail with ENOSYS. Some functions are actually named
12723 something starting with __ and the normal name is an alias. */
12724 #if defined __stub___setostype || defined __stub_____setostype
12731 return __setostype ();
12736 rm -f conftest.$ac_objext conftest$ac_exeext
12737 if { (ac_try="$ac_link"
12738 case "(($ac_try" in
12739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12740 *) ac_try_echo
=$ac_try;;
12742 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12743 $as_echo "$ac_try_echo") >&5
12744 (eval "$ac_link") 2>conftest.er1
12746 grep -v '^ *+' conftest.er1
>conftest.err
12748 cat conftest.err
>&5
12749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } && {
12751 test -z "$ac_c_werror_flag" ||
12752 test ! -s conftest.err
12753 } && test -s conftest
$ac_exeext && {
12754 test "$cross_compiling" = yes ||
12755 $as_test_x conftest
$ac_exeext
12757 ac_cv_func___setostype
=yes
12759 $as_echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.
$ac_ext >&5
12762 ac_cv_func___setostype
=no
12765 rm -rf conftest.dSYM
12766 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12767 conftest
$ac_exeext conftest.
$ac_ext
12769 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
12770 $as_echo "$ac_cv_func___setostype" >&6; }
12771 if test "x$ac_cv_func___setostype" = x
""yes; then
12772 cat >>confdefs.h
<<\_ACEOF
12773 #define HAVE_SETOSTYPE 1
12778 { $as_echo "$as_me:$LINENO: checking for wait3" >&5
12779 $as_echo_n "checking for wait3... " >&6; }
12780 if test "${ac_cv_func_wait3+set}" = set; then
12781 $as_echo_n "(cached) " >&6
12783 cat >conftest.
$ac_ext <<_ACEOF
12786 cat confdefs.h
>>conftest.
$ac_ext
12787 cat >>conftest.
$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12789 /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
12790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12791 #define wait3 innocuous_wait3
12793 /* System header to define __stub macros and hopefully few prototypes,
12794 which can conflict with char wait3 (); below.
12795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12796 <limits.h> exists even on freestanding compilers. */
12799 # include <limits.h>
12801 # include <assert.h>
12806 /* Override any GCC internal prototype to avoid an error.
12807 Use char because int might match the return type of a GCC
12808 builtin and then its argument prototype would still apply. */
12813 /* The GNU C library defines this for functions which it implements
12814 to always fail with ENOSYS. Some functions are actually named
12815 something starting with __ and the normal name is an alias. */
12816 #if defined __stub_wait3 || defined __stub___wait3
12828 rm -f conftest.
$ac_objext conftest
$ac_exeext
12829 if { (ac_try
="$ac_link"
12830 case "(($ac_try" in
12831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12832 *) ac_try_echo=$ac_try;;
12834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12835 $as_echo "$ac_try_echo") >&5
12836 (eval "$ac_link") 2>conftest.er1
12838 grep -v '^ *+' conftest.er1 >conftest.err
12840 cat conftest.err >&5
12841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } && {
12843 test -z "$ac_c_werror_flag" ||
12844 test ! -s conftest.err
12845 } && test -s conftest$ac_exeext && {
12846 test "$cross_compiling" = yes ||
12847 $as_test_x conftest$ac_exeext
12849 ac_cv_func_wait3=yes
12851 $as_echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.$ac_ext >&5
12854 ac_cv_func_wait3=no
12857 rm -rf conftest.dSYM
12858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12859 conftest$ac_exeext conftest.$ac_ext
12861 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
12862 $as_echo "$ac_cv_func_wait3" >&6; }
12863 if test "x$ac_cv_func_wait3" = x""yes; then
12864 cat >>confdefs.h <<\_ACEOF
12865 #define HAVE_WAIT3 1
12870 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
12871 $as_echo_n "checking for isinf... " >&6; }
12872 if test "${ac_cv_func_isinf+set}" = set; then
12873 $as_echo_n "(cached) " >&6
12875 cat >conftest.$ac_ext <<_ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12881 /* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
12882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12883 #define isinf innocuous_isinf
12885 /* System header to define __stub macros and hopefully few prototypes,
12886 which can conflict with char isinf (); below.
12887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12888 <limits.h> exists even on freestanding compilers. */
12891 # include <limits.h>
12893 # include <assert.h>
12898 /* Override any GCC internal prototype to avoid an error.
12899 Use char because int might match the return type of a GCC
12900 builtin and then its argument prototype would still apply. */
12905 /* The GNU C library defines this for functions which it implements
12906 to always fail with ENOSYS. Some functions are actually named
12907 something starting with __ and the normal name is an alias. */
12908 #if defined __stub_isinf || defined __stub___isinf
12920 rm -f conftest.$ac_objext conftest$ac_exeext
12921 if { (ac_try="$ac_link"
12922 case "(($ac_try" in
12923 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12924 *) ac_try_echo
=$ac_try;;
12926 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12927 $as_echo "$ac_try_echo") >&5
12928 (eval "$ac_link") 2>conftest.er1
12930 grep -v '^ *+' conftest.er1
>conftest.err
12932 cat conftest.err
>&5
12933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } && {
12935 test -z "$ac_c_werror_flag" ||
12936 test ! -s conftest.err
12937 } && test -s conftest
$ac_exeext && {
12938 test "$cross_compiling" = yes ||
12939 $as_test_x conftest
$ac_exeext
12941 ac_cv_func_isinf
=yes
12943 $as_echo "$as_me: failed program was:" >&5
12944 sed 's/^/| /' conftest.
$ac_ext >&5
12946 ac_cv_func_isinf
=no
12949 rm -rf conftest.dSYM
12950 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12951 conftest
$ac_exeext conftest.
$ac_ext
12953 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
12954 $as_echo "$ac_cv_func_isinf" >&6; }
12955 if test "x$ac_cv_func_isinf" = x
""yes; then
12956 cat >>confdefs.h
<<\_ACEOF
12957 #define HAVE_ISINF_IN_LIBC 1
12962 { $as_echo "$as_me:$LINENO: checking for isnan" >&5
12963 $as_echo_n "checking for isnan... " >&6; }
12964 if test "${ac_cv_func_isnan+set}" = set; then
12965 $as_echo_n "(cached) " >&6
12967 cat >conftest.
$ac_ext <<_ACEOF
12970 cat confdefs.h
>>conftest.
$ac_ext
12971 cat >>conftest.
$ac_ext <<_ACEOF
12972 /* end confdefs.h. */
12973 /* Define isnan to an innocuous variant, in case <limits.h> declares isnan.
12974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12975 #define isnan innocuous_isnan
12977 /* System header to define __stub macros and hopefully few prototypes,
12978 which can conflict with char isnan (); below.
12979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12980 <limits.h> exists even on freestanding compilers. */
12983 # include <limits.h>
12985 # include <assert.h>
12990 /* Override any GCC internal prototype to avoid an error.
12991 Use char because int might match the return type of a GCC
12992 builtin and then its argument prototype would still apply. */
12997 /* The GNU C library defines this for functions which it implements
12998 to always fail with ENOSYS. Some functions are actually named
12999 something starting with __ and the normal name is an alias. */
13000 #if defined __stub_isnan || defined __stub___isnan
13012 rm -f conftest.
$ac_objext conftest
$ac_exeext
13013 if { (ac_try
="$ac_link"
13014 case "(($ac_try" in
13015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13016 *) ac_try_echo=$ac_try;;
13018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13019 $as_echo "$ac_try_echo") >&5
13020 (eval "$ac_link") 2>conftest.er1
13022 grep -v '^ *+' conftest.er1 >conftest.err
13024 cat conftest.err >&5
13025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } && {
13027 test -z "$ac_c_werror_flag" ||
13028 test ! -s conftest.err
13029 } && test -s conftest$ac_exeext && {
13030 test "$cross_compiling" = yes ||
13031 $as_test_x conftest$ac_exeext
13033 ac_cv_func_isnan=yes
13035 $as_echo "$as_me: failed program was:" >&5
13036 sed 's/^/| /' conftest.$ac_ext >&5
13038 ac_cv_func_isnan=no
13041 rm -rf conftest.dSYM
13042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13043 conftest$ac_exeext conftest.$ac_ext
13045 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
13046 $as_echo "$ac_cv_func_isnan" >&6; }
13047 if test "x$ac_cv_func_isnan" = x""yes; then
13048 cat >>confdefs.h <<\_ACEOF
13049 #define HAVE_ISNAN_IN_LIBC 1
13055 { $as_echo "$as_me:$LINENO: checking for mkfifo" >&5
13056 $as_echo_n "checking for mkfifo... " >&6; }
13057 if test "${ac_cv_func_mkfifo+set}" = set; then
13058 $as_echo_n "(cached) " >&6
13060 cat >conftest.$ac_ext <<_ACEOF
13063 cat confdefs.h >>conftest.$ac_ext
13064 cat >>conftest.$ac_ext <<_ACEOF
13065 /* end confdefs.h. */
13066 /* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
13067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13068 #define mkfifo innocuous_mkfifo
13070 /* System header to define __stub macros and hopefully few prototypes,
13071 which can conflict with char mkfifo (); below.
13072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13073 <limits.h> exists even on freestanding compilers. */
13076 # include <limits.h>
13078 # include <assert.h>
13083 /* Override any GCC internal prototype to avoid an error.
13084 Use char because int might match the return type of a GCC
13085 builtin and then its argument prototype would still apply. */
13090 /* The GNU C library defines this for functions which it implements
13091 to always fail with ENOSYS. Some functions are actually named
13092 something starting with __ and the normal name is an alias. */
13093 #if defined __stub_mkfifo || defined __stub___mkfifo
13105 rm -f conftest.$ac_objext conftest$ac_exeext
13106 if { (ac_try="$ac_link"
13107 case "(($ac_try" in
13108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13109 *) ac_try_echo
=$ac_try;;
13111 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13112 $as_echo "$ac_try_echo") >&5
13113 (eval "$ac_link") 2>conftest.er1
13115 grep -v '^ *+' conftest.er1
>conftest.err
13117 cat conftest.err
>&5
13118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } && {
13120 test -z "$ac_c_werror_flag" ||
13121 test ! -s conftest.err
13122 } && test -s conftest
$ac_exeext && {
13123 test "$cross_compiling" = yes ||
13124 $as_test_x conftest
$ac_exeext
13126 ac_cv_func_mkfifo
=yes
13128 $as_echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.
$ac_ext >&5
13131 ac_cv_func_mkfifo
=no
13134 rm -rf conftest.dSYM
13135 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13136 conftest
$ac_exeext conftest.
$ac_ext
13138 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
13139 $as_echo "$ac_cv_func_mkfifo" >&6; }
13140 if test "x$ac_cv_func_mkfifo" = x
""yes; then
13141 cat >>confdefs.h
<<\_ACEOF
13142 #define HAVE_MKFIFO 1
13146 cat >>confdefs.h
<<\_ACEOF
13147 #define MKFIFO_MISSING 1
13176 for ac_func
in dup2 eaccess fcntl getdtablesize getgroups gethostname \
13177 getpagesize getpeername getrlimit getrusage gettimeofday \
13178 kill killpg lstat readlink sbrk
select setdtablesize \
13179 setitimer tcgetpgrp uname
ulimit waitpid
13181 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13182 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13183 $as_echo_n "checking for $ac_func... " >&6; }
13184 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13185 $as_echo_n "(cached) " >&6
13187 cat >conftest.
$ac_ext <<_ACEOF
13190 cat confdefs.h
>>conftest.
$ac_ext
13191 cat >>conftest.
$ac_ext <<_ACEOF
13192 /* end confdefs.h. */
13193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13195 #define $ac_func innocuous_$ac_func
13197 /* System header to define __stub macros and hopefully few prototypes,
13198 which can conflict with char $ac_func (); below.
13199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13200 <limits.h> exists even on freestanding compilers. */
13203 # include <limits.h>
13205 # include <assert.h>
13210 /* Override any GCC internal prototype to avoid an error.
13211 Use char because int might match the return type of a GCC
13212 builtin and then its argument prototype would still apply. */
13217 /* The GNU C library defines this for functions which it implements
13218 to always fail with ENOSYS. Some functions are actually named
13219 something starting with __ and the normal name is an alias. */
13220 #if defined __stub_$ac_func || defined __stub___$ac_func
13227 return $ac_func ();
13232 rm -f conftest.
$ac_objext conftest
$ac_exeext
13233 if { (ac_try
="$ac_link"
13234 case "(($ac_try" in
13235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13239 $as_echo "$ac_try_echo") >&5
13240 (eval "$ac_link") 2>conftest.er1
13242 grep -v '^ *+' conftest.er1 >conftest.err
13244 cat conftest.err >&5
13245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } && {
13247 test -z "$ac_c_werror_flag" ||
13248 test ! -s conftest.err
13249 } && test -s conftest$ac_exeext && {
13250 test "$cross_compiling" = yes ||
13251 $as_test_x conftest$ac_exeext
13253 eval "$as_ac_var=yes"
13255 $as_echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13258 eval "$as_ac_var=no"
13261 rm -rf conftest.dSYM
13262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13263 conftest$ac_exeext conftest.$ac_ext
13265 ac_res=`eval 'as_val=${'$as_ac_var'}
13266 $as_echo "$as_val"'`
13267 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13268 $as_echo "$ac_res" >&6; }
13269 as_val=`eval 'as_val=${'$as_ac_var'}
13270 $as_echo "$as_val"'`
13271 if test "x$as_val" = x""yes; then
13272 cat >>confdefs.h <<_ACEOF
13273 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13280 for ac_func in rename
13282 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13283 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13284 $as_echo_n "checking for $ac_func... " >&6; }
13285 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13286 $as_echo_n "(cached) " >&6
13288 cat >conftest.$ac_ext <<_ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h. */
13294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13296 #define $ac_func innocuous_$ac_func
13298 /* System header to define __stub macros and hopefully few prototypes,
13299 which can conflict with char $ac_func (); below.
13300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13301 <limits.h> exists even on freestanding compilers. */
13304 # include <limits.h>
13306 # include <assert.h>
13311 /* Override any GCC internal prototype to avoid an error.
13312 Use char because int might match the return type of a GCC
13313 builtin and then its argument prototype would still apply. */
13318 /* The GNU C library defines this for functions which it implements
13319 to always fail with ENOSYS. Some functions are actually named
13320 something starting with __ and the normal name is an alias. */
13321 #if defined __stub_$ac_func || defined __stub___$ac_func
13328 return $ac_func ();
13333 rm -f conftest.$ac_objext conftest$ac_exeext
13334 if { (ac_try="$ac_link"
13335 case "(($ac_try" in
13336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13337 *) ac_try_echo
=$ac_try;;
13339 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13340 $as_echo "$ac_try_echo") >&5
13341 (eval "$ac_link") 2>conftest.er1
13343 grep -v '^ *+' conftest.er1
>conftest.err
13345 cat conftest.err
>&5
13346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } && {
13348 test -z "$ac_c_werror_flag" ||
13349 test ! -s conftest.err
13350 } && test -s conftest
$ac_exeext && {
13351 test "$cross_compiling" = yes ||
13352 $as_test_x conftest
$ac_exeext
13354 eval "$as_ac_var=yes"
13356 $as_echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.
$ac_ext >&5
13359 eval "$as_ac_var=no"
13362 rm -rf conftest.dSYM
13363 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13364 conftest
$ac_exeext conftest.
$ac_ext
13366 ac_res
=`eval 'as_val=${'$as_ac_var'}
13367 $as_echo "$as_val"'`
13368 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13369 $as_echo "$ac_res" >&6; }
13370 as_val
=`eval 'as_val=${'$as_ac_var'}
13371 $as_echo "$as_val"'`
13372 if test "x$as_val" = x
""yes; then
13373 cat >>confdefs.h
<<_ACEOF
13374 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13378 case " $LIBOBJS " in
13379 *" $ac_func.$ac_objext "* ) ;;
13380 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
13416 for ac_func
in bcopy bzero confstr fnmatch \
13417 getaddrinfo gethostbyname getservbyname getservent inet_aton \
13418 memmove pathconf putenv raise regcomp regexec \
13419 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
13420 sysconf tcgetattr
times ttyname tzset unsetenv
13422 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13423 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13424 $as_echo_n "checking for $ac_func... " >&6; }
13425 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13426 $as_echo_n "(cached) " >&6
13428 cat >conftest.
$ac_ext <<_ACEOF
13431 cat confdefs.h
>>conftest.
$ac_ext
13432 cat >>conftest.
$ac_ext <<_ACEOF
13433 /* end confdefs.h. */
13434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13436 #define $ac_func innocuous_$ac_func
13438 /* System header to define __stub macros and hopefully few prototypes,
13439 which can conflict with char $ac_func (); below.
13440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13441 <limits.h> exists even on freestanding compilers. */
13444 # include <limits.h>
13446 # include <assert.h>
13451 /* Override any GCC internal prototype to avoid an error.
13452 Use char because int might match the return type of a GCC
13453 builtin and then its argument prototype would still apply. */
13458 /* The GNU C library defines this for functions which it implements
13459 to always fail with ENOSYS. Some functions are actually named
13460 something starting with __ and the normal name is an alias. */
13461 #if defined __stub_$ac_func || defined __stub___$ac_func
13468 return $ac_func ();
13473 rm -f conftest.
$ac_objext conftest
$ac_exeext
13474 if { (ac_try
="$ac_link"
13475 case "(($ac_try" in
13476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13480 $as_echo "$ac_try_echo") >&5
13481 (eval "$ac_link") 2>conftest.er1
13483 grep -v '^ *+' conftest.er1 >conftest.err
13485 cat conftest.err >&5
13486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } && {
13488 test -z "$ac_c_werror_flag" ||
13489 test ! -s conftest.err
13490 } && test -s conftest$ac_exeext && {
13491 test "$cross_compiling" = yes ||
13492 $as_test_x conftest$ac_exeext
13494 eval "$as_ac_var=yes"
13496 $as_echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13499 eval "$as_ac_var=no"
13502 rm -rf conftest.dSYM
13503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13504 conftest$ac_exeext conftest.$ac_ext
13506 ac_res=`eval 'as_val=${'$as_ac_var'}
13507 $as_echo "$as_val"'`
13508 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13509 $as_echo "$ac_res" >&6; }
13510 as_val=`eval 'as_val=${'$as_ac_var'}
13511 $as_echo "$as_val"'`
13512 if test "x$as_val" = x""yes; then
13513 cat >>confdefs.h <<_ACEOF
13514 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13525 for ac_func in vsnprintf snprintf vasprintf asprintf
13527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13528 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13529 $as_echo_n "checking for $ac_func... " >&6; }
13530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13531 $as_echo_n "(cached) " >&6
13533 cat >conftest.$ac_ext <<_ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h. */
13539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13541 #define $ac_func innocuous_$ac_func
13543 /* System header to define __stub macros and hopefully few prototypes,
13544 which can conflict with char $ac_func (); below.
13545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13546 <limits.h> exists even on freestanding compilers. */
13549 # include <limits.h>
13551 # include <assert.h>
13556 /* Override any GCC internal prototype to avoid an error.
13557 Use char because int might match the return type of a GCC
13558 builtin and then its argument prototype would still apply. */
13563 /* The GNU C library defines this for functions which it implements
13564 to always fail with ENOSYS. Some functions are actually named
13565 something starting with __ and the normal name is an alias. */
13566 #if defined __stub_$ac_func || defined __stub___$ac_func
13573 return $ac_func ();
13578 rm -f conftest.$ac_objext conftest$ac_exeext
13579 if { (ac_try="$ac_link"
13580 case "(($ac_try" in
13581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13582 *) ac_try_echo
=$ac_try;;
13584 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13585 $as_echo "$ac_try_echo") >&5
13586 (eval "$ac_link") 2>conftest.er1
13588 grep -v '^ *+' conftest.er1
>conftest.err
13590 cat conftest.err
>&5
13591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); } && {
13593 test -z "$ac_c_werror_flag" ||
13594 test ! -s conftest.err
13595 } && test -s conftest
$ac_exeext && {
13596 test "$cross_compiling" = yes ||
13597 $as_test_x conftest
$ac_exeext
13599 eval "$as_ac_var=yes"
13601 $as_echo "$as_me: failed program was:" >&5
13602 sed 's/^/| /' conftest.
$ac_ext >&5
13604 eval "$as_ac_var=no"
13607 rm -rf conftest.dSYM
13608 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13609 conftest
$ac_exeext conftest.
$ac_ext
13611 ac_res
=`eval 'as_val=${'$as_ac_var'}
13612 $as_echo "$as_val"'`
13613 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13614 $as_echo "$ac_res" >&6; }
13615 as_val
=`eval 'as_val=${'$as_ac_var'}
13616 $as_echo "$as_val"'`
13617 if test "x$as_val" = x
""yes; then
13618 cat >>confdefs.h
<<_ACEOF
13619 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13631 for ac_func
in isascii isblank isgraph isprint isspace isxdigit
13633 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13634 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13635 $as_echo_n "checking for $ac_func... " >&6; }
13636 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13637 $as_echo_n "(cached) " >&6
13639 cat >conftest.
$ac_ext <<_ACEOF
13642 cat confdefs.h
>>conftest.
$ac_ext
13643 cat >>conftest.
$ac_ext <<_ACEOF
13644 /* end confdefs.h. */
13645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13647 #define $ac_func innocuous_$ac_func
13649 /* System header to define __stub macros and hopefully few prototypes,
13650 which can conflict with char $ac_func (); below.
13651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13652 <limits.h> exists even on freestanding compilers. */
13655 # include <limits.h>
13657 # include <assert.h>
13662 /* Override any GCC internal prototype to avoid an error.
13663 Use char because int might match the return type of a GCC
13664 builtin and then its argument prototype would still apply. */
13669 /* The GNU C library defines this for functions which it implements
13670 to always fail with ENOSYS. Some functions are actually named
13671 something starting with __ and the normal name is an alias. */
13672 #if defined __stub_$ac_func || defined __stub___$ac_func
13679 return $ac_func ();
13684 rm -f conftest.
$ac_objext conftest
$ac_exeext
13685 if { (ac_try
="$ac_link"
13686 case "(($ac_try" in
13687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13688 *) ac_try_echo=$ac_try;;
13690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13691 $as_echo "$ac_try_echo") >&5
13692 (eval "$ac_link") 2>conftest.er1
13694 grep -v '^ *+' conftest.er1 >conftest.err
13696 cat conftest.err >&5
13697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } && {
13699 test -z "$ac_c_werror_flag" ||
13700 test ! -s conftest.err
13701 } && test -s conftest$ac_exeext && {
13702 test "$cross_compiling" = yes ||
13703 $as_test_x conftest$ac_exeext
13705 eval "$as_ac_var=yes"
13707 $as_echo "$as_me: failed program was:" >&5
13708 sed 's/^/| /' conftest.$ac_ext >&5
13710 eval "$as_ac_var=no"
13713 rm -rf conftest.dSYM
13714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13715 conftest$ac_exeext conftest.$ac_ext
13717 ac_res=`eval 'as_val=${'$as_ac_var'}
13718 $as_echo "$as_val"'`
13719 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13720 $as_echo "$ac_res" >&6; }
13721 as_val=`eval 'as_val=${'$as_ac_var'}
13722 $as_echo "$as_val"'`
13723 if test "x$as_val" = x""yes; then
13724 cat >>confdefs.h <<_ACEOF
13725 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13734 for ac_func in getpwent getpwnam getpwuid
13736 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13737 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13738 $as_echo_n "checking for $ac_func... " >&6; }
13739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13740 $as_echo_n "(cached) " >&6
13742 cat >conftest.$ac_ext <<_ACEOF
13745 cat confdefs.h >>conftest.$ac_ext
13746 cat >>conftest.$ac_ext <<_ACEOF
13747 /* end confdefs.h. */
13748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13750 #define $ac_func innocuous_$ac_func
13752 /* System header to define __stub macros and hopefully few prototypes,
13753 which can conflict with char $ac_func (); below.
13754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13755 <limits.h> exists even on freestanding compilers. */
13758 # include <limits.h>
13760 # include <assert.h>
13765 /* Override any GCC internal prototype to avoid an error.
13766 Use char because int might match the return type of a GCC
13767 builtin and then its argument prototype would still apply. */
13772 /* The GNU C library defines this for functions which it implements
13773 to always fail with ENOSYS. Some functions are actually named
13774 something starting with __ and the normal name is an alias. */
13775 #if defined __stub_$ac_func || defined __stub___$ac_func
13782 return $ac_func ();
13787 rm -f conftest.$ac_objext conftest$ac_exeext
13788 if { (ac_try="$ac_link"
13789 case "(($ac_try" in
13790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13791 *) ac_try_echo
=$ac_try;;
13793 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13794 $as_echo "$ac_try_echo") >&5
13795 (eval "$ac_link") 2>conftest.er1
13797 grep -v '^ *+' conftest.er1
>conftest.err
13799 cat conftest.err
>&5
13800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } && {
13802 test -z "$ac_c_werror_flag" ||
13803 test ! -s conftest.err
13804 } && test -s conftest
$ac_exeext && {
13805 test "$cross_compiling" = yes ||
13806 $as_test_x conftest
$ac_exeext
13808 eval "$as_ac_var=yes"
13810 $as_echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.
$ac_ext >&5
13813 eval "$as_ac_var=no"
13816 rm -rf conftest.dSYM
13817 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13818 conftest
$ac_exeext conftest.
$ac_ext
13820 ac_res
=`eval 'as_val=${'$as_ac_var'}
13821 $as_echo "$as_val"'`
13822 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13823 $as_echo "$ac_res" >&6; }
13824 as_val
=`eval 'as_val=${'$as_ac_var'}
13825 $as_echo "$as_val"'`
13826 if test "x$as_val" = x
""yes; then
13827 cat >>confdefs.h
<<_ACEOF
13828 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13842 for ac_func
in getcwd memset strcasecmp strerror strftime strnlen strpbrk strstr
13844 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13845 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13846 $as_echo_n "checking for $ac_func... " >&6; }
13847 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13848 $as_echo_n "(cached) " >&6
13850 cat >conftest.
$ac_ext <<_ACEOF
13853 cat confdefs.h
>>conftest.
$ac_ext
13854 cat >>conftest.
$ac_ext <<_ACEOF
13855 /* end confdefs.h. */
13856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13858 #define $ac_func innocuous_$ac_func
13860 /* System header to define __stub macros and hopefully few prototypes,
13861 which can conflict with char $ac_func (); below.
13862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13863 <limits.h> exists even on freestanding compilers. */
13866 # include <limits.h>
13868 # include <assert.h>
13873 /* Override any GCC internal prototype to avoid an error.
13874 Use char because int might match the return type of a GCC
13875 builtin and then its argument prototype would still apply. */
13880 /* The GNU C library defines this for functions which it implements
13881 to always fail with ENOSYS. Some functions are actually named
13882 something starting with __ and the normal name is an alias. */
13883 #if defined __stub_$ac_func || defined __stub___$ac_func
13890 return $ac_func ();
13895 rm -f conftest.
$ac_objext conftest
$ac_exeext
13896 if { (ac_try
="$ac_link"
13897 case "(($ac_try" in
13898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13902 $as_echo "$ac_try_echo") >&5
13903 (eval "$ac_link") 2>conftest.er1
13905 grep -v '^ *+' conftest.er1 >conftest.err
13907 cat conftest.err >&5
13908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } && {
13910 test -z "$ac_c_werror_flag" ||
13911 test ! -s conftest.err
13912 } && test -s conftest$ac_exeext && {
13913 test "$cross_compiling" = yes ||
13914 $as_test_x conftest$ac_exeext
13916 eval "$as_ac_var=yes"
13918 $as_echo "$as_me: failed program was:" >&5
13919 sed 's/^/| /' conftest.$ac_ext >&5
13921 eval "$as_ac_var=no"
13924 rm -rf conftest.dSYM
13925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13926 conftest$ac_exeext conftest.$ac_ext
13928 ac_res=`eval 'as_val=${'$as_ac_var'}
13929 $as_echo "$as_val"'`
13930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13931 $as_echo "$ac_res" >&6; }
13932 as_val=`eval 'as_val=${'$as_ac_var'}
13933 $as_echo "$as_val"'`
13934 if test "x$as_val" = x""yes; then
13935 cat >>confdefs.h <<_ACEOF
13936 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13940 case " $LIBOBJS " in
13941 *" $ac_func.$ac_objext "* ) ;;
13942 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13957 for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
13959 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13960 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13961 $as_echo_n "checking for $ac_func... " >&6; }
13962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13963 $as_echo_n "(cached) " >&6
13965 cat >conftest.$ac_ext <<_ACEOF
13968 cat confdefs.h >>conftest.$ac_ext
13969 cat >>conftest.$ac_ext <<_ACEOF
13970 /* end confdefs.h. */
13971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13973 #define $ac_func innocuous_$ac_func
13975 /* System header to define __stub macros and hopefully few prototypes,
13976 which can conflict with char $ac_func (); below.
13977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13978 <limits.h> exists even on freestanding compilers. */
13981 # include <limits.h>
13983 # include <assert.h>
13988 /* Override any GCC internal prototype to avoid an error.
13989 Use char because int might match the return type of a GCC
13990 builtin and then its argument prototype would still apply. */
13995 /* The GNU C library defines this for functions which it implements
13996 to always fail with ENOSYS. Some functions are actually named
13997 something starting with __ and the normal name is an alias. */
13998 #if defined __stub_$ac_func || defined __stub___$ac_func
14005 return $ac_func ();
14010 rm -f conftest.$ac_objext conftest$ac_exeext
14011 if { (ac_try="$ac_link"
14012 case "(($ac_try" in
14013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14014 *) ac_try_echo
=$ac_try;;
14016 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14017 $as_echo "$ac_try_echo") >&5
14018 (eval "$ac_link") 2>conftest.er1
14020 grep -v '^ *+' conftest.er1
>conftest.err
14022 cat conftest.err
>&5
14023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } && {
14025 test -z "$ac_c_werror_flag" ||
14026 test ! -s conftest.err
14027 } && test -s conftest
$ac_exeext && {
14028 test "$cross_compiling" = yes ||
14029 $as_test_x conftest
$ac_exeext
14031 eval "$as_ac_var=yes"
14033 $as_echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.
$ac_ext >&5
14036 eval "$as_ac_var=no"
14039 rm -rf conftest.dSYM
14040 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14041 conftest
$ac_exeext conftest.
$ac_ext
14043 ac_res
=`eval 'as_val=${'$as_ac_var'}
14044 $as_echo "$as_val"'`
14045 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14046 $as_echo "$ac_res" >&6; }
14047 as_val
=`eval 'as_val=${'$as_ac_var'}
14048 $as_echo "$as_val"'`
14049 if test "x$as_val" = x
""yes; then
14050 cat >>confdefs.h
<<_ACEOF
14051 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14055 case " $LIBOBJS " in
14056 *" $ac_func.$ac_objext "* ) ;;
14057 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
14066 for ac_func
in fdprintf
14068 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14069 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14070 $as_echo_n "checking for $ac_func... " >&6; }
14071 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14072 $as_echo_n "(cached) " >&6
14074 cat >conftest.
$ac_ext <<_ACEOF
14077 cat confdefs.h
>>conftest.
$ac_ext
14078 cat >>conftest.
$ac_ext <<_ACEOF
14079 /* end confdefs.h. */
14080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14082 #define $ac_func innocuous_$ac_func
14084 /* System header to define __stub macros and hopefully few prototypes,
14085 which can conflict with char $ac_func (); below.
14086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14087 <limits.h> exists even on freestanding compilers. */
14090 # include <limits.h>
14092 # include <assert.h>
14097 /* Override any GCC internal prototype to avoid an error.
14098 Use char because int might match the return type of a GCC
14099 builtin and then its argument prototype would still apply. */
14104 /* The GNU C library defines this for functions which it implements
14105 to always fail with ENOSYS. Some functions are actually named
14106 something starting with __ and the normal name is an alias. */
14107 #if defined __stub_$ac_func || defined __stub___$ac_func
14114 return $ac_func ();
14119 rm -f conftest.
$ac_objext conftest
$ac_exeext
14120 if { (ac_try
="$ac_link"
14121 case "(($ac_try" in
14122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14126 $as_echo "$ac_try_echo") >&5
14127 (eval "$ac_link") 2>conftest.er1
14129 grep -v '^ *+' conftest.er1 >conftest.err
14131 cat conftest.err >&5
14132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); } && {
14134 test -z "$ac_c_werror_flag" ||
14135 test ! -s conftest.err
14136 } && test -s conftest$ac_exeext && {
14137 test "$cross_compiling" = yes ||
14138 $as_test_x conftest$ac_exeext
14140 eval "$as_ac_var=yes"
14142 $as_echo "$as_me: failed program was:" >&5
14143 sed 's/^/| /' conftest.$ac_ext >&5
14145 eval "$as_ac_var=no"
14148 rm -rf conftest.dSYM
14149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14150 conftest$ac_exeext conftest.$ac_ext
14152 ac_res=`eval 'as_val=${'$as_ac_var'}
14153 $as_echo "$as_val"'`
14154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14155 $as_echo "$ac_res" >&6; }
14156 as_val=`eval 'as_val=${'$as_ac_var'}
14157 $as_echo "$as_val"'`
14158 if test "x$as_val" = x""yes; then
14159 cat >>confdefs.h <<_ACEOF
14160 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14164 case " $LIBOBJS " in
14165 *" $ac_func.$ac_objext "* ) ;;
14166 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14175 { $as_echo "$as_me:$LINENO: checking whether confstr is declared" >&5
14176 $as_echo_n "checking whether confstr is declared... " >&6; }
14177 if test "${ac_cv_have_decl_confstr+set}" = set; then
14178 $as_echo_n "(cached) " >&6
14180 cat >conftest.$ac_ext <<_ACEOF
14183 cat confdefs.h >>conftest.$ac_ext
14184 cat >>conftest.$ac_ext <<_ACEOF
14185 /* end confdefs.h. */
14186 $ac_includes_default
14198 rm -f conftest.$ac_objext
14199 if { (ac_try="$ac_compile"
14200 case "(($ac_try" in
14201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14202 *) ac_try_echo
=$ac_try;;
14204 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14205 $as_echo "$ac_try_echo") >&5
14206 (eval "$ac_compile") 2>conftest.er1
14208 grep -v '^ *+' conftest.er1
>conftest.err
14210 cat conftest.err
>&5
14211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); } && {
14213 test -z "$ac_c_werror_flag" ||
14214 test ! -s conftest.err
14215 } && test -s conftest.
$ac_objext; then
14216 ac_cv_have_decl_confstr
=yes
14218 $as_echo "$as_me: failed program was:" >&5
14219 sed 's/^/| /' conftest.
$ac_ext >&5
14221 ac_cv_have_decl_confstr
=no
14224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14226 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
14227 $as_echo "$ac_cv_have_decl_confstr" >&6; }
14228 if test "x$ac_cv_have_decl_confstr" = x
""yes; then
14230 cat >>confdefs.h
<<_ACEOF
14231 #define HAVE_DECL_CONFSTR 1
14236 cat >>confdefs.h
<<_ACEOF
14237 #define HAVE_DECL_CONFSTR 0
14244 { $as_echo "$as_me:$LINENO: checking whether printf is declared" >&5
14245 $as_echo_n "checking whether printf is declared... " >&6; }
14246 if test "${ac_cv_have_decl_printf+set}" = set; then
14247 $as_echo_n "(cached) " >&6
14249 cat >conftest.
$ac_ext <<_ACEOF
14252 cat confdefs.h
>>conftest.
$ac_ext
14253 cat >>conftest.
$ac_ext <<_ACEOF
14254 /* end confdefs.h. */
14255 $ac_includes_default
14267 rm -f conftest.
$ac_objext
14268 if { (ac_try
="$ac_compile"
14269 case "(($ac_try" in
14270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14271 *) ac_try_echo=$ac_try;;
14273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14274 $as_echo "$ac_try_echo") >&5
14275 (eval "$ac_compile") 2>conftest.er1
14277 grep -v '^ *+' conftest.er1 >conftest.err
14279 cat conftest.err >&5
14280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } && {
14282 test -z "$ac_c_werror_flag" ||
14283 test ! -s conftest.err
14284 } && test -s conftest.$ac_objext; then
14285 ac_cv_have_decl_printf=yes
14287 $as_echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.$ac_ext >&5
14290 ac_cv_have_decl_printf=no
14293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14295 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
14296 $as_echo "$ac_cv_have_decl_printf" >&6; }
14297 if test "x$ac_cv_have_decl_printf" = x""yes; then
14299 cat >>confdefs.h <<_ACEOF
14300 #define HAVE_DECL_PRINTF 1
14305 cat >>confdefs.h <<_ACEOF
14306 #define HAVE_DECL_PRINTF 0
14313 { $as_echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
14314 $as_echo_n "checking whether sbrk is declared... " >&6; }
14315 if test "${ac_cv_have_decl_sbrk+set}" = set; then
14316 $as_echo_n "(cached) " >&6
14318 cat >conftest.$ac_ext <<_ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h. */
14324 $ac_includes_default
14336 rm -f conftest.$ac_objext
14337 if { (ac_try="$ac_compile"
14338 case "(($ac_try" in
14339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14340 *) ac_try_echo
=$ac_try;;
14342 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14343 $as_echo "$ac_try_echo") >&5
14344 (eval "$ac_compile") 2>conftest.er1
14346 grep -v '^ *+' conftest.er1
>conftest.err
14348 cat conftest.err
>&5
14349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } && {
14351 test -z "$ac_c_werror_flag" ||
14352 test ! -s conftest.err
14353 } && test -s conftest.
$ac_objext; then
14354 ac_cv_have_decl_sbrk
=yes
14356 $as_echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.
$ac_ext >&5
14359 ac_cv_have_decl_sbrk
=no
14362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14364 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
14365 $as_echo "$ac_cv_have_decl_sbrk" >&6; }
14366 if test "x$ac_cv_have_decl_sbrk" = x
""yes; then
14368 cat >>confdefs.h
<<_ACEOF
14369 #define HAVE_DECL_SBRK 1
14374 cat >>confdefs.h
<<_ACEOF
14375 #define HAVE_DECL_SBRK 0
14382 { $as_echo "$as_me:$LINENO: checking whether setregid is declared" >&5
14383 $as_echo_n "checking whether setregid is declared... " >&6; }
14384 if test "${ac_cv_have_decl_setregid+set}" = set; then
14385 $as_echo_n "(cached) " >&6
14387 cat >conftest.
$ac_ext <<_ACEOF
14390 cat confdefs.h
>>conftest.
$ac_ext
14391 cat >>conftest.
$ac_ext <<_ACEOF
14392 /* end confdefs.h. */
14393 $ac_includes_default
14405 rm -f conftest.
$ac_objext
14406 if { (ac_try
="$ac_compile"
14407 case "(($ac_try" in
14408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14412 $as_echo "$ac_try_echo") >&5
14413 (eval "$ac_compile") 2>conftest.er1
14415 grep -v '^ *+' conftest.er1 >conftest.err
14417 cat conftest.err >&5
14418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } && {
14420 test -z "$ac_c_werror_flag" ||
14421 test ! -s conftest.err
14422 } && test -s conftest.$ac_objext; then
14423 ac_cv_have_decl_setregid=yes
14425 $as_echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14428 ac_cv_have_decl_setregid=no
14431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14433 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
14434 $as_echo "$ac_cv_have_decl_setregid" >&6; }
14435 if test "x$ac_cv_have_decl_setregid" = x""yes; then
14437 cat >>confdefs.h <<_ACEOF
14438 #define HAVE_DECL_SETREGID 1
14443 cat >>confdefs.h <<_ACEOF
14444 #define HAVE_DECL_SETREGID 0
14451 { $as_echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
14452 $as_echo_n "checking whether strcpy is declared... " >&6; }
14453 if test "${ac_cv_have_decl_strcpy+set}" = set; then
14454 $as_echo_n "(cached) " >&6
14456 cat >conftest.$ac_ext <<_ACEOF
14459 cat confdefs.h >>conftest.$ac_ext
14460 cat >>conftest.$ac_ext <<_ACEOF
14461 /* end confdefs.h. */
14462 $ac_includes_default
14474 rm -f conftest.$ac_objext
14475 if { (ac_try="$ac_compile"
14476 case "(($ac_try" in
14477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14478 *) ac_try_echo
=$ac_try;;
14480 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14481 $as_echo "$ac_try_echo") >&5
14482 (eval "$ac_compile") 2>conftest.er1
14484 grep -v '^ *+' conftest.er1
>conftest.err
14486 cat conftest.err
>&5
14487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); } && {
14489 test -z "$ac_c_werror_flag" ||
14490 test ! -s conftest.err
14491 } && test -s conftest.
$ac_objext; then
14492 ac_cv_have_decl_strcpy
=yes
14494 $as_echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.
$ac_ext >&5
14497 ac_cv_have_decl_strcpy
=no
14500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14502 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
14503 $as_echo "$ac_cv_have_decl_strcpy" >&6; }
14504 if test "x$ac_cv_have_decl_strcpy" = x
""yes; then
14506 cat >>confdefs.h
<<_ACEOF
14507 #define HAVE_DECL_STRCPY 1
14512 cat >>confdefs.h
<<_ACEOF
14513 #define HAVE_DECL_STRCPY 0
14520 { $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
14521 $as_echo_n "checking whether strsignal is declared... " >&6; }
14522 if test "${ac_cv_have_decl_strsignal+set}" = set; then
14523 $as_echo_n "(cached) " >&6
14525 cat >conftest.
$ac_ext <<_ACEOF
14528 cat confdefs.h
>>conftest.
$ac_ext
14529 cat >>conftest.
$ac_ext <<_ACEOF
14530 /* end confdefs.h. */
14531 $ac_includes_default
14543 rm -f conftest.
$ac_objext
14544 if { (ac_try
="$ac_compile"
14545 case "(($ac_try" in
14546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14547 *) ac_try_echo=$ac_try;;
14549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14550 $as_echo "$ac_try_echo") >&5
14551 (eval "$ac_compile") 2>conftest.er1
14553 grep -v '^ *+' conftest.er1 >conftest.err
14555 cat conftest.err >&5
14556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } && {
14558 test -z "$ac_c_werror_flag" ||
14559 test ! -s conftest.err
14560 } && test -s conftest.$ac_objext; then
14561 ac_cv_have_decl_strsignal=yes
14563 $as_echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14566 ac_cv_have_decl_strsignal=no
14569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14571 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
14572 $as_echo "$ac_cv_have_decl_strsignal" >&6; }
14573 if test "x$ac_cv_have_decl_strsignal" = x""yes; then
14575 cat >>confdefs.h <<_ACEOF
14576 #define HAVE_DECL_STRSIGNAL 1
14581 cat >>confdefs.h <<_ACEOF
14582 #define HAVE_DECL_STRSIGNAL 0
14590 { $as_echo "$as_me:$LINENO: checking whether strtold is declared" >&5
14591 $as_echo_n "checking whether strtold is declared... " >&6; }
14592 if test "${ac_cv_have_decl_strtold+set}" = set; then
14593 $as_echo_n "(cached) " >&6
14595 cat >conftest.$ac_ext <<_ACEOF
14598 cat confdefs.h >>conftest.$ac_ext
14599 cat >>conftest.$ac_ext <<_ACEOF
14600 /* end confdefs.h. */
14601 $ac_includes_default
14613 rm -f conftest.$ac_objext
14614 if { (ac_try="$ac_compile"
14615 case "(($ac_try" in
14616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14617 *) ac_try_echo
=$ac_try;;
14619 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14620 $as_echo "$ac_try_echo") >&5
14621 (eval "$ac_compile") 2>conftest.er1
14623 grep -v '^ *+' conftest.er1
>conftest.err
14625 cat conftest.err
>&5
14626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } && {
14628 test -z "$ac_c_werror_flag" ||
14629 test ! -s conftest.err
14630 } && test -s conftest.
$ac_objext; then
14631 ac_cv_have_decl_strtold
=yes
14633 $as_echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.
$ac_ext >&5
14636 ac_cv_have_decl_strtold
=no
14639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14641 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
14642 $as_echo "$ac_cv_have_decl_strtold" >&6; }
14643 if test "x$ac_cv_have_decl_strtold" = x
""yes; then
14645 cat >>confdefs.h
<<_ACEOF
14646 #define HAVE_DECL_STRTOLD 1
14650 { $as_echo "$as_me:$LINENO: checking for broken strtold" >&5
14651 $as_echo_n "checking for broken strtold... " >&6; }
14652 if test "${bash_cv_strtold_broken+set}" = set; then
14653 $as_echo_n "(cached) " >&6
14655 cat >conftest.
$ac_ext <<_ACEOF
14658 cat confdefs.h
>>conftest.
$ac_ext
14659 cat >>conftest.
$ac_ext <<_ACEOF
14660 /* end confdefs.h. */
14661 #include <stdlib.h>
14665 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
14670 rm -f conftest.
$ac_objext
14671 if { (ac_try
="$ac_compile"
14672 case "(($ac_try" in
14673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14674 *) ac_try_echo=$ac_try;;
14676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14677 $as_echo "$ac_try_echo") >&5
14678 (eval "$ac_compile") 2>conftest.er1
14680 grep -v '^ *+' conftest.er1 >conftest.err
14682 cat conftest.err >&5
14683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } && {
14685 test -z "$ac_c_werror_flag" ||
14686 test ! -s conftest.err
14687 } && test -s conftest.$ac_objext; then
14688 bash_cv_strtold_broken=no
14690 $as_echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14693 bash_cv_strtold_broken=yes
14696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14701 { $as_echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
14702 $as_echo "$bash_cv_strtold_broken" >&6; }
14703 if test "$bash_cv_strtold_broken" = "yes" ; then
14704 cat >>confdefs.h <<\_ACEOF
14705 #define STRTOLD_BROKEN 1
14711 cat >>confdefs.h <<_ACEOF
14712 #define HAVE_DECL_STRTOLD 0
14724 { $as_echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
14725 $as_echo_n "checking for declaration of strtoimax... " >&6; }
14726 if test "${bash_cv_decl_strtoimax+set}" = set; then
14727 $as_echo_n "(cached) " >&6
14729 cat >conftest.$ac_ext <<_ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h. */
14737 # include <stdlib.h>
14739 #if HAVE_INTTYPES_H
14740 # include <inttypes.h>
14751 rm -f conftest.$ac_objext conftest$ac_exeext
14752 if { (ac_try="$ac_link"
14753 case "(($ac_try" in
14754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14755 *) ac_try_echo
=$ac_try;;
14757 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14758 $as_echo "$ac_try_echo") >&5
14759 (eval "$ac_link") 2>conftest.er1
14761 grep -v '^ *+' conftest.er1
>conftest.err
14763 cat conftest.err
>&5
14764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); } && {
14766 test -z "$ac_c_werror_flag" ||
14767 test ! -s conftest.err
14768 } && test -s conftest
$ac_exeext && {
14769 test "$cross_compiling" = yes ||
14770 $as_test_x conftest
$ac_exeext
14772 bash_cv_decl_strtoimax
=yes
14774 $as_echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.
$ac_ext >&5
14777 bash_cv_decl_strtoimax
=no
14780 rm -rf conftest.dSYM
14781 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14782 conftest
$ac_exeext conftest.
$ac_ext
14784 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
14785 $as_echo "$bash_cv_decl_strtoimax" >&6; }
14786 bash_tr_func
=HAVE_DECL_
`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14787 if test $bash_cv_decl_strtoimax = yes; then
14788 cat >>confdefs.h
<<_ACEOF
14789 #define $bash_tr_func 1
14793 cat >>confdefs.h
<<_ACEOF
14794 #define $bash_tr_func 0
14802 { $as_echo "$as_me:$LINENO: checking for declaration of strtol" >&5
14803 $as_echo_n "checking for declaration of strtol... " >&6; }
14804 if test "${bash_cv_decl_strtol+set}" = set; then
14805 $as_echo_n "(cached) " >&6
14807 cat >conftest.
$ac_ext <<_ACEOF
14810 cat confdefs.h
>>conftest.
$ac_ext
14811 cat >>conftest.
$ac_ext <<_ACEOF
14812 /* end confdefs.h. */
14815 # include <stdlib.h>
14817 #if HAVE_INTTYPES_H
14818 # include <inttypes.h>
14829 rm -f conftest.
$ac_objext conftest
$ac_exeext
14830 if { (ac_try
="$ac_link"
14831 case "(($ac_try" in
14832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14833 *) ac_try_echo=$ac_try;;
14835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14836 $as_echo "$ac_try_echo") >&5
14837 (eval "$ac_link") 2>conftest.er1
14839 grep -v '^ *+' conftest.er1 >conftest.err
14841 cat conftest.err >&5
14842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } && {
14844 test -z "$ac_c_werror_flag" ||
14845 test ! -s conftest.err
14846 } && test -s conftest$ac_exeext && {
14847 test "$cross_compiling" = yes ||
14848 $as_test_x conftest$ac_exeext
14850 bash_cv_decl_strtol=yes
14852 $as_echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14855 bash_cv_decl_strtol=no
14858 rm -rf conftest.dSYM
14859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14860 conftest$ac_exeext conftest.$ac_ext
14862 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
14863 $as_echo "$bash_cv_decl_strtol" >&6; }
14864 bash_tr_func=HAVE_DECL_`echo strtol |
tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14865 if test $bash_cv_decl_strtol = yes; then
14866 cat >>confdefs.h <<_ACEOF
14867 #define $bash_tr_func 1
14871 cat >>confdefs.h <<_ACEOF
14872 #define $bash_tr_func 0
14880 { $as_echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
14881 $as_echo_n "checking for declaration of strtoll... " >&6; }
14882 if test "${bash_cv_decl_strtoll+set}" = set; then
14883 $as_echo_n "(cached) " >&6
14885 cat >conftest.$ac_ext <<_ACEOF
14888 cat confdefs.h >>conftest.$ac_ext
14889 cat >>conftest.$ac_ext <<_ACEOF
14890 /* end confdefs.h. */
14893 # include <stdlib.h>
14895 #if HAVE_INTTYPES_H
14896 # include <inttypes.h>
14907 rm -f conftest.$ac_objext conftest$ac_exeext
14908 if { (ac_try="$ac_link"
14909 case "(($ac_try" in
14910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14911 *) ac_try_echo
=$ac_try;;
14913 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14914 $as_echo "$ac_try_echo") >&5
14915 (eval "$ac_link") 2>conftest.er1
14917 grep -v '^ *+' conftest.er1
>conftest.err
14919 cat conftest.err
>&5
14920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); } && {
14922 test -z "$ac_c_werror_flag" ||
14923 test ! -s conftest.err
14924 } && test -s conftest
$ac_exeext && {
14925 test "$cross_compiling" = yes ||
14926 $as_test_x conftest
$ac_exeext
14928 bash_cv_decl_strtoll
=yes
14930 $as_echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.
$ac_ext >&5
14933 bash_cv_decl_strtoll
=no
14936 rm -rf conftest.dSYM
14937 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14938 conftest
$ac_exeext conftest.
$ac_ext
14940 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
14941 $as_echo "$bash_cv_decl_strtoll" >&6; }
14942 bash_tr_func
=HAVE_DECL_
`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14943 if test $bash_cv_decl_strtoll = yes; then
14944 cat >>confdefs.h
<<_ACEOF
14945 #define $bash_tr_func 1
14949 cat >>confdefs.h
<<_ACEOF
14950 #define $bash_tr_func 0
14958 { $as_echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
14959 $as_echo_n "checking for declaration of strtoul... " >&6; }
14960 if test "${bash_cv_decl_strtoul+set}" = set; then
14961 $as_echo_n "(cached) " >&6
14963 cat >conftest.
$ac_ext <<_ACEOF
14966 cat confdefs.h
>>conftest.
$ac_ext
14967 cat >>conftest.
$ac_ext <<_ACEOF
14968 /* end confdefs.h. */
14971 # include <stdlib.h>
14973 #if HAVE_INTTYPES_H
14974 # include <inttypes.h>
14985 rm -f conftest.
$ac_objext conftest
$ac_exeext
14986 if { (ac_try
="$ac_link"
14987 case "(($ac_try" in
14988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14992 $as_echo "$ac_try_echo") >&5
14993 (eval "$ac_link") 2>conftest.er1
14995 grep -v '^ *+' conftest.er1 >conftest.err
14997 cat conftest.err >&5
14998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } && {
15000 test -z "$ac_c_werror_flag" ||
15001 test ! -s conftest.err
15002 } && test -s conftest$ac_exeext && {
15003 test "$cross_compiling" = yes ||
15004 $as_test_x conftest$ac_exeext
15006 bash_cv_decl_strtoul=yes
15008 $as_echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15011 bash_cv_decl_strtoul=no
15014 rm -rf conftest.dSYM
15015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15016 conftest$ac_exeext conftest.$ac_ext
15018 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
15019 $as_echo "$bash_cv_decl_strtoul" >&6; }
15020 bash_tr_func=HAVE_DECL_`echo strtoul |
tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15021 if test $bash_cv_decl_strtoul = yes; then
15022 cat >>confdefs.h <<_ACEOF
15023 #define $bash_tr_func 1
15027 cat >>confdefs.h <<_ACEOF
15028 #define $bash_tr_func 0
15036 { $as_echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
15037 $as_echo_n "checking for declaration of strtoull... " >&6; }
15038 if test "${bash_cv_decl_strtoull+set}" = set; then
15039 $as_echo_n "(cached) " >&6
15041 cat >conftest.$ac_ext <<_ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15049 # include <stdlib.h>
15051 #if HAVE_INTTYPES_H
15052 # include <inttypes.h>
15063 rm -f conftest.$ac_objext conftest$ac_exeext
15064 if { (ac_try="$ac_link"
15065 case "(($ac_try" in
15066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15067 *) ac_try_echo
=$ac_try;;
15069 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15070 $as_echo "$ac_try_echo") >&5
15071 (eval "$ac_link") 2>conftest.er1
15073 grep -v '^ *+' conftest.er1
>conftest.err
15075 cat conftest.err
>&5
15076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); } && {
15078 test -z "$ac_c_werror_flag" ||
15079 test ! -s conftest.err
15080 } && test -s conftest
$ac_exeext && {
15081 test "$cross_compiling" = yes ||
15082 $as_test_x conftest
$ac_exeext
15084 bash_cv_decl_strtoull
=yes
15086 $as_echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.
$ac_ext >&5
15089 bash_cv_decl_strtoull
=no
15092 rm -rf conftest.dSYM
15093 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15094 conftest
$ac_exeext conftest.
$ac_ext
15096 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
15097 $as_echo "$bash_cv_decl_strtoull" >&6; }
15098 bash_tr_func
=HAVE_DECL_
`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15099 if test $bash_cv_decl_strtoull = yes; then
15100 cat >>confdefs.h
<<_ACEOF
15101 #define $bash_tr_func 1
15105 cat >>confdefs.h
<<_ACEOF
15106 #define $bash_tr_func 0
15114 { $as_echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
15115 $as_echo_n "checking for declaration of strtoumax... " >&6; }
15116 if test "${bash_cv_decl_strtoumax+set}" = set; then
15117 $as_echo_n "(cached) " >&6
15119 cat >conftest.
$ac_ext <<_ACEOF
15122 cat confdefs.h
>>conftest.
$ac_ext
15123 cat >>conftest.
$ac_ext <<_ACEOF
15124 /* end confdefs.h. */
15127 # include <stdlib.h>
15129 #if HAVE_INTTYPES_H
15130 # include <inttypes.h>
15141 rm -f conftest.
$ac_objext conftest
$ac_exeext
15142 if { (ac_try
="$ac_link"
15143 case "(($ac_try" in
15144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15148 $as_echo "$ac_try_echo") >&5
15149 (eval "$ac_link") 2>conftest.er1
15151 grep -v '^ *+' conftest.er1 >conftest.err
15153 cat conftest.err >&5
15154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } && {
15156 test -z "$ac_c_werror_flag" ||
15157 test ! -s conftest.err
15158 } && test -s conftest$ac_exeext && {
15159 test "$cross_compiling" = yes ||
15160 $as_test_x conftest$ac_exeext
15162 bash_cv_decl_strtoumax=yes
15164 $as_echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15167 bash_cv_decl_strtoumax=no
15170 rm -rf conftest.dSYM
15171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15172 conftest$ac_exeext conftest.$ac_ext
15174 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
15175 $as_echo "$bash_cv_decl_strtoumax" >&6; }
15176 bash_tr_func=HAVE_DECL_`echo strtoumax |
tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15177 if test $bash_cv_decl_strtoumax = yes; then
15178 cat >>confdefs.h <<_ACEOF
15179 #define $bash_tr_func 1
15183 cat >>confdefs.h <<_ACEOF
15184 #define $bash_tr_func 0
15194 for ac_header in $ac_header_list
15196 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
15197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15198 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15199 $as_echo_n "checking for $ac_header... " >&6; }
15200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15201 $as_echo_n "(cached) " >&6
15203 ac_res=`eval 'as_val=${'$as_ac_Header'}
15204 $as_echo "$as_val"'`
15205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15206 $as_echo "$ac_res" >&6; }
15208 # Is the header compilable?
15209 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15210 $as_echo_n "checking $ac_header usability... " >&6; }
15211 cat >conftest.$ac_ext <<_ACEOF
15214 cat confdefs.h >>conftest.$ac_ext
15215 cat >>conftest.$ac_ext <<_ACEOF
15216 /* end confdefs.h. */
15217 $ac_includes_default
15218 #include <$ac_header>
15220 rm -f conftest.$ac_objext
15221 if { (ac_try="$ac_compile"
15222 case "(($ac_try" in
15223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15224 *) ac_try_echo
=$ac_try;;
15226 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15227 $as_echo "$ac_try_echo") >&5
15228 (eval "$ac_compile") 2>conftest.er1
15230 grep -v '^ *+' conftest.er1
>conftest.err
15232 cat conftest.err
>&5
15233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } && {
15235 test -z "$ac_c_werror_flag" ||
15236 test ! -s conftest.err
15237 } && test -s conftest.
$ac_objext; then
15238 ac_header_compiler
=yes
15240 $as_echo "$as_me: failed program was:" >&5
15241 sed 's/^/| /' conftest.
$ac_ext >&5
15243 ac_header_compiler
=no
15246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15247 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15248 $as_echo "$ac_header_compiler" >&6; }
15250 # Is the header present?
15251 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15252 $as_echo_n "checking $ac_header presence... " >&6; }
15253 cat >conftest.
$ac_ext <<_ACEOF
15256 cat confdefs.h
>>conftest.
$ac_ext
15257 cat >>conftest.
$ac_ext <<_ACEOF
15258 /* end confdefs.h. */
15259 #include <$ac_header>
15261 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15262 case "(($ac_try" in
15263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15267 $as_echo "$ac_try_echo") >&5
15268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15270 grep -v '^ *+' conftest.er1 >conftest.err
15272 cat conftest.err >&5
15273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } >/dev/null && {
15275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15278 ac_header_preproc=yes
15280 $as_echo "$as_me: failed program was:" >&5
15281 sed 's/^/| /' conftest.$ac_ext >&5
15283 ac_header_preproc=no
15286 rm -f conftest.err conftest.$ac_ext
15287 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15288 $as_echo "$ac_header_preproc" >&6; }
15290 # So? What about this header?
15291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15294 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15296 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15297 ac_header_preproc=yes
15300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15301 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15303 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15305 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15307 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15309 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15311 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15313 ## ------------------------------- ##
15314 ## Report this to bug-bash@gnu.org ##
15315 ## ------------------------------- ##
15317 ) | sed "s/^/$as_me: WARNING: /" >&2
15320 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15321 $as_echo_n "checking for $ac_header... " >&6; }
15322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15323 $as_echo_n "(cached) " >&6
15325 eval "$as_ac_Header=\$ac_header_preproc"
15327 ac_res=`eval 'as_val=${'$as_ac_Header'}
15328 $as_echo "$as_val"'`
15329 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15330 $as_echo "$ac_res" >&6; }
15333 as_val=`eval 'as_val=${'$as_ac_Header'}
15334 $as_echo "$as_val"'`
15335 if test "x$as_val" = x""yes; then
15336 cat >>confdefs.h <<_ACEOF
15337 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
15352 for ac_func in $ac_func_list
15354 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15355 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15356 $as_echo_n "checking for $ac_func... " >&6; }
15357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15358 $as_echo_n "(cached) " >&6
15360 cat >conftest.$ac_ext <<_ACEOF
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h. */
15366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15368 #define $ac_func innocuous_$ac_func
15370 /* System header to define __stub macros and hopefully few prototypes,
15371 which can conflict with char $ac_func (); below.
15372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15373 <limits.h> exists even on freestanding compilers. */
15376 # include <limits.h>
15378 # include <assert.h>
15383 /* Override any GCC internal prototype to avoid an error.
15384 Use char because int might match the return type of a GCC
15385 builtin and then its argument prototype would still apply. */
15390 /* The GNU C library defines this for functions which it implements
15391 to always fail with ENOSYS. Some functions are actually named
15392 something starting with __ and the normal name is an alias. */
15393 #if defined __stub_$ac_func || defined __stub___$ac_func
15400 return $ac_func ();
15405 rm -f conftest.$ac_objext conftest$ac_exeext
15406 if { (ac_try="$ac_link"
15407 case "(($ac_try" in
15408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15409 *) ac_try_echo
=$ac_try;;
15411 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15412 $as_echo "$ac_try_echo") >&5
15413 (eval "$ac_link") 2>conftest.er1
15415 grep -v '^ *+' conftest.er1
>conftest.err
15417 cat conftest.err
>&5
15418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } && {
15420 test -z "$ac_c_werror_flag" ||
15421 test ! -s conftest.err
15422 } && test -s conftest
$ac_exeext && {
15423 test "$cross_compiling" = yes ||
15424 $as_test_x conftest
$ac_exeext
15426 eval "$as_ac_var=yes"
15428 $as_echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.
$ac_ext >&5
15431 eval "$as_ac_var=no"
15434 rm -rf conftest.dSYM
15435 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15436 conftest
$ac_exeext conftest.
$ac_ext
15438 ac_res
=`eval 'as_val=${'$as_ac_var'}
15439 $as_echo "$as_val"'`
15440 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15441 $as_echo "$ac_res" >&6; }
15442 as_val
=`eval 'as_val=${'$as_ac_var'}
15443 $as_echo "$as_val"'`
15444 if test "x$as_val" = x
""yes; then
15445 cat >>confdefs.h
<<_ACEOF
15446 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15468 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
15469 $as_echo_n "checking for working mktime... " >&6; }
15470 if test "${ac_cv_func_working_mktime+set}" = set; then
15471 $as_echo_n "(cached) " >&6
15473 if test "$cross_compiling" = yes; then
15474 ac_cv_func_working_mktime
=no
15476 cat >conftest.
$ac_ext <<_ACEOF
15479 cat confdefs.h
>>conftest.
$ac_ext
15480 cat >>conftest.
$ac_ext <<_ACEOF
15481 /* end confdefs.h. */
15482 /* Test program from Paul Eggert and Tony Leneis. */
15483 #ifdef TIME_WITH_SYS_TIME
15484 # include <sys/time.h>
15487 # ifdef HAVE_SYS_TIME_H
15488 # include <sys/time.h>
15494 #include <limits.h>
15495 #include <stdlib.h>
15497 #ifdef HAVE_UNISTD_H
15498 # include <unistd.h>
15502 # define alarm(X) /* empty */
15505 /* Work around redefinition to rpl_putenv by other config tests. */
15508 static time_t time_t_max;
15509 static time_t time_t_min;
15511 /* Values we'll use to set the TZ environment variable. */
15512 static char *tz_strings[] = {
15513 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15514 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15516 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15518 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15519 Based on a problem report from Andreas Jaeger. */
15521 spring_forward_gap ()
15523 /* glibc (up to about 1998-10-07) failed this test. */
15526 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15527 instead of "TZ=America/Vancouver" in order to detect the bug even
15528 on systems that don't support the Olson extension, or don't have the
15529 full zoneinfo tables installed. */
15530 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15539 return mktime (&tm) != (time_t) -1;
15547 return ! (lt = localtime (&now)) || mktime (lt) == now;
15554 return (mktime_test1 (now)
15555 && mktime_test1 ((time_t) (time_t_max - now))
15556 && mktime_test1 ((time_t) (time_t_min + now)));
15562 /* Based on code from Ariel Faigon. */
15572 return tm.tm_mon == 2 && tm.tm_mday == 31;
15581 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15582 now = mktime (&tm);
15583 if (now != (time_t) -1)
15585 struct tm *lt = localtime (&now);
15587 && lt->tm_year == tm.tm_year
15588 && lt->tm_mon == tm.tm_mon
15589 && lt->tm_mday == tm.tm_mday
15590 && lt->tm_hour == tm.tm_hour
15591 && lt->tm_min == tm.tm_min
15592 && lt->tm_sec == tm.tm_sec
15593 && lt->tm_yday == tm.tm_yday
15594 && lt->tm_wday == tm.tm_wday
15595 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15596 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15605 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15606 ignoring leap seconds. */
15607 unsigned long int answer = 2527315200UL;
15611 tm.tm_year = 2050 - 1900;
15614 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15617 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15618 instead of "TZ=America/Vancouver" in order to detect the bug even
15619 on systems that don't support the Olson extension, or don't have the
15620 full zoneinfo tables installed. */
15621 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15625 /* Check that the result is either a failure, or close enough
15626 to the correct answer that we can assume the discrepancy is
15627 due to leap seconds. */
15628 return (t == (time_t) -1
15629 || (0 < t && answer - 120 <= t && t <= answer + 120));
15638 /* This test makes some buggy mktime implementations loop.
15639 Give up after 60 seconds; a mktime slower than that
15640 isn't worth using anyway. */
15645 t = (time_t_max << 1) + 1;
15646 if (t <= time_t_max)
15650 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
15652 delta = time_t_max / 997; /* a suitable prime number */
15653 for (i = 0; i < N_STRINGS; i++)
15656 putenv (tz_strings[i]);
15658 for (t = 0; t <= time_t_max - delta; t += delta)
15659 if (! mktime_test (t))
15661 if (! (mktime_test ((time_t) 1)
15662 && mktime_test ((time_t) (60 * 60))
15663 && mktime_test ((time_t) (60 * 60 * 24))))
15666 for (j = 1; ; j <<= 1)
15667 if (! bigtime_test (j))
15669 else if (INT_MAX / 2 < j)
15671 if (! bigtime_test (INT_MAX))
15674 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15677 rm -f conftest
$ac_exeext
15678 if { (ac_try
="$ac_link"
15679 case "(($ac_try" in
15680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15684 $as_echo "$ac_try_echo") >&5
15685 (eval "$ac_link") 2>&5
15687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15689 { (case "(($ac_try" in
15690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15691 *) ac_try_echo
=$ac_try;;
15693 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15694 $as_echo "$ac_try_echo") >&5
15695 (eval "$ac_try") 2>&5
15697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); }; }; then
15699 ac_cv_func_working_mktime
=yes
15701 $as_echo "$as_me: program exited with status $ac_status" >&5
15702 $as_echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.
$ac_ext >&5
15705 ( exit $ac_status )
15706 ac_cv_func_working_mktime
=no
15708 rm -rf conftest.dSYM
15709 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15714 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15715 $as_echo "$ac_cv_func_working_mktime" >&6; }
15716 if test $ac_cv_func_working_mktime = no
; then
15717 case " $LIBOBJS " in
15718 *" mktime.$ac_objext "* ) ;;
15719 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
15732 for ac_header
in argz.h errno.h fcntl.h malloc.h stdio_ext.h
15734 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15735 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15736 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15737 $as_echo_n "checking for $ac_header... " >&6; }
15738 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15739 $as_echo_n "(cached) " >&6
15741 ac_res
=`eval 'as_val=${'$as_ac_Header'}
15742 $as_echo "$as_val"'`
15743 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15744 $as_echo "$ac_res" >&6; }
15746 # Is the header compilable?
15747 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15748 $as_echo_n "checking $ac_header usability... " >&6; }
15749 cat >conftest.
$ac_ext <<_ACEOF
15752 cat confdefs.h
>>conftest.
$ac_ext
15753 cat >>conftest.
$ac_ext <<_ACEOF
15754 /* end confdefs.h. */
15755 $ac_includes_default
15756 #include <$ac_header>
15758 rm -f conftest.
$ac_objext
15759 if { (ac_try
="$ac_compile"
15760 case "(($ac_try" in
15761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15762 *) ac_try_echo=$ac_try;;
15764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15765 $as_echo "$ac_try_echo") >&5
15766 (eval "$ac_compile") 2>conftest.er1
15768 grep -v '^ *+' conftest.er1 >conftest.err
15770 cat conftest.err >&5
15771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); } && {
15773 test -z "$ac_c_werror_flag" ||
15774 test ! -s conftest.err
15775 } && test -s conftest.$ac_objext; then
15776 ac_header_compiler=yes
15778 $as_echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15781 ac_header_compiler=no
15784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15785 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15786 $as_echo "$ac_header_compiler" >&6; }
15788 # Is the header present?
15789 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15790 $as_echo_n "checking $ac_header presence... " >&6; }
15791 cat >conftest.$ac_ext <<_ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15797 #include <$ac_header>
15799 if { (ac_try="$ac_cpp conftest.$ac_ext"
15800 case "(($ac_try" in
15801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15802 *) ac_try_echo
=$ac_try;;
15804 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15805 $as_echo "$ac_try_echo") >&5
15806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15808 grep -v '^ *+' conftest.er1
>conftest.err
15810 cat conftest.err
>&5
15811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); } >/dev
/null
&& {
15813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15814 test ! -s conftest.err
15816 ac_header_preproc
=yes
15818 $as_echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.
$ac_ext >&5
15821 ac_header_preproc
=no
15824 rm -f conftest.err conftest.
$ac_ext
15825 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15826 $as_echo "$ac_header_preproc" >&6; }
15828 # So? What about this header?
15829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15832 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15834 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15835 ac_header_preproc
=yes
15838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15839 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15841 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15843 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15845 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15847 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15849 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15851 ## ------------------------------- ##
15852 ## Report this to bug-bash@gnu.org ##
15853 ## ------------------------------- ##
15855 ) |
sed "s/^/$as_me: WARNING: /" >&2
15858 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15859 $as_echo_n "checking for $ac_header... " >&6; }
15860 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15861 $as_echo_n "(cached) " >&6
15863 eval "$as_ac_Header=\$ac_header_preproc"
15865 ac_res
=`eval 'as_val=${'$as_ac_Header'}
15866 $as_echo "$as_val"'`
15867 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15868 $as_echo "$ac_res" >&6; }
15871 as_val
=`eval 'as_val=${'$as_ac_Header'}
15872 $as_echo "$as_val"'`
15873 if test "x$as_val" = x
""yes; then
15874 cat >>confdefs.h
<<_ACEOF
15875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15885 for ac_header
in stdlib.h unistd.h
15887 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15888 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15889 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15890 $as_echo_n "checking for $ac_header... " >&6; }
15891 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15892 $as_echo_n "(cached) " >&6
15894 ac_res
=`eval 'as_val=${'$as_ac_Header'}
15895 $as_echo "$as_val"'`
15896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15897 $as_echo "$ac_res" >&6; }
15899 # Is the header compilable?
15900 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15901 $as_echo_n "checking $ac_header usability... " >&6; }
15902 cat >conftest.
$ac_ext <<_ACEOF
15905 cat confdefs.h
>>conftest.
$ac_ext
15906 cat >>conftest.
$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15908 $ac_includes_default
15909 #include <$ac_header>
15911 rm -f conftest.
$ac_objext
15912 if { (ac_try
="$ac_compile"
15913 case "(($ac_try" in
15914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15915 *) ac_try_echo=$ac_try;;
15917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15918 $as_echo "$ac_try_echo") >&5
15919 (eval "$ac_compile") 2>conftest.er1
15921 grep -v '^ *+' conftest.er1 >conftest.err
15923 cat conftest.err >&5
15924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } && {
15926 test -z "$ac_c_werror_flag" ||
15927 test ! -s conftest.err
15928 } && test -s conftest.$ac_objext; then
15929 ac_header_compiler=yes
15931 $as_echo "$as_me: failed program was:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15934 ac_header_compiler=no
15937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15938 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15939 $as_echo "$ac_header_compiler" >&6; }
15941 # Is the header present?
15942 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15943 $as_echo_n "checking $ac_header presence... " >&6; }
15944 cat >conftest.$ac_ext <<_ACEOF
15947 cat confdefs.h >>conftest.$ac_ext
15948 cat >>conftest.$ac_ext <<_ACEOF
15949 /* end confdefs.h. */
15950 #include <$ac_header>
15952 if { (ac_try="$ac_cpp conftest.$ac_ext"
15953 case "(($ac_try" in
15954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15955 *) ac_try_echo
=$ac_try;;
15957 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15958 $as_echo "$ac_try_echo") >&5
15959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15961 grep -v '^ *+' conftest.er1
>conftest.err
15963 cat conftest.err
>&5
15964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } >/dev
/null
&& {
15966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15967 test ! -s conftest.err
15969 ac_header_preproc
=yes
15971 $as_echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.
$ac_ext >&5
15974 ac_header_preproc
=no
15977 rm -f conftest.err conftest.
$ac_ext
15978 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15979 $as_echo "$ac_header_preproc" >&6; }
15981 # So? What about this header?
15982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15985 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15987 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15988 ac_header_preproc
=yes
15991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15992 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15994 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15996 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15998 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16000 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16002 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16004 ## ------------------------------- ##
16005 ## Report this to bug-bash@gnu.org ##
16006 ## ------------------------------- ##
16008 ) |
sed "s/^/$as_me: WARNING: /" >&2
16011 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16012 $as_echo_n "checking for $ac_header... " >&6; }
16013 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16014 $as_echo_n "(cached) " >&6
16016 eval "$as_ac_Header=\$ac_header_preproc"
16018 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16019 $as_echo "$as_val"'`
16020 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16021 $as_echo "$ac_res" >&6; }
16024 as_val
=`eval 'as_val=${'$as_ac_Header'}
16025 $as_echo "$as_val"'`
16026 if test "x$as_val" = x
""yes; then
16027 cat >>confdefs.h
<<_ACEOF
16028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16036 for ac_func
in getpagesize
16038 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16039 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16040 $as_echo_n "checking for $ac_func... " >&6; }
16041 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16042 $as_echo_n "(cached) " >&6
16044 cat >conftest.
$ac_ext <<_ACEOF
16047 cat confdefs.h
>>conftest.
$ac_ext
16048 cat >>conftest.
$ac_ext <<_ACEOF
16049 /* end confdefs.h. */
16050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16052 #define $ac_func innocuous_$ac_func
16054 /* System header to define __stub macros and hopefully few prototypes,
16055 which can conflict with char $ac_func (); below.
16056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16057 <limits.h> exists even on freestanding compilers. */
16060 # include <limits.h>
16062 # include <assert.h>
16067 /* Override any GCC internal prototype to avoid an error.
16068 Use char because int might match the return type of a GCC
16069 builtin and then its argument prototype would still apply. */
16074 /* The GNU C library defines this for functions which it implements
16075 to always fail with ENOSYS. Some functions are actually named
16076 something starting with __ and the normal name is an alias. */
16077 #if defined __stub_$ac_func || defined __stub___$ac_func
16084 return $ac_func ();
16089 rm -f conftest.
$ac_objext conftest
$ac_exeext
16090 if { (ac_try
="$ac_link"
16091 case "(($ac_try" in
16092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16096 $as_echo "$ac_try_echo") >&5
16097 (eval "$ac_link") 2>conftest.er1
16099 grep -v '^ *+' conftest.er1 >conftest.err
16101 cat conftest.err >&5
16102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } && {
16104 test -z "$ac_c_werror_flag" ||
16105 test ! -s conftest.err
16106 } && test -s conftest$ac_exeext && {
16107 test "$cross_compiling" = yes ||
16108 $as_test_x conftest$ac_exeext
16110 eval "$as_ac_var=yes"
16112 $as_echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16115 eval "$as_ac_var=no"
16118 rm -rf conftest.dSYM
16119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16120 conftest$ac_exeext conftest.$ac_ext
16122 ac_res=`eval 'as_val=${'$as_ac_var'}
16123 $as_echo "$as_val"'`
16124 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16125 $as_echo "$ac_res" >&6; }
16126 as_val=`eval 'as_val=${'$as_ac_var'}
16127 $as_echo "$as_val"'`
16128 if test "x$as_val" = x""yes; then
16129 cat >>confdefs.h <<_ACEOF
16130 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16136 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
16137 $as_echo_n "checking for working mmap... " >&6; }
16138 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16139 $as_echo_n "(cached) " >&6
16141 if test "$cross_compiling" = yes; then
16142 ac_cv_func_mmap_fixed_mapped=no
16144 cat >conftest.$ac_ext <<_ACEOF
16147 cat confdefs.h >>conftest.$ac_ext
16148 cat >>conftest.$ac_ext <<_ACEOF
16149 /* end confdefs.h. */
16150 $ac_includes_default
16151 /* malloc might have been renamed as rpl_malloc. */
16154 /* Thanks to Mike Haertel and Jim Avera for this test.
16155 Here is a matrix of mmap possibilities:
16156 mmap private not fixed
16157 mmap private fixed at somewhere currently unmapped
16158 mmap private fixed at somewhere already mapped
16159 mmap shared not fixed
16160 mmap shared fixed at somewhere currently unmapped
16161 mmap shared fixed at somewhere already mapped
16162 For private mappings, we should verify that changes cannot be read()
16163 back from the file, nor mmap's back from the file at a different
16164 address. (There have been systems where private was not correctly
16165 implemented like the infamous i386 svr4.0, and systems where the
16166 VM page cache was not coherent with the file system buffer cache
16167 like early versions of FreeBSD and possibly contemporary NetBSD.)
16168 For shared mappings, we should conversely verify that changes get
16169 propagated back to all the places they're supposed to be.
16171 Grep wants private fixed already mapped.
16172 The main things grep needs to know about mmap are:
16173 * does it exist and is it safe to write into the mmap'd area
16174 * how to use it (BSD variants) */
16177 #include <sys/mman.h>
16179 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16183 /* This mess was copied from the GNU getpagesize.h. */
16184 #ifndef HAVE_GETPAGESIZE
16185 /* Assume that all systems that can run configure have sys/param.h. */
16186 # ifndef HAVE_SYS_PARAM_H
16187 # define HAVE_SYS_PARAM_H 1
16190 # ifdef _SC_PAGESIZE
16191 # define getpagesize() sysconf(_SC_PAGESIZE)
16192 # else /* no _SC_PAGESIZE */
16193 # ifdef HAVE_SYS_PARAM_H
16194 # include <sys/param.h>
16195 # ifdef EXEC_PAGESIZE
16196 # define getpagesize() EXEC_PAGESIZE
16197 # else /* no EXEC_PAGESIZE */
16199 # define getpagesize() NBPG * CLSIZE
16202 # endif /* no CLSIZE */
16203 # else /* no NBPG */
16205 # define getpagesize() NBPC
16206 # else /* no NBPC */
16208 # define getpagesize() PAGESIZE
16209 # endif /* PAGESIZE */
16210 # endif /* no NBPC */
16211 # endif /* no NBPG */
16212 # endif /* no EXEC_PAGESIZE */
16213 # else /* no HAVE_SYS_PARAM_H */
16214 # define getpagesize() 8192 /* punt totally */
16215 # endif /* no HAVE_SYS_PARAM_H */
16216 # endif /* no _SC_PAGESIZE */
16218 #endif /* no HAVE_GETPAGESIZE */
16223 char *data, *data2, *data3;
16227 pagesize = getpagesize ();
16229 /* First, make a file with some known garbage in it. */
16230 data = (char *) malloc (pagesize);
16233 for (i = 0; i < pagesize; ++i)
16234 *(data + i) = rand ();
16236 fd = creat ("conftest.mmap", 0600);
16239 if (write (fd, data, pagesize) != pagesize)
16243 /* Next, try to mmap the file at a fixed address which already has
16244 something else allocated at it. If we can, also make sure that
16245 we see the same garbage. */
16246 fd = open ("conftest.mmap", O_RDWR);
16249 data2 = (char *) malloc (2 * pagesize);
16252 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16253 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16254 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16256 for (i = 0; i < pagesize; ++i)
16257 if (*(data + i) != *(data2 + i))
16260 /* Finally, make sure that changes to the mapped area do not
16261 percolate back to the file as seen by read(). (This is a bug on
16262 some variants of i386 svr4.0.) */
16263 for (i = 0; i < pagesize; ++i)
16264 *(data2 + i) = *(data2 + i) + 1;
16265 data3 = (char *) malloc (pagesize);
16268 if (read (fd, data3, pagesize) != pagesize)
16270 for (i = 0; i < pagesize; ++i)
16271 if (*(data + i) != *(data3 + i))
16277 rm -f conftest$ac_exeext
16278 if { (ac_try="$ac_link"
16279 case "(($ac_try" in
16280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16281 *) ac_try_echo
=$ac_try;;
16283 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16284 $as_echo "$ac_try_echo") >&5
16285 (eval "$ac_link") 2>&5
16287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16289 { (case "(($ac_try" in
16290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16291 *) ac_try_echo=$ac_try;;
16293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16294 $as_echo "$ac_try_echo") >&5
16295 (eval "$ac_try") 2>&5
16297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; }; then
16299 ac_cv_func_mmap_fixed_mapped=yes
16301 $as_echo "$as_me: program exited with status $ac_status" >&5
16302 $as_echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16305 ( exit $ac_status )
16306 ac_cv_func_mmap_fixed_mapped=no
16308 rm -rf conftest.dSYM
16309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16314 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16315 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16316 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16318 cat >>confdefs.h <<\_ACEOF
16319 #define HAVE_MMAP 1
16323 rm -f conftest.mmap
16334 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
16335 munmap stpcpy strcspn strdup
16337 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16338 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16339 $as_echo_n "checking for $ac_func... " >&6; }
16340 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16341 $as_echo_n "(cached) " >&6
16343 cat >conftest.$ac_ext <<_ACEOF
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h. */
16349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16351 #define $ac_func innocuous_$ac_func
16353 /* System header to define __stub macros and hopefully few prototypes,
16354 which can conflict with char $ac_func (); below.
16355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16356 <limits.h> exists even on freestanding compilers. */
16359 # include <limits.h>
16361 # include <assert.h>
16366 /* Override any GCC internal prototype to avoid an error.
16367 Use char because int might match the return type of a GCC
16368 builtin and then its argument prototype would still apply. */
16373 /* The GNU C library defines this for functions which it implements
16374 to always fail with ENOSYS. Some functions are actually named
16375 something starting with __ and the normal name is an alias. */
16376 #if defined __stub_$ac_func || defined __stub___$ac_func
16383 return $ac_func ();
16388 rm -f conftest.$ac_objext conftest$ac_exeext
16389 if { (ac_try="$ac_link"
16390 case "(($ac_try" in
16391 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16392 *) ac_try_echo
=$ac_try;;
16394 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16395 $as_echo "$ac_try_echo") >&5
16396 (eval "$ac_link") 2>conftest.er1
16398 grep -v '^ *+' conftest.er1
>conftest.err
16400 cat conftest.err
>&5
16401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); } && {
16403 test -z "$ac_c_werror_flag" ||
16404 test ! -s conftest.err
16405 } && test -s conftest
$ac_exeext && {
16406 test "$cross_compiling" = yes ||
16407 $as_test_x conftest
$ac_exeext
16409 eval "$as_ac_var=yes"
16411 $as_echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.
$ac_ext >&5
16414 eval "$as_ac_var=no"
16417 rm -rf conftest.dSYM
16418 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16419 conftest
$ac_exeext conftest.
$ac_ext
16421 ac_res
=`eval 'as_val=${'$as_ac_var'}
16422 $as_echo "$as_val"'`
16423 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16424 $as_echo "$ac_res" >&6; }
16425 as_val
=`eval 'as_val=${'$as_ac_var'}
16426 $as_echo "$as_val"'`
16427 if test "x$as_val" = x
""yes; then
16428 cat >>confdefs.h
<<_ACEOF
16429 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16436 INTL_DEP
= INTL_INC
= LIBINTL_H
=
16437 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
16438 INTL_DEP
='${INTL_LIBDIR}/libintl.a'
16439 INTL_INC
='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
16440 LIBINTL_H
='${INTL_BUILDDIR}/libintl.h'
16449 for ac_header
in wctype.h
16451 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16452 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16453 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16454 $as_echo_n "checking for $ac_header... " >&6; }
16455 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16456 $as_echo_n "(cached) " >&6
16458 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16459 $as_echo "$as_val"'`
16460 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16461 $as_echo "$ac_res" >&6; }
16463 # Is the header compilable?
16464 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16465 $as_echo_n "checking $ac_header usability... " >&6; }
16466 cat >conftest.
$ac_ext <<_ACEOF
16469 cat confdefs.h
>>conftest.
$ac_ext
16470 cat >>conftest.
$ac_ext <<_ACEOF
16471 /* end confdefs.h. */
16472 $ac_includes_default
16473 #include <$ac_header>
16475 rm -f conftest.
$ac_objext
16476 if { (ac_try
="$ac_compile"
16477 case "(($ac_try" in
16478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16479 *) ac_try_echo=$ac_try;;
16481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16482 $as_echo "$ac_try_echo") >&5
16483 (eval "$ac_compile") 2>conftest.er1
16485 grep -v '^ *+' conftest.er1 >conftest.err
16487 cat conftest.err >&5
16488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); } && {
16490 test -z "$ac_c_werror_flag" ||
16491 test ! -s conftest.err
16492 } && test -s conftest.$ac_objext; then
16493 ac_header_compiler=yes
16495 $as_echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16498 ac_header_compiler=no
16501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16502 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16503 $as_echo "$ac_header_compiler" >&6; }
16505 # Is the header present?
16506 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16507 $as_echo_n "checking $ac_header presence... " >&6; }
16508 cat >conftest.$ac_ext <<_ACEOF
16511 cat confdefs.h >>conftest.$ac_ext
16512 cat >>conftest.$ac_ext <<_ACEOF
16513 /* end confdefs.h. */
16514 #include <$ac_header>
16516 if { (ac_try="$ac_cpp conftest.$ac_ext"
16517 case "(($ac_try" in
16518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16519 *) ac_try_echo
=$ac_try;;
16521 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16522 $as_echo "$ac_try_echo") >&5
16523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16525 grep -v '^ *+' conftest.er1
>conftest.err
16527 cat conftest.err
>&5
16528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } >/dev
/null
&& {
16530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16531 test ! -s conftest.err
16533 ac_header_preproc
=yes
16535 $as_echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.
$ac_ext >&5
16538 ac_header_preproc
=no
16541 rm -f conftest.err conftest.
$ac_ext
16542 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16543 $as_echo "$ac_header_preproc" >&6; }
16545 # So? What about this header?
16546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16549 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16551 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16552 ac_header_preproc
=yes
16555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16556 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16558 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16560 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16562 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16564 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16566 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16568 ## ------------------------------- ##
16569 ## Report this to bug-bash@gnu.org ##
16570 ## ------------------------------- ##
16572 ) |
sed "s/^/$as_me: WARNING: /" >&2
16575 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16576 $as_echo_n "checking for $ac_header... " >&6; }
16577 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16578 $as_echo_n "(cached) " >&6
16580 eval "$as_ac_Header=\$ac_header_preproc"
16582 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16583 $as_echo "$as_val"'`
16584 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16585 $as_echo "$ac_res" >&6; }
16588 as_val
=`eval 'as_val=${'$as_ac_Header'}
16589 $as_echo "$as_val"'`
16590 if test "x$as_val" = x
""yes; then
16591 cat >>confdefs.h
<<_ACEOF
16592 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16600 for ac_header
in wchar.h
16602 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16603 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16604 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16605 $as_echo_n "checking for $ac_header... " >&6; }
16606 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16607 $as_echo_n "(cached) " >&6
16609 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16610 $as_echo "$as_val"'`
16611 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16612 $as_echo "$ac_res" >&6; }
16614 # Is the header compilable?
16615 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16616 $as_echo_n "checking $ac_header usability... " >&6; }
16617 cat >conftest.
$ac_ext <<_ACEOF
16620 cat confdefs.h
>>conftest.
$ac_ext
16621 cat >>conftest.
$ac_ext <<_ACEOF
16622 /* end confdefs.h. */
16623 $ac_includes_default
16624 #include <$ac_header>
16626 rm -f conftest.
$ac_objext
16627 if { (ac_try
="$ac_compile"
16628 case "(($ac_try" in
16629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16630 *) ac_try_echo=$ac_try;;
16632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16633 $as_echo "$ac_try_echo") >&5
16634 (eval "$ac_compile") 2>conftest.er1
16636 grep -v '^ *+' conftest.er1 >conftest.err
16638 cat conftest.err >&5
16639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); } && {
16641 test -z "$ac_c_werror_flag" ||
16642 test ! -s conftest.err
16643 } && test -s conftest.$ac_objext; then
16644 ac_header_compiler=yes
16646 $as_echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16649 ac_header_compiler=no
16652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16653 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16654 $as_echo "$ac_header_compiler" >&6; }
16656 # Is the header present?
16657 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16658 $as_echo_n "checking $ac_header presence... " >&6; }
16659 cat >conftest.$ac_ext <<_ACEOF
16662 cat confdefs.h >>conftest.$ac_ext
16663 cat >>conftest.$ac_ext <<_ACEOF
16664 /* end confdefs.h. */
16665 #include <$ac_header>
16667 if { (ac_try="$ac_cpp conftest.$ac_ext"
16668 case "(($ac_try" in
16669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16670 *) ac_try_echo
=$ac_try;;
16672 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16673 $as_echo "$ac_try_echo") >&5
16674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16676 grep -v '^ *+' conftest.er1
>conftest.err
16678 cat conftest.err
>&5
16679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } >/dev
/null
&& {
16681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16682 test ! -s conftest.err
16684 ac_header_preproc
=yes
16686 $as_echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.
$ac_ext >&5
16689 ac_header_preproc
=no
16692 rm -f conftest.err conftest.
$ac_ext
16693 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16694 $as_echo "$ac_header_preproc" >&6; }
16696 # So? What about this header?
16697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16700 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16702 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16703 ac_header_preproc
=yes
16706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16707 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16709 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16711 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16713 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16715 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16717 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16719 ## ------------------------------- ##
16720 ## Report this to bug-bash@gnu.org ##
16721 ## ------------------------------- ##
16723 ) |
sed "s/^/$as_me: WARNING: /" >&2
16726 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16727 $as_echo_n "checking for $ac_header... " >&6; }
16728 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16729 $as_echo_n "(cached) " >&6
16731 eval "$as_ac_Header=\$ac_header_preproc"
16733 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16734 $as_echo "$as_val"'`
16735 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16736 $as_echo "$ac_res" >&6; }
16739 as_val
=`eval 'as_val=${'$as_ac_Header'}
16740 $as_echo "$as_val"'`
16741 if test "x$as_val" = x
""yes; then
16742 cat >>confdefs.h
<<_ACEOF
16743 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16751 for ac_header
in langinfo.h
16753 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16754 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16755 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16756 $as_echo_n "checking for $ac_header... " >&6; }
16757 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16758 $as_echo_n "(cached) " >&6
16760 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16761 $as_echo "$as_val"'`
16762 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16763 $as_echo "$ac_res" >&6; }
16765 # Is the header compilable?
16766 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16767 $as_echo_n "checking $ac_header usability... " >&6; }
16768 cat >conftest.
$ac_ext <<_ACEOF
16771 cat confdefs.h
>>conftest.
$ac_ext
16772 cat >>conftest.
$ac_ext <<_ACEOF
16773 /* end confdefs.h. */
16774 $ac_includes_default
16775 #include <$ac_header>
16777 rm -f conftest.
$ac_objext
16778 if { (ac_try
="$ac_compile"
16779 case "(($ac_try" in
16780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16784 $as_echo "$ac_try_echo") >&5
16785 (eval "$ac_compile") 2>conftest.er1
16787 grep -v '^ *+' conftest.er1 >conftest.err
16789 cat conftest.err >&5
16790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } && {
16792 test -z "$ac_c_werror_flag" ||
16793 test ! -s conftest.err
16794 } && test -s conftest.$ac_objext; then
16795 ac_header_compiler=yes
16797 $as_echo "$as_me: failed program was:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16800 ac_header_compiler=no
16803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16804 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16805 $as_echo "$ac_header_compiler" >&6; }
16807 # Is the header present?
16808 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16809 $as_echo_n "checking $ac_header presence... " >&6; }
16810 cat >conftest.$ac_ext <<_ACEOF
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h. */
16816 #include <$ac_header>
16818 if { (ac_try="$ac_cpp conftest.$ac_ext"
16819 case "(($ac_try" in
16820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16821 *) ac_try_echo
=$ac_try;;
16823 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16824 $as_echo "$ac_try_echo") >&5
16825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16827 grep -v '^ *+' conftest.er1
>conftest.err
16829 cat conftest.err
>&5
16830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } >/dev
/null
&& {
16832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16833 test ! -s conftest.err
16835 ac_header_preproc
=yes
16837 $as_echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.
$ac_ext >&5
16840 ac_header_preproc
=no
16843 rm -f conftest.err conftest.
$ac_ext
16844 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16845 $as_echo "$ac_header_preproc" >&6; }
16847 # So? What about this header?
16848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16851 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16853 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16854 ac_header_preproc
=yes
16857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16858 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16860 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16862 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16864 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16866 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16868 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16870 ## ------------------------------- ##
16871 ## Report this to bug-bash@gnu.org ##
16872 ## ------------------------------- ##
16874 ) |
sed "s/^/$as_me: WARNING: /" >&2
16877 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16878 $as_echo_n "checking for $ac_header... " >&6; }
16879 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16880 $as_echo_n "(cached) " >&6
16882 eval "$as_ac_Header=\$ac_header_preproc"
16884 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16885 $as_echo "$as_val"'`
16886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16887 $as_echo "$ac_res" >&6; }
16890 as_val
=`eval 'as_val=${'$as_ac_Header'}
16891 $as_echo "$as_val"'`
16892 if test "x$as_val" = x
""yes; then
16893 cat >>confdefs.h
<<_ACEOF
16894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16902 { $as_echo "$as_me:$LINENO: checking for mbrlen" >&5
16903 $as_echo_n "checking for mbrlen... " >&6; }
16904 if test "${ac_cv_func_mbrlen+set}" = set; then
16905 $as_echo_n "(cached) " >&6
16907 cat >conftest.
$ac_ext <<_ACEOF
16910 cat confdefs.h
>>conftest.
$ac_ext
16911 cat >>conftest.
$ac_ext <<_ACEOF
16912 /* end confdefs.h. */
16913 /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
16914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16915 #define mbrlen innocuous_mbrlen
16917 /* System header to define __stub macros and hopefully few prototypes,
16918 which can conflict with char mbrlen (); below.
16919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16920 <limits.h> exists even on freestanding compilers. */
16923 # include <limits.h>
16925 # include <assert.h>
16930 /* Override any GCC internal prototype to avoid an error.
16931 Use char because int might match the return type of a GCC
16932 builtin and then its argument prototype would still apply. */
16937 /* The GNU C library defines this for functions which it implements
16938 to always fail with ENOSYS. Some functions are actually named
16939 something starting with __ and the normal name is an alias. */
16940 #if defined __stub_mbrlen || defined __stub___mbrlen
16952 rm -f conftest.
$ac_objext conftest
$ac_exeext
16953 if { (ac_try
="$ac_link"
16954 case "(($ac_try" in
16955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16959 $as_echo "$ac_try_echo") >&5
16960 (eval "$ac_link") 2>conftest.er1
16962 grep -v '^ *+' conftest.er1 >conftest.err
16964 cat conftest.err >&5
16965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); } && {
16967 test -z "$ac_c_werror_flag" ||
16968 test ! -s conftest.err
16969 } && test -s conftest$ac_exeext && {
16970 test "$cross_compiling" = yes ||
16971 $as_test_x conftest$ac_exeext
16973 ac_cv_func_mbrlen=yes
16975 $as_echo "$as_me: failed program was:" >&5
16976 sed 's/^/| /' conftest.$ac_ext >&5
16978 ac_cv_func_mbrlen=no
16981 rm -rf conftest.dSYM
16982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16983 conftest$ac_exeext conftest.$ac_ext
16985 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
16986 $as_echo "$ac_cv_func_mbrlen" >&6; }
16987 if test "x$ac_cv_func_mbrlen" = x""yes; then
16988 cat >>confdefs.h <<\_ACEOF
16989 #define HAVE_MBRLEN 1
16994 { $as_echo "$as_me:$LINENO: checking for mbscmp" >&5
16995 $as_echo_n "checking for mbscmp... " >&6; }
16996 if test "${ac_cv_func_mbscmp+set}" = set; then
16997 $as_echo_n "(cached) " >&6
16999 cat >conftest.$ac_ext <<_ACEOF
17002 cat confdefs.h >>conftest.$ac_ext
17003 cat >>conftest.$ac_ext <<_ACEOF
17004 /* end confdefs.h. */
17005 /* Define mbscmp to an innocuous variant, in case <limits.h> declares mbscmp.
17006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17007 #define mbscmp innocuous_mbscmp
17009 /* System header to define __stub macros and hopefully few prototypes,
17010 which can conflict with char mbscmp (); below.
17011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17012 <limits.h> exists even on freestanding compilers. */
17015 # include <limits.h>
17017 # include <assert.h>
17022 /* Override any GCC internal prototype to avoid an error.
17023 Use char because int might match the return type of a GCC
17024 builtin and then its argument prototype would still apply. */
17029 /* The GNU C library defines this for functions which it implements
17030 to always fail with ENOSYS. Some functions are actually named
17031 something starting with __ and the normal name is an alias. */
17032 #if defined __stub_mbscmp || defined __stub___mbscmp
17044 rm -f conftest.$ac_objext conftest$ac_exeext
17045 if { (ac_try="$ac_link"
17046 case "(($ac_try" in
17047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17048 *) ac_try_echo
=$ac_try;;
17050 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17051 $as_echo "$ac_try_echo") >&5
17052 (eval "$ac_link") 2>conftest.er1
17054 grep -v '^ *+' conftest.er1
>conftest.err
17056 cat conftest.err
>&5
17057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } && {
17059 test -z "$ac_c_werror_flag" ||
17060 test ! -s conftest.err
17061 } && test -s conftest
$ac_exeext && {
17062 test "$cross_compiling" = yes ||
17063 $as_test_x conftest
$ac_exeext
17065 ac_cv_func_mbscmp
=yes
17067 $as_echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.
$ac_ext >&5
17070 ac_cv_func_mbscmp
=no
17073 rm -rf conftest.dSYM
17074 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17075 conftest
$ac_exeext conftest.
$ac_ext
17077 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscmp" >&5
17078 $as_echo "$ac_cv_func_mbscmp" >&6; }
17079 if test "x$ac_cv_func_mbscmp" = x
""yes; then
17080 cat >>confdefs.h
<<\_ACEOF
17081 #define HAVE_MBSCMP 1
17086 { $as_echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
17087 $as_echo_n "checking for mbsrtowcs... " >&6; }
17088 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
17089 $as_echo_n "(cached) " >&6
17091 cat >conftest.
$ac_ext <<_ACEOF
17094 cat confdefs.h
>>conftest.
$ac_ext
17095 cat >>conftest.
$ac_ext <<_ACEOF
17096 /* end confdefs.h. */
17097 /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
17098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17099 #define mbsrtowcs innocuous_mbsrtowcs
17101 /* System header to define __stub macros and hopefully few prototypes,
17102 which can conflict with char mbsrtowcs (); below.
17103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17104 <limits.h> exists even on freestanding compilers. */
17107 # include <limits.h>
17109 # include <assert.h>
17114 /* Override any GCC internal prototype to avoid an error.
17115 Use char because int might match the return type of a GCC
17116 builtin and then its argument prototype would still apply. */
17121 /* The GNU C library defines this for functions which it implements
17122 to always fail with ENOSYS. Some functions are actually named
17123 something starting with __ and the normal name is an alias. */
17124 #if defined __stub_mbsrtowcs || defined __stub___mbsrtowcs
17131 return mbsrtowcs ();
17136 rm -f conftest.
$ac_objext conftest
$ac_exeext
17137 if { (ac_try
="$ac_link"
17138 case "(($ac_try" in
17139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17143 $as_echo "$ac_try_echo") >&5
17144 (eval "$ac_link") 2>conftest.er1
17146 grep -v '^ *+' conftest.er1 >conftest.err
17148 cat conftest.err >&5
17149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); } && {
17151 test -z "$ac_c_werror_flag" ||
17152 test ! -s conftest.err
17153 } && test -s conftest$ac_exeext && {
17154 test "$cross_compiling" = yes ||
17155 $as_test_x conftest$ac_exeext
17157 ac_cv_func_mbsrtowcs=yes
17159 $as_echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17162 ac_cv_func_mbsrtowcs=no
17165 rm -rf conftest.dSYM
17166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17167 conftest$ac_exeext conftest.$ac_ext
17169 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
17170 $as_echo "$ac_cv_func_mbsrtowcs" >&6; }
17171 if test "x$ac_cv_func_mbsrtowcs" = x""yes; then
17172 cat >>confdefs.h <<\_ACEOF
17173 #define HAVE_MBSRTOWCS 1
17179 { $as_echo "$as_me:$LINENO: checking for wcrtomb" >&5
17180 $as_echo_n "checking for wcrtomb... " >&6; }
17181 if test "${ac_cv_func_wcrtomb+set}" = set; then
17182 $as_echo_n "(cached) " >&6
17184 cat >conftest.$ac_ext <<_ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17190 /* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb.
17191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17192 #define wcrtomb innocuous_wcrtomb
17194 /* System header to define __stub macros and hopefully few prototypes,
17195 which can conflict with char wcrtomb (); below.
17196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17197 <limits.h> exists even on freestanding compilers. */
17200 # include <limits.h>
17202 # include <assert.h>
17207 /* Override any GCC internal prototype to avoid an error.
17208 Use char because int might match the return type of a GCC
17209 builtin and then its argument prototype would still apply. */
17214 /* The GNU C library defines this for functions which it implements
17215 to always fail with ENOSYS. Some functions are actually named
17216 something starting with __ and the normal name is an alias. */
17217 #if defined __stub_wcrtomb || defined __stub___wcrtomb
17229 rm -f conftest.$ac_objext conftest$ac_exeext
17230 if { (ac_try="$ac_link"
17231 case "(($ac_try" in
17232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17233 *) ac_try_echo
=$ac_try;;
17235 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17236 $as_echo "$ac_try_echo") >&5
17237 (eval "$ac_link") 2>conftest.er1
17239 grep -v '^ *+' conftest.er1
>conftest.err
17241 cat conftest.err
>&5
17242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } && {
17244 test -z "$ac_c_werror_flag" ||
17245 test ! -s conftest.err
17246 } && test -s conftest
$ac_exeext && {
17247 test "$cross_compiling" = yes ||
17248 $as_test_x conftest
$ac_exeext
17250 ac_cv_func_wcrtomb
=yes
17252 $as_echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.
$ac_ext >&5
17255 ac_cv_func_wcrtomb
=no
17258 rm -rf conftest.dSYM
17259 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17260 conftest
$ac_exeext conftest.
$ac_ext
17262 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5
17263 $as_echo "$ac_cv_func_wcrtomb" >&6; }
17264 if test "x$ac_cv_func_wcrtomb" = x
""yes; then
17265 cat >>confdefs.h
<<\_ACEOF
17266 #define HAVE_WCRTOMB 1
17271 { $as_echo "$as_me:$LINENO: checking for wcscoll" >&5
17272 $as_echo_n "checking for wcscoll... " >&6; }
17273 if test "${ac_cv_func_wcscoll+set}" = set; then
17274 $as_echo_n "(cached) " >&6
17276 cat >conftest.
$ac_ext <<_ACEOF
17279 cat confdefs.h
>>conftest.
$ac_ext
17280 cat >>conftest.
$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17282 /* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll.
17283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17284 #define wcscoll innocuous_wcscoll
17286 /* System header to define __stub macros and hopefully few prototypes,
17287 which can conflict with char wcscoll (); below.
17288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17289 <limits.h> exists even on freestanding compilers. */
17292 # include <limits.h>
17294 # include <assert.h>
17299 /* Override any GCC internal prototype to avoid an error.
17300 Use char because int might match the return type of a GCC
17301 builtin and then its argument prototype would still apply. */
17306 /* The GNU C library defines this for functions which it implements
17307 to always fail with ENOSYS. Some functions are actually named
17308 something starting with __ and the normal name is an alias. */
17309 #if defined __stub_wcscoll || defined __stub___wcscoll
17321 rm -f conftest.
$ac_objext conftest
$ac_exeext
17322 if { (ac_try
="$ac_link"
17323 case "(($ac_try" in
17324 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17325 *) ac_try_echo=$ac_try;;
17327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17328 $as_echo "$ac_try_echo") >&5
17329 (eval "$ac_link") 2>conftest.er1
17331 grep -v '^ *+' conftest.er1 >conftest.err
17333 cat conftest.err >&5
17334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } && {
17336 test -z "$ac_c_werror_flag" ||
17337 test ! -s conftest.err
17338 } && test -s conftest$ac_exeext && {
17339 test "$cross_compiling" = yes ||
17340 $as_test_x conftest$ac_exeext
17342 ac_cv_func_wcscoll=yes
17344 $as_echo "$as_me: failed program was:" >&5
17345 sed 's/^/| /' conftest.$ac_ext >&5
17347 ac_cv_func_wcscoll=no
17350 rm -rf conftest.dSYM
17351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17352 conftest$ac_exeext conftest.$ac_ext
17354 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5
17355 $as_echo "$ac_cv_func_wcscoll" >&6; }
17356 if test "x$ac_cv_func_wcscoll" = x""yes; then
17357 cat >>confdefs.h <<\_ACEOF
17358 #define HAVE_WCSCOLL 1
17363 { $as_echo "$as_me:$LINENO: checking for wcsdup" >&5
17364 $as_echo_n "checking for wcsdup... " >&6; }
17365 if test "${ac_cv_func_wcsdup+set}" = set; then
17366 $as_echo_n "(cached) " >&6
17368 cat >conftest.$ac_ext <<_ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
17375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17376 #define wcsdup innocuous_wcsdup
17378 /* System header to define __stub macros and hopefully few prototypes,
17379 which can conflict with char wcsdup (); below.
17380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17381 <limits.h> exists even on freestanding compilers. */
17384 # include <limits.h>
17386 # include <assert.h>
17391 /* Override any GCC internal prototype to avoid an error.
17392 Use char because int might match the return type of a GCC
17393 builtin and then its argument prototype would still apply. */
17398 /* The GNU C library defines this for functions which it implements
17399 to always fail with ENOSYS. Some functions are actually named
17400 something starting with __ and the normal name is an alias. */
17401 #if defined __stub_wcsdup || defined __stub___wcsdup
17413 rm -f conftest.$ac_objext conftest$ac_exeext
17414 if { (ac_try="$ac_link"
17415 case "(($ac_try" in
17416 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17417 *) ac_try_echo
=$ac_try;;
17419 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17420 $as_echo "$ac_try_echo") >&5
17421 (eval "$ac_link") 2>conftest.er1
17423 grep -v '^ *+' conftest.er1
>conftest.err
17425 cat conftest.err
>&5
17426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } && {
17428 test -z "$ac_c_werror_flag" ||
17429 test ! -s conftest.err
17430 } && test -s conftest
$ac_exeext && {
17431 test "$cross_compiling" = yes ||
17432 $as_test_x conftest
$ac_exeext
17434 ac_cv_func_wcsdup
=yes
17436 $as_echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.
$ac_ext >&5
17439 ac_cv_func_wcsdup
=no
17442 rm -rf conftest.dSYM
17443 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17444 conftest
$ac_exeext conftest.
$ac_ext
17446 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
17447 $as_echo "$ac_cv_func_wcsdup" >&6; }
17448 if test "x$ac_cv_func_wcsdup" = x
""yes; then
17449 cat >>confdefs.h
<<\_ACEOF
17450 #define HAVE_WCSDUP 1
17455 { $as_echo "$as_me:$LINENO: checking for wcwidth" >&5
17456 $as_echo_n "checking for wcwidth... " >&6; }
17457 if test "${ac_cv_func_wcwidth+set}" = set; then
17458 $as_echo_n "(cached) " >&6
17460 cat >conftest.
$ac_ext <<_ACEOF
17463 cat confdefs.h
>>conftest.
$ac_ext
17464 cat >>conftest.
$ac_ext <<_ACEOF
17465 /* end confdefs.h. */
17466 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
17467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17468 #define wcwidth innocuous_wcwidth
17470 /* System header to define __stub macros and hopefully few prototypes,
17471 which can conflict with char wcwidth (); below.
17472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17473 <limits.h> exists even on freestanding compilers. */
17476 # include <limits.h>
17478 # include <assert.h>
17483 /* Override any GCC internal prototype to avoid an error.
17484 Use char because int might match the return type of a GCC
17485 builtin and then its argument prototype would still apply. */
17490 /* The GNU C library defines this for functions which it implements
17491 to always fail with ENOSYS. Some functions are actually named
17492 something starting with __ and the normal name is an alias. */
17493 #if defined __stub_wcwidth || defined __stub___wcwidth
17505 rm -f conftest.
$ac_objext conftest
$ac_exeext
17506 if { (ac_try
="$ac_link"
17507 case "(($ac_try" in
17508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17512 $as_echo "$ac_try_echo") >&5
17513 (eval "$ac_link") 2>conftest.er1
17515 grep -v '^ *+' conftest.er1 >conftest.err
17517 cat conftest.err >&5
17518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); } && {
17520 test -z "$ac_c_werror_flag" ||
17521 test ! -s conftest.err
17522 } && test -s conftest$ac_exeext && {
17523 test "$cross_compiling" = yes ||
17524 $as_test_x conftest$ac_exeext
17526 ac_cv_func_wcwidth=yes
17528 $as_echo "$as_me: failed program was:" >&5
17529 sed 's/^/| /' conftest.$ac_ext >&5
17531 ac_cv_func_wcwidth=no
17534 rm -rf conftest.dSYM
17535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17536 conftest$ac_exeext conftest.$ac_ext
17538 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
17539 $as_echo "$ac_cv_func_wcwidth" >&6; }
17540 if test "x$ac_cv_func_wcwidth" = x""yes; then
17541 cat >>confdefs.h <<\_ACEOF
17542 #define HAVE_WCWIDTH 1
17547 { $as_echo "$as_me:$LINENO: checking for wctype" >&5
17548 $as_echo_n "checking for wctype... " >&6; }
17549 if test "${ac_cv_func_wctype+set}" = set; then
17550 $as_echo_n "(cached) " >&6
17552 cat >conftest.$ac_ext <<_ACEOF
17555 cat confdefs.h >>conftest.$ac_ext
17556 cat >>conftest.$ac_ext <<_ACEOF
17557 /* end confdefs.h. */
17558 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
17559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17560 #define wctype innocuous_wctype
17562 /* System header to define __stub macros and hopefully few prototypes,
17563 which can conflict with char wctype (); below.
17564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17565 <limits.h> exists even on freestanding compilers. */
17568 # include <limits.h>
17570 # include <assert.h>
17575 /* Override any GCC internal prototype to avoid an error.
17576 Use char because int might match the return type of a GCC
17577 builtin and then its argument prototype would still apply. */
17582 /* The GNU C library defines this for functions which it implements
17583 to always fail with ENOSYS. Some functions are actually named
17584 something starting with __ and the normal name is an alias. */
17585 #if defined __stub_wctype || defined __stub___wctype
17597 rm -f conftest.$ac_objext conftest$ac_exeext
17598 if { (ac_try="$ac_link"
17599 case "(($ac_try" in
17600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17601 *) ac_try_echo
=$ac_try;;
17603 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17604 $as_echo "$ac_try_echo") >&5
17605 (eval "$ac_link") 2>conftest.er1
17607 grep -v '^ *+' conftest.er1
>conftest.err
17609 cat conftest.err
>&5
17610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } && {
17612 test -z "$ac_c_werror_flag" ||
17613 test ! -s conftest.err
17614 } && test -s conftest
$ac_exeext && {
17615 test "$cross_compiling" = yes ||
17616 $as_test_x conftest
$ac_exeext
17618 ac_cv_func_wctype
=yes
17620 $as_echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.
$ac_ext >&5
17623 ac_cv_func_wctype
=no
17626 rm -rf conftest.dSYM
17627 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17628 conftest
$ac_exeext conftest.
$ac_ext
17630 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
17631 $as_echo "$ac_cv_func_wctype" >&6; }
17632 if test "x$ac_cv_func_wctype" = x
""yes; then
17633 cat >>confdefs.h
<<\_ACEOF
17634 #define HAVE_WCTYPE 1
17641 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
17642 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
17643 if test "${ac_cv_func_mbrtowc+set}" = set; then
17644 $as_echo_n "(cached) " >&6
17646 cat >conftest.
$ac_ext <<_ACEOF
17649 cat confdefs.h
>>conftest.
$ac_ext
17650 cat >>conftest.
$ac_ext <<_ACEOF
17651 /* end confdefs.h. */
17657 char const s[] = "";
17660 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
17665 rm -f conftest.
$ac_objext conftest
$ac_exeext
17666 if { (ac_try
="$ac_link"
17667 case "(($ac_try" in
17668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17669 *) ac_try_echo=$ac_try;;
17671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17672 $as_echo "$ac_try_echo") >&5
17673 (eval "$ac_link") 2>conftest.er1
17675 grep -v '^ *+' conftest.er1 >conftest.err
17677 cat conftest.err >&5
17678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); } && {
17680 test -z "$ac_c_werror_flag" ||
17681 test ! -s conftest.err
17682 } && test -s conftest$ac_exeext && {
17683 test "$cross_compiling" = yes ||
17684 $as_test_x conftest$ac_exeext
17686 ac_cv_func_mbrtowc=yes
17688 $as_echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17691 ac_cv_func_mbrtowc=no
17694 rm -rf conftest.dSYM
17695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17696 conftest$ac_exeext conftest.$ac_ext
17698 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
17699 $as_echo "$ac_cv_func_mbrtowc" >&6; }
17700 if test $ac_cv_func_mbrtowc = yes; then
17702 cat >>confdefs.h <<\_ACEOF
17703 #define HAVE_MBRTOWC 1
17708 if test $ac_cv_func_mbrtowc = yes; then
17709 cat >>confdefs.h <<\_ACEOF
17710 #define HAVE_MBSTATE_T 1
17720 for ac_func in iswlower iswupper towlower towupper iswctype
17722 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17723 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17724 $as_echo_n "checking for $ac_func... " >&6; }
17725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17726 $as_echo_n "(cached) " >&6
17728 cat >conftest.$ac_ext <<_ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h. */
17734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17736 #define $ac_func innocuous_$ac_func
17738 /* System header to define __stub macros and hopefully few prototypes,
17739 which can conflict with char $ac_func (); below.
17740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17741 <limits.h> exists even on freestanding compilers. */
17744 # include <limits.h>
17746 # include <assert.h>
17751 /* Override any GCC internal prototype to avoid an error.
17752 Use char because int might match the return type of a GCC
17753 builtin and then its argument prototype would still apply. */
17758 /* The GNU C library defines this for functions which it implements
17759 to always fail with ENOSYS. Some functions are actually named
17760 something starting with __ and the normal name is an alias. */
17761 #if defined __stub_$ac_func || defined __stub___$ac_func
17768 return $ac_func ();
17773 rm -f conftest.$ac_objext conftest$ac_exeext
17774 if { (ac_try="$ac_link"
17775 case "(($ac_try" in
17776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17777 *) ac_try_echo
=$ac_try;;
17779 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17780 $as_echo "$ac_try_echo") >&5
17781 (eval "$ac_link") 2>conftest.er1
17783 grep -v '^ *+' conftest.er1
>conftest.err
17785 cat conftest.err
>&5
17786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); } && {
17788 test -z "$ac_c_werror_flag" ||
17789 test ! -s conftest.err
17790 } && test -s conftest
$ac_exeext && {
17791 test "$cross_compiling" = yes ||
17792 $as_test_x conftest
$ac_exeext
17794 eval "$as_ac_var=yes"
17796 $as_echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.
$ac_ext >&5
17799 eval "$as_ac_var=no"
17802 rm -rf conftest.dSYM
17803 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17804 conftest
$ac_exeext conftest.
$ac_ext
17806 ac_res
=`eval 'as_val=${'$as_ac_var'}
17807 $as_echo "$as_val"'`
17808 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17809 $as_echo "$ac_res" >&6; }
17810 as_val
=`eval 'as_val=${'$as_ac_var'}
17811 $as_echo "$as_val"'`
17812 if test "x$as_val" = x
""yes; then
17813 cat >>confdefs.h
<<_ACEOF
17814 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17821 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17822 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
17823 if test "${bash_cv_langinfo_codeset+set}" = set; then
17824 $as_echo_n "(cached) " >&6
17826 cat >conftest.
$ac_ext <<_ACEOF
17829 cat confdefs.h
>>conftest.
$ac_ext
17830 cat >>conftest.
$ac_ext <<_ACEOF
17831 /* end confdefs.h. */
17832 #include <langinfo.h>
17836 char* cs = nl_langinfo(CODESET);
17841 rm -f conftest.
$ac_objext conftest
$ac_exeext
17842 if { (ac_try
="$ac_link"
17843 case "(($ac_try" in
17844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17845 *) ac_try_echo=$ac_try;;
17847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17848 $as_echo "$ac_try_echo") >&5
17849 (eval "$ac_link") 2>conftest.er1
17851 grep -v '^ *+' conftest.er1 >conftest.err
17853 cat conftest.err >&5
17854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); } && {
17856 test -z "$ac_c_werror_flag" ||
17857 test ! -s conftest.err
17858 } && test -s conftest$ac_exeext && {
17859 test "$cross_compiling" = yes ||
17860 $as_test_x conftest$ac_exeext
17862 bash_cv_langinfo_codeset=yes
17864 $as_echo "$as_me: failed program was:" >&5
17865 sed 's/^/| /' conftest.$ac_ext >&5
17867 bash_cv_langinfo_codeset=no
17870 rm -rf conftest.dSYM
17871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17872 conftest$ac_exeext conftest.$ac_ext
17874 { $as_echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
17875 $as_echo "$bash_cv_langinfo_codeset" >&6; }
17876 if test $bash_cv_langinfo_codeset = yes; then
17877 cat >>confdefs.h <<\_ACEOF
17878 #define HAVE_LANGINFO_CODESET 1
17883 { $as_echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5
17884 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
17885 if test "${bash_cv_type_wchar_t+set}" = set; then
17886 $as_echo_n "(cached) " >&6
17888 cat >conftest.$ac_ext <<_ACEOF
17891 cat confdefs.h >>conftest.$ac_ext
17892 cat >>conftest.$ac_ext <<_ACEOF
17893 /* end confdefs.h. */
17907 rm -f conftest.$ac_objext
17908 if { (ac_try="$ac_compile"
17909 case "(($ac_try" in
17910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17911 *) ac_try_echo
=$ac_try;;
17913 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17914 $as_echo "$ac_try_echo") >&5
17915 (eval "$ac_compile") 2>conftest.er1
17917 grep -v '^ *+' conftest.er1
>conftest.err
17919 cat conftest.err
>&5
17920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } && {
17922 test -z "$ac_c_werror_flag" ||
17923 test ! -s conftest.err
17924 } && test -s conftest.
$ac_objext; then
17925 bash_cv_type_wchar_t
=yes
17927 $as_echo "$as_me: failed program was:" >&5
17928 sed 's/^/| /' conftest.
$ac_ext >&5
17930 bash_cv_type_wchar_t
=no
17933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17935 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5
17936 $as_echo "$bash_cv_type_wchar_t" >&6; }
17937 if test $bash_cv_type_wchar_t = yes; then
17939 cat >>confdefs.h
<<\_ACEOF
17940 #define HAVE_WCHAR_T 1
17945 { $as_echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5
17946 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
17947 if test "${bash_cv_type_wctype_t+set}" = set; then
17948 $as_echo_n "(cached) " >&6
17950 cat >conftest.
$ac_ext <<_ACEOF
17953 cat confdefs.h
>>conftest.
$ac_ext
17954 cat >>conftest.
$ac_ext <<_ACEOF
17955 /* end confdefs.h. */
17956 #include <wctype.h>
17968 rm -f conftest.
$ac_objext
17969 if { (ac_try
="$ac_compile"
17970 case "(($ac_try" in
17971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17972 *) ac_try_echo=$ac_try;;
17974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17975 $as_echo "$ac_try_echo") >&5
17976 (eval "$ac_compile") 2>conftest.er1
17978 grep -v '^ *+' conftest.er1 >conftest.err
17980 cat conftest.err >&5
17981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); } && {
17983 test -z "$ac_c_werror_flag" ||
17984 test ! -s conftest.err
17985 } && test -s conftest.$ac_objext; then
17986 bash_cv_type_wctype_t=yes
17988 $as_echo "$as_me: failed program was:" >&5
17989 sed 's/^/| /' conftest.$ac_ext >&5
17991 bash_cv_type_wctype_t=no
17994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17996 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5
17997 $as_echo "$bash_cv_type_wctype_t" >&6; }
17998 if test $bash_cv_type_wctype_t = yes; then
18000 cat >>confdefs.h <<\_ACEOF
18001 #define HAVE_WCTYPE_T 1
18006 { $as_echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5
18007 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
18008 if test "${bash_cv_type_wint_t+set}" = set; then
18009 $as_echo_n "(cached) " >&6
18011 cat >conftest.$ac_ext <<_ACEOF
18014 cat confdefs.h >>conftest.$ac_ext
18015 cat >>conftest.$ac_ext <<_ACEOF
18016 /* end confdefs.h. */
18017 #include <wctype.h>
18029 rm -f conftest.$ac_objext
18030 if { (ac_try="$ac_compile"
18031 case "(($ac_try" in
18032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18033 *) ac_try_echo
=$ac_try;;
18035 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18036 $as_echo "$ac_try_echo") >&5
18037 (eval "$ac_compile") 2>conftest.er1
18039 grep -v '^ *+' conftest.er1
>conftest.err
18041 cat conftest.err
>&5
18042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); } && {
18044 test -z "$ac_c_werror_flag" ||
18045 test ! -s conftest.err
18046 } && test -s conftest.
$ac_objext; then
18047 bash_cv_type_wint_t
=yes
18049 $as_echo "$as_me: failed program was:" >&5
18050 sed 's/^/| /' conftest.
$ac_ext >&5
18052 bash_cv_type_wint_t
=no
18055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18057 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5
18058 $as_echo "$bash_cv_type_wint_t" >&6; }
18059 if test $bash_cv_type_wint_t = yes; then
18061 cat >>confdefs.h
<<\_ACEOF
18062 #define HAVE_WINT_T 1
18069 if test "$opt_static_link" != yes; then
18071 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18072 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18073 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18074 $as_echo_n "(cached) " >&6
18076 ac_check_lib_save_LIBS
=$LIBS
18078 cat >conftest.
$ac_ext <<_ACEOF
18081 cat confdefs.h
>>conftest.
$ac_ext
18082 cat >>conftest.
$ac_ext <<_ACEOF
18083 /* end confdefs.h. */
18085 /* Override any GCC internal prototype to avoid an error.
18086 Use char because int might match the return type of a GCC
18087 builtin and then its argument prototype would still apply. */
18100 rm -f conftest.
$ac_objext conftest
$ac_exeext
18101 if { (ac_try
="$ac_link"
18102 case "(($ac_try" in
18103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18104 *) ac_try_echo=$ac_try;;
18106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18107 $as_echo "$ac_try_echo") >&5
18108 (eval "$ac_link") 2>conftest.er1
18110 grep -v '^ *+' conftest.er1 >conftest.err
18112 cat conftest.err >&5
18113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); } && {
18115 test -z "$ac_c_werror_flag" ||
18116 test ! -s conftest.err
18117 } && test -s conftest$ac_exeext && {
18118 test "$cross_compiling" = yes ||
18119 $as_test_x conftest$ac_exeext
18121 ac_cv_lib_dl_dlopen=yes
18123 $as_echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.$ac_ext >&5
18126 ac_cv_lib_dl_dlopen=no
18129 rm -rf conftest.dSYM
18130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18131 conftest$ac_exeext conftest.$ac_ext
18132 LIBS=$ac_check_lib_save_LIBS
18134 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18135 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18136 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
18137 cat >>confdefs.h <<_ACEOF
18138 #define HAVE_LIBDL 1
18148 for ac_func in dlopen dlclose dlsym
18150 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18151 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18152 $as_echo_n "checking for $ac_func... " >&6; }
18153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18154 $as_echo_n "(cached) " >&6
18156 cat >conftest.$ac_ext <<_ACEOF
18159 cat confdefs.h >>conftest.$ac_ext
18160 cat >>conftest.$ac_ext <<_ACEOF
18161 /* end confdefs.h. */
18162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18164 #define $ac_func innocuous_$ac_func
18166 /* System header to define __stub macros and hopefully few prototypes,
18167 which can conflict with char $ac_func (); below.
18168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18169 <limits.h> exists even on freestanding compilers. */
18172 # include <limits.h>
18174 # include <assert.h>
18179 /* Override any GCC internal prototype to avoid an error.
18180 Use char because int might match the return type of a GCC
18181 builtin and then its argument prototype would still apply. */
18186 /* The GNU C library defines this for functions which it implements
18187 to always fail with ENOSYS. Some functions are actually named
18188 something starting with __ and the normal name is an alias. */
18189 #if defined __stub_$ac_func || defined __stub___$ac_func
18196 return $ac_func ();
18201 rm -f conftest.$ac_objext conftest$ac_exeext
18202 if { (ac_try="$ac_link"
18203 case "(($ac_try" in
18204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18205 *) ac_try_echo
=$ac_try;;
18207 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18208 $as_echo "$ac_try_echo") >&5
18209 (eval "$ac_link") 2>conftest.er1
18211 grep -v '^ *+' conftest.er1
>conftest.err
18213 cat conftest.err
>&5
18214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } && {
18216 test -z "$ac_c_werror_flag" ||
18217 test ! -s conftest.err
18218 } && test -s conftest
$ac_exeext && {
18219 test "$cross_compiling" = yes ||
18220 $as_test_x conftest
$ac_exeext
18222 eval "$as_ac_var=yes"
18224 $as_echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.
$ac_ext >&5
18227 eval "$as_ac_var=no"
18230 rm -rf conftest.dSYM
18231 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18232 conftest
$ac_exeext conftest.
$ac_ext
18234 ac_res
=`eval 'as_val=${'$as_ac_var'}
18235 $as_echo "$as_val"'`
18236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18237 $as_echo "$ac_res" >&6; }
18238 as_val
=`eval 'as_val=${'$as_ac_var'}
18239 $as_echo "$as_val"'`
18240 if test "x$as_val" = x
""yes; then
18241 cat >>confdefs.h
<<_ACEOF
18242 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18250 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
18251 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
18252 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
18253 $as_echo_n "(cached) " >&6
18255 cat >conftest.
$ac_ext <<_ACEOF
18258 cat confdefs.h
>>conftest.
$ac_ext
18259 cat >>conftest.
$ac_ext <<_ACEOF
18260 /* end confdefs.h. */
18261 #include <signal.h>
18262 /* NetBSD declares sys_siglist in unistd.h. */
18263 #ifdef HAVE_UNISTD_H
18264 # include <unistd.h>
18271 #ifndef sys_siglist
18272 (void) sys_siglist;
18279 rm -f conftest.
$ac_objext
18280 if { (ac_try
="$ac_compile"
18281 case "(($ac_try" in
18282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18283 *) ac_try_echo=$ac_try;;
18285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18286 $as_echo "$ac_try_echo") >&5
18287 (eval "$ac_compile") 2>conftest.er1
18289 grep -v '^ *+' conftest.er1 >conftest.err
18291 cat conftest.err >&5
18292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); } && {
18294 test -z "$ac_c_werror_flag" ||
18295 test ! -s conftest.err
18296 } && test -s conftest.$ac_objext; then
18297 ac_cv_have_decl_sys_siglist=yes
18299 $as_echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18302 ac_cv_have_decl_sys_siglist=no
18305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18307 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
18308 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
18309 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
18311 cat >>confdefs.h <<_ACEOF
18312 #define HAVE_DECL_SYS_SIGLIST 1
18317 cat >>confdefs.h <<_ACEOF
18318 #define HAVE_DECL_SYS_SIGLIST 0
18327 if test "$ac_cv_func_inet_aton" != 'yes'; then
18329 { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
18330 $as_echo_n "checking for inet_aton... " >&6; }
18331 if test "${bash_cv_func_inet_aton+set}" = set; then
18332 $as_echo_n "(cached) " >&6
18334 cat >conftest.$ac_ext <<_ACEOF
18337 cat confdefs.h >>conftest.$ac_ext
18338 cat >>conftest.$ac_ext <<_ACEOF
18339 /* end confdefs.h. */
18341 #include <sys/types.h>
18342 #include <netinet/in.h>
18343 #include <arpa/inet.h>
18348 inet_aton("127.0.0.1", &ap);
18353 rm -f conftest.$ac_objext conftest$ac_exeext
18354 if { (ac_try="$ac_link"
18355 case "(($ac_try" in
18356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18357 *) ac_try_echo
=$ac_try;;
18359 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18360 $as_echo "$ac_try_echo") >&5
18361 (eval "$ac_link") 2>conftest.er1
18363 grep -v '^ *+' conftest.er1
>conftest.err
18365 cat conftest.err
>&5
18366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); } && {
18368 test -z "$ac_c_werror_flag" ||
18369 test ! -s conftest.err
18370 } && test -s conftest
$ac_exeext && {
18371 test "$cross_compiling" = yes ||
18372 $as_test_x conftest
$ac_exeext
18374 bash_cv_func_inet_aton
=yes
18376 $as_echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.
$ac_ext >&5
18379 bash_cv_func_inet_aton
=no
18382 rm -rf conftest.dSYM
18383 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18384 conftest
$ac_exeext conftest.
$ac_ext
18386 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
18387 $as_echo "$bash_cv_func_inet_aton" >&6; }
18388 if test $bash_cv_func_inet_aton = yes; then
18389 cat >>confdefs.h
<<\_ACEOF
18390 #define HAVE_INET_ATON 1
18394 case " $LIBOBJS " in
18395 *" inet_aton.$ac_objext "* ) ;;
18396 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
18406 { $as_echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
18407 $as_echo_n "checking for getpwent in -lsun... " >&6; }
18408 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
18409 $as_echo_n "(cached) " >&6
18411 ac_check_lib_save_LIBS
=$LIBS
18413 cat >conftest.
$ac_ext <<_ACEOF
18416 cat confdefs.h
>>conftest.
$ac_ext
18417 cat >>conftest.
$ac_ext <<_ACEOF
18418 /* end confdefs.h. */
18420 /* Override any GCC internal prototype to avoid an error.
18421 Use char because int might match the return type of a GCC
18422 builtin and then its argument prototype would still apply. */
18430 return getpwent ();
18435 rm -f conftest.
$ac_objext conftest
$ac_exeext
18436 if { (ac_try
="$ac_link"
18437 case "(($ac_try" in
18438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18439 *) ac_try_echo=$ac_try;;
18441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18442 $as_echo "$ac_try_echo") >&5
18443 (eval "$ac_link") 2>conftest.er1
18445 grep -v '^ *+' conftest.er1 >conftest.err
18447 cat conftest.err >&5
18448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); } && {
18450 test -z "$ac_c_werror_flag" ||
18451 test ! -s conftest.err
18452 } && test -s conftest$ac_exeext && {
18453 test "$cross_compiling" = yes ||
18454 $as_test_x conftest$ac_exeext
18456 ac_cv_lib_sun_getpwent=yes
18458 $as_echo "$as_me: failed program was:" >&5
18459 sed 's/^/| /' conftest.$ac_ext >&5
18461 ac_cv_lib_sun_getpwent=no
18464 rm -rf conftest.dSYM
18465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18466 conftest$ac_exeext conftest.$ac_ext
18467 LIBS=$ac_check_lib_save_LIBS
18469 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
18470 $as_echo "$ac_cv_lib_sun_getpwent" >&6; }
18471 if test "x$ac_cv_lib_sun_getpwent" = x""yes; then
18472 cat >>confdefs.h <<_ACEOF
18473 #define HAVE_LIBSUN 1
18482 if test "$ac_cv_func_getpeername" = no; then
18484 if test "X$bash_cv_have_socklib" = "X"; then
18487 { $as_echo "$as_me:$LINENO: checking for socket library" >&5
18488 $as_echo_n "checking for socket library... " >&6; }
18491 if test "${bash_cv_have_socklib+set}" = set; then
18492 $as_echo_n "(cached) " >&6
18494 { $as_echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
18495 $as_echo_n "checking for getpeername in -lsocket... " >&6; }
18496 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
18497 $as_echo_n "(cached) " >&6
18499 ac_check_lib_save_LIBS=$LIBS
18500 LIBS="-lsocket -lnsl $LIBS"
18501 cat >conftest.$ac_ext <<_ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18508 /* Override any GCC internal prototype to avoid an error.
18509 Use char because int might match the return type of a GCC
18510 builtin and then its argument prototype would still apply. */
18514 char getpeername ();
18518 return getpeername ();
18523 rm -f conftest.$ac_objext conftest$ac_exeext
18524 if { (ac_try="$ac_link"
18525 case "(($ac_try" in
18526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18527 *) ac_try_echo
=$ac_try;;
18529 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18530 $as_echo "$ac_try_echo") >&5
18531 (eval "$ac_link") 2>conftest.er1
18533 grep -v '^ *+' conftest.er1
>conftest.err
18535 cat conftest.err
>&5
18536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); } && {
18538 test -z "$ac_c_werror_flag" ||
18539 test ! -s conftest.err
18540 } && test -s conftest
$ac_exeext && {
18541 test "$cross_compiling" = yes ||
18542 $as_test_x conftest
$ac_exeext
18544 ac_cv_lib_socket_getpeername
=yes
18546 $as_echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.
$ac_ext >&5
18549 ac_cv_lib_socket_getpeername
=no
18552 rm -rf conftest.dSYM
18553 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18554 conftest
$ac_exeext conftest.
$ac_ext
18555 LIBS
=$ac_check_lib_save_LIBS
18557 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
18558 $as_echo "$ac_cv_lib_socket_getpeername" >&6; }
18559 if test "x$ac_cv_lib_socket_getpeername" = x
""yes; then
18560 bash_cv_have_socklib
=yes
18562 bash_cv_have_socklib
=no
18567 if test "X$_bash_needmsg" = Xyes
; then
18568 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
18569 $as_echo "$bash_cv_have_socklib" >&6; }
18572 if test $bash_cv_have_socklib = yes; then
18573 # check for libnsl, add it to LIBS if present
18574 if test "X$bash_cv_have_libnsl" = "X"; then
18577 { $as_echo "$as_me:$LINENO: checking for libnsl" >&5
18578 $as_echo_n "checking for libnsl... " >&6; }
18581 if test "${bash_cv_have_libnsl+set}" = set; then
18582 $as_echo_n "(cached) " >&6
18584 { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
18585 $as_echo_n "checking for t_open in -lnsl... " >&6; }
18586 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
18587 $as_echo_n "(cached) " >&6
18589 ac_check_lib_save_LIBS
=$LIBS
18591 cat >conftest.
$ac_ext <<_ACEOF
18594 cat confdefs.h
>>conftest.
$ac_ext
18595 cat >>conftest.
$ac_ext <<_ACEOF
18596 /* end confdefs.h. */
18598 /* Override any GCC internal prototype to avoid an error.
18599 Use char because int might match the return type of a GCC
18600 builtin and then its argument prototype would still apply. */
18613 rm -f conftest.
$ac_objext conftest
$ac_exeext
18614 if { (ac_try
="$ac_link"
18615 case "(($ac_try" in
18616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18617 *) ac_try_echo=$ac_try;;
18619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18620 $as_echo "$ac_try_echo") >&5
18621 (eval "$ac_link") 2>conftest.er1
18623 grep -v '^ *+' conftest.er1 >conftest.err
18625 cat conftest.err >&5
18626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); } && {
18628 test -z "$ac_c_werror_flag" ||
18629 test ! -s conftest.err
18630 } && test -s conftest$ac_exeext && {
18631 test "$cross_compiling" = yes ||
18632 $as_test_x conftest$ac_exeext
18634 ac_cv_lib_nsl_t_open=yes
18636 $as_echo "$as_me: failed program was:" >&5
18637 sed 's/^/| /' conftest.$ac_ext >&5
18639 ac_cv_lib_nsl_t_open=no
18642 rm -rf conftest.dSYM
18643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18644 conftest$ac_exeext conftest.$ac_ext
18645 LIBS=$ac_check_lib_save_LIBS
18647 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
18648 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
18649 if test "x$ac_cv_lib_nsl_t_open" = x""yes; then
18650 bash_cv_have_libnsl=yes
18652 bash_cv_have_libnsl=no
18657 if test "X$_bash_needmsg" = Xyes; then
18658 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
18659 $as_echo "$bash_cv_have_libnsl" >&6; }
18662 if test $bash_cv_have_libnsl = yes; then
18663 LIBS="-lsocket -lnsl $LIBS"
18665 LIBS="-lsocket $LIBS"
18667 cat >>confdefs.h <<\_ACEOF
18668 #define HAVE_LIBSOCKET 1
18671 cat >>confdefs.h <<\_ACEOF
18672 #define HAVE_GETPEERNAME 1
18678 if test "$ac_cv_func_gethostbyname" = no; then
18679 if test "X$bash_cv_have_gethostbyname" = "X"; then
18682 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
18683 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
18686 if test "${bash_cv_have_gethostbyname+set}" = set; then
18687 $as_echo_n "(cached) " >&6
18689 cat >conftest.$ac_ext <<_ACEOF
18692 cat confdefs.h >>conftest.$ac_ext
18693 cat >>conftest.$ac_ext <<_ACEOF
18694 /* end confdefs.h. */
18699 struct hostent *hp;
18700 hp = gethostbyname("localhost");
18706 rm -f conftest.$ac_objext conftest$ac_exeext
18707 if { (ac_try="$ac_link"
18708 case "(($ac_try" in
18709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18710 *) ac_try_echo
=$ac_try;;
18712 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18713 $as_echo "$ac_try_echo") >&5
18714 (eval "$ac_link") 2>conftest.er1
18716 grep -v '^ *+' conftest.er1
>conftest.err
18718 cat conftest.err
>&5
18719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } && {
18721 test -z "$ac_c_werror_flag" ||
18722 test ! -s conftest.err
18723 } && test -s conftest
$ac_exeext && {
18724 test "$cross_compiling" = yes ||
18725 $as_test_x conftest
$ac_exeext
18727 bash_cv_have_gethostbyname
=yes
18729 $as_echo "$as_me: failed program was:" >&5
18730 sed 's/^/| /' conftest.
$ac_ext >&5
18732 bash_cv_have_gethostbyname
=no
18735 rm -rf conftest.dSYM
18736 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18737 conftest
$ac_exeext conftest.
$ac_ext
18741 if test "X$_bash_needmsg" = Xyes
; then
18742 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
18743 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
18745 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
18746 $as_echo "$bash_cv_have_gethostbyname" >&6; }
18747 if test "$bash_cv_have_gethostbyname" = yes; then
18748 cat >>confdefs.h
<<\_ACEOF
18749 #define HAVE_GETHOSTBYNAME 1
18756 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
18757 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18758 if test "${ac_cv_type_uid_t+set}" = set; then
18759 $as_echo_n "(cached) " >&6
18761 cat >conftest.
$ac_ext <<_ACEOF
18764 cat confdefs.h
>>conftest.
$ac_ext
18765 cat >>conftest.
$ac_ext <<_ACEOF
18766 /* end confdefs.h. */
18767 #include <sys/types.h>
18770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18771 $EGREP "uid_t" >/dev
/null
2>&1; then
18772 ac_cv_type_uid_t
=yes
18774 ac_cv_type_uid_t
=no
18779 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
18780 $as_echo "$ac_cv_type_uid_t" >&6; }
18781 if test $ac_cv_type_uid_t = no
; then
18783 cat >>confdefs.h
<<\_ACEOF
18788 cat >>confdefs.h
<<\_ACEOF
18794 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
18795 $as_echo_n "checking type of array argument to getgroups... " >&6; }
18796 if test "${ac_cv_type_getgroups+set}" = set; then
18797 $as_echo_n "(cached) " >&6
18799 if test "$cross_compiling" = yes; then
18800 ac_cv_type_getgroups
=cross
18802 cat >conftest.
$ac_ext <<_ACEOF
18805 cat confdefs.h
>>conftest.
$ac_ext
18806 cat >>conftest.
$ac_ext <<_ACEOF
18807 /* end confdefs.h. */
18808 /* Thanks to Mike Rendell for this test. */
18809 $ac_includes_default
18812 #define MAX(x, y) ((x) > (y) ? (x) : (y))
18817 gid_t gidset[NGID];
18819 union { gid_t gval; long int lval; } val;
18822 for (i = 0; i < NGID; i++)
18823 gidset[i] = val.gval;
18824 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
18826 /* Exit non-zero if getgroups seems to require an array of ints. This
18827 happens when gid_t is short int but getgroups modifies an array
18829 return n > 0 && gidset[n] != val.gval;
18832 rm -f conftest
$ac_exeext
18833 if { (ac_try
="$ac_link"
18834 case "(($ac_try" in
18835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18836 *) ac_try_echo=$ac_try;;
18838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18839 $as_echo "$ac_try_echo") >&5
18840 (eval "$ac_link") 2>&5
18842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18844 { (case "(($ac_try" in
18845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18846 *) ac_try_echo
=$ac_try;;
18848 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18849 $as_echo "$ac_try_echo") >&5
18850 (eval "$ac_try") 2>&5
18852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); }; }; then
18854 ac_cv_type_getgroups
=gid_t
18856 $as_echo "$as_me: program exited with status $ac_status" >&5
18857 $as_echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.
$ac_ext >&5
18860 ( exit $ac_status )
18861 ac_cv_type_getgroups
=int
18863 rm -rf conftest.dSYM
18864 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18868 if test $ac_cv_type_getgroups = cross
; then
18869 cat >conftest.
$ac_ext <<_ACEOF
18872 cat confdefs.h
>>conftest.
$ac_ext
18873 cat >>conftest.
$ac_ext <<_ACEOF
18874 /* end confdefs.h. */
18875 #include <unistd.h>
18878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18879 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
18880 ac_cv_type_getgroups
=gid_t
18882 ac_cv_type_getgroups
=int
18888 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
18889 $as_echo "$ac_cv_type_getgroups" >&6; }
18891 cat >>confdefs.h
<<_ACEOF
18892 #define GETGROUPS_T $ac_cv_type_getgroups
18896 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
18897 $as_echo_n "checking for off_t... " >&6; }
18898 if test "${ac_cv_type_off_t+set}" = set; then
18899 $as_echo_n "(cached) " >&6
18901 ac_cv_type_off_t
=no
18902 cat >conftest.
$ac_ext <<_ACEOF
18905 cat confdefs.h
>>conftest.
$ac_ext
18906 cat >>conftest.
$ac_ext <<_ACEOF
18907 /* end confdefs.h. */
18908 $ac_includes_default
18912 if (sizeof (off_t))
18918 rm -f conftest.
$ac_objext
18919 if { (ac_try
="$ac_compile"
18920 case "(($ac_try" in
18921 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18922 *) ac_try_echo=$ac_try;;
18924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18925 $as_echo "$ac_try_echo") >&5
18926 (eval "$ac_compile") 2>conftest.er1
18928 grep -v '^ *+' conftest.er1 >conftest.err
18930 cat conftest.err >&5
18931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } && {
18933 test -z "$ac_c_werror_flag" ||
18934 test ! -s conftest.err
18935 } && test -s conftest.$ac_objext; then
18936 cat >conftest.$ac_ext <<_ACEOF
18939 cat confdefs.h >>conftest.$ac_ext
18940 cat >>conftest.$ac_ext <<_ACEOF
18941 /* end confdefs.h. */
18942 $ac_includes_default
18946 if (sizeof ((off_t)))
18952 rm -f conftest.$ac_objext
18953 if { (ac_try="$ac_compile"
18954 case "(($ac_try" in
18955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18956 *) ac_try_echo
=$ac_try;;
18958 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18959 $as_echo "$ac_try_echo") >&5
18960 (eval "$ac_compile") 2>conftest.er1
18962 grep -v '^ *+' conftest.er1
>conftest.err
18964 cat conftest.err
>&5
18965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); } && {
18967 test -z "$ac_c_werror_flag" ||
18968 test ! -s conftest.err
18969 } && test -s conftest.
$ac_objext; then
18972 $as_echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.
$ac_ext >&5
18975 ac_cv_type_off_t
=yes
18978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18980 $as_echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.
$ac_ext >&5
18986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18988 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18989 $as_echo "$ac_cv_type_off_t" >&6; }
18990 if test "x$ac_cv_type_off_t" = x
""yes; then
18994 cat >>confdefs.h
<<_ACEOF
18995 #define off_t long int
19000 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
19001 $as_echo_n "checking for mode_t... " >&6; }
19002 if test "${ac_cv_type_mode_t+set}" = set; then
19003 $as_echo_n "(cached) " >&6
19005 ac_cv_type_mode_t
=no
19006 cat >conftest.
$ac_ext <<_ACEOF
19009 cat confdefs.h
>>conftest.
$ac_ext
19010 cat >>conftest.
$ac_ext <<_ACEOF
19011 /* end confdefs.h. */
19012 $ac_includes_default
19016 if (sizeof (mode_t))
19022 rm -f conftest.
$ac_objext
19023 if { (ac_try
="$ac_compile"
19024 case "(($ac_try" in
19025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19026 *) ac_try_echo=$ac_try;;
19028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19029 $as_echo "$ac_try_echo") >&5
19030 (eval "$ac_compile") 2>conftest.er1
19032 grep -v '^ *+' conftest.er1 >conftest.err
19034 cat conftest.err >&5
19035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } && {
19037 test -z "$ac_c_werror_flag" ||
19038 test ! -s conftest.err
19039 } && test -s conftest.$ac_objext; then
19040 cat >conftest.$ac_ext <<_ACEOF
19043 cat confdefs.h >>conftest.$ac_ext
19044 cat >>conftest.$ac_ext <<_ACEOF
19045 /* end confdefs.h. */
19046 $ac_includes_default
19050 if (sizeof ((mode_t)))
19056 rm -f conftest.$ac_objext
19057 if { (ac_try="$ac_compile"
19058 case "(($ac_try" in
19059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19060 *) ac_try_echo
=$ac_try;;
19062 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19063 $as_echo "$ac_try_echo") >&5
19064 (eval "$ac_compile") 2>conftest.er1
19066 grep -v '^ *+' conftest.er1
>conftest.err
19068 cat conftest.err
>&5
19069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); } && {
19071 test -z "$ac_c_werror_flag" ||
19072 test ! -s conftest.err
19073 } && test -s conftest.
$ac_objext; then
19076 $as_echo "$as_me: failed program was:" >&5
19077 sed 's/^/| /' conftest.
$ac_ext >&5
19079 ac_cv_type_mode_t
=yes
19082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19084 $as_echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.
$ac_ext >&5
19090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19092 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19093 $as_echo "$ac_cv_type_mode_t" >&6; }
19094 if test "x$ac_cv_type_mode_t" = x
""yes; then
19098 cat >>confdefs.h
<<_ACEOF
19104 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19105 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19106 if test "${ac_cv_type_uid_t+set}" = set; then
19107 $as_echo_n "(cached) " >&6
19109 cat >conftest.
$ac_ext <<_ACEOF
19112 cat confdefs.h
>>conftest.
$ac_ext
19113 cat >>conftest.
$ac_ext <<_ACEOF
19114 /* end confdefs.h. */
19115 #include <sys/types.h>
19118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19119 $EGREP "uid_t" >/dev
/null
2>&1; then
19120 ac_cv_type_uid_t
=yes
19122 ac_cv_type_uid_t
=no
19127 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19128 $as_echo "$ac_cv_type_uid_t" >&6; }
19129 if test $ac_cv_type_uid_t = no
; then
19131 cat >>confdefs.h
<<\_ACEOF
19136 cat >>confdefs.h
<<\_ACEOF
19142 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
19143 $as_echo_n "checking for pid_t... " >&6; }
19144 if test "${ac_cv_type_pid_t+set}" = set; then
19145 $as_echo_n "(cached) " >&6
19147 ac_cv_type_pid_t
=no
19148 cat >conftest.
$ac_ext <<_ACEOF
19151 cat confdefs.h
>>conftest.
$ac_ext
19152 cat >>conftest.
$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19154 $ac_includes_default
19158 if (sizeof (pid_t))
19164 rm -f conftest.
$ac_objext
19165 if { (ac_try
="$ac_compile"
19166 case "(($ac_try" in
19167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19168 *) ac_try_echo=$ac_try;;
19170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19171 $as_echo "$ac_try_echo") >&5
19172 (eval "$ac_compile") 2>conftest.er1
19174 grep -v '^ *+' conftest.er1 >conftest.err
19176 cat conftest.err >&5
19177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } && {
19179 test -z "$ac_c_werror_flag" ||
19180 test ! -s conftest.err
19181 } && test -s conftest.$ac_objext; then
19182 cat >conftest.$ac_ext <<_ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h. */
19188 $ac_includes_default
19192 if (sizeof ((pid_t)))
19198 rm -f conftest.$ac_objext
19199 if { (ac_try="$ac_compile"
19200 case "(($ac_try" in
19201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19202 *) ac_try_echo
=$ac_try;;
19204 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19205 $as_echo "$ac_try_echo") >&5
19206 (eval "$ac_compile") 2>conftest.er1
19208 grep -v '^ *+' conftest.er1
>conftest.err
19210 cat conftest.err
>&5
19211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); } && {
19213 test -z "$ac_c_werror_flag" ||
19214 test ! -s conftest.err
19215 } && test -s conftest.
$ac_objext; then
19218 $as_echo "$as_me: failed program was:" >&5
19219 sed 's/^/| /' conftest.
$ac_ext >&5
19221 ac_cv_type_pid_t
=yes
19224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19226 $as_echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.
$ac_ext >&5
19232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19234 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19235 $as_echo "$ac_cv_type_pid_t" >&6; }
19236 if test "x$ac_cv_type_pid_t" = x
""yes; then
19240 cat >>confdefs.h
<<_ACEOF
19246 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
19247 $as_echo_n "checking for size_t... " >&6; }
19248 if test "${ac_cv_type_size_t+set}" = set; then
19249 $as_echo_n "(cached) " >&6
19251 ac_cv_type_size_t
=no
19252 cat >conftest.
$ac_ext <<_ACEOF
19255 cat confdefs.h
>>conftest.
$ac_ext
19256 cat >>conftest.
$ac_ext <<_ACEOF
19257 /* end confdefs.h. */
19258 $ac_includes_default
19262 if (sizeof (size_t))
19268 rm -f conftest.
$ac_objext
19269 if { (ac_try
="$ac_compile"
19270 case "(($ac_try" in
19271 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19272 *) ac_try_echo=$ac_try;;
19274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19275 $as_echo "$ac_try_echo") >&5
19276 (eval "$ac_compile") 2>conftest.er1
19278 grep -v '^ *+' conftest.er1 >conftest.err
19280 cat conftest.err >&5
19281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } && {
19283 test -z "$ac_c_werror_flag" ||
19284 test ! -s conftest.err
19285 } && test -s conftest.$ac_objext; then
19286 cat >conftest.$ac_ext <<_ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h. */
19292 $ac_includes_default
19296 if (sizeof ((size_t)))
19302 rm -f conftest.$ac_objext
19303 if { (ac_try="$ac_compile"
19304 case "(($ac_try" in
19305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19306 *) ac_try_echo
=$ac_try;;
19308 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19309 $as_echo "$ac_try_echo") >&5
19310 (eval "$ac_compile") 2>conftest.er1
19312 grep -v '^ *+' conftest.er1
>conftest.err
19314 cat conftest.err
>&5
19315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); } && {
19317 test -z "$ac_c_werror_flag" ||
19318 test ! -s conftest.err
19319 } && test -s conftest.
$ac_objext; then
19322 $as_echo "$as_me: failed program was:" >&5
19323 sed 's/^/| /' conftest.
$ac_ext >&5
19325 ac_cv_type_size_t
=yes
19328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19330 $as_echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.
$ac_ext >&5
19336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19338 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19339 $as_echo "$ac_cv_type_size_t" >&6; }
19340 if test "x$ac_cv_type_size_t" = x
""yes; then
19344 cat >>confdefs.h
<<_ACEOF
19345 #define size_t unsigned int
19350 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
19351 $as_echo_n "checking for ssize_t... " >&6; }
19352 if test "${ac_cv_type_ssize_t+set}" = set; then
19353 $as_echo_n "(cached) " >&6
19355 ac_cv_type_ssize_t
=no
19356 cat >conftest.
$ac_ext <<_ACEOF
19359 cat confdefs.h
>>conftest.
$ac_ext
19360 cat >>conftest.
$ac_ext <<_ACEOF
19361 /* end confdefs.h. */
19362 $ac_includes_default
19366 if (sizeof (ssize_t))
19372 rm -f conftest.
$ac_objext
19373 if { (ac_try
="$ac_compile"
19374 case "(($ac_try" in
19375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19376 *) ac_try_echo=$ac_try;;
19378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19379 $as_echo "$ac_try_echo") >&5
19380 (eval "$ac_compile") 2>conftest.er1
19382 grep -v '^ *+' conftest.er1 >conftest.err
19384 cat conftest.err >&5
19385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); } && {
19387 test -z "$ac_c_werror_flag" ||
19388 test ! -s conftest.err
19389 } && test -s conftest.$ac_objext; then
19390 cat >conftest.$ac_ext <<_ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h. */
19396 $ac_includes_default
19400 if (sizeof ((ssize_t)))
19406 rm -f conftest.$ac_objext
19407 if { (ac_try="$ac_compile"
19408 case "(($ac_try" in
19409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19410 *) ac_try_echo
=$ac_try;;
19412 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19413 $as_echo "$ac_try_echo") >&5
19414 (eval "$ac_compile") 2>conftest.er1
19416 grep -v '^ *+' conftest.er1
>conftest.err
19418 cat conftest.err
>&5
19419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } && {
19421 test -z "$ac_c_werror_flag" ||
19422 test ! -s conftest.err
19423 } && test -s conftest.
$ac_objext; then
19426 $as_echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.
$ac_ext >&5
19429 ac_cv_type_ssize_t
=yes
19432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19434 $as_echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.
$ac_ext >&5
19440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19442 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
19443 $as_echo "$ac_cv_type_ssize_t" >&6; }
19444 if test "x$ac_cv_type_ssize_t" = x
""yes; then
19448 cat >>confdefs.h
<<_ACEOF
19449 #define ssize_t int
19454 { $as_echo "$as_me:$LINENO: checking for time_t" >&5
19455 $as_echo_n "checking for time_t... " >&6; }
19456 if test "${ac_cv_type_time_t+set}" = set; then
19457 $as_echo_n "(cached) " >&6
19459 ac_cv_type_time_t
=no
19460 cat >conftest.
$ac_ext <<_ACEOF
19463 cat confdefs.h
>>conftest.
$ac_ext
19464 cat >>conftest.
$ac_ext <<_ACEOF
19465 /* end confdefs.h. */
19466 $ac_includes_default
19470 if (sizeof (time_t))
19476 rm -f conftest.
$ac_objext
19477 if { (ac_try
="$ac_compile"
19478 case "(($ac_try" in
19479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19480 *) ac_try_echo=$ac_try;;
19482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19483 $as_echo "$ac_try_echo") >&5
19484 (eval "$ac_compile") 2>conftest.er1
19486 grep -v '^ *+' conftest.er1 >conftest.err
19488 cat conftest.err >&5
19489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } && {
19491 test -z "$ac_c_werror_flag" ||
19492 test ! -s conftest.err
19493 } && test -s conftest.$ac_objext; then
19494 cat >conftest.$ac_ext <<_ACEOF
19497 cat confdefs.h >>conftest.$ac_ext
19498 cat >>conftest.$ac_ext <<_ACEOF
19499 /* end confdefs.h. */
19500 $ac_includes_default
19504 if (sizeof ((time_t)))
19510 rm -f conftest.$ac_objext
19511 if { (ac_try="$ac_compile"
19512 case "(($ac_try" in
19513 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19514 *) ac_try_echo
=$ac_try;;
19516 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19517 $as_echo "$ac_try_echo") >&5
19518 (eval "$ac_compile") 2>conftest.er1
19520 grep -v '^ *+' conftest.er1
>conftest.err
19522 cat conftest.err
>&5
19523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); } && {
19525 test -z "$ac_c_werror_flag" ||
19526 test ! -s conftest.err
19527 } && test -s conftest.
$ac_objext; then
19530 $as_echo "$as_me: failed program was:" >&5
19531 sed 's/^/| /' conftest.
$ac_ext >&5
19533 ac_cv_type_time_t
=yes
19536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19538 $as_echo "$as_me: failed program was:" >&5
19539 sed 's/^/| /' conftest.
$ac_ext >&5
19544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19546 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
19547 $as_echo "$ac_cv_type_time_t" >&6; }
19548 if test "x$ac_cv_type_time_t" = x
""yes; then
19552 cat >>confdefs.h
<<_ACEOF
19553 #define time_t long
19560 { $as_echo "$as_me:$LINENO: checking for long long" >&5
19561 $as_echo_n "checking for long long... " >&6; }
19562 if test "${bash_cv_type_long_long+set}" = set; then
19563 $as_echo_n "(cached) " >&6
19565 cat >conftest.
$ac_ext <<_ACEOF
19568 cat confdefs.h
>>conftest.
$ac_ext
19569 cat >>conftest.
$ac_ext <<_ACEOF
19570 /* end confdefs.h. */
19572 long long ll = 1; int i = 63;
19577 long long llm = (long long) -1;
19578 return ll << i | ll >> i | llm / ll | llm % ll;
19584 rm -f conftest.
$ac_objext conftest
$ac_exeext
19585 if { (ac_try
="$ac_link"
19586 case "(($ac_try" in
19587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19588 *) ac_try_echo=$ac_try;;
19590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19591 $as_echo "$ac_try_echo") >&5
19592 (eval "$ac_link") 2>conftest.er1
19594 grep -v '^ *+' conftest.er1 >conftest.err
19596 cat conftest.err >&5
19597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); } && {
19599 test -z "$ac_c_werror_flag" ||
19600 test ! -s conftest.err
19601 } && test -s conftest$ac_exeext && {
19602 test "$cross_compiling" = yes ||
19603 $as_test_x conftest$ac_exeext
19605 bash_cv_type_long_long='long long'
19607 $as_echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19610 bash_cv_type_long_long='long'
19613 rm -rf conftest.dSYM
19614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19615 conftest$ac_exeext conftest.$ac_ext
19617 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
19618 $as_echo "$bash_cv_type_long_long" >&6; }
19619 if test "$bash_cv_type_long_long" = 'long long'; then
19620 cat >>confdefs.h <<\_ACEOF
19621 #define HAVE_LONG_LONG 1
19627 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
19628 $as_echo_n "checking for unsigned long long... " >&6; }
19629 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
19630 $as_echo_n "(cached) " >&6
19632 cat >conftest.$ac_ext <<_ACEOF
19635 cat confdefs.h >>conftest.$ac_ext
19636 cat >>conftest.$ac_ext <<_ACEOF
19637 /* end confdefs.h. */
19639 unsigned long long ull = 1; int i = 63;
19644 unsigned long long ullmax = (unsigned long long) -1;
19645 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19651 rm -f conftest.$ac_objext conftest$ac_exeext
19652 if { (ac_try="$ac_link"
19653 case "(($ac_try" in
19654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19655 *) ac_try_echo
=$ac_try;;
19657 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19658 $as_echo "$ac_try_echo") >&5
19659 (eval "$ac_link") 2>conftest.er1
19661 grep -v '^ *+' conftest.er1
>conftest.err
19663 cat conftest.err
>&5
19664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } && {
19666 test -z "$ac_c_werror_flag" ||
19667 test ! -s conftest.err
19668 } && test -s conftest
$ac_exeext && {
19669 test "$cross_compiling" = yes ||
19670 $as_test_x conftest
$ac_exeext
19672 bash_cv_type_unsigned_long_long
='unsigned long long'
19674 $as_echo "$as_me: failed program was:" >&5
19675 sed 's/^/| /' conftest.
$ac_ext >&5
19677 bash_cv_type_unsigned_long_long
='unsigned long'
19680 rm -rf conftest.dSYM
19681 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19682 conftest
$ac_exeext conftest.
$ac_ext
19684 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
19685 $as_echo "$bash_cv_type_unsigned_long_long" >&6; }
19686 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
19687 cat >>confdefs.h
<<\_ACEOF
19688 #define HAVE_UNSIGNED_LONG_LONG 1
19694 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19695 $as_echo_n "checking return type of signal handlers... " >&6; }
19696 if test "${ac_cv_type_signal+set}" = set; then
19697 $as_echo_n "(cached) " >&6
19699 cat >conftest.
$ac_ext <<_ACEOF
19702 cat confdefs.h
>>conftest.
$ac_ext
19703 cat >>conftest.
$ac_ext <<_ACEOF
19704 /* end confdefs.h. */
19705 #include <sys/types.h>
19706 #include <signal.h>
19711 return *(signal (0, 0)) (0) == 1;
19716 rm -f conftest.
$ac_objext
19717 if { (ac_try
="$ac_compile"
19718 case "(($ac_try" in
19719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19720 *) ac_try_echo=$ac_try;;
19722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19723 $as_echo "$ac_try_echo") >&5
19724 (eval "$ac_compile") 2>conftest.er1
19726 grep -v '^ *+' conftest.er1 >conftest.err
19728 cat conftest.err >&5
19729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } && {
19731 test -z "$ac_c_werror_flag" ||
19732 test ! -s conftest.err
19733 } && test -s conftest.$ac_objext; then
19734 ac_cv_type_signal=int
19736 $as_echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19739 ac_cv_type_signal=void
19742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19744 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19745 $as_echo "$ac_cv_type_signal" >&6; }
19747 cat >>confdefs.h <<_ACEOF
19748 #define RETSIGTYPE $ac_cv_type_signal
19753 # The cast to long int works around a bug in the HP C Compiler
19754 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19755 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
19756 # This bug is HP SR number 8606223364.
19757 { $as_echo "$as_me:$LINENO: checking size of char" >&5
19758 $as_echo_n "checking size of char... " >&6; }
19759 if test "${ac_cv_sizeof_char+set}" = set; then
19760 $as_echo_n "(cached) " >&6
19762 if test "$cross_compiling" = yes; then
19763 # Depending upon the size, compute the lo and hi bounds.
19764 cat >conftest.$ac_ext <<_ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h. */
19770 $ac_includes_default
19774 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
19781 rm -f conftest.$ac_objext
19782 if { (ac_try="$ac_compile"
19783 case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19788 $as_echo "$ac_try_echo") >&5
19789 (eval "$ac_compile") 2>conftest.er1
19791 grep -v '^
*+' conftest.er1 >conftest.err
19793 cat conftest.err >&5
19794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } && {
19796 test -z "$ac_c_werror_flag" ||
19797 test ! -s conftest.err
19798 } && test -s conftest.$ac_objext; then
19801 cat >conftest.$ac_ext <<_ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h. */
19807 $ac_includes_default
19811 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
19818 rm -f conftest.$ac_objext
19819 if { (ac_try="$ac_compile"
19820 case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19825 $as_echo "$ac_try_echo") >&5
19826 (eval "$ac_compile") 2>conftest.er1
19828 grep -v '^
*+' conftest.er1 >conftest.err
19830 cat conftest.err >&5
19831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } && {
19833 test -z "$ac_c_werror_flag" ||
19834 test ! -s conftest.err
19835 } && test -s conftest.$ac_objext; then
19836 ac_hi=$ac_mid; break
19838 $as_echo "$as_me: failed program was:" >&5
19839 sed 's
/^
/|
/' conftest.$ac_ext >&5
19841 ac_lo=`expr $ac_mid + 1`
19842 if test $ac_lo -le $ac_mid; then
19846 ac_mid=`expr 2 '*' $ac_mid + 1`
19849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19852 $as_echo "$as_me: failed program was:" >&5
19853 sed 's
/^
/|
/' conftest.$ac_ext >&5
19855 cat >conftest.$ac_ext <<_ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19861 $ac_includes_default
19865 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
19872 rm -f conftest.$ac_objext
19873 if { (ac_try="$ac_compile"
19874 case "(($ac_try" in
19875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876 *) ac_try_echo=$ac_try;;
19878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19879 $as_echo "$ac_try_echo") >&5
19880 (eval "$ac_compile") 2>conftest.er1
19882 grep -v '^
*+' conftest.er1 >conftest.err
19884 cat conftest.err >&5
19885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } && {
19887 test -z "$ac_c_werror_flag" ||
19888 test ! -s conftest.err
19889 } && test -s conftest.$ac_objext; then
19892 cat >conftest.$ac_ext <<_ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h. */
19898 $ac_includes_default
19902 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
19909 rm -f conftest.$ac_objext
19910 if { (ac_try="$ac_compile"
19911 case "(($ac_try" in
19912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913 *) ac_try_echo=$ac_try;;
19915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19916 $as_echo "$ac_try_echo") >&5
19917 (eval "$ac_compile") 2>conftest.er1
19919 grep -v '^
*+' conftest.er1 >conftest.err
19921 cat conftest.err >&5
19922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } && {
19924 test -z "$ac_c_werror_flag" ||
19925 test ! -s conftest.err
19926 } && test -s conftest.$ac_objext; then
19927 ac_lo=$ac_mid; break
19929 $as_echo "$as_me: failed program was:" >&5
19930 sed 's
/^
/|
/' conftest.$ac_ext >&5
19932 ac_hi=`expr '(' $ac_mid ')' - 1`
19933 if test $ac_mid -le $ac_hi; then
19937 ac_mid=`expr 2 '*' $ac_mid`
19940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19943 $as_echo "$as_me: failed program was:" >&5
19944 sed 's
/^
/|
/' conftest.$ac_ext >&5
19949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19953 # Binary search between lo and hi bounds.
19954 while test "x$ac_lo" != "x$ac_hi"; do
19955 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19956 cat >conftest.$ac_ext <<_ACEOF
19959 cat confdefs.h >>conftest.$ac_ext
19960 cat >>conftest.$ac_ext <<_ACEOF
19961 /* end confdefs.h. */
19962 $ac_includes_default
19966 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
19973 rm -f conftest.$ac_objext
19974 if { (ac_try="$ac_compile"
19975 case "(($ac_try" in
19976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977 *) ac_try_echo=$ac_try;;
19979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19980 $as_echo "$ac_try_echo") >&5
19981 (eval "$ac_compile") 2>conftest.er1
19983 grep -v '^
*+' conftest.er1 >conftest.err
19985 cat conftest.err >&5
19986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); } && {
19988 test -z "$ac_c_werror_flag" ||
19989 test ! -s conftest.err
19990 } && test -s conftest.$ac_objext; then
19993 $as_echo "$as_me: failed program was:" >&5
19994 sed 's
/^
/|
/' conftest.$ac_ext >&5
19996 ac_lo=`expr '(' $ac_mid ')' + 1`
19999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20002 ?*) ac_cv_sizeof_char=$ac_lo;;
20003 '') if test "$ac_cv_type_char" = yes; then
20004 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20005 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
20006 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20007 See \`config.log
' for more details." >&5
20008 $as_echo "$as_me: error: cannot compute sizeof (char)
20009 See \`config.log' for more details.
" >&2;}
20010 { (exit 77); exit 77; }; }; }
20012 ac_cv_sizeof_char=0
20016 cat >conftest.$ac_ext <<_ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 $ac_includes_default
20023 static long int longval () { return (long int) (sizeof (char)); }
20024 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
20026 #include <stdlib.h>
20031 FILE *f = fopen ("conftest.val
", "w
");
20034 if (((long int) (sizeof (char))) < 0)
20036 long int i = longval ();
20037 if (i != ((long int) (sizeof (char))))
20039 fprintf (f, "%ld
", i);
20043 unsigned long int i = ulongval ();
20044 if (i != ((long int) (sizeof (char))))
20046 fprintf (f, "%lu
", i);
20048 /* Do not output a trailing newline, as this causes \r\n confusion
20049 on some platforms. */
20050 return ferror (f) || fclose (f) != 0;
20056 rm -f conftest$ac_exeext
20057 if { (ac_try="$ac_link"
20058 case "(($ac_try" in
20059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060 *) ac_try_echo=$ac_try;;
20062 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20063 $as_echo "$ac_try_echo") >&5
20064 (eval "$ac_link") 2>&5
20066 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20068 { (case "(($ac_try" in
20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070 *) ac_try_echo=$ac_try;;
20072 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20073 $as_echo "$ac_try_echo") >&5
20074 (eval "$ac_try") 2>&5
20076 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20077 (exit $ac_status); }; }; then
20078 ac_cv_sizeof_char=`cat conftest.val`
20080 $as_echo "$as_me: program exited with status
$ac_status" >&5
20081 $as_echo "$as_me: failed program was
:" >&5
20082 sed 's/^/| /' conftest.$ac_ext >&5
20084 ( exit $ac_status )
20085 if test "$ac_cv_type_char" = yes; then
20086 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
20087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20088 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20089 See \`config.log' for more details.
" >&5
20090 $as_echo "$as_me: error
: cannot compute sizeof
(char
)
20091 See \
`config.log' for more details." >&2;}
20092 { (exit 77); exit 77; }; }; }
20094 ac_cv_sizeof_char=0
20097 rm -rf conftest.dSYM
20098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20102 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
20103 $as_echo "$ac_cv_sizeof_char" >&6; }
20107 cat >>confdefs.h <<_ACEOF
20108 #define SIZEOF_CHAR $ac_cv_sizeof_char
20112 # The cast to long int works around a bug in the HP C Compiler
20113 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20114 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
20115 # This bug is HP SR number 8606223364.
20116 { $as_echo "$as_me:$LINENO: checking size of short" >&5
20117 $as_echo_n "checking size of short... " >&6; }
20118 if test "${ac_cv_sizeof_short+set}" = set; then
20119 $as_echo_n "(cached) " >&6
20121 if test "$cross_compiling" = yes; then
20122 # Depending upon the size, compute the lo and hi bounds.
20123 cat >conftest.$ac_ext <<_ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h. */
20129 $ac_includes_default
20133 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
20140 rm -f conftest.$ac_objext
20141 if { (ac_try="$ac_compile"
20142 case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20147 $as_echo "$ac_try_echo") >&5
20148 (eval "$ac_compile") 2>conftest.er1
20150 grep -v '^
*+' conftest.er1 >conftest.err
20152 cat conftest.err >&5
20153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); } && {
20155 test -z "$ac_c_werror_flag" ||
20156 test ! -s conftest.err
20157 } && test -s conftest.$ac_objext; then
20160 cat >conftest.$ac_ext <<_ACEOF
20163 cat confdefs.h >>conftest.$ac_ext
20164 cat >>conftest.$ac_ext <<_ACEOF
20165 /* end confdefs.h. */
20166 $ac_includes_default
20170 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
20177 rm -f conftest.$ac_objext
20178 if { (ac_try="$ac_compile"
20179 case "(($ac_try" in
20180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20181 *) ac_try_echo=$ac_try;;
20183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20184 $as_echo "$ac_try_echo") >&5
20185 (eval "$ac_compile") 2>conftest.er1
20187 grep -v '^
*+' conftest.er1 >conftest.err
20189 cat conftest.err >&5
20190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } && {
20192 test -z "$ac_c_werror_flag" ||
20193 test ! -s conftest.err
20194 } && test -s conftest.$ac_objext; then
20195 ac_hi=$ac_mid; break
20197 $as_echo "$as_me: failed program was:" >&5
20198 sed 's
/^
/|
/' conftest.$ac_ext >&5
20200 ac_lo=`expr $ac_mid + 1`
20201 if test $ac_lo -le $ac_mid; then
20205 ac_mid=`expr 2 '*' $ac_mid + 1`
20208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20211 $as_echo "$as_me: failed program was:" >&5
20212 sed 's
/^
/|
/' conftest.$ac_ext >&5
20214 cat >conftest.$ac_ext <<_ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h. */
20220 $ac_includes_default
20224 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
20231 rm -f conftest.$ac_objext
20232 if { (ac_try="$ac_compile"
20233 case "(($ac_try" in
20234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235 *) ac_try_echo=$ac_try;;
20237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20238 $as_echo "$ac_try_echo") >&5
20239 (eval "$ac_compile") 2>conftest.er1
20241 grep -v '^
*+' conftest.er1 >conftest.err
20243 cat conftest.err >&5
20244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); } && {
20246 test -z "$ac_c_werror_flag" ||
20247 test ! -s conftest.err
20248 } && test -s conftest.$ac_objext; then
20251 cat >conftest.$ac_ext <<_ACEOF
20254 cat confdefs.h >>conftest.$ac_ext
20255 cat >>conftest.$ac_ext <<_ACEOF
20256 /* end confdefs.h. */
20257 $ac_includes_default
20261 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
20268 rm -f conftest.$ac_objext
20269 if { (ac_try="$ac_compile"
20270 case "(($ac_try" in
20271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20272 *) ac_try_echo=$ac_try;;
20274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20275 $as_echo "$ac_try_echo") >&5
20276 (eval "$ac_compile") 2>conftest.er1
20278 grep -v '^
*+' conftest.er1 >conftest.err
20280 cat conftest.err >&5
20281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); } && {
20283 test -z "$ac_c_werror_flag" ||
20284 test ! -s conftest.err
20285 } && test -s conftest.$ac_objext; then
20286 ac_lo=$ac_mid; break
20288 $as_echo "$as_me: failed program was:" >&5
20289 sed 's
/^
/|
/' conftest.$ac_ext >&5
20291 ac_hi=`expr '(' $ac_mid ')' - 1`
20292 if test $ac_mid -le $ac_hi; then
20296 ac_mid=`expr 2 '*' $ac_mid`
20299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20302 $as_echo "$as_me: failed program was:" >&5
20303 sed 's
/^
/|
/' conftest.$ac_ext >&5
20308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20312 # Binary search between lo and hi bounds.
20313 while test "x$ac_lo" != "x$ac_hi"; do
20314 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20315 cat >conftest.$ac_ext <<_ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20321 $ac_includes_default
20325 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
20332 rm -f conftest.$ac_objext
20333 if { (ac_try="$ac_compile"
20334 case "(($ac_try" in
20335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20336 *) ac_try_echo=$ac_try;;
20338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20339 $as_echo "$ac_try_echo") >&5
20340 (eval "$ac_compile") 2>conftest.er1
20342 grep -v '^
*+' conftest.er1 >conftest.err
20344 cat conftest.err >&5
20345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); } && {
20347 test -z "$ac_c_werror_flag" ||
20348 test ! -s conftest.err
20349 } && test -s conftest.$ac_objext; then
20352 $as_echo "$as_me: failed program was:" >&5
20353 sed 's
/^
/|
/' conftest.$ac_ext >&5
20355 ac_lo=`expr '(' $ac_mid ')' + 1`
20358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20361 ?*) ac_cv_sizeof_short=$ac_lo;;
20362 '') if test "$ac_cv_type_short" = yes; then
20363 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20364 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
20365 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20366 See \`config.log
' for more details." >&5
20367 $as_echo "$as_me: error: cannot compute sizeof (short)
20368 See \`config.log' for more details.
" >&2;}
20369 { (exit 77); exit 77; }; }; }
20371 ac_cv_sizeof_short=0
20375 cat >conftest.$ac_ext <<_ACEOF
20378 cat confdefs.h >>conftest.$ac_ext
20379 cat >>conftest.$ac_ext <<_ACEOF
20380 /* end confdefs.h. */
20381 $ac_includes_default
20382 static long int longval () { return (long int) (sizeof (short)); }
20383 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
20385 #include <stdlib.h>
20390 FILE *f = fopen ("conftest.val
", "w
");
20393 if (((long int) (sizeof (short))) < 0)
20395 long int i = longval ();
20396 if (i != ((long int) (sizeof (short))))
20398 fprintf (f, "%ld
", i);
20402 unsigned long int i = ulongval ();
20403 if (i != ((long int) (sizeof (short))))
20405 fprintf (f, "%lu
", i);
20407 /* Do not output a trailing newline, as this causes \r\n confusion
20408 on some platforms. */
20409 return ferror (f) || fclose (f) != 0;
20415 rm -f conftest$ac_exeext
20416 if { (ac_try="$ac_link"
20417 case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20421 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20422 $as_echo "$ac_try_echo") >&5
20423 (eval "$ac_link") 2>&5
20425 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20427 { (case "(($ac_try" in
20428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429 *) ac_try_echo=$ac_try;;
20431 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20432 $as_echo "$ac_try_echo") >&5
20433 (eval "$ac_try") 2>&5
20435 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20436 (exit $ac_status); }; }; then
20437 ac_cv_sizeof_short=`cat conftest.val`
20439 $as_echo "$as_me: program exited with status
$ac_status" >&5
20440 $as_echo "$as_me: failed program was
:" >&5
20441 sed 's/^/| /' conftest.$ac_ext >&5
20443 ( exit $ac_status )
20444 if test "$ac_cv_type_short" = yes; then
20445 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
20446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20447 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20448 See \`config.log' for more details.
" >&5
20449 $as_echo "$as_me: error
: cannot compute sizeof
(short
)
20450 See \
`config.log' for more details." >&2;}
20451 { (exit 77); exit 77; }; }; }
20453 ac_cv_sizeof_short=0
20456 rm -rf conftest.dSYM
20457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20461 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20462 $as_echo "$ac_cv_sizeof_short" >&6; }
20466 cat >>confdefs.h <<_ACEOF
20467 #define SIZEOF_SHORT $ac_cv_sizeof_short
20471 # The cast to long int works around a bug in the HP C Compiler
20472 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20473 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
20474 # This bug is HP SR number 8606223364.
20475 { $as_echo "$as_me:$LINENO: checking size of int" >&5
20476 $as_echo_n "checking size of int... " >&6; }
20477 if test "${ac_cv_sizeof_int+set}" = set; then
20478 $as_echo_n "(cached) " >&6
20480 if test "$cross_compiling" = yes; then
20481 # Depending upon the size, compute the lo and hi bounds.
20482 cat >conftest.$ac_ext <<_ACEOF
20485 cat confdefs.h >>conftest.$ac_ext
20486 cat >>conftest.$ac_ext <<_ACEOF
20487 /* end confdefs.h. */
20488 $ac_includes_default
20492 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
20499 rm -f conftest.$ac_objext
20500 if { (ac_try="$ac_compile"
20501 case "(($ac_try" in
20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503 *) ac_try_echo=$ac_try;;
20505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20506 $as_echo "$ac_try_echo") >&5
20507 (eval "$ac_compile") 2>conftest.er1
20509 grep -v '^
*+' conftest.er1 >conftest.err
20511 cat conftest.err >&5
20512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); } && {
20514 test -z "$ac_c_werror_flag" ||
20515 test ! -s conftest.err
20516 } && test -s conftest.$ac_objext; then
20519 cat >conftest.$ac_ext <<_ACEOF
20522 cat confdefs.h >>conftest.$ac_ext
20523 cat >>conftest.$ac_ext <<_ACEOF
20524 /* end confdefs.h. */
20525 $ac_includes_default
20529 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
20536 rm -f conftest.$ac_objext
20537 if { (ac_try="$ac_compile"
20538 case "(($ac_try" in
20539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540 *) ac_try_echo=$ac_try;;
20542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20543 $as_echo "$ac_try_echo") >&5
20544 (eval "$ac_compile") 2>conftest.er1
20546 grep -v '^
*+' conftest.er1 >conftest.err
20548 cat conftest.err >&5
20549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } && {
20551 test -z "$ac_c_werror_flag" ||
20552 test ! -s conftest.err
20553 } && test -s conftest.$ac_objext; then
20554 ac_hi=$ac_mid; break
20556 $as_echo "$as_me: failed program was:" >&5
20557 sed 's
/^
/|
/' conftest.$ac_ext >&5
20559 ac_lo=`expr $ac_mid + 1`
20560 if test $ac_lo -le $ac_mid; then
20564 ac_mid=`expr 2 '*' $ac_mid + 1`
20567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20570 $as_echo "$as_me: failed program was:" >&5
20571 sed 's
/^
/|
/' conftest.$ac_ext >&5
20573 cat >conftest.$ac_ext <<_ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h. */
20579 $ac_includes_default
20583 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
20590 rm -f conftest.$ac_objext
20591 if { (ac_try="$ac_compile"
20592 case "(($ac_try" in
20593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20594 *) ac_try_echo=$ac_try;;
20596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20597 $as_echo "$ac_try_echo") >&5
20598 (eval "$ac_compile") 2>conftest.er1
20600 grep -v '^
*+' conftest.er1 >conftest.err
20602 cat conftest.err >&5
20603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } && {
20605 test -z "$ac_c_werror_flag" ||
20606 test ! -s conftest.err
20607 } && test -s conftest.$ac_objext; then
20610 cat >conftest.$ac_ext <<_ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h. */
20616 $ac_includes_default
20620 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
20627 rm -f conftest.$ac_objext
20628 if { (ac_try="$ac_compile"
20629 case "(($ac_try" in
20630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631 *) ac_try_echo=$ac_try;;
20633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20634 $as_echo "$ac_try_echo") >&5
20635 (eval "$ac_compile") 2>conftest.er1
20637 grep -v '^
*+' conftest.er1 >conftest.err
20639 cat conftest.err >&5
20640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); } && {
20642 test -z "$ac_c_werror_flag" ||
20643 test ! -s conftest.err
20644 } && test -s conftest.$ac_objext; then
20645 ac_lo=$ac_mid; break
20647 $as_echo "$as_me: failed program was:" >&5
20648 sed 's
/^
/|
/' conftest.$ac_ext >&5
20650 ac_hi=`expr '(' $ac_mid ')' - 1`
20651 if test $ac_mid -le $ac_hi; then
20655 ac_mid=`expr 2 '*' $ac_mid`
20658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20661 $as_echo "$as_me: failed program was:" >&5
20662 sed 's
/^
/|
/' conftest.$ac_ext >&5
20667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20671 # Binary search between lo and hi bounds.
20672 while test "x$ac_lo" != "x$ac_hi"; do
20673 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20674 cat >conftest.$ac_ext <<_ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20680 $ac_includes_default
20684 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
20691 rm -f conftest.$ac_objext
20692 if { (ac_try="$ac_compile"
20693 case "(($ac_try" in
20694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695 *) ac_try_echo=$ac_try;;
20697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20698 $as_echo "$ac_try_echo") >&5
20699 (eval "$ac_compile") 2>conftest.er1
20701 grep -v '^
*+' conftest.er1 >conftest.err
20703 cat conftest.err >&5
20704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } && {
20706 test -z "$ac_c_werror_flag" ||
20707 test ! -s conftest.err
20708 } && test -s conftest.$ac_objext; then
20711 $as_echo "$as_me: failed program was:" >&5
20712 sed 's
/^
/|
/' conftest.$ac_ext >&5
20714 ac_lo=`expr '(' $ac_mid ')' + 1`
20717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20720 ?*) ac_cv_sizeof_int=$ac_lo;;
20721 '') if test "$ac_cv_type_int" = yes; then
20722 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20723 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
20724 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20725 See \`config.log
' for more details." >&5
20726 $as_echo "$as_me: error: cannot compute sizeof (int)
20727 See \`config.log' for more details.
" >&2;}
20728 { (exit 77); exit 77; }; }; }
20734 cat >conftest.$ac_ext <<_ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20740 $ac_includes_default
20741 static long int longval () { return (long int) (sizeof (int)); }
20742 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
20744 #include <stdlib.h>
20749 FILE *f = fopen ("conftest.val
", "w
");
20752 if (((long int) (sizeof (int))) < 0)
20754 long int i = longval ();
20755 if (i != ((long int) (sizeof (int))))
20757 fprintf (f, "%ld
", i);
20761 unsigned long int i = ulongval ();
20762 if (i != ((long int) (sizeof (int))))
20764 fprintf (f, "%lu
", i);
20766 /* Do not output a trailing newline, as this causes \r\n confusion
20767 on some platforms. */
20768 return ferror (f) || fclose (f) != 0;
20774 rm -f conftest$ac_exeext
20775 if { (ac_try="$ac_link"
20776 case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20780 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20781 $as_echo "$ac_try_echo") >&5
20782 (eval "$ac_link") 2>&5
20784 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20786 { (case "(($ac_try" in
20787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20788 *) ac_try_echo=$ac_try;;
20790 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20791 $as_echo "$ac_try_echo") >&5
20792 (eval "$ac_try") 2>&5
20794 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20795 (exit $ac_status); }; }; then
20796 ac_cv_sizeof_int=`cat conftest.val`
20798 $as_echo "$as_me: program exited with status
$ac_status" >&5
20799 $as_echo "$as_me: failed program was
:" >&5
20800 sed 's/^/| /' conftest.$ac_ext >&5
20802 ( exit $ac_status )
20803 if test "$ac_cv_type_int" = yes; then
20804 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
20805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20806 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20807 See \`config.log' for more details.
" >&5
20808 $as_echo "$as_me: error
: cannot compute sizeof
(int
)
20809 See \
`config.log' for more details." >&2;}
20810 { (exit 77); exit 77; }; }; }
20815 rm -rf conftest.dSYM
20816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20820 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20821 $as_echo "$ac_cv_sizeof_int" >&6; }
20825 cat >>confdefs.h <<_ACEOF
20826 #define SIZEOF_INT $ac_cv_sizeof_int
20830 # The cast to long int works around a bug in the HP C Compiler
20831 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20832 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
20833 # This bug is HP SR number 8606223364.
20834 { $as_echo "$as_me:$LINENO: checking size of long" >&5
20835 $as_echo_n "checking size of long... " >&6; }
20836 if test "${ac_cv_sizeof_long+set}" = set; then
20837 $as_echo_n "(cached) " >&6
20839 if test "$cross_compiling" = yes; then
20840 # Depending upon the size, compute the lo and hi bounds.
20841 cat >conftest.$ac_ext <<_ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h. */
20847 $ac_includes_default
20851 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
20858 rm -f conftest.$ac_objext
20859 if { (ac_try="$ac_compile"
20860 case "(($ac_try" in
20861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862 *) ac_try_echo=$ac_try;;
20864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20865 $as_echo "$ac_try_echo") >&5
20866 (eval "$ac_compile") 2>conftest.er1
20868 grep -v '^
*+' conftest.er1 >conftest.err
20870 cat conftest.err >&5
20871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } && {
20873 test -z "$ac_c_werror_flag" ||
20874 test ! -s conftest.err
20875 } && test -s conftest.$ac_objext; then
20878 cat >conftest.$ac_ext <<_ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h. */
20884 $ac_includes_default
20888 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
20895 rm -f conftest.$ac_objext
20896 if { (ac_try="$ac_compile"
20897 case "(($ac_try" in
20898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899 *) ac_try_echo=$ac_try;;
20901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20902 $as_echo "$ac_try_echo") >&5
20903 (eval "$ac_compile") 2>conftest.er1
20905 grep -v '^
*+' conftest.er1 >conftest.err
20907 cat conftest.err >&5
20908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } && {
20910 test -z "$ac_c_werror_flag" ||
20911 test ! -s conftest.err
20912 } && test -s conftest.$ac_objext; then
20913 ac_hi=$ac_mid; break
20915 $as_echo "$as_me: failed program was:" >&5
20916 sed 's
/^
/|
/' conftest.$ac_ext >&5
20918 ac_lo=`expr $ac_mid + 1`
20919 if test $ac_lo -le $ac_mid; then
20923 ac_mid=`expr 2 '*' $ac_mid + 1`
20926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20929 $as_echo "$as_me: failed program was:" >&5
20930 sed 's
/^
/|
/' conftest.$ac_ext >&5
20932 cat >conftest.$ac_ext <<_ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h. */
20938 $ac_includes_default
20942 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
20949 rm -f conftest.$ac_objext
20950 if { (ac_try="$ac_compile"
20951 case "(($ac_try" in
20952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20953 *) ac_try_echo=$ac_try;;
20955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20956 $as_echo "$ac_try_echo") >&5
20957 (eval "$ac_compile") 2>conftest.er1
20959 grep -v '^
*+' conftest.er1 >conftest.err
20961 cat conftest.err >&5
20962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); } && {
20964 test -z "$ac_c_werror_flag" ||
20965 test ! -s conftest.err
20966 } && test -s conftest.$ac_objext; then
20969 cat >conftest.$ac_ext <<_ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20975 $ac_includes_default
20979 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
20986 rm -f conftest.$ac_objext
20987 if { (ac_try="$ac_compile"
20988 case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20993 $as_echo "$ac_try_echo") >&5
20994 (eval "$ac_compile") 2>conftest.er1
20996 grep -v '^
*+' conftest.er1 >conftest.err
20998 cat conftest.err >&5
20999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } && {
21001 test -z "$ac_c_werror_flag" ||
21002 test ! -s conftest.err
21003 } && test -s conftest.$ac_objext; then
21004 ac_lo=$ac_mid; break
21006 $as_echo "$as_me: failed program was:" >&5
21007 sed 's
/^
/|
/' conftest.$ac_ext >&5
21009 ac_hi=`expr '(' $ac_mid ')' - 1`
21010 if test $ac_mid -le $ac_hi; then
21014 ac_mid=`expr 2 '*' $ac_mid`
21017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21020 $as_echo "$as_me: failed program was:" >&5
21021 sed 's
/^
/|
/' conftest.$ac_ext >&5
21026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21030 # Binary search between lo and hi bounds.
21031 while test "x$ac_lo" != "x$ac_hi"; do
21032 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21033 cat >conftest.$ac_ext <<_ACEOF
21036 cat confdefs.h >>conftest.$ac_ext
21037 cat >>conftest.$ac_ext <<_ACEOF
21038 /* end confdefs.h. */
21039 $ac_includes_default
21043 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
21050 rm -f conftest.$ac_objext
21051 if { (ac_try="$ac_compile"
21052 case "(($ac_try" in
21053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054 *) ac_try_echo=$ac_try;;
21056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21057 $as_echo "$ac_try_echo") >&5
21058 (eval "$ac_compile") 2>conftest.er1
21060 grep -v '^
*+' conftest.er1 >conftest.err
21062 cat conftest.err >&5
21063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } && {
21065 test -z "$ac_c_werror_flag" ||
21066 test ! -s conftest.err
21067 } && test -s conftest.$ac_objext; then
21070 $as_echo "$as_me: failed program was:" >&5
21071 sed 's
/^
/|
/' conftest.$ac_ext >&5
21073 ac_lo=`expr '(' $ac_mid ')' + 1`
21076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21079 ?*) ac_cv_sizeof_long=$ac_lo;;
21080 '') if test "$ac_cv_type_long" = yes; then
21081 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21082 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
21083 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21084 See \`config.log
' for more details." >&5
21085 $as_echo "$as_me: error: cannot compute sizeof (long)
21086 See \`config.log' for more details.
" >&2;}
21087 { (exit 77); exit 77; }; }; }
21089 ac_cv_sizeof_long=0
21093 cat >conftest.$ac_ext <<_ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h. */
21099 $ac_includes_default
21100 static long int longval () { return (long int) (sizeof (long)); }
21101 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
21103 #include <stdlib.h>
21108 FILE *f = fopen ("conftest.val
", "w
");
21111 if (((long int) (sizeof (long))) < 0)
21113 long int i = longval ();
21114 if (i != ((long int) (sizeof (long))))
21116 fprintf (f, "%ld
", i);
21120 unsigned long int i = ulongval ();
21121 if (i != ((long int) (sizeof (long))))
21123 fprintf (f, "%lu
", i);
21125 /* Do not output a trailing newline, as this causes \r\n confusion
21126 on some platforms. */
21127 return ferror (f) || fclose (f) != 0;
21133 rm -f conftest$ac_exeext
21134 if { (ac_try="$ac_link"
21135 case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21139 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21140 $as_echo "$ac_try_echo") >&5
21141 (eval "$ac_link") 2>&5
21143 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21145 { (case "(($ac_try" in
21146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21147 *) ac_try_echo=$ac_try;;
21149 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21150 $as_echo "$ac_try_echo") >&5
21151 (eval "$ac_try") 2>&5
21153 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21154 (exit $ac_status); }; }; then
21155 ac_cv_sizeof_long=`cat conftest.val`
21157 $as_echo "$as_me: program exited with status
$ac_status" >&5
21158 $as_echo "$as_me: failed program was
:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21161 ( exit $ac_status )
21162 if test "$ac_cv_type_long" = yes; then
21163 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
21164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21165 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21166 See \`config.log' for more details.
" >&5
21167 $as_echo "$as_me: error
: cannot compute sizeof
(long
)
21168 See \
`config.log' for more details." >&2;}
21169 { (exit 77); exit 77; }; }; }
21171 ac_cv_sizeof_long=0
21174 rm -rf conftest.dSYM
21175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21179 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21180 $as_echo "$ac_cv_sizeof_long" >&6; }
21184 cat >>confdefs.h <<_ACEOF
21185 #define SIZEOF_LONG $ac_cv_sizeof_long
21189 # The cast to long int works around a bug in the HP C Compiler
21190 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21191 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
21192 # This bug is HP SR number 8606223364.
21193 { $as_echo "$as_me:$LINENO: checking size of char *" >&5
21194 $as_echo_n "checking size of char *... " >&6; }
21195 if test "${ac_cv_sizeof_char_p+set}" = set; then
21196 $as_echo_n "(cached) " >&6
21198 if test "$cross_compiling" = yes; then
21199 # Depending upon the size, compute the lo and hi bounds.
21200 cat >conftest.$ac_ext <<_ACEOF
21203 cat confdefs.h >>conftest.$ac_ext
21204 cat >>conftest.$ac_ext <<_ACEOF
21205 /* end confdefs.h. */
21206 $ac_includes_default
21210 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= 0)];
21217 rm -f conftest.$ac_objext
21218 if { (ac_try="$ac_compile"
21219 case "(($ac_try" in
21220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221 *) ac_try_echo=$ac_try;;
21223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21224 $as_echo "$ac_try_echo") >&5
21225 (eval "$ac_compile") 2>conftest.er1
21227 grep -v '^
*+' conftest.er1 >conftest.err
21229 cat conftest.err >&5
21230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } && {
21232 test -z "$ac_c_werror_flag" ||
21233 test ! -s conftest.err
21234 } && test -s conftest.$ac_objext; then
21237 cat >conftest.$ac_ext <<_ACEOF
21240 cat confdefs.h >>conftest.$ac_ext
21241 cat >>conftest.$ac_ext <<_ACEOF
21242 /* end confdefs.h. */
21243 $ac_includes_default
21247 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
21254 rm -f conftest.$ac_objext
21255 if { (ac_try="$ac_compile"
21256 case "(($ac_try" in
21257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258 *) ac_try_echo=$ac_try;;
21260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21261 $as_echo "$ac_try_echo") >&5
21262 (eval "$ac_compile") 2>conftest.er1
21264 grep -v '^
*+' conftest.er1 >conftest.err
21266 cat conftest.err >&5
21267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); } && {
21269 test -z "$ac_c_werror_flag" ||
21270 test ! -s conftest.err
21271 } && test -s conftest.$ac_objext; then
21272 ac_hi=$ac_mid; break
21274 $as_echo "$as_me: failed program was:" >&5
21275 sed 's
/^
/|
/' conftest.$ac_ext >&5
21277 ac_lo=`expr $ac_mid + 1`
21278 if test $ac_lo -le $ac_mid; then
21282 ac_mid=`expr 2 '*' $ac_mid + 1`
21285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21288 $as_echo "$as_me: failed program was:" >&5
21289 sed 's
/^
/|
/' conftest.$ac_ext >&5
21291 cat >conftest.$ac_ext <<_ACEOF
21294 cat confdefs.h >>conftest.$ac_ext
21295 cat >>conftest.$ac_ext <<_ACEOF
21296 /* end confdefs.h. */
21297 $ac_includes_default
21301 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) < 0)];
21308 rm -f conftest.$ac_objext
21309 if { (ac_try="$ac_compile"
21310 case "(($ac_try" in
21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312 *) ac_try_echo=$ac_try;;
21314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21315 $as_echo "$ac_try_echo") >&5
21316 (eval "$ac_compile") 2>conftest.er1
21318 grep -v '^
*+' conftest.er1 >conftest.err
21320 cat conftest.err >&5
21321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } && {
21323 test -z "$ac_c_werror_flag" ||
21324 test ! -s conftest.err
21325 } && test -s conftest.$ac_objext; then
21328 cat >conftest.$ac_ext <<_ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h. */
21334 $ac_includes_default
21338 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)];
21345 rm -f conftest.$ac_objext
21346 if { (ac_try="$ac_compile"
21347 case "(($ac_try" in
21348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349 *) ac_try_echo=$ac_try;;
21351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21352 $as_echo "$ac_try_echo") >&5
21353 (eval "$ac_compile") 2>conftest.er1
21355 grep -v '^
*+' conftest.er1 >conftest.err
21357 cat conftest.err >&5
21358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); } && {
21360 test -z "$ac_c_werror_flag" ||
21361 test ! -s conftest.err
21362 } && test -s conftest.$ac_objext; then
21363 ac_lo=$ac_mid; break
21365 $as_echo "$as_me: failed program was:" >&5
21366 sed 's
/^
/|
/' conftest.$ac_ext >&5
21368 ac_hi=`expr '(' $ac_mid ')' - 1`
21369 if test $ac_mid -le $ac_hi; then
21373 ac_mid=`expr 2 '*' $ac_mid`
21376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21379 $as_echo "$as_me: failed program was:" >&5
21380 sed 's
/^
/|
/' conftest.$ac_ext >&5
21385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21389 # Binary search between lo and hi bounds.
21390 while test "x$ac_lo" != "x$ac_hi"; do
21391 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21392 cat >conftest.$ac_ext <<_ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h. */
21398 $ac_includes_default
21402 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
21409 rm -f conftest.$ac_objext
21410 if { (ac_try="$ac_compile"
21411 case "(($ac_try" in
21412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413 *) ac_try_echo=$ac_try;;
21415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21416 $as_echo "$ac_try_echo") >&5
21417 (eval "$ac_compile") 2>conftest.er1
21419 grep -v '^
*+' conftest.er1 >conftest.err
21421 cat conftest.err >&5
21422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); } && {
21424 test -z "$ac_c_werror_flag" ||
21425 test ! -s conftest.err
21426 } && test -s conftest.$ac_objext; then
21429 $as_echo "$as_me: failed program was:" >&5
21430 sed 's
/^
/|
/' conftest.$ac_ext >&5
21432 ac_lo=`expr '(' $ac_mid ')' + 1`
21435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21438 ?*) ac_cv_sizeof_char_p=$ac_lo;;
21439 '') if test "$ac_cv_type_char_p" = yes; then
21440 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21441 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
21442 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
21443 See \`config.log
' for more details." >&5
21444 $as_echo "$as_me: error: cannot compute sizeof (char *)
21445 See \`config.log' for more details.
" >&2;}
21446 { (exit 77); exit 77; }; }; }
21448 ac_cv_sizeof_char_p=0
21452 cat >conftest.$ac_ext <<_ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h. */
21458 $ac_includes_default
21459 static long int longval () { return (long int) (sizeof (char *)); }
21460 static unsigned long int ulongval () { return (long int) (sizeof (char *)); }
21462 #include <stdlib.h>
21467 FILE *f = fopen ("conftest.val
", "w
");
21470 if (((long int) (sizeof (char *))) < 0)
21472 long int i = longval ();
21473 if (i != ((long int) (sizeof (char *))))
21475 fprintf (f, "%ld
", i);
21479 unsigned long int i = ulongval ();
21480 if (i != ((long int) (sizeof (char *))))
21482 fprintf (f, "%lu
", i);
21484 /* Do not output a trailing newline, as this causes \r\n confusion
21485 on some platforms. */
21486 return ferror (f) || fclose (f) != 0;
21492 rm -f conftest$ac_exeext
21493 if { (ac_try="$ac_link"
21494 case "(($ac_try" in
21495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21496 *) ac_try_echo=$ac_try;;
21498 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21499 $as_echo "$ac_try_echo") >&5
21500 (eval "$ac_link") 2>&5
21502 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21504 { (case "(($ac_try" in
21505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21506 *) ac_try_echo=$ac_try;;
21508 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21509 $as_echo "$ac_try_echo") >&5
21510 (eval "$ac_try") 2>&5
21512 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21513 (exit $ac_status); }; }; then
21514 ac_cv_sizeof_char_p=`cat conftest.val`
21516 $as_echo "$as_me: program exited with status
$ac_status" >&5
21517 $as_echo "$as_me: failed program was
:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21520 ( exit $ac_status )
21521 if test "$ac_cv_type_char_p" = yes; then
21522 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
21523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21524 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
21525 See \`config.log' for more details.
" >&5
21526 $as_echo "$as_me: error
: cannot compute sizeof
(char
*)
21527 See \
`config.log' for more details." >&2;}
21528 { (exit 77); exit 77; }; }; }
21530 ac_cv_sizeof_char_p=0
21533 rm -rf conftest.dSYM
21534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21538 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
21539 $as_echo "$ac_cv_sizeof_char_p" >&6; }
21543 cat >>confdefs.h <<_ACEOF
21544 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
21548 # The cast to long int works around a bug in the HP C Compiler
21549 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21550 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
21551 # This bug is HP SR number 8606223364.
21552 { $as_echo "$as_me:$LINENO: checking size of double" >&5
21553 $as_echo_n "checking size of double... " >&6; }
21554 if test "${ac_cv_sizeof_double+set}" = set; then
21555 $as_echo_n "(cached) " >&6
21557 if test "$cross_compiling" = yes; then
21558 # Depending upon the size, compute the lo and hi bounds.
21559 cat >conftest.$ac_ext <<_ACEOF
21562 cat confdefs.h >>conftest.$ac_ext
21563 cat >>conftest.$ac_ext <<_ACEOF
21564 /* end confdefs.h. */
21565 $ac_includes_default
21569 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
21576 rm -f conftest.$ac_objext
21577 if { (ac_try="$ac_compile"
21578 case "(($ac_try" in
21579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21580 *) ac_try_echo=$ac_try;;
21582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21583 $as_echo "$ac_try_echo") >&5
21584 (eval "$ac_compile") 2>conftest.er1
21586 grep -v '^
*+' conftest.er1 >conftest.err
21588 cat conftest.err >&5
21589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } && {
21591 test -z "$ac_c_werror_flag" ||
21592 test ! -s conftest.err
21593 } && test -s conftest.$ac_objext; then
21596 cat >conftest.$ac_ext <<_ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h. */
21602 $ac_includes_default
21606 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
21613 rm -f conftest.$ac_objext
21614 if { (ac_try="$ac_compile"
21615 case "(($ac_try" in
21616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21617 *) ac_try_echo=$ac_try;;
21619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21620 $as_echo "$ac_try_echo") >&5
21621 (eval "$ac_compile") 2>conftest.er1
21623 grep -v '^
*+' conftest.er1 >conftest.err
21625 cat conftest.err >&5
21626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); } && {
21628 test -z "$ac_c_werror_flag" ||
21629 test ! -s conftest.err
21630 } && test -s conftest.$ac_objext; then
21631 ac_hi=$ac_mid; break
21633 $as_echo "$as_me: failed program was:" >&5
21634 sed 's
/^
/|
/' conftest.$ac_ext >&5
21636 ac_lo=`expr $ac_mid + 1`
21637 if test $ac_lo -le $ac_mid; then
21641 ac_mid=`expr 2 '*' $ac_mid + 1`
21644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21647 $as_echo "$as_me: failed program was:" >&5
21648 sed 's
/^
/|
/' conftest.$ac_ext >&5
21650 cat >conftest.$ac_ext <<_ACEOF
21653 cat confdefs.h >>conftest.$ac_ext
21654 cat >>conftest.$ac_ext <<_ACEOF
21655 /* end confdefs.h. */
21656 $ac_includes_default
21660 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
21667 rm -f conftest.$ac_objext
21668 if { (ac_try="$ac_compile"
21669 case "(($ac_try" in
21670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21671 *) ac_try_echo=$ac_try;;
21673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21674 $as_echo "$ac_try_echo") >&5
21675 (eval "$ac_compile") 2>conftest.er1
21677 grep -v '^
*+' conftest.er1 >conftest.err
21679 cat conftest.err >&5
21680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); } && {
21682 test -z "$ac_c_werror_flag" ||
21683 test ! -s conftest.err
21684 } && test -s conftest.$ac_objext; then
21687 cat >conftest.$ac_ext <<_ACEOF
21690 cat confdefs.h >>conftest.$ac_ext
21691 cat >>conftest.$ac_ext <<_ACEOF
21692 /* end confdefs.h. */
21693 $ac_includes_default
21697 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
21704 rm -f conftest.$ac_objext
21705 if { (ac_try="$ac_compile"
21706 case "(($ac_try" in
21707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708 *) ac_try_echo=$ac_try;;
21710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21711 $as_echo "$ac_try_echo") >&5
21712 (eval "$ac_compile") 2>conftest.er1
21714 grep -v '^
*+' conftest.er1 >conftest.err
21716 cat conftest.err >&5
21717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); } && {
21719 test -z "$ac_c_werror_flag" ||
21720 test ! -s conftest.err
21721 } && test -s conftest.$ac_objext; then
21722 ac_lo=$ac_mid; break
21724 $as_echo "$as_me: failed program was:" >&5
21725 sed 's
/^
/|
/' conftest.$ac_ext >&5
21727 ac_hi=`expr '(' $ac_mid ')' - 1`
21728 if test $ac_mid -le $ac_hi; then
21732 ac_mid=`expr 2 '*' $ac_mid`
21735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21738 $as_echo "$as_me: failed program was:" >&5
21739 sed 's
/^
/|
/' conftest.$ac_ext >&5
21744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21748 # Binary search between lo and hi bounds.
21749 while test "x$ac_lo" != "x$ac_hi"; do
21750 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21751 cat >conftest.$ac_ext <<_ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h. */
21757 $ac_includes_default
21761 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
21768 rm -f conftest.$ac_objext
21769 if { (ac_try="$ac_compile"
21770 case "(($ac_try" in
21771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21772 *) ac_try_echo=$ac_try;;
21774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21775 $as_echo "$ac_try_echo") >&5
21776 (eval "$ac_compile") 2>conftest.er1
21778 grep -v '^
*+' conftest.er1 >conftest.err
21780 cat conftest.err >&5
21781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); } && {
21783 test -z "$ac_c_werror_flag" ||
21784 test ! -s conftest.err
21785 } && test -s conftest.$ac_objext; then
21788 $as_echo "$as_me: failed program was:" >&5
21789 sed 's
/^
/|
/' conftest.$ac_ext >&5
21791 ac_lo=`expr '(' $ac_mid ')' + 1`
21794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21797 ?*) ac_cv_sizeof_double=$ac_lo;;
21798 '') if test "$ac_cv_type_double" = yes; then
21799 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21800 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
21801 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
21802 See \`config.log
' for more details." >&5
21803 $as_echo "$as_me: error: cannot compute sizeof (double)
21804 See \`config.log' for more details.
" >&2;}
21805 { (exit 77); exit 77; }; }; }
21807 ac_cv_sizeof_double=0
21811 cat >conftest.$ac_ext <<_ACEOF
21814 cat confdefs.h >>conftest.$ac_ext
21815 cat >>conftest.$ac_ext <<_ACEOF
21816 /* end confdefs.h. */
21817 $ac_includes_default
21818 static long int longval () { return (long int) (sizeof (double)); }
21819 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
21821 #include <stdlib.h>
21826 FILE *f = fopen ("conftest.val
", "w
");
21829 if (((long int) (sizeof (double))) < 0)
21831 long int i = longval ();
21832 if (i != ((long int) (sizeof (double))))
21834 fprintf (f, "%ld
", i);
21838 unsigned long int i = ulongval ();
21839 if (i != ((long int) (sizeof (double))))
21841 fprintf (f, "%lu
", i);
21843 /* Do not output a trailing newline, as this causes \r\n confusion
21844 on some platforms. */
21845 return ferror (f) || fclose (f) != 0;
21851 rm -f conftest$ac_exeext
21852 if { (ac_try="$ac_link"
21853 case "(($ac_try" in
21854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21855 *) ac_try_echo=$ac_try;;
21857 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21858 $as_echo "$ac_try_echo") >&5
21859 (eval "$ac_link") 2>&5
21861 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21863 { (case "(($ac_try" in
21864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21865 *) ac_try_echo=$ac_try;;
21867 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21868 $as_echo "$ac_try_echo") >&5
21869 (eval "$ac_try") 2>&5
21871 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21872 (exit $ac_status); }; }; then
21873 ac_cv_sizeof_double=`cat conftest.val`
21875 $as_echo "$as_me: program exited with status
$ac_status" >&5
21876 $as_echo "$as_me: failed program was
:" >&5
21877 sed 's/^/| /' conftest.$ac_ext >&5
21879 ( exit $ac_status )
21880 if test "$ac_cv_type_double" = yes; then
21881 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
21882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21883 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
21884 See \`config.log' for more details.
" >&5
21885 $as_echo "$as_me: error
: cannot compute sizeof
(double
)
21886 See \
`config.log' for more details." >&2;}
21887 { (exit 77); exit 77; }; }; }
21889 ac_cv_sizeof_double=0
21892 rm -rf conftest.dSYM
21893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21897 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
21898 $as_echo "$ac_cv_sizeof_double" >&6; }
21902 cat >>confdefs.h <<_ACEOF
21903 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
21907 # The cast to long int works around a bug in the HP C Compiler
21908 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21909 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
21910 # This bug is HP SR number 8606223364.
21911 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
21912 $as_echo_n "checking size of long long... " >&6; }
21913 if test "${ac_cv_sizeof_long_long+set}" = set; then
21914 $as_echo_n "(cached) " >&6
21916 if test "$cross_compiling" = yes; then
21917 # Depending upon the size, compute the lo and hi bounds.
21918 cat >conftest.$ac_ext <<_ACEOF
21921 cat confdefs.h >>conftest.$ac_ext
21922 cat >>conftest.$ac_ext <<_ACEOF
21923 /* end confdefs.h. */
21924 $ac_includes_default
21928 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
21935 rm -f conftest.$ac_objext
21936 if { (ac_try="$ac_compile"
21937 case "(($ac_try" in
21938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21939 *) ac_try_echo=$ac_try;;
21941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21942 $as_echo "$ac_try_echo") >&5
21943 (eval "$ac_compile") 2>conftest.er1
21945 grep -v '^
*+' conftest.er1 >conftest.err
21947 cat conftest.err >&5
21948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); } && {
21950 test -z "$ac_c_werror_flag" ||
21951 test ! -s conftest.err
21952 } && test -s conftest.$ac_objext; then
21955 cat >conftest.$ac_ext <<_ACEOF
21958 cat confdefs.h >>conftest.$ac_ext
21959 cat >>conftest.$ac_ext <<_ACEOF
21960 /* end confdefs.h. */
21961 $ac_includes_default
21965 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
21972 rm -f conftest.$ac_objext
21973 if { (ac_try="$ac_compile"
21974 case "(($ac_try" in
21975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21976 *) ac_try_echo=$ac_try;;
21978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21979 $as_echo "$ac_try_echo") >&5
21980 (eval "$ac_compile") 2>conftest.er1
21982 grep -v '^
*+' conftest.er1 >conftest.err
21984 cat conftest.err >&5
21985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); } && {
21987 test -z "$ac_c_werror_flag" ||
21988 test ! -s conftest.err
21989 } && test -s conftest.$ac_objext; then
21990 ac_hi=$ac_mid; break
21992 $as_echo "$as_me: failed program was:" >&5
21993 sed 's
/^
/|
/' conftest.$ac_ext >&5
21995 ac_lo=`expr $ac_mid + 1`
21996 if test $ac_lo -le $ac_mid; then
22000 ac_mid=`expr 2 '*' $ac_mid + 1`
22003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22006 $as_echo "$as_me: failed program was:" >&5
22007 sed 's
/^
/|
/' conftest.$ac_ext >&5
22009 cat >conftest.$ac_ext <<_ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22015 $ac_includes_default
22019 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
22026 rm -f conftest.$ac_objext
22027 if { (ac_try="$ac_compile"
22028 case "(($ac_try" in
22029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030 *) ac_try_echo=$ac_try;;
22032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22033 $as_echo "$ac_try_echo") >&5
22034 (eval "$ac_compile") 2>conftest.er1
22036 grep -v '^
*+' conftest.er1 >conftest.err
22038 cat conftest.err >&5
22039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); } && {
22041 test -z "$ac_c_werror_flag" ||
22042 test ! -s conftest.err
22043 } && test -s conftest.$ac_objext; then
22046 cat >conftest.$ac_ext <<_ACEOF
22049 cat confdefs.h >>conftest.$ac_ext
22050 cat >>conftest.$ac_ext <<_ACEOF
22051 /* end confdefs.h. */
22052 $ac_includes_default
22056 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
22063 rm -f conftest.$ac_objext
22064 if { (ac_try="$ac_compile"
22065 case "(($ac_try" in
22066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22067 *) ac_try_echo=$ac_try;;
22069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22070 $as_echo "$ac_try_echo") >&5
22071 (eval "$ac_compile") 2>conftest.er1
22073 grep -v '^
*+' conftest.er1 >conftest.err
22075 cat conftest.err >&5
22076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); } && {
22078 test -z "$ac_c_werror_flag" ||
22079 test ! -s conftest.err
22080 } && test -s conftest.$ac_objext; then
22081 ac_lo=$ac_mid; break
22083 $as_echo "$as_me: failed program was:" >&5
22084 sed 's
/^
/|
/' conftest.$ac_ext >&5
22086 ac_hi=`expr '(' $ac_mid ')' - 1`
22087 if test $ac_mid -le $ac_hi; then
22091 ac_mid=`expr 2 '*' $ac_mid`
22094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22097 $as_echo "$as_me: failed program was:" >&5
22098 sed 's
/^
/|
/' conftest.$ac_ext >&5
22103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22107 # Binary search between lo and hi bounds.
22108 while test "x$ac_lo" != "x$ac_hi"; do
22109 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22110 cat >conftest.$ac_ext <<_ACEOF
22113 cat confdefs.h >>conftest.$ac_ext
22114 cat >>conftest.$ac_ext <<_ACEOF
22115 /* end confdefs.h. */
22116 $ac_includes_default
22120 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
22127 rm -f conftest.$ac_objext
22128 if { (ac_try="$ac_compile"
22129 case "(($ac_try" in
22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22134 $as_echo "$ac_try_echo") >&5
22135 (eval "$ac_compile") 2>conftest.er1
22137 grep -v '^
*+' conftest.er1 >conftest.err
22139 cat conftest.err >&5
22140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); } && {
22142 test -z "$ac_c_werror_flag" ||
22143 test ! -s conftest.err
22144 } && test -s conftest.$ac_objext; then
22147 $as_echo "$as_me: failed program was:" >&5
22148 sed 's
/^
/|
/' conftest.$ac_ext >&5
22150 ac_lo=`expr '(' $ac_mid ')' + 1`
22153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22156 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22157 '') if test "$ac_cv_type_long_long" = yes; then
22158 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22159 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
22160 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22161 See \`config.log
' for more details." >&5
22162 $as_echo "$as_me: error: cannot compute sizeof (long long)
22163 See \`config.log' for more details.
" >&2;}
22164 { (exit 77); exit 77; }; }; }
22166 ac_cv_sizeof_long_long=0
22170 cat >conftest.$ac_ext <<_ACEOF
22173 cat confdefs.h >>conftest.$ac_ext
22174 cat >>conftest.$ac_ext <<_ACEOF
22175 /* end confdefs.h. */
22176 $ac_includes_default
22177 static long int longval () { return (long int) (sizeof (long long)); }
22178 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
22180 #include <stdlib.h>
22185 FILE *f = fopen ("conftest.val
", "w
");
22188 if (((long int) (sizeof (long long))) < 0)
22190 long int i = longval ();
22191 if (i != ((long int) (sizeof (long long))))
22193 fprintf (f, "%ld
", i);
22197 unsigned long int i = ulongval ();
22198 if (i != ((long int) (sizeof (long long))))
22200 fprintf (f, "%lu
", i);
22202 /* Do not output a trailing newline, as this causes \r\n confusion
22203 on some platforms. */
22204 return ferror (f) || fclose (f) != 0;
22210 rm -f conftest$ac_exeext
22211 if { (ac_try="$ac_link"
22212 case "(($ac_try" in
22213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22214 *) ac_try_echo=$ac_try;;
22216 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22217 $as_echo "$ac_try_echo") >&5
22218 (eval "$ac_link") 2>&5
22220 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22222 { (case "(($ac_try" in
22223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22224 *) ac_try_echo=$ac_try;;
22226 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22227 $as_echo "$ac_try_echo") >&5
22228 (eval "$ac_try") 2>&5
22230 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22231 (exit $ac_status); }; }; then
22232 ac_cv_sizeof_long_long=`cat conftest.val`
22234 $as_echo "$as_me: program exited with status
$ac_status" >&5
22235 $as_echo "$as_me: failed program was
:" >&5
22236 sed 's/^/| /' conftest.$ac_ext >&5
22238 ( exit $ac_status )
22239 if test "$ac_cv_type_long_long" = yes; then
22240 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
22241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22242 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22243 See \`config.log' for more details.
" >&5
22244 $as_echo "$as_me: error
: cannot compute sizeof
(long long
)
22245 See \
`config.log' for more details." >&2;}
22246 { (exit 77); exit 77; }; }; }
22248 ac_cv_sizeof_long_long=0
22251 rm -rf conftest.dSYM
22252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22256 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22257 $as_echo "$ac_cv_sizeof_long_long" >&6; }
22261 cat >>confdefs.h <<_ACEOF
22262 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22267 { $as_echo "$as_me:$LINENO: checking for u_int" >&5
22268 $as_echo_n "checking for u_int... " >&6; }
22269 if test "${ac_cv_type_u_int+set}" = set; then
22270 $as_echo_n "(cached) " >&6
22272 ac_cv_type_u_int=no
22273 cat >conftest.$ac_ext <<_ACEOF
22276 cat confdefs.h >>conftest.$ac_ext
22277 cat >>conftest.$ac_ext <<_ACEOF
22278 /* end confdefs.h. */
22279 $ac_includes_default
22283 if (sizeof (u_int))
22289 rm -f conftest.$ac_objext
22290 if { (ac_try="$ac_compile"
22291 case "(($ac_try" in
22292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22293 *) ac_try_echo
=$ac_try;;
22295 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22296 $as_echo "$ac_try_echo") >&5
22297 (eval "$ac_compile") 2>conftest.er1
22299 grep -v '^ *+' conftest.er1
>conftest.err
22301 cat conftest.err
>&5
22302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); } && {
22304 test -z "$ac_c_werror_flag" ||
22305 test ! -s conftest.err
22306 } && test -s conftest.
$ac_objext; then
22307 cat >conftest.
$ac_ext <<_ACEOF
22310 cat confdefs.h
>>conftest.
$ac_ext
22311 cat >>conftest.
$ac_ext <<_ACEOF
22312 /* end confdefs.h. */
22313 $ac_includes_default
22317 if (sizeof ((u_int)))
22323 rm -f conftest.
$ac_objext
22324 if { (ac_try
="$ac_compile"
22325 case "(($ac_try" in
22326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22327 *) ac_try_echo=$ac_try;;
22329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22330 $as_echo "$ac_try_echo") >&5
22331 (eval "$ac_compile") 2>conftest.er1
22333 grep -v '^ *+' conftest.er1 >conftest.err
22335 cat conftest.err >&5
22336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337 (exit $ac_status); } && {
22338 test -z "$ac_c_werror_flag" ||
22339 test ! -s conftest.err
22340 } && test -s conftest.$ac_objext; then
22343 $as_echo "$as_me: failed program was:" >&5
22344 sed 's/^/| /' conftest.$ac_ext >&5
22346 ac_cv_type_u_int=yes
22349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22351 $as_echo "$as_me: failed program was:" >&5
22352 sed 's/^/| /' conftest.$ac_ext >&5
22357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22359 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
22360 $as_echo "$ac_cv_type_u_int" >&6; }
22361 if test "x$ac_cv_type_u_int" = x""yes; then
22365 cat >>confdefs.h <<_ACEOF
22366 #define u_int unsigned int
22371 { $as_echo "$as_me:$LINENO: checking for u_long" >&5
22372 $as_echo_n "checking for u_long... " >&6; }
22373 if test "${ac_cv_type_u_long+set}" = set; then
22374 $as_echo_n "(cached) " >&6
22376 ac_cv_type_u_long=no
22377 cat >conftest.$ac_ext <<_ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h. */
22383 $ac_includes_default
22387 if (sizeof (u_long))
22393 rm -f conftest.$ac_objext
22394 if { (ac_try="$ac_compile"
22395 case "(($ac_try" in
22396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22397 *) ac_try_echo
=$ac_try;;
22399 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22400 $as_echo "$ac_try_echo") >&5
22401 (eval "$ac_compile") 2>conftest.er1
22403 grep -v '^ *+' conftest.er1
>conftest.err
22405 cat conftest.err
>&5
22406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); } && {
22408 test -z "$ac_c_werror_flag" ||
22409 test ! -s conftest.err
22410 } && test -s conftest.
$ac_objext; then
22411 cat >conftest.
$ac_ext <<_ACEOF
22414 cat confdefs.h
>>conftest.
$ac_ext
22415 cat >>conftest.
$ac_ext <<_ACEOF
22416 /* end confdefs.h. */
22417 $ac_includes_default
22421 if (sizeof ((u_long)))
22427 rm -f conftest.
$ac_objext
22428 if { (ac_try
="$ac_compile"
22429 case "(($ac_try" in
22430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22431 *) ac_try_echo=$ac_try;;
22433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22434 $as_echo "$ac_try_echo") >&5
22435 (eval "$ac_compile") 2>conftest.er1
22437 grep -v '^ *+' conftest.er1 >conftest.err
22439 cat conftest.err >&5
22440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); } && {
22442 test -z "$ac_c_werror_flag" ||
22443 test ! -s conftest.err
22444 } && test -s conftest.$ac_objext; then
22447 $as_echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22450 ac_cv_type_u_long=yes
22453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22455 $as_echo "$as_me: failed program was:" >&5
22456 sed 's/^/| /' conftest.$ac_ext >&5
22461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22463 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
22464 $as_echo "$ac_cv_type_u_long" >&6; }
22465 if test "x$ac_cv_type_u_long" = x""yes; then
22469 cat >>confdefs.h <<_ACEOF
22470 #define u_long unsigned long
22477 if test "$ac_cv_sizeof_short" = 2; then
22478 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
22479 $as_echo_n "checking for bits16_t... " >&6; }
22480 if test "${ac_cv_type_bits16_t+set}" = set; then
22481 $as_echo_n "(cached) " >&6
22483 ac_cv_type_bits16_t=no
22484 cat >conftest.$ac_ext <<_ACEOF
22487 cat confdefs.h >>conftest.$ac_ext
22488 cat >>conftest.$ac_ext <<_ACEOF
22489 /* end confdefs.h. */
22490 $ac_includes_default
22494 if (sizeof (bits16_t))
22500 rm -f conftest.$ac_objext
22501 if { (ac_try="$ac_compile"
22502 case "(($ac_try" in
22503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22504 *) ac_try_echo
=$ac_try;;
22506 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22507 $as_echo "$ac_try_echo") >&5
22508 (eval "$ac_compile") 2>conftest.er1
22510 grep -v '^ *+' conftest.er1
>conftest.err
22512 cat conftest.err
>&5
22513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); } && {
22515 test -z "$ac_c_werror_flag" ||
22516 test ! -s conftest.err
22517 } && test -s conftest.
$ac_objext; then
22518 cat >conftest.
$ac_ext <<_ACEOF
22521 cat confdefs.h
>>conftest.
$ac_ext
22522 cat >>conftest.
$ac_ext <<_ACEOF
22523 /* end confdefs.h. */
22524 $ac_includes_default
22528 if (sizeof ((bits16_t)))
22534 rm -f conftest.
$ac_objext
22535 if { (ac_try
="$ac_compile"
22536 case "(($ac_try" in
22537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22538 *) ac_try_echo=$ac_try;;
22540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22541 $as_echo "$ac_try_echo") >&5
22542 (eval "$ac_compile") 2>conftest.er1
22544 grep -v '^ *+' conftest.er1 >conftest.err
22546 cat conftest.err >&5
22547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); } && {
22549 test -z "$ac_c_werror_flag" ||
22550 test ! -s conftest.err
22551 } && test -s conftest.$ac_objext; then
22554 $as_echo "$as_me: failed program was:" >&5
22555 sed 's/^/| /' conftest.$ac_ext >&5
22557 ac_cv_type_bits16_t=yes
22560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22562 $as_echo "$as_me: failed program was:" >&5
22563 sed 's/^/| /' conftest.$ac_ext >&5
22568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22570 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
22571 $as_echo "$ac_cv_type_bits16_t" >&6; }
22572 if test "x$ac_cv_type_bits16_t" = x""yes; then
22576 cat >>confdefs.h <<_ACEOF
22577 #define bits16_t short
22582 elif test "$ac_cv_sizeof_char" = 2; then
22583 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
22584 $as_echo_n "checking for bits16_t... " >&6; }
22585 if test "${ac_cv_type_bits16_t+set}" = set; then
22586 $as_echo_n "(cached) " >&6
22588 ac_cv_type_bits16_t=no
22589 cat >conftest.$ac_ext <<_ACEOF
22592 cat confdefs.h >>conftest.$ac_ext
22593 cat >>conftest.$ac_ext <<_ACEOF
22594 /* end confdefs.h. */
22595 $ac_includes_default
22599 if (sizeof (bits16_t))
22605 rm -f conftest.$ac_objext
22606 if { (ac_try="$ac_compile"
22607 case "(($ac_try" in
22608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22609 *) ac_try_echo
=$ac_try;;
22611 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22612 $as_echo "$ac_try_echo") >&5
22613 (eval "$ac_compile") 2>conftest.er1
22615 grep -v '^ *+' conftest.er1
>conftest.err
22617 cat conftest.err
>&5
22618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); } && {
22620 test -z "$ac_c_werror_flag" ||
22621 test ! -s conftest.err
22622 } && test -s conftest.
$ac_objext; then
22623 cat >conftest.
$ac_ext <<_ACEOF
22626 cat confdefs.h
>>conftest.
$ac_ext
22627 cat >>conftest.
$ac_ext <<_ACEOF
22628 /* end confdefs.h. */
22629 $ac_includes_default
22633 if (sizeof ((bits16_t)))
22639 rm -f conftest.
$ac_objext
22640 if { (ac_try
="$ac_compile"
22641 case "(($ac_try" in
22642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22643 *) ac_try_echo=$ac_try;;
22645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22646 $as_echo "$ac_try_echo") >&5
22647 (eval "$ac_compile") 2>conftest.er1
22649 grep -v '^ *+' conftest.er1 >conftest.err
22651 cat conftest.err >&5
22652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653 (exit $ac_status); } && {
22654 test -z "$ac_c_werror_flag" ||
22655 test ! -s conftest.err
22656 } && test -s conftest.$ac_objext; then
22659 $as_echo "$as_me: failed program was:" >&5
22660 sed 's/^/| /' conftest.$ac_ext >&5
22662 ac_cv_type_bits16_t=yes
22665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22667 $as_echo "$as_me: failed program was:" >&5
22668 sed 's/^/| /' conftest.$ac_ext >&5
22673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22675 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
22676 $as_echo "$ac_cv_type_bits16_t" >&6; }
22677 if test "x$ac_cv_type_bits16_t" = x""yes; then
22681 cat >>confdefs.h <<_ACEOF
22682 #define bits16_t char
22688 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
22689 $as_echo_n "checking for bits16_t... " >&6; }
22690 if test "${ac_cv_type_bits16_t+set}" = set; then
22691 $as_echo_n "(cached) " >&6
22693 ac_cv_type_bits16_t=no
22694 cat >conftest.$ac_ext <<_ACEOF
22697 cat confdefs.h >>conftest.$ac_ext
22698 cat >>conftest.$ac_ext <<_ACEOF
22699 /* end confdefs.h. */
22700 $ac_includes_default
22704 if (sizeof (bits16_t))
22710 rm -f conftest.$ac_objext
22711 if { (ac_try="$ac_compile"
22712 case "(($ac_try" in
22713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22714 *) ac_try_echo
=$ac_try;;
22716 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22717 $as_echo "$ac_try_echo") >&5
22718 (eval "$ac_compile") 2>conftest.er1
22720 grep -v '^ *+' conftest.er1
>conftest.err
22722 cat conftest.err
>&5
22723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); } && {
22725 test -z "$ac_c_werror_flag" ||
22726 test ! -s conftest.err
22727 } && test -s conftest.
$ac_objext; then
22728 cat >conftest.
$ac_ext <<_ACEOF
22731 cat confdefs.h
>>conftest.
$ac_ext
22732 cat >>conftest.
$ac_ext <<_ACEOF
22733 /* end confdefs.h. */
22734 $ac_includes_default
22738 if (sizeof ((bits16_t)))
22744 rm -f conftest.
$ac_objext
22745 if { (ac_try
="$ac_compile"
22746 case "(($ac_try" in
22747 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22748 *) ac_try_echo=$ac_try;;
22750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22751 $as_echo "$ac_try_echo") >&5
22752 (eval "$ac_compile") 2>conftest.er1
22754 grep -v '^ *+' conftest.er1 >conftest.err
22756 cat conftest.err >&5
22757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); } && {
22759 test -z "$ac_c_werror_flag" ||
22760 test ! -s conftest.err
22761 } && test -s conftest.$ac_objext; then
22764 $as_echo "$as_me: failed program was:" >&5
22765 sed 's/^/| /' conftest.$ac_ext >&5
22767 ac_cv_type_bits16_t=yes
22770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22772 $as_echo "$as_me: failed program was:" >&5
22773 sed 's/^/| /' conftest.$ac_ext >&5
22778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22780 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
22781 $as_echo "$ac_cv_type_bits16_t" >&6; }
22782 if test "x$ac_cv_type_bits16_t" = x""yes; then
22786 cat >>confdefs.h <<_ACEOF
22787 #define bits16_t short
22795 if test "$ac_cv_sizeof_short" = 2; then
22796 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
22797 $as_echo_n "checking for u_bits16_t... " >&6; }
22798 if test "${ac_cv_type_u_bits16_t+set}" = set; then
22799 $as_echo_n "(cached) " >&6
22801 ac_cv_type_u_bits16_t=no
22802 cat >conftest.$ac_ext <<_ACEOF
22805 cat confdefs.h >>conftest.$ac_ext
22806 cat >>conftest.$ac_ext <<_ACEOF
22807 /* end confdefs.h. */
22808 $ac_includes_default
22812 if (sizeof (u_bits16_t))
22818 rm -f conftest.$ac_objext
22819 if { (ac_try="$ac_compile"
22820 case "(($ac_try" in
22821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22822 *) ac_try_echo
=$ac_try;;
22824 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22825 $as_echo "$ac_try_echo") >&5
22826 (eval "$ac_compile") 2>conftest.er1
22828 grep -v '^ *+' conftest.er1
>conftest.err
22830 cat conftest.err
>&5
22831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); } && {
22833 test -z "$ac_c_werror_flag" ||
22834 test ! -s conftest.err
22835 } && test -s conftest.
$ac_objext; then
22836 cat >conftest.
$ac_ext <<_ACEOF
22839 cat confdefs.h
>>conftest.
$ac_ext
22840 cat >>conftest.
$ac_ext <<_ACEOF
22841 /* end confdefs.h. */
22842 $ac_includes_default
22846 if (sizeof ((u_bits16_t)))
22852 rm -f conftest.
$ac_objext
22853 if { (ac_try
="$ac_compile"
22854 case "(($ac_try" in
22855 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22856 *) ac_try_echo=$ac_try;;
22858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22859 $as_echo "$ac_try_echo") >&5
22860 (eval "$ac_compile") 2>conftest.er1
22862 grep -v '^ *+' conftest.er1 >conftest.err
22864 cat conftest.err >&5
22865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); } && {
22867 test -z "$ac_c_werror_flag" ||
22868 test ! -s conftest.err
22869 } && test -s conftest.$ac_objext; then
22872 $as_echo "$as_me: failed program was:" >&5
22873 sed 's/^/| /' conftest.$ac_ext >&5
22875 ac_cv_type_u_bits16_t=yes
22878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22880 $as_echo "$as_me: failed program was:" >&5
22881 sed 's/^/| /' conftest.$ac_ext >&5
22886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22888 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
22889 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
22890 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
22894 cat >>confdefs.h <<_ACEOF
22895 #define u_bits16_t unsigned short
22900 elif test "$ac_cv_sizeof_char" = 2; then
22901 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
22902 $as_echo_n "checking for u_bits16_t... " >&6; }
22903 if test "${ac_cv_type_u_bits16_t+set}" = set; then
22904 $as_echo_n "(cached) " >&6
22906 ac_cv_type_u_bits16_t=no
22907 cat >conftest.$ac_ext <<_ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h. */
22913 $ac_includes_default
22917 if (sizeof (u_bits16_t))
22923 rm -f conftest.$ac_objext
22924 if { (ac_try="$ac_compile"
22925 case "(($ac_try" in
22926 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22927 *) ac_try_echo
=$ac_try;;
22929 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22930 $as_echo "$ac_try_echo") >&5
22931 (eval "$ac_compile") 2>conftest.er1
22933 grep -v '^ *+' conftest.er1
>conftest.err
22935 cat conftest.err
>&5
22936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); } && {
22938 test -z "$ac_c_werror_flag" ||
22939 test ! -s conftest.err
22940 } && test -s conftest.
$ac_objext; then
22941 cat >conftest.
$ac_ext <<_ACEOF
22944 cat confdefs.h
>>conftest.
$ac_ext
22945 cat >>conftest.
$ac_ext <<_ACEOF
22946 /* end confdefs.h. */
22947 $ac_includes_default
22951 if (sizeof ((u_bits16_t)))
22957 rm -f conftest.
$ac_objext
22958 if { (ac_try
="$ac_compile"
22959 case "(($ac_try" in
22960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22961 *) ac_try_echo=$ac_try;;
22963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22964 $as_echo "$ac_try_echo") >&5
22965 (eval "$ac_compile") 2>conftest.er1
22967 grep -v '^ *+' conftest.er1 >conftest.err
22969 cat conftest.err >&5
22970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); } && {
22972 test -z "$ac_c_werror_flag" ||
22973 test ! -s conftest.err
22974 } && test -s conftest.$ac_objext; then
22977 $as_echo "$as_me: failed program was:" >&5
22978 sed 's/^/| /' conftest.$ac_ext >&5
22980 ac_cv_type_u_bits16_t=yes
22983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22985 $as_echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22993 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
22994 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
22995 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
22999 cat >>confdefs.h <<_ACEOF
23000 #define u_bits16_t unsigned char
23006 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23007 $as_echo_n "checking for u_bits16_t... " >&6; }
23008 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23009 $as_echo_n "(cached) " >&6
23011 ac_cv_type_u_bits16_t=no
23012 cat >conftest.$ac_ext <<_ACEOF
23015 cat confdefs.h >>conftest.$ac_ext
23016 cat >>conftest.$ac_ext <<_ACEOF
23017 /* end confdefs.h. */
23018 $ac_includes_default
23022 if (sizeof (u_bits16_t))
23028 rm -f conftest.$ac_objext
23029 if { (ac_try="$ac_compile"
23030 case "(($ac_try" in
23031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23032 *) ac_try_echo
=$ac_try;;
23034 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23035 $as_echo "$ac_try_echo") >&5
23036 (eval "$ac_compile") 2>conftest.er1
23038 grep -v '^ *+' conftest.er1
>conftest.err
23040 cat conftest.err
>&5
23041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042 (exit $ac_status); } && {
23043 test -z "$ac_c_werror_flag" ||
23044 test ! -s conftest.err
23045 } && test -s conftest.
$ac_objext; then
23046 cat >conftest.
$ac_ext <<_ACEOF
23049 cat confdefs.h
>>conftest.
$ac_ext
23050 cat >>conftest.
$ac_ext <<_ACEOF
23051 /* end confdefs.h. */
23052 $ac_includes_default
23056 if (sizeof ((u_bits16_t)))
23062 rm -f conftest.
$ac_objext
23063 if { (ac_try
="$ac_compile"
23064 case "(($ac_try" in
23065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23066 *) ac_try_echo=$ac_try;;
23068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23069 $as_echo "$ac_try_echo") >&5
23070 (eval "$ac_compile") 2>conftest.er1
23072 grep -v '^ *+' conftest.er1 >conftest.err
23074 cat conftest.err >&5
23075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); } && {
23077 test -z "$ac_c_werror_flag" ||
23078 test ! -s conftest.err
23079 } && test -s conftest.$ac_objext; then
23082 $as_echo "$as_me: failed program was:" >&5
23083 sed 's/^/| /' conftest.$ac_ext >&5
23085 ac_cv_type_u_bits16_t=yes
23088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23090 $as_echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23098 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
23099 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
23100 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
23104 cat >>confdefs.h <<_ACEOF
23105 #define u_bits16_t unsigned short
23113 if test "$ac_cv_sizeof_int" = 4; then
23114 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
23115 $as_echo_n "checking for bits32_t... " >&6; }
23116 if test "${ac_cv_type_bits32_t+set}" = set; then
23117 $as_echo_n "(cached) " >&6
23119 ac_cv_type_bits32_t=no
23120 cat >conftest.$ac_ext <<_ACEOF
23123 cat confdefs.h >>conftest.$ac_ext
23124 cat >>conftest.$ac_ext <<_ACEOF
23125 /* end confdefs.h. */
23126 $ac_includes_default
23130 if (sizeof (bits32_t))
23136 rm -f conftest.$ac_objext
23137 if { (ac_try="$ac_compile"
23138 case "(($ac_try" in
23139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23140 *) ac_try_echo
=$ac_try;;
23142 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23143 $as_echo "$ac_try_echo") >&5
23144 (eval "$ac_compile") 2>conftest.er1
23146 grep -v '^ *+' conftest.er1
>conftest.err
23148 cat conftest.err
>&5
23149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150 (exit $ac_status); } && {
23151 test -z "$ac_c_werror_flag" ||
23152 test ! -s conftest.err
23153 } && test -s conftest.
$ac_objext; then
23154 cat >conftest.
$ac_ext <<_ACEOF
23157 cat confdefs.h
>>conftest.
$ac_ext
23158 cat >>conftest.
$ac_ext <<_ACEOF
23159 /* end confdefs.h. */
23160 $ac_includes_default
23164 if (sizeof ((bits32_t)))
23170 rm -f conftest.
$ac_objext
23171 if { (ac_try
="$ac_compile"
23172 case "(($ac_try" in
23173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23174 *) ac_try_echo=$ac_try;;
23176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23177 $as_echo "$ac_try_echo") >&5
23178 (eval "$ac_compile") 2>conftest.er1
23180 grep -v '^ *+' conftest.er1 >conftest.err
23182 cat conftest.err >&5
23183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); } && {
23185 test -z "$ac_c_werror_flag" ||
23186 test ! -s conftest.err
23187 } && test -s conftest.$ac_objext; then
23190 $as_echo "$as_me: failed program was:" >&5
23191 sed 's/^/| /' conftest.$ac_ext >&5
23193 ac_cv_type_bits32_t=yes
23196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23198 $as_echo "$as_me: failed program was:" >&5
23199 sed 's/^/| /' conftest.$ac_ext >&5
23204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23206 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
23207 $as_echo "$ac_cv_type_bits32_t" >&6; }
23208 if test "x$ac_cv_type_bits32_t" = x""yes; then
23212 cat >>confdefs.h <<_ACEOF
23213 #define bits32_t int
23218 elif test "$ac_cv_sizeof_long" = 4; then
23219 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
23220 $as_echo_n "checking for bits32_t... " >&6; }
23221 if test "${ac_cv_type_bits32_t+set}" = set; then
23222 $as_echo_n "(cached) " >&6
23224 ac_cv_type_bits32_t=no
23225 cat >conftest.$ac_ext <<_ACEOF
23228 cat confdefs.h >>conftest.$ac_ext
23229 cat >>conftest.$ac_ext <<_ACEOF
23230 /* end confdefs.h. */
23231 $ac_includes_default
23235 if (sizeof (bits32_t))
23241 rm -f conftest.$ac_objext
23242 if { (ac_try="$ac_compile"
23243 case "(($ac_try" in
23244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23245 *) ac_try_echo
=$ac_try;;
23247 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23248 $as_echo "$ac_try_echo") >&5
23249 (eval "$ac_compile") 2>conftest.er1
23251 grep -v '^ *+' conftest.er1
>conftest.err
23253 cat conftest.err
>&5
23254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); } && {
23256 test -z "$ac_c_werror_flag" ||
23257 test ! -s conftest.err
23258 } && test -s conftest.
$ac_objext; then
23259 cat >conftest.
$ac_ext <<_ACEOF
23262 cat confdefs.h
>>conftest.
$ac_ext
23263 cat >>conftest.
$ac_ext <<_ACEOF
23264 /* end confdefs.h. */
23265 $ac_includes_default
23269 if (sizeof ((bits32_t)))
23275 rm -f conftest.
$ac_objext
23276 if { (ac_try
="$ac_compile"
23277 case "(($ac_try" in
23278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23279 *) ac_try_echo=$ac_try;;
23281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23282 $as_echo "$ac_try_echo") >&5
23283 (eval "$ac_compile") 2>conftest.er1
23285 grep -v '^ *+' conftest.er1 >conftest.err
23287 cat conftest.err >&5
23288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); } && {
23290 test -z "$ac_c_werror_flag" ||
23291 test ! -s conftest.err
23292 } && test -s conftest.$ac_objext; then
23295 $as_echo "$as_me: failed program was:" >&5
23296 sed 's/^/| /' conftest.$ac_ext >&5
23298 ac_cv_type_bits32_t=yes
23301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23303 $as_echo "$as_me: failed program was:" >&5
23304 sed 's/^/| /' conftest.$ac_ext >&5
23309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23311 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
23312 $as_echo "$ac_cv_type_bits32_t" >&6; }
23313 if test "x$ac_cv_type_bits32_t" = x""yes; then
23317 cat >>confdefs.h <<_ACEOF
23318 #define bits32_t long
23324 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
23325 $as_echo_n "checking for bits32_t... " >&6; }
23326 if test "${ac_cv_type_bits32_t+set}" = set; then
23327 $as_echo_n "(cached) " >&6
23329 ac_cv_type_bits32_t=no
23330 cat >conftest.$ac_ext <<_ACEOF
23333 cat confdefs.h >>conftest.$ac_ext
23334 cat >>conftest.$ac_ext <<_ACEOF
23335 /* end confdefs.h. */
23336 $ac_includes_default
23340 if (sizeof (bits32_t))
23346 rm -f conftest.$ac_objext
23347 if { (ac_try="$ac_compile"
23348 case "(($ac_try" in
23349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23350 *) ac_try_echo
=$ac_try;;
23352 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23353 $as_echo "$ac_try_echo") >&5
23354 (eval "$ac_compile") 2>conftest.er1
23356 grep -v '^ *+' conftest.er1
>conftest.err
23358 cat conftest.err
>&5
23359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); } && {
23361 test -z "$ac_c_werror_flag" ||
23362 test ! -s conftest.err
23363 } && test -s conftest.
$ac_objext; then
23364 cat >conftest.
$ac_ext <<_ACEOF
23367 cat confdefs.h
>>conftest.
$ac_ext
23368 cat >>conftest.
$ac_ext <<_ACEOF
23369 /* end confdefs.h. */
23370 $ac_includes_default
23374 if (sizeof ((bits32_t)))
23380 rm -f conftest.
$ac_objext
23381 if { (ac_try
="$ac_compile"
23382 case "(($ac_try" in
23383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23384 *) ac_try_echo=$ac_try;;
23386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23387 $as_echo "$ac_try_echo") >&5
23388 (eval "$ac_compile") 2>conftest.er1
23390 grep -v '^ *+' conftest.er1 >conftest.err
23392 cat conftest.err >&5
23393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); } && {
23395 test -z "$ac_c_werror_flag" ||
23396 test ! -s conftest.err
23397 } && test -s conftest.$ac_objext; then
23400 $as_echo "$as_me: failed program was:" >&5
23401 sed 's/^/| /' conftest.$ac_ext >&5
23403 ac_cv_type_bits32_t=yes
23406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23408 $as_echo "$as_me: failed program was:" >&5
23409 sed 's/^/| /' conftest.$ac_ext >&5
23414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23416 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
23417 $as_echo "$ac_cv_type_bits32_t" >&6; }
23418 if test "x$ac_cv_type_bits32_t" = x""yes; then
23422 cat >>confdefs.h <<_ACEOF
23423 #define bits32_t int
23431 if test "$ac_cv_sizeof_int" = 4; then
23432 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
23433 $as_echo_n "checking for u_bits32_t... " >&6; }
23434 if test "${ac_cv_type_u_bits32_t+set}" = set; then
23435 $as_echo_n "(cached) " >&6
23437 ac_cv_type_u_bits32_t=no
23438 cat >conftest.$ac_ext <<_ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h. */
23444 $ac_includes_default
23448 if (sizeof (u_bits32_t))
23454 rm -f conftest.$ac_objext
23455 if { (ac_try="$ac_compile"
23456 case "(($ac_try" in
23457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23458 *) ac_try_echo
=$ac_try;;
23460 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23461 $as_echo "$ac_try_echo") >&5
23462 (eval "$ac_compile") 2>conftest.er1
23464 grep -v '^ *+' conftest.er1
>conftest.err
23466 cat conftest.err
>&5
23467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); } && {
23469 test -z "$ac_c_werror_flag" ||
23470 test ! -s conftest.err
23471 } && test -s conftest.
$ac_objext; then
23472 cat >conftest.
$ac_ext <<_ACEOF
23475 cat confdefs.h
>>conftest.
$ac_ext
23476 cat >>conftest.
$ac_ext <<_ACEOF
23477 /* end confdefs.h. */
23478 $ac_includes_default
23482 if (sizeof ((u_bits32_t)))
23488 rm -f conftest.
$ac_objext
23489 if { (ac_try
="$ac_compile"
23490 case "(($ac_try" in
23491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23492 *) ac_try_echo=$ac_try;;
23494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23495 $as_echo "$ac_try_echo") >&5
23496 (eval "$ac_compile") 2>conftest.er1
23498 grep -v '^ *+' conftest.er1 >conftest.err
23500 cat conftest.err >&5
23501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); } && {
23503 test -z "$ac_c_werror_flag" ||
23504 test ! -s conftest.err
23505 } && test -s conftest.$ac_objext; then
23508 $as_echo "$as_me: failed program was:" >&5
23509 sed 's/^/| /' conftest.$ac_ext >&5
23511 ac_cv_type_u_bits32_t=yes
23514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23516 $as_echo "$as_me: failed program was:" >&5
23517 sed 's/^/| /' conftest.$ac_ext >&5
23522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23524 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
23525 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
23526 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
23530 cat >>confdefs.h <<_ACEOF
23531 #define u_bits32_t unsigned int
23536 elif test "$ac_cv_sizeof_long" = 4; then
23537 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
23538 $as_echo_n "checking for u_bits32_t... " >&6; }
23539 if test "${ac_cv_type_u_bits32_t+set}" = set; then
23540 $as_echo_n "(cached) " >&6
23542 ac_cv_type_u_bits32_t=no
23543 cat >conftest.$ac_ext <<_ACEOF
23546 cat confdefs.h >>conftest.$ac_ext
23547 cat >>conftest.$ac_ext <<_ACEOF
23548 /* end confdefs.h. */
23549 $ac_includes_default
23553 if (sizeof (u_bits32_t))
23559 rm -f conftest.$ac_objext
23560 if { (ac_try="$ac_compile"
23561 case "(($ac_try" in
23562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23563 *) ac_try_echo
=$ac_try;;
23565 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23566 $as_echo "$ac_try_echo") >&5
23567 (eval "$ac_compile") 2>conftest.er1
23569 grep -v '^ *+' conftest.er1
>conftest.err
23571 cat conftest.err
>&5
23572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573 (exit $ac_status); } && {
23574 test -z "$ac_c_werror_flag" ||
23575 test ! -s conftest.err
23576 } && test -s conftest.
$ac_objext; then
23577 cat >conftest.
$ac_ext <<_ACEOF
23580 cat confdefs.h
>>conftest.
$ac_ext
23581 cat >>conftest.
$ac_ext <<_ACEOF
23582 /* end confdefs.h. */
23583 $ac_includes_default
23587 if (sizeof ((u_bits32_t)))
23593 rm -f conftest.
$ac_objext
23594 if { (ac_try
="$ac_compile"
23595 case "(($ac_try" in
23596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23597 *) ac_try_echo=$ac_try;;
23599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23600 $as_echo "$ac_try_echo") >&5
23601 (eval "$ac_compile") 2>conftest.er1
23603 grep -v '^ *+' conftest.er1 >conftest.err
23605 cat conftest.err >&5
23606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); } && {
23608 test -z "$ac_c_werror_flag" ||
23609 test ! -s conftest.err
23610 } && test -s conftest.$ac_objext; then
23613 $as_echo "$as_me: failed program was:" >&5
23614 sed 's/^/| /' conftest.$ac_ext >&5
23616 ac_cv_type_u_bits32_t=yes
23619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23621 $as_echo "$as_me: failed program was:" >&5
23622 sed 's/^/| /' conftest.$ac_ext >&5
23627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23629 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
23630 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
23631 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
23635 cat >>confdefs.h <<_ACEOF
23636 #define u_bits32_t unsigned long
23642 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
23643 $as_echo_n "checking for u_bits32_t... " >&6; }
23644 if test "${ac_cv_type_u_bits32_t+set}" = set; then
23645 $as_echo_n "(cached) " >&6
23647 ac_cv_type_u_bits32_t=no
23648 cat >conftest.$ac_ext <<_ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h. */
23654 $ac_includes_default
23658 if (sizeof (u_bits32_t))
23664 rm -f conftest.$ac_objext
23665 if { (ac_try="$ac_compile"
23666 case "(($ac_try" in
23667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23668 *) ac_try_echo
=$ac_try;;
23670 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23671 $as_echo "$ac_try_echo") >&5
23672 (eval "$ac_compile") 2>conftest.er1
23674 grep -v '^ *+' conftest.er1
>conftest.err
23676 cat conftest.err
>&5
23677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); } && {
23679 test -z "$ac_c_werror_flag" ||
23680 test ! -s conftest.err
23681 } && test -s conftest.
$ac_objext; then
23682 cat >conftest.
$ac_ext <<_ACEOF
23685 cat confdefs.h
>>conftest.
$ac_ext
23686 cat >>conftest.
$ac_ext <<_ACEOF
23687 /* end confdefs.h. */
23688 $ac_includes_default
23692 if (sizeof ((u_bits32_t)))
23698 rm -f conftest.
$ac_objext
23699 if { (ac_try
="$ac_compile"
23700 case "(($ac_try" in
23701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23702 *) ac_try_echo=$ac_try;;
23704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23705 $as_echo "$ac_try_echo") >&5
23706 (eval "$ac_compile") 2>conftest.er1
23708 grep -v '^ *+' conftest.er1 >conftest.err
23710 cat conftest.err >&5
23711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); } && {
23713 test -z "$ac_c_werror_flag" ||
23714 test ! -s conftest.err
23715 } && test -s conftest.$ac_objext; then
23718 $as_echo "$as_me: failed program was:" >&5
23719 sed 's/^/| /' conftest.$ac_ext >&5
23721 ac_cv_type_u_bits32_t=yes
23724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23726 $as_echo "$as_me: failed program was:" >&5
23727 sed 's/^/| /' conftest.$ac_ext >&5
23732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23734 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
23735 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
23736 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
23740 cat >>confdefs.h <<_ACEOF
23741 #define u_bits32_t unsigned int
23749 if test "$ac_cv_sizeof_char_p" = 8; then
23750 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
23751 $as_echo_n "checking for bits64_t... " >&6; }
23752 if test "${ac_cv_type_bits64_t+set}" = set; then
23753 $as_echo_n "(cached) " >&6
23755 ac_cv_type_bits64_t=no
23756 cat >conftest.$ac_ext <<_ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h. */
23762 $ac_includes_default
23766 if (sizeof (bits64_t))
23772 rm -f conftest.$ac_objext
23773 if { (ac_try="$ac_compile"
23774 case "(($ac_try" in
23775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23776 *) ac_try_echo
=$ac_try;;
23778 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23779 $as_echo "$ac_try_echo") >&5
23780 (eval "$ac_compile") 2>conftest.er1
23782 grep -v '^ *+' conftest.er1
>conftest.err
23784 cat conftest.err
>&5
23785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); } && {
23787 test -z "$ac_c_werror_flag" ||
23788 test ! -s conftest.err
23789 } && test -s conftest.
$ac_objext; then
23790 cat >conftest.
$ac_ext <<_ACEOF
23793 cat confdefs.h
>>conftest.
$ac_ext
23794 cat >>conftest.
$ac_ext <<_ACEOF
23795 /* end confdefs.h. */
23796 $ac_includes_default
23800 if (sizeof ((bits64_t)))
23806 rm -f conftest.
$ac_objext
23807 if { (ac_try
="$ac_compile"
23808 case "(($ac_try" in
23809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23810 *) ac_try_echo=$ac_try;;
23812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23813 $as_echo "$ac_try_echo") >&5
23814 (eval "$ac_compile") 2>conftest.er1
23816 grep -v '^ *+' conftest.er1 >conftest.err
23818 cat conftest.err >&5
23819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); } && {
23821 test -z "$ac_c_werror_flag" ||
23822 test ! -s conftest.err
23823 } && test -s conftest.$ac_objext; then
23826 $as_echo "$as_me: failed program was:" >&5
23827 sed 's/^/| /' conftest.$ac_ext >&5
23829 ac_cv_type_bits64_t=yes
23832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23834 $as_echo "$as_me: failed program was:" >&5
23835 sed 's/^/| /' conftest.$ac_ext >&5
23840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23842 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
23843 $as_echo "$ac_cv_type_bits64_t" >&6; }
23844 if test "x$ac_cv_type_bits64_t" = x""yes; then
23848 cat >>confdefs.h <<_ACEOF
23849 #define bits64_t char *
23854 elif test "$ac_cv_sizeof_double" = 8; then
23855 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
23856 $as_echo_n "checking for bits64_t... " >&6; }
23857 if test "${ac_cv_type_bits64_t+set}" = set; then
23858 $as_echo_n "(cached) " >&6
23860 ac_cv_type_bits64_t=no
23861 cat >conftest.$ac_ext <<_ACEOF
23864 cat confdefs.h >>conftest.$ac_ext
23865 cat >>conftest.$ac_ext <<_ACEOF
23866 /* end confdefs.h. */
23867 $ac_includes_default
23871 if (sizeof (bits64_t))
23877 rm -f conftest.$ac_objext
23878 if { (ac_try="$ac_compile"
23879 case "(($ac_try" in
23880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23881 *) ac_try_echo
=$ac_try;;
23883 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23884 $as_echo "$ac_try_echo") >&5
23885 (eval "$ac_compile") 2>conftest.er1
23887 grep -v '^ *+' conftest.er1
>conftest.err
23889 cat conftest.err
>&5
23890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); } && {
23892 test -z "$ac_c_werror_flag" ||
23893 test ! -s conftest.err
23894 } && test -s conftest.
$ac_objext; then
23895 cat >conftest.
$ac_ext <<_ACEOF
23898 cat confdefs.h
>>conftest.
$ac_ext
23899 cat >>conftest.
$ac_ext <<_ACEOF
23900 /* end confdefs.h. */
23901 $ac_includes_default
23905 if (sizeof ((bits64_t)))
23911 rm -f conftest.
$ac_objext
23912 if { (ac_try
="$ac_compile"
23913 case "(($ac_try" in
23914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23915 *) ac_try_echo=$ac_try;;
23917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23918 $as_echo "$ac_try_echo") >&5
23919 (eval "$ac_compile") 2>conftest.er1
23921 grep -v '^ *+' conftest.er1 >conftest.err
23923 cat conftest.err >&5
23924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925 (exit $ac_status); } && {
23926 test -z "$ac_c_werror_flag" ||
23927 test ! -s conftest.err
23928 } && test -s conftest.$ac_objext; then
23931 $as_echo "$as_me: failed program was:" >&5
23932 sed 's/^/| /' conftest.$ac_ext >&5
23934 ac_cv_type_bits64_t=yes
23937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23939 $as_echo "$as_me: failed program was:" >&5
23940 sed 's/^/| /' conftest.$ac_ext >&5
23945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23947 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
23948 $as_echo "$ac_cv_type_bits64_t" >&6; }
23949 if test "x$ac_cv_type_bits64_t" = x""yes; then
23953 cat >>confdefs.h <<_ACEOF
23954 #define bits64_t double
23959 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
23960 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
23961 $as_echo_n "checking for bits64_t... " >&6; }
23962 if test "${ac_cv_type_bits64_t+set}" = set; then
23963 $as_echo_n "(cached) " >&6
23965 ac_cv_type_bits64_t=no
23966 cat >conftest.$ac_ext <<_ACEOF
23969 cat confdefs.h >>conftest.$ac_ext
23970 cat >>conftest.$ac_ext <<_ACEOF
23971 /* end confdefs.h. */
23972 $ac_includes_default
23976 if (sizeof (bits64_t))
23982 rm -f conftest.$ac_objext
23983 if { (ac_try="$ac_compile"
23984 case "(($ac_try" in
23985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23986 *) ac_try_echo
=$ac_try;;
23988 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23989 $as_echo "$ac_try_echo") >&5
23990 (eval "$ac_compile") 2>conftest.er1
23992 grep -v '^ *+' conftest.er1
>conftest.err
23994 cat conftest.err
>&5
23995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996 (exit $ac_status); } && {
23997 test -z "$ac_c_werror_flag" ||
23998 test ! -s conftest.err
23999 } && test -s conftest.
$ac_objext; then
24000 cat >conftest.
$ac_ext <<_ACEOF
24003 cat confdefs.h
>>conftest.
$ac_ext
24004 cat >>conftest.
$ac_ext <<_ACEOF
24005 /* end confdefs.h. */
24006 $ac_includes_default
24010 if (sizeof ((bits64_t)))
24016 rm -f conftest.
$ac_objext
24017 if { (ac_try
="$ac_compile"
24018 case "(($ac_try" in
24019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24020 *) ac_try_echo=$ac_try;;
24022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24023 $as_echo "$ac_try_echo") >&5
24024 (eval "$ac_compile") 2>conftest.er1
24026 grep -v '^ *+' conftest.er1 >conftest.err
24028 cat conftest.err >&5
24029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030 (exit $ac_status); } && {
24031 test -z "$ac_c_werror_flag" ||
24032 test ! -s conftest.err
24033 } && test -s conftest.$ac_objext; then
24036 $as_echo "$as_me: failed program was:" >&5
24037 sed 's/^/| /' conftest.$ac_ext >&5
24039 ac_cv_type_bits64_t=yes
24042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24044 $as_echo "$as_me: failed program was:" >&5
24045 sed 's/^/| /' conftest.$ac_ext >&5
24050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24052 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24053 $as_echo "$ac_cv_type_bits64_t" >&6; }
24054 if test "x$ac_cv_type_bits64_t" = x""yes; then
24058 cat >>confdefs.h <<_ACEOF
24059 #define bits64_t long long
24064 elif test "$ac_cv_sizeof_long" = 8; then
24065 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24066 $as_echo_n "checking for bits64_t... " >&6; }
24067 if test "${ac_cv_type_bits64_t+set}" = set; then
24068 $as_echo_n "(cached) " >&6
24070 ac_cv_type_bits64_t=no
24071 cat >conftest.$ac_ext <<_ACEOF
24074 cat confdefs.h >>conftest.$ac_ext
24075 cat >>conftest.$ac_ext <<_ACEOF
24076 /* end confdefs.h. */
24077 $ac_includes_default
24081 if (sizeof (bits64_t))
24087 rm -f conftest.$ac_objext
24088 if { (ac_try="$ac_compile"
24089 case "(($ac_try" in
24090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24091 *) ac_try_echo
=$ac_try;;
24093 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24094 $as_echo "$ac_try_echo") >&5
24095 (eval "$ac_compile") 2>conftest.er1
24097 grep -v '^ *+' conftest.er1
>conftest.err
24099 cat conftest.err
>&5
24100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); } && {
24102 test -z "$ac_c_werror_flag" ||
24103 test ! -s conftest.err
24104 } && test -s conftest.
$ac_objext; then
24105 cat >conftest.
$ac_ext <<_ACEOF
24108 cat confdefs.h
>>conftest.
$ac_ext
24109 cat >>conftest.
$ac_ext <<_ACEOF
24110 /* end confdefs.h. */
24111 $ac_includes_default
24115 if (sizeof ((bits64_t)))
24121 rm -f conftest.
$ac_objext
24122 if { (ac_try
="$ac_compile"
24123 case "(($ac_try" in
24124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24125 *) ac_try_echo=$ac_try;;
24127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24128 $as_echo "$ac_try_echo") >&5
24129 (eval "$ac_compile") 2>conftest.er1
24131 grep -v '^ *+' conftest.er1 >conftest.err
24133 cat conftest.err >&5
24134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135 (exit $ac_status); } && {
24136 test -z "$ac_c_werror_flag" ||
24137 test ! -s conftest.err
24138 } && test -s conftest.$ac_objext; then
24141 $as_echo "$as_me: failed program was:" >&5
24142 sed 's/^/| /' conftest.$ac_ext >&5
24144 ac_cv_type_bits64_t=yes
24147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24149 $as_echo "$as_me: failed program was:" >&5
24150 sed 's/^/| /' conftest.$ac_ext >&5
24155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24157 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24158 $as_echo "$ac_cv_type_bits64_t" >&6; }
24159 if test "x$ac_cv_type_bits64_t" = x""yes; then
24163 cat >>confdefs.h <<_ACEOF
24164 #define bits64_t long
24170 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24171 $as_echo_n "checking for bits64_t... " >&6; }
24172 if test "${ac_cv_type_bits64_t+set}" = set; then
24173 $as_echo_n "(cached) " >&6
24175 ac_cv_type_bits64_t=no
24176 cat >conftest.$ac_ext <<_ACEOF
24179 cat confdefs.h >>conftest.$ac_ext
24180 cat >>conftest.$ac_ext <<_ACEOF
24181 /* end confdefs.h. */
24182 $ac_includes_default
24186 if (sizeof (bits64_t))
24192 rm -f conftest.$ac_objext
24193 if { (ac_try="$ac_compile"
24194 case "(($ac_try" in
24195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24196 *) ac_try_echo
=$ac_try;;
24198 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24199 $as_echo "$ac_try_echo") >&5
24200 (eval "$ac_compile") 2>conftest.er1
24202 grep -v '^ *+' conftest.er1
>conftest.err
24204 cat conftest.err
>&5
24205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206 (exit $ac_status); } && {
24207 test -z "$ac_c_werror_flag" ||
24208 test ! -s conftest.err
24209 } && test -s conftest.
$ac_objext; then
24210 cat >conftest.
$ac_ext <<_ACEOF
24213 cat confdefs.h
>>conftest.
$ac_ext
24214 cat >>conftest.
$ac_ext <<_ACEOF
24215 /* end confdefs.h. */
24216 $ac_includes_default
24220 if (sizeof ((bits64_t)))
24226 rm -f conftest.
$ac_objext
24227 if { (ac_try
="$ac_compile"
24228 case "(($ac_try" in
24229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24230 *) ac_try_echo=$ac_try;;
24232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24233 $as_echo "$ac_try_echo") >&5
24234 (eval "$ac_compile") 2>conftest.er1
24236 grep -v '^ *+' conftest.er1 >conftest.err
24238 cat conftest.err >&5
24239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240 (exit $ac_status); } && {
24241 test -z "$ac_c_werror_flag" ||
24242 test ! -s conftest.err
24243 } && test -s conftest.$ac_objext; then
24246 $as_echo "$as_me: failed program was:" >&5
24247 sed 's/^/| /' conftest.$ac_ext >&5
24249 ac_cv_type_bits64_t=yes
24252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24254 $as_echo "$as_me: failed program was:" >&5
24255 sed 's/^/| /' conftest.$ac_ext >&5
24260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24262 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24263 $as_echo "$ac_cv_type_bits64_t" >&6; }
24264 if test "x$ac_cv_type_bits64_t" = x""yes; then
24268 cat >>confdefs.h <<_ACEOF
24269 #define bits64_t double
24278 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
24279 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
24280 $as_echo_n "checking for ptrdiff_t... " >&6; }
24281 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
24282 $as_echo_n "(cached) " >&6
24284 ac_cv_type_ptrdiff_t=no
24285 cat >conftest.$ac_ext <<_ACEOF
24288 cat confdefs.h >>conftest.$ac_ext
24289 cat >>conftest.$ac_ext <<_ACEOF
24290 /* end confdefs.h. */
24291 $ac_includes_default
24295 if (sizeof (ptrdiff_t))
24301 rm -f conftest.$ac_objext
24302 if { (ac_try="$ac_compile"
24303 case "(($ac_try" in
24304 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24305 *) ac_try_echo
=$ac_try;;
24307 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24308 $as_echo "$ac_try_echo") >&5
24309 (eval "$ac_compile") 2>conftest.er1
24311 grep -v '^ *+' conftest.er1
>conftest.err
24313 cat conftest.err
>&5
24314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315 (exit $ac_status); } && {
24316 test -z "$ac_c_werror_flag" ||
24317 test ! -s conftest.err
24318 } && test -s conftest.
$ac_objext; then
24319 cat >conftest.
$ac_ext <<_ACEOF
24322 cat confdefs.h
>>conftest.
$ac_ext
24323 cat >>conftest.
$ac_ext <<_ACEOF
24324 /* end confdefs.h. */
24325 $ac_includes_default
24329 if (sizeof ((ptrdiff_t)))
24335 rm -f conftest.
$ac_objext
24336 if { (ac_try
="$ac_compile"
24337 case "(($ac_try" in
24338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24339 *) ac_try_echo=$ac_try;;
24341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24342 $as_echo "$ac_try_echo") >&5
24343 (eval "$ac_compile") 2>conftest.er1
24345 grep -v '^ *+' conftest.er1 >conftest.err
24347 cat conftest.err >&5
24348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349 (exit $ac_status); } && {
24350 test -z "$ac_c_werror_flag" ||
24351 test ! -s conftest.err
24352 } && test -s conftest.$ac_objext; then
24355 $as_echo "$as_me: failed program was:" >&5
24356 sed 's/^/| /' conftest.$ac_ext >&5
24358 ac_cv_type_ptrdiff_t=yes
24361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24363 $as_echo "$as_me: failed program was:" >&5
24364 sed 's/^/| /' conftest.$ac_ext >&5
24369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24371 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
24372 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
24373 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
24377 cat >>confdefs.h <<_ACEOF
24378 #define ptrdiff_t int
24383 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
24384 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
24385 $as_echo_n "checking for ptrdiff_t... " >&6; }
24386 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
24387 $as_echo_n "(cached) " >&6
24389 ac_cv_type_ptrdiff_t=no
24390 cat >conftest.$ac_ext <<_ACEOF
24393 cat confdefs.h >>conftest.$ac_ext
24394 cat >>conftest.$ac_ext <<_ACEOF
24395 /* end confdefs.h. */
24396 $ac_includes_default
24400 if (sizeof (ptrdiff_t))
24406 rm -f conftest.$ac_objext
24407 if { (ac_try="$ac_compile"
24408 case "(($ac_try" in
24409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24410 *) ac_try_echo
=$ac_try;;
24412 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24413 $as_echo "$ac_try_echo") >&5
24414 (eval "$ac_compile") 2>conftest.er1
24416 grep -v '^ *+' conftest.er1
>conftest.err
24418 cat conftest.err
>&5
24419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420 (exit $ac_status); } && {
24421 test -z "$ac_c_werror_flag" ||
24422 test ! -s conftest.err
24423 } && test -s conftest.
$ac_objext; then
24424 cat >conftest.
$ac_ext <<_ACEOF
24427 cat confdefs.h
>>conftest.
$ac_ext
24428 cat >>conftest.
$ac_ext <<_ACEOF
24429 /* end confdefs.h. */
24430 $ac_includes_default
24434 if (sizeof ((ptrdiff_t)))
24440 rm -f conftest.
$ac_objext
24441 if { (ac_try
="$ac_compile"
24442 case "(($ac_try" in
24443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24444 *) ac_try_echo=$ac_try;;
24446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24447 $as_echo "$ac_try_echo") >&5
24448 (eval "$ac_compile") 2>conftest.er1
24450 grep -v '^ *+' conftest.er1 >conftest.err
24452 cat conftest.err >&5
24453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); } && {
24455 test -z "$ac_c_werror_flag" ||
24456 test ! -s conftest.err
24457 } && test -s conftest.$ac_objext; then
24460 $as_echo "$as_me: failed program was:" >&5
24461 sed 's/^/| /' conftest.$ac_ext >&5
24463 ac_cv_type_ptrdiff_t=yes
24466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24468 $as_echo "$as_me: failed program was:" >&5
24469 sed 's/^/| /' conftest.$ac_ext >&5
24474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24476 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
24477 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
24478 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
24482 cat >>confdefs.h <<_ACEOF
24483 #define ptrdiff_t long
24488 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
24489 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
24490 $as_echo_n "checking for ptrdiff_t... " >&6; }
24491 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
24492 $as_echo_n "(cached) " >&6
24494 ac_cv_type_ptrdiff_t=no
24495 cat >conftest.$ac_ext <<_ACEOF
24498 cat confdefs.h >>conftest.$ac_ext
24499 cat >>conftest.$ac_ext <<_ACEOF
24500 /* end confdefs.h. */
24501 $ac_includes_default
24505 if (sizeof (ptrdiff_t))
24511 rm -f conftest.$ac_objext
24512 if { (ac_try="$ac_compile"
24513 case "(($ac_try" in
24514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24515 *) ac_try_echo
=$ac_try;;
24517 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24518 $as_echo "$ac_try_echo") >&5
24519 (eval "$ac_compile") 2>conftest.er1
24521 grep -v '^ *+' conftest.er1
>conftest.err
24523 cat conftest.err
>&5
24524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); } && {
24526 test -z "$ac_c_werror_flag" ||
24527 test ! -s conftest.err
24528 } && test -s conftest.
$ac_objext; then
24529 cat >conftest.
$ac_ext <<_ACEOF
24532 cat confdefs.h
>>conftest.
$ac_ext
24533 cat >>conftest.
$ac_ext <<_ACEOF
24534 /* end confdefs.h. */
24535 $ac_includes_default
24539 if (sizeof ((ptrdiff_t)))
24545 rm -f conftest.
$ac_objext
24546 if { (ac_try
="$ac_compile"
24547 case "(($ac_try" in
24548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24549 *) ac_try_echo=$ac_try;;
24551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24552 $as_echo "$ac_try_echo") >&5
24553 (eval "$ac_compile") 2>conftest.er1
24555 grep -v '^ *+' conftest.er1 >conftest.err
24557 cat conftest.err >&5
24558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559 (exit $ac_status); } && {
24560 test -z "$ac_c_werror_flag" ||
24561 test ! -s conftest.err
24562 } && test -s conftest.$ac_objext; then
24565 $as_echo "$as_me: failed program was:" >&5
24566 sed 's/^/| /' conftest.$ac_ext >&5
24568 ac_cv_type_ptrdiff_t=yes
24571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24573 $as_echo "$as_me: failed program was:" >&5
24574 sed 's/^/| /' conftest.$ac_ext >&5
24579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24581 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
24582 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
24583 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
24587 cat >>confdefs.h <<_ACEOF
24588 #define ptrdiff_t long long
24594 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
24595 $as_echo_n "checking for ptrdiff_t... " >&6; }
24596 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
24597 $as_echo_n "(cached) " >&6
24599 ac_cv_type_ptrdiff_t=no
24600 cat >conftest.$ac_ext <<_ACEOF
24603 cat confdefs.h >>conftest.$ac_ext
24604 cat >>conftest.$ac_ext <<_ACEOF
24605 /* end confdefs.h. */
24606 $ac_includes_default
24610 if (sizeof (ptrdiff_t))
24616 rm -f conftest.$ac_objext
24617 if { (ac_try="$ac_compile"
24618 case "(($ac_try" in
24619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24620 *) ac_try_echo
=$ac_try;;
24622 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24623 $as_echo "$ac_try_echo") >&5
24624 (eval "$ac_compile") 2>conftest.er1
24626 grep -v '^ *+' conftest.er1
>conftest.err
24628 cat conftest.err
>&5
24629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24630 (exit $ac_status); } && {
24631 test -z "$ac_c_werror_flag" ||
24632 test ! -s conftest.err
24633 } && test -s conftest.
$ac_objext; then
24634 cat >conftest.
$ac_ext <<_ACEOF
24637 cat confdefs.h
>>conftest.
$ac_ext
24638 cat >>conftest.
$ac_ext <<_ACEOF
24639 /* end confdefs.h. */
24640 $ac_includes_default
24644 if (sizeof ((ptrdiff_t)))
24650 rm -f conftest.
$ac_objext
24651 if { (ac_try
="$ac_compile"
24652 case "(($ac_try" in
24653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24654 *) ac_try_echo=$ac_try;;
24656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24657 $as_echo "$ac_try_echo") >&5
24658 (eval "$ac_compile") 2>conftest.er1
24660 grep -v '^ *+' conftest.er1 >conftest.err
24662 cat conftest.err >&5
24663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24664 (exit $ac_status); } && {
24665 test -z "$ac_c_werror_flag" ||
24666 test ! -s conftest.err
24667 } && test -s conftest.$ac_objext; then
24670 $as_echo "$as_me: failed program was:" >&5
24671 sed 's/^/| /' conftest.$ac_ext >&5
24673 ac_cv_type_ptrdiff_t=yes
24676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24678 $as_echo "$as_me: failed program was:" >&5
24679 sed 's/^/| /' conftest.$ac_ext >&5
24684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24686 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
24687 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
24688 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
24692 cat >>confdefs.h <<_ACEOF
24693 #define ptrdiff_t int
24701 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
24702 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
24703 if test "${ac_cv_header_stat_broken+set}" = set; then
24704 $as_echo_n "(cached) " >&6
24706 cat >conftest.$ac_ext <<_ACEOF
24709 cat confdefs.h >>conftest.$ac_ext
24710 cat >>conftest.$ac_ext <<_ACEOF
24711 /* end confdefs.h. */
24712 #include <sys/types.h>
24713 #include <sys/stat.h>
24715 #if defined S_ISBLK && defined S_IFDIR
24716 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
24719 #if defined S_ISBLK && defined S_IFCHR
24720 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
24723 #if defined S_ISLNK && defined S_IFREG
24724 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
24727 #if defined S_ISSOCK && defined S_IFREG
24728 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
24732 rm -f conftest.$ac_objext
24733 if { (ac_try="$ac_compile"
24734 case "(($ac_try" in
24735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24736 *) ac_try_echo
=$ac_try;;
24738 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24739 $as_echo "$ac_try_echo") >&5
24740 (eval "$ac_compile") 2>conftest.er1
24742 grep -v '^ *+' conftest.er1
>conftest.err
24744 cat conftest.err
>&5
24745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); } && {
24747 test -z "$ac_c_werror_flag" ||
24748 test ! -s conftest.err
24749 } && test -s conftest.
$ac_objext; then
24750 ac_cv_header_stat_broken
=no
24752 $as_echo "$as_me: failed program was:" >&5
24753 sed 's/^/| /' conftest.
$ac_ext >&5
24755 ac_cv_header_stat_broken
=yes
24758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24760 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
24761 $as_echo "$ac_cv_header_stat_broken" >&6; }
24762 if test $ac_cv_header_stat_broken = yes; then
24764 cat >>confdefs.h
<<\_ACEOF
24765 #define STAT_MACROS_BROKEN 1
24771 { $as_echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
24772 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
24773 if test "${ac_cv_sys_interpreter+set}" = set; then
24774 $as_echo_n "(cached) " >&6
24780 (SHELL
=/bin
/sh
; export SHELL
; .
/conftest
>/dev
/null
2>&1)
24781 if test $?
-ne 69; then
24782 ac_cv_sys_interpreter
=yes
24784 ac_cv_sys_interpreter
=no
24788 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
24789 $as_echo "$ac_cv_sys_interpreter" >&6; }
24790 interpval
=$ac_cv_sys_interpreter
24792 if test $ac_cv_sys_interpreter = yes; then
24793 cat >>confdefs.h
<<\_ACEOF
24794 #define HAVE_HASH_BANG_EXEC 1
24799 if test "$ac_cv_func_lstat" = "no"; then
24800 { $as_echo "$as_me:$LINENO: checking for lstat" >&5
24801 $as_echo_n "checking for lstat... " >&6; }
24802 if test "${bash_cv_func_lstat+set}" = set; then
24803 $as_echo_n "(cached) " >&6
24805 cat >conftest.
$ac_ext <<_ACEOF
24808 cat confdefs.h
>>conftest.
$ac_ext
24809 cat >>conftest.
$ac_ext <<_ACEOF
24810 /* end confdefs.h. */
24812 #include <sys/types.h>
24813 #include <sys/stat.h>
24818 lstat(".",(struct stat *)0);
24823 rm -f conftest.
$ac_objext conftest
$ac_exeext
24824 if { (ac_try
="$ac_link"
24825 case "(($ac_try" in
24826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24827 *) ac_try_echo=$ac_try;;
24829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24830 $as_echo "$ac_try_echo") >&5
24831 (eval "$ac_link") 2>conftest.er1
24833 grep -v '^ *+' conftest.er1 >conftest.err
24835 cat conftest.err >&5
24836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837 (exit $ac_status); } && {
24838 test -z "$ac_c_werror_flag" ||
24839 test ! -s conftest.err
24840 } && test -s conftest$ac_exeext && {
24841 test "$cross_compiling" = yes ||
24842 $as_test_x conftest$ac_exeext
24844 bash_cv_func_lstat=yes
24846 $as_echo "$as_me: failed program was:" >&5
24847 sed 's/^/| /' conftest.$ac_ext >&5
24849 bash_cv_func_lstat=no
24852 rm -rf conftest.dSYM
24853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24854 conftest$ac_exeext conftest.$ac_ext
24856 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
24857 $as_echo "$bash_cv_func_lstat" >&6; }
24858 if test $bash_cv_func_lstat = yes; then
24859 cat >>confdefs.h <<\_ACEOF
24860 #define HAVE_LSTAT 1
24868 { $as_echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
24869 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
24870 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
24871 $as_echo_n "(cached) " >&6
24873 if test "$cross_compiling" = yes; then
24874 { $as_echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
24875 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
24876 bash_cv_func_ctype_nonascii=no
24879 cat >conftest.$ac_ext <<_ACEOF
24882 cat confdefs.h >>conftest.$ac_ext
24883 cat >>conftest.$ac_ext <<_ACEOF
24884 /* end confdefs.h. */
24886 #ifdef HAVE_LOCALE_H
24887 #include <locale.h>
24900 #ifdef HAVE_SETLOCALE
24901 /* We take a shot here. If that locale is not known, try the
24902 system default. We try this one because '\342' (226) is
24903 known to be a printable character in that locale. */
24904 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
24905 if (deflocale == 0)
24906 deflocale = setlocale(LC_ALL, "");
24913 exit (r1 == 0 || r2 == 0);
24917 rm -f conftest$ac_exeext
24918 if { (ac_try="$ac_link"
24919 case "(($ac_try" in
24920 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24921 *) ac_try_echo
=$ac_try;;
24923 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24924 $as_echo "$ac_try_echo") >&5
24925 (eval "$ac_link") 2>&5
24927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24929 { (case "(($ac_try" in
24930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24931 *) ac_try_echo=$ac_try;;
24933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24934 $as_echo "$ac_try_echo") >&5
24935 (eval "$ac_try") 2>&5
24937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); }; }; then
24939 bash_cv_func_ctype_nonascii=yes
24941 $as_echo "$as_me: program exited with status $ac_status" >&5
24942 $as_echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24945 ( exit $ac_status )
24946 bash_cv_func_ctype_nonascii=no
24948 rm -rf conftest.dSYM
24949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24955 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
24956 $as_echo "$bash_cv_func_ctype_nonascii" >&6; }
24957 if test $bash_cv_func_ctype_nonascii = yes; then
24958 cat >>confdefs.h <<\_ACEOF
24959 #define CTYPE_NON_ASCII 1
24964 { $as_echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
24965 $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
24966 if test "${bash_cv_dup2_broken+set}" = set; then
24967 $as_echo_n "(cached) " >&6
24969 if test "$cross_compiling" = yes; then
24970 { $as_echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
24971 $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
24972 bash_cv_dup2_broken=no
24974 cat >conftest.$ac_ext <<_ACEOF
24977 cat confdefs.h >>conftest.$ac_ext
24978 cat >>conftest.$ac_ext <<_ACEOF
24979 /* end confdefs.h. */
24981 #include <sys/types.h>
24986 fd1 = open("/dev/null", 2);
24987 if (fcntl(fd1, 2, 1) < 0)
24989 fd2 = dup2(fd1, 1);
24992 fl = fcntl(fd2, 1, 0);
24993 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
24998 rm -f conftest$ac_exeext
24999 if { (ac_try="$ac_link"
25000 case "(($ac_try" in
25001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25002 *) ac_try_echo
=$ac_try;;
25004 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25005 $as_echo "$ac_try_echo") >&5
25006 (eval "$ac_link") 2>&5
25008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25010 { (case "(($ac_try" in
25011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25012 *) ac_try_echo=$ac_try;;
25014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25015 $as_echo "$ac_try_echo") >&5
25016 (eval "$ac_try") 2>&5
25018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); }; }; then
25020 bash_cv_dup2_broken=yes
25022 $as_echo "$as_me: program exited with status $ac_status" >&5
25023 $as_echo "$as_me: failed program was:" >&5
25024 sed 's/^/| /' conftest.$ac_ext >&5
25026 ( exit $ac_status )
25027 bash_cv_dup2_broken=no
25029 rm -rf conftest.dSYM
25030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25037 { $as_echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
25038 $as_echo "$bash_cv_dup2_broken" >&6; }
25039 if test $bash_cv_dup2_broken = yes; then
25040 cat >>confdefs.h <<\_ACEOF
25041 #define DUP2_BROKEN 1
25047 { $as_echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
25048 $as_echo_n "checking whether pgrps need synchronization... " >&6; }
25049 if test "${bash_cv_pgrp_pipe+set}" = set; then
25050 $as_echo_n "(cached) " >&6
25052 if test "$cross_compiling" = yes; then
25053 { $as_echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
25054 $as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
25055 bash_cv_pgrp_pipe=no
25057 cat >conftest.$ac_ext <<_ACEOF
25060 cat confdefs.h >>conftest.$ac_ext
25061 cat >>conftest.$ac_ext <<_ACEOF
25062 /* end confdefs.h. */
25064 #ifdef HAVE_UNISTD_H
25065 # include <unistd.h>
25069 # ifdef GETPGRP_VOID
25070 # define getpgID() getpgrp()
25072 # define getpgID() getpgrp(0)
25073 # define setpgid(x,y) setpgrp(x,y)
25075 int pid1, pid2, fds[2];
25079 switch (pid1 = fork()) {
25083 setpgid(0, getpid());
25086 setpgid(pid1, pid1);
25088 sleep(2); /* let first child die */
25093 switch (pid2 = fork()) {
25098 ok = getpgID() == pid1;
25099 write(fds[1], &ok, 1);
25102 setpgid(pid2, pid1);
25105 if (read(fds[0], &ok, 1) != 1)
25113 rm -f conftest$ac_exeext
25114 if { (ac_try="$ac_link"
25115 case "(($ac_try" in
25116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25117 *) ac_try_echo
=$ac_try;;
25119 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25120 $as_echo "$ac_try_echo") >&5
25121 (eval "$ac_link") 2>&5
25123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25125 { (case "(($ac_try" in
25126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25127 *) ac_try_echo=$ac_try;;
25129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25130 $as_echo "$ac_try_echo") >&5
25131 (eval "$ac_try") 2>&5
25133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134 (exit $ac_status); }; }; then
25135 bash_cv_pgrp_pipe=no
25137 $as_echo "$as_me: program exited with status $ac_status" >&5
25138 $as_echo "$as_me: failed program was:" >&5
25139 sed 's/^/| /' conftest.$ac_ext >&5
25141 ( exit $ac_status )
25142 bash_cv_pgrp_pipe=yes
25144 rm -rf conftest.dSYM
25145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25152 { $as_echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
25153 $as_echo "$bash_cv_pgrp_pipe" >&6; }
25154 if test $bash_cv_pgrp_pipe = yes; then
25155 cat >>confdefs.h <<\_ACEOF
25156 #define PGRP_PIPE 1
25162 { $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5
25163 $as_echo_n "checking for type of signal functions... " >&6; }
25164 if test "${bash_cv_signal_vintage+set}" = set; then
25165 $as_echo_n "(cached) " >&6
25168 cat >conftest.$ac_ext <<_ACEOF
25171 cat confdefs.h >>conftest.$ac_ext
25172 cat >>conftest.$ac_ext <<_ACEOF
25173 /* end confdefs.h. */
25174 #include <signal.h>
25180 struct sigaction sa;
25181 sigemptyset(&ss); sigsuspend(&ss);
25182 sigaction(SIGINT, &sa, (struct sigaction *) 0);
25183 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
25189 rm -f conftest.$ac_objext conftest$ac_exeext
25190 if { (ac_try="$ac_link"
25191 case "(($ac_try" in
25192 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25193 *) ac_try_echo
=$ac_try;;
25195 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25196 $as_echo "$ac_try_echo") >&5
25197 (eval "$ac_link") 2>conftest.er1
25199 grep -v '^ *+' conftest.er1
>conftest.err
25201 cat conftest.err
>&5
25202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); } && {
25204 test -z "$ac_c_werror_flag" ||
25205 test ! -s conftest.err
25206 } && test -s conftest
$ac_exeext && {
25207 test "$cross_compiling" = yes ||
25208 $as_test_x conftest
$ac_exeext
25210 bash_cv_signal_vintage
=posix
25212 $as_echo "$as_me: failed program was:" >&5
25213 sed 's/^/| /' conftest.
$ac_ext >&5
25216 cat >conftest.
$ac_ext <<_ACEOF
25219 cat confdefs.h
>>conftest.
$ac_ext
25220 cat >>conftest.
$ac_ext <<_ACEOF
25221 /* end confdefs.h. */
25222 #include <signal.h>
25227 int mask = sigmask(SIGINT);
25228 sigsetmask(mask); sigblock(mask); sigpause(mask);
25234 rm -f conftest.
$ac_objext conftest
$ac_exeext
25235 if { (ac_try
="$ac_link"
25236 case "(($ac_try" in
25237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25238 *) ac_try_echo=$ac_try;;
25240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25241 $as_echo "$ac_try_echo") >&5
25242 (eval "$ac_link") 2>conftest.er1
25244 grep -v '^ *+' conftest.er1 >conftest.err
25246 cat conftest.err >&5
25247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248 (exit $ac_status); } && {
25249 test -z "$ac_c_werror_flag" ||
25250 test ! -s conftest.err
25251 } && test -s conftest$ac_exeext && {
25252 test "$cross_compiling" = yes ||
25253 $as_test_x conftest$ac_exeext
25255 bash_cv_signal_vintage=4.2bsd
25257 $as_echo "$as_me: failed program was:" >&5
25258 sed 's/^/| /' conftest.$ac_ext >&5
25261 cat >conftest.$ac_ext <<_ACEOF
25264 cat confdefs.h >>conftest.$ac_ext
25265 cat >>conftest.$ac_ext <<_ACEOF
25266 /* end confdefs.h. */
25268 #include <signal.h>
25269 RETSIGTYPE foo() { }
25274 int mask = sigmask(SIGINT);
25275 sigset(SIGINT, foo); sigrelse(SIGINT);
25276 sighold(SIGINT); sigpause(SIGINT);
25282 rm -f conftest.$ac_objext conftest$ac_exeext
25283 if { (ac_try="$ac_link"
25284 case "(($ac_try" in
25285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25286 *) ac_try_echo
=$ac_try;;
25288 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25289 $as_echo "$ac_try_echo") >&5
25290 (eval "$ac_link") 2>conftest.er1
25292 grep -v '^ *+' conftest.er1
>conftest.err
25294 cat conftest.err
>&5
25295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25296 (exit $ac_status); } && {
25297 test -z "$ac_c_werror_flag" ||
25298 test ! -s conftest.err
25299 } && test -s conftest
$ac_exeext && {
25300 test "$cross_compiling" = yes ||
25301 $as_test_x conftest
$ac_exeext
25303 bash_cv_signal_vintage
=svr3
25305 $as_echo "$as_me: failed program was:" >&5
25306 sed 's/^/| /' conftest.
$ac_ext >&5
25308 bash_cv_signal_vintage
=v7
25312 rm -rf conftest.dSYM
25313 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25314 conftest
$ac_exeext conftest.
$ac_ext
25318 rm -rf conftest.dSYM
25319 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25320 conftest
$ac_exeext conftest.
$ac_ext
25324 rm -rf conftest.dSYM
25325 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25326 conftest
$ac_exeext conftest.
$ac_ext
25330 { $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
25331 $as_echo "$bash_cv_signal_vintage" >&6; }
25332 if test "$bash_cv_signal_vintage" = posix
; then
25333 cat >>confdefs.h
<<\_ACEOF
25334 #define HAVE_POSIX_SIGNALS 1
25337 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
25338 cat >>confdefs.h
<<\_ACEOF
25339 #define HAVE_BSD_SIGNALS 1
25342 elif test "$bash_cv_signal_vintage" = svr3
; then
25343 cat >>confdefs.h
<<\_ACEOF
25344 #define HAVE_USG_SIGHOLD 1
25350 { $as_echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
25351 $as_echo_n "checking for sys_errlist and sys_nerr... " >&6; }
25352 if test "${bash_cv_sys_errlist+set}" = set; then
25353 $as_echo_n "(cached) " >&6
25355 cat >conftest.
$ac_ext <<_ACEOF
25358 cat confdefs.h
>>conftest.
$ac_ext
25359 cat >>conftest.
$ac_ext <<_ACEOF
25360 /* end confdefs.h. */
25365 extern char *sys_errlist[];
25366 extern int sys_nerr;
25367 char *msg = sys_errlist[sys_nerr - 1];
25372 rm -f conftest.
$ac_objext conftest
$ac_exeext
25373 if { (ac_try
="$ac_link"
25374 case "(($ac_try" in
25375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25376 *) ac_try_echo=$ac_try;;
25378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25379 $as_echo "$ac_try_echo") >&5
25380 (eval "$ac_link") 2>conftest.er1
25382 grep -v '^ *+' conftest.er1 >conftest.err
25384 cat conftest.err >&5
25385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386 (exit $ac_status); } && {
25387 test -z "$ac_c_werror_flag" ||
25388 test ! -s conftest.err
25389 } && test -s conftest$ac_exeext && {
25390 test "$cross_compiling" = yes ||
25391 $as_test_x conftest$ac_exeext
25393 bash_cv_sys_errlist=yes
25395 $as_echo "$as_me: failed program was:" >&5
25396 sed 's/^/| /' conftest.$ac_ext >&5
25398 bash_cv_sys_errlist=no
25401 rm -rf conftest.dSYM
25402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25403 conftest$ac_exeext conftest.$ac_ext
25405 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
25406 $as_echo "$bash_cv_sys_errlist" >&6; }
25407 if test $bash_cv_sys_errlist = yes; then
25408 cat >>confdefs.h <<\_ACEOF
25409 #define HAVE_SYS_ERRLIST 1
25415 { $as_echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
25416 $as_echo_n "checking for sys_siglist in system C library... " >&6; }
25417 if test "${bash_cv_sys_siglist+set}" = set; then
25418 $as_echo_n "(cached) " >&6
25420 if test "$cross_compiling" = yes; then
25421 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
25422 $as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
25423 bash_cv_sys_siglist=no
25425 cat >conftest.$ac_ext <<_ACEOF
25428 cat confdefs.h >>conftest.$ac_ext
25429 cat >>conftest.$ac_ext <<_ACEOF
25430 /* end confdefs.h. */
25432 #include <sys/types.h>
25433 #include <signal.h>
25434 #ifdef HAVE_UNISTD_H
25435 #include <unistd.h>
25437 #if !HAVE_DECL_SYS_SIGLIST
25438 extern char *sys_siglist[];
25442 char *msg = sys_siglist[2];
25446 rm -f conftest$ac_exeext
25447 if { (ac_try="$ac_link"
25448 case "(($ac_try" in
25449 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25450 *) ac_try_echo
=$ac_try;;
25452 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25453 $as_echo "$ac_try_echo") >&5
25454 (eval "$ac_link") 2>&5
25456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25458 { (case "(($ac_try" in
25459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25460 *) ac_try_echo=$ac_try;;
25462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25463 $as_echo "$ac_try_echo") >&5
25464 (eval "$ac_try") 2>&5
25466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467 (exit $ac_status); }; }; then
25468 bash_cv_sys_siglist=yes
25470 $as_echo "$as_me: program exited with status $ac_status" >&5
25471 $as_echo "$as_me: failed program was:" >&5
25472 sed 's/^/| /' conftest.$ac_ext >&5
25474 ( exit $ac_status )
25475 bash_cv_sys_siglist=no
25477 rm -rf conftest.dSYM
25478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25484 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
25485 $as_echo "$bash_cv_sys_siglist" >&6; }
25486 if test $bash_cv_sys_siglist = yes; then
25487 cat >>confdefs.h <<\_ACEOF
25488 #define HAVE_SYS_SIGLIST 1
25493 { $as_echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
25494 $as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
25495 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
25496 $as_echo_n "(cached) " >&6
25498 cat >conftest.$ac_ext <<_ACEOF
25501 cat confdefs.h >>conftest.$ac_ext
25502 cat >>conftest.$ac_ext <<_ACEOF
25503 /* end confdefs.h. */
25505 #include <sys/types.h>
25506 #include <signal.h>
25507 #ifdef HAVE_UNISTD_H
25508 #include <unistd.h>
25513 char *msg = _sys_siglist[2];
25518 rm -f conftest.$ac_objext
25519 if { (ac_try="$ac_compile"
25520 case "(($ac_try" in
25521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25522 *) ac_try_echo
=$ac_try;;
25524 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25525 $as_echo "$ac_try_echo") >&5
25526 (eval "$ac_compile") 2>conftest.er1
25528 grep -v '^ *+' conftest.er1
>conftest.err
25530 cat conftest.err
>&5
25531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532 (exit $ac_status); } && {
25533 test -z "$ac_c_werror_flag" ||
25534 test ! -s conftest.err
25535 } && test -s conftest.
$ac_objext; then
25536 bash_cv_decl_under_sys_siglist
=yes
25538 $as_echo "$as_me: failed program was:" >&5
25539 sed 's/^/| /' conftest.
$ac_ext >&5
25541 bash_cv_decl_under_sys_siglist
=no
25544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25546 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
25547 $as_echo "$bash_cv_decl_under_sys_siglist" >&6; }
25548 if test $bash_cv_decl_under_sys_siglist = yes; then
25549 cat >>confdefs.h
<<\_ACEOF
25550 #define UNDER_SYS_SIGLIST_DECLARED 1
25556 { $as_echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
25557 $as_echo_n "checking for _sys_siglist in system C library... " >&6; }
25558 if test "${bash_cv_under_sys_siglist+set}" = set; then
25559 $as_echo_n "(cached) " >&6
25561 if test "$cross_compiling" = yes; then
25562 { $as_echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
25563 $as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
25564 bash_cv_under_sys_siglist
=no
25566 cat >conftest.
$ac_ext <<_ACEOF
25569 cat confdefs.h
>>conftest.
$ac_ext
25570 cat >>conftest.
$ac_ext <<_ACEOF
25571 /* end confdefs.h. */
25573 #include <sys/types.h>
25574 #include <signal.h>
25575 #ifdef HAVE_UNISTD_H
25576 #include <unistd.h>
25578 #ifndef UNDER_SYS_SIGLIST_DECLARED
25579 extern char *_sys_siglist[];
25583 char *msg = (char *)_sys_siglist[2];
25587 rm -f conftest
$ac_exeext
25588 if { (ac_try
="$ac_link"
25589 case "(($ac_try" in
25590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25591 *) ac_try_echo=$ac_try;;
25593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25594 $as_echo "$ac_try_echo") >&5
25595 (eval "$ac_link") 2>&5
25597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25599 { (case "(($ac_try" in
25600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25601 *) ac_try_echo
=$ac_try;;
25603 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25604 $as_echo "$ac_try_echo") >&5
25605 (eval "$ac_try") 2>&5
25607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608 (exit $ac_status); }; }; then
25609 bash_cv_under_sys_siglist
=yes
25611 $as_echo "$as_me: program exited with status $ac_status" >&5
25612 $as_echo "$as_me: failed program was:" >&5
25613 sed 's/^/| /' conftest.
$ac_ext >&5
25615 ( exit $ac_status )
25616 bash_cv_under_sys_siglist
=no
25618 rm -rf conftest.dSYM
25619 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25625 { $as_echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
25626 $as_echo "$bash_cv_under_sys_siglist" >&6; }
25627 if test $bash_cv_under_sys_siglist = yes; then
25628 cat >>confdefs.h
<<\_ACEOF
25629 #define HAVE_UNDER_SYS_SIGLIST 1
25635 { $as_echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
25636 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
25637 if test "${bash_cv_void_sighandler+set}" = set; then
25638 $as_echo_n "(cached) " >&6
25640 cat >conftest.
$ac_ext <<_ACEOF
25643 cat confdefs.h
>>conftest.
$ac_ext
25644 cat >>conftest.
$ac_ext <<_ACEOF
25645 /* end confdefs.h. */
25646 #include <sys/types.h>
25647 #include <signal.h>
25654 void (*signal ()) ();
25663 rm -f conftest.
$ac_objext
25664 if { (ac_try
="$ac_compile"
25665 case "(($ac_try" in
25666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25667 *) ac_try_echo=$ac_try;;
25669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25670 $as_echo "$ac_try_echo") >&5
25671 (eval "$ac_compile") 2>conftest.er1
25673 grep -v '^ *+' conftest.er1 >conftest.err
25675 cat conftest.err >&5
25676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677 (exit $ac_status); } && {
25678 test -z "$ac_c_werror_flag" ||
25679 test ! -s conftest.err
25680 } && test -s conftest.$ac_objext; then
25681 bash_cv_void_sighandler=yes
25683 $as_echo "$as_me: failed program was:" >&5
25684 sed 's/^/| /' conftest.$ac_ext >&5
25686 bash_cv_void_sighandler=no
25689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25691 { $as_echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
25692 $as_echo "$bash_cv_void_sighandler" >&6; }
25693 if test $bash_cv_void_sighandler = yes; then
25694 cat >>confdefs.h <<\_ACEOF
25695 #define VOID_SIGHANDLER 1
25702 { $as_echo "$as_me:$LINENO: checking for clock_t" >&5
25703 $as_echo_n "checking for clock_t... " >&6; }
25704 if test "${bash_cv_type_clock_t+set}" = set; then
25705 $as_echo_n "(cached) " >&6
25707 cat >conftest.$ac_ext <<_ACEOF
25710 cat confdefs.h >>conftest.$ac_ext
25711 cat >>conftest.$ac_ext <<_ACEOF
25712 /* end confdefs.h. */
25713 #include <sys/types.h>
25715 #include <stdlib.h>
25716 #include <stddef.h>
25718 #if HAVE_INTTYPES_H
25719 #include <inttypes.h>
25721 #include <sys/times.h>
25724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25725 $EGREP "clock_t" >/dev/null 2>&1; then
25726 bash_cv_type_clock_t=yes
25728 bash_cv_type_clock_t=no
25734 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
25735 $as_echo "$bash_cv_type_clock_t" >&6; }
25737 if test $bash_cv_type_clock_t = no; then
25738 cat >>confdefs.h <<_ACEOF
25739 #define clock_t long
25746 { $as_echo "$as_me:$LINENO: checking for sigset_t" >&5
25747 $as_echo_n "checking for sigset_t... " >&6; }
25748 if test "${bash_cv_type_sigset_t+set}" = set; then
25749 $as_echo_n "(cached) " >&6
25751 cat >conftest.$ac_ext <<_ACEOF
25754 cat confdefs.h >>conftest.$ac_ext
25755 cat >>conftest.$ac_ext <<_ACEOF
25756 /* end confdefs.h. */
25757 #include <sys/types.h>
25759 #include <stdlib.h>
25760 #include <stddef.h>
25762 #if HAVE_INTTYPES_H
25763 #include <inttypes.h>
25765 #include <signal.h>
25768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25769 $EGREP "sigset_t" >/dev/null 2>&1; then
25770 bash_cv_type_sigset_t=yes
25772 bash_cv_type_sigset_t=no
25778 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
25779 $as_echo "$bash_cv_type_sigset_t" >&6; }
25781 if test $bash_cv_type_sigset_t = no; then
25782 cat >>confdefs.h <<_ACEOF
25783 #define sigset_t int
25790 { $as_echo "$as_me:$LINENO: checking for quad_t" >&5
25791 $as_echo_n "checking for quad_t... " >&6; }
25792 if test "${bash_cv_type_quad_t+set}" = set; then
25793 $as_echo_n "(cached) " >&6
25795 cat >conftest.$ac_ext <<_ACEOF
25798 cat confdefs.h >>conftest.$ac_ext
25799 cat >>conftest.$ac_ext <<_ACEOF
25800 /* end confdefs.h. */
25801 #include <sys/types.h>
25803 #include <stdlib.h>
25804 #include <stddef.h>
25806 #if HAVE_INTTYPES_H
25807 #include <inttypes.h>
25812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25813 $EGREP "quad_t" >/dev/null 2>&1; then
25814 bash_cv_type_quad_t=yes
25816 bash_cv_type_quad_t=no
25822 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
25823 $as_echo "$bash_cv_type_quad_t" >&6; }
25824 if test $bash_cv_type_quad_t = yes; then
25825 cat >>confdefs.h <<\_ACEOF
25826 #define HAVE_QUAD_T 1
25830 if test $bash_cv_type_quad_t = no; then
25831 cat >>confdefs.h <<_ACEOF
25832 #define quad_t long
25839 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
25840 $as_echo_n "checking for intmax_t... " >&6; }
25841 if test "${bash_cv_type_intmax_t+set}" = set; then
25842 $as_echo_n "(cached) " >&6
25844 cat >conftest.$ac_ext <<_ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h. */
25850 #include <sys/types.h>
25852 #include <stdlib.h>
25853 #include <stddef.h>
25855 #if HAVE_INTTYPES_H
25856 #include <inttypes.h>
25861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25862 $EGREP "intmax_t" >/dev/null 2>&1; then
25863 bash_cv_type_intmax_t=yes
25865 bash_cv_type_intmax_t=no
25871 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
25872 $as_echo "$bash_cv_type_intmax_t" >&6; }
25874 if test $bash_cv_type_intmax_t = no; then
25875 cat >>confdefs.h <<_ACEOF
25876 #define intmax_t $bash_cv_type_long_long
25883 { $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5
25884 $as_echo_n "checking for uintmax_t... " >&6; }
25885 if test "${bash_cv_type_uintmax_t+set}" = set; then
25886 $as_echo_n "(cached) " >&6
25888 cat >conftest.$ac_ext <<_ACEOF
25891 cat confdefs.h >>conftest.$ac_ext
25892 cat >>conftest.$ac_ext <<_ACEOF
25893 /* end confdefs.h. */
25894 #include <sys/types.h>
25896 #include <stdlib.h>
25897 #include <stddef.h>
25899 #if HAVE_INTTYPES_H
25900 #include <inttypes.h>
25905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25906 $EGREP "uintmax_t" >/dev/null 2>&1; then
25907 bash_cv_type_uintmax_t=yes
25909 bash_cv_type_uintmax_t=no
25915 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
25916 $as_echo "$bash_cv_type_uintmax_t" >&6; }
25918 if test $bash_cv_type_uintmax_t = no; then
25919 cat >>confdefs.h <<_ACEOF
25920 #define uintmax_t $bash_cv_type_unsigned_long_long
25925 if test "$ac_cv_header_sys_socket_h" = "yes"; then
25928 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
25929 $as_echo_n "checking for socklen_t... " >&6; }
25930 if test "${bash_cv_type_socklen_t+set}" = set; then
25931 $as_echo_n "(cached) " >&6
25933 cat >conftest.$ac_ext <<_ACEOF
25936 cat confdefs.h >>conftest.$ac_ext
25937 cat >>conftest.$ac_ext <<_ACEOF
25938 /* end confdefs.h. */
25939 #include <sys/types.h>
25941 #include <stdlib.h>
25942 #include <stddef.h>
25944 #if HAVE_INTTYPES_H
25945 #include <inttypes.h>
25947 #include <sys/socket.h>
25950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25951 $EGREP "socklen_t" >/dev/null 2>&1; then
25952 bash_cv_type_socklen_t=yes
25954 bash_cv_type_socklen_t=no
25960 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
25961 $as_echo "$bash_cv_type_socklen_t" >&6; }
25962 if test $bash_cv_type_socklen_t = yes; then
25963 cat >>confdefs.h <<\_ACEOF
25964 #define HAVE_SOCKLEN_T 1
25968 if test $bash_cv_type_socklen_t = no; then
25969 cat >>confdefs.h <<_ACEOF
25970 #define socklen_t int
25976 { $as_echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
25977 $as_echo_n "checking for size and type of struct rlimit fields... " >&6; }
25978 if test "${bash_cv_type_rlimit+set}" = set; then
25979 $as_echo_n "(cached) " >&6
25981 cat >conftest.$ac_ext <<_ACEOF
25984 cat confdefs.h >>conftest.$ac_ext
25985 cat >>conftest.$ac_ext <<_ACEOF
25986 /* end confdefs.h. */
25987 #include <sys/types.h>
25988 #include <sys/resource.h>
25997 rm -f conftest.$ac_objext
25998 if { (ac_try="$ac_compile"
25999 case "(($ac_try" in
26000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26001 *) ac_try_echo
=$ac_try;;
26003 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26004 $as_echo "$ac_try_echo") >&5
26005 (eval "$ac_compile") 2>conftest.er1
26007 grep -v '^ *+' conftest.er1
>conftest.err
26009 cat conftest.err
>&5
26010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011 (exit $ac_status); } && {
26012 test -z "$ac_c_werror_flag" ||
26013 test ! -s conftest.err
26014 } && test -s conftest.
$ac_objext; then
26015 bash_cv_type_rlimit
=rlim_t
26017 $as_echo "$as_me: failed program was:" >&5
26018 sed 's/^/| /' conftest.
$ac_ext >&5
26021 if test "$cross_compiling" = yes; then
26022 { $as_echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
26023 $as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
26024 bash_cv_type_rlimit
=long
26026 cat >conftest.
$ac_ext <<_ACEOF
26029 cat confdefs.h
>>conftest.
$ac_ext
26030 cat >>conftest.
$ac_ext <<_ACEOF
26031 /* end confdefs.h. */
26033 #include <sys/types.h>
26034 #include <sys/time.h>
26035 #include <sys/resource.h>
26040 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
26046 rm -f conftest
$ac_exeext
26047 if { (ac_try
="$ac_link"
26048 case "(($ac_try" in
26049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26050 *) ac_try_echo=$ac_try;;
26052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26053 $as_echo "$ac_try_echo") >&5
26054 (eval "$ac_link") 2>&5
26056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
26066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067 (exit $ac_status); }; }; then
26068 bash_cv_type_rlimit
=quad_t
26070 $as_echo "$as_me: program exited with status $ac_status" >&5
26071 $as_echo "$as_me: failed program was:" >&5
26072 sed 's/^/| /' conftest.
$ac_ext >&5
26074 ( exit $ac_status )
26075 bash_cv_type_rlimit
=long
26077 rm -rf conftest.dSYM
26078 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26088 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
26089 $as_echo "$bash_cv_type_rlimit" >&6; }
26090 if test $bash_cv_type_rlimit = quad_t
; then
26091 cat >>confdefs.h
<<\_ACEOF
26092 #define RLIMTYPE quad_t
26095 elif test $bash_cv_type_rlimit = rlim_t
; then
26096 cat >>confdefs.h
<<\_ACEOF
26097 #define RLIMTYPE rlim_t
26104 { $as_echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
26105 $as_echo_n "checking for struct termios.c_line... " >&6; }
26106 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
26107 $as_echo_n "(cached) " >&6
26109 cat >conftest.
$ac_ext <<_ACEOF
26112 cat confdefs.h
>>conftest.
$ac_ext
26113 cat >>conftest.
$ac_ext <<_ACEOF
26114 /* end confdefs.h. */
26116 #include <sys/types.h>
26117 #include <termios.h>
26123 static struct termios ac_aggr;
26124 if (ac_aggr.c_line)
26130 rm -f conftest.
$ac_objext
26131 if { (ac_try
="$ac_compile"
26132 case "(($ac_try" in
26133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26134 *) ac_try_echo=$ac_try;;
26136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26137 $as_echo "$ac_try_echo") >&5
26138 (eval "$ac_compile") 2>conftest.er1
26140 grep -v '^ *+' conftest.er1 >conftest.err
26142 cat conftest.err >&5
26143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144 (exit $ac_status); } && {
26145 test -z "$ac_c_werror_flag" ||
26146 test ! -s conftest.err
26147 } && test -s conftest.$ac_objext; then
26148 ac_cv_member_struct_termios_c_line=yes
26150 $as_echo "$as_me: failed program was:" >&5
26151 sed 's/^/| /' conftest.$ac_ext >&5
26153 cat >conftest.$ac_ext <<_ACEOF
26156 cat confdefs.h >>conftest.$ac_ext
26157 cat >>conftest.$ac_ext <<_ACEOF
26158 /* end confdefs.h. */
26160 #include <sys/types.h>
26161 #include <termios.h>
26167 static struct termios ac_aggr;
26168 if (sizeof ac_aggr.c_line)
26174 rm -f conftest.$ac_objext
26175 if { (ac_try="$ac_compile"
26176 case "(($ac_try" in
26177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26178 *) ac_try_echo
=$ac_try;;
26180 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26181 $as_echo "$ac_try_echo") >&5
26182 (eval "$ac_compile") 2>conftest.er1
26184 grep -v '^ *+' conftest.er1
>conftest.err
26186 cat conftest.err
>&5
26187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); } && {
26189 test -z "$ac_c_werror_flag" ||
26190 test ! -s conftest.err
26191 } && test -s conftest.
$ac_objext; then
26192 ac_cv_member_struct_termios_c_line
=yes
26194 $as_echo "$as_me: failed program was:" >&5
26195 sed 's/^/| /' conftest.
$ac_ext >&5
26197 ac_cv_member_struct_termios_c_line
=no
26200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26205 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
26206 $as_echo "$ac_cv_member_struct_termios_c_line" >&6; }
26207 if test "x$ac_cv_member_struct_termios_c_line" = x
""yes; then
26208 cat >>confdefs.h
<<\_ACEOF
26209 #define TERMIOS_LDISC 1
26216 { $as_echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
26217 $as_echo_n "checking for struct termio.c_line... " >&6; }
26218 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
26219 $as_echo_n "(cached) " >&6
26221 cat >conftest.
$ac_ext <<_ACEOF
26224 cat confdefs.h
>>conftest.
$ac_ext
26225 cat >>conftest.
$ac_ext <<_ACEOF
26226 /* end confdefs.h. */
26228 #include <sys/types.h>
26229 #include <termio.h>
26235 static struct termio ac_aggr;
26236 if (ac_aggr.c_line)
26242 rm -f conftest.
$ac_objext
26243 if { (ac_try
="$ac_compile"
26244 case "(($ac_try" in
26245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26246 *) ac_try_echo=$ac_try;;
26248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26249 $as_echo "$ac_try_echo") >&5
26250 (eval "$ac_compile") 2>conftest.er1
26252 grep -v '^ *+' conftest.er1 >conftest.err
26254 cat conftest.err >&5
26255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256 (exit $ac_status); } && {
26257 test -z "$ac_c_werror_flag" ||
26258 test ! -s conftest.err
26259 } && test -s conftest.$ac_objext; then
26260 ac_cv_member_struct_termio_c_line=yes
26262 $as_echo "$as_me: failed program was:" >&5
26263 sed 's/^/| /' conftest.$ac_ext >&5
26265 cat >conftest.$ac_ext <<_ACEOF
26268 cat confdefs.h >>conftest.$ac_ext
26269 cat >>conftest.$ac_ext <<_ACEOF
26270 /* end confdefs.h. */
26272 #include <sys/types.h>
26273 #include <termio.h>
26279 static struct termio ac_aggr;
26280 if (sizeof ac_aggr.c_line)
26286 rm -f conftest.$ac_objext
26287 if { (ac_try="$ac_compile"
26288 case "(($ac_try" in
26289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26290 *) ac_try_echo
=$ac_try;;
26292 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26293 $as_echo "$ac_try_echo") >&5
26294 (eval "$ac_compile") 2>conftest.er1
26296 grep -v '^ *+' conftest.er1
>conftest.err
26298 cat conftest.err
>&5
26299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300 (exit $ac_status); } && {
26301 test -z "$ac_c_werror_flag" ||
26302 test ! -s conftest.err
26303 } && test -s conftest.
$ac_objext; then
26304 ac_cv_member_struct_termio_c_line
=yes
26306 $as_echo "$as_me: failed program was:" >&5
26307 sed 's/^/| /' conftest.
$ac_ext >&5
26309 ac_cv_member_struct_termio_c_line
=no
26312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26317 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
26318 $as_echo "$ac_cv_member_struct_termio_c_line" >&6; }
26319 if test "x$ac_cv_member_struct_termio_c_line" = x
""yes; then
26320 cat >>confdefs.h
<<\_ACEOF
26321 #define TERMIO_LDISC 1
26328 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
26329 $as_echo_n "checking for struct dirent.d_ino... " >&6; }
26330 if test "${bash_cv_dirent_has_dino+set}" = set; then
26331 $as_echo_n "(cached) " >&6
26333 cat >conftest.
$ac_ext <<_ACEOF
26336 cat confdefs.h
>>conftest.
$ac_ext
26337 cat >>conftest.
$ac_ext <<_ACEOF
26338 /* end confdefs.h. */
26341 #include <sys/types.h>
26342 #ifdef HAVE_UNISTD_H
26343 # include <unistd.h>
26344 #endif /* HAVE_UNISTD_H */
26345 #if defined(HAVE_DIRENT_H)
26346 # include <dirent.h>
26348 # define dirent direct
26349 # ifdef HAVE_SYS_NDIR_H
26350 # include <sys/ndir.h>
26351 # endif /* SYSNDIR */
26352 # ifdef HAVE_SYS_DIR_H
26353 # include <sys/dir.h>
26354 # endif /* SYSDIR */
26355 # ifdef HAVE_NDIR_H
26358 #endif /* HAVE_DIRENT_H */
26364 struct dirent d; int z; z = d.d_ino;
26370 rm -f conftest.
$ac_objext
26371 if { (ac_try
="$ac_compile"
26372 case "(($ac_try" in
26373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26374 *) ac_try_echo=$ac_try;;
26376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26377 $as_echo "$ac_try_echo") >&5
26378 (eval "$ac_compile") 2>conftest.er1
26380 grep -v '^ *+' conftest.er1 >conftest.err
26382 cat conftest.err >&5
26383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26384 (exit $ac_status); } && {
26385 test -z "$ac_c_werror_flag" ||
26386 test ! -s conftest.err
26387 } && test -s conftest.$ac_objext; then
26388 bash_cv_dirent_has_dino=yes
26390 $as_echo "$as_me: failed program was:" >&5
26391 sed 's/^/| /' conftest.$ac_ext >&5
26393 bash_cv_dirent_has_dino=no
26396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26399 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
26400 $as_echo "$bash_cv_dirent_has_dino" >&6; }
26401 if test $bash_cv_dirent_has_dino = yes; then
26402 cat >>confdefs.h <<\_ACEOF
26403 #define HAVE_STRUCT_DIRENT_D_INO 1
26409 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
26410 $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
26411 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
26412 $as_echo_n "(cached) " >&6
26414 cat >conftest.$ac_ext <<_ACEOF
26417 cat confdefs.h >>conftest.$ac_ext
26418 cat >>conftest.$ac_ext <<_ACEOF
26419 /* end confdefs.h. */
26422 #include <sys/types.h>
26423 #ifdef HAVE_UNISTD_H
26424 # include <unistd.h>
26425 #endif /* HAVE_UNISTD_H */
26426 #if defined(HAVE_DIRENT_H)
26427 # include <dirent.h>
26429 # define dirent direct
26430 # ifdef HAVE_SYS_NDIR_H
26431 # include <sys/ndir.h>
26432 # endif /* SYSNDIR */
26433 # ifdef HAVE_SYS_DIR_H
26434 # include <sys/dir.h>
26435 # endif /* SYSDIR */
26436 # ifdef HAVE_NDIR_H
26439 #endif /* HAVE_DIRENT_H */
26445 struct dirent d; int z; z = d.d_fileno;
26451 rm -f conftest.$ac_objext
26452 if { (ac_try="$ac_compile"
26453 case "(($ac_try" in
26454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26455 *) ac_try_echo
=$ac_try;;
26457 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26458 $as_echo "$ac_try_echo") >&5
26459 (eval "$ac_compile") 2>conftest.er1
26461 grep -v '^ *+' conftest.er1
>conftest.err
26463 cat conftest.err
>&5
26464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465 (exit $ac_status); } && {
26466 test -z "$ac_c_werror_flag" ||
26467 test ! -s conftest.err
26468 } && test -s conftest.
$ac_objext; then
26469 bash_cv_dirent_has_d_fileno
=yes
26471 $as_echo "$as_me: failed program was:" >&5
26472 sed 's/^/| /' conftest.
$ac_ext >&5
26474 bash_cv_dirent_has_d_fileno
=no
26477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26480 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
26481 $as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
26482 if test $bash_cv_dirent_has_d_fileno = yes; then
26483 cat >>confdefs.h
<<\_ACEOF
26484 #define HAVE_STRUCT_DIRENT_D_FILENO 1
26490 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
26491 $as_echo_n "checking for struct dirent.d_namlen... " >&6; }
26492 if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
26493 $as_echo_n "(cached) " >&6
26495 cat >conftest.
$ac_ext <<_ACEOF
26498 cat confdefs.h
>>conftest.
$ac_ext
26499 cat >>conftest.
$ac_ext <<_ACEOF
26500 /* end confdefs.h. */
26503 #include <sys/types.h>
26504 #ifdef HAVE_UNISTD_H
26505 # include <unistd.h>
26506 #endif /* HAVE_UNISTD_H */
26507 #if defined(HAVE_DIRENT_H)
26508 # include <dirent.h>
26510 # define dirent direct
26511 # ifdef HAVE_SYS_NDIR_H
26512 # include <sys/ndir.h>
26513 # endif /* SYSNDIR */
26514 # ifdef HAVE_SYS_DIR_H
26515 # include <sys/dir.h>
26516 # endif /* SYSDIR */
26517 # ifdef HAVE_NDIR_H
26520 #endif /* HAVE_DIRENT_H */
26526 struct dirent d; int z; z = d.d_namlen;
26532 rm -f conftest.
$ac_objext
26533 if { (ac_try
="$ac_compile"
26534 case "(($ac_try" in
26535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26536 *) ac_try_echo=$ac_try;;
26538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26539 $as_echo "$ac_try_echo") >&5
26540 (eval "$ac_compile") 2>conftest.er1
26542 grep -v '^ *+' conftest.er1 >conftest.err
26544 cat conftest.err >&5
26545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546 (exit $ac_status); } && {
26547 test -z "$ac_c_werror_flag" ||
26548 test ! -s conftest.err
26549 } && test -s conftest.$ac_objext; then
26550 bash_cv_dirent_has_d_namlen=yes
26552 $as_echo "$as_me: failed program was:" >&5
26553 sed 's/^/| /' conftest.$ac_ext >&5
26555 bash_cv_dirent_has_d_namlen=no
26558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26561 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
26562 $as_echo "$bash_cv_dirent_has_d_namlen" >&6; }
26563 if test $bash_cv_dirent_has_d_namlen = yes; then
26564 cat >>confdefs.h <<\_ACEOF
26565 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
26570 { $as_echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
26571 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
26572 if test "${bash_cv_struct_winsize_header+set}" = set; then
26573 $as_echo_n "(cached) " >&6
26575 cat >conftest.$ac_ext <<_ACEOF
26578 cat confdefs.h >>conftest.$ac_ext
26579 cat >>conftest.$ac_ext <<_ACEOF
26580 /* end confdefs.h. */
26581 #include <sys/types.h>
26582 #include <sys/ioctl.h>
26591 rm -f conftest.$ac_objext
26592 if { (ac_try="$ac_compile"
26593 case "(($ac_try" in
26594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26595 *) ac_try_echo
=$ac_try;;
26597 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26598 $as_echo "$ac_try_echo") >&5
26599 (eval "$ac_compile") 2>conftest.er1
26601 grep -v '^ *+' conftest.er1
>conftest.err
26603 cat conftest.err
>&5
26604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); } && {
26606 test -z "$ac_c_werror_flag" ||
26607 test ! -s conftest.err
26608 } && test -s conftest.
$ac_objext; then
26609 bash_cv_struct_winsize_header
=ioctl_h
26611 $as_echo "$as_me: failed program was:" >&5
26612 sed 's/^/| /' conftest.
$ac_ext >&5
26614 cat >conftest.
$ac_ext <<_ACEOF
26617 cat confdefs.h
>>conftest.
$ac_ext
26618 cat >>conftest.
$ac_ext <<_ACEOF
26619 /* end confdefs.h. */
26620 #include <sys/types.h>
26621 #include <termios.h>
26630 rm -f conftest.
$ac_objext
26631 if { (ac_try
="$ac_compile"
26632 case "(($ac_try" in
26633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26634 *) ac_try_echo=$ac_try;;
26636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26637 $as_echo "$ac_try_echo") >&5
26638 (eval "$ac_compile") 2>conftest.er1
26640 grep -v '^ *+' conftest.er1 >conftest.err
26642 cat conftest.err >&5
26643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644 (exit $ac_status); } && {
26645 test -z "$ac_c_werror_flag" ||
26646 test ! -s conftest.err
26647 } && test -s conftest.$ac_objext; then
26648 bash_cv_struct_winsize_header=termios_h
26650 $as_echo "$as_me: failed program was:" >&5
26651 sed 's/^/| /' conftest.$ac_ext >&5
26653 bash_cv_struct_winsize_header=other
26656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26663 if test $bash_cv_struct_winsize_header = ioctl_h; then
26664 { $as_echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
26665 $as_echo "sys/ioctl.h" >&6; }
26666 cat >>confdefs.h <<\_ACEOF
26667 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
26670 elif test $bash_cv_struct_winsize_header = termios_h; then
26671 { $as_echo "$as_me:$LINENO: result: termios.h" >&5
26672 $as_echo "termios.h" >&6; }
26673 cat >>confdefs.h <<\_ACEOF
26674 #define STRUCT_WINSIZE_IN_TERMIOS 1
26678 { $as_echo "$as_me:$LINENO: result: not found" >&5
26679 $as_echo "not found" >&6; }
26682 { $as_echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
26683 $as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; }
26684 if test "${bash_cv_struct_timeval+set}" = set; then
26685 $as_echo_n "(cached) " >&6
26688 cat >conftest.$ac_ext <<_ACEOF
26691 cat confdefs.h >>conftest.$ac_ext
26692 cat >>conftest.$ac_ext <<_ACEOF
26693 /* end confdefs.h. */
26694 #include <sys/time.h>
26697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26698 $EGREP "struct timeval" >/dev/null 2>&1; then
26699 bash_cv_struct_timeval=yes
26701 cat >conftest.$ac_ext <<_ACEOF
26704 cat confdefs.h >>conftest.$ac_ext
26705 cat >>conftest.$ac_ext <<_ACEOF
26706 /* end confdefs.h. */
26710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26711 $EGREP "struct timeval" >/dev/null 2>&1; then
26712 bash_cv_struct_timeval=yes
26714 bash_cv_struct_timeval=no
26724 { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
26725 $as_echo "$bash_cv_struct_timeval" >&6; }
26726 if test $bash_cv_struct_timeval = yes; then
26727 cat >>confdefs.h <<\_ACEOF
26728 #define HAVE_TIMEVAL 1
26733 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
26734 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
26735 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
26736 $as_echo_n "(cached) " >&6
26738 cat >conftest.$ac_ext <<_ACEOF
26741 cat confdefs.h >>conftest.$ac_ext
26742 cat >>conftest.$ac_ext <<_ACEOF
26743 /* end confdefs.h. */
26744 $ac_includes_default
26748 static struct stat ac_aggr;
26749 if (ac_aggr.st_blocks)
26755 rm -f conftest.$ac_objext
26756 if { (ac_try="$ac_compile"
26757 case "(($ac_try" in
26758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26759 *) ac_try_echo
=$ac_try;;
26761 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26762 $as_echo "$ac_try_echo") >&5
26763 (eval "$ac_compile") 2>conftest.er1
26765 grep -v '^ *+' conftest.er1
>conftest.err
26767 cat conftest.err
>&5
26768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769 (exit $ac_status); } && {
26770 test -z "$ac_c_werror_flag" ||
26771 test ! -s conftest.err
26772 } && test -s conftest.
$ac_objext; then
26773 ac_cv_member_struct_stat_st_blocks
=yes
26775 $as_echo "$as_me: failed program was:" >&5
26776 sed 's/^/| /' conftest.
$ac_ext >&5
26778 cat >conftest.
$ac_ext <<_ACEOF
26781 cat confdefs.h
>>conftest.
$ac_ext
26782 cat >>conftest.
$ac_ext <<_ACEOF
26783 /* end confdefs.h. */
26784 $ac_includes_default
26788 static struct stat ac_aggr;
26789 if (sizeof ac_aggr.st_blocks)
26795 rm -f conftest.
$ac_objext
26796 if { (ac_try
="$ac_compile"
26797 case "(($ac_try" in
26798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26799 *) ac_try_echo=$ac_try;;
26801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26802 $as_echo "$ac_try_echo") >&5
26803 (eval "$ac_compile") 2>conftest.er1
26805 grep -v '^ *+' conftest.er1 >conftest.err
26807 cat conftest.err >&5
26808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26809 (exit $ac_status); } && {
26810 test -z "$ac_c_werror_flag" ||
26811 test ! -s conftest.err
26812 } && test -s conftest.$ac_objext; then
26813 ac_cv_member_struct_stat_st_blocks=yes
26815 $as_echo "$as_me: failed program was:" >&5
26816 sed 's/^/| /' conftest.$ac_ext >&5
26818 ac_cv_member_struct_stat_st_blocks=no
26821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26826 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
26827 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
26828 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
26830 cat >>confdefs.h <<_ACEOF
26831 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26837 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26838 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26839 if test "${ac_cv_struct_tm+set}" = set; then
26840 $as_echo_n "(cached) " >&6
26842 cat >conftest.$ac_ext <<_ACEOF
26845 cat confdefs.h >>conftest.$ac_ext
26846 cat >>conftest.$ac_ext <<_ACEOF
26847 /* end confdefs.h. */
26848 #include <sys/types.h>
26855 int *p = &tm.tm_sec;
26861 rm -f conftest.$ac_objext
26862 if { (ac_try="$ac_compile"
26863 case "(($ac_try" in
26864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26865 *) ac_try_echo
=$ac_try;;
26867 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26868 $as_echo "$ac_try_echo") >&5
26869 (eval "$ac_compile") 2>conftest.er1
26871 grep -v '^ *+' conftest.er1
>conftest.err
26873 cat conftest.err
>&5
26874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875 (exit $ac_status); } && {
26876 test -z "$ac_c_werror_flag" ||
26877 test ! -s conftest.err
26878 } && test -s conftest.
$ac_objext; then
26879 ac_cv_struct_tm
=time.h
26881 $as_echo "$as_me: failed program was:" >&5
26882 sed 's/^/| /' conftest.
$ac_ext >&5
26884 ac_cv_struct_tm
=sys
/time.h
26887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26889 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26890 $as_echo "$ac_cv_struct_tm" >&6; }
26891 if test $ac_cv_struct_tm = sys
/time.h
; then
26893 cat >>confdefs.h
<<\_ACEOF
26894 #define TM_IN_SYS_TIME 1
26899 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
26900 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
26901 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
26902 $as_echo_n "(cached) " >&6
26904 cat >conftest.
$ac_ext <<_ACEOF
26907 cat confdefs.h
>>conftest.
$ac_ext
26908 cat >>conftest.
$ac_ext <<_ACEOF
26909 /* end confdefs.h. */
26910 #include <sys/types.h>
26911 #include <$ac_cv_struct_tm>
26917 static struct tm ac_aggr;
26918 if (ac_aggr.tm_zone)
26924 rm -f conftest.
$ac_objext
26925 if { (ac_try
="$ac_compile"
26926 case "(($ac_try" in
26927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26928 *) ac_try_echo=$ac_try;;
26930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26931 $as_echo "$ac_try_echo") >&5
26932 (eval "$ac_compile") 2>conftest.er1
26934 grep -v '^ *+' conftest.er1 >conftest.err
26936 cat conftest.err >&5
26937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); } && {
26939 test -z "$ac_c_werror_flag" ||
26940 test ! -s conftest.err
26941 } && test -s conftest.$ac_objext; then
26942 ac_cv_member_struct_tm_tm_zone=yes
26944 $as_echo "$as_me: failed program was:" >&5
26945 sed 's/^/| /' conftest.$ac_ext >&5
26947 cat >conftest.$ac_ext <<_ACEOF
26950 cat confdefs.h >>conftest.$ac_ext
26951 cat >>conftest.$ac_ext <<_ACEOF
26952 /* end confdefs.h. */
26953 #include <sys/types.h>
26954 #include <$ac_cv_struct_tm>
26960 static struct tm ac_aggr;
26961 if (sizeof ac_aggr.tm_zone)
26967 rm -f conftest.$ac_objext
26968 if { (ac_try="$ac_compile"
26969 case "(($ac_try" in
26970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26971 *) ac_try_echo
=$ac_try;;
26973 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26974 $as_echo "$ac_try_echo") >&5
26975 (eval "$ac_compile") 2>conftest.er1
26977 grep -v '^ *+' conftest.er1
>conftest.err
26979 cat conftest.err
>&5
26980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26981 (exit $ac_status); } && {
26982 test -z "$ac_c_werror_flag" ||
26983 test ! -s conftest.err
26984 } && test -s conftest.
$ac_objext; then
26985 ac_cv_member_struct_tm_tm_zone
=yes
26987 $as_echo "$as_me: failed program was:" >&5
26988 sed 's/^/| /' conftest.
$ac_ext >&5
26990 ac_cv_member_struct_tm_tm_zone
=no
26993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26998 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26999 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
27000 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then
27002 cat >>confdefs.h
<<_ACEOF
27003 #define HAVE_STRUCT_TM_TM_ZONE 1
27009 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
27011 cat >>confdefs.h
<<\_ACEOF
27012 #define HAVE_TM_ZONE 1
27016 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
27017 $as_echo_n "checking whether tzname is declared... " >&6; }
27018 if test "${ac_cv_have_decl_tzname+set}" = set; then
27019 $as_echo_n "(cached) " >&6
27021 cat >conftest.
$ac_ext <<_ACEOF
27024 cat confdefs.h
>>conftest.
$ac_ext
27025 cat >>conftest.
$ac_ext <<_ACEOF
27026 /* end confdefs.h. */
27040 rm -f conftest.
$ac_objext
27041 if { (ac_try
="$ac_compile"
27042 case "(($ac_try" in
27043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27044 *) ac_try_echo=$ac_try;;
27046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27047 $as_echo "$ac_try_echo") >&5
27048 (eval "$ac_compile") 2>conftest.er1
27050 grep -v '^ *+' conftest.er1 >conftest.err
27052 cat conftest.err >&5
27053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); } && {
27055 test -z "$ac_c_werror_flag" ||
27056 test ! -s conftest.err
27057 } && test -s conftest.$ac_objext; then
27058 ac_cv_have_decl_tzname=yes
27060 $as_echo "$as_me: failed program was:" >&5
27061 sed 's/^/| /' conftest.$ac_ext >&5
27063 ac_cv_have_decl_tzname=no
27066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27068 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
27069 $as_echo "$ac_cv_have_decl_tzname" >&6; }
27070 if test "x$ac_cv_have_decl_tzname" = x""yes; then
27072 cat >>confdefs.h <<_ACEOF
27073 #define HAVE_DECL_TZNAME 1
27078 cat >>confdefs.h <<_ACEOF
27079 #define HAVE_DECL_TZNAME 0
27086 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
27087 $as_echo_n "checking for tzname... " >&6; }
27088 if test "${ac_cv_var_tzname+set}" = set; then
27089 $as_echo_n "(cached) " >&6
27091 cat >conftest.$ac_ext <<_ACEOF
27094 cat confdefs.h >>conftest.$ac_ext
27095 cat >>conftest.$ac_ext <<_ACEOF
27096 /* end confdefs.h. */
27098 #if !HAVE_DECL_TZNAME
27099 extern char *tzname[];
27105 return tzname[0][0];
27110 rm -f conftest.$ac_objext conftest$ac_exeext
27111 if { (ac_try="$ac_link"
27112 case "(($ac_try" in
27113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27114 *) ac_try_echo
=$ac_try;;
27116 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27117 $as_echo "$ac_try_echo") >&5
27118 (eval "$ac_link") 2>conftest.er1
27120 grep -v '^ *+' conftest.er1
>conftest.err
27122 cat conftest.err
>&5
27123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); } && {
27125 test -z "$ac_c_werror_flag" ||
27126 test ! -s conftest.err
27127 } && test -s conftest
$ac_exeext && {
27128 test "$cross_compiling" = yes ||
27129 $as_test_x conftest
$ac_exeext
27131 ac_cv_var_tzname
=yes
27133 $as_echo "$as_me: failed program was:" >&5
27134 sed 's/^/| /' conftest.
$ac_ext >&5
27136 ac_cv_var_tzname
=no
27139 rm -rf conftest.dSYM
27140 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27141 conftest
$ac_exeext conftest.
$ac_ext
27143 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
27144 $as_echo "$ac_cv_var_tzname" >&6; }
27145 if test $ac_cv_var_tzname = yes; then
27147 cat >>confdefs.h
<<\_ACEOF
27148 #define HAVE_TZNAME 1
27154 { $as_echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
27155 $as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; }
27156 if test "${bash_cv_struct_timezone+set}" = set; then
27157 $as_echo_n "(cached) " >&6
27160 cat >conftest.
$ac_ext <<_ACEOF
27163 cat confdefs.h
>>conftest.
$ac_ext
27164 cat >>conftest.
$ac_ext <<_ACEOF
27165 /* end confdefs.h. */
27166 #include <sys/time.h>
27169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27170 $EGREP "struct timezone" >/dev
/null
2>&1; then
27171 bash_cv_struct_timezone
=yes
27173 cat >conftest.
$ac_ext <<_ACEOF
27176 cat confdefs.h
>>conftest.
$ac_ext
27177 cat >>conftest.
$ac_ext <<_ACEOF
27178 /* end confdefs.h. */
27182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27183 $EGREP "struct timezone" >/dev
/null
2>&1; then
27184 bash_cv_struct_timezone
=yes
27186 bash_cv_struct_timezone
=no
27196 { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
27197 $as_echo "$bash_cv_struct_timezone" >&6; }
27198 if test $bash_cv_struct_timezone = yes; then
27199 cat >>confdefs.h
<<\_ACEOF
27200 #define HAVE_STRUCT_TIMEZONE 1
27206 { $as_echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
27207 $as_echo_n "checking for the existence of strsignal... " >&6; }
27208 if test "${bash_cv_have_strsignal+set}" = set; then
27209 $as_echo_n "(cached) " >&6
27211 cat >conftest.
$ac_ext <<_ACEOF
27214 cat confdefs.h
>>conftest.
$ac_ext
27215 cat >>conftest.
$ac_ext <<_ACEOF
27216 /* end confdefs.h. */
27217 #include <sys/types.h>
27218 #include <signal.h>
27222 char *s = (char *)strsignal(2);
27227 rm -f conftest.
$ac_objext conftest
$ac_exeext
27228 if { (ac_try
="$ac_link"
27229 case "(($ac_try" in
27230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27231 *) ac_try_echo=$ac_try;;
27233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27234 $as_echo "$ac_try_echo") >&5
27235 (eval "$ac_link") 2>conftest.er1
27237 grep -v '^ *+' conftest.er1 >conftest.err
27239 cat conftest.err >&5
27240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27241 (exit $ac_status); } && {
27242 test -z "$ac_c_werror_flag" ||
27243 test ! -s conftest.err
27244 } && test -s conftest$ac_exeext && {
27245 test "$cross_compiling" = yes ||
27246 $as_test_x conftest$ac_exeext
27248 bash_cv_have_strsignal=yes
27250 $as_echo "$as_me: failed program was:" >&5
27251 sed 's/^/| /' conftest.$ac_ext >&5
27253 bash_cv_have_strsignal=no
27256 rm -rf conftest.dSYM
27257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27258 conftest$ac_exeext conftest.$ac_ext
27261 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
27262 $as_echo "$bash_cv_have_strsignal" >&6; }
27263 if test $bash_cv_have_strsignal = yes; then
27264 cat >>confdefs.h <<\_ACEOF
27265 #define HAVE_STRSIGNAL 1
27270 { $as_echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
27271 $as_echo_n "checking if opendir() opens non-directories... " >&6; }
27272 if test "${bash_cv_opendir_not_robust+set}" = set; then
27273 $as_echo_n "(cached) " >&6
27275 if test "$cross_compiling" = yes; then
27276 { $as_echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
27277 $as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
27278 bash_cv_opendir_not_robust=no
27281 cat >conftest.$ac_ext <<_ACEOF
27284 cat confdefs.h >>conftest.$ac_ext
27285 cat >>conftest.$ac_ext <<_ACEOF
27286 /* end confdefs.h. */
27289 #include <sys/types.h>
27291 #ifdef HAVE_UNISTD_H
27292 # include <unistd.h>
27293 #endif /* HAVE_UNISTD_H */
27294 #if defined(HAVE_DIRENT_H)
27295 # include <dirent.h>
27297 # define dirent direct
27298 # ifdef HAVE_SYS_NDIR_H
27299 # include <sys/ndir.h>
27300 # endif /* SYSNDIR */
27301 # ifdef HAVE_SYS_DIR_H
27302 # include <sys/dir.h>
27303 # endif /* SYSDIR */
27304 # ifdef HAVE_NDIR_H
27307 #endif /* HAVE_DIRENT_H */
27312 err = mkdir("bash-aclocal", 0700);
27317 unlink("bash-aclocal/not_a_directory");
27318 fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
27319 write(fd, "\n", 1);
27321 dir = opendir("bash-aclocal/not_a_directory");
27322 unlink("bash-aclocal/not_a_directory");
27323 rmdir("bash-aclocal");
27327 rm -f conftest$ac_exeext
27328 if { (ac_try="$ac_link"
27329 case "(($ac_try" in
27330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27331 *) ac_try_echo
=$ac_try;;
27333 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27334 $as_echo "$ac_try_echo") >&5
27335 (eval "$ac_link") 2>&5
27337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27339 { (case "(($ac_try" in
27340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27341 *) ac_try_echo=$ac_try;;
27343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27344 $as_echo "$ac_try_echo") >&5
27345 (eval "$ac_try") 2>&5
27347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348 (exit $ac_status); }; }; then
27349 bash_cv_opendir_not_robust=yes
27351 $as_echo "$as_me: program exited with status $ac_status" >&5
27352 $as_echo "$as_me: failed program was:" >&5
27353 sed 's/^/| /' conftest.$ac_ext >&5
27355 ( exit $ac_status )
27356 bash_cv_opendir_not_robust=no
27358 rm -rf conftest.dSYM
27359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27365 { $as_echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
27366 $as_echo "$bash_cv_opendir_not_robust" >&6; }
27367 if test $bash_cv_opendir_not_robust = yes; then
27368 cat >>confdefs.h <<\_ACEOF
27369 #define OPENDIR_NOT_ROBUST 1
27374 { $as_echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
27375 $as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; }
27376 if test "${bash_cv_ulimit_maxfds+set}" = set; then
27377 $as_echo_n "(cached) " >&6
27379 if test "$cross_compiling" = yes; then
27380 { $as_echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
27381 $as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
27382 bash_cv_ulimit_maxfds=no
27385 cat >conftest.$ac_ext <<_ACEOF
27388 cat confdefs.h >>conftest.$ac_ext
27389 cat >>conftest.$ac_ext <<_ACEOF
27390 /* end confdefs.h. */
27394 long maxfds = ulimit(4, 0L);
27395 exit (maxfds == -1L);
27399 rm -f conftest$ac_exeext
27400 if { (ac_try="$ac_link"
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_link") 2>&5
27409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27411 { (case "(($ac_try" in
27412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27413 *) ac_try_echo=$ac_try;;
27415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27416 $as_echo "$ac_try_echo") >&5
27417 (eval "$ac_try") 2>&5
27419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420 (exit $ac_status); }; }; then
27421 bash_cv_ulimit_maxfds=yes
27423 $as_echo "$as_me: program exited with status $ac_status" >&5
27424 $as_echo "$as_me: failed program was:" >&5
27425 sed 's/^/| /' conftest.$ac_ext >&5
27427 ( exit $ac_status )
27428 bash_cv_ulimit_maxfds=no
27430 rm -rf conftest.dSYM
27431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27437 { $as_echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
27438 $as_echo "$bash_cv_ulimit_maxfds" >&6; }
27439 if test $bash_cv_ulimit_maxfds = yes; then
27440 cat >>confdefs.h <<\_ACEOF
27441 #define ULIMIT_MAXFDS 1
27463 { $as_echo "$as_me:$LINENO: checking whether fpurge is declared" >&5
27464 $as_echo_n "checking whether fpurge is declared... " >&6; }
27465 if test "${ac_cv_have_decl_fpurge+set}" = set; then
27466 $as_echo_n "(cached) " >&6
27468 cat >conftest.$ac_ext <<_ACEOF
27471 cat confdefs.h >>conftest.$ac_ext
27472 cat >>conftest.$ac_ext <<_ACEOF
27473 /* end confdefs.h. */
27487 rm -f conftest.$ac_objext
27488 if { (ac_try="$ac_compile"
27489 case "(($ac_try" in
27490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27491 *) ac_try_echo
=$ac_try;;
27493 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27494 $as_echo "$ac_try_echo") >&5
27495 (eval "$ac_compile") 2>conftest.er1
27497 grep -v '^ *+' conftest.er1
>conftest.err
27499 cat conftest.err
>&5
27500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27501 (exit $ac_status); } && {
27502 test -z "$ac_c_werror_flag" ||
27503 test ! -s conftest.err
27504 } && test -s conftest.
$ac_objext; then
27505 ac_cv_have_decl_fpurge
=yes
27507 $as_echo "$as_me: failed program was:" >&5
27508 sed 's/^/| /' conftest.
$ac_ext >&5
27510 ac_cv_have_decl_fpurge
=no
27513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27515 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fpurge" >&5
27516 $as_echo "$ac_cv_have_decl_fpurge" >&6; }
27517 if test "x$ac_cv_have_decl_fpurge" = x
""yes; then
27519 cat >>confdefs.h
<<_ACEOF
27520 #define HAVE_DECL_FPURGE 1
27525 cat >>confdefs.h
<<_ACEOF
27526 #define HAVE_DECL_FPURGE 0
27534 { $as_echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
27535 $as_echo_n "checking to see if getenv can be redefined... " >&6; }
27536 if test "${bash_cv_getenv_redef+set}" = set; then
27537 $as_echo_n "(cached) " >&6
27539 if test "$cross_compiling" = yes; then
27540 { $as_echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
27541 $as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
27542 bash_cv_getenv_redef
=yes
27545 cat >conftest.
$ac_ext <<_ACEOF
27548 cat confdefs.h
>>conftest.
$ac_ext
27549 cat >>conftest.
$ac_ext <<_ACEOF
27550 /* end confdefs.h. */
27552 #ifdef HAVE_UNISTD_H
27553 # include <unistd.h>
27562 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
27566 #endif /* !__linux__ && !__bsdi__ && !convex */
27573 /* The next allows this program to run, but does not allow bash to link
27574 when it redefines getenv. I'm not really interested in figuring out
27579 s = getenv("ABCDE");
27580 exit(s == 0); /* force optimizer to leave getenv in */
27584 rm -f conftest
$ac_exeext
27585 if { (ac_try
="$ac_link"
27586 case "(($ac_try" in
27587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27588 *) ac_try_echo=$ac_try;;
27590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27591 $as_echo "$ac_try_echo") >&5
27592 (eval "$ac_link") 2>&5
27594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27596 { (case "(($ac_try" in
27597 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27598 *) ac_try_echo
=$ac_try;;
27600 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27601 $as_echo "$ac_try_echo") >&5
27602 (eval "$ac_try") 2>&5
27604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605 (exit $ac_status); }; }; then
27606 bash_cv_getenv_redef
=yes
27608 $as_echo "$as_me: program exited with status $ac_status" >&5
27609 $as_echo "$as_me: failed program was:" >&5
27610 sed 's/^/| /' conftest.
$ac_ext >&5
27612 ( exit $ac_status )
27613 bash_cv_getenv_redef
=no
27615 rm -rf conftest.dSYM
27616 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27622 { $as_echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
27623 $as_echo "$bash_cv_getenv_redef" >&6; }
27624 if test $bash_cv_getenv_redef = yes; then
27625 cat >>confdefs.h
<<\_ACEOF
27626 #define CAN_REDEFINE_GETENV 1
27631 if test "$ac_cv_func_getcwd" = "yes"; then
27632 { $as_echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory with 0 size" >&5
27633 $as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
27634 if test "${bash_cv_getcwd_malloc+set}" = set; then
27635 $as_echo_n "(cached) " >&6
27637 if test "$cross_compiling" = yes; then
27638 { $as_echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
27639 $as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
27640 bash_cv_getcwd_malloc
=no
27643 cat >conftest.
$ac_ext <<_ACEOF
27646 cat confdefs.h
>>conftest.
$ac_ext
27647 cat >>conftest.
$ac_ext <<_ACEOF
27648 /* end confdefs.h. */
27651 #ifdef HAVE_UNISTD_H
27652 #include <unistd.h>
27658 xpwd = getcwd(0, 0);
27663 rm -f conftest
$ac_exeext
27664 if { (ac_try
="$ac_link"
27665 case "(($ac_try" in
27666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27667 *) ac_try_echo=$ac_try;;
27669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27670 $as_echo "$ac_try_echo") >&5
27671 (eval "$ac_link") 2>&5
27673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27675 { (case "(($ac_try" in
27676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27677 *) ac_try_echo
=$ac_try;;
27679 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27680 $as_echo "$ac_try_echo") >&5
27681 (eval "$ac_try") 2>&5
27683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684 (exit $ac_status); }; }; then
27685 bash_cv_getcwd_malloc
=yes
27687 $as_echo "$as_me: program exited with status $ac_status" >&5
27688 $as_echo "$as_me: failed program was:" >&5
27689 sed 's/^/| /' conftest.
$ac_ext >&5
27691 ( exit $ac_status )
27692 bash_cv_getcwd_malloc
=no
27694 rm -rf conftest.dSYM
27695 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27701 { $as_echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
27702 $as_echo "$bash_cv_getcwd_malloc" >&6; }
27703 if test $bash_cv_getcwd_malloc = no
; then
27704 cat >>confdefs.h
<<\_ACEOF
27705 #define GETCWD_BROKEN 1
27708 case " $LIBOBJS " in
27709 *" getcwd.$ac_objext "* ) ;;
27710 *) LIBOBJS
="$LIBOBJS getcwd.$ac_objext"
27718 { $as_echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
27719 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
27720 if test "${bash_cv_func_sigsetjmp+set}" = set; then
27721 $as_echo_n "(cached) " >&6
27723 if test "$cross_compiling" = yes; then
27724 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
27725 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
27726 bash_cv_func_sigsetjmp
=missing
27729 cat >conftest.
$ac_ext <<_ACEOF
27732 cat confdefs.h
>>conftest.
$ac_ext
27733 cat >>conftest.
$ac_ext <<_ACEOF
27734 /* end confdefs.h. */
27736 #ifdef HAVE_UNISTD_H
27737 #include <unistd.h>
27739 #include <sys/types.h>
27740 #include <signal.h>
27741 #include <setjmp.h>
27745 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
27750 sigset_t set, oset;
27755 sigemptyset(&oset);
27756 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
27757 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
27760 code = sigsetjmp(xx, 1);
27762 exit(0); /* could get sigmask and compare to oset here. */
27765 sigaddset(&set, SIGINT);
27766 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
27768 /* and siglongjmp */
27769 siglongjmp(xx, 10);
27774 rm -f conftest
$ac_exeext
27775 if { (ac_try
="$ac_link"
27776 case "(($ac_try" in
27777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27778 *) ac_try_echo=$ac_try;;
27780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27781 $as_echo "$ac_try_echo") >&5
27782 (eval "$ac_link") 2>&5
27784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27786 { (case "(($ac_try" in
27787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27788 *) ac_try_echo
=$ac_try;;
27790 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27791 $as_echo "$ac_try_echo") >&5
27792 (eval "$ac_try") 2>&5
27794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27795 (exit $ac_status); }; }; then
27796 bash_cv_func_sigsetjmp
=present
27798 $as_echo "$as_me: program exited with status $ac_status" >&5
27799 $as_echo "$as_me: failed program was:" >&5
27800 sed 's/^/| /' conftest.
$ac_ext >&5
27802 ( exit $ac_status )
27803 bash_cv_func_sigsetjmp
=missing
27805 rm -rf conftest.dSYM
27806 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27812 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
27813 $as_echo "$bash_cv_func_sigsetjmp" >&6; }
27814 if test $bash_cv_func_sigsetjmp = present
; then
27815 cat >>confdefs.h
<<\_ACEOF
27816 #define HAVE_POSIX_SIGSETJMP 1
27822 { $as_echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
27823 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
27824 if test "${bash_cv_func_strcoll_broken+set}" = set; then
27825 $as_echo_n "(cached) " >&6
27827 if test "$cross_compiling" = yes; then
27828 { $as_echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
27829 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
27830 bash_cv_func_strcoll_broken
=no
27833 cat >conftest.
$ac_ext <<_ACEOF
27836 cat confdefs.h
>>conftest.
$ac_ext
27837 cat >>conftest.
$ac_ext <<_ACEOF
27838 /* end confdefs.h. */
27841 #if defined (HAVE_LOCALE_H)
27842 #include <locale.h>
27850 char *deflocale, *defcoll;
27852 #ifdef HAVE_SETLOCALE
27853 deflocale = setlocale(LC_ALL, "");
27854 defcoll = setlocale(LC_COLLATE, "");
27857 #ifdef HAVE_STRCOLL
27858 /* These two values are taken from tests/glob-test. */
27859 r1 = strcoll("abd", "aXd");
27863 r2 = strcmp("abd", "aXd");
27865 /* These two should both be greater than 0. It is permissible for
27866 a system to return different values, as long as the sign is the
27869 /* Exit with 1 (failure) if these two values are both > 0, since
27870 this tests whether strcoll(3) is broken with respect to strcmp(3)
27871 in the default locale. */
27872 exit (r1 > 0 && r2 > 0);
27876 rm -f conftest
$ac_exeext
27877 if { (ac_try
="$ac_link"
27878 case "(($ac_try" in
27879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27880 *) ac_try_echo=$ac_try;;
27882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27883 $as_echo "$ac_try_echo") >&5
27884 (eval "$ac_link") 2>&5
27886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27888 { (case "(($ac_try" in
27889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27890 *) ac_try_echo
=$ac_try;;
27892 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27893 $as_echo "$ac_try_echo") >&5
27894 (eval "$ac_try") 2>&5
27896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897 (exit $ac_status); }; }; then
27898 bash_cv_func_strcoll_broken
=yes
27900 $as_echo "$as_me: program exited with status $ac_status" >&5
27901 $as_echo "$as_me: failed program was:" >&5
27902 sed 's/^/| /' conftest.
$ac_ext >&5
27904 ( exit $ac_status )
27905 bash_cv_func_strcoll_broken
=no
27907 rm -rf conftest.dSYM
27908 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27914 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
27915 $as_echo "$bash_cv_func_strcoll_broken" >&6; }
27916 if test $bash_cv_func_strcoll_broken = yes; then
27917 cat >>confdefs.h
<<\_ACEOF
27918 #define STRCOLL_BROKEN 1
27925 if test "$ac_cv_func_putenv" = "yes"; then
27929 { $as_echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
27930 $as_echo_n "checking for standard-conformant putenv declaration... " >&6; }
27931 if test "${bash_cv_std_putenv+set}" = set; then
27932 $as_echo_n "(cached) " >&6
27934 cat >conftest.
$ac_ext <<_ACEOF
27937 cat confdefs.h
>>conftest.
$ac_ext
27938 cat >>conftest.
$ac_ext <<_ACEOF
27939 /* end confdefs.h. */
27942 #include <stdlib.h>
27943 #include <stddef.h>
27951 extern int putenv (char *);
27953 extern int putenv ();
27959 return (putenv == 0);
27964 rm -f conftest.
$ac_objext conftest
$ac_exeext
27965 if { (ac_try
="$ac_link"
27966 case "(($ac_try" in
27967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27968 *) ac_try_echo=$ac_try;;
27970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27971 $as_echo "$ac_try_echo") >&5
27972 (eval "$ac_link") 2>conftest.er1
27974 grep -v '^ *+' conftest.er1 >conftest.err
27976 cat conftest.err >&5
27977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978 (exit $ac_status); } && {
27979 test -z "$ac_c_werror_flag" ||
27980 test ! -s conftest.err
27981 } && test -s conftest$ac_exeext && {
27982 test "$cross_compiling" = yes ||
27983 $as_test_x conftest$ac_exeext
27985 bash_cv_std_putenv=yes
27987 $as_echo "$as_me: failed program was:" >&5
27988 sed 's/^/| /' conftest.$ac_ext >&5
27990 bash_cv_std_putenv=no
27994 rm -rf conftest.dSYM
27995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27996 conftest$ac_exeext conftest.$ac_ext
27998 { $as_echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
27999 $as_echo "$bash_cv_std_putenv" >&6; }
28000 if test $bash_cv_std_putenv = yes; then
28001 cat >>confdefs.h <<\_ACEOF
28002 #define HAVE_STD_PUTENV 1
28008 cat >>confdefs.h <<\_ACEOF
28009 #define HAVE_STD_PUTENV 1
28013 if test "$ac_cv_func_unsetenv" = "yes"; then
28017 { $as_echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
28018 $as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; }
28019 if test "${bash_cv_std_unsetenv+set}" = set; then
28020 $as_echo_n "(cached) " >&6
28022 cat >conftest.$ac_ext <<_ACEOF
28025 cat confdefs.h >>conftest.$ac_ext
28026 cat >>conftest.$ac_ext <<_ACEOF
28027 /* end confdefs.h. */
28030 #include <stdlib.h>
28031 #include <stddef.h>
28039 extern int unsetenv (const char *);
28041 extern int unsetenv ();
28047 return (unsetenv == 0);
28052 rm -f conftest.$ac_objext conftest$ac_exeext
28053 if { (ac_try="$ac_link"
28054 case "(($ac_try" in
28055 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28056 *) ac_try_echo
=$ac_try;;
28058 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28059 $as_echo "$ac_try_echo") >&5
28060 (eval "$ac_link") 2>conftest.er1
28062 grep -v '^ *+' conftest.er1
>conftest.err
28064 cat conftest.err
>&5
28065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066 (exit $ac_status); } && {
28067 test -z "$ac_c_werror_flag" ||
28068 test ! -s conftest.err
28069 } && test -s conftest
$ac_exeext && {
28070 test "$cross_compiling" = yes ||
28071 $as_test_x conftest
$ac_exeext
28073 bash_cv_std_unsetenv
=yes
28075 $as_echo "$as_me: failed program was:" >&5
28076 sed 's/^/| /' conftest.
$ac_ext >&5
28078 bash_cv_std_unsetenv
=no
28082 rm -rf conftest.dSYM
28083 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28084 conftest
$ac_exeext conftest.
$ac_ext
28086 { $as_echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
28087 $as_echo "$bash_cv_std_unsetenv" >&6; }
28088 if test $bash_cv_std_unsetenv = yes; then
28089 cat >>confdefs.h
<<\_ACEOF
28090 #define HAVE_STD_UNSETENV 1
28096 cat >>confdefs.h
<<\_ACEOF
28097 #define HAVE_STD_UNSETENV 1
28102 { $as_echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
28103 $as_echo_n "checking for printf floating point output in hex notation... " >&6; }
28104 if test "${bash_cv_printf_a_format+set}" = set; then
28105 $as_echo_n "(cached) " >&6
28107 if test "$cross_compiling" = yes; then
28108 { $as_echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
28109 $as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
28110 bash_cv_printf_a_format
=no
28113 cat >conftest.
$ac_ext <<_ACEOF
28116 cat confdefs.h
>>conftest.
$ac_ext
28117 cat >>conftest.
$ac_ext <<_ACEOF
28118 /* end confdefs.h. */
28121 #include <string.h>
28129 sprintf(abuf, "%A", y);
28130 exit(strchr(abuf, 'P') == (char *)0);
28134 rm -f conftest
$ac_exeext
28135 if { (ac_try
="$ac_link"
28136 case "(($ac_try" in
28137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28138 *) ac_try_echo=$ac_try;;
28140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28141 $as_echo "$ac_try_echo") >&5
28142 (eval "$ac_link") 2>&5
28144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28146 { (case "(($ac_try" in
28147 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28148 *) ac_try_echo
=$ac_try;;
28150 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28151 $as_echo "$ac_try_echo") >&5
28152 (eval "$ac_try") 2>&5
28154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); }; }; then
28156 bash_cv_printf_a_format
=yes
28158 $as_echo "$as_me: program exited with status $ac_status" >&5
28159 $as_echo "$as_me: failed program was:" >&5
28160 sed 's/^/| /' conftest.
$ac_ext >&5
28162 ( exit $ac_status )
28163 bash_cv_printf_a_format
=no
28165 rm -rf conftest.dSYM
28166 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28172 { $as_echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
28173 $as_echo "$bash_cv_printf_a_format" >&6; }
28174 if test $bash_cv_printf_a_format = yes; then
28175 cat >>confdefs.h
<<\_ACEOF
28176 #define HAVE_PRINTF_A_FORMAT 1
28184 { $as_echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
28185 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
28186 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
28187 $as_echo_n "(cached) " >&6
28189 if test "$cross_compiling" = yes; then
28190 { $as_echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
28191 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
28192 bash_cv_must_reinstall_sighandlers
=no
28195 cat >conftest.
$ac_ext <<_ACEOF
28198 cat confdefs.h
>>conftest.
$ac_ext
28199 cat >>conftest.
$ac_ext <<_ACEOF
28200 /* end confdefs.h. */
28202 #include <signal.h>
28203 #ifdef HAVE_UNISTD_H
28204 #include <unistd.h>
28207 typedef RETSIGTYPE sigfunc();
28211 #ifdef HAVE_POSIX_SIGNALS
28213 set_signal_handler(sig, handler)
28217 struct sigaction act, oact;
28218 act.sa_handler = handler;
28220 sigemptyset (&act.sa_mask);
28221 sigemptyset (&oact.sa_mask);
28222 sigaction (sig, &act, &oact);
28223 return (oact.sa_handler);
28226 #define set_signal_handler(s, h) signal(s, h)
28239 set_signal_handler(SIGINT, sigint);
28240 kill((int)getpid(), SIGINT);
28241 kill((int)getpid(), SIGINT);
28242 exit(nsigint != 2);
28246 rm -f conftest
$ac_exeext
28247 if { (ac_try
="$ac_link"
28248 case "(($ac_try" in
28249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28250 *) ac_try_echo=$ac_try;;
28252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28253 $as_echo "$ac_try_echo") >&5
28254 (eval "$ac_link") 2>&5
28256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28258 { (case "(($ac_try" in
28259 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28260 *) ac_try_echo
=$ac_try;;
28262 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28263 $as_echo "$ac_try_echo") >&5
28264 (eval "$ac_try") 2>&5
28266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28267 (exit $ac_status); }; }; then
28268 bash_cv_must_reinstall_sighandlers
=no
28270 $as_echo "$as_me: program exited with status $ac_status" >&5
28271 $as_echo "$as_me: failed program was:" >&5
28272 sed 's/^/| /' conftest.
$ac_ext >&5
28274 ( exit $ac_status )
28275 bash_cv_must_reinstall_sighandlers
=yes
28277 rm -rf conftest.dSYM
28278 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28284 { $as_echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
28285 $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
28286 if test $bash_cv_must_reinstall_sighandlers = yes; then
28287 cat >>confdefs.h
<<\_ACEOF
28288 #define MUST_REINSTALL_SIGHANDLERS 1
28294 { $as_echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
28295 $as_echo_n "checking for presence of necessary job control definitions... " >&6; }
28296 if test "${bash_cv_job_control_missing+set}" = set; then
28297 $as_echo_n "(cached) " >&6
28299 if test "$cross_compiling" = yes; then
28300 { $as_echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
28301 $as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
28302 bash_cv_job_control_missing
=missing
28305 cat >conftest.
$ac_ext <<_ACEOF
28308 cat confdefs.h
>>conftest.
$ac_ext
28309 cat >>conftest.
$ac_ext <<_ACEOF
28310 /* end confdefs.h. */
28312 #include <sys/types.h>
28313 #ifdef HAVE_SYS_WAIT_H
28314 #include <sys/wait.h>
28316 #ifdef HAVE_UNISTD_H
28317 #include <unistd.h>
28319 #include <signal.h>
28321 /* Add more tests in here as appropriate. */
28325 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
28329 /* signals and tty control. */
28330 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
28334 /* process control */
28335 #if !defined (WNOHANG) || !defined (WUNTRACED)
28339 /* Posix systems have tcgetpgrp and waitpid. */
28340 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
28344 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
28348 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
28349 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
28356 rm -f conftest
$ac_exeext
28357 if { (ac_try
="$ac_link"
28358 case "(($ac_try" in
28359 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28360 *) ac_try_echo=$ac_try;;
28362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28363 $as_echo "$ac_try_echo") >&5
28364 (eval "$ac_link") 2>&5
28366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28368 { (case "(($ac_try" in
28369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28370 *) ac_try_echo
=$ac_try;;
28372 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28373 $as_echo "$ac_try_echo") >&5
28374 (eval "$ac_try") 2>&5
28376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377 (exit $ac_status); }; }; then
28378 bash_cv_job_control_missing
=present
28380 $as_echo "$as_me: program exited with status $ac_status" >&5
28381 $as_echo "$as_me: failed program was:" >&5
28382 sed 's/^/| /' conftest.
$ac_ext >&5
28384 ( exit $ac_status )
28385 bash_cv_job_control_missing
=missing
28387 rm -rf conftest.dSYM
28388 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28394 { $as_echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
28395 $as_echo "$bash_cv_job_control_missing" >&6; }
28396 if test $bash_cv_job_control_missing = missing
; then
28397 cat >>confdefs.h
<<\_ACEOF
28398 #define JOB_CONTROL_MISSING 1
28403 { $as_echo "$as_me:$LINENO: checking for presence of named pipes" >&5
28404 $as_echo_n "checking for presence of named pipes... " >&6; }
28405 if test "${bash_cv_sys_named_pipes+set}" = set; then
28406 $as_echo_n "(cached) " >&6
28408 if test "$cross_compiling" = yes; then
28409 { $as_echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
28410 $as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
28411 bash_cv_sys_named_pipes
=missing
28414 cat >conftest.
$ac_ext <<_ACEOF
28417 cat confdefs.h
>>conftest.
$ac_ext
28418 cat >>conftest.
$ac_ext <<_ACEOF
28419 /* end confdefs.h. */
28421 #include <sys/types.h>
28422 #include <sys/stat.h>
28423 #ifdef HAVE_UNISTD_H
28424 #include <unistd.h>
28427 /* Add more tests in here as appropriate. */
28432 #if defined (HAVE_MKFIFO)
28436 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
28443 err = mkdir("bash-aclocal", 0700);
28448 fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
28450 rmdir ("bash-aclocal");
28454 unlink ("bash-aclocal/sh-np-autoconf");
28455 rmdir ("bash-aclocal");
28459 rm -f conftest
$ac_exeext
28460 if { (ac_try
="$ac_link"
28461 case "(($ac_try" in
28462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28463 *) ac_try_echo=$ac_try;;
28465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28466 $as_echo "$ac_try_echo") >&5
28467 (eval "$ac_link") 2>&5
28469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28471 { (case "(($ac_try" in
28472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28473 *) ac_try_echo
=$ac_try;;
28475 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28476 $as_echo "$ac_try_echo") >&5
28477 (eval "$ac_try") 2>&5
28479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28480 (exit $ac_status); }; }; then
28481 bash_cv_sys_named_pipes
=present
28483 $as_echo "$as_me: program exited with status $ac_status" >&5
28484 $as_echo "$as_me: failed program was:" >&5
28485 sed 's/^/| /' conftest.
$ac_ext >&5
28487 ( exit $ac_status )
28488 bash_cv_sys_named_pipes
=missing
28490 rm -rf conftest.dSYM
28491 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28497 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
28498 $as_echo "$bash_cv_sys_named_pipes" >&6; }
28499 if test $bash_cv_sys_named_pipes = missing
; then
28500 cat >>confdefs.h
<<\_ACEOF
28501 #define NAMED_PIPES_MISSING 1
28507 { $as_echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
28508 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
28509 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
28510 $as_echo_n "(cached) " >&6
28512 cat >conftest.
$ac_ext <<_ACEOF
28515 cat confdefs.h
>>conftest.
$ac_ext
28516 cat >>conftest.
$ac_ext <<_ACEOF
28517 /* end confdefs.h. */
28518 #include <sys/types.h>
28519 #include <termios.h>
28525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28526 $EGREP "yes" >/dev
/null
2>&1; then
28527 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
28529 ac_cv_sys_tiocgwinsz_in_termios_h
=no
28534 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
28535 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
28537 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
28538 { $as_echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
28539 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
28540 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
28541 $as_echo_n "(cached) " >&6
28543 cat >conftest.
$ac_ext <<_ACEOF
28546 cat confdefs.h
>>conftest.
$ac_ext
28547 cat >>conftest.
$ac_ext <<_ACEOF
28548 /* end confdefs.h. */
28549 #include <sys/types.h>
28550 #include <sys/ioctl.h>
28556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28557 $EGREP "yes" >/dev
/null
2>&1; then
28558 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
28560 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
28565 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
28566 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
28568 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
28570 cat >>confdefs.h
<<\_ACEOF
28571 #define GWINSZ_IN_SYS_IOCTL 1
28577 { $as_echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
28578 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
28579 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
28580 $as_echo_n "(cached) " >&6
28582 cat >conftest.
$ac_ext <<_ACEOF
28585 cat confdefs.h
>>conftest.
$ac_ext
28586 cat >>conftest.
$ac_ext <<_ACEOF
28587 /* end confdefs.h. */
28588 #include <sys/types.h>
28589 #include <sys/ioctl.h>
28598 rm -f conftest.
$ac_objext
28599 if { (ac_try
="$ac_compile"
28600 case "(($ac_try" in
28601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28602 *) ac_try_echo=$ac_try;;
28604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28605 $as_echo "$ac_try_echo") >&5
28606 (eval "$ac_compile") 2>conftest.er1
28608 grep -v '^ *+' conftest.er1 >conftest.err
28610 cat conftest.err >&5
28611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); } && {
28613 test -z "$ac_c_werror_flag" ||
28614 test ! -s conftest.err
28615 } && test -s conftest.$ac_objext; then
28616 bash_cv_tiocstat_in_ioctl=yes
28618 $as_echo "$as_me: failed program was:" >&5
28619 sed 's/^/| /' conftest.$ac_ext >&5
28621 bash_cv_tiocstat_in_ioctl=no
28624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28627 { $as_echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
28628 $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
28629 if test $bash_cv_tiocstat_in_ioctl = yes; then
28630 cat >>confdefs.h <<\_ACEOF
28631 #define TIOCSTAT_IN_SYS_IOCTL 1
28636 { $as_echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
28637 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
28638 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
28639 $as_echo_n "(cached) " >&6
28641 cat >conftest.$ac_ext <<_ACEOF
28644 cat confdefs.h >>conftest.$ac_ext
28645 cat >>conftest.$ac_ext <<_ACEOF
28646 /* end confdefs.h. */
28647 #include <sys/types.h>
28648 #include <sys/ioctl.h>
28657 rm -f conftest.$ac_objext
28658 if { (ac_try="$ac_compile"
28659 case "(($ac_try" in
28660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28661 *) ac_try_echo
=$ac_try;;
28663 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28664 $as_echo "$ac_try_echo") >&5
28665 (eval "$ac_compile") 2>conftest.er1
28667 grep -v '^ *+' conftest.er1
>conftest.err
28669 cat conftest.err
>&5
28670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671 (exit $ac_status); } && {
28672 test -z "$ac_c_werror_flag" ||
28673 test ! -s conftest.err
28674 } && test -s conftest.
$ac_objext; then
28675 bash_cv_fionread_in_ioctl
=yes
28677 $as_echo "$as_me: failed program was:" >&5
28678 sed 's/^/| /' conftest.
$ac_ext >&5
28680 bash_cv_fionread_in_ioctl
=no
28683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28686 { $as_echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
28687 $as_echo "$bash_cv_fionread_in_ioctl" >&6; }
28688 if test $bash_cv_fionread_in_ioctl = yes; then
28689 cat >>confdefs.h
<<\_ACEOF
28690 #define FIONREAD_IN_SYS_IOCTL 1
28697 { $as_echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
28698 $as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
28699 if test "${bash_cv_wcontinued_broken+set}" = set; then
28700 $as_echo_n "(cached) " >&6
28702 if test "$cross_compiling" = yes; then
28703 { $as_echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
28704 $as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
28705 bash_cv_wcontinued_broken
=no
28708 cat >conftest.
$ac_ext <<_ACEOF
28711 cat confdefs.h
>>conftest.
$ac_ext
28712 cat >>conftest.
$ac_ext <<_ACEOF
28713 /* end confdefs.h. */
28715 #include <sys/types.h>
28716 #include <sys/wait.h>
28717 #include <unistd.h>
28727 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
28728 if (x == -1 && errno == EINVAL)
28735 rm -f conftest
$ac_exeext
28736 if { (ac_try
="$ac_link"
28737 case "(($ac_try" in
28738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28739 *) ac_try_echo=$ac_try;;
28741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28742 $as_echo "$ac_try_echo") >&5
28743 (eval "$ac_link") 2>&5
28745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28747 { (case "(($ac_try" in
28748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28749 *) ac_try_echo
=$ac_try;;
28751 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28752 $as_echo "$ac_try_echo") >&5
28753 (eval "$ac_try") 2>&5
28755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756 (exit $ac_status); }; }; then
28757 bash_cv_wcontinued_broken
=no
28759 $as_echo "$as_me: program exited with status $ac_status" >&5
28760 $as_echo "$as_me: failed program was:" >&5
28761 sed 's/^/| /' conftest.
$ac_ext >&5
28763 ( exit $ac_status )
28764 bash_cv_wcontinued_broken
=yes
28766 rm -rf conftest.dSYM
28767 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28773 { $as_echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
28774 $as_echo "$bash_cv_wcontinued_broken" >&6; }
28775 if test $bash_cv_wcontinued_broken = yes; then
28776 cat >>confdefs.h
<<\_ACEOF
28777 #define WCONTINUED_BROKEN 1
28783 { $as_echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
28784 $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
28785 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
28786 $as_echo_n "(cached) " >&6
28788 cat >conftest.
$ac_ext <<_ACEOF
28791 cat confdefs.h
>>conftest.
$ac_ext
28792 cat >>conftest.
$ac_ext <<_ACEOF
28793 /* end confdefs.h. */
28794 #include <sys/types.h>
28803 rm -f conftest.
$ac_objext
28804 if { (ac_try
="$ac_compile"
28805 case "(($ac_try" in
28806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28807 *) ac_try_echo=$ac_try;;
28809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28810 $as_echo "$ac_try_echo") >&5
28811 (eval "$ac_compile") 2>conftest.er1
28813 grep -v '^ *+' conftest.er1 >conftest.err
28815 cat conftest.err >&5
28816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28817 (exit $ac_status); } && {
28818 test -z "$ac_c_werror_flag" ||
28819 test ! -s conftest.err
28820 } && test -s conftest.$ac_objext; then
28821 bash_cv_speed_t_in_sys_types=yes
28823 $as_echo "$as_me: failed program was:" >&5
28824 sed 's/^/| /' conftest.$ac_ext >&5
28826 bash_cv_speed_t_in_sys_types=no
28829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28832 { $as_echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
28833 $as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
28834 if test $bash_cv_speed_t_in_sys_types = yes; then
28835 cat >>confdefs.h <<\_ACEOF
28836 #define SPEED_T_IN_SYS_TYPES 1
28841 { $as_echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
28842 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
28843 if test "${bash_cv_getpw_declared+set}" = set; then
28844 $as_echo_n "(cached) " >&6
28846 cat >conftest.$ac_ext <<_ACEOF
28849 cat confdefs.h >>conftest.$ac_ext
28850 cat >>conftest.$ac_ext <<_ACEOF
28851 /* end confdefs.h. */
28853 #include <sys/types.h>
28854 #ifdef HAVE_UNISTD_H
28855 # include <unistd.h>
28860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28861 $EGREP "getpwuid" >/dev/null 2>&1; then
28862 bash_cv_getpw_declared=yes
28864 bash_cv_getpw_declared=no
28870 { $as_echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
28871 $as_echo "$bash_cv_getpw_declared" >&6; }
28872 if test $bash_cv_getpw_declared = yes; then
28873 cat >>confdefs.h <<\_ACEOF
28874 #define HAVE_GETPW_DECLS 1
28879 { $as_echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
28880 $as_echo_n "checking for unusable real-time signals due to large values... " >&6; }
28881 if test "${bash_cv_unusable_rtsigs+set}" = set; then
28882 $as_echo_n "(cached) " >&6
28884 if test "$cross_compiling" = yes; then
28885 { $as_echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
28886 $as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
28887 bash_cv_unusable_rtsigs=yes
28890 cat >conftest.$ac_ext <<_ACEOF
28893 cat confdefs.h >>conftest.$ac_ext
28894 cat >>conftest.$ac_ext <<_ACEOF
28895 /* end confdefs.h. */
28897 #include <sys/types.h>
28898 #include <signal.h>
28906 int n_sigs = 2 * NSIG;
28908 int rtmin = SIGRTMIN;
28913 exit(rtmin < n_sigs);
28916 rm -f conftest$ac_exeext
28917 if { (ac_try="$ac_link"
28918 case "(($ac_try" in
28919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28920 *) ac_try_echo
=$ac_try;;
28922 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28923 $as_echo "$ac_try_echo") >&5
28924 (eval "$ac_link") 2>&5
28926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
28928 { (case "(($ac_try" in
28929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28930 *) ac_try_echo=$ac_try;;
28932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28933 $as_echo "$ac_try_echo") >&5
28934 (eval "$ac_try") 2>&5
28936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937 (exit $ac_status); }; }; then
28938 bash_cv_unusable_rtsigs=yes
28940 $as_echo "$as_me: program exited with status $ac_status" >&5
28941 $as_echo "$as_me: failed program was:" >&5
28942 sed 's/^/| /' conftest.$ac_ext >&5
28944 ( exit $ac_status )
28945 bash_cv_unusable_rtsigs=no
28947 rm -rf conftest.dSYM
28948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28954 { $as_echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
28955 $as_echo "$bash_cv_unusable_rtsigs" >&6; }
28956 if test $bash_cv_unusable_rtsigs = yes; then
28957 cat >>confdefs.h <<\_ACEOF
28958 #define UNUSABLE_RT_SIGNALS 1
28967 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
28968 SIGLIST_O=siglist.o
28976 hpux*) { $as_echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
28977 $as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
28978 if test "${bash_cv_kernel_rlimit+set}" = set; then
28979 $as_echo_n "(cached) " >&6
28981 cat >conftest.$ac_ext <<_ACEOF
28984 cat confdefs.h >>conftest.$ac_ext
28985 cat >>conftest.$ac_ext <<_ACEOF
28986 /* end confdefs.h. */
28988 #include <sys/types.h>
28989 #include <sys/resource.h>
29002 rm -f conftest.$ac_objext
29003 if { (ac_try="$ac_compile"
29004 case "(($ac_try" in
29005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29006 *) ac_try_echo
=$ac_try;;
29008 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29009 $as_echo "$ac_try_echo") >&5
29010 (eval "$ac_compile") 2>conftest.er1
29012 grep -v '^ *+' conftest.er1
>conftest.err
29014 cat conftest.err
>&5
29015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016 (exit $ac_status); } && {
29017 test -z "$ac_c_werror_flag" ||
29018 test ! -s conftest.err
29019 } && test -s conftest.
$ac_objext; then
29020 bash_cv_kernel_rlimit
=no
29022 $as_echo "$as_me: failed program was:" >&5
29023 sed 's/^/| /' conftest.
$ac_ext >&5
29025 cat >conftest.
$ac_ext <<_ACEOF
29028 cat confdefs.h
>>conftest.
$ac_ext
29029 cat >>conftest.
$ac_ext <<_ACEOF
29030 /* end confdefs.h. */
29032 #include <sys/types.h>
29034 #include <sys/resource.h>
29048 rm -f conftest.
$ac_objext
29049 if { (ac_try
="$ac_compile"
29050 case "(($ac_try" in
29051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29052 *) ac_try_echo=$ac_try;;
29054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29055 $as_echo "$ac_try_echo") >&5
29056 (eval "$ac_compile") 2>conftest.er1
29058 grep -v '^ *+' conftest.er1 >conftest.err
29060 cat conftest.err >&5
29061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062 (exit $ac_status); } && {
29063 test -z "$ac_c_werror_flag" ||
29064 test ! -s conftest.err
29065 } && test -s conftest.$ac_objext; then
29066 bash_cv_kernel_rlimit=yes
29068 $as_echo "$as_me: failed program was:" >&5
29069 sed 's/^/| /' conftest.$ac_ext >&5
29071 bash_cv_kernel_rlimit=no
29074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29081 { $as_echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
29082 $as_echo "$bash_cv_kernel_rlimit" >&6; }
29083 if test $bash_cv_kernel_rlimit = yes; then
29084 cat >>confdefs.h <<\_ACEOF
29085 #define RLIMIT_NEEDS_KERNEL 1
29092 if test "$opt_readline" = yes; then
29094 aix*) prefer_curses=yes ;;
29097 if test "X$bash_cv_termcap_lib" = "X"; then
29100 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
29101 $as_echo_n "checking which library has the termcap functions... " >&6; }
29104 if test "${bash_cv_termcap_lib+set}" = set; then
29105 $as_echo_n "(cached) " >&6
29107 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
29108 $as_echo_n "checking for tgetent... " >&6; }
29109 if test "${ac_cv_func_tgetent+set}" = set; then
29110 $as_echo_n "(cached) " >&6
29112 cat >conftest.$ac_ext <<_ACEOF
29115 cat confdefs.h >>conftest.$ac_ext
29116 cat >>conftest.$ac_ext <<_ACEOF
29117 /* end confdefs.h. */
29118 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
29119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29120 #define tgetent innocuous_tgetent
29122 /* System header to define __stub macros and hopefully few prototypes,
29123 which can conflict with char tgetent (); below.
29124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29125 <limits.h> exists even on freestanding compilers. */
29128 # include <limits.h>
29130 # include <assert.h>
29135 /* Override any GCC internal prototype to avoid an error.
29136 Use char because int might match the return type of a GCC
29137 builtin and then its argument prototype would still apply. */
29142 /* The GNU C library defines this for functions which it implements
29143 to always fail with ENOSYS. Some functions are actually named
29144 something starting with __ and the normal name is an alias. */
29145 #if defined __stub_tgetent || defined __stub___tgetent
29157 rm -f conftest.$ac_objext conftest$ac_exeext
29158 if { (ac_try="$ac_link"
29159 case "(($ac_try" in
29160 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29161 *) ac_try_echo
=$ac_try;;
29163 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29164 $as_echo "$ac_try_echo") >&5
29165 (eval "$ac_link") 2>conftest.er1
29167 grep -v '^ *+' conftest.er1
>conftest.err
29169 cat conftest.err
>&5
29170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171 (exit $ac_status); } && {
29172 test -z "$ac_c_werror_flag" ||
29173 test ! -s conftest.err
29174 } && test -s conftest
$ac_exeext && {
29175 test "$cross_compiling" = yes ||
29176 $as_test_x conftest
$ac_exeext
29178 ac_cv_func_tgetent
=yes
29180 $as_echo "$as_me: failed program was:" >&5
29181 sed 's/^/| /' conftest.
$ac_ext >&5
29183 ac_cv_func_tgetent
=no
29186 rm -rf conftest.dSYM
29187 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29188 conftest
$ac_exeext conftest.
$ac_ext
29190 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
29191 $as_echo "$ac_cv_func_tgetent" >&6; }
29192 if test "x$ac_cv_func_tgetent" = x
""yes; then
29193 bash_cv_termcap_lib
=libc
29195 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
29196 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
29197 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
29198 $as_echo_n "(cached) " >&6
29200 ac_check_lib_save_LIBS
=$LIBS
29201 LIBS
="-ltermcap $LIBS"
29202 cat >conftest.
$ac_ext <<_ACEOF
29205 cat confdefs.h
>>conftest.
$ac_ext
29206 cat >>conftest.
$ac_ext <<_ACEOF
29207 /* end confdefs.h. */
29209 /* Override any GCC internal prototype to avoid an error.
29210 Use char because int might match the return type of a GCC
29211 builtin and then its argument prototype would still apply. */
29224 rm -f conftest.
$ac_objext conftest
$ac_exeext
29225 if { (ac_try
="$ac_link"
29226 case "(($ac_try" in
29227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29228 *) ac_try_echo=$ac_try;;
29230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29231 $as_echo "$ac_try_echo") >&5
29232 (eval "$ac_link") 2>conftest.er1
29234 grep -v '^ *+' conftest.er1 >conftest.err
29236 cat conftest.err >&5
29237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238 (exit $ac_status); } && {
29239 test -z "$ac_c_werror_flag" ||
29240 test ! -s conftest.err
29241 } && test -s conftest$ac_exeext && {
29242 test "$cross_compiling" = yes ||
29243 $as_test_x conftest$ac_exeext
29245 ac_cv_lib_termcap_tgetent=yes
29247 $as_echo "$as_me: failed program was:" >&5
29248 sed 's/^/| /' conftest.$ac_ext >&5
29250 ac_cv_lib_termcap_tgetent=no
29253 rm -rf conftest.dSYM
29254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29255 conftest$ac_exeext conftest.$ac_ext
29256 LIBS=$ac_check_lib_save_LIBS
29258 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
29259 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
29260 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
29261 bash_cv_termcap_lib=libtermcap
29263 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
29264 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
29265 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
29266 $as_echo_n "(cached) " >&6
29268 ac_check_lib_save_LIBS=$LIBS
29269 LIBS="-ltinfo $LIBS"
29270 cat >conftest.$ac_ext <<_ACEOF
29273 cat confdefs.h >>conftest.$ac_ext
29274 cat >>conftest.$ac_ext <<_ACEOF
29275 /* end confdefs.h. */
29277 /* Override any GCC internal prototype to avoid an error.
29278 Use char because int might match the return type of a GCC
29279 builtin and then its argument prototype would still apply. */
29292 rm -f conftest.$ac_objext conftest$ac_exeext
29293 if { (ac_try="$ac_link"
29294 case "(($ac_try" in
29295 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29296 *) ac_try_echo
=$ac_try;;
29298 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29299 $as_echo "$ac_try_echo") >&5
29300 (eval "$ac_link") 2>conftest.er1
29302 grep -v '^ *+' conftest.er1
>conftest.err
29304 cat conftest.err
>&5
29305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306 (exit $ac_status); } && {
29307 test -z "$ac_c_werror_flag" ||
29308 test ! -s conftest.err
29309 } && test -s conftest
$ac_exeext && {
29310 test "$cross_compiling" = yes ||
29311 $as_test_x conftest
$ac_exeext
29313 ac_cv_lib_tinfo_tgetent
=yes
29315 $as_echo "$as_me: failed program was:" >&5
29316 sed 's/^/| /' conftest.
$ac_ext >&5
29318 ac_cv_lib_tinfo_tgetent
=no
29321 rm -rf conftest.dSYM
29322 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29323 conftest
$ac_exeext conftest.
$ac_ext
29324 LIBS
=$ac_check_lib_save_LIBS
29326 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
29327 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
29328 if test "x$ac_cv_lib_tinfo_tgetent" = x
""yes; then
29329 bash_cv_termcap_lib
=libtinfo
29331 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
29332 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
29333 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
29334 $as_echo_n "(cached) " >&6
29336 ac_check_lib_save_LIBS
=$LIBS
29337 LIBS
="-lcurses $LIBS"
29338 cat >conftest.
$ac_ext <<_ACEOF
29341 cat confdefs.h
>>conftest.
$ac_ext
29342 cat >>conftest.
$ac_ext <<_ACEOF
29343 /* end confdefs.h. */
29345 /* Override any GCC internal prototype to avoid an error.
29346 Use char because int might match the return type of a GCC
29347 builtin and then its argument prototype would still apply. */
29360 rm -f conftest.
$ac_objext conftest
$ac_exeext
29361 if { (ac_try
="$ac_link"
29362 case "(($ac_try" in
29363 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29364 *) ac_try_echo=$ac_try;;
29366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29367 $as_echo "$ac_try_echo") >&5
29368 (eval "$ac_link") 2>conftest.er1
29370 grep -v '^ *+' conftest.er1 >conftest.err
29372 cat conftest.err >&5
29373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); } && {
29375 test -z "$ac_c_werror_flag" ||
29376 test ! -s conftest.err
29377 } && test -s conftest$ac_exeext && {
29378 test "$cross_compiling" = yes ||
29379 $as_test_x conftest$ac_exeext
29381 ac_cv_lib_curses_tgetent=yes
29383 $as_echo "$as_me: failed program was:" >&5
29384 sed 's/^/| /' conftest.$ac_ext >&5
29386 ac_cv_lib_curses_tgetent=no
29389 rm -rf conftest.dSYM
29390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29391 conftest$ac_exeext conftest.$ac_ext
29392 LIBS=$ac_check_lib_save_LIBS
29394 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
29395 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
29396 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
29397 bash_cv_termcap_lib=libcurses
29399 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
29400 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
29401 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
29402 $as_echo_n "(cached) " >&6
29404 ac_check_lib_save_LIBS=$LIBS
29405 LIBS="-lncurses $LIBS"
29406 cat >conftest.$ac_ext <<_ACEOF
29409 cat confdefs.h >>conftest.$ac_ext
29410 cat >>conftest.$ac_ext <<_ACEOF
29411 /* end confdefs.h. */
29413 /* Override any GCC internal prototype to avoid an error.
29414 Use char because int might match the return type of a GCC
29415 builtin and then its argument prototype would still apply. */
29428 rm -f conftest.$ac_objext conftest$ac_exeext
29429 if { (ac_try="$ac_link"
29430 case "(($ac_try" in
29431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29432 *) ac_try_echo
=$ac_try;;
29434 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29435 $as_echo "$ac_try_echo") >&5
29436 (eval "$ac_link") 2>conftest.er1
29438 grep -v '^ *+' conftest.er1
>conftest.err
29440 cat conftest.err
>&5
29441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442 (exit $ac_status); } && {
29443 test -z "$ac_c_werror_flag" ||
29444 test ! -s conftest.err
29445 } && test -s conftest
$ac_exeext && {
29446 test "$cross_compiling" = yes ||
29447 $as_test_x conftest
$ac_exeext
29449 ac_cv_lib_ncurses_tgetent
=yes
29451 $as_echo "$as_me: failed program was:" >&5
29452 sed 's/^/| /' conftest.
$ac_ext >&5
29454 ac_cv_lib_ncurses_tgetent
=no
29457 rm -rf conftest.dSYM
29458 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29459 conftest
$ac_exeext conftest.
$ac_ext
29460 LIBS
=$ac_check_lib_save_LIBS
29462 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
29463 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
29464 if test "x$ac_cv_lib_ncurses_tgetent" = x
""yes; then
29465 bash_cv_termcap_lib
=libncurses
29467 bash_cv_termcap_lib
=gnutermcap
29480 if test "X$_bash_needmsg" = "Xyes"; then
29481 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
29482 $as_echo_n "checking which library has the termcap functions... " >&6; }
29484 { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
29485 $as_echo "using $bash_cv_termcap_lib" >&6; }
29486 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
29487 LDFLAGS
="$LDFLAGS -L./lib/termcap"
29488 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
29489 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
29490 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
29491 TERMCAP_LIB
=-ltermcap
29493 elif test $bash_cv_termcap_lib = libtinfo
; then
29494 TERMCAP_LIB
=-ltinfo
29496 elif test $bash_cv_termcap_lib = libncurses
; then
29497 TERMCAP_LIB
=-lncurses
29499 elif test $bash_cv_termcap_lib = libc
; then
29503 TERMCAP_LIB
=-lcurses
29511 { $as_echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
29512 $as_echo_n "checking whether /dev/fd is available... " >&6; }
29513 if test "${bash_cv_dev_fd+set}" = set; then
29514 $as_echo_n "(cached) " >&6
29517 if test -d /dev
/fd
&& (exec test -r /dev
/fd
/0 < /dev
/null
) ; then
29518 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
29519 if (exec test -r /dev
/fd
/3 3</dev
/null
) ; then
29520 bash_cv_dev_fd
=standard
29522 bash_cv_dev_fd
=absent
29525 if test -z "$bash_cv_dev_fd" ; then
29526 if test -d /proc
/self
/fd
&& (exec test -r /proc
/self
/fd
/0 < /dev
/null
) ; then
29527 bash_cv_dev_fd
=whacky
29529 bash_cv_dev_fd
=absent
29535 { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
29536 $as_echo "$bash_cv_dev_fd" >&6; }
29537 if test $bash_cv_dev_fd = "standard"; then
29538 cat >>confdefs.h
<<\_ACEOF
29539 #define HAVE_DEV_FD 1
29542 cat >>confdefs.h
<<\_ACEOF
29543 #define DEV_FD_PREFIX "/dev/fd/"
29546 elif test $bash_cv_dev_fd = "whacky"; then
29547 cat >>confdefs.h
<<\_ACEOF
29548 #define HAVE_DEV_FD 1
29551 cat >>confdefs.h
<<\_ACEOF
29552 #define DEV_FD_PREFIX "/proc/self/fd/"
29557 { $as_echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
29558 $as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; }
29559 if test "${bash_cv_dev_stdin+set}" = set; then
29560 $as_echo_n "(cached) " >&6
29562 if test -d /dev
/fd
&& (exec test -r /dev
/stdin
< /dev
/null
) ; then
29563 bash_cv_dev_stdin
=present
29564 elif test -d /proc
/self
/fd
&& (exec test -r /dev
/stdin
< /dev
/null
) ; then
29565 bash_cv_dev_stdin
=present
29567 bash_cv_dev_stdin
=absent
29572 { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
29573 $as_echo "$bash_cv_dev_stdin" >&6; }
29574 if test $bash_cv_dev_stdin = "present"; then
29575 cat >>confdefs.h
<<\_ACEOF
29576 #define HAVE_DEV_STDIN 1
29581 { $as_echo "$as_me:$LINENO: checking for default mail directory" >&5
29582 $as_echo_n "checking for default mail directory... " >&6; }
29583 if test "${bash_cv_mail_dir+set}" = set; then
29584 $as_echo_n "(cached) " >&6
29586 if test -d /var
/mail; then
29587 bash_cv_mail_dir
=/var
/mail
29588 elif test -d /var
/spool
/mail; then
29589 bash_cv_mail_dir
=/var
/spool
/mail
29590 elif test -d /usr
/mail; then
29591 bash_cv_mail_dir
=/usr
/mail
29592 elif test -d /usr
/spool
/mail; then
29593 bash_cv_mail_dir
=/usr
/spool
/mail
29595 bash_cv_mail_dir
=unknown
29600 { $as_echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
29601 $as_echo "$bash_cv_mail_dir" >&6; }
29602 cat >>confdefs.h
<<_ACEOF
29603 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
29608 if test "$bash_cv_job_control_missing" = missing
; then
29612 if test "$opt_job_control" = yes; then
29613 cat >>confdefs.h
<<\_ACEOF
29614 #define JOB_CONTROL 1
29628 case "${host_os}" in
29629 sysv4.2
*) cat >>confdefs.h
<<\_ACEOF
29633 cat >>confdefs.h
<<\_ACEOF
29637 sysv4
*) cat >>confdefs.h
<<\_ACEOF
29641 sysv5
*) cat >>confdefs.h
<<\_ACEOF
29645 hpux9
*) LOCAL_CFLAGS
="-DHPUX9 -DHPUX" ;;
29646 hpux
*) LOCAL_CFLAGS
=-DHPUX ;;
29647 dgux
*) LOCAL_CFLAGS
=-D_DGUX_SOURCE; LOCAL_LIBS
=-ldgc ;;
29648 isc
*) LOCAL_CFLAGS
=-Disc386 ;;
29649 rhapsody
*) LOCAL_CFLAGS
=-DRHAPSODY ;;
29650 darwin
*) LOCAL_CFLAGS
=-DMACOSX ;;
29651 sco3.2v5
*) LOCAL_CFLAGS
="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
29652 sco3.2v4
*) LOCAL_CFLAGS
="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
29653 sco3.2
*) LOCAL_CFLAGS
=-DMUST_UNBLOCK_CHLD ;;
29654 sunos4
*) LOCAL_CFLAGS
=-DSunOS4 ;;
29655 solaris2.5
*) LOCAL_CFLAGS
="-DSunOS5 -DSOLARIS" ;;
29656 solaris2.8
*) LOCAL_CFLAGS
=-DSOLARIS LOCAL_LDFLAGS
='-z interpose' ;;
29657 solaris2.9
*) LOCAL_CFLAGS
=-DSOLARIS LOCAL_LDFLAGS
='-z interpose' ;;
29658 solaris2.10
*) LOCAL_CFLAGS
=-DSOLARIS LOCAL_LDFLAGS
='-z interpose' ;;
29659 solaris2
*) LOCAL_CFLAGS
=-DSOLARIS ;;
29660 lynxos
*) LOCAL_CFLAGS
=-DRECYCLES_PIDS ;;
29661 linux
*) LOCAL_LDFLAGS
=-rdynamic # allow dynamic loading
29662 case "`uname -r`" in
29663 2.
[456789]*|
3*) cat >>confdefs.h
<<\_ACEOF
29664 #define PGRP_PIPE 1
29668 *qnx6
*) LOCAL_CFLAGS
="-Dqnx -Dqnx6" LOCAL_LIBS
="-lncurses" ;;
29669 *qnx
*) LOCAL_CFLAGS
="-Dqnx -F -3s" LOCAL_LDFLAGS
="-3s" LOCAL_LIBS
="-lunix -lncurses" ;;
29670 powerux
*) LOCAL_LIBS
="-lgen" ;;
29671 cygwin
*) LOCAL_CFLAGS
=-DRECYCLES_PIDS ;;
29672 opennt
*|interix
*) LOCAL_CFLAGS
="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;;
29675 case "${host_os}-${CC}" in
29676 aix4.2
*-*gcc
*) LOCAL_LDFLAGS
="-Xlinker -bexpall -Xlinker -brtl" ;;
29677 aix4.2
*) LOCAL_LDFLAGS
="-bexpall -brtl" ;;
29678 bsdi4
*-*gcc
*) LOCAL_LDFLAGS
="-rdynamic" ;; # allow dynamic loading, like Linux
29681 case "${host_os}" in
29683 if test -x /usr
/bin
/objformat
&& test "`/usr/bin/objformat`" = "elf" ; then
29684 LOCAL_LDFLAGS
=-rdynamic # allow dynamic loading
29686 freebsdelf
*) LOCAL_LDFLAGS
=-rdynamic ;; # allow dynamic loading
29687 dragonfly
*) LOCAL_LDFLAGS
=-rdynamic ;; # allow dynamic loading
29690 case "$host_cpu" in
29691 *cray
*) LOCAL_CFLAGS
="-DCRAY" ;; # shell var so config.h can use it
29694 case "$host_cpu-$host_os" in
29695 ibmrt-
*bsd4
*) LOCAL_CFLAGS
="-ma -U__STDC__" ;;
29698 case "$host_cpu-$host_vendor-$host_os" in
29699 m88k-motorola-sysv3
) LOCAL_CFLAGS
=-DWAITPID_BROKEN ;;
29700 mips-pyramid-sysv4
) LOCAL_CFLAGS
=-Xa ;;
29704 # Shared object configuration section. These values are generated by
29705 # ${srcdir}/support/shobj-conf
29707 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support
/shobj-conf
29709 { $as_echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
29710 $as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
29711 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
29719 { $as_echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
29720 $as_echo "$SHOBJ_STATUS" >&6; }
29723 # try to create a directory tree if the source is elsewhere
29724 # this should be packaged into a script accessible via ${srcdir}/support
29727 *) for d
in doc tests support lib examples
; do # dirs
29728 test -d $d || mkdir
$d
29730 for ld
in readline glob tilde malloc sh termcap
; do # libdirs
29731 test -d lib
/$ld || mkdir lib
/$ld
29733 test -d examples
/loadables || mkdir examples
/loadables
# loadable builtins
29734 test -d examples
/loadables
/perl || mkdir examples
/loadables
/perl
29739 case "$BUILD_DIR" in
29740 *\
*) BUILD_DIR
=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
29744 if test -z "$localedir"; then
29745 localedir
='${datarootdir}/locale'
29747 if test -z "$datarootdir"; then
29748 datarootdir
='${prefix}/share'
29756 # Some versions of autoconf don't substitute these automatically
29778 #AC_SUBST(ALLOCA_SOURCE)
29779 #AC_SUBST(ALLOCA_OBJECT)
29781 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"
29783 ac_config_commands
="$ac_config_commands default"
29785 cat >confcache
<<\_ACEOF
29786 # This file is a shell script that caches the results of configure
29787 # tests run on this system so they can be shared between configure
29788 # scripts and configure runs, see configure's option --config-cache.
29789 # It is not useful on other systems. If it contains results you don't
29790 # want to keep, you may remove or edit it.
29792 # config.status only pays attention to the cache file if you give it
29793 # the --recheck option to rerun configure.
29795 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29796 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29797 # following values.
29801 # The following way of writing the cache mishandles newlines in values,
29802 # but we know of no workaround that is simple, portable, and efficient.
29803 # So, we kill variables containing newlines.
29804 # Ultrix sh set writes to stderr and can't be redirected directly,
29805 # and sets the high bit in the cache file unless we assign to the vars.
29807 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29808 eval ac_val
=\$
$ac_var
29812 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29813 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29816 _ | IFS | as_nl
) ;; #(
29817 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29818 *) $as_unset $ac_var ;;
29824 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29825 *${as_nl}ac_space
=\
*)
29826 # `set' does not quote correctly, so add quotes (double-quote
29827 # substitution turns \\\\ into \\, and sed turns \\ into \).
29830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29833 # `set' quotes correctly as required by POSIX, so do not add quotes.
29834 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29843 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29845 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29847 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29848 if test -w "$cache_file"; then
29849 test "x$cache_file" != "x/dev/null" &&
29850 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29851 $as_echo "$as_me: updating cache $cache_file" >&6;}
29852 cat confcache
>$cache_file
29854 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29855 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29860 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29861 # Let make expand exec_prefix.
29862 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29864 DEFS
=-DHAVE_CONFIG_H
29868 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29869 # 1. Remove the extension, and $U if already installed.
29870 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29871 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29872 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29873 # will be set to the directory where LIBOBJS objects are built.
29874 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29875 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29877 LIBOBJS
=$ac_libobjs
29879 LTLIBOBJS
=$ac_ltlibobjs
29884 : ${CONFIG_STATUS=./config.status}
29886 ac_clean_files_save
=$ac_clean_files
29887 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29888 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29889 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29890 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29892 # Generated by $as_me.
29893 # Run this file to recreate the current configuration.
29894 # Compiler output produced by configure, useful for debugging
29895 # configure, is in config.log if it exists.
29898 ac_cs_recheck=false
29900 SHELL=\${CONFIG_SHELL-$SHELL}
29903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29904 ## --------------------- ##
29905 ## M4sh Initialization. ##
29906 ## --------------------- ##
29908 # Be more Bourne compatible
29909 DUALCASE
=1; export DUALCASE
# for MKS sh
29910 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
29913 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29914 # is contrary to our usage. Disable this feature.
29915 alias -g '${1+"$@"}'='"$@"'
29916 setopt NO_GLOB_SUBST
29918 case `(set -o) 2>/dev/null` in
29919 *posix
*) set -o posix
;;
29928 # Avoid depending upon Character Ranges.
29929 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29930 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29931 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29932 as_cr_digits
='0123456789'
29933 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29938 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29939 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29940 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29941 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29942 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29943 as_echo='printf %s
\n'
29944 as_echo_n='printf %s
'
29946 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29947 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29948 as_echo_n='/usr
/ucb
/echo -n'
29950 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29951 as_echo_n_body='eval
29955 expr "X$arg" : "X\\(.*\\)$as_nl";
29956 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29958 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29960 export as_echo_n_body
29961 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29963 export as_echo_body
29964 as_echo='sh
-c $as_echo_body as_echo
'
29967 # The user is always right.
29968 if test "${PATH_SEPARATOR+set}" != set; then
29970 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29971 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29976 # Support unset when possible.
29977 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29985 # We need space, tab and new line, in precisely that order. Quoting is
29986 # there to prevent editors from complaining about space-tab.
29987 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29988 # splitting by setting IFS to empty value.)
29991 # Find who we are. Look in the path if we contain no directory separator.
29993 *[\\/]* ) as_myself=$0 ;;
29994 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29995 for as_dir in $PATH
29998 test -z "$as_dir" && as_dir=.
29999 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30005 # We did not find ourselves, most probably we were run as `sh COMMAND'
30006 # in which case we are not to be found in the path.
30007 if test "x$as_myself" = x
; then
30010 if test ! -f "$as_myself"; then
30011 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30012 { (exit 1); exit 1; }
30015 # Work around bugs in pre-3.0 UWIN ksh.
30016 for as_var
in ENV MAIL MAILPATH
30017 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
30029 # Required to use basename.
30030 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30031 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30037 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30038 as_basename
=basename
30044 # Name of the executable.
30045 as_me
=`$as_basename -- "$0" ||
30046 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30047 X"$0" : 'X\(//\)$' \| \
30048 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30050 sed '/^.*\/\([^/][^/]*\)\/*$/{
30069 as_lineno_1
=$LINENO
30070 as_lineno_2
=$LINENO
30071 test "x$as_lineno_1" != "x$as_lineno_2" &&
30072 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
30074 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30075 # uniformly replaced by the line number. The first 'sed' inserts a
30076 # line-number line after each line using $LINENO; the second 'sed'
30077 # does the real work. The second script uses 'N' to pair each
30078 # line-number line with the line containing $LINENO, and appends
30079 # trailing '-' during substitution so that $LINENO is not a special
30080 # case at line end.
30081 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30082 # scripts with optimization help from Paolo Bonzini. Blame Lee
30083 # E. McMahon (1931-1989) for sed's syntax. :-)
30095 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30098 ' >$as_me.lineno
&&
30099 chmod +x
"$as_me.lineno" ||
30100 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30101 { (exit 1); exit 1; }; }
30103 # Don't try to exec as it changes $[0], causing all sort of problems
30104 # (the dirname of $[0] is not the place where we might find the
30105 # original and so on. Autoconf is especially sensitive to this).
30106 .
"./$as_me.lineno"
30107 # Exit status is that of the last command.
30112 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30118 ECHO_C
= ECHO_N
= ECHO_T
=
30119 case `echo -n x` in
30121 case `echo 'x\c'` in
30122 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30128 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30129 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30135 rm -f conf$$ conf$$.exe conf$$.
file
30136 if test -d conf$$.dir
; then
30137 rm -f conf$$.dir
/conf$$.
file
30140 mkdir conf$$.dir
2>/dev
/null
30142 if (echo >conf$$.
file) 2>/dev
/null
; then
30143 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30145 # ... but there are two gotchas:
30146 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30147 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30148 # In both cases, we have to default to `cp -p'.
30149 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30151 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30159 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30160 rmdir conf$$.dir
2>/dev
/null
30162 if mkdir
-p .
2>/dev
/null
; then
30165 test -d .
/-p && rmdir .
/-p
30169 if test -x / >/dev
/null
2>&1; then
30170 as_test_x
='test -x'
30172 if ls -dL / >/dev
/null
2>&1; then
30179 if test -d "$1"; then
30185 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30186 ???[sx]*):;;*)false;;esac;fi
30190 as_executable_p
=$as_test_x
30192 # Sed expression to map a string onto a valid CPP name.
30193 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30195 # Sed expression to map a string onto a valid variable name.
30196 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30201 # Save the log message, to keep $[0] and so on meaningful, and to
30202 # report actual input values of CONFIG_FILES etc. instead of their
30203 # values after options handling.
30205 This file was extended by bash $as_me 4.0-rc1, which was
30206 generated by GNU Autoconf 2.63. Invocation command line was
30208 CONFIG_FILES = $CONFIG_FILES
30209 CONFIG_HEADERS = $CONFIG_HEADERS
30210 CONFIG_LINKS = $CONFIG_LINKS
30211 CONFIG_COMMANDS = $CONFIG_COMMANDS
30214 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30219 case $ac_config_files in *"
30220 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30223 case $ac_config_headers in *"
30224 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30229 # Files that config.status was made for.
30230 config_files="$ac_config_files"
30231 config_headers="$ac_config_headers"
30232 config_commands="$ac_config_commands"
30236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30238 \`$as_me' instantiates files from templates according to the
30239 current configuration.
30241 Usage: $0 [OPTION]... [FILE]...
30243 -h, --help print this help, then exit
30244 -V, --version print version number and configuration settings, then exit
30245 -q, --quiet, --silent
30246 do not print progress messages
30247 -d, --debug don't remove temporary files
30248 --recheck update $as_me by reconfiguring in the same conditions
30249 --file=FILE[:TEMPLATE]
30250 instantiate the configuration file FILE
30251 --header=FILE[:TEMPLATE]
30252 instantiate the configuration header FILE
30254 Configuration files:
30257 Configuration headers:
30260 Configuration commands:
30263 Report bugs to <bug-autoconf@gnu.org>."
30266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30268 bash config.status 4.0-rc1
30269 configured by $0, generated by GNU Autoconf 2.63,
30270 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30272 Copyright (C) 2008 Free Software Foundation, Inc.
30273 This config.status script is free software; the Free Software Foundation
30274 gives unlimited permission to copy, distribute and modify it."
30279 test -n "\$AWK" || AWK=awk
30282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30283 # The default lists apply if the user does not specify any file.
30289 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30290 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
30301 # Handling of the options.
30302 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
30304 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30305 $as_echo "$ac_cs_version"; exit ;;
30306 --debug |
--debu |
--deb |
--de |
--d |
-d )
30308 --file |
--fil |
--fi |
--f )
30311 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30313 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
30314 ac_need_defaults
=false
;;
30315 --header |
--heade |
--head |
--hea )
30318 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30320 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
30321 ac_need_defaults
=false
;;
30323 # Conflict between --help and --header
30324 { $as_echo "$as_me: error: ambiguous option: $1
30325 Try \`$0 --help' for more information." >&2
30326 { (exit 1); exit 1; }; };;
30327 --help |
--hel |
-h )
30328 $as_echo "$ac_cs_usage"; exit ;;
30329 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30330 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30333 # This is an error.
30334 -*) { $as_echo "$as_me: error: unrecognized option: $1
30335 Try \`$0 --help' for more information." >&2
30336 { (exit 1); exit 1; }; } ;;
30338 *) ac_config_targets
="$ac_config_targets $1"
30339 ac_need_defaults
=false
;;
30345 ac_configure_extra_args
=
30347 if $ac_cs_silent; then
30349 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30354 if \$ac_cs_recheck; then
30355 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30357 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30358 CONFIG_SHELL='$SHELL'
30359 export CONFIG_SHELL
30364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30368 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30369 ## Running $as_me. ##
30375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30379 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30380 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
30382 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30383 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30384 LINGUAS="${LINGUAS-%UNSET%}"
30389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30391 # Handling of arguments.
30392 for ac_config_target
in $ac_config_targets
30394 case $ac_config_target in
30395 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
30396 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
30397 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
30398 "builtins/Makefile") CONFIG_FILES
="$CONFIG_FILES builtins/Makefile" ;;
30399 "lib/readline/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/readline/Makefile" ;;
30400 "lib/glob/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/glob/Makefile" ;;
30401 "lib/intl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/intl/Makefile" ;;
30402 "lib/malloc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/malloc/Makefile" ;;
30403 "lib/sh/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/sh/Makefile" ;;
30404 "lib/termcap/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/termcap/Makefile" ;;
30405 "lib/tilde/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/tilde/Makefile" ;;
30406 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
30407 "support/Makefile") CONFIG_FILES
="$CONFIG_FILES support/Makefile" ;;
30408 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
30409 "examples/loadables/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/loadables/Makefile" ;;
30410 "examples/loadables/perl/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
30411 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
30413 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30414 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30415 { (exit 1); exit 1; }; };;
30420 # If the user did not use the arguments to specify the items to instantiate,
30421 # then the envvar interface is used. Set only those that are not.
30422 # We use the long form for the default assignment because of an extremely
30423 # bizarre bug on SunOS 4.1.3.
30424 if $ac_need_defaults; then
30425 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30426 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30427 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
30430 # Have a temporary directory for convenience. Make it in the build tree
30431 # simply because there is no reason against having it here, and in addition,
30432 # creating and moving files from /tmp can sometimes cause problems.
30433 # Hook for its removal unless debugging.
30434 # Note that there is a small window in which the directory will not be cleaned:
30435 # after its creation but before its name has been assigned to `$tmp'.
30439 trap 'exit_status=$?
30440 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30442 trap '{ (exit 1); exit 1; }' 1 2 13 15
30444 # Create a (secure) tmp directory for tmp files.
30447 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30448 test -n "$tmp" && test -d "$tmp"
30451 tmp
=.
/conf$$
-$RANDOM
30452 (umask 077 && mkdir
"$tmp")
30455 $as_echo "$as_me: cannot create a temporary directory in ." >&2
30456 { (exit 1); exit 1; }
30459 # Set up the scripts for CONFIG_FILES section.
30460 # No need to generate them if there are no CONFIG_FILES.
30461 # This happens for instance with `./config.status config.h'.
30462 if test -n "$CONFIG_FILES"; then
30466 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30467 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30470 ac_cs_awk_cr
=$ac_cr
30473 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30478 echo "cat >conf$$subs.awk <<_ACEOF" &&
30479 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30481 } >conf$$subs.sh ||
30482 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
30483 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
30484 { (exit 1); exit 1; }; }
30485 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30487 for ac_last_try in false false false false false :; do
30488 . ./conf$$subs.sh ||
30489 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
30490 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
30491 { (exit 1); exit 1; }; }
30493 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30494 if test $ac_delim_n = $ac_delim_num; then
30496 elif $ac_last_try; then
30497 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
30498 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
30499 { (exit 1); exit 1; }; }
30501 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30504 rm -f conf$$subs.sh
30506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30507 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
30511 s/^/S["/; s
/!.
*/"]=/
30521 s/\(.\{148\}\).*/\1/
30523 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30528 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30535 s/\(.\{148\}\).*/\1/
30537 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30541 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30546 ' <conf$$subs.awk | sed '
30551 ' >>$CONFIG_STATUS || ac_write_fail=1
30552 rm -f conf$$subs.awk
30553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30555 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
30556 for (key in S) S_is_set[key] = 1
30562 nfields = split(line, field, "@
")
30564 len = length(field[1])
30565 for (i = 2; i < nfields; i++) {
30567 keylen = length(key)
30568 if (S_is_set[key]) {
30570 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30571 len += length(value) + length(field[++i])
30582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30583 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30584 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30587 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
30588 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
30589 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
30590 { (exit 1); exit 1; }; }
30593 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30594 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
30595 # trailing colons and then remove the whole line if VPATH becomes empty
30596 # (actually we leave an empty line to preserve line numbers).
30597 if test "x
$srcdir" = x.; then
30598 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30599 s/:*\$(srcdir):*/:/
30600 s/:*\${srcdir}:*/:/
30602 s/^\([^=]*=[ ]*\):*/\1/
30608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30609 fi # test -n "$CONFIG_FILES"
30611 # Set up the scripts for CONFIG_HEADERS section.
30612 # No need to generate them if there are no CONFIG_HEADERS.
30613 # This happens for instance with `./config.status Makefile'.
30614 if test -n "$CONFIG_HEADERS"; then
30615 cat >"$tmp/defines.
awk" <<\_ACAWK ||
30619 # Transform confdefs.h into an awk script `defines.awk', embedded as
30620 # here-document in config.status, that substitutes the proper values into
30621 # config.h.in to produce config.h.
30623 # Create a delimiter string that does not exist in confdefs.h, to ease
30624 # handling of long lines.
30626 for ac_last_try in false false :; do
30627 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
30628 if test -z "$ac_t"; then
30630 elif $ac_last_try; then
30631 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
30632 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
30633 { (exit 1); exit 1; }; }
30635 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30639 # For the awk script, D is an array of macro values keyed by name,
30640 # likewise P contains macro parameters if any. Preserve backslash
30641 # newline sequences.
30643 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30645 s/.\{148\}/&'"$ac_delim"'/g
30648 s/^[ ]*#[ ]*define[ ][ ]*/ /
30655 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30657 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30661 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30662 D["\
1"]=" \
3\\\\\\n
"\\/p
30664 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30669 s/.\{148\}/&'"$ac_delim"'/g
30674 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30677 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30679 ' <confdefs.h | sed '
30680 s/'"$ac_delim"'/"\\\
30681 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30684 for (key in D) D_is_set[key] = 1
30687 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30689 split(line, arg, " ")
30690 if (arg[1] == "#") {
30694 defundef
= substr
(arg
[1], 2)
30697 split(mac1
, mac2
, "(") #)
30699 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30700 if (D_is_set
[macro
]) {
30701 # Preserve the white space surrounding the "#".
30702 print prefix
"define", macro P
[macro
] D
[macro
]
30705 # Replace #undef with comments. This is necessary, for example,
30706 # in the case of _POSIX_SOURCE, which is predefined and required
30707 # on some systems where configure will not decide to define it.
30708 if (defundef
== "undef") {
30709 print
"/*", prefix defundef
, macro
, "*/"
30717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30718 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30719 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30720 { (exit 1); exit 1; }; }
30721 fi # test -n "$CONFIG_HEADERS"
30724 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30729 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30731 case $ac_mode$ac_tag in
30733 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30734 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30735 { (exit 1); exit 1; }; };;
30736 :[FH
]-) ac_tag
=-:-;;
30737 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30754 -) ac_f
="$tmp/stdin";;
30755 *) # Look for the file first in the build tree, then in the source tree
30756 # (if the path is not absolute). The absolute path cannot be DOS-style,
30757 # because $ac_f cannot contain `:'.
30761 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30763 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30764 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30765 { (exit 1); exit 1; }; };;
30767 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30768 ac_file_inputs
="$ac_file_inputs '$ac_f'"
30771 # Let's still pretend it is `configure' which instantiates (i.e., don't
30772 # use $as_me), people would be surprised to read:
30773 # /* config.h. Generated by config.status. */
30774 configure_input
='Generated from '`
30775 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30777 if test x
"$ac_file" != x-
; then
30778 configure_input
="$ac_file. $configure_input"
30779 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30780 $as_echo "$as_me: creating $ac_file" >&6;}
30782 # Neutralize special characters interpreted by sed in replacement strings.
30783 case $configure_input in #(
30784 *\
&* |
*\|
* |
*\\* )
30785 ac_sed_conf_input
=`$as_echo "$configure_input" |
30786 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30787 *) ac_sed_conf_input
=$configure_input;;
30791 *:-:* |
*:-) cat >"$tmp/stdin" \
30792 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30793 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30794 { (exit 1); exit 1; }; } ;;
30799 ac_dir
=`$as_dirname -- "$ac_file" ||
30800 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30801 X"$ac_file" : 'X\(//\)[^/]' \| \
30802 X"$ac_file" : 'X\(//\)$' \| \
30803 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30804 $as_echo X"$ac_file" |
30805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30809 /^X\(\/\/\)[^/].*/{
30824 -*) as_dir
=.
/$as_dir;;
30826 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
30830 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30831 *) as_qdir
=$as_dir;;
30833 as_dirs
="'$as_qdir' $as_dirs"
30834 as_dir
=`$as_dirname -- "$as_dir" ||
30835 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30836 X"$as_dir" : 'X\(//\)[^/]' \| \
30837 X"$as_dir" : 'X\(//\)$' \| \
30838 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30839 $as_echo X"$as_dir" |
30840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30844 /^X\(\/\/\)[^/].*/{
30857 test -d "$as_dir" && break
30859 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30860 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30861 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30862 { (exit 1); exit 1; }; }; }
30866 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30868 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30869 # A ".." for each directory in $ac_dir_suffix.
30870 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30871 case $ac_top_builddir_sub in
30872 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30873 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30876 ac_abs_top_builddir
=$ac_pwd
30877 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30878 # for backward compatibility:
30879 ac_top_builddir
=$ac_top_build_prefix
30882 .
) # We are building in place.
30884 ac_top_srcdir
=$ac_top_builddir_sub
30885 ac_abs_top_srcdir
=$ac_pwd ;;
30886 [\\/]* | ?
:[\\/]* ) # Absolute name.
30887 ac_srcdir
=$srcdir$ac_dir_suffix;
30888 ac_top_srcdir
=$srcdir
30889 ac_abs_top_srcdir
=$srcdir ;;
30890 *) # Relative name.
30891 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30892 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30893 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30895 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30905 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
30906 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
30910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30911 # If the template does not know about datarootdir, expand it.
30912 # FIXME: This hack should be removed a few years after 2.60.
30913 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30926 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30927 *datarootdir
*) ac_datarootdir_seen
=yes;;
30928 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30929 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30930 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30933 ac_datarootdir_hack='
30934 s&@datadir@&$datadir&g
30935 s&@docdir@&$docdir&g
30936 s&@infodir@&$infodir&g
30937 s&@localedir@&$localedir&g
30938 s&@mandir@&$mandir&g
30939 s&\\\${datarootdir}&$datarootdir&g' ;;
30943 # Neutralize VPATH when `$srcdir' = `.'.
30944 # Shell code in configure.ac might set extrasub.
30945 # FIXME: do we really want to maintain this feature?
30946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30947 ac_sed_extra="$ac_vpsub
30950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30952 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30953 s|@configure_input@|
$ac_sed_conf_input|
;t t
30954 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30955 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30956 s
&@srcdir@
&$ac_srcdir&;t t
30957 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30958 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30959 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30960 s
&@builddir@
&$ac_builddir&;t t
30961 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30962 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30963 s
&@INSTALL@
&$ac_INSTALL&;t t
30964 $ac_datarootdir_hack
30966 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
30967 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
30968 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
30969 { (exit 1); exit 1; }; }
30971 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30972 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30973 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30974 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30975 which seems to be undefined. Please make sure it is defined." >&5
30976 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30977 which seems to be undefined. Please make sure it is defined." >&2;}
30981 -) cat "$tmp/out" && rm -f "$tmp/out";;
30982 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30984 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30985 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30986 { (exit 1); exit 1; }; }
30992 if test x"$ac_file" != x-; then
30994 $as_echo "/* $configure_input */" \
30995 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30996 } >"$tmp/config.h" \
30997 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30998 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30999 { (exit 1); exit 1; }; }
31000 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31001 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31002 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31005 mv "$tmp/config.h" "$ac_file" \
31006 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31007 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31008 { (exit 1); exit 1; }; }
31011 $as_echo "/* $configure_input */" \
31012 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31013 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31014 $as_echo "$as_me: error: could not create -" >&2;}
31015 { (exit 1); exit 1; }; }
31019 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31020 $as_echo "$as_me: executing $ac_file commands" >&6;}
31025 case $ac_file$ac_mode in
31027 for ac_file in $CONFIG_FILES; do
31028 # Support "outfile[:infile[:infile...]]"
31030 *:*) ac_file=`echo "$ac_file"|sed 's
%:.
*%%'` ;;
31032 # PO directories have a Makefile.in generated from Makefile.in.in.
31033 case "$ac_file" in */Makefile.in)
31034 # Adjust a relative srcdir.
31035 ac_dir=`echo "$ac_file"|sed 's
%/[^
/][^
/]*$
%%'`
31036 ac_dir_suffix="/`echo "$ac_dir"|sed 's
%^\.
/%%'`"
31037 ac_dots=`echo "$ac_dir_suffix"|sed 's
%/[^
/]*%..
/%g
'`
31038 # In autoconf-2.13 it is called $ac_given_srcdir.
31039 # In autoconf-2.50 it is called $srcdir.
31040 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31041 case "$ac_given_srcdir" in
31042 .) top_srcdir=`echo $ac_dots|sed 's
%/$
%%'` ;;
31043 /*) top_srcdir="$ac_given_srcdir" ;;
31044 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31046 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31047 rm -f "$ac_dir/POTFILES"
31048 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31049 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31050 POMAKEFILEDEPS="POTFILES.in"
31051 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
31052 # on $ac_dir but don't depend on user-specified configuration
31054 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31055 # The LINGUAS file contains the set of available languages.
31056 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31057 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
31059 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31060 # Hide the ALL_LINGUAS assigment from automake.
31061 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31062 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
31064 # The set of available languages was given in configure.in.
31065 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31067 case "$ac_given_srcdir" in
31069 *) srcdirpre
='$(srcdir)/' ;;
31075 for lang
in $ALL_LINGUAS; do
31076 POFILES
="$POFILES $srcdirpre$lang.po"
31077 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
31078 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
31079 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
31081 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31082 # environment variable.
31084 if test -n "$ALL_LINGUAS"; then
31085 for presentlang
in $ALL_LINGUAS; do
31087 if test "%UNSET%" != "$LINGUAS"; then
31088 desiredlanguages
="$LINGUAS"
31090 desiredlanguages
="$ALL_LINGUAS"
31092 for desiredlang
in $desiredlanguages; do
31093 # Use the presentlang catalog if desiredlang is
31094 # a. equal to presentlang, or
31095 # b. a variant of presentlang (because in this case,
31096 # presentlang can be used as a fallback for messages
31097 # which are not translated in the desiredlang catalog).
31098 case "$desiredlang" in
31099 "$presentlang"*) useit
=yes;;
31102 if test $useit = yes; then
31103 INST_LINGUAS
="$INST_LINGUAS $presentlang"
31108 if test -n "$INST_LINGUAS"; then
31109 for lang
in $INST_LINGUAS; do
31110 CATALOGS
="$CATALOGS $lang.gmo"
31113 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
31114 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"
31115 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
31116 if test -f "$f"; then
31118 *.orig |
*.bak |
*~
) ;;
31119 *) cat "$f" >> "$ac_dir/Makefile" ;;
31128 # Makefile uses this timestamp file to record whether config.h is up to date.
31129 echo timestamp
> stamp-h
31136 { (exit 0); exit 0; }
31138 chmod +x
$CONFIG_STATUS
31139 ac_clean_files
=$ac_clean_files_save
31141 test $ac_write_fail = 0 ||
31142 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31143 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31144 { (exit 1); exit 1; }; }
31147 # configure is writing to config.log, and then calls config.status.
31148 # config.status does its own redirection, appending to config.log.
31149 # Unfortunately, on DOS this fails, as config.log is still kept open
31150 # by configure, so config.status won't be able to write to it; its
31151 # output is simply discarded. So we exec the FD to /dev/null,
31152 # effectively closing config.log, so it can be properly (re)opened and
31153 # appended to by config.status. When coming back to configure, we
31154 # need to make the FD available again.
31155 if test "$no_create" != yes; then
31157 ac_config_status_args
=
31158 test "$silent" = yes &&
31159 ac_config_status_args
="$ac_config_status_args --quiet"
31161 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31163 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31164 # would make configure fail if this is the last instruction.
31165 $ac_cs_success ||
{ (exit 1); exit 1; }
31167 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
31168 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31169 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}