2 # From configure.in for Readline 6.2, version 2.67.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for readline 6.2.
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
='6.2'
585 PACKAGE_STRING
='readline 6.2'
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
635 SHARED_INSTALL_TARGET
636 STATIC_INSTALL_TARGET
710 program_transform_name
723 enable_option_checking
730 ac_precious_vars
='build_alias
741 # Initialize some variables set by options.
743 ac_init_version
=false
744 ac_unrecognized_opts
=
746 # The variables have the same names as the options, with
747 # dashes changed to underlines.
755 program_transform_name
=s
,x
,x
,
763 # Installation directory options.
764 # These are left unexpanded so users can "make install exec_prefix=/foo"
765 # and all the variables that are supposed to be based on exec_prefix
766 # by default will actually change.
767 # Use braces instead of parens because sh, perl, etc. also accept them.
768 # (The list follows the same order as the GNU Coding Standards.)
769 bindir
='${exec_prefix}/bin'
770 sbindir
='${exec_prefix}/sbin'
771 libexecdir
='${exec_prefix}/libexec'
772 datarootdir
='${prefix}/share'
773 datadir
='${datarootdir}'
774 sysconfdir
='${prefix}/etc'
775 sharedstatedir
='${prefix}/com'
776 localstatedir
='${prefix}/var'
777 includedir
='${prefix}/include'
778 oldincludedir
='/usr/include'
779 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
780 infodir
='${datarootdir}/info'
785 libdir
='${exec_prefix}/lib'
786 localedir
='${datarootdir}/locale'
787 mandir
='${datarootdir}/man'
793 # If the previous option needs an argument, assign it.
794 if test -n "$ac_prev"; then
795 eval $ac_prev=\
$ac_option
801 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 # Accept the important Cygnus configure options, so we can diagnose typos.
808 case $ac_dashdash$ac_option in
812 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
814 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
817 -build |
--build |
--buil |
--bui |
--bu)
818 ac_prev
=build_alias
;;
819 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
820 build_alias
=$ac_optarg ;;
822 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
823 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
824 ac_prev
=cache_file
;;
825 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
826 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
827 cache_file
=$ac_optarg ;;
830 cache_file
=config.cache
;;
832 -datadir |
--datadir |
--datadi |
--datad)
834 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
835 datadir
=$ac_optarg ;;
837 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
838 |
--dataroo |
--dataro |
--datar)
839 ac_prev
=datarootdir
;;
840 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
841 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
842 datarootdir
=$ac_optarg ;;
844 -disable-* |
--disable-*)
845 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
846 # Reject names that are not valid shell variable names.
847 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
848 as_fn_error $?
"invalid feature name: $ac_useropt"
849 ac_useropt_orig
=$ac_useropt
850 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
851 case $ac_user_opts in
855 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
856 ac_unrecognized_sep
=', ';;
858 eval enable_
$ac_useropt=no
;;
860 -docdir |
--docdir |
--docdi |
--doc |
--do)
862 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
865 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
867 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
870 -enable-* |
--enable-*)
871 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
874 as_fn_error $?
"invalid feature name: $ac_useropt"
875 ac_useropt_orig
=$ac_useropt
876 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877 case $ac_user_opts in
881 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
882 ac_unrecognized_sep
=', ';;
884 eval enable_
$ac_useropt=\
$ac_optarg ;;
886 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
887 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
888 |
--exec |
--exe |
--ex)
889 ac_prev
=exec_prefix
;;
890 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
891 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
892 |
--exec=* |
--exe=* |
--ex=*)
893 exec_prefix
=$ac_optarg ;;
895 -gas |
--gas |
--ga |
--g)
896 # Obsolete; use --with-gas.
899 -help |
--help |
--hel |
--he |
-h)
901 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
902 ac_init_help
=recursive
;;
903 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
904 ac_init_help
=short
;;
906 -host |
--host |
--hos |
--ho)
907 ac_prev
=host_alias
;;
908 -host=* |
--host=* |
--hos=* |
--ho=*)
909 host_alias
=$ac_optarg ;;
911 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
913 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
915 htmldir
=$ac_optarg ;;
917 -includedir |
--includedir |
--includedi |
--included |
--include \
918 |
--includ |
--inclu |
--incl |
--inc)
919 ac_prev
=includedir
;;
920 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
921 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
922 includedir
=$ac_optarg ;;
924 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
926 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
927 infodir
=$ac_optarg ;;
929 -libdir |
--libdir |
--libdi |
--libd)
931 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
934 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
935 |
--libexe |
--libex |
--libe)
936 ac_prev
=libexecdir
;;
937 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
938 |
--libexe=* |
--libex=* |
--libe=*)
939 libexecdir
=$ac_optarg ;;
941 -localedir |
--localedir |
--localedi |
--localed |
--locale)
943 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
944 localedir
=$ac_optarg ;;
946 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
947 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
948 ac_prev
=localstatedir
;;
949 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
950 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
951 localstatedir
=$ac_optarg ;;
953 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
955 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
959 # Obsolete; use --without-fp.
962 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
963 |
--no-cr |
--no-c |
-n)
966 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
967 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
970 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
971 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
972 |
--oldin |
--oldi |
--old |
--ol |
--o)
973 ac_prev
=oldincludedir
;;
974 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
975 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
976 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
977 oldincludedir
=$ac_optarg ;;
979 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
981 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
984 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
985 |
--program-pre |
--program-pr |
--program-p)
986 ac_prev
=program_prefix
;;
987 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
988 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
989 program_prefix
=$ac_optarg ;;
991 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
992 |
--program-suf |
--program-su |
--program-s)
993 ac_prev
=program_suffix
;;
994 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
995 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
996 program_suffix
=$ac_optarg ;;
998 -program-transform-name |
--program-transform-name \
999 |
--program-transform-nam |
--program-transform-na \
1000 |
--program-transform-n |
--program-transform- \
1001 |
--program-transform |
--program-transfor \
1002 |
--program-transfo |
--program-transf \
1003 |
--program-trans |
--program-tran \
1004 |
--progr-tra |
--program-tr |
--program-t)
1005 ac_prev
=program_transform_name
;;
1006 -program-transform-name=* |
--program-transform-name=* \
1007 |
--program-transform-nam=* |
--program-transform-na=* \
1008 |
--program-transform-n=* |
--program-transform-=* \
1009 |
--program-transform=* |
--program-transfor=* \
1010 |
--program-transfo=* |
--program-transf=* \
1011 |
--program-trans=* |
--program-tran=* \
1012 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1013 program_transform_name
=$ac_optarg ;;
1015 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1017 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1018 pdfdir
=$ac_optarg ;;
1020 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1022 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1025 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1026 |
-silent |
--silent |
--silen |
--sile |
--sil)
1029 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1031 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1033 sbindir
=$ac_optarg ;;
1035 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1036 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1037 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1039 ac_prev
=sharedstatedir
;;
1040 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1041 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1042 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1044 sharedstatedir
=$ac_optarg ;;
1046 -site |
--site |
--sit)
1048 -site=* |
--site=* |
--sit=*)
1051 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1053 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1054 srcdir
=$ac_optarg ;;
1056 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1057 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1058 ac_prev
=sysconfdir
;;
1059 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1060 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1061 sysconfdir
=$ac_optarg ;;
1063 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1064 ac_prev
=target_alias
;;
1065 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1066 target_alias
=$ac_optarg ;;
1068 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1071 -version |
--version |
--versio |
--versi |
--vers |
-V)
1072 ac_init_version
=: ;;
1075 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1078 as_fn_error $?
"invalid package name: $ac_useropt"
1079 ac_useropt_orig
=$ac_useropt
1080 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1085 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1086 ac_unrecognized_sep
=', ';;
1088 eval with_
$ac_useropt=\
$ac_optarg ;;
1090 -without-* |
--without-*)
1091 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1094 as_fn_error $?
"invalid package name: $ac_useropt"
1095 ac_useropt_orig
=$ac_useropt
1096 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1101 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1102 ac_unrecognized_sep
=', ';;
1104 eval with_
$ac_useropt=no
;;
1107 # Obsolete; use --with-x.
1110 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1111 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1112 ac_prev
=x_includes
;;
1113 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1114 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1115 x_includes
=$ac_optarg ;;
1117 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1118 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1119 ac_prev
=x_libraries
;;
1120 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1121 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1122 x_libraries
=$ac_optarg ;;
1124 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1125 Try \`$0 --help' for more information"
1129 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1130 # Reject names that are not valid shell variable names.
1131 case $ac_envvar in #(
1132 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1133 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1135 eval $ac_envvar=\
$ac_optarg
1136 export $ac_envvar ;;
1139 # FIXME: should be removed in autoconf 3.0.
1140 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1141 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1142 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1143 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1149 if test -n "$ac_prev"; then
1150 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1151 as_fn_error $?
"missing argument to $ac_option"
1154 if test -n "$ac_unrecognized_opts"; then
1155 case $enable_option_checking in
1157 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1158 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1162 # Check all directory arguments for consistency.
1163 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1164 datadir sysconfdir sharedstatedir localstatedir includedir \
1165 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1166 libdir localedir mandir
1168 eval ac_val
=\$
$ac_var
1169 # Remove trailing slashes.
1172 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1173 eval $ac_var=\
$ac_val;;
1175 # Be sure to have absolute directory names.
1177 [\\/$
]* | ?
:[\\/]* ) continue;;
1178 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1180 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1183 # There might be people who depend on the old broken behavior: `$host'
1184 # used to hold the argument of --host etc.
1185 # FIXME: To remove some day.
1188 target
=$target_alias
1190 # FIXME: To remove some day.
1191 if test "x$host_alias" != x
; then
1192 if test "x$build_alias" = x
; then
1193 cross_compiling
=maybe
1194 elif test "x$build_alias" != "x$host_alias"; then
1200 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1202 test "$silent" = yes && exec 6>/dev
/null
1205 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1206 ac_ls_di
=`ls -di .` &&
1207 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1208 as_fn_error $?
"working directory cannot be determined"
1209 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1210 as_fn_error $?
"pwd does not report name of working directory"
1213 # Find the source files, if location was not specified.
1214 if test -z "$srcdir"; then
1215 ac_srcdir_defaulted
=yes
1216 # Try the directory containing this script, then the parent directory.
1217 ac_confdir
=`$as_dirname -- "$as_myself" ||
1218 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219 X"$as_myself" : 'X\(//\)[^/]' \| \
1220 X"$as_myself" : 'X\(//\)$' \| \
1221 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1222 $as_echo X"$as_myself" |
1223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1245 ac_srcdir_defaulted
=no
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1249 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1251 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1253 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1255 # When building in place, set srcdir=.
1256 if test "$ac_abs_confdir" = "$ac_pwd"; then
1259 # Remove unnecessary trailing slashes from srcdir.
1260 # Double slashes in file names in object file debugging info
1261 # mess up M-x gdb in Emacs.
1263 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1265 for ac_var
in $ac_precious_vars; do
1266 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1267 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1268 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1269 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1273 # Report the --help message.
1275 if test "$ac_init_help" = "long"; then
1276 # Omit some internal or obsolete options to make the list less imposing.
1277 # This message is too long to be a string in the A/UX 3.1 sh.
1279 \`configure' configures readline 6.2 to adapt to many kinds of systems.
1281 Usage: $0 [OPTION]... [VAR=VALUE]...
1283 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1284 VAR=VALUE. See below for descriptions of some of the useful variables.
1286 Defaults for the options are specified in brackets.
1289 -h, --help display this help and exit
1290 --help=short display options specific to this package
1291 --help=recursive display the short help of all the included packages
1292 -V, --version display version information and exit
1293 -q, --quiet, --silent do not print \`checking ...' messages
1294 --cache-file=FILE cache test results in FILE [disabled]
1295 -C, --config-cache alias for \`--cache-file=config.cache'
1296 -n, --no-create do not create output files
1297 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1299 Installation directories:
1300 --prefix=PREFIX install architecture-independent files in PREFIX
1301 [$ac_default_prefix]
1302 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1305 By default, \`make install' will install all the files in
1306 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1307 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1308 for instance \`--prefix=\$HOME'.
1310 For better control, use the options below.
1312 Fine tuning of the installation directories:
1313 --bindir=DIR user executables [EPREFIX/bin]
1314 --sbindir=DIR system admin executables [EPREFIX/sbin]
1315 --libexecdir=DIR program executables [EPREFIX/libexec]
1316 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1317 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1318 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1319 --libdir=DIR object code libraries [EPREFIX/lib]
1320 --includedir=DIR C header files [PREFIX/include]
1321 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1322 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1323 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1324 --infodir=DIR info documentation [DATAROOTDIR/info]
1325 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1326 --mandir=DIR man documentation [DATAROOTDIR/man]
1327 --docdir=DIR documentation root [DATAROOTDIR/doc/readline]
1328 --htmldir=DIR html documentation [DOCDIR]
1329 --dvidir=DIR dvi documentation [DOCDIR]
1330 --pdfdir=DIR pdf documentation [DOCDIR]
1331 --psdir=DIR ps documentation [DOCDIR]
1337 --build=BUILD configure
for building on BUILD
[guessed
]
1338 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1342 if test -n "$ac_init_help"; then
1343 case $ac_init_help in
1344 short | recursive
) echo "Configuration of readline 6.2:";;
1349 --disable-option-checking ignore unrecognized
--enable/--with options
1350 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1351 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1352 --enable-multibyte enable multibyte characters
if OS supports them
1353 --enable-static build static libraries
[[default
=YES
]]
1354 --disable-largefile omit support
for large files
1357 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1358 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1359 --with-curses use the curses library instead of the termcap
1361 --with-purify configure to postprocess with purify
1363 Some influential environment variables
:
1364 CC C compiler
command
1365 CFLAGS C compiler flags
1366 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1367 nonstandard directory
<lib dir
>
1368 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1369 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1370 you have headers
in a nonstandard directory
<include dir
>
1373 Use these variables to override the choices made by
`configure' or to help
1374 it to find libraries and programs with nonstandard names/locations.
1376 Report bugs to <bug-readline@gnu.org>.
1381 if test "$ac_init_help" = "recursive"; then
1382 # If there are subdirs, report their specific --help.
1383 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1384 test -d "$ac_dir" ||
1385 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1390 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1392 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1393 # A ".." for each directory in $ac_dir_suffix.
1394 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1395 case $ac_top_builddir_sub in
1396 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1400 ac_abs_top_builddir=$ac_pwd
1401 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1402 # for backward compatibility:
1403 ac_top_builddir=$ac_top_build_prefix
1406 .) # We are building in place.
1408 ac_top_srcdir=$ac_top_builddir_sub
1409 ac_abs_top_srcdir=$ac_pwd ;;
1410 [\\/]* | ?:[\\/]* ) # Absolute name.
1411 ac_srcdir=$srcdir$ac_dir_suffix;
1412 ac_top_srcdir=$srcdir
1413 ac_abs_top_srcdir=$srcdir ;;
1415 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1416 ac_top_srcdir=$ac_top_build_prefix$srcdir
1417 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1419 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1421 cd "$ac_dir" || { ac_status=$?; continue; }
1422 # Check for guested configure.
1423 if test -f "$ac_srcdir/configure.gnu"; then
1425 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1426 elif test -f "$ac_srcdir/configure"; then
1428 $SHELL "$ac_srcdir/configure" --help=recursive
1430 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1432 cd "$ac_pwd" || { ac_status=$?; break; }
1436 test -n "$ac_init_help" && exit $ac_status
1437 if $ac_init_version; then
1439 readline configure 6.2
1440 generated by GNU Autoconf 2.69
1442 Copyright (C) 2012 Free Software Foundation, Inc.
1443 This configure script is free software; the Free Software Foundation
1444 gives unlimited permission to copy, distribute and modify it.
1449 ## ------------------------ ##
1450 ## Autoconf initialization. ##
1451 ## ------------------------ ##
1453 # ac_fn_c_try_compile LINENO
1454 # --------------------------
1455 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1456 ac_fn_c_try_compile ()
1458 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1459 rm -f conftest.$ac_objext
1460 if { { ac_try="$ac_compile"
1462 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1463 *) ac_try_echo
=$ac_try;;
1465 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1466 $as_echo "$ac_try_echo"; } >&5
1467 (eval "$ac_compile") 2>conftest.err
1469 if test -s conftest.err
; then
1470 grep -v '^ *+' conftest.err
>conftest.er1
1471 cat conftest.er1
>&5
1472 mv -f conftest.er1 conftest.err
1474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1475 test $ac_status = 0; } && {
1476 test -z "$ac_c_werror_flag" ||
1477 test ! -s conftest.err
1478 } && test -s conftest.
$ac_objext; then :
1481 $as_echo "$as_me: failed program was:" >&5
1482 sed 's/^/| /' conftest.
$ac_ext >&5
1486 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1487 as_fn_set_status
$ac_retval
1489 } # ac_fn_c_try_compile
1491 # ac_fn_c_try_cpp LINENO
1492 # ----------------------
1493 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1496 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1497 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1500 *) ac_try_echo=$ac_try;;
1502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1503 $as_echo "$ac_try_echo"; } >&5
1504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1506 if test -s conftest.err; then
1507 grep -v '^ *+' conftest.err >conftest.er1
1508 cat conftest.er1 >&5
1509 mv -f conftest.er1 conftest.err
1511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512 test $ac_status = 0; } > conftest.i && {
1513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1514 test ! -s conftest.err
1518 $as_echo "$as_me: failed program was:" >&5
1519 sed 's/^/| /' conftest.$ac_ext >&5
1523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1524 as_fn_set_status $ac_retval
1528 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1529 # -------------------------------------------------------
1530 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1531 # the include files in INCLUDES and setting the cache variable VAR
1533 ac_fn_c_check_header_mongrel ()
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 if eval \${$3+:} false; then :
1537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1538 $as_echo_n "checking for $2... " >&6; }
1539 if eval \${$3+:} false; then :
1540 $as_echo_n "(cached) " >&6
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1544 $as_echo "$ac_res" >&6; }
1546 # Is the header compilable?
1547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1548 $as_echo_n "checking $2 usability... " >&6; }
1549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1550 /* end confdefs.h. */
1554 if ac_fn_c_try_compile "$LINENO"; then :
1555 ac_header_compiler=yes
1557 ac_header_compiler=no
1559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1561 $as_echo "$ac_header_compiler" >&6; }
1563 # Is the header present?
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1565 $as_echo_n "checking $2 presence... " >&6; }
1566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1567 /* end confdefs.h. */
1570 if ac_fn_c_try_cpp "$LINENO"; then :
1571 ac_header_preproc=yes
1573 ac_header_preproc=no
1575 rm -f conftest.err conftest.i conftest.$ac_ext
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1577 $as_echo "$ac_header_preproc" >&6; }
1579 # So? What about this header?
1580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1583 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1585 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1589 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1591 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1593 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1595 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1597 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1598 ( $as_echo "## ----------------------------------- ##
1599 ## Report this to bug-readline@gnu.org ##
1600 ## ----------------------------------- ##"
1601 ) | sed "s/^/$as_me: WARNING: /" >&2
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1605 $as_echo_n "checking for $2... " >&6; }
1606 if eval \${$3+:} false; then :
1607 $as_echo_n "(cached) " >&6
1609 eval "$3=\$ac_header_compiler"
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613 $as_echo "$ac_res" >&6; }
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 } # ac_fn_c_check_header_mongrel
1619 # ac_fn_c_try_run LINENO
1620 # ----------------------
1621 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1622 # that executables *can* be run.
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 if { { ac_try="$ac_link"
1628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1629 *) ac_try_echo
=$ac_try;;
1631 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_link") 2>&5
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1637 { { case "(($ac_try" in
1638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_try") 2>&5
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; }; }; then :
1649 $as_echo "$as_me: program exited with status $ac_status" >&5
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1653 ac_retval=$ac_status
1655 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1661 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1662 # -------------------------------------------------------
1663 # Tests whether HEADER exists and can be compiled using the include files in
1664 # INCLUDES, setting the cache variable VAR accordingly.
1665 ac_fn_c_check_header_compile ()
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if eval \${$3+:} false; then :
1671 $as_echo_n "(cached) " >&6
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1678 if ac_fn_c_try_compile "$LINENO"; then :
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 $as_echo "$ac_res" >&6; }
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 } # ac_fn_c_check_header_compile
1692 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1693 # -------------------------------------------
1694 # Tests whether TYPE exists after having included INCLUDES, setting cache
1695 # variable VAR accordingly.
1696 ac_fn_c_check_type ()
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700 $as_echo_n "checking for $2... " >&6; }
1701 if eval \${$3+:} false; then :
1702 $as_echo_n "(cached) " >&6
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1717 if ac_fn_c_try_compile "$LINENO"; then :
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1730 if ac_fn_c_try_compile "$LINENO"; then :
1735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 } # ac_fn_c_check_type
1746 # ac_fn_c_try_link LINENO
1747 # -----------------------
1748 # Try to link conftest.$ac_ext, and return whether this succeeded.
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 rm -f conftest.$ac_objext conftest$ac_exeext
1753 if { { ac_try="$ac_link"
1755 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1756 *) ac_try_echo
=$ac_try;;
1758 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_link") 2>conftest.err
1762 if test -s conftest.err
; then
1763 grep -v '^ *+' conftest.err
>conftest.er1
1764 cat conftest.er1
>&5
1765 mv -f conftest.er1 conftest.err
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } && {
1769 test -z "$ac_c_werror_flag" ||
1770 test ! -s conftest.err
1771 } && test -s conftest
$ac_exeext && {
1772 test "$cross_compiling" = yes ||
1773 test -x conftest
$ac_exeext
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.
$ac_ext >&5
1782 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1783 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1784 # interfere with the next link command; also delete a directory that is
1785 # left behind by Apple's compiler. We do this before executing the actions.
1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status
$ac_retval
1790 } # ac_fn_c_try_link
1792 # ac_fn_c_check_func LINENO FUNC VAR
1793 # ----------------------------------
1794 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1795 ac_fn_c_check_func
()
1797 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 $as_echo_n "checking for $2... " >&6; }
1800 if eval \
${$3+:} false
; then :
1801 $as_echo_n "(cached) " >&6
1803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1805 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1807 #define $2 innocuous_$2
1809 /* System header to define __stub macros and hopefully few prototypes,
1810 which can conflict with char $2 (); below.
1811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1812 <limits.h> exists even on freestanding compilers. */
1815 # include <limits.h>
1817 # include <assert.h>
1822 /* Override any GCC internal prototype to avoid an error.
1823 Use char because int might match the return type of a GCC
1824 builtin and then its argument prototype would still apply. */
1829 /* The GNU C library defines this for functions which it implements
1830 to always fail with ENOSYS. Some functions are actually named
1831 something starting with __ and the normal name is an alias. */
1832 #if defined __stub_$2 || defined __stub___$2
1844 if ac_fn_c_try_link
"$LINENO"; then :
1849 rm -f core conftest.err conftest.
$ac_objext \
1850 conftest
$ac_exeext conftest.
$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 } # ac_fn_c_check_func
1858 cat >config.log
<<_ACEOF
1859 This file contains any messages produced by compilers while
1860 running configure, to aid debugging if configure makes a mistake.
1862 It was created by readline $as_me 6.2, which was
1863 generated by GNU Autoconf 2.69. Invocation command line was
1875 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1876 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1877 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1878 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1879 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1881 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1882 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1884 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1885 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1886 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1887 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1888 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1889 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1890 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1894 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1898 test -z "$as_dir" && as_dir
=.
1899 $as_echo "PATH: $as_dir"
1915 # Keep a trace of the command line.
1916 # Strip out --no-create and --no-recursion so they do not pile up.
1917 # Strip out --silent because we don't want to record it for future runs.
1918 # Also quote any args containing shell meta-characters.
1919 # Make two passes to allow for proper duplicate-argument suppression.
1923 ac_must_keep_next
=false
1929 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1930 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1931 |
-silent |
--silent |
--silen |
--sile |
--sil)
1934 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1937 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1939 as_fn_append ac_configure_args1
" '$ac_arg'"
1940 if test $ac_must_keep_next = true
; then
1941 ac_must_keep_next
=false
# Got value, back to normal.
1944 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1945 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1946 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1947 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1948 case "$ac_configure_args0 " in
1949 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1952 -* ) ac_must_keep_next
=true
;;
1955 as_fn_append ac_configure_args
" '$ac_arg'"
1960 { ac_configure_args0
=; unset ac_configure_args0
;}
1961 { ac_configure_args1
=; unset ac_configure_args1
;}
1963 # When interrupted or exit'd, cleanup temporary files, and complete
1964 # config.log. We remove comments because anyway the quotes in there
1965 # would cause problems or look ugly.
1966 # WARNING: Use '\'' to represent an apostrophe within the trap.
1967 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1968 trap 'exit_status=$?
1969 # Save into config.log some information that might help in debugging.
1973 $as_echo "## ---------------- ##
1974 ## Cache variables. ##
1975 ## ---------------- ##"
1977 # The following way of writing the cache mishandles newlines in values,
1979 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1980 eval ac_val=\$$ac_var
1984 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1985 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1988 _ | IFS | as_nl) ;; #(
1989 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1990 *) { eval $ac_var=; unset $ac_var;} ;;
1995 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1996 *${as_nl}ac_space=\ *)
1998 "s/'\''/'\''\\\\'\'''\''/g;
1999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2009 $as_echo "## ----------------- ##
2010 ## Output variables. ##
2011 ## ----------------- ##"
2013 for ac_var in $ac_subst_vars
2015 eval ac_val=\$$ac_var
2017 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019 $as_echo "$ac_var='\''$ac_val'\''"
2023 if test -n "$ac_subst_files"; then
2024 $as_echo "## ------------------- ##
2025 ## File substitutions. ##
2026 ## ------------------- ##"
2028 for ac_var
in $ac_subst_files
2030 eval ac_val
=\$
$ac_var
2032 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2034 $as_echo "$ac_var='\''$ac_val'\''"
2039 if test -s confdefs.h; then
2040 $as_echo "## ----------- ##
2047 test "$ac_signal" != 0 &&
2048 $as_echo "$as_me: caught signal $ac_signal"
2049 $as_echo "$as_me: exit $exit_status"
2051 rm -f core *.core core.conftest.* &&
2052 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2055 for ac_signal
in 1 2 13 15; do
2056 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2060 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2061 rm -f -r conftest
* confdefs.h
2063 $as_echo "/* confdefs.h */" > confdefs.h
2065 # Predefined preprocessor variables.
2067 cat >>confdefs.h
<<_ACEOF
2068 #define PACKAGE_NAME "$PACKAGE_NAME"
2071 cat >>confdefs.h
<<_ACEOF
2072 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2075 cat >>confdefs.h
<<_ACEOF
2076 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2079 cat >>confdefs.h
<<_ACEOF
2080 #define PACKAGE_STRING "$PACKAGE_STRING"
2083 cat >>confdefs.h
<<_ACEOF
2084 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2087 cat >>confdefs.h
<<_ACEOF
2088 #define PACKAGE_URL "$PACKAGE_URL"
2092 # Let the site file select an alternate cache file if it wants to.
2093 # Prefer an explicitly selected file to automatically selected ones.
2096 if test -n "$CONFIG_SITE"; then
2097 # We do not want a PATH search for config.site.
2098 case $CONFIG_SITE in #((
2099 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2100 */*) ac_site_file1
=$CONFIG_SITE;;
2101 *) ac_site_file1
=.
/$CONFIG_SITE;;
2103 elif test "x$prefix" != xNONE
; then
2104 ac_site_file1
=$prefix/share
/config.site
2105 ac_site_file2
=$prefix/etc
/config.site
2107 ac_site_file1
=$ac_default_prefix/share
/config.site
2108 ac_site_file2
=$ac_default_prefix/etc
/config.site
2110 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2112 test "x$ac_site_file" = xNONE
&& continue
2113 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2115 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2116 sed 's/^/| /' "$ac_site_file" >&5
2118 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2120 as_fn_error $?
"failed to load site script $ac_site_file
2121 See \`config.log' for more details" "$LINENO" 5; }
2125 if test -r "$cache_file"; then
2126 # Some versions of bash will fail to source /dev/null (special files
2127 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2128 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2130 $as_echo "$as_me: loading cache $cache_file" >&6;}
2132 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2133 *) .
"./$cache_file";;
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2138 $as_echo "$as_me: creating cache $cache_file" >&6;}
2142 # Check that the precious variables saved in the cache have kept the same
2144 ac_cache_corrupted
=false
2145 for ac_var
in $ac_precious_vars; do
2146 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2147 eval ac_new_set
=\
$ac_env_${ac_var}_set
2148 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2149 eval ac_new_val
=\
$ac_env_${ac_var}_value
2150 case $ac_old_set,$ac_new_set in
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2153 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2154 ac_cache_corrupted
=: ;;
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2157 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2158 ac_cache_corrupted
=: ;;
2161 if test "x$ac_old_val" != "x$ac_new_val"; then
2162 # differences in whitespace do not lead to failure.
2163 ac_old_val_w
=`echo x $ac_old_val`
2164 ac_new_val_w
=`echo x $ac_new_val`
2165 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2167 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2168 ac_cache_corrupted
=:
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2171 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2172 eval $ac_var=\
$ac_old_val
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2175 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2177 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2180 # Pass precious variables to config.status.
2181 if test "$ac_new_set" = set; then
2183 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2184 *) ac_arg
=$ac_var=$ac_new_val ;;
2186 case " $ac_configure_args " in
2187 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2188 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2192 if $ac_cache_corrupted; then
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2196 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2197 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2199 ## -------------------- ##
2200 ## Main body of script. ##
2201 ## -------------------- ##
2204 ac_cpp
='$CPP $CPPFLAGS'
2205 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2206 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2207 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2218 for ac_dir
in `cd $srcdir;pwd`/..
"$srcdir"/`cd $srcdir;pwd`/..
; do
2219 if test -f "$ac_dir/install-sh"; then
2221 ac_install_sh
="$ac_aux_dir/install-sh -c"
2223 elif test -f "$ac_dir/install.sh"; then
2225 ac_install_sh
="$ac_aux_dir/install.sh -c"
2227 elif test -f "$ac_dir/shtool"; then
2229 ac_install_sh
="$ac_aux_dir/shtool install -c"
2233 if test -z "$ac_aux_dir"; then
2234 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \`cd $srcdir;pwd\`/.. \"$srcdir\"/\`cd $srcdir;pwd\`/.." "$LINENO" 5
2237 # These three variables are undocumented and unsupported,
2238 # and are intended to be withdrawn in a future Autoconf release.
2239 # They can cause serious problems if a builder's source tree is in a directory
2240 # whose full name contains unusual characters.
2241 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2242 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2243 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2246 ac_config_headers
="$ac_config_headers config.h"
2251 # Make sure we can run config.sub.
2252 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2253 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2256 $as_echo_n "checking build system type... " >&6; }
2257 if ${ac_cv_build+:} false
; then :
2258 $as_echo_n "(cached) " >&6
2260 ac_build_alias
=$build_alias
2261 test "x$ac_build_alias" = x
&&
2262 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2263 test "x$ac_build_alias" = x
&&
2264 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2265 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2266 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2270 $as_echo "$ac_cv_build" >&6; }
2271 case $ac_cv_build in
2273 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2276 ac_save_IFS
=$IFS; IFS
='-'
2282 # Remember, the first character of IFS is used to create $*,
2283 # except with old shells:
2286 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2290 $as_echo_n "checking host system type... " >&6; }
2291 if ${ac_cv_host+:} false
; then :
2292 $as_echo_n "(cached) " >&6
2294 if test "x$host_alias" = x
; then
2295 ac_cv_host
=$ac_cv_build
2297 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2298 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2303 $as_echo "$ac_cv_host" >&6; }
2306 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2309 ac_save_IFS
=$IFS; IFS
='-'
2315 # Remember, the first character of IFS is used to create $*,
2316 # except with old shells:
2319 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2328 # Check whether --with-curses was given.
2329 if test "${with_curses+set}" = set; then :
2330 withval
=$with_curses; opt_curses
=$withval
2334 # Check whether --with-purify was given.
2335 if test "${with_purify+set}" = set; then :
2336 withval
=$with_purify; opt_purify
=$withval
2340 if test "$opt_curses" = "yes"; then
2344 if test "$opt_purify" = yes; then
2354 # Check whether --enable-multibyte was given.
2355 if test "${enable_multibyte+set}" = set; then :
2356 enableval
=$enable_multibyte; opt_multibyte
=$enableval
2359 # Check whether --enable-static was given.
2360 if test "${enable_static+set}" = set; then :
2361 enableval
=$enable_static; opt_static_libs
=$enableval
2365 if test $opt_multibyte = no
; then
2366 $as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h
2373 if test "x$cross_compiling" = "xyes"; then
2376 cross_cache
=${srcdir}/cross-build
/cygwin.cache
2379 cross_cache
=${srcdir}/cross-build
/mingw.cache
2382 cross_cache
=${srcdir}/cross-build
/x86-beos.cache
2384 *) echo "configure: cross-compiling for $host is not supported" >&2
2387 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
2388 echo "loading cross-build cache file ${cross_cache}"
2392 CROSS_COMPILE
='-DCROSS_COMPILING'
2397 echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}"
2400 # We want these before the checks, so the checks can modify their values.
2401 test -z "$CFLAGS" && CFLAGS
=-g auto_cflags
=1
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2404 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2406 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2407 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2408 $as_echo_n "(cached) " >&6
2410 cat >conftest.
make <<\_ACEOF
2413 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2415 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2416 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2418 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2420 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2424 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2426 $as_echo "yes" >&6; }
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2430 $as_echo "no" >&6; }
2431 SET_MAKE
="MAKE=${MAKE-make}"
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
2439 if test -n "$ac_tool_prefix"; then
2440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2441 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2443 $as_echo_n "checking for $ac_word... " >&6; }
2444 if ${ac_cv_prog_CC+:} false
; then :
2445 $as_echo_n "(cached) " >&6
2447 if test -n "$CC"; then
2448 ac_cv_prog_CC
="$CC" # Let the user override the test.
2450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2454 test -z "$as_dir" && as_dir
=.
2455 for ac_exec_ext
in '' $ac_executable_extensions; do
2456 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2457 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 if test -n "$CC"; then
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2470 $as_echo "$CC" >&6; }
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2473 $as_echo "no" >&6; }
2478 if test -z "$ac_cv_prog_CC"; then
2480 # Extract the first word of "gcc", so it can be a program name with args.
2481 set dummy gcc
; ac_word
=$2
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2483 $as_echo_n "checking for $ac_word... " >&6; }
2484 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2485 $as_echo_n "(cached) " >&6
2487 if test -n "$ac_ct_CC"; then
2488 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir
=.
2495 for ac_exec_ext
in '' $ac_executable_extensions; do
2496 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2497 ac_cv_prog_ac_ct_CC
="gcc"
2498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2508 if test -n "$ac_ct_CC"; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2510 $as_echo "$ac_ct_CC" >&6; }
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513 $as_echo "no" >&6; }
2516 if test "x$ac_ct_CC" = x
; then
2519 case $cross_compiling:$ac_tool_warned in
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2523 ac_tool_warned
=yes ;;
2531 if test -z "$CC"; then
2532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2534 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2536 $as_echo_n "checking for $ac_word... " >&6; }
2537 if ${ac_cv_prog_CC+:} false
; then :
2538 $as_echo_n "(cached) " >&6
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC
="$CC" # Let the user override the test.
2543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir
=.
2548 for ac_exec_ext
in '' $ac_executable_extensions; do
2549 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2550 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 if test -n "$CC"; then
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2563 $as_echo "$CC" >&6; }
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2566 $as_echo "no" >&6; }
2572 if test -z "$CC"; then
2573 # Extract the first word of "cc", so it can be a program name with args.
2574 set dummy cc
; ac_word
=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if ${ac_cv_prog_CC+:} false
; then :
2578 $as_echo_n "(cached) " >&6
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC
="$CC" # Let the user override the test.
2584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2588 test -z "$as_dir" && as_dir
=.
2589 for ac_exec_ext
in '' $ac_executable_extensions; do
2590 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2592 ac_prog_rejected
=yes
2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 if test $ac_prog_rejected = yes; then
2604 # We found a bogon in the path, so make sure we never use it.
2605 set dummy
$ac_cv_prog_CC
2607 if test $# != 0; then
2608 # We chose a different compiler from the bogus one.
2609 # However, it has the same basename, so the bogon will be chosen
2610 # first if we set CC to just the basename; use the full file name.
2612 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2618 if test -n "$CC"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2620 $as_echo "$CC" >&6; }
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623 $as_echo "no" >&6; }
2628 if test -z "$CC"; then
2629 if test -n "$ac_tool_prefix"; then
2630 for ac_prog
in cl.exe
2632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2633 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if ${ac_cv_prog_CC+:} false
; then :
2637 $as_echo_n "(cached) " >&6
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC
="$CC" # Let the user override the test.
2642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir
=.
2647 for ac_exec_ext
in '' $ac_executable_extensions; do
2648 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2649 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 if test -n "$CC"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2662 $as_echo "$CC" >&6; }
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2669 test -n "$CC" && break
2672 if test -z "$CC"; then
2674 for ac_prog
in cl.exe
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy
$ac_prog; ac_word
=$2
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679 $as_echo_n "checking for $ac_word... " >&6; }
2680 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2681 $as_echo_n "(cached) " >&6
2683 if test -n "$ac_ct_CC"; then
2684 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir
=.
2691 for ac_exec_ext
in '' $ac_executable_extensions; do
2692 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_ac_ct_CC
="$ac_prog"
2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2704 if test -n "$ac_ct_CC"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2706 $as_echo "$ac_ct_CC" >&6; }
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709 $as_echo "no" >&6; }
2713 test -n "$ac_ct_CC" && break
2716 if test "x$ac_ct_CC" = x
; then
2719 case $cross_compiling:$ac_tool_warned in
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2723 ac_tool_warned
=yes ;;
2732 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2734 as_fn_error $?
"no acceptable C compiler found in \$PATH
2735 See \`config.log' for more details" "$LINENO" 5; }
2737 # Provide some information about the compiler.
2738 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2741 for ac_option
in --version -v -V -qversion; do
2742 { { ac_try
="$ac_compiler $ac_option >&5"
2744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2748 $as_echo "$ac_try_echo"; } >&5
2749 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2751 if test -s conftest.err; then
2753 ... rest of stderr output deleted ...
2754 10q' conftest.err >conftest.er1
2755 cat conftest.er1 >&5
2757 rm -f conftest.er1 conftest.err
2758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2759 test $ac_status = 0; }
2762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2763 /* end confdefs.h. */
2773 ac_clean_files_save=$ac_clean_files
2774 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2775 # Try to create an executable without -o first, disregard a.out.
2776 # It will help us diagnose broken compilers, and finding out an intuition
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2779 $as_echo_n "checking whether the C compiler works... " >&6; }
2780 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2782 # The possible output files:
2783 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2786 for ac_file in $ac_files
2789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2790 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2795 if { { ac_try="$ac_link_default"
2797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2798 *) ac_try_echo
=$ac_try;;
2800 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2801 $as_echo "$ac_try_echo"; } >&5
2802 (eval "$ac_link_default") 2>&5
2804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2805 test $ac_status = 0; }; then :
2806 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2807 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2808 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2809 # so that the user can short-circuit this test for compilers unknown to
2811 for ac_file
in $ac_files ''
2813 test -f "$ac_file" ||
continue
2815 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2818 # We found the default executable, but exeext='' is most
2822 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2824 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2826 # We set ac_cv_exeext here because the later test for it is not
2827 # safe: cross compilers may not add the suffix if given an `-o'
2828 # argument, so we may need to know it at that point already.
2829 # Even if this section looks crufty: it has the advantage of
2836 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2841 if test -z "$ac_file"; then :
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2844 $as_echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.
$ac_ext >&5
2847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2849 as_fn_error
77 "C compiler cannot create executables
2850 See \`config.log' for more details" "$LINENO" 5; }
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2853 $as_echo "yes" >&6; }
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2856 $as_echo_n "checking for C compiler default output file name... " >&6; }
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2858 $as_echo "$ac_file" >&6; }
2859 ac_exeext
=$ac_cv_exeext
2861 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
2862 ac_clean_files
=$ac_clean_files_save
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2864 $as_echo_n "checking for suffix of executables... " >&6; }
2865 if { { ac_try
="$ac_link"
2867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2871 $as_echo "$ac_try_echo"; } >&5
2872 (eval "$ac_link") 2>&5
2874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2875 test $ac_status = 0; }; then :
2876 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
2877 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
2878 # work properly (i.e., refer to `conftest.exe'), while it won't with
2880 for ac_file
in conftest.exe conftest conftest.
*; do
2881 test -f "$ac_file" ||
continue
2883 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2884 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2892 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2893 See \`config.log' for more details" "$LINENO" 5; }
2895 rm -f conftest conftest
$ac_cv_exeext
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2897 $as_echo "$ac_cv_exeext" >&6; }
2899 rm -f conftest.
$ac_ext
2900 EXEEXT
=$ac_cv_exeext
2902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2903 /* end confdefs.h. */
2908 FILE *f = fopen ("conftest.out", "w");
2909 return ferror (f) || fclose (f) != 0;
2915 ac_clean_files
="$ac_clean_files conftest.out"
2916 # Check that the compiler produces executables we can run. If not, either
2917 # the compiler is broken, or we cross compile.
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2919 $as_echo_n "checking whether we are cross compiling... " >&6; }
2920 if test "$cross_compiling" != yes; then
2921 { { ac_try
="$ac_link"
2923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2927 $as_echo "$ac_try_echo"; } >&5
2928 (eval "$ac_link") 2>&5
2930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2931 test $ac_status = 0; }
2932 if { ac_try='./conftest$ac_cv_exeext'
2933 { { case "(($ac_try" in
2934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2935 *) ac_try_echo
=$ac_try;;
2937 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2938 $as_echo "$ac_try_echo"; } >&5
2939 (eval "$ac_try") 2>&5
2941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2942 test $ac_status = 0; }; }; then
2945 if test "$cross_compiling" = maybe
; then
2948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2950 as_fn_error $?
"cannot run C compiled programs.
2951 If you meant to cross compile, use \`--host'.
2952 See \`config.log' for more details" "$LINENO" 5; }
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2957 $as_echo "$cross_compiling" >&6; }
2959 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2960 ac_clean_files
=$ac_clean_files_save
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2962 $as_echo_n "checking for suffix of object files... " >&6; }
2963 if ${ac_cv_objext+:} false
; then :
2964 $as_echo_n "(cached) " >&6
2966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2967 /* end confdefs.h. */
2977 rm -f conftest.o conftest.obj
2978 if { { ac_try
="$ac_compile"
2980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2984 $as_echo "$ac_try_echo"; } >&5
2985 (eval "$ac_compile") 2>&5
2987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2988 test $ac_status = 0; }; then :
2989 for ac_file in conftest.o conftest.obj conftest.*; do
2990 test -f "$ac_file" || continue;
2992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2993 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2998 $as_echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3003 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3004 See \
`config.log' for more details" "$LINENO" 5; }
3006 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3009 $as_echo "$ac_cv_objext" >&6; }
3010 OBJEXT=$ac_cv_objext
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3013 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3014 if ${ac_cv_c_compiler_gnu+:} false; then :
3015 $as_echo_n "(cached) " >&6
3017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018 /* end confdefs.h. */
3031 if ac_fn_c_try_compile "$LINENO"; then :
3036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3041 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3042 if test $ac_compiler_gnu = yes; then
3047 ac_test_CFLAGS=${CFLAGS+set}
3048 ac_save_CFLAGS=$CFLAGS
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3050 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3051 if ${ac_cv_prog_cc_g+:} false; then :
3052 $as_echo_n "(cached) " >&6
3054 ac_save_c_werror_flag=$ac_c_werror_flag
3055 ac_c_werror_flag=yes
3058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3059 /* end confdefs.h. */
3069 if ac_fn_c_try_compile "$LINENO"; then :
3073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3074 /* end confdefs.h. */
3084 if ac_fn_c_try_compile "$LINENO"; then :
3087 ac_c_werror_flag=$ac_save_c_werror_flag
3089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090 /* end confdefs.h. */
3100 if ac_fn_c_try_compile "$LINENO"; then :
3103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3108 ac_c_werror_flag=$ac_save_c_werror_flag
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3111 $as_echo "$ac_cv_prog_cc_g" >&6; }
3112 if test "$ac_test_CFLAGS" = set; then
3113 CFLAGS=$ac_save_CFLAGS
3114 elif test $ac_cv_prog_cc_g = yes; then
3115 if test "$GCC" = yes; then
3121 if test "$GCC" = yes; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3128 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3129 if ${ac_cv_prog_cc_c89+:} false; then :
3130 $as_echo_n "(cached) " >&6
3132 ac_cv_prog_cc_c89=no
3134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3135 /* end confdefs.h. */
3139 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3140 struct buf { int x; };
3141 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3142 static char *e (p, i)
3148 static char *f (char * (*g) (char **, int), char **p, ...)
3153 s = g (p, va_arg (v,int));
3158 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3159 function prototypes and stuff, but not '\xHH' hex character constants.
3160 These don't provoke an error unfortunately, instead are silently treated
3161 as 'x'. The following induces an error, until -std is added to get
3162 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3163 array size at least. It's necessary to write '\x00'==0 to get something
3164 that's true only with -std. */
3165 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3167 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3168 inside strings and character constants. */
3170 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3172 int test (int i, double x);
3173 struct s1 {int (*f) (int a);};
3174 struct s2 {int (*f) (double a);};
3175 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3181 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3186 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3187 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3189 CC="$ac_save_CC $ac_arg"
3190 if ac_fn_c_try_compile "$LINENO"; then :
3191 ac_cv_prog_cc_c89=$ac_arg
3193 rm -f core conftest.err conftest.$ac_objext
3194 test "x$ac_cv_prog_cc_c89" != "xno" && break
3196 rm -f conftest.$ac_ext
3201 case "x$ac_cv_prog_cc_c89" in
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3204 $as_echo "none needed" >&6; } ;;
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3207 $as_echo "unsupported" >&6; } ;;
3209 CC="$CC $ac_cv_prog_cc_c89"
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3211 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3213 if test "x$ac_cv_prog_cc_c89" != xno; then :
3218 ac_cpp='$CPP $CPPFLAGS'
3219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225 ac_cpp='$CPP $CPPFLAGS'
3226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3230 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3231 # On Suns, sometimes $CPP names a directory.
3232 if test -n "$CPP" && test -d "$CPP"; then
3235 if test -z "$CPP"; then
3236 if ${ac_cv_prog_CPP+:} false; then :
3237 $as_echo_n "(cached) " >&6
3239 # Double quotes because CPP needs to be expanded
3240 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3243 for ac_c_preproc_warn_flag in '' yes
3245 # Use a header file that comes with gcc, so configuring glibc
3246 # with a fresh cross-compiler works.
3247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3248 # <limits.h> exists even on freestanding compilers.
3249 # On the NeXT, cc -E runs the code through the compiler's parser,
3250 # not just through cpp. "Syntax error" is here to catch this case.
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h. */
3254 # include <limits.h>
3256 # include <assert.h>
3260 if ac_fn_c_try_cpp "$LINENO"; then :
3263 # Broken: fails on valid input.
3266 rm -f conftest.err conftest.i conftest.$ac_ext
3268 # OK, works on sane cases. Now check whether nonexistent headers
3269 # can be detected and how.
3270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271 /* end confdefs.h. */
3272 #include <ac_nonexistent.h>
3274 if ac_fn_c_try_cpp "$LINENO"; then :
3275 # Broken: success on invalid input.
3278 # Passes both tests.
3282 rm -f conftest.err conftest.i conftest.$ac_ext
3285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3286 rm -f conftest.i conftest.err conftest.
$ac_ext
3287 if $ac_preproc_ok; then :
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3300 $as_echo "$CPP" >&6; }
3302 for ac_c_preproc_warn_flag
in '' yes
3304 # Use a header file that comes with gcc, so configuring glibc
3305 # with a fresh cross-compiler works.
3306 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3307 # <limits.h> exists even on freestanding compilers.
3308 # On the NeXT, cc -E runs the code through the compiler's parser,
3309 # not just through cpp. "Syntax error" is here to catch this case.
3310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3313 # include <limits.h>
3315 # include <assert.h>
3319 if ac_fn_c_try_cpp
"$LINENO"; then :
3322 # Broken: fails on valid input.
3325 rm -f conftest.err conftest.i conftest.
$ac_ext
3327 # OK, works on sane cases. Now check whether nonexistent headers
3328 # can be detected and how.
3329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3331 #include <ac_nonexistent.h>
3333 if ac_fn_c_try_cpp
"$LINENO"; then :
3334 # Broken: success on invalid input.
3337 # Passes both tests.
3341 rm -f conftest.err conftest.i conftest.
$ac_ext
3344 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3345 rm -f conftest.i conftest.err conftest.
$ac_ext
3346 if $ac_preproc_ok; then :
3349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3351 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3352 See \`config.log' for more details" "$LINENO" 5; }
3356 ac_cpp
='$CPP $CPPFLAGS'
3357 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3363 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3364 if ${ac_cv_path_GREP+:} false
; then :
3365 $as_echo_n "(cached) " >&6
3367 if test -z "$GREP"; then
3368 ac_path_GREP_found
=false
3369 # Loop through the user's path and test for each of PROGNAME-LIST
3370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3371 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3374 test -z "$as_dir" && as_dir
=.
3375 for ac_prog
in grep ggrep
; do
3376 for ac_exec_ext
in '' $ac_executable_extensions; do
3377 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3378 as_fn_executable_p
"$ac_path_GREP" ||
continue
3379 # Check for GNU ac_path_GREP and select it if it is found.
3380 # Check for GNU $ac_path_GREP
3381 case `"$ac_path_GREP" --version 2>&1` in
3383 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3386 $as_echo_n 0123456789 >"conftest.in"
3389 cat "conftest.in" "conftest.in" >"conftest.tmp"
3390 mv "conftest.tmp" "conftest.in"
3391 cp "conftest.in" "conftest.nl"
3392 $as_echo 'GREP' >> "conftest.nl"
3393 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3394 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3395 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3396 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3397 # Best one so far, save it but keep looking for a better one
3398 ac_cv_path_GREP
="$ac_path_GREP"
3399 ac_path_GREP_max
=$ac_count
3401 # 10*(2^10) chars as input seems more than enough
3402 test $ac_count -gt 10 && break
3404 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3407 $ac_path_GREP_found && break 3
3412 if test -z "$ac_cv_path_GREP"; then
3413 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3416 ac_cv_path_GREP
=$GREP
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3421 $as_echo "$ac_cv_path_GREP" >&6; }
3422 GREP
="$ac_cv_path_GREP"
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3426 $as_echo_n "checking for egrep... " >&6; }
3427 if ${ac_cv_path_EGREP+:} false
; then :
3428 $as_echo_n "(cached) " >&6
3430 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3431 then ac_cv_path_EGREP
="$GREP -E"
3433 if test -z "$EGREP"; then
3434 ac_path_EGREP_found
=false
3435 # Loop through the user's path and test for each of PROGNAME-LIST
3436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3437 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3440 test -z "$as_dir" && as_dir
=.
3441 for ac_prog
in egrep; do
3442 for ac_exec_ext
in '' $ac_executable_extensions; do
3443 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3444 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3445 # Check for GNU ac_path_EGREP and select it if it is found.
3446 # Check for GNU $ac_path_EGREP
3447 case `"$ac_path_EGREP" --version 2>&1` in
3449 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3452 $as_echo_n 0123456789 >"conftest.in"
3455 cat "conftest.in" "conftest.in" >"conftest.tmp"
3456 mv "conftest.tmp" "conftest.in"
3457 cp "conftest.in" "conftest.nl"
3458 $as_echo 'EGREP' >> "conftest.nl"
3459 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3460 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3461 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3462 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3463 # Best one so far, save it but keep looking for a better one
3464 ac_cv_path_EGREP
="$ac_path_EGREP"
3465 ac_path_EGREP_max
=$ac_count
3467 # 10*(2^10) chars as input seems more than enough
3468 test $ac_count -gt 10 && break
3470 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3473 $ac_path_EGREP_found && break 3
3478 if test -z "$ac_cv_path_EGREP"; then
3479 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3482 ac_cv_path_EGREP
=$EGREP
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3488 $as_echo "$ac_cv_path_EGREP" >&6; }
3489 EGREP
="$ac_cv_path_EGREP"
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3493 $as_echo_n "checking for ANSI C header files... " >&6; }
3494 if ${ac_cv_header_stdc+:} false
; then :
3495 $as_echo_n "(cached) " >&6
3497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3512 if ac_fn_c_try_compile
"$LINENO"; then :
3513 ac_cv_header_stdc
=yes
3515 ac_cv_header_stdc
=no
3517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3519 if test $ac_cv_header_stdc = yes; then
3520 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3527 $EGREP "memchr" >/dev
/null
2>&1; then :
3530 ac_cv_header_stdc
=no
3536 if test $ac_cv_header_stdc = yes; then
3537 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3544 $EGREP "free" >/dev
/null
2>&1; then :
3547 ac_cv_header_stdc
=no
3553 if test $ac_cv_header_stdc = yes; then
3554 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3555 if test "$cross_compiling" = yes; then :
3558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3562 #if ((' ' & 0x0FF) == 0x020)
3563 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3564 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3566 # define ISLOWER(c) \
3567 (('a' <= (c) && (c) <= 'i') \
3568 || ('j' <= (c) && (c) <= 'r') \
3569 || ('s' <= (c) && (c) <= 'z'))
3570 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3573 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3578 for (i = 0; i < 256; i++)
3579 if (XOR (islower (i), ISLOWER (i))
3580 || toupper (i) != TOUPPER (i))
3585 if ac_fn_c_try_run
"$LINENO"; then :
3588 ac_cv_header_stdc
=no
3590 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3591 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3597 $as_echo "$ac_cv_header_stdc" >&6; }
3598 if test $ac_cv_header_stdc = yes; then
3600 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3604 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3605 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3606 inttypes.h stdint.h unistd.h
3608 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3609 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3611 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3612 cat >>confdefs.h
<<_ACEOF
3613 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3622 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3623 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3630 if test "$MINIX" = yes; then
3632 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3635 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3638 $as_echo "#define _MINIX 1" >>confdefs.h
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3644 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3645 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3646 $as_echo_n "(cached) " >&6
3648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3651 # define __EXTENSIONS__ 1
3652 $ac_includes_default
3661 if ac_fn_c_try_compile
"$LINENO"; then :
3662 ac_cv_safe_to_define___extensions__
=yes
3664 ac_cv_safe_to_define___extensions__
=no
3666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3669 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3670 test $ac_cv_safe_to_define___extensions__ = yes &&
3671 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3673 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3675 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3677 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3679 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3684 # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
3685 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS
="$CFLAGS -O"
3687 if test $ac_cv_c_compiler_gnu = yes; then
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3689 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3690 if ${ac_cv_prog_gcc_traditional+:} false
; then :
3691 $as_echo_n "(cached) " >&6
3693 ac_pattern
="Autoconf.*'x'"
3694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3695 /* end confdefs.h. */
3699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3700 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
3701 ac_cv_prog_gcc_traditional
=yes
3703 ac_cv_prog_gcc_traditional
=no
3708 if test $ac_cv_prog_gcc_traditional = no
; then
3709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3715 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
3716 ac_cv_prog_gcc_traditional
=yes
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3723 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3724 if test $ac_cv_prog_gcc_traditional = yes; then
3725 CC
="$CC -traditional"
3729 # Find a good install program. We prefer a C program (faster),
3730 # so one script is as good as another. But avoid the broken or
3731 # incompatible versions:
3732 # SysV /etc/install, /usr/sbin/install
3733 # SunOS /usr/etc/install
3734 # IRIX /sbin/install
3736 # AmigaOS /C/install, which installs bootblocks on floppy discs
3737 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3738 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3739 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3740 # OS/2's system install, which has a completely different semantic
3741 # ./install, which can be erroneously created by make from ./install.sh.
3742 # Reject install programs that cannot install multiple files.
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3744 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3745 if test -z "$INSTALL"; then
3746 if ${ac_cv_path_install+:} false
; then :
3747 $as_echo_n "(cached) " >&6
3749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3753 test -z "$as_dir" && as_dir
=.
3754 # Account for people who put trailing slashes in PATH elements.
3755 case $as_dir/ in #((
3756 .
/ | .
// |
/[cC
]/* | \
3757 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3758 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3761 # OSF1 and SCO ODT 3.0 have their own names for install.
3762 # Don't use installbsd from OSF since it installs stuff as root
3764 for ac_prog
in ginstall scoinst
install; do
3765 for ac_exec_ext
in '' $ac_executable_extensions; do
3766 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
3767 if test $ac_prog = install &&
3768 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3769 # AIX install. It has an incompatible calling convention.
3771 elif test $ac_prog = install &&
3772 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3773 # program-specific install script used by HP pwplus--don't use.
3776 rm -rf conftest.one conftest.two conftest.dir
3777 echo one
> conftest.one
3778 echo two
> conftest.two
3780 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3781 test -s conftest.one
&& test -s conftest.two
&&
3782 test -s conftest.dir
/conftest.one
&&
3783 test -s conftest.dir
/conftest.two
3785 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3798 rm -rf conftest.one conftest.two conftest.dir
3801 if test "${ac_cv_path_install+set}" = set; then
3802 INSTALL
=$ac_cv_path_install
3804 # As a last resort, use the slow shell script. Don't cache a
3805 # value for INSTALL within a source directory, because that will
3806 # break other packages using the cache if that directory is
3807 # removed, or if the value is a relative name.
3808 INSTALL
=$ac_install_sh
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3812 $as_echo "$INSTALL" >&6; }
3814 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3815 # It thinks the first close brace ends the variable substitution.
3816 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3818 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3820 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3822 # Extract the first word of "ar", so it can be a program name with args.
3823 set dummy
ar; ac_word
=$2
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3825 $as_echo_n "checking for $ac_word... " >&6; }
3826 if ${ac_cv_prog_AR+:} false
; then :
3827 $as_echo_n "(cached) " >&6
3829 if test -n "$AR"; then
3830 ac_cv_prog_AR
="$AR" # Let the user override the test.
3832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3836 test -z "$as_dir" && as_dir
=.
3837 for ac_exec_ext
in '' $ac_executable_extensions; do
3838 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3851 if test -n "$AR"; then
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3853 $as_echo "$AR" >&6; }
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856 $as_echo "no" >&6; }
3860 test -n "$ARFLAGS" || ARFLAGS
="cr"
3861 if test -n "$ac_tool_prefix"; then
3862 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3863 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865 $as_echo_n "checking for $ac_word... " >&6; }
3866 if ${ac_cv_prog_RANLIB+:} false
; then :
3867 $as_echo_n "(cached) " >&6
3869 if test -n "$RANLIB"; then
3870 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3876 test -z "$as_dir" && as_dir
=.
3877 for ac_exec_ext
in '' $ac_executable_extensions; do
3878 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3879 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3889 RANLIB
=$ac_cv_prog_RANLIB
3890 if test -n "$RANLIB"; then
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3892 $as_echo "$RANLIB" >&6; }
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895 $as_echo "no" >&6; }
3900 if test -z "$ac_cv_prog_RANLIB"; then
3901 ac_ct_RANLIB
=$RANLIB
3902 # Extract the first word of "ranlib", so it can be a program name with args.
3903 set dummy ranlib
; ac_word
=$2
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905 $as_echo_n "checking for $ac_word... " >&6; }
3906 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
3907 $as_echo_n "(cached) " >&6
3909 if test -n "$ac_ct_RANLIB"; then
3910 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3912 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3916 test -z "$as_dir" && as_dir
=.
3917 for ac_exec_ext
in '' $ac_executable_extensions; do
3918 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3919 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3930 if test -n "$ac_ct_RANLIB"; then
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3932 $as_echo "$ac_ct_RANLIB" >&6; }
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935 $as_echo "no" >&6; }
3938 if test "x$ac_ct_RANLIB" = x
; then
3941 case $cross_compiling:$ac_tool_warned in
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3945 ac_tool_warned
=yes ;;
3947 RANLIB
=$ac_ct_RANLIB
3950 RANLIB
="$ac_cv_prog_RANLIB"
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3958 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3959 if ${ac_cv_c_const+:} false
; then :
3960 $as_echo_n "(cached) " >&6
3962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3970 /* Ultrix mips cc rejects this sort of thing. */
3971 typedef int charset[2];
3972 const charset cs = { 0, 0 };
3973 /* SunOS 4.1.1 cc rejects this. */
3974 char const *const *pcpcc;
3976 /* NEC SVR4.0.2 mips cc rejects this. */
3977 struct point {int x, y;};
3978 static struct point const zero = {0,0};
3979 /* AIX XL C 1.02.0.0 rejects this.
3980 It does not let you subtract one const X* pointer from another in
3981 an arm of an if-expression whose if-part is not a constant
3983 const char *g = "string";
3984 pcpcc = &g + (g ? g-g : 0);
3985 /* HPUX 7.0 cc rejects these. */
3987 ppc = (char**) pcpcc;
3988 pcpcc = (char const *const *) ppc;
3989 { /* SCO 3.2v4 cc rejects this sort of thing. */
3992 char const *s = 0 ? (char *) 0 : (char const *) 0;
3997 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3999 const int *foo = &x[0];
4002 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4003 typedef const int *iptr;
4007 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4008 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4009 struct s { int j; const int *ap[3]; } bx;
4010 struct s *b = &bx; b->j = 5;
4012 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4016 return !cs[0] && !zero.x;
4023 if ac_fn_c_try_compile
"$LINENO"; then :
4028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4031 $as_echo "$ac_cv_c_const" >&6; }
4032 if test $ac_cv_c_const = no
; then
4034 $as_echo "#define const /**/" >>confdefs.h
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
4039 $as_echo_n "checking for function prototypes... " >&6; }
4040 if test "$ac_cv_prog_cc_c89" != no
; then
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4042 $as_echo "yes" >&6; }
4044 $as_echo "#define PROTOTYPES 1" >>confdefs.h
4047 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 $as_echo "no" >&6; }
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
4055 $as_echo_n "checking whether char is unsigned... " >&6; }
4056 if ${ac_cv_c_char_unsigned+:} false
; then :
4057 $as_echo_n "(cached) " >&6
4059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061 $ac_includes_default
4065 static int test_array [1 - 2 * !(((char) -1) < 0)];
4067 return test_array [0];
4073 if ac_fn_c_try_compile
"$LINENO"; then :
4074 ac_cv_c_char_unsigned
=no
4076 ac_cv_c_char_unsigned
=yes
4078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
4081 $as_echo "$ac_cv_c_char_unsigned" >&6; }
4082 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4083 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
4088 $as_echo_n "checking for working volatile... " >&6; }
4089 if ${ac_cv_c_volatile+:} false
; then :
4090 $as_echo_n "(cached) " >&6
4092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4100 int * volatile y = (int *) 0;
4106 if ac_fn_c_try_compile
"$LINENO"; then :
4107 ac_cv_c_volatile
=yes
4111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
4114 $as_echo "$ac_cv_c_volatile" >&6; }
4115 if test $ac_cv_c_volatile = no
; then
4117 $as_echo "#define volatile /**/" >>confdefs.h
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4123 $as_echo_n "checking return type of signal handlers... " >&6; }
4124 if ${ac_cv_type_signal+:} false
; then :
4125 $as_echo_n "(cached) " >&6
4127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4129 #include <sys/types.h>
4135 return *(signal (0, 0)) (0) == 1;
4140 if ac_fn_c_try_compile
"$LINENO"; then :
4141 ac_cv_type_signal
=int
4143 ac_cv_type_signal
=void
4145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4148 $as_echo "$ac_cv_type_signal" >&6; }
4150 cat >>confdefs.h
<<_ACEOF
4151 #define RETSIGTYPE $ac_cv_type_signal
4156 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4157 if test "x$ac_cv_type_size_t" = xyes
; then :
4161 cat >>confdefs.h
<<_ACEOF
4162 #define size_t unsigned int
4167 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4168 if test "x$ac_cv_type_ssize_t" = xyes
; then :
4172 cat >>confdefs.h
<<_ACEOF
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4180 $as_echo_n "checking for ANSI C header files... " >&6; }
4181 if ${ac_cv_header_stdc+:} false
; then :
4182 $as_echo_n "(cached) " >&6
4184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4199 if ac_fn_c_try_compile
"$LINENO"; then :
4200 ac_cv_header_stdc
=yes
4202 ac_cv_header_stdc
=no
4204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4206 if test $ac_cv_header_stdc = yes; then
4207 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4214 $EGREP "memchr" >/dev
/null
2>&1; then :
4217 ac_cv_header_stdc
=no
4223 if test $ac_cv_header_stdc = yes; then
4224 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4231 $EGREP "free" >/dev
/null
2>&1; then :
4234 ac_cv_header_stdc
=no
4240 if test $ac_cv_header_stdc = yes; then
4241 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4242 if test "$cross_compiling" = yes; then :
4245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4249 #if ((' ' & 0x0FF) == 0x020)
4250 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4251 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4253 # define ISLOWER(c) \
4254 (('a' <= (c) && (c) <= 'i') \
4255 || ('j' <= (c) && (c) <= 'r') \
4256 || ('s' <= (c) && (c) <= 'z'))
4257 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4260 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4265 for (i = 0; i < 256; i++)
4266 if (XOR (islower (i), ISLOWER (i))
4267 || toupper (i) != TOUPPER (i))
4272 if ac_fn_c_try_run
"$LINENO"; then :
4275 ac_cv_header_stdc
=no
4277 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4278 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4284 $as_echo "$ac_cv_header_stdc" >&6; }
4285 if test $ac_cv_header_stdc = yes; then
4287 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
4293 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
4294 if ${ac_cv_header_stat_broken+:} false
; then :
4295 $as_echo_n "(cached) " >&6
4297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h. */
4299 #include <sys/types.h>
4300 #include <sys/stat.h>
4302 #if defined S_ISBLK && defined S_IFDIR
4303 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
4306 #if defined S_ISBLK && defined S_IFCHR
4307 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
4310 #if defined S_ISLNK && defined S_IFREG
4311 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
4314 #if defined S_ISSOCK && defined S_IFREG
4315 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
4319 if ac_fn_c_try_compile
"$LINENO"; then :
4320 ac_cv_header_stat_broken
=no
4322 ac_cv_header_stat_broken
=yes
4324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
4327 $as_echo "$ac_cv_header_stat_broken" >&6; }
4328 if test $ac_cv_header_stat_broken = yes; then
4330 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
4335 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4336 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4338 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4339 if eval \
${$as_ac_Header+:} false
; then :
4340 $as_echo_n "(cached) " >&6
4342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344 #include <sys/types.h>
4356 if ac_fn_c_try_compile
"$LINENO"; then :
4357 eval "$as_ac_Header=yes"
4359 eval "$as_ac_Header=no"
4361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4363 eval ac_res
=\$
$as_ac_Header
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4365 $as_echo "$ac_res" >&6; }
4366 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4367 cat >>confdefs.h
<<_ACEOF
4368 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4371 ac_header_dirent
=$ac_hdr; break
4375 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4376 if test $ac_header_dirent = dirent.h
; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4378 $as_echo_n "checking for library containing opendir... " >&6; }
4379 if ${ac_cv_search_opendir+:} false
; then :
4380 $as_echo_n "(cached) " >&6
4382 ac_func_search_save_LIBS
=$LIBS
4383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4386 /* Override any GCC internal prototype to avoid an error.
4387 Use char because int might match the return type of a GCC
4388 builtin and then its argument prototype would still apply. */
4401 for ac_lib
in '' dir
; do
4402 if test -z "$ac_lib"; then
4403 ac_res
="none required"
4406 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4408 if ac_fn_c_try_link
"$LINENO"; then :
4409 ac_cv_search_opendir
=$ac_res
4411 rm -f core conftest.err conftest.
$ac_objext \
4413 if ${ac_cv_search_opendir+:} false
; then :
4417 if ${ac_cv_search_opendir+:} false
; then :
4420 ac_cv_search_opendir
=no
4423 LIBS
=$ac_func_search_save_LIBS
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4426 $as_echo "$ac_cv_search_opendir" >&6; }
4427 ac_res
=$ac_cv_search_opendir
4428 if test "$ac_res" != no
; then :
4429 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4435 $as_echo_n "checking for library containing opendir... " >&6; }
4436 if ${ac_cv_search_opendir+:} false
; then :
4437 $as_echo_n "(cached) " >&6
4439 ac_func_search_save_LIBS
=$LIBS
4440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4443 /* Override any GCC internal prototype to avoid an error.
4444 Use char because int might match the return type of a GCC
4445 builtin and then its argument prototype would still apply. */
4458 for ac_lib
in '' x
; do
4459 if test -z "$ac_lib"; then
4460 ac_res
="none required"
4463 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4465 if ac_fn_c_try_link
"$LINENO"; then :
4466 ac_cv_search_opendir
=$ac_res
4468 rm -f core conftest.err conftest.
$ac_objext \
4470 if ${ac_cv_search_opendir+:} false
; then :
4474 if ${ac_cv_search_opendir+:} false
; then :
4477 ac_cv_search_opendir
=no
4480 LIBS
=$ac_func_search_save_LIBS
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4483 $as_echo "$ac_cv_search_opendir" >&6; }
4484 ac_res
=$ac_cv_search_opendir
4485 if test "$ac_res" != no
; then :
4486 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4493 for ac_func
in fcntl
kill lstat
4495 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4496 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4497 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4498 cat >>confdefs.h
<<_ACEOF
4499 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4505 for ac_func
in memmove putenv
select setenv setlocale \
4506 strcasecmp strpbrk tcgetattr vsnprintf
4508 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4509 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4510 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4511 cat >>confdefs.h
<<_ACEOF
4512 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4518 for ac_func
in isascii isxdigit
4520 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4521 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4522 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4523 cat >>confdefs.h
<<_ACEOF
4524 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4530 for ac_func
in getpwent getpwnam getpwuid
4532 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4533 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4534 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4535 cat >>confdefs.h
<<_ACEOF
4536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
4544 $as_echo_n "checking for working strcoll... " >&6; }
4545 if ${ac_cv_func_strcoll_works+:} false
; then :
4546 $as_echo_n "(cached) " >&6
4548 if test "$cross_compiling" = yes; then :
4549 ac_cv_func_strcoll_works
=no
4551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4553 $ac_includes_default
4557 return (strcoll ("abc", "def") >= 0 ||
4558 strcoll ("ABC", "DEF") >= 0 ||
4559 strcoll ("123", "456") >= 0)
4564 if ac_fn_c_try_run
"$LINENO"; then :
4565 ac_cv_func_strcoll_works
=yes
4567 ac_cv_func_strcoll_works
=no
4569 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4570 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
4575 $as_echo "$ac_cv_func_strcoll_works" >&6; }
4576 if test $ac_cv_func_strcoll_works = yes; then
4578 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
4583 for ac_header
in fcntl.h unistd.h stdlib.h varargs.h stdarg.h string.h
strings.h \
4584 limits.h locale.h
pwd.h memory.h termcap.h termios.h termio.h
4586 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4587 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4588 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4589 cat >>confdefs.h
<<_ACEOF
4590 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4597 for ac_header
in sys
/pte.h sys
/stream.h sys
/select.h sys
/file.h
4599 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4600 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4601 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4602 cat >>confdefs.h
<<_ACEOF
4603 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4611 for ac_header
in sys
/ptem.h
4613 ac_fn_c_check_header_compile
"$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "
4614 #if HAVE_SYS_STREAM_H
4615 # include <sys/stream.h>
4619 if test "x$ac_cv_header_sys_ptem_h" = xyes
; then :
4620 cat >>confdefs.h
<<_ACEOF
4621 #define HAVE_SYS_PTEM_H 1
4629 # Check whether --enable-largefile was given.
4630 if test "${enable_largefile+set}" = set; then :
4631 enableval
=$enable_largefile;
4634 if test "$enable_largefile" != no
; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4637 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4638 if ${ac_cv_sys_largefile_CC+:} false
; then :
4639 $as_echo_n "(cached) " >&6
4641 ac_cv_sys_largefile_CC
=no
4642 if test "$GCC" != yes; then
4645 # IRIX 6.2 and later do not support large files by default,
4646 # so use the C compiler's -n32 option if that helps.
4647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4649 #include <sys/types.h>
4650 /* Check that off_t can represent 2**63 - 1 correctly.
4651 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4652 since some C++ compilers masquerading as C compilers
4653 incorrectly reject 9223372036854775807. */
4654 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4655 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4656 && LARGE_OFF_T % 2147483647 == 1)
4666 if ac_fn_c_try_compile
"$LINENO"; then :
4669 rm -f core conftest.err conftest.
$ac_objext
4671 if ac_fn_c_try_compile
"$LINENO"; then :
4672 ac_cv_sys_largefile_CC
=' -n32'; break
4674 rm -f core conftest.err conftest.
$ac_objext
4678 rm -f conftest.
$ac_ext
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4682 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4683 if test "$ac_cv_sys_largefile_CC" != no
; then
4684 CC
=$CC$ac_cv_sys_largefile_CC
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4688 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4689 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4690 $as_echo_n "(cached) " >&6
4693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h. */
4695 #include <sys/types.h>
4696 /* Check that off_t can represent 2**63 - 1 correctly.
4697 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4698 since some C++ compilers masquerading as C compilers
4699 incorrectly reject 9223372036854775807. */
4700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4702 && LARGE_OFF_T % 2147483647 == 1)
4712 if ac_fn_c_try_compile
"$LINENO"; then :
4713 ac_cv_sys_file_offset_bits
=no
; break
4715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4718 #define _FILE_OFFSET_BITS 64
4719 #include <sys/types.h>
4720 /* Check that off_t can represent 2**63 - 1 correctly.
4721 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4722 since some C++ compilers masquerading as C compilers
4723 incorrectly reject 9223372036854775807. */
4724 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4725 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4726 && LARGE_OFF_T % 2147483647 == 1)
4736 if ac_fn_c_try_compile
"$LINENO"; then :
4737 ac_cv_sys_file_offset_bits
=64; break
4739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4740 ac_cv_sys_file_offset_bits
=unknown
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4745 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4746 case $ac_cv_sys_file_offset_bits in #(
4749 cat >>confdefs.h
<<_ACEOF
4750 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4755 if test $ac_cv_sys_file_offset_bits = unknown
; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4757 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4758 if ${ac_cv_sys_large_files+:} false
; then :
4759 $as_echo_n "(cached) " >&6
4762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4764 #include <sys/types.h>
4765 /* Check that off_t can represent 2**63 - 1 correctly.
4766 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4767 since some C++ compilers masquerading as C compilers
4768 incorrectly reject 9223372036854775807. */
4769 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4770 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4771 && LARGE_OFF_T % 2147483647 == 1)
4781 if ac_fn_c_try_compile
"$LINENO"; then :
4782 ac_cv_sys_large_files
=no
; break
4784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4787 #define _LARGE_FILES 1
4788 #include <sys/types.h>
4789 /* Check that off_t can represent 2**63 - 1 correctly.
4790 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4791 since some C++ compilers masquerading as C compilers
4792 incorrectly reject 9223372036854775807. */
4793 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4794 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4795 && LARGE_OFF_T % 2147483647 == 1)
4805 if ac_fn_c_try_compile
"$LINENO"; then :
4806 ac_cv_sys_large_files
=1; break
4808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4809 ac_cv_sys_large_files
=unknown
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4814 $as_echo "$ac_cv_sys_large_files" >&6; }
4815 case $ac_cv_sys_large_files in #(
4818 cat >>confdefs.h
<<_ACEOF
4819 #define _LARGE_FILES $ac_cv_sys_large_files
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
4832 $as_echo_n "checking for type of signal functions... " >&6; }
4833 if ${bash_cv_signal_vintage+:} false
; then :
4834 $as_echo_n "(cached) " >&6
4837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h. */
4845 struct sigaction sa;
4846 sigemptyset(&ss); sigsuspend(&ss);
4847 sigaction(SIGINT, &sa, (struct sigaction *) 0);
4848 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
4854 if ac_fn_c_try_link
"$LINENO"; then :
4855 bash_cv_signal_vintage
=posix
4858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h. */
4865 int mask = sigmask(SIGINT);
4866 sigsetmask(mask); sigblock(mask); sigpause(mask);
4872 if ac_fn_c_try_link
"$LINENO"; then :
4873 bash_cv_signal_vintage
=4.2bsd
4876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h. */
4880 RETSIGTYPE foo() { }
4885 int mask = sigmask(SIGINT);
4886 sigset(SIGINT, foo); sigrelse(SIGINT);
4887 sighold(SIGINT); sigpause(SIGINT);
4893 if ac_fn_c_try_link
"$LINENO"; then :
4894 bash_cv_signal_vintage
=svr3
4896 bash_cv_signal_vintage
=v7
4899 rm -f core conftest.err conftest.
$ac_objext \
4900 conftest
$ac_exeext conftest.
$ac_ext
4903 rm -f core conftest.err conftest.
$ac_objext \
4904 conftest
$ac_exeext conftest.
$ac_ext
4907 rm -f core conftest.err conftest.
$ac_objext \
4908 conftest
$ac_exeext conftest.
$ac_ext
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
4913 $as_echo "$bash_cv_signal_vintage" >&6; }
4914 if test "$bash_cv_signal_vintage" = posix
; then
4915 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
4917 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
4918 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
4920 elif test "$bash_cv_signal_vintage" = svr3
; then
4921 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5
4928 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
4929 if ${bash_cv_must_reinstall_sighandlers+:} false
; then :
4930 $as_echo_n "(cached) " >&6
4932 if test "$cross_compiling" = yes; then :
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
4934 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
4935 bash_cv_must_reinstall_sighandlers
=no
4938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4942 #ifdef HAVE_UNISTD_H
4946 typedef RETSIGTYPE sigfunc();
4950 #ifdef HAVE_POSIX_SIGNALS
4952 set_signal_handler(sig, handler)
4956 struct sigaction act, oact;
4957 act.sa_handler = handler;
4959 sigemptyset (&act.sa_mask);
4960 sigemptyset (&oact.sa_mask);
4961 sigaction (sig, &act, &oact);
4962 return (oact.sa_handler);
4965 #define set_signal_handler(s, h) signal(s, h)
4978 set_signal_handler(SIGINT, sigint);
4979 kill((int)getpid(), SIGINT);
4980 kill((int)getpid(), SIGINT);
4985 if ac_fn_c_try_run
"$LINENO"; then :
4986 bash_cv_must_reinstall_sighandlers
=no
4988 bash_cv_must_reinstall_sighandlers
=yes
4990 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4991 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5
4997 $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
4998 if test $bash_cv_must_reinstall_sighandlers = yes; then
4999 $as_echo "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
5006 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
5007 if ${bash_cv_func_sigsetjmp+:} false
; then :
5008 $as_echo_n "(cached) " >&6
5010 if test "$cross_compiling" = yes; then :
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
5012 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
5013 bash_cv_func_sigsetjmp
=missing
5016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5019 #ifdef HAVE_UNISTD_H
5022 #include <sys/types.h>
5028 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
5039 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
5040 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
5043 code = sigsetjmp(xx, 1);
5045 exit(0); /* could get sigmask and compare to oset here. */
5048 sigaddset(&set, SIGINT);
5049 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
5051 /* and siglongjmp */
5057 if ac_fn_c_try_run
"$LINENO"; then :
5058 bash_cv_func_sigsetjmp
=present
5060 bash_cv_func_sigsetjmp
=missing
5062 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5063 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5
5069 $as_echo "$bash_cv_func_sigsetjmp" >&6; }
5070 if test $bash_cv_func_sigsetjmp = present
; then
5071 $as_echo "#define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
5076 $as_echo_n "checking for lstat... " >&6; }
5077 if ${bash_cv_func_lstat+:} false
; then :
5078 $as_echo_n "(cached) " >&6
5080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h. */
5083 #include <sys/types.h>
5084 #include <sys/stat.h>
5089 lstat(".",(struct stat *)0);
5094 if ac_fn_c_try_link
"$LINENO"; then :
5095 bash_cv_func_lstat
=yes
5097 bash_cv_func_lstat
=no
5099 rm -f core conftest.err conftest.
$ac_objext \
5100 conftest
$ac_exeext conftest.
$ac_ext
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5
5103 $as_echo "$bash_cv_func_lstat" >&6; }
5104 if test $bash_cv_func_lstat = yes; then
5105 $as_echo "#define HAVE_LSTAT 1" >>confdefs.h
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5
5111 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
5112 if ${bash_cv_func_strcoll_broken+:} false
; then :
5113 $as_echo_n "(cached) " >&6
5115 if test "$cross_compiling" = yes; then :
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
5117 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
5118 bash_cv_func_strcoll_broken
=no
5121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h. */
5125 #if defined (HAVE_LOCALE_H)
5134 char *deflocale, *defcoll;
5136 #ifdef HAVE_SETLOCALE
5137 deflocale = setlocale(LC_ALL, "");
5138 defcoll = setlocale(LC_COLLATE, "");
5142 /* These two values are taken from tests/glob-test. */
5143 r1 = strcoll("abd", "aXd");
5147 r2 = strcmp("abd", "aXd");
5149 /* These two should both be greater than 0. It is permissible for
5150 a system to return different values, as long as the sign is the
5153 /* Exit with 1 (failure) if these two values are both > 0, since
5154 this tests whether strcoll(3) is broken with respect to strcmp(3)
5155 in the default locale. */
5156 exit (r1 > 0 && r2 > 0);
5160 if ac_fn_c_try_run
"$LINENO"; then :
5161 bash_cv_func_strcoll_broken
=yes
5163 bash_cv_func_strcoll_broken
=no
5165 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5166 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5
5172 $as_echo "$bash_cv_func_strcoll_broken" >&6; }
5173 if test $bash_cv_func_strcoll_broken = yes; then
5174 $as_echo "#define STRCOLL_BROKEN 1" >>confdefs.h
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ctype macros accept non-ascii characters" >&5
5180 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
5181 if ${bash_cv_func_ctype_nonascii+:} false
; then :
5182 $as_echo_n "(cached) " >&6
5184 if test "$cross_compiling" = yes; then :
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
5186 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
5187 bash_cv_func_ctype_nonascii
=no
5190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5193 #ifdef HAVE_LOCALE_H
5207 #ifdef HAVE_SETLOCALE
5208 /* We take a shot here. If that locale is not known, try the
5209 system default. We try this one because '\342' (226) is
5210 known to be a printable character in that locale. */
5211 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
5213 deflocale = setlocale(LC_ALL, "");
5220 exit (r1 == 0 || r2 == 0);
5224 if ac_fn_c_try_run
"$LINENO"; then :
5225 bash_cv_func_ctype_nonascii
=yes
5227 bash_cv_func_ctype_nonascii
=no
5229 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5230 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_ctype_nonascii" >&5
5236 $as_echo "$bash_cv_func_ctype_nonascii" >&6; }
5237 if test $bash_cv_func_ctype_nonascii = yes; then
5238 $as_echo "#define CTYPE_NON_ASCII 1" >>confdefs.h
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5
5244 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
5245 if ${bash_cv_getpw_declared+:} false
; then :
5246 $as_echo_n "(cached) " >&6
5248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5251 #include <sys/types.h>
5252 #ifdef HAVE_UNISTD_H
5253 # include <unistd.h>
5258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5259 $EGREP "getpwuid" >/dev
/null
2>&1; then :
5260 bash_cv_getpw_declared
=yes
5262 bash_cv_getpw_declared
=no
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5
5269 $as_echo "$bash_cv_getpw_declared" >&6; }
5270 if test $bash_cv_getpw_declared = yes; then
5271 $as_echo "#define HAVE_GETPW_DECLS 1" >>confdefs.h
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
5277 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
5278 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
5279 $as_echo_n "(cached) " >&6
5281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5282 /* end confdefs.h. */
5283 #include <sys/types.h>
5284 #include <termios.h>
5290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5291 $EGREP "yes" >/dev
/null
2>&1; then :
5292 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
5294 ac_cv_sys_tiocgwinsz_in_termios_h
=no
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
5300 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
5302 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
5304 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
5305 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
5306 $as_echo_n "(cached) " >&6
5308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5310 #include <sys/types.h>
5311 #include <sys/ioctl.h>
5317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5318 $EGREP "yes" >/dev
/null
2>&1; then :
5319 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
5321 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
5327 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
5329 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
5331 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5
5338 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
5339 if ${ac_cv_have_sig_atomic_t+:} false
; then :
5340 $as_echo_n "(cached) " >&6
5342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5355 if ac_fn_c_try_link
"$LINENO"; then :
5356 ac_cv_have_sig_atomic_t
=yes
5358 ac_cv_have_sig_atomic_t
=no
5360 rm -f core conftest.err conftest.
$ac_objext \
5361 conftest
$ac_exeext conftest.
$ac_ext
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5
5364 $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
5365 if test "$ac_cv_have_sig_atomic_t" = "no"
5367 ac_fn_c_check_type
"$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default"
5368 if test "x$ac_cv_type_sig_atomic_t" = xyes
; then :
5372 cat >>confdefs.h
<<_ACEOF
5373 #define sig_atomic_t int
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers are of type void" >&5
5381 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
5382 if ${bash_cv_void_sighandler+:} false
; then :
5383 $as_echo_n "(cached) " >&6
5385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 #include <sys/types.h>
5395 void (*signal ()) ();
5404 if ac_fn_c_try_compile
"$LINENO"; then :
5405 bash_cv_void_sighandler
=yes
5407 bash_cv_void_sighandler
=no
5409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_void_sighandler" >&5
5412 $as_echo "$bash_cv_void_sighandler" >&6; }
5413 if test $bash_cv_void_sighandler = yes; then
5414 $as_echo "#define VOID_SIGHANDLER 1" >>confdefs.h
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5
5420 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
5421 if ${bash_cv_tiocstat_in_ioctl+:} false
; then :
5422 $as_echo_n "(cached) " >&6
5424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5426 #include <sys/types.h>
5427 #include <sys/ioctl.h>
5436 if ac_fn_c_try_compile
"$LINENO"; then :
5437 bash_cv_tiocstat_in_ioctl
=yes
5439 bash_cv_tiocstat_in_ioctl
=no
5441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5
5445 $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
5446 if test $bash_cv_tiocstat_in_ioctl = yes; then
5447 $as_echo "#define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5
5452 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
5453 if ${bash_cv_fionread_in_ioctl+:} false
; then :
5454 $as_echo_n "(cached) " >&6
5456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5458 #include <sys/types.h>
5459 #include <sys/ioctl.h>
5468 if ac_fn_c_try_compile
"$LINENO"; then :
5469 bash_cv_fionread_in_ioctl
=yes
5471 bash_cv_fionread_in_ioctl
=no
5473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5
5477 $as_echo "$bash_cv_fionread_in_ioctl" >&6; }
5478 if test $bash_cv_fionread_in_ioctl = yes; then
5479 $as_echo "#define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5
5484 $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
5485 if ${bash_cv_speed_t_in_sys_types+:} false
; then :
5486 $as_echo_n "(cached) " >&6
5488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5490 #include <sys/types.h>
5499 if ac_fn_c_try_compile
"$LINENO"; then :
5500 bash_cv_speed_t_in_sys_types
=yes
5502 bash_cv_speed_t_in_sys_types
=no
5504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5
5508 $as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
5509 if test $bash_cv_speed_t_in_sys_types = yes; then
5510 $as_echo "#define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5
5515 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
5516 if ${bash_cv_struct_winsize_header+:} false
; then :
5517 $as_echo_n "(cached) " >&6
5519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 #include <sys/types.h>
5522 #include <sys/ioctl.h>
5531 if ac_fn_c_try_compile
"$LINENO"; then :
5532 bash_cv_struct_winsize_header
=ioctl_h
5534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5536 #include <sys/types.h>
5537 #include <termios.h>
5546 if ac_fn_c_try_compile
"$LINENO"; then :
5547 bash_cv_struct_winsize_header
=termios_h
5549 bash_cv_struct_winsize_header
=other
5551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5557 if test $bash_cv_struct_winsize_header = ioctl_h
; then
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5
5559 $as_echo "sys/ioctl.h" >&6; }
5560 $as_echo "#define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h
5562 elif test $bash_cv_struct_winsize_header = termios_h
; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5
5564 $as_echo "termios.h" >&6; }
5565 $as_echo "#define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5569 $as_echo "not found" >&6; }
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5
5574 $as_echo_n "checking for struct dirent.d_ino... " >&6; }
5575 if ${bash_cv_dirent_has_dino+:} false
; then :
5576 $as_echo_n "(cached) " >&6
5578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5582 #include <sys/types.h>
5583 #ifdef HAVE_UNISTD_H
5584 # include <unistd.h>
5585 #endif /* HAVE_UNISTD_H */
5586 #if defined(HAVE_DIRENT_H)
5587 # include <dirent.h>
5589 # define dirent direct
5590 # ifdef HAVE_SYS_NDIR_H
5591 # include <sys/ndir.h>
5592 # endif /* SYSNDIR */
5593 # ifdef HAVE_SYS_DIR_H
5594 # include <sys/dir.h>
5595 # endif /* SYSDIR */
5599 #endif /* HAVE_DIRENT_H */
5605 struct dirent d; int z; z = d.d_ino;
5611 if ac_fn_c_try_compile
"$LINENO"; then :
5612 bash_cv_dirent_has_dino
=yes
5614 bash_cv_dirent_has_dino
=no
5616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_dino" >&5
5620 $as_echo "$bash_cv_dirent_has_dino" >&6; }
5621 if test $bash_cv_dirent_has_dino = yes; then
5622 $as_echo "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5
5628 $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
5629 if ${bash_cv_dirent_has_d_fileno+:} false
; then :
5630 $as_echo_n "(cached) " >&6
5632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5636 #include <sys/types.h>
5637 #ifdef HAVE_UNISTD_H
5638 # include <unistd.h>
5639 #endif /* HAVE_UNISTD_H */
5640 #if defined(HAVE_DIRENT_H)
5641 # include <dirent.h>
5643 # define dirent direct
5644 # ifdef HAVE_SYS_NDIR_H
5645 # include <sys/ndir.h>
5646 # endif /* SYSNDIR */
5647 # ifdef HAVE_SYS_DIR_H
5648 # include <sys/dir.h>
5649 # endif /* SYSDIR */
5653 #endif /* HAVE_DIRENT_H */
5659 struct dirent d; int z; z = d.d_fileno;
5665 if ac_fn_c_try_compile
"$LINENO"; then :
5666 bash_cv_dirent_has_d_fileno
=yes
5668 bash_cv_dirent_has_d_fileno
=no
5670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5
5674 $as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
5675 if test $bash_cv_dirent_has_d_fileno = yes; then
5676 $as_echo "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h
5682 aix
*) prefer_curses
=yes ;;
5685 if test "X$bash_cv_termcap_lib" = "X"; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5689 $as_echo_n "checking which library has the termcap functions... " >&6; }
5692 if ${bash_cv_termcap_lib+:} false
; then :
5693 $as_echo_n "(cached) " >&6
5695 ac_fn_c_check_func
"$LINENO" "tgetent" "ac_cv_func_tgetent"
5696 if test "x$ac_cv_func_tgetent" = xyes
; then :
5697 bash_cv_termcap_lib
=libc
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
5700 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5701 if ${ac_cv_lib_termcap_tgetent+:} false
; then :
5702 $as_echo_n "(cached) " >&6
5704 ac_check_lib_save_LIBS
=$LIBS
5705 LIBS
="-ltermcap $LIBS"
5706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5709 /* Override any GCC internal prototype to avoid an error.
5710 Use char because int might match the return type of a GCC
5711 builtin and then its argument prototype would still apply. */
5724 if ac_fn_c_try_link
"$LINENO"; then :
5725 ac_cv_lib_termcap_tgetent
=yes
5727 ac_cv_lib_termcap_tgetent
=no
5729 rm -f core conftest.err conftest.
$ac_objext \
5730 conftest
$ac_exeext conftest.
$ac_ext
5731 LIBS
=$ac_check_lib_save_LIBS
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
5734 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5735 if test "x$ac_cv_lib_termcap_tgetent" = xyes
; then :
5736 bash_cv_termcap_lib
=libtermcap
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
5739 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5740 if ${ac_cv_lib_tinfo_tgetent+:} false
; then :
5741 $as_echo_n "(cached) " >&6
5743 ac_check_lib_save_LIBS
=$LIBS
5744 LIBS
="-ltinfo $LIBS"
5745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5748 /* Override any GCC internal prototype to avoid an error.
5749 Use char because int might match the return type of a GCC
5750 builtin and then its argument prototype would still apply. */
5763 if ac_fn_c_try_link
"$LINENO"; then :
5764 ac_cv_lib_tinfo_tgetent
=yes
5766 ac_cv_lib_tinfo_tgetent
=no
5768 rm -f core conftest.err conftest.
$ac_objext \
5769 conftest
$ac_exeext conftest.
$ac_ext
5770 LIBS
=$ac_check_lib_save_LIBS
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
5773 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5774 if test "x$ac_cv_lib_tinfo_tgetent" = xyes
; then :
5775 bash_cv_termcap_lib
=libtinfo
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
5778 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
5779 if ${ac_cv_lib_curses_tgetent+:} false
; then :
5780 $as_echo_n "(cached) " >&6
5782 ac_check_lib_save_LIBS
=$LIBS
5783 LIBS
="-lcurses $LIBS"
5784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h. */
5787 /* Override any GCC internal prototype to avoid an error.
5788 Use char because int might match the return type of a GCC
5789 builtin and then its argument prototype would still apply. */
5802 if ac_fn_c_try_link
"$LINENO"; then :
5803 ac_cv_lib_curses_tgetent
=yes
5805 ac_cv_lib_curses_tgetent
=no
5807 rm -f core conftest.err conftest.
$ac_objext \
5808 conftest
$ac_exeext conftest.
$ac_ext
5809 LIBS
=$ac_check_lib_save_LIBS
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
5812 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
5813 if test "x$ac_cv_lib_curses_tgetent" = xyes
; then :
5814 bash_cv_termcap_lib
=libcurses
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
5817 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
5818 if ${ac_cv_lib_ncurses_tgetent+:} false
; then :
5819 $as_echo_n "(cached) " >&6
5821 ac_check_lib_save_LIBS
=$LIBS
5822 LIBS
="-lncurses $LIBS"
5823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5826 /* Override any GCC internal prototype to avoid an error.
5827 Use char because int might match the return type of a GCC
5828 builtin and then its argument prototype would still apply. */
5841 if ac_fn_c_try_link
"$LINENO"; then :
5842 ac_cv_lib_ncurses_tgetent
=yes
5844 ac_cv_lib_ncurses_tgetent
=no
5846 rm -f core conftest.err conftest.
$ac_objext \
5847 conftest
$ac_exeext conftest.
$ac_ext
5848 LIBS
=$ac_check_lib_save_LIBS
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
5851 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
5852 if test "x$ac_cv_lib_ncurses_tgetent" = xyes
; then :
5853 bash_cv_termcap_lib
=libncurses
5855 bash_cv_termcap_lib
=gnutermcap
5868 if test "X$_bash_needmsg" = "Xyes"; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5870 $as_echo_n "checking which library has the termcap functions... " >&6; }
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
5873 $as_echo "using $bash_cv_termcap_lib" >&6; }
5874 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
5875 LDFLAGS
="$LDFLAGS -L./lib/termcap"
5876 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
5877 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
5878 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
5879 TERMCAP_LIB
=-ltermcap
5881 elif test $bash_cv_termcap_lib = libtinfo
; then
5884 elif test $bash_cv_termcap_lib = libncurses
; then
5885 TERMCAP_LIB
=-lncurses
5887 elif test $bash_cv_termcap_lib = libc
; then
5891 TERMCAP_LIB
=-lcurses
5895 if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
5896 if test "$prefer_curses" = yes; then
5897 TERMCAP_LIB
=-lcurses
5899 TERMCAP_LIB
=-ltermcap #default
5902 if test "$TERMCAP_LIB" = "-lncurses"; then
5903 for ac_header
in ncurses
/termcap.h
5905 ac_fn_c_check_header_mongrel
"$LINENO" "ncurses/termcap.h" "ac_cv_header_ncurses_termcap_h" "$ac_includes_default"
5906 if test "x$ac_cv_header_ncurses_termcap_h" = xyes
; then :
5907 cat >>confdefs.h
<<_ACEOF
5908 #define HAVE_NCURSES_TERMCAP_H 1
5918 for ac_header
in wctype.h
5920 ac_fn_c_check_header_mongrel
"$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
5921 if test "x$ac_cv_header_wctype_h" = xyes
; then :
5922 cat >>confdefs.h
<<_ACEOF
5923 #define HAVE_WCTYPE_H 1
5930 for ac_header
in wchar.h
5932 ac_fn_c_check_header_mongrel
"$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
5933 if test "x$ac_cv_header_wchar_h" = xyes
; then :
5934 cat >>confdefs.h
<<_ACEOF
5935 #define HAVE_WCHAR_H 1
5942 for ac_header
in langinfo.h
5944 ac_fn_c_check_header_mongrel
"$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5945 if test "x$ac_cv_header_langinfo_h" = xyes
; then :
5946 cat >>confdefs.h
<<_ACEOF
5947 #define HAVE_LANGINFO_H 1
5955 ac_fn_c_check_func
"$LINENO" "mbrlen" "ac_cv_func_mbrlen"
5956 if test "x$ac_cv_func_mbrlen" = xyes
; then :
5957 $as_echo "#define HAVE_MBRLEN 1" >>confdefs.h
5961 ac_fn_c_check_func
"$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp"
5962 if test "x$ac_cv_func_mbscasecmp" = xyes
; then :
5963 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
5967 ac_fn_c_check_func
"$LINENO" "mbscmp" "ac_cv_func_mbscmp"
5968 if test "x$ac_cv_func_mbscmp" = xyes
; then :
5969 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
5973 ac_fn_c_check_func
"$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs"
5974 if test "x$ac_cv_func_mbsnrtowcs" = xyes
; then :
5975 $as_echo "#define HAVE_MBSNRTOWCS 1" >>confdefs.h
5979 ac_fn_c_check_func
"$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs"
5980 if test "x$ac_cv_func_mbsrtowcs" = xyes
; then :
5981 $as_echo "#define HAVE_MBSRTOWCS 1" >>confdefs.h
5987 ac_fn_c_check_func
"$LINENO" "mbschr" "ac_cv_func_mbschr"
5988 if test "x$ac_cv_func_mbschr" = xyes
; then :
5989 $as_echo "#define HAVE_MBSCHR 1" >>confdefs.h
5992 case " $LIBOBJS " in
5993 *" mbschr.$ac_objext "* ) ;;
5994 *) LIBOBJS
="$LIBOBJS mbschr.$ac_objext"
6002 ac_fn_c_check_func
"$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
6003 if test "x$ac_cv_func_wcrtomb" = xyes
; then :
6004 $as_echo "#define HAVE_WCRTOMB 1" >>confdefs.h
6008 ac_fn_c_check_func
"$LINENO" "wcscoll" "ac_cv_func_wcscoll"
6009 if test "x$ac_cv_func_wcscoll" = xyes
; then :
6010 $as_echo "#define HAVE_WCSCOLL 1" >>confdefs.h
6014 ac_fn_c_check_func
"$LINENO" "wcsdup" "ac_cv_func_wcsdup"
6015 if test "x$ac_cv_func_wcsdup" = xyes
; then :
6016 $as_echo "#define HAVE_WCSDUP 1" >>confdefs.h
6020 ac_fn_c_check_func
"$LINENO" "wcwidth" "ac_cv_func_wcwidth"
6021 if test "x$ac_cv_func_wcwidth" = xyes
; then :
6022 $as_echo "#define HAVE_WCWIDTH 1" >>confdefs.h
6026 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
6027 if test "x$ac_cv_func_wctype" = xyes
; then :
6028 $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h
6033 ac_fn_c_check_func
"$LINENO" "wcswidth" "ac_cv_func_wcswidth"
6034 if test "x$ac_cv_func_wcswidth" = xyes
; then :
6035 $as_echo "#define HAVE_WCSWIDTH 1" >>confdefs.h
6038 case " $LIBOBJS " in
6039 *" wcswidth.$ac_objext "* ) ;;
6040 *) LIBOBJS
="$LIBOBJS wcswidth.$ac_objext"
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
6050 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
6051 if ${ac_cv_func_mbrtowc+:} false
; then :
6052 $as_echo_n "(cached) " >&6
6054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6061 char const s[] = "";
6064 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
6069 if ac_fn_c_try_link
"$LINENO"; then :
6070 ac_cv_func_mbrtowc
=yes
6072 ac_cv_func_mbrtowc
=no
6074 rm -f core conftest.err conftest.
$ac_objext \
6075 conftest
$ac_exeext conftest.
$ac_ext
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
6078 $as_echo "$ac_cv_func_mbrtowc" >&6; }
6079 if test $ac_cv_func_mbrtowc = yes; then
6081 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
6085 if test $ac_cv_func_mbrtowc = yes; then
6086 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6090 for ac_func
in iswlower iswupper towlower towupper iswctype
6092 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6093 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6094 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6095 cat >>confdefs.h
<<_ACEOF
6096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6104 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6105 if ${bash_cv_langinfo_codeset+:} false
; then :
6106 $as_echo_n "(cached) " >&6
6108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 #include <langinfo.h>
6114 char* cs = nl_langinfo(CODESET);
6119 if ac_fn_c_try_link
"$LINENO"; then :
6120 bash_cv_langinfo_codeset
=yes
6122 bash_cv_langinfo_codeset
=no
6124 rm -f core conftest.err conftest.
$ac_objext \
6125 conftest
$ac_exeext conftest.
$ac_ext
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_langinfo_codeset" >&5
6128 $as_echo "$bash_cv_langinfo_codeset" >&6; }
6129 if test $bash_cv_langinfo_codeset = yes; then
6130 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5
6135 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
6136 if ${bash_cv_type_wchar_t+:} false
; then :
6137 $as_echo_n "(cached) " >&6
6139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6140 /* end confdefs.h. */
6154 if ac_fn_c_try_compile
"$LINENO"; then :
6155 bash_cv_type_wchar_t
=yes
6157 bash_cv_type_wchar_t
=no
6159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wchar_t" >&5
6162 $as_echo "$bash_cv_type_wchar_t" >&6; }
6163 if test $bash_cv_type_wchar_t = yes; then
6165 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5
6170 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
6171 if ${bash_cv_type_wctype_t+:} false
; then :
6172 $as_echo_n "(cached) " >&6
6174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h. */
6188 if ac_fn_c_try_compile
"$LINENO"; then :
6189 bash_cv_type_wctype_t
=yes
6191 bash_cv_type_wctype_t
=no
6193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wctype_t" >&5
6196 $as_echo "$bash_cv_type_wctype_t" >&6; }
6197 if test $bash_cv_type_wctype_t = yes; then
6199 $as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5
6204 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
6205 if ${bash_cv_type_wint_t+:} false
; then :
6206 $as_echo_n "(cached) " >&6
6208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6222 if ac_fn_c_try_compile
"$LINENO"; then :
6223 bash_cv_type_wint_t
=yes
6225 bash_cv_type_wint_t
=no
6227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wint_t" >&5
6230 $as_echo "$bash_cv_type_wint_t" >&6; }
6231 if test $bash_cv_type_wint_t = yes; then
6233 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6237 if test "$am_cv_func_iconv" = yes; then
6239 LIBS
="$LIBS $LIBICONV"
6240 for ac_func
in locale_charset
6242 ac_fn_c_check_func
"$LINENO" "locale_charset" "ac_cv_func_locale_charset"
6243 if test "x$ac_cv_func_locale_charset" = xyes
; then :
6244 cat >>confdefs.h
<<_ACEOF
6245 #define HAVE_LOCALE_CHARSET 1
6257 *cray
*) LOCAL_CFLAGS
=-DCRAY ;;
6258 *s390
*) LOCAL_CFLAGS
=-fsigned-char ;;
6262 isc
*) LOCAL_CFLAGS
=-Disc386 ;;
6265 # shared library configuration section
6267 # Shared object configuration section. These values are generated by
6268 # ${srcdir}/support/shobj-conf
6270 if test -f ${srcdir}/support
/shobj-conf
; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configuration for building shared libraries" >&5
6272 $as_echo_n "checking configuration for building shared libraries... " >&6; }
6273 eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
6275 # case "$SHLIB_LIBS" in
6276 # *curses*|*termcap*|*termlib*) ;;
6277 # *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;;
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_STATUS" >&5
6296 $as_echo "$SHLIB_STATUS" >&6; }
6298 # SHLIB_STATUS is either `supported' or `unsupported'. If it's
6299 # `unsupported', turn off any default shared library building
6300 if test "$SHLIB_STATUS" = 'unsupported'; then
6304 # shared library versioning
6305 # quoted for m4 so I can use character classes
6306 SHLIB_MAJOR
=`expr "$LIBVERSION" : '\([0-9]\)\..*'`
6307 SHLIB_MINOR
=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`
6312 if test "$opt_static_libs" = "yes"; then
6313 STATIC_TARGET
=static
6314 STATIC_INSTALL_TARGET
=install-static
6316 if test "$opt_shared_libs" = "yes"; then
6317 SHARED_TARGET
=shared
6318 SHARED_INSTALL_TARGET
=install-shared
6327 msdosdjgpp
*) BUILD_DIR
=`pwd.exe` ;; # to prevent //d/path/file
6328 *) BUILD_DIR
=`pwd` ;;
6331 case "$BUILD_DIR" in
6332 *\
*) BUILD_DIR
=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
6354 ac_config_files
="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile"
6356 ac_config_commands
="$ac_config_commands default"
6358 cat >confcache
<<\_ACEOF
6359 # This file is a shell script that caches the results of configure
6360 # tests run on this system so they can be shared between configure
6361 # scripts and configure runs, see configure's option --config-cache.
6362 # It is not useful on other systems. If it contains results you don't
6363 # want to keep, you may remove or edit it.
6365 # config.status only pays attention to the cache file if you give it
6366 # the --recheck option to rerun configure.
6368 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6369 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6374 # The following way of writing the cache mishandles newlines in values,
6375 # but we know of no workaround that is simple, portable, and efficient.
6376 # So, we kill variables containing newlines.
6377 # Ultrix sh set writes to stderr and can't be redirected directly,
6378 # and sets the high bit in the cache file unless we assign to the vars.
6380 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6381 eval ac_val
=\$
$ac_var
6385 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6386 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6389 _ | IFS | as_nl
) ;; #(
6390 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6391 *) { eval $ac_var=; unset $ac_var;} ;;
6397 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6398 *${as_nl}ac_space
=\
*)
6399 # `set' does not quote correctly, so add quotes: double-quote
6400 # substitution turns \\\\ into \\, and sed turns \\ into \.
6403 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6406 # `set' quotes correctly as required by POSIX, so do not add quotes.
6407 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6416 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6418 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6420 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6421 if test -w "$cache_file"; then
6422 if test "x$cache_file" != "x/dev/null"; then
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6424 $as_echo "$as_me: updating cache $cache_file" >&6;}
6425 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
6426 cat confcache
>"$cache_file"
6428 case $cache_file in #(
6430 mv -f confcache
"$cache_file"$$
&&
6431 mv -f "$cache_file"$$
"$cache_file" ;; #(
6433 mv -f confcache
"$cache_file" ;;
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6439 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6444 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6445 # Let make expand exec_prefix.
6446 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6448 DEFS
=-DHAVE_CONFIG_H
6453 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6454 # 1. Remove the extension, and $U if already installed.
6455 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6456 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
6457 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6458 # will be set to the directory where LIBOBJS objects are built.
6459 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6460 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
6464 LTLIBOBJS
=$ac_ltlibobjs
6468 : "${CONFIG_STATUS=./config.status}"
6470 ac_clean_files_save
=$ac_clean_files
6471 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6473 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6475 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6477 # Generated by $as_me.
6478 # Run this file to recreate the current configuration.
6479 # Compiler output produced by configure, useful for debugging
6480 # configure, is in config.log if it exists.
6486 SHELL=\${CONFIG_SHELL-$SHELL}
6489 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6490 ## -------------------- ##
6491 ## M4sh Initialization. ##
6492 ## -------------------- ##
6494 # Be more Bourne compatible
6495 DUALCASE
=1; export DUALCASE
# for MKS sh
6496 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
6499 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6500 # is contrary to our usage. Disable this feature.
6501 alias -g '${1+"$@"}'='"$@"'
6502 setopt NO_GLOB_SUBST
6504 case `(set -o) 2>/dev/null` in #(
6516 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6517 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6518 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6519 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6520 # Prefer a ksh shell builtin over an external printf program on Solaris,
6521 # but without wasting forks for bash or zsh.
6522 if test -z "$BASH_VERSION$ZSH_VERSION" \
6523 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6524 as_echo='print
-r --'
6525 as_echo_n='print
-rn --'
6526 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6527 as_echo='printf %s
\n'
6528 as_echo_n='printf %s
'
6530 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6531 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
6532 as_echo_n='/usr
/ucb
/echo -n'
6534 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6535 as_echo_n_body='eval
6539 expr "X$arg" : "X\\(.*\\)$as_nl";
6540 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6542 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
6544 export as_echo_n_body
6545 as_echo_n='sh
-c $as_echo_n_body as_echo
'
6548 as_echo='sh
-c $as_echo_body as_echo
'
6551 # The user is always right.
6552 if test "${PATH_SEPARATOR+set}" != set; then
6554 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6555 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6562 # We need space, tab and new line, in precisely that order. Quoting is
6563 # there to prevent editors from complaining about space-tab.
6564 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6565 # splitting by setting IFS to empty value.)
6568 # Find who we are. Look in the path if we contain no directory separator.
6571 *[\\/]* ) as_myself=$0 ;;
6572 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 test -z "$as_dir" && as_dir=.
6577 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6583 # We did not find ourselves, most probably we were run as `sh COMMAND'
6584 # in which case we are not to be found in the path.
6585 if test "x$as_myself" = x
; then
6588 if test ! -f "$as_myself"; then
6589 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6593 # Unset variables that we do not need and which cause bugs (e.g. in
6594 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6595 # suppresses any "Segmentation fault" message there. '((' could
6596 # trigger a bug in pdksh 5.2.14.
6597 for as_var
in BASH_ENV ENV MAIL MAILPATH
6598 do eval test x\
${$as_var+set} = xset \
6599 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
6612 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
6615 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6616 # ----------------------------------------
6617 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6618 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6619 # script with STATUS, using 1 if that was 0.
6622 as_status
=$1; test $as_status -eq 0 && as_status
=1
6624 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
6625 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6627 $as_echo "$as_me: error: $2" >&2
6628 as_fn_exit
$as_status
6632 # as_fn_set_status STATUS
6633 # -----------------------
6634 # Set $? to STATUS, without forking.
6638 } # as_fn_set_status
6642 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6652 # Portably unset VAR.
6655 { eval $1=; unset $1;}
6657 as_unset
=as_fn_unset
6658 # as_fn_append VAR VALUE
6659 # ----------------------
6660 # Append the text in VALUE to the end of the definition contained in VAR. Take
6661 # advantage of any shell optimizations that allow amortized linear growth over
6662 # repeated appends, instead of the typical quadratic growth present in naive
6664 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
6665 eval 'as_fn_append ()
6676 # as_fn_arith ARG...
6677 # ------------------
6678 # Perform arithmetic evaluation on the ARGs, and store the result in the
6679 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6680 # must be portable across $(()) and expr.
6681 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
6682 eval 'as_fn_arith ()
6689 as_val
=`expr "$@" || test $? -eq 1`
6694 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6695 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6701 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6702 as_basename
=basename
6707 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6713 as_me
=`$as_basename -- "$0" ||
6714 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6715 X"$0" : 'X\(//\)$' \| \
6716 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6718 sed '/^.*\/\([^/][^/]*\)\/*$/{
6732 # Avoid depending upon Character Ranges.
6733 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6734 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6735 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6736 as_cr_digits
='0123456789'
6737 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6739 ECHO_C
= ECHO_N
= ECHO_T
=
6740 case `echo -n x` in #(((((
6742 case `echo 'xy\c'` in
6743 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6745 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6752 rm -f conf$$ conf$$.exe conf$$.
file
6753 if test -d conf$$.dir
; then
6754 rm -f conf$$.dir
/conf$$.
file
6757 mkdir conf$$.dir
2>/dev
/null
6759 if (echo >conf$$.
file) 2>/dev
/null
; then
6760 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6762 # ... but there are two gotchas:
6763 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6764 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6765 # In both cases, we have to default to `cp -pR'.
6766 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6768 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6776 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6777 rmdir conf$$.dir
2>/dev
/null
6782 # Create "$as_dir" as a directory, including parents if necessary.
6787 -*) as_dir
=.
/$as_dir;;
6789 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6793 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6794 *) as_qdir
=$as_dir;;
6796 as_dirs
="'$as_qdir' $as_dirs"
6797 as_dir
=`$as_dirname -- "$as_dir" ||
6798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6799 X"$as_dir" : 'X\(//\)[^/]' \| \
6800 X"$as_dir" : 'X\(//\)$' \| \
6801 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6802 $as_echo X"$as_dir" |
6803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6820 test -d "$as_dir" && break
6822 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6823 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
6827 if mkdir
-p .
2>/dev
/null
; then
6828 as_mkdir_p
='mkdir -p "$as_dir"'
6830 test -d .
/-p && rmdir .
/-p
6835 # as_fn_executable_p FILE
6836 # -----------------------
6837 # Test if FILE is an executable regular file.
6838 as_fn_executable_p
()
6840 test -f "$1" && test -x "$1"
6841 } # as_fn_executable_p
6843 as_executable_p
=as_fn_executable_p
6845 # Sed expression to map a string onto a valid CPP name.
6846 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6848 # Sed expression to map a string onto a valid variable name.
6849 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6853 ## ----------------------------------- ##
6854 ## Main body of $CONFIG_STATUS script. ##
6855 ## ----------------------------------- ##
6857 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6860 # Save the log message, to keep $0 and so on meaningful, and to
6861 # report actual input values of CONFIG_FILES etc. instead of their
6862 # values after options handling.
6864 This file was extended by readline $as_me 6.2, which was
6865 generated by GNU Autoconf 2.69. Invocation command line was
6867 CONFIG_FILES = $CONFIG_FILES
6868 CONFIG_HEADERS = $CONFIG_HEADERS
6869 CONFIG_LINKS = $CONFIG_LINKS
6870 CONFIG_COMMANDS = $CONFIG_COMMANDS
6873 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6878 case $ac_config_files in *"
6879 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6882 case $ac_config_headers in *"
6883 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6888 # Files that config.status was made for.
6889 config_files="$ac_config_files"
6890 config_headers="$ac_config_headers"
6891 config_commands="$ac_config_commands"
6895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6897 \`$as_me' instantiates files and other configuration actions
6898 from templates according to the current configuration. Unless the files
6899 and actions are specified as TAGs, all are instantiated by default.
6901 Usage: $0 [OPTION]... [TAG]...
6903 -h, --help print this help, then exit
6904 -V, --version print version number and configuration settings, then exit
6905 --config print configuration, then exit
6906 -q, --quiet, --silent
6907 do not print progress messages
6908 -d, --debug don't remove temporary files
6909 --recheck update $as_me by reconfiguring in the same conditions
6910 --file=FILE[:TEMPLATE]
6911 instantiate the configuration file FILE
6912 --header=FILE[:TEMPLATE]
6913 instantiate the configuration header FILE
6915 Configuration files:
6918 Configuration headers:
6921 Configuration commands:
6924 Report bugs to <bug-readline@gnu.org>."
6927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6928 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6930 readline config.status 6.2
6931 configured by $0, generated by GNU Autoconf 2.69,
6932 with options \\"\$ac_cs_config\\"
6934 Copyright (C) 2012 Free Software Foundation, Inc.
6935 This config.status script is free software; the Free Software Foundation
6936 gives unlimited permission to copy, distribute and modify it."
6941 test -n "\$AWK" || AWK=awk
6944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6945 # The default lists apply if the user does not specify any file.
6951 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6952 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6956 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6968 # Handling of the options.
6969 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6971 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6972 $as_echo "$ac_cs_version"; exit ;;
6973 --config |
--confi |
--conf |
--con |
--co |
--c )
6974 $as_echo "$ac_cs_config"; exit ;;
6975 --debug |
--debu |
--deb |
--de |
--d |
-d )
6977 --file |
--fil |
--fi |
--f )
6980 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6981 '') as_fn_error $?
"missing file argument" ;;
6983 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6984 ac_need_defaults
=false
;;
6985 --header |
--heade |
--head |
--hea )
6988 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6990 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6991 ac_need_defaults
=false
;;
6993 # Conflict between --help and --header
6994 as_fn_error $?
"ambiguous option: \`$1'
6995 Try \`$0 --help' for more information.";;
6996 --help |
--hel |
-h )
6997 $as_echo "$ac_cs_usage"; exit ;;
6998 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6999 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7003 -*) as_fn_error $?
"unrecognized option: \`$1'
7004 Try \`$0 --help' for more information." ;;
7006 *) as_fn_append ac_config_targets
" $1"
7007 ac_need_defaults
=false
;;
7013 ac_configure_extra_args
=
7015 if $ac_cs_silent; then
7017 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7022 if \$ac_cs_recheck; then
7023 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7025 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7026 CONFIG_SHELL='$SHELL'
7032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7036 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7037 ## Running $as_me. ##
7043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7048 # Handling of arguments.
7049 for ac_config_target
in $ac_config_targets
7051 case $ac_config_target in
7052 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
7053 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7054 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
7055 "examples/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/Makefile" ;;
7056 "shlib/Makefile") CONFIG_FILES
="$CONFIG_FILES shlib/Makefile" ;;
7057 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
7059 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7064 # If the user did not use the arguments to specify the items to instantiate,
7065 # then the envvar interface is used. Set only those that are not.
7066 # We use the long form for the default assignment because of an extremely
7067 # bizarre bug on SunOS 4.1.3.
7068 if $ac_need_defaults; then
7069 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7070 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7071 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7074 # Have a temporary directory for convenience. Make it in the build tree
7075 # simply because there is no reason against having it here, and in addition,
7076 # creating and moving files from /tmp can sometimes cause problems.
7077 # Hook for its removal unless debugging.
7078 # Note that there is a small window in which the directory will not be cleaned:
7079 # after its creation but before its name has been assigned to `$tmp'.
7083 trap 'exit_status=$?
7085 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7087 trap 'as_fn_exit 1' 1 2 13 15
7089 # Create a (secure) tmp directory for tmp files.
7092 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7096 tmp
=.
/conf$$
-$RANDOM
7097 (umask 077 && mkdir
"$tmp")
7098 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
7101 # Set up the scripts for CONFIG_FILES section.
7102 # No need to generate them if there are no CONFIG_FILES.
7103 # This happens for instance with `./config.status config.h'.
7104 if test -n "$CONFIG_FILES"; then
7107 ac_cr
=`echo X | tr X '\015'`
7108 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7109 # But we know of no other shell where ac_cr would be empty at this
7110 # point, so we can use a bashism as a fallback.
7111 if test "x$ac_cr" = x
; then
7112 eval ac_cr
=\$
\'\\r
\'
7114 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7115 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7121 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7126 echo "cat >conf$$subs.awk <<_ACEOF" &&
7127 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7130 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7131 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7133 for ac_last_try in false false false false false :; do
7134 . ./conf$$subs.sh ||
7135 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7137 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7138 if test $ac_delim_n = $ac_delim_num; then
7140 elif $ac_last_try; then
7141 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7143 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7149 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
7153 s/^/S["/; s
/!.
*/"]=/
7163 s/\(.\{148\}\)..*/\1/
7165 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
7170 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7177 s/\(.\{148\}\)..*/\1/
7179 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7183 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7188 ' <conf$$subs.awk | sed '
7193 ' >>$CONFIG_STATUS || ac_write_fail=1
7194 rm -f conf$$subs.awk
7195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7197 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
7198 for (key in S) S_is_set[key] = 1
7204 nfields = split(line, field, "@
")
7206 len = length(field[1])
7207 for (i = 2; i < nfields; i++) {
7209 keylen = length(key)
7210 if (S_is_set[key]) {
7212 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7213 len += length(value) + length(field[++i])
7224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7225 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7226 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
7229 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
7230 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
7233 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7234 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
7235 # trailing colons and then remove the whole line if VPATH becomes empty
7236 # (actually we leave an empty line to preserve line numbers).
7237 if test "x
$srcdir" = x.; then
7238 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7257 fi # test -n "$CONFIG_FILES"
7259 # Set up the scripts for CONFIG_HEADERS section.
7260 # No need to generate them if there are no CONFIG_HEADERS.
7261 # This happens for instance with `./config.status Makefile'.
7262 if test -n "$CONFIG_HEADERS"; then
7263 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
7267 # Transform confdefs.h into an awk script `defines.awk', embedded as
7268 # here-document in config.status, that substitutes the proper values into
7269 # config.h.in to produce config.h.
7271 # Create a delimiter string that does not exist in confdefs.h, to ease
7272 # handling of long lines.
7274 for ac_last_try in false false :; do
7275 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
7276 if test -z "$ac_tt"; then
7278 elif $ac_last_try; then
7279 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
7281 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7285 # For the awk script, D is an array of macro values keyed by name,
7286 # likewise P contains macro parameters if any. Preserve backslash
7287 # newline sequences.
7289 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7291 s/.\{148\}/&'"$ac_delim"'/g
7294 s/^[ ]*#[ ]*define[ ][ ]*/ /
7301 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
7303 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
7307 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
7308 D["\
1"]=" \
3\\\\\\n
"\\/p
7310 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
7315 s/.\{148\}/&'"$ac_delim"'/g
7320 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
7323 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
7325 ' <confdefs.h | sed '
7326 s/'"$ac_delim"'/"\\\
7327 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7330 for (key in D) D_is_set[key] = 1
7333 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7335 split(line, arg, " ")
7336 if (arg[1] == "#") {
7340 defundef
= substr
(arg
[1], 2)
7343 split(mac1
, mac2
, "(") #)
7345 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
7346 if (D_is_set
[macro
]) {
7347 # Preserve the white space surrounding the "#".
7348 print prefix
"define", macro P
[macro
] D
[macro
]
7351 # Replace #undef with comments. This is necessary, for example,
7352 # in the case of _POSIX_SOURCE, which is predefined and required
7353 # on some systems where configure will not decide to define it.
7354 if (defundef
== "undef") {
7355 print
"/*", prefix defundef
, macro
, "*/"
7363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7364 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
7365 fi # test -n "$CONFIG_HEADERS"
7368 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7373 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7375 case $ac_mode$ac_tag in
7377 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7378 :[FH
]-) ac_tag
=-:-;;
7379 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7396 -) ac_f
="$ac_tmp/stdin";;
7397 *) # Look for the file first in the build tree, then in the source tree
7398 # (if the path is not absolute). The absolute path cannot be DOS-style,
7399 # because $ac_f cannot contain `:'.
7403 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7405 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7407 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7408 as_fn_append ac_file_inputs
" '$ac_f'"
7411 # Let's still pretend it is `configure' which instantiates (i.e., don't
7412 # use $as_me), people would be surprised to read:
7413 # /* config.h. Generated by config.status. */
7414 configure_input
='Generated from '`
7415 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7417 if test x
"$ac_file" != x-
; then
7418 configure_input
="$ac_file. $configure_input"
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7420 $as_echo "$as_me: creating $ac_file" >&6;}
7422 # Neutralize special characters interpreted by sed in replacement strings.
7423 case $configure_input in #(
7424 *\
&* |
*\|
* |
*\\* )
7425 ac_sed_conf_input
=`$as_echo "$configure_input" |
7426 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7427 *) ac_sed_conf_input
=$configure_input;;
7431 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
7432 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
7437 ac_dir
=`$as_dirname -- "$ac_file" ||
7438 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7439 X"$ac_file" : 'X\(//\)[^/]' \| \
7440 X"$ac_file" : 'X\(//\)$' \| \
7441 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7442 $as_echo X"$ac_file" |
7443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7460 as_dir
="$ac_dir"; as_fn_mkdir_p
7464 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7466 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7467 # A ".." for each directory in $ac_dir_suffix.
7468 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7469 case $ac_top_builddir_sub in
7470 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7471 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7474 ac_abs_top_builddir
=$ac_pwd
7475 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7476 # for backward compatibility:
7477 ac_top_builddir
=$ac_top_build_prefix
7480 .
) # We are building in place.
7482 ac_top_srcdir
=$ac_top_builddir_sub
7483 ac_abs_top_srcdir
=$ac_pwd ;;
7484 [\\/]* | ?
:[\\/]* ) # Absolute name.
7485 ac_srcdir
=$srcdir$ac_dir_suffix;
7486 ac_top_srcdir
=$srcdir
7487 ac_abs_top_srcdir
=$srcdir ;;
7489 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7490 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7491 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7493 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7503 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7504 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7509 # If the template does not know about datarootdir, expand it.
7510 # FIXME: This hack should be removed a few years after 2.60.
7511 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7522 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7523 *datarootdir
*) ac_datarootdir_seen
=yes;;
7524 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7526 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7529 ac_datarootdir_hack='
7530 s&@datadir@&$datadir&g
7531 s&@docdir@&$docdir&g
7532 s&@infodir@&$infodir&g
7533 s&@localedir@&$localedir&g
7534 s&@mandir@&$mandir&g
7535 s&\\\${datarootdir}&$datarootdir&g' ;;
7539 # Neutralize VPATH when `$srcdir' = `.'.
7540 # Shell code in configure.ac might set extrasub.
7541 # FIXME: do we really want to maintain this feature?
7542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7543 ac_sed_extra="$ac_vpsub
7546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7548 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7549 s|@configure_input@|
$ac_sed_conf_input|
;t t
7550 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7551 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
7552 s
&@srcdir@
&$ac_srcdir&;t t
7553 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7554 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7555 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7556 s
&@builddir@
&$ac_builddir&;t t
7557 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7558 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7559 s
&@INSTALL@
&$ac_INSTALL&;t t
7560 $ac_datarootdir_hack
7562 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
7563 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
7565 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7566 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
7567 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7568 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7570 which seems to be undefined. Please make sure it is defined" >&5
7571 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7572 which seems to be undefined. Please make sure it is defined" >&2;}
7574 rm -f "$ac_tmp/stdin"
7576 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7577 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7579 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7585 if test x"$ac_file" != x-; then
7587 $as_echo "/* $configure_input */" \
7588 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7589 } >"$ac_tmp/config.h" \
7590 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7591 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7593 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7596 mv "$ac_tmp/config.h" "$ac_file" \
7597 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7600 $as_echo "/* $configure_input */" \
7601 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7602 || as_fn_error $? "could not create -" "$LINENO" 5
7606 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7607 $as_echo "$as_me: executing $ac_file commands" >&6;}
7612 case $ac_file$ac_mode in
7614 # Makefile uses this timestamp file to record whether config.h is up to date.
7624 ac_clean_files=$ac_clean_files_save
7626 test $ac_write_fail = 0 ||
7627 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7630 # configure is writing to config.log, and then calls config.status.
7631 # config.status does its own redirection, appending to config.log.
7632 # Unfortunately, on DOS this fails, as config.log is still kept open
7633 # by configure, so config.status won't be able to
write to it
; its
7634 # output is simply discarded. So we exec the FD to /dev/null,
7635 # effectively closing config.log, so it can be properly (re)opened and
7636 # appended to by config.status. When coming back to configure, we
7637 # need to make the FD available again.
7638 if test "$no_create" != yes; then
7640 ac_config_status_args
=
7641 test "$silent" = yes &&
7642 ac_config_status_args
="$ac_config_status_args --quiet"
7644 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7646 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7647 # would make configure fail if this is the last instruction.
7648 $ac_cs_success || as_fn_exit
1
7650 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7652 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}