2 # From configure.ac for Readline 7.0, version 2.81.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for readline 7.0.
6 # Report bugs to <bug-readline@gnu.org>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE
=1; export DUALCASE
# for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print
-rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
56 as_echo_n='/usr
/ucb
/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
69 as_echo_n='sh
-c $as_echo_n_body as_echo
'
72 as_echo='sh
-c $as_echo_body as_echo
'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x
; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var
in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\
${$as_var+set} = xset \
123 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
136 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
141 _as_can_reexec
=no
; export _as_can_reexec
;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
148 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
150 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec
=; unset _as_can_reexec
;}
163 if test "x$CONFIG_SHELL" = x
; then
164 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
172 case \`(set -o) 2>/dev/null\` in #(
180 as_required
="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
198 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1"
203 if (eval "$as_required") 2>/dev
/null
; then :
208 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
213 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
216 test -z "$as_dir" && as_dir
=.
220 for as_base
in sh bash ksh sh5
; do
221 # Try only shells that exist, to save several forks.
222 as_shell
=$as_dir/$as_base
223 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
224 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
225 CONFIG_SHELL
=$as_shell as_have_required
=yes
226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
234 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
235 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
236 CONFIG_SHELL
=$SHELL as_have_required
=yes
241 if test "x$CONFIG_SHELL" != x
; then :
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
249 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
251 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed `exec'.
259 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
263 if test x
$as_have_required = xno
; then :
264 $as_echo "$0: This script requires a shell more modern than all"
265 $as_echo "$0: the shells that I found on your system."
266 if test x
${ZSH_VERSION+set} = xset
; then
267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
270 $as_echo "$0: Please tell bug-autoconf@gnu.org and
271 $0: bug-readline@gnu.org about your system, including any
272 $0: error possibly output before this message. Then install
273 $0: a modern shell, or manually run the script under such a
274 $0: shell if you do have one."
280 SHELL
=${CONFIG_SHELL-/bin/sh}
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE
= GREP_OPTIONS
=
284 unset CLICOLOR_FORCE GREP_OPTIONS
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
291 # Portably unset VAR.
294 { eval $1=; unset $1;}
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 # Create "$as_dir" as a directory, including parents if necessary.
323 -*) as_dir
=.
/$as_dir;;
325 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
329 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
332 as_dirs
="'$as_qdir' $as_dirs"
333 as_dir
=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
356 test -d "$as_dir" && break
358 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
359 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p
()
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
378 eval 'as_fn_append ()
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
402 as_val
=`expr "$@" || test $? -eq 1`
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
414 as_status
=$1; test $as_status -eq 0 && as_status
=1
416 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit
$as_status
423 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
430 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
436 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
442 as_me
=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
461 # Avoid depending upon Character Ranges.
462 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits
='0123456789'
466 as_cr_alnum
=$as_cr_Letters$as_cr_digits
469 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
470 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
489 chmod +x
"$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec
=no
; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
500 # Exit status is that of the last command.
504 ECHO_C
= ECHO_N
= ECHO_T
=
505 case `echo -n x` in #(((((
507 case `echo 'xy\c'` in
508 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
517 rm -f conf$$ conf$$.exe conf$$.
file
518 if test -d conf$$.dir
; then
519 rm -f conf$$.dir
/conf$$.
file
522 mkdir conf$$.dir
2>/dev
/null
524 if (echo >conf$$.
file) 2>/dev
/null
; then
525 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
533 elif ln conf$$.
file conf$$
2>/dev
/null
; then
541 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
542 rmdir conf$$.dir
2>/dev
/null
544 if mkdir
-p .
2>/dev
/null
; then
545 as_mkdir_p
='mkdir -p "$as_dir"'
547 test -d .
/-p && rmdir .
/-p
552 as_executable_p
=as_fn_executable_p
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
561 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
572 ac_default_prefix
=/usr
/local
574 ac_config_libobj_dir
=.
581 # Identity of this package.
582 PACKAGE_NAME
='readline'
583 PACKAGE_TARNAME
='readline'
584 PACKAGE_VERSION
='7.0'
585 PACKAGE_STRING
='readline 7.0'
586 PACKAGE_BUGREPORT
='bug-readline@gnu.org'
589 ac_unique_file
="readline.h"
590 # Factoring default headers for most tests.
591 ac_includes_default
="\
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
603 # ifdef HAVE_STDLIB_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
626 ac_subst_vars
='LTLIBOBJS
634 SHARED_INSTALL_TARGET
635 STATIC_INSTALL_TARGET
709 program_transform_name
722 enable_option_checking
728 ac_precious_vars
='build_alias
739 # Initialize some variables set by options.
741 ac_init_version
=false
742 ac_unrecognized_opts
=
744 # The variables have the same names as the options, with
745 # dashes changed to underlines.
753 program_transform_name
=s
,x
,x
,
761 # Installation directory options.
762 # These are left unexpanded so users can "make install exec_prefix=/foo"
763 # and all the variables that are supposed to be based on exec_prefix
764 # by default will actually change.
765 # Use braces instead of parens because sh, perl, etc. also accept them.
766 # (The list follows the same order as the GNU Coding Standards.)
767 bindir
='${exec_prefix}/bin'
768 sbindir
='${exec_prefix}/sbin'
769 libexecdir
='${exec_prefix}/libexec'
770 datarootdir
='${prefix}/share'
771 datadir
='${datarootdir}'
772 sysconfdir
='${prefix}/etc'
773 sharedstatedir
='${prefix}/com'
774 localstatedir
='${prefix}/var'
775 includedir
='${prefix}/include'
776 oldincludedir
='/usr/include'
777 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
778 infodir
='${datarootdir}/info'
783 libdir
='${exec_prefix}/lib'
784 localedir
='${datarootdir}/locale'
785 mandir
='${datarootdir}/man'
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
793 eval $ac_prev=\
$ac_option
799 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 # Accept the important Cygnus configure options, so we can diagnose typos.
806 case $ac_dashdash$ac_option in
810 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
812 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
815 -build |
--build |
--buil |
--bui |
--bu)
816 ac_prev
=build_alias
;;
817 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
818 build_alias
=$ac_optarg ;;
820 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
821 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
822 ac_prev
=cache_file
;;
823 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
824 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
825 cache_file
=$ac_optarg ;;
828 cache_file
=config.cache
;;
830 -datadir |
--datadir |
--datadi |
--datad)
832 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
833 datadir
=$ac_optarg ;;
835 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
836 |
--dataroo |
--dataro |
--datar)
837 ac_prev
=datarootdir
;;
838 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
839 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
840 datarootdir
=$ac_optarg ;;
842 -disable-* |
--disable-*)
843 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
844 # Reject names that are not valid shell variable names.
845 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
846 as_fn_error $?
"invalid feature name: $ac_useropt"
847 ac_useropt_orig
=$ac_useropt
848 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
849 case $ac_user_opts in
853 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
854 ac_unrecognized_sep
=', ';;
856 eval enable_
$ac_useropt=no
;;
858 -docdir |
--docdir |
--docdi |
--doc |
--do)
860 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
863 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
865 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
868 -enable-* |
--enable-*)
869 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
872 as_fn_error $?
"invalid feature name: $ac_useropt"
873 ac_useropt_orig
=$ac_useropt
874 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875 case $ac_user_opts in
879 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
880 ac_unrecognized_sep
=', ';;
882 eval enable_
$ac_useropt=\
$ac_optarg ;;
884 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
885 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
886 |
--exec |
--exe |
--ex)
887 ac_prev
=exec_prefix
;;
888 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
889 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
890 |
--exec=* |
--exe=* |
--ex=*)
891 exec_prefix
=$ac_optarg ;;
893 -gas |
--gas |
--ga |
--g)
894 # Obsolete; use --with-gas.
897 -help |
--help |
--hel |
--he |
-h)
899 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
900 ac_init_help
=recursive
;;
901 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
902 ac_init_help
=short
;;
904 -host |
--host |
--hos |
--ho)
905 ac_prev
=host_alias
;;
906 -host=* |
--host=* |
--hos=* |
--ho=*)
907 host_alias
=$ac_optarg ;;
909 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
911 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
913 htmldir
=$ac_optarg ;;
915 -includedir |
--includedir |
--includedi |
--included |
--include \
916 |
--includ |
--inclu |
--incl |
--inc)
917 ac_prev
=includedir
;;
918 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
919 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
920 includedir
=$ac_optarg ;;
922 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
924 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
925 infodir
=$ac_optarg ;;
927 -libdir |
--libdir |
--libdi |
--libd)
929 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
932 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
933 |
--libexe |
--libex |
--libe)
934 ac_prev
=libexecdir
;;
935 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
936 |
--libexe=* |
--libex=* |
--libe=*)
937 libexecdir
=$ac_optarg ;;
939 -localedir |
--localedir |
--localedi |
--localed |
--locale)
941 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
942 localedir
=$ac_optarg ;;
944 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
945 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
946 ac_prev
=localstatedir
;;
947 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
948 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
949 localstatedir
=$ac_optarg ;;
951 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
953 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
957 # Obsolete; use --without-fp.
960 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
961 |
--no-cr |
--no-c |
-n)
964 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
965 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
968 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
969 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
970 |
--oldin |
--oldi |
--old |
--ol |
--o)
971 ac_prev
=oldincludedir
;;
972 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
973 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
974 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
975 oldincludedir
=$ac_optarg ;;
977 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
979 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
982 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
983 |
--program-pre |
--program-pr |
--program-p)
984 ac_prev
=program_prefix
;;
985 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
986 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
987 program_prefix
=$ac_optarg ;;
989 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
990 |
--program-suf |
--program-su |
--program-s)
991 ac_prev
=program_suffix
;;
992 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
993 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
994 program_suffix
=$ac_optarg ;;
996 -program-transform-name |
--program-transform-name \
997 |
--program-transform-nam |
--program-transform-na \
998 |
--program-transform-n |
--program-transform- \
999 |
--program-transform |
--program-transfor \
1000 |
--program-transfo |
--program-transf \
1001 |
--program-trans |
--program-tran \
1002 |
--progr-tra |
--program-tr |
--program-t)
1003 ac_prev
=program_transform_name
;;
1004 -program-transform-name=* |
--program-transform-name=* \
1005 |
--program-transform-nam=* |
--program-transform-na=* \
1006 |
--program-transform-n=* |
--program-transform-=* \
1007 |
--program-transform=* |
--program-transfor=* \
1008 |
--program-transfo=* |
--program-transf=* \
1009 |
--program-trans=* |
--program-tran=* \
1010 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1011 program_transform_name
=$ac_optarg ;;
1013 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1015 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1016 pdfdir
=$ac_optarg ;;
1018 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1020 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1023 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1024 |
-silent |
--silent |
--silen |
--sile |
--sil)
1027 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1029 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1031 sbindir
=$ac_optarg ;;
1033 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1034 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1035 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1037 ac_prev
=sharedstatedir
;;
1038 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1039 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1040 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1042 sharedstatedir
=$ac_optarg ;;
1044 -site |
--site |
--sit)
1046 -site=* |
--site=* |
--sit=*)
1049 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1051 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1052 srcdir
=$ac_optarg ;;
1054 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1055 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1056 ac_prev
=sysconfdir
;;
1057 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1058 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1059 sysconfdir
=$ac_optarg ;;
1061 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1062 ac_prev
=target_alias
;;
1063 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1064 target_alias
=$ac_optarg ;;
1066 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1069 -version |
--version |
--versio |
--versi |
--vers |
-V)
1070 ac_init_version
=: ;;
1073 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1076 as_fn_error $?
"invalid package name: $ac_useropt"
1077 ac_useropt_orig
=$ac_useropt
1078 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1083 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1084 ac_unrecognized_sep
=', ';;
1086 eval with_
$ac_useropt=\
$ac_optarg ;;
1088 -without-* |
--without-*)
1089 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1092 as_fn_error $?
"invalid package name: $ac_useropt"
1093 ac_useropt_orig
=$ac_useropt
1094 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1099 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1100 ac_unrecognized_sep
=', ';;
1102 eval with_
$ac_useropt=no
;;
1105 # Obsolete; use --with-x.
1108 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1109 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1110 ac_prev
=x_includes
;;
1111 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1112 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1113 x_includes
=$ac_optarg ;;
1115 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1116 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1117 ac_prev
=x_libraries
;;
1118 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1119 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1120 x_libraries
=$ac_optarg ;;
1122 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1123 Try \`$0 --help' for more information"
1127 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1128 # Reject names that are not valid shell variable names.
1129 case $ac_envvar in #(
1130 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1131 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1133 eval $ac_envvar=\
$ac_optarg
1134 export $ac_envvar ;;
1137 # FIXME: should be removed in autoconf 3.0.
1138 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1139 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1140 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1141 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1147 if test -n "$ac_prev"; then
1148 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1149 as_fn_error $?
"missing argument to $ac_option"
1152 if test -n "$ac_unrecognized_opts"; then
1153 case $enable_option_checking in
1155 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1156 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1160 # Check all directory arguments for consistency.
1161 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1162 datadir sysconfdir sharedstatedir localstatedir includedir \
1163 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1164 libdir localedir mandir
1166 eval ac_val
=\$
$ac_var
1167 # Remove trailing slashes.
1170 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1171 eval $ac_var=\
$ac_val;;
1173 # Be sure to have absolute directory names.
1175 [\\/$
]* | ?
:[\\/]* ) continue;;
1176 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1178 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1181 # There might be people who depend on the old broken behavior: `$host'
1182 # used to hold the argument of --host etc.
1183 # FIXME: To remove some day.
1186 target
=$target_alias
1188 # FIXME: To remove some day.
1189 if test "x$host_alias" != x
; then
1190 if test "x$build_alias" = x
; then
1191 cross_compiling
=maybe
1192 elif test "x$build_alias" != "x$host_alias"; then
1198 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1200 test "$silent" = yes && exec 6>/dev
/null
1203 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1204 ac_ls_di
=`ls -di .` &&
1205 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1206 as_fn_error $?
"working directory cannot be determined"
1207 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1208 as_fn_error $?
"pwd does not report name of working directory"
1211 # Find the source files, if location was not specified.
1212 if test -z "$srcdir"; then
1213 ac_srcdir_defaulted
=yes
1214 # Try the directory containing this script, then the parent directory.
1215 ac_confdir
=`$as_dirname -- "$as_myself" ||
1216 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1217 X"$as_myself" : 'X\(//\)[^/]' \| \
1218 X"$as_myself" : 'X\(//\)$' \| \
1219 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1220 $as_echo X"$as_myself" |
1221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1239 if test ! -r "$srcdir/$ac_unique_file"; then
1243 ac_srcdir_defaulted
=no
1245 if test ! -r "$srcdir/$ac_unique_file"; then
1246 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1247 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1249 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1251 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1253 # When building in place, set srcdir=.
1254 if test "$ac_abs_confdir" = "$ac_pwd"; then
1257 # Remove unnecessary trailing slashes from srcdir.
1258 # Double slashes in file names in object file debugging info
1259 # mess up M-x gdb in Emacs.
1261 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1263 for ac_var
in $ac_precious_vars; do
1264 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1265 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1266 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1267 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1271 # Report the --help message.
1273 if test "$ac_init_help" = "long"; then
1274 # Omit some internal or obsolete options to make the list less imposing.
1275 # This message is too long to be a string in the A/UX 3.1 sh.
1277 \`configure' configures readline 7.0 to adapt to many kinds of systems.
1279 Usage: $0 [OPTION]... [VAR=VALUE]...
1281 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1282 VAR=VALUE. See below for descriptions of some of the useful variables.
1284 Defaults for the options are specified in brackets.
1287 -h, --help display this help and exit
1288 --help=short display options specific to this package
1289 --help=recursive display the short help of all the included packages
1290 -V, --version display version information and exit
1291 -q, --quiet, --silent do not print \`checking ...' messages
1292 --cache-file=FILE cache test results in FILE [disabled]
1293 -C, --config-cache alias for \`--cache-file=config.cache'
1294 -n, --no-create do not create output files
1295 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1297 Installation directories:
1298 --prefix=PREFIX install architecture-independent files in PREFIX
1299 [$ac_default_prefix]
1300 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1303 By default, \`make install' will install all the files in
1304 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1305 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1306 for instance \`--prefix=\$HOME'.
1308 For better control, use the options below.
1310 Fine tuning of the installation directories:
1311 --bindir=DIR user executables [EPREFIX/bin]
1312 --sbindir=DIR system admin executables [EPREFIX/sbin]
1313 --libexecdir=DIR program executables [EPREFIX/libexec]
1314 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1315 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1316 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1317 --libdir=DIR object code libraries [EPREFIX/lib]
1318 --includedir=DIR C header files [PREFIX/include]
1319 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1320 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1321 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1322 --infodir=DIR info documentation [DATAROOTDIR/info]
1323 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1324 --mandir=DIR man documentation [DATAROOTDIR/man]
1325 --docdir=DIR documentation root [DATAROOTDIR/doc/readline]
1326 --htmldir=DIR html documentation [DOCDIR]
1327 --dvidir=DIR dvi documentation [DOCDIR]
1328 --pdfdir=DIR pdf documentation [DOCDIR]
1329 --psdir=DIR ps documentation [DOCDIR]
1335 --build=BUILD configure
for building on BUILD
[guessed
]
1336 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1340 if test -n "$ac_init_help"; then
1341 case $ac_init_help in
1342 short | recursive
) echo "Configuration of readline 7.0:";;
1347 --disable-option-checking ignore unrecognized
--enable/--with options
1348 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1349 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1350 --enable-multibyte enable multibyte characters
if OS supports them
1351 --enable-static build static libraries
[[default
=YES
]]
1352 --disable-largefile omit support
for large files
1355 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1356 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1357 --with-curses use the curses library instead of the termcap
1360 Some influential environment variables
:
1361 CC C compiler
command
1362 CFLAGS C compiler flags
1363 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1364 nonstandard directory
<lib dir
>
1365 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1366 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1367 you have headers
in a nonstandard directory
<include dir
>
1370 Use these variables to override the choices made by
`configure' or to help
1371 it to find libraries and programs with nonstandard names/locations.
1373 Report bugs to <bug-readline@gnu.org>.
1378 if test "$ac_init_help" = "recursive"; then
1379 # If there are subdirs, report their specific --help.
1380 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1381 test -d "$ac_dir" ||
1382 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1390 # A ".." for each directory in $ac_dir_suffix.
1391 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1392 case $ac_top_builddir_sub in
1393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1397 ac_abs_top_builddir=$ac_pwd
1398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1399 # for backward compatibility:
1400 ac_top_builddir=$ac_top_build_prefix
1403 .) # We are building in place.
1405 ac_top_srcdir=$ac_top_builddir_sub
1406 ac_abs_top_srcdir=$ac_pwd ;;
1407 [\\/]* | ?:[\\/]* ) # Absolute name.
1408 ac_srcdir=$srcdir$ac_dir_suffix;
1409 ac_top_srcdir=$srcdir
1410 ac_abs_top_srcdir=$srcdir ;;
1412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1413 ac_top_srcdir=$ac_top_build_prefix$srcdir
1414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1418 cd "$ac_dir" || { ac_status=$?; continue; }
1419 # Check for guested configure.
1420 if test -f "$ac_srcdir/configure.gnu"; then
1422 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1423 elif test -f "$ac_srcdir/configure"; then
1425 $SHELL "$ac_srcdir/configure" --help=recursive
1427 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1429 cd "$ac_pwd" || { ac_status=$?; break; }
1433 test -n "$ac_init_help" && exit $ac_status
1434 if $ac_init_version; then
1436 readline configure 7.0
1437 generated by GNU Autoconf 2.69
1439 Copyright (C) 2012 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1446 ## ------------------------ ##
1447 ## Autoconf initialization. ##
1448 ## ------------------------ ##
1450 # ac_fn_c_try_compile LINENO
1451 # --------------------------
1452 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1453 ac_fn_c_try_compile ()
1455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1456 rm -f conftest.$ac_objext
1457 if { { ac_try="$ac_compile"
1459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1460 *) ac_try_echo
=$ac_try;;
1462 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1463 $as_echo "$ac_try_echo"; } >&5
1464 (eval "$ac_compile") 2>conftest.err
1466 if test -s conftest.err
; then
1467 grep -v '^ *+' conftest.err
>conftest.er1
1468 cat conftest.er1
>&5
1469 mv -f conftest.er1 conftest.err
1471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1472 test $ac_status = 0; } && {
1473 test -z "$ac_c_werror_flag" ||
1474 test ! -s conftest.err
1475 } && test -s conftest.
$ac_objext; then :
1478 $as_echo "$as_me: failed program was:" >&5
1479 sed 's/^/| /' conftest.
$ac_ext >&5
1483 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1484 as_fn_set_status
$ac_retval
1486 } # ac_fn_c_try_compile
1488 # ac_fn_c_try_cpp LINENO
1489 # ----------------------
1490 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1493 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1494 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1497 *) ac_try_echo=$ac_try;;
1499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1500 $as_echo "$ac_try_echo"; } >&5
1501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1503 if test -s conftest.err; then
1504 grep -v '^ *+' conftest.err >conftest.er1
1505 cat conftest.er1 >&5
1506 mv -f conftest.er1 conftest.err
1508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1509 test $ac_status = 0; } > conftest.i && {
1510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1511 test ! -s conftest.err
1515 $as_echo "$as_me: failed program was:" >&5
1516 sed 's/^/| /' conftest.$ac_ext >&5
1520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1521 as_fn_set_status $ac_retval
1525 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1526 # -------------------------------------------------------
1527 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1528 # the include files in INCLUDES and setting the cache variable VAR
1530 ac_fn_c_check_header_mongrel ()
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 if eval \${$3+:} false; then :
1534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1535 $as_echo_n "checking for $2... " >&6; }
1536 if eval \${$3+:} false; then :
1537 $as_echo_n "(cached) " >&6
1540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1541 $as_echo "$ac_res" >&6; }
1543 # Is the header compilable?
1544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1545 $as_echo_n "checking $2 usability... " >&6; }
1546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1547 /* end confdefs.h. */
1551 if ac_fn_c_try_compile "$LINENO"; then :
1552 ac_header_compiler=yes
1554 ac_header_compiler=no
1556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1558 $as_echo "$ac_header_compiler" >&6; }
1560 # Is the header present?
1561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1562 $as_echo_n "checking $2 presence... " >&6; }
1563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1564 /* end confdefs.h. */
1567 if ac_fn_c_try_cpp "$LINENO"; then :
1568 ac_header_preproc=yes
1570 ac_header_preproc=no
1572 rm -f conftest.err conftest.i conftest.$ac_ext
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1574 $as_echo "$ac_header_preproc" >&6; }
1576 # So? What about this header?
1577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1580 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1582 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1586 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1588 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1590 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1592 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1594 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1595 ( $as_echo "## ----------------------------------- ##
1596 ## Report this to bug-readline@gnu.org ##
1597 ## ----------------------------------- ##"
1598 ) | sed "s/^/$as_me: WARNING: /" >&2
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602 $as_echo_n "checking for $2... " >&6; }
1603 if eval \${$3+:} false; then :
1604 $as_echo_n "(cached) " >&6
1606 eval "$3=\$ac_header_compiler"
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1610 $as_echo "$ac_res" >&6; }
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614 } # ac_fn_c_check_header_mongrel
1616 # ac_fn_c_try_run LINENO
1617 # ----------------------
1618 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1619 # that executables *can* be run.
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if { { ac_try="$ac_link"
1625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1626 *) ac_try_echo
=$ac_try;;
1628 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_link") 2>&5
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1634 { { case "(($ac_try" in
1635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_try") 2>&5
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; }; }; then :
1646 $as_echo "$as_me: program exited with status $ac_status" >&5
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1650 ac_retval=$ac_status
1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1658 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists and can be compiled using the include files in
1661 # INCLUDES, setting the cache variable VAR accordingly.
1662 ac_fn_c_check_header_compile ()
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if eval \${$3+:} false; then :
1668 $as_echo_n "(cached) " >&6
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1675 if ac_fn_c_try_compile "$LINENO"; then :
1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 } # ac_fn_c_check_header_compile
1689 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1690 # -------------------------------------------
1691 # Tests whether TYPE exists after having included INCLUDES, setting cache
1692 # variable VAR accordingly.
1693 ac_fn_c_check_type ()
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697 $as_echo_n "checking for $2... " >&6; }
1698 if eval \${$3+:} false; then :
1699 $as_echo_n "(cached) " >&6
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h. */
1714 if ac_fn_c_try_compile "$LINENO"; then :
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1727 if ac_fn_c_try_compile "$LINENO"; then :
1732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 } # ac_fn_c_check_type
1743 # ac_fn_c_try_link LINENO
1744 # -----------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded.
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 rm -f conftest.$ac_objext conftest$ac_exeext
1750 if { { ac_try="$ac_link"
1752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1753 *) ac_try_echo
=$ac_try;;
1755 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>conftest.err
1759 if test -s conftest.err
; then
1760 grep -v '^ *+' conftest.err
>conftest.er1
1761 cat conftest.er1
>&5
1762 mv -f conftest.er1 conftest.err
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && {
1766 test -z "$ac_c_werror_flag" ||
1767 test ! -s conftest.err
1768 } && test -s conftest
$ac_exeext && {
1769 test "$cross_compiling" = yes ||
1770 test -x conftest
$ac_exeext
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.
$ac_ext >&5
1779 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1780 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1781 # interfere with the next link command; also delete a directory that is
1782 # left behind by Apple's compiler. We do this before executing the actions.
1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status
$ac_retval
1787 } # ac_fn_c_try_link
1789 # ac_fn_c_check_func LINENO FUNC VAR
1790 # ----------------------------------
1791 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1792 ac_fn_c_check_func
()
1794 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if eval \
${$3+:} false
; then :
1798 $as_echo_n "(cached) " >&6
1800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1804 #define $2 innocuous_$2
1806 /* System header to define __stub macros and hopefully few prototypes,
1807 which can conflict with char $2 (); below.
1808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1809 <limits.h> exists even on freestanding compilers. */
1812 # include <limits.h>
1814 # include <assert.h>
1819 /* Override any GCC internal prototype to avoid an error.
1820 Use char because int might match the return type of a GCC
1821 builtin and then its argument prototype would still apply. */
1826 /* The GNU C library defines this for functions which it implements
1827 to always fail with ENOSYS. Some functions are actually named
1828 something starting with __ and the normal name is an alias. */
1829 #if defined __stub_$2 || defined __stub___$2
1841 if ac_fn_c_try_link
"$LINENO"; then :
1846 rm -f core conftest.err conftest.
$ac_objext \
1847 conftest
$ac_exeext conftest.
$ac_ext
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 } # ac_fn_c_check_func
1856 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1857 # ---------------------------------------------
1858 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1860 ac_fn_c_check_decl
()
1862 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1863 as_decl_name
=`echo $2|sed 's/ *(.*//'`
1864 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1866 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1867 if eval \
${$3+:} false
; then :
1868 $as_echo_n "(cached) " >&6
1870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1876 #ifndef $as_decl_name
1878 (void) $as_decl_use;
1880 (void) $as_decl_name;
1888 if ac_fn_c_try_compile
"$LINENO"; then :
1893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 } # ac_fn_c_check_decl
1901 cat >config.log
<<_ACEOF
1902 This file contains any messages produced by compilers while
1903 running configure, to aid debugging if configure makes a mistake.
1905 It was created by readline $as_me 7.0, which was
1906 generated by GNU Autoconf 2.69. Invocation command line was
1918 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1919 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1920 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1921 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1922 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1924 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1925 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1927 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1928 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1929 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1930 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1931 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1932 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1933 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1941 test -z "$as_dir" && as_dir
=.
1942 $as_echo "PATH: $as_dir"
1958 # Keep a trace of the command line.
1959 # Strip out --no-create and --no-recursion so they do not pile up.
1960 # Strip out --silent because we don't want to record it for future runs.
1961 # Also quote any args containing shell meta-characters.
1962 # Make two passes to allow for proper duplicate-argument suppression.
1966 ac_must_keep_next
=false
1972 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1973 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1974 |
-silent |
--silent |
--silen |
--sile |
--sil)
1977 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1980 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1982 as_fn_append ac_configure_args1
" '$ac_arg'"
1983 if test $ac_must_keep_next = true
; then
1984 ac_must_keep_next
=false
# Got value, back to normal.
1987 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1988 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1989 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1990 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1991 case "$ac_configure_args0 " in
1992 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1995 -* ) ac_must_keep_next
=true
;;
1998 as_fn_append ac_configure_args
" '$ac_arg'"
2003 { ac_configure_args0
=; unset ac_configure_args0
;}
2004 { ac_configure_args1
=; unset ac_configure_args1
;}
2006 # When interrupted or exit'd, cleanup temporary files, and complete
2007 # config.log. We remove comments because anyway the quotes in there
2008 # would cause problems or look ugly.
2009 # WARNING: Use '\'' to represent an apostrophe within the trap.
2010 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2011 trap 'exit_status=$?
2012 # Save into config.log some information that might help in debugging.
2016 $as_echo "## ---------------- ##
2017 ## Cache variables. ##
2018 ## ---------------- ##"
2020 # The following way of writing the cache mishandles newlines in values,
2022 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2023 eval ac_val=\$$ac_var
2027 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2028 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2031 _ | IFS | as_nl) ;; #(
2032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2033 *) { eval $ac_var=; unset $ac_var;} ;;
2038 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2039 *${as_nl}ac_space=\ *)
2041 "s/'\''/'\''\\\\'\'''\''/g;
2042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2045 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2052 $as_echo "## ----------------- ##
2053 ## Output variables. ##
2054 ## ----------------- ##"
2056 for ac_var in $ac_subst_vars
2058 eval ac_val=\$$ac_var
2060 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2062 $as_echo "$ac_var='\''$ac_val'\''"
2066 if test -n "$ac_subst_files"; then
2067 $as_echo "## ------------------- ##
2068 ## File substitutions. ##
2069 ## ------------------- ##"
2071 for ac_var
in $ac_subst_files
2073 eval ac_val
=\$
$ac_var
2075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2077 $as_echo "$ac_var='\''$ac_val'\''"
2082 if test -s confdefs.h; then
2083 $as_echo "## ----------- ##
2090 test "$ac_signal" != 0 &&
2091 $as_echo "$as_me: caught signal $ac_signal"
2092 $as_echo "$as_me: exit $exit_status"
2094 rm -f core *.core core.conftest.* &&
2095 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2098 for ac_signal
in 1 2 13 15; do
2099 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2103 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2104 rm -f -r conftest
* confdefs.h
2106 $as_echo "/* confdefs.h */" > confdefs.h
2108 # Predefined preprocessor variables.
2110 cat >>confdefs.h
<<_ACEOF
2111 #define PACKAGE_NAME "$PACKAGE_NAME"
2114 cat >>confdefs.h
<<_ACEOF
2115 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2118 cat >>confdefs.h
<<_ACEOF
2119 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2122 cat >>confdefs.h
<<_ACEOF
2123 #define PACKAGE_STRING "$PACKAGE_STRING"
2126 cat >>confdefs.h
<<_ACEOF
2127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2130 cat >>confdefs.h
<<_ACEOF
2131 #define PACKAGE_URL "$PACKAGE_URL"
2135 # Let the site file select an alternate cache file if it wants to.
2136 # Prefer an explicitly selected file to automatically selected ones.
2139 if test -n "$CONFIG_SITE"; then
2140 # We do not want a PATH search for config.site.
2141 case $CONFIG_SITE in #((
2142 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2143 */*) ac_site_file1
=$CONFIG_SITE;;
2144 *) ac_site_file1
=.
/$CONFIG_SITE;;
2146 elif test "x$prefix" != xNONE
; then
2147 ac_site_file1
=$prefix/share
/config.site
2148 ac_site_file2
=$prefix/etc
/config.site
2150 ac_site_file1
=$ac_default_prefix/share
/config.site
2151 ac_site_file2
=$ac_default_prefix/etc
/config.site
2153 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2155 test "x$ac_site_file" = xNONE
&& continue
2156 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2158 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2159 sed 's/^/| /' "$ac_site_file" >&5
2161 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2163 as_fn_error $?
"failed to load site script $ac_site_file
2164 See \`config.log' for more details" "$LINENO" 5; }
2168 if test -r "$cache_file"; then
2169 # Some versions of bash will fail to source /dev/null (special files
2170 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2171 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2173 $as_echo "$as_me: loading cache $cache_file" >&6;}
2175 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2176 *) .
"./$cache_file";;
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2181 $as_echo "$as_me: creating cache $cache_file" >&6;}
2185 # Check that the precious variables saved in the cache have kept the same
2187 ac_cache_corrupted
=false
2188 for ac_var
in $ac_precious_vars; do
2189 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2190 eval ac_new_set
=\
$ac_env_${ac_var}_set
2191 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2192 eval ac_new_val
=\
$ac_env_${ac_var}_value
2193 case $ac_old_set,$ac_new_set in
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2196 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2197 ac_cache_corrupted
=: ;;
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2200 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2201 ac_cache_corrupted
=: ;;
2204 if test "x$ac_old_val" != "x$ac_new_val"; then
2205 # differences in whitespace do not lead to failure.
2206 ac_old_val_w
=`echo x $ac_old_val`
2207 ac_new_val_w
=`echo x $ac_new_val`
2208 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2210 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2211 ac_cache_corrupted
=:
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2214 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2215 eval $ac_var=\
$ac_old_val
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2218 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2220 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2223 # Pass precious variables to config.status.
2224 if test "$ac_new_set" = set; then
2226 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2227 *) ac_arg
=$ac_var=$ac_new_val ;;
2229 case " $ac_configure_args " in
2230 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2231 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2235 if $ac_cache_corrupted; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2239 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2240 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2242 ## -------------------- ##
2243 ## Main body of script. ##
2244 ## -------------------- ##
2247 ac_cpp
='$CPP $CPPFLAGS'
2248 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2249 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2250 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2261 for ac_dir
in `cd $srcdir;pwd`/..
"$srcdir"/`cd $srcdir;pwd`/..
; do
2262 if test -f "$ac_dir/install-sh"; then
2264 ac_install_sh
="$ac_aux_dir/install-sh -c"
2266 elif test -f "$ac_dir/install.sh"; then
2268 ac_install_sh
="$ac_aux_dir/install.sh -c"
2270 elif test -f "$ac_dir/shtool"; then
2272 ac_install_sh
="$ac_aux_dir/shtool install -c"
2276 if test -z "$ac_aux_dir"; then
2277 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \`cd $srcdir;pwd\`/.. \"$srcdir\"/\`cd $srcdir;pwd\`/.." "$LINENO" 5
2280 # These three variables are undocumented and unsupported,
2281 # and are intended to be withdrawn in a future Autoconf release.
2282 # They can cause serious problems if a builder's source tree is in a directory
2283 # whose full name contains unusual characters.
2284 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2285 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2286 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2289 ac_config_headers
="$ac_config_headers config.h"
2294 # Make sure we can run config.sub.
2295 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2296 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2299 $as_echo_n "checking build system type... " >&6; }
2300 if ${ac_cv_build+:} false
; then :
2301 $as_echo_n "(cached) " >&6
2303 ac_build_alias
=$build_alias
2304 test "x$ac_build_alias" = x
&&
2305 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2306 test "x$ac_build_alias" = x
&&
2307 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2308 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2309 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2313 $as_echo "$ac_cv_build" >&6; }
2314 case $ac_cv_build in
2316 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2319 ac_save_IFS
=$IFS; IFS
='-'
2325 # Remember, the first character of IFS is used to create $*,
2326 # except with old shells:
2329 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2333 $as_echo_n "checking host system type... " >&6; }
2334 if ${ac_cv_host+:} false
; then :
2335 $as_echo_n "(cached) " >&6
2337 if test "x$host_alias" = x
; then
2338 ac_cv_host
=$ac_cv_build
2340 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2341 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2346 $as_echo "$ac_cv_host" >&6; }
2349 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2352 ac_save_IFS
=$IFS; IFS
='-'
2358 # Remember, the first character of IFS is used to create $*,
2359 # except with old shells:
2362 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2370 # Check whether --with-curses was given.
2371 if test "${with_curses+set}" = set; then :
2372 withval
=$with_curses; opt_curses
=$withval
2376 if test "$opt_curses" = "yes"; then
2384 # Check whether --enable-multibyte was given.
2385 if test "${enable_multibyte+set}" = set; then :
2386 enableval
=$enable_multibyte; opt_multibyte
=$enableval
2389 # Check whether --enable-static was given.
2390 if test "${enable_static+set}" = set; then :
2391 enableval
=$enable_static; opt_static_libs
=$enableval
2395 if test $opt_multibyte = no
; then
2396 $as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h
2403 if test "x$cross_compiling" = "xyes"; then
2406 cross_cache
=${srcdir}/cross-build
/cygwin.cache
2409 cross_cache
=${srcdir}/cross-build
/mingw.cache
2412 cross_cache
=${srcdir}/cross-build
/x86-beos.cache
2414 *) echo "configure: cross-compiling for $host is not supported" >&2
2417 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
2418 echo "loading cross-build cache file ${cross_cache}"
2422 CROSS_COMPILE
='-DCROSS_COMPILING'
2427 echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}"
2430 # We want these before the checks, so the checks can modify their values.
2431 test -z "$CFLAGS" && CFLAGS
=-g auto_cflags
=1
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2434 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2436 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2437 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2438 $as_echo_n "(cached) " >&6
2440 cat >conftest.
make <<\_ACEOF
2443 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2445 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2446 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2448 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2450 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2454 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2456 $as_echo "yes" >&6; }
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2460 $as_echo "no" >&6; }
2461 SET_MAKE
="MAKE=${MAKE-make}"
2465 ac_cpp
='$CPP $CPPFLAGS'
2466 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2469 if test -n "$ac_tool_prefix"; then
2470 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2471 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2473 $as_echo_n "checking for $ac_word... " >&6; }
2474 if ${ac_cv_prog_CC+:} false
; then :
2475 $as_echo_n "(cached) " >&6
2477 if test -n "$CC"; then
2478 ac_cv_prog_CC
="$CC" # Let the user override the test.
2480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2484 test -z "$as_dir" && as_dir
=.
2485 for ac_exec_ext
in '' $ac_executable_extensions; do
2486 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2487 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 if test -n "$CC"; then
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2500 $as_echo "$CC" >&6; }
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2503 $as_echo "no" >&6; }
2508 if test -z "$ac_cv_prog_CC"; then
2510 # Extract the first word of "gcc", so it can be a program name with args.
2511 set dummy gcc
; ac_word
=$2
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2513 $as_echo_n "checking for $ac_word... " >&6; }
2514 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2515 $as_echo_n "(cached) " >&6
2517 if test -n "$ac_ct_CC"; then
2518 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2520 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2524 test -z "$as_dir" && as_dir
=.
2525 for ac_exec_ext
in '' $ac_executable_extensions; do
2526 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2527 ac_cv_prog_ac_ct_CC
="gcc"
2528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2538 if test -n "$ac_ct_CC"; then
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2540 $as_echo "$ac_ct_CC" >&6; }
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543 $as_echo "no" >&6; }
2546 if test "x$ac_ct_CC" = x
; then
2549 case $cross_compiling:$ac_tool_warned in
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2553 ac_tool_warned
=yes ;;
2561 if test -z "$CC"; then
2562 if test -n "$ac_tool_prefix"; then
2563 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2564 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2566 $as_echo_n "checking for $ac_word... " >&6; }
2567 if ${ac_cv_prog_CC+:} false
; then :
2568 $as_echo_n "(cached) " >&6
2570 if test -n "$CC"; then
2571 ac_cv_prog_CC
="$CC" # Let the user override the test.
2573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2577 test -z "$as_dir" && as_dir
=.
2578 for ac_exec_ext
in '' $ac_executable_extensions; do
2579 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2580 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 if test -n "$CC"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2593 $as_echo "$CC" >&6; }
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596 $as_echo "no" >&6; }
2602 if test -z "$CC"; then
2603 # Extract the first word of "cc", so it can be a program name with args.
2604 set dummy cc
; ac_word
=$2
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if ${ac_cv_prog_CC+:} false
; then :
2608 $as_echo_n "(cached) " >&6
2610 if test -n "$CC"; then
2611 ac_cv_prog_CC
="$CC" # Let the user override the test.
2614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2618 test -z "$as_dir" && as_dir
=.
2619 for ac_exec_ext
in '' $ac_executable_extensions; do
2620 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2621 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2622 ac_prog_rejected
=yes
2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 if test $ac_prog_rejected = yes; then
2634 # We found a bogon in the path, so make sure we never use it.
2635 set dummy
$ac_cv_prog_CC
2637 if test $# != 0; then
2638 # We chose a different compiler from the bogus one.
2639 # However, it has the same basename, so the bogon will be chosen
2640 # first if we set CC to just the basename; use the full file name.
2642 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2648 if test -n "$CC"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2650 $as_echo "$CC" >&6; }
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653 $as_echo "no" >&6; }
2658 if test -z "$CC"; then
2659 if test -n "$ac_tool_prefix"; then
2660 for ac_prog
in cl.exe
2662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2663 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if ${ac_cv_prog_CC+:} false
; then :
2667 $as_echo_n "(cached) " >&6
2669 if test -n "$CC"; then
2670 ac_cv_prog_CC
="$CC" # Let the user override the test.
2672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2676 test -z "$as_dir" && as_dir
=.
2677 for ac_exec_ext
in '' $ac_executable_extensions; do
2678 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2679 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 if test -n "$CC"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2692 $as_echo "$CC" >&6; }
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2699 test -n "$CC" && break
2702 if test -z "$CC"; then
2704 for ac_prog
in cl.exe
2706 # Extract the first word of "$ac_prog", so it can be a program name with args.
2707 set dummy
$ac_prog; ac_word
=$2
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709 $as_echo_n "checking for $ac_word... " >&6; }
2710 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2711 $as_echo_n "(cached) " >&6
2713 if test -n "$ac_ct_CC"; then
2714 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2720 test -z "$as_dir" && as_dir
=.
2721 for ac_exec_ext
in '' $ac_executable_extensions; do
2722 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2723 ac_cv_prog_ac_ct_CC
="$ac_prog"
2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2734 if test -n "$ac_ct_CC"; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2736 $as_echo "$ac_ct_CC" >&6; }
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739 $as_echo "no" >&6; }
2743 test -n "$ac_ct_CC" && break
2746 if test "x$ac_ct_CC" = x
; then
2749 case $cross_compiling:$ac_tool_warned in
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2753 ac_tool_warned
=yes ;;
2762 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2764 as_fn_error $?
"no acceptable C compiler found in \$PATH
2765 See \`config.log' for more details" "$LINENO" 5; }
2767 # Provide some information about the compiler.
2768 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2771 for ac_option
in --version -v -V -qversion; do
2772 { { ac_try
="$ac_compiler $ac_option >&5"
2774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2778 $as_echo "$ac_try_echo"; } >&5
2779 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2781 if test -s conftest.err; then
2783 ... rest of stderr output deleted ...
2784 10q' conftest.err >conftest.er1
2785 cat conftest.er1 >&5
2787 rm -f conftest.er1 conftest.err
2788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2789 test $ac_status = 0; }
2792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2793 /* end confdefs.h. */
2803 ac_clean_files_save=$ac_clean_files
2804 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2805 # Try to create an executable without -o first, disregard a.out.
2806 # It will help us diagnose broken compilers, and finding out an intuition
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2809 $as_echo_n "checking whether the C compiler works... " >&6; }
2810 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2812 # The possible output files:
2813 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2816 for ac_file in $ac_files
2819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2820 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2825 if { { ac_try="$ac_link_default"
2827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2828 *) ac_try_echo
=$ac_try;;
2830 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2831 $as_echo "$ac_try_echo"; } >&5
2832 (eval "$ac_link_default") 2>&5
2834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2835 test $ac_status = 0; }; then :
2836 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2837 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2838 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2839 # so that the user can short-circuit this test for compilers unknown to
2841 for ac_file
in $ac_files ''
2843 test -f "$ac_file" ||
continue
2845 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2848 # We found the default executable, but exeext='' is most
2852 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2854 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2856 # We set ac_cv_exeext here because the later test for it is not
2857 # safe: cross compilers may not add the suffix if given an `-o'
2858 # argument, so we may need to know it at that point already.
2859 # Even if this section looks crufty: it has the advantage of
2866 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2871 if test -z "$ac_file"; then :
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2874 $as_echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.
$ac_ext >&5
2877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2879 as_fn_error
77 "C compiler cannot create executables
2880 See \`config.log' for more details" "$LINENO" 5; }
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2883 $as_echo "yes" >&6; }
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2886 $as_echo_n "checking for C compiler default output file name... " >&6; }
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2888 $as_echo "$ac_file" >&6; }
2889 ac_exeext
=$ac_cv_exeext
2891 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
2892 ac_clean_files
=$ac_clean_files_save
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2894 $as_echo_n "checking for suffix of executables... " >&6; }
2895 if { { ac_try
="$ac_link"
2897 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2901 $as_echo "$ac_try_echo"; } >&5
2902 (eval "$ac_link") 2>&5
2904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2905 test $ac_status = 0; }; then :
2906 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
2907 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
2908 # work properly (i.e., refer to `conftest.exe'), while it won't with
2910 for ac_file
in conftest.exe conftest conftest.
*; do
2911 test -f "$ac_file" ||
continue
2913 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2914 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2922 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2923 See \`config.log' for more details" "$LINENO" 5; }
2925 rm -f conftest conftest
$ac_cv_exeext
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2927 $as_echo "$ac_cv_exeext" >&6; }
2929 rm -f conftest.
$ac_ext
2930 EXEEXT
=$ac_cv_exeext
2932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2933 /* end confdefs.h. */
2938 FILE *f = fopen ("conftest.out", "w");
2939 return ferror (f) || fclose (f) != 0;
2945 ac_clean_files
="$ac_clean_files conftest.out"
2946 # Check that the compiler produces executables we can run. If not, either
2947 # the compiler is broken, or we cross compile.
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2949 $as_echo_n "checking whether we are cross compiling... " >&6; }
2950 if test "$cross_compiling" != yes; then
2951 { { ac_try
="$ac_link"
2953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2957 $as_echo "$ac_try_echo"; } >&5
2958 (eval "$ac_link") 2>&5
2960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2961 test $ac_status = 0; }
2962 if { ac_try='./conftest$ac_cv_exeext'
2963 { { case "(($ac_try" in
2964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2965 *) ac_try_echo
=$ac_try;;
2967 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2968 $as_echo "$ac_try_echo"; } >&5
2969 (eval "$ac_try") 2>&5
2971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2972 test $ac_status = 0; }; }; then
2975 if test "$cross_compiling" = maybe
; then
2978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2980 as_fn_error $?
"cannot run C compiled programs.
2981 If you meant to cross compile, use \`--host'.
2982 See \`config.log' for more details" "$LINENO" 5; }
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2987 $as_echo "$cross_compiling" >&6; }
2989 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2990 ac_clean_files
=$ac_clean_files_save
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2992 $as_echo_n "checking for suffix of object files... " >&6; }
2993 if ${ac_cv_objext+:} false
; then :
2994 $as_echo_n "(cached) " >&6
2996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2997 /* end confdefs.h. */
3007 rm -f conftest.o conftest.obj
3008 if { { ac_try
="$ac_compile"
3010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3014 $as_echo "$ac_try_echo"; } >&5
3015 (eval "$ac_compile") 2>&5
3017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3018 test $ac_status = 0; }; then :
3019 for ac_file in conftest.o conftest.obj conftest.*; do
3020 test -f "$ac_file" || continue;
3022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3023 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3028 $as_echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3033 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3034 See \
`config.log' for more details" "$LINENO" 5; }
3036 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3039 $as_echo "$ac_cv_objext" >&6; }
3040 OBJEXT=$ac_cv_objext
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3043 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3044 if ${ac_cv_c_compiler_gnu+:} false; then :
3045 $as_echo_n "(cached) " >&6
3047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3048 /* end confdefs.h. */
3061 if ac_fn_c_try_compile "$LINENO"; then :
3066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3071 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3072 if test $ac_compiler_gnu = yes; then
3077 ac_test_CFLAGS=${CFLAGS+set}
3078 ac_save_CFLAGS=$CFLAGS
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3080 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3081 if ${ac_cv_prog_cc_g+:} false; then :
3082 $as_echo_n "(cached) " >&6
3084 ac_save_c_werror_flag=$ac_c_werror_flag
3085 ac_c_werror_flag=yes
3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089 /* end confdefs.h. */
3099 if ac_fn_c_try_compile "$LINENO"; then :
3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104 /* end confdefs.h. */
3114 if ac_fn_c_try_compile "$LINENO"; then :
3117 ac_c_werror_flag=$ac_save_c_werror_flag
3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120 /* end confdefs.h. */
3130 if ac_fn_c_try_compile "$LINENO"; then :
3133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3138 ac_c_werror_flag=$ac_save_c_werror_flag
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3141 $as_echo "$ac_cv_prog_cc_g" >&6; }
3142 if test "$ac_test_CFLAGS" = set; then
3143 CFLAGS=$ac_save_CFLAGS
3144 elif test $ac_cv_prog_cc_g = yes; then
3145 if test "$GCC" = yes; then
3151 if test "$GCC" = yes; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3158 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3159 if ${ac_cv_prog_cc_c89+:} false; then :
3160 $as_echo_n "(cached) " >&6
3162 ac_cv_prog_cc_c89=no
3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165 /* end confdefs.h. */
3169 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3170 struct buf { int x; };
3171 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3172 static char *e (p, i)
3178 static char *f (char * (*g) (char **, int), char **p, ...)
3183 s = g (p, va_arg (v,int));
3188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3189 function prototypes and stuff, but not '\xHH' hex character constants.
3190 These don't provoke an error unfortunately, instead are silently treated
3191 as 'x'. The following induces an error, until -std is added to get
3192 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3193 array size at least. It's necessary to write '\x00'==0 to get something
3194 that's true only with -std. */
3195 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3198 inside strings and character constants. */
3200 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3202 int test (int i, double x);
3203 struct s1 {int (*f) (int a);};
3204 struct s2 {int (*f) (double a);};
3205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3211 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3216 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3217 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3219 CC="$ac_save_CC $ac_arg"
3220 if ac_fn_c_try_compile "$LINENO"; then :
3221 ac_cv_prog_cc_c89=$ac_arg
3223 rm -f core conftest.err conftest.$ac_objext
3224 test "x$ac_cv_prog_cc_c89" != "xno" && break
3226 rm -f conftest.$ac_ext
3231 case "x$ac_cv_prog_cc_c89" in
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3234 $as_echo "none needed" >&6; } ;;
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3237 $as_echo "unsupported" >&6; } ;;
3239 CC="$CC $ac_cv_prog_cc_c89"
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3241 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3243 if test "x$ac_cv_prog_cc_c89" != xno; then :
3248 ac_cpp='$CPP $CPPFLAGS'
3249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3255 ac_cpp='$CPP $CPPFLAGS'
3256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3260 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3261 # On Suns, sometimes $CPP names a directory.
3262 if test -n "$CPP" && test -d "$CPP"; then
3265 if test -z "$CPP"; then
3266 if ${ac_cv_prog_CPP+:} false; then :
3267 $as_echo_n "(cached) " >&6
3269 # Double quotes because CPP needs to be expanded
3270 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3273 for ac_c_preproc_warn_flag in '' yes
3275 # Use a header file that comes with gcc, so configuring glibc
3276 # with a fresh cross-compiler works.
3277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3278 # <limits.h> exists even on freestanding compilers.
3279 # On the NeXT, cc -E runs the code through the compiler's parser,
3280 # not just through cpp. "Syntax error" is here to catch this case.
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3284 # include <limits.h>
3286 # include <assert.h>
3290 if ac_fn_c_try_cpp "$LINENO"; then :
3293 # Broken: fails on valid input.
3296 rm -f conftest.err conftest.i conftest.$ac_ext
3298 # OK, works on sane cases. Now check whether nonexistent headers
3299 # can be detected and how.
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3302 #include <ac_nonexistent.h>
3304 if ac_fn_c_try_cpp "$LINENO"; then :
3305 # Broken: success on invalid input.
3308 # Passes both tests.
3312 rm -f conftest.err conftest.i conftest.$ac_ext
3315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3316 rm -f conftest.i conftest.err conftest.
$ac_ext
3317 if $ac_preproc_ok; then :
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3330 $as_echo "$CPP" >&6; }
3332 for ac_c_preproc_warn_flag
in '' yes
3334 # Use a header file that comes with gcc, so configuring glibc
3335 # with a fresh cross-compiler works.
3336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3337 # <limits.h> exists even on freestanding compilers.
3338 # On the NeXT, cc -E runs the code through the compiler's parser,
3339 # not just through cpp. "Syntax error" is here to catch this case.
3340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h. */
3343 # include <limits.h>
3345 # include <assert.h>
3349 if ac_fn_c_try_cpp
"$LINENO"; then :
3352 # Broken: fails on valid input.
3355 rm -f conftest.err conftest.i conftest.
$ac_ext
3357 # OK, works on sane cases. Now check whether nonexistent headers
3358 # can be detected and how.
3359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3361 #include <ac_nonexistent.h>
3363 if ac_fn_c_try_cpp
"$LINENO"; then :
3364 # Broken: success on invalid input.
3367 # Passes both tests.
3371 rm -f conftest.err conftest.i conftest.
$ac_ext
3374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3375 rm -f conftest.i conftest.err conftest.
$ac_ext
3376 if $ac_preproc_ok; then :
3379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3382 See \`config.log' for more details" "$LINENO" 5; }
3386 ac_cpp
='$CPP $CPPFLAGS'
3387 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3393 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3394 if ${ac_cv_path_GREP+:} false
; then :
3395 $as_echo_n "(cached) " >&6
3397 if test -z "$GREP"; then
3398 ac_path_GREP_found
=false
3399 # Loop through the user's path and test for each of PROGNAME-LIST
3400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3401 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3404 test -z "$as_dir" && as_dir
=.
3405 for ac_prog
in grep ggrep
; do
3406 for ac_exec_ext
in '' $ac_executable_extensions; do
3407 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3408 as_fn_executable_p
"$ac_path_GREP" ||
continue
3409 # Check for GNU ac_path_GREP and select it if it is found.
3410 # Check for GNU $ac_path_GREP
3411 case `"$ac_path_GREP" --version 2>&1` in
3413 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3416 $as_echo_n 0123456789 >"conftest.in"
3419 cat "conftest.in" "conftest.in" >"conftest.tmp"
3420 mv "conftest.tmp" "conftest.in"
3421 cp "conftest.in" "conftest.nl"
3422 $as_echo 'GREP' >> "conftest.nl"
3423 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3424 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3425 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3426 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3427 # Best one so far, save it but keep looking for a better one
3428 ac_cv_path_GREP
="$ac_path_GREP"
3429 ac_path_GREP_max
=$ac_count
3431 # 10*(2^10) chars as input seems more than enough
3432 test $ac_count -gt 10 && break
3434 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3437 $ac_path_GREP_found && break 3
3442 if test -z "$ac_cv_path_GREP"; then
3443 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3446 ac_cv_path_GREP
=$GREP
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3451 $as_echo "$ac_cv_path_GREP" >&6; }
3452 GREP
="$ac_cv_path_GREP"
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3456 $as_echo_n "checking for egrep... " >&6; }
3457 if ${ac_cv_path_EGREP+:} false
; then :
3458 $as_echo_n "(cached) " >&6
3460 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3461 then ac_cv_path_EGREP
="$GREP -E"
3463 if test -z "$EGREP"; then
3464 ac_path_EGREP_found
=false
3465 # Loop through the user's path and test for each of PROGNAME-LIST
3466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3467 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3470 test -z "$as_dir" && as_dir
=.
3471 for ac_prog
in egrep; do
3472 for ac_exec_ext
in '' $ac_executable_extensions; do
3473 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3474 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3475 # Check for GNU ac_path_EGREP and select it if it is found.
3476 # Check for GNU $ac_path_EGREP
3477 case `"$ac_path_EGREP" --version 2>&1` in
3479 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3482 $as_echo_n 0123456789 >"conftest.in"
3485 cat "conftest.in" "conftest.in" >"conftest.tmp"
3486 mv "conftest.tmp" "conftest.in"
3487 cp "conftest.in" "conftest.nl"
3488 $as_echo 'EGREP' >> "conftest.nl"
3489 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3490 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3491 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3492 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3493 # Best one so far, save it but keep looking for a better one
3494 ac_cv_path_EGREP
="$ac_path_EGREP"
3495 ac_path_EGREP_max
=$ac_count
3497 # 10*(2^10) chars as input seems more than enough
3498 test $ac_count -gt 10 && break
3500 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3503 $ac_path_EGREP_found && break 3
3508 if test -z "$ac_cv_path_EGREP"; then
3509 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3512 ac_cv_path_EGREP
=$EGREP
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3518 $as_echo "$ac_cv_path_EGREP" >&6; }
3519 EGREP
="$ac_cv_path_EGREP"
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3523 $as_echo_n "checking for ANSI C header files... " >&6; }
3524 if ${ac_cv_header_stdc+:} false
; then :
3525 $as_echo_n "(cached) " >&6
3527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3542 if ac_fn_c_try_compile
"$LINENO"; then :
3543 ac_cv_header_stdc
=yes
3545 ac_cv_header_stdc
=no
3547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3549 if test $ac_cv_header_stdc = yes; then
3550 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h. */
3556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3557 $EGREP "memchr" >/dev
/null
2>&1; then :
3560 ac_cv_header_stdc
=no
3566 if test $ac_cv_header_stdc = yes; then
3567 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3574 $EGREP "free" >/dev
/null
2>&1; then :
3577 ac_cv_header_stdc
=no
3583 if test $ac_cv_header_stdc = yes; then
3584 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3585 if test "$cross_compiling" = yes; then :
3588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3592 #if ((' ' & 0x0FF) == 0x020)
3593 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3594 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3596 # define ISLOWER(c) \
3597 (('a' <= (c) && (c) <= 'i') \
3598 || ('j' <= (c) && (c) <= 'r') \
3599 || ('s' <= (c) && (c) <= 'z'))
3600 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3603 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3608 for (i = 0; i < 256; i++)
3609 if (XOR (islower (i), ISLOWER (i))
3610 || toupper (i) != TOUPPER (i))
3615 if ac_fn_c_try_run
"$LINENO"; then :
3618 ac_cv_header_stdc
=no
3620 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3621 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3627 $as_echo "$ac_cv_header_stdc" >&6; }
3628 if test $ac_cv_header_stdc = yes; then
3630 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3634 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3635 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3636 inttypes.h stdint.h unistd.h
3638 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3639 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3641 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3642 cat >>confdefs.h
<<_ACEOF
3643 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3652 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3653 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3660 if test "$MINIX" = yes; then
3662 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3665 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3668 $as_echo "#define _MINIX 1" >>confdefs.h
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3674 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3675 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3676 $as_echo_n "(cached) " >&6
3678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3681 # define __EXTENSIONS__ 1
3682 $ac_includes_default
3691 if ac_fn_c_try_compile
"$LINENO"; then :
3692 ac_cv_safe_to_define___extensions__
=yes
3694 ac_cv_safe_to_define___extensions__
=no
3696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3699 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3700 test $ac_cv_safe_to_define___extensions__ = yes &&
3701 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3703 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3705 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3707 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3709 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3714 # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
3715 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS
="$CFLAGS -O"
3717 if test $ac_cv_c_compiler_gnu = yes; then
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3719 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3720 if ${ac_cv_prog_gcc_traditional+:} false
; then :
3721 $as_echo_n "(cached) " >&6
3723 ac_pattern
="Autoconf.*'x'"
3724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3730 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
3731 ac_cv_prog_gcc_traditional
=yes
3733 ac_cv_prog_gcc_traditional
=no
3738 if test $ac_cv_prog_gcc_traditional = no
; then
3739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3745 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
3746 ac_cv_prog_gcc_traditional
=yes
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3753 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3754 if test $ac_cv_prog_gcc_traditional = yes; then
3755 CC
="$CC -traditional"
3759 # Find a good install program. We prefer a C program (faster),
3760 # so one script is as good as another. But avoid the broken or
3761 # incompatible versions:
3762 # SysV /etc/install, /usr/sbin/install
3763 # SunOS /usr/etc/install
3764 # IRIX /sbin/install
3766 # AmigaOS /C/install, which installs bootblocks on floppy discs
3767 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3768 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3769 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3770 # OS/2's system install, which has a completely different semantic
3771 # ./install, which can be erroneously created by make from ./install.sh.
3772 # Reject install programs that cannot install multiple files.
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3774 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3775 if test -z "$INSTALL"; then
3776 if ${ac_cv_path_install+:} false
; then :
3777 $as_echo_n "(cached) " >&6
3779 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3783 test -z "$as_dir" && as_dir
=.
3784 # Account for people who put trailing slashes in PATH elements.
3785 case $as_dir/ in #((
3786 .
/ | .
// |
/[cC
]/* | \
3787 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3788 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3791 # OSF1 and SCO ODT 3.0 have their own names for install.
3792 # Don't use installbsd from OSF since it installs stuff as root
3794 for ac_prog
in ginstall scoinst
install; do
3795 for ac_exec_ext
in '' $ac_executable_extensions; do
3796 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
3797 if test $ac_prog = install &&
3798 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3799 # AIX install. It has an incompatible calling convention.
3801 elif test $ac_prog = install &&
3802 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3803 # program-specific install script used by HP pwplus--don't use.
3806 rm -rf conftest.one conftest.two conftest.dir
3807 echo one
> conftest.one
3808 echo two
> conftest.two
3810 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3811 test -s conftest.one
&& test -s conftest.two
&&
3812 test -s conftest.dir
/conftest.one
&&
3813 test -s conftest.dir
/conftest.two
3815 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3828 rm -rf conftest.one conftest.two conftest.dir
3831 if test "${ac_cv_path_install+set}" = set; then
3832 INSTALL
=$ac_cv_path_install
3834 # As a last resort, use the slow shell script. Don't cache a
3835 # value for INSTALL within a source directory, because that will
3836 # break other packages using the cache if that directory is
3837 # removed, or if the value is a relative name.
3838 INSTALL
=$ac_install_sh
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3842 $as_echo "$INSTALL" >&6; }
3844 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3845 # It thinks the first close brace ends the variable substitution.
3846 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3848 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3850 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3852 if test -n "$ac_tool_prefix"; then
3853 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3854 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if ${ac_cv_prog_AR+:} false
; then :
3858 $as_echo_n "(cached) " >&6
3860 if test -n "$AR"; then
3861 ac_cv_prog_AR
="$AR" # Let the user override the test.
3863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3867 test -z "$as_dir" && as_dir
=.
3868 for ac_exec_ext
in '' $ac_executable_extensions; do
3869 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 if test -n "$AR"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3883 $as_echo "$AR" >&6; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3891 if test -z "$ac_cv_prog_AR"; then
3893 # Extract the first word of "ar", so it can be a program name with args.
3894 set dummy
ar; ac_word
=$2
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896 $as_echo_n "checking for $ac_word... " >&6; }
3897 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
3898 $as_echo_n "(cached) " >&6
3900 if test -n "$ac_ct_AR"; then
3901 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
3903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3907 test -z "$as_dir" && as_dir
=.
3908 for ac_exec_ext
in '' $ac_executable_extensions; do
3909 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3910 ac_cv_prog_ac_ct_AR
="ar"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
3921 if test -n "$ac_ct_AR"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3923 $as_echo "$ac_ct_AR" >&6; }
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3929 if test "x$ac_ct_AR" = x
; then
3932 case $cross_compiling:$ac_tool_warned in
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3936 ac_tool_warned
=yes ;;
3944 test -n "$ARFLAGS" || ARFLAGS
="cr"
3945 if test -n "$ac_tool_prefix"; then
3946 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3947 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if ${ac_cv_prog_RANLIB+:} false
; then :
3951 $as_echo_n "(cached) " >&6
3953 if test -n "$RANLIB"; then
3954 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3960 test -z "$as_dir" && as_dir
=.
3961 for ac_exec_ext
in '' $ac_executable_extensions; do
3962 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3963 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 RANLIB
=$ac_cv_prog_RANLIB
3974 if test -n "$RANLIB"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3976 $as_echo "$RANLIB" >&6; }
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3984 if test -z "$ac_cv_prog_RANLIB"; then
3985 ac_ct_RANLIB
=$RANLIB
3986 # Extract the first word of "ranlib", so it can be a program name with args.
3987 set dummy ranlib
; ac_word
=$2
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3989 $as_echo_n "checking for $ac_word... " >&6; }
3990 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
3991 $as_echo_n "(cached) " >&6
3993 if test -n "$ac_ct_RANLIB"; then
3994 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4000 test -z "$as_dir" && as_dir
=.
4001 for ac_exec_ext
in '' $ac_executable_extensions; do
4002 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4003 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4014 if test -n "$ac_ct_RANLIB"; then
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4016 $as_echo "$ac_ct_RANLIB" >&6; }
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019 $as_echo "no" >&6; }
4022 if test "x$ac_ct_RANLIB" = x
; then
4025 case $cross_compiling:$ac_tool_warned in
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4029 ac_tool_warned
=yes ;;
4031 RANLIB
=$ac_ct_RANLIB
4034 RANLIB
="$ac_cv_prog_RANLIB"
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4042 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4043 if ${ac_cv_c_const+:} false
; then :
4044 $as_echo_n "(cached) " >&6
4046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4054 /* Ultrix mips cc rejects this sort of thing. */
4055 typedef int charset[2];
4056 const charset cs = { 0, 0 };
4057 /* SunOS 4.1.1 cc rejects this. */
4058 char const *const *pcpcc;
4060 /* NEC SVR4.0.2 mips cc rejects this. */
4061 struct point {int x, y;};
4062 static struct point const zero = {0,0};
4063 /* AIX XL C 1.02.0.0 rejects this.
4064 It does not let you subtract one const X* pointer from another in
4065 an arm of an if-expression whose if-part is not a constant
4067 const char *g = "string";
4068 pcpcc = &g + (g ? g-g : 0);
4069 /* HPUX 7.0 cc rejects these. */
4071 ppc = (char**) pcpcc;
4072 pcpcc = (char const *const *) ppc;
4073 { /* SCO 3.2v4 cc rejects this sort of thing. */
4076 char const *s = 0 ? (char *) 0 : (char const *) 0;
4081 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4083 const int *foo = &x[0];
4086 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4087 typedef const int *iptr;
4091 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4092 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4093 struct s { int j; const int *ap[3]; } bx;
4094 struct s *b = &bx; b->j = 5;
4096 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4100 return !cs[0] && !zero.x;
4107 if ac_fn_c_try_compile
"$LINENO"; then :
4112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4115 $as_echo "$ac_cv_c_const" >&6; }
4116 if test $ac_cv_c_const = no
; then
4118 $as_echo "#define const /**/" >>confdefs.h
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
4123 $as_echo_n "checking for function prototypes... " >&6; }
4124 if test "$ac_cv_prog_cc_c89" != no
; then
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4126 $as_echo "yes" >&6; }
4128 $as_echo "#define PROTOTYPES 1" >>confdefs.h
4131 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 $as_echo "no" >&6; }
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
4139 $as_echo_n "checking whether char is unsigned... " >&6; }
4140 if ${ac_cv_c_char_unsigned+:} false
; then :
4141 $as_echo_n "(cached) " >&6
4143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4145 $ac_includes_default
4149 static int test_array [1 - 2 * !(((char) -1) < 0)];
4151 return test_array [0];
4157 if ac_fn_c_try_compile
"$LINENO"; then :
4158 ac_cv_c_char_unsigned
=no
4160 ac_cv_c_char_unsigned
=yes
4162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
4165 $as_echo "$ac_cv_c_char_unsigned" >&6; }
4166 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4167 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
4172 $as_echo_n "checking for working volatile... " >&6; }
4173 if ${ac_cv_c_volatile+:} false
; then :
4174 $as_echo_n "(cached) " >&6
4176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h. */
4184 int * volatile y = (int *) 0;
4190 if ac_fn_c_try_compile
"$LINENO"; then :
4191 ac_cv_c_volatile
=yes
4195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
4198 $as_echo "$ac_cv_c_volatile" >&6; }
4199 if test $ac_cv_c_volatile = no
; then
4201 $as_echo "#define volatile /**/" >>confdefs.h
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4207 $as_echo_n "checking return type of signal handlers... " >&6; }
4208 if ${ac_cv_type_signal+:} false
; then :
4209 $as_echo_n "(cached) " >&6
4211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h. */
4213 #include <sys/types.h>
4219 return *(signal (0, 0)) (0) == 1;
4224 if ac_fn_c_try_compile
"$LINENO"; then :
4225 ac_cv_type_signal
=int
4227 ac_cv_type_signal
=void
4229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4232 $as_echo "$ac_cv_type_signal" >&6; }
4234 cat >>confdefs.h
<<_ACEOF
4235 #define RETSIGTYPE $ac_cv_type_signal
4240 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4241 if test "x$ac_cv_type_size_t" = xyes
; then :
4245 cat >>confdefs.h
<<_ACEOF
4246 #define size_t unsigned int
4251 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4252 if test "x$ac_cv_type_ssize_t" = xyes
; then :
4256 cat >>confdefs.h
<<_ACEOF
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4264 $as_echo_n "checking for ANSI C header files... " >&6; }
4265 if ${ac_cv_header_stdc+:} false
; then :
4266 $as_echo_n "(cached) " >&6
4268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4283 if ac_fn_c_try_compile
"$LINENO"; then :
4284 ac_cv_header_stdc
=yes
4286 ac_cv_header_stdc
=no
4288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4290 if test $ac_cv_header_stdc = yes; then
4291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4298 $EGREP "memchr" >/dev
/null
2>&1; then :
4301 ac_cv_header_stdc
=no
4307 if test $ac_cv_header_stdc = yes; then
4308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h. */
4314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4315 $EGREP "free" >/dev
/null
2>&1; then :
4318 ac_cv_header_stdc
=no
4324 if test $ac_cv_header_stdc = yes; then
4325 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4326 if test "$cross_compiling" = yes; then :
4329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4333 #if ((' ' & 0x0FF) == 0x020)
4334 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4335 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4337 # define ISLOWER(c) \
4338 (('a' <= (c) && (c) <= 'i') \
4339 || ('j' <= (c) && (c) <= 'r') \
4340 || ('s' <= (c) && (c) <= 'z'))
4341 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4344 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4349 for (i = 0; i < 256; i++)
4350 if (XOR (islower (i), ISLOWER (i))
4351 || toupper (i) != TOUPPER (i))
4356 if ac_fn_c_try_run
"$LINENO"; then :
4359 ac_cv_header_stdc
=no
4361 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4362 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4368 $as_echo "$ac_cv_header_stdc" >&6; }
4369 if test $ac_cv_header_stdc = yes; then
4371 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
4377 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
4378 if ${ac_cv_header_stat_broken+:} false
; then :
4379 $as_echo_n "(cached) " >&6
4381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4383 #include <sys/types.h>
4384 #include <sys/stat.h>
4386 #if defined S_ISBLK && defined S_IFDIR
4387 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
4390 #if defined S_ISBLK && defined S_IFCHR
4391 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
4394 #if defined S_ISLNK && defined S_IFREG
4395 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
4398 #if defined S_ISSOCK && defined S_IFREG
4399 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
4403 if ac_fn_c_try_compile
"$LINENO"; then :
4404 ac_cv_header_stat_broken
=no
4406 ac_cv_header_stat_broken
=yes
4408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
4411 $as_echo "$ac_cv_header_stat_broken" >&6; }
4412 if test $ac_cv_header_stat_broken = yes; then
4414 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
4419 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4420 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4422 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4423 if eval \
${$as_ac_Header+:} false
; then :
4424 $as_echo_n "(cached) " >&6
4426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428 #include <sys/types.h>
4440 if ac_fn_c_try_compile
"$LINENO"; then :
4441 eval "$as_ac_Header=yes"
4443 eval "$as_ac_Header=no"
4445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4447 eval ac_res
=\$
$as_ac_Header
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4449 $as_echo "$ac_res" >&6; }
4450 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4451 cat >>confdefs.h
<<_ACEOF
4452 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4455 ac_header_dirent
=$ac_hdr; break
4459 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4460 if test $ac_header_dirent = dirent.h
; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4462 $as_echo_n "checking for library containing opendir... " >&6; }
4463 if ${ac_cv_search_opendir+:} false
; then :
4464 $as_echo_n "(cached) " >&6
4466 ac_func_search_save_LIBS
=$LIBS
4467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4470 /* Override any GCC internal prototype to avoid an error.
4471 Use char because int might match the return type of a GCC
4472 builtin and then its argument prototype would still apply. */
4485 for ac_lib
in '' dir
; do
4486 if test -z "$ac_lib"; then
4487 ac_res
="none required"
4490 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4492 if ac_fn_c_try_link
"$LINENO"; then :
4493 ac_cv_search_opendir
=$ac_res
4495 rm -f core conftest.err conftest.
$ac_objext \
4497 if ${ac_cv_search_opendir+:} false
; then :
4501 if ${ac_cv_search_opendir+:} false
; then :
4504 ac_cv_search_opendir
=no
4507 LIBS
=$ac_func_search_save_LIBS
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4510 $as_echo "$ac_cv_search_opendir" >&6; }
4511 ac_res
=$ac_cv_search_opendir
4512 if test "$ac_res" != no
; then :
4513 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4519 $as_echo_n "checking for library containing opendir... " >&6; }
4520 if ${ac_cv_search_opendir+:} false
; then :
4521 $as_echo_n "(cached) " >&6
4523 ac_func_search_save_LIBS
=$LIBS
4524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4527 /* Override any GCC internal prototype to avoid an error.
4528 Use char because int might match the return type of a GCC
4529 builtin and then its argument prototype would still apply. */
4542 for ac_lib
in '' x
; do
4543 if test -z "$ac_lib"; then
4544 ac_res
="none required"
4547 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4549 if ac_fn_c_try_link
"$LINENO"; then :
4550 ac_cv_search_opendir
=$ac_res
4552 rm -f core conftest.err conftest.
$ac_objext \
4554 if ${ac_cv_search_opendir+:} false
; then :
4558 if ${ac_cv_search_opendir+:} false
; then :
4561 ac_cv_search_opendir
=no
4564 LIBS
=$ac_func_search_save_LIBS
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4567 $as_echo "$ac_cv_search_opendir" >&6; }
4568 ac_res
=$ac_cv_search_opendir
4569 if test "$ac_res" != no
; then :
4570 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4577 for ac_func
in fcntl
kill lstat readlink
4579 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4580 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4581 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4582 cat >>confdefs.h
<<_ACEOF
4583 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4589 for ac_func
in memmove pselect putenv
select setenv setlocale \
4590 strcasecmp strpbrk tcgetattr vsnprintf
4592 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4593 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4594 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4595 cat >>confdefs.h
<<_ACEOF
4596 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4602 for ac_func
in isascii isxdigit
4604 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4605 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4606 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4607 cat >>confdefs.h
<<_ACEOF
4608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4614 for ac_func
in getpwent getpwnam getpwuid
4616 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4617 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4618 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4619 cat >>confdefs.h
<<_ACEOF
4620 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
4628 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
4629 if ${ac_cv_type_uid_t+:} false
; then :
4630 $as_echo_n "(cached) " >&6
4632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4634 #include <sys/types.h>
4637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4638 $EGREP "uid_t" >/dev
/null
2>&1; then :
4639 ac_cv_type_uid_t
=yes
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
4647 $as_echo "$ac_cv_type_uid_t" >&6; }
4648 if test $ac_cv_type_uid_t = no
; then
4650 $as_echo "#define uid_t int" >>confdefs.h
4653 $as_echo "#define gid_t int" >>confdefs.h
4657 for ac_header
in unistd.h
4659 ac_fn_c_check_header_mongrel
"$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4660 if test "x$ac_cv_header_unistd_h" = xyes
; then :
4661 cat >>confdefs.h
<<_ACEOF
4662 #define HAVE_UNISTD_H 1
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
4670 $as_echo_n "checking for working chown... " >&6; }
4671 if ${ac_cv_func_chown_works+:} false
; then :
4672 $as_echo_n "(cached) " >&6
4674 if test "$cross_compiling" = yes; then :
4675 ac_cv_func_chown_works
=no
4677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4679 $ac_includes_default
4685 char *f = "conftest.chown";
4686 struct stat before, after;
4688 if (creat (f, 0600) < 0)
4690 if (stat (f, &before) < 0)
4692 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
4694 if (stat (f, &after) < 0)
4696 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
4702 if ac_fn_c_try_run
"$LINENO"; then :
4703 ac_cv_func_chown_works
=yes
4705 ac_cv_func_chown_works
=no
4707 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4708 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4711 rm -f conftest.chown
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
4715 $as_echo "$ac_cv_func_chown_works" >&6; }
4716 if test $ac_cv_func_chown_works = yes; then
4718 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
4723 $as_echo_n "checking for working strcoll... " >&6; }
4724 if ${ac_cv_func_strcoll_works+:} false
; then :
4725 $as_echo_n "(cached) " >&6
4727 if test "$cross_compiling" = yes; then :
4728 ac_cv_func_strcoll_works
=no
4730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4732 $ac_includes_default
4736 return (strcoll ("abc", "def") >= 0 ||
4737 strcoll ("ABC", "DEF") >= 0 ||
4738 strcoll ("123", "456") >= 0)
4743 if ac_fn_c_try_run
"$LINENO"; then :
4744 ac_cv_func_strcoll_works
=yes
4746 ac_cv_func_strcoll_works
=no
4748 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4749 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
4754 $as_echo "$ac_cv_func_strcoll_works" >&6; }
4755 if test $ac_cv_func_strcoll_works = yes; then
4757 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
4762 for ac_header
in fcntl.h unistd.h stdlib.h varargs.h stdarg.h stdbool.h \
4763 string.h
strings.h \
4764 limits.h locale.h
pwd.h memory.h termcap.h termios.h termio.h
4766 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4767 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4768 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4769 cat >>confdefs.h
<<_ACEOF
4770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4777 for ac_header
in sys
/ioctl.h sys
/pte.h sys
/stream.h sys
/select.h sys
/file.h
4779 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4780 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4781 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4782 cat >>confdefs.h
<<_ACEOF
4783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4791 for ac_header
in sys
/ptem.h
4793 ac_fn_c_check_header_compile
"$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "
4794 #if HAVE_SYS_STREAM_H
4795 # include <sys/stream.h>
4799 if test "x$ac_cv_header_sys_ptem_h" = xyes
; then :
4800 cat >>confdefs.h
<<_ACEOF
4801 #define HAVE_SYS_PTEM_H 1
4809 # Check whether --enable-largefile was given.
4810 if test "${enable_largefile+set}" = set; then :
4811 enableval
=$enable_largefile;
4814 if test "$enable_largefile" != no
; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4817 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4818 if ${ac_cv_sys_largefile_CC+:} false
; then :
4819 $as_echo_n "(cached) " >&6
4821 ac_cv_sys_largefile_CC
=no
4822 if test "$GCC" != yes; then
4825 # IRIX 6.2 and later do not support large files by default,
4826 # so use the C compiler's -n32 option if that helps.
4827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h. */
4829 #include <sys/types.h>
4830 /* Check that off_t can represent 2**63 - 1 correctly.
4831 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4832 since some C++ compilers masquerading as C compilers
4833 incorrectly reject 9223372036854775807. */
4834 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4835 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4836 && LARGE_OFF_T % 2147483647 == 1)
4846 if ac_fn_c_try_compile
"$LINENO"; then :
4849 rm -f core conftest.err conftest.
$ac_objext
4851 if ac_fn_c_try_compile
"$LINENO"; then :
4852 ac_cv_sys_largefile_CC
=' -n32'; break
4854 rm -f core conftest.err conftest.
$ac_objext
4858 rm -f conftest.
$ac_ext
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4862 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4863 if test "$ac_cv_sys_largefile_CC" != no
; then
4864 CC
=$CC$ac_cv_sys_largefile_CC
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4868 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4869 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4870 $as_echo_n "(cached) " >&6
4873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4875 #include <sys/types.h>
4876 /* Check that off_t can represent 2**63 - 1 correctly.
4877 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4878 since some C++ compilers masquerading as C compilers
4879 incorrectly reject 9223372036854775807. */
4880 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4881 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4882 && LARGE_OFF_T % 2147483647 == 1)
4892 if ac_fn_c_try_compile
"$LINENO"; then :
4893 ac_cv_sys_file_offset_bits
=no
; break
4895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4898 #define _FILE_OFFSET_BITS 64
4899 #include <sys/types.h>
4900 /* Check that off_t can represent 2**63 - 1 correctly.
4901 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4902 since some C++ compilers masquerading as C compilers
4903 incorrectly reject 9223372036854775807. */
4904 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4905 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4906 && LARGE_OFF_T % 2147483647 == 1)
4916 if ac_fn_c_try_compile
"$LINENO"; then :
4917 ac_cv_sys_file_offset_bits
=64; break
4919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4920 ac_cv_sys_file_offset_bits
=unknown
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4925 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4926 case $ac_cv_sys_file_offset_bits in #(
4929 cat >>confdefs.h
<<_ACEOF
4930 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4935 if test $ac_cv_sys_file_offset_bits = unknown
; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4937 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4938 if ${ac_cv_sys_large_files+:} false
; then :
4939 $as_echo_n "(cached) " >&6
4942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944 #include <sys/types.h>
4945 /* Check that off_t can represent 2**63 - 1 correctly.
4946 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4947 since some C++ compilers masquerading as C compilers
4948 incorrectly reject 9223372036854775807. */
4949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4950 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4951 && LARGE_OFF_T % 2147483647 == 1)
4961 if ac_fn_c_try_compile
"$LINENO"; then :
4962 ac_cv_sys_large_files
=no
; break
4964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4967 #define _LARGE_FILES 1
4968 #include <sys/types.h>
4969 /* Check that off_t can represent 2**63 - 1 correctly.
4970 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4971 since some C++ compilers masquerading as C compilers
4972 incorrectly reject 9223372036854775807. */
4973 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4974 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4975 && LARGE_OFF_T % 2147483647 == 1)
4985 if ac_fn_c_try_compile
"$LINENO"; then :
4986 ac_cv_sys_large_files
=1; break
4988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4989 ac_cv_sys_large_files
=unknown
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4994 $as_echo "$ac_cv_sys_large_files" >&6; }
4995 case $ac_cv_sys_large_files in #(
4998 cat >>confdefs.h
<<_ACEOF
4999 #define _LARGE_FILES $ac_cv_sys_large_files
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
5012 $as_echo_n "checking for type of signal functions... " >&6; }
5013 if ${bash_cv_signal_vintage+:} false
; then :
5014 $as_echo_n "(cached) " >&6
5017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h. */
5025 struct sigaction sa;
5026 sigemptyset(&ss); sigsuspend(&ss);
5027 sigaction(SIGINT, &sa, (struct sigaction *) 0);
5028 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
5034 if ac_fn_c_try_link
"$LINENO"; then :
5035 bash_cv_signal_vintage
=posix
5038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5045 int mask = sigmask(SIGINT);
5046 sigsetmask(mask); sigblock(mask); sigpause(mask);
5052 if ac_fn_c_try_link
"$LINENO"; then :
5053 bash_cv_signal_vintage
=4.2bsd
5056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5060 RETSIGTYPE foo() { }
5065 int mask = sigmask(SIGINT);
5066 sigset(SIGINT, foo); sigrelse(SIGINT);
5067 sighold(SIGINT); sigpause(SIGINT);
5073 if ac_fn_c_try_link
"$LINENO"; then :
5074 bash_cv_signal_vintage
=svr3
5076 bash_cv_signal_vintage
=v7
5079 rm -f core conftest.err conftest.
$ac_objext \
5080 conftest
$ac_exeext conftest.
$ac_ext
5083 rm -f core conftest.err conftest.
$ac_objext \
5084 conftest
$ac_exeext conftest.
$ac_ext
5087 rm -f core conftest.err conftest.
$ac_objext \
5088 conftest
$ac_exeext conftest.
$ac_ext
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
5093 $as_echo "$bash_cv_signal_vintage" >&6; }
5094 if test "$bash_cv_signal_vintage" = posix
; then
5095 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
5097 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
5098 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
5100 elif test "$bash_cv_signal_vintage" = svr3
; then
5101 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5
5108 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
5109 if ${bash_cv_must_reinstall_sighandlers+:} false
; then :
5110 $as_echo_n "(cached) " >&6
5112 if test "$cross_compiling" = yes; then :
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
5114 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
5115 bash_cv_must_reinstall_sighandlers
=no
5118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5122 #ifdef HAVE_UNISTD_H
5126 typedef RETSIGTYPE sigfunc();
5130 #ifdef HAVE_POSIX_SIGNALS
5132 set_signal_handler(sig, handler)
5136 struct sigaction act, oact;
5137 act.sa_handler = handler;
5139 sigemptyset (&act.sa_mask);
5140 sigemptyset (&oact.sa_mask);
5141 sigaction (sig, &act, &oact);
5142 return (oact.sa_handler);
5145 #define set_signal_handler(s, h) signal(s, h)
5158 set_signal_handler(SIGINT, sigint);
5159 kill((int)getpid(), SIGINT);
5160 kill((int)getpid(), SIGINT);
5165 if ac_fn_c_try_run
"$LINENO"; then :
5166 bash_cv_must_reinstall_sighandlers
=no
5168 bash_cv_must_reinstall_sighandlers
=yes
5170 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5171 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5
5177 $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
5178 if test $bash_cv_must_reinstall_sighandlers = yes; then
5179 $as_echo "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
5186 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
5187 if ${bash_cv_func_sigsetjmp+:} false
; then :
5188 $as_echo_n "(cached) " >&6
5190 if test "$cross_compiling" = yes; then :
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
5192 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
5193 bash_cv_func_sigsetjmp
=missing
5196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5199 #ifdef HAVE_UNISTD_H
5202 #include <sys/types.h>
5208 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
5219 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
5220 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
5223 code = sigsetjmp(xx, 1);
5225 exit(0); /* could get sigmask and compare to oset here. */
5228 sigaddset(&set, SIGINT);
5229 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
5231 /* and siglongjmp */
5237 if ac_fn_c_try_run
"$LINENO"; then :
5238 bash_cv_func_sigsetjmp
=present
5240 bash_cv_func_sigsetjmp
=missing
5242 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5243 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5
5249 $as_echo "$bash_cv_func_sigsetjmp" >&6; }
5250 if test $bash_cv_func_sigsetjmp = present
; then
5251 $as_echo "#define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
5256 $as_echo_n "checking for lstat... " >&6; }
5257 if ${bash_cv_func_lstat+:} false
; then :
5258 $as_echo_n "(cached) " >&6
5260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5263 #include <sys/types.h>
5264 #include <sys/stat.h>
5269 lstat(".",(struct stat *)0);
5274 if ac_fn_c_try_link
"$LINENO"; then :
5275 bash_cv_func_lstat
=yes
5277 bash_cv_func_lstat
=no
5279 rm -f core conftest.err conftest.
$ac_objext \
5280 conftest
$ac_exeext conftest.
$ac_ext
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5
5283 $as_echo "$bash_cv_func_lstat" >&6; }
5284 if test $bash_cv_func_lstat = yes; then
5285 $as_echo "#define HAVE_LSTAT 1" >>confdefs.h
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5
5291 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
5292 if ${bash_cv_func_strcoll_broken+:} false
; then :
5293 $as_echo_n "(cached) " >&6
5295 if test "$cross_compiling" = yes; then :
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
5297 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
5298 bash_cv_func_strcoll_broken
=no
5301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5305 #if defined (HAVE_LOCALE_H)
5314 char *deflocale, *defcoll;
5316 #ifdef HAVE_SETLOCALE
5317 deflocale = setlocale(LC_ALL, "");
5318 defcoll = setlocale(LC_COLLATE, "");
5322 /* These two values are taken from tests/glob-test. */
5323 r1 = strcoll("abd", "aXd");
5327 r2 = strcmp("abd", "aXd");
5329 /* These two should both be greater than 0. It is permissible for
5330 a system to return different values, as long as the sign is the
5333 /* Exit with 1 (failure) if these two values are both > 0, since
5334 this tests whether strcoll(3) is broken with respect to strcmp(3)
5335 in the default locale. */
5336 exit (r1 > 0 && r2 > 0);
5340 if ac_fn_c_try_run
"$LINENO"; then :
5341 bash_cv_func_strcoll_broken
=yes
5343 bash_cv_func_strcoll_broken
=no
5345 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5346 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5
5352 $as_echo "$bash_cv_func_strcoll_broken" >&6; }
5353 if test $bash_cv_func_strcoll_broken = yes; then
5354 $as_echo "#define STRCOLL_BROKEN 1" >>confdefs.h
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ctype macros accept non-ascii characters" >&5
5360 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
5361 if ${bash_cv_func_ctype_nonascii+:} false
; then :
5362 $as_echo_n "(cached) " >&6
5364 if test "$cross_compiling" = yes; then :
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
5366 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
5367 bash_cv_func_ctype_nonascii
=no
5370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5373 #ifdef HAVE_LOCALE_H
5387 #ifdef HAVE_SETLOCALE
5388 /* We take a shot here. If that locale is not known, try the
5389 system default. We try this one because '\342' (226) is
5390 known to be a printable character in that locale. */
5391 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
5393 deflocale = setlocale(LC_ALL, "");
5400 exit (r1 == 0 || r2 == 0);
5404 if ac_fn_c_try_run
"$LINENO"; then :
5405 bash_cv_func_ctype_nonascii
=yes
5407 bash_cv_func_ctype_nonascii
=no
5409 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5410 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_ctype_nonascii" >&5
5416 $as_echo "$bash_cv_func_ctype_nonascii" >&6; }
5417 if test $bash_cv_func_ctype_nonascii = yes; then
5418 $as_echo "#define CTYPE_NON_ASCII 1" >>confdefs.h
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5
5424 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
5425 if ${bash_cv_getpw_declared+:} false
; then :
5426 $as_echo_n "(cached) " >&6
5428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5431 #include <sys/types.h>
5432 #ifdef HAVE_UNISTD_H
5433 # include <unistd.h>
5438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5439 $EGREP "getpwuid" >/dev
/null
2>&1; then :
5440 bash_cv_getpw_declared
=yes
5442 bash_cv_getpw_declared
=no
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5
5449 $as_echo "$bash_cv_getpw_declared" >&6; }
5450 if test $bash_cv_getpw_declared = yes; then
5451 $as_echo "#define HAVE_GETPW_DECLS 1" >>confdefs.h
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
5457 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
5458 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
5459 $as_echo_n "(cached) " >&6
5461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463 #include <sys/types.h>
5464 #include <termios.h>
5470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5471 $EGREP "yes" >/dev
/null
2>&1; then :
5472 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
5474 ac_cv_sys_tiocgwinsz_in_termios_h
=no
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
5480 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
5482 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
5484 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
5485 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} 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>
5491 #include <sys/ioctl.h>
5497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5498 $EGREP "yes" >/dev
/null
2>&1; then :
5499 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
5501 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
5507 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
5509 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
5511 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5
5518 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
5519 if ${ac_cv_have_sig_atomic_t+:} false
; then :
5520 $as_echo_n "(cached) " >&6
5522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h. */
5535 if ac_fn_c_try_link
"$LINENO"; then :
5536 ac_cv_have_sig_atomic_t
=yes
5538 ac_cv_have_sig_atomic_t
=no
5540 rm -f core conftest.err conftest.
$ac_objext \
5541 conftest
$ac_exeext conftest.
$ac_ext
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5
5544 $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
5545 if test "$ac_cv_have_sig_atomic_t" = "no"
5547 ac_fn_c_check_type
"$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default"
5548 if test "x$ac_cv_type_sig_atomic_t" = xyes
; then :
5552 cat >>confdefs.h
<<_ACEOF
5553 #define sig_atomic_t int
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers are of type void" >&5
5561 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
5562 if ${bash_cv_void_sighandler+:} false
; then :
5563 $as_echo_n "(cached) " >&6
5565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5567 #include <sys/types.h>
5575 void (*signal ()) ();
5584 if ac_fn_c_try_compile
"$LINENO"; then :
5585 bash_cv_void_sighandler
=yes
5587 bash_cv_void_sighandler
=no
5589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_void_sighandler" >&5
5592 $as_echo "$bash_cv_void_sighandler" >&6; }
5593 if test $bash_cv_void_sighandler = yes; then
5594 $as_echo "#define VOID_SIGHANDLER 1" >>confdefs.h
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5
5600 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
5601 if ${bash_cv_tiocstat_in_ioctl+:} false
; then :
5602 $as_echo_n "(cached) " >&6
5604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5606 #include <sys/types.h>
5607 #include <sys/ioctl.h>
5616 if ac_fn_c_try_compile
"$LINENO"; then :
5617 bash_cv_tiocstat_in_ioctl
=yes
5619 bash_cv_tiocstat_in_ioctl
=no
5621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5
5625 $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
5626 if test $bash_cv_tiocstat_in_ioctl = yes; then
5627 $as_echo "#define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5
5632 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
5633 if ${bash_cv_fionread_in_ioctl+:} false
; then :
5634 $as_echo_n "(cached) " >&6
5636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 #include <sys/types.h>
5639 #include <sys/ioctl.h>
5648 if ac_fn_c_try_compile
"$LINENO"; then :
5649 bash_cv_fionread_in_ioctl
=yes
5651 bash_cv_fionread_in_ioctl
=no
5653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5
5657 $as_echo "$bash_cv_fionread_in_ioctl" >&6; }
5658 if test $bash_cv_fionread_in_ioctl = yes; then
5659 $as_echo "#define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5
5664 $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
5665 if ${bash_cv_speed_t_in_sys_types+:} false
; then :
5666 $as_echo_n "(cached) " >&6
5668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h. */
5670 #include <sys/types.h>
5679 if ac_fn_c_try_compile
"$LINENO"; then :
5680 bash_cv_speed_t_in_sys_types
=yes
5682 bash_cv_speed_t_in_sys_types
=no
5684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5
5688 $as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
5689 if test $bash_cv_speed_t_in_sys_types = yes; then
5690 $as_echo "#define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5
5695 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
5696 if ${bash_cv_struct_winsize_header+:} false
; then :
5697 $as_echo_n "(cached) " >&6
5699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5701 #include <sys/types.h>
5702 #include <sys/ioctl.h>
5711 if ac_fn_c_try_compile
"$LINENO"; then :
5712 bash_cv_struct_winsize_header
=ioctl_h
5714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h. */
5716 #include <sys/types.h>
5717 #include <termios.h>
5726 if ac_fn_c_try_compile
"$LINENO"; then :
5727 bash_cv_struct_winsize_header
=termios_h
5729 bash_cv_struct_winsize_header
=other
5731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5737 if test $bash_cv_struct_winsize_header = ioctl_h
; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5
5739 $as_echo "sys/ioctl.h" >&6; }
5740 $as_echo "#define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h
5742 elif test $bash_cv_struct_winsize_header = termios_h
; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5
5744 $as_echo "termios.h" >&6; }
5745 $as_echo "#define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5749 $as_echo "not found" >&6; }
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5
5754 $as_echo_n "checking for struct dirent.d_ino... " >&6; }
5755 if ${bash_cv_dirent_has_dino+:} false
; then :
5756 $as_echo_n "(cached) " >&6
5758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5762 #include <sys/types.h>
5763 #ifdef HAVE_UNISTD_H
5764 # include <unistd.h>
5765 #endif /* HAVE_UNISTD_H */
5766 #if defined(HAVE_DIRENT_H)
5767 # include <dirent.h>
5769 # define dirent direct
5770 # ifdef HAVE_SYS_NDIR_H
5771 # include <sys/ndir.h>
5772 # endif /* SYSNDIR */
5773 # ifdef HAVE_SYS_DIR_H
5774 # include <sys/dir.h>
5775 # endif /* SYSDIR */
5779 #endif /* HAVE_DIRENT_H */
5785 struct dirent d; int z; z = d.d_ino;
5791 if ac_fn_c_try_compile
"$LINENO"; then :
5792 bash_cv_dirent_has_dino
=yes
5794 bash_cv_dirent_has_dino
=no
5796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_dino" >&5
5800 $as_echo "$bash_cv_dirent_has_dino" >&6; }
5801 if test $bash_cv_dirent_has_dino = yes; then
5802 $as_echo "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5
5808 $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
5809 if ${bash_cv_dirent_has_d_fileno+:} false
; then :
5810 $as_echo_n "(cached) " >&6
5812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5816 #include <sys/types.h>
5817 #ifdef HAVE_UNISTD_H
5818 # include <unistd.h>
5819 #endif /* HAVE_UNISTD_H */
5820 #if defined(HAVE_DIRENT_H)
5821 # include <dirent.h>
5823 # define dirent direct
5824 # ifdef HAVE_SYS_NDIR_H
5825 # include <sys/ndir.h>
5826 # endif /* SYSNDIR */
5827 # ifdef HAVE_SYS_DIR_H
5828 # include <sys/dir.h>
5829 # endif /* SYSDIR */
5833 #endif /* HAVE_DIRENT_H */
5839 struct dirent d; int z; z = d.d_fileno;
5845 if ac_fn_c_try_compile
"$LINENO"; then :
5846 bash_cv_dirent_has_d_fileno
=yes
5848 bash_cv_dirent_has_d_fileno
=no
5850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5
5854 $as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
5855 if test $bash_cv_dirent_has_d_fileno = yes; then
5856 $as_echo "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h
5861 for ac_header
in libaudit.h
5863 ac_fn_c_check_header_mongrel
"$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
5864 if test "x$ac_cv_header_libaudit_h" = xyes
; then :
5865 cat >>confdefs.h
<<_ACEOF
5866 #define HAVE_LIBAUDIT_H 1
5873 ac_fn_c_check_decl
"$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h>
5875 if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = xyes
; then :
5881 cat >>confdefs.h
<<_ACEOF
5882 #define HAVE_DECL_AUDIT_USER_TTY $ac_have_decl
5887 aix
*) prefer_curses
=yes ;;
5890 if test "X$bash_cv_termcap_lib" = "X"; then
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5894 $as_echo_n "checking which library has the termcap functions... " >&6; }
5897 if ${bash_cv_termcap_lib+:} false
; then :
5898 $as_echo_n "(cached) " >&6
5900 ac_fn_c_check_func
"$LINENO" "tgetent" "ac_cv_func_tgetent"
5901 if test "x$ac_cv_func_tgetent" = xyes
; then :
5902 bash_cv_termcap_lib
=libc
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
5905 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5906 if ${ac_cv_lib_termcap_tgetent+:} false
; then :
5907 $as_echo_n "(cached) " >&6
5909 ac_check_lib_save_LIBS
=$LIBS
5910 LIBS
="-ltermcap $LIBS"
5911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5914 /* Override any GCC internal prototype to avoid an error.
5915 Use char because int might match the return type of a GCC
5916 builtin and then its argument prototype would still apply. */
5929 if ac_fn_c_try_link
"$LINENO"; then :
5930 ac_cv_lib_termcap_tgetent
=yes
5932 ac_cv_lib_termcap_tgetent
=no
5934 rm -f core conftest.err conftest.
$ac_objext \
5935 conftest
$ac_exeext conftest.
$ac_ext
5936 LIBS
=$ac_check_lib_save_LIBS
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
5939 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5940 if test "x$ac_cv_lib_termcap_tgetent" = xyes
; then :
5941 bash_cv_termcap_lib
=libtermcap
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
5944 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5945 if ${ac_cv_lib_tinfo_tgetent+:} false
; then :
5946 $as_echo_n "(cached) " >&6
5948 ac_check_lib_save_LIBS
=$LIBS
5949 LIBS
="-ltinfo $LIBS"
5950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5953 /* Override any GCC internal prototype to avoid an error.
5954 Use char because int might match the return type of a GCC
5955 builtin and then its argument prototype would still apply. */
5968 if ac_fn_c_try_link
"$LINENO"; then :
5969 ac_cv_lib_tinfo_tgetent
=yes
5971 ac_cv_lib_tinfo_tgetent
=no
5973 rm -f core conftest.err conftest.
$ac_objext \
5974 conftest
$ac_exeext conftest.
$ac_ext
5975 LIBS
=$ac_check_lib_save_LIBS
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
5978 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5979 if test "x$ac_cv_lib_tinfo_tgetent" = xyes
; then :
5980 bash_cv_termcap_lib
=libtinfo
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
5983 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
5984 if ${ac_cv_lib_curses_tgetent+:} false
; then :
5985 $as_echo_n "(cached) " >&6
5987 ac_check_lib_save_LIBS
=$LIBS
5988 LIBS
="-lcurses $LIBS"
5989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h. */
5992 /* Override any GCC internal prototype to avoid an error.
5993 Use char because int might match the return type of a GCC
5994 builtin and then its argument prototype would still apply. */
6007 if ac_fn_c_try_link
"$LINENO"; then :
6008 ac_cv_lib_curses_tgetent
=yes
6010 ac_cv_lib_curses_tgetent
=no
6012 rm -f core conftest.err conftest.
$ac_objext \
6013 conftest
$ac_exeext conftest.
$ac_ext
6014 LIBS
=$ac_check_lib_save_LIBS
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
6017 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
6018 if test "x$ac_cv_lib_curses_tgetent" = xyes
; then :
6019 bash_cv_termcap_lib
=libcurses
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
6022 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
6023 if ${ac_cv_lib_ncurses_tgetent+:} false
; then :
6024 $as_echo_n "(cached) " >&6
6026 ac_check_lib_save_LIBS
=$LIBS
6027 LIBS
="-lncurses $LIBS"
6028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6031 /* Override any GCC internal prototype to avoid an error.
6032 Use char because int might match the return type of a GCC
6033 builtin and then its argument prototype would still apply. */
6046 if ac_fn_c_try_link
"$LINENO"; then :
6047 ac_cv_lib_ncurses_tgetent
=yes
6049 ac_cv_lib_ncurses_tgetent
=no
6051 rm -f core conftest.err conftest.
$ac_objext \
6052 conftest
$ac_exeext conftest.
$ac_ext
6053 LIBS
=$ac_check_lib_save_LIBS
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
6056 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
6057 if test "x$ac_cv_lib_ncurses_tgetent" = xyes
; then :
6058 bash_cv_termcap_lib
=libncurses
6060 bash_cv_termcap_lib
=gnutermcap
6073 if test "X$_bash_needmsg" = "Xyes"; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
6075 $as_echo_n "checking which library has the termcap functions... " >&6; }
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
6078 $as_echo "using $bash_cv_termcap_lib" >&6; }
6079 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
6080 LDFLAGS
="$LDFLAGS -L./lib/termcap"
6081 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
6082 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
6083 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
6084 TERMCAP_LIB
=-ltermcap
6086 elif test $bash_cv_termcap_lib = libtinfo
; then
6089 elif test $bash_cv_termcap_lib = libncurses
; then
6090 TERMCAP_LIB
=-lncurses
6092 elif test $bash_cv_termcap_lib = libc
; then
6096 TERMCAP_LIB
=-lcurses
6100 if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
6101 if test "$prefer_curses" = yes; then
6102 TERMCAP_LIB
=-lcurses
6104 TERMCAP_LIB
=-ltermcap #default
6107 # Windows ncurses installation
6108 if test "$TERMCAP_LIB" = "-lncurses"; then
6109 for ac_header
in ncurses
/termcap.h
6111 ac_fn_c_check_header_mongrel
"$LINENO" "ncurses/termcap.h" "ac_cv_header_ncurses_termcap_h" "$ac_includes_default"
6112 if test "x$ac_cv_header_ncurses_termcap_h" = xyes
; then :
6113 cat >>confdefs.h
<<_ACEOF
6114 #define HAVE_NCURSES_TERMCAP_H 1
6124 for ac_header
in wctype.h
6126 ac_fn_c_check_header_mongrel
"$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
6127 if test "x$ac_cv_header_wctype_h" = xyes
; then :
6128 cat >>confdefs.h
<<_ACEOF
6129 #define HAVE_WCTYPE_H 1
6136 for ac_header
in wchar.h
6138 ac_fn_c_check_header_mongrel
"$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
6139 if test "x$ac_cv_header_wchar_h" = xyes
; then :
6140 cat >>confdefs.h
<<_ACEOF
6141 #define HAVE_WCHAR_H 1
6148 for ac_header
in langinfo.h
6150 ac_fn_c_check_header_mongrel
"$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
6151 if test "x$ac_cv_header_langinfo_h" = xyes
; then :
6152 cat >>confdefs.h
<<_ACEOF
6153 #define HAVE_LANGINFO_H 1
6161 for ac_header
in mbstr.h
6163 ac_fn_c_check_header_mongrel
"$LINENO" "mbstr.h" "ac_cv_header_mbstr_h" "$ac_includes_default"
6164 if test "x$ac_cv_header_mbstr_h" = xyes
; then :
6165 cat >>confdefs.h
<<_ACEOF
6166 #define HAVE_MBSTR_H 1
6174 ac_fn_c_check_func
"$LINENO" "mbrlen" "ac_cv_func_mbrlen"
6175 if test "x$ac_cv_func_mbrlen" = xyes
; then :
6176 $as_echo "#define HAVE_MBRLEN 1" >>confdefs.h
6180 ac_fn_c_check_func
"$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp"
6181 if test "x$ac_cv_func_mbscasecmp" = xyes
; then :
6182 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
6186 ac_fn_c_check_func
"$LINENO" "mbscmp" "ac_cv_func_mbscmp"
6187 if test "x$ac_cv_func_mbscmp" = xyes
; then :
6188 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
6192 ac_fn_c_check_func
"$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs"
6193 if test "x$ac_cv_func_mbsnrtowcs" = xyes
; then :
6194 $as_echo "#define HAVE_MBSNRTOWCS 1" >>confdefs.h
6198 ac_fn_c_check_func
"$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs"
6199 if test "x$ac_cv_func_mbsrtowcs" = xyes
; then :
6200 $as_echo "#define HAVE_MBSRTOWCS 1" >>confdefs.h
6205 ac_fn_c_check_func
"$LINENO" "mbschr" "ac_cv_func_mbschr"
6206 if test "x$ac_cv_func_mbschr" = xyes
; then :
6207 $as_echo "#define HAVE_MBSCHR 1" >>confdefs.h
6210 case " $LIBOBJS " in
6211 *" mbschr.$ac_objext "* ) ;;
6212 *) LIBOBJS
="$LIBOBJS mbschr.$ac_objext"
6220 ac_fn_c_check_func
"$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
6221 if test "x$ac_cv_func_wcrtomb" = xyes
; then :
6222 $as_echo "#define HAVE_WCRTOMB 1" >>confdefs.h
6226 ac_fn_c_check_func
"$LINENO" "wcscoll" "ac_cv_func_wcscoll"
6227 if test "x$ac_cv_func_wcscoll" = xyes
; then :
6228 $as_echo "#define HAVE_WCSCOLL 1" >>confdefs.h
6232 ac_fn_c_check_func
"$LINENO" "wcsdup" "ac_cv_func_wcsdup"
6233 if test "x$ac_cv_func_wcsdup" = xyes
; then :
6234 $as_echo "#define HAVE_WCSDUP 1" >>confdefs.h
6238 ac_fn_c_check_func
"$LINENO" "wcwidth" "ac_cv_func_wcwidth"
6239 if test "x$ac_cv_func_wcwidth" = xyes
; then :
6240 $as_echo "#define HAVE_WCWIDTH 1" >>confdefs.h
6244 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
6245 if test "x$ac_cv_func_wctype" = xyes
; then :
6246 $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h
6251 ac_fn_c_check_func
"$LINENO" "wcswidth" "ac_cv_func_wcswidth"
6252 if test "x$ac_cv_func_wcswidth" = xyes
; then :
6253 $as_echo "#define HAVE_WCSWIDTH 1" >>confdefs.h
6256 case " $LIBOBJS " in
6257 *" wcswidth.$ac_objext "* ) ;;
6258 *) LIBOBJS
="$LIBOBJS wcswidth.$ac_objext"
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
6268 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
6269 if ${ac_cv_func_mbrtowc+:} false
; then :
6270 $as_echo_n "(cached) " >&6
6272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6279 char const s[] = "";
6282 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
6287 if ac_fn_c_try_link
"$LINENO"; then :
6288 ac_cv_func_mbrtowc
=yes
6290 ac_cv_func_mbrtowc
=no
6292 rm -f core conftest.err conftest.
$ac_objext \
6293 conftest
$ac_exeext conftest.
$ac_ext
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
6296 $as_echo "$ac_cv_func_mbrtowc" >&6; }
6297 if test $ac_cv_func_mbrtowc = yes; then
6299 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
6303 if test $ac_cv_func_mbrtowc = yes; then
6304 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6308 for ac_func
in iswlower iswupper towlower towupper iswctype
6310 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6311 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6312 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6313 cat >>confdefs.h
<<_ACEOF
6314 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6322 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6323 if ${bash_cv_langinfo_codeset+:} false
; then :
6324 $as_echo_n "(cached) " >&6
6326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6328 #include <langinfo.h>
6332 char* cs = nl_langinfo(CODESET);
6337 if ac_fn_c_try_link
"$LINENO"; then :
6338 bash_cv_langinfo_codeset
=yes
6340 bash_cv_langinfo_codeset
=no
6342 rm -f core conftest.err conftest.
$ac_objext \
6343 conftest
$ac_exeext conftest.
$ac_ext
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_langinfo_codeset" >&5
6346 $as_echo "$bash_cv_langinfo_codeset" >&6; }
6347 if test $bash_cv_langinfo_codeset = yes; then
6348 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5
6353 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
6354 if ${bash_cv_type_wchar_t+:} false
; then :
6355 $as_echo_n "(cached) " >&6
6357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6372 if ac_fn_c_try_compile
"$LINENO"; then :
6373 bash_cv_type_wchar_t
=yes
6375 bash_cv_type_wchar_t
=no
6377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wchar_t" >&5
6380 $as_echo "$bash_cv_type_wchar_t" >&6; }
6381 if test $bash_cv_type_wchar_t = yes; then
6383 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5
6388 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
6389 if ${bash_cv_type_wctype_t+:} false
; then :
6390 $as_echo_n "(cached) " >&6
6392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h. */
6406 if ac_fn_c_try_compile
"$LINENO"; then :
6407 bash_cv_type_wctype_t
=yes
6409 bash_cv_type_wctype_t
=no
6411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wctype_t" >&5
6414 $as_echo "$bash_cv_type_wctype_t" >&6; }
6415 if test $bash_cv_type_wctype_t = yes; then
6417 $as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5
6422 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
6423 if ${bash_cv_type_wint_t+:} false
; then :
6424 $as_echo_n "(cached) " >&6
6426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6440 if ac_fn_c_try_compile
"$LINENO"; then :
6441 bash_cv_type_wint_t
=yes
6443 bash_cv_type_wint_t
=no
6445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wint_t" >&5
6448 $as_echo "$bash_cv_type_wint_t" >&6; }
6449 if test $bash_cv_type_wint_t = yes; then
6451 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcwidth broken with unicode combining characters" >&5
6456 $as_echo_n "checking for wcwidth broken with unicode combining characters... " >&6; }
6457 if ${bash_cv_wcwidth_broken+:} false
; then :
6458 $as_echo_n "(cached) " >&6
6460 if test "$cross_compiling" = yes; then :
6461 bash_cv_wcwidth_broken
=no
6463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6479 setlocale(LC_ALL, "en_US.UTF-8");
6480 w = wcwidth (0x0301);
6481 exit (w == 0); /* exit 0 if wcwidth broken */
6485 if ac_fn_c_try_run
"$LINENO"; then :
6486 bash_cv_wcwidth_broken
=yes
6488 bash_cv_wcwidth_broken
=no
6490 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6491 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcwidth_broken" >&5
6496 $as_echo "$bash_cv_wcwidth_broken" >&6; }
6497 if test "$bash_cv_wcwidth_broken" = yes; then
6499 $as_echo "#define WCWIDTH_BROKEN 1" >>confdefs.h
6503 if test "$am_cv_func_iconv" = yes; then
6505 LIBS
="$LIBS $LIBINTL $LIBICONV"
6506 for ac_func
in locale_charset
6508 ac_fn_c_check_func
"$LINENO" "locale_charset" "ac_cv_func_locale_charset"
6509 if test "x$ac_cv_func_locale_charset" = xyes
; then :
6510 cat >>confdefs.h
<<_ACEOF
6511 #define HAVE_LOCALE_CHARSET 1
6523 *cray
*) LOCAL_CFLAGS
=-DCRAY ;;
6524 *s390
*) LOCAL_CFLAGS
=-fsigned-char ;;
6528 isc
*) LOCAL_CFLAGS
=-Disc386 ;;
6531 # shared library configuration section
6533 # Shared object configuration section. These values are generated by
6534 # ${srcdir}/support/shobj-conf
6536 if test -f ${srcdir}/support
/shobj-conf
; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configuration for building shared libraries" >&5
6538 $as_echo_n "checking configuration for building shared libraries... " >&6; }
6539 eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
6541 # case "$SHLIB_LIBS" in
6542 # *curses*|*termcap*|*termlib*) ;;
6543 # *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;;
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_STATUS" >&5
6562 $as_echo "$SHLIB_STATUS" >&6; }
6564 # SHLIB_STATUS is either `supported' or `unsupported'. If it's
6565 # `unsupported', turn off any default shared library building
6566 if test "$SHLIB_STATUS" = 'unsupported'; then
6570 # shared library versioning
6571 # quoted for m4 so I can use character classes
6572 SHLIB_MAJOR
=`expr "$LIBVERSION" : '\([0-9]\)\..*'`
6573 SHLIB_MINOR
=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`
6578 if test "$opt_static_libs" = "yes"; then
6579 STATIC_TARGET
=static
6580 STATIC_INSTALL_TARGET
=install-static
6582 if test "$opt_shared_libs" = "yes"; then
6583 SHARED_TARGET
=shared
6584 SHARED_INSTALL_TARGET
=install-shared
6593 msdosdjgpp
*) BUILD_DIR
=`pwd.exe` ;; # to prevent //d/path/file
6594 *) BUILD_DIR
=`pwd` ;;
6597 case "$BUILD_DIR" in
6598 *\
*) BUILD_DIR
=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
6619 ac_config_files
="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile readline.pc"
6621 ac_config_commands
="$ac_config_commands default"
6623 cat >confcache
<<\_ACEOF
6624 # This file is a shell script that caches the results of configure
6625 # tests run on this system so they can be shared between configure
6626 # scripts and configure runs, see configure's option --config-cache.
6627 # It is not useful on other systems. If it contains results you don't
6628 # want to keep, you may remove or edit it.
6630 # config.status only pays attention to the cache file if you give it
6631 # the --recheck option to rerun configure.
6633 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6634 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6639 # The following way of writing the cache mishandles newlines in values,
6640 # but we know of no workaround that is simple, portable, and efficient.
6641 # So, we kill variables containing newlines.
6642 # Ultrix sh set writes to stderr and can't be redirected directly,
6643 # and sets the high bit in the cache file unless we assign to the vars.
6645 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6646 eval ac_val
=\$
$ac_var
6650 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6651 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6654 _ | IFS | as_nl
) ;; #(
6655 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6656 *) { eval $ac_var=; unset $ac_var;} ;;
6662 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6663 *${as_nl}ac_space
=\
*)
6664 # `set' does not quote correctly, so add quotes: double-quote
6665 # substitution turns \\\\ into \\, and sed turns \\ into \.
6668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6671 # `set' quotes correctly as required by POSIX, so do not add quotes.
6672 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6681 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6683 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6685 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6686 if test -w "$cache_file"; then
6687 if test "x$cache_file" != "x/dev/null"; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6689 $as_echo "$as_me: updating cache $cache_file" >&6;}
6690 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
6691 cat confcache
>"$cache_file"
6693 case $cache_file in #(
6695 mv -f confcache
"$cache_file"$$
&&
6696 mv -f "$cache_file"$$
"$cache_file" ;; #(
6698 mv -f confcache
"$cache_file" ;;
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6704 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6709 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6710 # Let make expand exec_prefix.
6711 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6713 DEFS
=-DHAVE_CONFIG_H
6718 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6719 # 1. Remove the extension, and $U if already installed.
6720 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6721 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
6722 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6723 # will be set to the directory where LIBOBJS objects are built.
6724 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6725 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
6729 LTLIBOBJS
=$ac_ltlibobjs
6733 : "${CONFIG_STATUS=./config.status}"
6735 ac_clean_files_save
=$ac_clean_files
6736 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6738 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6740 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6742 # Generated by $as_me.
6743 # Run this file to recreate the current configuration.
6744 # Compiler output produced by configure, useful for debugging
6745 # configure, is in config.log if it exists.
6751 SHELL=\${CONFIG_SHELL-$SHELL}
6754 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6755 ## -------------------- ##
6756 ## M4sh Initialization. ##
6757 ## -------------------- ##
6759 # Be more Bourne compatible
6760 DUALCASE
=1; export DUALCASE
# for MKS sh
6761 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
6764 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6765 # is contrary to our usage. Disable this feature.
6766 alias -g '${1+"$@"}'='"$@"'
6767 setopt NO_GLOB_SUBST
6769 case `(set -o) 2>/dev/null` in #(
6781 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6782 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6783 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6784 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6785 # Prefer a ksh shell builtin over an external printf program on Solaris,
6786 # but without wasting forks for bash or zsh.
6787 if test -z "$BASH_VERSION$ZSH_VERSION" \
6788 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6789 as_echo='print
-r --'
6790 as_echo_n='print
-rn --'
6791 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6792 as_echo='printf %s
\n'
6793 as_echo_n='printf %s
'
6795 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6796 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
6797 as_echo_n='/usr
/ucb
/echo -n'
6799 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6800 as_echo_n_body='eval
6804 expr "X$arg" : "X\\(.*\\)$as_nl";
6805 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6807 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
6809 export as_echo_n_body
6810 as_echo_n='sh
-c $as_echo_n_body as_echo
'
6813 as_echo='sh
-c $as_echo_body as_echo
'
6816 # The user is always right.
6817 if test "${PATH_SEPARATOR+set}" != set; then
6819 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6820 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6827 # We need space, tab and new line, in precisely that order. Quoting is
6828 # there to prevent editors from complaining about space-tab.
6829 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6830 # splitting by setting IFS to empty value.)
6833 # Find who we are. Look in the path if we contain no directory separator.
6836 *[\\/]* ) as_myself=$0 ;;
6837 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 test -z "$as_dir" && as_dir=.
6842 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6848 # We did not find ourselves, most probably we were run as `sh COMMAND'
6849 # in which case we are not to be found in the path.
6850 if test "x$as_myself" = x
; then
6853 if test ! -f "$as_myself"; then
6854 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6858 # Unset variables that we do not need and which cause bugs (e.g. in
6859 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6860 # suppresses any "Segmentation fault" message there. '((' could
6861 # trigger a bug in pdksh 5.2.14.
6862 for as_var
in BASH_ENV ENV MAIL MAILPATH
6863 do eval test x\
${$as_var+set} = xset \
6864 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
6877 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
6880 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6881 # ----------------------------------------
6882 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6883 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6884 # script with STATUS, using 1 if that was 0.
6887 as_status
=$1; test $as_status -eq 0 && as_status
=1
6889 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
6890 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6892 $as_echo "$as_me: error: $2" >&2
6893 as_fn_exit
$as_status
6897 # as_fn_set_status STATUS
6898 # -----------------------
6899 # Set $? to STATUS, without forking.
6903 } # as_fn_set_status
6907 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6917 # Portably unset VAR.
6920 { eval $1=; unset $1;}
6922 as_unset
=as_fn_unset
6923 # as_fn_append VAR VALUE
6924 # ----------------------
6925 # Append the text in VALUE to the end of the definition contained in VAR. Take
6926 # advantage of any shell optimizations that allow amortized linear growth over
6927 # repeated appends, instead of the typical quadratic growth present in naive
6929 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
6930 eval 'as_fn_append ()
6941 # as_fn_arith ARG...
6942 # ------------------
6943 # Perform arithmetic evaluation on the ARGs, and store the result in the
6944 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6945 # must be portable across $(()) and expr.
6946 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
6947 eval 'as_fn_arith ()
6954 as_val
=`expr "$@" || test $? -eq 1`
6959 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6960 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6966 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6967 as_basename
=basename
6972 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6978 as_me
=`$as_basename -- "$0" ||
6979 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6980 X"$0" : 'X\(//\)$' \| \
6981 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6983 sed '/^.*\/\([^/][^/]*\)\/*$/{
6997 # Avoid depending upon Character Ranges.
6998 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6999 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7000 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7001 as_cr_digits
='0123456789'
7002 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7004 ECHO_C
= ECHO_N
= ECHO_T
=
7005 case `echo -n x` in #(((((
7007 case `echo 'xy\c'` in
7008 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7010 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7017 rm -f conf$$ conf$$.exe conf$$.
file
7018 if test -d conf$$.dir
; then
7019 rm -f conf$$.dir
/conf$$.
file
7022 mkdir conf$$.dir
2>/dev
/null
7024 if (echo >conf$$.
file) 2>/dev
/null
; then
7025 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7027 # ... but there are two gotchas:
7028 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7029 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7030 # In both cases, we have to default to `cp -pR'.
7031 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7033 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7041 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7042 rmdir conf$$.dir
2>/dev
/null
7047 # Create "$as_dir" as a directory, including parents if necessary.
7052 -*) as_dir
=.
/$as_dir;;
7054 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7058 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7059 *) as_qdir
=$as_dir;;
7061 as_dirs
="'$as_qdir' $as_dirs"
7062 as_dir
=`$as_dirname -- "$as_dir" ||
7063 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7064 X"$as_dir" : 'X\(//\)[^/]' \| \
7065 X"$as_dir" : 'X\(//\)$' \| \
7066 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7067 $as_echo X"$as_dir" |
7068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7085 test -d "$as_dir" && break
7087 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7088 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7092 if mkdir
-p .
2>/dev
/null
; then
7093 as_mkdir_p
='mkdir -p "$as_dir"'
7095 test -d .
/-p && rmdir .
/-p
7100 # as_fn_executable_p FILE
7101 # -----------------------
7102 # Test if FILE is an executable regular file.
7103 as_fn_executable_p
()
7105 test -f "$1" && test -x "$1"
7106 } # as_fn_executable_p
7108 as_executable_p
=as_fn_executable_p
7110 # Sed expression to map a string onto a valid CPP name.
7111 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7113 # Sed expression to map a string onto a valid variable name.
7114 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7118 ## ----------------------------------- ##
7119 ## Main body of $CONFIG_STATUS script. ##
7120 ## ----------------------------------- ##
7122 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7125 # Save the log message, to keep $0 and so on meaningful, and to
7126 # report actual input values of CONFIG_FILES etc. instead of their
7127 # values after options handling.
7129 This file was extended by readline $as_me 7.0, which was
7130 generated by GNU Autoconf 2.69. Invocation command line was
7132 CONFIG_FILES = $CONFIG_FILES
7133 CONFIG_HEADERS = $CONFIG_HEADERS
7134 CONFIG_LINKS = $CONFIG_LINKS
7135 CONFIG_COMMANDS = $CONFIG_COMMANDS
7138 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7143 case $ac_config_files in *"
7144 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7147 case $ac_config_headers in *"
7148 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7153 # Files that config.status was made for.
7154 config_files="$ac_config_files"
7155 config_headers="$ac_config_headers"
7156 config_commands="$ac_config_commands"
7160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7162 \`$as_me' instantiates files and other configuration actions
7163 from templates according to the current configuration. Unless the files
7164 and actions are specified as TAGs, all are instantiated by default.
7166 Usage: $0 [OPTION]... [TAG]...
7168 -h, --help print this help, then exit
7169 -V, --version print version number and configuration settings, then exit
7170 --config print configuration, then exit
7171 -q, --quiet, --silent
7172 do not print progress messages
7173 -d, --debug don't remove temporary files
7174 --recheck update $as_me by reconfiguring in the same conditions
7175 --file=FILE[:TEMPLATE]
7176 instantiate the configuration file FILE
7177 --header=FILE[:TEMPLATE]
7178 instantiate the configuration header FILE
7180 Configuration files:
7183 Configuration headers:
7186 Configuration commands:
7189 Report bugs to <bug-readline@gnu.org>."
7192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7193 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7195 readline config.status 7.0
7196 configured by $0, generated by GNU Autoconf 2.69,
7197 with options \\"\$ac_cs_config\\"
7199 Copyright (C) 2012 Free Software Foundation, Inc.
7200 This config.status script is free software; the Free Software Foundation
7201 gives unlimited permission to copy, distribute and modify it."
7206 test -n "\$AWK" || AWK=awk
7209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7210 # The default lists apply if the user does not specify any file.
7216 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7217 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7221 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7233 # Handling of the options.
7234 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7236 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7237 $as_echo "$ac_cs_version"; exit ;;
7238 --config |
--confi |
--conf |
--con |
--co |
--c )
7239 $as_echo "$ac_cs_config"; exit ;;
7240 --debug |
--debu |
--deb |
--de |
--d |
-d )
7242 --file |
--fil |
--fi |
--f )
7245 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7246 '') as_fn_error $?
"missing file argument" ;;
7248 as_fn_append CONFIG_FILES
" '$ac_optarg'"
7249 ac_need_defaults
=false
;;
7250 --header |
--heade |
--head |
--hea )
7253 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7255 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
7256 ac_need_defaults
=false
;;
7258 # Conflict between --help and --header
7259 as_fn_error $?
"ambiguous option: \`$1'
7260 Try \`$0 --help' for more information.";;
7261 --help |
--hel |
-h )
7262 $as_echo "$ac_cs_usage"; exit ;;
7263 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7264 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7268 -*) as_fn_error $?
"unrecognized option: \`$1'
7269 Try \`$0 --help' for more information." ;;
7271 *) as_fn_append ac_config_targets
" $1"
7272 ac_need_defaults
=false
;;
7278 ac_configure_extra_args
=
7280 if $ac_cs_silent; then
7282 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7287 if \$ac_cs_recheck; then
7288 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7290 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7291 CONFIG_SHELL='$SHELL'
7297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7301 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7302 ## Running $as_me. ##
7308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7313 # Handling of arguments.
7314 for ac_config_target
in $ac_config_targets
7316 case $ac_config_target in
7317 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
7318 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7319 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
7320 "examples/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/Makefile" ;;
7321 "shlib/Makefile") CONFIG_FILES
="$CONFIG_FILES shlib/Makefile" ;;
7322 "readline.pc") CONFIG_FILES
="$CONFIG_FILES readline.pc" ;;
7323 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
7325 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7330 # If the user did not use the arguments to specify the items to instantiate,
7331 # then the envvar interface is used. Set only those that are not.
7332 # We use the long form for the default assignment because of an extremely
7333 # bizarre bug on SunOS 4.1.3.
7334 if $ac_need_defaults; then
7335 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7336 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7337 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7340 # Have a temporary directory for convenience. Make it in the build tree
7341 # simply because there is no reason against having it here, and in addition,
7342 # creating and moving files from /tmp can sometimes cause problems.
7343 # Hook for its removal unless debugging.
7344 # Note that there is a small window in which the directory will not be cleaned:
7345 # after its creation but before its name has been assigned to `$tmp'.
7349 trap 'exit_status=$?
7351 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7353 trap 'as_fn_exit 1' 1 2 13 15
7355 # Create a (secure) tmp directory for tmp files.
7358 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7362 tmp
=.
/conf$$
-$RANDOM
7363 (umask 077 && mkdir
"$tmp")
7364 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
7367 # Set up the scripts for CONFIG_FILES section.
7368 # No need to generate them if there are no CONFIG_FILES.
7369 # This happens for instance with `./config.status config.h'.
7370 if test -n "$CONFIG_FILES"; then
7373 ac_cr
=`echo X | tr X '\015'`
7374 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7375 # But we know of no other shell where ac_cr would be empty at this
7376 # point, so we can use a bashism as a fallback.
7377 if test "x$ac_cr" = x
; then
7378 eval ac_cr
=\$
\'\\r
\'
7380 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7381 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7387 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7392 echo "cat >conf$$subs.awk <<_ACEOF" &&
7393 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7396 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7397 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7399 for ac_last_try in false false false false false :; do
7400 . ./conf$$subs.sh ||
7401 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7403 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7404 if test $ac_delim_n = $ac_delim_num; then
7406 elif $ac_last_try; then
7407 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7409 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7415 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
7419 s/^/S["/; s
/!.
*/"]=/
7429 s/\(.\{148\}\)..*/\1/
7431 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
7436 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7443 s/\(.\{148\}\)..*/\1/
7445 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7449 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7454 ' <conf$$subs.awk | sed '
7459 ' >>$CONFIG_STATUS || ac_write_fail=1
7460 rm -f conf$$subs.awk
7461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7463 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
7464 for (key in S) S_is_set[key] = 1
7470 nfields = split(line, field, "@
")
7472 len = length(field[1])
7473 for (i = 2; i < nfields; i++) {
7475 keylen = length(key)
7476 if (S_is_set[key]) {
7478 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7479 len += length(value) + length(field[++i])
7490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7491 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7492 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
7495 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
7496 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
7499 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7500 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
7501 # trailing colons and then remove the whole line if VPATH becomes empty
7502 # (actually we leave an empty line to preserve line numbers).
7503 if test "x
$srcdir" = x.; then
7504 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7523 fi # test -n "$CONFIG_FILES"
7525 # Set up the scripts for CONFIG_HEADERS section.
7526 # No need to generate them if there are no CONFIG_HEADERS.
7527 # This happens for instance with `./config.status Makefile'.
7528 if test -n "$CONFIG_HEADERS"; then
7529 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
7533 # Transform confdefs.h into an awk script `defines.awk', embedded as
7534 # here-document in config.status, that substitutes the proper values into
7535 # config.h.in to produce config.h.
7537 # Create a delimiter string that does not exist in confdefs.h, to ease
7538 # handling of long lines.
7540 for ac_last_try in false false :; do
7541 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
7542 if test -z "$ac_tt"; then
7544 elif $ac_last_try; then
7545 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
7547 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7551 # For the awk script, D is an array of macro values keyed by name,
7552 # likewise P contains macro parameters if any. Preserve backslash
7553 # newline sequences.
7555 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7557 s/.\{148\}/&'"$ac_delim"'/g
7560 s/^[ ]*#[ ]*define[ ][ ]*/ /
7567 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
7569 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
7573 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
7574 D["\
1"]=" \
3\\\\\\n
"\\/p
7576 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
7581 s/.\{148\}/&'"$ac_delim"'/g
7586 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
7589 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
7591 ' <confdefs.h | sed '
7592 s/'"$ac_delim"'/"\\\
7593 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7596 for (key in D) D_is_set[key] = 1
7599 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7601 split(line, arg, " ")
7602 if (arg[1] == "#") {
7606 defundef
= substr
(arg
[1], 2)
7609 split(mac1
, mac2
, "(") #)
7611 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
7612 if (D_is_set
[macro
]) {
7613 # Preserve the white space surrounding the "#".
7614 print prefix
"define", macro P
[macro
] D
[macro
]
7617 # Replace #undef with comments. This is necessary, for example,
7618 # in the case of _POSIX_SOURCE, which is predefined and required
7619 # on some systems where configure will not decide to define it.
7620 if (defundef
== "undef") {
7621 print
"/*", prefix defundef
, macro
, "*/"
7629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7630 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
7631 fi # test -n "$CONFIG_HEADERS"
7634 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7639 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7641 case $ac_mode$ac_tag in
7643 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7644 :[FH
]-) ac_tag
=-:-;;
7645 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7662 -) ac_f
="$ac_tmp/stdin";;
7663 *) # Look for the file first in the build tree, then in the source tree
7664 # (if the path is not absolute). The absolute path cannot be DOS-style,
7665 # because $ac_f cannot contain `:'.
7669 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7671 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7673 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7674 as_fn_append ac_file_inputs
" '$ac_f'"
7677 # Let's still pretend it is `configure' which instantiates (i.e., don't
7678 # use $as_me), people would be surprised to read:
7679 # /* config.h. Generated by config.status. */
7680 configure_input
='Generated from '`
7681 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7683 if test x
"$ac_file" != x-
; then
7684 configure_input
="$ac_file. $configure_input"
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7686 $as_echo "$as_me: creating $ac_file" >&6;}
7688 # Neutralize special characters interpreted by sed in replacement strings.
7689 case $configure_input in #(
7690 *\
&* |
*\|
* |
*\\* )
7691 ac_sed_conf_input
=`$as_echo "$configure_input" |
7692 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7693 *) ac_sed_conf_input
=$configure_input;;
7697 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
7698 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
7703 ac_dir
=`$as_dirname -- "$ac_file" ||
7704 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7705 X"$ac_file" : 'X\(//\)[^/]' \| \
7706 X"$ac_file" : 'X\(//\)$' \| \
7707 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7708 $as_echo X"$ac_file" |
7709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7726 as_dir
="$ac_dir"; as_fn_mkdir_p
7730 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7732 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7733 # A ".." for each directory in $ac_dir_suffix.
7734 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7735 case $ac_top_builddir_sub in
7736 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7737 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7740 ac_abs_top_builddir
=$ac_pwd
7741 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7742 # for backward compatibility:
7743 ac_top_builddir
=$ac_top_build_prefix
7746 .
) # We are building in place.
7748 ac_top_srcdir
=$ac_top_builddir_sub
7749 ac_abs_top_srcdir
=$ac_pwd ;;
7750 [\\/]* | ?
:[\\/]* ) # Absolute name.
7751 ac_srcdir
=$srcdir$ac_dir_suffix;
7752 ac_top_srcdir
=$srcdir
7753 ac_abs_top_srcdir
=$srcdir ;;
7755 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7756 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7757 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7759 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7769 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7770 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7775 # If the template does not know about datarootdir, expand it.
7776 # FIXME: This hack should be removed a few years after 2.60.
7777 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7788 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7789 *datarootdir
*) ac_datarootdir_seen
=yes;;
7790 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7792 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7795 ac_datarootdir_hack='
7796 s&@datadir@&$datadir&g
7797 s&@docdir@&$docdir&g
7798 s&@infodir@&$infodir&g
7799 s&@localedir@&$localedir&g
7800 s&@mandir@&$mandir&g
7801 s&\\\${datarootdir}&$datarootdir&g' ;;
7805 # Neutralize VPATH when `$srcdir' = `.'.
7806 # Shell code in configure.ac might set extrasub.
7807 # FIXME: do we really want to maintain this feature?
7808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7809 ac_sed_extra="$ac_vpsub
7812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7814 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7815 s|@configure_input@|
$ac_sed_conf_input|
;t t
7816 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7817 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
7818 s
&@srcdir@
&$ac_srcdir&;t t
7819 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7820 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7821 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7822 s
&@builddir@
&$ac_builddir&;t t
7823 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7824 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7825 s
&@INSTALL@
&$ac_INSTALL&;t t
7826 $ac_datarootdir_hack
7828 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
7829 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
7831 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7832 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
7833 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7834 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7836 which seems to be undefined. Please make sure it is defined" >&5
7837 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7838 which seems to be undefined. Please make sure it is defined" >&2;}
7840 rm -f "$ac_tmp/stdin"
7842 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7843 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7845 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7851 if test x"$ac_file" != x-; then
7853 $as_echo "/* $configure_input */" \
7854 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7855 } >"$ac_tmp/config.h" \
7856 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7857 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7859 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7862 mv "$ac_tmp/config.h" "$ac_file" \
7863 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7866 $as_echo "/* $configure_input */" \
7867 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7868 || as_fn_error $? "could not create -" "$LINENO" 5
7872 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7873 $as_echo "$as_me: executing $ac_file commands" >&6;}
7878 case $ac_file$ac_mode in
7880 # Makefile uses this timestamp file to record whether config.h is up to date.
7890 ac_clean_files=$ac_clean_files_save
7892 test $ac_write_fail = 0 ||
7893 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7896 # configure is writing to config.log, and then calls config.status.
7897 # config.status does its own redirection, appending to config.log.
7898 # Unfortunately, on DOS this fails, as config.log is still kept open
7899 # by configure, so config.status won't be able to
write to it
; its
7900 # output is simply discarded. So we exec the FD to /dev/null,
7901 # effectively closing config.log, so it can be properly (re)opened and
7902 # appended to by config.status. When coming back to configure, we
7903 # need to make the FD available again.
7904 if test "$no_create" != yes; then
7906 ac_config_status_args
=
7907 test "$silent" = yes &&
7908 ac_config_status_args
="$ac_config_status_args --quiet"
7910 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7912 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7913 # would make configure fail if this is the last instruction.
7914 $ac_cs_success || as_fn_exit
1
7916 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7918 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}