2 # From configure.ac for Bash 4.4, version 4.082.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for bash 4.4-release.
6 # Report bugs to <bug-bash@gnu.org>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE
=1; export DUALCASE
# for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print
-rn --'
50 elif (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 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x
; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var
in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\
${$as_var+set} = xset \
123 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
136 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
141 _as_can_reexec
=no
; export _as_can_reexec
;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
148 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
150 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec
=; unset _as_can_reexec
;}
163 if test "x$CONFIG_SHELL" = x
; then
164 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
172 case \`(set -o) 2>/dev/null\` in #(
180 as_required
="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
198 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1"
203 if (eval "$as_required") 2>/dev
/null
; then :
208 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
213 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
216 test -z "$as_dir" && as_dir
=.
220 for as_base
in sh bash ksh sh5
; do
221 # Try only shells that exist, to save several forks.
222 as_shell
=$as_dir/$as_base
223 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
224 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
225 CONFIG_SHELL
=$as_shell as_have_required
=yes
226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
234 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
235 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
236 CONFIG_SHELL
=$SHELL as_have_required
=yes
241 if test "x$CONFIG_SHELL" != x
; then :
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
249 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
251 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed `exec'.
259 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
263 if test x
$as_have_required = xno
; then :
264 $as_echo "$0: This script requires a shell more modern than all"
265 $as_echo "$0: the shells that I found on your system."
266 if test x
${ZSH_VERSION+set} = xset
; then
267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
270 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-bash@gnu.org
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
280 SHELL
=${CONFIG_SHELL-/bin/sh}
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE
= GREP_OPTIONS
=
284 unset CLICOLOR_FORCE GREP_OPTIONS
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
291 # Portably unset VAR.
294 { eval $1=; unset $1;}
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 # Create "$as_dir" as a directory, including parents if necessary.
323 -*) as_dir
=.
/$as_dir;;
325 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
329 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
332 as_dirs
="'$as_qdir' $as_dirs"
333 as_dir
=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
356 test -d "$as_dir" && break
358 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
359 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p
()
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
378 eval 'as_fn_append ()
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
402 as_val
=`expr "$@" || test $? -eq 1`
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
414 as_status
=$1; test $as_status -eq 0 && as_status
=1
416 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit
$as_status
423 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
430 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
436 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
442 as_me
=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
461 # Avoid depending upon Character Ranges.
462 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits
='0123456789'
466 as_cr_alnum
=$as_cr_Letters$as_cr_digits
469 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
470 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
489 chmod +x
"$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec
=no
; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
500 # Exit status is that of the last command.
504 ECHO_C
= ECHO_N
= ECHO_T
=
505 case `echo -n x` in #(((((
507 case `echo 'xy\c'` in
508 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
517 rm -f conf$$ conf$$.exe conf$$.
file
518 if test -d conf$$.dir
; then
519 rm -f conf$$.dir
/conf$$.
file
522 mkdir conf$$.dir
2>/dev
/null
524 if (echo >conf$$.
file) 2>/dev
/null
; then
525 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
533 elif ln conf$$.
file conf$$
2>/dev
/null
; then
541 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
542 rmdir conf$$.dir
2>/dev
/null
544 if mkdir
-p .
2>/dev
/null
; then
545 as_mkdir_p
='mkdir -p "$as_dir"'
547 test -d .
/-p && rmdir .
/-p
552 as_executable_p
=as_fn_executable_p
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
561 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
572 ac_default_prefix
=/usr
/local
574 ac_config_libobj_dir
=.
581 # Identity of this package.
583 PACKAGE_TARNAME
='bash'
584 PACKAGE_VERSION
='4.4-release'
585 PACKAGE_STRING
='bash 4.4-release'
586 PACKAGE_BUGREPORT
='bug-bash@gnu.org'
589 ac_unique_file
="shell.h"
590 # Factoring default headers for most tests.
591 ac_includes_default
="\
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
603 # ifdef HAVE_STDLIB_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
628 ac_subst_vars
='LTLIBOBJS
654 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
655 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
656 TIME_H_DEFINES_STRUCT_TIMESPEC
665 INTL_LIBTOOL_SUFFIX_PREFIX
672 BUILD_INCLUDED_LIBINTL
773 program_transform_name
786 enable_option_checking
791 with_installed_readline
792 enable_minimal_config
794 enable_arith_for_command
795 enable_array_variables
797 enable_brace_expansion
798 enable_casemod_attributes
799 enable_casemod_expansions
800 enable_command_timing
805 enable_direxpand_default
806 enable_directory_stack
807 enable_disabled_builtins
808 enable_dparen_arithmetic
810 enable_extended_glob_default
811 enable_function_import
812 enable_glob_asciiranges_default
817 enable_net_redirections
818 enable_process_substitution
820 enable_prompt_string_decoding
824 enable_separate_helpfiles
825 enable_single_help_strings
826 enable_strict_posix_default
827 enable_usg_echo_default
828 enable_xpg_echo_default
837 with_included_gettext
840 ac_precious_vars
='build_alias
858 # Initialize some variables set by options.
860 ac_init_version
=false
861 ac_unrecognized_opts
=
863 # The variables have the same names as the options, with
864 # dashes changed to underlines.
872 program_transform_name
=s
,x
,x
,
880 # Installation directory options.
881 # These are left unexpanded so users can "make install exec_prefix=/foo"
882 # and all the variables that are supposed to be based on exec_prefix
883 # by default will actually change.
884 # Use braces instead of parens because sh, perl, etc. also accept them.
885 # (The list follows the same order as the GNU Coding Standards.)
886 bindir
='${exec_prefix}/bin'
887 sbindir
='${exec_prefix}/sbin'
888 libexecdir
='${exec_prefix}/libexec'
889 datarootdir
='${prefix}/share'
890 datadir
='${datarootdir}'
891 sysconfdir
='${prefix}/etc'
892 sharedstatedir
='${prefix}/com'
893 localstatedir
='${prefix}/var'
894 includedir
='${prefix}/include'
895 oldincludedir
='/usr/include'
896 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
897 infodir
='${datarootdir}/info'
902 libdir
='${exec_prefix}/lib'
903 localedir
='${datarootdir}/locale'
904 mandir
='${datarootdir}/man'
910 # If the previous option needs an argument, assign it.
911 if test -n "$ac_prev"; then
912 eval $ac_prev=\
$ac_option
918 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923 # Accept the important Cygnus configure options, so we can diagnose typos.
925 case $ac_dashdash$ac_option in
929 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
931 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
934 -build |
--build |
--buil |
--bui |
--bu)
935 ac_prev
=build_alias
;;
936 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
937 build_alias
=$ac_optarg ;;
939 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
940 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
941 ac_prev
=cache_file
;;
942 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
943 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
944 cache_file
=$ac_optarg ;;
947 cache_file
=config.cache
;;
949 -datadir |
--datadir |
--datadi |
--datad)
951 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
952 datadir
=$ac_optarg ;;
954 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
955 |
--dataroo |
--dataro |
--datar)
956 ac_prev
=datarootdir
;;
957 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
958 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
959 datarootdir
=$ac_optarg ;;
961 -disable-* |
--disable-*)
962 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
965 as_fn_error $?
"invalid feature name: $ac_useropt"
966 ac_useropt_orig
=$ac_useropt
967 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
972 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
973 ac_unrecognized_sep
=', ';;
975 eval enable_
$ac_useropt=no
;;
977 -docdir |
--docdir |
--docdi |
--doc |
--do)
979 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
982 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
984 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
987 -enable-* |
--enable-*)
988 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
991 as_fn_error $?
"invalid feature name: $ac_useropt"
992 ac_useropt_orig
=$ac_useropt
993 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
998 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
999 ac_unrecognized_sep
=', ';;
1001 eval enable_
$ac_useropt=\
$ac_optarg ;;
1003 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1004 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1005 |
--exec |
--exe |
--ex)
1006 ac_prev
=exec_prefix
;;
1007 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1008 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1009 |
--exec=* |
--exe=* |
--ex=*)
1010 exec_prefix
=$ac_optarg ;;
1012 -gas |
--gas |
--ga |
--g)
1013 # Obsolete; use --with-gas.
1016 -help |
--help |
--hel |
--he |
-h)
1017 ac_init_help
=long
;;
1018 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1019 ac_init_help
=recursive
;;
1020 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1021 ac_init_help
=short
;;
1023 -host |
--host |
--hos |
--ho)
1024 ac_prev
=host_alias
;;
1025 -host=* |
--host=* |
--hos=* |
--ho=*)
1026 host_alias
=$ac_optarg ;;
1028 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1030 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1032 htmldir
=$ac_optarg ;;
1034 -includedir |
--includedir |
--includedi |
--included |
--include \
1035 |
--includ |
--inclu |
--incl |
--inc)
1036 ac_prev
=includedir
;;
1037 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1038 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1039 includedir
=$ac_optarg ;;
1041 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1043 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1044 infodir
=$ac_optarg ;;
1046 -libdir |
--libdir |
--libdi |
--libd)
1048 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1049 libdir
=$ac_optarg ;;
1051 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1052 |
--libexe |
--libex |
--libe)
1053 ac_prev
=libexecdir
;;
1054 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1055 |
--libexe=* |
--libex=* |
--libe=*)
1056 libexecdir
=$ac_optarg ;;
1058 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1059 ac_prev
=localedir
;;
1060 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1061 localedir
=$ac_optarg ;;
1063 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1064 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1065 ac_prev
=localstatedir
;;
1066 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1067 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1068 localstatedir
=$ac_optarg ;;
1070 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1072 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1073 mandir
=$ac_optarg ;;
1075 -nfp |
--nfp |
--nf)
1076 # Obsolete; use --without-fp.
1079 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1080 |
--no-cr |
--no-c |
-n)
1083 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1084 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1087 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1088 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1089 |
--oldin |
--oldi |
--old |
--ol |
--o)
1090 ac_prev
=oldincludedir
;;
1091 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1092 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1093 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1094 oldincludedir
=$ac_optarg ;;
1096 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1098 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1099 prefix
=$ac_optarg ;;
1101 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1102 |
--program-pre |
--program-pr |
--program-p)
1103 ac_prev
=program_prefix
;;
1104 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1105 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1106 program_prefix
=$ac_optarg ;;
1108 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1109 |
--program-suf |
--program-su |
--program-s)
1110 ac_prev
=program_suffix
;;
1111 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1112 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1113 program_suffix
=$ac_optarg ;;
1115 -program-transform-name |
--program-transform-name \
1116 |
--program-transform-nam |
--program-transform-na \
1117 |
--program-transform-n |
--program-transform- \
1118 |
--program-transform |
--program-transfor \
1119 |
--program-transfo |
--program-transf \
1120 |
--program-trans |
--program-tran \
1121 |
--progr-tra |
--program-tr |
--program-t)
1122 ac_prev
=program_transform_name
;;
1123 -program-transform-name=* |
--program-transform-name=* \
1124 |
--program-transform-nam=* |
--program-transform-na=* \
1125 |
--program-transform-n=* |
--program-transform-=* \
1126 |
--program-transform=* |
--program-transfor=* \
1127 |
--program-transfo=* |
--program-transf=* \
1128 |
--program-trans=* |
--program-tran=* \
1129 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1130 program_transform_name
=$ac_optarg ;;
1132 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1134 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1135 pdfdir
=$ac_optarg ;;
1137 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1139 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1142 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1143 |
-silent |
--silent |
--silen |
--sile |
--sil)
1146 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1148 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1150 sbindir
=$ac_optarg ;;
1152 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1153 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1154 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1156 ac_prev
=sharedstatedir
;;
1157 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1158 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1159 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1161 sharedstatedir
=$ac_optarg ;;
1163 -site |
--site |
--sit)
1165 -site=* |
--site=* |
--sit=*)
1168 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1170 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1171 srcdir
=$ac_optarg ;;
1173 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1174 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1175 ac_prev
=sysconfdir
;;
1176 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1177 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1178 sysconfdir
=$ac_optarg ;;
1180 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1181 ac_prev
=target_alias
;;
1182 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1183 target_alias
=$ac_optarg ;;
1185 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1188 -version |
--version |
--versio |
--versi |
--vers |
-V)
1189 ac_init_version
=: ;;
1192 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1195 as_fn_error $?
"invalid package name: $ac_useropt"
1196 ac_useropt_orig
=$ac_useropt
1197 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1202 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203 ac_unrecognized_sep
=', ';;
1205 eval with_
$ac_useropt=\
$ac_optarg ;;
1207 -without-* |
--without-*)
1208 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1211 as_fn_error $?
"invalid package name: $ac_useropt"
1212 ac_useropt_orig
=$ac_useropt
1213 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1218 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1219 ac_unrecognized_sep
=', ';;
1221 eval with_
$ac_useropt=no
;;
1224 # Obsolete; use --with-x.
1227 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1228 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1229 ac_prev
=x_includes
;;
1230 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1231 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1232 x_includes
=$ac_optarg ;;
1234 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1235 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1236 ac_prev
=x_libraries
;;
1237 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1238 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1239 x_libraries
=$ac_optarg ;;
1241 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1242 Try \`$0 --help' for more information"
1246 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1247 # Reject names that are not valid shell variable names.
1248 case $ac_envvar in #(
1249 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1250 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1252 eval $ac_envvar=\
$ac_optarg
1253 export $ac_envvar ;;
1256 # FIXME: should be removed in autoconf 3.0.
1257 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1259 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1260 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1266 if test -n "$ac_prev"; then
1267 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1268 as_fn_error $?
"missing argument to $ac_option"
1271 if test -n "$ac_unrecognized_opts"; then
1272 case $enable_option_checking in
1274 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1275 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1279 # Check all directory arguments for consistency.
1280 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
1285 eval ac_val
=\$
$ac_var
1286 # Remove trailing slashes.
1289 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1290 eval $ac_var=\
$ac_val;;
1292 # Be sure to have absolute directory names.
1294 [\\/$
]* | ?
:[\\/]* ) continue;;
1295 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1297 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1305 target
=$target_alias
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x
; then
1309 if test "x$build_alias" = x
; then
1310 cross_compiling
=maybe
1311 elif test "x$build_alias" != "x$host_alias"; then
1317 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1319 test "$silent" = yes && exec 6>/dev
/null
1322 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di
=`ls -di .` &&
1324 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1325 as_fn_error $?
"working directory cannot be determined"
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 as_fn_error $?
"pwd does not report name of working directory"
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted
=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir
=`$as_dirname -- "$as_myself" ||
1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339 $as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1362 ac_srcdir_defaulted
=no
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1366 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1368 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1380 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 for ac_var
in $ac_precious_vars; do
1383 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1385 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1390 # Report the --help message.
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1396 \`configure' configures bash 4.4-release to adapt to many kinds of systems.
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1403 Defaults for the options are specified in brackets.
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking ...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1427 For better control, use the options below.
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/bash]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1454 --build=BUILD configure
for building on BUILD
[guessed
]
1455 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1459 if test -n "$ac_init_help"; then
1460 case $ac_init_help in
1461 short | recursive
) echo "Configuration of bash 4.4-release:";;
1466 --disable-option-checking ignore unrecognized
--enable/--with options
1467 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1468 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1469 --enable-minimal-config a minimal sh-like configuration
1470 --enable-alias enable shell aliases
1471 --enable-arith-for-command
1472 enable arithmetic
for command
1473 --enable-array-variables
1474 include shell array variables
1475 --enable-bang-history turn on csh-style
history substitution
1476 --enable-brace-expansion
1477 include brace expansion
1478 --enable-casemod-attributes
1479 include case-modifying variable attributes
1480 --enable-casemod-expansions
1481 include case-modifying word expansions
1482 --enable-command-timing enable the
time reserved word and
command timing
1483 --enable-cond-command enable the conditional
command
1484 --enable-cond-regexp enable extended regular expression matching
in
1485 conditional commands
1486 --enable-coprocesses enable coprocess support and the coproc reserved
1488 --enable-debugger enable support
for bash debugger
1489 --enable-direxpand-default
1490 enable the direxpand shell option by default
1491 --enable-directory-stack
1492 enable builtins pushd
/popd
/dirs
1493 --enable-disabled-builtins
1494 allow disabled builtins to still be invoked
1495 --enable-dparen-arithmetic
1496 include
((...
)) command
1497 --enable-extended-glob include ksh-style extended pattern matching
1498 --enable-extended-glob-default
1499 force extended pattern matching to be enabled by
1501 --enable-function-import
1502 allow bash to import exported
function definitions
1504 --enable-glob-asciiranges-default
1505 force bracket range expressions
in pattern matching
1506 to use the C locale by default
1507 --enable-help-builtin include the
help builtin
1508 --enable-history turn on
command history
1509 --enable-job-control enable job control features
1510 --enable-multibyte enable multibyte characters
if OS supports them
1511 --enable-net-redirections
1512 enable /dev
/tcp
/host
/port redirection
1513 --enable-process-substitution
1514 enable process substitution
1515 --enable-progcomp enable programmable completion and the complete
1517 --enable-prompt-string-decoding
1518 turn on escape character decoding
in prompts
1519 --enable-readline turn on
command line editing
1520 --enable-restricted enable a restricted shell
1521 --enable-select include
select command
1522 --enable-separate-helpfiles
1523 use external files
for help builtin documentation
1524 --enable-single-help-strings
1525 store
help documentation as a single string to ease
1527 --enable-strict-posix-default
1528 configure bash to be posix-conformant by default
1529 --enable-usg-echo-default
1530 a synonym
for --enable-xpg-echo-default
1531 --enable-xpg-echo-default
1532 make the
echo builtin expand escape sequences by
1534 --enable-mem-scramble scramble memory on calls to malloc and free
1535 --enable-profiling allow profiling with gprof
1536 --enable-static-link link bash statically
, for use as a root shell
1537 --disable-largefile omit support
for large files
1538 --disable-nls do not use Native Language Support
1539 --disable-rpath do not hardcode runtime library paths
1542 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1543 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1544 --with-afs if you are running AFS
1545 --with-bash-malloc use the Bash version of malloc
1546 --with-curses use the curses library instead of the termcap
1548 --with-gnu-malloc synonym
for --with-bash-malloc
1549 --with-installed-readline
1550 use a version of the readline library that is
1552 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1553 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1554 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1555 --with-included-gettext use the GNU gettext library included here
1556 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1557 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1559 Some influential environment variables
:
1561 location of bash debugger initialization
file
1563 C compiler used when compiling binaries used only
at build
time
1565 Compliation options
(CFLAGS
) used when compiling binaries used
1568 Linker options
(LDFLAGS
) used when compiling binaries used only
1571 C preprocessor options
(CPPFLAGS
) used when compiling binaries
1572 used only
at build
time
1573 CC C compiler
command
1574 CFLAGS C compiler flags
1575 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1576 nonstandard directory
<lib dir
>
1577 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1578 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1579 you have headers
in a nonstandard directory
<include dir
>
1581 YACC The
`Yet Another Compiler Compiler' implementation to use.
1582 Defaults to the first program found out of: `bison
-y', `byacc',
1584 YFLAGS The list of arguments that will be passed by default to $YACC.
1585 This script will default YFLAGS to the empty string to avoid a
1586 default value of `-d' given by some make applications.
1588 Use these variables to override the choices made by `configure' or to
help
1589 it to
find libraries and programs with nonstandard names
/locations.
1591 Report bugs to
<bug-bash@gnu.org
>.
1596 if test "$ac_init_help" = "recursive"; then
1597 # If there are subdirs, report their specific --help.
1598 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1599 test -d "$ac_dir" ||
1600 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1605 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1607 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1608 # A ".." for each directory in $ac_dir_suffix.
1609 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1610 case $ac_top_builddir_sub in
1611 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1612 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1615 ac_abs_top_builddir
=$ac_pwd
1616 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1617 # for backward compatibility:
1618 ac_top_builddir
=$ac_top_build_prefix
1621 .
) # We are building in place.
1623 ac_top_srcdir
=$ac_top_builddir_sub
1624 ac_abs_top_srcdir
=$ac_pwd ;;
1625 [\\/]* | ?
:[\\/]* ) # Absolute name.
1626 ac_srcdir
=$srcdir$ac_dir_suffix;
1627 ac_top_srcdir
=$srcdir
1628 ac_abs_top_srcdir
=$srcdir ;;
1630 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1632 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1634 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1636 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1637 # Check for guested configure.
1638 if test -f "$ac_srcdir/configure.gnu"; then
1640 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641 elif test -f "$ac_srcdir/configure"; then
1643 $SHELL "$ac_srcdir/configure" --help=recursive
1645 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1651 test -n "$ac_init_help" && exit $ac_status
1652 if $ac_init_version; then
1654 bash configure
4.4-release
1655 generated by GNU Autoconf
2.69
1657 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1658 This configure
script is free software
; the Free Software Foundation
1659 gives unlimited permission to copy
, distribute and modify it.
1664 ## ------------------------ ##
1665 ## Autoconf initialization. ##
1666 ## ------------------------ ##
1668 # ac_fn_c_try_compile LINENO
1669 # --------------------------
1670 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_c_try_compile
()
1673 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1674 rm -f conftest.
$ac_objext
1675 if { { ac_try
="$ac_compile"
1677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_compile") 2>conftest.err
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && {
1691 test -z "$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 } && test -s conftest.$ac_objext; then :
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1704 } # ac_fn_c_try_compile
1706 # ac_fn_c_try_link LINENO
1707 # -----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded.
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 rm -f conftest.$ac_objext conftest$ac_exeext
1713 if { { ac_try="$ac_link"
1715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1716 *) ac_try_echo
=$ac_try;;
1718 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>conftest.err
1722 if test -s conftest.err
; then
1723 grep -v '^ *+' conftest.err
>conftest.er1
1724 cat conftest.er1
>&5
1725 mv -f conftest.er1 conftest.err
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && {
1729 test -z "$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 } && test -s conftest
$ac_exeext && {
1732 test "$cross_compiling" = yes ||
1733 test -x conftest
$ac_exeext
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.
$ac_ext >&5
1742 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1743 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1744 # interfere with the next link command; also delete a directory that is
1745 # left behind by Apple's compiler. We do this before executing the actions.
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status
$ac_retval
1750 } # ac_fn_c_try_link
1752 # ac_fn_c_try_cpp LINENO
1753 # ----------------------
1754 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1757 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1758 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } > conftest.i && {
1774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1775 test ! -s conftest.err
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status $ac_retval
1789 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1790 # -------------------------------------------------------
1791 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1792 # the include files in INCLUDES and setting the cache variable VAR
1794 ac_fn_c_check_header_mongrel ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if eval \${$3+:} false; then :
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 $as_echo_n "checking for $2... " >&6; }
1800 if eval \${$3+:} false; then :
1801 $as_echo_n "(cached) " >&6
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1807 # Is the header compilable?
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1809 $as_echo_n "checking $2 usability... " >&6; }
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1815 if ac_fn_c_try_compile "$LINENO"; then :
1816 ac_header_compiler=yes
1818 ac_header_compiler=no
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1822 $as_echo "$ac_header_compiler" >&6; }
1824 # Is the header present?
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1826 $as_echo_n "checking $2 presence... " >&6; }
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1831 if ac_fn_c_try_cpp "$LINENO"; then :
1832 ac_header_preproc=yes
1834 ac_header_preproc=no
1836 rm -f conftest.err conftest.i conftest.$ac_ext
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1838 $as_echo "$ac_header_preproc" >&6; }
1840 # So? What about this header?
1841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1844 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1850 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1852 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1854 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1856 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859 ( $as_echo "## ------------------------------- ##
1860 ## Report this to bug-bash@gnu.org ##
1861 ## ------------------------------- ##"
1862 ) | sed "s/^/$as_me: WARNING: /" >&2
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866 $as_echo_n "checking for $2... " >&6; }
1867 if eval \${$3+:} false; then :
1868 $as_echo_n "(cached) " >&6
1870 eval "$3=\$ac_header_compiler"
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 } # ac_fn_c_check_header_mongrel
1880 # ac_fn_c_try_run LINENO
1881 # ----------------------
1882 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1883 # that executables *can* be run.
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if { { ac_try="$ac_link"
1889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1890 *) ac_try_echo
=$ac_try;;
1892 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_link") 2>&5
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1898 { { case "(($ac_try" in
1899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_try") 2>&5
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; }; }; then :
1910 $as_echo "$as_me: program exited with status $ac_status" >&5
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1914 ac_retval=$ac_status
1916 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918 as_fn_set_status $ac_retval
1922 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1923 # -------------------------------------------------------
1924 # Tests whether HEADER exists and can be compiled using the include files in
1925 # INCLUDES, setting the cache variable VAR accordingly.
1926 ac_fn_c_check_header_compile ()
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 $as_echo_n "checking for $2... " >&6; }
1931 if eval \${$3+:} false; then :
1932 $as_echo_n "(cached) " >&6
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1939 if ac_fn_c_try_compile "$LINENO"; then :
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 } # ac_fn_c_check_header_compile
1953 # ac_fn_c_check_func LINENO FUNC VAR
1954 # ----------------------------------
1955 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1956 ac_fn_c_check_func ()
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if eval \${$3+:} false; then :
1962 $as_echo_n "(cached) " >&6
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1966 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1968 #define $2 innocuous_$2
1970 /* System header to define __stub macros and hopefully few prototypes,
1971 which can conflict with char $2 (); below.
1972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1973 <limits.h> exists even on freestanding compilers. */
1976 # include <limits.h>
1978 # include <assert.h>
1983 /* Override any GCC internal prototype to avoid an error.
1984 Use char because int might match the return type of a GCC
1985 builtin and then its argument prototype would still apply. */
1990 /* The GNU C library defines this for functions which it implements
1991 to always fail with ENOSYS. Some functions are actually named
1992 something starting with __ and the normal name is an alias. */
1993 #if defined __stub_$2 || defined __stub___$2
2005 if ac_fn_c_try_link "$LINENO"; then :
2010 rm -f core conftest.err conftest.$ac_objext \
2011 conftest$ac_exeext conftest.$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015 $as_echo "$ac_res" >&6; }
2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 } # ac_fn_c_check_func
2020 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2021 # -------------------------------------------
2022 # Tests whether TYPE exists after having included INCLUDES, setting cache
2023 # variable VAR accordingly.
2024 ac_fn_c_check_type ()
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028 $as_echo_n "checking for $2... " >&6; }
2029 if eval \${$3+:} false; then :
2030 $as_echo_n "(cached) " >&6
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2045 if ac_fn_c_try_compile "$LINENO"; then :
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2058 if ac_fn_c_try_compile "$LINENO"; then :
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069 $as_echo "$ac_res" >&6; }
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 } # ac_fn_c_check_type
2074 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2075 # ---------------------------------------------
2076 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2078 ac_fn_c_check_decl ()
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2082 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2084 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2085 if eval \${$3+:} false; then :
2086 $as_echo_n "(cached) " >&6
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2094 #ifndef $as_decl_name
2096 (void) $as_decl_use;
2098 (void) $as_decl_name;
2106 if ac_fn_c_try_compile "$LINENO"; then :
2111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115 $as_echo "$ac_res" >&6; }
2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118 } # ac_fn_c_check_decl
2120 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2121 # --------------------------------------------
2122 # Tries to find the compile-time value of EXPR in a program that includes
2123 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2125 ac_fn_c_compute_int ()
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 if test "$cross_compiling" = yes; then
2129 # Depending upon the size, compute the lo and hi bounds.
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2136 static int test_array [1 - 2 * !(($2) >= 0)];
2138 return test_array [0];
2144 if ac_fn_c_try_compile "$LINENO"; then :
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2153 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2155 return test_array [0];
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162 ac_hi=$ac_mid; break
2164 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2165 if test $ac_lo -le $ac_mid; then
2169 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2180 static int test_array [1 - 2 * !(($2) < 0)];
2182 return test_array [0];
2188 if ac_fn_c_try_compile "$LINENO"; then :
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2197 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2199 return test_array [0];
2205 if ac_fn_c_try_compile "$LINENO"; then :
2206 ac_lo=$ac_mid; break
2208 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2209 if test $ac_mid -le $ac_hi; then
2213 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 # Binary search between lo and hi bounds.
2224 while test "x$ac_lo" != "x$ac_hi"; do
2225 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2232 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2234 return test_array [0];
2240 if ac_fn_c_try_compile "$LINENO"; then :
2243 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2255 static long int longval () { return $2; }
2256 static unsigned long int ulongval () { return $2; }
2263 FILE *f = fopen ("conftest.val", "w");
2268 long int i = longval ();
2271 fprintf (f, "%ld", i);
2275 unsigned long int i = ulongval ();
2278 fprintf (f, "%lu", i);
2280 /* Do not output a trailing newline, as this causes \r\n confusion
2281 on some platforms. */
2282 return ferror (f) || fclose (f) != 0;
2288 if ac_fn_c_try_run "$LINENO"; then :
2289 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2294 conftest.$ac_objext conftest.beam conftest.$ac_ext
2298 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2299 as_fn_set_status $ac_retval
2301 } # ac_fn_c_compute_int
2303 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2304 # ----------------------------------------------------
2305 # Tries to find if the field MEMBER exists in type AGGR, after including
2306 # INCLUDES, setting cache variable VAR accordingly.
2307 ac_fn_c_check_member ()
2309 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2311 $as_echo_n "checking for $2.$3... " >&6; }
2312 if eval \${$4+:} false; then :
2313 $as_echo_n "(cached) " >&6
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2328 if ac_fn_c_try_compile "$LINENO"; then :
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332 /* end confdefs.h. */
2338 if (sizeof ac_aggr.$3)
2344 if ac_fn_c_try_compile "$LINENO"; then :
2349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2355 $as_echo "$ac_res" >&6; }
2356 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2358 } # ac_fn_c_check_member
2359 cat >config.log <<_ACEOF
2360 This file contains any messages produced by compilers while
2361 running configure, to aid debugging if configure makes a mistake.
2363 It was created by bash $as_me 4.4-release, which was
2364 generated by GNU Autoconf 2.69. Invocation command line was
2376 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2377 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2378 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2379 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2380 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2382 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2383 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2385 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2386 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2387 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2388 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2389 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2390 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2391 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 test -z "$as_dir" && as_dir=.
2400 $as_echo "PATH: $as_dir"
2416 # Keep a trace of the command line.
2417 # Strip out --no-create and --no-recursion so they do not pile up.
2418 # Strip out --silent because we don't want to record it for future runs.
2419 # Also quote any args containing shell meta-characters.
2420 # Make two passes to allow for proper duplicate-argument suppression.
2424 ac_must_keep_next=false
2430 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2432 | -silent | --silent | --silen | --sile | --sil)
2435 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2438 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2440 as_fn_append ac_configure_args1 " '$ac_arg'"
2441 if test $ac_must_keep_next = true; then
2442 ac_must_keep_next=false # Got value, back to normal.
2445 *=* | --config-cache | -C | -disable-* | --disable-* \
2446 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2447 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2448 | -with-* | --with-* | -without-* | --without-* | --x)
2449 case "$ac_configure_args0 " in
2450 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2453 -* ) ac_must_keep_next=true ;;
2456 as_fn_append ac_configure_args " '$ac_arg'"
2461 { ac_configure_args0=; unset ac_configure_args0;}
2462 { ac_configure_args1=; unset ac_configure_args1;}
2464 # When interrupted or exit'd, cleanup temporary files, and complete
2465 # config.log. We remove comments because anyway the quotes in there
2466 # would cause problems or look ugly.
2467 # WARNING: Use '\'' to represent an apostrophe within the trap.
2468 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2469 trap 'exit_status=$?
2470 # Save into config.log some information that might help in debugging.
2474 $as_echo "## ---------------- ##
2475 ## Cache variables. ##
2476 ## ---------------- ##"
2478 # The following way of writing the cache mishandles newlines in values,
2480 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2481 eval ac_val=\$$ac_var
2485 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2486 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2489 _ | IFS | as_nl) ;; #(
2490 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2491 *) { eval $ac_var=; unset $ac_var;} ;;
2496 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2497 *${as_nl}ac_space=\ *)
2499 "s/'\''/'\''\\\\'\'''\''/g;
2500 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2503 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2510 $as_echo "## ----------------- ##
2511 ## Output variables. ##
2512 ## ----------------- ##"
2514 for ac_var in $ac_subst_vars
2516 eval ac_val=\$$ac_var
2518 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2520 $as_echo "$ac_var='\''$ac_val'\''"
2524 if test -n "$ac_subst_files"; then
2525 $as_echo "## ------------------- ##
2526 ## File substitutions. ##
2527 ## ------------------- ##"
2529 for ac_var in $ac_subst_files
2531 eval ac_val=\$$ac_var
2533 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2535 $as_echo "$ac_var='\''$ac_val'\''"
2540 if test -s confdefs.h; then
2541 $as_echo "## ----------- ##
2548 test "$ac_signal" != 0 &&
2549 $as_echo "$as_me: caught signal $ac_signal"
2550 $as_echo "$as_me: exit $exit_status"
2552 rm -f core *.core core.conftest.* &&
2553 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2556 for ac_signal in 1 2 13 15; do
2557 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2561 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2562 rm -f -r conftest* confdefs.h
2564 $as_echo "/* confdefs.h */" > confdefs.h
2566 # Predefined preprocessor variables.
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_NAME "$PACKAGE_NAME"
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_STRING "$PACKAGE_STRING"
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_URL "$PACKAGE_URL"
2593 # Let the site file select an alternate cache file if it wants to.
2594 # Prefer an explicitly selected file to automatically selected ones.
2597 if test -n "$CONFIG_SITE"; then
2598 # We do not want a PATH search for config.site.
2599 case $CONFIG_SITE in #((
2600 -*) ac_site_file1=./$CONFIG_SITE;;
2601 */*) ac_site_file1=$CONFIG_SITE;;
2602 *) ac_site_file1=./$CONFIG_SITE;;
2604 elif test "x$prefix" != xNONE; then
2605 ac_site_file1=$prefix/share/config.site
2606 ac_site_file2=$prefix/etc/config.site
2608 ac_site_file1=$ac_default_prefix/share/config.site
2609 ac_site_file2=$ac_default_prefix/etc/config.site
2611 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2613 test "x$ac_site_file" = xNONE && continue
2614 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2616 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2617 sed 's/^/| /' "$ac_site_file" >&5
2619 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2621 as_fn_error $? "failed to load site
script $ac_site_file
2622 See \
`config.log' for more details" "$LINENO" 5; }
2626 if test -r "$cache_file"; then
2627 # Some versions of bash will fail to source /dev/null (special files
2628 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2629 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2631 $as_echo "$as_me: loading cache $cache_file" >&6;}
2633 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2634 *) . "./$cache_file";;
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2639 $as_echo "$as_me: creating cache $cache_file" >&6;}
2643 as_fn_append ac_header_list " stdlib.h"
2644 as_fn_append ac_header_list " unistd.h"
2645 as_fn_append ac_header_list " sys/param.h"
2646 as_fn_append ac_header_list " sys/time.h"
2647 as_fn_append ac_func_list " alarm"
2648 as_fn_append ac_func_list " fpurge"
2649 as_fn_append ac_func_list " __fpurge"
2650 as_fn_append ac_func_list " snprintf"
2651 as_fn_append ac_func_list " vsnprintf"
2652 # Check that the precious variables saved in the cache have kept the same
2654 ac_cache_corrupted=false
2655 for ac_var in $ac_precious_vars; do
2656 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2657 eval ac_new_set=\$ac_env_${ac_var}_set
2658 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2659 eval ac_new_val=\$ac_env_${ac_var}_value
2660 case $ac_old_set,$ac_new_set in
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2663 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2664 ac_cache_corrupted=: ;;
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2667 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2668 ac_cache_corrupted=: ;;
2671 if test "x$ac_old_val" != "x$ac_new_val"; then
2672 # differences in whitespace do not lead to failure.
2673 ac_old_val_w=`echo x
$ac_old_val`
2674 ac_new_val_w=`echo x
$ac_new_val`
2675 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2677 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2678 ac_cache_corrupted=:
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2681 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2682 eval $ac_var=\$ac_old_val
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2685 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2687 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2690 # Pass precious variables to config.status.
2691 if test "$ac_new_set" = set; then
2693 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2694 *) ac_arg=$ac_var=$ac_new_val ;;
2696 case " $ac_configure_args " in
2697 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2698 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2702 if $ac_cache_corrupted; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2706 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2707 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2709 ## -------------------- ##
2710 ## Main body of script. ##
2711 ## -------------------- ##
2714 ac_cpp='$CPP $CPPFLAGS'
2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2725 for ac_dir in ./support "$srcdir"/./support; do
2726 if test -f "$ac_dir/install-sh"; then
2728 ac_install_sh="$ac_aux_dir/install-sh -c"
2730 elif test -f "$ac_dir/install.sh"; then
2732 ac_install_sh="$ac_aux_dir/install.sh -c"
2734 elif test -f "$ac_dir/shtool"; then
2736 ac_install_sh="$ac_aux_dir/shtool install -c"
2740 if test -z "$ac_aux_dir"; then
2741 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./support \"$srcdir\"/./support" "$LINENO" 5
2744 # These three variables are undocumented and unsupported,
2745 # and are intended to be withdrawn in a future Autoconf release.
2746 # They can cause serious problems if a builder's source tree is in a directory
2747 # whose full name contains unusual characters.
2748 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2749 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2750 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2753 ac_config_headers="$ac_config_headers config.h"
2759 case "$RELSTATUS" in
2760 alp*|bet*|dev*|rc*|releng*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
2761 *) DEBUG= MALLOC_DEBUG= ;;
2764 # Make sure we can run config.sub.
2765 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2766 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2769 $as_echo_n "checking build system type... " >&6; }
2770 if ${ac_cv_build+:} false; then :
2771 $as_echo_n "(cached) " >&6
2773 ac_build_alias=$build_alias
2774 test "x$ac_build_alias" = x &&
2775 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2776 test "x$ac_build_alias" = x &&
2777 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2778 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2779 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2783 $as_echo "$ac_cv_build" >&6; }
2784 case $ac_cv_build in
2786 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2789 ac_save_IFS=$IFS; IFS='-'
2795 # Remember, the first character of IFS is used to create $*,
2796 # except with old shells:
2799 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2803 $as_echo_n "checking host system type... " >&6; }
2804 if ${ac_cv_host+:} false; then :
2805 $as_echo_n "(cached) " >&6
2807 if test "x$host_alias" = x; then
2808 ac_cv_host=$ac_cv_build
2810 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2811 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2816 $as_echo "$ac_cv_host" >&6; }
2819 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2822 ac_save_IFS=$IFS; IFS='-'
2828 # Remember, the first character of IFS is used to create $*,
2829 # except with old shells:
2832 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2840 opt_with_installed_readline=no
2844 case "${host_cpu}-${host_os}" in
2845 alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
2846 *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
2847 *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
2848 sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
2849 sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
2850 mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
2851 m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
2852 sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
2853 #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
2854 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
2855 *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
2856 *-mirbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
2857 *-aix*) opt_bash_malloc=no ;; # AIX machines
2858 *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
2859 *-openstep*) opt_bash_malloc=no ;; # i386/Sparc/HP machines running Openstep
2860 *-macos*) opt_bash_malloc=no ;; # Apple MacOS X
2861 *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
2862 *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
2863 *-dgux*) opt_bash_malloc=no ;; # DG/UX machines
2864 *-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x
2865 *-machten4) opt_bash_malloc=no ;; # MachTen 4.x
2866 *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
2867 *-beos*) opt_bash_malloc=no ;; # they say it's suitable
2868 *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
2869 *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
2870 *-nsk*) opt_bash_malloc=no ;; # HP NonStop
2871 *-haiku*) opt_bash_malloc=no ;; # Haiku OS
2874 # memory scrambling on free()
2875 case "${host_os}" in
2876 sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
2877 *) opt_memscramble=yes ;;
2883 # Check whether --with-afs was given.
2884 if test "${with_afs+set}" = set; then :
2885 withval=$with_afs; opt_afs=$withval
2889 # Check whether --with-bash-malloc was given.
2890 if test "${with_bash_malloc+set}" = set; then :
2891 withval=$with_bash_malloc; opt_bash_malloc=$withval
2895 # Check whether --with-curses was given.
2896 if test "${with_curses+set}" = set; then :
2897 withval=$with_curses; opt_curses=$withval
2901 # Check whether --with-gnu-malloc was given.
2902 if test "${with_gnu_malloc+set}" = set; then :
2903 withval=$with_gnu_malloc; opt_bash_malloc=$withval
2907 # Check whether --with-installed-readline was given.
2908 if test "${with_installed_readline+set}" = set; then :
2909 withval=$with_installed_readline; opt_with_installed_readline=$withval
2913 if test "$opt_bash_malloc" = yes; then
2914 MALLOC_TARGET=malloc
2917 MALLOC_LIB='-lmalloc'
2918 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
2919 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
2920 MALLOC_DEP='$(MALLOC_LIBRARY)'
2922 $as_echo "#define USING_BASH_MALLOC 1" >>confdefs.h
2931 if test "$opt_afs" = yes; then
2932 $as_echo "#define AFS 1" >>confdefs.h
2936 if test "$opt_curses" = yes; then
2940 if test -z "${DEBUGGER_START_FILE}"; then
2941 DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc'
2944 opt_minimal_config=no
2950 opt_bang_history=yes
2953 opt_process_subst=yes
2954 opt_prompt_decoding=yes
2957 opt_array_variables=yes
2958 opt_dparen_arith=yes
2959 opt_extended_glob=yes
2960 opt_brace_expansion=yes
2961 opt_disabled_builtins=no
2962 opt_command_timing=yes
2965 opt_cond_command=yes
2968 opt_arith_for_command=yes
2971 opt_separate_help=no
2974 opt_single_longdoc_strings=yes
2975 opt_casemod_attrs=yes
2976 opt_casemod_expansions=yes
2977 opt_extglob_default=no
2978 opt_dircomplete_expand_default=no
2979 opt_globascii_default=no
2980 opt_function_import=yes
2985 # Check whether --enable-minimal-config was given.
2986 if test "${enable_minimal_config+set}" = set; then :
2987 enableval=$enable_minimal_config; opt_minimal_config=$enableval
2991 if test $opt_minimal_config = yes; then
2992 opt_job_control=no opt_alias=no opt_readline=no
2993 opt_history=no opt_bang_history=no opt_dirstack=no
2994 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
2995 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
2996 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
2997 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
2998 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
2999 opt_multibyte=yes opt_cond_regexp=no opt_coproc=no
3000 opt_casemod_attrs=no opt_casemod_expansions=no opt_extglob_default=no
3001 opt_globascii_default=no
3004 # Check whether --enable-alias was given.
3005 if test "${enable_alias+set}" = set; then :
3006 enableval=$enable_alias; opt_alias=$enableval
3009 # Check whether --enable-arith-for-command was given.
3010 if test "${enable_arith_for_command+set}" = set; then :
3011 enableval=$enable_arith_for_command; opt_arith_for_command=$enableval
3014 # Check whether --enable-array-variables was given.
3015 if test "${enable_array_variables+set}" = set; then :
3016 enableval=$enable_array_variables; opt_array_variables=$enableval
3019 # Check whether --enable-bang-history was given.
3020 if test "${enable_bang_history+set}" = set; then :
3021 enableval=$enable_bang_history; opt_bang_history=$enableval
3024 # Check whether --enable-brace-expansion was given.
3025 if test "${enable_brace_expansion+set}" = set; then :
3026 enableval=$enable_brace_expansion; opt_brace_expansion=$enableval
3029 # Check whether --enable-casemod-attributes was given.
3030 if test "${enable_casemod_attributes+set}" = set; then :
3031 enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval
3034 # Check whether --enable-casemod-expansions was given.
3035 if test "${enable_casemod_expansions+set}" = set; then :
3036 enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval
3039 # Check whether --enable-command-timing was given.
3040 if test "${enable_command_timing+set}" = set; then :
3041 enableval=$enable_command_timing; opt_command_timing=$enableval
3044 # Check whether --enable-cond-command was given.
3045 if test "${enable_cond_command+set}" = set; then :
3046 enableval=$enable_cond_command; opt_cond_command=$enableval
3049 # Check whether --enable-cond-regexp was given.
3050 if test "${enable_cond_regexp+set}" = set; then :
3051 enableval=$enable_cond_regexp; opt_cond_regexp=$enableval
3054 # Check whether --enable-coprocesses was given.
3055 if test "${enable_coprocesses+set}" = set; then :
3056 enableval=$enable_coprocesses; opt_coproc=$enableval
3059 # Check whether --enable-debugger was given.
3060 if test "${enable_debugger+set}" = set; then :
3061 enableval=$enable_debugger; opt_debugger=$enableval
3064 # Check whether --enable-direxpand-default was given.
3065 if test "${enable_direxpand_default+set}" = set; then :
3066 enableval=$enable_direxpand_default; opt_dircomplete_expand_default=$enableval
3069 # Check whether --enable-directory-stack was given.
3070 if test "${enable_directory_stack+set}" = set; then :
3071 enableval=$enable_directory_stack; opt_dirstack=$enableval
3074 # Check whether --enable-disabled-builtins was given.
3075 if test "${enable_disabled_builtins+set}" = set; then :
3076 enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval
3079 # Check whether --enable-dparen-arithmetic was given.
3080 if test "${enable_dparen_arithmetic+set}" = set; then :
3081 enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval
3084 # Check whether --enable-extended-glob was given.
3085 if test "${enable_extended_glob+set}" = set; then :
3086 enableval=$enable_extended_glob; opt_extended_glob=$enableval
3089 # Check whether --enable-extended-glob-default was given.
3090 if test "${enable_extended_glob_default+set}" = set; then :
3091 enableval=$enable_extended_glob_default; opt_extglob_default=$enableval
3094 # Check whether --enable-function-import was given.
3095 if test "${enable_function_import+set}" = set; then :
3096 enableval=$enable_function_import; opt_function_import=$enableval
3099 # Check whether --enable-glob-asciiranges-default was given.
3100 if test "${enable_glob_asciiranges_default+set}" = set; then :
3101 enableval=$enable_glob_asciiranges_default; opt_globascii_default=$enableval
3104 # Check whether --enable-help-builtin was given.
3105 if test "${enable_help_builtin+set}" = set; then :
3106 enableval=$enable_help_builtin; opt_help=$enableval
3109 # Check whether --enable-history was given.
3110 if test "${enable_history+set}" = set; then :
3111 enableval=$enable_history; opt_history=$enableval
3114 # Check whether --enable-job-control was given.
3115 if test "${enable_job_control+set}" = set; then :
3116 enableval=$enable_job_control; opt_job_control=$enableval
3119 # Check whether --enable-multibyte was given.
3120 if test "${enable_multibyte+set}" = set; then :
3121 enableval=$enable_multibyte; opt_multibyte=$enableval
3124 # Check whether --enable-net-redirections was given.
3125 if test "${enable_net_redirections+set}" = set; then :
3126 enableval=$enable_net_redirections; opt_net_redirs=$enableval
3129 # Check whether --enable-process-substitution was given.
3130 if test "${enable_process_substitution+set}" = set; then :
3131 enableval=$enable_process_substitution; opt_process_subst=$enableval
3134 # Check whether --enable-progcomp was given.
3135 if test "${enable_progcomp+set}" = set; then :
3136 enableval=$enable_progcomp; opt_progcomp=$enableval
3139 # Check whether --enable-prompt-string-decoding was given.
3140 if test "${enable_prompt_string_decoding+set}" = set; then :
3141 enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval
3144 # Check whether --enable-readline was given.
3145 if test "${enable_readline+set}" = set; then :
3146 enableval=$enable_readline; opt_readline=$enableval
3149 # Check whether --enable-restricted was given.
3150 if test "${enable_restricted+set}" = set; then :
3151 enableval=$enable_restricted; opt_restricted=$enableval
3154 # Check whether --enable-select was given.
3155 if test "${enable_select+set}" = set; then :
3156 enableval=$enable_select; opt_select=$enableval
3159 # Check whether --enable-separate-helpfiles was given.
3160 if test "${enable_separate_helpfiles+set}" = set; then :
3161 enableval=$enable_separate_helpfiles; opt_separate_help=$enableval
3164 # Check whether --enable-single-help-strings was given.
3165 if test "${enable_single_help_strings+set}" = set; then :
3166 enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval
3169 # Check whether --enable-strict-posix-default was given.
3170 if test "${enable_strict_posix_default+set}" = set; then :
3171 enableval=$enable_strict_posix_default; opt_strict_posix=$enableval
3174 # Check whether --enable-usg-echo-default was given.
3175 if test "${enable_usg_echo_default+set}" = set; then :
3176 enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval
3179 # Check whether --enable-xpg-echo-default was given.
3180 if test "${enable_xpg_echo_default+set}" = set; then :
3181 enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval
3185 # Check whether --enable-mem-scramble was given.
3186 if test "${enable_mem_scramble+set}" = set; then :
3187 enableval=$enable_mem_scramble; opt_memscramble=$enableval
3190 # Check whether --enable-profiling was given.
3191 if test "${enable_profiling+set}" = set; then :
3192 enableval=$enable_profiling; opt_profiling=$enableval
3195 # Check whether --enable-static-link was given.
3196 if test "${enable_static_link+set}" = set; then :
3197 enableval=$enable_static_link; opt_static_link=$enableval
3208 if test $opt_alias = yes; then
3209 $as_echo "#define ALIAS 1" >>confdefs.h
3212 if test $opt_dirstack = yes; then
3213 $as_echo "#define PUSHD_AND_POPD 1" >>confdefs.h
3216 if test $opt_restricted = yes; then
3217 $as_echo "#define RESTRICTED_SHELL 1" >>confdefs.h
3220 if test $opt_process_subst = yes; then
3221 $as_echo "#define PROCESS_SUBSTITUTION 1" >>confdefs.h
3224 if test $opt_prompt_decoding = yes; then
3225 $as_echo "#define PROMPT_STRING_DECODE 1" >>confdefs.h
3228 if test $opt_select = yes; then
3229 $as_echo "#define SELECT_COMMAND 1" >>confdefs.h
3232 if test $opt_help = yes; then
3233 $as_echo "#define HELP_BUILTIN 1" >>confdefs.h
3236 if test $opt_array_variables = yes; then
3237 $as_echo "#define ARRAY_VARS 1" >>confdefs.h
3240 if test $opt_dparen_arith = yes; then
3241 $as_echo "#define DPAREN_ARITHMETIC 1" >>confdefs.h
3244 if test $opt_brace_expansion = yes; then
3245 $as_echo "#define BRACE_EXPANSION 1" >>confdefs.h
3248 if test $opt_disabled_builtins = yes; then
3249 $as_echo "#define DISABLED_BUILTINS 1" >>confdefs.h
3252 if test $opt_command_timing = yes; then
3253 $as_echo "#define COMMAND_TIMING 1" >>confdefs.h
3256 if test $opt_xpg_echo = yes ; then
3257 $as_echo "#define DEFAULT_ECHO_TO_XPG 1" >>confdefs.h
3260 if test $opt_strict_posix = yes; then
3261 $as_echo "#define STRICT_POSIX 1" >>confdefs.h
3264 if test $opt_extended_glob = yes ; then
3265 $as_echo "#define EXTENDED_GLOB 1" >>confdefs.h
3268 if test $opt_extglob_default = yes; then
3269 $as_echo "#define EXTGLOB_DEFAULT 1" >>confdefs.h
3272 $as_echo "#define EXTGLOB_DEFAULT 0" >>confdefs.h
3275 if test $opt_cond_command = yes ; then
3276 $as_echo "#define COND_COMMAND 1" >>confdefs.h
3279 if test $opt_cond_regexp = yes ; then
3280 $as_echo "#define COND_REGEXP 1" >>confdefs.h
3283 if test $opt_coproc = yes; then
3284 $as_echo "#define COPROCESS_SUPPORT 1" >>confdefs.h
3287 if test $opt_arith_for_command = yes; then
3288 $as_echo "#define ARITH_FOR_COMMAND 1" >>confdefs.h
3291 if test $opt_net_redirs = yes; then
3292 $as_echo "#define NETWORK_REDIRECTIONS 1" >>confdefs.h
3295 if test $opt_progcomp = yes; then
3296 $as_echo "#define PROGRAMMABLE_COMPLETION 1" >>confdefs.h
3299 if test $opt_multibyte = no; then
3300 $as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h
3303 if test $opt_debugger = yes; then
3304 $as_echo "#define DEBUGGER 1" >>confdefs.h
3307 if test $opt_casemod_attrs = yes; then
3308 $as_echo "#define CASEMOD_ATTRS 1" >>confdefs.h
3311 if test $opt_casemod_expansions = yes; then
3312 $as_echo "#define CASEMOD_EXPANSIONS 1" >>confdefs.h
3315 if test $opt_dircomplete_expand_default = yes; then
3316 $as_echo "#define DIRCOMPLETE_EXPAND_DEFAULT 1" >>confdefs.h
3319 if test $opt_globascii_default = yes; then
3320 $as_echo "#define GLOBASCII_DEFAULT 1" >>confdefs.h
3323 $as_echo "#define GLOBASCII_DEFAULT 0" >>confdefs.h
3326 if test $opt_function_import = yes; then
3327 $as_echo "#define FUNCTION_IMPORT 1" >>confdefs.h
3331 if test $opt_memscramble = yes; then
3332 $as_echo "#define MEMSCRAMBLE 1" >>confdefs.h
3336 if test "$opt_minimal_config" = yes; then
3337 TESTSCRIPT=run-minimal
3342 HELPDIR= HELPDIRDEFINE= HELPINSTALL= HELPFILES_TARGET=
3343 if test "$opt_separate_help" != no; then
3344 if test "$opt_separate_help" = "yes" ; then
3345 HELPDIR='${datadir}/bash'
3347 HELPDIR=$opt_separate_help
3349 HELPDIRDEFINE='-H ${HELPDIR}'
3350 HELPINSTALL='install-help'
3351 HELPFILES_TARGET='helpdoc'
3354 if test "$opt_single_longdoc_strings" != "yes"; then
3375 if test -z "$CFLAGS"; then
3376 AUTO_CFLAGS="-g ${GCC+-O2} ${GCC+-Wno-parentheses}"
3377 AUTO_LDFLAGS="-g ${GCC+-O2}"
3379 AUTO_CFLAGS= AUTO_LDFLAGS=
3383 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
3387 ac_cpp='$CPP $CPPFLAGS'
3388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391 if test -n "$ac_tool_prefix"; then
3392 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3393 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if ${ac_cv_prog_CC+:} false; then :
3397 $as_echo_n "(cached) " >&6
3399 if test -n "$CC"; then
3400 ac_cv_prog_CC="$CC" # Let the user override the test.
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 if test -n "$CC"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3422 $as_echo "$CC" >&6; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3430 if test -z "$ac_cv_prog_CC"; then
3432 # Extract the first word of "gcc", so it can be a program name with args.
3433 set dummy gcc; ac_word=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3437 $as_echo_n "(cached) " >&6
3439 if test -n "$ac_ct_CC"; then
3440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449 ac_cv_prog_ac_ct_CC="gcc"
3450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3460 if test -n "$ac_ct_CC"; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3462 $as_echo "$ac_ct_CC" >&6; }
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3468 if test "x$ac_ct_CC" = x; then
3471 case $cross_compiling:$ac_tool_warned in
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3475 ac_tool_warned=yes ;;
3483 if test -z "$CC"; then
3484 if test -n "$ac_tool_prefix"; then
3485 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3486 set dummy ${ac_tool_prefix}cc; ac_word=$2
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3488 $as_echo_n "checking for $ac_word... " >&6; }
3489 if ${ac_cv_prog_CC+:} false; then :
3490 $as_echo_n "(cached) " >&6
3492 if test -n "$CC"; then
3493 ac_cv_prog_CC="$CC" # Let the user override the test.
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 test -z "$as_dir" && as_dir=.
3500 for ac_exec_ext in '' $ac_executable_extensions; do
3501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3502 ac_cv_prog_CC="${ac_tool_prefix}cc"
3503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 if test -n "$CC"; then
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3515 $as_echo "$CC" >&6; }
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3518 $as_echo "no" >&6; }
3524 if test -z "$CC"; then
3525 # Extract the first word of "cc", so it can be a program name with args.
3526 set dummy cc; ac_word=$2
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528 $as_echo_n "checking for $ac_word... " >&6; }
3529 if ${ac_cv_prog_CC+:} false; then :
3530 $as_echo_n "(cached) " >&6
3532 if test -n "$CC"; then
3533 ac_cv_prog_CC="$CC" # Let the user override the test.
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 test -z "$as_dir" && as_dir=.
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3544 ac_prog_rejected=yes
3548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 if test $ac_prog_rejected = yes; then
3556 # We found a bogon in the path, so make sure we never use it.
3557 set dummy $ac_cv_prog_CC
3559 if test $# != 0; then
3560 # We chose a different compiler from the bogus one.
3561 # However, it has the same basename, so the bogon will be chosen
3562 # first if we set CC to just the basename; use the full file name.
3564 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3570 if test -n "$CC"; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3572 $as_echo "$CC" >&6; }
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3580 if test -z "$CC"; then
3581 if test -n "$ac_tool_prefix"; then
3582 for ac_prog in cl.exe
3584 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3585 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if ${ac_cv_prog_CC+:} false; then :
3589 $as_echo_n "(cached) " >&6
3591 if test -n "$CC"; then
3592 ac_cv_prog_CC="$CC" # Let the user override the test.
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3601 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3612 if test -n "$CC"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3614 $as_echo "$CC" >&6; }
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3621 test -n "$CC" && break
3624 if test -z "$CC"; then
3626 for ac_prog in cl.exe
3628 # Extract the first word of "$ac_prog", so it can be a program name with args.
3629 set dummy $ac_prog; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3633 $as_echo_n "(cached) " >&6
3635 if test -n "$ac_ct_CC"; then
3636 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3645 ac_cv_prog_ac_ct_CC="$ac_prog"
3646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3656 if test -n "$ac_ct_CC"; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3658 $as_echo "$ac_ct_CC" >&6; }
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3665 test -n "$ac_ct_CC" && break
3668 if test "x$ac_ct_CC" = x; then
3671 case $cross_compiling:$ac_tool_warned in
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3675 ac_tool_warned=yes ;;
3684 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3687 See \
`config.log' for more details" "$LINENO" 5; }
3689 # Provide some information about the compiler.
3690 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3693 for ac_option in --version -v -V -qversion; do
3694 { { ac_try="$ac_compiler $ac_option >&5"
3696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3697 *) ac_try_echo
=$ac_try;;
3699 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700 $as_echo "$ac_try_echo"; } >&5
3701 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3703 if test -s conftest.err
; then
3705 ... rest of stderr output deleted ...
3706 10q' conftest.err
>conftest.er1
3707 cat conftest.er1
>&5
3709 rm -f conftest.er1 conftest.err
3710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3711 test $ac_status = 0; }
3714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3725 ac_clean_files_save
=$ac_clean_files
3726 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3727 # Try to create an executable without -o first, disregard a.out.
3728 # It will help us diagnose broken compilers, and finding out an intuition
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3731 $as_echo_n "checking whether the C compiler works... " >&6; }
3732 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3734 # The possible output files:
3735 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3738 for ac_file
in $ac_files
3741 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3742 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3747 if { { ac_try
="$ac_link_default"
3749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3750 *) ac_try_echo=$ac_try;;
3752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3753 $as_echo "$ac_try_echo"; } >&5
3754 (eval "$ac_link_default") 2>&5
3756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3757 test $ac_status = 0; }; then :
3758 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3759 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3760 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3761 # so that the user can short-circuit this test for compilers unknown to
3763 for ac_file in $ac_files ''
3765 test -f "$ac_file" || continue
3767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3770 # We found the default executable, but exeext='' is most
3774 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3776 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3778 # We set ac_cv_exeext here because the later test for it is not
3779 # safe: cross compilers may not add the suffix if given an `-o'
3780 # argument, so we may need to know it at that point already.
3781 # Even if this section looks crufty: it has the advantage of
3788 test "$ac_cv_exeext" = no && ac_cv_exeext=
3793 if test -z "$ac_file"; then :
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 $as_echo "no" >&6; }
3796 $as_echo "$as_me: failed program was:" >&5
3797 sed 's
/^
/|
/' conftest.$ac_ext >&5
3799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3801 as_fn_error 77 "C compiler cannot create executables
3802 See \`config.log
' for more details" "$LINENO" 5; }
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3805 $as_echo "yes" >&6; }
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3808 $as_echo_n "checking for C compiler default output file name... " >&6; }
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3810 $as_echo "$ac_file" >&6; }
3811 ac_exeext=$ac_cv_exeext
3813 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3814 ac_clean_files=$ac_clean_files_save
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3816 $as_echo_n "checking for suffix of executables... " >&6; }
3817 if { { ac_try="$ac_link"
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 $as_echo "$ac_try_echo"; } >&5
3824 (eval "$ac_link") 2>&5
3826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }; then :
3828 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3829 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3830 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3832 for ac_file
in conftest.exe conftest conftest.
*; do
3833 test -f "$ac_file" ||
continue
3835 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3836 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3844 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3845 See \`config.log' for more details" "$LINENO" 5; }
3847 rm -f conftest conftest
$ac_cv_exeext
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3849 $as_echo "$ac_cv_exeext" >&6; }
3851 rm -f conftest.
$ac_ext
3852 EXEEXT
=$ac_cv_exeext
3854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3860 FILE *f = fopen ("conftest.out", "w");
3861 return ferror (f) || fclose (f) != 0;
3867 ac_clean_files
="$ac_clean_files conftest.out"
3868 # Check that the compiler produces executables we can run. If not, either
3869 # the compiler is broken, or we cross compile.
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3871 $as_echo_n "checking whether we are cross compiling... " >&6; }
3872 if test "$cross_compiling" != yes; then
3873 { { ac_try
="$ac_link"
3875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880 (eval "$ac_link") 2>&5
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }
3884 if { ac_try='./conftest$ac_cv_exeext'
3885 { { case "(($ac_try" in
3886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3887 *) ac_try_echo
=$ac_try;;
3889 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_try") 2>&5
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }; }; then
3897 if test "$cross_compiling" = maybe
; then
3900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3902 as_fn_error $?
"cannot run C compiled programs.
3903 If you meant to cross compile, use \`--host'.
3904 See \`config.log' for more details" "$LINENO" 5; }
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3909 $as_echo "$cross_compiling" >&6; }
3911 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3912 ac_clean_files
=$ac_clean_files_save
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3914 $as_echo_n "checking for suffix of object files... " >&6; }
3915 if ${ac_cv_objext+:} false
; then :
3916 $as_echo_n "(cached) " >&6
3918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3929 rm -f conftest.o conftest.obj
3930 if { { ac_try
="$ac_compile"
3932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936 $as_echo "$ac_try_echo"; } >&5
3937 (eval "$ac_compile") 2>&5
3939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940 test $ac_status = 0; }; then :
3941 for ac_file in conftest.o conftest.obj conftest.*; do
3942 test -f "$ac_file" || continue;
3944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3945 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3950 $as_echo "$as_me: failed program was:" >&5
3951 sed 's/^/| /' conftest.$ac_ext >&5
3953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3955 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3956 See \
`config.log' for more details" "$LINENO" 5; }
3958 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3961 $as_echo "$ac_cv_objext" >&6; }
3962 OBJEXT=$ac_cv_objext
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3965 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3966 if ${ac_cv_c_compiler_gnu+:} false; then :
3967 $as_echo_n "(cached) " >&6
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3983 if ac_fn_c_try_compile "$LINENO"; then :
3988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3989 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3993 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3994 if test $ac_compiler_gnu = yes; then
3999 ac_test_CFLAGS=${CFLAGS+set}
4000 ac_save_CFLAGS=$CFLAGS
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4002 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4003 if ${ac_cv_prog_cc_g+:} false; then :
4004 $as_echo_n "(cached) " >&6
4006 ac_save_c_werror_flag=$ac_c_werror_flag
4007 ac_c_werror_flag=yes
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4021 if ac_fn_c_try_compile "$LINENO"; then :
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4036 if ac_fn_c_try_compile "$LINENO"; then :
4039 ac_c_werror_flag=$ac_save_c_werror_flag
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4052 if ac_fn_c_try_compile "$LINENO"; then :
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 ac_c_werror_flag=$ac_save_c_werror_flag
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4063 $as_echo "$ac_cv_prog_cc_g" >&6; }
4064 if test "$ac_test_CFLAGS" = set; then
4065 CFLAGS=$ac_save_CFLAGS
4066 elif test $ac_cv_prog_cc_g = yes; then
4067 if test "$GCC" = yes; then
4073 if test "$GCC" = yes; then
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4080 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4081 if ${ac_cv_prog_cc_c89+:} false; then :
4082 $as_echo_n "(cached) " >&6
4084 ac_cv_prog_cc_c89=no
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4091 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4092 struct buf { int x; };
4093 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4094 static char *e (p, i)
4100 static char *f (char * (*g) (char **, int), char **p, ...)
4105 s = g (p, va_arg (v,int));
4110 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4111 function prototypes and stuff, but not '\xHH' hex character constants.
4112 These don't provoke an error unfortunately, instead are silently treated
4113 as 'x'. The following induces an error, until -std is added to get
4114 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4115 array size at least. It's necessary to write '\x00'==0 to get something
4116 that's true only with -std. */
4117 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4119 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4120 inside strings and character constants. */
4122 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4124 int test (int i, double x);
4125 struct s1 {int (*f) (int a);};
4126 struct s2 {int (*f) (double a);};
4127 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4133 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4138 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4139 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4141 CC="$ac_save_CC $ac_arg"
4142 if ac_fn_c_try_compile "$LINENO"; then :
4143 ac_cv_prog_cc_c89=$ac_arg
4145 rm -f core conftest.err conftest.$ac_objext
4146 test "x$ac_cv_prog_cc_c89" != "xno" && break
4148 rm -f conftest.$ac_ext
4153 case "x$ac_cv_prog_cc_c89" in
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4156 $as_echo "none needed" >&6; } ;;
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4159 $as_echo "unsupported" >&6; } ;;
4161 CC="$CC $ac_cv_prog_cc_c89"
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4163 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4165 if test "x$ac_cv_prog_cc_c89" != xno; then :
4170 ac_cpp='$CPP $CPPFLAGS'
4171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
4179 $as_echo_n "checking for strerror in -lcposix... " >&6; }
4180 if ${ac_cv_lib_cposix_strerror+:} false; then :
4181 $as_echo_n "(cached) " >&6
4183 ac_check_lib_save_LIBS=$LIBS
4184 LIBS="-lcposix $LIBS"
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4188 /* Override any GCC internal prototype to avoid an error.
4189 Use char because int might match the return type of a GCC
4190 builtin and then its argument prototype would still apply. */
4203 if ac_fn_c_try_link "$LINENO"; then :
4204 ac_cv_lib_cposix_strerror=yes
4206 ac_cv_lib_cposix_strerror=no
4208 rm -f core conftest.err conftest.$ac_objext \
4209 conftest$ac_exeext conftest.$ac_ext
4210 LIBS=$ac_check_lib_save_LIBS
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
4213 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
4214 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
4215 LIBS="$LIBS -lcposix"
4221 ac_cpp='$CPP $CPPFLAGS'
4222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4226 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4227 # On Suns, sometimes $CPP names a directory.
4228 if test -n "$CPP" && test -d "$CPP"; then
4231 if test -z "$CPP"; then
4232 if ${ac_cv_prog_CPP+:} false; then :
4233 $as_echo_n "(cached) " >&6
4235 # Double quotes because CPP needs to be expanded
4236 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4239 for ac_c_preproc_warn_flag in '' yes
4241 # Use a header file that comes with gcc, so configuring glibc
4242 # with a fresh cross-compiler works.
4243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4244 # <limits.h> exists even on freestanding compilers.
4245 # On the NeXT, cc -E runs the code through the compiler's parser,
4246 # not just through cpp. "Syntax error" is here to catch this case.
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4250 # include <limits.h>
4252 # include <assert.h>
4256 if ac_fn_c_try_cpp "$LINENO"; then :
4259 # Broken: fails on valid input.
4262 rm -f conftest.err conftest.i conftest.$ac_ext
4264 # OK, works on sane cases. Now check whether nonexistent headers
4265 # can be detected and how.
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4268 #include <ac_nonexistent.h>
4270 if ac_fn_c_try_cpp "$LINENO"; then :
4271 # Broken: success on invalid input.
4274 # Passes both tests.
4278 rm -f conftest.err conftest.i conftest.$ac_ext
4281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4282 rm -f conftest.i conftest.err conftest.
$ac_ext
4283 if $ac_preproc_ok; then :
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4296 $as_echo "$CPP" >&6; }
4298 for ac_c_preproc_warn_flag
in '' yes
4300 # Use a header file that comes with gcc, so configuring glibc
4301 # with a fresh cross-compiler works.
4302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4303 # <limits.h> exists even on freestanding compilers.
4304 # On the NeXT, cc -E runs the code through the compiler's parser,
4305 # not just through cpp. "Syntax error" is here to catch this case.
4306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4309 # include <limits.h>
4311 # include <assert.h>
4315 if ac_fn_c_try_cpp
"$LINENO"; then :
4318 # Broken: fails on valid input.
4321 rm -f conftest.err conftest.i conftest.
$ac_ext
4323 # OK, works on sane cases. Now check whether nonexistent headers
4324 # can be detected and how.
4325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4327 #include <ac_nonexistent.h>
4329 if ac_fn_c_try_cpp
"$LINENO"; then :
4330 # Broken: success on invalid input.
4333 # Passes both tests.
4337 rm -f conftest.err conftest.i conftest.
$ac_ext
4340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4341 rm -f conftest.i conftest.err conftest.
$ac_ext
4342 if $ac_preproc_ok; then :
4345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4347 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4348 See \`config.log' for more details" "$LINENO" 5; }
4352 ac_cpp
='$CPP $CPPFLAGS'
4353 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4359 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4360 if ${ac_cv_path_GREP+:} false
; then :
4361 $as_echo_n "(cached) " >&6
4363 if test -z "$GREP"; then
4364 ac_path_GREP_found
=false
4365 # Loop through the user's path and test for each of PROGNAME-LIST
4366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4367 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4370 test -z "$as_dir" && as_dir
=.
4371 for ac_prog
in grep ggrep
; do
4372 for ac_exec_ext
in '' $ac_executable_extensions; do
4373 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4374 as_fn_executable_p
"$ac_path_GREP" ||
continue
4375 # Check for GNU ac_path_GREP and select it if it is found.
4376 # Check for GNU $ac_path_GREP
4377 case `"$ac_path_GREP" --version 2>&1` in
4379 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4382 $as_echo_n 0123456789 >"conftest.in"
4385 cat "conftest.in" "conftest.in" >"conftest.tmp"
4386 mv "conftest.tmp" "conftest.in"
4387 cp "conftest.in" "conftest.nl"
4388 $as_echo 'GREP' >> "conftest.nl"
4389 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4390 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4391 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4392 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4393 # Best one so far, save it but keep looking for a better one
4394 ac_cv_path_GREP
="$ac_path_GREP"
4395 ac_path_GREP_max
=$ac_count
4397 # 10*(2^10) chars as input seems more than enough
4398 test $ac_count -gt 10 && break
4400 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4403 $ac_path_GREP_found && break 3
4408 if test -z "$ac_cv_path_GREP"; then
4409 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4412 ac_cv_path_GREP
=$GREP
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4417 $as_echo "$ac_cv_path_GREP" >&6; }
4418 GREP
="$ac_cv_path_GREP"
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4422 $as_echo_n "checking for egrep... " >&6; }
4423 if ${ac_cv_path_EGREP+:} false
; then :
4424 $as_echo_n "(cached) " >&6
4426 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4427 then ac_cv_path_EGREP
="$GREP -E"
4429 if test -z "$EGREP"; then
4430 ac_path_EGREP_found
=false
4431 # Loop through the user's path and test for each of PROGNAME-LIST
4432 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4433 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4436 test -z "$as_dir" && as_dir
=.
4437 for ac_prog
in egrep; do
4438 for ac_exec_ext
in '' $ac_executable_extensions; do
4439 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4440 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4441 # Check for GNU ac_path_EGREP and select it if it is found.
4442 # Check for GNU $ac_path_EGREP
4443 case `"$ac_path_EGREP" --version 2>&1` in
4445 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4448 $as_echo_n 0123456789 >"conftest.in"
4451 cat "conftest.in" "conftest.in" >"conftest.tmp"
4452 mv "conftest.tmp" "conftest.in"
4453 cp "conftest.in" "conftest.nl"
4454 $as_echo 'EGREP' >> "conftest.nl"
4455 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4456 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4457 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4458 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4459 # Best one so far, save it but keep looking for a better one
4460 ac_cv_path_EGREP
="$ac_path_EGREP"
4461 ac_path_EGREP_max
=$ac_count
4463 # 10*(2^10) chars as input seems more than enough
4464 test $ac_count -gt 10 && break
4466 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4469 $ac_path_EGREP_found && break 3
4474 if test -z "$ac_cv_path_EGREP"; then
4475 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4478 ac_cv_path_EGREP
=$EGREP
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4484 $as_echo "$ac_cv_path_EGREP" >&6; }
4485 EGREP
="$ac_cv_path_EGREP"
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4489 $as_echo_n "checking for ANSI C header files... " >&6; }
4490 if ${ac_cv_header_stdc+:} false
; then :
4491 $as_echo_n "(cached) " >&6
4493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4508 if ac_fn_c_try_compile
"$LINENO"; then :
4509 ac_cv_header_stdc
=yes
4511 ac_cv_header_stdc
=no
4513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4515 if test $ac_cv_header_stdc = yes; then
4516 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4523 $EGREP "memchr" >/dev
/null
2>&1; then :
4526 ac_cv_header_stdc
=no
4532 if test $ac_cv_header_stdc = yes; then
4533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4540 $EGREP "free" >/dev
/null
2>&1; then :
4543 ac_cv_header_stdc
=no
4549 if test $ac_cv_header_stdc = yes; then
4550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4551 if test "$cross_compiling" = yes; then :
4554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4558 #if ((' ' & 0x0FF) == 0x020)
4559 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4560 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4562 # define ISLOWER(c) \
4563 (('a' <= (c) && (c) <= 'i') \
4564 || ('j' <= (c) && (c) <= 'r') \
4565 || ('s' <= (c) && (c) <= 'z'))
4566 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4569 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4574 for (i = 0; i < 256; i++)
4575 if (XOR (islower (i), ISLOWER (i))
4576 || toupper (i) != TOUPPER (i))
4581 if ac_fn_c_try_run
"$LINENO"; then :
4584 ac_cv_header_stdc
=no
4586 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4587 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4593 $as_echo "$ac_cv_header_stdc" >&6; }
4594 if test $ac_cv_header_stdc = yes; then
4596 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4600 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4601 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4602 inttypes.h stdint.h unistd.h
4604 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4605 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4607 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4608 cat >>confdefs.h
<<_ACEOF
4609 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4618 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4619 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4626 if test "$MINIX" = yes; then
4628 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4631 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4634 $as_echo "#define _MINIX 1" >>confdefs.h
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4640 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4641 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4642 $as_echo_n "(cached) " >&6
4644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4647 # define __EXTENSIONS__ 1
4648 $ac_includes_default
4657 if ac_fn_c_try_compile
"$LINENO"; then :
4658 ac_cv_safe_to_define___extensions__
=yes
4660 ac_cv_safe_to_define___extensions__
=no
4662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4665 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4666 test $ac_cv_safe_to_define___extensions__ = yes &&
4667 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4669 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4671 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4673 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4675 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
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:${as_lineno-$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 ${ac_cv_sys_largefile_CC+:} false
; 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 confdefs.h
- <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4700 #include <sys/types.h>
4701 /* Check that off_t can represent 2**63 - 1 correctly.
4702 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4703 since some C++ compilers masquerading as C compilers
4704 incorrectly reject 9223372036854775807. */
4705 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4707 && LARGE_OFF_T % 2147483647 == 1)
4717 if ac_fn_c_try_compile
"$LINENO"; then :
4720 rm -f core conftest.err conftest.
$ac_objext
4722 if ac_fn_c_try_compile
"$LINENO"; then :
4723 ac_cv_sys_largefile_CC
=' -n32'; break
4725 rm -f core conftest.err conftest.
$ac_objext
4729 rm -f conftest.
$ac_ext
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4733 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4734 if test "$ac_cv_sys_largefile_CC" != no
; then
4735 CC
=$CC$ac_cv_sys_largefile_CC
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4739 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4740 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4741 $as_echo_n "(cached) " >&6
4744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4746 #include <sys/types.h>
4747 /* Check that off_t can represent 2**63 - 1 correctly.
4748 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4749 since some C++ compilers masquerading as C compilers
4750 incorrectly reject 9223372036854775807. */
4751 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4752 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4753 && LARGE_OFF_T % 2147483647 == 1)
4763 if ac_fn_c_try_compile
"$LINENO"; then :
4764 ac_cv_sys_file_offset_bits
=no
; break
4766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4769 #define _FILE_OFFSET_BITS 64
4770 #include <sys/types.h>
4771 /* Check that off_t can represent 2**63 - 1 correctly.
4772 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4773 since some C++ compilers masquerading as C compilers
4774 incorrectly reject 9223372036854775807. */
4775 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4776 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4777 && LARGE_OFF_T % 2147483647 == 1)
4787 if ac_fn_c_try_compile
"$LINENO"; then :
4788 ac_cv_sys_file_offset_bits
=64; break
4790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4791 ac_cv_sys_file_offset_bits
=unknown
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4796 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4797 case $ac_cv_sys_file_offset_bits in #(
4800 cat >>confdefs.h
<<_ACEOF
4801 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4806 if test $ac_cv_sys_file_offset_bits = unknown
; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4808 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4809 if ${ac_cv_sys_large_files+:} false
; then :
4810 $as_echo_n "(cached) " >&6
4813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4815 #include <sys/types.h>
4816 /* Check that off_t can represent 2**63 - 1 correctly.
4817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4818 since some C++ compilers masquerading as C compilers
4819 incorrectly reject 9223372036854775807. */
4820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4822 && LARGE_OFF_T % 2147483647 == 1)
4832 if ac_fn_c_try_compile
"$LINENO"; then :
4833 ac_cv_sys_large_files
=no
; break
4835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4838 #define _LARGE_FILES 1
4839 #include <sys/types.h>
4840 /* Check that off_t can represent 2**63 - 1 correctly.
4841 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4842 since some C++ compilers masquerading as C compilers
4843 incorrectly reject 9223372036854775807. */
4844 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4845 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4846 && LARGE_OFF_T % 2147483647 == 1)
4856 if ac_fn_c_try_compile
"$LINENO"; then :
4857 ac_cv_sys_large_files
=1; break
4859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4860 ac_cv_sys_large_files
=unknown
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4865 $as_echo "$ac_cv_sys_large_files" >&6; }
4866 case $ac_cv_sys_large_files in #(
4869 cat >>confdefs.h
<<_ACEOF
4870 #define _LARGE_FILES $ac_cv_sys_large_files
4883 SIGNAMES_H
=lsignames.h
4888 if test "x$cross_compiling" = "xyes"; then
4891 cross_cache
=${srcdir}/cross-build
/cygwin32.cache
4894 cross_cache
=${srcdir}/cross-build
/cygwin32.cache
4897 cross_cache
=${srcdir}/cross-build
/x86-beos.cache
4899 *) echo "configure: cross-compiling for $host is not supported" >&2
4902 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
4903 echo "loading cross-build cache file ${cross_cache}"
4907 SIGNAMES_O
='signames.o'
4908 CROSS_COMPILE
='-DCROSS_COMPILING'
4915 CFLAGS
=${CFLAGS-"$AUTO_CFLAGS"}
4916 # LDFLAGS=${LDFLAGS="$AUTO_LDFLAGS"} # XXX
4918 # turn off paren warnings in gcc
4919 if test "$GCC" = yes # && test -n "$DEBUG"
4921 CFLAGS
="$CFLAGS -Wno-parentheses -Wno-format-security"
4924 if test "$opt_profiling" = "yes"; then
4928 *) opt_static_link
=yes ;;
4930 DEBUG
= MALLOC_DEBUG
=
4936 if test "$opt_static_link" = yes; then
4939 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
4940 if test -n "$GCC" ||
test "$ac_cv_c_compiler_gnu" = "yes"; then
4944 *) LDFLAGS
="$LDFLAGS -static" ;; # XXX experimental
4949 # set the appropriate make variables for building the "build tools"
4950 # modify defaults based on whether or not we are cross compiling, since the
4951 # options for the target host may not be appropriate for the build host
4952 if test "X$cross_compiling" = "Xno"; then
4953 CC_FOR_BUILD
=${CC_FOR_BUILD-'$(CC)'}
4954 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"} # XXX - should it be '$(CPPFLAGS)'
4955 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
4956 # CFLAGS set above to default value if not passed in environment
4957 CFLAGS_FOR_BUILD
=${CFLAGS-'$(CFLAGS)'}
4958 LIBS_FOR_BUILD
=${LIBS_FOR_BUILD-'$(LIBS)'}
4960 CC_FOR_BUILD
=${CC_FOR_BUILD-"gcc"}
4961 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-""}
4962 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-""}
4963 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD="-g"}
4964 LIBS_FOR_BUILD
=${LIBS_FOR_BUILD-""}
4978 if test $ac_cv_c_compiler_gnu = yes; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4980 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4981 if ${ac_cv_prog_gcc_traditional+:} false
; then :
4982 $as_echo_n "(cached) " >&6
4984 ac_pattern
="Autoconf.*'x'"
4985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4991 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
4992 ac_cv_prog_gcc_traditional
=yes
4994 ac_cv_prog_gcc_traditional
=no
4999 if test $ac_cv_prog_gcc_traditional = no
; then
5000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5006 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
5007 ac_cv_prog_gcc_traditional
=yes
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5014 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5015 if test $ac_cv_prog_gcc_traditional = yes; then
5016 CC
="$CC -traditional"
5022 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
5024 # If the user specified --with-installed-readline=PREFIX and PREFIX
5025 # is not `yes', set ac_cv_rl_prefix to PREFIX
5026 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix
=$opt_with_installed_readline
5029 if test "X$bash_cv_termcap_lib" = "X"; then
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5033 $as_echo_n "checking which library has the termcap functions... " >&6; }
5036 if ${bash_cv_termcap_lib+:} false
; then :
5037 $as_echo_n "(cached) " >&6
5039 ac_fn_c_check_func
"$LINENO" "tgetent" "ac_cv_func_tgetent"
5040 if test "x$ac_cv_func_tgetent" = xyes
; then :
5041 bash_cv_termcap_lib
=libc
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
5044 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5045 if ${ac_cv_lib_termcap_tgetent+:} false
; then :
5046 $as_echo_n "(cached) " >&6
5048 ac_check_lib_save_LIBS
=$LIBS
5049 LIBS
="-ltermcap $LIBS"
5050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5053 /* Override any GCC internal prototype to avoid an error.
5054 Use char because int might match the return type of a GCC
5055 builtin and then its argument prototype would still apply. */
5068 if ac_fn_c_try_link
"$LINENO"; then :
5069 ac_cv_lib_termcap_tgetent
=yes
5071 ac_cv_lib_termcap_tgetent
=no
5073 rm -f core conftest.err conftest.
$ac_objext \
5074 conftest
$ac_exeext conftest.
$ac_ext
5075 LIBS
=$ac_check_lib_save_LIBS
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
5078 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5079 if test "x$ac_cv_lib_termcap_tgetent" = xyes
; then :
5080 bash_cv_termcap_lib
=libtermcap
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
5083 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5084 if ${ac_cv_lib_tinfo_tgetent+:} false
; then :
5085 $as_echo_n "(cached) " >&6
5087 ac_check_lib_save_LIBS
=$LIBS
5088 LIBS
="-ltinfo $LIBS"
5089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5092 /* Override any GCC internal prototype to avoid an error.
5093 Use char because int might match the return type of a GCC
5094 builtin and then its argument prototype would still apply. */
5107 if ac_fn_c_try_link
"$LINENO"; then :
5108 ac_cv_lib_tinfo_tgetent
=yes
5110 ac_cv_lib_tinfo_tgetent
=no
5112 rm -f core conftest.err conftest.
$ac_objext \
5113 conftest
$ac_exeext conftest.
$ac_ext
5114 LIBS
=$ac_check_lib_save_LIBS
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
5117 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5118 if test "x$ac_cv_lib_tinfo_tgetent" = xyes
; then :
5119 bash_cv_termcap_lib
=libtinfo
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
5122 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
5123 if ${ac_cv_lib_curses_tgetent+:} false
; then :
5124 $as_echo_n "(cached) " >&6
5126 ac_check_lib_save_LIBS
=$LIBS
5127 LIBS
="-lcurses $LIBS"
5128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5131 /* Override any GCC internal prototype to avoid an error.
5132 Use char because int might match the return type of a GCC
5133 builtin and then its argument prototype would still apply. */
5146 if ac_fn_c_try_link
"$LINENO"; then :
5147 ac_cv_lib_curses_tgetent
=yes
5149 ac_cv_lib_curses_tgetent
=no
5151 rm -f core conftest.err conftest.
$ac_objext \
5152 conftest
$ac_exeext conftest.
$ac_ext
5153 LIBS
=$ac_check_lib_save_LIBS
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
5156 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
5157 if test "x$ac_cv_lib_curses_tgetent" = xyes
; then :
5158 bash_cv_termcap_lib
=libcurses
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
5161 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
5162 if ${ac_cv_lib_ncurses_tgetent+:} false
; then :
5163 $as_echo_n "(cached) " >&6
5165 ac_check_lib_save_LIBS
=$LIBS
5166 LIBS
="-lncurses $LIBS"
5167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h. */
5170 /* Override any GCC internal prototype to avoid an error.
5171 Use char because int might match the return type of a GCC
5172 builtin and then its argument prototype would still apply. */
5185 if ac_fn_c_try_link
"$LINENO"; then :
5186 ac_cv_lib_ncurses_tgetent
=yes
5188 ac_cv_lib_ncurses_tgetent
=no
5190 rm -f core conftest.err conftest.
$ac_objext \
5191 conftest
$ac_exeext conftest.
$ac_ext
5192 LIBS
=$ac_check_lib_save_LIBS
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
5195 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
5196 if test "x$ac_cv_lib_ncurses_tgetent" = xyes
; then :
5197 bash_cv_termcap_lib
=libncurses
5199 bash_cv_termcap_lib
=gnutermcap
5212 if test "X$_bash_needmsg" = "Xyes"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5214 $as_echo_n "checking which library has the termcap functions... " >&6; }
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
5217 $as_echo "using $bash_cv_termcap_lib" >&6; }
5218 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
5219 LDFLAGS
="$LDFLAGS -L./lib/termcap"
5220 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
5221 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
5222 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
5223 TERMCAP_LIB
=-ltermcap
5225 elif test $bash_cv_termcap_lib = libtinfo
; then
5228 elif test $bash_cv_termcap_lib = libncurses
; then
5229 TERMCAP_LIB
=-lncurses
5231 elif test $bash_cv_termcap_lib = libc
; then
5235 TERMCAP_LIB
=-lcurses
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of installed readline library" >&5
5243 $as_echo_n "checking version of installed readline library... " >&6; }
5245 # What a pain in the ass this is.
5247 # save cpp and ld options
5248 _save_CFLAGS
="$CFLAGS"
5249 _save_LDFLAGS
="$LDFLAGS"
5252 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5253 # allows the caller to do something like $_rl_prefix=$withval if the user
5254 # specifies --with-installed-readline=PREFIX as an argument to configure
5256 if test -z "$ac_cv_rl_prefix"; then
5257 test "x$prefix" = xNONE
&& ac_cv_rl_prefix
=$ac_default_prefix || ac_cv_rl_prefix
=${prefix}
5260 eval ac_cv_rl_includedir
=${ac_cv_rl_prefix}/include
5261 eval ac_cv_rl_libdir
=${ac_cv_rl_prefix}/lib
5263 LIBS
="$LIBS -lreadline ${TERMCAP_LIB}"
5264 CFLAGS
="$CFLAGS -I${ac_cv_rl_includedir}"
5265 LDFLAGS
="$LDFLAGS -L${ac_cv_rl_libdir}"
5267 if ${ac_cv_rl_version+:} false
; then :
5268 $as_echo_n "(cached) " >&6
5270 if test "$cross_compiling" = yes; then :
5271 ac_cv_rl_version
='6.3'
5273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5277 #include <readline/readline.h>
5279 extern int rl_gnu_readline_p;
5284 fp = fopen("conftest.rlv", "w");
5287 if (rl_gnu_readline_p != 1)
5288 fprintf(fp, "0.0\n");
5290 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
5296 if ac_fn_c_try_run
"$LINENO"; then :
5297 ac_cv_rl_version
=`cat conftest.rlv`
5299 ac_cv_rl_version
='0.0'
5301 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5302 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5308 CFLAGS
="$_save_CFLAGS"
5309 LDFLAGS
="$_save_LDFLAGS"
5316 case "$ac_cv_rl_version" in
5317 2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*)
5318 RL_MAJOR
=`echo $ac_cv_rl_version | sed 's:\..*$::'`
5319 RL_MINOR
=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
5325 [0-9][0-9]) _RL_MAJOR
=$RL_MAJOR ;;
5326 [0-9]) _RL_MAJOR
=0$RL_MAJOR ;;
5332 [0-9][0-9]) _RL_MINOR
=$RL_MINOR ;;
5333 [0-9]) _RL_MINOR
=0$RL_MINOR ;;
5337 RL_VERSION
="0x${_RL_MAJOR}${_RL_MINOR}"
5339 # Readline versions greater than 4.2 have these defines in readline.h
5341 if test $ac_cv_rl_version = '0.0' ; then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not test version of installed readline library." >&5
5343 $as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
5344 elif test $RL_MAJOR -gt 4 ||
{ test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
5345 # set these for use by the caller
5346 RL_PREFIX
=$ac_cv_rl_prefix
5347 RL_LIBDIR
=$ac_cv_rl_libdir
5348 RL_INCLUDEDIR
=$ac_cv_rl_includedir
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5
5350 $as_echo "$ac_cv_rl_version" >&6; }
5354 cat >>confdefs.h
<<_ACEOF
5355 #define RL_READLINE_VERSION $RL_VERSION
5359 cat >>confdefs.h
<<_ACEOF
5360 #define RL_VERSION_MAJOR $RL_MAJOR
5364 cat >>confdefs.h
<<_ACEOF
5365 #define RL_VERSION_MINOR $RL_MINOR
5373 # set these for use by the caller
5374 RL_PREFIX
=$ac_cv_rl_prefix
5375 RL_LIBDIR
=$ac_cv_rl_libdir
5376 RL_INCLUDEDIR
=$ac_cv_rl_includedir
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5
5379 $as_echo "$ac_cv_rl_version" >&6; }
5384 case "$ac_cv_rl_version" in
5386 *) opt_with_installed_readline
=no
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: installed readline library is too old to be linked with bash" >&5
5388 $as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using private bash version" >&5
5390 $as_echo "$as_me: WARNING: using private bash version" >&2;}
5396 if test $opt_readline = yes; then
5397 $as_echo "#define READLINE 1" >>confdefs.h
5399 if test "$opt_with_installed_readline" != "no" ; then
5400 case "$opt_with_installed_readline" in
5402 *) case "$RL_INCLUDEDIR" in
5404 *) RL_INCLUDE
='-I${RL_INCLUDEDIR}' ;;
5409 READLINE_LIB
=-lreadline
5410 # section for OS versions that don't allow unresolved symbols
5411 # to be compiled into dynamic libraries.
5413 cygwin
*) TILDE_LIB
= ;;
5416 RL_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
5417 READLINE_DEP
='$(READLINE_LIBRARY)'
5418 # section for OS versions that ship an older/broken version of
5419 # readline as a standard dynamic library and don't allow a
5420 # static version specified as -llibname to override the
5422 case "${host_os}" in
5423 darwin
[89]*|darwin10
*) READLINE_LIB
='${READLINE_LIBRARY}' ;;
5424 *) READLINE_LIB
=-lreadline ;;
5428 RL_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
5429 READLINE_LIB
= READLINE_DEP
=
5431 if test $opt_history = yes ||
test $opt_bang_history = yes; then
5432 if test $opt_history = yes; then
5433 $as_echo "#define HISTORY 1" >>confdefs.h
5436 if test $opt_bang_history = yes; then
5437 $as_echo "#define BANG_HISTORY 1" >>confdefs.h
5440 if test "$opt_with_installed_readline" != "no"; then
5441 HIST_LIBDIR
=$RL_LIBDIR
5443 HISTORY_LIB
=-lhistory
5444 case "$opt_with_installed_readline" in
5446 *) case "$RL_INCLUDEDIR" in
5448 *) RL_INCLUDE
='-I${RL_INCLUDEDIR}' ;;
5453 HIST_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
5454 HISTORY_DEP
='$(HISTORY_LIBRARY)'
5455 # section for OS versions that ship an older version of
5456 # readline as a standard dynamic library and don't allow a
5457 # static version specified as -llibname to override the
5459 case "${host_os}" in
5460 darwin
[89]*|darwin10
*) HISTORY_LIB
='${HISTORY_LIBRARY}' ;;
5461 *) HISTORY_LIB
=-lhistory ;;
5465 HIST_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
5466 HISTORY_LIB
= HISTORY_DEP
=
5479 # Find a good install program. We prefer a C program (faster),
5480 # so one script is as good as another. But avoid the broken or
5481 # incompatible versions:
5482 # SysV /etc/install, /usr/sbin/install
5483 # SunOS /usr/etc/install
5484 # IRIX /sbin/install
5486 # AmigaOS /C/install, which installs bootblocks on floppy discs
5487 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5488 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5489 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5490 # OS/2's system install, which has a completely different semantic
5491 # ./install, which can be erroneously created by make from ./install.sh.
5492 # Reject install programs that cannot install multiple files.
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5494 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5495 if test -z "$INSTALL"; then
5496 if ${ac_cv_path_install+:} false
; then :
5497 $as_echo_n "(cached) " >&6
5499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5503 test -z "$as_dir" && as_dir
=.
5504 # Account for people who put trailing slashes in PATH elements.
5505 case $as_dir/ in #((
5506 .
/ | .
// |
/[cC
]/* | \
5507 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5508 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5511 # OSF1 and SCO ODT 3.0 have their own names for install.
5512 # Don't use installbsd from OSF since it installs stuff as root
5514 for ac_prog
in ginstall scoinst
install; do
5515 for ac_exec_ext
in '' $ac_executable_extensions; do
5516 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
5517 if test $ac_prog = install &&
5518 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5519 # AIX install. It has an incompatible calling convention.
5521 elif test $ac_prog = install &&
5522 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5523 # program-specific install script used by HP pwplus--don't use.
5526 rm -rf conftest.one conftest.two conftest.dir
5527 echo one
> conftest.one
5528 echo two
> conftest.two
5530 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5531 test -s conftest.one
&& test -s conftest.two
&&
5532 test -s conftest.dir
/conftest.one
&&
5533 test -s conftest.dir
/conftest.two
5535 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5548 rm -rf conftest.one conftest.two conftest.dir
5551 if test "${ac_cv_path_install+set}" = set; then
5552 INSTALL
=$ac_cv_path_install
5554 # As a last resort, use the slow shell script. Don't cache a
5555 # value for INSTALL within a source directory, because that will
5556 # break other packages using the cache if that directory is
5557 # removed, or if the value is a relative name.
5558 INSTALL
=$ac_install_sh
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5562 $as_echo "$INSTALL" >&6; }
5564 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5565 # It thinks the first close brace ends the variable substitution.
5566 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5568 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5570 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5572 if test -n "$ac_tool_prefix"; then
5573 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5574 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if ${ac_cv_prog_AR+:} false
; then :
5578 $as_echo_n "(cached) " >&6
5580 if test -n "$AR"; then
5581 ac_cv_prog_AR
="$AR" # Let the user override the test.
5583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5587 test -z "$as_dir" && as_dir
=.
5588 for ac_exec_ext
in '' $ac_executable_extensions; do
5589 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5590 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5601 if test -n "$AR"; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5603 $as_echo "$AR" >&6; }
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 $as_echo "no" >&6; }
5611 if test -z "$ac_cv_prog_AR"; then
5613 # Extract the first word of "ar", so it can be a program name with args.
5614 set dummy
ar; ac_word
=$2
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; }
5617 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5618 $as_echo_n "(cached) " >&6
5620 if test -n "$ac_ct_AR"; then
5621 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5627 test -z "$as_dir" && as_dir
=.
5628 for ac_exec_ext
in '' $ac_executable_extensions; do
5629 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5630 ac_cv_prog_ac_ct_AR
="ar"
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5640 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5641 if test -n "$ac_ct_AR"; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5643 $as_echo "$ac_ct_AR" >&6; }
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }
5649 if test "x$ac_ct_AR" = x
; then
5652 case $cross_compiling:$ac_tool_warned in
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5656 ac_tool_warned
=yes ;;
5664 test -n "$ARFLAGS" || ARFLAGS
="cr"
5665 if test -n "$ac_tool_prefix"; then
5666 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5667 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 $as_echo_n "checking for $ac_word... " >&6; }
5670 if ${ac_cv_prog_RANLIB+:} false
; then :
5671 $as_echo_n "(cached) " >&6
5673 if test -n "$RANLIB"; then
5674 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5680 test -z "$as_dir" && as_dir
=.
5681 for ac_exec_ext
in '' $ac_executable_extensions; do
5682 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 RANLIB
=$ac_cv_prog_RANLIB
5694 if test -n "$RANLIB"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5696 $as_echo "$RANLIB" >&6; }
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5704 if test -z "$ac_cv_prog_RANLIB"; then
5705 ac_ct_RANLIB
=$RANLIB
5706 # Extract the first word of "ranlib", so it can be a program name with args.
5707 set dummy ranlib
; ac_word
=$2
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 $as_echo_n "checking for $ac_word... " >&6; }
5710 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5711 $as_echo_n "(cached) " >&6
5713 if test -n "$ac_ct_RANLIB"; then
5714 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5720 test -z "$as_dir" && as_dir
=.
5721 for ac_exec_ext
in '' $ac_executable_extensions; do
5722 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5723 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5734 if test -n "$ac_ct_RANLIB"; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5736 $as_echo "$ac_ct_RANLIB" >&6; }
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5742 if test "x$ac_ct_RANLIB" = x
; then
5745 case $cross_compiling:$ac_tool_warned in
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5749 ac_tool_warned
=yes ;;
5751 RANLIB
=$ac_ct_RANLIB
5754 RANLIB
="$ac_cv_prog_RANLIB"
5757 for ac_prog
in 'bison -y' byacc
5759 # Extract the first word of "$ac_prog", so it can be a program name with args.
5760 set dummy
$ac_prog; ac_word
=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if ${ac_cv_prog_YACC+:} false
; then :
5764 $as_echo_n "(cached) " >&6
5766 if test -n "$YACC"; then
5767 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5773 test -z "$as_dir" && as_dir
=.
5774 for ac_exec_ext
in '' $ac_executable_extensions; do
5775 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5776 ac_cv_prog_YACC
="$ac_prog"
5777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 YACC
=$ac_cv_prog_YACC
5787 if test -n "$YACC"; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5789 $as_echo "$YACC" >&6; }
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5796 test -n "$YACC" && break
5798 test -n "$YACC" || YACC
="yacc"
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5801 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5803 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5804 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
5805 $as_echo_n "(cached) " >&6
5807 cat >conftest.
make <<\_ACEOF
5810 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5812 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5813 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5815 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5817 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5821 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5823 $as_echo "yes" >&6; }
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5828 SET_MAKE
="MAKE=${MAKE-make}"
5832 case "$ac_cv_prog_YACC" in
5834 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bison not available; needed to process parse.y" >&5
5835 $as_echo "$as_me: WARNING: bison not available; needed to process parse.y" >&2;} ;;
5839 opennt
*|interix
*) MAKE_SHELL
="$INTERIX_ROOT/bin/sh" ;;
5840 *) MAKE_SHELL
=/bin
/sh
;;
5844 if test x
$SIZE = x
; then
5845 if test x
$ac_tool_prefix = x
; then
5848 SIZE
=${ac_tool_prefix}size
5849 save_IFS
=$IFS ; IFS
=:
5851 for dir
in $PATH; do
5852 if test -x $dir/$SIZE ; then
5857 if test $size_found -eq 0; then
5865 # Checks for stat-related time functions.
5867 # Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2012 Free Software
5870 # This file is free software; the Free Software Foundation
5871 # gives unlimited permission to copy and/or distribute it,
5872 # with or without modifications, as long as this notice is preserved.
5875 # st_atim.tv_nsec - Linux, Solaris, Cygwin
5876 # st_atimespec.tv_nsec - FreeBSD, NetBSD, if ! defined _POSIX_SOURCE
5877 # st_atimensec - FreeBSD, NetBSD, if defined _POSIX_SOURCE
5878 # st_atim.st__tim.tv_nsec - UnixWare (at least 2.1.2 through 7.1)
5880 # st_birthtimespec - FreeBSD, NetBSD (hidden on OpenBSD 3.9, anyway)
5881 # st_birthtim - Cygwin 1.7.0+
5885 # Configure checks for struct timespec
5887 # Copyright (C) 2000-2001, 2003-2007, 2009-2011, 2012 Free Software Foundation, Inc.
5889 # This file is free software; the Free Software Foundation
5890 # gives unlimited permission to copy and/or distribute it,
5891 # with or without modifications, as long as this notice is preserved.
5893 # Original written by Paul Eggert and Jim Meyering.
5894 # Modified by Chet Ramey for bash
5900 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5904 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5905 if ${ac_cv_c_const+:} false
; then :
5906 $as_echo_n "(cached) " >&6
5908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5916 /* Ultrix mips cc rejects this sort of thing. */
5917 typedef int charset[2];
5918 const charset cs = { 0, 0 };
5919 /* SunOS 4.1.1 cc rejects this. */
5920 char const *const *pcpcc;
5922 /* NEC SVR4.0.2 mips cc rejects this. */
5923 struct point {int x, y;};
5924 static struct point const zero = {0,0};
5925 /* AIX XL C 1.02.0.0 rejects this.
5926 It does not let you subtract one const X* pointer from another in
5927 an arm of an if-expression whose if-part is not a constant
5929 const char *g = "string";
5930 pcpcc = &g + (g ? g-g : 0);
5931 /* HPUX 7.0 cc rejects these. */
5933 ppc = (char**) pcpcc;
5934 pcpcc = (char const *const *) ppc;
5935 { /* SCO 3.2v4 cc rejects this sort of thing. */
5938 char const *s = 0 ? (char *) 0 : (char const *) 0;
5943 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5945 const int *foo = &x[0];
5948 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5949 typedef const int *iptr;
5953 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5954 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5955 struct s { int j; const int *ap[3]; } bx;
5956 struct s *b = &bx; b->j = 5;
5958 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5962 return !cs[0] && !zero.x;
5969 if ac_fn_c_try_compile
"$LINENO"; then :
5974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5977 $as_echo "$ac_cv_c_const" >&6; }
5978 if test $ac_cv_c_const = no
; then
5980 $as_echo "#define const /**/" >>confdefs.h
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5985 $as_echo_n "checking for inline... " >&6; }
5986 if ${ac_cv_c_inline+:} false
; then :
5987 $as_echo_n "(cached) " >&6
5990 for ac_kw
in inline __inline__ __inline
; do
5991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5995 static $ac_kw foo_t static_foo () {return 0; }
5996 $ac_kw foo_t foo () {return 0; }
6000 if ac_fn_c_try_compile
"$LINENO"; then :
6001 ac_cv_c_inline
=$ac_kw
6003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6004 test "$ac_cv_c_inline" != no
&& break
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6009 $as_echo "$ac_cv_c_inline" >&6; }
6011 case $ac_cv_c_inline in
6014 case $ac_cv_c_inline in
6016 *) ac_val
=$ac_cv_c_inline;;
6018 cat >>confdefs.h
<<_ACEOF
6020 #define inline $ac_val
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6027 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6028 if ${ac_cv_c_bigendian+:} false
; then :
6029 $as_echo_n "(cached) " >&6
6031 ac_cv_c_bigendian
=unknown
6032 # See if we're dealing with a universal compiler.
6033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6035 #ifndef __APPLE_CC__
6036 not a universal capable compiler
6041 if ac_fn_c_try_compile
"$LINENO"; then :
6043 # Check for potential -arch flags. It is not universal unless
6044 # there are at least two -arch flags with different values.
6047 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6048 if test -n "$ac_prev"; then
6050 i?
86 | x86_64 | ppc | ppc64
)
6051 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
6054 ac_cv_c_bigendian
=universal
6060 elif test "x$ac_word" = "x-arch"; then
6065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6066 if test $ac_cv_c_bigendian = unknown
; then
6067 # See if sys/param.h defines the BYTE_ORDER macro.
6068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6070 #include <sys/types.h>
6071 #include <sys/param.h>
6076 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6077 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6086 if ac_fn_c_try_compile
"$LINENO"; then :
6087 # It does; now see whether it defined to BIG_ENDIAN or not.
6088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h. */
6090 #include <sys/types.h>
6091 #include <sys/param.h>
6096 #if BYTE_ORDER != BIG_ENDIAN
6104 if ac_fn_c_try_compile
"$LINENO"; then :
6105 ac_cv_c_bigendian
=yes
6107 ac_cv_c_bigendian
=no
6109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6113 if test $ac_cv_c_bigendian = unknown
; then
6114 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6122 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6130 if ac_fn_c_try_compile
"$LINENO"; then :
6131 # It does; now see whether it defined to _BIG_ENDIAN or not.
6132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6147 if ac_fn_c_try_compile
"$LINENO"; then :
6148 ac_cv_c_bigendian
=yes
6150 ac_cv_c_bigendian
=no
6152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6156 if test $ac_cv_c_bigendian = unknown
; then
6157 # Compile a test program.
6158 if test "$cross_compiling" = yes; then :
6159 # Try to guess by grepping values from an object file.
6160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6161 /* end confdefs.h. */
6162 short int ascii_mm[] =
6163 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6164 short int ascii_ii[] =
6165 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6166 int use_ascii (int i) {
6167 return ascii_mm[i] + ascii_ii[i];
6169 short int ebcdic_ii[] =
6170 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6171 short int ebcdic_mm[] =
6172 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6173 int use_ebcdic (int i) {
6174 return ebcdic_mm[i] + ebcdic_ii[i];
6181 return use_ascii (foo) == use_ebcdic (foo);
6186 if ac_fn_c_try_compile
"$LINENO"; then :
6187 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
6188 ac_cv_c_bigendian
=yes
6190 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
6191 if test "$ac_cv_c_bigendian" = unknown
; then
6192 ac_cv_c_bigendian
=no
6194 # finding both strings is unlikely to happen, but who knows?
6195 ac_cv_c_bigendian
=unknown
6199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6202 /* end confdefs.h. */
6203 $ac_includes_default
6208 /* Are we little or big endian? From Harbison&Steele. */
6212 char c[sizeof (long int)];
6215 return u.c[sizeof (long int) - 1] == 1;
6221 if ac_fn_c_try_run
"$LINENO"; then :
6222 ac_cv_c_bigendian
=no
6224 ac_cv_c_bigendian
=yes
6226 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6227 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6233 $as_echo "$ac_cv_c_bigendian" >&6; }
6234 case $ac_cv_c_bigendian in #(
6236 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6242 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6246 as_fn_error $?
"unknown endianness
6247 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
6251 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
6252 if ${ac_cv_c_stringize+:} false
; then :
6253 $as_echo_n "(cached) " >&6
6255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6259 char *s = x(teststring);
6261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6262 $EGREP "#teststring" >/dev
/null
2>&1; then :
6263 ac_cv_c_stringize
=no
6265 ac_cv_c_stringize
=yes
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
6271 $as_echo "$ac_cv_c_stringize" >&6; }
6272 if test $ac_cv_c_stringize = yes; then
6274 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
6281 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
6282 if ${ac_cv_type_long_double_wider+:} false
; then :
6283 $as_echo_n "(cached) " >&6
6285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6288 long double const a[] =
6290 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6291 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6296 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6297 + (x ? f (x) : 'c'));
6303 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6304 + (DBL_MANT_DIG < LDBL_MANT_DIG)
6305 - (LDBL_MAX_EXP < DBL_MAX_EXP)
6306 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6307 && (int) LDBL_EPSILON == 0
6310 return test_array [0];
6316 if ac_fn_c_try_compile
"$LINENO"; then :
6317 ac_cv_type_long_double_wider
=yes
6319 ac_cv_type_long_double_wider
=no
6321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
6324 $as_echo "$ac_cv_type_long_double_wider" >&6; }
6325 if test $ac_cv_type_long_double_wider = yes; then
6327 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
6331 ac_cv_c_long_double
=$ac_cv_type_long_double_wider
6332 if test $ac_cv_c_long_double = yes; then
6334 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6339 $as_echo_n "checking for function prototypes... " >&6; }
6340 if test "$ac_cv_prog_cc_c89" != no
; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6342 $as_echo "yes" >&6; }
6344 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6347 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351 $as_echo "no" >&6; }
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
6355 $as_echo_n "checking whether char is unsigned... " >&6; }
6356 if ${ac_cv_c_char_unsigned+:} false
; then :
6357 $as_echo_n "(cached) " >&6
6359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6361 $ac_includes_default
6365 static int test_array [1 - 2 * !(((char) -1) < 0)];
6367 return test_array [0];
6373 if ac_fn_c_try_compile
"$LINENO"; then :
6374 ac_cv_c_char_unsigned
=no
6376 ac_cv_c_char_unsigned
=yes
6378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
6381 $as_echo "$ac_cv_c_char_unsigned" >&6; }
6382 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
6383 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6388 $as_echo_n "checking for working volatile... " >&6; }
6389 if ${ac_cv_c_volatile+:} false
; then :
6390 $as_echo_n "(cached) " >&6
6392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h. */
6400 int * volatile y = (int *) 0;
6406 if ac_fn_c_try_compile
"$LINENO"; then :
6407 ac_cv_c_volatile
=yes
6411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6414 $as_echo "$ac_cv_c_volatile" >&6; }
6415 if test $ac_cv_c_volatile = no
; then
6417 $as_echo "#define volatile /**/" >>confdefs.h
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6422 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6423 if ${ac_cv_c_restrict+:} false
; then :
6424 $as_echo_n "(cached) " >&6
6427 # The order here caters to the fact that C++ does not require restrict.
6428 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
6429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6431 typedef int * int_ptr;
6432 int foo (int_ptr $ac_kw ip) {
6446 if ac_fn_c_try_compile
"$LINENO"; then :
6447 ac_cv_c_restrict
=$ac_kw
6449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6450 test "$ac_cv_c_restrict" != no
&& break
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6455 $as_echo "$ac_cv_c_restrict" >&6; }
6457 case $ac_cv_c_restrict in
6459 no
) $as_echo "#define restrict /**/" >>confdefs.h
6461 *) cat >>confdefs.h
<<_ACEOF
6462 #define restrict $ac_cv_c_restrict
6470 if test -n "$ac_aux_dir"; then
6471 case "$ac_aux_dir" in
6472 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
6473 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6476 if test -z "$MKINSTALLDIRS"; then
6477 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6483 $as_echo_n "checking whether NLS is requested... " >&6; }
6484 # Check whether --enable-nls was given.
6485 if test "${enable_nls+set}" = set; then :
6486 enableval
=$enable_nls; USE_NLS
=$enableval
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6492 $as_echo "$USE_NLS" >&6; }
6499 # Prepare PATH_SEPARATOR.
6500 # The user is always right.
6501 if test "${PATH_SEPARATOR+set}" != set; then
6502 echo "#! /bin/sh" >conf$$.sh
6503 echo "exit 0" >>conf$$.sh
6505 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6513 # Find out how to test for executable files. Don't use a zero-byte file,
6514 # as systems may use methods other than mode bits to determine executability.
6515 cat >conf$$.
file <<_ASEOF
6519 chmod +x conf$$.
file
6520 if test -x conf$$.
file >/dev
/null
2>&1; then
6521 ac_executable_p
="test -x"
6523 ac_executable_p
="test -f"
6527 # Extract the first word of "msgfmt", so it can be a program name with args.
6528 set dummy msgfmt
; ac_word
=$2
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6530 $as_echo_n "checking for $ac_word... " >&6; }
6531 if ${ac_cv_path_MSGFMT+:} false
; then :
6532 $as_echo_n "(cached) " >&6
6536 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6539 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6540 for ac_dir
in $PATH; do
6542 test -z "$ac_dir" && ac_dir
=.
6543 for ac_exec_ext
in '' $ac_executable_extensions; do
6544 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6545 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
6546 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
6547 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
6554 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6558 MSGFMT
="$ac_cv_path_MSGFMT"
6559 if test "$MSGFMT" != ":"; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6561 $as_echo "$MSGFMT" >&6; }
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6567 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6568 set dummy gmsgfmt
; ac_word
=$2
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570 $as_echo_n "checking for $ac_word... " >&6; }
6571 if ${ac_cv_path_GMSGFMT+:} false
; then :
6572 $as_echo_n "(cached) " >&6
6576 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6579 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6583 test -z "$as_dir" && as_dir
=.
6584 for ac_exec_ext
in '' $ac_executable_extensions; do
6585 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6586 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6598 GMSGFMT
=$ac_cv_path_GMSGFMT
6599 if test -n "$GMSGFMT"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6601 $as_echo "$GMSGFMT" >&6; }
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6610 # Prepare PATH_SEPARATOR.
6611 # The user is always right.
6612 if test "${PATH_SEPARATOR+set}" != set; then
6613 echo "#! /bin/sh" >conf$$.sh
6614 echo "exit 0" >>conf$$.sh
6616 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6624 # Find out how to test for executable files. Don't use a zero-byte file,
6625 # as systems may use methods other than mode bits to determine executability.
6626 cat >conf$$.
file <<_ASEOF
6630 chmod +x conf$$.
file
6631 if test -x conf$$.
file >/dev
/null
2>&1; then
6632 ac_executable_p
="test -x"
6634 ac_executable_p
="test -f"
6638 # Extract the first word of "xgettext", so it can be a program name with args.
6639 set dummy xgettext
; ac_word
=$2
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641 $as_echo_n "checking for $ac_word... " >&6; }
6642 if ${ac_cv_path_XGETTEXT+:} false
; then :
6643 $as_echo_n "(cached) " >&6
6647 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6650 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6651 for ac_dir
in $PATH; do
6653 test -z "$ac_dir" && ac_dir
=.
6654 for ac_exec_ext
in '' $ac_executable_extensions; do
6655 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6656 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
6657 (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
6658 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
6665 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6669 XGETTEXT
="$ac_cv_path_XGETTEXT"
6670 if test "$XGETTEXT" != ":"; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6672 $as_echo "$XGETTEXT" >&6; }
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675 $as_echo "no" >&6; }
6681 # Prepare PATH_SEPARATOR.
6682 # The user is always right.
6683 if test "${PATH_SEPARATOR+set}" != set; then
6684 echo "#! /bin/sh" >conf$$.sh
6685 echo "exit 0" >>conf$$.sh
6687 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6695 # Find out how to test for executable files. Don't use a zero-byte file,
6696 # as systems may use methods other than mode bits to determine executability.
6697 cat >conf$$.
file <<_ASEOF
6701 chmod +x conf$$.
file
6702 if test -x conf$$.
file >/dev
/null
2>&1; then
6703 ac_executable_p
="test -x"
6705 ac_executable_p
="test -f"
6709 # Extract the first word of "msgmerge", so it can be a program name with args.
6710 set dummy msgmerge
; ac_word
=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if ${ac_cv_path_MSGMERGE+:} false
; then :
6714 $as_echo_n "(cached) " >&6
6718 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
6721 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6722 for ac_dir
in $PATH; do
6724 test -z "$ac_dir" && ac_dir
=.
6725 for ac_exec_ext
in '' $ac_executable_extensions; do
6726 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6727 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
6728 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
6735 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
6739 MSGMERGE
="$ac_cv_path_MSGMERGE"
6740 if test "$MSGMERGE" != ":"; then
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6742 $as_echo "$MSGMERGE" >&6; }
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6749 if test "$GMSGFMT" != ":"; then
6750 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
6751 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
6754 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6756 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6761 if test "$XGETTEXT" != ":"; then
6762 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
6763 (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
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6767 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6773 ac_config_commands
="$ac_config_commands default-1"
6776 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6777 if test "x$ac_cv_type_off_t" = xyes
; then :
6781 cat >>confdefs.h
<<_ACEOF
6782 #define off_t long int
6787 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6788 if test "x$ac_cv_type_size_t" = xyes
; then :
6792 cat >>confdefs.h
<<_ACEOF
6793 #define size_t unsigned int
6798 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6799 # for constant arguments. Useless!
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6801 $as_echo_n "checking for working alloca.h... " >&6; }
6802 if ${ac_cv_working_alloca_h+:} false
; then :
6803 $as_echo_n "(cached) " >&6
6805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6811 char *p = (char *) alloca (2 * sizeof (int));
6817 if ac_fn_c_try_link
"$LINENO"; then :
6818 ac_cv_working_alloca_h
=yes
6820 ac_cv_working_alloca_h
=no
6822 rm -f core conftest.err conftest.
$ac_objext \
6823 conftest
$ac_exeext conftest.
$ac_ext
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6826 $as_echo "$ac_cv_working_alloca_h" >&6; }
6827 if test $ac_cv_working_alloca_h = yes; then
6829 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6834 $as_echo_n "checking for alloca... " >&6; }
6835 if ${ac_cv_func_alloca_works+:} false
; then :
6836 $as_echo_n "(cached) " >&6
6838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6841 # define alloca __builtin_alloca
6844 # include <malloc.h>
6845 # define alloca _alloca
6847 # ifdef HAVE_ALLOCA_H
6848 # include <alloca.h>
6853 # ifndef alloca /* predefined by HP cc +Olibcalls */
6854 void *alloca (size_t);
6864 char *p = (char *) alloca (1);
6870 if ac_fn_c_try_link
"$LINENO"; then :
6871 ac_cv_func_alloca_works
=yes
6873 ac_cv_func_alloca_works
=no
6875 rm -f core conftest.err conftest.
$ac_objext \
6876 conftest
$ac_exeext conftest.
$ac_ext
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6879 $as_echo "$ac_cv_func_alloca_works" >&6; }
6881 if test $ac_cv_func_alloca_works = yes; then
6883 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6886 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6887 # that cause trouble. Some versions do not even contain alloca or
6888 # contain a buggy version. If you still want to use their alloca,
6889 # use ar to extract alloca.o from them instead of compiling alloca.c.
6891 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6893 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6897 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6898 if ${ac_cv_os_cray+:} false
; then :
6899 $as_echo_n "(cached) " >&6
6901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6902 /* end confdefs.h. */
6903 #if defined CRAY && ! defined CRAY2
6910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6911 $EGREP "webecray" >/dev
/null
2>&1; then :
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6920 $as_echo "$ac_cv_os_cray" >&6; }
6921 if test $ac_cv_os_cray = yes; then
6922 for ac_func
in _getb67 GETB67 getb67
; do
6923 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6924 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6925 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6927 cat >>confdefs.h
<<_ACEOF
6928 #define CRAY_STACKSEG_END $ac_func
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6938 $as_echo_n "checking stack direction for C alloca... " >&6; }
6939 if ${ac_cv_c_stack_direction+:} false
; then :
6940 $as_echo_n "(cached) " >&6
6942 if test "$cross_compiling" = yes; then :
6943 ac_cv_c_stack_direction
=0
6945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6947 $ac_includes_default
6949 find_stack_direction (int *addr, int depth)
6954 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6955 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6960 main (int argc, char **argv)
6962 return find_stack_direction (0, argc + !argv + 20) < 0;
6965 if ac_fn_c_try_run
"$LINENO"; then :
6966 ac_cv_c_stack_direction
=1
6968 ac_cv_c_stack_direction
=-1
6970 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6971 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6976 $as_echo "$ac_cv_c_stack_direction" >&6; }
6977 cat >>confdefs.h
<<_ACEOF
6978 #define STACK_DIRECTION $ac_cv_c_stack_direction
6987 for ac_header
in $ac_header_list
6989 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6990 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6992 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6993 cat >>confdefs.h
<<_ACEOF
6994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7008 for ac_func
in getpagesize
7010 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7011 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7012 cat >>confdefs.h
<<_ACEOF
7013 #define HAVE_GETPAGESIZE 1
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7020 $as_echo_n "checking for working mmap... " >&6; }
7021 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7022 $as_echo_n "(cached) " >&6
7024 if test "$cross_compiling" = yes; then :
7025 ac_cv_func_mmap_fixed_mapped
=no
7027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7029 $ac_includes_default
7030 /* malloc might have been renamed as rpl_malloc. */
7033 /* Thanks to Mike Haertel and Jim Avera for this test.
7034 Here is a matrix of mmap possibilities:
7035 mmap private not fixed
7036 mmap private fixed at somewhere currently unmapped
7037 mmap private fixed at somewhere already mapped
7038 mmap shared not fixed
7039 mmap shared fixed at somewhere currently unmapped
7040 mmap shared fixed at somewhere already mapped
7041 For private mappings, we should verify that changes cannot be read()
7042 back from the file, nor mmap's back from the file at a different
7043 address. (There have been systems where private was not correctly
7044 implemented like the infamous i386 svr4.0, and systems where the
7045 VM page cache was not coherent with the file system buffer cache
7046 like early versions of FreeBSD and possibly contemporary NetBSD.)
7047 For shared mappings, we should conversely verify that changes get
7048 propagated back to all the places they're supposed to be.
7050 Grep wants private fixed already mapped.
7051 The main things grep needs to know about mmap are:
7052 * does it exist and is it safe to write into the mmap'd area
7053 * how to use it (BSD variants) */
7056 #include <sys/mman.h>
7058 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7062 /* This mess was copied from the GNU getpagesize.h. */
7063 #ifndef HAVE_GETPAGESIZE
7064 # ifdef _SC_PAGESIZE
7065 # define getpagesize() sysconf(_SC_PAGESIZE)
7066 # else /* no _SC_PAGESIZE */
7067 # ifdef HAVE_SYS_PARAM_H
7068 # include <sys/param.h>
7069 # ifdef EXEC_PAGESIZE
7070 # define getpagesize() EXEC_PAGESIZE
7071 # else /* no EXEC_PAGESIZE */
7073 # define getpagesize() NBPG * CLSIZE
7076 # endif /* no CLSIZE */
7077 # else /* no NBPG */
7079 # define getpagesize() NBPC
7080 # else /* no NBPC */
7082 # define getpagesize() PAGESIZE
7083 # endif /* PAGESIZE */
7084 # endif /* no NBPC */
7085 # endif /* no NBPG */
7086 # endif /* no EXEC_PAGESIZE */
7087 # else /* no HAVE_SYS_PARAM_H */
7088 # define getpagesize() 8192 /* punt totally */
7089 # endif /* no HAVE_SYS_PARAM_H */
7090 # endif /* no _SC_PAGESIZE */
7092 #endif /* no HAVE_GETPAGESIZE */
7097 char *data, *data2, *data3;
7102 pagesize = getpagesize ();
7104 /* First, make a file with some known garbage in it. */
7105 data = (char *) malloc (pagesize);
7108 for (i = 0; i < pagesize; ++i)
7109 *(data + i) = rand ();
7111 fd = creat ("conftest.mmap", 0600);
7114 if (write (fd, data, pagesize) != pagesize)
7118 /* Next, check that the tail of a page is zero-filled. File must have
7119 non-zero length, otherwise we risk SIGBUS for entire page. */
7120 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7124 if (write (fd2, cdata2, 1) != 1)
7126 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7127 if (data2 == MAP_FAILED)
7129 for (i = 0; i < pagesize; ++i)
7133 if (munmap (data2, pagesize))
7136 /* Next, try to mmap the file at a fixed address which already has
7137 something else allocated at it. If we can, also make sure that
7138 we see the same garbage. */
7139 fd = open ("conftest.mmap", O_RDWR);
7142 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7143 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7145 for (i = 0; i < pagesize; ++i)
7146 if (*(data + i) != *(data2 + i))
7149 /* Finally, make sure that changes to the mapped area do not
7150 percolate back to the file as seen by read(). (This is a bug on
7151 some variants of i386 svr4.0.) */
7152 for (i = 0; i < pagesize; ++i)
7153 *(data2 + i) = *(data2 + i) + 1;
7154 data3 = (char *) malloc (pagesize);
7157 if (read (fd, data3, pagesize) != pagesize)
7159 for (i = 0; i < pagesize; ++i)
7160 if (*(data + i) != *(data3 + i))
7166 if ac_fn_c_try_run
"$LINENO"; then :
7167 ac_cv_func_mmap_fixed_mapped
=yes
7169 ac_cv_func_mmap_fixed_mapped
=no
7171 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7172 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7177 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7178 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7180 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7183 rm -f conftest.mmap conftest.txt
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7187 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7188 if ${ac_cv_gnu_library_2_1+:} false
; then :
7189 $as_echo_n "(cached) " >&6
7191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7194 #include <features.h>
7195 #ifdef __GNU_LIBRARY__
7196 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7203 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
7204 ac_cv_gnu_library_2_1
=yes
7206 ac_cv_gnu_library_2_1
=no
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7214 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7216 GLIBC21
="$ac_cv_gnu_library_2_1"
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7222 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7223 if ${gt_cv_int_divbyzero_sigfpe+:} false
; then :
7224 $as_echo_n "(cached) " >&6
7227 if test "$cross_compiling" = yes; then :
7229 # Guess based on the CPU.
7231 alpha
* | i3456786 | m68k | s390
*)
7232 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
7234 gt_cv_int_divbyzero_sigfpe
="guessing no";;
7238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7246 sigfpe_handler (int sig)
7248 sigfpe_handler (sig) int sig;
7251 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7252 exit (sig != SIGFPE);
7262 signal (SIGFPE, sigfpe_handler);
7263 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7264 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7265 signal (SIGTRAP, sigfpe_handler);
7267 /* Linux/SPARC yields signal SIGILL. */
7268 #if defined (__sparc__) && defined (__linux__)
7269 signal (SIGILL, sigfpe_handler);
7278 if ac_fn_c_try_run
"$LINENO"; then :
7279 gt_cv_int_divbyzero_sigfpe
=yes
7281 gt_cv_int_divbyzero_sigfpe
=no
7283 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7284 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7290 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7291 case "$gt_cv_int_divbyzero_sigfpe" in
7296 cat >>confdefs.h
<<_ACEOF
7297 #define INTDIV0_RAISES_SIGFPE $value
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7303 $as_echo_n "checking for inttypes.h... " >&6; }
7304 if ${jm_ac_cv_header_inttypes_h+:} false
; then :
7305 $as_echo_n "(cached) " >&6
7307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7309 #include <sys/types.h>
7310 #include <inttypes.h>
7314 uintmax_t i = (uintmax_t) -1;
7319 if ac_fn_c_try_compile
"$LINENO"; then :
7320 jm_ac_cv_header_inttypes_h
=yes
7322 jm_ac_cv_header_inttypes_h
=no
7324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
7327 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
7328 if test $jm_ac_cv_header_inttypes_h = yes; then
7330 cat >>confdefs.h
<<_ACEOF
7331 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
7338 $as_echo_n "checking for stdint.h... " >&6; }
7339 if ${jm_ac_cv_header_stdint_h+:} false
; then :
7340 $as_echo_n "(cached) " >&6
7342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h. */
7344 #include <sys/types.h>
7349 uintmax_t i = (uintmax_t) -1;
7354 if ac_fn_c_try_compile
"$LINENO"; then :
7355 jm_ac_cv_header_stdint_h
=yes
7357 jm_ac_cv_header_stdint_h
=no
7359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
7362 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
7363 if test $jm_ac_cv_header_stdint_h = yes; then
7365 cat >>confdefs.h
<<_ACEOF
7366 #define HAVE_STDINT_H_WITH_UINTMAX 1
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7373 $as_echo_n "checking for unsigned long long... " >&6; }
7374 if ${ac_cv_type_unsigned_long_long+:} false
; then :
7375 $as_echo_n "(cached) " >&6
7377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7379 unsigned long long ull = 1; int i = 63;
7383 unsigned long long ullmax = (unsigned long long) -1;
7384 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7389 if ac_fn_c_try_link
"$LINENO"; then :
7390 ac_cv_type_unsigned_long_long
=yes
7392 ac_cv_type_unsigned_long_long
=no
7394 rm -f core conftest.err conftest.
$ac_objext \
7395 conftest
$ac_exeext conftest.
$ac_ext
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7398 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7399 if test $ac_cv_type_unsigned_long_long = yes; then
7401 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7408 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
7410 test $ac_cv_type_unsigned_long_long = yes \
7411 && ac_type
='unsigned long long' \
7412 || ac_type
='unsigned long'
7414 cat >>confdefs.h
<<_ACEOF
7415 #define uintmax_t $ac_type
7420 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7426 $as_echo_n "checking for inttypes.h... " >&6; }
7427 if ${gt_cv_header_inttypes_h+:} false
; then :
7428 $as_echo_n "(cached) " >&6
7431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7433 #include <sys/types.h>
7434 #include <inttypes.h>
7443 if ac_fn_c_try_compile
"$LINENO"; then :
7444 gt_cv_header_inttypes_h
=yes
7446 gt_cv_header_inttypes_h
=no
7448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7452 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7453 if test $gt_cv_header_inttypes_h = yes; then
7455 cat >>confdefs.h
<<_ACEOF
7456 #define HAVE_INTTYPES_H 1
7463 if test $gt_cv_header_inttypes_h = yes; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7465 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7466 if ${gt_cv_inttypes_pri_broken+:} false
; then :
7467 $as_echo_n "(cached) " >&6
7470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7471 /* end confdefs.h. */
7472 #include <inttypes.h>
7485 if ac_fn_c_try_compile
"$LINENO"; then :
7486 gt_cv_inttypes_pri_broken
=no
7488 gt_cv_inttypes_pri_broken
=yes
7490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7494 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7496 if test "$gt_cv_inttypes_pri_broken" = yes; then
7498 cat >>confdefs.h
<<_ACEOF
7499 #define PRI_MACROS_BROKEN 1
7505 if test "X$prefix" = "XNONE"; then
7506 acl_final_prefix
="$ac_default_prefix"
7508 acl_final_prefix
="$prefix"
7510 if test "X$exec_prefix" = "XNONE"; then
7511 acl_final_exec_prefix
='${prefix}'
7513 acl_final_exec_prefix
="$exec_prefix"
7515 acl_save_prefix
="$prefix"
7516 prefix
="$acl_final_prefix"
7517 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7518 prefix
="$acl_save_prefix"
7521 # Check whether --with-gnu-ld was given.
7522 if test "${with_gnu_ld+set}" = set; then :
7523 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7528 # Prepare PATH_SEPARATOR.
7529 # The user is always right.
7530 if test "${PATH_SEPARATOR+set}" != set; then
7531 echo "#! /bin/sh" >conf$$.sh
7532 echo "exit 0" >>conf$$.sh
7534 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7542 if test "$GCC" = yes; then
7543 # Check if gcc -print-prog-name=ld gives a path.
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7545 $as_echo_n "checking for ld used by GCC... " >&6; }
7548 # gcc leaves a trailing carriage return which upsets mingw
7549 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7551 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7554 # Accept absolute paths.
7555 [\\/]* |
[A-Za-z
]:[\\/]*)
7556 re_direlt
='/[^/][^/]*/\.\./'
7557 # Canonicalize the path of ld
7558 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7559 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7560 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7562 test -z "$LD" && LD
="$ac_prog"
7565 # If it fails, then pretend we aren't using GCC.
7569 # If it is relative, then search for the first ld in PATH.
7573 elif test "$with_gnu_ld" = yes; then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7575 $as_echo_n "checking for GNU ld... " >&6; }
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7578 $as_echo_n "checking for non-GNU ld... " >&6; }
7580 if ${acl_cv_path_LD+:} false
; then :
7581 $as_echo_n "(cached) " >&6
7583 if test -z "$LD"; then
7584 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7585 for ac_dir
in $PATH; do
7586 test -z "$ac_dir" && ac_dir
=.
7587 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7588 acl_cv_path_LD
="$ac_dir/$ac_prog"
7589 # Check to see if the program is GNU ld. I'd rather use --version,
7590 # but apparently some GNU ld's only accept -v.
7591 # Break only if it was the GNU/non-GNU ld that we prefer.
7592 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
7593 test "$with_gnu_ld" != no
&& break
7595 test "$with_gnu_ld" != yes && break
7601 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7605 LD
="$acl_cv_path_LD"
7606 if test -n "$LD"; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7608 $as_echo "$LD" >&6; }
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7613 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7615 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7616 if ${acl_cv_prog_gnu_ld+:} false
; then :
7617 $as_echo_n "(cached) " >&6
7619 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7620 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
7621 acl_cv_prog_gnu_ld
=yes
7623 acl_cv_prog_gnu_ld
=no
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7627 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7628 with_gnu_ld
=$acl_cv_prog_gnu_ld
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7633 $as_echo_n "checking for shared library run path origin... " >&6; }
7634 if ${acl_cv_rpath+:} false
; then :
7635 $as_echo_n "(cached) " >&6
7638 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7639 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7646 $as_echo "$acl_cv_rpath" >&6; }
7648 libext
="$acl_cv_libext"
7649 shlibext
="$acl_cv_shlibext"
7650 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7651 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7652 hardcode_direct
="$acl_cv_hardcode_direct"
7653 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7654 # Check whether --enable-rpath was given.
7655 if test "${enable_rpath+set}" = set; then :
7656 enableval
=$enable_rpath; :
7670 acl_save_prefix
="$prefix"
7671 prefix
="$acl_final_prefix"
7672 acl_save_exec_prefix
="$exec_prefix"
7673 exec_prefix
="$acl_final_exec_prefix"
7675 eval additional_includedir
=\"$includedir\"
7676 eval additional_libdir
=\"$libdir\"
7678 exec_prefix
="$acl_save_exec_prefix"
7679 prefix
="$acl_save_prefix"
7682 # Check whether --with-libiconv-prefix was given.
7683 if test "${with_libiconv_prefix+set}" = set; then :
7684 withval
=$with_libiconv_prefix;
7685 if test "X$withval" = "Xno"; then
7688 if test "X$withval" = "X"; then
7690 acl_save_prefix
="$prefix"
7691 prefix
="$acl_final_prefix"
7692 acl_save_exec_prefix
="$exec_prefix"
7693 exec_prefix
="$acl_final_exec_prefix"
7695 eval additional_includedir
=\"$includedir\"
7696 eval additional_libdir
=\"$libdir\"
7698 exec_prefix
="$acl_save_exec_prefix"
7699 prefix
="$acl_save_prefix"
7702 additional_includedir
="$withval/include"
7703 additional_libdir
="$withval/lib"
7714 names_already_handled
=
7715 names_next_round
='iconv '
7716 while test -n "$names_next_round"; do
7717 names_this_round
="$names_next_round"
7719 for name
in $names_this_round; do
7721 for n
in $names_already_handled; do
7722 if test "$n" = "$name"; then
7727 if test -z "$already_handled"; then
7728 names_already_handled
="$names_already_handled $name"
7729 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7730 eval value
=\"\
$HAVE_LIB$uppername\"
7731 if test -n "$value"; then
7732 if test "$value" = yes; then
7733 eval value
=\"\
$LIB$uppername\"
7734 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
7735 eval value
=\"\
$LTLIB$uppername\"
7736 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
7745 if test $use_additional = yes; then
7746 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7747 found_dir
="$additional_libdir"
7748 found_so
="$additional_libdir/lib$name.$shlibext"
7749 if test -f "$additional_libdir/lib$name.la"; then
7750 found_la
="$additional_libdir/lib$name.la"
7753 if test -f "$additional_libdir/lib$name.$libext"; then
7754 found_dir
="$additional_libdir"
7755 found_a
="$additional_libdir/lib$name.$libext"
7756 if test -f "$additional_libdir/lib$name.la"; then
7757 found_la
="$additional_libdir/lib$name.la"
7762 if test "X$found_dir" = "X"; then
7763 for x
in $LDFLAGS $LTLIBICONV; do
7765 acl_save_prefix
="$prefix"
7766 prefix
="$acl_final_prefix"
7767 acl_save_exec_prefix
="$exec_prefix"
7768 exec_prefix
="$acl_final_exec_prefix"
7770 exec_prefix
="$acl_save_exec_prefix"
7771 prefix
="$acl_save_prefix"
7775 dir
=`echo "X$x" | sed -e 's/^X-L//'`
7776 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7778 found_so
="$dir/lib$name.$shlibext"
7779 if test -f "$dir/lib$name.la"; then
7780 found_la
="$dir/lib$name.la"
7783 if test -f "$dir/lib$name.$libext"; then
7785 found_a
="$dir/lib$name.$libext"
7786 if test -f "$dir/lib$name.la"; then
7787 found_la
="$dir/lib$name.la"
7793 if test "X$found_dir" != "X"; then
7798 if test "X$found_dir" != "X"; then
7799 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7800 if test "X$found_so" != "X"; then
7801 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
7802 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7805 for x
in $ltrpathdirs; do
7806 if test "X$x" = "X$found_dir"; then
7811 if test -z "$haveit"; then
7812 ltrpathdirs
="$ltrpathdirs $found_dir"
7814 if test "$hardcode_direct" = yes; then
7815 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7817 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
7818 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7820 for x
in $rpathdirs; do
7821 if test "X$x" = "X$found_dir"; then
7826 if test -z "$haveit"; then
7827 rpathdirs
="$rpathdirs $found_dir"
7831 for x
in $LDFLAGS $LIBICONV; do
7833 acl_save_prefix
="$prefix"
7834 prefix
="$acl_final_prefix"
7835 acl_save_exec_prefix
="$exec_prefix"
7836 exec_prefix
="$acl_final_exec_prefix"
7838 exec_prefix
="$acl_save_exec_prefix"
7839 prefix
="$acl_save_prefix"
7841 if test "X$x" = "X-L$found_dir"; then
7846 if test -z "$haveit"; then
7847 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7849 if test "$hardcode_minus_L" != no
; then
7850 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7852 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7858 if test "X$found_a" != "X"; then
7859 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
7861 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7864 additional_includedir
=
7865 case "$found_dir" in
7867 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7868 additional_includedir
="$basedir/include"
7871 if test "X$additional_includedir" != "X"; then
7872 if test "X$additional_includedir" != "X/usr/include"; then
7874 if test "X$additional_includedir" = "X/usr/local/include"; then
7875 if test -n "$GCC"; then
7877 linux
*) haveit
=yes;;
7881 if test -z "$haveit"; then
7882 for x
in $CPPFLAGS $INCICONV; do
7884 acl_save_prefix
="$prefix"
7885 prefix
="$acl_final_prefix"
7886 acl_save_exec_prefix
="$exec_prefix"
7887 exec_prefix
="$acl_final_exec_prefix"
7889 exec_prefix
="$acl_save_exec_prefix"
7890 prefix
="$acl_save_prefix"
7892 if test "X$x" = "X-I$additional_includedir"; then
7897 if test -z "$haveit"; then
7898 if test -d "$additional_includedir"; then
7899 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7905 if test -n "$found_la"; then
7906 save_libdir
="$libdir"
7908 */* |
*\\*) .
"$found_la" ;;
7909 *) .
"./$found_la" ;;
7911 libdir
="$save_libdir"
7912 for dep
in $dependency_libs; do
7915 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
7916 if test "X$additional_libdir" != "X/usr/lib"; then
7918 if test "X$additional_libdir" = "X/usr/local/lib"; then
7919 if test -n "$GCC"; then
7921 linux
*) haveit
=yes;;
7925 if test -z "$haveit"; then
7927 for x
in $LDFLAGS $LIBICONV; do
7929 acl_save_prefix
="$prefix"
7930 prefix
="$acl_final_prefix"
7931 acl_save_exec_prefix
="$exec_prefix"
7932 exec_prefix
="$acl_final_exec_prefix"
7934 exec_prefix
="$acl_save_exec_prefix"
7935 prefix
="$acl_save_prefix"
7937 if test "X$x" = "X-L$additional_libdir"; then
7942 if test -z "$haveit"; then
7943 if test -d "$additional_libdir"; then
7944 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7948 for x
in $LDFLAGS $LTLIBICONV; do
7950 acl_save_prefix
="$prefix"
7951 prefix
="$acl_final_prefix"
7952 acl_save_exec_prefix
="$exec_prefix"
7953 exec_prefix
="$acl_final_exec_prefix"
7955 exec_prefix
="$acl_save_exec_prefix"
7956 prefix
="$acl_save_prefix"
7958 if test "X$x" = "X-L$additional_libdir"; then
7963 if test -z "$haveit"; then
7964 if test -d "$additional_libdir"; then
7965 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7972 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
7973 if test "$enable_rpath" != no
; then
7975 for x
in $rpathdirs; do
7976 if test "X$x" = "X$dir"; then
7981 if test -z "$haveit"; then
7982 rpathdirs
="$rpathdirs $dir"
7985 for x
in $ltrpathdirs; do
7986 if test "X$x" = "X$dir"; then
7991 if test -z "$haveit"; then
7992 ltrpathdirs
="$ltrpathdirs $dir"
7997 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8000 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8003 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8004 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8010 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8011 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8017 if test "X$rpathdirs" != "X"; then
8018 if test -n "$hardcode_libdir_separator"; then
8020 for found_dir
in $rpathdirs; do
8021 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8023 acl_save_libdir
="$libdir"
8025 eval flag
=\"$hardcode_libdir_flag_spec\"
8026 libdir
="$acl_save_libdir"
8027 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8029 for found_dir
in $rpathdirs; do
8030 acl_save_libdir
="$libdir"
8032 eval flag
=\"$hardcode_libdir_flag_spec\"
8033 libdir
="$acl_save_libdir"
8034 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8038 if test "X$ltrpathdirs" != "X"; then
8039 for found_dir
in $ltrpathdirs; do
8040 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8047 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8048 stdlib.h string.h unistd.h sys
/param.h
8050 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8051 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8052 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8053 cat >>confdefs.h
<<_ACEOF
8054 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8061 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
8062 geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \
8063 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
8066 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8067 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8068 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8069 cat >>confdefs.h
<<_ACEOF
8070 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8082 am_save_CPPFLAGS
="$CPPFLAGS"
8084 for element
in $INCICONV; do
8086 for x
in $CPPFLAGS; do
8088 acl_save_prefix
="$prefix"
8089 prefix
="$acl_final_prefix"
8090 acl_save_exec_prefix
="$exec_prefix"
8091 exec_prefix
="$acl_final_exec_prefix"
8093 exec_prefix
="$acl_save_exec_prefix"
8094 prefix
="$acl_save_prefix"
8096 if test "X$x" = "X$element"; then
8101 if test -z "$haveit"; then
8102 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8108 $as_echo_n "checking for iconv... " >&6; }
8109 if ${am_cv_func_iconv+:} false
; then :
8110 $as_echo_n "(cached) " >&6
8113 am_cv_func_iconv
="no, consider installing GNU libiconv"
8115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8116 /* end confdefs.h. */
8122 iconv_t cd = iconv_open("","");
8123 iconv(cd,NULL,NULL,NULL,NULL);
8129 if ac_fn_c_try_link
"$LINENO"; then :
8130 am_cv_func_iconv
=yes
8132 rm -f core conftest.err conftest.
$ac_objext \
8133 conftest
$ac_exeext conftest.
$ac_ext
8134 if test "$am_cv_func_iconv" != yes; then
8135 am_save_LIBS
="$LIBS"
8136 LIBS
="$LIBS $LIBICONV"
8137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8138 /* end confdefs.h. */
8144 iconv_t cd = iconv_open("","");
8145 iconv(cd,NULL,NULL,NULL,NULL);
8151 if ac_fn_c_try_link
"$LINENO"; then :
8153 am_cv_func_iconv
=yes
8155 rm -f core conftest.err conftest.
$ac_objext \
8156 conftest
$ac_exeext conftest.
$ac_ext
8157 LIBS
="$am_save_LIBS"
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8162 $as_echo "$am_cv_func_iconv" >&6; }
8163 if test "$am_cv_func_iconv" = yes; then
8165 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8168 if test "$am_cv_lib_iconv" = yes; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8170 $as_echo_n "checking how to link with libiconv... " >&6; }
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8172 $as_echo "$LIBICONV" >&6; }
8174 CPPFLAGS
="$am_save_CPPFLAGS"
8181 if test "$am_cv_func_iconv" = yes; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8183 $as_echo_n "checking for iconv declaration... " >&6; }
8184 if ${am_cv_proto_iconv+:} false
; then :
8185 $as_echo_n "(cached) " >&6
8188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8189 /* end confdefs.h. */
8197 #if defined(__STDC__) || defined(__cplusplus)
8198 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8211 if ac_fn_c_try_compile
"$LINENO"; then :
8212 am_cv_proto_iconv_arg1
=""
8214 am_cv_proto_iconv_arg1
="const"
8216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8217 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);"
8220 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8222 }$am_cv_proto_iconv" >&5
8224 }$am_cv_proto_iconv" >&6; }
8226 cat >>confdefs.h
<<_ACEOF
8227 #define ICONV_CONST $am_cv_proto_iconv_arg1
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8234 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8235 if ${am_cv_langinfo_codeset+:} false
; then :
8236 $as_echo_n "(cached) " >&6
8238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8240 #include <langinfo.h>
8244 char* cs = nl_langinfo(CODESET);
8249 if ac_fn_c_try_link
"$LINENO"; then :
8250 am_cv_langinfo_codeset
=yes
8252 am_cv_langinfo_codeset
=no
8254 rm -f core conftest.err conftest.
$ac_objext \
8255 conftest
$ac_exeext conftest.
$ac_ext
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8259 $as_echo "$am_cv_langinfo_codeset" >&6; }
8260 if test $am_cv_langinfo_codeset = yes; then
8262 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8266 if test $ac_cv_header_locale_h = yes; then
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8269 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8270 if ${am_cv_val_LC_MESSAGES+:} false
; then :
8271 $as_echo_n "(cached) " >&6
8273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h. */
8284 if ac_fn_c_try_link
"$LINENO"; then :
8285 am_cv_val_LC_MESSAGES
=yes
8287 am_cv_val_LC_MESSAGES
=no
8289 rm -f core conftest.err conftest.
$ac_objext \
8290 conftest
$ac_exeext conftest.
$ac_ext
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8293 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8294 if test $am_cv_val_LC_MESSAGES = yes; then
8296 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8302 for ac_prog
in bison
8304 # Extract the first word of "$ac_prog", so it can be a program name with args.
8305 set dummy
$ac_prog; ac_word
=$2
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307 $as_echo_n "checking for $ac_word... " >&6; }
8308 if ${ac_cv_prog_INTLBISON+:} false
; then :
8309 $as_echo_n "(cached) " >&6
8311 if test -n "$INTLBISON"; then
8312 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8318 test -z "$as_dir" && as_dir
=.
8319 for ac_exec_ext
in '' $ac_executable_extensions; do
8320 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8321 ac_cv_prog_INTLBISON
="$ac_prog"
8322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8331 INTLBISON
=$ac_cv_prog_INTLBISON
8332 if test -n "$INTLBISON"; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8334 $as_echo "$INTLBISON" >&6; }
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 $as_echo "no" >&6; }
8341 test -n "$INTLBISON" && break
8344 if test -z "$INTLBISON"; then
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8348 $as_echo_n "checking version of bison... " >&6; }
8349 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8350 case $ac_prog_version in
8351 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8352 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
8353 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8354 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8357 $as_echo "$ac_prog_version" >&6; }
8359 if test $ac_verc_fail = yes; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8379 $as_echo_n "checking whether NLS is requested... " >&6; }
8380 # Check whether --enable-nls was given.
8381 if test "${enable_nls+set}" = set; then :
8382 enableval
=$enable_nls; USE_NLS
=$enableval
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8388 $as_echo "$USE_NLS" >&6; }
8393 BUILD_INCLUDED_LIBINTL
=no
8394 USE_INCLUDED_LIBINTL
=no
8400 if test "$USE_NLS" = "yes"; then
8401 gt_use_preinstalled_gnugettext
=no
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8404 $as_echo_n "checking whether included gettext is requested... " >&6; }
8406 # Check whether --with-included-gettext was given.
8407 if test "${with_included_gettext+set}" = set; then :
8408 withval
=$with_included_gettext; nls_cv_force_use_gnu_gettext
=$withval
8410 nls_cv_force_use_gnu_gettext
=no
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8414 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8416 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
8417 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8425 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8426 if ${gt_cv_func_gnugettext2_libc+:} false
; then :
8427 $as_echo_n "(cached) " >&6
8429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h. */
8431 #include <libintl.h>
8432 extern int _nl_msg_cat_cntr;
8433 extern int *_nl_domain_bindings;
8437 bindtextdomain ("", "");
8438 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
8443 if ac_fn_c_try_link
"$LINENO"; then :
8444 gt_cv_func_gnugettext2_libc
=yes
8446 gt_cv_func_gnugettext2_libc
=no
8448 rm -f core conftest.err conftest.
$ac_objext \
8449 conftest
$ac_exeext conftest.
$ac_ext
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
8452 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
8454 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8460 acl_save_prefix
="$prefix"
8461 prefix
="$acl_final_prefix"
8462 acl_save_exec_prefix
="$exec_prefix"
8463 exec_prefix
="$acl_final_exec_prefix"
8465 eval additional_includedir
=\"$includedir\"
8466 eval additional_libdir
=\"$libdir\"
8468 exec_prefix
="$acl_save_exec_prefix"
8469 prefix
="$acl_save_prefix"
8472 # Check whether --with-libintl-prefix was given.
8473 if test "${with_libintl_prefix+set}" = set; then :
8474 withval
=$with_libintl_prefix;
8475 if test "X$withval" = "Xno"; then
8478 if test "X$withval" = "X"; then
8480 acl_save_prefix
="$prefix"
8481 prefix
="$acl_final_prefix"
8482 acl_save_exec_prefix
="$exec_prefix"
8483 exec_prefix
="$acl_final_exec_prefix"
8485 eval additional_includedir
=\"$includedir\"
8486 eval additional_libdir
=\"$libdir\"
8488 exec_prefix
="$acl_save_exec_prefix"
8489 prefix
="$acl_save_prefix"
8492 additional_includedir
="$withval/include"
8493 additional_libdir
="$withval/lib"
8504 names_already_handled
=
8505 names_next_round
='intl '
8506 while test -n "$names_next_round"; do
8507 names_this_round
="$names_next_round"
8509 for name
in $names_this_round; do
8511 for n
in $names_already_handled; do
8512 if test "$n" = "$name"; then
8517 if test -z "$already_handled"; then
8518 names_already_handled
="$names_already_handled $name"
8519 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8520 eval value
=\"\
$HAVE_LIB$uppername\"
8521 if test -n "$value"; then
8522 if test "$value" = yes; then
8523 eval value
=\"\
$LIB$uppername\"
8524 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
8525 eval value
=\"\
$LTLIB$uppername\"
8526 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
8535 if test $use_additional = yes; then
8536 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8537 found_dir
="$additional_libdir"
8538 found_so
="$additional_libdir/lib$name.$shlibext"
8539 if test -f "$additional_libdir/lib$name.la"; then
8540 found_la
="$additional_libdir/lib$name.la"
8543 if test -f "$additional_libdir/lib$name.$libext"; then
8544 found_dir
="$additional_libdir"
8545 found_a
="$additional_libdir/lib$name.$libext"
8546 if test -f "$additional_libdir/lib$name.la"; then
8547 found_la
="$additional_libdir/lib$name.la"
8552 if test "X$found_dir" = "X"; then
8553 for x
in $LDFLAGS $LTLIBINTL; do
8555 acl_save_prefix
="$prefix"
8556 prefix
="$acl_final_prefix"
8557 acl_save_exec_prefix
="$exec_prefix"
8558 exec_prefix
="$acl_final_exec_prefix"
8560 exec_prefix
="$acl_save_exec_prefix"
8561 prefix
="$acl_save_prefix"
8565 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8566 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8568 found_so
="$dir/lib$name.$shlibext"
8569 if test -f "$dir/lib$name.la"; then
8570 found_la
="$dir/lib$name.la"
8573 if test -f "$dir/lib$name.$libext"; then
8575 found_a
="$dir/lib$name.$libext"
8576 if test -f "$dir/lib$name.la"; then
8577 found_la
="$dir/lib$name.la"
8583 if test "X$found_dir" != "X"; then
8588 if test "X$found_dir" != "X"; then
8589 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8590 if test "X$found_so" != "X"; then
8591 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8592 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8595 for x
in $ltrpathdirs; do
8596 if test "X$x" = "X$found_dir"; then
8601 if test -z "$haveit"; then
8602 ltrpathdirs
="$ltrpathdirs $found_dir"
8604 if test "$hardcode_direct" = yes; then
8605 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8607 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8608 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8610 for x
in $rpathdirs; do
8611 if test "X$x" = "X$found_dir"; then
8616 if test -z "$haveit"; then
8617 rpathdirs
="$rpathdirs $found_dir"
8621 for x
in $LDFLAGS $LIBINTL; do
8623 acl_save_prefix
="$prefix"
8624 prefix
="$acl_final_prefix"
8625 acl_save_exec_prefix
="$exec_prefix"
8626 exec_prefix
="$acl_final_exec_prefix"
8628 exec_prefix
="$acl_save_exec_prefix"
8629 prefix
="$acl_save_prefix"
8631 if test "X$x" = "X-L$found_dir"; then
8636 if test -z "$haveit"; then
8637 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8639 if test "$hardcode_minus_L" != no
; then
8640 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8642 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
8648 if test "X$found_a" != "X"; then
8649 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
8651 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8654 additional_includedir
=
8655 case "$found_dir" in
8657 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8658 additional_includedir
="$basedir/include"
8661 if test "X$additional_includedir" != "X"; then
8662 if test "X$additional_includedir" != "X/usr/include"; then
8664 if test "X$additional_includedir" = "X/usr/local/include"; then
8665 if test -n "$GCC"; then
8667 linux
*) haveit
=yes;;
8671 if test -z "$haveit"; then
8672 for x
in $CPPFLAGS $INCINTL; do
8674 acl_save_prefix
="$prefix"
8675 prefix
="$acl_final_prefix"
8676 acl_save_exec_prefix
="$exec_prefix"
8677 exec_prefix
="$acl_final_exec_prefix"
8679 exec_prefix
="$acl_save_exec_prefix"
8680 prefix
="$acl_save_prefix"
8682 if test "X$x" = "X-I$additional_includedir"; then
8687 if test -z "$haveit"; then
8688 if test -d "$additional_includedir"; then
8689 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8695 if test -n "$found_la"; then
8696 save_libdir
="$libdir"
8698 */* |
*\\*) .
"$found_la" ;;
8699 *) .
"./$found_la" ;;
8701 libdir
="$save_libdir"
8702 for dep
in $dependency_libs; do
8705 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8706 if test "X$additional_libdir" != "X/usr/lib"; then
8708 if test "X$additional_libdir" = "X/usr/local/lib"; then
8709 if test -n "$GCC"; then
8711 linux
*) haveit
=yes;;
8715 if test -z "$haveit"; then
8717 for x
in $LDFLAGS $LIBINTL; do
8719 acl_save_prefix
="$prefix"
8720 prefix
="$acl_final_prefix"
8721 acl_save_exec_prefix
="$exec_prefix"
8722 exec_prefix
="$acl_final_exec_prefix"
8724 exec_prefix
="$acl_save_exec_prefix"
8725 prefix
="$acl_save_prefix"
8727 if test "X$x" = "X-L$additional_libdir"; then
8732 if test -z "$haveit"; then
8733 if test -d "$additional_libdir"; then
8734 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8738 for x
in $LDFLAGS $LTLIBINTL; do
8740 acl_save_prefix
="$prefix"
8741 prefix
="$acl_final_prefix"
8742 acl_save_exec_prefix
="$exec_prefix"
8743 exec_prefix
="$acl_final_exec_prefix"
8745 exec_prefix
="$acl_save_exec_prefix"
8746 prefix
="$acl_save_prefix"
8748 if test "X$x" = "X-L$additional_libdir"; then
8753 if test -z "$haveit"; then
8754 if test -d "$additional_libdir"; then
8755 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8762 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8763 if test "$enable_rpath" != no
; then
8765 for x
in $rpathdirs; do
8766 if test "X$x" = "X$dir"; then
8771 if test -z "$haveit"; then
8772 rpathdirs
="$rpathdirs $dir"
8775 for x
in $ltrpathdirs; do
8776 if test "X$x" = "X$dir"; then
8781 if test -z "$haveit"; then
8782 ltrpathdirs
="$ltrpathdirs $dir"
8787 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8790 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8793 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
8794 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8800 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
8801 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8807 if test "X$rpathdirs" != "X"; then
8808 if test -n "$hardcode_libdir_separator"; then
8810 for found_dir
in $rpathdirs; do
8811 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8813 acl_save_libdir
="$libdir"
8815 eval flag
=\"$hardcode_libdir_flag_spec\"
8816 libdir
="$acl_save_libdir"
8817 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
8819 for found_dir
in $rpathdirs; do
8820 acl_save_libdir
="$libdir"
8822 eval flag
=\"$hardcode_libdir_flag_spec\"
8823 libdir
="$acl_save_libdir"
8824 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
8828 if test "X$ltrpathdirs" != "X"; then
8829 for found_dir
in $ltrpathdirs; do
8830 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8835 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8836 if ${gt_cv_func_gnugettext2_libintl+:} false
; then :
8837 $as_echo_n "(cached) " >&6
8839 gt_save_CPPFLAGS
="$CPPFLAGS"
8840 CPPFLAGS
="$CPPFLAGS $INCINTL"
8841 gt_save_LIBS
="$LIBS"
8842 LIBS
="$LIBS $LIBINTL"
8843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8844 /* end confdefs.h. */
8845 #include <libintl.h>
8846 extern int _nl_msg_cat_cntr;
8851 const char *_nl_expand_alias ();
8855 bindtextdomain ("", "");
8856 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8861 if ac_fn_c_try_link
"$LINENO"; then :
8862 gt_cv_func_gnugettext2_libintl
=yes
8864 gt_cv_func_gnugettext2_libintl
=no
8866 rm -f core conftest.err conftest.
$ac_objext \
8867 conftest
$ac_exeext conftest.
$ac_ext
8868 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
8869 LIBS
="$LIBS $LIBICONV"
8870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8872 #include <libintl.h>
8873 extern int _nl_msg_cat_cntr;
8878 const char *_nl_expand_alias ();
8882 bindtextdomain ("", "");
8883 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8888 if ac_fn_c_try_link
"$LINENO"; then :
8889 LIBINTL
="$LIBINTL $LIBICONV"
8890 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
8891 gt_cv_func_gnugettext2_libintl
=yes
8894 rm -f core conftest.err conftest.
$ac_objext \
8895 conftest
$ac_exeext conftest.
$ac_ext
8897 CPPFLAGS
="$gt_save_CPPFLAGS"
8898 LIBS
="$gt_save_LIBS"
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
8901 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
8904 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
8905 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
8906 && test "$PACKAGE" != gettext-runtime \
8907 && test "$PACKAGE" != gettext-tools
; }; then
8908 gt_use_preinstalled_gnugettext
=yes
8916 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
8917 nls_cv_use_gnu_gettext
=yes
8921 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8922 BUILD_INCLUDED_LIBINTL
=yes
8923 USE_INCLUDED_LIBINTL
=yes
8924 LIBINTL
="lib/intl/libintl.a $LIBICONV"
8925 LTLIBINTL
="lib/intl/libintl.a $LTLIBICONV"
8926 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8929 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8930 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
8935 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8936 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
8938 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8946 $as_echo_n "checking whether to use NLS... " >&6; }
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8948 $as_echo "$USE_NLS" >&6; }
8949 if test "$USE_NLS" = "yes"; then
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8951 $as_echo_n "checking where the gettext function comes from... " >&6; }
8952 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8953 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8954 gt_source
="external libintl"
8959 gt_source
="included intl directory"
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8962 $as_echo "$gt_source" >&6; }
8965 if test "$USE_NLS" = "yes"; then
8967 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8968 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8970 $as_echo_n "checking how to link with libintl... " >&6; }
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8972 $as_echo "$LIBINTL" >&6; }
8974 for element
in $INCINTL; do
8976 for x
in $CPPFLAGS; do
8978 acl_save_prefix
="$prefix"
8979 prefix
="$acl_final_prefix"
8980 acl_save_exec_prefix
="$exec_prefix"
8981 exec_prefix
="$acl_final_exec_prefix"
8983 exec_prefix
="$acl_save_exec_prefix"
8984 prefix
="$acl_save_prefix"
8986 if test "X$x" = "X$element"; then
8991 if test -z "$haveit"; then
8992 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8999 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9002 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9010 if test "$PACKAGE" = gettext-runtime ||
test "$PACKAGE" = gettext-tools
; then
9011 BUILD_INCLUDED_LIBINTL
=yes
9019 nls_cv_header_libgt
=
9030 if test "$USE_INCLUDED_LIBINTL" = yes; then
9031 INTLOBJS
="\$(GETTOBJS)"
9035 INTL_LIBTOOL_SUFFIX_PREFIX
=
9048 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9049 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9051 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9052 if eval \
${$as_ac_Header+:} false
; then :
9053 $as_echo_n "(cached) " >&6
9055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h. */
9057 #include <sys/types.h>
9069 if ac_fn_c_try_compile
"$LINENO"; then :
9070 eval "$as_ac_Header=yes"
9072 eval "$as_ac_Header=no"
9074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9076 eval ac_res
=\$
$as_ac_Header
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9078 $as_echo "$ac_res" >&6; }
9079 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9080 cat >>confdefs.h
<<_ACEOF
9081 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9084 ac_header_dirent
=$ac_hdr; break
9088 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9089 if test $ac_header_dirent = dirent.h
; then
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9091 $as_echo_n "checking for library containing opendir... " >&6; }
9092 if ${ac_cv_search_opendir+:} false
; then :
9093 $as_echo_n "(cached) " >&6
9095 ac_func_search_save_LIBS
=$LIBS
9096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9097 /* end confdefs.h. */
9099 /* Override any GCC internal prototype to avoid an error.
9100 Use char because int might match the return type of a GCC
9101 builtin and then its argument prototype would still apply. */
9114 for ac_lib
in '' dir
; do
9115 if test -z "$ac_lib"; then
9116 ac_res
="none required"
9119 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9121 if ac_fn_c_try_link
"$LINENO"; then :
9122 ac_cv_search_opendir
=$ac_res
9124 rm -f core conftest.err conftest.
$ac_objext \
9126 if ${ac_cv_search_opendir+:} false
; then :
9130 if ${ac_cv_search_opendir+:} false
; then :
9133 ac_cv_search_opendir
=no
9136 LIBS
=$ac_func_search_save_LIBS
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9139 $as_echo "$ac_cv_search_opendir" >&6; }
9140 ac_res
=$ac_cv_search_opendir
9141 if test "$ac_res" != no
; then :
9142 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9148 $as_echo_n "checking for library containing opendir... " >&6; }
9149 if ${ac_cv_search_opendir+:} false
; then :
9150 $as_echo_n "(cached) " >&6
9152 ac_func_search_save_LIBS
=$LIBS
9153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9156 /* Override any GCC internal prototype to avoid an error.
9157 Use char because int might match the return type of a GCC
9158 builtin and then its argument prototype would still apply. */
9171 for ac_lib
in '' x
; do
9172 if test -z "$ac_lib"; then
9173 ac_res
="none required"
9176 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9178 if ac_fn_c_try_link
"$LINENO"; then :
9179 ac_cv_search_opendir
=$ac_res
9181 rm -f core conftest.err conftest.
$ac_objext \
9183 if ${ac_cv_search_opendir+:} false
; then :
9187 if ${ac_cv_search_opendir+:} false
; then :
9190 ac_cv_search_opendir
=no
9193 LIBS
=$ac_func_search_save_LIBS
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9196 $as_echo "$ac_cv_search_opendir" >&6; }
9197 ac_res
=$ac_cv_search_opendir
9198 if test "$ac_res" != no
; then :
9199 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9206 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9207 if ${ac_cv_header_time+:} false
; then :
9208 $as_echo_n "(cached) " >&6
9210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h. */
9212 #include <sys/types.h>
9213 #include <sys/time.h>
9219 if ((struct tm *) 0)
9225 if ac_fn_c_try_compile
"$LINENO"; then :
9226 ac_cv_header_time
=yes
9228 ac_cv_header_time
=no
9230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9233 $as_echo "$ac_cv_header_time" >&6; }
9234 if test $ac_cv_header_time = yes; then
9236 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9242 for ac_header
in inttypes.h
9244 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
9245 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
9246 cat >>confdefs.h
<<_ACEOF
9247 #define HAVE_INTTYPES_H 1
9256 for ac_header
in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
9257 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
9258 stdbool.h stddef.h stdint.h netdb.h
pwd.h grp.h
strings.h \
9259 regex.h syslog.h
ulimit.h
9261 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9262 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9263 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9264 cat >>confdefs.h
<<_ACEOF
9265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9272 for ac_header
in sys
/pte.h sys
/stream.h sys
/select.h sys
/file.h sys
/ioctl.h \
9273 sys
/param.h sys
/socket.h sys
/stat.h \
9274 sys
/time.h sys
/times.h sys
/types.h sys
/wait.h
9276 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9277 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9278 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9279 cat >>confdefs.h
<<_ACEOF
9280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9287 for ac_header
in netinet
/in.h arpa
/inet.h
9289 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9290 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9291 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9292 cat >>confdefs.h
<<_ACEOF
9293 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9301 ac_fn_c_check_header_compile
"$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "
9302 #if HAVE_SYS_STREAM_H
9303 # include <sys/stream.h>
9307 if test "x$ac_cv_header_sys_ptem_h" = xyes
; then :
9313 ac_fn_c_check_header_compile
"$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
9315 # include <sys/time.h>
9319 if test "x$ac_cv_header_sys_resource_h" = xyes
; then :
9320 $as_echo "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
9326 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9327 # for constant arguments. Useless!
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9329 $as_echo_n "checking for working alloca.h... " >&6; }
9330 if ${ac_cv_working_alloca_h+:} false
; then :
9331 $as_echo_n "(cached) " >&6
9333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h. */
9339 char *p = (char *) alloca (2 * sizeof (int));
9345 if ac_fn_c_try_link
"$LINENO"; then :
9346 ac_cv_working_alloca_h
=yes
9348 ac_cv_working_alloca_h
=no
9350 rm -f core conftest.err conftest.
$ac_objext \
9351 conftest
$ac_exeext conftest.
$ac_ext
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9354 $as_echo "$ac_cv_working_alloca_h" >&6; }
9355 if test $ac_cv_working_alloca_h = yes; then
9357 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9362 $as_echo_n "checking for alloca... " >&6; }
9363 if ${ac_cv_func_alloca_works+:} false
; then :
9364 $as_echo_n "(cached) " >&6
9366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9369 # define alloca __builtin_alloca
9372 # include <malloc.h>
9373 # define alloca _alloca
9375 # ifdef HAVE_ALLOCA_H
9376 # include <alloca.h>
9381 # ifndef alloca /* predefined by HP cc +Olibcalls */
9382 void *alloca (size_t);
9392 char *p = (char *) alloca (1);
9398 if ac_fn_c_try_link
"$LINENO"; then :
9399 ac_cv_func_alloca_works
=yes
9401 ac_cv_func_alloca_works
=no
9403 rm -f core conftest.err conftest.
$ac_objext \
9404 conftest
$ac_exeext conftest.
$ac_ext
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9407 $as_echo "$ac_cv_func_alloca_works" >&6; }
9409 if test $ac_cv_func_alloca_works = yes; then
9411 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9414 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9415 # that cause trouble. Some versions do not even contain alloca or
9416 # contain a buggy version. If you still want to use their alloca,
9417 # use ar to extract alloca.o from them instead of compiling alloca.c.
9419 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
9421 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9425 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9426 if ${ac_cv_os_cray+:} false
; then :
9427 $as_echo_n "(cached) " >&6
9429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9430 /* end confdefs.h. */
9431 #if defined CRAY && ! defined CRAY2
9438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9439 $EGREP "webecray" >/dev
/null
2>&1; then :
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9448 $as_echo "$ac_cv_os_cray" >&6; }
9449 if test $ac_cv_os_cray = yes; then
9450 for ac_func
in _getb67 GETB67 getb67
; do
9451 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9452 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9453 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9455 cat >>confdefs.h
<<_ACEOF
9456 #define CRAY_STACKSEG_END $ac_func
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9466 $as_echo_n "checking stack direction for C alloca... " >&6; }
9467 if ${ac_cv_c_stack_direction+:} false
; then :
9468 $as_echo_n "(cached) " >&6
9470 if test "$cross_compiling" = yes; then :
9471 ac_cv_c_stack_direction
=0
9473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9474 /* end confdefs.h. */
9475 $ac_includes_default
9477 find_stack_direction (int *addr, int depth)
9482 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
9483 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
9488 main (int argc, char **argv)
9490 return find_stack_direction (0, argc + !argv + 20) < 0;
9493 if ac_fn_c_try_run
"$LINENO"; then :
9494 ac_cv_c_stack_direction
=1
9496 ac_cv_c_stack_direction
=-1
9498 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9499 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9504 $as_echo "$ac_cv_c_stack_direction" >&6; }
9505 cat >>confdefs.h
<<_ACEOF
9506 #define STACK_DIRECTION $ac_cv_c_stack_direction
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9513 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9514 if ${ac_cv_type_uid_t+:} false
; then :
9515 $as_echo_n "(cached) " >&6
9517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9519 #include <sys/types.h>
9522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9523 $EGREP "uid_t" >/dev
/null
2>&1; then :
9524 ac_cv_type_uid_t
=yes
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9532 $as_echo "$ac_cv_type_uid_t" >&6; }
9533 if test $ac_cv_type_uid_t = no
; then
9535 $as_echo "#define uid_t int" >>confdefs.h
9538 $as_echo "#define gid_t int" >>confdefs.h
9542 for ac_header
in unistd.h
9544 ac_fn_c_check_header_mongrel
"$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
9545 if test "x$ac_cv_header_unistd_h" = xyes
; then :
9546 cat >>confdefs.h
<<_ACEOF
9547 #define HAVE_UNISTD_H 1
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
9555 $as_echo_n "checking for working chown... " >&6; }
9556 if ${ac_cv_func_chown_works+:} false
; then :
9557 $as_echo_n "(cached) " >&6
9559 if test "$cross_compiling" = yes; then :
9560 ac_cv_func_chown_works
=no
9562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9563 /* end confdefs.h. */
9564 $ac_includes_default
9570 char *f = "conftest.chown";
9571 struct stat before, after;
9573 if (creat (f, 0600) < 0)
9575 if (stat (f, &before) < 0)
9577 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
9579 if (stat (f, &after) < 0)
9581 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
9587 if ac_fn_c_try_run
"$LINENO"; then :
9588 ac_cv_func_chown_works
=yes
9590 ac_cv_func_chown_works
=no
9592 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9593 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9596 rm -f conftest.chown
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
9600 $as_echo "$ac_cv_func_chown_works" >&6; }
9601 if test $ac_cv_func_chown_works = yes; then
9603 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
9608 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
9609 if ${ac_cv_func_getpgrp_void+:} false
; then :
9610 $as_echo_n "(cached) " >&6
9612 # Use it with a single arg.
9613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9614 /* end confdefs.h. */
9615 $ac_includes_default
9624 if ac_fn_c_try_compile
"$LINENO"; then :
9625 ac_cv_func_getpgrp_void
=no
9627 ac_cv_func_getpgrp_void
=yes
9629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
9633 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
9634 if test $ac_cv_func_getpgrp_void = yes; then
9636 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
9640 if ${ac_cv_func_setvbuf_reversed+:} false
; then :
9641 $as_echo_n "(cached) " >&6
9643 ac_cv_func_setvbuf_reversed
=no
9647 for ac_func
in vprintf
9649 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
9650 if test "x$ac_cv_func_vprintf" = xyes
; then :
9651 cat >>confdefs.h
<<_ACEOF
9652 #define HAVE_VPRINTF 1
9655 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
9656 if test "x$ac_cv_func__doprnt" = xyes
; then :
9658 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
9667 $as_echo_n "checking for working strcoll... " >&6; }
9668 if ${ac_cv_func_strcoll_works+:} false
; then :
9669 $as_echo_n "(cached) " >&6
9671 if test "$cross_compiling" = yes; then :
9672 ac_cv_func_strcoll_works
=no
9674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h. */
9676 $ac_includes_default
9680 return (strcoll ("abc", "def") >= 0 ||
9681 strcoll ("ABC", "DEF") >= 0 ||
9682 strcoll ("123", "456") >= 0)
9687 if ac_fn_c_try_run
"$LINENO"; then :
9688 ac_cv_func_strcoll_works
=yes
9690 ac_cv_func_strcoll_works
=no
9692 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9693 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
9698 $as_echo "$ac_cv_func_strcoll_works" >&6; }
9699 if test $ac_cv_func_strcoll_works = yes; then
9701 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
9707 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
9708 MALLOC_TARGET
=alloca
9711 MALLOC_LIB
='-lmalloc'
9712 MALLOC_LIBRARY
='$(ALLOC_LIBDIR)/libmalloc.a'
9713 MALLOC_LDFLAGS
='-L$(ALLOC_LIBDIR)'
9714 MALLOC_DEP
='$(MALLOC_LIBRARY)'
9717 if test "$ac_cv_func_vprintf" = no
; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of vprintf in stdio.h" >&5
9719 $as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; }
9720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9721 /* end confdefs.h. */
9725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9726 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev
/null
2>&1; then :
9727 ac_cv_func_vprintf
=yes
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vprintf" >&5
9732 $as_echo "$ac_cv_func_vprintf" >&6; }
9733 if test $ac_cv_func_vprintf = yes; then
9734 $as_echo "#define HAVE_VPRINTF 1" >>confdefs.h
9739 if test "$ac_cv_func_vprintf" = no
&& test "$ac_cv_func__doprnt" = "yes"; then
9740 case " $LIBOBJS " in
9741 *" vprint.$ac_objext "* ) ;;
9742 *) LIBOBJS
="$LIBOBJS vprint.$ac_objext"
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9749 $as_echo_n "checking return type of signal handlers... " >&6; }
9750 if ${ac_cv_type_signal+:} false
; then :
9751 $as_echo_n "(cached) " >&6
9753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9755 #include <sys/types.h>
9761 return *(signal (0, 0)) (0) == 1;
9766 if ac_fn_c_try_compile
"$LINENO"; then :
9767 ac_cv_type_signal
=int
9769 ac_cv_type_signal
=void
9771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9774 $as_echo "$ac_cv_type_signal" >&6; }
9776 cat >>confdefs.h
<<_ACEOF
9777 #define RETSIGTYPE $ac_cv_type_signal
9782 ac_fn_c_check_func
"$LINENO" "__setostype" "ac_cv_func___setostype"
9783 if test "x$ac_cv_func___setostype" = xyes
; then :
9784 $as_echo "#define HAVE_SETOSTYPE 1" >>confdefs.h
9788 ac_fn_c_check_func
"$LINENO" "wait3" "ac_cv_func_wait3"
9789 if test "x$ac_cv_func_wait3" = xyes
; then :
9790 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
9795 ac_fn_c_check_func
"$LINENO" "mkfifo" "ac_cv_func_mkfifo"
9796 if test "x$ac_cv_func_mkfifo" = xyes
; then :
9797 $as_echo "#define HAVE_MKFIFO 1" >>confdefs.h
9800 $as_echo "#define MKFIFO_MISSING 1" >>confdefs.h
9805 for ac_func
in dup2 eaccess fcntl getdtablesize getgroups gethostname \
9806 getpagesize getpeername getrlimit getrusage gettimeofday \
9807 kill killpg lstat pselect readlink sbrk
select setdtablesize \
9808 setitimer tcgetpgrp uname
ulimit waitpid
9810 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9811 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9812 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9813 cat >>confdefs.h
<<_ACEOF
9814 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9820 ac_fn_c_check_func
"$LINENO" "rename" "ac_cv_func_rename"
9821 if test "x$ac_cv_func_rename" = xyes
; then :
9822 $as_echo "#define HAVE_RENAME 1" >>confdefs.h
9825 case " $LIBOBJS " in
9826 *" rename.$ac_objext "* ) ;;
9827 *) LIBOBJS
="$LIBOBJS rename.$ac_objext"
9835 for ac_func
in bcopy bzero confstr faccessat fnmatch \
9836 getaddrinfo gethostbyname getservbyname getservent inet_aton \
9837 imaxdiv memmove pathconf putenv raise random regcomp regexec \
9838 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
9839 sysconf syslog tcgetattr
times ttyname tzset unsetenv
9841 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9842 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9843 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9844 cat >>confdefs.h
<<_ACEOF
9845 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9852 for ac_func
in vasprintf asprintf
9854 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9855 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9856 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9857 cat >>confdefs.h
<<_ACEOF
9858 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9864 for ac_func
in isascii isblank isgraph isprint isspace isxdigit
9866 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9867 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9868 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9869 cat >>confdefs.h
<<_ACEOF
9870 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9876 for ac_func
in getpwent getpwnam getpwuid
9878 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9879 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9880 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9881 cat >>confdefs.h
<<_ACEOF
9882 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9888 for ac_func
in mkstemp
9890 ac_fn_c_check_func
"$LINENO" "mkstemp" "ac_cv_func_mkstemp"
9891 if test "x$ac_cv_func_mkstemp" = xyes
; then :
9892 cat >>confdefs.h
<<_ACEOF
9893 #define HAVE_MKSTEMP 1
9899 ac_fn_c_check_func
"$LINENO" "getcwd" "ac_cv_func_getcwd"
9900 if test "x$ac_cv_func_getcwd" = xyes
; then :
9901 $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
9904 case " $LIBOBJS " in
9905 *" getcwd.$ac_objext "* ) ;;
9906 *) LIBOBJS
="$LIBOBJS getcwd.$ac_objext"
9912 ac_fn_c_check_func
"$LINENO" "memset" "ac_cv_func_memset"
9913 if test "x$ac_cv_func_memset" = xyes
; then :
9914 $as_echo "#define HAVE_MEMSET 1" >>confdefs.h
9917 case " $LIBOBJS " in
9918 *" memset.$ac_objext "* ) ;;
9919 *) LIBOBJS
="$LIBOBJS memset.$ac_objext"
9926 ac_fn_c_check_func
"$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
9927 if test "x$ac_cv_func_strcasecmp" = xyes
; then :
9928 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
9931 case " $LIBOBJS " in
9932 *" strcasecmp.$ac_objext "* ) ;;
9933 *) LIBOBJS
="$LIBOBJS strcasecmp.$ac_objext"
9939 ac_fn_c_check_func
"$LINENO" "strcasestr" "ac_cv_func_strcasestr"
9940 if test "x$ac_cv_func_strcasestr" = xyes
; then :
9941 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
9944 case " $LIBOBJS " in
9945 *" strcasestr.$ac_objext "* ) ;;
9946 *) LIBOBJS
="$LIBOBJS strcasestr.$ac_objext"
9952 ac_fn_c_check_func
"$LINENO" "strerror" "ac_cv_func_strerror"
9953 if test "x$ac_cv_func_strerror" = xyes
; then :
9954 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
9957 case " $LIBOBJS " in
9958 *" strerror.$ac_objext "* ) ;;
9959 *) LIBOBJS
="$LIBOBJS strerror.$ac_objext"
9965 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
9966 if test "x$ac_cv_func_strftime" = xyes
; then :
9967 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9970 case " $LIBOBJS " in
9971 *" strftime.$ac_objext "* ) ;;
9972 *) LIBOBJS
="$LIBOBJS strftime.$ac_objext"
9978 ac_fn_c_check_func
"$LINENO" "strnlen" "ac_cv_func_strnlen"
9979 if test "x$ac_cv_func_strnlen" = xyes
; then :
9980 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
9983 case " $LIBOBJS " in
9984 *" strnlen.$ac_objext "* ) ;;
9985 *) LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
9991 ac_fn_c_check_func
"$LINENO" "strpbrk" "ac_cv_func_strpbrk"
9992 if test "x$ac_cv_func_strpbrk" = xyes
; then :
9993 $as_echo "#define HAVE_STRPBRK 1" >>confdefs.h
9996 case " $LIBOBJS " in
9997 *" strpbrk.$ac_objext "* ) ;;
9998 *) LIBOBJS
="$LIBOBJS strpbrk.$ac_objext"
10004 ac_fn_c_check_func
"$LINENO" "strstr" "ac_cv_func_strstr"
10005 if test "x$ac_cv_func_strstr" = xyes
; then :
10006 $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
10009 case " $LIBOBJS " in
10010 *" strstr.$ac_objext "* ) ;;
10011 *) LIBOBJS
="$LIBOBJS strstr.$ac_objext"
10018 ac_fn_c_check_func
"$LINENO" "strtod" "ac_cv_func_strtod"
10019 if test "x$ac_cv_func_strtod" = xyes
; then :
10020 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
10023 case " $LIBOBJS " in
10024 *" strtod.$ac_objext "* ) ;;
10025 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext"
10031 ac_fn_c_check_func
"$LINENO" "strtol" "ac_cv_func_strtol"
10032 if test "x$ac_cv_func_strtol" = xyes
; then :
10033 $as_echo "#define HAVE_STRTOL 1" >>confdefs.h
10036 case " $LIBOBJS " in
10037 *" strtol.$ac_objext "* ) ;;
10038 *) LIBOBJS
="$LIBOBJS strtol.$ac_objext"
10044 ac_fn_c_check_func
"$LINENO" "strtoul" "ac_cv_func_strtoul"
10045 if test "x$ac_cv_func_strtoul" = xyes
; then :
10046 $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h
10049 case " $LIBOBJS " in
10050 *" strtoul.$ac_objext "* ) ;;
10051 *) LIBOBJS
="$LIBOBJS strtoul.$ac_objext"
10057 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
10058 if test "x$ac_cv_func_strtoll" = xyes
; then :
10059 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
10062 case " $LIBOBJS " in
10063 *" strtoll.$ac_objext "* ) ;;
10064 *) LIBOBJS
="$LIBOBJS strtoll.$ac_objext"
10070 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
10071 if test "x$ac_cv_func_strtoull" = xyes
; then :
10072 $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h
10075 case " $LIBOBJS " in
10076 *" strtoull.$ac_objext "* ) ;;
10077 *) LIBOBJS
="$LIBOBJS strtoull.$ac_objext"
10083 ac_fn_c_check_func
"$LINENO" "strtoimax" "ac_cv_func_strtoimax"
10084 if test "x$ac_cv_func_strtoimax" = xyes
; then :
10085 $as_echo "#define HAVE_STRTOIMAX 1" >>confdefs.h
10088 case " $LIBOBJS " in
10089 *" strtoimax.$ac_objext "* ) ;;
10090 *) LIBOBJS
="$LIBOBJS strtoimax.$ac_objext"
10096 ac_fn_c_check_func
"$LINENO" "strtoumax" "ac_cv_func_strtoumax"
10097 if test "x$ac_cv_func_strtoumax" = xyes
; then :
10098 $as_echo "#define HAVE_STRTOUMAX 1" >>confdefs.h
10101 case " $LIBOBJS " in
10102 *" strtoumax.$ac_objext "* ) ;;
10103 *) LIBOBJS
="$LIBOBJS strtoumax.$ac_objext"
10110 ac_fn_c_check_func
"$LINENO" "dprintf" "ac_cv_func_dprintf"
10111 if test "x$ac_cv_func_dprintf" = xyes
; then :
10112 $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h
10115 case " $LIBOBJS " in
10116 *" dprintf.$ac_objext "* ) ;;
10117 *) LIBOBJS
="$LIBOBJS dprintf.$ac_objext"
10124 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
10125 if test "x$ac_cv_func_strchrnul" = xyes
; then :
10126 $as_echo "#define HAVE_STRCHRNUL 1" >>confdefs.h
10129 case " $LIBOBJS " in
10130 *" strchrnul.$ac_objext "* ) ;;
10131 *) LIBOBJS
="$LIBOBJS strchrnul.$ac_objext"
10138 ac_fn_c_check_func
"$LINENO" "strdup" "ac_cv_func_strdup"
10139 if test "x$ac_cv_func_strdup" = xyes
; then :
10140 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
10143 case " $LIBOBJS " in
10144 *" strdup.$ac_objext "* ) ;;
10145 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext"
10153 for ac_header
in libaudit.h
10155 ac_fn_c_check_header_mongrel
"$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
10156 if test "x$ac_cv_header_libaudit_h" = xyes
; then :
10157 cat >>confdefs.h
<<_ACEOF
10158 #define HAVE_LIBAUDIT_H 1
10165 ac_fn_c_check_decl
"$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h>
10167 if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = xyes
; then :
10173 cat >>confdefs.h
<<_ACEOF
10174 #define HAVE_DECL_AUDIT_USER_TTY $ac_have_decl
10178 ac_fn_c_check_decl
"$LINENO" "confstr" "ac_cv_have_decl_confstr" "$ac_includes_default"
10179 if test "x$ac_cv_have_decl_confstr" = xyes
; then :
10185 cat >>confdefs.h
<<_ACEOF
10186 #define HAVE_DECL_CONFSTR $ac_have_decl
10189 ac_fn_c_check_decl
"$LINENO" "printf" "ac_cv_have_decl_printf" "$ac_includes_default"
10190 if test "x$ac_cv_have_decl_printf" = xyes
; then :
10196 cat >>confdefs.h
<<_ACEOF
10197 #define HAVE_DECL_PRINTF $ac_have_decl
10200 ac_fn_c_check_decl
"$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
10201 if test "x$ac_cv_have_decl_sbrk" = xyes
; then :
10207 cat >>confdefs.h
<<_ACEOF
10208 #define HAVE_DECL_SBRK $ac_have_decl
10211 ac_fn_c_check_decl
"$LINENO" "setregid" "ac_cv_have_decl_setregid" "$ac_includes_default"
10212 if test "x$ac_cv_have_decl_setregid" = xyes
; then :
10218 cat >>confdefs.h
<<_ACEOF
10219 #define HAVE_DECL_SETREGID $ac_have_decl
10222 ac_fn_c_check_decl
"$LINENO" "strcpy" "ac_cv_have_decl_strcpy" "$ac_includes_default"
10223 if test "x$ac_cv_have_decl_strcpy" = xyes
; then :
10229 cat >>confdefs.h
<<_ACEOF
10230 #define HAVE_DECL_STRCPY $ac_have_decl
10233 ac_fn_c_check_decl
"$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
10234 if test "x$ac_cv_have_decl_strsignal" = xyes
; then :
10240 cat >>confdefs.h
<<_ACEOF
10241 #define HAVE_DECL_STRSIGNAL $ac_have_decl
10245 ac_fn_c_check_decl
"$LINENO" "strtold" "ac_cv_have_decl_strtold" "$ac_includes_default"
10246 if test "x$ac_cv_have_decl_strtold" = xyes
; then :
10252 cat >>confdefs.h
<<_ACEOF
10253 #define HAVE_DECL_STRTOLD $ac_have_decl
10255 if test $ac_have_decl = 1; then :
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken strtold" >&5
10258 $as_echo_n "checking for broken strtold... " >&6; }
10259 if ${bash_cv_strtold_broken+:} false
; then :
10260 $as_echo_n "(cached) " >&6
10262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10263 /* end confdefs.h. */
10264 #include <stdlib.h>
10268 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
10273 if ac_fn_c_try_compile
"$LINENO"; then :
10274 bash_cv_strtold_broken
=no
10276 bash_cv_strtold_broken
=yes
10278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_strtold_broken" >&5
10284 $as_echo "$bash_cv_strtold_broken" >&6; }
10285 if test "$bash_cv_strtold_broken" = "yes" ; then
10286 $as_echo "#define STRTOLD_BROKEN 1" >>confdefs.h
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoimax" >&5
10297 $as_echo_n "checking for declaration of strtoimax... " >&6; }
10298 if ${bash_cv_decl_strtoimax+:} false
; then :
10299 $as_echo_n "(cached) " >&6
10301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10302 /* end confdefs.h. */
10305 # include <stdlib.h>
10307 #if HAVE_INTTYPES_H
10308 # include <inttypes.h>
10319 if ac_fn_c_try_link
"$LINENO"; then :
10320 bash_cv_decl_strtoimax
=yes
10322 bash_cv_decl_strtoimax
=no
10324 rm -f core conftest.err conftest.
$ac_objext \
10325 conftest
$ac_exeext conftest.
$ac_ext
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoimax" >&5
10328 $as_echo "$bash_cv_decl_strtoimax" >&6; }
10329 bash_tr_func
=HAVE_DECL_
`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10330 if test $bash_cv_decl_strtoimax = yes; then
10331 cat >>confdefs.h
<<_ACEOF
10332 #define $bash_tr_func 1
10336 cat >>confdefs.h
<<_ACEOF
10337 #define $bash_tr_func 0
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtol" >&5
10346 $as_echo_n "checking for declaration of strtol... " >&6; }
10347 if ${bash_cv_decl_strtol+:} false
; then :
10348 $as_echo_n "(cached) " >&6
10350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h. */
10354 # include <stdlib.h>
10356 #if HAVE_INTTYPES_H
10357 # include <inttypes.h>
10368 if ac_fn_c_try_link
"$LINENO"; then :
10369 bash_cv_decl_strtol
=yes
10371 bash_cv_decl_strtol
=no
10373 rm -f core conftest.err conftest.
$ac_objext \
10374 conftest
$ac_exeext conftest.
$ac_ext
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtol" >&5
10377 $as_echo "$bash_cv_decl_strtol" >&6; }
10378 bash_tr_func
=HAVE_DECL_
`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10379 if test $bash_cv_decl_strtol = yes; then
10380 cat >>confdefs.h
<<_ACEOF
10381 #define $bash_tr_func 1
10385 cat >>confdefs.h
<<_ACEOF
10386 #define $bash_tr_func 0
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoll" >&5
10395 $as_echo_n "checking for declaration of strtoll... " >&6; }
10396 if ${bash_cv_decl_strtoll+:} false
; then :
10397 $as_echo_n "(cached) " >&6
10399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10400 /* end confdefs.h. */
10403 # include <stdlib.h>
10405 #if HAVE_INTTYPES_H
10406 # include <inttypes.h>
10417 if ac_fn_c_try_link
"$LINENO"; then :
10418 bash_cv_decl_strtoll
=yes
10420 bash_cv_decl_strtoll
=no
10422 rm -f core conftest.err conftest.
$ac_objext \
10423 conftest
$ac_exeext conftest.
$ac_ext
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoll" >&5
10426 $as_echo "$bash_cv_decl_strtoll" >&6; }
10427 bash_tr_func
=HAVE_DECL_
`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10428 if test $bash_cv_decl_strtoll = yes; then
10429 cat >>confdefs.h
<<_ACEOF
10430 #define $bash_tr_func 1
10434 cat >>confdefs.h
<<_ACEOF
10435 #define $bash_tr_func 0
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoul" >&5
10444 $as_echo_n "checking for declaration of strtoul... " >&6; }
10445 if ${bash_cv_decl_strtoul+:} false
; then :
10446 $as_echo_n "(cached) " >&6
10448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10452 # include <stdlib.h>
10454 #if HAVE_INTTYPES_H
10455 # include <inttypes.h>
10466 if ac_fn_c_try_link
"$LINENO"; then :
10467 bash_cv_decl_strtoul
=yes
10469 bash_cv_decl_strtoul
=no
10471 rm -f core conftest.err conftest.
$ac_objext \
10472 conftest
$ac_exeext conftest.
$ac_ext
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoul" >&5
10475 $as_echo "$bash_cv_decl_strtoul" >&6; }
10476 bash_tr_func
=HAVE_DECL_
`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10477 if test $bash_cv_decl_strtoul = yes; then
10478 cat >>confdefs.h
<<_ACEOF
10479 #define $bash_tr_func 1
10483 cat >>confdefs.h
<<_ACEOF
10484 #define $bash_tr_func 0
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoull" >&5
10493 $as_echo_n "checking for declaration of strtoull... " >&6; }
10494 if ${bash_cv_decl_strtoull+:} false
; then :
10495 $as_echo_n "(cached) " >&6
10497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h. */
10501 # include <stdlib.h>
10503 #if HAVE_INTTYPES_H
10504 # include <inttypes.h>
10515 if ac_fn_c_try_link
"$LINENO"; then :
10516 bash_cv_decl_strtoull
=yes
10518 bash_cv_decl_strtoull
=no
10520 rm -f core conftest.err conftest.
$ac_objext \
10521 conftest
$ac_exeext conftest.
$ac_ext
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoull" >&5
10524 $as_echo "$bash_cv_decl_strtoull" >&6; }
10525 bash_tr_func
=HAVE_DECL_
`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10526 if test $bash_cv_decl_strtoull = yes; then
10527 cat >>confdefs.h
<<_ACEOF
10528 #define $bash_tr_func 1
10532 cat >>confdefs.h
<<_ACEOF
10533 #define $bash_tr_func 0
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoumax" >&5
10542 $as_echo_n "checking for declaration of strtoumax... " >&6; }
10543 if ${bash_cv_decl_strtoumax+:} false
; then :
10544 $as_echo_n "(cached) " >&6
10546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10547 /* end confdefs.h. */
10550 # include <stdlib.h>
10552 #if HAVE_INTTYPES_H
10553 # include <inttypes.h>
10564 if ac_fn_c_try_link
"$LINENO"; then :
10565 bash_cv_decl_strtoumax
=yes
10567 bash_cv_decl_strtoumax
=no
10569 rm -f core conftest.err conftest.
$ac_objext \
10570 conftest
$ac_exeext conftest.
$ac_ext
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoumax" >&5
10573 $as_echo "$bash_cv_decl_strtoumax" >&6; }
10574 bash_tr_func
=HAVE_DECL_
`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10575 if test $bash_cv_decl_strtoumax = yes; then
10576 cat >>confdefs.h
<<_ACEOF
10577 #define $bash_tr_func 1
10581 cat >>confdefs.h
<<_ACEOF
10582 #define $bash_tr_func 0
10593 for ac_func
in $ac_func_list
10595 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10596 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10597 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10598 cat >>confdefs.h
<<_ACEOF
10599 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
10610 $as_echo_n "checking for working mktime... " >&6; }
10611 if ${ac_cv_func_working_mktime+:} false
; then :
10612 $as_echo_n "(cached) " >&6
10614 if test "$cross_compiling" = yes; then :
10615 ac_cv_func_working_mktime
=no
10617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10618 /* end confdefs.h. */
10619 /* Test program from Paul Eggert and Tony Leneis. */
10620 #ifdef TIME_WITH_SYS_TIME
10621 # include <sys/time.h>
10624 # ifdef HAVE_SYS_TIME_H
10625 # include <sys/time.h>
10631 #include <limits.h>
10632 #include <stdlib.h>
10634 #ifdef HAVE_UNISTD_H
10635 # include <unistd.h>
10639 # define alarm(X) /* empty */
10642 /* Work around redefinition to rpl_putenv by other config tests. */
10645 static time_t time_t_max;
10646 static time_t time_t_min;
10648 /* Values we'll use to set the TZ environment variable. */
10649 static const char *tz_strings[] = {
10650 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10651 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10653 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10655 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
10656 Based on a problem report from Andreas Jaeger. */
10658 spring_forward_gap ()
10660 /* glibc (up to about 1998-10-07) failed this test. */
10663 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10664 instead of "TZ=America/Vancouver" in order to detect the bug even
10665 on systems that don't support the Olson extension, or don't have the
10666 full zoneinfo tables installed. */
10667 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
10676 return mktime (&tm) != (time_t) -1;
10680 mktime_test1 (time_t now)
10683 return ! (lt = localtime (&now)) || mktime (lt) == now;
10687 mktime_test (time_t now)
10689 return (mktime_test1 (now)
10690 && mktime_test1 ((time_t) (time_t_max - now))
10691 && mktime_test1 ((time_t) (time_t_min + now)));
10697 /* Based on code from Ariel Faigon. */
10707 return tm.tm_mon == 2 && tm.tm_mday == 31;
10711 bigtime_test (int j)
10715 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10716 now = mktime (&tm);
10717 if (now != (time_t) -1)
10719 struct tm *lt = localtime (&now);
10721 && lt->tm_year == tm.tm_year
10722 && lt->tm_mon == tm.tm_mon
10723 && lt->tm_mday == tm.tm_mday
10724 && lt->tm_hour == tm.tm_hour
10725 && lt->tm_min == tm.tm_min
10726 && lt->tm_sec == tm.tm_sec
10727 && lt->tm_yday == tm.tm_yday
10728 && lt->tm_wday == tm.tm_wday
10729 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10730 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10739 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
10740 ignoring leap seconds. */
10741 unsigned long int answer = 2527315200UL;
10745 tm.tm_year = 2050 - 1900;
10748 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
10751 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10752 instead of "TZ=America/Vancouver" in order to detect the bug even
10753 on systems that don't support the Olson extension, or don't have the
10754 full zoneinfo tables installed. */
10755 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
10759 /* Check that the result is either a failure, or close enough
10760 to the correct answer that we can assume the discrepancy is
10761 due to leap seconds. */
10762 return (t == (time_t) -1
10763 || (0 < t && answer - 120 <= t && t <= answer + 120));
10772 /* This test makes some buggy mktime implementations loop.
10773 Give up after 60 seconds; a mktime slower than that
10774 isn't worth using anyway. */
10779 t = (time_t_max << 1) + 1;
10780 if (t <= time_t_max)
10784 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
10786 delta = time_t_max / 997; /* a suitable prime number */
10787 for (i = 0; i < N_STRINGS; i++)
10790 putenv ((char*) tz_strings[i]);
10792 for (t = 0; t <= time_t_max - delta; t += delta)
10793 if (! mktime_test (t))
10795 if (! (mktime_test ((time_t) 1)
10796 && mktime_test ((time_t) (60 * 60))
10797 && mktime_test ((time_t) (60 * 60 * 24))))
10800 for (j = 1; ; j <<= 1)
10801 if (! bigtime_test (j))
10803 else if (INT_MAX / 2 < j)
10805 if (! bigtime_test (INT_MAX))
10808 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
10811 if ac_fn_c_try_run
"$LINENO"; then :
10812 ac_cv_func_working_mktime
=yes
10814 ac_cv_func_working_mktime
=no
10816 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10817 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
10822 $as_echo "$ac_cv_func_working_mktime" >&6; }
10823 if test $ac_cv_func_working_mktime = no
; then
10824 case " $LIBOBJS " in
10825 *" mktime.$ac_objext "* ) ;;
10826 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
10834 for ac_header
in argz.h errno.h fcntl.h malloc.h stdio_ext.h
10836 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10837 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10838 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10839 cat >>confdefs.h
<<_ACEOF
10840 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10849 for ac_func
in getpagesize
10851 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10852 if test "x$ac_cv_func_getpagesize" = xyes
; then :
10853 cat >>confdefs.h
<<_ACEOF
10854 #define HAVE_GETPAGESIZE 1
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10861 $as_echo_n "checking for working mmap... " >&6; }
10862 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
10863 $as_echo_n "(cached) " >&6
10865 if test "$cross_compiling" = yes; then :
10866 ac_cv_func_mmap_fixed_mapped
=no
10868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10870 $ac_includes_default
10871 /* malloc might have been renamed as rpl_malloc. */
10874 /* Thanks to Mike Haertel and Jim Avera for this test.
10875 Here is a matrix of mmap possibilities:
10876 mmap private not fixed
10877 mmap private fixed at somewhere currently unmapped
10878 mmap private fixed at somewhere already mapped
10879 mmap shared not fixed
10880 mmap shared fixed at somewhere currently unmapped
10881 mmap shared fixed at somewhere already mapped
10882 For private mappings, we should verify that changes cannot be read()
10883 back from the file, nor mmap's back from the file at a different
10884 address. (There have been systems where private was not correctly
10885 implemented like the infamous i386 svr4.0, and systems where the
10886 VM page cache was not coherent with the file system buffer cache
10887 like early versions of FreeBSD and possibly contemporary NetBSD.)
10888 For shared mappings, we should conversely verify that changes get
10889 propagated back to all the places they're supposed to be.
10891 Grep wants private fixed already mapped.
10892 The main things grep needs to know about mmap are:
10893 * does it exist and is it safe to write into the mmap'd area
10894 * how to use it (BSD variants) */
10897 #include <sys/mman.h>
10899 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10903 /* This mess was copied from the GNU getpagesize.h. */
10904 #ifndef HAVE_GETPAGESIZE
10905 # ifdef _SC_PAGESIZE
10906 # define getpagesize() sysconf(_SC_PAGESIZE)
10907 # else /* no _SC_PAGESIZE */
10908 # ifdef HAVE_SYS_PARAM_H
10909 # include <sys/param.h>
10910 # ifdef EXEC_PAGESIZE
10911 # define getpagesize() EXEC_PAGESIZE
10912 # else /* no EXEC_PAGESIZE */
10914 # define getpagesize() NBPG * CLSIZE
10917 # endif /* no CLSIZE */
10918 # else /* no NBPG */
10920 # define getpagesize() NBPC
10921 # else /* no NBPC */
10923 # define getpagesize() PAGESIZE
10924 # endif /* PAGESIZE */
10925 # endif /* no NBPC */
10926 # endif /* no NBPG */
10927 # endif /* no EXEC_PAGESIZE */
10928 # else /* no HAVE_SYS_PARAM_H */
10929 # define getpagesize() 8192 /* punt totally */
10930 # endif /* no HAVE_SYS_PARAM_H */
10931 # endif /* no _SC_PAGESIZE */
10933 #endif /* no HAVE_GETPAGESIZE */
10938 char *data, *data2, *data3;
10939 const char *cdata2;
10943 pagesize = getpagesize ();
10945 /* First, make a file with some known garbage in it. */
10946 data = (char *) malloc (pagesize);
10949 for (i = 0; i < pagesize; ++i)
10950 *(data + i) = rand ();
10952 fd = creat ("conftest.mmap", 0600);
10955 if (write (fd, data, pagesize) != pagesize)
10959 /* Next, check that the tail of a page is zero-filled. File must have
10960 non-zero length, otherwise we risk SIGBUS for entire page. */
10961 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10965 if (write (fd2, cdata2, 1) != 1)
10967 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10968 if (data2 == MAP_FAILED)
10970 for (i = 0; i < pagesize; ++i)
10974 if (munmap (data2, pagesize))
10977 /* Next, try to mmap the file at a fixed address which already has
10978 something else allocated at it. If we can, also make sure that
10979 we see the same garbage. */
10980 fd = open ("conftest.mmap", O_RDWR);
10983 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10984 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10986 for (i = 0; i < pagesize; ++i)
10987 if (*(data + i) != *(data2 + i))
10990 /* Finally, make sure that changes to the mapped area do not
10991 percolate back to the file as seen by read(). (This is a bug on
10992 some variants of i386 svr4.0.) */
10993 for (i = 0; i < pagesize; ++i)
10994 *(data2 + i) = *(data2 + i) + 1;
10995 data3 = (char *) malloc (pagesize);
10998 if (read (fd, data3, pagesize) != pagesize)
11000 for (i = 0; i < pagesize; ++i)
11001 if (*(data + i) != *(data3 + i))
11007 if ac_fn_c_try_run
"$LINENO"; then :
11008 ac_cv_func_mmap_fixed_mapped
=yes
11010 ac_cv_func_mmap_fixed_mapped
=no
11012 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11013 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11018 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11019 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11021 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11024 rm -f conftest.mmap conftest.txt
11026 for ac_func
in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
11027 munmap stpcpy strcspn
11029 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11030 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11031 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11032 cat >>confdefs.h
<<_ACEOF
11033 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11040 INTL_DEP
= INTL_INC
= LIBINTL_H
=
11041 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
11042 INTL_DEP
='${INTL_LIBDIR}/libintl.a'
11043 INTL_INC
='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
11044 LIBINTL_H
='${INTL_BUILDDIR}/libintl.h'
11052 for ac_header
in wctype.h
11054 ac_fn_c_check_header_mongrel
"$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
11055 if test "x$ac_cv_header_wctype_h" = xyes
; then :
11056 cat >>confdefs.h
<<_ACEOF
11057 #define HAVE_WCTYPE_H 1
11064 for ac_header
in wchar.h
11066 ac_fn_c_check_header_mongrel
"$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
11067 if test "x$ac_cv_header_wchar_h" = xyes
; then :
11068 cat >>confdefs.h
<<_ACEOF
11069 #define HAVE_WCHAR_H 1
11076 for ac_header
in langinfo.h
11078 ac_fn_c_check_header_mongrel
"$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
11079 if test "x$ac_cv_header_langinfo_h" = xyes
; then :
11080 cat >>confdefs.h
<<_ACEOF
11081 #define HAVE_LANGINFO_H 1
11089 for ac_header
in mbstr.h
11091 ac_fn_c_check_header_mongrel
"$LINENO" "mbstr.h" "ac_cv_header_mbstr_h" "$ac_includes_default"
11092 if test "x$ac_cv_header_mbstr_h" = xyes
; then :
11093 cat >>confdefs.h
<<_ACEOF
11094 #define HAVE_MBSTR_H 1
11102 ac_fn_c_check_func
"$LINENO" "mbrlen" "ac_cv_func_mbrlen"
11103 if test "x$ac_cv_func_mbrlen" = xyes
; then :
11104 $as_echo "#define HAVE_MBRLEN 1" >>confdefs.h
11108 ac_fn_c_check_func
"$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp"
11109 if test "x$ac_cv_func_mbscasecmp" = xyes
; then :
11110 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
11114 ac_fn_c_check_func
"$LINENO" "mbscmp" "ac_cv_func_mbscmp"
11115 if test "x$ac_cv_func_mbscmp" = xyes
; then :
11116 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
11120 ac_fn_c_check_func
"$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs"
11121 if test "x$ac_cv_func_mbsnrtowcs" = xyes
; then :
11122 $as_echo "#define HAVE_MBSNRTOWCS 1" >>confdefs.h
11126 ac_fn_c_check_func
"$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs"
11127 if test "x$ac_cv_func_mbsrtowcs" = xyes
; then :
11128 $as_echo "#define HAVE_MBSRTOWCS 1" >>confdefs.h
11133 ac_fn_c_check_func
"$LINENO" "mbschr" "ac_cv_func_mbschr"
11134 if test "x$ac_cv_func_mbschr" = xyes
; then :
11135 $as_echo "#define HAVE_MBSCHR 1" >>confdefs.h
11138 case " $LIBOBJS " in
11139 *" mbschr.$ac_objext "* ) ;;
11140 *) LIBOBJS
="$LIBOBJS mbschr.$ac_objext"
11148 ac_fn_c_check_func
"$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
11149 if test "x$ac_cv_func_wcrtomb" = xyes
; then :
11150 $as_echo "#define HAVE_WCRTOMB 1" >>confdefs.h
11154 ac_fn_c_check_func
"$LINENO" "wcscoll" "ac_cv_func_wcscoll"
11155 if test "x$ac_cv_func_wcscoll" = xyes
; then :
11156 $as_echo "#define HAVE_WCSCOLL 1" >>confdefs.h
11160 ac_fn_c_check_func
"$LINENO" "wcsdup" "ac_cv_func_wcsdup"
11161 if test "x$ac_cv_func_wcsdup" = xyes
; then :
11162 $as_echo "#define HAVE_WCSDUP 1" >>confdefs.h
11166 ac_fn_c_check_func
"$LINENO" "wcwidth" "ac_cv_func_wcwidth"
11167 if test "x$ac_cv_func_wcwidth" = xyes
; then :
11168 $as_echo "#define HAVE_WCWIDTH 1" >>confdefs.h
11172 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
11173 if test "x$ac_cv_func_wctype" = xyes
; then :
11174 $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h
11179 ac_fn_c_check_func
"$LINENO" "wcswidth" "ac_cv_func_wcswidth"
11180 if test "x$ac_cv_func_wcswidth" = xyes
; then :
11181 $as_echo "#define HAVE_WCSWIDTH 1" >>confdefs.h
11184 case " $LIBOBJS " in
11185 *" wcswidth.$ac_objext "* ) ;;
11186 *) LIBOBJS
="$LIBOBJS wcswidth.$ac_objext"
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
11196 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
11197 if ${ac_cv_func_mbrtowc+:} false
; then :
11198 $as_echo_n "(cached) " >&6
11200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11201 /* end confdefs.h. */
11207 char const s[] = "";
11210 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
11215 if ac_fn_c_try_link
"$LINENO"; then :
11216 ac_cv_func_mbrtowc
=yes
11218 ac_cv_func_mbrtowc
=no
11220 rm -f core conftest.err conftest.
$ac_objext \
11221 conftest
$ac_exeext conftest.
$ac_ext
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
11224 $as_echo "$ac_cv_func_mbrtowc" >&6; }
11225 if test $ac_cv_func_mbrtowc = yes; then
11227 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
11231 if test $ac_cv_func_mbrtowc = yes; then
11232 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
11236 for ac_func
in iswlower iswupper towlower towupper iswctype
11238 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11239 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11240 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11241 cat >>confdefs.h
<<_ACEOF
11242 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11250 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11251 if ${bash_cv_langinfo_codeset+:} false
; then :
11252 $as_echo_n "(cached) " >&6
11254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11255 /* end confdefs.h. */
11256 #include <langinfo.h>
11260 char* cs = nl_langinfo(CODESET);
11265 if ac_fn_c_try_link
"$LINENO"; then :
11266 bash_cv_langinfo_codeset
=yes
11268 bash_cv_langinfo_codeset
=no
11270 rm -f core conftest.err conftest.
$ac_objext \
11271 conftest
$ac_exeext conftest.
$ac_ext
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_langinfo_codeset" >&5
11274 $as_echo "$bash_cv_langinfo_codeset" >&6; }
11275 if test $bash_cv_langinfo_codeset = yes; then
11276 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5
11281 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
11282 if ${bash_cv_type_wchar_t+:} false
; then :
11283 $as_echo_n "(cached) " >&6
11285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11286 /* end confdefs.h. */
11300 if ac_fn_c_try_compile
"$LINENO"; then :
11301 bash_cv_type_wchar_t
=yes
11303 bash_cv_type_wchar_t
=no
11305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wchar_t" >&5
11308 $as_echo "$bash_cv_type_wchar_t" >&6; }
11309 if test $bash_cv_type_wchar_t = yes; then
11311 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5
11316 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
11317 if ${bash_cv_type_wctype_t+:} false
; then :
11318 $as_echo_n "(cached) " >&6
11320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11321 /* end confdefs.h. */
11322 #include <wctype.h>
11334 if ac_fn_c_try_compile
"$LINENO"; then :
11335 bash_cv_type_wctype_t
=yes
11337 bash_cv_type_wctype_t
=no
11339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wctype_t" >&5
11342 $as_echo "$bash_cv_type_wctype_t" >&6; }
11343 if test $bash_cv_type_wctype_t = yes; then
11345 $as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5
11350 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
11351 if ${bash_cv_type_wint_t+:} false
; then :
11352 $as_echo_n "(cached) " >&6
11354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11356 #include <wctype.h>
11368 if ac_fn_c_try_compile
"$LINENO"; then :
11369 bash_cv_type_wint_t
=yes
11371 bash_cv_type_wint_t
=no
11373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wint_t" >&5
11376 $as_echo "$bash_cv_type_wint_t" >&6; }
11377 if test $bash_cv_type_wint_t = yes; then
11379 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcwidth broken with unicode combining characters" >&5
11384 $as_echo_n "checking for wcwidth broken with unicode combining characters... " >&6; }
11385 if ${bash_cv_wcwidth_broken+:} false
; then :
11386 $as_echo_n "(cached) " >&6
11388 if test "$cross_compiling" = yes; then :
11389 bash_cv_wcwidth_broken
=no
11391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h. */
11394 #include <unistd.h>
11395 #include <stdlib.h>
11398 #include <locale.h>
11407 setlocale(LC_ALL, "en_US.UTF-8");
11408 w = wcwidth (0x0301);
11409 exit (w == 0); /* exit 0 if wcwidth broken */
11413 if ac_fn_c_try_run
"$LINENO"; then :
11414 bash_cv_wcwidth_broken
=yes
11416 bash_cv_wcwidth_broken
=no
11418 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11419 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcwidth_broken" >&5
11424 $as_echo "$bash_cv_wcwidth_broken" >&6; }
11425 if test "$bash_cv_wcwidth_broken" = yes; then
11427 $as_echo "#define WCWIDTH_BROKEN 1" >>confdefs.h
11431 if test "$am_cv_func_iconv" = yes; then
11433 LIBS
="$LIBS $LIBINTL $LIBICONV"
11434 for ac_func
in locale_charset
11436 ac_fn_c_check_func
"$LINENO" "locale_charset" "ac_cv_func_locale_charset"
11437 if test "x$ac_cv_func_locale_charset" = xyes
; then :
11438 cat >>confdefs.h
<<_ACEOF
11439 #define HAVE_LOCALE_CHARSET 1
11450 if test "$opt_static_link" != yes; then
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11452 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11453 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11454 $as_echo_n "(cached) " >&6
11456 ac_check_lib_save_LIBS
=$LIBS
11458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11461 /* Override any GCC internal prototype to avoid an error.
11462 Use char because int might match the return type of a GCC
11463 builtin and then its argument prototype would still apply. */
11476 if ac_fn_c_try_link
"$LINENO"; then :
11477 ac_cv_lib_dl_dlopen
=yes
11479 ac_cv_lib_dl_dlopen
=no
11481 rm -f core conftest.err conftest.
$ac_objext \
11482 conftest
$ac_exeext conftest.
$ac_ext
11483 LIBS
=$ac_check_lib_save_LIBS
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11486 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11487 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11488 cat >>confdefs.h
<<_ACEOF
11489 #define HAVE_LIBDL 1
11496 for ac_func
in dlopen dlclose dlsym
11498 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11499 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11500 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11501 cat >>confdefs.h
<<_ACEOF
11502 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11510 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
11511 /* NetBSD declares sys_siglist in unistd.h. */
11512 #ifdef HAVE_UNISTD_H
11513 # include <unistd.h>
11517 if test "x$ac_cv_have_decl_sys_siglist" = xyes
; then :
11523 cat >>confdefs.h
<<_ACEOF
11524 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
11529 if test "$ac_cv_func_inet_aton" != 'yes'; then
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
11532 $as_echo_n "checking for inet_aton... " >&6; }
11533 if ${bash_cv_func_inet_aton+:} false
; then :
11534 $as_echo_n "(cached) " >&6
11536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11537 /* end confdefs.h. */
11539 #include <sys/types.h>
11540 #include <netinet/in.h>
11541 #include <arpa/inet.h>
11546 inet_aton("127.0.0.1", &ap);
11551 if ac_fn_c_try_link
"$LINENO"; then :
11552 bash_cv_func_inet_aton
=yes
11554 bash_cv_func_inet_aton
=no
11556 rm -f core conftest.err conftest.
$ac_objext \
11557 conftest
$ac_exeext conftest.
$ac_ext
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_inet_aton" >&5
11560 $as_echo "$bash_cv_func_inet_aton" >&6; }
11561 if test $bash_cv_func_inet_aton = yes; then
11562 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
11565 case " $LIBOBJS " in
11566 *" inet_aton.$ac_objext "* ) ;;
11567 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
11576 irix4
*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwent in -lsun" >&5
11577 $as_echo_n "checking for getpwent in -lsun... " >&6; }
11578 if ${ac_cv_lib_sun_getpwent+:} false
; then :
11579 $as_echo_n "(cached) " >&6
11581 ac_check_lib_save_LIBS
=$LIBS
11583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h. */
11586 /* Override any GCC internal prototype to avoid an error.
11587 Use char because int might match the return type of a GCC
11588 builtin and then its argument prototype would still apply. */
11596 return getpwent ();
11601 if ac_fn_c_try_link
"$LINENO"; then :
11602 ac_cv_lib_sun_getpwent
=yes
11604 ac_cv_lib_sun_getpwent
=no
11606 rm -f core conftest.err conftest.
$ac_objext \
11607 conftest
$ac_exeext conftest.
$ac_ext
11608 LIBS
=$ac_check_lib_save_LIBS
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwent" >&5
11611 $as_echo "$ac_cv_lib_sun_getpwent" >&6; }
11612 if test "x$ac_cv_lib_sun_getpwent" = xyes
; then :
11613 cat >>confdefs.h
<<_ACEOF
11614 #define HAVE_LIBSUN 1
11623 if test "$ac_cv_func_getpeername" = no
; then
11625 if test "X$bash_cv_have_socklib" = "X"; then
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket library" >&5
11629 $as_echo_n "checking for socket library... " >&6; }
11632 if ${bash_cv_have_socklib+:} false
; then :
11633 $as_echo_n "(cached) " >&6
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpeername in -lsocket" >&5
11636 $as_echo_n "checking for getpeername in -lsocket... " >&6; }
11637 if ${ac_cv_lib_socket_getpeername+:} false
; then :
11638 $as_echo_n "(cached) " >&6
11640 ac_check_lib_save_LIBS
=$LIBS
11641 LIBS
="-lsocket -lnsl $LIBS"
11642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11643 /* end confdefs.h. */
11645 /* Override any GCC internal prototype to avoid an error.
11646 Use char because int might match the return type of a GCC
11647 builtin and then its argument prototype would still apply. */
11651 char getpeername ();
11655 return getpeername ();
11660 if ac_fn_c_try_link
"$LINENO"; then :
11661 ac_cv_lib_socket_getpeername
=yes
11663 ac_cv_lib_socket_getpeername
=no
11665 rm -f core conftest.err conftest.
$ac_objext \
11666 conftest
$ac_exeext conftest.
$ac_ext
11667 LIBS
=$ac_check_lib_save_LIBS
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getpeername" >&5
11670 $as_echo "$ac_cv_lib_socket_getpeername" >&6; }
11671 if test "x$ac_cv_lib_socket_getpeername" = xyes
; then :
11672 bash_cv_have_socklib
=yes
11674 bash_cv_have_socklib
=no
11679 if test "X$_bash_needmsg" = Xyes
; then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_socklib" >&5
11681 $as_echo "$bash_cv_have_socklib" >&6; }
11684 if test $bash_cv_have_socklib = yes; then
11685 # check for libnsl, add it to LIBS if present
11686 if test "X$bash_cv_have_libnsl" = "X"; then
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnsl" >&5
11690 $as_echo_n "checking for libnsl... " >&6; }
11693 if ${bash_cv_have_libnsl+:} false
; then :
11694 $as_echo_n "(cached) " >&6
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
11697 $as_echo_n "checking for t_open in -lnsl... " >&6; }
11698 if ${ac_cv_lib_nsl_t_open+:} false
; then :
11699 $as_echo_n "(cached) " >&6
11701 ac_check_lib_save_LIBS
=$LIBS
11703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11704 /* end confdefs.h. */
11706 /* Override any GCC internal prototype to avoid an error.
11707 Use char because int might match the return type of a GCC
11708 builtin and then its argument prototype would still apply. */
11721 if ac_fn_c_try_link
"$LINENO"; then :
11722 ac_cv_lib_nsl_t_open
=yes
11724 ac_cv_lib_nsl_t_open
=no
11726 rm -f core conftest.err conftest.
$ac_objext \
11727 conftest
$ac_exeext conftest.
$ac_ext
11728 LIBS
=$ac_check_lib_save_LIBS
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
11731 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
11732 if test "x$ac_cv_lib_nsl_t_open" = xyes
; then :
11733 bash_cv_have_libnsl
=yes
11735 bash_cv_have_libnsl
=no
11740 if test "X$_bash_needmsg" = Xyes
; then
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_libnsl" >&5
11742 $as_echo "$bash_cv_have_libnsl" >&6; }
11745 if test $bash_cv_have_libnsl = yes; then
11746 LIBS
="-lsocket -lnsl $LIBS"
11748 LIBS
="-lsocket $LIBS"
11750 $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
11752 $as_echo "#define HAVE_GETPEERNAME 1" >>confdefs.h
11757 if test "$ac_cv_func_gethostbyname" = no
; then
11758 if test "X$bash_cv_have_gethostbyname" = "X"; then
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5
11762 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
11765 if ${bash_cv_have_gethostbyname+:} false
; then :
11766 $as_echo_n "(cached) " >&6
11768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11769 /* end confdefs.h. */
11774 struct hostent *hp;
11775 hp = gethostbyname("localhost");
11781 if ac_fn_c_try_link
"$LINENO"; then :
11782 bash_cv_have_gethostbyname
=yes
11784 bash_cv_have_gethostbyname
=no
11786 rm -f core conftest.err conftest.
$ac_objext \
11787 conftest
$ac_exeext conftest.
$ac_ext
11791 if test "X$_bash_needmsg" = Xyes
; then
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5
11793 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_gethostbyname" >&5
11796 $as_echo "$bash_cv_have_gethostbyname" >&6; }
11797 if test "$bash_cv_have_gethostbyname" = yes; then
11798 $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
11805 $as_echo_n "checking type of array argument to getgroups... " >&6; }
11806 if ${ac_cv_type_getgroups+:} false
; then :
11807 $as_echo_n "(cached) " >&6
11809 if test "$cross_compiling" = yes; then :
11810 ac_cv_type_getgroups
=cross
11812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11814 /* Thanks to Mike Rendell for this test. */
11815 $ac_includes_default
11818 #define MAX(x, y) ((x) > (y) ? (x) : (y))
11823 gid_t gidset[NGID];
11825 union { gid_t gval; long int lval; } val;
11828 for (i = 0; i < NGID; i++)
11829 gidset[i] = val.gval;
11830 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
11832 /* Exit non-zero if getgroups seems to require an array of ints. This
11833 happens when gid_t is short int but getgroups modifies an array
11835 return n > 0 && gidset[n] != val.gval;
11838 if ac_fn_c_try_run
"$LINENO"; then :
11839 ac_cv_type_getgroups
=gid_t
11841 ac_cv_type_getgroups
=int
11843 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11844 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11847 if test $ac_cv_type_getgroups = cross
; then
11848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11849 /* end confdefs.h. */
11850 #include <unistd.h>
11853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11854 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
11855 ac_cv_type_getgroups
=gid_t
11857 ac_cv_type_getgroups
=int
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
11864 $as_echo "$ac_cv_type_getgroups" >&6; }
11866 cat >>confdefs.h
<<_ACEOF
11867 #define GETGROUPS_T $ac_cv_type_getgroups
11871 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11872 if test "x$ac_cv_type_off_t" = xyes
; then :
11876 cat >>confdefs.h
<<_ACEOF
11877 #define off_t long int
11882 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11883 if test "x$ac_cv_type_mode_t" = xyes
; then :
11887 cat >>confdefs.h
<<_ACEOF
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11894 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11895 if ${ac_cv_type_uid_t+:} false
; then :
11896 $as_echo_n "(cached) " >&6
11898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11899 /* end confdefs.h. */
11900 #include <sys/types.h>
11903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11904 $EGREP "uid_t" >/dev
/null
2>&1; then :
11905 ac_cv_type_uid_t
=yes
11907 ac_cv_type_uid_t
=no
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11913 $as_echo "$ac_cv_type_uid_t" >&6; }
11914 if test $ac_cv_type_uid_t = no
; then
11916 $as_echo "#define uid_t int" >>confdefs.h
11919 $as_echo "#define gid_t int" >>confdefs.h
11923 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11924 if test "x$ac_cv_type_pid_t" = xyes
; then :
11928 cat >>confdefs.h
<<_ACEOF
11934 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11935 if test "x$ac_cv_type_size_t" = xyes
; then :
11939 cat >>confdefs.h
<<_ACEOF
11940 #define size_t unsigned int
11946 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
11947 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
11949 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
11952 for ac_type
in 'unsigned int' 'unsigned long int' \
11953 'unsigned long long int'; do
11954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11956 $ac_includes_default
11960 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
11961 test_array [0] = 0;
11962 return test_array [0];
11968 if ac_fn_c_try_compile
"$LINENO"; then :
11970 cat >>confdefs.h
<<_ACEOF
11971 #define uintptr_t $ac_type
11976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11977 test -z "$ac_type" && break
11983 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
11984 if test "x$ac_cv_type_ssize_t" = xyes
; then :
11988 cat >>confdefs.h
<<_ACEOF
11989 #define ssize_t int
11994 ac_fn_c_check_type
"$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
11995 if test "x$ac_cv_type_time_t" = xyes
; then :
11999 cat >>confdefs.h
<<_ACEOF
12000 #define time_t long
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
12008 $as_echo_n "checking for long long... " >&6; }
12009 if ${bash_cv_type_long_long+:} false
; then :
12010 $as_echo_n "(cached) " >&6
12012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12015 long long ll = 1; int i = 63;
12020 long long llm = (long long) -1;
12021 return ll << i | ll >> i | llm / ll | llm % ll;
12027 if ac_fn_c_try_link
"$LINENO"; then :
12028 bash_cv_type_long_long
='long long'
12030 bash_cv_type_long_long
='long'
12032 rm -f core conftest.err conftest.
$ac_objext \
12033 conftest
$ac_exeext conftest.
$ac_ext
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_long_long" >&5
12036 $as_echo "$bash_cv_type_long_long" >&6; }
12037 if test "$bash_cv_type_long_long" = 'long long'; then
12038 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
12044 $as_echo_n "checking for unsigned long long... " >&6; }
12045 if ${bash_cv_type_unsigned_long_long+:} false
; then :
12046 $as_echo_n "(cached) " >&6
12048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h. */
12051 unsigned long long ull = 1; int i = 63;
12056 unsigned long long ullmax = (unsigned long long) -1;
12057 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
12063 if ac_fn_c_try_link
"$LINENO"; then :
12064 bash_cv_type_unsigned_long_long
='unsigned long long'
12066 bash_cv_type_unsigned_long_long
='unsigned long'
12068 rm -f core conftest.err conftest.
$ac_objext \
12069 conftest
$ac_exeext conftest.
$ac_ext
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_unsigned_long_long" >&5
12072 $as_echo "$bash_cv_type_unsigned_long_long" >&6; }
12073 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
12074 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12080 $as_echo_n "checking return type of signal handlers... " >&6; }
12081 if ${ac_cv_type_signal+:} false
; then :
12082 $as_echo_n "(cached) " >&6
12084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h. */
12086 #include <sys/types.h>
12087 #include <signal.h>
12092 return *(signal (0, 0)) (0) == 1;
12097 if ac_fn_c_try_compile
"$LINENO"; then :
12098 ac_cv_type_signal
=int
12100 ac_cv_type_signal
=void
12102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12105 $as_echo "$ac_cv_type_signal" >&6; }
12107 cat >>confdefs.h
<<_ACEOF
12108 #define RETSIGTYPE $ac_cv_type_signal
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5
12113 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
12114 if ${ac_cv_have_sig_atomic_t+:} false
; then :
12115 $as_echo_n "(cached) " >&6
12117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12120 #include <signal.h>
12130 if ac_fn_c_try_link
"$LINENO"; then :
12131 ac_cv_have_sig_atomic_t
=yes
12133 ac_cv_have_sig_atomic_t
=no
12135 rm -f core conftest.err conftest.
$ac_objext \
12136 conftest
$ac_exeext conftest.
$ac_ext
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5
12139 $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
12140 if test "$ac_cv_have_sig_atomic_t" = "no"
12142 ac_fn_c_check_type
"$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default"
12143 if test "x$ac_cv_type_sig_atomic_t" = xyes
; then :
12147 cat >>confdefs.h
<<_ACEOF
12148 #define sig_atomic_t int
12156 # The cast to long int works around a bug in the HP C Compiler
12157 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12158 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12159 # This bug is HP SR number 8606223364.
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12161 $as_echo_n "checking size of char... " >&6; }
12162 if ${ac_cv_sizeof_char+:} false
; then :
12163 $as_echo_n "(cached) " >&6
12165 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
12168 if test "$ac_cv_type_char" = yes; then
12169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12171 as_fn_error
77 "cannot compute sizeof (char)
12172 See \`config.log' for more details" "$LINENO" 5; }
12174 ac_cv_sizeof_char
=0
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12180 $as_echo "$ac_cv_sizeof_char" >&6; }
12184 cat >>confdefs.h
<<_ACEOF
12185 #define SIZEOF_CHAR $ac_cv_sizeof_char
12189 # The cast to long int works around a bug in the HP C Compiler
12190 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12191 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12192 # This bug is HP SR number 8606223364.
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12194 $as_echo_n "checking size of short... " >&6; }
12195 if ${ac_cv_sizeof_short+:} false
; then :
12196 $as_echo_n "(cached) " >&6
12198 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12201 if test "$ac_cv_type_short" = yes; then
12202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12204 as_fn_error
77 "cannot compute sizeof (short)
12205 See \`config.log' for more details" "$LINENO" 5; }
12207 ac_cv_sizeof_short
=0
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12213 $as_echo "$ac_cv_sizeof_short" >&6; }
12217 cat >>confdefs.h
<<_ACEOF
12218 #define SIZEOF_SHORT $ac_cv_sizeof_short
12222 # The cast to long int works around a bug in the HP C Compiler
12223 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12224 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12225 # This bug is HP SR number 8606223364.
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12227 $as_echo_n "checking size of int... " >&6; }
12228 if ${ac_cv_sizeof_int+:} false
; then :
12229 $as_echo_n "(cached) " >&6
12231 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12234 if test "$ac_cv_type_int" = yes; then
12235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12237 as_fn_error
77 "cannot compute sizeof (int)
12238 See \`config.log' for more details" "$LINENO" 5; }
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12246 $as_echo "$ac_cv_sizeof_int" >&6; }
12250 cat >>confdefs.h
<<_ACEOF
12251 #define SIZEOF_INT $ac_cv_sizeof_int
12255 # The cast to long int works around a bug in the HP C Compiler
12256 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12257 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12258 # This bug is HP SR number 8606223364.
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12260 $as_echo_n "checking size of long... " >&6; }
12261 if ${ac_cv_sizeof_long+:} false
; then :
12262 $as_echo_n "(cached) " >&6
12264 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12267 if test "$ac_cv_type_long" = yes; then
12268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12270 as_fn_error
77 "cannot compute sizeof (long)
12271 See \`config.log' for more details" "$LINENO" 5; }
12273 ac_cv_sizeof_long
=0
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12279 $as_echo "$ac_cv_sizeof_long" >&6; }
12283 cat >>confdefs.h
<<_ACEOF
12284 #define SIZEOF_LONG $ac_cv_sizeof_long
12288 # The cast to long int works around a bug in the HP C Compiler
12289 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12290 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12291 # This bug is HP SR number 8606223364.
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
12293 $as_echo_n "checking size of char *... " >&6; }
12294 if ${ac_cv_sizeof_char_p+:} false
; then :
12295 $as_echo_n "(cached) " >&6
12297 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
12300 if test "$ac_cv_type_char_p" = yes; then
12301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12303 as_fn_error
77 "cannot compute sizeof (char *)
12304 See \`config.log' for more details" "$LINENO" 5; }
12306 ac_cv_sizeof_char_p
=0
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
12312 $as_echo "$ac_cv_sizeof_char_p" >&6; }
12316 cat >>confdefs.h
<<_ACEOF
12317 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
12321 # The cast to long int works around a bug in the HP C Compiler
12322 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12323 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12324 # This bug is HP SR number 8606223364.
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
12326 $as_echo_n "checking size of double... " >&6; }
12327 if ${ac_cv_sizeof_double+:} false
; then :
12328 $as_echo_n "(cached) " >&6
12330 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
12333 if test "$ac_cv_type_double" = yes; then
12334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12336 as_fn_error
77 "cannot compute sizeof (double)
12337 See \`config.log' for more details" "$LINENO" 5; }
12339 ac_cv_sizeof_double
=0
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
12345 $as_echo "$ac_cv_sizeof_double" >&6; }
12349 cat >>confdefs.h
<<_ACEOF
12350 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
12354 # The cast to long int works around a bug in the HP C Compiler
12355 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12356 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12357 # This bug is HP SR number 8606223364.
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12359 $as_echo_n "checking size of long long... " >&6; }
12360 if ${ac_cv_sizeof_long_long+:} false
; then :
12361 $as_echo_n "(cached) " >&6
12363 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12366 if test "$ac_cv_type_long_long" = yes; then
12367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12369 as_fn_error
77 "cannot compute sizeof (long long)
12370 See \`config.log' for more details" "$LINENO" 5; }
12372 ac_cv_sizeof_long_long
=0
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12378 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12382 cat >>confdefs.h
<<_ACEOF
12383 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12388 ac_fn_c_check_type
"$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
12389 if test "x$ac_cv_type_u_int" = xyes
; then :
12393 cat >>confdefs.h
<<_ACEOF
12394 #define u_int unsigned int
12399 ac_fn_c_check_type
"$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
12400 if test "x$ac_cv_type_u_long" = xyes
; then :
12404 cat >>confdefs.h
<<_ACEOF
12405 #define u_long unsigned long
12412 if test "$ac_cv_sizeof_short" = 2; then
12413 ac_fn_c_check_type
"$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
12414 if test "x$ac_cv_type_bits16_t" = xyes
; then :
12418 cat >>confdefs.h
<<_ACEOF
12419 #define bits16_t short
12424 elif test "$ac_cv_sizeof_char" = 2; then
12425 ac_fn_c_check_type
"$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
12426 if test "x$ac_cv_type_bits16_t" = xyes
; then :
12430 cat >>confdefs.h
<<_ACEOF
12431 #define bits16_t char
12437 ac_fn_c_check_type
"$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
12438 if test "x$ac_cv_type_bits16_t" = xyes
; then :
12442 cat >>confdefs.h
<<_ACEOF
12443 #define bits16_t short
12451 if test "$ac_cv_sizeof_short" = 2; then
12452 ac_fn_c_check_type
"$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
12453 if test "x$ac_cv_type_u_bits16_t" = xyes
; then :
12457 cat >>confdefs.h
<<_ACEOF
12458 #define u_bits16_t unsigned short
12463 elif test "$ac_cv_sizeof_char" = 2; then
12464 ac_fn_c_check_type
"$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
12465 if test "x$ac_cv_type_u_bits16_t" = xyes
; then :
12469 cat >>confdefs.h
<<_ACEOF
12470 #define u_bits16_t unsigned char
12476 ac_fn_c_check_type
"$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
12477 if test "x$ac_cv_type_u_bits16_t" = xyes
; then :
12481 cat >>confdefs.h
<<_ACEOF
12482 #define u_bits16_t unsigned short
12490 if test "$ac_cv_sizeof_int" = 4; then
12491 ac_fn_c_check_type
"$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
12492 if test "x$ac_cv_type_bits32_t" = xyes
; then :
12496 cat >>confdefs.h
<<_ACEOF
12497 #define bits32_t int
12502 elif test "$ac_cv_sizeof_long" = 4; then
12503 ac_fn_c_check_type
"$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
12504 if test "x$ac_cv_type_bits32_t" = xyes
; then :
12508 cat >>confdefs.h
<<_ACEOF
12509 #define bits32_t long
12515 ac_fn_c_check_type
"$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
12516 if test "x$ac_cv_type_bits32_t" = xyes
; then :
12520 cat >>confdefs.h
<<_ACEOF
12521 #define bits32_t int
12529 if test "$ac_cv_sizeof_int" = 4; then
12530 ac_fn_c_check_type
"$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
12531 if test "x$ac_cv_type_u_bits32_t" = xyes
; then :
12535 cat >>confdefs.h
<<_ACEOF
12536 #define u_bits32_t unsigned int
12541 elif test "$ac_cv_sizeof_long" = 4; then
12542 ac_fn_c_check_type
"$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
12543 if test "x$ac_cv_type_u_bits32_t" = xyes
; then :
12547 cat >>confdefs.h
<<_ACEOF
12548 #define u_bits32_t unsigned long
12554 ac_fn_c_check_type
"$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
12555 if test "x$ac_cv_type_u_bits32_t" = xyes
; then :
12559 cat >>confdefs.h
<<_ACEOF
12560 #define u_bits32_t unsigned int
12568 if test "$ac_cv_sizeof_char_p" = 8; then
12569 ac_fn_c_check_type
"$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12570 if test "x$ac_cv_type_bits64_t" = xyes
; then :
12574 cat >>confdefs.h
<<_ACEOF
12575 #define bits64_t char *
12580 elif test "$ac_cv_sizeof_double" = 8; then
12581 ac_fn_c_check_type
"$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12582 if test "x$ac_cv_type_bits64_t" = xyes
; then :
12586 cat >>confdefs.h
<<_ACEOF
12587 #define bits64_t double
12592 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
12593 ac_fn_c_check_type
"$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12594 if test "x$ac_cv_type_bits64_t" = xyes
; then :
12598 cat >>confdefs.h
<<_ACEOF
12599 #define bits64_t long long
12604 elif test "$ac_cv_sizeof_long" = 8; then
12605 ac_fn_c_check_type
"$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12606 if test "x$ac_cv_type_bits64_t" = xyes
; then :
12610 cat >>confdefs.h
<<_ACEOF
12611 #define bits64_t long
12617 ac_fn_c_check_type
"$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12618 if test "x$ac_cv_type_bits64_t" = xyes
; then :
12622 cat >>confdefs.h
<<_ACEOF
12623 #define bits64_t double
12632 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
12633 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12634 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
12638 cat >>confdefs.h
<<_ACEOF
12639 #define ptrdiff_t int
12644 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
12645 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12646 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
12650 cat >>confdefs.h
<<_ACEOF
12651 #define ptrdiff_t long
12656 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
12657 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12658 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
12662 cat >>confdefs.h
<<_ACEOF
12663 #define ptrdiff_t long long
12669 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12670 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
12674 cat >>confdefs.h
<<_ACEOF
12675 #define ptrdiff_t int
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
12684 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
12685 if ${ac_cv_header_stat_broken+:} false
; then :
12686 $as_echo_n "(cached) " >&6
12688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12689 /* end confdefs.h. */
12690 #include <sys/types.h>
12691 #include <sys/stat.h>
12693 #if defined S_ISBLK && defined S_IFDIR
12694 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
12697 #if defined S_ISBLK && defined S_IFCHR
12698 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
12701 #if defined S_ISLNK && defined S_IFREG
12702 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
12705 #if defined S_ISSOCK && defined S_IFREG
12706 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
12710 if ac_fn_c_try_compile
"$LINENO"; then :
12711 ac_cv_header_stat_broken
=no
12713 ac_cv_header_stat_broken
=yes
12715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
12718 $as_echo "$ac_cv_header_stat_broken" >&6; }
12719 if test $ac_cv_header_stat_broken = yes; then
12721 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
12727 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
12728 if ${ac_cv_sys_interpreter+:} false
; then :
12729 $as_echo_n "(cached) " >&6
12735 (SHELL
=/bin
/sh
; export SHELL
; .
/conftest
>/dev
/null
2>&1)
12736 if test $?
-ne 69; then
12737 ac_cv_sys_interpreter
=yes
12739 ac_cv_sys_interpreter
=no
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
12744 $as_echo "$ac_cv_sys_interpreter" >&6; }
12745 interpval
=$ac_cv_sys_interpreter
12747 if test $ac_cv_sys_interpreter = yes; then
12748 $as_echo "#define HAVE_HASH_BANG_EXEC 1" >>confdefs.h
12752 if test "$ac_cv_func_lstat" = "no"; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
12754 $as_echo_n "checking for lstat... " >&6; }
12755 if ${bash_cv_func_lstat+:} false
; then :
12756 $as_echo_n "(cached) " >&6
12758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h. */
12761 #include <sys/types.h>
12762 #include <sys/stat.h>
12767 lstat(".",(struct stat *)0);
12772 if ac_fn_c_try_link
"$LINENO"; then :
12773 bash_cv_func_lstat
=yes
12775 bash_cv_func_lstat
=no
12777 rm -f core conftest.err conftest.
$ac_objext \
12778 conftest
$ac_exeext conftest.
$ac_ext
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5
12781 $as_echo "$bash_cv_func_lstat" >&6; }
12782 if test $bash_cv_func_lstat = yes; then
12783 $as_echo "#define HAVE_LSTAT 1" >>confdefs.h
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ctype macros accept non-ascii characters" >&5
12791 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
12792 if ${bash_cv_func_ctype_nonascii+:} false
; then :
12793 $as_echo_n "(cached) " >&6
12795 if test "$cross_compiling" = yes; then :
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
12797 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
12798 bash_cv_func_ctype_nonascii
=no
12801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12802 /* end confdefs.h. */
12804 #ifdef HAVE_LOCALE_H
12805 #include <locale.h>
12818 #ifdef HAVE_SETLOCALE
12819 /* We take a shot here. If that locale is not known, try the
12820 system default. We try this one because '\342' (226) is
12821 known to be a printable character in that locale. */
12822 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
12823 if (deflocale == 0)
12824 deflocale = setlocale(LC_ALL, "");
12831 exit (r1 == 0 || r2 == 0);
12835 if ac_fn_c_try_run
"$LINENO"; then :
12836 bash_cv_func_ctype_nonascii
=yes
12838 bash_cv_func_ctype_nonascii
=no
12840 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12841 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_ctype_nonascii" >&5
12847 $as_echo "$bash_cv_func_ctype_nonascii" >&6; }
12848 if test $bash_cv_func_ctype_nonascii = yes; then
12849 $as_echo "#define CTYPE_NON_ASCII 1" >>confdefs.h
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dup2 fails to clear the close-on-exec flag" >&5
12854 $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
12855 if ${bash_cv_dup2_broken+:} false
; then :
12856 $as_echo_n "(cached) " >&6
12858 if test "$cross_compiling" = yes; then :
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
12860 $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
12861 bash_cv_dup2_broken
=no
12863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12864 /* end confdefs.h. */
12866 #include <sys/types.h>
12871 fd1 = open("/dev/null", 2);
12872 if (fcntl(fd1, 2, 1) < 0)
12874 fd2 = dup2(fd1, 1);
12877 fl = fcntl(fd2, 1, 0);
12878 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
12883 if ac_fn_c_try_run
"$LINENO"; then :
12884 bash_cv_dup2_broken
=yes
12886 bash_cv_dup2_broken
=no
12888 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12889 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dup2_broken" >&5
12896 $as_echo "$bash_cv_dup2_broken" >&6; }
12897 if test $bash_cv_dup2_broken = yes; then
12898 $as_echo "#define DUP2_BROKEN 1" >>confdefs.h
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pgrps need synchronization" >&5
12904 $as_echo_n "checking whether pgrps need synchronization... " >&6; }
12905 if ${bash_cv_pgrp_pipe+:} false
; then :
12906 $as_echo_n "(cached) " >&6
12908 if test "$cross_compiling" = yes; then :
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
12910 $as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
12911 bash_cv_pgrp_pipe
=no
12913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12916 #ifdef HAVE_UNISTD_H
12917 # include <unistd.h>
12921 # ifdef GETPGRP_VOID
12922 # define getpgID() getpgrp()
12924 # define getpgID() getpgrp(0)
12925 # define setpgid(x,y) setpgrp(x,y)
12927 int pid1, pid2, fds[2];
12931 switch (pid1 = fork()) {
12935 setpgid(0, getpid());
12938 setpgid(pid1, pid1);
12940 sleep(2); /* let first child die */
12945 switch (pid2 = fork()) {
12950 ok = getpgID() == pid1;
12951 write(fds[1], &ok, 1);
12954 setpgid(pid2, pid1);
12957 if (read(fds[0], &ok, 1) != 1)
12965 if ac_fn_c_try_run
"$LINENO"; then :
12966 bash_cv_pgrp_pipe
=no
12968 bash_cv_pgrp_pipe
=yes
12970 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12971 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_pgrp_pipe" >&5
12978 $as_echo "$bash_cv_pgrp_pipe" >&6; }
12979 if test $bash_cv_pgrp_pipe = yes; then
12980 $as_echo "#define PGRP_PIPE 1" >>confdefs.h
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
12986 $as_echo_n "checking for type of signal functions... " >&6; }
12987 if ${bash_cv_signal_vintage+:} false
; then :
12988 $as_echo_n "(cached) " >&6
12991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12992 /* end confdefs.h. */
12993 #include <signal.h>
12999 struct sigaction sa;
13000 sigemptyset(&ss); sigsuspend(&ss);
13001 sigaction(SIGINT, &sa, (struct sigaction *) 0);
13002 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
13008 if ac_fn_c_try_link
"$LINENO"; then :
13009 bash_cv_signal_vintage
=posix
13012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h. */
13014 #include <signal.h>
13019 int mask = sigmask(SIGINT);
13020 sigsetmask(mask); sigblock(mask); sigpause(mask);
13026 if ac_fn_c_try_link
"$LINENO"; then :
13027 bash_cv_signal_vintage
=4.2bsd
13030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13031 /* end confdefs.h. */
13033 #include <signal.h>
13034 RETSIGTYPE foo() { }
13039 int mask = sigmask(SIGINT);
13040 sigset(SIGINT, foo); sigrelse(SIGINT);
13041 sighold(SIGINT); sigpause(SIGINT);
13047 if ac_fn_c_try_link
"$LINENO"; then :
13048 bash_cv_signal_vintage
=svr3
13050 bash_cv_signal_vintage
=v7
13053 rm -f core conftest.err conftest.
$ac_objext \
13054 conftest
$ac_exeext conftest.
$ac_ext
13057 rm -f core conftest.err conftest.
$ac_objext \
13058 conftest
$ac_exeext conftest.
$ac_ext
13061 rm -f core conftest.err conftest.
$ac_objext \
13062 conftest
$ac_exeext conftest.
$ac_ext
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
13067 $as_echo "$bash_cv_signal_vintage" >&6; }
13068 if test "$bash_cv_signal_vintage" = posix
; then
13069 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
13071 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13072 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
13074 elif test "$bash_cv_signal_vintage" = svr3
; then
13075 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist and sys_nerr" >&5
13081 $as_echo_n "checking for sys_errlist and sys_nerr... " >&6; }
13082 if ${bash_cv_sys_errlist+:} false
; then :
13083 $as_echo_n "(cached) " >&6
13085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13086 /* end confdefs.h. */
13091 extern char *sys_errlist[];
13092 extern int sys_nerr;
13093 char *msg = sys_errlist[sys_nerr - 1];
13098 if ac_fn_c_try_link
"$LINENO"; then :
13099 bash_cv_sys_errlist
=yes
13101 bash_cv_sys_errlist
=no
13103 rm -f core conftest.err conftest.
$ac_objext \
13104 conftest
$ac_exeext conftest.
$ac_ext
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_errlist" >&5
13107 $as_echo "$bash_cv_sys_errlist" >&6; }
13108 if test $bash_cv_sys_errlist = yes; then
13109 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_siglist in system C library" >&5
13115 $as_echo_n "checking for sys_siglist in system C library... " >&6; }
13116 if ${bash_cv_sys_siglist+:} false
; then :
13117 $as_echo_n "(cached) " >&6
13119 if test "$cross_compiling" = yes; then :
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
13121 $as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
13122 bash_cv_sys_siglist
=no
13124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13125 /* end confdefs.h. */
13127 #include <sys/types.h>
13128 #include <signal.h>
13129 #ifdef HAVE_UNISTD_H
13130 #include <unistd.h>
13132 #if !HAVE_DECL_SYS_SIGLIST
13133 extern char *sys_siglist[];
13137 char *msg = sys_siglist[2];
13141 if ac_fn_c_try_run
"$LINENO"; then :
13142 bash_cv_sys_siglist
=yes
13144 bash_cv_sys_siglist
=no
13146 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13147 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_siglist" >&5
13153 $as_echo "$bash_cv_sys_siglist" >&6; }
13154 if test $bash_cv_sys_siglist = yes; then
13155 $as_echo "#define HAVE_SYS_SIGLIST 1" >>confdefs.h
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in signal.h or unistd.h" >&5
13160 $as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
13161 if ${bash_cv_decl_under_sys_siglist+:} false
; then :
13162 $as_echo_n "(cached) " >&6
13164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13165 /* end confdefs.h. */
13167 #include <sys/types.h>
13168 #include <signal.h>
13169 #ifdef HAVE_UNISTD_H
13170 #include <unistd.h>
13175 char *msg = _sys_siglist[2];
13180 if ac_fn_c_try_compile
"$LINENO"; then :
13181 bash_cv_decl_under_sys_siglist
=yes
13183 bash_cv_decl_under_sys_siglist
=no
13185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_under_sys_siglist" >&5
13188 $as_echo "$bash_cv_decl_under_sys_siglist" >&6; }
13189 if test $bash_cv_decl_under_sys_siglist = yes; then
13190 $as_echo "#define UNDER_SYS_SIGLIST_DECLARED 1" >>confdefs.h
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in system C library" >&5
13196 $as_echo_n "checking for _sys_siglist in system C library... " >&6; }
13197 if ${bash_cv_under_sys_siglist+:} false
; then :
13198 $as_echo_n "(cached) " >&6
13200 if test "$cross_compiling" = yes; then :
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
13202 $as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
13203 bash_cv_under_sys_siglist
=no
13205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13208 #include <sys/types.h>
13209 #include <signal.h>
13210 #ifdef HAVE_UNISTD_H
13211 #include <unistd.h>
13213 #ifndef UNDER_SYS_SIGLIST_DECLARED
13214 extern char *_sys_siglist[];
13218 char *msg = (char *)_sys_siglist[2];
13222 if ac_fn_c_try_run
"$LINENO"; then :
13223 bash_cv_under_sys_siglist
=yes
13225 bash_cv_under_sys_siglist
=no
13227 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13228 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_under_sys_siglist" >&5
13234 $as_echo "$bash_cv_under_sys_siglist" >&6; }
13235 if test $bash_cv_under_sys_siglist = yes; then
13236 $as_echo "#define HAVE_UNDER_SYS_SIGLIST 1" >>confdefs.h
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers are of type void" >&5
13242 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
13243 if ${bash_cv_void_sighandler+:} false
; then :
13244 $as_echo_n "(cached) " >&6
13246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h. */
13248 #include <sys/types.h>
13249 #include <signal.h>
13256 void (*signal ()) ();
13265 if ac_fn_c_try_compile
"$LINENO"; then :
13266 bash_cv_void_sighandler
=yes
13268 bash_cv_void_sighandler
=no
13270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_void_sighandler" >&5
13273 $as_echo "$bash_cv_void_sighandler" >&6; }
13274 if test $bash_cv_void_sighandler = yes; then
13275 $as_echo "#define VOID_SIGHANDLER 1" >>confdefs.h
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
13282 $as_echo_n "checking for clock_t... " >&6; }
13283 if ${bash_cv_type_clock_t+:} false
; then :
13284 $as_echo_n "(cached) " >&6
13286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13287 /* end confdefs.h. */
13288 #include <sys/types.h>
13290 #include <stdlib.h>
13291 #include <stddef.h>
13293 #if HAVE_INTTYPES_H
13294 #include <inttypes.h>
13297 #include <stdint.h>
13299 #include <sys/times.h>
13302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13303 $EGREP "clock_t" >/dev
/null
2>&1; then :
13304 bash_cv_type_clock_t
=yes
13306 bash_cv_type_clock_t
=no
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_clock_t" >&5
13313 $as_echo "$bash_cv_type_clock_t" >&6; }
13315 if test $bash_cv_type_clock_t = no
; then
13316 cat >>confdefs.h
<<_ACEOF
13317 #define clock_t long
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset_t" >&5
13325 $as_echo_n "checking for sigset_t... " >&6; }
13326 if ${bash_cv_type_sigset_t+:} false
; then :
13327 $as_echo_n "(cached) " >&6
13329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13330 /* end confdefs.h. */
13331 #include <sys/types.h>
13333 #include <stdlib.h>
13334 #include <stddef.h>
13336 #if HAVE_INTTYPES_H
13337 #include <inttypes.h>
13340 #include <stdint.h>
13342 #include <signal.h>
13345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13346 $EGREP "sigset_t" >/dev
/null
2>&1; then :
13347 bash_cv_type_sigset_t
=yes
13349 bash_cv_type_sigset_t
=no
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_sigset_t" >&5
13356 $as_echo "$bash_cv_type_sigset_t" >&6; }
13358 if test $bash_cv_type_sigset_t = no
; then
13359 cat >>confdefs.h
<<_ACEOF
13360 #define sigset_t int
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
13368 $as_echo_n "checking for sig_atomic_t... " >&6; }
13369 if ${bash_cv_type_sig_atomic_t+:} false
; then :
13370 $as_echo_n "(cached) " >&6
13372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13373 /* end confdefs.h. */
13374 #include <sys/types.h>
13376 #include <stdlib.h>
13377 #include <stddef.h>
13379 #if HAVE_INTTYPES_H
13380 #include <inttypes.h>
13383 #include <stdint.h>
13385 #include <signal.h>
13388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13389 $EGREP "sig_atomic_t" >/dev
/null
2>&1; then :
13390 bash_cv_type_sig_atomic_t
=yes
13392 bash_cv_type_sig_atomic_t
=no
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_sig_atomic_t" >&5
13399 $as_echo "$bash_cv_type_sig_atomic_t" >&6; }
13401 if test $bash_cv_type_sig_atomic_t = no
; then
13402 cat >>confdefs.h
<<_ACEOF
13403 #define sig_atomic_t int
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quad_t" >&5
13411 $as_echo_n "checking for quad_t... " >&6; }
13412 if ${bash_cv_type_quad_t+:} false
; then :
13413 $as_echo_n "(cached) " >&6
13415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13416 /* end confdefs.h. */
13417 #include <sys/types.h>
13419 #include <stdlib.h>
13420 #include <stddef.h>
13422 #if HAVE_INTTYPES_H
13423 #include <inttypes.h>
13426 #include <stdint.h>
13431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13432 $EGREP "quad_t" >/dev
/null
2>&1; then :
13433 bash_cv_type_quad_t
=yes
13435 bash_cv_type_quad_t
=no
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_quad_t" >&5
13442 $as_echo "$bash_cv_type_quad_t" >&6; }
13443 if test $bash_cv_type_quad_t = yes; then
13444 $as_echo "#define HAVE_QUAD_T 1" >>confdefs.h
13447 if test $bash_cv_type_quad_t = no
; then
13448 cat >>confdefs.h
<<_ACEOF
13449 #define quad_t long
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
13457 $as_echo_n "checking for intmax_t... " >&6; }
13458 if ${bash_cv_type_intmax_t+:} false
; then :
13459 $as_echo_n "(cached) " >&6
13461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13462 /* end confdefs.h. */
13463 #include <sys/types.h>
13465 #include <stdlib.h>
13466 #include <stddef.h>
13468 #if HAVE_INTTYPES_H
13469 #include <inttypes.h>
13472 #include <stdint.h>
13477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13478 $EGREP "intmax_t" >/dev
/null
2>&1; then :
13479 bash_cv_type_intmax_t
=yes
13481 bash_cv_type_intmax_t
=no
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_intmax_t" >&5
13488 $as_echo "$bash_cv_type_intmax_t" >&6; }
13490 if test $bash_cv_type_intmax_t = no
; then
13491 cat >>confdefs.h
<<_ACEOF
13492 #define intmax_t $bash_cv_type_long_long
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintmax_t" >&5
13500 $as_echo_n "checking for uintmax_t... " >&6; }
13501 if ${bash_cv_type_uintmax_t+:} false
; then :
13502 $as_echo_n "(cached) " >&6
13504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13505 /* end confdefs.h. */
13506 #include <sys/types.h>
13508 #include <stdlib.h>
13509 #include <stddef.h>
13511 #if HAVE_INTTYPES_H
13512 #include <inttypes.h>
13515 #include <stdint.h>
13520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13521 $EGREP "uintmax_t" >/dev
/null
2>&1; then :
13522 bash_cv_type_uintmax_t
=yes
13524 bash_cv_type_uintmax_t
=no
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_uintmax_t" >&5
13531 $as_echo "$bash_cv_type_uintmax_t" >&6; }
13533 if test $bash_cv_type_uintmax_t = no
; then
13534 cat >>confdefs.h
<<_ACEOF
13535 #define uintmax_t $bash_cv_type_unsigned_long_long
13540 if test "$ac_cv_header_sys_socket_h" = "yes"; then
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
13544 $as_echo_n "checking for socklen_t... " >&6; }
13545 if ${bash_cv_type_socklen_t+:} false
; then :
13546 $as_echo_n "(cached) " >&6
13548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h. */
13550 #include <sys/types.h>
13552 #include <stdlib.h>
13553 #include <stddef.h>
13555 #if HAVE_INTTYPES_H
13556 #include <inttypes.h>
13559 #include <stdint.h>
13561 #include <sys/socket.h>
13564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13565 $EGREP "socklen_t" >/dev
/null
2>&1; then :
13566 bash_cv_type_socklen_t
=yes
13568 bash_cv_type_socklen_t
=no
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_socklen_t" >&5
13575 $as_echo "$bash_cv_type_socklen_t" >&6; }
13576 if test $bash_cv_type_socklen_t = yes; then
13577 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
13580 if test $bash_cv_type_socklen_t = no
; then
13581 cat >>confdefs.h
<<_ACEOF
13582 #define socklen_t unsigned int
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size and type of struct rlimit fields" >&5
13589 $as_echo_n "checking for size and type of struct rlimit fields... " >&6; }
13590 if ${bash_cv_type_rlimit+:} false
; then :
13591 $as_echo_n "(cached) " >&6
13593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h. */
13595 #include <sys/types.h>
13596 #include <sys/resource.h>
13605 if ac_fn_c_try_compile
"$LINENO"; then :
13606 bash_cv_type_rlimit
=rlim_t
13609 if test "$cross_compiling" = yes; then :
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
13611 $as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
13612 bash_cv_type_rlimit
=long
13614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13615 /* end confdefs.h. */
13617 #include <sys/types.h>
13618 #include <sys/time.h>
13619 #include <sys/resource.h>
13624 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
13630 if ac_fn_c_try_run
"$LINENO"; then :
13631 bash_cv_type_rlimit
=quad_t
13633 bash_cv_type_rlimit
=long
13635 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13636 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_rlimit" >&5
13645 $as_echo "$bash_cv_type_rlimit" >&6; }
13646 if test $bash_cv_type_rlimit = quad_t
; then
13647 $as_echo "#define RLIMTYPE quad_t" >>confdefs.h
13649 elif test $bash_cv_type_rlimit = rlim_t
; then
13650 $as_echo "#define RLIMTYPE rlim_t" >>confdefs.h
13655 # The cast to long int works around a bug in the HP C Compiler
13656 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13657 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13658 # This bug is HP SR number 8606223364.
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
13660 $as_echo_n "checking size of intmax_t... " >&6; }
13661 if ${ac_cv_sizeof_intmax_t+:} false
; then :
13662 $as_echo_n "(cached) " >&6
13664 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then :
13667 if test "$ac_cv_type_intmax_t" = yes; then
13668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13670 as_fn_error
77 "cannot compute sizeof (intmax_t)
13671 See \`config.log' for more details" "$LINENO" 5; }
13673 ac_cv_sizeof_intmax_t
=0
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
13679 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
13683 cat >>confdefs.h
<<_ACEOF
13684 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
13690 ac_fn_c_check_member
"$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" "
13691 #include <sys/types.h>
13692 #include <termios.h>
13695 if test "x$ac_cv_member_struct_termios_c_line" = xyes
; then :
13696 $as_echo "#define TERMIOS_LDISC 1" >>confdefs.h
13702 ac_fn_c_check_member
"$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" "
13703 #include <sys/types.h>
13704 #include <termio.h>
13707 if test "x$ac_cv_member_struct_termio_c_line" = xyes
; then :
13708 $as_echo "#define TERMIO_LDISC 1" >>confdefs.h
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5
13715 $as_echo_n "checking for struct dirent.d_ino... " >&6; }
13716 if ${bash_cv_dirent_has_dino+:} false
; then :
13717 $as_echo_n "(cached) " >&6
13719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13720 /* end confdefs.h. */
13723 #include <sys/types.h>
13724 #ifdef HAVE_UNISTD_H
13725 # include <unistd.h>
13726 #endif /* HAVE_UNISTD_H */
13727 #if defined(HAVE_DIRENT_H)
13728 # include <dirent.h>
13730 # define dirent direct
13731 # ifdef HAVE_SYS_NDIR_H
13732 # include <sys/ndir.h>
13733 # endif /* SYSNDIR */
13734 # ifdef HAVE_SYS_DIR_H
13735 # include <sys/dir.h>
13736 # endif /* SYSDIR */
13737 # ifdef HAVE_NDIR_H
13740 #endif /* HAVE_DIRENT_H */
13746 struct dirent d; int z; z = d.d_ino;
13752 if ac_fn_c_try_compile
"$LINENO"; then :
13753 bash_cv_dirent_has_dino
=yes
13755 bash_cv_dirent_has_dino
=no
13757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_dino" >&5
13761 $as_echo "$bash_cv_dirent_has_dino" >&6; }
13762 if test $bash_cv_dirent_has_dino = yes; then
13763 $as_echo "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5
13769 $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
13770 if ${bash_cv_dirent_has_d_fileno+:} false
; then :
13771 $as_echo_n "(cached) " >&6
13773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13774 /* end confdefs.h. */
13777 #include <sys/types.h>
13778 #ifdef HAVE_UNISTD_H
13779 # include <unistd.h>
13780 #endif /* HAVE_UNISTD_H */
13781 #if defined(HAVE_DIRENT_H)
13782 # include <dirent.h>
13784 # define dirent direct
13785 # ifdef HAVE_SYS_NDIR_H
13786 # include <sys/ndir.h>
13787 # endif /* SYSNDIR */
13788 # ifdef HAVE_SYS_DIR_H
13789 # include <sys/dir.h>
13790 # endif /* SYSDIR */
13791 # ifdef HAVE_NDIR_H
13794 #endif /* HAVE_DIRENT_H */
13800 struct dirent d; int z; z = d.d_fileno;
13806 if ac_fn_c_try_compile
"$LINENO"; then :
13807 bash_cv_dirent_has_d_fileno
=yes
13809 bash_cv_dirent_has_d_fileno
=no
13811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5
13815 $as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
13816 if test $bash_cv_dirent_has_d_fileno = yes; then
13817 $as_echo "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_namlen" >&5
13823 $as_echo_n "checking for struct dirent.d_namlen... " >&6; }
13824 if ${bash_cv_dirent_has_d_namlen+:} false
; then :
13825 $as_echo_n "(cached) " >&6
13827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13828 /* end confdefs.h. */
13831 #include <sys/types.h>
13832 #ifdef HAVE_UNISTD_H
13833 # include <unistd.h>
13834 #endif /* HAVE_UNISTD_H */
13835 #if defined(HAVE_DIRENT_H)
13836 # include <dirent.h>
13838 # define dirent direct
13839 # ifdef HAVE_SYS_NDIR_H
13840 # include <sys/ndir.h>
13841 # endif /* SYSNDIR */
13842 # ifdef HAVE_SYS_DIR_H
13843 # include <sys/dir.h>
13844 # endif /* SYSDIR */
13845 # ifdef HAVE_NDIR_H
13848 #endif /* HAVE_DIRENT_H */
13854 struct dirent d; int z; z = d.d_namlen;
13860 if ac_fn_c_try_compile
"$LINENO"; then :
13861 bash_cv_dirent_has_d_namlen
=yes
13863 bash_cv_dirent_has_d_namlen
=no
13865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_namlen" >&5
13869 $as_echo "$bash_cv_dirent_has_d_namlen" >&6; }
13870 if test $bash_cv_dirent_has_d_namlen = yes; then
13871 $as_echo "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5
13876 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
13877 if ${bash_cv_struct_winsize_header+:} false
; then :
13878 $as_echo_n "(cached) " >&6
13880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h. */
13882 #include <sys/types.h>
13883 #include <sys/ioctl.h>
13892 if ac_fn_c_try_compile
"$LINENO"; then :
13893 bash_cv_struct_winsize_header
=ioctl_h
13895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13896 /* end confdefs.h. */
13897 #include <sys/types.h>
13898 #include <termios.h>
13907 if ac_fn_c_try_compile
"$LINENO"; then :
13908 bash_cv_struct_winsize_header
=termios_h
13910 bash_cv_struct_winsize_header
=other
13912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13918 if test $bash_cv_struct_winsize_header = ioctl_h
; then
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5
13920 $as_echo "sys/ioctl.h" >&6; }
13921 $as_echo "#define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h
13923 elif test $bash_cv_struct_winsize_header = termios_h
; then
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5
13925 $as_echo "termios.h" >&6; }
13926 $as_echo "#define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13930 $as_echo "not found" >&6; }
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval in sys/time.h and time.h" >&5
13934 $as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; }
13935 if ${bash_cv_struct_timeval+:} false
; then :
13936 $as_echo_n "(cached) " >&6
13939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h. */
13941 #include <sys/time.h>
13944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13945 $EGREP "struct timeval" >/dev
/null
2>&1; then :
13946 bash_cv_struct_timeval
=yes
13948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13949 /* end confdefs.h. */
13953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13954 $EGREP "struct timeval" >/dev
/null
2>&1; then :
13955 bash_cv_struct_timeval
=yes
13957 bash_cv_struct_timeval
=no
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_struct_timeval" >&5
13968 $as_echo "$bash_cv_struct_timeval" >&6; }
13969 if test $bash_cv_struct_timeval = yes; then
13970 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
13974 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13975 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
13977 cat >>confdefs.h
<<_ACEOF
13978 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13985 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13986 if ${ac_cv_struct_tm+:} false
; then :
13987 $as_echo_n "(cached) " >&6
13989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13990 /* end confdefs.h. */
13991 #include <sys/types.h>
13998 int *p = &tm.tm_sec;
14004 if ac_fn_c_try_compile
"$LINENO"; then :
14005 ac_cv_struct_tm
=time.h
14007 ac_cv_struct_tm
=sys
/time.h
14009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
14012 $as_echo "$ac_cv_struct_tm" >&6; }
14013 if test $ac_cv_struct_tm = sys
/time.h
; then
14015 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
14019 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
14020 #include <$ac_cv_struct_tm>
14023 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
14025 cat >>confdefs.h
<<_ACEOF
14026 #define HAVE_STRUCT_TM_TM_ZONE 1
14032 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14034 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
14037 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
14039 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
14045 cat >>confdefs.h
<<_ACEOF
14046 #define HAVE_DECL_TZNAME $ac_have_decl
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
14050 $as_echo_n "checking for tzname... " >&6; }
14051 if ${ac_cv_var_tzname+:} false
; then :
14052 $as_echo_n "(cached) " >&6
14054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14055 /* end confdefs.h. */
14057 #if !HAVE_DECL_TZNAME
14058 extern char *tzname[];
14064 return tzname[0][0];
14069 if ac_fn_c_try_link
"$LINENO"; then :
14070 ac_cv_var_tzname
=yes
14072 ac_cv_var_tzname
=no
14074 rm -f core conftest.err conftest.
$ac_objext \
14075 conftest
$ac_exeext conftest.
$ac_ext
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
14078 $as_echo "$ac_cv_var_tzname" >&6; }
14079 if test $ac_cv_var_tzname = yes; then
14081 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timezone in sys/time.h and time.h" >&5
14087 $as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; }
14088 if ${bash_cv_struct_timezone+:} false
; then :
14089 $as_echo_n "(cached) " >&6
14092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14093 /* end confdefs.h. */
14094 #include <sys/time.h>
14097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14098 $EGREP "struct timezone" >/dev
/null
2>&1; then :
14099 bash_cv_struct_timezone
=yes
14101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14102 /* end confdefs.h. */
14106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14107 $EGREP "struct timezone" >/dev
/null
2>&1; then :
14108 bash_cv_struct_timezone
=yes
14110 bash_cv_struct_timezone
=no
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_struct_timezone" >&5
14121 $as_echo "$bash_cv_struct_timezone" >&6; }
14122 if test $bash_cv_struct_timezone = yes; then
14123 $as_echo "#define HAVE_STRUCT_TIMEZONE 1" >>confdefs.h
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for offset of exit status in return status from wait" >&5
14129 $as_echo_n "checking for offset of exit status in return status from wait... " >&6; }
14130 if ${bash_cv_wexitstatus_offset+:} false
; then :
14131 $as_echo_n "(cached) " >&6
14133 if test "$cross_compiling" = yes; then :
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&5
14135 $as_echo "$as_me: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&2;}
14136 bash_cv_wexitstatus_offset
=0
14139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14140 /* end confdefs.h. */
14142 #include <stdlib.h>
14143 #include <unistd.h>
14145 #include <sys/wait.h>
14159 /* wait for the process */
14165 for (i = 0; i < (sizeof(s) - 8); i++)
14167 n = (s >> i) & 0xff;
14176 if ac_fn_c_try_run
"$LINENO"; then :
14177 bash_cv_wexitstatus_offset
=0
14179 bash_cv_wexitstatus_offset
=$?
14181 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14182 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14187 if test "$bash_cv_wexitstatus_offset" -gt 32 ; then
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bad exit status from test program -- defaulting to 0" >&5
14189 $as_echo "$as_me: WARNING: bad exit status from test program -- defaulting to 0" >&2;}
14190 bash_cv_wexitstatus_offset
=0
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wexitstatus_offset" >&5
14193 $as_echo "$bash_cv_wexitstatus_offset" >&6; }
14195 cat >>confdefs.h
<<_ACEOF
14196 #define WEXITSTATUS_OFFSET $bash_cv_wexitstatus_offset
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14204 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14205 if ${bash_cv_sys_struct_timespec_in_time_h+:} false
; then :
14206 $as_echo_n "(cached) " >&6
14208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14215 static struct timespec x; x.tv_sec = x.tv_nsec;
14220 if ac_fn_c_try_compile
"$LINENO"; then :
14221 bash_cv_sys_struct_timespec_in_time_h
=yes
14223 bash_cv_sys_struct_timespec_in_time_h
=no
14225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_time_h" >&5
14228 $as_echo "$bash_cv_sys_struct_timespec_in_time_h" >&6; }
14230 HAVE_STRUCT_TIMESPEC
=0
14231 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14232 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14233 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
14234 if test $bash_cv_sys_struct_timespec_in_time_h = yes; then
14235 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14237 $as_echo "#define TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
14239 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14242 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14243 if ${bash_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
14244 $as_echo_n "(cached) " >&6
14246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14247 /* end confdefs.h. */
14248 #include <sys/time.h>
14253 static struct timespec x; x.tv_sec = x.tv_nsec;
14258 if ac_fn_c_try_compile
"$LINENO"; then :
14259 bash_cv_sys_struct_timespec_in_sys_time_h
=yes
14261 bash_cv_sys_struct_timespec_in_sys_time_h
=no
14263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_sys_time_h" >&5
14266 $as_echo "$bash_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14267 if test $bash_cv_sys_struct_timespec_in_sys_time_h = yes; then
14268 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14269 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14271 $as_echo "#define SYS_TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14275 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14276 if ${bash_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
14277 $as_echo_n "(cached) " >&6
14279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h. */
14281 #include <pthread.h>
14286 static struct timespec x; x.tv_sec = x.tv_nsec;
14291 if ac_fn_c_try_compile
"$LINENO"; then :
14292 bash_cv_sys_struct_timespec_in_pthread_h
=yes
14294 bash_cv_sys_struct_timespec_in_pthread_h
=no
14296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_pthread_h" >&5
14299 $as_echo "$bash_cv_sys_struct_timespec_in_pthread_h" >&6; }
14300 if test $bash_cv_sys_struct_timespec_in_pthread_h = yes; then
14301 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
14302 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14304 $as_echo "#define PTHREAD_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
14318 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
14319 #include <sys/stat.h>
14321 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
; then :
14323 cat >>confdefs.h
<<_ACEOF
14324 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
14328 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
14329 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false
; then :
14330 $as_echo_n "(cached) " >&6
14332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h. */
14335 #include <sys/types.h>
14336 #include <sys/stat.h>
14337 #if HAVE_SYS_TIME_H
14338 # include <sys/time.h>
14341 struct timespec ts;
14354 if ac_fn_c_try_compile
"$LINENO"; then :
14355 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
14357 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
14359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
14362 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
14363 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
14365 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
14369 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
14370 #include <sys/stat.h>
14372 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
; then :
14374 cat >>confdefs.h
<<_ACEOF
14375 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
14380 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
14381 #include <sys/stat.h>
14383 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
; then :
14385 cat >>confdefs.h
<<_ACEOF
14386 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
14391 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
14392 #include <sys/stat.h>
14394 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
; then :
14396 cat >>confdefs.h
<<_ACEOF
14397 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the existence of strsignal" >&5
14412 $as_echo_n "checking for the existence of strsignal... " >&6; }
14413 if ${bash_cv_have_strsignal+:} false
; then :
14414 $as_echo_n "(cached) " >&6
14416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14417 /* end confdefs.h. */
14418 #include <sys/types.h>
14419 #include <signal.h>
14423 char *s = (char *)strsignal(2);
14428 if ac_fn_c_try_link
"$LINENO"; then :
14429 bash_cv_have_strsignal
=yes
14431 bash_cv_have_strsignal
=no
14433 rm -f core conftest.err conftest.
$ac_objext \
14434 conftest
$ac_exeext conftest.
$ac_ext
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_strsignal" >&5
14438 $as_echo "$bash_cv_have_strsignal" >&6; }
14439 if test $bash_cv_have_strsignal = yes; then
14440 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if opendir() opens non-directories" >&5
14445 $as_echo_n "checking if opendir() opens non-directories... " >&6; }
14446 if ${bash_cv_opendir_not_robust+:} false
; then :
14447 $as_echo_n "(cached) " >&6
14449 if test "$cross_compiling" = yes; then :
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
14451 $as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
14452 bash_cv_opendir_not_robust
=no
14455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14459 #include <sys/types.h>
14461 #ifdef HAVE_UNISTD_H
14462 # include <unistd.h>
14463 #endif /* HAVE_UNISTD_H */
14464 #if defined(HAVE_DIRENT_H)
14465 # include <dirent.h>
14467 # define dirent direct
14468 # ifdef HAVE_SYS_NDIR_H
14469 # include <sys/ndir.h>
14470 # endif /* SYSNDIR */
14471 # ifdef HAVE_SYS_DIR_H
14472 # include <sys/dir.h>
14473 # endif /* SYSDIR */
14474 # ifdef HAVE_NDIR_H
14477 #endif /* HAVE_DIRENT_H */
14482 err = mkdir("bash-aclocal", 0700);
14487 unlink("bash-aclocal/not_a_directory");
14488 fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
14489 write(fd, "\n", 1);
14491 dir = opendir("bash-aclocal/not_a_directory");
14492 unlink("bash-aclocal/not_a_directory");
14493 rmdir("bash-aclocal");
14497 if ac_fn_c_try_run
"$LINENO"; then :
14498 bash_cv_opendir_not_robust
=yes
14500 bash_cv_opendir_not_robust
=no
14502 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14503 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_opendir_not_robust" >&5
14509 $as_echo "$bash_cv_opendir_not_robust" >&6; }
14510 if test $bash_cv_opendir_not_robust = yes; then
14511 $as_echo "#define OPENDIR_NOT_ROBUST 1" >>confdefs.h
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ulimit can substitute for getdtablesize" >&5
14516 $as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; }
14517 if ${bash_cv_ulimit_maxfds+:} false
; then :
14518 $as_echo_n "(cached) " >&6
14520 if test "$cross_compiling" = yes; then :
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
14522 $as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
14523 bash_cv_ulimit_maxfds
=no
14526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14527 /* end confdefs.h. */
14531 long maxfds = ulimit(4, 0L);
14532 exit (maxfds == -1L);
14536 if ac_fn_c_try_run
"$LINENO"; then :
14537 bash_cv_ulimit_maxfds
=yes
14539 bash_cv_ulimit_maxfds
=no
14541 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14542 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_ulimit_maxfds" >&5
14548 $as_echo "$bash_cv_ulimit_maxfds" >&6; }
14549 if test $bash_cv_ulimit_maxfds = yes; then
14550 $as_echo "#define ULIMIT_MAXFDS 1" >>confdefs.h
14561 ac_fn_c_check_decl
"$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "#include <stdio.h>
14563 if test "x$ac_cv_have_decl_fpurge" = xyes
; then :
14569 cat >>confdefs.h
<<_ACEOF
14570 #define HAVE_DECL_FPURGE $ac_have_decl
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if getenv can be redefined" >&5
14575 $as_echo_n "checking to see if getenv can be redefined... " >&6; }
14576 if ${bash_cv_getenv_redef+:} false
; then :
14577 $as_echo_n "(cached) " >&6
14579 if test "$cross_compiling" = yes; then :
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
14581 $as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
14582 bash_cv_getenv_redef
=yes
14585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14586 /* end confdefs.h. */
14588 #ifdef HAVE_UNISTD_H
14589 # include <unistd.h>
14598 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
14602 #endif /* !__linux__ && !__bsdi__ && !convex */
14609 /* The next allows this program to run, but does not allow bash to link
14610 when it redefines getenv. I'm not really interested in figuring out
14615 s = getenv("ABCDE");
14616 exit(s == 0); /* force optimizer to leave getenv in */
14620 if ac_fn_c_try_run
"$LINENO"; then :
14621 bash_cv_getenv_redef
=yes
14623 bash_cv_getenv_redef
=no
14625 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14626 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getenv_redef" >&5
14632 $as_echo "$bash_cv_getenv_redef" >&6; }
14633 if test $bash_cv_getenv_redef = yes; then
14634 $as_echo "#define CAN_REDEFINE_GETENV 1" >>confdefs.h
14638 if test "$ac_cv_func_getcwd" = "yes"; then
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getcwd() will dynamically allocate memory with 0 size" >&5
14640 $as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
14641 if ${bash_cv_getcwd_malloc+:} false
; then :
14642 $as_echo_n "(cached) " >&6
14644 if test "$cross_compiling" = yes; then :
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
14646 $as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
14647 bash_cv_getcwd_malloc
=no
14650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h. */
14654 #ifdef HAVE_UNISTD_H
14655 #include <unistd.h>
14661 xpwd = getcwd(0, 0);
14666 if ac_fn_c_try_run
"$LINENO"; then :
14667 bash_cv_getcwd_malloc
=yes
14669 bash_cv_getcwd_malloc
=no
14671 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14672 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getcwd_malloc" >&5
14678 $as_echo "$bash_cv_getcwd_malloc" >&6; }
14679 if test $bash_cv_getcwd_malloc = no
; then
14680 $as_echo "#define GETCWD_BROKEN 1" >>confdefs.h
14682 case " $LIBOBJS " in
14683 *" getcwd.$ac_objext "* ) ;;
14684 *) LIBOBJS
="$LIBOBJS getcwd.$ac_objext"
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
14693 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
14694 if ${bash_cv_func_sigsetjmp+:} false
; then :
14695 $as_echo_n "(cached) " >&6
14697 if test "$cross_compiling" = yes; then :
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
14699 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
14700 bash_cv_func_sigsetjmp
=missing
14703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14704 /* end confdefs.h. */
14706 #ifdef HAVE_UNISTD_H
14707 #include <unistd.h>
14709 #include <sys/types.h>
14710 #include <signal.h>
14711 #include <setjmp.h>
14715 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
14720 sigset_t set, oset;
14725 sigemptyset(&oset);
14726 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
14727 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
14730 code = sigsetjmp(xx, 1);
14732 exit(0); /* could get sigmask and compare to oset here. */
14735 sigaddset(&set, SIGINT);
14736 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
14738 /* and siglongjmp */
14739 siglongjmp(xx, 10);
14744 if ac_fn_c_try_run
"$LINENO"; then :
14745 bash_cv_func_sigsetjmp
=present
14747 bash_cv_func_sigsetjmp
=missing
14749 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14750 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5
14756 $as_echo "$bash_cv_func_sigsetjmp" >&6; }
14757 if test $bash_cv_func_sigsetjmp = present
; then
14758 $as_echo "#define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5
14764 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
14765 if ${bash_cv_func_strcoll_broken+:} false
; then :
14766 $as_echo_n "(cached) " >&6
14768 if test "$cross_compiling" = yes; then :
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
14770 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
14771 bash_cv_func_strcoll_broken
=no
14774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14775 /* end confdefs.h. */
14778 #if defined (HAVE_LOCALE_H)
14779 #include <locale.h>
14787 char *deflocale, *defcoll;
14789 #ifdef HAVE_SETLOCALE
14790 deflocale = setlocale(LC_ALL, "");
14791 defcoll = setlocale(LC_COLLATE, "");
14794 #ifdef HAVE_STRCOLL
14795 /* These two values are taken from tests/glob-test. */
14796 r1 = strcoll("abd", "aXd");
14800 r2 = strcmp("abd", "aXd");
14802 /* These two should both be greater than 0. It is permissible for
14803 a system to return different values, as long as the sign is the
14806 /* Exit with 1 (failure) if these two values are both > 0, since
14807 this tests whether strcoll(3) is broken with respect to strcmp(3)
14808 in the default locale. */
14809 exit (r1 > 0 && r2 > 0);
14813 if ac_fn_c_try_run
"$LINENO"; then :
14814 bash_cv_func_strcoll_broken
=yes
14816 bash_cv_func_strcoll_broken
=no
14818 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14819 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5
14825 $as_echo "$bash_cv_func_strcoll_broken" >&6; }
14826 if test $bash_cv_func_strcoll_broken = yes; then
14827 $as_echo "#define STRCOLL_BROKEN 1" >>confdefs.h
14835 if test X
$ac_cv_func_snprintf = Xyes
; then
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant snprintf" >&5
14837 $as_echo_n "checking for standard-conformant snprintf... " >&6; }
14838 if ${bash_cv_func_snprintf+:} false
; then :
14839 $as_echo_n "(cached) " >&6
14841 if test "$cross_compiling" = yes; then :
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard snprintf if cross-compiling" >&5
14843 $as_echo "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;}
14844 bash_cv_func_snprintf
=yes
14847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14848 /* end confdefs.h. */
14855 n = snprintf (0, 0, "%s", "0123456");
14860 if ac_fn_c_try_run
"$LINENO"; then :
14861 bash_cv_func_snprintf
=yes
14863 bash_cv_func_snprintf
=no
14865 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14866 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_snprintf" >&5
14871 $as_echo "$bash_cv_func_snprintf" >&6; }
14872 if test $bash_cv_func_snprintf = no
; then
14873 ac_cv_func_snprintf
=no
14876 if test $ac_cv_func_snprintf = no
; then
14878 $as_echo "#define HAVE_SNPRINTF 0" >>confdefs.h
14886 if test X
$ac_cv_func_vsnprintf = Xyes
; then
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant vsnprintf" >&5
14888 $as_echo_n "checking for standard-conformant vsnprintf... " >&6; }
14889 if ${bash_cv_func_vsnprintf+:} false
; then :
14890 $as_echo_n "(cached) " >&6
14892 if test "$cross_compiling" = yes; then :
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard vsnprintf if cross-compiling" >&5
14894 $as_echo "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;}
14895 bash_cv_func_vsnprintf
=yes
14898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14899 /* end confdefs.h. */
14902 #include <stdarg.h>
14904 #include <varargs.h>
14907 #include <stdlib.h>
14911 foo(const char *fmt, ...)
14913 foo(format, va_alist)
14914 const char *format;
14922 va_start(args, fmt);
14926 n = vsnprintf(0, 0, fmt, args);
14934 n = foo("%s", "0123456");
14939 if ac_fn_c_try_run
"$LINENO"; then :
14940 bash_cv_func_vsnprintf
=yes
14942 bash_cv_func_vsnprintf
=no
14944 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14945 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_vsnprintf" >&5
14950 $as_echo "$bash_cv_func_vsnprintf" >&6; }
14951 if test $bash_cv_func_vsnprintf = no
; then
14952 ac_cv_func_vsnprintf
=no
14955 if test $ac_cv_func_vsnprintf = no
; then
14957 $as_echo "#define HAVE_VSNPRINTF 0" >>confdefs.h
14963 if test "$ac_cv_func_putenv" = "yes"; then
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant putenv declaration" >&5
14968 $as_echo_n "checking for standard-conformant putenv declaration... " >&6; }
14969 if ${bash_cv_std_putenv+:} false
; then :
14970 $as_echo_n "(cached) " >&6
14972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14973 /* end confdefs.h. */
14976 #include <stdlib.h>
14977 #include <stddef.h>
14985 extern int putenv (char *);
14987 extern int putenv ();
14993 return (putenv == 0);
14998 if ac_fn_c_try_link
"$LINENO"; then :
14999 bash_cv_std_putenv
=yes
15001 bash_cv_std_putenv
=no
15004 rm -f core conftest.err conftest.
$ac_objext \
15005 conftest
$ac_exeext conftest.
$ac_ext
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_std_putenv" >&5
15008 $as_echo "$bash_cv_std_putenv" >&6; }
15009 if test $bash_cv_std_putenv = yes; then
15010 $as_echo "#define HAVE_STD_PUTENV 1" >>confdefs.h
15015 $as_echo "#define HAVE_STD_PUTENV 1" >>confdefs.h
15018 if test "$ac_cv_func_unsetenv" = "yes"; then
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant unsetenv declaration" >&5
15023 $as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; }
15024 if ${bash_cv_std_unsetenv+:} false
; then :
15025 $as_echo_n "(cached) " >&6
15027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15031 #include <stdlib.h>
15032 #include <stddef.h>
15040 extern int unsetenv (const char *);
15042 extern int unsetenv ();
15048 return (unsetenv == 0);
15053 if ac_fn_c_try_link
"$LINENO"; then :
15054 bash_cv_std_unsetenv
=yes
15056 bash_cv_std_unsetenv
=no
15059 rm -f core conftest.err conftest.
$ac_objext \
15060 conftest
$ac_exeext conftest.
$ac_ext
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_std_unsetenv" >&5
15063 $as_echo "$bash_cv_std_unsetenv" >&6; }
15064 if test $bash_cv_std_unsetenv = yes; then
15065 $as_echo "#define HAVE_STD_UNSETENV 1" >>confdefs.h
15070 $as_echo "#define HAVE_STD_UNSETENV 1" >>confdefs.h
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf floating point output in hex notation" >&5
15075 $as_echo_n "checking for printf floating point output in hex notation... " >&6; }
15076 if ${bash_cv_printf_a_format+:} false
; then :
15077 $as_echo_n "(cached) " >&6
15079 if test "$cross_compiling" = yes; then :
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
15081 $as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
15082 bash_cv_printf_a_format
=no
15085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15086 /* end confdefs.h. */
15089 #include <string.h>
15097 sprintf(abuf, "%A", y);
15098 exit(strchr(abuf, 'P') == (char *)0);
15102 if ac_fn_c_try_run
"$LINENO"; then :
15103 bash_cv_printf_a_format
=yes
15105 bash_cv_printf_a_format
=no
15107 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15108 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_printf_a_format" >&5
15114 $as_echo "$bash_cv_printf_a_format" >&6; }
15115 if test $bash_cv_printf_a_format = yes; then
15116 $as_echo "#define HAVE_PRINTF_A_FORMAT 1" >>confdefs.h
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5
15124 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
15125 if ${bash_cv_must_reinstall_sighandlers+:} false
; then :
15126 $as_echo_n "(cached) " >&6
15128 if test "$cross_compiling" = yes; then :
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
15130 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
15131 bash_cv_must_reinstall_sighandlers
=no
15134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15135 /* end confdefs.h. */
15137 #include <signal.h>
15138 #ifdef HAVE_UNISTD_H
15139 #include <unistd.h>
15142 typedef RETSIGTYPE sigfunc();
15146 #ifdef HAVE_POSIX_SIGNALS
15148 set_signal_handler(sig, handler)
15152 struct sigaction act, oact;
15153 act.sa_handler = handler;
15155 sigemptyset (&act.sa_mask);
15156 sigemptyset (&oact.sa_mask);
15157 sigaction (sig, &act, &oact);
15158 return (oact.sa_handler);
15161 #define set_signal_handler(s, h) signal(s, h)
15174 set_signal_handler(SIGINT, sigint);
15175 kill((int)getpid(), SIGINT);
15176 kill((int)getpid(), SIGINT);
15177 exit(nsigint != 2);
15181 if ac_fn_c_try_run
"$LINENO"; then :
15182 bash_cv_must_reinstall_sighandlers
=no
15184 bash_cv_must_reinstall_sighandlers
=yes
15186 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15187 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5
15193 $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
15194 if test $bash_cv_must_reinstall_sighandlers = yes; then
15195 $as_echo "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of necessary job control definitions" >&5
15201 $as_echo_n "checking for presence of necessary job control definitions... " >&6; }
15202 if ${bash_cv_job_control_missing+:} false
; then :
15203 $as_echo_n "(cached) " >&6
15205 if test "$cross_compiling" = yes; then :
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
15207 $as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
15208 bash_cv_job_control_missing
=missing
15211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h. */
15214 #include <sys/types.h>
15215 #ifdef HAVE_SYS_WAIT_H
15216 #include <sys/wait.h>
15218 #ifdef HAVE_UNISTD_H
15219 #include <unistd.h>
15221 #include <signal.h>
15223 /* Add more tests in here as appropriate. */
15227 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
15231 /* signals and tty control. */
15232 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
15236 /* process control */
15237 #if !defined (WNOHANG) || !defined (WUNTRACED)
15241 /* Posix systems have tcgetpgrp and waitpid. */
15242 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
15246 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
15250 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
15251 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
15258 if ac_fn_c_try_run
"$LINENO"; then :
15259 bash_cv_job_control_missing
=present
15261 bash_cv_job_control_missing
=missing
15263 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15264 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_job_control_missing" >&5
15270 $as_echo "$bash_cv_job_control_missing" >&6; }
15271 if test $bash_cv_job_control_missing = missing
; then
15272 $as_echo "#define JOB_CONTROL_MISSING 1" >>confdefs.h
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of named pipes" >&5
15277 $as_echo_n "checking for presence of named pipes... " >&6; }
15278 if ${bash_cv_sys_named_pipes+:} false
; then :
15279 $as_echo_n "(cached) " >&6
15281 if test "$cross_compiling" = yes; then :
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
15283 $as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
15284 bash_cv_sys_named_pipes
=missing
15287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15288 /* end confdefs.h. */
15290 #include <sys/types.h>
15291 #include <sys/stat.h>
15292 #ifdef HAVE_UNISTD_H
15293 #include <unistd.h>
15296 /* Add more tests in here as appropriate. */
15301 #if defined (HAVE_MKFIFO)
15305 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
15312 err = mkdir("bash-aclocal", 0700);
15317 fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
15319 rmdir ("bash-aclocal");
15323 unlink ("bash-aclocal/sh-np-autoconf");
15324 rmdir ("bash-aclocal");
15328 if ac_fn_c_try_run
"$LINENO"; then :
15329 bash_cv_sys_named_pipes
=present
15331 bash_cv_sys_named_pipes
=missing
15333 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15334 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_named_pipes" >&5
15340 $as_echo "$bash_cv_sys_named_pipes" >&6; }
15341 if test $bash_cv_sys_named_pipes = missing
; then
15342 $as_echo "#define NAMED_PIPES_MISSING 1" >>confdefs.h
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
15348 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
15349 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
15350 $as_echo_n "(cached) " >&6
15352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15353 /* end confdefs.h. */
15354 #include <sys/types.h>
15355 #include <termios.h>
15361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15362 $EGREP "yes" >/dev
/null
2>&1; then :
15363 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
15365 ac_cv_sys_tiocgwinsz_in_termios_h
=no
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
15371 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
15373 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
15375 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
15376 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
15377 $as_echo_n "(cached) " >&6
15379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15380 /* end confdefs.h. */
15381 #include <sys/types.h>
15382 #include <sys/ioctl.h>
15388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15389 $EGREP "yes" >/dev
/null
2>&1; then :
15390 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
15392 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
15398 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
15400 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
15402 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5
15408 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
15409 if ${bash_cv_tiocstat_in_ioctl+:} false
; then :
15410 $as_echo_n "(cached) " >&6
15412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15413 /* end confdefs.h. */
15414 #include <sys/types.h>
15415 #include <sys/ioctl.h>
15424 if ac_fn_c_try_compile
"$LINENO"; then :
15425 bash_cv_tiocstat_in_ioctl
=yes
15427 bash_cv_tiocstat_in_ioctl
=no
15429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5
15433 $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
15434 if test $bash_cv_tiocstat_in_ioctl = yes; then
15435 $as_echo "#define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5
15440 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
15441 if ${bash_cv_fionread_in_ioctl+:} false
; then :
15442 $as_echo_n "(cached) " >&6
15444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15445 /* end confdefs.h. */
15446 #include <sys/types.h>
15447 #include <sys/ioctl.h>
15456 if ac_fn_c_try_compile
"$LINENO"; then :
15457 bash_cv_fionread_in_ioctl
=yes
15459 bash_cv_fionread_in_ioctl
=no
15461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5
15465 $as_echo "$bash_cv_fionread_in_ioctl" >&6; }
15466 if test $bash_cv_fionread_in_ioctl = yes; then
15467 $as_echo "#define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
15474 $as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
15475 if ${bash_cv_wcontinued_broken+:} false
; then :
15476 $as_echo_n "(cached) " >&6
15478 if test "$cross_compiling" = yes; then :
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
15480 $as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
15481 bash_cv_wcontinued_broken
=no
15484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15485 /* end confdefs.h. */
15487 #include <sys/types.h>
15488 #include <sys/wait.h>
15489 #include <unistd.h>
15499 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
15500 if (x == -1 && errno == EINVAL)
15507 if ac_fn_c_try_run
"$LINENO"; then :
15508 bash_cv_wcontinued_broken
=no
15510 bash_cv_wcontinued_broken
=yes
15512 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15513 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcontinued_broken" >&5
15519 $as_echo "$bash_cv_wcontinued_broken" >&6; }
15520 if test $bash_cv_wcontinued_broken = yes; then
15521 $as_echo "#define WCONTINUED_BROKEN 1" >>confdefs.h
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5
15527 $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
15528 if ${bash_cv_speed_t_in_sys_types+:} false
; then :
15529 $as_echo_n "(cached) " >&6
15531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15532 /* end confdefs.h. */
15533 #include <sys/types.h>
15542 if ac_fn_c_try_compile
"$LINENO"; then :
15543 bash_cv_speed_t_in_sys_types
=yes
15545 bash_cv_speed_t_in_sys_types
=no
15547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5
15551 $as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
15552 if test $bash_cv_speed_t_in_sys_types = yes; then
15553 $as_echo "#define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5
15558 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
15559 if ${bash_cv_getpw_declared+:} false
; then :
15560 $as_echo_n "(cached) " >&6
15562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15563 /* end confdefs.h. */
15565 #include <sys/types.h>
15566 #ifdef HAVE_UNISTD_H
15567 # include <unistd.h>
15572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15573 $EGREP "getpwuid" >/dev
/null
2>&1; then :
15574 bash_cv_getpw_declared
=yes
15576 bash_cv_getpw_declared
=no
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5
15583 $as_echo "$bash_cv_getpw_declared" >&6; }
15584 if test $bash_cv_getpw_declared = yes; then
15585 $as_echo "#define HAVE_GETPW_DECLS 1" >>confdefs.h
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unusable real-time signals due to large values" >&5
15590 $as_echo_n "checking for unusable real-time signals due to large values... " >&6; }
15591 if ${bash_cv_unusable_rtsigs+:} false
; then :
15592 $as_echo_n "(cached) " >&6
15594 if test "$cross_compiling" = yes; then :
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
15596 $as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
15597 bash_cv_unusable_rtsigs
=yes
15600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15601 /* end confdefs.h. */
15603 #include <sys/types.h>
15604 #include <signal.h>
15612 int n_sigs = 2 * NSIG;
15614 int rtmin = SIGRTMIN;
15619 exit(rtmin < n_sigs);
15622 if ac_fn_c_try_run
"$LINENO"; then :
15623 bash_cv_unusable_rtsigs
=yes
15625 bash_cv_unusable_rtsigs
=no
15627 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15628 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_unusable_rtsigs" >&5
15634 $as_echo "$bash_cv_unusable_rtsigs" >&6; }
15635 if test $bash_cv_unusable_rtsigs = yes; then
15636 $as_echo "#define UNUSABLE_RT_SIGNALS 1" >>confdefs.h
15644 if test "$bash_cv_sys_siglist" = no
&& test "$bash_cv_under_sys_siglist" = no
&& test "$bash_cv_have_strsignal" = no
; then
15645 SIGLIST_O
=siglist.o
15653 hpux
*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
15654 $as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
15655 if ${bash_cv_kernel_rlimit+:} false
; then :
15656 $as_echo_n "(cached) " >&6
15658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15659 /* end confdefs.h. */
15661 #include <sys/types.h>
15662 #include <sys/resource.h>
15675 if ac_fn_c_try_compile
"$LINENO"; then :
15676 bash_cv_kernel_rlimit
=no
15678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15679 /* end confdefs.h. */
15681 #include <sys/types.h>
15683 #include <sys/resource.h>
15697 if ac_fn_c_try_compile
"$LINENO"; then :
15698 bash_cv_kernel_rlimit
=yes
15700 bash_cv_kernel_rlimit
=no
15702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_kernel_rlimit" >&5
15709 $as_echo "$bash_cv_kernel_rlimit" >&6; }
15710 if test $bash_cv_kernel_rlimit = yes; then
15711 $as_echo "#define RLIMIT_NEEDS_KERNEL 1" >>confdefs.h
15717 if test "$opt_readline" = yes; then
15719 aix
*) prefer_curses
=yes ;;
15722 if test "X$bash_cv_termcap_lib" = "X"; then
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
15726 $as_echo_n "checking which library has the termcap functions... " >&6; }
15729 if ${bash_cv_termcap_lib+:} false
; then :
15730 $as_echo_n "(cached) " >&6
15732 ac_fn_c_check_func
"$LINENO" "tgetent" "ac_cv_func_tgetent"
15733 if test "x$ac_cv_func_tgetent" = xyes
; then :
15734 bash_cv_termcap_lib
=libc
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
15737 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
15738 if ${ac_cv_lib_termcap_tgetent+:} false
; then :
15739 $as_echo_n "(cached) " >&6
15741 ac_check_lib_save_LIBS
=$LIBS
15742 LIBS
="-ltermcap $LIBS"
15743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15744 /* end confdefs.h. */
15746 /* Override any GCC internal prototype to avoid an error.
15747 Use char because int might match the return type of a GCC
15748 builtin and then its argument prototype would still apply. */
15761 if ac_fn_c_try_link
"$LINENO"; then :
15762 ac_cv_lib_termcap_tgetent
=yes
15764 ac_cv_lib_termcap_tgetent
=no
15766 rm -f core conftest.err conftest.
$ac_objext \
15767 conftest
$ac_exeext conftest.
$ac_ext
15768 LIBS
=$ac_check_lib_save_LIBS
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
15771 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
15772 if test "x$ac_cv_lib_termcap_tgetent" = xyes
; then :
15773 bash_cv_termcap_lib
=libtermcap
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
15776 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
15777 if ${ac_cv_lib_tinfo_tgetent+:} false
; then :
15778 $as_echo_n "(cached) " >&6
15780 ac_check_lib_save_LIBS
=$LIBS
15781 LIBS
="-ltinfo $LIBS"
15782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15783 /* end confdefs.h. */
15785 /* Override any GCC internal prototype to avoid an error.
15786 Use char because int might match the return type of a GCC
15787 builtin and then its argument prototype would still apply. */
15800 if ac_fn_c_try_link
"$LINENO"; then :
15801 ac_cv_lib_tinfo_tgetent
=yes
15803 ac_cv_lib_tinfo_tgetent
=no
15805 rm -f core conftest.err conftest.
$ac_objext \
15806 conftest
$ac_exeext conftest.
$ac_ext
15807 LIBS
=$ac_check_lib_save_LIBS
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
15810 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
15811 if test "x$ac_cv_lib_tinfo_tgetent" = xyes
; then :
15812 bash_cv_termcap_lib
=libtinfo
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
15815 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
15816 if ${ac_cv_lib_curses_tgetent+:} false
; then :
15817 $as_echo_n "(cached) " >&6
15819 ac_check_lib_save_LIBS
=$LIBS
15820 LIBS
="-lcurses $LIBS"
15821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15822 /* end confdefs.h. */
15824 /* Override any GCC internal prototype to avoid an error.
15825 Use char because int might match the return type of a GCC
15826 builtin and then its argument prototype would still apply. */
15839 if ac_fn_c_try_link
"$LINENO"; then :
15840 ac_cv_lib_curses_tgetent
=yes
15842 ac_cv_lib_curses_tgetent
=no
15844 rm -f core conftest.err conftest.
$ac_objext \
15845 conftest
$ac_exeext conftest.
$ac_ext
15846 LIBS
=$ac_check_lib_save_LIBS
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
15849 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
15850 if test "x$ac_cv_lib_curses_tgetent" = xyes
; then :
15851 bash_cv_termcap_lib
=libcurses
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
15854 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
15855 if ${ac_cv_lib_ncurses_tgetent+:} false
; then :
15856 $as_echo_n "(cached) " >&6
15858 ac_check_lib_save_LIBS
=$LIBS
15859 LIBS
="-lncurses $LIBS"
15860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15861 /* end confdefs.h. */
15863 /* Override any GCC internal prototype to avoid an error.
15864 Use char because int might match the return type of a GCC
15865 builtin and then its argument prototype would still apply. */
15878 if ac_fn_c_try_link
"$LINENO"; then :
15879 ac_cv_lib_ncurses_tgetent
=yes
15881 ac_cv_lib_ncurses_tgetent
=no
15883 rm -f core conftest.err conftest.
$ac_objext \
15884 conftest
$ac_exeext conftest.
$ac_ext
15885 LIBS
=$ac_check_lib_save_LIBS
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
15888 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
15889 if test "x$ac_cv_lib_ncurses_tgetent" = xyes
; then :
15890 bash_cv_termcap_lib
=libncurses
15892 bash_cv_termcap_lib
=gnutermcap
15905 if test "X$_bash_needmsg" = "Xyes"; then
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
15907 $as_echo_n "checking which library has the termcap functions... " >&6; }
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
15910 $as_echo "using $bash_cv_termcap_lib" >&6; }
15911 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
15912 LDFLAGS
="$LDFLAGS -L./lib/termcap"
15913 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
15914 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
15915 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
15916 TERMCAP_LIB
=-ltermcap
15918 elif test $bash_cv_termcap_lib = libtinfo
; then
15919 TERMCAP_LIB
=-ltinfo
15921 elif test $bash_cv_termcap_lib = libncurses
; then
15922 TERMCAP_LIB
=-lncurses
15924 elif test $bash_cv_termcap_lib = libc
; then
15928 TERMCAP_LIB
=-lcurses
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/fd is available" >&5
15937 $as_echo_n "checking whether /dev/fd is available... " >&6; }
15938 if ${bash_cv_dev_fd+:} false
; then :
15939 $as_echo_n "(cached) " >&6
15942 if test -d /dev
/fd
&& (exec test -r /dev
/fd
/0 < /dev
/null
) ; then
15943 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
15944 if (exec test -r /dev
/fd
/3 3</dev
/null
) ; then
15945 bash_cv_dev_fd
=standard
15947 bash_cv_dev_fd
=absent
15950 if test -z "$bash_cv_dev_fd" ; then
15951 if test -d /proc
/self
/fd
&& (exec test -r /proc
/self
/fd
/0 < /dev
/null
) ; then
15952 bash_cv_dev_fd
=whacky
15954 bash_cv_dev_fd
=absent
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dev_fd" >&5
15961 $as_echo "$bash_cv_dev_fd" >&6; }
15962 if test $bash_cv_dev_fd = "standard"; then
15963 $as_echo "#define HAVE_DEV_FD 1" >>confdefs.h
15965 $as_echo "#define DEV_FD_PREFIX \"/dev/fd/\"" >>confdefs.h
15967 elif test $bash_cv_dev_fd = "whacky"; then
15968 $as_echo "#define HAVE_DEV_FD 1" >>confdefs.h
15970 $as_echo "#define DEV_FD_PREFIX \"/proc/self/fd/\"" >>confdefs.h
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/stdin stdout stderr are available" >&5
15975 $as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; }
15976 if ${bash_cv_dev_stdin+:} false
; then :
15977 $as_echo_n "(cached) " >&6
15979 if test -d /dev
/fd
&& (exec test -r /dev
/stdin
< /dev
/null
) ; then
15980 bash_cv_dev_stdin
=present
15981 elif test -d /proc
/self
/fd
&& (exec test -r /dev
/stdin
< /dev
/null
) ; then
15982 bash_cv_dev_stdin
=present
15984 bash_cv_dev_stdin
=absent
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dev_stdin" >&5
15990 $as_echo "$bash_cv_dev_stdin" >&6; }
15991 if test $bash_cv_dev_stdin = "present"; then
15992 $as_echo "#define HAVE_DEV_STDIN 1" >>confdefs.h
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default mail directory" >&5
15997 $as_echo_n "checking for default mail directory... " >&6; }
15998 if ${bash_cv_mail_dir+:} false
; then :
15999 $as_echo_n "(cached) " >&6
16001 if test -d /var
/mail; then
16002 bash_cv_mail_dir
=/var
/mail
16003 elif test -d /var
/spool
/mail; then
16004 bash_cv_mail_dir
=/var
/spool
/mail
16005 elif test -d /usr
/mail; then
16006 bash_cv_mail_dir
=/usr
/mail
16007 elif test -d /usr
/spool
/mail; then
16008 bash_cv_mail_dir
=/usr
/spool
/mail
16010 bash_cv_mail_dir
=unknown
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_mail_dir" >&5
16016 $as_echo "$bash_cv_mail_dir" >&6; }
16017 cat >>confdefs.h
<<_ACEOF
16018 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
16023 if test "$bash_cv_job_control_missing" = missing
; then
16027 if test "$opt_job_control" = yes; then
16028 $as_echo "#define JOB_CONTROL 1" >>confdefs.h
16041 case "${host_os}" in
16042 sysv4.2
*) $as_echo "#define SVR4_2 1" >>confdefs.h
16044 $as_echo "#define SVR4 1" >>confdefs.h
16046 sysv4
*) $as_echo "#define SVR4 1" >>confdefs.h
16048 sysv5
*) $as_echo "#define SVR5 1" >>confdefs.h
16050 hpux9
*) LOCAL_CFLAGS
="-DHPUX9 -DHPUX" ;;
16051 hpux
*) LOCAL_CFLAGS
=-DHPUX ;;
16052 dgux
*) LOCAL_CFLAGS
=-D_DGUX_SOURCE; LOCAL_LIBS
=-ldgc ;;
16053 isc
*) LOCAL_CFLAGS
=-Disc386 ;;
16054 rhapsody
*) LOCAL_CFLAGS
=-DRHAPSODY ;;
16055 darwin
*) LOCAL_CFLAGS
=-DMACOSX ;;
16056 sco3.2v5
*) LOCAL_CFLAGS
="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
16057 sco3.2v4
*) LOCAL_CFLAGS
="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
16058 sco3.2
*) LOCAL_CFLAGS
=-DMUST_UNBLOCK_CHLD ;;
16059 sunos4
*) LOCAL_CFLAGS
=-DSunOS4 ;;
16060 solaris2.5
*) LOCAL_CFLAGS
="-DSunOS5 -DSOLARIS" ;;
16061 solaris2.8
*) LOCAL_CFLAGS
=-DSOLARIS ;;
16062 solaris2.9
*) LOCAL_CFLAGS
=-DSOLARIS ;;
16063 solaris2.10
*) LOCAL_CFLAGS
=-DSOLARIS ;;
16064 solaris2
*) LOCAL_CFLAGS
=-DSOLARIS ;;
16065 lynxos
*) LOCAL_CFLAGS
=-DRECYCLES_PIDS ;;
16066 linux
*) LOCAL_LDFLAGS
=-rdynamic # allow dynamic loading
16067 case "`uname -r`" in
16068 2.
[456789]*|
[34]*) $as_echo "#define PGRP_PIPE 1" >>confdefs.h
16071 *qnx6
*) LOCAL_CFLAGS
="-Dqnx -Dqnx6" LOCAL_LIBS
="-lncurses" ;;
16072 *qnx
*) LOCAL_CFLAGS
="-Dqnx -F -3s" LOCAL_LDFLAGS
="-3s" LOCAL_LIBS
="-lunix -lncurses" ;;
16073 powerux
*) LOCAL_LIBS
="-lgen" ;;
16074 cygwin
*) LOCAL_CFLAGS
=-DRECYCLES_PIDS ;;
16075 opennt
*|interix
*) LOCAL_CFLAGS
="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE -DRECYCLES_PIDS" ;;
16076 *openstep
*) LOCAL_CFLAGS
="-D__APPLE_CC__" ;;
16079 case "${host_os}-${CC}" in
16080 aix4.2
*-*gcc
*) LOCAL_LDFLAGS
="-Xlinker -bexpall -Xlinker -brtl" ;;
16081 aix4.2
*) LOCAL_LDFLAGS
="-bexpall -brtl" ;;
16082 bsdi4
*-*gcc
*) LOCAL_LDFLAGS
="-rdynamic" ;; # allow dynamic loading, like Linux
16083 bsdi5
*-*gcc
*) LOCAL_LDFLAGS
="-rdynamic" ;; # allow dynamic loading, like Linux
16084 hpux11
*-gcc*) LOCAL_LDFLAGS
="-Wl,-E" ;; # allow dynamic loading
16087 case "${host_os}" in
16089 if test -x /usr
/bin
/objformat
&& test "`/usr/bin/objformat`" = "elf" ; then
16090 LOCAL_LDFLAGS
=-rdynamic # allow dynamic loading
16092 freebsdelf
*) LOCAL_LDFLAGS
=-rdynamic ;; # allow dynamic loading
16093 dragonfly
*) LOCAL_LDFLAGS
=-rdynamic ;; # allow dynamic loading
16096 case "$host_cpu" in
16097 *cray
*) LOCAL_CFLAGS
="-DCRAY" ;; # shell var so config.h can use it
16100 case "$host_cpu-$host_os" in
16101 ibmrt-
*bsd4
*) LOCAL_CFLAGS
="-ma -U__STDC__" ;;
16104 case "$host_cpu-$host_vendor-$host_os" in
16105 m88k-motorola-sysv3
) LOCAL_CFLAGS
=-DWAITPID_BROKEN ;;
16106 mips-pyramid-sysv4
) LOCAL_CFLAGS
=-Xa ;;
16110 # Shared object configuration section. These values are generated by
16111 # ${srcdir}/support/shobj-conf
16113 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support
/shobj-conf
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking shared object configuration for loadable builtins" >&5
16116 $as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
16117 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHOBJ_STATUS" >&5
16126 $as_echo "$SHOBJ_STATUS" >&6; }
16129 # try to create a directory tree if the source is elsewhere
16130 # this should be packaged into a script accessible via ${srcdir}/support
16133 *) for d
in doc tests support lib examples
; do # dirs
16134 test -d $d || mkdir
$d
16136 for ld
in readline glob tilde malloc sh termcap
; do # libdirs
16137 test -d lib
/$ld || mkdir lib
/$ld
16139 test -d examples
/loadables || mkdir examples
/loadables
# loadable builtins
16140 test -d examples
/loadables
/perl || mkdir examples
/loadables
/perl
16145 case "$BUILD_DIR" in
16146 *\
*) BUILD_DIR
=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
16150 if test -z "$localedir"; then
16151 localedir
='${datarootdir}/locale'
16153 if test -z "$datarootdir"; then
16154 datarootdir
='${prefix}/share'
16162 # Some versions of autoconf don't substitute these automatically
16166 # directory where we install dynamically loadable builtins
16167 if test -z "$loadablesdir"; then
16168 loadablesdir
='${libdir}/bash'
16171 if test -z "$headersdir"; then
16172 headersdir
='$(includedir)/$(PACKAGE_NAME)'
16194 #AC_SUBST(ALLOCA_SOURCE)
16195 #AC_SUBST(ALLOCA_OBJECT)
16197 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/Makefile.inc examples/loadables/perl/Makefile support/bash.pc"
16199 ac_config_commands
="$ac_config_commands default"
16201 cat >confcache
<<\_ACEOF
16202 # This file is a shell script that caches the results of configure
16203 # tests run on this system so they can be shared between configure
16204 # scripts and configure runs, see configure's option --config-cache.
16205 # It is not useful on other systems. If it contains results you don't
16206 # want to keep, you may remove or edit it.
16208 # config.status only pays attention to the cache file if you give it
16209 # the --recheck option to rerun configure.
16211 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16212 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16213 # following values.
16217 # The following way of writing the cache mishandles newlines in values,
16218 # but we know of no workaround that is simple, portable, and efficient.
16219 # So, we kill variables containing newlines.
16220 # Ultrix sh set writes to stderr and can't be redirected directly,
16221 # and sets the high bit in the cache file unless we assign to the vars.
16223 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16224 eval ac_val
=\$
$ac_var
16228 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16229 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16232 _ | IFS | as_nl
) ;; #(
16233 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16234 *) { eval $ac_var=; unset $ac_var;} ;;
16240 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16241 *${as_nl}ac_space
=\
*)
16242 # `set' does not quote correctly, so add quotes: double-quote
16243 # substitution turns \\\\ into \\, and sed turns \\ into \.
16246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16249 # `set' quotes correctly as required by POSIX, so do not add quotes.
16250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16259 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16261 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16263 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16264 if test -w "$cache_file"; then
16265 if test "x$cache_file" != "x/dev/null"; then
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16267 $as_echo "$as_me: updating cache $cache_file" >&6;}
16268 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16269 cat confcache
>"$cache_file"
16271 case $cache_file in #(
16273 mv -f confcache
"$cache_file"$$
&&
16274 mv -f "$cache_file"$$
"$cache_file" ;; #(
16276 mv -f confcache
"$cache_file" ;;
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16282 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16287 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16288 # Let make expand exec_prefix.
16289 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16291 DEFS
=-DHAVE_CONFIG_H
16296 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16297 # 1. Remove the extension, and $U if already installed.
16298 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16299 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16300 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16301 # will be set to the directory where LIBOBJS objects are built.
16302 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16303 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16305 LIBOBJS
=$ac_libobjs
16307 LTLIBOBJS
=$ac_ltlibobjs
16312 : "${CONFIG_STATUS=./config.status}"
16314 ac_clean_files_save
=$ac_clean_files
16315 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16317 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16319 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16321 # Generated by $as_me.
16322 # Run this file to recreate the current configuration.
16323 # Compiler output produced by configure, useful for debugging
16324 # configure, is in config.log if it exists.
16327 ac_cs_recheck=false
16330 SHELL=\${CONFIG_SHELL-$SHELL}
16333 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16334 ## -------------------- ##
16335 ## M4sh Initialization. ##
16336 ## -------------------- ##
16338 # Be more Bourne compatible
16339 DUALCASE
=1; export DUALCASE
# for MKS sh
16340 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16343 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16344 # is contrary to our usage. Disable this feature.
16345 alias -g '${1+"$@"}'='"$@"'
16346 setopt NO_GLOB_SUBST
16348 case `(set -o) 2>/dev/null` in #(
16360 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16361 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16362 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16363 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16364 # Prefer a ksh shell builtin over an external printf program on Solaris,
16365 # but without wasting forks for bash or zsh.
16366 if test -z "$BASH_VERSION$ZSH_VERSION" \
16367 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16368 as_echo='print
-r --'
16369 as_echo_n='print
-rn --'
16370 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16371 as_echo='printf %s
\n'
16372 as_echo_n='printf %s
'
16374 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16375 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16376 as_echo_n='/usr
/ucb
/echo -n'
16378 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16379 as_echo_n_body='eval
16383 expr "X$arg" : "X\\(.*\\)$as_nl";
16384 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16386 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16388 export as_echo_n_body
16389 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16391 export as_echo_body
16392 as_echo='sh
-c $as_echo_body as_echo
'
16395 # The user is always right.
16396 if test "${PATH_SEPARATOR+set}" != set; then
16398 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16399 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16406 # We need space, tab and new line, in precisely that order. Quoting is
16407 # there to prevent editors from complaining about space-tab.
16408 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16409 # splitting by setting IFS to empty value.)
16412 # Find who we are. Look in the path if we contain no directory separator.
16415 *[\\/]* ) as_myself=$0 ;;
16416 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16417 for as_dir in $PATH
16420 test -z "$as_dir" && as_dir=.
16421 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16427 # We did not find ourselves, most probably we were run as `sh COMMAND'
16428 # in which case we are not to be found in the path.
16429 if test "x$as_myself" = x
; then
16432 if test ! -f "$as_myself"; then
16433 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16437 # Unset variables that we do not need and which cause bugs (e.g. in
16438 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16439 # suppresses any "Segmentation fault" message there. '((' could
16440 # trigger a bug in pdksh 5.2.14.
16441 for as_var
in BASH_ENV ENV MAIL MAILPATH
16442 do eval test x\
${$as_var+set} = xset \
16443 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16456 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16459 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16460 # ----------------------------------------
16461 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16462 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16463 # script with STATUS, using 1 if that was 0.
16466 as_status
=$1; test $as_status -eq 0 && as_status
=1
16468 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16469 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16471 $as_echo "$as_me: error: $2" >&2
16472 as_fn_exit
$as_status
16476 # as_fn_set_status STATUS
16477 # -----------------------
16478 # Set $? to STATUS, without forking.
16479 as_fn_set_status
()
16482 } # as_fn_set_status
16484 # as_fn_exit STATUS
16485 # -----------------
16486 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16490 as_fn_set_status
$1
16496 # Portably unset VAR.
16499 { eval $1=; unset $1;}
16501 as_unset
=as_fn_unset
16502 # as_fn_append VAR VALUE
16503 # ----------------------
16504 # Append the text in VALUE to the end of the definition contained in VAR. Take
16505 # advantage of any shell optimizations that allow amortized linear growth over
16506 # repeated appends, instead of the typical quadratic growth present in naive
16508 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16509 eval 'as_fn_append ()
16520 # as_fn_arith ARG...
16521 # ------------------
16522 # Perform arithmetic evaluation on the ARGs, and store the result in the
16523 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16524 # must be portable across $(()) and expr.
16525 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16526 eval 'as_fn_arith ()
16533 as_val
=`expr "$@" || test $? -eq 1`
16538 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16539 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16545 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16546 as_basename
=basename
16551 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16557 as_me
=`$as_basename -- "$0" ||
16558 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16559 X"$0" : 'X\(//\)$' \| \
16560 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16562 sed '/^.*\/\([^/][^/]*\)\/*$/{
16576 # Avoid depending upon Character Ranges.
16577 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16578 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16579 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16580 as_cr_digits
='0123456789'
16581 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16583 ECHO_C
= ECHO_N
= ECHO_T
=
16584 case `echo -n x` in #(((((
16586 case `echo 'xy\c'` in
16587 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16589 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16596 rm -f conf$$ conf$$.exe conf$$.
file
16597 if test -d conf$$.dir
; then
16598 rm -f conf$$.dir
/conf$$.
file
16601 mkdir conf$$.dir
2>/dev
/null
16603 if (echo >conf$$.
file) 2>/dev
/null
; then
16604 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16606 # ... but there are two gotchas:
16607 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16608 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16609 # In both cases, we have to default to `cp -pR'.
16610 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16612 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16620 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16621 rmdir conf$$.dir
2>/dev
/null
16626 # Create "$as_dir" as a directory, including parents if necessary.
16631 -*) as_dir
=.
/$as_dir;;
16633 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16637 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16638 *) as_qdir
=$as_dir;;
16640 as_dirs
="'$as_qdir' $as_dirs"
16641 as_dir
=`$as_dirname -- "$as_dir" ||
16642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16643 X"$as_dir" : 'X\(//\)[^/]' \| \
16644 X"$as_dir" : 'X\(//\)$' \| \
16645 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16646 $as_echo X"$as_dir" |
16647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16651 /^X\(\/\/\)[^/].*/{
16664 test -d "$as_dir" && break
16666 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16667 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
16671 if mkdir
-p .
2>/dev
/null
; then
16672 as_mkdir_p
='mkdir -p "$as_dir"'
16674 test -d .
/-p && rmdir .
/-p
16679 # as_fn_executable_p FILE
16680 # -----------------------
16681 # Test if FILE is an executable regular file.
16682 as_fn_executable_p
()
16684 test -f "$1" && test -x "$1"
16685 } # as_fn_executable_p
16686 as_test_x
='test -x'
16687 as_executable_p
=as_fn_executable_p
16689 # Sed expression to map a string onto a valid CPP name.
16690 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16692 # Sed expression to map a string onto a valid variable name.
16693 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16697 ## ----------------------------------- ##
16698 ## Main body of $CONFIG_STATUS script. ##
16699 ## ----------------------------------- ##
16701 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16704 # Save the log message, to keep $0 and so on meaningful, and to
16705 # report actual input values of CONFIG_FILES etc. instead of their
16706 # values after options handling.
16708 This file was extended by bash $as_me 4.4-release, which was
16709 generated by GNU Autoconf 2.69. Invocation command line was
16711 CONFIG_FILES = $CONFIG_FILES
16712 CONFIG_HEADERS = $CONFIG_HEADERS
16713 CONFIG_LINKS = $CONFIG_LINKS
16714 CONFIG_COMMANDS = $CONFIG_COMMANDS
16717 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16722 case $ac_config_files in *"
16723 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16726 case $ac_config_headers in *"
16727 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16732 # Files that config.status was made for.
16733 config_files="$ac_config_files"
16734 config_headers="$ac_config_headers"
16735 config_commands="$ac_config_commands"
16739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16741 \`$as_me' instantiates files and other configuration actions
16742 from templates according to the current configuration. Unless the files
16743 and actions are specified as TAGs, all are instantiated by default.
16745 Usage: $0 [OPTION]... [TAG]...
16747 -h, --help print this help, then exit
16748 -V, --version print version number and configuration settings, then exit
16749 --config print configuration, then exit
16750 -q, --quiet, --silent
16751 do not print progress messages
16752 -d, --debug don't remove temporary files
16753 --recheck update $as_me by reconfiguring in the same conditions
16754 --file=FILE[:TEMPLATE]
16755 instantiate the configuration file FILE
16756 --header=FILE[:TEMPLATE]
16757 instantiate the configuration header FILE
16759 Configuration files:
16762 Configuration headers:
16765 Configuration commands:
16768 Report bugs to <bug-bash@gnu.org>."
16771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16772 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16774 bash config.status 4.4-release
16775 configured by $0, generated by GNU Autoconf 2.69,
16776 with options \\"\$ac_cs_config\\"
16778 Copyright (C) 2012 Free Software Foundation, Inc.
16779 This config.status script is free software; the Free Software Foundation
16780 gives unlimited permission to copy, distribute and modify it."
16785 test -n "\$AWK" || AWK=awk
16788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16789 # The default lists apply if the user does not specify any file.
16795 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16796 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16800 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16812 # Handling of the options.
16813 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16815 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16816 $as_echo "$ac_cs_version"; exit ;;
16817 --config |
--confi |
--conf |
--con |
--co |
--c )
16818 $as_echo "$ac_cs_config"; exit ;;
16819 --debug |
--debu |
--deb |
--de |
--d |
-d )
16821 --file |
--fil |
--fi |
--f )
16824 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16825 '') as_fn_error $?
"missing file argument" ;;
16827 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16828 ac_need_defaults
=false
;;
16829 --header |
--heade |
--head |
--hea )
16832 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16834 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16835 ac_need_defaults
=false
;;
16837 # Conflict between --help and --header
16838 as_fn_error $?
"ambiguous option: \`$1'
16839 Try \`$0 --help' for more information.";;
16840 --help |
--hel |
-h )
16841 $as_echo "$ac_cs_usage"; exit ;;
16842 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16843 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16846 # This is an error.
16847 -*) as_fn_error $?
"unrecognized option: \`$1'
16848 Try \`$0 --help' for more information." ;;
16850 *) as_fn_append ac_config_targets
" $1"
16851 ac_need_defaults
=false
;;
16857 ac_configure_extra_args
=
16859 if $ac_cs_silent; then
16861 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16866 if \$ac_cs_recheck; then
16867 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16869 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16870 CONFIG_SHELL='$SHELL'
16871 export CONFIG_SHELL
16876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16880 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16881 ## Running $as_me. ##
16887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16891 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16892 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16894 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16895 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16896 LINGUAS="${LINGUAS-%UNSET%}"
16901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16903 # Handling of arguments.
16904 for ac_config_target
in $ac_config_targets
16906 case $ac_config_target in
16907 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
16908 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
16909 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16910 "builtins/Makefile") CONFIG_FILES
="$CONFIG_FILES builtins/Makefile" ;;
16911 "lib/readline/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/readline/Makefile" ;;
16912 "lib/glob/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/glob/Makefile" ;;
16913 "lib/intl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/intl/Makefile" ;;
16914 "lib/malloc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/malloc/Makefile" ;;
16915 "lib/sh/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/sh/Makefile" ;;
16916 "lib/termcap/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/termcap/Makefile" ;;
16917 "lib/tilde/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/tilde/Makefile" ;;
16918 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
16919 "support/Makefile") CONFIG_FILES
="$CONFIG_FILES support/Makefile" ;;
16920 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
16921 "examples/loadables/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/loadables/Makefile" ;;
16922 "examples/loadables/Makefile.inc") CONFIG_FILES
="$CONFIG_FILES examples/loadables/Makefile.inc" ;;
16923 "examples/loadables/perl/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
16924 "support/bash.pc") CONFIG_FILES
="$CONFIG_FILES support/bash.pc" ;;
16925 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16927 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16932 # If the user did not use the arguments to specify the items to instantiate,
16933 # then the envvar interface is used. Set only those that are not.
16934 # We use the long form for the default assignment because of an extremely
16935 # bizarre bug on SunOS 4.1.3.
16936 if $ac_need_defaults; then
16937 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16938 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16939 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16942 # Have a temporary directory for convenience. Make it in the build tree
16943 # simply because there is no reason against having it here, and in addition,
16944 # creating and moving files from /tmp can sometimes cause problems.
16945 # Hook for its removal unless debugging.
16946 # Note that there is a small window in which the directory will not be cleaned:
16947 # after its creation but before its name has been assigned to `$tmp'.
16951 trap 'exit_status=$?
16952 : "${ac_tmp:=$tmp}"
16953 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16955 trap 'as_fn_exit 1' 1 2 13 15
16957 # Create a (secure) tmp directory for tmp files.
16960 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16964 tmp
=.
/conf$$
-$RANDOM
16965 (umask 077 && mkdir
"$tmp")
16966 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16969 # Set up the scripts for CONFIG_FILES section.
16970 # No need to generate them if there are no CONFIG_FILES.
16971 # This happens for instance with `./config.status config.h'.
16972 if test -n "$CONFIG_FILES"; then
16975 ac_cr
=`echo X | tr X '\015'`
16976 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16977 # But we know of no other shell where ac_cr would be empty at this
16978 # point, so we can use a bashism as a fallback.
16979 if test "x$ac_cr" = x
; then
16980 eval ac_cr
=\$
\'\\r
\'
16982 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16983 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16986 ac_cs_awk_cr
=$ac_cr
16989 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16994 echo "cat >conf$$subs.awk <<_ACEOF" &&
16995 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16997 } >conf$$subs.sh ||
16998 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16999 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17001 for ac_last_try in false false false false false :; do
17002 . ./conf$$subs.sh ||
17003 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17005 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17006 if test $ac_delim_n = $ac_delim_num; then
17008 elif $ac_last_try; then
17009 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17011 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17014 rm -f conf$$subs.sh
17016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17017 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
17021 s/^/S["/; s
/!.
*/"]=/
17031 s/\(.\{148\}\)..*/\1/
17033 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17038 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17045 s/\(.\{148\}\)..*/\1/
17047 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17051 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17056 ' <conf$$subs.awk | sed '
17061 ' >>$CONFIG_STATUS || ac_write_fail=1
17062 rm -f conf$$subs.awk
17063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17065 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
17066 for (key in S) S_is_set[key] = 1
17072 nfields = split(line, field, "@
")
17074 len = length(field[1])
17075 for (i = 2; i < nfields; i++) {
17077 keylen = length(key)
17078 if (S_is_set[key]) {
17080 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17081 len += length(value) + length(field[++i])
17092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17093 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17094 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17097 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
17098 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
17101 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17102 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
17103 # trailing colons and then remove the whole line if VPATH becomes empty
17104 # (actually we leave an empty line to preserve line numbers).
17105 if test "x
$srcdir" = x.; then
17106 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17125 fi # test -n "$CONFIG_FILES"
17127 # Set up the scripts for CONFIG_HEADERS section.
17128 # No need to generate them if there are no CONFIG_HEADERS.
17129 # This happens for instance with `./config.status Makefile'.
17130 if test -n "$CONFIG_HEADERS"; then
17131 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
17135 # Transform confdefs.h into an awk script `defines.awk', embedded as
17136 # here-document in config.status, that substitutes the proper values into
17137 # config.h.in to produce config.h.
17139 # Create a delimiter string that does not exist in confdefs.h, to ease
17140 # handling of long lines.
17142 for ac_last_try in false false :; do
17143 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
17144 if test -z "$ac_tt"; then
17146 elif $ac_last_try; then
17147 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
17149 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17153 # For the awk script, D is an array of macro values keyed by name,
17154 # likewise P contains macro parameters if any. Preserve backslash
17155 # newline sequences.
17157 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17159 s/.\{148\}/&'"$ac_delim"'/g
17162 s/^[ ]*#[ ]*define[ ][ ]*/ /
17169 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17171 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17175 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17176 D["\
1"]=" \
3\\\\\\n
"\\/p
17178 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17183 s/.\{148\}/&'"$ac_delim"'/g
17188 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17191 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17193 ' <confdefs.h | sed '
17194 s/'"$ac_delim"'/"\\\
17195 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17198 for (key in D) D_is_set[key] = 1
17201 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17203 split(line, arg, " ")
17204 if (arg[1] == "#") {
17208 defundef
= substr
(arg
[1], 2)
17211 split(mac1
, mac2
, "(") #)
17213 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17214 if (D_is_set
[macro
]) {
17215 # Preserve the white space surrounding the "#".
17216 print prefix
"define", macro P
[macro
] D
[macro
]
17219 # Replace #undef with comments. This is necessary, for example,
17220 # in the case of _POSIX_SOURCE, which is predefined and required
17221 # on some systems where configure will not decide to define it.
17222 if (defundef
== "undef") {
17223 print
"/*", prefix defundef
, macro
, "*/"
17231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17232 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
17233 fi # test -n "$CONFIG_HEADERS"
17236 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17241 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17243 case $ac_mode$ac_tag in
17245 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17246 :[FH
]-) ac_tag
=-:-;;
17247 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17264 -) ac_f
="$ac_tmp/stdin";;
17265 *) # Look for the file first in the build tree, then in the source tree
17266 # (if the path is not absolute). The absolute path cannot be DOS-style,
17267 # because $ac_f cannot contain `:'.
17271 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17273 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17275 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17276 as_fn_append ac_file_inputs
" '$ac_f'"
17279 # Let's still pretend it is `configure' which instantiates (i.e., don't
17280 # use $as_me), people would be surprised to read:
17281 # /* config.h. Generated by config.status. */
17282 configure_input
='Generated from '`
17283 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17285 if test x
"$ac_file" != x-
; then
17286 configure_input
="$ac_file. $configure_input"
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17288 $as_echo "$as_me: creating $ac_file" >&6;}
17290 # Neutralize special characters interpreted by sed in replacement strings.
17291 case $configure_input in #(
17292 *\
&* |
*\|
* |
*\\* )
17293 ac_sed_conf_input
=`$as_echo "$configure_input" |
17294 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17295 *) ac_sed_conf_input
=$configure_input;;
17299 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
17300 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
17305 ac_dir
=`$as_dirname -- "$ac_file" ||
17306 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17307 X"$ac_file" : 'X\(//\)[^/]' \| \
17308 X"$ac_file" : 'X\(//\)$' \| \
17309 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17310 $as_echo X"$ac_file" |
17311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17315 /^X\(\/\/\)[^/].*/{
17328 as_dir
="$ac_dir"; as_fn_mkdir_p
17332 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17334 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17335 # A ".." for each directory in $ac_dir_suffix.
17336 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17337 case $ac_top_builddir_sub in
17338 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17339 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17342 ac_abs_top_builddir
=$ac_pwd
17343 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17344 # for backward compatibility:
17345 ac_top_builddir
=$ac_top_build_prefix
17348 .
) # We are building in place.
17350 ac_top_srcdir
=$ac_top_builddir_sub
17351 ac_abs_top_srcdir
=$ac_pwd ;;
17352 [\\/]* | ?
:[\\/]* ) # Absolute name.
17353 ac_srcdir
=$srcdir$ac_dir_suffix;
17354 ac_top_srcdir
=$srcdir
17355 ac_abs_top_srcdir
=$srcdir ;;
17356 *) # Relative name.
17357 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17358 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17359 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17361 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17371 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17372 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17377 # If the template does not know about datarootdir, expand it.
17378 # FIXME: This hack should be removed a few years after 2.60.
17379 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17390 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17391 *datarootdir
*) ac_datarootdir_seen
=yes;;
17392 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17394 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17397 ac_datarootdir_hack='
17398 s&@datadir@&$datadir&g
17399 s&@docdir@&$docdir&g
17400 s&@infodir@&$infodir&g
17401 s&@localedir@&$localedir&g
17402 s&@mandir@&$mandir&g
17403 s&\\\${datarootdir}&$datarootdir&g' ;;
17407 # Neutralize VPATH when `$srcdir' = `.'.
17408 # Shell code in configure.ac might set extrasub.
17409 # FIXME: do we really want to maintain this feature?
17410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17411 ac_sed_extra="$ac_vpsub
17414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17416 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17417 s|@configure_input@|
$ac_sed_conf_input|
;t t
17418 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17419 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17420 s
&@srcdir@
&$ac_srcdir&;t t
17421 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17422 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17423 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17424 s
&@builddir@
&$ac_builddir&;t t
17425 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17426 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17427 s
&@INSTALL@
&$ac_INSTALL&;t t
17428 $ac_datarootdir_hack
17430 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
17431 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
17433 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17434 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
17435 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17436 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17438 which seems to be undefined. Please make sure it is defined" >&5
17439 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17440 which seems to be undefined. Please make sure it is defined" >&2;}
17442 rm -f "$ac_tmp/stdin"
17444 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17445 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17447 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17453 if test x"$ac_file" != x-; then
17455 $as_echo "/* $configure_input */" \
17456 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17457 } >"$ac_tmp/config.h" \
17458 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17459 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17461 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17464 mv "$ac_tmp/config.h" "$ac_file" \
17465 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17468 $as_echo "/* $configure_input */" \
17469 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17470 || as_fn_error $? "could not create -" "$LINENO" 5
17474 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17475 $as_echo "$as_me: executing $ac_file commands" >&6;}
17480 case $ac_file$ac_mode in
17482 for ac_file in $CONFIG_FILES; do
17483 # Support "outfile[:infile[:infile...]]"
17485 *:*) ac_file=`echo "$ac_file"|sed 's
%:.
*%%'` ;;
17487 # PO directories have a Makefile.in generated from Makefile.in.in.
17488 case "$ac_file" in */Makefile.in)
17489 # Adjust a relative srcdir.
17490 ac_dir=`echo "$ac_file"|sed 's
%/[^
/][^
/]*$
%%'`
17491 ac_dir_suffix="/`echo "$ac_dir"|sed 's
%^\.
/%%'`"
17492 ac_dots=`echo "$ac_dir_suffix"|sed 's
%/[^
/]*%..
/%g
'`
17493 # In autoconf-2.13 it is called $ac_given_srcdir.
17494 # In autoconf-2.50 it is called $srcdir.
17495 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17496 case "$ac_given_srcdir" in
17497 .) top_srcdir=`echo $ac_dots|sed 's
%/$
%%'` ;;
17498 /*) top_srcdir="$ac_given_srcdir" ;;
17499 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17501 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17502 rm -f "$ac_dir/POTFILES"
17503 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17504 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17505 POMAKEFILEDEPS="POTFILES.in"
17506 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17507 # on $ac_dir but don't depend on user-specified configuration
17509 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17510 # The LINGUAS file contains the set of available languages.
17511 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17512 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
17514 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17515 # Hide the ALL_LINGUAS assigment from automake.
17516 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17517 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
17519 # The set of available languages was given in configure.in.
17520 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17522 case "$ac_given_srcdir" in
17524 *) srcdirpre
='$(srcdir)/' ;;
17530 for lang
in $ALL_LINGUAS; do
17531 POFILES
="$POFILES $srcdirpre$lang.po"
17532 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
17533 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
17534 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
17536 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17537 # environment variable.
17539 if test -n "$ALL_LINGUAS"; then
17540 for presentlang
in $ALL_LINGUAS; do
17542 if test "%UNSET%" != "$LINGUAS"; then
17543 desiredlanguages
="$LINGUAS"
17545 desiredlanguages
="$ALL_LINGUAS"
17547 for desiredlang
in $desiredlanguages; do
17548 # Use the presentlang catalog if desiredlang is
17549 # a. equal to presentlang, or
17550 # b. a variant of presentlang (because in this case,
17551 # presentlang can be used as a fallback for messages
17552 # which are not translated in the desiredlang catalog).
17553 case "$desiredlang" in
17554 "$presentlang"*) useit
=yes;;
17557 if test $useit = yes; then
17558 INST_LINGUAS
="$INST_LINGUAS $presentlang"
17563 if test -n "$INST_LINGUAS"; then
17564 for lang
in $INST_LINGUAS; do
17565 CATALOGS
="$CATALOGS $lang.gmo"
17568 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
17569 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"
17570 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
17571 if test -f "$f"; then
17573 *.orig |
*.bak |
*~
) ;;
17574 *) cat "$f" >> "$ac_dir/Makefile" ;;
17583 # Makefile uses this timestamp file to record whether config.h is up to date.
17584 echo timestamp
> stamp-h
17593 ac_clean_files
=$ac_clean_files_save
17595 test $ac_write_fail = 0 ||
17596 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17599 # configure is writing to config.log, and then calls config.status.
17600 # config.status does its own redirection, appending to config.log.
17601 # Unfortunately, on DOS this fails, as config.log is still kept open
17602 # by configure, so config.status won't be able to write to it; its
17603 # output is simply discarded. So we exec the FD to /dev/null,
17604 # effectively closing config.log, so it can be properly (re)opened and
17605 # appended to by config.status. When coming back to configure, we
17606 # need to make the FD available again.
17607 if test "$no_create" != yes; then
17609 ac_config_status_args
=
17610 test "$silent" = yes &&
17611 ac_config_status_args
="$ac_config_status_args --quiet"
17613 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17615 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17616 # would make configure fail if this is the last instruction.
17617 $ac_cs_success || as_fn_exit
1
17619 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17621 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}