2 # From configure.ac for Readline 8.0, version 2.85.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for readline 8.0.
6 # Report bugs to <bug-readline@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
271 $0: bug-readline@gnu.org about your system, including any
272 $0: error possibly output before this message. Then install
273 $0: a modern shell, or manually run the script under such a
274 $0: shell if you do have one."
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.
582 PACKAGE_NAME
='readline'
583 PACKAGE_TARNAME
='readline'
584 PACKAGE_VERSION
='8.0'
585 PACKAGE_STRING
='readline 8.0'
586 PACKAGE_BUGREPORT
='bug-readline@gnu.org'
589 ac_unique_file
="readline.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>
626 ac_subst_vars
='LTLIBOBJS
627 TERMCAP_PKG_CONFIG_LIB
635 EXAMPLES_INSTALL_TARGET
636 SHARED_INSTALL_TARGET
637 STATIC_INSTALL_TARGET
711 program_transform_name
724 enable_option_checking
728 enable_install_examples
731 ac_precious_vars
='build_alias
742 # Initialize some variables set by options.
744 ac_init_version
=false
745 ac_unrecognized_opts
=
747 # The variables have the same names as the options, with
748 # dashes changed to underlines.
756 program_transform_name
=s
,x
,x
,
764 # Installation directory options.
765 # These are left unexpanded so users can "make install exec_prefix=/foo"
766 # and all the variables that are supposed to be based on exec_prefix
767 # by default will actually change.
768 # Use braces instead of parens because sh, perl, etc. also accept them.
769 # (The list follows the same order as the GNU Coding Standards.)
770 bindir
='${exec_prefix}/bin'
771 sbindir
='${exec_prefix}/sbin'
772 libexecdir
='${exec_prefix}/libexec'
773 datarootdir
='${prefix}/share'
774 datadir
='${datarootdir}'
775 sysconfdir
='${prefix}/etc'
776 sharedstatedir
='${prefix}/com'
777 localstatedir
='${prefix}/var'
778 includedir
='${prefix}/include'
779 oldincludedir
='/usr/include'
780 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
781 infodir
='${datarootdir}/info'
786 libdir
='${exec_prefix}/lib'
787 localedir
='${datarootdir}/locale'
788 mandir
='${datarootdir}/man'
794 # If the previous option needs an argument, assign it.
795 if test -n "$ac_prev"; then
796 eval $ac_prev=\
$ac_option
802 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 # Accept the important Cygnus configure options, so we can diagnose typos.
809 case $ac_dashdash$ac_option in
813 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
815 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
818 -build |
--build |
--buil |
--bui |
--bu)
819 ac_prev
=build_alias
;;
820 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
821 build_alias
=$ac_optarg ;;
823 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
824 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
825 ac_prev
=cache_file
;;
826 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
827 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
828 cache_file
=$ac_optarg ;;
831 cache_file
=config.cache
;;
833 -datadir |
--datadir |
--datadi |
--datad)
835 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
836 datadir
=$ac_optarg ;;
838 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
839 |
--dataroo |
--dataro |
--datar)
840 ac_prev
=datarootdir
;;
841 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
842 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
843 datarootdir
=$ac_optarg ;;
845 -disable-* |
--disable-*)
846 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
849 as_fn_error $?
"invalid feature name: $ac_useropt"
850 ac_useropt_orig
=$ac_useropt
851 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
852 case $ac_user_opts in
856 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
857 ac_unrecognized_sep
=', ';;
859 eval enable_
$ac_useropt=no
;;
861 -docdir |
--docdir |
--docdi |
--doc |
--do)
863 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
866 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
868 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
871 -enable-* |
--enable-*)
872 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
875 as_fn_error $?
"invalid feature name: $ac_useropt"
876 ac_useropt_orig
=$ac_useropt
877 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
882 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
883 ac_unrecognized_sep
=', ';;
885 eval enable_
$ac_useropt=\
$ac_optarg ;;
887 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
888 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
889 |
--exec |
--exe |
--ex)
890 ac_prev
=exec_prefix
;;
891 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
892 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
893 |
--exec=* |
--exe=* |
--ex=*)
894 exec_prefix
=$ac_optarg ;;
896 -gas |
--gas |
--ga |
--g)
897 # Obsolete; use --with-gas.
900 -help |
--help |
--hel |
--he |
-h)
902 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
903 ac_init_help
=recursive
;;
904 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
905 ac_init_help
=short
;;
907 -host |
--host |
--hos |
--ho)
908 ac_prev
=host_alias
;;
909 -host=* |
--host=* |
--hos=* |
--ho=*)
910 host_alias
=$ac_optarg ;;
912 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
914 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
916 htmldir
=$ac_optarg ;;
918 -includedir |
--includedir |
--includedi |
--included |
--include \
919 |
--includ |
--inclu |
--incl |
--inc)
920 ac_prev
=includedir
;;
921 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
922 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
923 includedir
=$ac_optarg ;;
925 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
927 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
928 infodir
=$ac_optarg ;;
930 -libdir |
--libdir |
--libdi |
--libd)
932 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
935 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
936 |
--libexe |
--libex |
--libe)
937 ac_prev
=libexecdir
;;
938 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
939 |
--libexe=* |
--libex=* |
--libe=*)
940 libexecdir
=$ac_optarg ;;
942 -localedir |
--localedir |
--localedi |
--localed |
--locale)
944 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
945 localedir
=$ac_optarg ;;
947 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
948 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
949 ac_prev
=localstatedir
;;
950 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
951 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
952 localstatedir
=$ac_optarg ;;
954 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
956 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
960 # Obsolete; use --without-fp.
963 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
964 |
--no-cr |
--no-c |
-n)
967 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
968 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
971 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
972 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
973 |
--oldin |
--oldi |
--old |
--ol |
--o)
974 ac_prev
=oldincludedir
;;
975 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
976 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
977 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
978 oldincludedir
=$ac_optarg ;;
980 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
982 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
985 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
986 |
--program-pre |
--program-pr |
--program-p)
987 ac_prev
=program_prefix
;;
988 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
989 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
990 program_prefix
=$ac_optarg ;;
992 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
993 |
--program-suf |
--program-su |
--program-s)
994 ac_prev
=program_suffix
;;
995 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
996 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
997 program_suffix
=$ac_optarg ;;
999 -program-transform-name |
--program-transform-name \
1000 |
--program-transform-nam |
--program-transform-na \
1001 |
--program-transform-n |
--program-transform- \
1002 |
--program-transform |
--program-transfor \
1003 |
--program-transfo |
--program-transf \
1004 |
--program-trans |
--program-tran \
1005 |
--progr-tra |
--program-tr |
--program-t)
1006 ac_prev
=program_transform_name
;;
1007 -program-transform-name=* |
--program-transform-name=* \
1008 |
--program-transform-nam=* |
--program-transform-na=* \
1009 |
--program-transform-n=* |
--program-transform-=* \
1010 |
--program-transform=* |
--program-transfor=* \
1011 |
--program-transfo=* |
--program-transf=* \
1012 |
--program-trans=* |
--program-tran=* \
1013 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1014 program_transform_name
=$ac_optarg ;;
1016 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1018 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1019 pdfdir
=$ac_optarg ;;
1021 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1023 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1026 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1027 |
-silent |
--silent |
--silen |
--sile |
--sil)
1030 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1032 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1034 sbindir
=$ac_optarg ;;
1036 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1037 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1038 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1040 ac_prev
=sharedstatedir
;;
1041 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1042 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1043 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1045 sharedstatedir
=$ac_optarg ;;
1047 -site |
--site |
--sit)
1049 -site=* |
--site=* |
--sit=*)
1052 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1054 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1055 srcdir
=$ac_optarg ;;
1057 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1058 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1059 ac_prev
=sysconfdir
;;
1060 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1061 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1062 sysconfdir
=$ac_optarg ;;
1064 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1065 ac_prev
=target_alias
;;
1066 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1067 target_alias
=$ac_optarg ;;
1069 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1072 -version |
--version |
--versio |
--versi |
--vers |
-V)
1073 ac_init_version
=: ;;
1076 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1079 as_fn_error $?
"invalid package name: $ac_useropt"
1080 ac_useropt_orig
=$ac_useropt
1081 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1086 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1087 ac_unrecognized_sep
=', ';;
1089 eval with_
$ac_useropt=\
$ac_optarg ;;
1091 -without-* |
--without-*)
1092 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1095 as_fn_error $?
"invalid package name: $ac_useropt"
1096 ac_useropt_orig
=$ac_useropt
1097 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1102 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1103 ac_unrecognized_sep
=', ';;
1105 eval with_
$ac_useropt=no
;;
1108 # Obsolete; use --with-x.
1111 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1112 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1113 ac_prev
=x_includes
;;
1114 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1115 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1116 x_includes
=$ac_optarg ;;
1118 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1119 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1120 ac_prev
=x_libraries
;;
1121 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1122 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1123 x_libraries
=$ac_optarg ;;
1125 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1126 Try \`$0 --help' for more information"
1130 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1131 # Reject names that are not valid shell variable names.
1132 case $ac_envvar in #(
1133 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1134 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1136 eval $ac_envvar=\
$ac_optarg
1137 export $ac_envvar ;;
1140 # FIXME: should be removed in autoconf 3.0.
1141 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1142 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1143 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1144 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1150 if test -n "$ac_prev"; then
1151 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1152 as_fn_error $?
"missing argument to $ac_option"
1155 if test -n "$ac_unrecognized_opts"; then
1156 case $enable_option_checking in
1158 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1159 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1163 # Check all directory arguments for consistency.
1164 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir
1169 eval ac_val
=\$
$ac_var
1170 # Remove trailing slashes.
1173 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1174 eval $ac_var=\
$ac_val;;
1176 # Be sure to have absolute directory names.
1178 [\\/$
]* | ?
:[\\/]* ) continue;;
1179 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1181 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1184 # There might be people who depend on the old broken behavior: `$host'
1185 # used to hold the argument of --host etc.
1186 # FIXME: To remove some day.
1189 target
=$target_alias
1191 # FIXME: To remove some day.
1192 if test "x$host_alias" != x
; then
1193 if test "x$build_alias" = x
; then
1194 cross_compiling
=maybe
1195 elif test "x$build_alias" != "x$host_alias"; then
1201 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1203 test "$silent" = yes && exec 6>/dev
/null
1206 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1207 ac_ls_di
=`ls -di .` &&
1208 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1209 as_fn_error $?
"working directory cannot be determined"
1210 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1211 as_fn_error $?
"pwd does not report name of working directory"
1214 # Find the source files, if location was not specified.
1215 if test -z "$srcdir"; then
1216 ac_srcdir_defaulted
=yes
1217 # Try the directory containing this script, then the parent directory.
1218 ac_confdir
=`$as_dirname -- "$as_myself" ||
1219 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1220 X"$as_myself" : 'X\(//\)[^/]' \| \
1221 X"$as_myself" : 'X\(//\)$' \| \
1222 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1223 $as_echo X"$as_myself" |
1224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1242 if test ! -r "$srcdir/$ac_unique_file"; then
1246 ac_srcdir_defaulted
=no
1248 if test ! -r "$srcdir/$ac_unique_file"; then
1249 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1250 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1252 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1254 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1256 # When building in place, set srcdir=.
1257 if test "$ac_abs_confdir" = "$ac_pwd"; then
1260 # Remove unnecessary trailing slashes from srcdir.
1261 # Double slashes in file names in object file debugging info
1262 # mess up M-x gdb in Emacs.
1264 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266 for ac_var
in $ac_precious_vars; do
1267 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1268 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1269 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1270 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1274 # Report the --help message.
1276 if test "$ac_init_help" = "long"; then
1277 # Omit some internal or obsolete options to make the list less imposing.
1278 # This message is too long to be a string in the A/UX 3.1 sh.
1280 \`configure' configures readline 8.0 to adapt to many kinds of systems.
1282 Usage: $0 [OPTION]... [VAR=VALUE]...
1284 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285 VAR=VALUE. See below for descriptions of some of the useful variables.
1287 Defaults for the options are specified in brackets.
1290 -h, --help display this help and exit
1291 --help=short display options specific to this package
1292 --help=recursive display the short help of all the included packages
1293 -V, --version display version information and exit
1294 -q, --quiet, --silent do not print \`checking ...' messages
1295 --cache-file=FILE cache test results in FILE [disabled]
1296 -C, --config-cache alias for \`--cache-file=config.cache'
1297 -n, --no-create do not create output files
1298 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1300 Installation directories:
1301 --prefix=PREFIX install architecture-independent files in PREFIX
1302 [$ac_default_prefix]
1303 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1306 By default, \`make install' will install all the files in
1307 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1308 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309 for instance \`--prefix=\$HOME'.
1311 For better control, use the options below.
1313 Fine tuning of the installation directories:
1314 --bindir=DIR user executables [EPREFIX/bin]
1315 --sbindir=DIR system admin executables [EPREFIX/sbin]
1316 --libexecdir=DIR program executables [EPREFIX/libexec]
1317 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1318 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1319 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1320 --libdir=DIR object code libraries [EPREFIX/lib]
1321 --includedir=DIR C header files [PREFIX/include]
1322 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1323 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1324 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1325 --infodir=DIR info documentation [DATAROOTDIR/info]
1326 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1327 --mandir=DIR man documentation [DATAROOTDIR/man]
1328 --docdir=DIR documentation root [DATAROOTDIR/doc/readline]
1329 --htmldir=DIR html documentation [DOCDIR]
1330 --dvidir=DIR dvi documentation [DOCDIR]
1331 --pdfdir=DIR pdf documentation [DOCDIR]
1332 --psdir=DIR ps documentation [DOCDIR]
1338 --build=BUILD configure
for building on BUILD
[guessed
]
1339 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1343 if test -n "$ac_init_help"; then
1344 case $ac_init_help in
1345 short | recursive
) echo "Configuration of readline 8.0:";;
1350 --disable-option-checking ignore unrecognized
--enable/--with options
1351 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1352 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1353 --enable-multibyte enable multibyte characters
if OS supports them
1354 --enable-static build static libraries
[[default
=YES
]]
1355 --disable-install-examples
1356 don
't install examples [[default=install]]
1357 --disable-largefile omit support for large files
1360 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1361 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1362 --with-curses use the curses library instead of the termcap
1365 Some influential environment variables:
1366 CC C compiler command
1367 CFLAGS C compiler flags
1368 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1369 nonstandard directory <lib dir>
1370 LIBS libraries to pass to the linker, e.g. -l<library>
1371 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1372 you have headers in a nonstandard directory <include dir>
1375 Use these variables to override the choices made by `configure' or to
help
1376 it to
find libraries and programs with nonstandard names
/locations.
1378 Report bugs to
<bug-readline@gnu.org
>.
1383 if test "$ac_init_help" = "recursive"; then
1384 # If there are subdirs, report their specific --help.
1385 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1386 test -d "$ac_dir" ||
1387 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1392 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1394 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1395 # A ".." for each directory in $ac_dir_suffix.
1396 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1397 case $ac_top_builddir_sub in
1398 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1399 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1402 ac_abs_top_builddir
=$ac_pwd
1403 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1404 # for backward compatibility:
1405 ac_top_builddir
=$ac_top_build_prefix
1408 .
) # We are building in place.
1410 ac_top_srcdir
=$ac_top_builddir_sub
1411 ac_abs_top_srcdir
=$ac_pwd ;;
1412 [\\/]* | ?
:[\\/]* ) # Absolute name.
1413 ac_srcdir
=$srcdir$ac_dir_suffix;
1414 ac_top_srcdir
=$srcdir
1415 ac_abs_top_srcdir
=$srcdir ;;
1417 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1418 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1419 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1421 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1423 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1424 # Check for guested configure.
1425 if test -f "$ac_srcdir/configure.gnu"; then
1427 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1428 elif test -f "$ac_srcdir/configure"; then
1430 $SHELL "$ac_srcdir/configure" --help=recursive
1432 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1434 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1438 test -n "$ac_init_help" && exit $ac_status
1439 if $ac_init_version; then
1441 readline configure
8.0
1442 generated by GNU Autoconf
2.69
1444 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1445 This configure
script is free software
; the Free Software Foundation
1446 gives unlimited permission to copy
, distribute and modify it.
1451 ## ------------------------ ##
1452 ## Autoconf initialization. ##
1453 ## ------------------------ ##
1455 # ac_fn_c_try_compile LINENO
1456 # --------------------------
1457 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1458 ac_fn_c_try_compile
()
1460 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1461 rm -f conftest.
$ac_objext
1462 if { { ac_try
="$ac_compile"
1464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1465 *) ac_try_echo=$ac_try;;
1467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1468 $as_echo "$ac_try_echo"; } >&5
1469 (eval "$ac_compile") 2>conftest.err
1471 if test -s conftest.err; then
1472 grep -v '^ *+' conftest.err >conftest.er1
1473 cat conftest.er1 >&5
1474 mv -f conftest.er1 conftest.err
1476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1477 test $ac_status = 0; } && {
1478 test -z "$ac_c_werror_flag" ||
1479 test ! -s conftest.err
1480 } && test -s conftest.$ac_objext; then :
1483 $as_echo "$as_me: failed program was:" >&5
1484 sed 's/^/| /' conftest.$ac_ext >&5
1488 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1489 as_fn_set_status $ac_retval
1491 } # ac_fn_c_try_compile
1493 # ac_fn_c_try_cpp LINENO
1494 # ----------------------
1495 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1499 if { { ac_try="$ac_cpp conftest.$ac_ext"
1501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1502 *) ac_try_echo
=$ac_try;;
1504 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505 $as_echo "$ac_try_echo"; } >&5
1506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1508 if test -s conftest.err
; then
1509 grep -v '^ *+' conftest.err
>conftest.er1
1510 cat conftest.er1
>&5
1511 mv -f conftest.er1 conftest.err
1513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514 test $ac_status = 0; } > conftest.i
&& {
1515 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1516 test ! -s conftest.err
1520 $as_echo "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.
$ac_ext >&5
1525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526 as_fn_set_status
$ac_retval
1530 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1531 # -------------------------------------------------------
1532 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1533 # the include files in INCLUDES and setting the cache variable VAR
1535 ac_fn_c_check_header_mongrel
()
1537 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1538 if eval \
${$3+:} false
; then :
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1540 $as_echo_n "checking for $2... " >&6; }
1541 if eval \
${$3+:} false
; then :
1542 $as_echo_n "(cached) " >&6
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1546 $as_echo "$ac_res" >&6; }
1548 # Is the header compilable?
1549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1550 $as_echo_n "checking $2 usability... " >&6; }
1551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1552 /* end confdefs.h. */
1556 if ac_fn_c_try_compile
"$LINENO"; then :
1557 ac_header_compiler
=yes
1559 ac_header_compiler
=no
1561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1563 $as_echo "$ac_header_compiler" >&6; }
1565 # Is the header present?
1566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1567 $as_echo_n "checking $2 presence... " >&6; }
1568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1569 /* end confdefs.h. */
1572 if ac_fn_c_try_cpp
"$LINENO"; then :
1573 ac_header_preproc
=yes
1575 ac_header_preproc
=no
1577 rm -f conftest.err conftest.i conftest.
$ac_ext
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1579 $as_echo "$ac_header_preproc" >&6; }
1581 # So? What about this header?
1582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1585 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1587 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1591 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1593 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1595 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1597 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1599 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1600 ( $as_echo "## ----------------------------------- ##
1601 ## Report this to bug-readline@gnu.org ##
1602 ## ----------------------------------- ##"
1603 ) |
sed "s/^/$as_me: WARNING: /" >&2
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607 $as_echo_n "checking for $2... " >&6; }
1608 if eval \
${$3+:} false
; then :
1609 $as_echo_n "(cached) " >&6
1611 eval "$3=\$ac_header_compiler"
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1615 $as_echo "$ac_res" >&6; }
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 } # ac_fn_c_check_header_mongrel
1621 # ac_fn_c_try_run LINENO
1622 # ----------------------
1623 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1624 # that executables *can* be run.
1627 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1628 if { { ac_try
="$ac_link"
1630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_link") 2>&5
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1639 { { case "(($ac_try" in
1640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1641 *) ac_try_echo
=$ac_try;;
1643 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_try") 2>&5
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; }; }; then :
1651 $as_echo "$as_me: program exited with status $ac_status" >&5
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.
$ac_ext >&5
1655 ac_retval
=$ac_status
1657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status
$ac_retval
1663 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1664 # -------------------------------------------------------
1665 # Tests whether HEADER exists and can be compiled using the include files in
1666 # INCLUDES, setting the cache variable VAR accordingly.
1667 ac_fn_c_check_header_compile
()
1669 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \
${$3+:} false
; then :
1673 $as_echo_n "(cached) " >&6
1675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h. */
1680 if ac_fn_c_try_compile
"$LINENO"; then :
1685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 $as_echo "$ac_res" >&6; }
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 } # ac_fn_c_check_header_compile
1694 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1695 # -------------------------------------------
1696 # Tests whether TYPE exists after having included INCLUDES, setting cache
1697 # variable VAR accordingly.
1698 ac_fn_c_check_type
()
1700 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702 $as_echo_n "checking for $2... " >&6; }
1703 if eval \
${$3+:} false
; then :
1704 $as_echo_n "(cached) " >&6
1707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h. */
1719 if ac_fn_c_try_compile
"$LINENO"; then :
1720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1732 if ac_fn_c_try_compile
"$LINENO"; then :
1737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 } # ac_fn_c_check_type
1748 # ac_fn_c_try_link LINENO
1749 # -----------------------
1750 # Try to link conftest.$ac_ext, and return whether this succeeded.
1753 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1754 rm -f conftest.
$ac_objext conftest
$ac_exeext
1755 if { { ac_try
="$ac_link"
1757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_link") 2>conftest.err
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } && {
1771 test -z "$ac_c_werror_flag" ||
1772 test ! -s conftest.err
1773 } && test -s conftest$ac_exeext && {
1774 test "$cross_compiling" = yes ||
1775 test -x conftest$ac_exeext
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1784 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1785 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1786 # interfere with the next link command; also delete a directory that is
1787 # left behind by Apple's compiler. We do this before executing the actions.
1788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1792 } # ac_fn_c_try_link
1794 # ac_fn_c_check_func LINENO FUNC VAR
1795 # ----------------------------------
1796 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1797 ac_fn_c_check_func ()
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if eval \${$3+:} false; then :
1803 $as_echo_n "(cached) " >&6
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1809 #define $2 innocuous_$2
1811 /* System header to define __stub macros and hopefully few prototypes,
1812 which can conflict with char $2 (); below.
1813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1814 <limits.h> exists even on freestanding compilers. */
1817 # include <limits.h>
1819 # include <assert.h>
1824 /* Override any GCC internal prototype to avoid an error.
1825 Use char because int might match the return type of a GCC
1826 builtin and then its argument prototype would still apply. */
1831 /* The GNU C library defines this for functions which it implements
1832 to always fail with ENOSYS. Some functions are actually named
1833 something starting with __ and the normal name is an alias. */
1834 #if defined __stub_$2 || defined __stub___$2
1846 if ac_fn_c_try_link "$LINENO"; then :
1851 rm -f core conftest.err conftest.$ac_objext \
1852 conftest$ac_exeext conftest.$ac_ext
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 } # ac_fn_c_check_func
1861 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1862 # ---------------------------------------------
1863 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1865 ac_fn_c_check_decl ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1869 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1871 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1872 if eval \${$3+:} false; then :
1873 $as_echo_n "(cached) " >&6
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1881 #ifndef $as_decl_name
1883 (void) $as_decl_use;
1885 (void) $as_decl_name;
1893 if ac_fn_c_try_compile "$LINENO"; then :
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 } # ac_fn_c_check_decl
1907 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1908 # --------------------------------------------
1909 # Tries to find the compile-time value of EXPR in a program that includes
1910 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1912 ac_fn_c_compute_int ()
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 if test "$cross_compiling" = yes; then
1916 # Depending upon the size, compute the lo and hi bounds.
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1923 static int test_array [1 - 2 * !(($2) >= 0)];
1925 return test_array [0];
1931 if ac_fn_c_try_compile "$LINENO"; then :
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1940 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1942 return test_array [0];
1948 if ac_fn_c_try_compile "$LINENO"; then :
1949 ac_hi=$ac_mid; break
1951 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1952 if test $ac_lo -le $ac_mid; then
1956 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1967 static int test_array [1 - 2 * !(($2) < 0)];
1969 return test_array [0];
1975 if ac_fn_c_try_compile "$LINENO"; then :
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1984 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1986 return test_array [0];
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 ac_lo=$ac_mid; break
1995 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1996 if test $ac_mid -le $ac_hi; then
2000 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 # Binary search between lo and hi bounds.
2011 while test "x$ac_lo" != "x$ac_hi"; do
2012 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2019 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2021 return test_array [0];
2027 if ac_fn_c_try_compile "$LINENO"; then :
2030 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2042 static long int longval () { return $2; }
2043 static unsigned long int ulongval () { return $2; }
2050 FILE *f = fopen ("conftest.val", "w");
2055 long int i = longval ();
2058 fprintf (f, "%ld", i);
2062 unsigned long int i = ulongval ();
2065 fprintf (f, "%lu", i);
2067 /* Do not output a trailing newline, as this causes \r\n confusion
2068 on some platforms. */
2069 return ferror (f) || fclose (f) != 0;
2075 if ac_fn_c_try_run "$LINENO"; then :
2076 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2081 conftest.$ac_objext conftest.beam conftest.$ac_ext
2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086 as_fn_set_status $ac_retval
2088 } # ac_fn_c_compute_int
2089 cat >config.log <<_ACEOF
2090 This file contains any messages produced by compilers while
2091 running configure, to aid debugging if configure makes a mistake.
2093 It was created by readline $as_me 8.0, which was
2094 generated by GNU Autoconf 2.69. Invocation command line was
2106 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2107 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2108 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2109 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2110 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2112 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2113 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2115 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2116 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2117 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2118 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2119 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2120 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2121 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 test -z "$as_dir" && as_dir=.
2130 $as_echo "PATH: $as_dir"
2146 # Keep a trace of the command line.
2147 # Strip out --no-create and --no-recursion so they do not pile up.
2148 # Strip out --silent because we don't want to record it for future runs.
2149 # Also quote any args containing shell meta-characters.
2150 # Make two passes to allow for proper duplicate-argument suppression.
2154 ac_must_keep_next=false
2160 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2162 | -silent | --silent | --silen | --sile | --sil)
2165 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2168 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2170 as_fn_append ac_configure_args1 " '$ac_arg'"
2171 if test $ac_must_keep_next = true; then
2172 ac_must_keep_next=false # Got value, back to normal.
2175 *=* | --config-cache | -C | -disable-* | --disable-* \
2176 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2177 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2178 | -with-* | --with-* | -without-* | --without-* | --x)
2179 case "$ac_configure_args0 " in
2180 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2183 -* ) ac_must_keep_next=true ;;
2186 as_fn_append ac_configure_args " '$ac_arg'"
2191 { ac_configure_args0=; unset ac_configure_args0;}
2192 { ac_configure_args1=; unset ac_configure_args1;}
2194 # When interrupted or exit'd, cleanup temporary files, and complete
2195 # config.log. We remove comments because anyway the quotes in there
2196 # would cause problems or look ugly.
2197 # WARNING: Use '\'' to represent an apostrophe within the trap.
2198 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2199 trap 'exit_status=$?
2200 # Save into config.log some information that might help in debugging.
2204 $as_echo "## ---------------- ##
2205 ## Cache variables. ##
2206 ## ---------------- ##"
2208 # The following way of writing the cache mishandles newlines in values,
2210 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2211 eval ac_val=\$$ac_var
2215 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2216 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2219 _ | IFS | as_nl) ;; #(
2220 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2221 *) { eval $ac_var=; unset $ac_var;} ;;
2226 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2227 *${as_nl}ac_space=\ *)
2229 "s/'\''/'\''\\\\'\'''\''/g;
2230 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2233 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2240 $as_echo "## ----------------- ##
2241 ## Output variables. ##
2242 ## ----------------- ##"
2244 for ac_var in $ac_subst_vars
2246 eval ac_val=\$$ac_var
2248 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2250 $as_echo "$ac_var='\''$ac_val'\''"
2254 if test -n "$ac_subst_files"; then
2255 $as_echo "## ------------------- ##
2256 ## File substitutions. ##
2257 ## ------------------- ##"
2259 for ac_var in $ac_subst_files
2261 eval ac_val=\$$ac_var
2263 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2265 $as_echo "$ac_var='\''$ac_val'\''"
2270 if test -s confdefs.h; then
2271 $as_echo "## ----------- ##
2278 test "$ac_signal" != 0 &&
2279 $as_echo "$as_me: caught signal $ac_signal"
2280 $as_echo "$as_me: exit $exit_status"
2282 rm -f core *.core core.conftest.* &&
2283 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2286 for ac_signal in 1 2 13 15; do
2287 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2291 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2292 rm -f -r conftest* confdefs.h
2294 $as_echo "/* confdefs.h */" > confdefs.h
2296 # Predefined preprocessor variables.
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_NAME "$PACKAGE_NAME"
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_STRING "$PACKAGE_STRING"
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_URL "$PACKAGE_URL"
2323 # Let the site file select an alternate cache file if it wants to.
2324 # Prefer an explicitly selected file to automatically selected ones.
2327 if test -n "$CONFIG_SITE"; then
2328 # We do not want a PATH search for config.site.
2329 case $CONFIG_SITE in #((
2330 -*) ac_site_file1=./$CONFIG_SITE;;
2331 */*) ac_site_file1=$CONFIG_SITE;;
2332 *) ac_site_file1=./$CONFIG_SITE;;
2334 elif test "x$prefix" != xNONE; then
2335 ac_site_file1=$prefix/share/config.site
2336 ac_site_file2=$prefix/etc/config.site
2338 ac_site_file1=$ac_default_prefix/share/config.site
2339 ac_site_file2=$ac_default_prefix/etc/config.site
2341 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2343 test "x$ac_site_file" = xNONE && continue
2344 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2346 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2347 sed 's/^/| /' "$ac_site_file" >&5
2349 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2351 as_fn_error $? "failed to load site
script $ac_site_file
2352 See \
`config.log' for more details" "$LINENO" 5; }
2356 if test -r "$cache_file"; then
2357 # Some versions of bash will fail to source /dev/null (special files
2358 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2359 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2361 $as_echo "$as_me: loading cache $cache_file" >&6;}
2363 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2364 *) . "./$cache_file";;
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2369 $as_echo "$as_me: creating cache $cache_file" >&6;}
2373 # Check that the precious variables saved in the cache have kept the same
2375 ac_cache_corrupted=false
2376 for ac_var in $ac_precious_vars; do
2377 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2378 eval ac_new_set=\$ac_env_${ac_var}_set
2379 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2380 eval ac_new_val=\$ac_env_${ac_var}_value
2381 case $ac_old_set,$ac_new_set in
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2384 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2385 ac_cache_corrupted=: ;;
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2388 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2389 ac_cache_corrupted=: ;;
2392 if test "x$ac_old_val" != "x$ac_new_val"; then
2393 # differences in whitespace do not lead to failure.
2394 ac_old_val_w=`echo x
$ac_old_val`
2395 ac_new_val_w=`echo x
$ac_new_val`
2396 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2398 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2399 ac_cache_corrupted=:
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2402 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2403 eval $ac_var=\$ac_old_val
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2406 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2408 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2411 # Pass precious variables to config.status.
2412 if test "$ac_new_set" = set; then
2414 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2415 *) ac_arg=$ac_var=$ac_new_val ;;
2417 case " $ac_configure_args " in
2418 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2419 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2423 if $ac_cache_corrupted; then
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2427 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2428 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2430 ## -------------------- ##
2431 ## Main body of script. ##
2432 ## -------------------- ##
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2449 for ac_dir in `cd $srcdir;pwd`/.. "$srcdir"/`cd $srcdir;pwd`/..; do
2450 if test -f "$ac_dir/install-sh"; then
2452 ac_install_sh="$ac_aux_dir/install-sh -c"
2454 elif test -f "$ac_dir/install.sh"; then
2456 ac_install_sh="$ac_aux_dir/install.sh -c"
2458 elif test -f "$ac_dir/shtool"; then
2460 ac_install_sh="$ac_aux_dir/shtool install -c"
2464 if test -z "$ac_aux_dir"; then
2465 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \`cd $srcdir;pwd\
`/.. \"$srcdir\"/\`cd $srcdir;pwd\
`/.." "$LINENO" 5
2468 # These three variables are undocumented and unsupported,
2469 # and are intended to be withdrawn in a future Autoconf release.
2470 # They can cause serious problems if a builder's source tree is in a directory
2471 # whose full name contains unusual characters.
2472 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2473 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2474 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2477 ac_config_headers="$ac_config_headers config.h"
2482 # Make sure we can run config.sub.
2483 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2484 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2487 $as_echo_n "checking build system type... " >&6; }
2488 if ${ac_cv_build+:} false; then :
2489 $as_echo_n "(cached) " >&6
2491 ac_build_alias=$build_alias
2492 test "x$ac_build_alias" = x &&
2493 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2494 test "x$ac_build_alias" = x &&
2495 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2496 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2497 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2501 $as_echo "$ac_cv_build" >&6; }
2502 case $ac_cv_build in
2504 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2507 ac_save_IFS=$IFS; IFS='-'
2513 # Remember, the first character of IFS is used to create $*,
2514 # except with old shells:
2517 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2521 $as_echo_n "checking host system type... " >&6; }
2522 if ${ac_cv_host+:} false; then :
2523 $as_echo_n "(cached) " >&6
2525 if test "x$host_alias" = x; then
2526 ac_cv_host=$ac_cv_build
2528 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2529 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2534 $as_echo "$ac_cv_host" >&6; }
2537 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2540 ac_save_IFS=$IFS; IFS='-'
2546 # Remember, the first character of IFS is used to create $*,
2547 # except with old shells:
2550 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2558 # Check whether --with-curses was given.
2559 if test "${with_curses+set}" = set; then :
2560 withval=$with_curses; opt_curses=$withval
2564 if test "$opt_curses" = "yes"; then
2571 opt_install_examples=no
2573 # Check whether --enable-multibyte was given.
2574 if test "${enable_multibyte+set}" = set; then :
2575 enableval=$enable_multibyte; opt_multibyte=$enableval
2578 # Check whether --enable-static was given.
2579 if test "${enable_static+set}" = set; then :
2580 enableval=$enable_static; opt_static_libs=$enableval
2583 # Check whether --enable-install-examples was given.
2584 if test "${enable_install_examples+set}" = set; then :
2585 enableval=$enable_install_examples; opt_install_examples=$enableval
2589 if test $opt_multibyte = no; then
2590 $as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h
2597 if test "x$cross_compiling" = "xyes"; then
2600 cross_cache=${srcdir}/cross-build/cygwin.cache
2603 cross_cache=${srcdir}/cross-build/mingw.cache
2606 cross_cache=${srcdir}/cross-build/x86-beos.cache
2608 *) echo "configure: cross-compiling for $host is not supported" >&2
2611 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
2612 echo "loading cross-build cache file ${cross_cache}"
2616 CROSS_COMPILE='-DCROSS_COMPILING'
2621 echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}"
2624 # We want these before the checks, so the checks can modify their values.
2625 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2628 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2630 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2631 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2632 $as_echo_n "(cached) " >&6
2634 cat >conftest.make <<\_ACEOF
2637 @echo '@@@%%%=$(MAKE)=@@@%%%'
2639 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2640 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
2642 eval ac_cv_prog_make_${ac_make}_set=yes;;
2644 eval ac_cv_prog_make_${ac_make}_set=no;;
2648 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2650 $as_echo "yes" >&6; }
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654 $as_echo "no" >&6; }
2655 SET_MAKE="MAKE=${MAKE-make}"
2659 ac_cpp='$CPP $CPPFLAGS'
2660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2663 if test -n "$ac_tool_prefix"; then
2664 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2665 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667 $as_echo_n "checking for $ac_word... " >&6; }
2668 if ${ac_cv_prog_CC+:} false; then :
2669 $as_echo_n "(cached) " >&6
2671 if test -n "$CC"; then
2672 ac_cv_prog_CC="$CC" # Let the user override the test.
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 test -z "$as_dir" && as_dir=.
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2681 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 if test -n "$CC"; then
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2694 $as_echo "$CC" >&6; }
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697 $as_echo "no" >&6; }
2702 if test -z "$ac_cv_prog_CC"; then
2704 # Extract the first word of "gcc", so it can be a program name with args.
2705 set dummy gcc; ac_word=$2
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 $as_echo_n "checking for $ac_word... " >&6; }
2708 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2709 $as_echo_n "(cached) " >&6
2711 if test -n "$ac_ct_CC"; then
2712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2721 ac_cv_prog_ac_ct_CC="gcc"
2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2732 if test -n "$ac_ct_CC"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2734 $as_echo "$ac_ct_CC" >&6; }
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737 $as_echo "no" >&6; }
2740 if test "x$ac_ct_CC" = x; then
2743 case $cross_compiling:$ac_tool_warned in
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2747 ac_tool_warned=yes ;;
2755 if test -z "$CC"; then
2756 if test -n "$ac_tool_prefix"; then
2757 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2758 set dummy ${ac_tool_prefix}cc; ac_word=$2
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760 $as_echo_n "checking for $ac_word... " >&6; }
2761 if ${ac_cv_prog_CC+:} false; then :
2762 $as_echo_n "(cached) " >&6
2764 if test -n "$CC"; then
2765 ac_cv_prog_CC="$CC" # Let the user override the test.
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774 ac_cv_prog_CC="${ac_tool_prefix}cc"
2775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 if test -n "$CC"; then
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2787 $as_echo "$CC" >&6; }
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790 $as_echo "no" >&6; }
2796 if test -z "$CC"; then
2797 # Extract the first word of "cc", so it can be a program name with args.
2798 set dummy cc; ac_word=$2
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2800 $as_echo_n "checking for $ac_word... " >&6; }
2801 if ${ac_cv_prog_CC+:} false; then :
2802 $as_echo_n "(cached) " >&6
2804 if test -n "$CC"; then
2805 ac_cv_prog_CC="$CC" # Let the user override the test.
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2816 ac_prog_rejected=yes
2820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 if test $ac_prog_rejected = yes; then
2828 # We found a bogon in the path, so make sure we never use it.
2829 set dummy $ac_cv_prog_CC
2831 if test $# != 0; then
2832 # We chose a different compiler from the bogus one.
2833 # However, it has the same basename, so the bogon will be chosen
2834 # first if we set CC to just the basename; use the full file name.
2836 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2842 if test -n "$CC"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2844 $as_echo "$CC" >&6; }
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2852 if test -z "$CC"; then
2853 if test -n "$ac_tool_prefix"; then
2854 for ac_prog in cl.exe
2856 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2857 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859 $as_echo_n "checking for $ac_word... " >&6; }
2860 if ${ac_cv_prog_CC+:} false; then :
2861 $as_echo_n "(cached) " >&6
2863 if test -n "$CC"; then
2864 ac_cv_prog_CC="$CC" # Let the user override the test.
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2873 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 if test -n "$CC"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2886 $as_echo "$CC" >&6; }
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889 $as_echo "no" >&6; }
2893 test -n "$CC" && break
2896 if test -z "$CC"; then
2898 for ac_prog in cl.exe
2900 # Extract the first word of "$ac_prog", so it can be a program name with args.
2901 set dummy $ac_prog; ac_word=$2
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2905 $as_echo_n "(cached) " >&6
2907 if test -n "$ac_ct_CC"; then
2908 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2917 ac_cv_prog_ac_ct_CC="$ac_prog"
2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2928 if test -n "$ac_ct_CC"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2930 $as_echo "$ac_ct_CC" >&6; }
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2937 test -n "$ac_ct_CC" && break
2940 if test "x$ac_ct_CC" = x; then
2943 case $cross_compiling:$ac_tool_warned in
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2947 ac_tool_warned=yes ;;
2956 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2958 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2959 See \
`config.log' for more details" "$LINENO" 5; }
2961 # Provide some information about the compiler.
2962 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2965 for ac_option in --version -v -V -qversion; do
2966 { { ac_try="$ac_compiler $ac_option >&5"
2968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2969 *) ac_try_echo
=$ac_try;;
2971 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2972 $as_echo "$ac_try_echo"; } >&5
2973 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2975 if test -s conftest.err
; then
2977 ... rest of stderr output deleted ...
2978 10q' conftest.err
>conftest.er1
2979 cat conftest.er1
>&5
2981 rm -f conftest.er1 conftest.err
2982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2983 test $ac_status = 0; }
2986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2987 /* end confdefs.h. */
2997 ac_clean_files_save
=$ac_clean_files
2998 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2999 # Try to create an executable without -o first, disregard a.out.
3000 # It will help us diagnose broken compilers, and finding out an intuition
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3003 $as_echo_n "checking whether the C compiler works... " >&6; }
3004 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3006 # The possible output files:
3007 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3010 for ac_file
in $ac_files
3013 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3014 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3019 if { { ac_try
="$ac_link_default"
3021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3025 $as_echo "$ac_try_echo"; } >&5
3026 (eval "$ac_link_default") 2>&5
3028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3029 test $ac_status = 0; }; then :
3030 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3031 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3032 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3033 # so that the user can short-circuit this test for compilers unknown to
3035 for ac_file in $ac_files ''
3037 test -f "$ac_file" || continue
3039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3042 # We found the default executable, but exeext='' is most
3046 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3048 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3050 # We set ac_cv_exeext here because the later test for it is not
3051 # safe: cross compilers may not add the suffix if given an `-o'
3052 # argument, so we may need to know it at that point already.
3053 # Even if this section looks crufty: it has the advantage of
3060 test "$ac_cv_exeext" = no && ac_cv_exeext=
3065 if test -z "$ac_file"; then :
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3068 $as_echo "$as_me: failed program was:" >&5
3069 sed 's
/^
/|
/' conftest.$ac_ext >&5
3071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3072 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3073 as_fn_error 77 "C compiler cannot create executables
3074 See \`config.log
' for more details" "$LINENO" 5; }
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3077 $as_echo "yes" >&6; }
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3080 $as_echo_n "checking for C compiler default output file name... " >&6; }
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3082 $as_echo "$ac_file" >&6; }
3083 ac_exeext=$ac_cv_exeext
3085 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3086 ac_clean_files=$ac_clean_files_save
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3088 $as_echo_n "checking for suffix of executables... " >&6; }
3089 if { { ac_try="$ac_link"
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3095 $as_echo "$ac_try_echo"; } >&5
3096 (eval "$ac_link") 2>&5
3098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3099 test $ac_status = 0; }; then :
3100 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3101 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3102 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3104 for ac_file
in conftest.exe conftest conftest.
*; do
3105 test -f "$ac_file" ||
continue
3107 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3108 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3116 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3117 See \`config.log' for more details" "$LINENO" 5; }
3119 rm -f conftest conftest
$ac_cv_exeext
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3121 $as_echo "$ac_cv_exeext" >&6; }
3123 rm -f conftest.
$ac_ext
3124 EXEEXT
=$ac_cv_exeext
3126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3127 /* end confdefs.h. */
3132 FILE *f = fopen ("conftest.out", "w");
3133 return ferror (f) || fclose (f) != 0;
3139 ac_clean_files
="$ac_clean_files conftest.out"
3140 # Check that the compiler produces executables we can run. If not, either
3141 # the compiler is broken, or we cross compile.
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3143 $as_echo_n "checking whether we are cross compiling... " >&6; }
3144 if test "$cross_compiling" != yes; then
3145 { { ac_try
="$ac_link"
3147 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3151 $as_echo "$ac_try_echo"; } >&5
3152 (eval "$ac_link") 2>&5
3154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3155 test $ac_status = 0; }
3156 if { ac_try='./conftest$ac_cv_exeext'
3157 { { case "(($ac_try" in
3158 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3159 *) ac_try_echo
=$ac_try;;
3161 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162 $as_echo "$ac_try_echo"; } >&5
3163 (eval "$ac_try") 2>&5
3165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3166 test $ac_status = 0; }; }; then
3169 if test "$cross_compiling" = maybe
; then
3172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174 as_fn_error $?
"cannot run C compiled programs.
3175 If you meant to cross compile, use \`--host'.
3176 See \`config.log' for more details" "$LINENO" 5; }
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3181 $as_echo "$cross_compiling" >&6; }
3183 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3184 ac_clean_files
=$ac_clean_files_save
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3186 $as_echo_n "checking for suffix of object files... " >&6; }
3187 if ${ac_cv_objext+:} false
; then :
3188 $as_echo_n "(cached) " >&6
3190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3191 /* end confdefs.h. */
3201 rm -f conftest.o conftest.obj
3202 if { { ac_try
="$ac_compile"
3204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208 $as_echo "$ac_try_echo"; } >&5
3209 (eval "$ac_compile") 2>&5
3211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212 test $ac_status = 0; }; then :
3213 for ac_file in conftest.o conftest.obj conftest.*; do
3214 test -f "$ac_file" || continue;
3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3217 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3222 $as_echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3227 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3228 See \
`config.log' for more details" "$LINENO" 5; }
3230 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3233 $as_echo "$ac_cv_objext" >&6; }
3234 OBJEXT=$ac_cv_objext
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3237 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3238 if ${ac_cv_c_compiler_gnu+:} false; then :
3239 $as_echo_n "(cached) " >&6
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242 /* end confdefs.h. */
3255 if ac_fn_c_try_compile "$LINENO"; then :
3260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3265 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3266 if test $ac_compiler_gnu = yes; then
3271 ac_test_CFLAGS=${CFLAGS+set}
3272 ac_save_CFLAGS=$CFLAGS
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3274 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3275 if ${ac_cv_prog_cc_g+:} false; then :
3276 $as_echo_n "(cached) " >&6
3278 ac_save_c_werror_flag=$ac_c_werror_flag
3279 ac_c_werror_flag=yes
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h. */
3293 if ac_fn_c_try_compile "$LINENO"; then :
3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h. */
3308 if ac_fn_c_try_compile "$LINENO"; then :
3311 ac_c_werror_flag=$ac_save_c_werror_flag
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3324 if ac_fn_c_try_compile "$LINENO"; then :
3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332 ac_c_werror_flag=$ac_save_c_werror_flag
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3335 $as_echo "$ac_cv_prog_cc_g" >&6; }
3336 if test "$ac_test_CFLAGS" = set; then
3337 CFLAGS=$ac_save_CFLAGS
3338 elif test $ac_cv_prog_cc_g = yes; then
3339 if test "$GCC" = yes; then
3345 if test "$GCC" = yes; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3352 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3353 if ${ac_cv_prog_cc_c89+:} false; then :
3354 $as_echo_n "(cached) " >&6
3356 ac_cv_prog_cc_c89=no
3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h. */
3363 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3364 struct buf { int x; };
3365 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3366 static char *e (p, i)
3372 static char *f (char * (*g) (char **, int), char **p, ...)
3377 s = g (p, va_arg (v,int));
3382 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3383 function prototypes and stuff, but not '\xHH' hex character constants.
3384 These don't provoke an error unfortunately, instead are silently treated
3385 as 'x'. The following induces an error, until -std is added to get
3386 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3387 array size at least. It's necessary to write '\x00'==0 to get something
3388 that's true only with -std. */
3389 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3391 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3392 inside strings and character constants. */
3394 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3396 int test (int i, double x);
3397 struct s1 {int (*f) (int a);};
3398 struct s2 {int (*f) (double a);};
3399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3405 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3410 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3411 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3413 CC="$ac_save_CC $ac_arg"
3414 if ac_fn_c_try_compile "$LINENO"; then :
3415 ac_cv_prog_cc_c89=$ac_arg
3417 rm -f core conftest.err conftest.$ac_objext
3418 test "x$ac_cv_prog_cc_c89" != "xno" && break
3420 rm -f conftest.$ac_ext
3425 case "x$ac_cv_prog_cc_c89" in
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3428 $as_echo "none needed" >&6; } ;;
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3431 $as_echo "unsupported" >&6; } ;;
3433 CC="$CC $ac_cv_prog_cc_c89"
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3435 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3437 if test "x$ac_cv_prog_cc_c89" != xno; then :
3442 ac_cpp='$CPP $CPPFLAGS'
3443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3449 ac_cpp='$CPP $CPPFLAGS'
3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3454 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3455 # On Suns, sometimes $CPP names a directory.
3456 if test -n "$CPP" && test -d "$CPP"; then
3459 if test -z "$CPP"; then
3460 if ${ac_cv_prog_CPP+:} false; then :
3461 $as_echo_n "(cached) " >&6
3463 # Double quotes because CPP needs to be expanded
3464 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3467 for ac_c_preproc_warn_flag in '' yes
3469 # Use a header file that comes with gcc, so configuring glibc
3470 # with a fresh cross-compiler works.
3471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3472 # <limits.h> exists even on freestanding compilers.
3473 # On the NeXT, cc -E runs the code through the compiler's parser,
3474 # not just through cpp. "Syntax error" is here to catch this case.
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3478 # include <limits.h>
3480 # include <assert.h>
3484 if ac_fn_c_try_cpp "$LINENO"; then :
3487 # Broken: fails on valid input.
3490 rm -f conftest.err conftest.i conftest.$ac_ext
3492 # OK, works on sane cases. Now check whether nonexistent headers
3493 # can be detected and how.
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3496 #include <ac_nonexistent.h>
3498 if ac_fn_c_try_cpp "$LINENO"; then :
3499 # Broken: success on invalid input.
3502 # Passes both tests.
3506 rm -f conftest.err conftest.i conftest.$ac_ext
3509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510 rm -f conftest.i conftest.err conftest.
$ac_ext
3511 if $ac_preproc_ok; then :
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3524 $as_echo "$CPP" >&6; }
3526 for ac_c_preproc_warn_flag
in '' yes
3528 # Use a header file that comes with gcc, so configuring glibc
3529 # with a fresh cross-compiler works.
3530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531 # <limits.h> exists even on freestanding compilers.
3532 # On the NeXT, cc -E runs the code through the compiler's parser,
3533 # not just through cpp. "Syntax error" is here to catch this case.
3534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3537 # include <limits.h>
3539 # include <assert.h>
3543 if ac_fn_c_try_cpp
"$LINENO"; then :
3546 # Broken: fails on valid input.
3549 rm -f conftest.err conftest.i conftest.
$ac_ext
3551 # OK, works on sane cases. Now check whether nonexistent headers
3552 # can be detected and how.
3553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3555 #include <ac_nonexistent.h>
3557 if ac_fn_c_try_cpp
"$LINENO"; then :
3558 # Broken: success on invalid input.
3561 # Passes both tests.
3565 rm -f conftest.err conftest.i conftest.
$ac_ext
3568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3569 rm -f conftest.i conftest.err conftest.
$ac_ext
3570 if $ac_preproc_ok; then :
3573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3575 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3576 See \`config.log' for more details" "$LINENO" 5; }
3580 ac_cpp
='$CPP $CPPFLAGS'
3581 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3587 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3588 if ${ac_cv_path_GREP+:} false
; then :
3589 $as_echo_n "(cached) " >&6
3591 if test -z "$GREP"; then
3592 ac_path_GREP_found
=false
3593 # Loop through the user's path and test for each of PROGNAME-LIST
3594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3595 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3598 test -z "$as_dir" && as_dir
=.
3599 for ac_prog
in grep ggrep
; do
3600 for ac_exec_ext
in '' $ac_executable_extensions; do
3601 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3602 as_fn_executable_p
"$ac_path_GREP" ||
continue
3603 # Check for GNU ac_path_GREP and select it if it is found.
3604 # Check for GNU $ac_path_GREP
3605 case `"$ac_path_GREP" --version 2>&1` in
3607 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3610 $as_echo_n 0123456789 >"conftest.in"
3613 cat "conftest.in" "conftest.in" >"conftest.tmp"
3614 mv "conftest.tmp" "conftest.in"
3615 cp "conftest.in" "conftest.nl"
3616 $as_echo 'GREP' >> "conftest.nl"
3617 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3618 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3619 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3620 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3621 # Best one so far, save it but keep looking for a better one
3622 ac_cv_path_GREP
="$ac_path_GREP"
3623 ac_path_GREP_max
=$ac_count
3625 # 10*(2^10) chars as input seems more than enough
3626 test $ac_count -gt 10 && break
3628 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3631 $ac_path_GREP_found && break 3
3636 if test -z "$ac_cv_path_GREP"; then
3637 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3640 ac_cv_path_GREP
=$GREP
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3645 $as_echo "$ac_cv_path_GREP" >&6; }
3646 GREP
="$ac_cv_path_GREP"
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3650 $as_echo_n "checking for egrep... " >&6; }
3651 if ${ac_cv_path_EGREP+:} false
; then :
3652 $as_echo_n "(cached) " >&6
3654 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3655 then ac_cv_path_EGREP
="$GREP -E"
3657 if test -z "$EGREP"; then
3658 ac_path_EGREP_found
=false
3659 # Loop through the user's path and test for each of PROGNAME-LIST
3660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3661 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3664 test -z "$as_dir" && as_dir
=.
3665 for ac_prog
in egrep; do
3666 for ac_exec_ext
in '' $ac_executable_extensions; do
3667 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3668 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3669 # Check for GNU ac_path_EGREP and select it if it is found.
3670 # Check for GNU $ac_path_EGREP
3671 case `"$ac_path_EGREP" --version 2>&1` in
3673 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3676 $as_echo_n 0123456789 >"conftest.in"
3679 cat "conftest.in" "conftest.in" >"conftest.tmp"
3680 mv "conftest.tmp" "conftest.in"
3681 cp "conftest.in" "conftest.nl"
3682 $as_echo 'EGREP' >> "conftest.nl"
3683 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3684 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3685 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3686 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3687 # Best one so far, save it but keep looking for a better one
3688 ac_cv_path_EGREP
="$ac_path_EGREP"
3689 ac_path_EGREP_max
=$ac_count
3691 # 10*(2^10) chars as input seems more than enough
3692 test $ac_count -gt 10 && break
3694 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3697 $ac_path_EGREP_found && break 3
3702 if test -z "$ac_cv_path_EGREP"; then
3703 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3706 ac_cv_path_EGREP
=$EGREP
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3712 $as_echo "$ac_cv_path_EGREP" >&6; }
3713 EGREP
="$ac_cv_path_EGREP"
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3717 $as_echo_n "checking for ANSI C header files... " >&6; }
3718 if ${ac_cv_header_stdc+:} false
; then :
3719 $as_echo_n "(cached) " >&6
3721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h. */
3736 if ac_fn_c_try_compile
"$LINENO"; then :
3737 ac_cv_header_stdc
=yes
3739 ac_cv_header_stdc
=no
3741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3743 if test $ac_cv_header_stdc = yes; then
3744 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3751 $EGREP "memchr" >/dev
/null
2>&1; then :
3754 ac_cv_header_stdc
=no
3760 if test $ac_cv_header_stdc = yes; then
3761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3768 $EGREP "free" >/dev
/null
2>&1; then :
3771 ac_cv_header_stdc
=no
3777 if test $ac_cv_header_stdc = yes; then
3778 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3779 if test "$cross_compiling" = yes; then :
3782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3786 #if ((' ' & 0x0FF) == 0x020)
3787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3790 # define ISLOWER(c) \
3791 (('a' <= (c) && (c) <= 'i') \
3792 || ('j' <= (c) && (c) <= 'r') \
3793 || ('s' <= (c) && (c) <= 'z'))
3794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3802 for (i = 0; i < 256; i++)
3803 if (XOR (islower (i), ISLOWER (i))
3804 || toupper (i) != TOUPPER (i))
3809 if ac_fn_c_try_run
"$LINENO"; then :
3812 ac_cv_header_stdc
=no
3814 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3815 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3821 $as_echo "$ac_cv_header_stdc" >&6; }
3822 if test $ac_cv_header_stdc = yes; then
3824 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3828 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3829 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3830 inttypes.h stdint.h unistd.h
3832 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3833 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3835 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3836 cat >>confdefs.h
<<_ACEOF
3837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3846 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3847 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3854 if test "$MINIX" = yes; then
3856 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3859 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3862 $as_echo "#define _MINIX 1" >>confdefs.h
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3868 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3869 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3870 $as_echo_n "(cached) " >&6
3872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3875 # define __EXTENSIONS__ 1
3876 $ac_includes_default
3885 if ac_fn_c_try_compile
"$LINENO"; then :
3886 ac_cv_safe_to_define___extensions__
=yes
3888 ac_cv_safe_to_define___extensions__
=no
3890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3893 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3894 test $ac_cv_safe_to_define___extensions__ = yes &&
3895 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3897 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3899 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3901 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3903 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3908 # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
3909 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS
="$CFLAGS -O"
3911 if test $ac_cv_c_compiler_gnu = yes; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3913 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3914 if ${ac_cv_prog_gcc_traditional+:} false
; then :
3915 $as_echo_n "(cached) " >&6
3917 ac_pattern
="Autoconf.*'x'"
3918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3924 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
3925 ac_cv_prog_gcc_traditional
=yes
3927 ac_cv_prog_gcc_traditional
=no
3932 if test $ac_cv_prog_gcc_traditional = no
; then
3933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3939 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
3940 ac_cv_prog_gcc_traditional
=yes
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3947 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3948 if test $ac_cv_prog_gcc_traditional = yes; then
3949 CC
="$CC -traditional"
3953 # Find a good install program. We prefer a C program (faster),
3954 # so one script is as good as another. But avoid the broken or
3955 # incompatible versions:
3956 # SysV /etc/install, /usr/sbin/install
3957 # SunOS /usr/etc/install
3958 # IRIX /sbin/install
3960 # AmigaOS /C/install, which installs bootblocks on floppy discs
3961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3964 # OS/2's system install, which has a completely different semantic
3965 # ./install, which can be erroneously created by make from ./install.sh.
3966 # Reject install programs that cannot install multiple files.
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3968 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3969 if test -z "$INSTALL"; then
3970 if ${ac_cv_path_install+:} false
; then :
3971 $as_echo_n "(cached) " >&6
3973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3977 test -z "$as_dir" && as_dir
=.
3978 # Account for people who put trailing slashes in PATH elements.
3979 case $as_dir/ in #((
3980 .
/ | .
// |
/[cC
]/* | \
3981 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3982 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3985 # OSF1 and SCO ODT 3.0 have their own names for install.
3986 # Don't use installbsd from OSF since it installs stuff as root
3988 for ac_prog
in ginstall scoinst
install; do
3989 for ac_exec_ext
in '' $ac_executable_extensions; do
3990 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
3991 if test $ac_prog = install &&
3992 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3993 # AIX install. It has an incompatible calling convention.
3995 elif test $ac_prog = install &&
3996 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3997 # program-specific install script used by HP pwplus--don't use.
4000 rm -rf conftest.one conftest.two conftest.dir
4001 echo one
> conftest.one
4002 echo two
> conftest.two
4004 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4005 test -s conftest.one
&& test -s conftest.two
&&
4006 test -s conftest.dir
/conftest.one
&&
4007 test -s conftest.dir
/conftest.two
4009 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4022 rm -rf conftest.one conftest.two conftest.dir
4025 if test "${ac_cv_path_install+set}" = set; then
4026 INSTALL
=$ac_cv_path_install
4028 # As a last resort, use the slow shell script. Don't cache a
4029 # value for INSTALL within a source directory, because that will
4030 # break other packages using the cache if that directory is
4031 # removed, or if the value is a relative name.
4032 INSTALL
=$ac_install_sh
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4036 $as_echo "$INSTALL" >&6; }
4038 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4039 # It thinks the first close brace ends the variable substitution.
4040 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4042 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4044 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4046 if test -n "$ac_tool_prefix"; then
4047 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4048 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050 $as_echo_n "checking for $ac_word... " >&6; }
4051 if ${ac_cv_prog_AR+:} false
; then :
4052 $as_echo_n "(cached) " >&6
4054 if test -n "$AR"; then
4055 ac_cv_prog_AR
="$AR" # Let the user override the test.
4057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4061 test -z "$as_dir" && as_dir
=.
4062 for ac_exec_ext
in '' $ac_executable_extensions; do
4063 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4064 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4075 if test -n "$AR"; then
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4077 $as_echo "$AR" >&6; }
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4085 if test -z "$ac_cv_prog_AR"; then
4087 # Extract the first word of "ar", so it can be a program name with args.
4088 set dummy
ar; ac_word
=$2
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 $as_echo_n "checking for $ac_word... " >&6; }
4091 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
4092 $as_echo_n "(cached) " >&6
4094 if test -n "$ac_ct_AR"; then
4095 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4101 test -z "$as_dir" && as_dir
=.
4102 for ac_exec_ext
in '' $ac_executable_extensions; do
4103 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4104 ac_cv_prog_ac_ct_AR
="ar"
4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4115 if test -n "$ac_ct_AR"; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4117 $as_echo "$ac_ct_AR" >&6; }
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4123 if test "x$ac_ct_AR" = x
; then
4126 case $cross_compiling:$ac_tool_warned in
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4130 ac_tool_warned
=yes ;;
4138 test -n "$ARFLAGS" || ARFLAGS
="cr"
4139 if test -n "$ac_tool_prefix"; then
4140 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4141 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143 $as_echo_n "checking for $ac_word... " >&6; }
4144 if ${ac_cv_prog_RANLIB+:} false
; then :
4145 $as_echo_n "(cached) " >&6
4147 if test -n "$RANLIB"; then
4148 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4154 test -z "$as_dir" && as_dir
=.
4155 for ac_exec_ext
in '' $ac_executable_extensions; do
4156 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 RANLIB
=$ac_cv_prog_RANLIB
4168 if test -n "$RANLIB"; then
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4170 $as_echo "$RANLIB" >&6; }
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4178 if test -z "$ac_cv_prog_RANLIB"; then
4179 ac_ct_RANLIB
=$RANLIB
4180 # Extract the first word of "ranlib", so it can be a program name with args.
4181 set dummy ranlib
; ac_word
=$2
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 $as_echo_n "checking for $ac_word... " >&6; }
4184 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4185 $as_echo_n "(cached) " >&6
4187 if test -n "$ac_ct_RANLIB"; then
4188 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4194 test -z "$as_dir" && as_dir
=.
4195 for ac_exec_ext
in '' $ac_executable_extensions; do
4196 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4197 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4208 if test -n "$ac_ct_RANLIB"; then
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4210 $as_echo "$ac_ct_RANLIB" >&6; }
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 $as_echo "no" >&6; }
4216 if test "x$ac_ct_RANLIB" = x
; then
4219 case $cross_compiling:$ac_tool_warned in
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4223 ac_tool_warned
=yes ;;
4225 RANLIB
=$ac_ct_RANLIB
4228 RANLIB
="$ac_cv_prog_RANLIB"
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4236 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4237 if ${ac_cv_c_const+:} false
; then :
4238 $as_echo_n "(cached) " >&6
4240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4248 /* Ultrix mips cc rejects this sort of thing. */
4249 typedef int charset[2];
4250 const charset cs = { 0, 0 };
4251 /* SunOS 4.1.1 cc rejects this. */
4252 char const *const *pcpcc;
4254 /* NEC SVR4.0.2 mips cc rejects this. */
4255 struct point {int x, y;};
4256 static struct point const zero = {0,0};
4257 /* AIX XL C 1.02.0.0 rejects this.
4258 It does not let you subtract one const X* pointer from another in
4259 an arm of an if-expression whose if-part is not a constant
4261 const char *g = "string";
4262 pcpcc = &g + (g ? g-g : 0);
4263 /* HPUX 7.0 cc rejects these. */
4265 ppc = (char**) pcpcc;
4266 pcpcc = (char const *const *) ppc;
4267 { /* SCO 3.2v4 cc rejects this sort of thing. */
4270 char const *s = 0 ? (char *) 0 : (char const *) 0;
4275 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4277 const int *foo = &x[0];
4280 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4281 typedef const int *iptr;
4285 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4286 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4287 struct s { int j; const int *ap[3]; } bx;
4288 struct s *b = &bx; b->j = 5;
4290 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4294 return !cs[0] && !zero.x;
4301 if ac_fn_c_try_compile
"$LINENO"; then :
4306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4309 $as_echo "$ac_cv_c_const" >&6; }
4310 if test $ac_cv_c_const = no
; then
4312 $as_echo "#define const /**/" >>confdefs.h
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
4317 $as_echo_n "checking for function prototypes... " >&6; }
4318 if test "$ac_cv_prog_cc_c89" != no
; then
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4320 $as_echo "yes" >&6; }
4322 $as_echo "#define PROTOTYPES 1" >>confdefs.h
4325 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329 $as_echo "no" >&6; }
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
4333 $as_echo_n "checking whether char is unsigned... " >&6; }
4334 if ${ac_cv_c_char_unsigned+:} false
; then :
4335 $as_echo_n "(cached) " >&6
4337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4339 $ac_includes_default
4343 static int test_array [1 - 2 * !(((char) -1) < 0)];
4345 return test_array [0];
4351 if ac_fn_c_try_compile
"$LINENO"; then :
4352 ac_cv_c_char_unsigned
=no
4354 ac_cv_c_char_unsigned
=yes
4356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
4359 $as_echo "$ac_cv_c_char_unsigned" >&6; }
4360 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4361 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
4366 $as_echo_n "checking for working volatile... " >&6; }
4367 if ${ac_cv_c_volatile+:} false
; then :
4368 $as_echo_n "(cached) " >&6
4370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4378 int * volatile y = (int *) 0;
4384 if ac_fn_c_try_compile
"$LINENO"; then :
4385 ac_cv_c_volatile
=yes
4389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
4392 $as_echo "$ac_cv_c_volatile" >&6; }
4393 if test $ac_cv_c_volatile = no
; then
4395 $as_echo "#define volatile /**/" >>confdefs.h
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4401 $as_echo_n "checking return type of signal handlers... " >&6; }
4402 if ${ac_cv_type_signal+:} false
; then :
4403 $as_echo_n "(cached) " >&6
4405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4407 #include <sys/types.h>
4413 return *(signal (0, 0)) (0) == 1;
4418 if ac_fn_c_try_compile
"$LINENO"; then :
4419 ac_cv_type_signal
=int
4421 ac_cv_type_signal
=void
4423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4426 $as_echo "$ac_cv_type_signal" >&6; }
4428 cat >>confdefs.h
<<_ACEOF
4429 #define RETSIGTYPE $ac_cv_type_signal
4434 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4435 if test "x$ac_cv_type_size_t" = xyes
; then :
4439 cat >>confdefs.h
<<_ACEOF
4440 #define size_t unsigned int
4445 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4446 if test "x$ac_cv_type_ssize_t" = xyes
; then :
4450 cat >>confdefs.h
<<_ACEOF
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4458 $as_echo_n "checking for ANSI C header files... " >&6; }
4459 if ${ac_cv_header_stdc+:} false
; then :
4460 $as_echo_n "(cached) " >&6
4462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4477 if ac_fn_c_try_compile
"$LINENO"; then :
4478 ac_cv_header_stdc
=yes
4480 ac_cv_header_stdc
=no
4482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4484 if test $ac_cv_header_stdc = yes; then
4485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4492 $EGREP "memchr" >/dev
/null
2>&1; then :
4495 ac_cv_header_stdc
=no
4501 if test $ac_cv_header_stdc = yes; then
4502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4509 $EGREP "free" >/dev
/null
2>&1; then :
4512 ac_cv_header_stdc
=no
4518 if test $ac_cv_header_stdc = yes; then
4519 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4520 if test "$cross_compiling" = yes; then :
4523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4527 #if ((' ' & 0x0FF) == 0x020)
4528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4531 # define ISLOWER(c) \
4532 (('a' <= (c) && (c) <= 'i') \
4533 || ('j' <= (c) && (c) <= 'r') \
4534 || ('s' <= (c) && (c) <= 'z'))
4535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4543 for (i = 0; i < 256; i++)
4544 if (XOR (islower (i), ISLOWER (i))
4545 || toupper (i) != TOUPPER (i))
4550 if ac_fn_c_try_run
"$LINENO"; then :
4553 ac_cv_header_stdc
=no
4555 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4556 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4562 $as_echo "$ac_cv_header_stdc" >&6; }
4563 if test $ac_cv_header_stdc = yes; then
4565 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
4571 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
4572 if ${ac_cv_header_stat_broken+:} false
; then :
4573 $as_echo_n "(cached) " >&6
4575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4577 #include <sys/types.h>
4578 #include <sys/stat.h>
4580 #if defined S_ISBLK && defined S_IFDIR
4581 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
4584 #if defined S_ISBLK && defined S_IFCHR
4585 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
4588 #if defined S_ISLNK && defined S_IFREG
4589 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
4592 #if defined S_ISSOCK && defined S_IFREG
4593 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
4597 if ac_fn_c_try_compile
"$LINENO"; then :
4598 ac_cv_header_stat_broken
=no
4600 ac_cv_header_stat_broken
=yes
4602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
4605 $as_echo "$ac_cv_header_stat_broken" >&6; }
4606 if test $ac_cv_header_stat_broken = yes; then
4608 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
4613 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4614 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4616 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4617 if eval \
${$as_ac_Header+:} false
; then :
4618 $as_echo_n "(cached) " >&6
4620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4622 #include <sys/types.h>
4634 if ac_fn_c_try_compile
"$LINENO"; then :
4635 eval "$as_ac_Header=yes"
4637 eval "$as_ac_Header=no"
4639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4641 eval ac_res
=\$
$as_ac_Header
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4643 $as_echo "$ac_res" >&6; }
4644 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4645 cat >>confdefs.h
<<_ACEOF
4646 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4649 ac_header_dirent
=$ac_hdr; break
4653 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4654 if test $ac_header_dirent = dirent.h
; then
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4656 $as_echo_n "checking for library containing opendir... " >&6; }
4657 if ${ac_cv_search_opendir+:} false
; then :
4658 $as_echo_n "(cached) " >&6
4660 ac_func_search_save_LIBS
=$LIBS
4661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4664 /* Override any GCC internal prototype to avoid an error.
4665 Use char because int might match the return type of a GCC
4666 builtin and then its argument prototype would still apply. */
4679 for ac_lib
in '' dir
; do
4680 if test -z "$ac_lib"; then
4681 ac_res
="none required"
4684 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4686 if ac_fn_c_try_link
"$LINENO"; then :
4687 ac_cv_search_opendir
=$ac_res
4689 rm -f core conftest.err conftest.
$ac_objext \
4691 if ${ac_cv_search_opendir+:} false
; then :
4695 if ${ac_cv_search_opendir+:} false
; then :
4698 ac_cv_search_opendir
=no
4701 LIBS
=$ac_func_search_save_LIBS
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4704 $as_echo "$ac_cv_search_opendir" >&6; }
4705 ac_res
=$ac_cv_search_opendir
4706 if test "$ac_res" != no
; then :
4707 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4713 $as_echo_n "checking for library containing opendir... " >&6; }
4714 if ${ac_cv_search_opendir+:} false
; then :
4715 $as_echo_n "(cached) " >&6
4717 ac_func_search_save_LIBS
=$LIBS
4718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4721 /* Override any GCC internal prototype to avoid an error.
4722 Use char because int might match the return type of a GCC
4723 builtin and then its argument prototype would still apply. */
4736 for ac_lib
in '' x
; do
4737 if test -z "$ac_lib"; then
4738 ac_res
="none required"
4741 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4743 if ac_fn_c_try_link
"$LINENO"; then :
4744 ac_cv_search_opendir
=$ac_res
4746 rm -f core conftest.err conftest.
$ac_objext \
4748 if ${ac_cv_search_opendir+:} false
; then :
4752 if ${ac_cv_search_opendir+:} false
; then :
4755 ac_cv_search_opendir
=no
4758 LIBS
=$ac_func_search_save_LIBS
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4761 $as_echo "$ac_cv_search_opendir" >&6; }
4762 ac_res
=$ac_cv_search_opendir
4763 if test "$ac_res" != no
; then :
4764 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4771 for ac_func
in fcntl
kill lstat readlink
4773 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4774 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4775 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4776 cat >>confdefs.h
<<_ACEOF
4777 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4783 for ac_func
in fnmatch memmove pselect putenv
select setenv setlocale \
4784 strcasecmp strpbrk tcgetattr vsnprintf
4786 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4787 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4788 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4789 cat >>confdefs.h
<<_ACEOF
4790 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4796 for ac_func
in isascii isxdigit
4798 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4799 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4800 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4801 cat >>confdefs.h
<<_ACEOF
4802 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4808 for ac_func
in getpwent getpwnam getpwuid
4810 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4811 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4812 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4813 cat >>confdefs.h
<<_ACEOF
4814 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
4822 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
4823 if ${ac_cv_type_uid_t+:} false
; then :
4824 $as_echo_n "(cached) " >&6
4826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4828 #include <sys/types.h>
4831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4832 $EGREP "uid_t" >/dev
/null
2>&1; then :
4833 ac_cv_type_uid_t
=yes
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
4841 $as_echo "$ac_cv_type_uid_t" >&6; }
4842 if test $ac_cv_type_uid_t = no
; then
4844 $as_echo "#define uid_t int" >>confdefs.h
4847 $as_echo "#define gid_t int" >>confdefs.h
4851 for ac_header
in unistd.h
4853 ac_fn_c_check_header_mongrel
"$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4854 if test "x$ac_cv_header_unistd_h" = xyes
; then :
4855 cat >>confdefs.h
<<_ACEOF
4856 #define HAVE_UNISTD_H 1
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
4864 $as_echo_n "checking for working chown... " >&6; }
4865 if ${ac_cv_func_chown_works+:} false
; then :
4866 $as_echo_n "(cached) " >&6
4868 if test "$cross_compiling" = yes; then :
4869 ac_cv_func_chown_works
=no
4871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4873 $ac_includes_default
4879 char *f = "conftest.chown";
4880 struct stat before, after;
4882 if (creat (f, 0600) < 0)
4884 if (stat (f, &before) < 0)
4886 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
4888 if (stat (f, &after) < 0)
4890 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
4896 if ac_fn_c_try_run
"$LINENO"; then :
4897 ac_cv_func_chown_works
=yes
4899 ac_cv_func_chown_works
=no
4901 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4902 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4905 rm -f conftest.chown
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
4909 $as_echo "$ac_cv_func_chown_works" >&6; }
4910 if test $ac_cv_func_chown_works = yes; then
4912 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
4917 $as_echo_n "checking for working strcoll... " >&6; }
4918 if ${ac_cv_func_strcoll_works+:} false
; then :
4919 $as_echo_n "(cached) " >&6
4921 if test "$cross_compiling" = yes; then :
4922 ac_cv_func_strcoll_works
=no
4924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926 $ac_includes_default
4930 return (strcoll ("abc", "def") >= 0 ||
4931 strcoll ("ABC", "DEF") >= 0 ||
4932 strcoll ("123", "456") >= 0)
4937 if ac_fn_c_try_run
"$LINENO"; then :
4938 ac_cv_func_strcoll_works
=yes
4940 ac_cv_func_strcoll_works
=no
4942 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4943 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
4948 $as_echo "$ac_cv_func_strcoll_works" >&6; }
4949 if test $ac_cv_func_strcoll_works = yes; then
4951 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
4956 for ac_header
in fcntl.h unistd.h stdlib.h varargs.h stdarg.h stdbool.h \
4957 string.h
strings.h \
4958 limits.h locale.h
pwd.h memory.h termcap.h termios.h termio.h
4960 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4961 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4962 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4963 cat >>confdefs.h
<<_ACEOF
4964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4971 for ac_header
in sys
/ioctl.h sys
/pte.h sys
/stream.h sys
/select.h sys
/file.h
4973 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4974 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4975 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4976 cat >>confdefs.h
<<_ACEOF
4977 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4985 for ac_header
in sys
/ptem.h
4987 ac_fn_c_check_header_compile
"$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "
4988 #if HAVE_SYS_STREAM_H
4989 # include <sys/stream.h>
4993 if test "x$ac_cv_header_sys_ptem_h" = xyes
; then :
4994 cat >>confdefs.h
<<_ACEOF
4995 #define HAVE_SYS_PTEM_H 1
5003 # Check whether --enable-largefile was given.
5004 if test "${enable_largefile+set}" = set; then :
5005 enableval
=$enable_largefile;
5008 if test "$enable_largefile" != no
; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5011 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5012 if ${ac_cv_sys_largefile_CC+:} false
; then :
5013 $as_echo_n "(cached) " >&6
5015 ac_cv_sys_largefile_CC
=no
5016 if test "$GCC" != yes; then
5019 # IRIX 6.2 and later do not support large files by default,
5020 # so use the C compiler's -n32 option if that helps.
5021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5022 /* end confdefs.h. */
5023 #include <sys/types.h>
5024 /* Check that off_t can represent 2**63 - 1 correctly.
5025 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5026 since some C++ compilers masquerading as C compilers
5027 incorrectly reject 9223372036854775807. */
5028 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5030 && LARGE_OFF_T % 2147483647 == 1)
5040 if ac_fn_c_try_compile
"$LINENO"; then :
5043 rm -f core conftest.err conftest.
$ac_objext
5045 if ac_fn_c_try_compile
"$LINENO"; then :
5046 ac_cv_sys_largefile_CC
=' -n32'; break
5048 rm -f core conftest.err conftest.
$ac_objext
5052 rm -f conftest.
$ac_ext
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5056 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5057 if test "$ac_cv_sys_largefile_CC" != no
; then
5058 CC
=$CC$ac_cv_sys_largefile_CC
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5062 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5063 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5064 $as_echo_n "(cached) " >&6
5067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5069 #include <sys/types.h>
5070 /* Check that off_t can represent 2**63 - 1 correctly.
5071 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5072 since some C++ compilers masquerading as C compilers
5073 incorrectly reject 9223372036854775807. */
5074 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5076 && LARGE_OFF_T % 2147483647 == 1)
5086 if ac_fn_c_try_compile
"$LINENO"; then :
5087 ac_cv_sys_file_offset_bits
=no
; break
5089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5091 /* end confdefs.h. */
5092 #define _FILE_OFFSET_BITS 64
5093 #include <sys/types.h>
5094 /* Check that off_t can represent 2**63 - 1 correctly.
5095 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5096 since some C++ compilers masquerading as C compilers
5097 incorrectly reject 9223372036854775807. */
5098 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5099 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5100 && LARGE_OFF_T % 2147483647 == 1)
5110 if ac_fn_c_try_compile
"$LINENO"; then :
5111 ac_cv_sys_file_offset_bits
=64; break
5113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5114 ac_cv_sys_file_offset_bits
=unknown
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5119 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5120 case $ac_cv_sys_file_offset_bits in #(
5123 cat >>confdefs.h
<<_ACEOF
5124 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5129 if test $ac_cv_sys_file_offset_bits = unknown
; then
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5131 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5132 if ${ac_cv_sys_large_files+:} false
; then :
5133 $as_echo_n "(cached) " >&6
5136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5138 #include <sys/types.h>
5139 /* Check that off_t can represent 2**63 - 1 correctly.
5140 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5141 since some C++ compilers masquerading as C compilers
5142 incorrectly reject 9223372036854775807. */
5143 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5144 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5145 && LARGE_OFF_T % 2147483647 == 1)
5155 if ac_fn_c_try_compile
"$LINENO"; then :
5156 ac_cv_sys_large_files
=no
; break
5158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h. */
5161 #define _LARGE_FILES 1
5162 #include <sys/types.h>
5163 /* Check that off_t can represent 2**63 - 1 correctly.
5164 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5165 since some C++ compilers masquerading as C compilers
5166 incorrectly reject 9223372036854775807. */
5167 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5168 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5169 && LARGE_OFF_T % 2147483647 == 1)
5179 if ac_fn_c_try_compile
"$LINENO"; then :
5180 ac_cv_sys_large_files
=1; break
5182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5183 ac_cv_sys_large_files
=unknown
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5188 $as_echo "$ac_cv_sys_large_files" >&6; }
5189 case $ac_cv_sys_large_files in #(
5192 cat >>confdefs.h
<<_ACEOF
5193 #define _LARGE_FILES $ac_cv_sys_large_files
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
5206 $as_echo_n "checking for type of signal functions... " >&6; }
5207 if ${bash_cv_signal_vintage+:} false
; then :
5208 $as_echo_n "(cached) " >&6
5211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5219 struct sigaction sa;
5220 sigemptyset(&ss); sigsuspend(&ss);
5221 sigaction(SIGINT, &sa, (struct sigaction *) 0);
5222 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
5228 if ac_fn_c_try_link
"$LINENO"; then :
5229 bash_cv_signal_vintage
=posix
5232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5239 int mask = sigmask(SIGINT);
5240 sigsetmask(mask); sigblock(mask); sigpause(mask);
5246 if ac_fn_c_try_link
"$LINENO"; then :
5247 bash_cv_signal_vintage
=4.2bsd
5250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5254 RETSIGTYPE foo() { }
5259 int mask = sigmask(SIGINT);
5260 sigset(SIGINT, foo); sigrelse(SIGINT);
5261 sighold(SIGINT); sigpause(SIGINT);
5267 if ac_fn_c_try_link
"$LINENO"; then :
5268 bash_cv_signal_vintage
=svr3
5270 bash_cv_signal_vintage
=v7
5273 rm -f core conftest.err conftest.
$ac_objext \
5274 conftest
$ac_exeext conftest.
$ac_ext
5277 rm -f core conftest.err conftest.
$ac_objext \
5278 conftest
$ac_exeext conftest.
$ac_ext
5281 rm -f core conftest.err conftest.
$ac_objext \
5282 conftest
$ac_exeext conftest.
$ac_ext
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
5287 $as_echo "$bash_cv_signal_vintage" >&6; }
5288 if test "$bash_cv_signal_vintage" = posix
; then
5289 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
5291 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
5292 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
5294 elif test "$bash_cv_signal_vintage" = svr3
; then
5295 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5
5302 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
5303 if ${bash_cv_must_reinstall_sighandlers+:} false
; then :
5304 $as_echo_n "(cached) " >&6
5306 if test "$cross_compiling" = yes; then :
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
5308 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
5309 bash_cv_must_reinstall_sighandlers
=no
5312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h. */
5316 #ifdef HAVE_UNISTD_H
5320 typedef RETSIGTYPE sigfunc();
5322 volatile int nsigint;
5324 #ifdef HAVE_POSIX_SIGNALS
5326 set_signal_handler(sig, handler)
5330 struct sigaction act, oact;
5331 act.sa_handler = handler;
5333 sigemptyset (&act.sa_mask);
5334 sigemptyset (&oact.sa_mask);
5335 sigaction (sig, &act, &oact);
5336 return (oact.sa_handler);
5339 #define set_signal_handler(s, h) signal(s, h)
5352 set_signal_handler(SIGINT, sigint);
5353 kill((int)getpid(), SIGINT);
5354 kill((int)getpid(), SIGINT);
5359 if ac_fn_c_try_run
"$LINENO"; then :
5360 bash_cv_must_reinstall_sighandlers
=no
5362 bash_cv_must_reinstall_sighandlers
=yes
5364 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5365 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5
5371 $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
5372 if test $bash_cv_must_reinstall_sighandlers = yes; then
5373 $as_echo "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
5380 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
5381 if ${bash_cv_func_sigsetjmp+:} false
; then :
5382 $as_echo_n "(cached) " >&6
5384 if test "$cross_compiling" = yes; then :
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
5386 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
5387 bash_cv_func_sigsetjmp
=missing
5390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5393 #ifdef HAVE_UNISTD_H
5396 #include <sys/types.h>
5402 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
5413 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
5414 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
5417 code = sigsetjmp(xx, 1);
5419 exit(0); /* could get sigmask and compare to oset here. */
5422 sigaddset(&set, SIGINT);
5423 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
5425 /* and siglongjmp */
5431 if ac_fn_c_try_run
"$LINENO"; then :
5432 bash_cv_func_sigsetjmp
=present
5434 bash_cv_func_sigsetjmp
=missing
5436 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5437 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5
5443 $as_echo "$bash_cv_func_sigsetjmp" >&6; }
5444 if test $bash_cv_func_sigsetjmp = present
; then
5445 $as_echo "#define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
5450 $as_echo_n "checking for lstat... " >&6; }
5451 if ${bash_cv_func_lstat+:} false
; then :
5452 $as_echo_n "(cached) " >&6
5454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5457 #include <sys/types.h>
5458 #include <sys/stat.h>
5463 lstat(".",(struct stat *)0);
5468 if ac_fn_c_try_link
"$LINENO"; then :
5469 bash_cv_func_lstat
=yes
5471 bash_cv_func_lstat
=no
5473 rm -f core conftest.err conftest.
$ac_objext \
5474 conftest
$ac_exeext conftest.
$ac_ext
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5
5477 $as_echo "$bash_cv_func_lstat" >&6; }
5478 if test $bash_cv_func_lstat = yes; then
5479 $as_echo "#define HAVE_LSTAT 1" >>confdefs.h
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5
5485 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
5486 if ${bash_cv_func_strcoll_broken+:} false
; then :
5487 $as_echo_n "(cached) " >&6
5489 if test "$cross_compiling" = yes; then :
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
5491 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
5492 bash_cv_func_strcoll_broken
=no
5495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h. */
5499 #if defined (HAVE_LOCALE_H)
5508 char *deflocale, *defcoll;
5510 #ifdef HAVE_SETLOCALE
5511 deflocale = setlocale(LC_ALL, "");
5512 defcoll = setlocale(LC_COLLATE, "");
5516 /* These two values are taken from tests/glob-test. */
5517 r1 = strcoll("abd", "aXd");
5521 r2 = strcmp("abd", "aXd");
5523 /* These two should both be greater than 0. It is permissible for
5524 a system to return different values, as long as the sign is the
5527 /* Exit with 1 (failure) if these two values are both > 0, since
5528 this tests whether strcoll(3) is broken with respect to strcmp(3)
5529 in the default locale. */
5530 exit (r1 > 0 && r2 > 0);
5534 if ac_fn_c_try_run
"$LINENO"; then :
5535 bash_cv_func_strcoll_broken
=yes
5537 bash_cv_func_strcoll_broken
=no
5539 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5540 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5
5546 $as_echo "$bash_cv_func_strcoll_broken" >&6; }
5547 if test $bash_cv_func_strcoll_broken = yes; then
5548 $as_echo "#define STRCOLL_BROKEN 1" >>confdefs.h
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ctype macros accept non-ascii characters" >&5
5554 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
5555 if ${bash_cv_func_ctype_nonascii+:} false
; then :
5556 $as_echo_n "(cached) " >&6
5558 if test "$cross_compiling" = yes; then :
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
5560 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
5561 bash_cv_func_ctype_nonascii
=no
5564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5567 #ifdef HAVE_LOCALE_H
5581 #ifdef HAVE_SETLOCALE
5582 /* We take a shot here. If that locale is not known, try the
5583 system default. We try this one because '\342' (226) is
5584 known to be a printable character in that locale. */
5585 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
5587 deflocale = setlocale(LC_ALL, "");
5594 exit (r1 == 0 || r2 == 0);
5598 if ac_fn_c_try_run
"$LINENO"; then :
5599 bash_cv_func_ctype_nonascii
=yes
5601 bash_cv_func_ctype_nonascii
=no
5603 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5604 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_ctype_nonascii" >&5
5610 $as_echo "$bash_cv_func_ctype_nonascii" >&6; }
5611 if test $bash_cv_func_ctype_nonascii = yes; then
5612 $as_echo "#define CTYPE_NON_ASCII 1" >>confdefs.h
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5
5618 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
5619 if ${bash_cv_getpw_declared+:} false
; then :
5620 $as_echo_n "(cached) " >&6
5622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5623 /* end confdefs.h. */
5625 #include <sys/types.h>
5626 #ifdef HAVE_UNISTD_H
5627 # include <unistd.h>
5632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5633 $EGREP "getpwuid" >/dev
/null
2>&1; then :
5634 bash_cv_getpw_declared
=yes
5636 bash_cv_getpw_declared
=no
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5
5643 $as_echo "$bash_cv_getpw_declared" >&6; }
5644 if test $bash_cv_getpw_declared = yes; then
5645 $as_echo "#define HAVE_GETPW_DECLS 1" >>confdefs.h
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
5651 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
5652 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
5653 $as_echo_n "(cached) " >&6
5655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5657 #include <sys/types.h>
5658 #include <termios.h>
5664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5665 $EGREP "yes" >/dev
/null
2>&1; then :
5666 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
5668 ac_cv_sys_tiocgwinsz_in_termios_h
=no
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
5674 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
5676 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
5678 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
5679 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
5680 $as_echo_n "(cached) " >&6
5682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684 #include <sys/types.h>
5685 #include <sys/ioctl.h>
5691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5692 $EGREP "yes" >/dev
/null
2>&1; then :
5693 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
5695 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
5701 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
5703 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
5705 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5
5712 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
5713 if ${ac_cv_have_sig_atomic_t+:} false
; then :
5714 $as_echo_n "(cached) " >&6
5716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5729 if ac_fn_c_try_link
"$LINENO"; then :
5730 ac_cv_have_sig_atomic_t
=yes
5732 ac_cv_have_sig_atomic_t
=no
5734 rm -f core conftest.err conftest.
$ac_objext \
5735 conftest
$ac_exeext conftest.
$ac_ext
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5
5738 $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
5739 if test "$ac_cv_have_sig_atomic_t" = "no"
5741 ac_fn_c_check_type
"$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default"
5742 if test "x$ac_cv_type_sig_atomic_t" = xyes
; then :
5746 cat >>confdefs.h
<<_ACEOF
5747 #define sig_atomic_t int
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers are of type void" >&5
5755 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
5756 if ${bash_cv_void_sighandler+:} false
; then :
5757 $as_echo_n "(cached) " >&6
5759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 #include <sys/types.h>
5769 void (*signal ()) ();
5778 if ac_fn_c_try_compile
"$LINENO"; then :
5779 bash_cv_void_sighandler
=yes
5781 bash_cv_void_sighandler
=no
5783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_void_sighandler" >&5
5786 $as_echo "$bash_cv_void_sighandler" >&6; }
5787 if test $bash_cv_void_sighandler = yes; then
5788 $as_echo "#define VOID_SIGHANDLER 1" >>confdefs.h
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5
5794 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
5795 if ${bash_cv_tiocstat_in_ioctl+:} false
; then :
5796 $as_echo_n "(cached) " >&6
5798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5800 #include <sys/types.h>
5801 #include <sys/ioctl.h>
5810 if ac_fn_c_try_compile
"$LINENO"; then :
5811 bash_cv_tiocstat_in_ioctl
=yes
5813 bash_cv_tiocstat_in_ioctl
=no
5815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5
5819 $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
5820 if test $bash_cv_tiocstat_in_ioctl = yes; then
5821 $as_echo "#define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5
5826 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
5827 if ${bash_cv_fionread_in_ioctl+:} false
; then :
5828 $as_echo_n "(cached) " >&6
5830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832 #include <sys/types.h>
5833 #include <sys/ioctl.h>
5842 if ac_fn_c_try_compile
"$LINENO"; then :
5843 bash_cv_fionread_in_ioctl
=yes
5845 bash_cv_fionread_in_ioctl
=no
5847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5
5851 $as_echo "$bash_cv_fionread_in_ioctl" >&6; }
5852 if test $bash_cv_fionread_in_ioctl = yes; then
5853 $as_echo "#define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5
5858 $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
5859 if ${bash_cv_speed_t_in_sys_types+:} false
; then :
5860 $as_echo_n "(cached) " >&6
5862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5864 #include <sys/types.h>
5873 if ac_fn_c_try_compile
"$LINENO"; then :
5874 bash_cv_speed_t_in_sys_types
=yes
5876 bash_cv_speed_t_in_sys_types
=no
5878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5
5882 $as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
5883 if test $bash_cv_speed_t_in_sys_types = yes; then
5884 $as_echo "#define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5
5889 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
5890 if ${bash_cv_struct_winsize_header+:} false
; then :
5891 $as_echo_n "(cached) " >&6
5893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5894 /* end confdefs.h. */
5895 #include <sys/types.h>
5896 #include <sys/ioctl.h>
5905 if ac_fn_c_try_compile
"$LINENO"; then :
5906 bash_cv_struct_winsize_header
=ioctl_h
5908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5910 #include <sys/types.h>
5911 #include <termios.h>
5920 if ac_fn_c_try_compile
"$LINENO"; then :
5921 bash_cv_struct_winsize_header
=termios_h
5923 bash_cv_struct_winsize_header
=other
5925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5931 if test $bash_cv_struct_winsize_header = ioctl_h
; then
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5
5933 $as_echo "sys/ioctl.h" >&6; }
5934 $as_echo "#define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h
5936 elif test $bash_cv_struct_winsize_header = termios_h
; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5
5938 $as_echo "termios.h" >&6; }
5939 $as_echo "#define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5943 $as_echo "not found" >&6; }
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5
5948 $as_echo_n "checking for struct dirent.d_ino... " >&6; }
5949 if ${bash_cv_dirent_has_dino+:} false
; then :
5950 $as_echo_n "(cached) " >&6
5952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5956 #include <sys/types.h>
5957 #ifdef HAVE_UNISTD_H
5958 # include <unistd.h>
5959 #endif /* HAVE_UNISTD_H */
5960 #if defined(HAVE_DIRENT_H)
5961 # include <dirent.h>
5963 # define dirent direct
5964 # ifdef HAVE_SYS_NDIR_H
5965 # include <sys/ndir.h>
5966 # endif /* SYSNDIR */
5967 # ifdef HAVE_SYS_DIR_H
5968 # include <sys/dir.h>
5969 # endif /* SYSDIR */
5973 #endif /* HAVE_DIRENT_H */
5979 struct dirent d; int z; z = d.d_ino;
5985 if ac_fn_c_try_compile
"$LINENO"; then :
5986 bash_cv_dirent_has_dino
=yes
5988 bash_cv_dirent_has_dino
=no
5990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_dino" >&5
5994 $as_echo "$bash_cv_dirent_has_dino" >&6; }
5995 if test $bash_cv_dirent_has_dino = yes; then
5996 $as_echo "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5
6002 $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
6003 if ${bash_cv_dirent_has_d_fileno+:} false
; then :
6004 $as_echo_n "(cached) " >&6
6006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6010 #include <sys/types.h>
6011 #ifdef HAVE_UNISTD_H
6012 # include <unistd.h>
6013 #endif /* HAVE_UNISTD_H */
6014 #if defined(HAVE_DIRENT_H)
6015 # include <dirent.h>
6017 # define dirent direct
6018 # ifdef HAVE_SYS_NDIR_H
6019 # include <sys/ndir.h>
6020 # endif /* SYSNDIR */
6021 # ifdef HAVE_SYS_DIR_H
6022 # include <sys/dir.h>
6023 # endif /* SYSDIR */
6027 #endif /* HAVE_DIRENT_H */
6033 struct dirent d; int z; z = d.d_fileno;
6039 if ac_fn_c_try_compile
"$LINENO"; then :
6040 bash_cv_dirent_has_d_fileno
=yes
6042 bash_cv_dirent_has_d_fileno
=no
6044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5
6048 $as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
6049 if test $bash_cv_dirent_has_d_fileno = yes; then
6050 $as_echo "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h
6055 for ac_header
in libaudit.h
6057 ac_fn_c_check_header_mongrel
"$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
6058 if test "x$ac_cv_header_libaudit_h" = xyes
; then :
6059 cat >>confdefs.h
<<_ACEOF
6060 #define HAVE_LIBAUDIT_H 1
6067 ac_fn_c_check_decl
"$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h>
6069 if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = xyes
; then :
6075 cat >>confdefs.h
<<_ACEOF
6076 #define HAVE_DECL_AUDIT_USER_TTY $ac_have_decl
6081 aix
*) prefer_curses
=yes ;;
6084 if test "X$bash_cv_termcap_lib" = "X"; then
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
6088 $as_echo_n "checking which library has the termcap functions... " >&6; }
6091 if ${bash_cv_termcap_lib+:} false
; then :
6092 $as_echo_n "(cached) " >&6
6094 ac_fn_c_check_func
"$LINENO" "tgetent" "ac_cv_func_tgetent"
6095 if test "x$ac_cv_func_tgetent" = xyes
; then :
6096 bash_cv_termcap_lib
=libc
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
6099 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
6100 if ${ac_cv_lib_termcap_tgetent+:} false
; then :
6101 $as_echo_n "(cached) " >&6
6103 ac_check_lib_save_LIBS
=$LIBS
6104 LIBS
="-ltermcap $LIBS"
6105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h. */
6108 /* Override any GCC internal prototype to avoid an error.
6109 Use char because int might match the return type of a GCC
6110 builtin and then its argument prototype would still apply. */
6123 if ac_fn_c_try_link
"$LINENO"; then :
6124 ac_cv_lib_termcap_tgetent
=yes
6126 ac_cv_lib_termcap_tgetent
=no
6128 rm -f core conftest.err conftest.
$ac_objext \
6129 conftest
$ac_exeext conftest.
$ac_ext
6130 LIBS
=$ac_check_lib_save_LIBS
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
6133 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
6134 if test "x$ac_cv_lib_termcap_tgetent" = xyes
; then :
6135 bash_cv_termcap_lib
=libtermcap
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
6138 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
6139 if ${ac_cv_lib_tinfo_tgetent+:} false
; then :
6140 $as_echo_n "(cached) " >&6
6142 ac_check_lib_save_LIBS
=$LIBS
6143 LIBS
="-ltinfo $LIBS"
6144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6147 /* Override any GCC internal prototype to avoid an error.
6148 Use char because int might match the return type of a GCC
6149 builtin and then its argument prototype would still apply. */
6162 if ac_fn_c_try_link
"$LINENO"; then :
6163 ac_cv_lib_tinfo_tgetent
=yes
6165 ac_cv_lib_tinfo_tgetent
=no
6167 rm -f core conftest.err conftest.
$ac_objext \
6168 conftest
$ac_exeext conftest.
$ac_ext
6169 LIBS
=$ac_check_lib_save_LIBS
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
6172 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
6173 if test "x$ac_cv_lib_tinfo_tgetent" = xyes
; then :
6174 bash_cv_termcap_lib
=libtinfo
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
6177 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
6178 if ${ac_cv_lib_curses_tgetent+:} false
; then :
6179 $as_echo_n "(cached) " >&6
6181 ac_check_lib_save_LIBS
=$LIBS
6182 LIBS
="-lcurses $LIBS"
6183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6186 /* Override any GCC internal prototype to avoid an error.
6187 Use char because int might match the return type of a GCC
6188 builtin and then its argument prototype would still apply. */
6201 if ac_fn_c_try_link
"$LINENO"; then :
6202 ac_cv_lib_curses_tgetent
=yes
6204 ac_cv_lib_curses_tgetent
=no
6206 rm -f core conftest.err conftest.
$ac_objext \
6207 conftest
$ac_exeext conftest.
$ac_ext
6208 LIBS
=$ac_check_lib_save_LIBS
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
6211 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
6212 if test "x$ac_cv_lib_curses_tgetent" = xyes
; then :
6213 bash_cv_termcap_lib
=libcurses
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
6216 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
6217 if ${ac_cv_lib_ncurses_tgetent+:} false
; then :
6218 $as_echo_n "(cached) " >&6
6220 ac_check_lib_save_LIBS
=$LIBS
6221 LIBS
="-lncurses $LIBS"
6222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6225 /* Override any GCC internal prototype to avoid an error.
6226 Use char because int might match the return type of a GCC
6227 builtin and then its argument prototype would still apply. */
6240 if ac_fn_c_try_link
"$LINENO"; then :
6241 ac_cv_lib_ncurses_tgetent
=yes
6243 ac_cv_lib_ncurses_tgetent
=no
6245 rm -f core conftest.err conftest.
$ac_objext \
6246 conftest
$ac_exeext conftest.
$ac_ext
6247 LIBS
=$ac_check_lib_save_LIBS
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
6250 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
6251 if test "x$ac_cv_lib_ncurses_tgetent" = xyes
; then :
6252 bash_cv_termcap_lib
=libncurses
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5
6255 $as_echo_n "checking for tgetent in -lncursesw... " >&6; }
6256 if ${ac_cv_lib_ncursesw_tgetent+:} false
; then :
6257 $as_echo_n "(cached) " >&6
6259 ac_check_lib_save_LIBS
=$LIBS
6260 LIBS
="-lncursesw $LIBS"
6261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6262 /* end confdefs.h. */
6264 /* Override any GCC internal prototype to avoid an error.
6265 Use char because int might match the return type of a GCC
6266 builtin and then its argument prototype would still apply. */
6279 if ac_fn_c_try_link
"$LINENO"; then :
6280 ac_cv_lib_ncursesw_tgetent
=yes
6282 ac_cv_lib_ncursesw_tgetent
=no
6284 rm -f core conftest.err conftest.
$ac_objext \
6285 conftest
$ac_exeext conftest.
$ac_ext
6286 LIBS
=$ac_check_lib_save_LIBS
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tgetent" >&5
6289 $as_echo "$ac_cv_lib_ncursesw_tgetent" >&6; }
6290 if test "x$ac_cv_lib_ncursesw_tgetent" = xyes
; then :
6291 bash_cv_termcap_lib
=libncursesw
6293 bash_cv_termcap_lib
=gnutermcap
6308 if test "X$_bash_needmsg" = "Xyes"; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
6310 $as_echo_n "checking which library has the termcap functions... " >&6; }
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
6313 $as_echo "using $bash_cv_termcap_lib" >&6; }
6314 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
6315 LDFLAGS
="$LDFLAGS -L./lib/termcap"
6316 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
6317 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
6318 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
6319 TERMCAP_LIB
=-ltermcap
6321 elif test $bash_cv_termcap_lib = libtinfo
; then
6324 elif test $bash_cv_termcap_lib = libncurses
; then
6325 TERMCAP_LIB
=-lncurses
6327 elif test $bash_cv_termcap_lib = libc
; then
6331 TERMCAP_LIB
=-lcurses
6335 if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
6336 if test "$prefer_curses" = yes; then
6337 TERMCAP_LIB
=-lcurses
6339 TERMCAP_LIB
=-ltermcap #default
6342 # Windows ncurses installation
6343 if test "$TERMCAP_LIB" = "-lncurses"; then
6344 for ac_header
in ncurses
/termcap.h
6346 ac_fn_c_check_header_mongrel
"$LINENO" "ncurses/termcap.h" "ac_cv_header_ncurses_termcap_h" "$ac_includes_default"
6347 if test "x$ac_cv_header_ncurses_termcap_h" = xyes
; then :
6348 cat >>confdefs.h
<<_ACEOF
6349 #define HAVE_NCURSES_TERMCAP_H 1
6358 case "$TERMCAP_LIB" in
6359 -ltinfo) TERMCAP_PKG_CONFIG_LIB
=tinfo
;;
6360 -lcurses) TERMCAP_PKG_CONFIG_LIB
=ncurses
;;
6361 -lncurses) TERMCAP_PKG_CONFIG_LIB
=ncurses
;;
6362 -ltermcap) TERMCAP_PKG_CONFIG_LIB
=termcap
;;
6363 *) TERMCAP_PKG_CONFIG_LIB
=termcap
;;
6367 for ac_header
in wctype.h
6369 ac_fn_c_check_header_mongrel
"$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
6370 if test "x$ac_cv_header_wctype_h" = xyes
; then :
6371 cat >>confdefs.h
<<_ACEOF
6372 #define HAVE_WCTYPE_H 1
6379 for ac_header
in wchar.h
6381 ac_fn_c_check_header_mongrel
"$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
6382 if test "x$ac_cv_header_wchar_h" = xyes
; then :
6383 cat >>confdefs.h
<<_ACEOF
6384 #define HAVE_WCHAR_H 1
6391 for ac_header
in langinfo.h
6393 ac_fn_c_check_header_mongrel
"$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
6394 if test "x$ac_cv_header_langinfo_h" = xyes
; then :
6395 cat >>confdefs.h
<<_ACEOF
6396 #define HAVE_LANGINFO_H 1
6404 for ac_header
in mbstr.h
6406 ac_fn_c_check_header_mongrel
"$LINENO" "mbstr.h" "ac_cv_header_mbstr_h" "$ac_includes_default"
6407 if test "x$ac_cv_header_mbstr_h" = xyes
; then :
6408 cat >>confdefs.h
<<_ACEOF
6409 #define HAVE_MBSTR_H 1
6417 ac_fn_c_check_func
"$LINENO" "mbrlen" "ac_cv_func_mbrlen"
6418 if test "x$ac_cv_func_mbrlen" = xyes
; then :
6419 $as_echo "#define HAVE_MBRLEN 1" >>confdefs.h
6423 ac_fn_c_check_func
"$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp"
6424 if test "x$ac_cv_func_mbscasecmp" = xyes
; then :
6425 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
6429 ac_fn_c_check_func
"$LINENO" "mbscmp" "ac_cv_func_mbscmp"
6430 if test "x$ac_cv_func_mbscmp" = xyes
; then :
6431 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
6435 ac_fn_c_check_func
"$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs"
6436 if test "x$ac_cv_func_mbsnrtowcs" = xyes
; then :
6437 $as_echo "#define HAVE_MBSNRTOWCS 1" >>confdefs.h
6441 ac_fn_c_check_func
"$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs"
6442 if test "x$ac_cv_func_mbsrtowcs" = xyes
; then :
6443 $as_echo "#define HAVE_MBSRTOWCS 1" >>confdefs.h
6448 ac_fn_c_check_func
"$LINENO" "mbschr" "ac_cv_func_mbschr"
6449 if test "x$ac_cv_func_mbschr" = xyes
; then :
6450 $as_echo "#define HAVE_MBSCHR 1" >>confdefs.h
6453 case " $LIBOBJS " in
6454 *" mbschr.$ac_objext "* ) ;;
6455 *) LIBOBJS
="$LIBOBJS mbschr.$ac_objext"
6463 ac_fn_c_check_func
"$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
6464 if test "x$ac_cv_func_wcrtomb" = xyes
; then :
6465 $as_echo "#define HAVE_WCRTOMB 1" >>confdefs.h
6469 ac_fn_c_check_func
"$LINENO" "wcscoll" "ac_cv_func_wcscoll"
6470 if test "x$ac_cv_func_wcscoll" = xyes
; then :
6471 $as_echo "#define HAVE_WCSCOLL 1" >>confdefs.h
6475 ac_fn_c_check_func
"$LINENO" "wcsdup" "ac_cv_func_wcsdup"
6476 if test "x$ac_cv_func_wcsdup" = xyes
; then :
6477 $as_echo "#define HAVE_WCSDUP 1" >>confdefs.h
6481 ac_fn_c_check_func
"$LINENO" "wcwidth" "ac_cv_func_wcwidth"
6482 if test "x$ac_cv_func_wcwidth" = xyes
; then :
6483 $as_echo "#define HAVE_WCWIDTH 1" >>confdefs.h
6487 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
6488 if test "x$ac_cv_func_wctype" = xyes
; then :
6489 $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h
6494 ac_fn_c_check_func
"$LINENO" "wcswidth" "ac_cv_func_wcswidth"
6495 if test "x$ac_cv_func_wcswidth" = xyes
; then :
6496 $as_echo "#define HAVE_WCSWIDTH 1" >>confdefs.h
6499 case " $LIBOBJS " in
6500 *" wcswidth.$ac_objext "* ) ;;
6501 *) LIBOBJS
="$LIBOBJS wcswidth.$ac_objext"
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
6511 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
6512 if ${ac_cv_func_mbrtowc+:} false
; then :
6513 $as_echo_n "(cached) " >&6
6515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6516 /* end confdefs.h. */
6522 char const s[] = "";
6525 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
6530 if ac_fn_c_try_link
"$LINENO"; then :
6531 ac_cv_func_mbrtowc
=yes
6533 ac_cv_func_mbrtowc
=no
6535 rm -f core conftest.err conftest.
$ac_objext \
6536 conftest
$ac_exeext conftest.
$ac_ext
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
6539 $as_echo "$ac_cv_func_mbrtowc" >&6; }
6540 if test $ac_cv_func_mbrtowc = yes; then
6542 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
6546 if test $ac_cv_func_mbrtowc = yes; then
6547 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6551 for ac_func
in iswlower iswupper towlower towupper iswctype
6553 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6554 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6555 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6556 cat >>confdefs.h
<<_ACEOF
6557 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6565 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6566 if ${bash_cv_langinfo_codeset+:} false
; then :
6567 $as_echo_n "(cached) " >&6
6569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h. */
6571 #include <langinfo.h>
6575 char* cs = nl_langinfo(CODESET);
6580 if ac_fn_c_try_link
"$LINENO"; then :
6581 bash_cv_langinfo_codeset
=yes
6583 bash_cv_langinfo_codeset
=no
6585 rm -f core conftest.err conftest.
$ac_objext \
6586 conftest
$ac_exeext conftest.
$ac_ext
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_langinfo_codeset" >&5
6589 $as_echo "$bash_cv_langinfo_codeset" >&6; }
6590 if test $bash_cv_langinfo_codeset = yes; then
6591 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5
6596 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
6597 if ${bash_cv_type_wchar_t+:} false
; then :
6598 $as_echo_n "(cached) " >&6
6600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6615 if ac_fn_c_try_compile
"$LINENO"; then :
6616 bash_cv_type_wchar_t
=yes
6618 bash_cv_type_wchar_t
=no
6620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wchar_t" >&5
6623 $as_echo "$bash_cv_type_wchar_t" >&6; }
6624 if test $bash_cv_type_wchar_t = yes; then
6626 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5
6631 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
6632 if ${bash_cv_type_wctype_t+:} false
; then :
6633 $as_echo_n "(cached) " >&6
6635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6649 if ac_fn_c_try_compile
"$LINENO"; then :
6650 bash_cv_type_wctype_t
=yes
6652 bash_cv_type_wctype_t
=no
6654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wctype_t" >&5
6657 $as_echo "$bash_cv_type_wctype_t" >&6; }
6658 if test $bash_cv_type_wctype_t = yes; then
6660 $as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5
6665 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
6666 if ${bash_cv_type_wint_t+:} false
; then :
6667 $as_echo_n "(cached) " >&6
6669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6683 if ac_fn_c_try_compile
"$LINENO"; then :
6684 bash_cv_type_wint_t
=yes
6686 bash_cv_type_wint_t
=no
6688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wint_t" >&5
6691 $as_echo "$bash_cv_type_wint_t" >&6; }
6692 if test $bash_cv_type_wint_t = yes; then
6694 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcwidth broken with unicode combining characters" >&5
6699 $as_echo_n "checking for wcwidth broken with unicode combining characters... " >&6; }
6700 if ${bash_cv_wcwidth_broken+:} false
; then :
6701 $as_echo_n "(cached) " >&6
6703 if test "$cross_compiling" = yes; then :
6704 bash_cv_wcwidth_broken
=no
6706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6722 setlocale(LC_ALL, "en_US.UTF-8");
6723 w = wcwidth (0x0301);
6724 exit (w == 0); /* exit 0 if wcwidth broken */
6728 if ac_fn_c_try_run
"$LINENO"; then :
6729 bash_cv_wcwidth_broken
=yes
6731 bash_cv_wcwidth_broken
=no
6733 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6734 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcwidth_broken" >&5
6739 $as_echo "$bash_cv_wcwidth_broken" >&6; }
6740 if test "$bash_cv_wcwidth_broken" = yes; then
6742 $as_echo "#define WCWIDTH_BROKEN 1" >>confdefs.h
6746 if test "$am_cv_func_iconv" = yes; then
6748 LIBS
="$LIBS $LIBINTL $LIBICONV"
6749 for ac_func
in locale_charset
6751 ac_fn_c_check_func
"$LINENO" "locale_charset" "ac_cv_func_locale_charset"
6752 if test "x$ac_cv_func_locale_charset" = xyes
; then :
6753 cat >>confdefs.h
<<_ACEOF
6754 #define HAVE_LOCALE_CHARSET 1
6763 # The cast to long int works around a bug in the HP C Compiler
6764 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6765 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6766 # This bug is HP SR number 8606223364.
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
6768 $as_echo_n "checking size of wchar_t... " >&6; }
6769 if ${ac_cv_sizeof_wchar_t+:} false
; then :
6770 $as_echo_n "(cached) " >&6
6772 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then :
6775 if test "$ac_cv_type_wchar_t" = yes; then
6776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6778 as_fn_error
77 "cannot compute sizeof (wchar_t)
6779 See \`config.log' for more details" "$LINENO" 5; }
6781 ac_cv_sizeof_wchar_t
=0
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
6787 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
6791 cat >>confdefs.h
<<_ACEOF
6792 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
6800 *cray
*) LOCAL_CFLAGS
=-DCRAY ;;
6801 *s390
*) LOCAL_CFLAGS
=-fsigned-char ;;
6805 isc
*) LOCAL_CFLAGS
=-Disc386 ;;
6808 # shared library configuration section
6810 # Shared object configuration section. These values are generated by
6811 # ${srcdir}/support/shobj-conf
6813 if test -f ${srcdir}/support
/shobj-conf
; then
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configuration for building shared libraries" >&5
6815 $as_echo_n "checking configuration for building shared libraries... " >&6; }
6816 eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
6818 # case "$SHLIB_LIBS" in
6819 # *curses*|*termcap*|*termlib*) ;;
6820 # *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;;
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_STATUS" >&5
6839 $as_echo "$SHLIB_STATUS" >&6; }
6841 # SHLIB_STATUS is either `supported' or `unsupported'. If it's
6842 # `unsupported', turn off any default shared library building
6843 if test "$SHLIB_STATUS" = 'unsupported'; then
6847 # shared library versioning
6848 # quoted for m4 so I can use character classes
6849 SHLIB_MAJOR
=`expr "$LIBVERSION" : '\([0-9]\)\..*'`
6850 SHLIB_MINOR
=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`
6855 if test "$opt_static_libs" = "yes"; then
6856 STATIC_TARGET
=static
6857 STATIC_INSTALL_TARGET
=install-static
6859 if test "$opt_shared_libs" = "yes"; then
6860 SHARED_TARGET
=shared
6861 SHARED_INSTALL_TARGET
=install-shared
6869 if test "$opt_install_examples" = "yes"; then
6870 EXAMPLES_INSTALL_TARGET
=install-examples
6875 msdosdjgpp
*) BUILD_DIR
=`pwd.exe` ;; # to prevent //d/path/file
6876 *) BUILD_DIR
=`pwd` ;;
6879 case "$BUILD_DIR" in
6880 *\
*) BUILD_DIR
=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
6902 ac_config_files
="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile readline.pc"
6904 ac_config_commands
="$ac_config_commands default"
6906 cat >confcache
<<\_ACEOF
6907 # This file is a shell script that caches the results of configure
6908 # tests run on this system so they can be shared between configure
6909 # scripts and configure runs, see configure's option --config-cache.
6910 # It is not useful on other systems. If it contains results you don't
6911 # want to keep, you may remove or edit it.
6913 # config.status only pays attention to the cache file if you give it
6914 # the --recheck option to rerun configure.
6916 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6917 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6922 # The following way of writing the cache mishandles newlines in values,
6923 # but we know of no workaround that is simple, portable, and efficient.
6924 # So, we kill variables containing newlines.
6925 # Ultrix sh set writes to stderr and can't be redirected directly,
6926 # and sets the high bit in the cache file unless we assign to the vars.
6928 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6929 eval ac_val
=\$
$ac_var
6933 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6934 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6937 _ | IFS | as_nl
) ;; #(
6938 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6939 *) { eval $ac_var=; unset $ac_var;} ;;
6945 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6946 *${as_nl}ac_space
=\
*)
6947 # `set' does not quote correctly, so add quotes: double-quote
6948 # substitution turns \\\\ into \\, and sed turns \\ into \.
6951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6954 # `set' quotes correctly as required by POSIX, so do not add quotes.
6955 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6964 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6966 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6968 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6969 if test -w "$cache_file"; then
6970 if test "x$cache_file" != "x/dev/null"; then
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6972 $as_echo "$as_me: updating cache $cache_file" >&6;}
6973 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
6974 cat confcache
>"$cache_file"
6976 case $cache_file in #(
6978 mv -f confcache
"$cache_file"$$
&&
6979 mv -f "$cache_file"$$
"$cache_file" ;; #(
6981 mv -f confcache
"$cache_file" ;;
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6987 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6992 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6993 # Let make expand exec_prefix.
6994 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6996 DEFS
=-DHAVE_CONFIG_H
7001 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7002 # 1. Remove the extension, and $U if already installed.
7003 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7004 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7005 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7006 # will be set to the directory where LIBOBJS objects are built.
7007 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7008 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7012 LTLIBOBJS
=$ac_ltlibobjs
7016 : "${CONFIG_STATUS=./config.status}"
7018 ac_clean_files_save
=$ac_clean_files
7019 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7021 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7023 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7025 # Generated by $as_me.
7026 # Run this file to recreate the current configuration.
7027 # Compiler output produced by configure, useful for debugging
7028 # configure, is in config.log if it exists.
7034 SHELL=\${CONFIG_SHELL-$SHELL}
7037 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7038 ## -------------------- ##
7039 ## M4sh Initialization. ##
7040 ## -------------------- ##
7042 # Be more Bourne compatible
7043 DUALCASE
=1; export DUALCASE
# for MKS sh
7044 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7047 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7048 # is contrary to our usage. Disable this feature.
7049 alias -g '${1+"$@"}'='"$@"'
7050 setopt NO_GLOB_SUBST
7052 case `(set -o) 2>/dev/null` in #(
7064 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7065 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7066 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7067 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7068 # Prefer a ksh shell builtin over an external printf program on Solaris,
7069 # but without wasting forks for bash or zsh.
7070 if test -z "$BASH_VERSION$ZSH_VERSION" \
7071 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7072 as_echo='print
-r --'
7073 as_echo_n='print
-rn --'
7074 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7075 as_echo='printf %s
\n'
7076 as_echo_n='printf %s
'
7078 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7079 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7080 as_echo_n='/usr
/ucb
/echo -n'
7082 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7083 as_echo_n_body='eval
7087 expr "X$arg" : "X\\(.*\\)$as_nl";
7088 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7090 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7092 export as_echo_n_body
7093 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7096 as_echo='sh
-c $as_echo_body as_echo
'
7099 # The user is always right.
7100 if test "${PATH_SEPARATOR+set}" != set; then
7102 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7103 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7110 # We need space, tab and new line, in precisely that order. Quoting is
7111 # there to prevent editors from complaining about space-tab.
7112 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7113 # splitting by setting IFS to empty value.)
7116 # Find who we are. Look in the path if we contain no directory separator.
7119 *[\\/]* ) as_myself=$0 ;;
7120 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 test -z "$as_dir" && as_dir=.
7125 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7131 # We did not find ourselves, most probably we were run as `sh COMMAND'
7132 # in which case we are not to be found in the path.
7133 if test "x$as_myself" = x
; then
7136 if test ! -f "$as_myself"; then
7137 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7141 # Unset variables that we do not need and which cause bugs (e.g. in
7142 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7143 # suppresses any "Segmentation fault" message there. '((' could
7144 # trigger a bug in pdksh 5.2.14.
7145 for as_var
in BASH_ENV ENV MAIL MAILPATH
7146 do eval test x\
${$as_var+set} = xset \
7147 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7160 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7163 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7164 # ----------------------------------------
7165 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7166 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7167 # script with STATUS, using 1 if that was 0.
7170 as_status
=$1; test $as_status -eq 0 && as_status
=1
7172 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7173 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7175 $as_echo "$as_me: error: $2" >&2
7176 as_fn_exit
$as_status
7180 # as_fn_set_status STATUS
7181 # -----------------------
7182 # Set $? to STATUS, without forking.
7186 } # as_fn_set_status
7190 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7200 # Portably unset VAR.
7203 { eval $1=; unset $1;}
7205 as_unset
=as_fn_unset
7206 # as_fn_append VAR VALUE
7207 # ----------------------
7208 # Append the text in VALUE to the end of the definition contained in VAR. Take
7209 # advantage of any shell optimizations that allow amortized linear growth over
7210 # repeated appends, instead of the typical quadratic growth present in naive
7212 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7213 eval 'as_fn_append ()
7224 # as_fn_arith ARG...
7225 # ------------------
7226 # Perform arithmetic evaluation on the ARGs, and store the result in the
7227 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7228 # must be portable across $(()) and expr.
7229 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7230 eval 'as_fn_arith ()
7237 as_val
=`expr "$@" || test $? -eq 1`
7242 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7243 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7249 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7250 as_basename
=basename
7255 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7261 as_me
=`$as_basename -- "$0" ||
7262 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7263 X"$0" : 'X\(//\)$' \| \
7264 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7266 sed '/^.*\/\([^/][^/]*\)\/*$/{
7280 # Avoid depending upon Character Ranges.
7281 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7282 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7283 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7284 as_cr_digits
='0123456789'
7285 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7287 ECHO_C
= ECHO_N
= ECHO_T
=
7288 case `echo -n x` in #(((((
7290 case `echo 'xy\c'` in
7291 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7293 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7300 rm -f conf$$ conf$$.exe conf$$.
file
7301 if test -d conf$$.dir
; then
7302 rm -f conf$$.dir
/conf$$.
file
7305 mkdir conf$$.dir
2>/dev
/null
7307 if (echo >conf$$.
file) 2>/dev
/null
; then
7308 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7310 # ... but there are two gotchas:
7311 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7312 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7313 # In both cases, we have to default to `cp -pR'.
7314 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7316 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7324 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7325 rmdir conf$$.dir
2>/dev
/null
7330 # Create "$as_dir" as a directory, including parents if necessary.
7335 -*) as_dir
=.
/$as_dir;;
7337 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7341 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7342 *) as_qdir
=$as_dir;;
7344 as_dirs
="'$as_qdir' $as_dirs"
7345 as_dir
=`$as_dirname -- "$as_dir" ||
7346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7347 X"$as_dir" : 'X\(//\)[^/]' \| \
7348 X"$as_dir" : 'X\(//\)$' \| \
7349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7350 $as_echo X"$as_dir" |
7351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7368 test -d "$as_dir" && break
7370 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7371 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7375 if mkdir
-p .
2>/dev
/null
; then
7376 as_mkdir_p
='mkdir -p "$as_dir"'
7378 test -d .
/-p && rmdir .
/-p
7383 # as_fn_executable_p FILE
7384 # -----------------------
7385 # Test if FILE is an executable regular file.
7386 as_fn_executable_p
()
7388 test -f "$1" && test -x "$1"
7389 } # as_fn_executable_p
7391 as_executable_p
=as_fn_executable_p
7393 # Sed expression to map a string onto a valid CPP name.
7394 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7396 # Sed expression to map a string onto a valid variable name.
7397 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7401 ## ----------------------------------- ##
7402 ## Main body of $CONFIG_STATUS script. ##
7403 ## ----------------------------------- ##
7405 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7408 # Save the log message, to keep $0 and so on meaningful, and to
7409 # report actual input values of CONFIG_FILES etc. instead of their
7410 # values after options handling.
7412 This file was extended by readline $as_me 8.0, which was
7413 generated by GNU Autoconf 2.69. Invocation command line was
7415 CONFIG_FILES = $CONFIG_FILES
7416 CONFIG_HEADERS = $CONFIG_HEADERS
7417 CONFIG_LINKS = $CONFIG_LINKS
7418 CONFIG_COMMANDS = $CONFIG_COMMANDS
7421 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7426 case $ac_config_files in *"
7427 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7430 case $ac_config_headers in *"
7431 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7436 # Files that config.status was made for.
7437 config_files="$ac_config_files"
7438 config_headers="$ac_config_headers"
7439 config_commands="$ac_config_commands"
7443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7445 \`$as_me' instantiates files and other configuration actions
7446 from templates according to the current configuration. Unless the files
7447 and actions are specified as TAGs, all are instantiated by default.
7449 Usage: $0 [OPTION]... [TAG]...
7451 -h, --help print this help, then exit
7452 -V, --version print version number and configuration settings, then exit
7453 --config print configuration, then exit
7454 -q, --quiet, --silent
7455 do not print progress messages
7456 -d, --debug don't remove temporary files
7457 --recheck update $as_me by reconfiguring in the same conditions
7458 --file=FILE[:TEMPLATE]
7459 instantiate the configuration file FILE
7460 --header=FILE[:TEMPLATE]
7461 instantiate the configuration header FILE
7463 Configuration files:
7466 Configuration headers:
7469 Configuration commands:
7472 Report bugs to <bug-readline@gnu.org>."
7475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7476 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7478 readline config.status 8.0
7479 configured by $0, generated by GNU Autoconf 2.69,
7480 with options \\"\$ac_cs_config\\"
7482 Copyright (C) 2012 Free Software Foundation, Inc.
7483 This config.status script is free software; the Free Software Foundation
7484 gives unlimited permission to copy, distribute and modify it."
7489 test -n "\$AWK" || AWK=awk
7492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7493 # The default lists apply if the user does not specify any file.
7499 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7500 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7504 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7516 # Handling of the options.
7517 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7519 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7520 $as_echo "$ac_cs_version"; exit ;;
7521 --config |
--confi |
--conf |
--con |
--co |
--c )
7522 $as_echo "$ac_cs_config"; exit ;;
7523 --debug |
--debu |
--deb |
--de |
--d |
-d )
7525 --file |
--fil |
--fi |
--f )
7528 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7529 '') as_fn_error $?
"missing file argument" ;;
7531 as_fn_append CONFIG_FILES
" '$ac_optarg'"
7532 ac_need_defaults
=false
;;
7533 --header |
--heade |
--head |
--hea )
7536 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7538 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
7539 ac_need_defaults
=false
;;
7541 # Conflict between --help and --header
7542 as_fn_error $?
"ambiguous option: \`$1'
7543 Try \`$0 --help' for more information.";;
7544 --help |
--hel |
-h )
7545 $as_echo "$ac_cs_usage"; exit ;;
7546 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7547 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7551 -*) as_fn_error $?
"unrecognized option: \`$1'
7552 Try \`$0 --help' for more information." ;;
7554 *) as_fn_append ac_config_targets
" $1"
7555 ac_need_defaults
=false
;;
7561 ac_configure_extra_args
=
7563 if $ac_cs_silent; then
7565 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7570 if \$ac_cs_recheck; then
7571 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7573 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7574 CONFIG_SHELL='$SHELL'
7580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7584 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7585 ## Running $as_me. ##
7591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7596 # Handling of arguments.
7597 for ac_config_target
in $ac_config_targets
7599 case $ac_config_target in
7600 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
7601 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7602 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
7603 "examples/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/Makefile" ;;
7604 "shlib/Makefile") CONFIG_FILES
="$CONFIG_FILES shlib/Makefile" ;;
7605 "readline.pc") CONFIG_FILES
="$CONFIG_FILES readline.pc" ;;
7606 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
7608 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7613 # If the user did not use the arguments to specify the items to instantiate,
7614 # then the envvar interface is used. Set only those that are not.
7615 # We use the long form for the default assignment because of an extremely
7616 # bizarre bug on SunOS 4.1.3.
7617 if $ac_need_defaults; then
7618 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7619 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7620 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7623 # Have a temporary directory for convenience. Make it in the build tree
7624 # simply because there is no reason against having it here, and in addition,
7625 # creating and moving files from /tmp can sometimes cause problems.
7626 # Hook for its removal unless debugging.
7627 # Note that there is a small window in which the directory will not be cleaned:
7628 # after its creation but before its name has been assigned to `$tmp'.
7632 trap 'exit_status=$?
7634 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7636 trap 'as_fn_exit 1' 1 2 13 15
7638 # Create a (secure) tmp directory for tmp files.
7641 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7645 tmp
=.
/conf$$
-$RANDOM
7646 (umask 077 && mkdir
"$tmp")
7647 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
7650 # Set up the scripts for CONFIG_FILES section.
7651 # No need to generate them if there are no CONFIG_FILES.
7652 # This happens for instance with `./config.status config.h'.
7653 if test -n "$CONFIG_FILES"; then
7656 ac_cr
=`echo X | tr X '\015'`
7657 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7658 # But we know of no other shell where ac_cr would be empty at this
7659 # point, so we can use a bashism as a fallback.
7660 if test "x$ac_cr" = x
; then
7661 eval ac_cr
=\$
\'\\r
\'
7663 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7664 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7670 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7675 echo "cat >conf$$subs.awk <<_ACEOF" &&
7676 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7679 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7680 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7682 for ac_last_try in false false false false false :; do
7683 . ./conf$$subs.sh ||
7684 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7686 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7687 if test $ac_delim_n = $ac_delim_num; then
7689 elif $ac_last_try; then
7690 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7692 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7698 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
7702 s/^/S["/; s
/!.
*/"]=/
7712 s/\(.\{148\}\)..*/\1/
7714 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
7719 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7726 s/\(.\{148\}\)..*/\1/
7728 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7732 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7737 ' <conf$$subs.awk | sed '
7742 ' >>$CONFIG_STATUS || ac_write_fail=1
7743 rm -f conf$$subs.awk
7744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7746 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
7747 for (key in S) S_is_set[key] = 1
7753 nfields = split(line, field, "@
")
7755 len = length(field[1])
7756 for (i = 2; i < nfields; i++) {
7758 keylen = length(key)
7759 if (S_is_set[key]) {
7761 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7762 len += length(value) + length(field[++i])
7773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7774 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7775 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
7778 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
7779 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
7782 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7783 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
7784 # trailing colons and then remove the whole line if VPATH becomes empty
7785 # (actually we leave an empty line to preserve line numbers).
7786 if test "x
$srcdir" = x.; then
7787 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7806 fi # test -n "$CONFIG_FILES"
7808 # Set up the scripts for CONFIG_HEADERS section.
7809 # No need to generate them if there are no CONFIG_HEADERS.
7810 # This happens for instance with `./config.status Makefile'.
7811 if test -n "$CONFIG_HEADERS"; then
7812 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
7816 # Transform confdefs.h into an awk script `defines.awk', embedded as
7817 # here-document in config.status, that substitutes the proper values into
7818 # config.h.in to produce config.h.
7820 # Create a delimiter string that does not exist in confdefs.h, to ease
7821 # handling of long lines.
7823 for ac_last_try in false false :; do
7824 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
7825 if test -z "$ac_tt"; then
7827 elif $ac_last_try; then
7828 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
7830 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7834 # For the awk script, D is an array of macro values keyed by name,
7835 # likewise P contains macro parameters if any. Preserve backslash
7836 # newline sequences.
7838 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7840 s/.\{148\}/&'"$ac_delim"'/g
7843 s/^[ ]*#[ ]*define[ ][ ]*/ /
7850 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
7852 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
7856 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
7857 D["\
1"]=" \
3\\\\\\n
"\\/p
7859 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
7864 s/.\{148\}/&'"$ac_delim"'/g
7869 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
7872 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
7874 ' <confdefs.h | sed '
7875 s/'"$ac_delim"'/"\\\
7876 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7879 for (key in D) D_is_set[key] = 1
7882 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7884 split(line, arg, " ")
7885 if (arg[1] == "#") {
7889 defundef
= substr
(arg
[1], 2)
7892 split(mac1
, mac2
, "(") #)
7894 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
7895 if (D_is_set
[macro
]) {
7896 # Preserve the white space surrounding the "#".
7897 print prefix
"define", macro P
[macro
] D
[macro
]
7900 # Replace #undef with comments. This is necessary, for example,
7901 # in the case of _POSIX_SOURCE, which is predefined and required
7902 # on some systems where configure will not decide to define it.
7903 if (defundef
== "undef") {
7904 print
"/*", prefix defundef
, macro
, "*/"
7912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7913 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
7914 fi # test -n "$CONFIG_HEADERS"
7917 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7922 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7924 case $ac_mode$ac_tag in
7926 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7927 :[FH
]-) ac_tag
=-:-;;
7928 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7945 -) ac_f
="$ac_tmp/stdin";;
7946 *) # Look for the file first in the build tree, then in the source tree
7947 # (if the path is not absolute). The absolute path cannot be DOS-style,
7948 # because $ac_f cannot contain `:'.
7952 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7954 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7956 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7957 as_fn_append ac_file_inputs
" '$ac_f'"
7960 # Let's still pretend it is `configure' which instantiates (i.e., don't
7961 # use $as_me), people would be surprised to read:
7962 # /* config.h. Generated by config.status. */
7963 configure_input
='Generated from '`
7964 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7966 if test x
"$ac_file" != x-
; then
7967 configure_input
="$ac_file. $configure_input"
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7969 $as_echo "$as_me: creating $ac_file" >&6;}
7971 # Neutralize special characters interpreted by sed in replacement strings.
7972 case $configure_input in #(
7973 *\
&* |
*\|
* |
*\\* )
7974 ac_sed_conf_input
=`$as_echo "$configure_input" |
7975 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7976 *) ac_sed_conf_input
=$configure_input;;
7980 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
7981 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
7986 ac_dir
=`$as_dirname -- "$ac_file" ||
7987 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7988 X"$ac_file" : 'X\(//\)[^/]' \| \
7989 X"$ac_file" : 'X\(//\)$' \| \
7990 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7991 $as_echo X"$ac_file" |
7992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8009 as_dir
="$ac_dir"; as_fn_mkdir_p
8013 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8015 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8016 # A ".." for each directory in $ac_dir_suffix.
8017 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8018 case $ac_top_builddir_sub in
8019 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8020 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8023 ac_abs_top_builddir
=$ac_pwd
8024 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8025 # for backward compatibility:
8026 ac_top_builddir
=$ac_top_build_prefix
8029 .
) # We are building in place.
8031 ac_top_srcdir
=$ac_top_builddir_sub
8032 ac_abs_top_srcdir
=$ac_pwd ;;
8033 [\\/]* | ?
:[\\/]* ) # Absolute name.
8034 ac_srcdir
=$srcdir$ac_dir_suffix;
8035 ac_top_srcdir
=$srcdir
8036 ac_abs_top_srcdir
=$srcdir ;;
8038 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8039 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8040 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8042 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8052 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8053 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8058 # If the template does not know about datarootdir, expand it.
8059 # FIXME: This hack should be removed a few years after 2.60.
8060 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8071 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8072 *datarootdir
*) ac_datarootdir_seen
=yes;;
8073 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8075 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8078 ac_datarootdir_hack='
8079 s&@datadir@&$datadir&g
8080 s&@docdir@&$docdir&g
8081 s&@infodir@&$infodir&g
8082 s&@localedir@&$localedir&g
8083 s&@mandir@&$mandir&g
8084 s&\\\${datarootdir}&$datarootdir&g' ;;
8088 # Neutralize VPATH when `$srcdir' = `.'.
8089 # Shell code in configure.ac might set extrasub.
8090 # FIXME: do we really want to maintain this feature?
8091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8092 ac_sed_extra="$ac_vpsub
8095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8097 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8098 s|@configure_input@|
$ac_sed_conf_input|
;t t
8099 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8100 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8101 s
&@srcdir@
&$ac_srcdir&;t t
8102 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8103 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8104 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8105 s
&@builddir@
&$ac_builddir&;t t
8106 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8107 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8108 s
&@INSTALL@
&$ac_INSTALL&;t t
8109 $ac_datarootdir_hack
8111 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8112 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8114 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8115 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
8116 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8117 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8119 which seems to be undefined. Please make sure it is defined" >&5
8120 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8121 which seems to be undefined. Please make sure it is defined" >&2;}
8123 rm -f "$ac_tmp/stdin"
8125 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8126 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8128 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8134 if test x"$ac_file" != x-; then
8136 $as_echo "/* $configure_input */" \
8137 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8138 } >"$ac_tmp/config.h" \
8139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8140 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8142 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8145 mv "$ac_tmp/config.h" "$ac_file" \
8146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8149 $as_echo "/* $configure_input */" \
8150 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8151 || as_fn_error $? "could not create -" "$LINENO" 5
8155 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8156 $as_echo "$as_me: executing $ac_file commands" >&6;}
8161 case $ac_file$ac_mode in
8163 # Makefile uses this timestamp file to record whether config.h is up to date.
8173 ac_clean_files=$ac_clean_files_save
8175 test $ac_write_fail = 0 ||
8176 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8179 # configure is writing to config.log, and then calls config.status.
8180 # config.status does its own redirection, appending to config.log.
8181 # Unfortunately, on DOS this fails, as config.log is still kept open
8182 # by configure, so config.status won't be able to
write to it
; its
8183 # output is simply discarded. So we exec the FD to /dev/null,
8184 # effectively closing config.log, so it can be properly (re)opened and
8185 # appended to by config.status. When coming back to configure, we
8186 # need to make the FD available again.
8187 if test "$no_create" != yes; then
8189 ac_config_status_args
=
8190 test "$silent" = yes &&
8191 ac_config_status_args
="$ac_config_status_args --quiet"
8193 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8195 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8196 # would make configure fail if this is the last instruction.
8197 $ac_cs_success || as_fn_exit
1
8199 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8201 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}