2 # From configure.ac for Bash 4.3, version 4.059.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for bash 4.3-beta.
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.3-beta'
585 PACKAGE_STRING
='bash 4.3-beta'
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
652 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
653 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
654 TIME_H_DEFINES_STRUCT_TIMESPEC
663 INTL_LIBTOOL_SUFFIX_PREFIX
670 BUILD_INCLUDED_LIBINTL
772 program_transform_name
785 enable_option_checking
790 with_installed_readline
793 enable_minimal_config
795 enable_arith_for_command
796 enable_array_variables
798 enable_brace_expansion
799 enable_casemod_attributes
800 enable_casemod_expansions
801 enable_command_timing
806 enable_direxpand_default
807 enable_directory_stack
808 enable_disabled_builtins
809 enable_dparen_arithmetic
811 enable_extended_glob_default
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.3-beta 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.3-beta:";;
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-glob-asciiranges-default
1502 force bracket range expressions
in pattern matching
1503 to use the C locale by default
1504 --enable-help-builtin include the
help builtin
1505 --enable-history turn on
command history
1506 --enable-job-control enable job control features
1507 --enable-multibyte enable multibyte characters
if OS supports them
1508 --enable-net-redirections
1509 enable /dev
/tcp
/host
/port redirection
1510 --enable-process-substitution
1511 enable process substitution
1512 --enable-progcomp enable programmable completion and the complete
1514 --enable-prompt-string-decoding
1515 turn on escape character decoding
in prompts
1516 --enable-readline turn on
command line editing
1517 --enable-restricted enable a restricted shell
1518 --enable-select include
select command
1519 --enable-separate-helpfiles
1520 use external files
for help builtin documentation
1521 --enable-single-help-strings
1522 store
help documentation as a single string to ease
1524 --enable-strict-posix-default
1525 configure bash to be posix-conformant by default
1526 --enable-usg-echo-default
1527 a synonym
for --enable-xpg-echo-default
1528 --enable-xpg-echo-default
1529 make the
echo builtin expand escape sequences by
1531 --enable-mem-scramble scramble memory on calls to malloc and free
1532 --enable-profiling allow profiling with gprof
1533 --enable-static-link link bash statically
, for use as a root shell
1534 --disable-largefile omit support
for large files
1535 --disable-nls do not use Native Language Support
1536 --disable-rpath do not hardcode runtime library paths
1539 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1540 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1541 --with-afs if you are running AFS
1542 --with-bash-malloc use the Bash version of malloc
1543 --with-curses use the curses library instead of the termcap
1545 --with-gnu-malloc synonym
for --with-bash-malloc
1546 --with-installed-readline
1547 use a version of the readline library that is
1549 --with-purecov configure to postprocess with pure coverage
1550 --with-purify configure to postprocess with purify
1551 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1552 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1553 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1554 --with-included-gettext use the GNU gettext library included here
1555 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1556 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1558 Some influential environment variables
:
1560 location of bash debugger initialization
file
1562 C compiler used when compiling binaries used only
at build
time
1564 Compliation options
(CFLAGS
) used when compiling binaries used
1567 Linker options
(LDFLAGS
) used when compiling binaries used only
1570 C preprocessor options
(CPPFLAGS
) used when compiling binaries
1571 used only
at build
time
1572 CC C compiler
command
1573 CFLAGS C compiler flags
1574 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1575 nonstandard directory
<lib dir
>
1576 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1577 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1578 you have headers
in a nonstandard directory
<include dir
>
1580 YACC The
`Yet Another Compiler Compiler' implementation to use.
1581 Defaults to the first program found out of: `bison
-y', `byacc',
1583 YFLAGS The list of arguments that will be passed by default to $YACC.
1584 This script will default YFLAGS to the empty string to avoid a
1585 default value of `-d' given by some make applications.
1587 Use these variables to override the choices made by `configure' or to
help
1588 it to
find libraries and programs with nonstandard names
/locations.
1590 Report bugs to
<bug-bash@gnu.org
>.
1595 if test "$ac_init_help" = "recursive"; then
1596 # If there are subdirs, report their specific --help.
1597 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1598 test -d "$ac_dir" ||
1599 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1604 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1606 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1607 # A ".." for each directory in $ac_dir_suffix.
1608 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1609 case $ac_top_builddir_sub in
1610 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1611 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1614 ac_abs_top_builddir
=$ac_pwd
1615 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1616 # for backward compatibility:
1617 ac_top_builddir
=$ac_top_build_prefix
1620 .
) # We are building in place.
1622 ac_top_srcdir
=$ac_top_builddir_sub
1623 ac_abs_top_srcdir
=$ac_pwd ;;
1624 [\\/]* | ?
:[\\/]* ) # Absolute name.
1625 ac_srcdir
=$srcdir$ac_dir_suffix;
1626 ac_top_srcdir
=$srcdir
1627 ac_abs_top_srcdir
=$srcdir ;;
1629 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1631 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1633 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1635 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1636 # Check for guested configure.
1637 if test -f "$ac_srcdir/configure.gnu"; then
1639 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640 elif test -f "$ac_srcdir/configure"; then
1642 $SHELL "$ac_srcdir/configure" --help=recursive
1644 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1650 test -n "$ac_init_help" && exit $ac_status
1651 if $ac_init_version; then
1653 bash configure
4.3-beta
1654 generated by GNU Autoconf
2.69
1656 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1657 This configure
script is free software
; the Free Software Foundation
1658 gives unlimited permission to copy
, distribute and modify it.
1663 ## ------------------------ ##
1664 ## Autoconf initialization. ##
1665 ## ------------------------ ##
1667 # ac_fn_c_try_compile LINENO
1668 # --------------------------
1669 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_compile
()
1672 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1673 rm -f conftest.
$ac_objext
1674 if { { ac_try
="$ac_compile"
1676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_compile") 2>conftest.err
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest.$ac_objext; then :
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1703 } # ac_fn_c_try_compile
1705 # ac_fn_c_try_link LINENO
1706 # -----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded.
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 rm -f conftest.$ac_objext conftest$ac_exeext
1712 if { { ac_try="$ac_link"
1714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1715 *) ac_try_echo
=$ac_try;;
1717 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>conftest.err
1721 if test -s conftest.err
; then
1722 grep -v '^ *+' conftest.err
>conftest.er1
1723 cat conftest.er1
>&5
1724 mv -f conftest.er1 conftest.err
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && {
1728 test -z "$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1730 } && test -s conftest
$ac_exeext && {
1731 test "$cross_compiling" = yes ||
1732 test -x conftest
$ac_exeext
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.
$ac_ext >&5
1741 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1742 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1743 # interfere with the next link command; also delete a directory that is
1744 # left behind by Apple's compiler. We do this before executing the actions.
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status
$ac_retval
1749 } # ac_fn_c_try_link
1751 # ac_fn_c_try_cpp LINENO
1752 # ----------------------
1753 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1756 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1757 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } > conftest.i && {
1773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1774 test ! -s conftest.err
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1788 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1789 # -------------------------------------------------------
1790 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1791 # the include files in INCLUDES and setting the cache variable VAR
1793 ac_fn_c_check_header_mongrel ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 if eval \${$3+:} false; then :
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \${$3+:} false; then :
1800 $as_echo_n "(cached) " >&6
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1806 # Is the header compilable?
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1808 $as_echo_n "checking $2 usability... " >&6; }
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1814 if ac_fn_c_try_compile "$LINENO"; then :
1815 ac_header_compiler=yes
1817 ac_header_compiler=no
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1821 $as_echo "$ac_header_compiler" >&6; }
1823 # Is the header present?
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1825 $as_echo_n "checking $2 presence... " >&6; }
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1830 if ac_fn_c_try_cpp "$LINENO"; then :
1831 ac_header_preproc=yes
1833 ac_header_preproc=no
1835 rm -f conftest.err conftest.i conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1837 $as_echo "$ac_header_preproc" >&6; }
1839 # So? What about this header?
1840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1843 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1849 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1851 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1853 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1855 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858 ( $as_echo "## ------------------------------- ##
1859 ## Report this to bug-bash@gnu.org ##
1860 ## ------------------------------- ##"
1861 ) | sed "s/^/$as_me: WARNING: /" >&2
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if eval \${$3+:} false; then :
1867 $as_echo_n "(cached) " >&6
1869 eval "$3=\$ac_header_compiler"
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 } # ac_fn_c_check_header_mongrel
1879 # ac_fn_c_try_run LINENO
1880 # ----------------------
1881 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1882 # that executables *can* be run.
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if { { ac_try="$ac_link"
1888 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1889 *) ac_try_echo
=$ac_try;;
1891 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>&5
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1897 { { case "(($ac_try" in
1898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_try") 2>&5
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; }; }; then :
1909 $as_echo "$as_me: program exited with status $ac_status" >&5
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1913 ac_retval=$ac_status
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
1921 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1922 # -------------------------------------------------------
1923 # Tests whether HEADER exists and can be compiled using the include files in
1924 # INCLUDES, setting the cache variable VAR accordingly.
1925 ac_fn_c_check_header_compile ()
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if eval \${$3+:} false; then :
1931 $as_echo_n "(cached) " >&6
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1938 if ac_fn_c_try_compile "$LINENO"; then :
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 } # ac_fn_c_check_header_compile
1952 # ac_fn_c_check_func LINENO FUNC VAR
1953 # ----------------------------------
1954 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1955 ac_fn_c_check_func ()
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if eval \${$3+:} false; then :
1961 $as_echo_n "(cached) " >&6
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1965 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1967 #define $2 innocuous_$2
1969 /* System header to define __stub macros and hopefully few prototypes,
1970 which can conflict with char $2 (); below.
1971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1972 <limits.h> exists even on freestanding compilers. */
1975 # include <limits.h>
1977 # include <assert.h>
1982 /* Override any GCC internal prototype to avoid an error.
1983 Use char because int might match the return type of a GCC
1984 builtin and then its argument prototype would still apply. */
1989 /* The GNU C library defines this for functions which it implements
1990 to always fail with ENOSYS. Some functions are actually named
1991 something starting with __ and the normal name is an alias. */
1992 #if defined __stub_$2 || defined __stub___$2
2004 if ac_fn_c_try_link "$LINENO"; then :
2009 rm -f core conftest.err conftest.$ac_objext \
2010 conftest$ac_exeext conftest.$ac_ext
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014 $as_echo "$ac_res" >&6; }
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017 } # ac_fn_c_check_func
2019 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2020 # -------------------------------------------
2021 # Tests whether TYPE exists after having included INCLUDES, setting cache
2022 # variable VAR accordingly.
2023 ac_fn_c_check_type ()
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027 $as_echo_n "checking for $2... " >&6; }
2028 if eval \${$3+:} false; then :
2029 $as_echo_n "(cached) " >&6
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2057 if ac_fn_c_try_compile "$LINENO"; then :
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 } # ac_fn_c_check_type
2073 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2074 # ---------------------------------------------
2075 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2077 ac_fn_c_check_decl ()
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2081 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2083 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2084 if eval \${$3+:} false; then :
2085 $as_echo_n "(cached) " >&6
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2093 #ifndef $as_decl_name
2095 (void) $as_decl_use;
2097 (void) $as_decl_name;
2105 if ac_fn_c_try_compile "$LINENO"; then :
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117 } # ac_fn_c_check_decl
2119 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2120 # --------------------------------------------
2121 # Tries to find the compile-time value of EXPR in a program that includes
2122 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2124 ac_fn_c_compute_int ()
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 if test "$cross_compiling" = yes; then
2128 # Depending upon the size, compute the lo and hi bounds.
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2135 static int test_array [1 - 2 * !(($2) >= 0)];
2137 return test_array [0];
2143 if ac_fn_c_try_compile "$LINENO"; then :
2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h. */
2152 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2154 return test_array [0];
2160 if ac_fn_c_try_compile "$LINENO"; then :
2161 ac_hi=$ac_mid; break
2163 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2164 if test $ac_lo -le $ac_mid; then
2168 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2179 static int test_array [1 - 2 * !(($2) < 0)];
2181 return test_array [0];
2187 if ac_fn_c_try_compile "$LINENO"; then :
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2196 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2198 return test_array [0];
2204 if ac_fn_c_try_compile "$LINENO"; then :
2205 ac_lo=$ac_mid; break
2207 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2208 if test $ac_mid -le $ac_hi; then
2212 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222 # Binary search between lo and hi bounds.
2223 while test "x$ac_lo" != "x$ac_hi"; do
2224 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2231 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2233 return test_array [0];
2239 if ac_fn_c_try_compile "$LINENO"; then :
2242 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2254 static long int longval () { return $2; }
2255 static unsigned long int ulongval () { return $2; }
2262 FILE *f = fopen ("conftest.val", "w");
2267 long int i = longval ();
2270 fprintf (f, "%ld", i);
2274 unsigned long int i = ulongval ();
2277 fprintf (f, "%lu", i);
2279 /* Do not output a trailing newline, as this causes \r\n confusion
2280 on some platforms. */
2281 return ferror (f) || fclose (f) != 0;
2287 if ac_fn_c_try_run "$LINENO"; then :
2288 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2293 conftest.$ac_objext conftest.beam conftest.$ac_ext
2297 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2298 as_fn_set_status $ac_retval
2300 } # ac_fn_c_compute_int
2302 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2303 # ----------------------------------------------------
2304 # Tries to find if the field MEMBER exists in type AGGR, after including
2305 # INCLUDES, setting cache variable VAR accordingly.
2306 ac_fn_c_check_member ()
2308 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2310 $as_echo_n "checking for $2.$3... " >&6; }
2311 if eval \${$4+:} false; then :
2312 $as_echo_n "(cached) " >&6
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2327 if ac_fn_c_try_compile "$LINENO"; then :
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2337 if (sizeof ac_aggr.$3)
2343 if ac_fn_c_try_compile "$LINENO"; then :
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2354 $as_echo "$ac_res" >&6; }
2355 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2357 } # ac_fn_c_check_member
2358 cat >config.log <<_ACEOF
2359 This file contains any messages produced by compilers while
2360 running configure, to aid debugging if configure makes a mistake.
2362 It was created by bash $as_me 4.3-beta, which was
2363 generated by GNU Autoconf 2.69. Invocation command line was
2375 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2376 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2377 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2378 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2379 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2381 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2382 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2384 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2385 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2386 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2387 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2388 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2389 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2390 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 test -z "$as_dir" && as_dir=.
2399 $as_echo "PATH: $as_dir"
2415 # Keep a trace of the command line.
2416 # Strip out --no-create and --no-recursion so they do not pile up.
2417 # Strip out --silent because we don't want to record it for future runs.
2418 # Also quote any args containing shell meta-characters.
2419 # Make two passes to allow for proper duplicate-argument suppression.
2423 ac_must_keep_next=false
2429 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2430 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2431 | -silent | --silent | --silen | --sile | --sil)
2434 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2437 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2439 as_fn_append ac_configure_args1 " '$ac_arg'"
2440 if test $ac_must_keep_next = true; then
2441 ac_must_keep_next=false # Got value, back to normal.
2444 *=* | --config-cache | -C | -disable-* | --disable-* \
2445 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2446 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2447 | -with-* | --with-* | -without-* | --without-* | --x)
2448 case "$ac_configure_args0 " in
2449 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2452 -* ) ac_must_keep_next=true ;;
2455 as_fn_append ac_configure_args " '$ac_arg'"
2460 { ac_configure_args0=; unset ac_configure_args0;}
2461 { ac_configure_args1=; unset ac_configure_args1;}
2463 # When interrupted or exit'd, cleanup temporary files, and complete
2464 # config.log. We remove comments because anyway the quotes in there
2465 # would cause problems or look ugly.
2466 # WARNING: Use '\'' to represent an apostrophe within the trap.
2467 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2468 trap 'exit_status=$?
2469 # Save into config.log some information that might help in debugging.
2473 $as_echo "## ---------------- ##
2474 ## Cache variables. ##
2475 ## ---------------- ##"
2477 # The following way of writing the cache mishandles newlines in values,
2479 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2480 eval ac_val=\$$ac_var
2484 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2485 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2488 _ | IFS | as_nl) ;; #(
2489 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2490 *) { eval $ac_var=; unset $ac_var;} ;;
2495 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2496 *${as_nl}ac_space=\ *)
2498 "s/'\''/'\''\\\\'\'''\''/g;
2499 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2502 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2509 $as_echo "## ----------------- ##
2510 ## Output variables. ##
2511 ## ----------------- ##"
2513 for ac_var in $ac_subst_vars
2515 eval ac_val=\$$ac_var
2517 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2519 $as_echo "$ac_var='\''$ac_val'\''"
2523 if test -n "$ac_subst_files"; then
2524 $as_echo "## ------------------- ##
2525 ## File substitutions. ##
2526 ## ------------------- ##"
2528 for ac_var in $ac_subst_files
2530 eval ac_val=\$$ac_var
2532 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2534 $as_echo "$ac_var='\''$ac_val'\''"
2539 if test -s confdefs.h; then
2540 $as_echo "## ----------- ##
2547 test "$ac_signal" != 0 &&
2548 $as_echo "$as_me: caught signal $ac_signal"
2549 $as_echo "$as_me: exit $exit_status"
2551 rm -f core *.core core.conftest.* &&
2552 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2555 for ac_signal in 1 2 13 15; do
2556 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2560 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2561 rm -f -r conftest* confdefs.h
2563 $as_echo "/* confdefs.h */" > confdefs.h
2565 # Predefined preprocessor variables.
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_NAME "$PACKAGE_NAME"
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_STRING "$PACKAGE_STRING"
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2587 cat >>confdefs.h <<_ACEOF
2588 #define PACKAGE_URL "$PACKAGE_URL"
2592 # Let the site file select an alternate cache file if it wants to.
2593 # Prefer an explicitly selected file to automatically selected ones.
2596 if test -n "$CONFIG_SITE"; then
2597 # We do not want a PATH search for config.site.
2598 case $CONFIG_SITE in #((
2599 -*) ac_site_file1=./$CONFIG_SITE;;
2600 */*) ac_site_file1=$CONFIG_SITE;;
2601 *) ac_site_file1=./$CONFIG_SITE;;
2603 elif test "x$prefix" != xNONE; then
2604 ac_site_file1=$prefix/share/config.site
2605 ac_site_file2=$prefix/etc/config.site
2607 ac_site_file1=$ac_default_prefix/share/config.site
2608 ac_site_file2=$ac_default_prefix/etc/config.site
2610 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2612 test "x$ac_site_file" = xNONE && continue
2613 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2615 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2616 sed 's/^/| /' "$ac_site_file" >&5
2618 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620 as_fn_error $? "failed to load site
script $ac_site_file
2621 See \
`config.log' for more details" "$LINENO" 5; }
2625 if test -r "$cache_file"; then
2626 # Some versions of bash will fail to source /dev/null (special files
2627 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2628 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2630 $as_echo "$as_me: loading cache $cache_file" >&6;}
2632 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2633 *) . "./$cache_file";;
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2638 $as_echo "$as_me: creating cache $cache_file" >&6;}
2642 as_fn_append ac_header_list " stdlib.h"
2643 as_fn_append ac_header_list " unistd.h"
2644 as_fn_append ac_header_list " sys/param.h"
2645 as_fn_append ac_header_list " sys/time.h"
2646 as_fn_append ac_func_list " alarm"
2647 as_fn_append ac_func_list " fpurge"
2648 as_fn_append ac_func_list " __fpurge"
2649 as_fn_append ac_func_list " snprintf"
2650 as_fn_append ac_func_list " vsnprintf"
2651 # Check that the precious variables saved in the cache have kept the same
2653 ac_cache_corrupted=false
2654 for ac_var in $ac_precious_vars; do
2655 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2656 eval ac_new_set=\$ac_env_${ac_var}_set
2657 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2658 eval ac_new_val=\$ac_env_${ac_var}_value
2659 case $ac_old_set,$ac_new_set in
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2662 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2663 ac_cache_corrupted=: ;;
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2666 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2667 ac_cache_corrupted=: ;;
2670 if test "x$ac_old_val" != "x$ac_new_val"; then
2671 # differences in whitespace do not lead to failure.
2672 ac_old_val_w=`echo x
$ac_old_val`
2673 ac_new_val_w=`echo x
$ac_new_val`
2674 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2676 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2677 ac_cache_corrupted=:
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2680 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2681 eval $ac_var=\$ac_old_val
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2684 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2686 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2689 # Pass precious variables to config.status.
2690 if test "$ac_new_set" = set; then
2692 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2693 *) ac_arg=$ac_var=$ac_new_val ;;
2695 case " $ac_configure_args " in
2696 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2697 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2701 if $ac_cache_corrupted; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2705 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2706 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2708 ## -------------------- ##
2709 ## Main body of script. ##
2710 ## -------------------- ##
2713 ac_cpp='$CPP $CPPFLAGS'
2714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724 for ac_dir in ./support "$srcdir"/./support; do
2725 if test -f "$ac_dir/install-sh"; then
2727 ac_install_sh="$ac_aux_dir/install-sh -c"
2729 elif test -f "$ac_dir/install.sh"; then
2731 ac_install_sh="$ac_aux_dir/install.sh -c"
2733 elif test -f "$ac_dir/shtool"; then
2735 ac_install_sh="$ac_aux_dir/shtool install -c"
2739 if test -z "$ac_aux_dir"; then
2740 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./support \"$srcdir\"/./support" "$LINENO" 5
2743 # These three variables are undocumented and unsupported,
2744 # and are intended to be withdrawn in a future Autoconf release.
2745 # They can cause serious problems if a builder's source tree is in a directory
2746 # whose full name contains unusual characters.
2747 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2748 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2749 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2752 ac_config_headers="$ac_config_headers config.h"
2758 case "$RELSTATUS" in
2759 alp*|bet*|dev*|rc*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
2760 *) DEBUG= MALLOC_DEBUG= ;;
2763 # Make sure we can run config.sub.
2764 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2765 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2768 $as_echo_n "checking build system type... " >&6; }
2769 if ${ac_cv_build+:} false; then :
2770 $as_echo_n "(cached) " >&6
2772 ac_build_alias=$build_alias
2773 test "x$ac_build_alias" = x &&
2774 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2775 test "x$ac_build_alias" = x &&
2776 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2777 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2778 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2782 $as_echo "$ac_cv_build" >&6; }
2783 case $ac_cv_build in
2785 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2788 ac_save_IFS=$IFS; IFS='-'
2794 # Remember, the first character of IFS is used to create $*,
2795 # except with old shells:
2798 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2802 $as_echo_n "checking host system type... " >&6; }
2803 if ${ac_cv_host+:} false; then :
2804 $as_echo_n "(cached) " >&6
2806 if test "x$host_alias" = x; then
2807 ac_cv_host=$ac_cv_build
2809 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2810 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2815 $as_echo "$ac_cv_host" >&6; }
2818 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2821 ac_save_IFS=$IFS; IFS='-'
2827 # Remember, the first character of IFS is used to create $*,
2828 # except with old shells:
2831 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2841 opt_with_installed_readline=no
2845 case "${host_cpu}-${host_os}" in
2846 alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
2847 *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
2848 *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
2849 sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
2850 sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
2851 mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
2852 m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
2853 sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
2854 #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
2855 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
2856 *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
2857 *-mirbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
2858 *-aix*) opt_bash_malloc=no ;; # AIX machines
2859 *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
2860 *-openstep*) opt_bash_malloc=no ;; # i386/Sparc/HP machines running Openstep
2861 *-macos*) opt_bash_malloc=no ;; # Apple MacOS X
2862 *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
2863 *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
2864 *-dgux*) opt_bash_malloc=no ;; # DG/UX machines
2865 *-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x
2866 *-machten4) opt_bash_malloc=no ;; # MachTen 4.x
2867 *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
2868 *-beos*) opt_bash_malloc=no ;; # they say it's suitable
2869 *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
2870 *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
2871 *-nsk*) opt_bash_malloc=no ;; # HP NonStop
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 # Check whether --with-purecov was given.
2914 if test "${with_purecov+set}" = set; then :
2915 withval=$with_purecov; opt_purecov=$withval
2919 # Check whether --with-purify was given.
2920 if test "${with_purify+set}" = set; then :
2921 withval=$with_purify; opt_purify=$withval
2925 if test "$opt_bash_malloc" = yes; then
2926 MALLOC_TARGET=malloc
2929 MALLOC_LIB='-lmalloc'
2930 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
2931 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
2932 MALLOC_DEP='$(MALLOC_LIBRARY)'
2934 $as_echo "#define USING_BASH_MALLOC 1" >>confdefs.h
2943 if test "$opt_purify" = yes; then
2945 $as_echo "#define DISABLE_MALLOC_WRAPPERS 1" >>confdefs.h
2951 if test "$opt_purecov" = yes; then
2952 PURIFY="${PURIFY}purecov"
2955 if test "$opt_afs" = yes; then
2956 $as_echo "#define AFS 1" >>confdefs.h
2960 if test "$opt_curses" = yes; then
2964 if test -z "${DEBUGGER_START_FILE}"; then
2965 DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc'
2968 opt_minimal_config=no
2974 opt_bang_history=yes
2977 opt_process_subst=yes
2978 opt_prompt_decoding=yes
2981 opt_array_variables=yes
2982 opt_dparen_arith=yes
2983 opt_extended_glob=yes
2984 opt_brace_expansion=yes
2985 opt_disabled_builtins=no
2986 opt_command_timing=yes
2989 opt_cond_command=yes
2992 opt_arith_for_command=yes
2995 opt_separate_help=no
2998 opt_single_longdoc_strings=yes
2999 opt_casemod_attrs=yes
3000 opt_casemod_expansions=yes
3001 opt_extglob_default=no
3002 opt_dircomplete_expand_default=no
3003 opt_globascii_default=no
3008 # Check whether --enable-minimal-config was given.
3009 if test "${enable_minimal_config+set}" = set; then :
3010 enableval=$enable_minimal_config; opt_minimal_config=$enableval
3014 if test $opt_minimal_config = yes; then
3015 opt_job_control=no opt_alias=no opt_readline=no
3016 opt_history=no opt_bang_history=no opt_dirstack=no
3017 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
3018 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
3019 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
3020 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
3021 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
3022 opt_multibyte=yes opt_cond_regexp=no opt_coproc=no
3023 opt_casemod_attrs=no opt_casemod_expansions=no opt_extglob_default=no
3024 opt_globascii_default=no
3027 # Check whether --enable-alias was given.
3028 if test "${enable_alias+set}" = set; then :
3029 enableval=$enable_alias; opt_alias=$enableval
3032 # Check whether --enable-arith-for-command was given.
3033 if test "${enable_arith_for_command+set}" = set; then :
3034 enableval=$enable_arith_for_command; opt_arith_for_command=$enableval
3037 # Check whether --enable-array-variables was given.
3038 if test "${enable_array_variables+set}" = set; then :
3039 enableval=$enable_array_variables; opt_array_variables=$enableval
3042 # Check whether --enable-bang-history was given.
3043 if test "${enable_bang_history+set}" = set; then :
3044 enableval=$enable_bang_history; opt_bang_history=$enableval
3047 # Check whether --enable-brace-expansion was given.
3048 if test "${enable_brace_expansion+set}" = set; then :
3049 enableval=$enable_brace_expansion; opt_brace_expansion=$enableval
3052 # Check whether --enable-casemod-attributes was given.
3053 if test "${enable_casemod_attributes+set}" = set; then :
3054 enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval
3057 # Check whether --enable-casemod-expansions was given.
3058 if test "${enable_casemod_expansions+set}" = set; then :
3059 enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval
3062 # Check whether --enable-command-timing was given.
3063 if test "${enable_command_timing+set}" = set; then :
3064 enableval=$enable_command_timing; opt_command_timing=$enableval
3067 # Check whether --enable-cond-command was given.
3068 if test "${enable_cond_command+set}" = set; then :
3069 enableval=$enable_cond_command; opt_cond_command=$enableval
3072 # Check whether --enable-cond-regexp was given.
3073 if test "${enable_cond_regexp+set}" = set; then :
3074 enableval=$enable_cond_regexp; opt_cond_regexp=$enableval
3077 # Check whether --enable-coprocesses was given.
3078 if test "${enable_coprocesses+set}" = set; then :
3079 enableval=$enable_coprocesses; opt_coproc=$enableval
3082 # Check whether --enable-debugger was given.
3083 if test "${enable_debugger+set}" = set; then :
3084 enableval=$enable_debugger; opt_debugger=$enableval
3087 # Check whether --enable-direxpand-default was given.
3088 if test "${enable_direxpand_default+set}" = set; then :
3089 enableval=$enable_direxpand_default; opt_dircomplete_expand_default=$enableval
3092 # Check whether --enable-directory-stack was given.
3093 if test "${enable_directory_stack+set}" = set; then :
3094 enableval=$enable_directory_stack; opt_dirstack=$enableval
3097 # Check whether --enable-disabled-builtins was given.
3098 if test "${enable_disabled_builtins+set}" = set; then :
3099 enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval
3102 # Check whether --enable-dparen-arithmetic was given.
3103 if test "${enable_dparen_arithmetic+set}" = set; then :
3104 enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval
3107 # Check whether --enable-extended-glob was given.
3108 if test "${enable_extended_glob+set}" = set; then :
3109 enableval=$enable_extended_glob; opt_extended_glob=$enableval
3112 # Check whether --enable-extended-glob-default was given.
3113 if test "${enable_extended_glob_default+set}" = set; then :
3114 enableval=$enable_extended_glob_default; opt_extglob_default=$enableval
3117 # Check whether --enable-glob-asciiranges-default was given.
3118 if test "${enable_glob_asciiranges_default+set}" = set; then :
3119 enableval=$enable_glob_asciiranges_default; opt_globascii_default=$enableval
3122 # Check whether --enable-help-builtin was given.
3123 if test "${enable_help_builtin+set}" = set; then :
3124 enableval=$enable_help_builtin; opt_help=$enableval
3127 # Check whether --enable-history was given.
3128 if test "${enable_history+set}" = set; then :
3129 enableval=$enable_history; opt_history=$enableval
3132 # Check whether --enable-job-control was given.
3133 if test "${enable_job_control+set}" = set; then :
3134 enableval=$enable_job_control; opt_job_control=$enableval
3137 # Check whether --enable-multibyte was given.
3138 if test "${enable_multibyte+set}" = set; then :
3139 enableval=$enable_multibyte; opt_multibyte=$enableval
3142 # Check whether --enable-net-redirections was given.
3143 if test "${enable_net_redirections+set}" = set; then :
3144 enableval=$enable_net_redirections; opt_net_redirs=$enableval
3147 # Check whether --enable-process-substitution was given.
3148 if test "${enable_process_substitution+set}" = set; then :
3149 enableval=$enable_process_substitution; opt_process_subst=$enableval
3152 # Check whether --enable-progcomp was given.
3153 if test "${enable_progcomp+set}" = set; then :
3154 enableval=$enable_progcomp; opt_progcomp=$enableval
3157 # Check whether --enable-prompt-string-decoding was given.
3158 if test "${enable_prompt_string_decoding+set}" = set; then :
3159 enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval
3162 # Check whether --enable-readline was given.
3163 if test "${enable_readline+set}" = set; then :
3164 enableval=$enable_readline; opt_readline=$enableval
3167 # Check whether --enable-restricted was given.
3168 if test "${enable_restricted+set}" = set; then :
3169 enableval=$enable_restricted; opt_restricted=$enableval
3172 # Check whether --enable-select was given.
3173 if test "${enable_select+set}" = set; then :
3174 enableval=$enable_select; opt_select=$enableval
3177 # Check whether --enable-separate-helpfiles was given.
3178 if test "${enable_separate_helpfiles+set}" = set; then :
3179 enableval=$enable_separate_helpfiles; opt_separate_help=$enableval
3182 # Check whether --enable-single-help-strings was given.
3183 if test "${enable_single_help_strings+set}" = set; then :
3184 enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval
3187 # Check whether --enable-strict-posix-default was given.
3188 if test "${enable_strict_posix_default+set}" = set; then :
3189 enableval=$enable_strict_posix_default; opt_strict_posix=$enableval
3192 # Check whether --enable-usg-echo-default was given.
3193 if test "${enable_usg_echo_default+set}" = set; then :
3194 enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval
3197 # Check whether --enable-xpg-echo-default was given.
3198 if test "${enable_xpg_echo_default+set}" = set; then :
3199 enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval
3203 # Check whether --enable-mem-scramble was given.
3204 if test "${enable_mem_scramble+set}" = set; then :
3205 enableval=$enable_mem_scramble; opt_memscramble=$enableval
3208 # Check whether --enable-profiling was given.
3209 if test "${enable_profiling+set}" = set; then :
3210 enableval=$enable_profiling; opt_profiling=$enableval
3213 # Check whether --enable-static-link was given.
3214 if test "${enable_static_link+set}" = set; then :
3215 enableval=$enable_static_link; opt_static_link=$enableval
3226 if test $opt_alias = yes; then
3227 $as_echo "#define ALIAS 1" >>confdefs.h
3230 if test $opt_dirstack = yes; then
3231 $as_echo "#define PUSHD_AND_POPD 1" >>confdefs.h
3234 if test $opt_restricted = yes; then
3235 $as_echo "#define RESTRICTED_SHELL 1" >>confdefs.h
3238 if test $opt_process_subst = yes; then
3239 $as_echo "#define PROCESS_SUBSTITUTION 1" >>confdefs.h
3242 if test $opt_prompt_decoding = yes; then
3243 $as_echo "#define PROMPT_STRING_DECODE 1" >>confdefs.h
3246 if test $opt_select = yes; then
3247 $as_echo "#define SELECT_COMMAND 1" >>confdefs.h
3250 if test $opt_help = yes; then
3251 $as_echo "#define HELP_BUILTIN 1" >>confdefs.h
3254 if test $opt_array_variables = yes; then
3255 $as_echo "#define ARRAY_VARS 1" >>confdefs.h
3258 if test $opt_dparen_arith = yes; then
3259 $as_echo "#define DPAREN_ARITHMETIC 1" >>confdefs.h
3262 if test $opt_brace_expansion = yes; then
3263 $as_echo "#define BRACE_EXPANSION 1" >>confdefs.h
3266 if test $opt_disabled_builtins = yes; then
3267 $as_echo "#define DISABLED_BUILTINS 1" >>confdefs.h
3270 if test $opt_command_timing = yes; then
3271 $as_echo "#define COMMAND_TIMING 1" >>confdefs.h
3274 if test $opt_xpg_echo = yes ; then
3275 $as_echo "#define DEFAULT_ECHO_TO_XPG 1" >>confdefs.h
3278 if test $opt_strict_posix = yes; then
3279 $as_echo "#define STRICT_POSIX 1" >>confdefs.h
3282 if test $opt_extended_glob = yes ; then
3283 $as_echo "#define EXTENDED_GLOB 1" >>confdefs.h
3286 if test $opt_extglob_default = yes; then
3287 $as_echo "#define EXTGLOB_DEFAULT 1" >>confdefs.h
3290 $as_echo "#define EXTGLOB_DEFAULT 0" >>confdefs.h
3293 if test $opt_cond_command = yes ; then
3294 $as_echo "#define COND_COMMAND 1" >>confdefs.h
3297 if test $opt_cond_regexp = yes ; then
3298 $as_echo "#define COND_REGEXP 1" >>confdefs.h
3301 if test $opt_coproc = yes; then
3302 $as_echo "#define COPROCESS_SUPPORT 1" >>confdefs.h
3305 if test $opt_arith_for_command = yes; then
3306 $as_echo "#define ARITH_FOR_COMMAND 1" >>confdefs.h
3309 if test $opt_net_redirs = yes; then
3310 $as_echo "#define NETWORK_REDIRECTIONS 1" >>confdefs.h
3313 if test $opt_progcomp = yes; then
3314 $as_echo "#define PROGRAMMABLE_COMPLETION 1" >>confdefs.h
3317 if test $opt_multibyte = no; then
3318 $as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h
3321 if test $opt_debugger = yes; then
3322 $as_echo "#define DEBUGGER 1" >>confdefs.h
3325 if test $opt_casemod_attrs = yes; then
3326 $as_echo "#define CASEMOD_ATTRS 1" >>confdefs.h
3329 if test $opt_casemod_expansions = yes; then
3330 $as_echo "#define CASEMOD_EXPANSIONS 1" >>confdefs.h
3333 if test $opt_dircomplete_expand_default = yes; then
3334 $as_echo "#define DIRCOMPLETE_EXPAND_DEFAULT 1" >>confdefs.h
3337 if test $opt_globascii_default = yes; then
3338 $as_echo "#define GLOBASCII_DEFAULT 1" >>confdefs.h
3341 $as_echo "#define GLOBASCII_DEFAULT 0" >>confdefs.h
3345 if test $opt_memscramble = yes; then
3346 $as_echo "#define MEMSCRAMBLE 1" >>confdefs.h
3350 if test "$opt_minimal_config" = yes; then
3351 TESTSCRIPT=run-minimal
3356 HELPDIR= HELPDIRDEFINE= HELPINSTALL= HELPFILES_TARGET=
3357 if test "$opt_separate_help" != no; then
3358 if test "$opt_separate_help" = "yes" ; then
3359 HELPDIR='${datadir}/bash'
3361 HELPDIR=$opt_separate_help
3363 HELPDIRDEFINE='-H ${HELPDIR}'
3364 HELPINSTALL='install-help'
3365 HELPFILES_TARGET='helpdoc'
3368 if test "$opt_single_longdoc_strings" != "yes"; then
3391 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
3395 ac_cpp='$CPP $CPPFLAGS'
3396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399 if test -n "$ac_tool_prefix"; then
3400 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3401 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403 $as_echo_n "checking for $ac_word... " >&6; }
3404 if ${ac_cv_prog_CC+:} false; then :
3405 $as_echo_n "(cached) " >&6
3407 if test -n "$CC"; then
3408 ac_cv_prog_CC="$CC" # Let the user override the test.
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 if test -n "$CC"; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3430 $as_echo "$CC" >&6; }
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3438 if test -z "$ac_cv_prog_CC"; then
3440 # Extract the first word of "gcc", so it can be a program name with args.
3441 set dummy gcc; ac_word=$2
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443 $as_echo_n "checking for $ac_word... " >&6; }
3444 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3445 $as_echo_n "(cached) " >&6
3447 if test -n "$ac_ct_CC"; then
3448 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 test -z "$as_dir" && as_dir=.
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3457 ac_cv_prog_ac_ct_CC="gcc"
3458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3468 if test -n "$ac_ct_CC"; then
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3470 $as_echo "$ac_ct_CC" >&6; }
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3476 if test "x$ac_ct_CC" = x; then
3479 case $cross_compiling:$ac_tool_warned in
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3483 ac_tool_warned=yes ;;
3491 if test -z "$CC"; then
3492 if test -n "$ac_tool_prefix"; then
3493 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3494 set dummy ${ac_tool_prefix}cc; ac_word=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if ${ac_cv_prog_CC+:} false; then :
3498 $as_echo_n "(cached) " >&6
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC="$CC" # Let the user override the test.
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510 ac_cv_prog_CC="${ac_tool_prefix}cc"
3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 if test -n "$CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3523 $as_echo "$CC" >&6; }
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3532 if test -z "$CC"; then
3533 # Extract the first word of "cc", so it can be a program name with args.
3534 set dummy cc; ac_word=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if ${ac_cv_prog_CC+:} false; then :
3538 $as_echo_n "(cached) " >&6
3540 if test -n "$CC"; then
3541 ac_cv_prog_CC="$CC" # Let the user override the test.
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3552 ac_prog_rejected=yes
3556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 if test $ac_prog_rejected = yes; then
3564 # We found a bogon in the path, so make sure we never use it.
3565 set dummy $ac_cv_prog_CC
3567 if test $# != 0; then
3568 # We chose a different compiler from the bogus one.
3569 # However, it has the same basename, so the bogon will be chosen
3570 # first if we set CC to just the basename; use the full file name.
3572 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3578 if test -n "$CC"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3580 $as_echo "$CC" >&6; }
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3588 if test -z "$CC"; then
3589 if test -n "$ac_tool_prefix"; then
3590 for ac_prog in cl.exe
3592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if ${ac_cv_prog_CC+:} false; then :
3597 $as_echo_n "(cached) " >&6
3599 if test -n "$CC"; then
3600 ac_cv_prog_CC="$CC" # Let the user override the test.
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 if test -n "$CC"; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3622 $as_echo "$CC" >&6; }
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3629 test -n "$CC" && break
3632 if test -z "$CC"; then
3634 for ac_prog in cl.exe
3636 # Extract the first word of "$ac_prog", so it can be a program name with args.
3637 set dummy $ac_prog; ac_word=$2
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639 $as_echo_n "checking for $ac_word... " >&6; }
3640 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3641 $as_echo_n "(cached) " >&6
3643 if test -n "$ac_ct_CC"; then
3644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 test -z "$as_dir" && as_dir=.
3651 for ac_exec_ext in '' $ac_executable_extensions; do
3652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3653 ac_cv_prog_ac_ct_CC="$ac_prog"
3654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3664 if test -n "$ac_ct_CC"; then
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3666 $as_echo "$ac_ct_CC" >&6; }
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 $as_echo "no" >&6; }
3673 test -n "$ac_ct_CC" && break
3676 if test "x$ac_ct_CC" = x; then
3679 case $cross_compiling:$ac_tool_warned in
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3683 ac_tool_warned=yes ;;
3692 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3695 See \
`config.log' for more details" "$LINENO" 5; }
3697 # Provide some information about the compiler.
3698 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3701 for ac_option in --version -v -V -qversion; do
3702 { { ac_try="$ac_compiler $ac_option >&5"
3704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3705 *) ac_try_echo
=$ac_try;;
3707 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3708 $as_echo "$ac_try_echo"; } >&5
3709 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3711 if test -s conftest.err
; then
3713 ... rest of stderr output deleted ...
3714 10q' conftest.err
>conftest.er1
3715 cat conftest.er1
>&5
3717 rm -f conftest.er1 conftest.err
3718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3719 test $ac_status = 0; }
3722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3733 ac_clean_files_save
=$ac_clean_files
3734 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3735 # Try to create an executable without -o first, disregard a.out.
3736 # It will help us diagnose broken compilers, and finding out an intuition
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3739 $as_echo_n "checking whether the C compiler works... " >&6; }
3740 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3742 # The possible output files:
3743 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3746 for ac_file
in $ac_files
3749 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3750 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3755 if { { ac_try
="$ac_link_default"
3757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761 $as_echo "$ac_try_echo"; } >&5
3762 (eval "$ac_link_default") 2>&5
3764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765 test $ac_status = 0; }; then :
3766 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3767 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3768 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3769 # so that the user can short-circuit this test for compilers unknown to
3771 for ac_file in $ac_files ''
3773 test -f "$ac_file" || continue
3775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3778 # We found the default executable, but exeext='' is most
3782 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3784 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3786 # We set ac_cv_exeext here because the later test for it is not
3787 # safe: cross compilers may not add the suffix if given an `-o'
3788 # argument, so we may need to know it at that point already.
3789 # Even if this section looks crufty: it has the advantage of
3796 test "$ac_cv_exeext" = no && ac_cv_exeext=
3801 if test -z "$ac_file"; then :
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803 $as_echo "no" >&6; }
3804 $as_echo "$as_me: failed program was:" >&5
3805 sed 's
/^
/|
/' conftest.$ac_ext >&5
3807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3809 as_fn_error 77 "C compiler cannot create executables
3810 See \`config.log
' for more details" "$LINENO" 5; }
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3813 $as_echo "yes" >&6; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3816 $as_echo_n "checking for C compiler default output file name... " >&6; }
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3818 $as_echo "$ac_file" >&6; }
3819 ac_exeext=$ac_cv_exeext
3821 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3822 ac_clean_files=$ac_clean_files_save
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3824 $as_echo_n "checking for suffix of executables... " >&6; }
3825 if { { ac_try="$ac_link"
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831 $as_echo "$ac_try_echo"; } >&5
3832 (eval "$ac_link") 2>&5
3834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835 test $ac_status = 0; }; then :
3836 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3837 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3838 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3840 for ac_file
in conftest.exe conftest conftest.
*; do
3841 test -f "$ac_file" ||
continue
3843 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3844 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3852 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3853 See \`config.log' for more details" "$LINENO" 5; }
3855 rm -f conftest conftest
$ac_cv_exeext
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3857 $as_echo "$ac_cv_exeext" >&6; }
3859 rm -f conftest.
$ac_ext
3860 EXEEXT
=$ac_cv_exeext
3862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3868 FILE *f = fopen ("conftest.out", "w");
3869 return ferror (f) || fclose (f) != 0;
3875 ac_clean_files
="$ac_clean_files conftest.out"
3876 # Check that the compiler produces executables we can run. If not, either
3877 # the compiler is broken, or we cross compile.
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3879 $as_echo_n "checking whether we are cross compiling... " >&6; }
3880 if test "$cross_compiling" != yes; then
3881 { { ac_try
="$ac_link"
3883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3887 $as_echo "$ac_try_echo"; } >&5
3888 (eval "$ac_link") 2>&5
3890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891 test $ac_status = 0; }
3892 if { ac_try='./conftest$ac_cv_exeext'
3893 { { case "(($ac_try" in
3894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3895 *) ac_try_echo
=$ac_try;;
3897 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3898 $as_echo "$ac_try_echo"; } >&5
3899 (eval "$ac_try") 2>&5
3901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3902 test $ac_status = 0; }; }; then
3905 if test "$cross_compiling" = maybe
; then
3908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910 as_fn_error $?
"cannot run C compiled programs.
3911 If you meant to cross compile, use \`--host'.
3912 See \`config.log' for more details" "$LINENO" 5; }
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3917 $as_echo "$cross_compiling" >&6; }
3919 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3920 ac_clean_files
=$ac_clean_files_save
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3922 $as_echo_n "checking for suffix of object files... " >&6; }
3923 if ${ac_cv_objext+:} false
; then :
3924 $as_echo_n "(cached) " >&6
3926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3937 rm -f conftest.o conftest.obj
3938 if { { ac_try
="$ac_compile"
3940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944 $as_echo "$ac_try_echo"; } >&5
3945 (eval "$ac_compile") 2>&5
3947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948 test $ac_status = 0; }; then :
3949 for ac_file in conftest.o conftest.obj conftest.*; do
3950 test -f "$ac_file" || continue;
3952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3953 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3958 $as_echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3963 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3964 See \
`config.log' for more details" "$LINENO" 5; }
3966 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3969 $as_echo "$ac_cv_objext" >&6; }
3970 OBJEXT=$ac_cv_objext
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3973 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3974 if ${ac_cv_c_compiler_gnu+:} false; then :
3975 $as_echo_n "(cached) " >&6
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3991 if ac_fn_c_try_compile "$LINENO"; then :
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4001 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4002 if test $ac_compiler_gnu = yes; then
4007 ac_test_CFLAGS=${CFLAGS+set}
4008 ac_save_CFLAGS=$CFLAGS
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4010 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4011 if ${ac_cv_prog_cc_g+:} false; then :
4012 $as_echo_n "(cached) " >&6
4014 ac_save_c_werror_flag=$ac_c_werror_flag
4015 ac_c_werror_flag=yes
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4029 if ac_fn_c_try_compile "$LINENO"; then :
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4044 if ac_fn_c_try_compile "$LINENO"; then :
4047 ac_c_werror_flag=$ac_save_c_werror_flag
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4060 if ac_fn_c_try_compile "$LINENO"; then :
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068 ac_c_werror_flag=$ac_save_c_werror_flag
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4071 $as_echo "$ac_cv_prog_cc_g" >&6; }
4072 if test "$ac_test_CFLAGS" = set; then
4073 CFLAGS=$ac_save_CFLAGS
4074 elif test $ac_cv_prog_cc_g = yes; then
4075 if test "$GCC" = yes; then
4081 if test "$GCC" = yes; then
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4088 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4089 if ${ac_cv_prog_cc_c89+:} false; then :
4090 $as_echo_n "(cached) " >&6
4092 ac_cv_prog_cc_c89=no
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4099 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4100 struct buf { int x; };
4101 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4102 static char *e (p, i)
4108 static char *f (char * (*g) (char **, int), char **p, ...)
4113 s = g (p, va_arg (v,int));
4118 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4119 function prototypes and stuff, but not '\xHH' hex character constants.
4120 These don't provoke an error unfortunately, instead are silently treated
4121 as 'x'. The following induces an error, until -std is added to get
4122 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4123 array size at least. It's necessary to write '\x00'==0 to get something
4124 that's true only with -std. */
4125 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4127 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4128 inside strings and character constants. */
4130 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4132 int test (int i, double x);
4133 struct s1 {int (*f) (int a);};
4134 struct s2 {int (*f) (double a);};
4135 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4141 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4146 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4147 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4149 CC="$ac_save_CC $ac_arg"
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151 ac_cv_prog_cc_c89=$ac_arg
4153 rm -f core conftest.err conftest.$ac_objext
4154 test "x$ac_cv_prog_cc_c89" != "xno" && break
4156 rm -f conftest.$ac_ext
4161 case "x$ac_cv_prog_cc_c89" in
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4164 $as_echo "none needed" >&6; } ;;
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4167 $as_echo "unsupported" >&6; } ;;
4169 CC="$CC $ac_cv_prog_cc_c89"
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4171 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4173 if test "x$ac_cv_prog_cc_c89" != xno; then :
4178 ac_cpp='$CPP $CPPFLAGS'
4179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
4187 $as_echo_n "checking for strerror in -lcposix... " >&6; }
4188 if ${ac_cv_lib_cposix_strerror+:} false; then :
4189 $as_echo_n "(cached) " >&6
4191 ac_check_lib_save_LIBS=$LIBS
4192 LIBS="-lcposix $LIBS"
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4196 /* Override any GCC internal prototype to avoid an error.
4197 Use char because int might match the return type of a GCC
4198 builtin and then its argument prototype would still apply. */
4211 if ac_fn_c_try_link "$LINENO"; then :
4212 ac_cv_lib_cposix_strerror=yes
4214 ac_cv_lib_cposix_strerror=no
4216 rm -f core conftest.err conftest.$ac_objext \
4217 conftest$ac_exeext conftest.$ac_ext
4218 LIBS=$ac_check_lib_save_LIBS
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
4221 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
4222 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
4223 LIBS="$LIBS -lcposix"
4229 ac_cpp='$CPP $CPPFLAGS'
4230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4234 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4235 # On Suns, sometimes $CPP names a directory.
4236 if test -n "$CPP" && test -d "$CPP"; then
4239 if test -z "$CPP"; then
4240 if ${ac_cv_prog_CPP+:} false; then :
4241 $as_echo_n "(cached) " >&6
4243 # Double quotes because CPP needs to be expanded
4244 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4247 for ac_c_preproc_warn_flag in '' yes
4249 # Use a header file that comes with gcc, so configuring glibc
4250 # with a fresh cross-compiler works.
4251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4252 # <limits.h> exists even on freestanding compilers.
4253 # On the NeXT, cc -E runs the code through the compiler's parser,
4254 # not just through cpp. "Syntax error" is here to catch this case.
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4258 # include <limits.h>
4260 # include <assert.h>
4264 if ac_fn_c_try_cpp "$LINENO"; then :
4267 # Broken: fails on valid input.
4270 rm -f conftest.err conftest.i conftest.$ac_ext
4272 # OK, works on sane cases. Now check whether nonexistent headers
4273 # can be detected and how.
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4276 #include <ac_nonexistent.h>
4278 if ac_fn_c_try_cpp "$LINENO"; then :
4279 # Broken: success on invalid input.
4282 # Passes both tests.
4286 rm -f conftest.err conftest.i conftest.$ac_ext
4289 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4290 rm -f conftest.i conftest.err conftest.
$ac_ext
4291 if $ac_preproc_ok; then :
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4304 $as_echo "$CPP" >&6; }
4306 for ac_c_preproc_warn_flag
in '' yes
4308 # Use a header file that comes with gcc, so configuring glibc
4309 # with a fresh cross-compiler works.
4310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4311 # <limits.h> exists even on freestanding compilers.
4312 # On the NeXT, cc -E runs the code through the compiler's parser,
4313 # not just through cpp. "Syntax error" is here to catch this case.
4314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4317 # include <limits.h>
4319 # include <assert.h>
4323 if ac_fn_c_try_cpp
"$LINENO"; then :
4326 # Broken: fails on valid input.
4329 rm -f conftest.err conftest.i conftest.
$ac_ext
4331 # OK, works on sane cases. Now check whether nonexistent headers
4332 # can be detected and how.
4333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4335 #include <ac_nonexistent.h>
4337 if ac_fn_c_try_cpp
"$LINENO"; then :
4338 # Broken: success on invalid input.
4341 # Passes both tests.
4345 rm -f conftest.err conftest.i conftest.
$ac_ext
4348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4349 rm -f conftest.i conftest.err conftest.
$ac_ext
4350 if $ac_preproc_ok; then :
4353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4355 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4356 See \`config.log' for more details" "$LINENO" 5; }
4360 ac_cpp
='$CPP $CPPFLAGS'
4361 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4362 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4363 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4367 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4368 if ${ac_cv_path_GREP+:} false
; then :
4369 $as_echo_n "(cached) " >&6
4371 if test -z "$GREP"; then
4372 ac_path_GREP_found
=false
4373 # Loop through the user's path and test for each of PROGNAME-LIST
4374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4375 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4378 test -z "$as_dir" && as_dir
=.
4379 for ac_prog
in grep ggrep
; do
4380 for ac_exec_ext
in '' $ac_executable_extensions; do
4381 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4382 as_fn_executable_p
"$ac_path_GREP" ||
continue
4383 # Check for GNU ac_path_GREP and select it if it is found.
4384 # Check for GNU $ac_path_GREP
4385 case `"$ac_path_GREP" --version 2>&1` in
4387 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4390 $as_echo_n 0123456789 >"conftest.in"
4393 cat "conftest.in" "conftest.in" >"conftest.tmp"
4394 mv "conftest.tmp" "conftest.in"
4395 cp "conftest.in" "conftest.nl"
4396 $as_echo 'GREP' >> "conftest.nl"
4397 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4398 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4399 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4400 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4401 # Best one so far, save it but keep looking for a better one
4402 ac_cv_path_GREP
="$ac_path_GREP"
4403 ac_path_GREP_max
=$ac_count
4405 # 10*(2^10) chars as input seems more than enough
4406 test $ac_count -gt 10 && break
4408 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4411 $ac_path_GREP_found && break 3
4416 if test -z "$ac_cv_path_GREP"; then
4417 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4420 ac_cv_path_GREP
=$GREP
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4425 $as_echo "$ac_cv_path_GREP" >&6; }
4426 GREP
="$ac_cv_path_GREP"
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4430 $as_echo_n "checking for egrep... " >&6; }
4431 if ${ac_cv_path_EGREP+:} false
; then :
4432 $as_echo_n "(cached) " >&6
4434 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4435 then ac_cv_path_EGREP
="$GREP -E"
4437 if test -z "$EGREP"; then
4438 ac_path_EGREP_found
=false
4439 # Loop through the user's path and test for each of PROGNAME-LIST
4440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4441 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4444 test -z "$as_dir" && as_dir
=.
4445 for ac_prog
in egrep; do
4446 for ac_exec_ext
in '' $ac_executable_extensions; do
4447 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4448 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4449 # Check for GNU ac_path_EGREP and select it if it is found.
4450 # Check for GNU $ac_path_EGREP
4451 case `"$ac_path_EGREP" --version 2>&1` in
4453 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4456 $as_echo_n 0123456789 >"conftest.in"
4459 cat "conftest.in" "conftest.in" >"conftest.tmp"
4460 mv "conftest.tmp" "conftest.in"
4461 cp "conftest.in" "conftest.nl"
4462 $as_echo 'EGREP' >> "conftest.nl"
4463 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4464 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4465 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4466 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4467 # Best one so far, save it but keep looking for a better one
4468 ac_cv_path_EGREP
="$ac_path_EGREP"
4469 ac_path_EGREP_max
=$ac_count
4471 # 10*(2^10) chars as input seems more than enough
4472 test $ac_count -gt 10 && break
4474 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4477 $ac_path_EGREP_found && break 3
4482 if test -z "$ac_cv_path_EGREP"; then
4483 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4486 ac_cv_path_EGREP
=$EGREP
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4492 $as_echo "$ac_cv_path_EGREP" >&6; }
4493 EGREP
="$ac_cv_path_EGREP"
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4497 $as_echo_n "checking for ANSI C header files... " >&6; }
4498 if ${ac_cv_header_stdc+:} false
; then :
4499 $as_echo_n "(cached) " >&6
4501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4516 if ac_fn_c_try_compile
"$LINENO"; then :
4517 ac_cv_header_stdc
=yes
4519 ac_cv_header_stdc
=no
4521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4523 if test $ac_cv_header_stdc = yes; then
4524 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4531 $EGREP "memchr" >/dev
/null
2>&1; then :
4534 ac_cv_header_stdc
=no
4540 if test $ac_cv_header_stdc = yes; then
4541 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4548 $EGREP "free" >/dev
/null
2>&1; then :
4551 ac_cv_header_stdc
=no
4557 if test $ac_cv_header_stdc = yes; then
4558 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4559 if test "$cross_compiling" = yes; then :
4562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4566 #if ((' ' & 0x0FF) == 0x020)
4567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4570 # define ISLOWER(c) \
4571 (('a' <= (c) && (c) <= 'i') \
4572 || ('j' <= (c) && (c) <= 'r') \
4573 || ('s' <= (c) && (c) <= 'z'))
4574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4582 for (i = 0; i < 256; i++)
4583 if (XOR (islower (i), ISLOWER (i))
4584 || toupper (i) != TOUPPER (i))
4589 if ac_fn_c_try_run
"$LINENO"; then :
4592 ac_cv_header_stdc
=no
4594 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4595 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4601 $as_echo "$ac_cv_header_stdc" >&6; }
4602 if test $ac_cv_header_stdc = yes; then
4604 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4608 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4609 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4610 inttypes.h stdint.h unistd.h
4612 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4613 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4615 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4616 cat >>confdefs.h
<<_ACEOF
4617 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4626 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4627 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4634 if test "$MINIX" = yes; then
4636 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4639 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4642 $as_echo "#define _MINIX 1" >>confdefs.h
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4648 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4649 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4650 $as_echo_n "(cached) " >&6
4652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4655 # define __EXTENSIONS__ 1
4656 $ac_includes_default
4665 if ac_fn_c_try_compile
"$LINENO"; then :
4666 ac_cv_safe_to_define___extensions__
=yes
4668 ac_cv_safe_to_define___extensions__
=no
4670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4673 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4674 test $ac_cv_safe_to_define___extensions__ = yes &&
4675 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4677 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4679 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4681 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4683 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4688 # Check whether --enable-largefile was given.
4689 if test "${enable_largefile+set}" = set; then :
4690 enableval
=$enable_largefile;
4693 if test "$enable_largefile" != no
; then
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4696 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4697 if ${ac_cv_sys_largefile_CC+:} false
; then :
4698 $as_echo_n "(cached) " >&6
4700 ac_cv_sys_largefile_CC
=no
4701 if test "$GCC" != yes; then
4704 # IRIX 6.2 and later do not support large files by default,
4705 # so use the C compiler's -n32 option if that helps.
4706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4708 #include <sys/types.h>
4709 /* Check that off_t can represent 2**63 - 1 correctly.
4710 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4711 since some C++ compilers masquerading as C compilers
4712 incorrectly reject 9223372036854775807. */
4713 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4714 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4715 && LARGE_OFF_T % 2147483647 == 1)
4725 if ac_fn_c_try_compile
"$LINENO"; then :
4728 rm -f core conftest.err conftest.
$ac_objext
4730 if ac_fn_c_try_compile
"$LINENO"; then :
4731 ac_cv_sys_largefile_CC
=' -n32'; break
4733 rm -f core conftest.err conftest.
$ac_objext
4737 rm -f conftest.
$ac_ext
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4741 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4742 if test "$ac_cv_sys_largefile_CC" != no
; then
4743 CC
=$CC$ac_cv_sys_largefile_CC
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4747 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4748 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4749 $as_echo_n "(cached) " >&6
4752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4754 #include <sys/types.h>
4755 /* Check that off_t can represent 2**63 - 1 correctly.
4756 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4757 since some C++ compilers masquerading as C compilers
4758 incorrectly reject 9223372036854775807. */
4759 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4760 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4761 && LARGE_OFF_T % 2147483647 == 1)
4771 if ac_fn_c_try_compile
"$LINENO"; then :
4772 ac_cv_sys_file_offset_bits
=no
; break
4774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4777 #define _FILE_OFFSET_BITS 64
4778 #include <sys/types.h>
4779 /* Check that off_t can represent 2**63 - 1 correctly.
4780 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4781 since some C++ compilers masquerading as C compilers
4782 incorrectly reject 9223372036854775807. */
4783 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4784 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4785 && LARGE_OFF_T % 2147483647 == 1)
4795 if ac_fn_c_try_compile
"$LINENO"; then :
4796 ac_cv_sys_file_offset_bits
=64; break
4798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4799 ac_cv_sys_file_offset_bits
=unknown
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4804 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4805 case $ac_cv_sys_file_offset_bits in #(
4808 cat >>confdefs.h
<<_ACEOF
4809 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4814 if test $ac_cv_sys_file_offset_bits = unknown
; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4816 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4817 if ${ac_cv_sys_large_files+:} false
; then :
4818 $as_echo_n "(cached) " >&6
4821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h. */
4823 #include <sys/types.h>
4824 /* Check that off_t can represent 2**63 - 1 correctly.
4825 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4826 since some C++ compilers masquerading as C compilers
4827 incorrectly reject 9223372036854775807. */
4828 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4829 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4830 && LARGE_OFF_T % 2147483647 == 1)
4840 if ac_fn_c_try_compile
"$LINENO"; then :
4841 ac_cv_sys_large_files
=no
; break
4843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4846 #define _LARGE_FILES 1
4847 #include <sys/types.h>
4848 /* Check that off_t can represent 2**63 - 1 correctly.
4849 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4850 since some C++ compilers masquerading as C compilers
4851 incorrectly reject 9223372036854775807. */
4852 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4853 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4854 && LARGE_OFF_T % 2147483647 == 1)
4864 if ac_fn_c_try_compile
"$LINENO"; then :
4865 ac_cv_sys_large_files
=1; break
4867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4868 ac_cv_sys_large_files
=unknown
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4873 $as_echo "$ac_cv_sys_large_files" >&6; }
4874 case $ac_cv_sys_large_files in #(
4877 cat >>confdefs.h
<<_ACEOF
4878 #define _LARGE_FILES $ac_cv_sys_large_files
4891 SIGNAMES_H
=lsignames.h
4896 if test "x$cross_compiling" = "xyes"; then
4899 cross_cache
=${srcdir}/cross-build
/cygwin32.cache
4902 cross_cache
=${srcdir}/cross-build
/cygwin32.cache
4905 cross_cache
=${srcdir}/cross-build
/x86-beos.cache
4907 *) echo "configure: cross-compiling for $host is not supported" >&2
4910 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
4911 echo "loading cross-build cache file ${cross_cache}"
4915 SIGNAMES_O
='signames.o'
4916 CROSS_COMPILE
='-DCROSS_COMPILING'
4923 if test -z "$CFLAGS"; then
4924 AUTO_CFLAGS
="-g ${GCC+-O2}"
4925 AUTO_LDFLAGS
="-g ${GCC+-O2}"
4927 AUTO_CFLAGS
= AUTO_LDFLAGS
=
4930 CFLAGS
=${CFLAGS-"$AUTO_CFLAGS"}
4931 # LDFLAGS=${LDFLAGS="$AUTO_LDFLAGS"} # XXX
4933 if test "$opt_profiling" = "yes"; then
4937 *) opt_static_link
=yes ;;
4939 DEBUG
= MALLOC_DEBUG
=
4945 if test "$opt_static_link" = yes; then
4948 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
4949 if test -n "$GCC" ||
test "$ac_cv_c_compiler_gnu" = "yes"; then
4953 *) LDFLAGS
="$LDFLAGS -static" ;; # XXX experimental
4958 # set the appropriate make variables for building the "build tools"
4959 # modify defaults based on whether or not we are cross compiling, since the
4960 # options for the target host may not be appropriate for the build host
4961 if test "X$cross_compiling" = "Xno"; then
4962 CC_FOR_BUILD
=${CC_FOR_BUILD-'$(CC)'}
4963 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"} # XXX - should it be '$(CPPFLAGS)'
4964 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
4965 # CFLAGS set above to default value if not passed in environment
4966 CFLAGS_FOR_BUILD
=${CFLAGS-'$(CFLAGS)'}
4967 LIBS_FOR_BUILD
=${LIBS_FOR_BUILD-'$(LIBS)'}
4969 CC_FOR_BUILD
=${CC_FOR_BUILD-"gcc"}
4970 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-""}
4971 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-""}
4972 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD="-g"}
4973 LIBS_FOR_BUILD
=${LIBS_FOR_BUILD-""}
4987 if test $ac_cv_c_compiler_gnu = yes; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4989 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4990 if ${ac_cv_prog_gcc_traditional+:} false
; then :
4991 $as_echo_n "(cached) " >&6
4993 ac_pattern
="Autoconf.*'x'"
4994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5000 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
5001 ac_cv_prog_gcc_traditional
=yes
5003 ac_cv_prog_gcc_traditional
=no
5008 if test $ac_cv_prog_gcc_traditional = no
; then
5009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5015 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
5016 ac_cv_prog_gcc_traditional
=yes
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5023 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5024 if test $ac_cv_prog_gcc_traditional = yes; then
5025 CC
="$CC -traditional"
5031 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
5033 # If the user specified --with-installed-readline=PREFIX and PREFIX
5034 # is not `yes', set ac_cv_rl_prefix to PREFIX
5035 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix
=$opt_with_installed_readline
5038 if test "X$bash_cv_termcap_lib" = "X"; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5042 $as_echo_n "checking which library has the termcap functions... " >&6; }
5045 if ${bash_cv_termcap_lib+:} false
; then :
5046 $as_echo_n "(cached) " >&6
5048 ac_fn_c_check_func
"$LINENO" "tgetent" "ac_cv_func_tgetent"
5049 if test "x$ac_cv_func_tgetent" = xyes
; then :
5050 bash_cv_termcap_lib
=libc
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
5053 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5054 if ${ac_cv_lib_termcap_tgetent+:} false
; then :
5055 $as_echo_n "(cached) " >&6
5057 ac_check_lib_save_LIBS
=$LIBS
5058 LIBS
="-ltermcap $LIBS"
5059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5062 /* Override any GCC internal prototype to avoid an error.
5063 Use char because int might match the return type of a GCC
5064 builtin and then its argument prototype would still apply. */
5077 if ac_fn_c_try_link
"$LINENO"; then :
5078 ac_cv_lib_termcap_tgetent
=yes
5080 ac_cv_lib_termcap_tgetent
=no
5082 rm -f core conftest.err conftest.
$ac_objext \
5083 conftest
$ac_exeext conftest.
$ac_ext
5084 LIBS
=$ac_check_lib_save_LIBS
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
5087 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5088 if test "x$ac_cv_lib_termcap_tgetent" = xyes
; then :
5089 bash_cv_termcap_lib
=libtermcap
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
5092 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5093 if ${ac_cv_lib_tinfo_tgetent+:} false
; then :
5094 $as_echo_n "(cached) " >&6
5096 ac_check_lib_save_LIBS
=$LIBS
5097 LIBS
="-ltinfo $LIBS"
5098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5099 /* end confdefs.h. */
5101 /* Override any GCC internal prototype to avoid an error.
5102 Use char because int might match the return type of a GCC
5103 builtin and then its argument prototype would still apply. */
5116 if ac_fn_c_try_link
"$LINENO"; then :
5117 ac_cv_lib_tinfo_tgetent
=yes
5119 ac_cv_lib_tinfo_tgetent
=no
5121 rm -f core conftest.err conftest.
$ac_objext \
5122 conftest
$ac_exeext conftest.
$ac_ext
5123 LIBS
=$ac_check_lib_save_LIBS
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
5126 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5127 if test "x$ac_cv_lib_tinfo_tgetent" = xyes
; then :
5128 bash_cv_termcap_lib
=libtinfo
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
5131 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
5132 if ${ac_cv_lib_curses_tgetent+:} false
; then :
5133 $as_echo_n "(cached) " >&6
5135 ac_check_lib_save_LIBS
=$LIBS
5136 LIBS
="-lcurses $LIBS"
5137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5140 /* Override any GCC internal prototype to avoid an error.
5141 Use char because int might match the return type of a GCC
5142 builtin and then its argument prototype would still apply. */
5155 if ac_fn_c_try_link
"$LINENO"; then :
5156 ac_cv_lib_curses_tgetent
=yes
5158 ac_cv_lib_curses_tgetent
=no
5160 rm -f core conftest.err conftest.
$ac_objext \
5161 conftest
$ac_exeext conftest.
$ac_ext
5162 LIBS
=$ac_check_lib_save_LIBS
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
5165 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
5166 if test "x$ac_cv_lib_curses_tgetent" = xyes
; then :
5167 bash_cv_termcap_lib
=libcurses
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
5170 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
5171 if ${ac_cv_lib_ncurses_tgetent+:} false
; then :
5172 $as_echo_n "(cached) " >&6
5174 ac_check_lib_save_LIBS
=$LIBS
5175 LIBS
="-lncurses $LIBS"
5176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5179 /* Override any GCC internal prototype to avoid an error.
5180 Use char because int might match the return type of a GCC
5181 builtin and then its argument prototype would still apply. */
5194 if ac_fn_c_try_link
"$LINENO"; then :
5195 ac_cv_lib_ncurses_tgetent
=yes
5197 ac_cv_lib_ncurses_tgetent
=no
5199 rm -f core conftest.err conftest.
$ac_objext \
5200 conftest
$ac_exeext conftest.
$ac_ext
5201 LIBS
=$ac_check_lib_save_LIBS
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
5204 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
5205 if test "x$ac_cv_lib_ncurses_tgetent" = xyes
; then :
5206 bash_cv_termcap_lib
=libncurses
5208 bash_cv_termcap_lib
=gnutermcap
5221 if test "X$_bash_needmsg" = "Xyes"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5223 $as_echo_n "checking which library has the termcap functions... " >&6; }
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
5226 $as_echo "using $bash_cv_termcap_lib" >&6; }
5227 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
5228 LDFLAGS
="$LDFLAGS -L./lib/termcap"
5229 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
5230 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
5231 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
5232 TERMCAP_LIB
=-ltermcap
5234 elif test $bash_cv_termcap_lib = libtinfo
; then
5237 elif test $bash_cv_termcap_lib = libncurses
; then
5238 TERMCAP_LIB
=-lncurses
5240 elif test $bash_cv_termcap_lib = libc
; then
5244 TERMCAP_LIB
=-lcurses
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of installed readline library" >&5
5252 $as_echo_n "checking version of installed readline library... " >&6; }
5254 # What a pain in the ass this is.
5256 # save cpp and ld options
5257 _save_CFLAGS
="$CFLAGS"
5258 _save_LDFLAGS
="$LDFLAGS"
5261 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5262 # allows the caller to do something like $_rl_prefix=$withval if the user
5263 # specifies --with-installed-readline=PREFIX as an argument to configure
5265 if test -z "$ac_cv_rl_prefix"; then
5266 test "x$prefix" = xNONE
&& ac_cv_rl_prefix
=$ac_default_prefix || ac_cv_rl_prefix
=${prefix}
5269 eval ac_cv_rl_includedir
=${ac_cv_rl_prefix}/include
5270 eval ac_cv_rl_libdir
=${ac_cv_rl_prefix}/lib
5272 LIBS
="$LIBS -lreadline ${TERMCAP_LIB}"
5273 CFLAGS
="$CFLAGS -I${ac_cv_rl_includedir}"
5274 LDFLAGS
="$LDFLAGS -L${ac_cv_rl_libdir}"
5276 if ${ac_cv_rl_version+:} false
; then :
5277 $as_echo_n "(cached) " >&6
5279 if test "$cross_compiling" = yes; then :
5280 ac_cv_rl_version
='4.2'
5282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5286 #include <readline/readline.h>
5288 extern int rl_gnu_readline_p;
5293 fp = fopen("conftest.rlv", "w");
5296 if (rl_gnu_readline_p != 1)
5297 fprintf(fp, "0.0\n");
5299 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
5305 if ac_fn_c_try_run
"$LINENO"; then :
5306 ac_cv_rl_version
=`cat conftest.rlv`
5308 ac_cv_rl_version
='0.0'
5310 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5311 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5317 CFLAGS
="$_save_CFLAGS"
5318 LDFLAGS
="$_save_LDFLAGS"
5325 case "$ac_cv_rl_version" in
5326 2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*)
5327 RL_MAJOR
=`echo $ac_cv_rl_version | sed 's:\..*$::'`
5328 RL_MINOR
=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
5334 [0-9][0-9]) _RL_MAJOR
=$RL_MAJOR ;;
5335 [0-9]) _RL_MAJOR
=0$RL_MAJOR ;;
5341 [0-9][0-9]) _RL_MINOR
=$RL_MINOR ;;
5342 [0-9]) _RL_MINOR
=0$RL_MINOR ;;
5346 RL_VERSION
="0x${_RL_MAJOR}${_RL_MINOR}"
5348 # Readline versions greater than 4.2 have these defines in readline.h
5350 if test $ac_cv_rl_version = '0.0' ; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not test version of installed readline library." >&5
5352 $as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
5353 elif test $RL_MAJOR -gt 4 ||
{ test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
5354 # set these for use by the caller
5355 RL_PREFIX
=$ac_cv_rl_prefix
5356 RL_LIBDIR
=$ac_cv_rl_libdir
5357 RL_INCLUDEDIR
=$ac_cv_rl_includedir
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5
5359 $as_echo "$ac_cv_rl_version" >&6; }
5363 cat >>confdefs.h
<<_ACEOF
5364 #define RL_READLINE_VERSION $RL_VERSION
5368 cat >>confdefs.h
<<_ACEOF
5369 #define RL_VERSION_MAJOR $RL_MAJOR
5373 cat >>confdefs.h
<<_ACEOF
5374 #define RL_VERSION_MINOR $RL_MINOR
5382 # set these for use by the caller
5383 RL_PREFIX
=$ac_cv_rl_prefix
5384 RL_LIBDIR
=$ac_cv_rl_libdir
5385 RL_INCLUDEDIR
=$ac_cv_rl_includedir
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5
5388 $as_echo "$ac_cv_rl_version" >&6; }
5393 case "$ac_cv_rl_version" in
5395 *) opt_with_installed_readline
=no
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: installed readline library is too old to be linked with bash" >&5
5397 $as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using private bash version" >&5
5399 $as_echo "$as_me: WARNING: using private bash version" >&2;}
5405 if test $opt_readline = yes; then
5406 $as_echo "#define READLINE 1" >>confdefs.h
5408 if test "$opt_with_installed_readline" != "no" ; then
5409 case "$opt_with_installed_readline" in
5411 *) case "$RL_INCLUDEDIR" in
5413 *) RL_INCLUDE
='-I${RL_INCLUDEDIR}' ;;
5418 READLINE_LIB
=-lreadline
5419 # section for OS versions that don't allow unresolved symbols
5420 # to be compiled into dynamic libraries.
5422 cygwin
*) TILDE_LIB
= ;;
5425 RL_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
5426 READLINE_DEP
='$(READLINE_LIBRARY)'
5427 # section for OS versions that ship an older/broken version of
5428 # readline as a standard dynamic library and don't allow a
5429 # static version specified as -llibname to override the
5431 case "${host_os}" in
5432 darwin
[89]*|darwin10
*) READLINE_LIB
='${READLINE_LIBRARY}' ;;
5433 *) READLINE_LIB
=-lreadline ;;
5437 RL_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
5438 READLINE_LIB
= READLINE_DEP
=
5440 if test $opt_history = yes ||
test $opt_bang_history = yes; then
5441 if test $opt_history = yes; then
5442 $as_echo "#define HISTORY 1" >>confdefs.h
5445 if test $opt_bang_history = yes; then
5446 $as_echo "#define BANG_HISTORY 1" >>confdefs.h
5449 if test "$opt_with_installed_readline" != "no"; then
5450 HIST_LIBDIR
=$RL_LIBDIR
5452 HISTORY_LIB
=-lhistory
5453 case "$opt_with_installed_readline" in
5455 *) case "$RL_INCLUDEDIR" in
5457 *) RL_INCLUDE
='-I${RL_INCLUDEDIR}' ;;
5462 HIST_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
5463 HISTORY_DEP
='$(HISTORY_LIBRARY)'
5464 # section for OS versions that ship an older version of
5465 # readline as a standard dynamic library and don't allow a
5466 # static version specified as -llibname to override the
5468 case "${host_os}" in
5469 darwin
[89]*|darwin10
*) HISTORY_LIB
='${HISTORY_LIBRARY}' ;;
5470 *) HISTORY_LIB
=-lhistory ;;
5474 HIST_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
5475 HISTORY_LIB
= HISTORY_DEP
=
5488 # Find a good install program. We prefer a C program (faster),
5489 # so one script is as good as another. But avoid the broken or
5490 # incompatible versions:
5491 # SysV /etc/install, /usr/sbin/install
5492 # SunOS /usr/etc/install
5493 # IRIX /sbin/install
5495 # AmigaOS /C/install, which installs bootblocks on floppy discs
5496 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5497 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5498 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5499 # OS/2's system install, which has a completely different semantic
5500 # ./install, which can be erroneously created by make from ./install.sh.
5501 # Reject install programs that cannot install multiple files.
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5503 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5504 if test -z "$INSTALL"; then
5505 if ${ac_cv_path_install+:} false
; then :
5506 $as_echo_n "(cached) " >&6
5508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5512 test -z "$as_dir" && as_dir
=.
5513 # Account for people who put trailing slashes in PATH elements.
5514 case $as_dir/ in #((
5515 .
/ | .
// |
/[cC
]/* | \
5516 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5517 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5520 # OSF1 and SCO ODT 3.0 have their own names for install.
5521 # Don't use installbsd from OSF since it installs stuff as root
5523 for ac_prog
in ginstall scoinst
install; do
5524 for ac_exec_ext
in '' $ac_executable_extensions; do
5525 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
5526 if test $ac_prog = install &&
5527 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5528 # AIX install. It has an incompatible calling convention.
5530 elif test $ac_prog = install &&
5531 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5532 # program-specific install script used by HP pwplus--don't use.
5535 rm -rf conftest.one conftest.two conftest.dir
5536 echo one
> conftest.one
5537 echo two
> conftest.two
5539 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5540 test -s conftest.one
&& test -s conftest.two
&&
5541 test -s conftest.dir
/conftest.one
&&
5542 test -s conftest.dir
/conftest.two
5544 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5557 rm -rf conftest.one conftest.two conftest.dir
5560 if test "${ac_cv_path_install+set}" = set; then
5561 INSTALL
=$ac_cv_path_install
5563 # As a last resort, use the slow shell script. Don't cache a
5564 # value for INSTALL within a source directory, because that will
5565 # break other packages using the cache if that directory is
5566 # removed, or if the value is a relative name.
5567 INSTALL
=$ac_install_sh
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5571 $as_echo "$INSTALL" >&6; }
5573 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5574 # It thinks the first close brace ends the variable substitution.
5575 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5577 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5579 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5581 if test -n "$ac_tool_prefix"; then
5582 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5583 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if ${ac_cv_prog_AR+:} false
; then :
5587 $as_echo_n "(cached) " >&6
5589 if test -n "$AR"; then
5590 ac_cv_prog_AR
="$AR" # Let the user override the test.
5592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5596 test -z "$as_dir" && as_dir
=.
5597 for ac_exec_ext
in '' $ac_executable_extensions; do
5598 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5599 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 if test -n "$AR"; then
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5612 $as_echo "$AR" >&6; }
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5620 if test -z "$ac_cv_prog_AR"; then
5622 # Extract the first word of "ar", so it can be a program name with args.
5623 set dummy
ar; ac_word
=$2
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5627 $as_echo_n "(cached) " >&6
5629 if test -n "$ac_ct_AR"; then
5630 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5636 test -z "$as_dir" && as_dir
=.
5637 for ac_exec_ext
in '' $ac_executable_extensions; do
5638 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5639 ac_cv_prog_ac_ct_AR
="ar"
5640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5650 if test -n "$ac_ct_AR"; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5652 $as_echo "$ac_ct_AR" >&6; }
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655 $as_echo "no" >&6; }
5658 if test "x$ac_ct_AR" = x
; then
5661 case $cross_compiling:$ac_tool_warned in
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5665 ac_tool_warned
=yes ;;
5673 test -n "$ARFLAGS" || ARFLAGS
="cr"
5674 if test -n "$ac_tool_prefix"; then
5675 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5676 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 $as_echo_n "checking for $ac_word... " >&6; }
5679 if ${ac_cv_prog_RANLIB+:} false
; then :
5680 $as_echo_n "(cached) " >&6
5682 if test -n "$RANLIB"; then
5683 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5689 test -z "$as_dir" && as_dir
=.
5690 for ac_exec_ext
in '' $ac_executable_extensions; do
5691 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5692 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 RANLIB
=$ac_cv_prog_RANLIB
5703 if test -n "$RANLIB"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5705 $as_echo "$RANLIB" >&6; }
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708 $as_echo "no" >&6; }
5713 if test -z "$ac_cv_prog_RANLIB"; then
5714 ac_ct_RANLIB
=$RANLIB
5715 # Extract the first word of "ranlib", so it can be a program name with args.
5716 set dummy ranlib
; ac_word
=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5720 $as_echo_n "(cached) " >&6
5722 if test -n "$ac_ct_RANLIB"; then
5723 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5729 test -z "$as_dir" && as_dir
=.
5730 for ac_exec_ext
in '' $ac_executable_extensions; do
5731 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5732 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5743 if test -n "$ac_ct_RANLIB"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5745 $as_echo "$ac_ct_RANLIB" >&6; }
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5751 if test "x$ac_ct_RANLIB" = x
; then
5754 case $cross_compiling:$ac_tool_warned in
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5758 ac_tool_warned
=yes ;;
5760 RANLIB
=$ac_ct_RANLIB
5763 RANLIB
="$ac_cv_prog_RANLIB"
5766 for ac_prog
in 'bison -y' byacc
5768 # Extract the first word of "$ac_prog", so it can be a program name with args.
5769 set dummy
$ac_prog; ac_word
=$2
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771 $as_echo_n "checking for $ac_word... " >&6; }
5772 if ${ac_cv_prog_YACC+:} false
; then :
5773 $as_echo_n "(cached) " >&6
5775 if test -n "$YACC"; then
5776 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5778 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5782 test -z "$as_dir" && as_dir
=.
5783 for ac_exec_ext
in '' $ac_executable_extensions; do
5784 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5785 ac_cv_prog_YACC
="$ac_prog"
5786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 YACC
=$ac_cv_prog_YACC
5796 if test -n "$YACC"; then
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5798 $as_echo "$YACC" >&6; }
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 $as_echo "no" >&6; }
5805 test -n "$YACC" && break
5807 test -n "$YACC" || YACC
="yacc"
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5810 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5812 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5813 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
5814 $as_echo_n "(cached) " >&6
5816 cat >conftest.
make <<\_ACEOF
5819 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5821 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5822 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5824 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5826 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5830 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5832 $as_echo "yes" >&6; }
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5837 SET_MAKE
="MAKE=${MAKE-make}"
5841 case "$ac_cv_prog_YACC" in
5843 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bison not available; needed to process parse.y" >&5
5844 $as_echo "$as_me: WARNING: bison not available; needed to process parse.y" >&2;} ;;
5848 opennt
*|interix
*) MAKE_SHELL
="$INTERIX_ROOT/bin/sh" ;;
5849 *) MAKE_SHELL
=/bin
/sh
;;
5853 if test x
$SIZE = x
; then
5854 if test x
$ac_tool_prefix = x
; then
5857 SIZE
=${ac_tool_prefix}size
5858 save_IFS
=$IFS ; IFS
=:
5860 for dir
in $PATH; do
5861 if test -x $dir/$SIZE ; then
5866 if test $size_found -eq 0; then
5874 # Checks for stat-related time functions.
5876 # Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2012 Free Software
5879 # This file is free software; the Free Software Foundation
5880 # gives unlimited permission to copy and/or distribute it,
5881 # with or without modifications, as long as this notice is preserved.
5884 # st_atim.tv_nsec - Linux, Solaris, Cygwin
5885 # st_atimespec.tv_nsec - FreeBSD, NetBSD, if ! defined _POSIX_SOURCE
5886 # st_atimensec - FreeBSD, NetBSD, if defined _POSIX_SOURCE
5887 # st_atim.st__tim.tv_nsec - UnixWare (at least 2.1.2 through 7.1)
5889 # st_birthtimespec - FreeBSD, NetBSD (hidden on OpenBSD 3.9, anyway)
5890 # st_birthtim - Cygwin 1.7.0+
5894 # Configure checks for struct timespec
5896 # Copyright (C) 2000-2001, 2003-2007, 2009-2011, 2012 Free Software Foundation, Inc.
5898 # This file is free software; the Free Software Foundation
5899 # gives unlimited permission to copy and/or distribute it,
5900 # with or without modifications, as long as this notice is preserved.
5902 # Original written by Paul Eggert and Jim Meyering.
5903 # Modified by Chet Ramey for bash
5909 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5913 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5914 if ${ac_cv_c_const+:} false
; then :
5915 $as_echo_n "(cached) " >&6
5917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5925 /* Ultrix mips cc rejects this sort of thing. */
5926 typedef int charset[2];
5927 const charset cs = { 0, 0 };
5928 /* SunOS 4.1.1 cc rejects this. */
5929 char const *const *pcpcc;
5931 /* NEC SVR4.0.2 mips cc rejects this. */
5932 struct point {int x, y;};
5933 static struct point const zero = {0,0};
5934 /* AIX XL C 1.02.0.0 rejects this.
5935 It does not let you subtract one const X* pointer from another in
5936 an arm of an if-expression whose if-part is not a constant
5938 const char *g = "string";
5939 pcpcc = &g + (g ? g-g : 0);
5940 /* HPUX 7.0 cc rejects these. */
5942 ppc = (char**) pcpcc;
5943 pcpcc = (char const *const *) ppc;
5944 { /* SCO 3.2v4 cc rejects this sort of thing. */
5947 char const *s = 0 ? (char *) 0 : (char const *) 0;
5952 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5954 const int *foo = &x[0];
5957 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5958 typedef const int *iptr;
5962 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5963 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5964 struct s { int j; const int *ap[3]; } bx;
5965 struct s *b = &bx; b->j = 5;
5967 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5971 return !cs[0] && !zero.x;
5978 if ac_fn_c_try_compile
"$LINENO"; then :
5983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5986 $as_echo "$ac_cv_c_const" >&6; }
5987 if test $ac_cv_c_const = no
; then
5989 $as_echo "#define const /**/" >>confdefs.h
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5994 $as_echo_n "checking for inline... " >&6; }
5995 if ${ac_cv_c_inline+:} false
; then :
5996 $as_echo_n "(cached) " >&6
5999 for ac_kw
in inline __inline__ __inline
; do
6000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6004 static $ac_kw foo_t static_foo () {return 0; }
6005 $ac_kw foo_t foo () {return 0; }
6009 if ac_fn_c_try_compile
"$LINENO"; then :
6010 ac_cv_c_inline
=$ac_kw
6012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6013 test "$ac_cv_c_inline" != no
&& break
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6018 $as_echo "$ac_cv_c_inline" >&6; }
6020 case $ac_cv_c_inline in
6023 case $ac_cv_c_inline in
6025 *) ac_val
=$ac_cv_c_inline;;
6027 cat >>confdefs.h
<<_ACEOF
6029 #define inline $ac_val
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6036 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6037 if ${ac_cv_c_bigendian+:} false
; then :
6038 $as_echo_n "(cached) " >&6
6040 ac_cv_c_bigendian
=unknown
6041 # See if we're dealing with a universal compiler.
6042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6044 #ifndef __APPLE_CC__
6045 not a universal capable compiler
6050 if ac_fn_c_try_compile
"$LINENO"; then :
6052 # Check for potential -arch flags. It is not universal unless
6053 # there are at least two -arch flags with different values.
6056 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6057 if test -n "$ac_prev"; then
6059 i?
86 | x86_64 | ppc | ppc64
)
6060 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
6063 ac_cv_c_bigendian
=universal
6069 elif test "x$ac_word" = "x-arch"; then
6074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6075 if test $ac_cv_c_bigendian = unknown
; then
6076 # See if sys/param.h defines the BYTE_ORDER macro.
6077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6079 #include <sys/types.h>
6080 #include <sys/param.h>
6085 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6086 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6095 if ac_fn_c_try_compile
"$LINENO"; then :
6096 # It does; now see whether it defined to BIG_ENDIAN or not.
6097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h. */
6099 #include <sys/types.h>
6100 #include <sys/param.h>
6105 #if BYTE_ORDER != BIG_ENDIAN
6113 if ac_fn_c_try_compile
"$LINENO"; then :
6114 ac_cv_c_bigendian
=yes
6116 ac_cv_c_bigendian
=no
6118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6122 if test $ac_cv_c_bigendian = unknown
; then
6123 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6131 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6139 if ac_fn_c_try_compile
"$LINENO"; then :
6140 # It does; now see whether it defined to _BIG_ENDIAN or not.
6141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6156 if ac_fn_c_try_compile
"$LINENO"; then :
6157 ac_cv_c_bigendian
=yes
6159 ac_cv_c_bigendian
=no
6161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6165 if test $ac_cv_c_bigendian = unknown
; then
6166 # Compile a test program.
6167 if test "$cross_compiling" = yes; then :
6168 # Try to guess by grepping values from an object file.
6169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6171 short int ascii_mm[] =
6172 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6173 short int ascii_ii[] =
6174 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6175 int use_ascii (int i) {
6176 return ascii_mm[i] + ascii_ii[i];
6178 short int ebcdic_ii[] =
6179 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6180 short int ebcdic_mm[] =
6181 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6182 int use_ebcdic (int i) {
6183 return ebcdic_mm[i] + ebcdic_ii[i];
6190 return use_ascii (foo) == use_ebcdic (foo);
6195 if ac_fn_c_try_compile
"$LINENO"; then :
6196 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
6197 ac_cv_c_bigendian
=yes
6199 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
6200 if test "$ac_cv_c_bigendian" = unknown
; then
6201 ac_cv_c_bigendian
=no
6203 # finding both strings is unlikely to happen, but who knows?
6204 ac_cv_c_bigendian
=unknown
6208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h. */
6212 $ac_includes_default
6217 /* Are we little or big endian? From Harbison&Steele. */
6221 char c[sizeof (long int)];
6224 return u.c[sizeof (long int) - 1] == 1;
6230 if ac_fn_c_try_run
"$LINENO"; then :
6231 ac_cv_c_bigendian
=no
6233 ac_cv_c_bigendian
=yes
6235 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6236 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6242 $as_echo "$ac_cv_c_bigendian" >&6; }
6243 case $ac_cv_c_bigendian in #(
6245 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6251 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6255 as_fn_error $?
"unknown endianness
6256 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
6260 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
6261 if ${ac_cv_c_stringize+:} false
; then :
6262 $as_echo_n "(cached) " >&6
6264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6268 char *s = x(teststring);
6270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6271 $EGREP "#teststring" >/dev
/null
2>&1; then :
6272 ac_cv_c_stringize
=no
6274 ac_cv_c_stringize
=yes
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
6280 $as_echo "$ac_cv_c_stringize" >&6; }
6281 if test $ac_cv_c_stringize = yes; then
6283 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
6290 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
6291 if ${ac_cv_type_long_double_wider+:} false
; then :
6292 $as_echo_n "(cached) " >&6
6294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6295 /* end confdefs.h. */
6297 long double const a[] =
6299 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6300 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6305 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6306 + (x ? f (x) : 'c'));
6312 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6313 + (DBL_MANT_DIG < LDBL_MANT_DIG)
6314 - (LDBL_MAX_EXP < DBL_MAX_EXP)
6315 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6316 && (int) LDBL_EPSILON == 0
6319 return test_array [0];
6325 if ac_fn_c_try_compile
"$LINENO"; then :
6326 ac_cv_type_long_double_wider
=yes
6328 ac_cv_type_long_double_wider
=no
6330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
6333 $as_echo "$ac_cv_type_long_double_wider" >&6; }
6334 if test $ac_cv_type_long_double_wider = yes; then
6336 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
6340 ac_cv_c_long_double
=$ac_cv_type_long_double_wider
6341 if test $ac_cv_c_long_double = yes; then
6343 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6348 $as_echo_n "checking for function prototypes... " >&6; }
6349 if test "$ac_cv_prog_cc_c89" != no
; then
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6351 $as_echo "yes" >&6; }
6353 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6356 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
6364 $as_echo_n "checking whether char is unsigned... " >&6; }
6365 if ${ac_cv_c_char_unsigned+:} false
; then :
6366 $as_echo_n "(cached) " >&6
6368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6369 /* end confdefs.h. */
6370 $ac_includes_default
6374 static int test_array [1 - 2 * !(((char) -1) < 0)];
6376 return test_array [0];
6382 if ac_fn_c_try_compile
"$LINENO"; then :
6383 ac_cv_c_char_unsigned
=no
6385 ac_cv_c_char_unsigned
=yes
6387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
6390 $as_echo "$ac_cv_c_char_unsigned" >&6; }
6391 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
6392 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6397 $as_echo_n "checking for working volatile... " >&6; }
6398 if ${ac_cv_c_volatile+:} false
; then :
6399 $as_echo_n "(cached) " >&6
6401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6409 int * volatile y = (int *) 0;
6415 if ac_fn_c_try_compile
"$LINENO"; then :
6416 ac_cv_c_volatile
=yes
6420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6423 $as_echo "$ac_cv_c_volatile" >&6; }
6424 if test $ac_cv_c_volatile = no
; then
6426 $as_echo "#define volatile /**/" >>confdefs.h
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6431 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6432 if ${ac_cv_c_restrict+:} false
; then :
6433 $as_echo_n "(cached) " >&6
6436 # The order here caters to the fact that C++ does not require restrict.
6437 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
6438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h. */
6440 typedef int * int_ptr;
6441 int foo (int_ptr $ac_kw ip) {
6455 if ac_fn_c_try_compile
"$LINENO"; then :
6456 ac_cv_c_restrict
=$ac_kw
6458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6459 test "$ac_cv_c_restrict" != no
&& break
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6464 $as_echo "$ac_cv_c_restrict" >&6; }
6466 case $ac_cv_c_restrict in
6468 no
) $as_echo "#define restrict /**/" >>confdefs.h
6470 *) cat >>confdefs.h
<<_ACEOF
6471 #define restrict $ac_cv_c_restrict
6479 if test -n "$ac_aux_dir"; then
6480 case "$ac_aux_dir" in
6481 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
6482 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6485 if test -z "$MKINSTALLDIRS"; then
6486 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6492 $as_echo_n "checking whether NLS is requested... " >&6; }
6493 # Check whether --enable-nls was given.
6494 if test "${enable_nls+set}" = set; then :
6495 enableval
=$enable_nls; USE_NLS
=$enableval
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6501 $as_echo "$USE_NLS" >&6; }
6508 # Prepare PATH_SEPARATOR.
6509 # The user is always right.
6510 if test "${PATH_SEPARATOR+set}" != set; then
6511 echo "#! /bin/sh" >conf$$.sh
6512 echo "exit 0" >>conf$$.sh
6514 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6522 # Find out how to test for executable files. Don't use a zero-byte file,
6523 # as systems may use methods other than mode bits to determine executability.
6524 cat >conf$$.
file <<_ASEOF
6528 chmod +x conf$$.
file
6529 if test -x conf$$.
file >/dev
/null
2>&1; then
6530 ac_executable_p
="test -x"
6532 ac_executable_p
="test -f"
6536 # Extract the first word of "msgfmt", so it can be a program name with args.
6537 set dummy msgfmt
; ac_word
=$2
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539 $as_echo_n "checking for $ac_word... " >&6; }
6540 if ${ac_cv_path_MSGFMT+:} false
; then :
6541 $as_echo_n "(cached) " >&6
6545 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6548 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6549 for ac_dir
in $PATH; do
6551 test -z "$ac_dir" && ac_dir
=.
6552 for ac_exec_ext
in '' $ac_executable_extensions; do
6553 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6554 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
6555 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
6556 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
6563 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6567 MSGFMT
="$ac_cv_path_MSGFMT"
6568 if test "$MSGFMT" != ":"; then
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6570 $as_echo "$MSGFMT" >&6; }
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573 $as_echo "no" >&6; }
6576 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6577 set dummy gmsgfmt
; ac_word
=$2
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6579 $as_echo_n "checking for $ac_word... " >&6; }
6580 if ${ac_cv_path_GMSGFMT+:} false
; then :
6581 $as_echo_n "(cached) " >&6
6585 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6592 test -z "$as_dir" && as_dir
=.
6593 for ac_exec_ext
in '' $ac_executable_extensions; do
6594 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6595 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6603 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6607 GMSGFMT
=$ac_cv_path_GMSGFMT
6608 if test -n "$GMSGFMT"; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6610 $as_echo "$GMSGFMT" >&6; }
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6619 # Prepare PATH_SEPARATOR.
6620 # The user is always right.
6621 if test "${PATH_SEPARATOR+set}" != set; then
6622 echo "#! /bin/sh" >conf$$.sh
6623 echo "exit 0" >>conf$$.sh
6625 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6633 # Find out how to test for executable files. Don't use a zero-byte file,
6634 # as systems may use methods other than mode bits to determine executability.
6635 cat >conf$$.
file <<_ASEOF
6639 chmod +x conf$$.
file
6640 if test -x conf$$.
file >/dev
/null
2>&1; then
6641 ac_executable_p
="test -x"
6643 ac_executable_p
="test -f"
6647 # Extract the first word of "xgettext", so it can be a program name with args.
6648 set dummy xgettext
; ac_word
=$2
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650 $as_echo_n "checking for $ac_word... " >&6; }
6651 if ${ac_cv_path_XGETTEXT+:} false
; then :
6652 $as_echo_n "(cached) " >&6
6656 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6659 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6660 for ac_dir
in $PATH; do
6662 test -z "$ac_dir" && ac_dir
=.
6663 for ac_exec_ext
in '' $ac_executable_extensions; do
6664 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6665 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
6666 (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
6667 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
6674 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6678 XGETTEXT
="$ac_cv_path_XGETTEXT"
6679 if test "$XGETTEXT" != ":"; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6681 $as_echo "$XGETTEXT" >&6; }
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 $as_echo "no" >&6; }
6690 # Prepare PATH_SEPARATOR.
6691 # The user is always right.
6692 if test "${PATH_SEPARATOR+set}" != set; then
6693 echo "#! /bin/sh" >conf$$.sh
6694 echo "exit 0" >>conf$$.sh
6696 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6704 # Find out how to test for executable files. Don't use a zero-byte file,
6705 # as systems may use methods other than mode bits to determine executability.
6706 cat >conf$$.
file <<_ASEOF
6710 chmod +x conf$$.
file
6711 if test -x conf$$.
file >/dev
/null
2>&1; then
6712 ac_executable_p
="test -x"
6714 ac_executable_p
="test -f"
6718 # Extract the first word of "msgmerge", so it can be a program name with args.
6719 set dummy msgmerge
; ac_word
=$2
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721 $as_echo_n "checking for $ac_word... " >&6; }
6722 if ${ac_cv_path_MSGMERGE+:} false
; then :
6723 $as_echo_n "(cached) " >&6
6727 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
6730 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6731 for ac_dir
in $PATH; do
6733 test -z "$ac_dir" && ac_dir
=.
6734 for ac_exec_ext
in '' $ac_executable_extensions; do
6735 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6736 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
6737 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
6744 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
6748 MSGMERGE
="$ac_cv_path_MSGMERGE"
6749 if test "$MSGMERGE" != ":"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6751 $as_echo "$MSGMERGE" >&6; }
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 $as_echo "no" >&6; }
6758 if test "$GMSGFMT" != ":"; then
6759 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
6760 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
6763 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6765 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6770 if test "$XGETTEXT" != ":"; then
6771 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
6772 (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
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6776 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6782 ac_config_commands
="$ac_config_commands default-1"
6785 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6786 if test "x$ac_cv_type_off_t" = xyes
; then :
6790 cat >>confdefs.h
<<_ACEOF
6791 #define off_t long int
6796 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6797 if test "x$ac_cv_type_size_t" = xyes
; then :
6801 cat >>confdefs.h
<<_ACEOF
6802 #define size_t unsigned int
6807 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6808 # for constant arguments. Useless!
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6810 $as_echo_n "checking for working alloca.h... " >&6; }
6811 if ${ac_cv_working_alloca_h+:} false
; then :
6812 $as_echo_n "(cached) " >&6
6814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h. */
6820 char *p = (char *) alloca (2 * sizeof (int));
6826 if ac_fn_c_try_link
"$LINENO"; then :
6827 ac_cv_working_alloca_h
=yes
6829 ac_cv_working_alloca_h
=no
6831 rm -f core conftest.err conftest.
$ac_objext \
6832 conftest
$ac_exeext conftest.
$ac_ext
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6835 $as_echo "$ac_cv_working_alloca_h" >&6; }
6836 if test $ac_cv_working_alloca_h = yes; then
6838 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6843 $as_echo_n "checking for alloca... " >&6; }
6844 if ${ac_cv_func_alloca_works+:} false
; then :
6845 $as_echo_n "(cached) " >&6
6847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6850 # define alloca __builtin_alloca
6853 # include <malloc.h>
6854 # define alloca _alloca
6856 # ifdef HAVE_ALLOCA_H
6857 # include <alloca.h>
6862 # ifndef alloca /* predefined by HP cc +Olibcalls */
6863 void *alloca (size_t);
6873 char *p = (char *) alloca (1);
6879 if ac_fn_c_try_link
"$LINENO"; then :
6880 ac_cv_func_alloca_works
=yes
6882 ac_cv_func_alloca_works
=no
6884 rm -f core conftest.err conftest.
$ac_objext \
6885 conftest
$ac_exeext conftest.
$ac_ext
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6888 $as_echo "$ac_cv_func_alloca_works" >&6; }
6890 if test $ac_cv_func_alloca_works = yes; then
6892 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6895 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6896 # that cause trouble. Some versions do not even contain alloca or
6897 # contain a buggy version. If you still want to use their alloca,
6898 # use ar to extract alloca.o from them instead of compiling alloca.c.
6900 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6902 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6906 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6907 if ${ac_cv_os_cray+:} false
; then :
6908 $as_echo_n "(cached) " >&6
6910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h. */
6912 #if defined CRAY && ! defined CRAY2
6919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6920 $EGREP "webecray" >/dev
/null
2>&1; then :
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6929 $as_echo "$ac_cv_os_cray" >&6; }
6930 if test $ac_cv_os_cray = yes; then
6931 for ac_func
in _getb67 GETB67 getb67
; do
6932 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6933 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6934 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6936 cat >>confdefs.h
<<_ACEOF
6937 #define CRAY_STACKSEG_END $ac_func
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6947 $as_echo_n "checking stack direction for C alloca... " >&6; }
6948 if ${ac_cv_c_stack_direction+:} false
; then :
6949 $as_echo_n "(cached) " >&6
6951 if test "$cross_compiling" = yes; then :
6952 ac_cv_c_stack_direction
=0
6954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6956 $ac_includes_default
6958 find_stack_direction (int *addr, int depth)
6963 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6964 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6969 main (int argc, char **argv)
6971 return find_stack_direction (0, argc + !argv + 20) < 0;
6974 if ac_fn_c_try_run
"$LINENO"; then :
6975 ac_cv_c_stack_direction
=1
6977 ac_cv_c_stack_direction
=-1
6979 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6980 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6985 $as_echo "$ac_cv_c_stack_direction" >&6; }
6986 cat >>confdefs.h
<<_ACEOF
6987 #define STACK_DIRECTION $ac_cv_c_stack_direction
6996 for ac_header
in $ac_header_list
6998 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6999 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7001 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7002 cat >>confdefs.h
<<_ACEOF
7003 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7017 for ac_func
in getpagesize
7019 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7020 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7021 cat >>confdefs.h
<<_ACEOF
7022 #define HAVE_GETPAGESIZE 1
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7029 $as_echo_n "checking for working mmap... " >&6; }
7030 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7031 $as_echo_n "(cached) " >&6
7033 if test "$cross_compiling" = yes; then :
7034 ac_cv_func_mmap_fixed_mapped
=no
7036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7038 $ac_includes_default
7039 /* malloc might have been renamed as rpl_malloc. */
7042 /* Thanks to Mike Haertel and Jim Avera for this test.
7043 Here is a matrix of mmap possibilities:
7044 mmap private not fixed
7045 mmap private fixed at somewhere currently unmapped
7046 mmap private fixed at somewhere already mapped
7047 mmap shared not fixed
7048 mmap shared fixed at somewhere currently unmapped
7049 mmap shared fixed at somewhere already mapped
7050 For private mappings, we should verify that changes cannot be read()
7051 back from the file, nor mmap's back from the file at a different
7052 address. (There have been systems where private was not correctly
7053 implemented like the infamous i386 svr4.0, and systems where the
7054 VM page cache was not coherent with the file system buffer cache
7055 like early versions of FreeBSD and possibly contemporary NetBSD.)
7056 For shared mappings, we should conversely verify that changes get
7057 propagated back to all the places they're supposed to be.
7059 Grep wants private fixed already mapped.
7060 The main things grep needs to know about mmap are:
7061 * does it exist and is it safe to write into the mmap'd area
7062 * how to use it (BSD variants) */
7065 #include <sys/mman.h>
7067 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7071 /* This mess was copied from the GNU getpagesize.h. */
7072 #ifndef HAVE_GETPAGESIZE
7073 # ifdef _SC_PAGESIZE
7074 # define getpagesize() sysconf(_SC_PAGESIZE)
7075 # else /* no _SC_PAGESIZE */
7076 # ifdef HAVE_SYS_PARAM_H
7077 # include <sys/param.h>
7078 # ifdef EXEC_PAGESIZE
7079 # define getpagesize() EXEC_PAGESIZE
7080 # else /* no EXEC_PAGESIZE */
7082 # define getpagesize() NBPG * CLSIZE
7085 # endif /* no CLSIZE */
7086 # else /* no NBPG */
7088 # define getpagesize() NBPC
7089 # else /* no NBPC */
7091 # define getpagesize() PAGESIZE
7092 # endif /* PAGESIZE */
7093 # endif /* no NBPC */
7094 # endif /* no NBPG */
7095 # endif /* no EXEC_PAGESIZE */
7096 # else /* no HAVE_SYS_PARAM_H */
7097 # define getpagesize() 8192 /* punt totally */
7098 # endif /* no HAVE_SYS_PARAM_H */
7099 # endif /* no _SC_PAGESIZE */
7101 #endif /* no HAVE_GETPAGESIZE */
7106 char *data, *data2, *data3;
7111 pagesize = getpagesize ();
7113 /* First, make a file with some known garbage in it. */
7114 data = (char *) malloc (pagesize);
7117 for (i = 0; i < pagesize; ++i)
7118 *(data + i) = rand ();
7120 fd = creat ("conftest.mmap", 0600);
7123 if (write (fd, data, pagesize) != pagesize)
7127 /* Next, check that the tail of a page is zero-filled. File must have
7128 non-zero length, otherwise we risk SIGBUS for entire page. */
7129 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7133 if (write (fd2, cdata2, 1) != 1)
7135 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7136 if (data2 == MAP_FAILED)
7138 for (i = 0; i < pagesize; ++i)
7142 if (munmap (data2, pagesize))
7145 /* Next, try to mmap the file at a fixed address which already has
7146 something else allocated at it. If we can, also make sure that
7147 we see the same garbage. */
7148 fd = open ("conftest.mmap", O_RDWR);
7151 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7152 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7154 for (i = 0; i < pagesize; ++i)
7155 if (*(data + i) != *(data2 + i))
7158 /* Finally, make sure that changes to the mapped area do not
7159 percolate back to the file as seen by read(). (This is a bug on
7160 some variants of i386 svr4.0.) */
7161 for (i = 0; i < pagesize; ++i)
7162 *(data2 + i) = *(data2 + i) + 1;
7163 data3 = (char *) malloc (pagesize);
7166 if (read (fd, data3, pagesize) != pagesize)
7168 for (i = 0; i < pagesize; ++i)
7169 if (*(data + i) != *(data3 + i))
7175 if ac_fn_c_try_run
"$LINENO"; then :
7176 ac_cv_func_mmap_fixed_mapped
=yes
7178 ac_cv_func_mmap_fixed_mapped
=no
7180 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7181 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7186 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7187 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7189 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7192 rm -f conftest.mmap conftest.txt
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7196 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7197 if ${ac_cv_gnu_library_2_1+:} false
; then :
7198 $as_echo_n "(cached) " >&6
7200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7203 #include <features.h>
7204 #ifdef __GNU_LIBRARY__
7205 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7212 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
7213 ac_cv_gnu_library_2_1
=yes
7215 ac_cv_gnu_library_2_1
=no
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7223 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7225 GLIBC21
="$ac_cv_gnu_library_2_1"
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7231 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7232 if ${gt_cv_int_divbyzero_sigfpe+:} false
; then :
7233 $as_echo_n "(cached) " >&6
7236 if test "$cross_compiling" = yes; then :
7238 # Guess based on the CPU.
7240 alpha
* | i3456786 | m68k | s390
*)
7241 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
7243 gt_cv_int_divbyzero_sigfpe
="guessing no";;
7247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7255 sigfpe_handler (int sig)
7257 sigfpe_handler (sig) int sig;
7260 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7261 exit (sig != SIGFPE);
7271 signal (SIGFPE, sigfpe_handler);
7272 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7273 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7274 signal (SIGTRAP, sigfpe_handler);
7276 /* Linux/SPARC yields signal SIGILL. */
7277 #if defined (__sparc__) && defined (__linux__)
7278 signal (SIGILL, sigfpe_handler);
7287 if ac_fn_c_try_run
"$LINENO"; then :
7288 gt_cv_int_divbyzero_sigfpe
=yes
7290 gt_cv_int_divbyzero_sigfpe
=no
7292 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7293 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7299 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7300 case "$gt_cv_int_divbyzero_sigfpe" in
7305 cat >>confdefs.h
<<_ACEOF
7306 #define INTDIV0_RAISES_SIGFPE $value
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7312 $as_echo_n "checking for inttypes.h... " >&6; }
7313 if ${jm_ac_cv_header_inttypes_h+:} false
; then :
7314 $as_echo_n "(cached) " >&6
7316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7318 #include <sys/types.h>
7319 #include <inttypes.h>
7323 uintmax_t i = (uintmax_t) -1;
7328 if ac_fn_c_try_compile
"$LINENO"; then :
7329 jm_ac_cv_header_inttypes_h
=yes
7331 jm_ac_cv_header_inttypes_h
=no
7333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
7336 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
7337 if test $jm_ac_cv_header_inttypes_h = yes; then
7339 cat >>confdefs.h
<<_ACEOF
7340 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
7347 $as_echo_n "checking for stdint.h... " >&6; }
7348 if ${jm_ac_cv_header_stdint_h+:} false
; then :
7349 $as_echo_n "(cached) " >&6
7351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7352 /* end confdefs.h. */
7353 #include <sys/types.h>
7358 uintmax_t i = (uintmax_t) -1;
7363 if ac_fn_c_try_compile
"$LINENO"; then :
7364 jm_ac_cv_header_stdint_h
=yes
7366 jm_ac_cv_header_stdint_h
=no
7368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
7371 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
7372 if test $jm_ac_cv_header_stdint_h = yes; then
7374 cat >>confdefs.h
<<_ACEOF
7375 #define HAVE_STDINT_H_WITH_UINTMAX 1
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7382 $as_echo_n "checking for unsigned long long... " >&6; }
7383 if ${ac_cv_type_unsigned_long_long+:} false
; then :
7384 $as_echo_n "(cached) " >&6
7386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7387 /* end confdefs.h. */
7388 unsigned long long ull = 1; int i = 63;
7392 unsigned long long ullmax = (unsigned long long) -1;
7393 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7398 if ac_fn_c_try_link
"$LINENO"; then :
7399 ac_cv_type_unsigned_long_long
=yes
7401 ac_cv_type_unsigned_long_long
=no
7403 rm -f core conftest.err conftest.
$ac_objext \
7404 conftest
$ac_exeext conftest.
$ac_ext
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7407 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7408 if test $ac_cv_type_unsigned_long_long = yes; then
7410 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7417 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
7419 test $ac_cv_type_unsigned_long_long = yes \
7420 && ac_type
='unsigned long long' \
7421 || ac_type
='unsigned long'
7423 cat >>confdefs.h
<<_ACEOF
7424 #define uintmax_t $ac_type
7429 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7435 $as_echo_n "checking for inttypes.h... " >&6; }
7436 if ${gt_cv_header_inttypes_h+:} false
; then :
7437 $as_echo_n "(cached) " >&6
7440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7442 #include <sys/types.h>
7443 #include <inttypes.h>
7452 if ac_fn_c_try_compile
"$LINENO"; then :
7453 gt_cv_header_inttypes_h
=yes
7455 gt_cv_header_inttypes_h
=no
7457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7461 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7462 if test $gt_cv_header_inttypes_h = yes; then
7464 cat >>confdefs.h
<<_ACEOF
7465 #define HAVE_INTTYPES_H 1
7472 if test $gt_cv_header_inttypes_h = yes; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7474 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7475 if ${gt_cv_inttypes_pri_broken+:} false
; then :
7476 $as_echo_n "(cached) " >&6
7479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7481 #include <inttypes.h>
7494 if ac_fn_c_try_compile
"$LINENO"; then :
7495 gt_cv_inttypes_pri_broken
=no
7497 gt_cv_inttypes_pri_broken
=yes
7499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7503 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7505 if test "$gt_cv_inttypes_pri_broken" = yes; then
7507 cat >>confdefs.h
<<_ACEOF
7508 #define PRI_MACROS_BROKEN 1
7514 if test "X$prefix" = "XNONE"; then
7515 acl_final_prefix
="$ac_default_prefix"
7517 acl_final_prefix
="$prefix"
7519 if test "X$exec_prefix" = "XNONE"; then
7520 acl_final_exec_prefix
='${prefix}'
7522 acl_final_exec_prefix
="$exec_prefix"
7524 acl_save_prefix
="$prefix"
7525 prefix
="$acl_final_prefix"
7526 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7527 prefix
="$acl_save_prefix"
7530 # Check whether --with-gnu-ld was given.
7531 if test "${with_gnu_ld+set}" = set; then :
7532 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7537 # Prepare PATH_SEPARATOR.
7538 # The user is always right.
7539 if test "${PATH_SEPARATOR+set}" != set; then
7540 echo "#! /bin/sh" >conf$$.sh
7541 echo "exit 0" >>conf$$.sh
7543 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7551 if test "$GCC" = yes; then
7552 # Check if gcc -print-prog-name=ld gives a path.
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7554 $as_echo_n "checking for ld used by GCC... " >&6; }
7557 # gcc leaves a trailing carriage return which upsets mingw
7558 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7560 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7563 # Accept absolute paths.
7564 [\\/]* |
[A-Za-z
]:[\\/]*)
7565 re_direlt
='/[^/][^/]*/\.\./'
7566 # Canonicalize the path of ld
7567 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7568 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7569 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7571 test -z "$LD" && LD
="$ac_prog"
7574 # If it fails, then pretend we aren't using GCC.
7578 # If it is relative, then search for the first ld in PATH.
7582 elif test "$with_gnu_ld" = yes; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7584 $as_echo_n "checking for GNU ld... " >&6; }
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7587 $as_echo_n "checking for non-GNU ld... " >&6; }
7589 if ${acl_cv_path_LD+:} false
; then :
7590 $as_echo_n "(cached) " >&6
7592 if test -z "$LD"; then
7593 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7594 for ac_dir
in $PATH; do
7595 test -z "$ac_dir" && ac_dir
=.
7596 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7597 acl_cv_path_LD
="$ac_dir/$ac_prog"
7598 # Check to see if the program is GNU ld. I'd rather use --version,
7599 # but apparently some GNU ld's only accept -v.
7600 # Break only if it was the GNU/non-GNU ld that we prefer.
7601 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
7602 test "$with_gnu_ld" != no
&& break
7604 test "$with_gnu_ld" != yes && break
7610 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7614 LD
="$acl_cv_path_LD"
7615 if test -n "$LD"; then
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7617 $as_echo "$LD" >&6; }
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 $as_echo "no" >&6; }
7622 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7624 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7625 if ${acl_cv_prog_gnu_ld+:} false
; then :
7626 $as_echo_n "(cached) " >&6
7628 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7629 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
7630 acl_cv_prog_gnu_ld
=yes
7632 acl_cv_prog_gnu_ld
=no
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7636 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7637 with_gnu_ld
=$acl_cv_prog_gnu_ld
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7642 $as_echo_n "checking for shared library run path origin... " >&6; }
7643 if ${acl_cv_rpath+:} false
; then :
7644 $as_echo_n "(cached) " >&6
7647 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7648 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7655 $as_echo "$acl_cv_rpath" >&6; }
7657 libext
="$acl_cv_libext"
7658 shlibext
="$acl_cv_shlibext"
7659 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7660 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7661 hardcode_direct
="$acl_cv_hardcode_direct"
7662 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7663 # Check whether --enable-rpath was given.
7664 if test "${enable_rpath+set}" = set; then :
7665 enableval
=$enable_rpath; :
7679 acl_save_prefix
="$prefix"
7680 prefix
="$acl_final_prefix"
7681 acl_save_exec_prefix
="$exec_prefix"
7682 exec_prefix
="$acl_final_exec_prefix"
7684 eval additional_includedir
=\"$includedir\"
7685 eval additional_libdir
=\"$libdir\"
7687 exec_prefix
="$acl_save_exec_prefix"
7688 prefix
="$acl_save_prefix"
7691 # Check whether --with-libiconv-prefix was given.
7692 if test "${with_libiconv_prefix+set}" = set; then :
7693 withval
=$with_libiconv_prefix;
7694 if test "X$withval" = "Xno"; then
7697 if test "X$withval" = "X"; then
7699 acl_save_prefix
="$prefix"
7700 prefix
="$acl_final_prefix"
7701 acl_save_exec_prefix
="$exec_prefix"
7702 exec_prefix
="$acl_final_exec_prefix"
7704 eval additional_includedir
=\"$includedir\"
7705 eval additional_libdir
=\"$libdir\"
7707 exec_prefix
="$acl_save_exec_prefix"
7708 prefix
="$acl_save_prefix"
7711 additional_includedir
="$withval/include"
7712 additional_libdir
="$withval/lib"
7723 names_already_handled
=
7724 names_next_round
='iconv '
7725 while test -n "$names_next_round"; do
7726 names_this_round
="$names_next_round"
7728 for name
in $names_this_round; do
7730 for n
in $names_already_handled; do
7731 if test "$n" = "$name"; then
7736 if test -z "$already_handled"; then
7737 names_already_handled
="$names_already_handled $name"
7738 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7739 eval value
=\"\
$HAVE_LIB$uppername\"
7740 if test -n "$value"; then
7741 if test "$value" = yes; then
7742 eval value
=\"\
$LIB$uppername\"
7743 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
7744 eval value
=\"\
$LTLIB$uppername\"
7745 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
7754 if test $use_additional = yes; then
7755 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7756 found_dir
="$additional_libdir"
7757 found_so
="$additional_libdir/lib$name.$shlibext"
7758 if test -f "$additional_libdir/lib$name.la"; then
7759 found_la
="$additional_libdir/lib$name.la"
7762 if test -f "$additional_libdir/lib$name.$libext"; then
7763 found_dir
="$additional_libdir"
7764 found_a
="$additional_libdir/lib$name.$libext"
7765 if test -f "$additional_libdir/lib$name.la"; then
7766 found_la
="$additional_libdir/lib$name.la"
7771 if test "X$found_dir" = "X"; then
7772 for x
in $LDFLAGS $LTLIBICONV; do
7774 acl_save_prefix
="$prefix"
7775 prefix
="$acl_final_prefix"
7776 acl_save_exec_prefix
="$exec_prefix"
7777 exec_prefix
="$acl_final_exec_prefix"
7779 exec_prefix
="$acl_save_exec_prefix"
7780 prefix
="$acl_save_prefix"
7784 dir
=`echo "X$x" | sed -e 's/^X-L//'`
7785 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7787 found_so
="$dir/lib$name.$shlibext"
7788 if test -f "$dir/lib$name.la"; then
7789 found_la
="$dir/lib$name.la"
7792 if test -f "$dir/lib$name.$libext"; then
7794 found_a
="$dir/lib$name.$libext"
7795 if test -f "$dir/lib$name.la"; then
7796 found_la
="$dir/lib$name.la"
7802 if test "X$found_dir" != "X"; then
7807 if test "X$found_dir" != "X"; then
7808 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7809 if test "X$found_so" != "X"; then
7810 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
7811 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7814 for x
in $ltrpathdirs; do
7815 if test "X$x" = "X$found_dir"; then
7820 if test -z "$haveit"; then
7821 ltrpathdirs
="$ltrpathdirs $found_dir"
7823 if test "$hardcode_direct" = yes; then
7824 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7826 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
7827 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7829 for x
in $rpathdirs; do
7830 if test "X$x" = "X$found_dir"; then
7835 if test -z "$haveit"; then
7836 rpathdirs
="$rpathdirs $found_dir"
7840 for x
in $LDFLAGS $LIBICONV; do
7842 acl_save_prefix
="$prefix"
7843 prefix
="$acl_final_prefix"
7844 acl_save_exec_prefix
="$exec_prefix"
7845 exec_prefix
="$acl_final_exec_prefix"
7847 exec_prefix
="$acl_save_exec_prefix"
7848 prefix
="$acl_save_prefix"
7850 if test "X$x" = "X-L$found_dir"; then
7855 if test -z "$haveit"; then
7856 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7858 if test "$hardcode_minus_L" != no
; then
7859 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7861 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7867 if test "X$found_a" != "X"; then
7868 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
7870 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7873 additional_includedir
=
7874 case "$found_dir" in
7876 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7877 additional_includedir
="$basedir/include"
7880 if test "X$additional_includedir" != "X"; then
7881 if test "X$additional_includedir" != "X/usr/include"; then
7883 if test "X$additional_includedir" = "X/usr/local/include"; then
7884 if test -n "$GCC"; then
7886 linux
*) haveit
=yes;;
7890 if test -z "$haveit"; then
7891 for x
in $CPPFLAGS $INCICONV; do
7893 acl_save_prefix
="$prefix"
7894 prefix
="$acl_final_prefix"
7895 acl_save_exec_prefix
="$exec_prefix"
7896 exec_prefix
="$acl_final_exec_prefix"
7898 exec_prefix
="$acl_save_exec_prefix"
7899 prefix
="$acl_save_prefix"
7901 if test "X$x" = "X-I$additional_includedir"; then
7906 if test -z "$haveit"; then
7907 if test -d "$additional_includedir"; then
7908 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7914 if test -n "$found_la"; then
7915 save_libdir
="$libdir"
7917 */* |
*\\*) .
"$found_la" ;;
7918 *) .
"./$found_la" ;;
7920 libdir
="$save_libdir"
7921 for dep
in $dependency_libs; do
7924 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
7925 if test "X$additional_libdir" != "X/usr/lib"; then
7927 if test "X$additional_libdir" = "X/usr/local/lib"; then
7928 if test -n "$GCC"; then
7930 linux
*) haveit
=yes;;
7934 if test -z "$haveit"; then
7936 for x
in $LDFLAGS $LIBICONV; do
7938 acl_save_prefix
="$prefix"
7939 prefix
="$acl_final_prefix"
7940 acl_save_exec_prefix
="$exec_prefix"
7941 exec_prefix
="$acl_final_exec_prefix"
7943 exec_prefix
="$acl_save_exec_prefix"
7944 prefix
="$acl_save_prefix"
7946 if test "X$x" = "X-L$additional_libdir"; then
7951 if test -z "$haveit"; then
7952 if test -d "$additional_libdir"; then
7953 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7957 for x
in $LDFLAGS $LTLIBICONV; do
7959 acl_save_prefix
="$prefix"
7960 prefix
="$acl_final_prefix"
7961 acl_save_exec_prefix
="$exec_prefix"
7962 exec_prefix
="$acl_final_exec_prefix"
7964 exec_prefix
="$acl_save_exec_prefix"
7965 prefix
="$acl_save_prefix"
7967 if test "X$x" = "X-L$additional_libdir"; then
7972 if test -z "$haveit"; then
7973 if test -d "$additional_libdir"; then
7974 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7981 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
7982 if test "$enable_rpath" != no
; then
7984 for x
in $rpathdirs; do
7985 if test "X$x" = "X$dir"; then
7990 if test -z "$haveit"; then
7991 rpathdirs
="$rpathdirs $dir"
7994 for x
in $ltrpathdirs; do
7995 if test "X$x" = "X$dir"; then
8000 if test -z "$haveit"; then
8001 ltrpathdirs
="$ltrpathdirs $dir"
8006 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8009 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8012 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8013 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8019 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8020 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8026 if test "X$rpathdirs" != "X"; then
8027 if test -n "$hardcode_libdir_separator"; then
8029 for found_dir
in $rpathdirs; do
8030 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8032 acl_save_libdir
="$libdir"
8034 eval flag
=\"$hardcode_libdir_flag_spec\"
8035 libdir
="$acl_save_libdir"
8036 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8038 for found_dir
in $rpathdirs; do
8039 acl_save_libdir
="$libdir"
8041 eval flag
=\"$hardcode_libdir_flag_spec\"
8042 libdir
="$acl_save_libdir"
8043 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8047 if test "X$ltrpathdirs" != "X"; then
8048 for found_dir
in $ltrpathdirs; do
8049 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8056 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8057 stdlib.h string.h unistd.h sys
/param.h
8059 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8060 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8061 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8062 cat >>confdefs.h
<<_ACEOF
8063 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8070 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
8071 geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \
8072 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
8075 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8076 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8077 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8078 cat >>confdefs.h
<<_ACEOF
8079 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8091 am_save_CPPFLAGS
="$CPPFLAGS"
8093 for element
in $INCICONV; do
8095 for x
in $CPPFLAGS; do
8097 acl_save_prefix
="$prefix"
8098 prefix
="$acl_final_prefix"
8099 acl_save_exec_prefix
="$exec_prefix"
8100 exec_prefix
="$acl_final_exec_prefix"
8102 exec_prefix
="$acl_save_exec_prefix"
8103 prefix
="$acl_save_prefix"
8105 if test "X$x" = "X$element"; then
8110 if test -z "$haveit"; then
8111 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8117 $as_echo_n "checking for iconv... " >&6; }
8118 if ${am_cv_func_iconv+:} false
; then :
8119 $as_echo_n "(cached) " >&6
8122 am_cv_func_iconv
="no, consider installing GNU libiconv"
8124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8125 /* end confdefs.h. */
8131 iconv_t cd = iconv_open("","");
8132 iconv(cd,NULL,NULL,NULL,NULL);
8138 if ac_fn_c_try_link
"$LINENO"; then :
8139 am_cv_func_iconv
=yes
8141 rm -f core conftest.err conftest.
$ac_objext \
8142 conftest
$ac_exeext conftest.
$ac_ext
8143 if test "$am_cv_func_iconv" != yes; then
8144 am_save_LIBS
="$LIBS"
8145 LIBS
="$LIBS $LIBICONV"
8146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h. */
8153 iconv_t cd = iconv_open("","");
8154 iconv(cd,NULL,NULL,NULL,NULL);
8160 if ac_fn_c_try_link
"$LINENO"; then :
8162 am_cv_func_iconv
=yes
8164 rm -f core conftest.err conftest.
$ac_objext \
8165 conftest
$ac_exeext conftest.
$ac_ext
8166 LIBS
="$am_save_LIBS"
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8171 $as_echo "$am_cv_func_iconv" >&6; }
8172 if test "$am_cv_func_iconv" = yes; then
8174 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8177 if test "$am_cv_lib_iconv" = yes; then
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8179 $as_echo_n "checking how to link with libiconv... " >&6; }
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8181 $as_echo "$LIBICONV" >&6; }
8183 CPPFLAGS
="$am_save_CPPFLAGS"
8190 if test "$am_cv_func_iconv" = yes; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8192 $as_echo_n "checking for iconv declaration... " >&6; }
8193 if ${am_cv_proto_iconv+:} false
; then :
8194 $as_echo_n "(cached) " >&6
8197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8206 #if defined(__STDC__) || defined(__cplusplus)
8207 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8220 if ac_fn_c_try_compile
"$LINENO"; then :
8221 am_cv_proto_iconv_arg1
=""
8223 am_cv_proto_iconv_arg1
="const"
8225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8226 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);"
8229 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8231 }$am_cv_proto_iconv" >&5
8233 }$am_cv_proto_iconv" >&6; }
8235 cat >>confdefs.h
<<_ACEOF
8236 #define ICONV_CONST $am_cv_proto_iconv_arg1
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8243 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8244 if ${am_cv_langinfo_codeset+:} false
; then :
8245 $as_echo_n "(cached) " >&6
8247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8249 #include <langinfo.h>
8253 char* cs = nl_langinfo(CODESET);
8258 if ac_fn_c_try_link
"$LINENO"; then :
8259 am_cv_langinfo_codeset
=yes
8261 am_cv_langinfo_codeset
=no
8263 rm -f core conftest.err conftest.
$ac_objext \
8264 conftest
$ac_exeext conftest.
$ac_ext
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8268 $as_echo "$am_cv_langinfo_codeset" >&6; }
8269 if test $am_cv_langinfo_codeset = yes; then
8271 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8275 if test $ac_cv_header_locale_h = yes; then
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8278 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8279 if ${am_cv_val_LC_MESSAGES+:} false
; then :
8280 $as_echo_n "(cached) " >&6
8282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8283 /* end confdefs.h. */
8293 if ac_fn_c_try_link
"$LINENO"; then :
8294 am_cv_val_LC_MESSAGES
=yes
8296 am_cv_val_LC_MESSAGES
=no
8298 rm -f core conftest.err conftest.
$ac_objext \
8299 conftest
$ac_exeext conftest.
$ac_ext
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8302 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8303 if test $am_cv_val_LC_MESSAGES = yes; then
8305 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8311 for ac_prog
in bison
8313 # Extract the first word of "$ac_prog", so it can be a program name with args.
8314 set dummy
$ac_prog; ac_word
=$2
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316 $as_echo_n "checking for $ac_word... " >&6; }
8317 if ${ac_cv_prog_INTLBISON+:} false
; then :
8318 $as_echo_n "(cached) " >&6
8320 if test -n "$INTLBISON"; then
8321 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8327 test -z "$as_dir" && as_dir
=.
8328 for ac_exec_ext
in '' $ac_executable_extensions; do
8329 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8330 ac_cv_prog_INTLBISON
="$ac_prog"
8331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8340 INTLBISON
=$ac_cv_prog_INTLBISON
8341 if test -n "$INTLBISON"; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8343 $as_echo "$INTLBISON" >&6; }
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 $as_echo "no" >&6; }
8350 test -n "$INTLBISON" && break
8353 if test -z "$INTLBISON"; then
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8357 $as_echo_n "checking version of bison... " >&6; }
8358 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8359 case $ac_prog_version in
8360 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8361 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
8362 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8363 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8366 $as_echo "$ac_prog_version" >&6; }
8368 if test $ac_verc_fail = yes; then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8388 $as_echo_n "checking whether NLS is requested... " >&6; }
8389 # Check whether --enable-nls was given.
8390 if test "${enable_nls+set}" = set; then :
8391 enableval
=$enable_nls; USE_NLS
=$enableval
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8397 $as_echo "$USE_NLS" >&6; }
8402 BUILD_INCLUDED_LIBINTL
=no
8403 USE_INCLUDED_LIBINTL
=no
8409 if test "$USE_NLS" = "yes"; then
8410 gt_use_preinstalled_gnugettext
=no
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8413 $as_echo_n "checking whether included gettext is requested... " >&6; }
8415 # Check whether --with-included-gettext was given.
8416 if test "${with_included_gettext+set}" = set; then :
8417 withval
=$with_included_gettext; nls_cv_force_use_gnu_gettext
=$withval
8419 nls_cv_force_use_gnu_gettext
=no
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8423 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8425 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
8426 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8434 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8435 if ${gt_cv_func_gnugettext2_libc+:} false
; then :
8436 $as_echo_n "(cached) " >&6
8438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8440 #include <libintl.h>
8441 extern int _nl_msg_cat_cntr;
8442 extern int *_nl_domain_bindings;
8446 bindtextdomain ("", "");
8447 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
8452 if ac_fn_c_try_link
"$LINENO"; then :
8453 gt_cv_func_gnugettext2_libc
=yes
8455 gt_cv_func_gnugettext2_libc
=no
8457 rm -f core conftest.err conftest.
$ac_objext \
8458 conftest
$ac_exeext conftest.
$ac_ext
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
8461 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
8463 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8469 acl_save_prefix
="$prefix"
8470 prefix
="$acl_final_prefix"
8471 acl_save_exec_prefix
="$exec_prefix"
8472 exec_prefix
="$acl_final_exec_prefix"
8474 eval additional_includedir
=\"$includedir\"
8475 eval additional_libdir
=\"$libdir\"
8477 exec_prefix
="$acl_save_exec_prefix"
8478 prefix
="$acl_save_prefix"
8481 # Check whether --with-libintl-prefix was given.
8482 if test "${with_libintl_prefix+set}" = set; then :
8483 withval
=$with_libintl_prefix;
8484 if test "X$withval" = "Xno"; then
8487 if test "X$withval" = "X"; then
8489 acl_save_prefix
="$prefix"
8490 prefix
="$acl_final_prefix"
8491 acl_save_exec_prefix
="$exec_prefix"
8492 exec_prefix
="$acl_final_exec_prefix"
8494 eval additional_includedir
=\"$includedir\"
8495 eval additional_libdir
=\"$libdir\"
8497 exec_prefix
="$acl_save_exec_prefix"
8498 prefix
="$acl_save_prefix"
8501 additional_includedir
="$withval/include"
8502 additional_libdir
="$withval/lib"
8513 names_already_handled
=
8514 names_next_round
='intl '
8515 while test -n "$names_next_round"; do
8516 names_this_round
="$names_next_round"
8518 for name
in $names_this_round; do
8520 for n
in $names_already_handled; do
8521 if test "$n" = "$name"; then
8526 if test -z "$already_handled"; then
8527 names_already_handled
="$names_already_handled $name"
8528 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8529 eval value
=\"\
$HAVE_LIB$uppername\"
8530 if test -n "$value"; then
8531 if test "$value" = yes; then
8532 eval value
=\"\
$LIB$uppername\"
8533 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
8534 eval value
=\"\
$LTLIB$uppername\"
8535 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
8544 if test $use_additional = yes; then
8545 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8546 found_dir
="$additional_libdir"
8547 found_so
="$additional_libdir/lib$name.$shlibext"
8548 if test -f "$additional_libdir/lib$name.la"; then
8549 found_la
="$additional_libdir/lib$name.la"
8552 if test -f "$additional_libdir/lib$name.$libext"; then
8553 found_dir
="$additional_libdir"
8554 found_a
="$additional_libdir/lib$name.$libext"
8555 if test -f "$additional_libdir/lib$name.la"; then
8556 found_la
="$additional_libdir/lib$name.la"
8561 if test "X$found_dir" = "X"; then
8562 for x
in $LDFLAGS $LTLIBINTL; do
8564 acl_save_prefix
="$prefix"
8565 prefix
="$acl_final_prefix"
8566 acl_save_exec_prefix
="$exec_prefix"
8567 exec_prefix
="$acl_final_exec_prefix"
8569 exec_prefix
="$acl_save_exec_prefix"
8570 prefix
="$acl_save_prefix"
8574 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8575 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8577 found_so
="$dir/lib$name.$shlibext"
8578 if test -f "$dir/lib$name.la"; then
8579 found_la
="$dir/lib$name.la"
8582 if test -f "$dir/lib$name.$libext"; then
8584 found_a
="$dir/lib$name.$libext"
8585 if test -f "$dir/lib$name.la"; then
8586 found_la
="$dir/lib$name.la"
8592 if test "X$found_dir" != "X"; then
8597 if test "X$found_dir" != "X"; then
8598 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8599 if test "X$found_so" != "X"; then
8600 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8601 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8604 for x
in $ltrpathdirs; do
8605 if test "X$x" = "X$found_dir"; then
8610 if test -z "$haveit"; then
8611 ltrpathdirs
="$ltrpathdirs $found_dir"
8613 if test "$hardcode_direct" = yes; then
8614 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8616 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8617 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8619 for x
in $rpathdirs; do
8620 if test "X$x" = "X$found_dir"; then
8625 if test -z "$haveit"; then
8626 rpathdirs
="$rpathdirs $found_dir"
8630 for x
in $LDFLAGS $LIBINTL; do
8632 acl_save_prefix
="$prefix"
8633 prefix
="$acl_final_prefix"
8634 acl_save_exec_prefix
="$exec_prefix"
8635 exec_prefix
="$acl_final_exec_prefix"
8637 exec_prefix
="$acl_save_exec_prefix"
8638 prefix
="$acl_save_prefix"
8640 if test "X$x" = "X-L$found_dir"; then
8645 if test -z "$haveit"; then
8646 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8648 if test "$hardcode_minus_L" != no
; then
8649 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8651 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
8657 if test "X$found_a" != "X"; then
8658 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
8660 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8663 additional_includedir
=
8664 case "$found_dir" in
8666 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8667 additional_includedir
="$basedir/include"
8670 if test "X$additional_includedir" != "X"; then
8671 if test "X$additional_includedir" != "X/usr/include"; then
8673 if test "X$additional_includedir" = "X/usr/local/include"; then
8674 if test -n "$GCC"; then
8676 linux
*) haveit
=yes;;
8680 if test -z "$haveit"; then
8681 for x
in $CPPFLAGS $INCINTL; do
8683 acl_save_prefix
="$prefix"
8684 prefix
="$acl_final_prefix"
8685 acl_save_exec_prefix
="$exec_prefix"
8686 exec_prefix
="$acl_final_exec_prefix"
8688 exec_prefix
="$acl_save_exec_prefix"
8689 prefix
="$acl_save_prefix"
8691 if test "X$x" = "X-I$additional_includedir"; then
8696 if test -z "$haveit"; then
8697 if test -d "$additional_includedir"; then
8698 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8704 if test -n "$found_la"; then
8705 save_libdir
="$libdir"
8707 */* |
*\\*) .
"$found_la" ;;
8708 *) .
"./$found_la" ;;
8710 libdir
="$save_libdir"
8711 for dep
in $dependency_libs; do
8714 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8715 if test "X$additional_libdir" != "X/usr/lib"; then
8717 if test "X$additional_libdir" = "X/usr/local/lib"; then
8718 if test -n "$GCC"; then
8720 linux
*) haveit
=yes;;
8724 if test -z "$haveit"; then
8726 for x
in $LDFLAGS $LIBINTL; do
8728 acl_save_prefix
="$prefix"
8729 prefix
="$acl_final_prefix"
8730 acl_save_exec_prefix
="$exec_prefix"
8731 exec_prefix
="$acl_final_exec_prefix"
8733 exec_prefix
="$acl_save_exec_prefix"
8734 prefix
="$acl_save_prefix"
8736 if test "X$x" = "X-L$additional_libdir"; then
8741 if test -z "$haveit"; then
8742 if test -d "$additional_libdir"; then
8743 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8747 for x
in $LDFLAGS $LTLIBINTL; do
8749 acl_save_prefix
="$prefix"
8750 prefix
="$acl_final_prefix"
8751 acl_save_exec_prefix
="$exec_prefix"
8752 exec_prefix
="$acl_final_exec_prefix"
8754 exec_prefix
="$acl_save_exec_prefix"
8755 prefix
="$acl_save_prefix"
8757 if test "X$x" = "X-L$additional_libdir"; then
8762 if test -z "$haveit"; then
8763 if test -d "$additional_libdir"; then
8764 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8771 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8772 if test "$enable_rpath" != no
; then
8774 for x
in $rpathdirs; do
8775 if test "X$x" = "X$dir"; then
8780 if test -z "$haveit"; then
8781 rpathdirs
="$rpathdirs $dir"
8784 for x
in $ltrpathdirs; do
8785 if test "X$x" = "X$dir"; then
8790 if test -z "$haveit"; then
8791 ltrpathdirs
="$ltrpathdirs $dir"
8796 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8799 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8802 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
8803 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8809 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
8810 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8816 if test "X$rpathdirs" != "X"; then
8817 if test -n "$hardcode_libdir_separator"; then
8819 for found_dir
in $rpathdirs; do
8820 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8822 acl_save_libdir
="$libdir"
8824 eval flag
=\"$hardcode_libdir_flag_spec\"
8825 libdir
="$acl_save_libdir"
8826 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
8828 for found_dir
in $rpathdirs; do
8829 acl_save_libdir
="$libdir"
8831 eval flag
=\"$hardcode_libdir_flag_spec\"
8832 libdir
="$acl_save_libdir"
8833 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
8837 if test "X$ltrpathdirs" != "X"; then
8838 for found_dir
in $ltrpathdirs; do
8839 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8844 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8845 if ${gt_cv_func_gnugettext2_libintl+:} false
; then :
8846 $as_echo_n "(cached) " >&6
8848 gt_save_CPPFLAGS
="$CPPFLAGS"
8849 CPPFLAGS
="$CPPFLAGS $INCINTL"
8850 gt_save_LIBS
="$LIBS"
8851 LIBS
="$LIBS $LIBINTL"
8852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8854 #include <libintl.h>
8855 extern int _nl_msg_cat_cntr;
8860 const char *_nl_expand_alias ();
8864 bindtextdomain ("", "");
8865 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8870 if ac_fn_c_try_link
"$LINENO"; then :
8871 gt_cv_func_gnugettext2_libintl
=yes
8873 gt_cv_func_gnugettext2_libintl
=no
8875 rm -f core conftest.err conftest.
$ac_objext \
8876 conftest
$ac_exeext conftest.
$ac_ext
8877 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
8878 LIBS
="$LIBS $LIBICONV"
8879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8881 #include <libintl.h>
8882 extern int _nl_msg_cat_cntr;
8887 const char *_nl_expand_alias ();
8891 bindtextdomain ("", "");
8892 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8897 if ac_fn_c_try_link
"$LINENO"; then :
8898 LIBINTL
="$LIBINTL $LIBICONV"
8899 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
8900 gt_cv_func_gnugettext2_libintl
=yes
8903 rm -f core conftest.err conftest.
$ac_objext \
8904 conftest
$ac_exeext conftest.
$ac_ext
8906 CPPFLAGS
="$gt_save_CPPFLAGS"
8907 LIBS
="$gt_save_LIBS"
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
8910 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
8913 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
8914 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
8915 && test "$PACKAGE" != gettext-runtime \
8916 && test "$PACKAGE" != gettext-tools
; }; then
8917 gt_use_preinstalled_gnugettext
=yes
8925 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
8926 nls_cv_use_gnu_gettext
=yes
8930 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8931 BUILD_INCLUDED_LIBINTL
=yes
8932 USE_INCLUDED_LIBINTL
=yes
8933 LIBINTL
="lib/intl/libintl.a $LIBICONV"
8934 LTLIBINTL
="lib/intl/libintl.a $LTLIBICONV"
8935 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8938 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8939 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
8944 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8945 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
8947 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8955 $as_echo_n "checking whether to use NLS... " >&6; }
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8957 $as_echo "$USE_NLS" >&6; }
8958 if test "$USE_NLS" = "yes"; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8960 $as_echo_n "checking where the gettext function comes from... " >&6; }
8961 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8962 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8963 gt_source
="external libintl"
8968 gt_source
="included intl directory"
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8971 $as_echo "$gt_source" >&6; }
8974 if test "$USE_NLS" = "yes"; then
8976 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8977 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8979 $as_echo_n "checking how to link with libintl... " >&6; }
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8981 $as_echo "$LIBINTL" >&6; }
8983 for element
in $INCINTL; do
8985 for x
in $CPPFLAGS; do
8987 acl_save_prefix
="$prefix"
8988 prefix
="$acl_final_prefix"
8989 acl_save_exec_prefix
="$exec_prefix"
8990 exec_prefix
="$acl_final_exec_prefix"
8992 exec_prefix
="$acl_save_exec_prefix"
8993 prefix
="$acl_save_prefix"
8995 if test "X$x" = "X$element"; then
9000 if test -z "$haveit"; then
9001 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9008 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9011 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9019 if test "$PACKAGE" = gettext-runtime ||
test "$PACKAGE" = gettext-tools
; then
9020 BUILD_INCLUDED_LIBINTL
=yes
9028 nls_cv_header_libgt
=
9039 if test "$USE_INCLUDED_LIBINTL" = yes; then
9040 INTLOBJS
="\$(GETTOBJS)"
9044 INTL_LIBTOOL_SUFFIX_PREFIX
=
9057 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9058 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9060 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9061 if eval \
${$as_ac_Header+:} false
; then :
9062 $as_echo_n "(cached) " >&6
9064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9066 #include <sys/types.h>
9078 if ac_fn_c_try_compile
"$LINENO"; then :
9079 eval "$as_ac_Header=yes"
9081 eval "$as_ac_Header=no"
9083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9085 eval ac_res
=\$
$as_ac_Header
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9087 $as_echo "$ac_res" >&6; }
9088 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9089 cat >>confdefs.h
<<_ACEOF
9090 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9093 ac_header_dirent
=$ac_hdr; break
9097 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9098 if test $ac_header_dirent = dirent.h
; then
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9100 $as_echo_n "checking for library containing opendir... " >&6; }
9101 if ${ac_cv_search_opendir+:} false
; then :
9102 $as_echo_n "(cached) " >&6
9104 ac_func_search_save_LIBS
=$LIBS
9105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h. */
9108 /* Override any GCC internal prototype to avoid an error.
9109 Use char because int might match the return type of a GCC
9110 builtin and then its argument prototype would still apply. */
9123 for ac_lib
in '' dir
; do
9124 if test -z "$ac_lib"; then
9125 ac_res
="none required"
9128 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9130 if ac_fn_c_try_link
"$LINENO"; then :
9131 ac_cv_search_opendir
=$ac_res
9133 rm -f core conftest.err conftest.
$ac_objext \
9135 if ${ac_cv_search_opendir+:} false
; then :
9139 if ${ac_cv_search_opendir+:} false
; then :
9142 ac_cv_search_opendir
=no
9145 LIBS
=$ac_func_search_save_LIBS
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9148 $as_echo "$ac_cv_search_opendir" >&6; }
9149 ac_res
=$ac_cv_search_opendir
9150 if test "$ac_res" != no
; then :
9151 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9157 $as_echo_n "checking for library containing opendir... " >&6; }
9158 if ${ac_cv_search_opendir+:} false
; then :
9159 $as_echo_n "(cached) " >&6
9161 ac_func_search_save_LIBS
=$LIBS
9162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9165 /* Override any GCC internal prototype to avoid an error.
9166 Use char because int might match the return type of a GCC
9167 builtin and then its argument prototype would still apply. */
9180 for ac_lib
in '' x
; do
9181 if test -z "$ac_lib"; then
9182 ac_res
="none required"
9185 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9187 if ac_fn_c_try_link
"$LINENO"; then :
9188 ac_cv_search_opendir
=$ac_res
9190 rm -f core conftest.err conftest.
$ac_objext \
9192 if ${ac_cv_search_opendir+:} false
; then :
9196 if ${ac_cv_search_opendir+:} false
; then :
9199 ac_cv_search_opendir
=no
9202 LIBS
=$ac_func_search_save_LIBS
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9205 $as_echo "$ac_cv_search_opendir" >&6; }
9206 ac_res
=$ac_cv_search_opendir
9207 if test "$ac_res" != no
; then :
9208 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9215 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9216 if ${ac_cv_header_time+:} false
; then :
9217 $as_echo_n "(cached) " >&6
9219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9221 #include <sys/types.h>
9222 #include <sys/time.h>
9228 if ((struct tm *) 0)
9234 if ac_fn_c_try_compile
"$LINENO"; then :
9235 ac_cv_header_time
=yes
9237 ac_cv_header_time
=no
9239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9242 $as_echo "$ac_cv_header_time" >&6; }
9243 if test $ac_cv_header_time = yes; then
9245 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9251 for ac_header
in inttypes.h
9253 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
9254 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
9255 cat >>confdefs.h
<<_ACEOF
9256 #define HAVE_INTTYPES_H 1
9265 for ac_header
in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
9266 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
9267 stdbool.h stddef.h stdint.h netdb.h
pwd.h grp.h
strings.h \
9268 regex.h syslog.h
ulimit.h
9270 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9271 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9272 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9273 cat >>confdefs.h
<<_ACEOF
9274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9281 for ac_header
in sys
/pte.h sys
/stream.h sys
/select.h sys
/file.h \
9282 sys
/resource.h sys
/param.h sys
/socket.h sys
/stat.h \
9283 sys
/time.h sys
/times.h sys
/types.h sys
/wait.h
9285 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9286 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9287 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9288 cat >>confdefs.h
<<_ACEOF
9289 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9296 for ac_header
in netinet
/in.h arpa
/inet.h
9298 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9299 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9300 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9301 cat >>confdefs.h
<<_ACEOF
9302 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9310 ac_fn_c_check_header_compile
"$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "
9311 #if HAVE_SYS_STREAM_H
9312 # include <sys/stream.h>
9316 if test "x$ac_cv_header_sys_ptem_h" = xyes
; then :
9322 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9323 # for constant arguments. Useless!
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9325 $as_echo_n "checking for working alloca.h... " >&6; }
9326 if ${ac_cv_working_alloca_h+:} false
; then :
9327 $as_echo_n "(cached) " >&6
9329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9330 /* end confdefs.h. */
9335 char *p = (char *) alloca (2 * sizeof (int));
9341 if ac_fn_c_try_link
"$LINENO"; then :
9342 ac_cv_working_alloca_h
=yes
9344 ac_cv_working_alloca_h
=no
9346 rm -f core conftest.err conftest.
$ac_objext \
9347 conftest
$ac_exeext conftest.
$ac_ext
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9350 $as_echo "$ac_cv_working_alloca_h" >&6; }
9351 if test $ac_cv_working_alloca_h = yes; then
9353 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9358 $as_echo_n "checking for alloca... " >&6; }
9359 if ${ac_cv_func_alloca_works+:} false
; then :
9360 $as_echo_n "(cached) " >&6
9362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9363 /* end confdefs.h. */
9365 # define alloca __builtin_alloca
9368 # include <malloc.h>
9369 # define alloca _alloca
9371 # ifdef HAVE_ALLOCA_H
9372 # include <alloca.h>
9377 # ifndef alloca /* predefined by HP cc +Olibcalls */
9378 void *alloca (size_t);
9388 char *p = (char *) alloca (1);
9394 if ac_fn_c_try_link
"$LINENO"; then :
9395 ac_cv_func_alloca_works
=yes
9397 ac_cv_func_alloca_works
=no
9399 rm -f core conftest.err conftest.
$ac_objext \
9400 conftest
$ac_exeext conftest.
$ac_ext
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9403 $as_echo "$ac_cv_func_alloca_works" >&6; }
9405 if test $ac_cv_func_alloca_works = yes; then
9407 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9410 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9411 # that cause trouble. Some versions do not even contain alloca or
9412 # contain a buggy version. If you still want to use their alloca,
9413 # use ar to extract alloca.o from them instead of compiling alloca.c.
9415 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
9417 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9421 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9422 if ${ac_cv_os_cray+:} false
; then :
9423 $as_echo_n "(cached) " >&6
9425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h. */
9427 #if defined CRAY && ! defined CRAY2
9434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9435 $EGREP "webecray" >/dev
/null
2>&1; then :
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9444 $as_echo "$ac_cv_os_cray" >&6; }
9445 if test $ac_cv_os_cray = yes; then
9446 for ac_func
in _getb67 GETB67 getb67
; do
9447 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9448 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9449 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9451 cat >>confdefs.h
<<_ACEOF
9452 #define CRAY_STACKSEG_END $ac_func
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9462 $as_echo_n "checking stack direction for C alloca... " >&6; }
9463 if ${ac_cv_c_stack_direction+:} false
; then :
9464 $as_echo_n "(cached) " >&6
9466 if test "$cross_compiling" = yes; then :
9467 ac_cv_c_stack_direction
=0
9469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9471 $ac_includes_default
9473 find_stack_direction (int *addr, int depth)
9478 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
9479 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
9484 main (int argc, char **argv)
9486 return find_stack_direction (0, argc + !argv + 20) < 0;
9489 if ac_fn_c_try_run
"$LINENO"; then :
9490 ac_cv_c_stack_direction
=1
9492 ac_cv_c_stack_direction
=-1
9494 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9495 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9500 $as_echo "$ac_cv_c_stack_direction" >&6; }
9501 cat >>confdefs.h
<<_ACEOF
9502 #define STACK_DIRECTION $ac_cv_c_stack_direction
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
9509 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
9510 if ${ac_cv_func_getpgrp_void+:} false
; then :
9511 $as_echo_n "(cached) " >&6
9513 # Use it with a single arg.
9514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9515 /* end confdefs.h. */
9516 $ac_includes_default
9525 if ac_fn_c_try_compile
"$LINENO"; then :
9526 ac_cv_func_getpgrp_void
=no
9528 ac_cv_func_getpgrp_void
=yes
9530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
9534 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
9535 if test $ac_cv_func_getpgrp_void = yes; then
9537 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
9541 if ${ac_cv_func_setvbuf_reversed+:} false
; then :
9542 $as_echo_n "(cached) " >&6
9544 ac_cv_func_setvbuf_reversed
=no
9548 for ac_func
in vprintf
9550 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
9551 if test "x$ac_cv_func_vprintf" = xyes
; then :
9552 cat >>confdefs.h
<<_ACEOF
9553 #define HAVE_VPRINTF 1
9556 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
9557 if test "x$ac_cv_func__doprnt" = xyes
; then :
9559 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
9568 $as_echo_n "checking for working strcoll... " >&6; }
9569 if ${ac_cv_func_strcoll_works+:} false
; then :
9570 $as_echo_n "(cached) " >&6
9572 if test "$cross_compiling" = yes; then :
9573 ac_cv_func_strcoll_works
=no
9575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9576 /* end confdefs.h. */
9577 $ac_includes_default
9581 return (strcoll ("abc", "def") >= 0 ||
9582 strcoll ("ABC", "DEF") >= 0 ||
9583 strcoll ("123", "456") >= 0)
9588 if ac_fn_c_try_run
"$LINENO"; then :
9589 ac_cv_func_strcoll_works
=yes
9591 ac_cv_func_strcoll_works
=no
9593 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9594 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
9599 $as_echo "$ac_cv_func_strcoll_works" >&6; }
9600 if test $ac_cv_func_strcoll_works = yes; then
9602 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
9608 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
9609 MALLOC_TARGET
=alloca
9612 MALLOC_LIB
='-lmalloc'
9613 MALLOC_LIBRARY
='$(ALLOC_LIBDIR)/libmalloc.a'
9614 MALLOC_LDFLAGS
='-L$(ALLOC_LIBDIR)'
9615 MALLOC_DEP
='$(MALLOC_LIBRARY)'
9618 if test "$ac_cv_func_vprintf" = no
; then
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of vprintf in stdio.h" >&5
9620 $as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; }
9621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9622 /* end confdefs.h. */
9626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9627 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev
/null
2>&1; then :
9628 ac_cv_func_vprintf
=yes
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vprintf" >&5
9633 $as_echo "$ac_cv_func_vprintf" >&6; }
9634 if test $ac_cv_func_vprintf = yes; then
9635 $as_echo "#define HAVE_VPRINTF 1" >>confdefs.h
9640 if test "$ac_cv_func_vprintf" = no
&& test "$ac_cv_func__doprnt" = "yes"; then
9641 case " $LIBOBJS " in
9642 *" vprint.$ac_objext "* ) ;;
9643 *) LIBOBJS
="$LIBOBJS vprint.$ac_objext"
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9650 $as_echo_n "checking return type of signal handlers... " >&6; }
9651 if ${ac_cv_type_signal+:} false
; then :
9652 $as_echo_n "(cached) " >&6
9654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9656 #include <sys/types.h>
9662 return *(signal (0, 0)) (0) == 1;
9667 if ac_fn_c_try_compile
"$LINENO"; then :
9668 ac_cv_type_signal
=int
9670 ac_cv_type_signal
=void
9672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9675 $as_echo "$ac_cv_type_signal" >&6; }
9677 cat >>confdefs.h
<<_ACEOF
9678 #define RETSIGTYPE $ac_cv_type_signal
9683 ac_fn_c_check_func
"$LINENO" "__setostype" "ac_cv_func___setostype"
9684 if test "x$ac_cv_func___setostype" = xyes
; then :
9685 $as_echo "#define HAVE_SETOSTYPE 1" >>confdefs.h
9689 ac_fn_c_check_func
"$LINENO" "wait3" "ac_cv_func_wait3"
9690 if test "x$ac_cv_func_wait3" = xyes
; then :
9691 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
9696 ac_fn_c_check_func
"$LINENO" "mkfifo" "ac_cv_func_mkfifo"
9697 if test "x$ac_cv_func_mkfifo" = xyes
; then :
9698 $as_echo "#define HAVE_MKFIFO 1" >>confdefs.h
9701 $as_echo "#define MKFIFO_MISSING 1" >>confdefs.h
9706 for ac_func
in dup2 eaccess fcntl getdtablesize getgroups gethostname \
9707 getpagesize getpeername getrlimit getrusage gettimeofday \
9708 kill killpg lstat readlink sbrk
select setdtablesize \
9709 setitimer tcgetpgrp uname
ulimit waitpid
9711 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9712 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9713 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9714 cat >>confdefs.h
<<_ACEOF
9715 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9721 ac_fn_c_check_func
"$LINENO" "rename" "ac_cv_func_rename"
9722 if test "x$ac_cv_func_rename" = xyes
; then :
9723 $as_echo "#define HAVE_RENAME 1" >>confdefs.h
9726 case " $LIBOBJS " in
9727 *" rename.$ac_objext "* ) ;;
9728 *) LIBOBJS
="$LIBOBJS rename.$ac_objext"
9736 for ac_func
in bcopy bzero confstr faccessat fnmatch \
9737 getaddrinfo gethostbyname getservbyname getservent inet_aton \
9738 imaxdiv memmove pathconf putenv raise regcomp regexec \
9739 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
9740 sysconf syslog tcgetattr
times ttyname tzset unsetenv
9742 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9743 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9744 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9745 cat >>confdefs.h
<<_ACEOF
9746 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9753 for ac_func
in vasprintf asprintf
9755 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9756 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9757 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9758 cat >>confdefs.h
<<_ACEOF
9759 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9765 for ac_func
in isascii isblank isgraph isprint isspace isxdigit
9767 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9768 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9769 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9770 cat >>confdefs.h
<<_ACEOF
9771 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9777 for ac_func
in getpwent getpwnam getpwuid
9779 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9780 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9781 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9782 cat >>confdefs.h
<<_ACEOF
9783 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9789 ac_fn_c_check_func
"$LINENO" "getcwd" "ac_cv_func_getcwd"
9790 if test "x$ac_cv_func_getcwd" = xyes
; then :
9791 $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
9794 case " $LIBOBJS " in
9795 *" getcwd.$ac_objext "* ) ;;
9796 *) LIBOBJS
="$LIBOBJS getcwd.$ac_objext"
9802 ac_fn_c_check_func
"$LINENO" "memset" "ac_cv_func_memset"
9803 if test "x$ac_cv_func_memset" = xyes
; then :
9804 $as_echo "#define HAVE_MEMSET 1" >>confdefs.h
9807 case " $LIBOBJS " in
9808 *" memset.$ac_objext "* ) ;;
9809 *) LIBOBJS
="$LIBOBJS memset.$ac_objext"
9816 ac_fn_c_check_func
"$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
9817 if test "x$ac_cv_func_strcasecmp" = xyes
; then :
9818 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
9821 case " $LIBOBJS " in
9822 *" strcasecmp.$ac_objext "* ) ;;
9823 *) LIBOBJS
="$LIBOBJS strcasecmp.$ac_objext"
9829 ac_fn_c_check_func
"$LINENO" "strcasestr" "ac_cv_func_strcasestr"
9830 if test "x$ac_cv_func_strcasestr" = xyes
; then :
9831 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
9834 case " $LIBOBJS " in
9835 *" strcasestr.$ac_objext "* ) ;;
9836 *) LIBOBJS
="$LIBOBJS strcasestr.$ac_objext"
9842 ac_fn_c_check_func
"$LINENO" "strerror" "ac_cv_func_strerror"
9843 if test "x$ac_cv_func_strerror" = xyes
; then :
9844 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
9847 case " $LIBOBJS " in
9848 *" strerror.$ac_objext "* ) ;;
9849 *) LIBOBJS
="$LIBOBJS strerror.$ac_objext"
9855 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
9856 if test "x$ac_cv_func_strftime" = xyes
; then :
9857 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9860 case " $LIBOBJS " in
9861 *" strftime.$ac_objext "* ) ;;
9862 *) LIBOBJS
="$LIBOBJS strftime.$ac_objext"
9868 ac_fn_c_check_func
"$LINENO" "strnlen" "ac_cv_func_strnlen"
9869 if test "x$ac_cv_func_strnlen" = xyes
; then :
9870 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
9873 case " $LIBOBJS " in
9874 *" strnlen.$ac_objext "* ) ;;
9875 *) LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
9881 ac_fn_c_check_func
"$LINENO" "strpbrk" "ac_cv_func_strpbrk"
9882 if test "x$ac_cv_func_strpbrk" = xyes
; then :
9883 $as_echo "#define HAVE_STRPBRK 1" >>confdefs.h
9886 case " $LIBOBJS " in
9887 *" strpbrk.$ac_objext "* ) ;;
9888 *) LIBOBJS
="$LIBOBJS strpbrk.$ac_objext"
9894 ac_fn_c_check_func
"$LINENO" "strstr" "ac_cv_func_strstr"
9895 if test "x$ac_cv_func_strstr" = xyes
; then :
9896 $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
9899 case " $LIBOBJS " in
9900 *" strstr.$ac_objext "* ) ;;
9901 *) LIBOBJS
="$LIBOBJS strstr.$ac_objext"
9908 ac_fn_c_check_func
"$LINENO" "strtod" "ac_cv_func_strtod"
9909 if test "x$ac_cv_func_strtod" = xyes
; then :
9910 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
9913 case " $LIBOBJS " in
9914 *" strtod.$ac_objext "* ) ;;
9915 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext"
9921 ac_fn_c_check_func
"$LINENO" "strtol" "ac_cv_func_strtol"
9922 if test "x$ac_cv_func_strtol" = xyes
; then :
9923 $as_echo "#define HAVE_STRTOL 1" >>confdefs.h
9926 case " $LIBOBJS " in
9927 *" strtol.$ac_objext "* ) ;;
9928 *) LIBOBJS
="$LIBOBJS strtol.$ac_objext"
9934 ac_fn_c_check_func
"$LINENO" "strtoul" "ac_cv_func_strtoul"
9935 if test "x$ac_cv_func_strtoul" = xyes
; then :
9936 $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h
9939 case " $LIBOBJS " in
9940 *" strtoul.$ac_objext "* ) ;;
9941 *) LIBOBJS
="$LIBOBJS strtoul.$ac_objext"
9947 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
9948 if test "x$ac_cv_func_strtoll" = xyes
; then :
9949 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
9952 case " $LIBOBJS " in
9953 *" strtoll.$ac_objext "* ) ;;
9954 *) LIBOBJS
="$LIBOBJS strtoll.$ac_objext"
9960 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
9961 if test "x$ac_cv_func_strtoull" = xyes
; then :
9962 $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h
9965 case " $LIBOBJS " in
9966 *" strtoull.$ac_objext "* ) ;;
9967 *) LIBOBJS
="$LIBOBJS strtoull.$ac_objext"
9973 ac_fn_c_check_func
"$LINENO" "strtoimax" "ac_cv_func_strtoimax"
9974 if test "x$ac_cv_func_strtoimax" = xyes
; then :
9975 $as_echo "#define HAVE_STRTOIMAX 1" >>confdefs.h
9978 case " $LIBOBJS " in
9979 *" strtoimax.$ac_objext "* ) ;;
9980 *) LIBOBJS
="$LIBOBJS strtoimax.$ac_objext"
9986 ac_fn_c_check_func
"$LINENO" "strtoumax" "ac_cv_func_strtoumax"
9987 if test "x$ac_cv_func_strtoumax" = xyes
; then :
9988 $as_echo "#define HAVE_STRTOUMAX 1" >>confdefs.h
9991 case " $LIBOBJS " in
9992 *" strtoumax.$ac_objext "* ) ;;
9993 *) LIBOBJS
="$LIBOBJS strtoumax.$ac_objext"
10000 ac_fn_c_check_func
"$LINENO" "dprintf" "ac_cv_func_dprintf"
10001 if test "x$ac_cv_func_dprintf" = xyes
; then :
10002 $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h
10005 case " $LIBOBJS " in
10006 *" dprintf.$ac_objext "* ) ;;
10007 *) LIBOBJS
="$LIBOBJS dprintf.$ac_objext"
10014 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
10015 if test "x$ac_cv_func_strchrnul" = xyes
; then :
10016 $as_echo "#define HAVE_STRCHRNUL 1" >>confdefs.h
10019 case " $LIBOBJS " in
10020 *" strchrnul.$ac_objext "* ) ;;
10021 *) LIBOBJS
="$LIBOBJS strchrnul.$ac_objext"
10029 ac_fn_c_check_decl
"$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h>
10031 if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = xyes
; then :
10037 cat >>confdefs.h
<<_ACEOF
10038 #define HAVE_DECL_AUDIT_USER_TTY $ac_have_decl
10042 ac_fn_c_check_decl
"$LINENO" "confstr" "ac_cv_have_decl_confstr" "$ac_includes_default"
10043 if test "x$ac_cv_have_decl_confstr" = xyes
; then :
10049 cat >>confdefs.h
<<_ACEOF
10050 #define HAVE_DECL_CONFSTR $ac_have_decl
10053 ac_fn_c_check_decl
"$LINENO" "printf" "ac_cv_have_decl_printf" "$ac_includes_default"
10054 if test "x$ac_cv_have_decl_printf" = xyes
; then :
10060 cat >>confdefs.h
<<_ACEOF
10061 #define HAVE_DECL_PRINTF $ac_have_decl
10064 ac_fn_c_check_decl
"$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
10065 if test "x$ac_cv_have_decl_sbrk" = xyes
; then :
10071 cat >>confdefs.h
<<_ACEOF
10072 #define HAVE_DECL_SBRK $ac_have_decl
10075 ac_fn_c_check_decl
"$LINENO" "setregid" "ac_cv_have_decl_setregid" "$ac_includes_default"
10076 if test "x$ac_cv_have_decl_setregid" = xyes
; then :
10082 cat >>confdefs.h
<<_ACEOF
10083 #define HAVE_DECL_SETREGID $ac_have_decl
10086 ac_fn_c_check_decl
"$LINENO" "strcpy" "ac_cv_have_decl_strcpy" "$ac_includes_default"
10087 if test "x$ac_cv_have_decl_strcpy" = xyes
; then :
10093 cat >>confdefs.h
<<_ACEOF
10094 #define HAVE_DECL_STRCPY $ac_have_decl
10097 ac_fn_c_check_decl
"$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
10098 if test "x$ac_cv_have_decl_strsignal" = xyes
; then :
10104 cat >>confdefs.h
<<_ACEOF
10105 #define HAVE_DECL_STRSIGNAL $ac_have_decl
10109 ac_fn_c_check_decl
"$LINENO" "strtold" "ac_cv_have_decl_strtold" "$ac_includes_default"
10110 if test "x$ac_cv_have_decl_strtold" = xyes
; then :
10116 cat >>confdefs.h
<<_ACEOF
10117 #define HAVE_DECL_STRTOLD $ac_have_decl
10119 if test $ac_have_decl = 1; then :
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken strtold" >&5
10122 $as_echo_n "checking for broken strtold... " >&6; }
10123 if ${bash_cv_strtold_broken+:} false
; then :
10124 $as_echo_n "(cached) " >&6
10126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10128 #include <stdlib.h>
10132 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
10137 if ac_fn_c_try_compile
"$LINENO"; then :
10138 bash_cv_strtold_broken
=no
10140 bash_cv_strtold_broken
=yes
10142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_strtold_broken" >&5
10148 $as_echo "$bash_cv_strtold_broken" >&6; }
10149 if test "$bash_cv_strtold_broken" = "yes" ; then
10150 $as_echo "#define STRTOLD_BROKEN 1" >>confdefs.h
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoimax" >&5
10161 $as_echo_n "checking for declaration of strtoimax... " >&6; }
10162 if ${bash_cv_decl_strtoimax+:} false
; then :
10163 $as_echo_n "(cached) " >&6
10165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10166 /* end confdefs.h. */
10169 # include <stdlib.h>
10171 #if HAVE_INTTYPES_H
10172 # include <inttypes.h>
10183 if ac_fn_c_try_link
"$LINENO"; then :
10184 bash_cv_decl_strtoimax
=yes
10186 bash_cv_decl_strtoimax
=no
10188 rm -f core conftest.err conftest.
$ac_objext \
10189 conftest
$ac_exeext conftest.
$ac_ext
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoimax" >&5
10192 $as_echo "$bash_cv_decl_strtoimax" >&6; }
10193 bash_tr_func
=HAVE_DECL_
`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10194 if test $bash_cv_decl_strtoimax = yes; then
10195 cat >>confdefs.h
<<_ACEOF
10196 #define $bash_tr_func 1
10200 cat >>confdefs.h
<<_ACEOF
10201 #define $bash_tr_func 0
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtol" >&5
10210 $as_echo_n "checking for declaration of strtol... " >&6; }
10211 if ${bash_cv_decl_strtol+:} false
; then :
10212 $as_echo_n "(cached) " >&6
10214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10215 /* end confdefs.h. */
10218 # include <stdlib.h>
10220 #if HAVE_INTTYPES_H
10221 # include <inttypes.h>
10232 if ac_fn_c_try_link
"$LINENO"; then :
10233 bash_cv_decl_strtol
=yes
10235 bash_cv_decl_strtol
=no
10237 rm -f core conftest.err conftest.
$ac_objext \
10238 conftest
$ac_exeext conftest.
$ac_ext
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtol" >&5
10241 $as_echo "$bash_cv_decl_strtol" >&6; }
10242 bash_tr_func
=HAVE_DECL_
`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10243 if test $bash_cv_decl_strtol = yes; then
10244 cat >>confdefs.h
<<_ACEOF
10245 #define $bash_tr_func 1
10249 cat >>confdefs.h
<<_ACEOF
10250 #define $bash_tr_func 0
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoll" >&5
10259 $as_echo_n "checking for declaration of strtoll... " >&6; }
10260 if ${bash_cv_decl_strtoll+:} false
; then :
10261 $as_echo_n "(cached) " >&6
10263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10264 /* end confdefs.h. */
10267 # include <stdlib.h>
10269 #if HAVE_INTTYPES_H
10270 # include <inttypes.h>
10281 if ac_fn_c_try_link
"$LINENO"; then :
10282 bash_cv_decl_strtoll
=yes
10284 bash_cv_decl_strtoll
=no
10286 rm -f core conftest.err conftest.
$ac_objext \
10287 conftest
$ac_exeext conftest.
$ac_ext
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoll" >&5
10290 $as_echo "$bash_cv_decl_strtoll" >&6; }
10291 bash_tr_func
=HAVE_DECL_
`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10292 if test $bash_cv_decl_strtoll = yes; then
10293 cat >>confdefs.h
<<_ACEOF
10294 #define $bash_tr_func 1
10298 cat >>confdefs.h
<<_ACEOF
10299 #define $bash_tr_func 0
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoul" >&5
10308 $as_echo_n "checking for declaration of strtoul... " >&6; }
10309 if ${bash_cv_decl_strtoul+:} false
; then :
10310 $as_echo_n "(cached) " >&6
10312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10313 /* end confdefs.h. */
10316 # include <stdlib.h>
10318 #if HAVE_INTTYPES_H
10319 # include <inttypes.h>
10330 if ac_fn_c_try_link
"$LINENO"; then :
10331 bash_cv_decl_strtoul
=yes
10333 bash_cv_decl_strtoul
=no
10335 rm -f core conftest.err conftest.
$ac_objext \
10336 conftest
$ac_exeext conftest.
$ac_ext
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoul" >&5
10339 $as_echo "$bash_cv_decl_strtoul" >&6; }
10340 bash_tr_func
=HAVE_DECL_
`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10341 if test $bash_cv_decl_strtoul = yes; then
10342 cat >>confdefs.h
<<_ACEOF
10343 #define $bash_tr_func 1
10347 cat >>confdefs.h
<<_ACEOF
10348 #define $bash_tr_func 0
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoull" >&5
10357 $as_echo_n "checking for declaration of strtoull... " >&6; }
10358 if ${bash_cv_decl_strtoull+:} false
; then :
10359 $as_echo_n "(cached) " >&6
10361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10365 # include <stdlib.h>
10367 #if HAVE_INTTYPES_H
10368 # include <inttypes.h>
10379 if ac_fn_c_try_link
"$LINENO"; then :
10380 bash_cv_decl_strtoull
=yes
10382 bash_cv_decl_strtoull
=no
10384 rm -f core conftest.err conftest.
$ac_objext \
10385 conftest
$ac_exeext conftest.
$ac_ext
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoull" >&5
10388 $as_echo "$bash_cv_decl_strtoull" >&6; }
10389 bash_tr_func
=HAVE_DECL_
`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10390 if test $bash_cv_decl_strtoull = yes; then
10391 cat >>confdefs.h
<<_ACEOF
10392 #define $bash_tr_func 1
10396 cat >>confdefs.h
<<_ACEOF
10397 #define $bash_tr_func 0
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoumax" >&5
10406 $as_echo_n "checking for declaration of strtoumax... " >&6; }
10407 if ${bash_cv_decl_strtoumax+:} false
; then :
10408 $as_echo_n "(cached) " >&6
10410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10411 /* end confdefs.h. */
10414 # include <stdlib.h>
10416 #if HAVE_INTTYPES_H
10417 # include <inttypes.h>
10428 if ac_fn_c_try_link
"$LINENO"; then :
10429 bash_cv_decl_strtoumax
=yes
10431 bash_cv_decl_strtoumax
=no
10433 rm -f core conftest.err conftest.
$ac_objext \
10434 conftest
$ac_exeext conftest.
$ac_ext
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoumax" >&5
10437 $as_echo "$bash_cv_decl_strtoumax" >&6; }
10438 bash_tr_func
=HAVE_DECL_
`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10439 if test $bash_cv_decl_strtoumax = yes; then
10440 cat >>confdefs.h
<<_ACEOF
10441 #define $bash_tr_func 1
10445 cat >>confdefs.h
<<_ACEOF
10446 #define $bash_tr_func 0
10457 for ac_func
in $ac_func_list
10459 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10460 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10461 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10462 cat >>confdefs.h
<<_ACEOF
10463 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
10474 $as_echo_n "checking for working mktime... " >&6; }
10475 if ${ac_cv_func_working_mktime+:} false
; then :
10476 $as_echo_n "(cached) " >&6
10478 if test "$cross_compiling" = yes; then :
10479 ac_cv_func_working_mktime
=no
10481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h. */
10483 /* Test program from Paul Eggert and Tony Leneis. */
10484 #ifdef TIME_WITH_SYS_TIME
10485 # include <sys/time.h>
10488 # ifdef HAVE_SYS_TIME_H
10489 # include <sys/time.h>
10495 #include <limits.h>
10496 #include <stdlib.h>
10498 #ifdef HAVE_UNISTD_H
10499 # include <unistd.h>
10503 # define alarm(X) /* empty */
10506 /* Work around redefinition to rpl_putenv by other config tests. */
10509 static time_t time_t_max;
10510 static time_t time_t_min;
10512 /* Values we'll use to set the TZ environment variable. */
10513 static const char *tz_strings[] = {
10514 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10515 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10517 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10519 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
10520 Based on a problem report from Andreas Jaeger. */
10522 spring_forward_gap ()
10524 /* glibc (up to about 1998-10-07) failed this test. */
10527 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10528 instead of "TZ=America/Vancouver" in order to detect the bug even
10529 on systems that don't support the Olson extension, or don't have the
10530 full zoneinfo tables installed. */
10531 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
10540 return mktime (&tm) != (time_t) -1;
10544 mktime_test1 (time_t now)
10547 return ! (lt = localtime (&now)) || mktime (lt) == now;
10551 mktime_test (time_t now)
10553 return (mktime_test1 (now)
10554 && mktime_test1 ((time_t) (time_t_max - now))
10555 && mktime_test1 ((time_t) (time_t_min + now)));
10561 /* Based on code from Ariel Faigon. */
10571 return tm.tm_mon == 2 && tm.tm_mday == 31;
10575 bigtime_test (int j)
10579 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10580 now = mktime (&tm);
10581 if (now != (time_t) -1)
10583 struct tm *lt = localtime (&now);
10585 && lt->tm_year == tm.tm_year
10586 && lt->tm_mon == tm.tm_mon
10587 && lt->tm_mday == tm.tm_mday
10588 && lt->tm_hour == tm.tm_hour
10589 && lt->tm_min == tm.tm_min
10590 && lt->tm_sec == tm.tm_sec
10591 && lt->tm_yday == tm.tm_yday
10592 && lt->tm_wday == tm.tm_wday
10593 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10594 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10603 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
10604 ignoring leap seconds. */
10605 unsigned long int answer = 2527315200UL;
10609 tm.tm_year = 2050 - 1900;
10612 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
10615 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10616 instead of "TZ=America/Vancouver" in order to detect the bug even
10617 on systems that don't support the Olson extension, or don't have the
10618 full zoneinfo tables installed. */
10619 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
10623 /* Check that the result is either a failure, or close enough
10624 to the correct answer that we can assume the discrepancy is
10625 due to leap seconds. */
10626 return (t == (time_t) -1
10627 || (0 < t && answer - 120 <= t && t <= answer + 120));
10636 /* This test makes some buggy mktime implementations loop.
10637 Give up after 60 seconds; a mktime slower than that
10638 isn't worth using anyway. */
10643 t = (time_t_max << 1) + 1;
10644 if (t <= time_t_max)
10648 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
10650 delta = time_t_max / 997; /* a suitable prime number */
10651 for (i = 0; i < N_STRINGS; i++)
10654 putenv ((char*) tz_strings[i]);
10656 for (t = 0; t <= time_t_max - delta; t += delta)
10657 if (! mktime_test (t))
10659 if (! (mktime_test ((time_t) 1)
10660 && mktime_test ((time_t) (60 * 60))
10661 && mktime_test ((time_t) (60 * 60 * 24))))
10664 for (j = 1; ; j <<= 1)
10665 if (! bigtime_test (j))
10667 else if (INT_MAX / 2 < j)
10669 if (! bigtime_test (INT_MAX))
10672 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
10675 if ac_fn_c_try_run
"$LINENO"; then :
10676 ac_cv_func_working_mktime
=yes
10678 ac_cv_func_working_mktime
=no
10680 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10681 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
10686 $as_echo "$ac_cv_func_working_mktime" >&6; }
10687 if test $ac_cv_func_working_mktime = no
; then
10688 case " $LIBOBJS " in
10689 *" mktime.$ac_objext "* ) ;;
10690 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
10698 for ac_header
in argz.h errno.h fcntl.h malloc.h stdio_ext.h
10700 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10701 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10702 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10703 cat >>confdefs.h
<<_ACEOF
10704 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10713 for ac_func
in getpagesize
10715 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10716 if test "x$ac_cv_func_getpagesize" = xyes
; then :
10717 cat >>confdefs.h
<<_ACEOF
10718 #define HAVE_GETPAGESIZE 1
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10725 $as_echo_n "checking for working mmap... " >&6; }
10726 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
10727 $as_echo_n "(cached) " >&6
10729 if test "$cross_compiling" = yes; then :
10730 ac_cv_func_mmap_fixed_mapped
=no
10732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h. */
10734 $ac_includes_default
10735 /* malloc might have been renamed as rpl_malloc. */
10738 /* Thanks to Mike Haertel and Jim Avera for this test.
10739 Here is a matrix of mmap possibilities:
10740 mmap private not fixed
10741 mmap private fixed at somewhere currently unmapped
10742 mmap private fixed at somewhere already mapped
10743 mmap shared not fixed
10744 mmap shared fixed at somewhere currently unmapped
10745 mmap shared fixed at somewhere already mapped
10746 For private mappings, we should verify that changes cannot be read()
10747 back from the file, nor mmap's back from the file at a different
10748 address. (There have been systems where private was not correctly
10749 implemented like the infamous i386 svr4.0, and systems where the
10750 VM page cache was not coherent with the file system buffer cache
10751 like early versions of FreeBSD and possibly contemporary NetBSD.)
10752 For shared mappings, we should conversely verify that changes get
10753 propagated back to all the places they're supposed to be.
10755 Grep wants private fixed already mapped.
10756 The main things grep needs to know about mmap are:
10757 * does it exist and is it safe to write into the mmap'd area
10758 * how to use it (BSD variants) */
10761 #include <sys/mman.h>
10763 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10767 /* This mess was copied from the GNU getpagesize.h. */
10768 #ifndef HAVE_GETPAGESIZE
10769 # ifdef _SC_PAGESIZE
10770 # define getpagesize() sysconf(_SC_PAGESIZE)
10771 # else /* no _SC_PAGESIZE */
10772 # ifdef HAVE_SYS_PARAM_H
10773 # include <sys/param.h>
10774 # ifdef EXEC_PAGESIZE
10775 # define getpagesize() EXEC_PAGESIZE
10776 # else /* no EXEC_PAGESIZE */
10778 # define getpagesize() NBPG * CLSIZE
10781 # endif /* no CLSIZE */
10782 # else /* no NBPG */
10784 # define getpagesize() NBPC
10785 # else /* no NBPC */
10787 # define getpagesize() PAGESIZE
10788 # endif /* PAGESIZE */
10789 # endif /* no NBPC */
10790 # endif /* no NBPG */
10791 # endif /* no EXEC_PAGESIZE */
10792 # else /* no HAVE_SYS_PARAM_H */
10793 # define getpagesize() 8192 /* punt totally */
10794 # endif /* no HAVE_SYS_PARAM_H */
10795 # endif /* no _SC_PAGESIZE */
10797 #endif /* no HAVE_GETPAGESIZE */
10802 char *data, *data2, *data3;
10803 const char *cdata2;
10807 pagesize = getpagesize ();
10809 /* First, make a file with some known garbage in it. */
10810 data = (char *) malloc (pagesize);
10813 for (i = 0; i < pagesize; ++i)
10814 *(data + i) = rand ();
10816 fd = creat ("conftest.mmap", 0600);
10819 if (write (fd, data, pagesize) != pagesize)
10823 /* Next, check that the tail of a page is zero-filled. File must have
10824 non-zero length, otherwise we risk SIGBUS for entire page. */
10825 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10829 if (write (fd2, cdata2, 1) != 1)
10831 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10832 if (data2 == MAP_FAILED)
10834 for (i = 0; i < pagesize; ++i)
10838 if (munmap (data2, pagesize))
10841 /* Next, try to mmap the file at a fixed address which already has
10842 something else allocated at it. If we can, also make sure that
10843 we see the same garbage. */
10844 fd = open ("conftest.mmap", O_RDWR);
10847 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10848 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10850 for (i = 0; i < pagesize; ++i)
10851 if (*(data + i) != *(data2 + i))
10854 /* Finally, make sure that changes to the mapped area do not
10855 percolate back to the file as seen by read(). (This is a bug on
10856 some variants of i386 svr4.0.) */
10857 for (i = 0; i < pagesize; ++i)
10858 *(data2 + i) = *(data2 + i) + 1;
10859 data3 = (char *) malloc (pagesize);
10862 if (read (fd, data3, pagesize) != pagesize)
10864 for (i = 0; i < pagesize; ++i)
10865 if (*(data + i) != *(data3 + i))
10871 if ac_fn_c_try_run
"$LINENO"; then :
10872 ac_cv_func_mmap_fixed_mapped
=yes
10874 ac_cv_func_mmap_fixed_mapped
=no
10876 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10877 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10882 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10883 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10885 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10888 rm -f conftest.mmap conftest.txt
10890 for ac_func
in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
10891 munmap stpcpy strcspn strdup
10893 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10894 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10895 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10896 cat >>confdefs.h
<<_ACEOF
10897 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10904 INTL_DEP
= INTL_INC
= LIBINTL_H
=
10905 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
10906 INTL_DEP
='${INTL_LIBDIR}/libintl.a'
10907 INTL_INC
='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
10908 LIBINTL_H
='${INTL_BUILDDIR}/libintl.h'
10916 for ac_header
in wctype.h
10918 ac_fn_c_check_header_mongrel
"$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
10919 if test "x$ac_cv_header_wctype_h" = xyes
; then :
10920 cat >>confdefs.h
<<_ACEOF
10921 #define HAVE_WCTYPE_H 1
10928 for ac_header
in wchar.h
10930 ac_fn_c_check_header_mongrel
"$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
10931 if test "x$ac_cv_header_wchar_h" = xyes
; then :
10932 cat >>confdefs.h
<<_ACEOF
10933 #define HAVE_WCHAR_H 1
10940 for ac_header
in langinfo.h
10942 ac_fn_c_check_header_mongrel
"$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
10943 if test "x$ac_cv_header_langinfo_h" = xyes
; then :
10944 cat >>confdefs.h
<<_ACEOF
10945 #define HAVE_LANGINFO_H 1
10953 ac_fn_c_check_func
"$LINENO" "mbrlen" "ac_cv_func_mbrlen"
10954 if test "x$ac_cv_func_mbrlen" = xyes
; then :
10955 $as_echo "#define HAVE_MBRLEN 1" >>confdefs.h
10959 ac_fn_c_check_func
"$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp"
10960 if test "x$ac_cv_func_mbscasecmp" = xyes
; then :
10961 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
10965 ac_fn_c_check_func
"$LINENO" "mbscmp" "ac_cv_func_mbscmp"
10966 if test "x$ac_cv_func_mbscmp" = xyes
; then :
10967 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
10971 ac_fn_c_check_func
"$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs"
10972 if test "x$ac_cv_func_mbsnrtowcs" = xyes
; then :
10973 $as_echo "#define HAVE_MBSNRTOWCS 1" >>confdefs.h
10977 ac_fn_c_check_func
"$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs"
10978 if test "x$ac_cv_func_mbsrtowcs" = xyes
; then :
10979 $as_echo "#define HAVE_MBSRTOWCS 1" >>confdefs.h
10984 ac_fn_c_check_func
"$LINENO" "mbschr" "ac_cv_func_mbschr"
10985 if test "x$ac_cv_func_mbschr" = xyes
; then :
10986 $as_echo "#define HAVE_MBSCHR 1" >>confdefs.h
10989 case " $LIBOBJS " in
10990 *" mbschr.$ac_objext "* ) ;;
10991 *) LIBOBJS
="$LIBOBJS mbschr.$ac_objext"
10999 ac_fn_c_check_func
"$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
11000 if test "x$ac_cv_func_wcrtomb" = xyes
; then :
11001 $as_echo "#define HAVE_WCRTOMB 1" >>confdefs.h
11005 ac_fn_c_check_func
"$LINENO" "wcscoll" "ac_cv_func_wcscoll"
11006 if test "x$ac_cv_func_wcscoll" = xyes
; then :
11007 $as_echo "#define HAVE_WCSCOLL 1" >>confdefs.h
11011 ac_fn_c_check_func
"$LINENO" "wcsdup" "ac_cv_func_wcsdup"
11012 if test "x$ac_cv_func_wcsdup" = xyes
; then :
11013 $as_echo "#define HAVE_WCSDUP 1" >>confdefs.h
11017 ac_fn_c_check_func
"$LINENO" "wcwidth" "ac_cv_func_wcwidth"
11018 if test "x$ac_cv_func_wcwidth" = xyes
; then :
11019 $as_echo "#define HAVE_WCWIDTH 1" >>confdefs.h
11023 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
11024 if test "x$ac_cv_func_wctype" = xyes
; then :
11025 $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h
11030 ac_fn_c_check_func
"$LINENO" "wcswidth" "ac_cv_func_wcswidth"
11031 if test "x$ac_cv_func_wcswidth" = xyes
; then :
11032 $as_echo "#define HAVE_WCSWIDTH 1" >>confdefs.h
11035 case " $LIBOBJS " in
11036 *" wcswidth.$ac_objext "* ) ;;
11037 *) LIBOBJS
="$LIBOBJS wcswidth.$ac_objext"
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
11047 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
11048 if ${ac_cv_func_mbrtowc+:} false
; then :
11049 $as_echo_n "(cached) " >&6
11051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h. */
11058 char const s[] = "";
11061 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
11066 if ac_fn_c_try_link
"$LINENO"; then :
11067 ac_cv_func_mbrtowc
=yes
11069 ac_cv_func_mbrtowc
=no
11071 rm -f core conftest.err conftest.
$ac_objext \
11072 conftest
$ac_exeext conftest.
$ac_ext
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
11075 $as_echo "$ac_cv_func_mbrtowc" >&6; }
11076 if test $ac_cv_func_mbrtowc = yes; then
11078 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
11082 if test $ac_cv_func_mbrtowc = yes; then
11083 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
11087 for ac_func
in iswlower iswupper towlower towupper iswctype
11089 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11090 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11091 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11092 cat >>confdefs.h
<<_ACEOF
11093 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11101 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11102 if ${bash_cv_langinfo_codeset+:} false
; then :
11103 $as_echo_n "(cached) " >&6
11105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11106 /* end confdefs.h. */
11107 #include <langinfo.h>
11111 char* cs = nl_langinfo(CODESET);
11116 if ac_fn_c_try_link
"$LINENO"; then :
11117 bash_cv_langinfo_codeset
=yes
11119 bash_cv_langinfo_codeset
=no
11121 rm -f core conftest.err conftest.
$ac_objext \
11122 conftest
$ac_exeext conftest.
$ac_ext
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_langinfo_codeset" >&5
11125 $as_echo "$bash_cv_langinfo_codeset" >&6; }
11126 if test $bash_cv_langinfo_codeset = yes; then
11127 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5
11132 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
11133 if ${bash_cv_type_wchar_t+:} false
; then :
11134 $as_echo_n "(cached) " >&6
11136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11137 /* end confdefs.h. */
11151 if ac_fn_c_try_compile
"$LINENO"; then :
11152 bash_cv_type_wchar_t
=yes
11154 bash_cv_type_wchar_t
=no
11156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wchar_t" >&5
11159 $as_echo "$bash_cv_type_wchar_t" >&6; }
11160 if test $bash_cv_type_wchar_t = yes; then
11162 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5
11167 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
11168 if ${bash_cv_type_wctype_t+:} false
; then :
11169 $as_echo_n "(cached) " >&6
11171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11172 /* end confdefs.h. */
11173 #include <wctype.h>
11185 if ac_fn_c_try_compile
"$LINENO"; then :
11186 bash_cv_type_wctype_t
=yes
11188 bash_cv_type_wctype_t
=no
11190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wctype_t" >&5
11193 $as_echo "$bash_cv_type_wctype_t" >&6; }
11194 if test $bash_cv_type_wctype_t = yes; then
11196 $as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5
11201 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
11202 if ${bash_cv_type_wint_t+:} false
; then :
11203 $as_echo_n "(cached) " >&6
11205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11206 /* end confdefs.h. */
11207 #include <wctype.h>
11219 if ac_fn_c_try_compile
"$LINENO"; then :
11220 bash_cv_type_wint_t
=yes
11222 bash_cv_type_wint_t
=no
11224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wint_t" >&5
11227 $as_echo "$bash_cv_type_wint_t" >&6; }
11228 if test $bash_cv_type_wint_t = yes; then
11230 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcwidth broken with unicode combining characters" >&5
11235 $as_echo_n "checking for wcwidth broken with unicode combining characters... " >&6; }
11236 if ${bash_cv_wcwidth_broken+:} false
; then :
11237 $as_echo_n "(cached) " >&6
11239 if test "$cross_compiling" = yes; then :
11240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11242 as_fn_error $?
"cannot run test program while cross compiling
11243 See \`config.log' for more details" "$LINENO" 5; }
11245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11246 /* end confdefs.h. */
11248 #include <unistd.h>
11249 #include <stdlib.h>
11252 #include <locale.h>
11261 setlocale(LC_ALL, "en_US.UTF-8");
11262 w = wcwidth (0x0301);
11263 exit (w == 0); /* exit 0 if wcwidth broken */
11267 if ac_fn_c_try_run
"$LINENO"; then :
11268 bash_cv_wcwidth_broken
=yes
11270 bash_cv_wcwdith_broken
=no
11272 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11273 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcwidth_broken" >&5
11278 $as_echo "$bash_cv_wcwidth_broken" >&6; }
11279 if test "$bash_cv_wcwidth_broken" = yes; then
11281 $as_echo "#define WCWIDTH_BROKEN 1" >>confdefs.h
11285 if test "$am_cv_func_iconv" = yes; then
11287 LIBS
="$LIBS $LIBICONV"
11288 for ac_func
in locale_charset
11290 ac_fn_c_check_func
"$LINENO" "locale_charset" "ac_cv_func_locale_charset"
11291 if test "x$ac_cv_func_locale_charset" = xyes
; then :
11292 cat >>confdefs.h
<<_ACEOF
11293 #define HAVE_LOCALE_CHARSET 1
11304 if test "$opt_static_link" != yes; then
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11306 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11307 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11308 $as_echo_n "(cached) " >&6
11310 ac_check_lib_save_LIBS
=$LIBS
11312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11313 /* end confdefs.h. */
11315 /* Override any GCC internal prototype to avoid an error.
11316 Use char because int might match the return type of a GCC
11317 builtin and then its argument prototype would still apply. */
11330 if ac_fn_c_try_link
"$LINENO"; then :
11331 ac_cv_lib_dl_dlopen
=yes
11333 ac_cv_lib_dl_dlopen
=no
11335 rm -f core conftest.err conftest.
$ac_objext \
11336 conftest
$ac_exeext conftest.
$ac_ext
11337 LIBS
=$ac_check_lib_save_LIBS
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11340 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11341 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11342 cat >>confdefs.h
<<_ACEOF
11343 #define HAVE_LIBDL 1
11350 for ac_func
in dlopen dlclose dlsym
11352 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11353 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11354 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11355 cat >>confdefs.h
<<_ACEOF
11356 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11364 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
11365 /* NetBSD declares sys_siglist in unistd.h. */
11366 #ifdef HAVE_UNISTD_H
11367 # include <unistd.h>
11371 if test "x$ac_cv_have_decl_sys_siglist" = xyes
; then :
11377 cat >>confdefs.h
<<_ACEOF
11378 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
11383 if test "$ac_cv_func_inet_aton" != 'yes'; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
11386 $as_echo_n "checking for inet_aton... " >&6; }
11387 if ${bash_cv_func_inet_aton+:} false
; then :
11388 $as_echo_n "(cached) " >&6
11390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11393 #include <sys/types.h>
11394 #include <netinet/in.h>
11395 #include <arpa/inet.h>
11400 inet_aton("127.0.0.1", &ap);
11405 if ac_fn_c_try_link
"$LINENO"; then :
11406 bash_cv_func_inet_aton
=yes
11408 bash_cv_func_inet_aton
=no
11410 rm -f core conftest.err conftest.
$ac_objext \
11411 conftest
$ac_exeext conftest.
$ac_ext
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_inet_aton" >&5
11414 $as_echo "$bash_cv_func_inet_aton" >&6; }
11415 if test $bash_cv_func_inet_aton = yes; then
11416 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
11419 case " $LIBOBJS " in
11420 *" inet_aton.$ac_objext "* ) ;;
11421 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
11430 irix4
*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwent in -lsun" >&5
11431 $as_echo_n "checking for getpwent in -lsun... " >&6; }
11432 if ${ac_cv_lib_sun_getpwent+:} false
; then :
11433 $as_echo_n "(cached) " >&6
11435 ac_check_lib_save_LIBS
=$LIBS
11437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11438 /* end confdefs.h. */
11440 /* Override any GCC internal prototype to avoid an error.
11441 Use char because int might match the return type of a GCC
11442 builtin and then its argument prototype would still apply. */
11450 return getpwent ();
11455 if ac_fn_c_try_link
"$LINENO"; then :
11456 ac_cv_lib_sun_getpwent
=yes
11458 ac_cv_lib_sun_getpwent
=no
11460 rm -f core conftest.err conftest.
$ac_objext \
11461 conftest
$ac_exeext conftest.
$ac_ext
11462 LIBS
=$ac_check_lib_save_LIBS
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwent" >&5
11465 $as_echo "$ac_cv_lib_sun_getpwent" >&6; }
11466 if test "x$ac_cv_lib_sun_getpwent" = xyes
; then :
11467 cat >>confdefs.h
<<_ACEOF
11468 #define HAVE_LIBSUN 1
11477 if test "$ac_cv_func_getpeername" = no
; then
11479 if test "X$bash_cv_have_socklib" = "X"; then
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket library" >&5
11483 $as_echo_n "checking for socket library... " >&6; }
11486 if ${bash_cv_have_socklib+:} false
; then :
11487 $as_echo_n "(cached) " >&6
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpeername in -lsocket" >&5
11490 $as_echo_n "checking for getpeername in -lsocket... " >&6; }
11491 if ${ac_cv_lib_socket_getpeername+:} false
; then :
11492 $as_echo_n "(cached) " >&6
11494 ac_check_lib_save_LIBS
=$LIBS
11495 LIBS
="-lsocket -lnsl $LIBS"
11496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11497 /* end confdefs.h. */
11499 /* Override any GCC internal prototype to avoid an error.
11500 Use char because int might match the return type of a GCC
11501 builtin and then its argument prototype would still apply. */
11505 char getpeername ();
11509 return getpeername ();
11514 if ac_fn_c_try_link
"$LINENO"; then :
11515 ac_cv_lib_socket_getpeername
=yes
11517 ac_cv_lib_socket_getpeername
=no
11519 rm -f core conftest.err conftest.
$ac_objext \
11520 conftest
$ac_exeext conftest.
$ac_ext
11521 LIBS
=$ac_check_lib_save_LIBS
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getpeername" >&5
11524 $as_echo "$ac_cv_lib_socket_getpeername" >&6; }
11525 if test "x$ac_cv_lib_socket_getpeername" = xyes
; then :
11526 bash_cv_have_socklib
=yes
11528 bash_cv_have_socklib
=no
11533 if test "X$_bash_needmsg" = Xyes
; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_socklib" >&5
11535 $as_echo "$bash_cv_have_socklib" >&6; }
11538 if test $bash_cv_have_socklib = yes; then
11539 # check for libnsl, add it to LIBS if present
11540 if test "X$bash_cv_have_libnsl" = "X"; then
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnsl" >&5
11544 $as_echo_n "checking for libnsl... " >&6; }
11547 if ${bash_cv_have_libnsl+:} false
; then :
11548 $as_echo_n "(cached) " >&6
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
11551 $as_echo_n "checking for t_open in -lnsl... " >&6; }
11552 if ${ac_cv_lib_nsl_t_open+:} false
; then :
11553 $as_echo_n "(cached) " >&6
11555 ac_check_lib_save_LIBS
=$LIBS
11557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h. */
11560 /* Override any GCC internal prototype to avoid an error.
11561 Use char because int might match the return type of a GCC
11562 builtin and then its argument prototype would still apply. */
11575 if ac_fn_c_try_link
"$LINENO"; then :
11576 ac_cv_lib_nsl_t_open
=yes
11578 ac_cv_lib_nsl_t_open
=no
11580 rm -f core conftest.err conftest.
$ac_objext \
11581 conftest
$ac_exeext conftest.
$ac_ext
11582 LIBS
=$ac_check_lib_save_LIBS
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
11585 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
11586 if test "x$ac_cv_lib_nsl_t_open" = xyes
; then :
11587 bash_cv_have_libnsl
=yes
11589 bash_cv_have_libnsl
=no
11594 if test "X$_bash_needmsg" = Xyes
; then
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_libnsl" >&5
11596 $as_echo "$bash_cv_have_libnsl" >&6; }
11599 if test $bash_cv_have_libnsl = yes; then
11600 LIBS
="-lsocket -lnsl $LIBS"
11602 LIBS
="-lsocket $LIBS"
11604 $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
11606 $as_echo "#define HAVE_GETPEERNAME 1" >>confdefs.h
11611 if test "$ac_cv_func_gethostbyname" = no
; then
11612 if test "X$bash_cv_have_gethostbyname" = "X"; then
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5
11616 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
11619 if ${bash_cv_have_gethostbyname+:} false
; then :
11620 $as_echo_n "(cached) " >&6
11622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11623 /* end confdefs.h. */
11628 struct hostent *hp;
11629 hp = gethostbyname("localhost");
11635 if ac_fn_c_try_link
"$LINENO"; then :
11636 bash_cv_have_gethostbyname
=yes
11638 bash_cv_have_gethostbyname
=no
11640 rm -f core conftest.err conftest.
$ac_objext \
11641 conftest
$ac_exeext conftest.
$ac_ext
11645 if test "X$_bash_needmsg" = Xyes
; then
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5
11647 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_gethostbyname" >&5
11650 $as_echo "$bash_cv_have_gethostbyname" >&6; }
11651 if test "$bash_cv_have_gethostbyname" = yes; then
11652 $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11659 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11660 if ${ac_cv_type_uid_t+:} false
; then :
11661 $as_echo_n "(cached) " >&6
11663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11664 /* end confdefs.h. */
11665 #include <sys/types.h>
11668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11669 $EGREP "uid_t" >/dev
/null
2>&1; then :
11670 ac_cv_type_uid_t
=yes
11672 ac_cv_type_uid_t
=no
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11678 $as_echo "$ac_cv_type_uid_t" >&6; }
11679 if test $ac_cv_type_uid_t = no
; then
11681 $as_echo "#define uid_t int" >>confdefs.h
11684 $as_echo "#define gid_t int" >>confdefs.h
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
11689 $as_echo_n "checking type of array argument to getgroups... " >&6; }
11690 if ${ac_cv_type_getgroups+:} false
; then :
11691 $as_echo_n "(cached) " >&6
11693 if test "$cross_compiling" = yes; then :
11694 ac_cv_type_getgroups
=cross
11696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11697 /* end confdefs.h. */
11698 /* Thanks to Mike Rendell for this test. */
11699 $ac_includes_default
11702 #define MAX(x, y) ((x) > (y) ? (x) : (y))
11707 gid_t gidset[NGID];
11709 union { gid_t gval; long int lval; } val;
11712 for (i = 0; i < NGID; i++)
11713 gidset[i] = val.gval;
11714 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
11716 /* Exit non-zero if getgroups seems to require an array of ints. This
11717 happens when gid_t is short int but getgroups modifies an array
11719 return n > 0 && gidset[n] != val.gval;
11722 if ac_fn_c_try_run
"$LINENO"; then :
11723 ac_cv_type_getgroups
=gid_t
11725 ac_cv_type_getgroups
=int
11727 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11728 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11731 if test $ac_cv_type_getgroups = cross
; then
11732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h. */
11734 #include <unistd.h>
11737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11738 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
11739 ac_cv_type_getgroups
=gid_t
11741 ac_cv_type_getgroups
=int
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
11748 $as_echo "$ac_cv_type_getgroups" >&6; }
11750 cat >>confdefs.h
<<_ACEOF
11751 #define GETGROUPS_T $ac_cv_type_getgroups
11755 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11756 if test "x$ac_cv_type_off_t" = xyes
; then :
11760 cat >>confdefs.h
<<_ACEOF
11761 #define off_t long int
11766 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11767 if test "x$ac_cv_type_mode_t" = xyes
; then :
11771 cat >>confdefs.h
<<_ACEOF
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11778 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11779 if ${ac_cv_type_uid_t+:} false
; then :
11780 $as_echo_n "(cached) " >&6
11782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11783 /* end confdefs.h. */
11784 #include <sys/types.h>
11787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11788 $EGREP "uid_t" >/dev
/null
2>&1; then :
11789 ac_cv_type_uid_t
=yes
11791 ac_cv_type_uid_t
=no
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11797 $as_echo "$ac_cv_type_uid_t" >&6; }
11798 if test $ac_cv_type_uid_t = no
; then
11800 $as_echo "#define uid_t int" >>confdefs.h
11803 $as_echo "#define gid_t int" >>confdefs.h
11807 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11808 if test "x$ac_cv_type_pid_t" = xyes
; then :
11812 cat >>confdefs.h
<<_ACEOF
11818 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11819 if test "x$ac_cv_type_size_t" = xyes
; then :
11823 cat >>confdefs.h
<<_ACEOF
11824 #define size_t unsigned int
11829 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
11830 if test "x$ac_cv_type_ssize_t" = xyes
; then :
11834 cat >>confdefs.h
<<_ACEOF
11835 #define ssize_t int
11840 ac_fn_c_check_type
"$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
11841 if test "x$ac_cv_type_time_t" = xyes
; then :
11845 cat >>confdefs.h
<<_ACEOF
11846 #define time_t long
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
11854 $as_echo_n "checking for long long... " >&6; }
11855 if ${bash_cv_type_long_long+:} false
; then :
11856 $as_echo_n "(cached) " >&6
11858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h. */
11861 long long ll = 1; int i = 63;
11866 long long llm = (long long) -1;
11867 return ll << i | ll >> i | llm / ll | llm % ll;
11873 if ac_fn_c_try_link
"$LINENO"; then :
11874 bash_cv_type_long_long
='long long'
11876 bash_cv_type_long_long
='long'
11878 rm -f core conftest.err conftest.
$ac_objext \
11879 conftest
$ac_exeext conftest.
$ac_ext
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_long_long" >&5
11882 $as_echo "$bash_cv_type_long_long" >&6; }
11883 if test "$bash_cv_type_long_long" = 'long long'; then
11884 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
11890 $as_echo_n "checking for unsigned long long... " >&6; }
11891 if ${bash_cv_type_unsigned_long_long+:} false
; then :
11892 $as_echo_n "(cached) " >&6
11894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11897 unsigned long long ull = 1; int i = 63;
11902 unsigned long long ullmax = (unsigned long long) -1;
11903 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
11909 if ac_fn_c_try_link
"$LINENO"; then :
11910 bash_cv_type_unsigned_long_long
='unsigned long long'
11912 bash_cv_type_unsigned_long_long
='unsigned long'
11914 rm -f core conftest.err conftest.
$ac_objext \
11915 conftest
$ac_exeext conftest.
$ac_ext
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_unsigned_long_long" >&5
11918 $as_echo "$bash_cv_type_unsigned_long_long" >&6; }
11919 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
11920 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11926 $as_echo_n "checking return type of signal handlers... " >&6; }
11927 if ${ac_cv_type_signal+:} false
; then :
11928 $as_echo_n "(cached) " >&6
11930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11932 #include <sys/types.h>
11933 #include <signal.h>
11938 return *(signal (0, 0)) (0) == 1;
11943 if ac_fn_c_try_compile
"$LINENO"; then :
11944 ac_cv_type_signal
=int
11946 ac_cv_type_signal
=void
11948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11951 $as_echo "$ac_cv_type_signal" >&6; }
11953 cat >>confdefs.h
<<_ACEOF
11954 #define RETSIGTYPE $ac_cv_type_signal
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5
11959 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
11960 if ${ac_cv_have_sig_atomic_t+:} false
; then :
11961 $as_echo_n "(cached) " >&6
11963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11964 /* end confdefs.h. */
11966 #include <signal.h>
11976 if ac_fn_c_try_link
"$LINENO"; then :
11977 ac_cv_have_sig_atomic_t
=yes
11979 ac_cv_have_sig_atomic_t
=no
11981 rm -f core conftest.err conftest.
$ac_objext \
11982 conftest
$ac_exeext conftest.
$ac_ext
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5
11985 $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
11986 if test "$ac_cv_have_sig_atomic_t" = "no"
11988 ac_fn_c_check_type
"$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default"
11989 if test "x$ac_cv_type_sig_atomic_t" = xyes
; then :
11993 cat >>confdefs.h
<<_ACEOF
11994 #define sig_atomic_t int
12002 # The cast to long int works around a bug in the HP C Compiler
12003 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12004 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12005 # This bug is HP SR number 8606223364.
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12007 $as_echo_n "checking size of char... " >&6; }
12008 if ${ac_cv_sizeof_char+:} false
; then :
12009 $as_echo_n "(cached) " >&6
12011 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
12014 if test "$ac_cv_type_char" = yes; then
12015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12017 as_fn_error
77 "cannot compute sizeof (char)
12018 See \`config.log' for more details" "$LINENO" 5; }
12020 ac_cv_sizeof_char
=0
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12026 $as_echo "$ac_cv_sizeof_char" >&6; }
12030 cat >>confdefs.h
<<_ACEOF
12031 #define SIZEOF_CHAR $ac_cv_sizeof_char
12035 # The cast to long int works around a bug in the HP C Compiler
12036 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12037 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12038 # This bug is HP SR number 8606223364.
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12040 $as_echo_n "checking size of short... " >&6; }
12041 if ${ac_cv_sizeof_short+:} false
; then :
12042 $as_echo_n "(cached) " >&6
12044 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12047 if test "$ac_cv_type_short" = yes; then
12048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12050 as_fn_error
77 "cannot compute sizeof (short)
12051 See \`config.log' for more details" "$LINENO" 5; }
12053 ac_cv_sizeof_short
=0
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12059 $as_echo "$ac_cv_sizeof_short" >&6; }
12063 cat >>confdefs.h
<<_ACEOF
12064 #define SIZEOF_SHORT $ac_cv_sizeof_short
12068 # The cast to long int works around a bug in the HP C Compiler
12069 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12070 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12071 # This bug is HP SR number 8606223364.
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12073 $as_echo_n "checking size of int... " >&6; }
12074 if ${ac_cv_sizeof_int+:} false
; then :
12075 $as_echo_n "(cached) " >&6
12077 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12080 if test "$ac_cv_type_int" = yes; then
12081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12083 as_fn_error
77 "cannot compute sizeof (int)
12084 See \`config.log' for more details" "$LINENO" 5; }
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12092 $as_echo "$ac_cv_sizeof_int" >&6; }
12096 cat >>confdefs.h
<<_ACEOF
12097 #define SIZEOF_INT $ac_cv_sizeof_int
12101 # The cast to long int works around a bug in the HP C Compiler
12102 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12103 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12104 # This bug is HP SR number 8606223364.
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12106 $as_echo_n "checking size of long... " >&6; }
12107 if ${ac_cv_sizeof_long+:} false
; then :
12108 $as_echo_n "(cached) " >&6
12110 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12113 if test "$ac_cv_type_long" = yes; then
12114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12116 as_fn_error
77 "cannot compute sizeof (long)
12117 See \`config.log' for more details" "$LINENO" 5; }
12119 ac_cv_sizeof_long
=0
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12125 $as_echo "$ac_cv_sizeof_long" >&6; }
12129 cat >>confdefs.h
<<_ACEOF
12130 #define SIZEOF_LONG $ac_cv_sizeof_long
12134 # The cast to long int works around a bug in the HP C Compiler
12135 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12136 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12137 # This bug is HP SR number 8606223364.
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
12139 $as_echo_n "checking size of char *... " >&6; }
12140 if ${ac_cv_sizeof_char_p+:} false
; then :
12141 $as_echo_n "(cached) " >&6
12143 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
12146 if test "$ac_cv_type_char_p" = yes; then
12147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12149 as_fn_error
77 "cannot compute sizeof (char *)
12150 See \`config.log' for more details" "$LINENO" 5; }
12152 ac_cv_sizeof_char_p
=0
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
12158 $as_echo "$ac_cv_sizeof_char_p" >&6; }
12162 cat >>confdefs.h
<<_ACEOF
12163 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
12167 # The cast to long int works around a bug in the HP C Compiler
12168 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12169 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12170 # This bug is HP SR number 8606223364.
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
12172 $as_echo_n "checking size of double... " >&6; }
12173 if ${ac_cv_sizeof_double+:} false
; then :
12174 $as_echo_n "(cached) " >&6
12176 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
12179 if test "$ac_cv_type_double" = yes; then
12180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12182 as_fn_error
77 "cannot compute sizeof (double)
12183 See \`config.log' for more details" "$LINENO" 5; }
12185 ac_cv_sizeof_double
=0
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
12191 $as_echo "$ac_cv_sizeof_double" >&6; }
12195 cat >>confdefs.h
<<_ACEOF
12196 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
12200 # The cast to long int works around a bug in the HP C Compiler
12201 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12202 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12203 # This bug is HP SR number 8606223364.
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12205 $as_echo_n "checking size of long long... " >&6; }
12206 if ${ac_cv_sizeof_long_long+:} false
; then :
12207 $as_echo_n "(cached) " >&6
12209 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12212 if test "$ac_cv_type_long_long" = yes; then
12213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12215 as_fn_error
77 "cannot compute sizeof (long long)
12216 See \`config.log' for more details" "$LINENO" 5; }
12218 ac_cv_sizeof_long_long
=0
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12224 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12228 cat >>confdefs.h
<<_ACEOF
12229 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12234 ac_fn_c_check_type
"$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
12235 if test "x$ac_cv_type_u_int" = xyes
; then :
12239 cat >>confdefs.h
<<_ACEOF
12240 #define u_int unsigned int
12245 ac_fn_c_check_type
"$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
12246 if test "x$ac_cv_type_u_long" = xyes
; then :
12250 cat >>confdefs.h
<<_ACEOF
12251 #define u_long unsigned long
12258 if test "$ac_cv_sizeof_short" = 2; then
12259 ac_fn_c_check_type
"$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
12260 if test "x$ac_cv_type_bits16_t" = xyes
; then :
12264 cat >>confdefs.h
<<_ACEOF
12265 #define bits16_t short
12270 elif test "$ac_cv_sizeof_char" = 2; then
12271 ac_fn_c_check_type
"$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
12272 if test "x$ac_cv_type_bits16_t" = xyes
; then :
12276 cat >>confdefs.h
<<_ACEOF
12277 #define bits16_t char
12283 ac_fn_c_check_type
"$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
12284 if test "x$ac_cv_type_bits16_t" = xyes
; then :
12288 cat >>confdefs.h
<<_ACEOF
12289 #define bits16_t short
12297 if test "$ac_cv_sizeof_short" = 2; then
12298 ac_fn_c_check_type
"$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
12299 if test "x$ac_cv_type_u_bits16_t" = xyes
; then :
12303 cat >>confdefs.h
<<_ACEOF
12304 #define u_bits16_t unsigned short
12309 elif test "$ac_cv_sizeof_char" = 2; then
12310 ac_fn_c_check_type
"$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
12311 if test "x$ac_cv_type_u_bits16_t" = xyes
; then :
12315 cat >>confdefs.h
<<_ACEOF
12316 #define u_bits16_t unsigned char
12322 ac_fn_c_check_type
"$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
12323 if test "x$ac_cv_type_u_bits16_t" = xyes
; then :
12327 cat >>confdefs.h
<<_ACEOF
12328 #define u_bits16_t unsigned short
12336 if test "$ac_cv_sizeof_int" = 4; then
12337 ac_fn_c_check_type
"$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
12338 if test "x$ac_cv_type_bits32_t" = xyes
; then :
12342 cat >>confdefs.h
<<_ACEOF
12343 #define bits32_t int
12348 elif test "$ac_cv_sizeof_long" = 4; then
12349 ac_fn_c_check_type
"$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
12350 if test "x$ac_cv_type_bits32_t" = xyes
; then :
12354 cat >>confdefs.h
<<_ACEOF
12355 #define bits32_t long
12361 ac_fn_c_check_type
"$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
12362 if test "x$ac_cv_type_bits32_t" = xyes
; then :
12366 cat >>confdefs.h
<<_ACEOF
12367 #define bits32_t int
12375 if test "$ac_cv_sizeof_int" = 4; then
12376 ac_fn_c_check_type
"$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
12377 if test "x$ac_cv_type_u_bits32_t" = xyes
; then :
12381 cat >>confdefs.h
<<_ACEOF
12382 #define u_bits32_t unsigned int
12387 elif test "$ac_cv_sizeof_long" = 4; then
12388 ac_fn_c_check_type
"$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
12389 if test "x$ac_cv_type_u_bits32_t" = xyes
; then :
12393 cat >>confdefs.h
<<_ACEOF
12394 #define u_bits32_t unsigned long
12400 ac_fn_c_check_type
"$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
12401 if test "x$ac_cv_type_u_bits32_t" = xyes
; then :
12405 cat >>confdefs.h
<<_ACEOF
12406 #define u_bits32_t unsigned int
12414 if test "$ac_cv_sizeof_char_p" = 8; then
12415 ac_fn_c_check_type
"$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12416 if test "x$ac_cv_type_bits64_t" = xyes
; then :
12420 cat >>confdefs.h
<<_ACEOF
12421 #define bits64_t char *
12426 elif test "$ac_cv_sizeof_double" = 8; then
12427 ac_fn_c_check_type
"$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12428 if test "x$ac_cv_type_bits64_t" = xyes
; then :
12432 cat >>confdefs.h
<<_ACEOF
12433 #define bits64_t double
12438 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
12439 ac_fn_c_check_type
"$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12440 if test "x$ac_cv_type_bits64_t" = xyes
; then :
12444 cat >>confdefs.h
<<_ACEOF
12445 #define bits64_t long long
12450 elif test "$ac_cv_sizeof_long" = 8; then
12451 ac_fn_c_check_type
"$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12452 if test "x$ac_cv_type_bits64_t" = xyes
; then :
12456 cat >>confdefs.h
<<_ACEOF
12457 #define bits64_t long
12463 ac_fn_c_check_type
"$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12464 if test "x$ac_cv_type_bits64_t" = xyes
; then :
12468 cat >>confdefs.h
<<_ACEOF
12469 #define bits64_t double
12478 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
12479 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12480 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
12484 cat >>confdefs.h
<<_ACEOF
12485 #define ptrdiff_t int
12490 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
12491 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12492 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
12496 cat >>confdefs.h
<<_ACEOF
12497 #define ptrdiff_t long
12502 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
12503 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12504 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
12508 cat >>confdefs.h
<<_ACEOF
12509 #define ptrdiff_t long long
12515 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12516 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
12520 cat >>confdefs.h
<<_ACEOF
12521 #define ptrdiff_t int
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
12530 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
12531 if ${ac_cv_header_stat_broken+:} false
; then :
12532 $as_echo_n "(cached) " >&6
12534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12535 /* end confdefs.h. */
12536 #include <sys/types.h>
12537 #include <sys/stat.h>
12539 #if defined S_ISBLK && defined S_IFDIR
12540 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
12543 #if defined S_ISBLK && defined S_IFCHR
12544 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
12547 #if defined S_ISLNK && defined S_IFREG
12548 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
12551 #if defined S_ISSOCK && defined S_IFREG
12552 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
12556 if ac_fn_c_try_compile
"$LINENO"; then :
12557 ac_cv_header_stat_broken
=no
12559 ac_cv_header_stat_broken
=yes
12561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
12564 $as_echo "$ac_cv_header_stat_broken" >&6; }
12565 if test $ac_cv_header_stat_broken = yes; then
12567 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
12573 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
12574 if ${ac_cv_sys_interpreter+:} false
; then :
12575 $as_echo_n "(cached) " >&6
12581 (SHELL
=/bin
/sh
; export SHELL
; .
/conftest
>/dev
/null
2>&1)
12582 if test $?
-ne 69; then
12583 ac_cv_sys_interpreter
=yes
12585 ac_cv_sys_interpreter
=no
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
12590 $as_echo "$ac_cv_sys_interpreter" >&6; }
12591 interpval
=$ac_cv_sys_interpreter
12593 if test $ac_cv_sys_interpreter = yes; then
12594 $as_echo "#define HAVE_HASH_BANG_EXEC 1" >>confdefs.h
12598 if test "$ac_cv_func_lstat" = "no"; then
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
12600 $as_echo_n "checking for lstat... " >&6; }
12601 if ${bash_cv_func_lstat+:} false
; then :
12602 $as_echo_n "(cached) " >&6
12604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12605 /* end confdefs.h. */
12607 #include <sys/types.h>
12608 #include <sys/stat.h>
12613 lstat(".",(struct stat *)0);
12618 if ac_fn_c_try_link
"$LINENO"; then :
12619 bash_cv_func_lstat
=yes
12621 bash_cv_func_lstat
=no
12623 rm -f core conftest.err conftest.
$ac_objext \
12624 conftest
$ac_exeext conftest.
$ac_ext
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5
12627 $as_echo "$bash_cv_func_lstat" >&6; }
12628 if test $bash_cv_func_lstat = yes; then
12629 $as_echo "#define HAVE_LSTAT 1" >>confdefs.h
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ctype macros accept non-ascii characters" >&5
12637 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
12638 if ${bash_cv_func_ctype_nonascii+:} false
; then :
12639 $as_echo_n "(cached) " >&6
12641 if test "$cross_compiling" = yes; then :
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
12643 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
12644 bash_cv_func_ctype_nonascii
=no
12647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12648 /* end confdefs.h. */
12650 #ifdef HAVE_LOCALE_H
12651 #include <locale.h>
12664 #ifdef HAVE_SETLOCALE
12665 /* We take a shot here. If that locale is not known, try the
12666 system default. We try this one because '\342' (226) is
12667 known to be a printable character in that locale. */
12668 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
12669 if (deflocale == 0)
12670 deflocale = setlocale(LC_ALL, "");
12677 exit (r1 == 0 || r2 == 0);
12681 if ac_fn_c_try_run
"$LINENO"; then :
12682 bash_cv_func_ctype_nonascii
=yes
12684 bash_cv_func_ctype_nonascii
=no
12686 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12687 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_ctype_nonascii" >&5
12693 $as_echo "$bash_cv_func_ctype_nonascii" >&6; }
12694 if test $bash_cv_func_ctype_nonascii = yes; then
12695 $as_echo "#define CTYPE_NON_ASCII 1" >>confdefs.h
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dup2 fails to clear the close-on-exec flag" >&5
12700 $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
12701 if ${bash_cv_dup2_broken+:} false
; then :
12702 $as_echo_n "(cached) " >&6
12704 if test "$cross_compiling" = yes; then :
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
12706 $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
12707 bash_cv_dup2_broken
=no
12709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12710 /* end confdefs.h. */
12712 #include <sys/types.h>
12717 fd1 = open("/dev/null", 2);
12718 if (fcntl(fd1, 2, 1) < 0)
12720 fd2 = dup2(fd1, 1);
12723 fl = fcntl(fd2, 1, 0);
12724 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
12729 if ac_fn_c_try_run
"$LINENO"; then :
12730 bash_cv_dup2_broken
=yes
12732 bash_cv_dup2_broken
=no
12734 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12735 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dup2_broken" >&5
12742 $as_echo "$bash_cv_dup2_broken" >&6; }
12743 if test $bash_cv_dup2_broken = yes; then
12744 $as_echo "#define DUP2_BROKEN 1" >>confdefs.h
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pgrps need synchronization" >&5
12750 $as_echo_n "checking whether pgrps need synchronization... " >&6; }
12751 if ${bash_cv_pgrp_pipe+:} false
; then :
12752 $as_echo_n "(cached) " >&6
12754 if test "$cross_compiling" = yes; then :
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
12756 $as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
12757 bash_cv_pgrp_pipe
=no
12759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12762 #ifdef HAVE_UNISTD_H
12763 # include <unistd.h>
12767 # ifdef GETPGRP_VOID
12768 # define getpgID() getpgrp()
12770 # define getpgID() getpgrp(0)
12771 # define setpgid(x,y) setpgrp(x,y)
12773 int pid1, pid2, fds[2];
12777 switch (pid1 = fork()) {
12781 setpgid(0, getpid());
12784 setpgid(pid1, pid1);
12786 sleep(2); /* let first child die */
12791 switch (pid2 = fork()) {
12796 ok = getpgID() == pid1;
12797 write(fds[1], &ok, 1);
12800 setpgid(pid2, pid1);
12803 if (read(fds[0], &ok, 1) != 1)
12811 if ac_fn_c_try_run
"$LINENO"; then :
12812 bash_cv_pgrp_pipe
=no
12814 bash_cv_pgrp_pipe
=yes
12816 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12817 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_pgrp_pipe" >&5
12824 $as_echo "$bash_cv_pgrp_pipe" >&6; }
12825 if test $bash_cv_pgrp_pipe = yes; then
12826 $as_echo "#define PGRP_PIPE 1" >>confdefs.h
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
12832 $as_echo_n "checking for type of signal functions... " >&6; }
12833 if ${bash_cv_signal_vintage+:} false
; then :
12834 $as_echo_n "(cached) " >&6
12837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12838 /* end confdefs.h. */
12839 #include <signal.h>
12845 struct sigaction sa;
12846 sigemptyset(&ss); sigsuspend(&ss);
12847 sigaction(SIGINT, &sa, (struct sigaction *) 0);
12848 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12854 if ac_fn_c_try_link
"$LINENO"; then :
12855 bash_cv_signal_vintage
=posix
12858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12859 /* end confdefs.h. */
12860 #include <signal.h>
12865 int mask = sigmask(SIGINT);
12866 sigsetmask(mask); sigblock(mask); sigpause(mask);
12872 if ac_fn_c_try_link
"$LINENO"; then :
12873 bash_cv_signal_vintage
=4.2bsd
12876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12879 #include <signal.h>
12880 RETSIGTYPE foo() { }
12885 int mask = sigmask(SIGINT);
12886 sigset(SIGINT, foo); sigrelse(SIGINT);
12887 sighold(SIGINT); sigpause(SIGINT);
12893 if ac_fn_c_try_link
"$LINENO"; then :
12894 bash_cv_signal_vintage
=svr3
12896 bash_cv_signal_vintage
=v7
12899 rm -f core conftest.err conftest.
$ac_objext \
12900 conftest
$ac_exeext conftest.
$ac_ext
12903 rm -f core conftest.err conftest.
$ac_objext \
12904 conftest
$ac_exeext conftest.
$ac_ext
12907 rm -f core conftest.err conftest.
$ac_objext \
12908 conftest
$ac_exeext conftest.
$ac_ext
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
12913 $as_echo "$bash_cv_signal_vintage" >&6; }
12914 if test "$bash_cv_signal_vintage" = posix
; then
12915 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
12917 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
12918 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
12920 elif test "$bash_cv_signal_vintage" = svr3
; then
12921 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist and sys_nerr" >&5
12927 $as_echo_n "checking for sys_errlist and sys_nerr... " >&6; }
12928 if ${bash_cv_sys_errlist+:} false
; then :
12929 $as_echo_n "(cached) " >&6
12931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h. */
12937 extern char *sys_errlist[];
12938 extern int sys_nerr;
12939 char *msg = sys_errlist[sys_nerr - 1];
12944 if ac_fn_c_try_link
"$LINENO"; then :
12945 bash_cv_sys_errlist
=yes
12947 bash_cv_sys_errlist
=no
12949 rm -f core conftest.err conftest.
$ac_objext \
12950 conftest
$ac_exeext conftest.
$ac_ext
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_errlist" >&5
12953 $as_echo "$bash_cv_sys_errlist" >&6; }
12954 if test $bash_cv_sys_errlist = yes; then
12955 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_siglist in system C library" >&5
12961 $as_echo_n "checking for sys_siglist in system C library... " >&6; }
12962 if ${bash_cv_sys_siglist+:} false
; then :
12963 $as_echo_n "(cached) " >&6
12965 if test "$cross_compiling" = yes; then :
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
12967 $as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
12968 bash_cv_sys_siglist
=no
12970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12973 #include <sys/types.h>
12974 #include <signal.h>
12975 #ifdef HAVE_UNISTD_H
12976 #include <unistd.h>
12978 #if !HAVE_DECL_SYS_SIGLIST
12979 extern char *sys_siglist[];
12983 char *msg = sys_siglist[2];
12987 if ac_fn_c_try_run
"$LINENO"; then :
12988 bash_cv_sys_siglist
=yes
12990 bash_cv_sys_siglist
=no
12992 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12993 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_siglist" >&5
12999 $as_echo "$bash_cv_sys_siglist" >&6; }
13000 if test $bash_cv_sys_siglist = yes; then
13001 $as_echo "#define HAVE_SYS_SIGLIST 1" >>confdefs.h
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in signal.h or unistd.h" >&5
13006 $as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
13007 if ${bash_cv_decl_under_sys_siglist+:} false
; then :
13008 $as_echo_n "(cached) " >&6
13010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13011 /* end confdefs.h. */
13013 #include <sys/types.h>
13014 #include <signal.h>
13015 #ifdef HAVE_UNISTD_H
13016 #include <unistd.h>
13021 char *msg = _sys_siglist[2];
13026 if ac_fn_c_try_compile
"$LINENO"; then :
13027 bash_cv_decl_under_sys_siglist
=yes
13029 bash_cv_decl_under_sys_siglist
=no
13031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_under_sys_siglist" >&5
13034 $as_echo "$bash_cv_decl_under_sys_siglist" >&6; }
13035 if test $bash_cv_decl_under_sys_siglist = yes; then
13036 $as_echo "#define UNDER_SYS_SIGLIST_DECLARED 1" >>confdefs.h
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in system C library" >&5
13042 $as_echo_n "checking for _sys_siglist in system C library... " >&6; }
13043 if ${bash_cv_under_sys_siglist+:} false
; then :
13044 $as_echo_n "(cached) " >&6
13046 if test "$cross_compiling" = yes; then :
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
13048 $as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
13049 bash_cv_under_sys_siglist
=no
13051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13052 /* end confdefs.h. */
13054 #include <sys/types.h>
13055 #include <signal.h>
13056 #ifdef HAVE_UNISTD_H
13057 #include <unistd.h>
13059 #ifndef UNDER_SYS_SIGLIST_DECLARED
13060 extern char *_sys_siglist[];
13064 char *msg = (char *)_sys_siglist[2];
13068 if ac_fn_c_try_run
"$LINENO"; then :
13069 bash_cv_under_sys_siglist
=yes
13071 bash_cv_under_sys_siglist
=no
13073 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13074 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_under_sys_siglist" >&5
13080 $as_echo "$bash_cv_under_sys_siglist" >&6; }
13081 if test $bash_cv_under_sys_siglist = yes; then
13082 $as_echo "#define HAVE_UNDER_SYS_SIGLIST 1" >>confdefs.h
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers are of type void" >&5
13088 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
13089 if ${bash_cv_void_sighandler+:} false
; then :
13090 $as_echo_n "(cached) " >&6
13092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h. */
13094 #include <sys/types.h>
13095 #include <signal.h>
13102 void (*signal ()) ();
13111 if ac_fn_c_try_compile
"$LINENO"; then :
13112 bash_cv_void_sighandler
=yes
13114 bash_cv_void_sighandler
=no
13116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_void_sighandler" >&5
13119 $as_echo "$bash_cv_void_sighandler" >&6; }
13120 if test $bash_cv_void_sighandler = yes; then
13121 $as_echo "#define VOID_SIGHANDLER 1" >>confdefs.h
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
13128 $as_echo_n "checking for clock_t... " >&6; }
13129 if ${bash_cv_type_clock_t+:} false
; then :
13130 $as_echo_n "(cached) " >&6
13132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13134 #include <sys/types.h>
13136 #include <stdlib.h>
13137 #include <stddef.h>
13139 #if HAVE_INTTYPES_H
13140 #include <inttypes.h>
13143 #include <stdint.h>
13145 #include <sys/times.h>
13148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13149 $EGREP "clock_t" >/dev
/null
2>&1; then :
13150 bash_cv_type_clock_t
=yes
13152 bash_cv_type_clock_t
=no
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_clock_t" >&5
13159 $as_echo "$bash_cv_type_clock_t" >&6; }
13161 if test $bash_cv_type_clock_t = no
; then
13162 cat >>confdefs.h
<<_ACEOF
13163 #define clock_t long
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset_t" >&5
13171 $as_echo_n "checking for sigset_t... " >&6; }
13172 if ${bash_cv_type_sigset_t+:} false
; then :
13173 $as_echo_n "(cached) " >&6
13175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13176 /* end confdefs.h. */
13177 #include <sys/types.h>
13179 #include <stdlib.h>
13180 #include <stddef.h>
13182 #if HAVE_INTTYPES_H
13183 #include <inttypes.h>
13186 #include <stdint.h>
13188 #include <signal.h>
13191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13192 $EGREP "sigset_t" >/dev
/null
2>&1; then :
13193 bash_cv_type_sigset_t
=yes
13195 bash_cv_type_sigset_t
=no
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_sigset_t" >&5
13202 $as_echo "$bash_cv_type_sigset_t" >&6; }
13204 if test $bash_cv_type_sigset_t = no
; then
13205 cat >>confdefs.h
<<_ACEOF
13206 #define sigset_t int
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
13214 $as_echo_n "checking for sig_atomic_t... " >&6; }
13215 if ${bash_cv_type_sig_atomic_t+:} false
; then :
13216 $as_echo_n "(cached) " >&6
13218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13219 /* end confdefs.h. */
13220 #include <sys/types.h>
13222 #include <stdlib.h>
13223 #include <stddef.h>
13225 #if HAVE_INTTYPES_H
13226 #include <inttypes.h>
13229 #include <stdint.h>
13231 #include <signal.h>
13234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13235 $EGREP "sig_atomic_t" >/dev
/null
2>&1; then :
13236 bash_cv_type_sig_atomic_t
=yes
13238 bash_cv_type_sig_atomic_t
=no
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_sig_atomic_t" >&5
13245 $as_echo "$bash_cv_type_sig_atomic_t" >&6; }
13247 if test $bash_cv_type_sig_atomic_t = no
; then
13248 cat >>confdefs.h
<<_ACEOF
13249 #define sig_atomic_t int
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quad_t" >&5
13257 $as_echo_n "checking for quad_t... " >&6; }
13258 if ${bash_cv_type_quad_t+:} false
; then :
13259 $as_echo_n "(cached) " >&6
13261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13263 #include <sys/types.h>
13265 #include <stdlib.h>
13266 #include <stddef.h>
13268 #if HAVE_INTTYPES_H
13269 #include <inttypes.h>
13272 #include <stdint.h>
13277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13278 $EGREP "quad_t" >/dev
/null
2>&1; then :
13279 bash_cv_type_quad_t
=yes
13281 bash_cv_type_quad_t
=no
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_quad_t" >&5
13288 $as_echo "$bash_cv_type_quad_t" >&6; }
13289 if test $bash_cv_type_quad_t = yes; then
13290 $as_echo "#define HAVE_QUAD_T 1" >>confdefs.h
13293 if test $bash_cv_type_quad_t = no
; then
13294 cat >>confdefs.h
<<_ACEOF
13295 #define quad_t long
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
13303 $as_echo_n "checking for intmax_t... " >&6; }
13304 if ${bash_cv_type_intmax_t+:} false
; then :
13305 $as_echo_n "(cached) " >&6
13307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13309 #include <sys/types.h>
13311 #include <stdlib.h>
13312 #include <stddef.h>
13314 #if HAVE_INTTYPES_H
13315 #include <inttypes.h>
13318 #include <stdint.h>
13323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13324 $EGREP "intmax_t" >/dev
/null
2>&1; then :
13325 bash_cv_type_intmax_t
=yes
13327 bash_cv_type_intmax_t
=no
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_intmax_t" >&5
13334 $as_echo "$bash_cv_type_intmax_t" >&6; }
13336 if test $bash_cv_type_intmax_t = no
; then
13337 cat >>confdefs.h
<<_ACEOF
13338 #define intmax_t $bash_cv_type_long_long
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintmax_t" >&5
13346 $as_echo_n "checking for uintmax_t... " >&6; }
13347 if ${bash_cv_type_uintmax_t+:} false
; then :
13348 $as_echo_n "(cached) " >&6
13350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13352 #include <sys/types.h>
13354 #include <stdlib.h>
13355 #include <stddef.h>
13357 #if HAVE_INTTYPES_H
13358 #include <inttypes.h>
13361 #include <stdint.h>
13366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13367 $EGREP "uintmax_t" >/dev
/null
2>&1; then :
13368 bash_cv_type_uintmax_t
=yes
13370 bash_cv_type_uintmax_t
=no
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_uintmax_t" >&5
13377 $as_echo "$bash_cv_type_uintmax_t" >&6; }
13379 if test $bash_cv_type_uintmax_t = no
; then
13380 cat >>confdefs.h
<<_ACEOF
13381 #define uintmax_t $bash_cv_type_unsigned_long_long
13386 if test "$ac_cv_header_sys_socket_h" = "yes"; then
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
13390 $as_echo_n "checking for socklen_t... " >&6; }
13391 if ${bash_cv_type_socklen_t+:} false
; then :
13392 $as_echo_n "(cached) " >&6
13394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13395 /* end confdefs.h. */
13396 #include <sys/types.h>
13398 #include <stdlib.h>
13399 #include <stddef.h>
13401 #if HAVE_INTTYPES_H
13402 #include <inttypes.h>
13405 #include <stdint.h>
13407 #include <sys/socket.h>
13410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13411 $EGREP "socklen_t" >/dev
/null
2>&1; then :
13412 bash_cv_type_socklen_t
=yes
13414 bash_cv_type_socklen_t
=no
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_socklen_t" >&5
13421 $as_echo "$bash_cv_type_socklen_t" >&6; }
13422 if test $bash_cv_type_socklen_t = yes; then
13423 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
13426 if test $bash_cv_type_socklen_t = no
; then
13427 cat >>confdefs.h
<<_ACEOF
13428 #define socklen_t unsigned int
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size and type of struct rlimit fields" >&5
13435 $as_echo_n "checking for size and type of struct rlimit fields... " >&6; }
13436 if ${bash_cv_type_rlimit+:} false
; then :
13437 $as_echo_n "(cached) " >&6
13439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13440 /* end confdefs.h. */
13441 #include <sys/types.h>
13442 #include <sys/resource.h>
13451 if ac_fn_c_try_compile
"$LINENO"; then :
13452 bash_cv_type_rlimit
=rlim_t
13455 if test "$cross_compiling" = yes; then :
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
13457 $as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
13458 bash_cv_type_rlimit
=long
13460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h. */
13463 #include <sys/types.h>
13464 #include <sys/time.h>
13465 #include <sys/resource.h>
13470 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
13476 if ac_fn_c_try_run
"$LINENO"; then :
13477 bash_cv_type_rlimit
=quad_t
13479 bash_cv_type_rlimit
=long
13481 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13482 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_rlimit" >&5
13491 $as_echo "$bash_cv_type_rlimit" >&6; }
13492 if test $bash_cv_type_rlimit = quad_t
; then
13493 $as_echo "#define RLIMTYPE quad_t" >>confdefs.h
13495 elif test $bash_cv_type_rlimit = rlim_t
; then
13496 $as_echo "#define RLIMTYPE rlim_t" >>confdefs.h
13501 # The cast to long int works around a bug in the HP C Compiler
13502 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13503 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13504 # This bug is HP SR number 8606223364.
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
13506 $as_echo_n "checking size of intmax_t... " >&6; }
13507 if ${ac_cv_sizeof_intmax_t+:} false
; then :
13508 $as_echo_n "(cached) " >&6
13510 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then :
13513 if test "$ac_cv_type_intmax_t" = yes; then
13514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13516 as_fn_error
77 "cannot compute sizeof (intmax_t)
13517 See \`config.log' for more details" "$LINENO" 5; }
13519 ac_cv_sizeof_intmax_t
=0
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
13525 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
13529 cat >>confdefs.h
<<_ACEOF
13530 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
13536 ac_fn_c_check_member
"$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" "
13537 #include <sys/types.h>
13538 #include <termios.h>
13541 if test "x$ac_cv_member_struct_termios_c_line" = xyes
; then :
13542 $as_echo "#define TERMIOS_LDISC 1" >>confdefs.h
13548 ac_fn_c_check_member
"$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" "
13549 #include <sys/types.h>
13550 #include <termio.h>
13553 if test "x$ac_cv_member_struct_termio_c_line" = xyes
; then :
13554 $as_echo "#define TERMIO_LDISC 1" >>confdefs.h
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5
13561 $as_echo_n "checking for struct dirent.d_ino... " >&6; }
13562 if ${bash_cv_dirent_has_dino+:} false
; then :
13563 $as_echo_n "(cached) " >&6
13565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13566 /* end confdefs.h. */
13569 #include <sys/types.h>
13570 #ifdef HAVE_UNISTD_H
13571 # include <unistd.h>
13572 #endif /* HAVE_UNISTD_H */
13573 #if defined(HAVE_DIRENT_H)
13574 # include <dirent.h>
13576 # define dirent direct
13577 # ifdef HAVE_SYS_NDIR_H
13578 # include <sys/ndir.h>
13579 # endif /* SYSNDIR */
13580 # ifdef HAVE_SYS_DIR_H
13581 # include <sys/dir.h>
13582 # endif /* SYSDIR */
13583 # ifdef HAVE_NDIR_H
13586 #endif /* HAVE_DIRENT_H */
13592 struct dirent d; int z; z = d.d_ino;
13598 if ac_fn_c_try_compile
"$LINENO"; then :
13599 bash_cv_dirent_has_dino
=yes
13601 bash_cv_dirent_has_dino
=no
13603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_dino" >&5
13607 $as_echo "$bash_cv_dirent_has_dino" >&6; }
13608 if test $bash_cv_dirent_has_dino = yes; then
13609 $as_echo "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5
13615 $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
13616 if ${bash_cv_dirent_has_d_fileno+:} false
; then :
13617 $as_echo_n "(cached) " >&6
13619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13620 /* end confdefs.h. */
13623 #include <sys/types.h>
13624 #ifdef HAVE_UNISTD_H
13625 # include <unistd.h>
13626 #endif /* HAVE_UNISTD_H */
13627 #if defined(HAVE_DIRENT_H)
13628 # include <dirent.h>
13630 # define dirent direct
13631 # ifdef HAVE_SYS_NDIR_H
13632 # include <sys/ndir.h>
13633 # endif /* SYSNDIR */
13634 # ifdef HAVE_SYS_DIR_H
13635 # include <sys/dir.h>
13636 # endif /* SYSDIR */
13637 # ifdef HAVE_NDIR_H
13640 #endif /* HAVE_DIRENT_H */
13646 struct dirent d; int z; z = d.d_fileno;
13652 if ac_fn_c_try_compile
"$LINENO"; then :
13653 bash_cv_dirent_has_d_fileno
=yes
13655 bash_cv_dirent_has_d_fileno
=no
13657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5
13661 $as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
13662 if test $bash_cv_dirent_has_d_fileno = yes; then
13663 $as_echo "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_namlen" >&5
13669 $as_echo_n "checking for struct dirent.d_namlen... " >&6; }
13670 if ${bash_cv_dirent_has_d_namlen+:} false
; then :
13671 $as_echo_n "(cached) " >&6
13673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13674 /* end confdefs.h. */
13677 #include <sys/types.h>
13678 #ifdef HAVE_UNISTD_H
13679 # include <unistd.h>
13680 #endif /* HAVE_UNISTD_H */
13681 #if defined(HAVE_DIRENT_H)
13682 # include <dirent.h>
13684 # define dirent direct
13685 # ifdef HAVE_SYS_NDIR_H
13686 # include <sys/ndir.h>
13687 # endif /* SYSNDIR */
13688 # ifdef HAVE_SYS_DIR_H
13689 # include <sys/dir.h>
13690 # endif /* SYSDIR */
13691 # ifdef HAVE_NDIR_H
13694 #endif /* HAVE_DIRENT_H */
13700 struct dirent d; int z; z = d.d_namlen;
13706 if ac_fn_c_try_compile
"$LINENO"; then :
13707 bash_cv_dirent_has_d_namlen
=yes
13709 bash_cv_dirent_has_d_namlen
=no
13711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_namlen" >&5
13715 $as_echo "$bash_cv_dirent_has_d_namlen" >&6; }
13716 if test $bash_cv_dirent_has_d_namlen = yes; then
13717 $as_echo "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5
13722 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
13723 if ${bash_cv_struct_winsize_header+:} false
; then :
13724 $as_echo_n "(cached) " >&6
13726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h. */
13728 #include <sys/types.h>
13729 #include <sys/ioctl.h>
13738 if ac_fn_c_try_compile
"$LINENO"; then :
13739 bash_cv_struct_winsize_header
=ioctl_h
13741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h. */
13743 #include <sys/types.h>
13744 #include <termios.h>
13753 if ac_fn_c_try_compile
"$LINENO"; then :
13754 bash_cv_struct_winsize_header
=termios_h
13756 bash_cv_struct_winsize_header
=other
13758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13764 if test $bash_cv_struct_winsize_header = ioctl_h
; then
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5
13766 $as_echo "sys/ioctl.h" >&6; }
13767 $as_echo "#define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h
13769 elif test $bash_cv_struct_winsize_header = termios_h
; then
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5
13771 $as_echo "termios.h" >&6; }
13772 $as_echo "#define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13776 $as_echo "not found" >&6; }
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval in sys/time.h and time.h" >&5
13780 $as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; }
13781 if ${bash_cv_struct_timeval+:} false
; then :
13782 $as_echo_n "(cached) " >&6
13785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13786 /* end confdefs.h. */
13787 #include <sys/time.h>
13790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13791 $EGREP "struct timeval" >/dev
/null
2>&1; then :
13792 bash_cv_struct_timeval
=yes
13794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13795 /* end confdefs.h. */
13799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13800 $EGREP "struct timeval" >/dev
/null
2>&1; then :
13801 bash_cv_struct_timeval
=yes
13803 bash_cv_struct_timeval
=no
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_struct_timeval" >&5
13814 $as_echo "$bash_cv_struct_timeval" >&6; }
13815 if test $bash_cv_struct_timeval = yes; then
13816 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
13820 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13821 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
13823 cat >>confdefs.h
<<_ACEOF
13824 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13831 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13832 if ${ac_cv_struct_tm+:} false
; then :
13833 $as_echo_n "(cached) " >&6
13835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h. */
13837 #include <sys/types.h>
13844 int *p = &tm.tm_sec;
13850 if ac_fn_c_try_compile
"$LINENO"; then :
13851 ac_cv_struct_tm
=time.h
13853 ac_cv_struct_tm
=sys
/time.h
13855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13858 $as_echo "$ac_cv_struct_tm" >&6; }
13859 if test $ac_cv_struct_tm = sys
/time.h
; then
13861 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
13865 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
13866 #include <$ac_cv_struct_tm>
13869 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
13871 cat >>confdefs.h
<<_ACEOF
13872 #define HAVE_STRUCT_TM_TM_ZONE 1
13878 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13880 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13883 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13885 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
13891 cat >>confdefs.h
<<_ACEOF
13892 #define HAVE_DECL_TZNAME $ac_have_decl
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13896 $as_echo_n "checking for tzname... " >&6; }
13897 if ${ac_cv_var_tzname+:} false
; then :
13898 $as_echo_n "(cached) " >&6
13900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13903 #if !HAVE_DECL_TZNAME
13904 extern char *tzname[];
13910 return tzname[0][0];
13915 if ac_fn_c_try_link
"$LINENO"; then :
13916 ac_cv_var_tzname
=yes
13918 ac_cv_var_tzname
=no
13920 rm -f core conftest.err conftest.
$ac_objext \
13921 conftest
$ac_exeext conftest.
$ac_ext
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13924 $as_echo "$ac_cv_var_tzname" >&6; }
13925 if test $ac_cv_var_tzname = yes; then
13927 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timezone in sys/time.h and time.h" >&5
13933 $as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; }
13934 if ${bash_cv_struct_timezone+:} false
; then :
13935 $as_echo_n "(cached) " >&6
13938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h. */
13940 #include <sys/time.h>
13943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13944 $EGREP "struct timezone" >/dev
/null
2>&1; then :
13945 bash_cv_struct_timezone
=yes
13947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13948 /* end confdefs.h. */
13952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13953 $EGREP "struct timezone" >/dev
/null
2>&1; then :
13954 bash_cv_struct_timezone
=yes
13956 bash_cv_struct_timezone
=no
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_struct_timezone" >&5
13967 $as_echo "$bash_cv_struct_timezone" >&6; }
13968 if test $bash_cv_struct_timezone = yes; then
13969 $as_echo "#define HAVE_STRUCT_TIMEZONE 1" >>confdefs.h
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for offset of exit status in return status from wait" >&5
13975 $as_echo_n "checking for offset of exit status in return status from wait... " >&6; }
13976 if ${bash_cv_wexitstatus_offset+:} false
; then :
13977 $as_echo_n "(cached) " >&6
13979 if test "$cross_compiling" = yes; then :
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&5
13981 $as_echo "$as_me: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&2;}
13982 bash_cv_wexitstatus_offset
=0
13985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13986 /* end confdefs.h. */
13988 #include <stdlib.h>
13989 #include <unistd.h>
13991 #include <sys/wait.h>
14005 /* wait for the process */
14011 for (i = 0; i < (sizeof(s) - 8); i++)
14013 n = (s >> i) & 0xff;
14022 if ac_fn_c_try_run
"$LINENO"; then :
14023 bash_cv_wexitstatus_offset
=0
14025 bash_cv_wexitstatus_offset
=$?
14027 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14028 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14033 if test "$bash_cv_wexitstatus_offset" -gt 32 ; then
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bad exit status from test program -- defaulting to 0" >&5
14035 $as_echo "$as_me: WARNING: bad exit status from test program -- defaulting to 0" >&2;}
14036 bash_cv_wexitstatus_offset
=0
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wexitstatus_offset" >&5
14039 $as_echo "$bash_cv_wexitstatus_offset" >&6; }
14041 cat >>confdefs.h
<<_ACEOF
14042 #define WEXITSTATUS_OFFSET $bash_cv_wexitstatus_offset
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14050 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14051 if ${bash_cv_sys_struct_timespec_in_time_h+:} false
; then :
14052 $as_echo_n "(cached) " >&6
14054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14055 /* end confdefs.h. */
14061 static struct timespec x; x.tv_sec = x.tv_nsec;
14066 if ac_fn_c_try_compile
"$LINENO"; then :
14067 bash_cv_sys_struct_timespec_in_time_h
=yes
14069 bash_cv_sys_struct_timespec_in_time_h
=no
14071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_time_h" >&5
14074 $as_echo "$bash_cv_sys_struct_timespec_in_time_h" >&6; }
14076 HAVE_STRUCT_TIMESPEC
=0
14077 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14078 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14079 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
14080 if test $bash_cv_sys_struct_timespec_in_time_h = yes; then
14081 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14083 $as_echo "#define TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
14085 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14088 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14089 if ${bash_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
14090 $as_echo_n "(cached) " >&6
14092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14093 /* end confdefs.h. */
14094 #include <sys/time.h>
14099 static struct timespec x; x.tv_sec = x.tv_nsec;
14104 if ac_fn_c_try_compile
"$LINENO"; then :
14105 bash_cv_sys_struct_timespec_in_sys_time_h
=yes
14107 bash_cv_sys_struct_timespec_in_sys_time_h
=no
14109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_sys_time_h" >&5
14112 $as_echo "$bash_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14113 if test $bash_cv_sys_struct_timespec_in_sys_time_h = yes; then
14114 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14115 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14117 $as_echo "#define SYS_TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14121 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14122 if ${bash_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
14123 $as_echo_n "(cached) " >&6
14125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14127 #include <pthread.h>
14132 static struct timespec x; x.tv_sec = x.tv_nsec;
14137 if ac_fn_c_try_compile
"$LINENO"; then :
14138 bash_cv_sys_struct_timespec_in_pthread_h
=yes
14140 bash_cv_sys_struct_timespec_in_pthread_h
=no
14142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_pthread_h" >&5
14145 $as_echo "$bash_cv_sys_struct_timespec_in_pthread_h" >&6; }
14146 if test $bash_cv_sys_struct_timespec_in_pthread_h = yes; then
14147 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
14148 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14150 $as_echo "#define PTHREAD_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
14164 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>
14165 #include <sys/stat.h>
14167 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
; then :
14169 cat >>confdefs.h
<<_ACEOF
14170 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
14174 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
14175 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false
; then :
14176 $as_echo_n "(cached) " >&6
14178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14179 /* end confdefs.h. */
14181 #include <sys/types.h>
14182 #include <sys/stat.h>
14183 #if HAVE_SYS_TIME_H
14184 # include <sys/time.h>
14187 struct timespec ts;
14200 if ac_fn_c_try_compile
"$LINENO"; then :
14201 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
14203 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
14205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
14208 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
14209 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
14211 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
14215 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>
14216 #include <sys/stat.h>
14218 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
; then :
14220 cat >>confdefs.h
<<_ACEOF
14221 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
14226 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
14227 #include <sys/stat.h>
14229 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
; then :
14231 cat >>confdefs.h
<<_ACEOF
14232 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
14237 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>
14238 #include <sys/stat.h>
14240 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
; then :
14242 cat >>confdefs.h
<<_ACEOF
14243 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the existence of strsignal" >&5
14258 $as_echo_n "checking for the existence of strsignal... " >&6; }
14259 if ${bash_cv_have_strsignal+:} false
; then :
14260 $as_echo_n "(cached) " >&6
14262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14263 /* end confdefs.h. */
14264 #include <sys/types.h>
14265 #include <signal.h>
14269 char *s = (char *)strsignal(2);
14274 if ac_fn_c_try_link
"$LINENO"; then :
14275 bash_cv_have_strsignal
=yes
14277 bash_cv_have_strsignal
=no
14279 rm -f core conftest.err conftest.
$ac_objext \
14280 conftest
$ac_exeext conftest.
$ac_ext
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_strsignal" >&5
14284 $as_echo "$bash_cv_have_strsignal" >&6; }
14285 if test $bash_cv_have_strsignal = yes; then
14286 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if opendir() opens non-directories" >&5
14291 $as_echo_n "checking if opendir() opens non-directories... " >&6; }
14292 if ${bash_cv_opendir_not_robust+:} false
; then :
14293 $as_echo_n "(cached) " >&6
14295 if test "$cross_compiling" = yes; then :
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
14297 $as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
14298 bash_cv_opendir_not_robust
=no
14301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14302 /* end confdefs.h. */
14305 #include <sys/types.h>
14307 #ifdef HAVE_UNISTD_H
14308 # include <unistd.h>
14309 #endif /* HAVE_UNISTD_H */
14310 #if defined(HAVE_DIRENT_H)
14311 # include <dirent.h>
14313 # define dirent direct
14314 # ifdef HAVE_SYS_NDIR_H
14315 # include <sys/ndir.h>
14316 # endif /* SYSNDIR */
14317 # ifdef HAVE_SYS_DIR_H
14318 # include <sys/dir.h>
14319 # endif /* SYSDIR */
14320 # ifdef HAVE_NDIR_H
14323 #endif /* HAVE_DIRENT_H */
14328 err = mkdir("bash-aclocal", 0700);
14333 unlink("bash-aclocal/not_a_directory");
14334 fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
14335 write(fd, "\n", 1);
14337 dir = opendir("bash-aclocal/not_a_directory");
14338 unlink("bash-aclocal/not_a_directory");
14339 rmdir("bash-aclocal");
14343 if ac_fn_c_try_run
"$LINENO"; then :
14344 bash_cv_opendir_not_robust
=yes
14346 bash_cv_opendir_not_robust
=no
14348 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14349 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_opendir_not_robust" >&5
14355 $as_echo "$bash_cv_opendir_not_robust" >&6; }
14356 if test $bash_cv_opendir_not_robust = yes; then
14357 $as_echo "#define OPENDIR_NOT_ROBUST 1" >>confdefs.h
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ulimit can substitute for getdtablesize" >&5
14362 $as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; }
14363 if ${bash_cv_ulimit_maxfds+:} false
; then :
14364 $as_echo_n "(cached) " >&6
14366 if test "$cross_compiling" = yes; then :
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
14368 $as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
14369 bash_cv_ulimit_maxfds
=no
14372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14373 /* end confdefs.h. */
14377 long maxfds = ulimit(4, 0L);
14378 exit (maxfds == -1L);
14382 if ac_fn_c_try_run
"$LINENO"; then :
14383 bash_cv_ulimit_maxfds
=yes
14385 bash_cv_ulimit_maxfds
=no
14387 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14388 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_ulimit_maxfds" >&5
14394 $as_echo "$bash_cv_ulimit_maxfds" >&6; }
14395 if test $bash_cv_ulimit_maxfds = yes; then
14396 $as_echo "#define ULIMIT_MAXFDS 1" >>confdefs.h
14407 ac_fn_c_check_decl
"$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "#include <stdio.h>
14409 if test "x$ac_cv_have_decl_fpurge" = xyes
; then :
14415 cat >>confdefs.h
<<_ACEOF
14416 #define HAVE_DECL_FPURGE $ac_have_decl
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if getenv can be redefined" >&5
14421 $as_echo_n "checking to see if getenv can be redefined... " >&6; }
14422 if ${bash_cv_getenv_redef+:} false
; then :
14423 $as_echo_n "(cached) " >&6
14425 if test "$cross_compiling" = yes; then :
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
14427 $as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
14428 bash_cv_getenv_redef
=yes
14431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14432 /* end confdefs.h. */
14434 #ifdef HAVE_UNISTD_H
14435 # include <unistd.h>
14444 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
14448 #endif /* !__linux__ && !__bsdi__ && !convex */
14455 /* The next allows this program to run, but does not allow bash to link
14456 when it redefines getenv. I'm not really interested in figuring out
14461 s = getenv("ABCDE");
14462 exit(s == 0); /* force optimizer to leave getenv in */
14466 if ac_fn_c_try_run
"$LINENO"; then :
14467 bash_cv_getenv_redef
=yes
14469 bash_cv_getenv_redef
=no
14471 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14472 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getenv_redef" >&5
14478 $as_echo "$bash_cv_getenv_redef" >&6; }
14479 if test $bash_cv_getenv_redef = yes; then
14480 $as_echo "#define CAN_REDEFINE_GETENV 1" >>confdefs.h
14484 if test "$ac_cv_func_getcwd" = "yes"; then
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getcwd() will dynamically allocate memory with 0 size" >&5
14486 $as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
14487 if ${bash_cv_getcwd_malloc+:} false
; then :
14488 $as_echo_n "(cached) " >&6
14490 if test "$cross_compiling" = yes; then :
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
14492 $as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
14493 bash_cv_getcwd_malloc
=no
14496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h. */
14500 #ifdef HAVE_UNISTD_H
14501 #include <unistd.h>
14507 xpwd = getcwd(0, 0);
14512 if ac_fn_c_try_run
"$LINENO"; then :
14513 bash_cv_getcwd_malloc
=yes
14515 bash_cv_getcwd_malloc
=no
14517 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14518 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getcwd_malloc" >&5
14524 $as_echo "$bash_cv_getcwd_malloc" >&6; }
14525 if test $bash_cv_getcwd_malloc = no
; then
14526 $as_echo "#define GETCWD_BROKEN 1" >>confdefs.h
14528 case " $LIBOBJS " in
14529 *" getcwd.$ac_objext "* ) ;;
14530 *) LIBOBJS
="$LIBOBJS getcwd.$ac_objext"
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
14539 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
14540 if ${bash_cv_func_sigsetjmp+:} false
; then :
14541 $as_echo_n "(cached) " >&6
14543 if test "$cross_compiling" = yes; then :
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
14545 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
14546 bash_cv_func_sigsetjmp
=missing
14549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h. */
14552 #ifdef HAVE_UNISTD_H
14553 #include <unistd.h>
14555 #include <sys/types.h>
14556 #include <signal.h>
14557 #include <setjmp.h>
14561 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
14566 sigset_t set, oset;
14571 sigemptyset(&oset);
14572 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
14573 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
14576 code = sigsetjmp(xx, 1);
14578 exit(0); /* could get sigmask and compare to oset here. */
14581 sigaddset(&set, SIGINT);
14582 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
14584 /* and siglongjmp */
14585 siglongjmp(xx, 10);
14590 if ac_fn_c_try_run
"$LINENO"; then :
14591 bash_cv_func_sigsetjmp
=present
14593 bash_cv_func_sigsetjmp
=missing
14595 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14596 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5
14602 $as_echo "$bash_cv_func_sigsetjmp" >&6; }
14603 if test $bash_cv_func_sigsetjmp = present
; then
14604 $as_echo "#define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5
14610 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
14611 if ${bash_cv_func_strcoll_broken+:} false
; then :
14612 $as_echo_n "(cached) " >&6
14614 if test "$cross_compiling" = yes; then :
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
14616 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
14617 bash_cv_func_strcoll_broken
=no
14620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14621 /* end confdefs.h. */
14624 #if defined (HAVE_LOCALE_H)
14625 #include <locale.h>
14633 char *deflocale, *defcoll;
14635 #ifdef HAVE_SETLOCALE
14636 deflocale = setlocale(LC_ALL, "");
14637 defcoll = setlocale(LC_COLLATE, "");
14640 #ifdef HAVE_STRCOLL
14641 /* These two values are taken from tests/glob-test. */
14642 r1 = strcoll("abd", "aXd");
14646 r2 = strcmp("abd", "aXd");
14648 /* These two should both be greater than 0. It is permissible for
14649 a system to return different values, as long as the sign is the
14652 /* Exit with 1 (failure) if these two values are both > 0, since
14653 this tests whether strcoll(3) is broken with respect to strcmp(3)
14654 in the default locale. */
14655 exit (r1 > 0 && r2 > 0);
14659 if ac_fn_c_try_run
"$LINENO"; then :
14660 bash_cv_func_strcoll_broken
=yes
14662 bash_cv_func_strcoll_broken
=no
14664 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14665 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5
14671 $as_echo "$bash_cv_func_strcoll_broken" >&6; }
14672 if test $bash_cv_func_strcoll_broken = yes; then
14673 $as_echo "#define STRCOLL_BROKEN 1" >>confdefs.h
14681 if test X
$ac_cv_func_snprintf = Xyes
; then
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant snprintf" >&5
14683 $as_echo_n "checking for standard-conformant snprintf... " >&6; }
14684 if ${bash_cv_func_snprintf+:} false
; then :
14685 $as_echo_n "(cached) " >&6
14687 if test "$cross_compiling" = yes; then :
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard snprintf if cross-compiling" >&5
14689 $as_echo "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;}
14690 bash_cv_func_snprintf
=yes
14693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14694 /* end confdefs.h. */
14701 n = snprintf (0, 0, "%s", "0123456");
14706 if ac_fn_c_try_run
"$LINENO"; then :
14707 bash_cv_func_snprintf
=yes
14709 bash_cv_func_snprintf
=no
14711 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14712 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_snprintf" >&5
14717 $as_echo "$bash_cv_func_snprintf" >&6; }
14718 if test $bash_cv_func_snprintf = no
; then
14719 ac_cv_func_snprintf
=no
14722 if test $ac_cv_func_snprintf = no
; then
14724 $as_echo "#define HAVE_SNPRINTF 0" >>confdefs.h
14732 if test X
$ac_cv_func_vsnprintf = Xyes
; then
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant vsnprintf" >&5
14734 $as_echo_n "checking for standard-conformant vsnprintf... " >&6; }
14735 if ${bash_cv_func_vsnprintf+:} false
; then :
14736 $as_echo_n "(cached) " >&6
14738 if test "$cross_compiling" = yes; then :
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard vsnprintf if cross-compiling" >&5
14740 $as_echo "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;}
14741 bash_cv_func_vsnprintf
=yes
14744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14745 /* end confdefs.h. */
14748 #include <stdarg.h>
14750 #include <varargs.h>
14753 #include <stdlib.h>
14757 foo(const char *fmt, ...)
14759 foo(format, va_alist)
14760 const char *format;
14768 va_start(args, fmt);
14772 n = vsnprintf(0, 0, fmt, args);
14780 n = foo("%s", "0123456");
14785 if ac_fn_c_try_run
"$LINENO"; then :
14786 bash_cv_func_vsnprintf
=yes
14788 bash_cv_func_vsnprintf
=no
14790 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14791 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_vsnprintf" >&5
14796 $as_echo "$bash_cv_func_vsnprintf" >&6; }
14797 if test $bash_cv_func_vsnprintf = no
; then
14798 ac_cv_func_vsnprintf
=no
14801 if test $ac_cv_func_vsnprintf = no
; then
14803 $as_echo "#define HAVE_VSNPRINTF 0" >>confdefs.h
14809 if test "$ac_cv_func_putenv" = "yes"; then
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant putenv declaration" >&5
14814 $as_echo_n "checking for standard-conformant putenv declaration... " >&6; }
14815 if ${bash_cv_std_putenv+:} false
; then :
14816 $as_echo_n "(cached) " >&6
14818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14819 /* end confdefs.h. */
14822 #include <stdlib.h>
14823 #include <stddef.h>
14831 extern int putenv (char *);
14833 extern int putenv ();
14839 return (putenv == 0);
14844 if ac_fn_c_try_link
"$LINENO"; then :
14845 bash_cv_std_putenv
=yes
14847 bash_cv_std_putenv
=no
14850 rm -f core conftest.err conftest.
$ac_objext \
14851 conftest
$ac_exeext conftest.
$ac_ext
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_std_putenv" >&5
14854 $as_echo "$bash_cv_std_putenv" >&6; }
14855 if test $bash_cv_std_putenv = yes; then
14856 $as_echo "#define HAVE_STD_PUTENV 1" >>confdefs.h
14861 $as_echo "#define HAVE_STD_PUTENV 1" >>confdefs.h
14864 if test "$ac_cv_func_unsetenv" = "yes"; then
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant unsetenv declaration" >&5
14869 $as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; }
14870 if ${bash_cv_std_unsetenv+:} false
; then :
14871 $as_echo_n "(cached) " >&6
14873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14874 /* end confdefs.h. */
14877 #include <stdlib.h>
14878 #include <stddef.h>
14886 extern int unsetenv (const char *);
14888 extern int unsetenv ();
14894 return (unsetenv == 0);
14899 if ac_fn_c_try_link
"$LINENO"; then :
14900 bash_cv_std_unsetenv
=yes
14902 bash_cv_std_unsetenv
=no
14905 rm -f core conftest.err conftest.
$ac_objext \
14906 conftest
$ac_exeext conftest.
$ac_ext
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_std_unsetenv" >&5
14909 $as_echo "$bash_cv_std_unsetenv" >&6; }
14910 if test $bash_cv_std_unsetenv = yes; then
14911 $as_echo "#define HAVE_STD_UNSETENV 1" >>confdefs.h
14916 $as_echo "#define HAVE_STD_UNSETENV 1" >>confdefs.h
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf floating point output in hex notation" >&5
14921 $as_echo_n "checking for printf floating point output in hex notation... " >&6; }
14922 if ${bash_cv_printf_a_format+:} false
; then :
14923 $as_echo_n "(cached) " >&6
14925 if test "$cross_compiling" = yes; then :
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
14927 $as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
14928 bash_cv_printf_a_format
=no
14931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14932 /* end confdefs.h. */
14935 #include <string.h>
14943 sprintf(abuf, "%A", y);
14944 exit(strchr(abuf, 'P') == (char *)0);
14948 if ac_fn_c_try_run
"$LINENO"; then :
14949 bash_cv_printf_a_format
=yes
14951 bash_cv_printf_a_format
=no
14953 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14954 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_printf_a_format" >&5
14960 $as_echo "$bash_cv_printf_a_format" >&6; }
14961 if test $bash_cv_printf_a_format = yes; then
14962 $as_echo "#define HAVE_PRINTF_A_FORMAT 1" >>confdefs.h
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5
14970 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
14971 if ${bash_cv_must_reinstall_sighandlers+:} false
; then :
14972 $as_echo_n "(cached) " >&6
14974 if test "$cross_compiling" = yes; then :
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
14976 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
14977 bash_cv_must_reinstall_sighandlers
=no
14980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14981 /* end confdefs.h. */
14983 #include <signal.h>
14984 #ifdef HAVE_UNISTD_H
14985 #include <unistd.h>
14988 typedef RETSIGTYPE sigfunc();
14992 #ifdef HAVE_POSIX_SIGNALS
14994 set_signal_handler(sig, handler)
14998 struct sigaction act, oact;
14999 act.sa_handler = handler;
15001 sigemptyset (&act.sa_mask);
15002 sigemptyset (&oact.sa_mask);
15003 sigaction (sig, &act, &oact);
15004 return (oact.sa_handler);
15007 #define set_signal_handler(s, h) signal(s, h)
15020 set_signal_handler(SIGINT, sigint);
15021 kill((int)getpid(), SIGINT);
15022 kill((int)getpid(), SIGINT);
15023 exit(nsigint != 2);
15027 if ac_fn_c_try_run
"$LINENO"; then :
15028 bash_cv_must_reinstall_sighandlers
=no
15030 bash_cv_must_reinstall_sighandlers
=yes
15032 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15033 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5
15039 $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
15040 if test $bash_cv_must_reinstall_sighandlers = yes; then
15041 $as_echo "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of necessary job control definitions" >&5
15047 $as_echo_n "checking for presence of necessary job control definitions... " >&6; }
15048 if ${bash_cv_job_control_missing+:} false
; then :
15049 $as_echo_n "(cached) " >&6
15051 if test "$cross_compiling" = yes; then :
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
15053 $as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
15054 bash_cv_job_control_missing
=missing
15057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15058 /* end confdefs.h. */
15060 #include <sys/types.h>
15061 #ifdef HAVE_SYS_WAIT_H
15062 #include <sys/wait.h>
15064 #ifdef HAVE_UNISTD_H
15065 #include <unistd.h>
15067 #include <signal.h>
15069 /* Add more tests in here as appropriate. */
15073 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
15077 /* signals and tty control. */
15078 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
15082 /* process control */
15083 #if !defined (WNOHANG) || !defined (WUNTRACED)
15087 /* Posix systems have tcgetpgrp and waitpid. */
15088 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
15092 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
15096 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
15097 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
15104 if ac_fn_c_try_run
"$LINENO"; then :
15105 bash_cv_job_control_missing
=present
15107 bash_cv_job_control_missing
=missing
15109 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15110 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_job_control_missing" >&5
15116 $as_echo "$bash_cv_job_control_missing" >&6; }
15117 if test $bash_cv_job_control_missing = missing
; then
15118 $as_echo "#define JOB_CONTROL_MISSING 1" >>confdefs.h
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of named pipes" >&5
15123 $as_echo_n "checking for presence of named pipes... " >&6; }
15124 if ${bash_cv_sys_named_pipes+:} false
; then :
15125 $as_echo_n "(cached) " >&6
15127 if test "$cross_compiling" = yes; then :
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
15129 $as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
15130 bash_cv_sys_named_pipes
=missing
15133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15134 /* end confdefs.h. */
15136 #include <sys/types.h>
15137 #include <sys/stat.h>
15138 #ifdef HAVE_UNISTD_H
15139 #include <unistd.h>
15142 /* Add more tests in here as appropriate. */
15147 #if defined (HAVE_MKFIFO)
15151 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
15158 err = mkdir("bash-aclocal", 0700);
15163 fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
15165 rmdir ("bash-aclocal");
15169 unlink ("bash-aclocal/sh-np-autoconf");
15170 rmdir ("bash-aclocal");
15174 if ac_fn_c_try_run
"$LINENO"; then :
15175 bash_cv_sys_named_pipes
=present
15177 bash_cv_sys_named_pipes
=missing
15179 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15180 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_named_pipes" >&5
15186 $as_echo "$bash_cv_sys_named_pipes" >&6; }
15187 if test $bash_cv_sys_named_pipes = missing
; then
15188 $as_echo "#define NAMED_PIPES_MISSING 1" >>confdefs.h
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
15194 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
15195 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
15196 $as_echo_n "(cached) " >&6
15198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15199 /* end confdefs.h. */
15200 #include <sys/types.h>
15201 #include <termios.h>
15207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15208 $EGREP "yes" >/dev
/null
2>&1; then :
15209 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
15211 ac_cv_sys_tiocgwinsz_in_termios_h
=no
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
15217 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
15219 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
15221 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
15222 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
15223 $as_echo_n "(cached) " >&6
15225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h. */
15227 #include <sys/types.h>
15228 #include <sys/ioctl.h>
15234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15235 $EGREP "yes" >/dev
/null
2>&1; then :
15236 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
15238 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
15244 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
15246 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
15248 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5
15254 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
15255 if ${bash_cv_tiocstat_in_ioctl+:} false
; then :
15256 $as_echo_n "(cached) " >&6
15258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15259 /* end confdefs.h. */
15260 #include <sys/types.h>
15261 #include <sys/ioctl.h>
15270 if ac_fn_c_try_compile
"$LINENO"; then :
15271 bash_cv_tiocstat_in_ioctl
=yes
15273 bash_cv_tiocstat_in_ioctl
=no
15275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5
15279 $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
15280 if test $bash_cv_tiocstat_in_ioctl = yes; then
15281 $as_echo "#define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5
15286 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
15287 if ${bash_cv_fionread_in_ioctl+:} false
; then :
15288 $as_echo_n "(cached) " >&6
15290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15291 /* end confdefs.h. */
15292 #include <sys/types.h>
15293 #include <sys/ioctl.h>
15302 if ac_fn_c_try_compile
"$LINENO"; then :
15303 bash_cv_fionread_in_ioctl
=yes
15305 bash_cv_fionread_in_ioctl
=no
15307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5
15311 $as_echo "$bash_cv_fionread_in_ioctl" >&6; }
15312 if test $bash_cv_fionread_in_ioctl = yes; then
15313 $as_echo "#define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
15320 $as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
15321 if ${bash_cv_wcontinued_broken+:} false
; then :
15322 $as_echo_n "(cached) " >&6
15324 if test "$cross_compiling" = yes; then :
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
15326 $as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
15327 bash_cv_wcontinued_broken
=no
15330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h. */
15333 #include <sys/types.h>
15334 #include <sys/wait.h>
15335 #include <unistd.h>
15345 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
15346 if (x == -1 && errno == EINVAL)
15353 if ac_fn_c_try_run
"$LINENO"; then :
15354 bash_cv_wcontinued_broken
=no
15356 bash_cv_wcontinued_broken
=yes
15358 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15359 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcontinued_broken" >&5
15365 $as_echo "$bash_cv_wcontinued_broken" >&6; }
15366 if test $bash_cv_wcontinued_broken = yes; then
15367 $as_echo "#define WCONTINUED_BROKEN 1" >>confdefs.h
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5
15373 $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
15374 if ${bash_cv_speed_t_in_sys_types+:} false
; then :
15375 $as_echo_n "(cached) " >&6
15377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15378 /* end confdefs.h. */
15379 #include <sys/types.h>
15388 if ac_fn_c_try_compile
"$LINENO"; then :
15389 bash_cv_speed_t_in_sys_types
=yes
15391 bash_cv_speed_t_in_sys_types
=no
15393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5
15397 $as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
15398 if test $bash_cv_speed_t_in_sys_types = yes; then
15399 $as_echo "#define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5
15404 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
15405 if ${bash_cv_getpw_declared+:} false
; then :
15406 $as_echo_n "(cached) " >&6
15408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15409 /* end confdefs.h. */
15411 #include <sys/types.h>
15412 #ifdef HAVE_UNISTD_H
15413 # include <unistd.h>
15418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15419 $EGREP "getpwuid" >/dev
/null
2>&1; then :
15420 bash_cv_getpw_declared
=yes
15422 bash_cv_getpw_declared
=no
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5
15429 $as_echo "$bash_cv_getpw_declared" >&6; }
15430 if test $bash_cv_getpw_declared = yes; then
15431 $as_echo "#define HAVE_GETPW_DECLS 1" >>confdefs.h
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unusable real-time signals due to large values" >&5
15436 $as_echo_n "checking for unusable real-time signals due to large values... " >&6; }
15437 if ${bash_cv_unusable_rtsigs+:} false
; then :
15438 $as_echo_n "(cached) " >&6
15440 if test "$cross_compiling" = yes; then :
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
15442 $as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
15443 bash_cv_unusable_rtsigs
=yes
15446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15447 /* end confdefs.h. */
15449 #include <sys/types.h>
15450 #include <signal.h>
15458 int n_sigs = 2 * NSIG;
15460 int rtmin = SIGRTMIN;
15465 exit(rtmin < n_sigs);
15468 if ac_fn_c_try_run
"$LINENO"; then :
15469 bash_cv_unusable_rtsigs
=yes
15471 bash_cv_unusable_rtsigs
=no
15473 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15474 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_unusable_rtsigs" >&5
15480 $as_echo "$bash_cv_unusable_rtsigs" >&6; }
15481 if test $bash_cv_unusable_rtsigs = yes; then
15482 $as_echo "#define UNUSABLE_RT_SIGNALS 1" >>confdefs.h
15490 if test "$bash_cv_sys_siglist" = no
&& test "$bash_cv_under_sys_siglist" = no
&& test "$bash_cv_have_strsignal" = no
; then
15491 SIGLIST_O
=siglist.o
15499 hpux
*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
15500 $as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
15501 if ${bash_cv_kernel_rlimit+:} false
; then :
15502 $as_echo_n "(cached) " >&6
15504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15505 /* end confdefs.h. */
15507 #include <sys/types.h>
15508 #include <sys/resource.h>
15521 if ac_fn_c_try_compile
"$LINENO"; then :
15522 bash_cv_kernel_rlimit
=no
15524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15525 /* end confdefs.h. */
15527 #include <sys/types.h>
15529 #include <sys/resource.h>
15543 if ac_fn_c_try_compile
"$LINENO"; then :
15544 bash_cv_kernel_rlimit
=yes
15546 bash_cv_kernel_rlimit
=no
15548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_kernel_rlimit" >&5
15555 $as_echo "$bash_cv_kernel_rlimit" >&6; }
15556 if test $bash_cv_kernel_rlimit = yes; then
15557 $as_echo "#define RLIMIT_NEEDS_KERNEL 1" >>confdefs.h
15563 if test "$opt_readline" = yes; then
15565 aix
*) prefer_curses
=yes ;;
15568 if test "X$bash_cv_termcap_lib" = "X"; then
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
15572 $as_echo_n "checking which library has the termcap functions... " >&6; }
15575 if ${bash_cv_termcap_lib+:} false
; then :
15576 $as_echo_n "(cached) " >&6
15578 ac_fn_c_check_func
"$LINENO" "tgetent" "ac_cv_func_tgetent"
15579 if test "x$ac_cv_func_tgetent" = xyes
; then :
15580 bash_cv_termcap_lib
=libc
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
15583 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
15584 if ${ac_cv_lib_termcap_tgetent+:} false
; then :
15585 $as_echo_n "(cached) " >&6
15587 ac_check_lib_save_LIBS
=$LIBS
15588 LIBS
="-ltermcap $LIBS"
15589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15590 /* end confdefs.h. */
15592 /* Override any GCC internal prototype to avoid an error.
15593 Use char because int might match the return type of a GCC
15594 builtin and then its argument prototype would still apply. */
15607 if ac_fn_c_try_link
"$LINENO"; then :
15608 ac_cv_lib_termcap_tgetent
=yes
15610 ac_cv_lib_termcap_tgetent
=no
15612 rm -f core conftest.err conftest.
$ac_objext \
15613 conftest
$ac_exeext conftest.
$ac_ext
15614 LIBS
=$ac_check_lib_save_LIBS
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
15617 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
15618 if test "x$ac_cv_lib_termcap_tgetent" = xyes
; then :
15619 bash_cv_termcap_lib
=libtermcap
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
15622 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
15623 if ${ac_cv_lib_tinfo_tgetent+:} false
; then :
15624 $as_echo_n "(cached) " >&6
15626 ac_check_lib_save_LIBS
=$LIBS
15627 LIBS
="-ltinfo $LIBS"
15628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15629 /* end confdefs.h. */
15631 /* Override any GCC internal prototype to avoid an error.
15632 Use char because int might match the return type of a GCC
15633 builtin and then its argument prototype would still apply. */
15646 if ac_fn_c_try_link
"$LINENO"; then :
15647 ac_cv_lib_tinfo_tgetent
=yes
15649 ac_cv_lib_tinfo_tgetent
=no
15651 rm -f core conftest.err conftest.
$ac_objext \
15652 conftest
$ac_exeext conftest.
$ac_ext
15653 LIBS
=$ac_check_lib_save_LIBS
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
15656 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
15657 if test "x$ac_cv_lib_tinfo_tgetent" = xyes
; then :
15658 bash_cv_termcap_lib
=libtinfo
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
15661 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
15662 if ${ac_cv_lib_curses_tgetent+:} false
; then :
15663 $as_echo_n "(cached) " >&6
15665 ac_check_lib_save_LIBS
=$LIBS
15666 LIBS
="-lcurses $LIBS"
15667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h. */
15670 /* Override any GCC internal prototype to avoid an error.
15671 Use char because int might match the return type of a GCC
15672 builtin and then its argument prototype would still apply. */
15685 if ac_fn_c_try_link
"$LINENO"; then :
15686 ac_cv_lib_curses_tgetent
=yes
15688 ac_cv_lib_curses_tgetent
=no
15690 rm -f core conftest.err conftest.
$ac_objext \
15691 conftest
$ac_exeext conftest.
$ac_ext
15692 LIBS
=$ac_check_lib_save_LIBS
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
15695 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
15696 if test "x$ac_cv_lib_curses_tgetent" = xyes
; then :
15697 bash_cv_termcap_lib
=libcurses
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
15700 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
15701 if ${ac_cv_lib_ncurses_tgetent+:} false
; then :
15702 $as_echo_n "(cached) " >&6
15704 ac_check_lib_save_LIBS
=$LIBS
15705 LIBS
="-lncurses $LIBS"
15706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15707 /* end confdefs.h. */
15709 /* Override any GCC internal prototype to avoid an error.
15710 Use char because int might match the return type of a GCC
15711 builtin and then its argument prototype would still apply. */
15724 if ac_fn_c_try_link
"$LINENO"; then :
15725 ac_cv_lib_ncurses_tgetent
=yes
15727 ac_cv_lib_ncurses_tgetent
=no
15729 rm -f core conftest.err conftest.
$ac_objext \
15730 conftest
$ac_exeext conftest.
$ac_ext
15731 LIBS
=$ac_check_lib_save_LIBS
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
15734 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
15735 if test "x$ac_cv_lib_ncurses_tgetent" = xyes
; then :
15736 bash_cv_termcap_lib
=libncurses
15738 bash_cv_termcap_lib
=gnutermcap
15751 if test "X$_bash_needmsg" = "Xyes"; then
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
15753 $as_echo_n "checking which library has the termcap functions... " >&6; }
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
15756 $as_echo "using $bash_cv_termcap_lib" >&6; }
15757 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
15758 LDFLAGS
="$LDFLAGS -L./lib/termcap"
15759 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
15760 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
15761 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
15762 TERMCAP_LIB
=-ltermcap
15764 elif test $bash_cv_termcap_lib = libtinfo
; then
15765 TERMCAP_LIB
=-ltinfo
15767 elif test $bash_cv_termcap_lib = libncurses
; then
15768 TERMCAP_LIB
=-lncurses
15770 elif test $bash_cv_termcap_lib = libc
; then
15774 TERMCAP_LIB
=-lcurses
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/fd is available" >&5
15783 $as_echo_n "checking whether /dev/fd is available... " >&6; }
15784 if ${bash_cv_dev_fd+:} false
; then :
15785 $as_echo_n "(cached) " >&6
15788 if test -d /dev
/fd
&& (exec test -r /dev
/fd
/0 < /dev
/null
) ; then
15789 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
15790 if (exec test -r /dev
/fd
/3 3</dev
/null
) ; then
15791 bash_cv_dev_fd
=standard
15793 bash_cv_dev_fd
=absent
15796 if test -z "$bash_cv_dev_fd" ; then
15797 if test -d /proc
/self
/fd
&& (exec test -r /proc
/self
/fd
/0 < /dev
/null
) ; then
15798 bash_cv_dev_fd
=whacky
15800 bash_cv_dev_fd
=absent
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dev_fd" >&5
15807 $as_echo "$bash_cv_dev_fd" >&6; }
15808 if test $bash_cv_dev_fd = "standard"; then
15809 $as_echo "#define HAVE_DEV_FD 1" >>confdefs.h
15811 $as_echo "#define DEV_FD_PREFIX \"/dev/fd/\"" >>confdefs.h
15813 elif test $bash_cv_dev_fd = "whacky"; then
15814 $as_echo "#define HAVE_DEV_FD 1" >>confdefs.h
15816 $as_echo "#define DEV_FD_PREFIX \"/proc/self/fd/\"" >>confdefs.h
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/stdin stdout stderr are available" >&5
15821 $as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; }
15822 if ${bash_cv_dev_stdin+:} false
; then :
15823 $as_echo_n "(cached) " >&6
15825 if test -d /dev
/fd
&& (exec test -r /dev
/stdin
< /dev
/null
) ; then
15826 bash_cv_dev_stdin
=present
15827 elif test -d /proc
/self
/fd
&& (exec test -r /dev
/stdin
< /dev
/null
) ; then
15828 bash_cv_dev_stdin
=present
15830 bash_cv_dev_stdin
=absent
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dev_stdin" >&5
15836 $as_echo "$bash_cv_dev_stdin" >&6; }
15837 if test $bash_cv_dev_stdin = "present"; then
15838 $as_echo "#define HAVE_DEV_STDIN 1" >>confdefs.h
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default mail directory" >&5
15843 $as_echo_n "checking for default mail directory... " >&6; }
15844 if ${bash_cv_mail_dir+:} false
; then :
15845 $as_echo_n "(cached) " >&6
15847 if test -d /var
/mail; then
15848 bash_cv_mail_dir
=/var
/mail
15849 elif test -d /var
/spool
/mail; then
15850 bash_cv_mail_dir
=/var
/spool
/mail
15851 elif test -d /usr
/mail; then
15852 bash_cv_mail_dir
=/usr
/mail
15853 elif test -d /usr
/spool
/mail; then
15854 bash_cv_mail_dir
=/usr
/spool
/mail
15856 bash_cv_mail_dir
=unknown
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_mail_dir" >&5
15862 $as_echo "$bash_cv_mail_dir" >&6; }
15863 cat >>confdefs.h
<<_ACEOF
15864 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
15869 if test "$bash_cv_job_control_missing" = missing
; then
15873 if test "$opt_job_control" = yes; then
15874 $as_echo "#define JOB_CONTROL 1" >>confdefs.h
15887 case "${host_os}" in
15888 sysv4.2
*) $as_echo "#define SVR4_2 1" >>confdefs.h
15890 $as_echo "#define SVR4 1" >>confdefs.h
15892 sysv4
*) $as_echo "#define SVR4 1" >>confdefs.h
15894 sysv5
*) $as_echo "#define SVR5 1" >>confdefs.h
15896 hpux9
*) LOCAL_CFLAGS
="-DHPUX9 -DHPUX" ;;
15897 hpux
*) LOCAL_CFLAGS
=-DHPUX ;;
15898 dgux
*) LOCAL_CFLAGS
=-D_DGUX_SOURCE; LOCAL_LIBS
=-ldgc ;;
15899 isc
*) LOCAL_CFLAGS
=-Disc386 ;;
15900 rhapsody
*) LOCAL_CFLAGS
=-DRHAPSODY ;;
15901 darwin
*) LOCAL_CFLAGS
=-DMACOSX ;;
15902 sco3.2v5
*) LOCAL_CFLAGS
="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
15903 sco3.2v4
*) LOCAL_CFLAGS
="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
15904 sco3.2
*) LOCAL_CFLAGS
=-DMUST_UNBLOCK_CHLD ;;
15905 sunos4
*) LOCAL_CFLAGS
=-DSunOS4 ;;
15906 solaris2.5
*) LOCAL_CFLAGS
="-DSunOS5 -DSOLARIS" ;;
15907 solaris2.8
*) LOCAL_CFLAGS
=-DSOLARIS ;;
15908 solaris2.9
*) LOCAL_CFLAGS
=-DSOLARIS ;;
15909 solaris2.10
*) LOCAL_CFLAGS
=-DSOLARIS ;;
15910 solaris2
*) LOCAL_CFLAGS
=-DSOLARIS ;;
15911 lynxos
*) LOCAL_CFLAGS
=-DRECYCLES_PIDS ;;
15912 linux
*) LOCAL_LDFLAGS
=-rdynamic # allow dynamic loading
15913 case "`uname -r`" in
15914 2.
[456789]*|
3*) $as_echo "#define PGRP_PIPE 1" >>confdefs.h
15917 *qnx6
*) LOCAL_CFLAGS
="-Dqnx -Dqnx6" LOCAL_LIBS
="-lncurses" ;;
15918 *qnx
*) LOCAL_CFLAGS
="-Dqnx -F -3s" LOCAL_LDFLAGS
="-3s" LOCAL_LIBS
="-lunix -lncurses" ;;
15919 powerux
*) LOCAL_LIBS
="-lgen" ;;
15920 cygwin
*) LOCAL_CFLAGS
=-DRECYCLES_PIDS ;;
15921 opennt
*|interix
*) LOCAL_CFLAGS
="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE -DRECYCLES_PIDS" ;;
15922 *openstep
*) LOCAL_CFLAGS
="-D__APPLE_CC__" ;;
15925 case "${host_os}-${CC}" in
15926 aix4.2
*-*gcc
*) LOCAL_LDFLAGS
="-Xlinker -bexpall -Xlinker -brtl" ;;
15927 aix4.2
*) LOCAL_LDFLAGS
="-bexpall -brtl" ;;
15928 bsdi4
*-*gcc
*) LOCAL_LDFLAGS
="-rdynamic" ;; # allow dynamic loading, like Linux
15931 case "${host_os}" in
15933 if test -x /usr
/bin
/objformat
&& test "`/usr/bin/objformat`" = "elf" ; then
15934 LOCAL_LDFLAGS
=-rdynamic # allow dynamic loading
15936 freebsdelf
*) LOCAL_LDFLAGS
=-rdynamic ;; # allow dynamic loading
15937 dragonfly
*) LOCAL_LDFLAGS
=-rdynamic ;; # allow dynamic loading
15940 case "$host_cpu" in
15941 *cray
*) LOCAL_CFLAGS
="-DCRAY" ;; # shell var so config.h can use it
15944 case "$host_cpu-$host_os" in
15945 ibmrt-
*bsd4
*) LOCAL_CFLAGS
="-ma -U__STDC__" ;;
15948 case "$host_cpu-$host_vendor-$host_os" in
15949 m88k-motorola-sysv3
) LOCAL_CFLAGS
=-DWAITPID_BROKEN ;;
15950 mips-pyramid-sysv4
) LOCAL_CFLAGS
=-Xa ;;
15954 # Shared object configuration section. These values are generated by
15955 # ${srcdir}/support/shobj-conf
15957 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support
/shobj-conf
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking shared object configuration for loadable builtins" >&5
15960 $as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
15961 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHOBJ_STATUS" >&5
15970 $as_echo "$SHOBJ_STATUS" >&6; }
15973 # try to create a directory tree if the source is elsewhere
15974 # this should be packaged into a script accessible via ${srcdir}/support
15977 *) for d
in doc tests support lib examples
; do # dirs
15978 test -d $d || mkdir
$d
15980 for ld
in readline glob tilde malloc sh termcap
; do # libdirs
15981 test -d lib
/$ld || mkdir lib
/$ld
15983 test -d examples
/loadables || mkdir examples
/loadables
# loadable builtins
15984 test -d examples
/loadables
/perl || mkdir examples
/loadables
/perl
15989 case "$BUILD_DIR" in
15990 *\
*) BUILD_DIR
=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
15994 if test -z "$localedir"; then
15995 localedir
='${datarootdir}/locale'
15997 if test -z "$datarootdir"; then
15998 datarootdir
='${prefix}/share'
16006 # Some versions of autoconf don't substitute these automatically
16028 #AC_SUBST(ALLOCA_SOURCE)
16029 #AC_SUBST(ALLOCA_OBJECT)
16031 ac_config_files
="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/intl/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/perl/Makefile"
16033 ac_config_commands
="$ac_config_commands default"
16035 cat >confcache
<<\_ACEOF
16036 # This file is a shell script that caches the results of configure
16037 # tests run on this system so they can be shared between configure
16038 # scripts and configure runs, see configure's option --config-cache.
16039 # It is not useful on other systems. If it contains results you don't
16040 # want to keep, you may remove or edit it.
16042 # config.status only pays attention to the cache file if you give it
16043 # the --recheck option to rerun configure.
16045 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16046 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16047 # following values.
16051 # The following way of writing the cache mishandles newlines in values,
16052 # but we know of no workaround that is simple, portable, and efficient.
16053 # So, we kill variables containing newlines.
16054 # Ultrix sh set writes to stderr and can't be redirected directly,
16055 # and sets the high bit in the cache file unless we assign to the vars.
16057 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16058 eval ac_val
=\$
$ac_var
16062 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16063 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16066 _ | IFS | as_nl
) ;; #(
16067 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16068 *) { eval $ac_var=; unset $ac_var;} ;;
16074 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16075 *${as_nl}ac_space
=\
*)
16076 # `set' does not quote correctly, so add quotes: double-quote
16077 # substitution turns \\\\ into \\, and sed turns \\ into \.
16080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16083 # `set' quotes correctly as required by POSIX, so do not add quotes.
16084 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16093 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16095 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16097 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16098 if test -w "$cache_file"; then
16099 if test "x$cache_file" != "x/dev/null"; then
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16101 $as_echo "$as_me: updating cache $cache_file" >&6;}
16102 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16103 cat confcache
>"$cache_file"
16105 case $cache_file in #(
16107 mv -f confcache
"$cache_file"$$
&&
16108 mv -f "$cache_file"$$
"$cache_file" ;; #(
16110 mv -f confcache
"$cache_file" ;;
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16116 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16121 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16122 # Let make expand exec_prefix.
16123 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16125 DEFS
=-DHAVE_CONFIG_H
16130 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16131 # 1. Remove the extension, and $U if already installed.
16132 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16133 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16134 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16135 # will be set to the directory where LIBOBJS objects are built.
16136 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16137 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16139 LIBOBJS
=$ac_libobjs
16141 LTLIBOBJS
=$ac_ltlibobjs
16146 : "${CONFIG_STATUS=./config.status}"
16148 ac_clean_files_save
=$ac_clean_files
16149 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16151 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16153 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16155 # Generated by $as_me.
16156 # Run this file to recreate the current configuration.
16157 # Compiler output produced by configure, useful for debugging
16158 # configure, is in config.log if it exists.
16161 ac_cs_recheck=false
16164 SHELL=\${CONFIG_SHELL-$SHELL}
16167 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16168 ## -------------------- ##
16169 ## M4sh Initialization. ##
16170 ## -------------------- ##
16172 # Be more Bourne compatible
16173 DUALCASE
=1; export DUALCASE
# for MKS sh
16174 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16177 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16178 # is contrary to our usage. Disable this feature.
16179 alias -g '${1+"$@"}'='"$@"'
16180 setopt NO_GLOB_SUBST
16182 case `(set -o) 2>/dev/null` in #(
16194 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16195 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16196 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16197 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16198 # Prefer a ksh shell builtin over an external printf program on Solaris,
16199 # but without wasting forks for bash or zsh.
16200 if test -z "$BASH_VERSION$ZSH_VERSION" \
16201 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16202 as_echo='print
-r --'
16203 as_echo_n='print
-rn --'
16204 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16205 as_echo='printf %s
\n'
16206 as_echo_n='printf %s
'
16208 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16209 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16210 as_echo_n='/usr
/ucb
/echo -n'
16212 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16213 as_echo_n_body='eval
16217 expr "X$arg" : "X\\(.*\\)$as_nl";
16218 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16220 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16222 export as_echo_n_body
16223 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16225 export as_echo_body
16226 as_echo='sh
-c $as_echo_body as_echo
'
16229 # The user is always right.
16230 if test "${PATH_SEPARATOR+set}" != set; then
16232 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16233 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16240 # We need space, tab and new line, in precisely that order. Quoting is
16241 # there to prevent editors from complaining about space-tab.
16242 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16243 # splitting by setting IFS to empty value.)
16246 # Find who we are. Look in the path if we contain no directory separator.
16249 *[\\/]* ) as_myself=$0 ;;
16250 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16251 for as_dir in $PATH
16254 test -z "$as_dir" && as_dir=.
16255 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16261 # We did not find ourselves, most probably we were run as `sh COMMAND'
16262 # in which case we are not to be found in the path.
16263 if test "x$as_myself" = x
; then
16266 if test ! -f "$as_myself"; then
16267 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16271 # Unset variables that we do not need and which cause bugs (e.g. in
16272 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16273 # suppresses any "Segmentation fault" message there. '((' could
16274 # trigger a bug in pdksh 5.2.14.
16275 for as_var
in BASH_ENV ENV MAIL MAILPATH
16276 do eval test x\
${$as_var+set} = xset \
16277 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16290 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16293 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16294 # ----------------------------------------
16295 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16296 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16297 # script with STATUS, using 1 if that was 0.
16300 as_status
=$1; test $as_status -eq 0 && as_status
=1
16302 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16303 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16305 $as_echo "$as_me: error: $2" >&2
16306 as_fn_exit
$as_status
16310 # as_fn_set_status STATUS
16311 # -----------------------
16312 # Set $? to STATUS, without forking.
16313 as_fn_set_status
()
16316 } # as_fn_set_status
16318 # as_fn_exit STATUS
16319 # -----------------
16320 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16324 as_fn_set_status
$1
16330 # Portably unset VAR.
16333 { eval $1=; unset $1;}
16335 as_unset
=as_fn_unset
16336 # as_fn_append VAR VALUE
16337 # ----------------------
16338 # Append the text in VALUE to the end of the definition contained in VAR. Take
16339 # advantage of any shell optimizations that allow amortized linear growth over
16340 # repeated appends, instead of the typical quadratic growth present in naive
16342 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16343 eval 'as_fn_append ()
16354 # as_fn_arith ARG...
16355 # ------------------
16356 # Perform arithmetic evaluation on the ARGs, and store the result in the
16357 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16358 # must be portable across $(()) and expr.
16359 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16360 eval 'as_fn_arith ()
16367 as_val
=`expr "$@" || test $? -eq 1`
16372 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16373 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16379 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16380 as_basename
=basename
16385 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16391 as_me
=`$as_basename -- "$0" ||
16392 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16393 X"$0" : 'X\(//\)$' \| \
16394 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16396 sed '/^.*\/\([^/][^/]*\)\/*$/{
16410 # Avoid depending upon Character Ranges.
16411 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16412 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16413 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16414 as_cr_digits
='0123456789'
16415 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16417 ECHO_C
= ECHO_N
= ECHO_T
=
16418 case `echo -n x` in #(((((
16420 case `echo 'xy\c'` in
16421 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16423 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16430 rm -f conf$$ conf$$.exe conf$$.
file
16431 if test -d conf$$.dir
; then
16432 rm -f conf$$.dir
/conf$$.
file
16435 mkdir conf$$.dir
2>/dev
/null
16437 if (echo >conf$$.
file) 2>/dev
/null
; then
16438 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16440 # ... but there are two gotchas:
16441 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16442 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16443 # In both cases, we have to default to `cp -pR'.
16444 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16446 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16454 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16455 rmdir conf$$.dir
2>/dev
/null
16460 # Create "$as_dir" as a directory, including parents if necessary.
16465 -*) as_dir
=.
/$as_dir;;
16467 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16471 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16472 *) as_qdir
=$as_dir;;
16474 as_dirs
="'$as_qdir' $as_dirs"
16475 as_dir
=`$as_dirname -- "$as_dir" ||
16476 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16477 X"$as_dir" : 'X\(//\)[^/]' \| \
16478 X"$as_dir" : 'X\(//\)$' \| \
16479 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16480 $as_echo X"$as_dir" |
16481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16485 /^X\(\/\/\)[^/].*/{
16498 test -d "$as_dir" && break
16500 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16501 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
16505 if mkdir
-p .
2>/dev
/null
; then
16506 as_mkdir_p
='mkdir -p "$as_dir"'
16508 test -d .
/-p && rmdir .
/-p
16513 # as_fn_executable_p FILE
16514 # -----------------------
16515 # Test if FILE is an executable regular file.
16516 as_fn_executable_p
()
16518 test -f "$1" && test -x "$1"
16519 } # as_fn_executable_p
16520 as_test_x
='test -x'
16521 as_executable_p
=as_fn_executable_p
16523 # Sed expression to map a string onto a valid CPP name.
16524 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16526 # Sed expression to map a string onto a valid variable name.
16527 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16531 ## ----------------------------------- ##
16532 ## Main body of $CONFIG_STATUS script. ##
16533 ## ----------------------------------- ##
16535 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16538 # Save the log message, to keep $0 and so on meaningful, and to
16539 # report actual input values of CONFIG_FILES etc. instead of their
16540 # values after options handling.
16542 This file was extended by bash $as_me 4.3-beta, which was
16543 generated by GNU Autoconf 2.69. Invocation command line was
16545 CONFIG_FILES = $CONFIG_FILES
16546 CONFIG_HEADERS = $CONFIG_HEADERS
16547 CONFIG_LINKS = $CONFIG_LINKS
16548 CONFIG_COMMANDS = $CONFIG_COMMANDS
16551 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16556 case $ac_config_files in *"
16557 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16560 case $ac_config_headers in *"
16561 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16566 # Files that config.status was made for.
16567 config_files="$ac_config_files"
16568 config_headers="$ac_config_headers"
16569 config_commands="$ac_config_commands"
16573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16575 \`$as_me' instantiates files and other configuration actions
16576 from templates according to the current configuration. Unless the files
16577 and actions are specified as TAGs, all are instantiated by default.
16579 Usage: $0 [OPTION]... [TAG]...
16581 -h, --help print this help, then exit
16582 -V, --version print version number and configuration settings, then exit
16583 --config print configuration, then exit
16584 -q, --quiet, --silent
16585 do not print progress messages
16586 -d, --debug don't remove temporary files
16587 --recheck update $as_me by reconfiguring in the same conditions
16588 --file=FILE[:TEMPLATE]
16589 instantiate the configuration file FILE
16590 --header=FILE[:TEMPLATE]
16591 instantiate the configuration header FILE
16593 Configuration files:
16596 Configuration headers:
16599 Configuration commands:
16602 Report bugs to <bug-bash@gnu.org>."
16605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16606 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16608 bash config.status 4.3-beta
16609 configured by $0, generated by GNU Autoconf 2.69,
16610 with options \\"\$ac_cs_config\\"
16612 Copyright (C) 2012 Free Software Foundation, Inc.
16613 This config.status script is free software; the Free Software Foundation
16614 gives unlimited permission to copy, distribute and modify it."
16619 test -n "\$AWK" || AWK=awk
16622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16623 # The default lists apply if the user does not specify any file.
16629 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16630 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16634 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16646 # Handling of the options.
16647 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16649 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16650 $as_echo "$ac_cs_version"; exit ;;
16651 --config |
--confi |
--conf |
--con |
--co |
--c )
16652 $as_echo "$ac_cs_config"; exit ;;
16653 --debug |
--debu |
--deb |
--de |
--d |
-d )
16655 --file |
--fil |
--fi |
--f )
16658 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16659 '') as_fn_error $?
"missing file argument" ;;
16661 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16662 ac_need_defaults
=false
;;
16663 --header |
--heade |
--head |
--hea )
16666 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16668 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16669 ac_need_defaults
=false
;;
16671 # Conflict between --help and --header
16672 as_fn_error $?
"ambiguous option: \`$1'
16673 Try \`$0 --help' for more information.";;
16674 --help |
--hel |
-h )
16675 $as_echo "$ac_cs_usage"; exit ;;
16676 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16677 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16680 # This is an error.
16681 -*) as_fn_error $?
"unrecognized option: \`$1'
16682 Try \`$0 --help' for more information." ;;
16684 *) as_fn_append ac_config_targets
" $1"
16685 ac_need_defaults
=false
;;
16691 ac_configure_extra_args
=
16693 if $ac_cs_silent; then
16695 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16700 if \$ac_cs_recheck; then
16701 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16703 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16704 CONFIG_SHELL='$SHELL'
16705 export CONFIG_SHELL
16710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16714 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16715 ## Running $as_me. ##
16721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16725 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16726 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16728 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16729 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16730 LINGUAS="${LINGUAS-%UNSET%}"
16735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16737 # Handling of arguments.
16738 for ac_config_target
in $ac_config_targets
16740 case $ac_config_target in
16741 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
16742 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
16743 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16744 "builtins/Makefile") CONFIG_FILES
="$CONFIG_FILES builtins/Makefile" ;;
16745 "lib/readline/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/readline/Makefile" ;;
16746 "lib/glob/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/glob/Makefile" ;;
16747 "lib/intl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/intl/Makefile" ;;
16748 "lib/malloc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/malloc/Makefile" ;;
16749 "lib/sh/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/sh/Makefile" ;;
16750 "lib/termcap/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/termcap/Makefile" ;;
16751 "lib/tilde/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/tilde/Makefile" ;;
16752 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
16753 "support/Makefile") CONFIG_FILES
="$CONFIG_FILES support/Makefile" ;;
16754 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
16755 "examples/loadables/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/loadables/Makefile" ;;
16756 "examples/loadables/perl/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
16757 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16759 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16764 # If the user did not use the arguments to specify the items to instantiate,
16765 # then the envvar interface is used. Set only those that are not.
16766 # We use the long form for the default assignment because of an extremely
16767 # bizarre bug on SunOS 4.1.3.
16768 if $ac_need_defaults; then
16769 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16770 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16771 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16774 # Have a temporary directory for convenience. Make it in the build tree
16775 # simply because there is no reason against having it here, and in addition,
16776 # creating and moving files from /tmp can sometimes cause problems.
16777 # Hook for its removal unless debugging.
16778 # Note that there is a small window in which the directory will not be cleaned:
16779 # after its creation but before its name has been assigned to `$tmp'.
16783 trap 'exit_status=$?
16784 : "${ac_tmp:=$tmp}"
16785 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16787 trap 'as_fn_exit 1' 1 2 13 15
16789 # Create a (secure) tmp directory for tmp files.
16792 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16796 tmp
=.
/conf$$
-$RANDOM
16797 (umask 077 && mkdir
"$tmp")
16798 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16801 # Set up the scripts for CONFIG_FILES section.
16802 # No need to generate them if there are no CONFIG_FILES.
16803 # This happens for instance with `./config.status config.h'.
16804 if test -n "$CONFIG_FILES"; then
16807 ac_cr
=`echo X | tr X '\015'`
16808 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16809 # But we know of no other shell where ac_cr would be empty at this
16810 # point, so we can use a bashism as a fallback.
16811 if test "x$ac_cr" = x
; then
16812 eval ac_cr
=\$
\'\\r
\'
16814 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16815 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16818 ac_cs_awk_cr
=$ac_cr
16821 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16826 echo "cat >conf$$subs.awk <<_ACEOF" &&
16827 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16829 } >conf$$subs.sh ||
16830 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16831 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16833 for ac_last_try in false false false false false :; do
16834 . ./conf$$subs.sh ||
16835 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16837 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16838 if test $ac_delim_n = $ac_delim_num; then
16840 elif $ac_last_try; then
16841 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16843 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16846 rm -f conf$$subs.sh
16848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16849 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16853 s/^/S["/; s
/!.
*/"]=/
16863 s/\(.\{148\}\)..*/\1/
16865 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16870 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16877 s/\(.\{148\}\)..*/\1/
16879 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16883 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16888 ' <conf$$subs.awk | sed '
16893 ' >>$CONFIG_STATUS || ac_write_fail=1
16894 rm -f conf$$subs.awk
16895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16897 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16898 for (key in S) S_is_set[key] = 1
16904 nfields = split(line, field, "@
")
16906 len = length(field[1])
16907 for (i = 2; i < nfields; i++) {
16909 keylen = length(key)
16910 if (S_is_set[key]) {
16912 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16913 len += length(value) + length(field[++i])
16924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16925 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16926 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16929 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16930 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16933 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16934 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16935 # trailing colons and then remove the whole line if VPATH becomes empty
16936 # (actually we leave an empty line to preserve line numbers).
16937 if test "x
$srcdir" = x.; then
16938 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16957 fi # test -n "$CONFIG_FILES"
16959 # Set up the scripts for CONFIG_HEADERS section.
16960 # No need to generate them if there are no CONFIG_HEADERS.
16961 # This happens for instance with `./config.status Makefile'.
16962 if test -n "$CONFIG_HEADERS"; then
16963 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16967 # Transform confdefs.h into an awk script `defines.awk', embedded as
16968 # here-document in config.status, that substitutes the proper values into
16969 # config.h.in to produce config.h.
16971 # Create a delimiter string that does not exist in confdefs.h, to ease
16972 # handling of long lines.
16974 for ac_last_try in false false :; do
16975 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16976 if test -z "$ac_tt"; then
16978 elif $ac_last_try; then
16979 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16981 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16985 # For the awk script, D is an array of macro values keyed by name,
16986 # likewise P contains macro parameters if any. Preserve backslash
16987 # newline sequences.
16989 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16991 s/.\{148\}/&'"$ac_delim"'/g
16994 s/^[ ]*#[ ]*define[ ][ ]*/ /
17001 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17003 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17007 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17008 D["\
1"]=" \
3\\\\\\n
"\\/p
17010 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17015 s/.\{148\}/&'"$ac_delim"'/g
17020 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17023 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17025 ' <confdefs.h | sed '
17026 s/'"$ac_delim"'/"\\\
17027 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17030 for (key in D) D_is_set[key] = 1
17033 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17035 split(line, arg, " ")
17036 if (arg[1] == "#") {
17040 defundef
= substr
(arg
[1], 2)
17043 split(mac1
, mac2
, "(") #)
17045 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17046 if (D_is_set
[macro
]) {
17047 # Preserve the white space surrounding the "#".
17048 print prefix
"define", macro P
[macro
] D
[macro
]
17051 # Replace #undef with comments. This is necessary, for example,
17052 # in the case of _POSIX_SOURCE, which is predefined and required
17053 # on some systems where configure will not decide to define it.
17054 if (defundef
== "undef") {
17055 print
"/*", prefix defundef
, macro
, "*/"
17063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17064 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
17065 fi # test -n "$CONFIG_HEADERS"
17068 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17073 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17075 case $ac_mode$ac_tag in
17077 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17078 :[FH
]-) ac_tag
=-:-;;
17079 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17096 -) ac_f
="$ac_tmp/stdin";;
17097 *) # Look for the file first in the build tree, then in the source tree
17098 # (if the path is not absolute). The absolute path cannot be DOS-style,
17099 # because $ac_f cannot contain `:'.
17103 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17105 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17107 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17108 as_fn_append ac_file_inputs
" '$ac_f'"
17111 # Let's still pretend it is `configure' which instantiates (i.e., don't
17112 # use $as_me), people would be surprised to read:
17113 # /* config.h. Generated by config.status. */
17114 configure_input
='Generated from '`
17115 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17117 if test x
"$ac_file" != x-
; then
17118 configure_input
="$ac_file. $configure_input"
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17120 $as_echo "$as_me: creating $ac_file" >&6;}
17122 # Neutralize special characters interpreted by sed in replacement strings.
17123 case $configure_input in #(
17124 *\
&* |
*\|
* |
*\\* )
17125 ac_sed_conf_input
=`$as_echo "$configure_input" |
17126 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17127 *) ac_sed_conf_input
=$configure_input;;
17131 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
17132 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
17137 ac_dir
=`$as_dirname -- "$ac_file" ||
17138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17139 X"$ac_file" : 'X\(//\)[^/]' \| \
17140 X"$ac_file" : 'X\(//\)$' \| \
17141 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17142 $as_echo X"$ac_file" |
17143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17147 /^X\(\/\/\)[^/].*/{
17160 as_dir
="$ac_dir"; as_fn_mkdir_p
17164 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17166 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17167 # A ".." for each directory in $ac_dir_suffix.
17168 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17169 case $ac_top_builddir_sub in
17170 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17171 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17174 ac_abs_top_builddir
=$ac_pwd
17175 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17176 # for backward compatibility:
17177 ac_top_builddir
=$ac_top_build_prefix
17180 .
) # We are building in place.
17182 ac_top_srcdir
=$ac_top_builddir_sub
17183 ac_abs_top_srcdir
=$ac_pwd ;;
17184 [\\/]* | ?
:[\\/]* ) # Absolute name.
17185 ac_srcdir
=$srcdir$ac_dir_suffix;
17186 ac_top_srcdir
=$srcdir
17187 ac_abs_top_srcdir
=$srcdir ;;
17188 *) # Relative name.
17189 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17190 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17191 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17193 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17203 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17204 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17209 # If the template does not know about datarootdir, expand it.
17210 # FIXME: This hack should be removed a few years after 2.60.
17211 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17222 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17223 *datarootdir
*) ac_datarootdir_seen
=yes;;
17224 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17226 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17229 ac_datarootdir_hack='
17230 s&@datadir@&$datadir&g
17231 s&@docdir@&$docdir&g
17232 s&@infodir@&$infodir&g
17233 s&@localedir@&$localedir&g
17234 s&@mandir@&$mandir&g
17235 s&\\\${datarootdir}&$datarootdir&g' ;;
17239 # Neutralize VPATH when `$srcdir' = `.'.
17240 # Shell code in configure.ac might set extrasub.
17241 # FIXME: do we really want to maintain this feature?
17242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17243 ac_sed_extra="$ac_vpsub
17246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17248 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17249 s|@configure_input@|
$ac_sed_conf_input|
;t t
17250 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17251 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17252 s
&@srcdir@
&$ac_srcdir&;t t
17253 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17254 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17255 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17256 s
&@builddir@
&$ac_builddir&;t t
17257 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17258 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17259 s
&@INSTALL@
&$ac_INSTALL&;t t
17260 $ac_datarootdir_hack
17262 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
17263 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
17265 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17266 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
17267 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17268 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17270 which seems to be undefined. Please make sure it is defined" >&5
17271 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17272 which seems to be undefined. Please make sure it is defined" >&2;}
17274 rm -f "$ac_tmp/stdin"
17276 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17277 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17279 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17285 if test x"$ac_file" != x-; then
17287 $as_echo "/* $configure_input */" \
17288 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17289 } >"$ac_tmp/config.h" \
17290 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17291 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17293 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17296 mv "$ac_tmp/config.h" "$ac_file" \
17297 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17300 $as_echo "/* $configure_input */" \
17301 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17302 || as_fn_error $? "could not create -" "$LINENO" 5
17306 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17307 $as_echo "$as_me: executing $ac_file commands" >&6;}
17312 case $ac_file$ac_mode in
17314 for ac_file in $CONFIG_FILES; do
17315 # Support "outfile[:infile[:infile...]]"
17317 *:*) ac_file=`echo "$ac_file"|sed 's
%:.
*%%'` ;;
17319 # PO directories have a Makefile.in generated from Makefile.in.in.
17320 case "$ac_file" in */Makefile.in)
17321 # Adjust a relative srcdir.
17322 ac_dir=`echo "$ac_file"|sed 's
%/[^
/][^
/]*$
%%'`
17323 ac_dir_suffix="/`echo "$ac_dir"|sed 's
%^\.
/%%'`"
17324 ac_dots=`echo "$ac_dir_suffix"|sed 's
%/[^
/]*%..
/%g
'`
17325 # In autoconf-2.13 it is called $ac_given_srcdir.
17326 # In autoconf-2.50 it is called $srcdir.
17327 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17328 case "$ac_given_srcdir" in
17329 .) top_srcdir=`echo $ac_dots|sed 's
%/$
%%'` ;;
17330 /*) top_srcdir="$ac_given_srcdir" ;;
17331 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17333 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17334 rm -f "$ac_dir/POTFILES"
17335 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17336 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17337 POMAKEFILEDEPS="POTFILES.in"
17338 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17339 # on $ac_dir but don't depend on user-specified configuration
17341 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17342 # The LINGUAS file contains the set of available languages.
17343 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17344 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
17346 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17347 # Hide the ALL_LINGUAS assigment from automake.
17348 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17349 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
17351 # The set of available languages was given in configure.in.
17352 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17354 case "$ac_given_srcdir" in
17356 *) srcdirpre
='$(srcdir)/' ;;
17362 for lang
in $ALL_LINGUAS; do
17363 POFILES
="$POFILES $srcdirpre$lang.po"
17364 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
17365 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
17366 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
17368 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17369 # environment variable.
17371 if test -n "$ALL_LINGUAS"; then
17372 for presentlang
in $ALL_LINGUAS; do
17374 if test "%UNSET%" != "$LINGUAS"; then
17375 desiredlanguages
="$LINGUAS"
17377 desiredlanguages
="$ALL_LINGUAS"
17379 for desiredlang
in $desiredlanguages; do
17380 # Use the presentlang catalog if desiredlang is
17381 # a. equal to presentlang, or
17382 # b. a variant of presentlang (because in this case,
17383 # presentlang can be used as a fallback for messages
17384 # which are not translated in the desiredlang catalog).
17385 case "$desiredlang" in
17386 "$presentlang"*) useit
=yes;;
17389 if test $useit = yes; then
17390 INST_LINGUAS
="$INST_LINGUAS $presentlang"
17395 if test -n "$INST_LINGUAS"; then
17396 for lang
in $INST_LINGUAS; do
17397 CATALOGS
="$CATALOGS $lang.gmo"
17400 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
17401 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"
17402 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
17403 if test -f "$f"; then
17405 *.orig |
*.bak |
*~
) ;;
17406 *) cat "$f" >> "$ac_dir/Makefile" ;;
17415 # Makefile uses this timestamp file to record whether config.h is up to date.
17416 echo timestamp
> stamp-h
17425 ac_clean_files
=$ac_clean_files_save
17427 test $ac_write_fail = 0 ||
17428 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17431 # configure is writing to config.log, and then calls config.status.
17432 # config.status does its own redirection, appending to config.log.
17433 # Unfortunately, on DOS this fails, as config.log is still kept open
17434 # by configure, so config.status won't be able to write to it; its
17435 # output is simply discarded. So we exec the FD to /dev/null,
17436 # effectively closing config.log, so it can be properly (re)opened and
17437 # appended to by config.status. When coming back to configure, we
17438 # need to make the FD available again.
17439 if test "$no_create" != yes; then
17441 ac_config_status_args
=
17442 test "$silent" = yes &&
17443 ac_config_status_args
="$ac_config_status_args --quiet"
17445 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17447 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17448 # would make configure fail if this is the last instruction.
17449 $ac_cs_success || as_fn_exit
1
17451 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17453 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}