2 # From configure.ac for Readline 8.1, version 2.90.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for readline 8.1.
6 # Report bugs to <bug-readline@gnu.org>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE
=1; export DUALCASE
# for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print
-rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
56 as_echo_n='/usr
/ucb
/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
69 as_echo_n='sh
-c $as_echo_n_body as_echo
'
72 as_echo='sh
-c $as_echo_body as_echo
'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x
; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var
in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\
${$as_var+set} = xset \
123 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
136 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
141 _as_can_reexec
=no
; export _as_can_reexec
;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
148 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
150 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec
=; unset _as_can_reexec
;}
163 if test "x$CONFIG_SHELL" = x
; then
164 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
172 case \`(set -o) 2>/dev/null\` in #(
180 as_required
="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
198 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1"
203 if (eval "$as_required") 2>/dev
/null
; then :
208 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
213 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
216 test -z "$as_dir" && as_dir
=.
220 for as_base
in sh bash ksh sh5
; do
221 # Try only shells that exist, to save several forks.
222 as_shell
=$as_dir/$as_base
223 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
224 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
225 CONFIG_SHELL
=$as_shell as_have_required
=yes
226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
234 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
235 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
236 CONFIG_SHELL
=$SHELL as_have_required
=yes
241 if test "x$CONFIG_SHELL" != x
; then :
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
249 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
251 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed `exec'.
259 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
263 if test x
$as_have_required = xno
; then :
264 $as_echo "$0: This script requires a shell more modern than all"
265 $as_echo "$0: the shells that I found on your system."
266 if test x
${ZSH_VERSION+set} = xset
; then
267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
270 $as_echo "$0: Please tell bug-autoconf@gnu.org and
271 $0: bug-readline@gnu.org about your system, including any
272 $0: error possibly output before this message. Then install
273 $0: a modern shell, or manually run the script under such a
274 $0: shell if you do have one."
280 SHELL
=${CONFIG_SHELL-/bin/sh}
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE
= GREP_OPTIONS
=
284 unset CLICOLOR_FORCE GREP_OPTIONS
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
291 # Portably unset VAR.
294 { eval $1=; unset $1;}
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 # Create "$as_dir" as a directory, including parents if necessary.
323 -*) as_dir
=.
/$as_dir;;
325 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
329 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
332 as_dirs
="'$as_qdir' $as_dirs"
333 as_dir
=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
356 test -d "$as_dir" && break
358 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
359 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p
()
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
378 eval 'as_fn_append ()
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
402 as_val
=`expr "$@" || test $? -eq 1`
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
414 as_status
=$1; test $as_status -eq 0 && as_status
=1
416 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit
$as_status
423 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
430 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
436 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
442 as_me
=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
461 # Avoid depending upon Character Ranges.
462 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits
='0123456789'
466 as_cr_alnum
=$as_cr_Letters$as_cr_digits
469 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
470 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
489 chmod +x
"$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec
=no
; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
500 # Exit status is that of the last command.
504 ECHO_C
= ECHO_N
= ECHO_T
=
505 case `echo -n x` in #(((((
507 case `echo 'xy\c'` in
508 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
517 rm -f conf$$ conf$$.exe conf$$.
file
518 if test -d conf$$.dir
; then
519 rm -f conf$$.dir
/conf$$.
file
522 mkdir conf$$.dir
2>/dev
/null
524 if (echo >conf$$.
file) 2>/dev
/null
; then
525 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
533 elif ln conf$$.
file conf$$
2>/dev
/null
; then
541 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
542 rmdir conf$$.dir
2>/dev
/null
544 if mkdir
-p .
2>/dev
/null
; then
545 as_mkdir_p
='mkdir -p "$as_dir"'
547 test -d .
/-p && rmdir .
/-p
552 as_executable_p
=as_fn_executable_p
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
561 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
572 ac_default_prefix
=/usr
/local
574 ac_config_libobj_dir
=.
581 # Identity of this package.
582 PACKAGE_NAME
='readline'
583 PACKAGE_TARNAME
='readline'
584 PACKAGE_VERSION
='8.1'
585 PACKAGE_STRING
='readline 8.1'
586 PACKAGE_BUGREPORT
='bug-readline@gnu.org'
589 ac_unique_file
="readline.h"
590 # Factoring default headers for most tests.
591 ac_includes_default
="\
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
603 # ifdef HAVE_STDLIB_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
626 ac_subst_vars
='LTLIBOBJS
627 TERMCAP_PKG_CONFIG_LIB
635 EXAMPLES_INSTALL_TARGET
636 SHARED_INSTALL_TARGET
637 STATIC_INSTALL_TARGET
712 program_transform_name
725 enable_option_checking
729 enable_install_examples
730 enable_bracketed_paste_default
733 ac_precious_vars
='build_alias
744 # Initialize some variables set by options.
746 ac_init_version
=false
747 ac_unrecognized_opts
=
749 # The variables have the same names as the options, with
750 # dashes changed to underlines.
758 program_transform_name
=s
,x
,x
,
766 # Installation directory options.
767 # These are left unexpanded so users can "make install exec_prefix=/foo"
768 # and all the variables that are supposed to be based on exec_prefix
769 # by default will actually change.
770 # Use braces instead of parens because sh, perl, etc. also accept them.
771 # (The list follows the same order as the GNU Coding Standards.)
772 bindir
='${exec_prefix}/bin'
773 sbindir
='${exec_prefix}/sbin'
774 libexecdir
='${exec_prefix}/libexec'
775 datarootdir
='${prefix}/share'
776 datadir
='${datarootdir}'
777 sysconfdir
='${prefix}/etc'
778 sharedstatedir
='${prefix}/com'
779 localstatedir
='${prefix}/var'
780 includedir
='${prefix}/include'
781 oldincludedir
='/usr/include'
782 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
783 infodir
='${datarootdir}/info'
788 libdir
='${exec_prefix}/lib'
789 localedir
='${datarootdir}/locale'
790 mandir
='${datarootdir}/man'
796 # If the previous option needs an argument, assign it.
797 if test -n "$ac_prev"; then
798 eval $ac_prev=\
$ac_option
804 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
809 # Accept the important Cygnus configure options, so we can diagnose typos.
811 case $ac_dashdash$ac_option in
815 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
817 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
820 -build |
--build |
--buil |
--bui |
--bu)
821 ac_prev
=build_alias
;;
822 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
823 build_alias
=$ac_optarg ;;
825 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
826 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
827 ac_prev
=cache_file
;;
828 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
829 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
830 cache_file
=$ac_optarg ;;
833 cache_file
=config.cache
;;
835 -datadir |
--datadir |
--datadi |
--datad)
837 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
838 datadir
=$ac_optarg ;;
840 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
841 |
--dataroo |
--dataro |
--datar)
842 ac_prev
=datarootdir
;;
843 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
844 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
845 datarootdir
=$ac_optarg ;;
847 -disable-* |
--disable-*)
848 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
851 as_fn_error $?
"invalid feature name: $ac_useropt"
852 ac_useropt_orig
=$ac_useropt
853 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
854 case $ac_user_opts in
858 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
859 ac_unrecognized_sep
=', ';;
861 eval enable_
$ac_useropt=no
;;
863 -docdir |
--docdir |
--docdi |
--doc |
--do)
865 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
868 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
870 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
873 -enable-* |
--enable-*)
874 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
875 # Reject names that are not valid shell variable names.
876 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
877 as_fn_error $?
"invalid feature name: $ac_useropt"
878 ac_useropt_orig
=$ac_useropt
879 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880 case $ac_user_opts in
884 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
885 ac_unrecognized_sep
=', ';;
887 eval enable_
$ac_useropt=\
$ac_optarg ;;
889 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
890 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
891 |
--exec |
--exe |
--ex)
892 ac_prev
=exec_prefix
;;
893 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
894 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
895 |
--exec=* |
--exe=* |
--ex=*)
896 exec_prefix
=$ac_optarg ;;
898 -gas |
--gas |
--ga |
--g)
899 # Obsolete; use --with-gas.
902 -help |
--help |
--hel |
--he |
-h)
904 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
905 ac_init_help
=recursive
;;
906 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
907 ac_init_help
=short
;;
909 -host |
--host |
--hos |
--ho)
910 ac_prev
=host_alias
;;
911 -host=* |
--host=* |
--hos=* |
--ho=*)
912 host_alias
=$ac_optarg ;;
914 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
916 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
918 htmldir
=$ac_optarg ;;
920 -includedir |
--includedir |
--includedi |
--included |
--include \
921 |
--includ |
--inclu |
--incl |
--inc)
922 ac_prev
=includedir
;;
923 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
924 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
925 includedir
=$ac_optarg ;;
927 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
929 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
930 infodir
=$ac_optarg ;;
932 -libdir |
--libdir |
--libdi |
--libd)
934 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
937 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
938 |
--libexe |
--libex |
--libe)
939 ac_prev
=libexecdir
;;
940 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
941 |
--libexe=* |
--libex=* |
--libe=*)
942 libexecdir
=$ac_optarg ;;
944 -localedir |
--localedir |
--localedi |
--localed |
--locale)
946 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
947 localedir
=$ac_optarg ;;
949 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
950 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
951 ac_prev
=localstatedir
;;
952 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
953 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
954 localstatedir
=$ac_optarg ;;
956 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
958 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
962 # Obsolete; use --without-fp.
965 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
966 |
--no-cr |
--no-c |
-n)
969 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
970 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
973 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
974 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
975 |
--oldin |
--oldi |
--old |
--ol |
--o)
976 ac_prev
=oldincludedir
;;
977 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
978 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
979 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
980 oldincludedir
=$ac_optarg ;;
982 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
984 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
987 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
988 |
--program-pre |
--program-pr |
--program-p)
989 ac_prev
=program_prefix
;;
990 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
991 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
992 program_prefix
=$ac_optarg ;;
994 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
995 |
--program-suf |
--program-su |
--program-s)
996 ac_prev
=program_suffix
;;
997 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
998 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
999 program_suffix
=$ac_optarg ;;
1001 -program-transform-name |
--program-transform-name \
1002 |
--program-transform-nam |
--program-transform-na \
1003 |
--program-transform-n |
--program-transform- \
1004 |
--program-transform |
--program-transfor \
1005 |
--program-transfo |
--program-transf \
1006 |
--program-trans |
--program-tran \
1007 |
--progr-tra |
--program-tr |
--program-t)
1008 ac_prev
=program_transform_name
;;
1009 -program-transform-name=* |
--program-transform-name=* \
1010 |
--program-transform-nam=* |
--program-transform-na=* \
1011 |
--program-transform-n=* |
--program-transform-=* \
1012 |
--program-transform=* |
--program-transfor=* \
1013 |
--program-transfo=* |
--program-transf=* \
1014 |
--program-trans=* |
--program-tran=* \
1015 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1016 program_transform_name
=$ac_optarg ;;
1018 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1020 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1021 pdfdir
=$ac_optarg ;;
1023 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1025 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1028 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1029 |
-silent |
--silent |
--silen |
--sile |
--sil)
1032 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1034 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1036 sbindir
=$ac_optarg ;;
1038 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1039 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1040 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1042 ac_prev
=sharedstatedir
;;
1043 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1044 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1045 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1047 sharedstatedir
=$ac_optarg ;;
1049 -site |
--site |
--sit)
1051 -site=* |
--site=* |
--sit=*)
1054 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1056 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1057 srcdir
=$ac_optarg ;;
1059 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1060 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1061 ac_prev
=sysconfdir
;;
1062 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1063 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1064 sysconfdir
=$ac_optarg ;;
1066 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1067 ac_prev
=target_alias
;;
1068 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1069 target_alias
=$ac_optarg ;;
1071 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1074 -version |
--version |
--versio |
--versi |
--vers |
-V)
1075 ac_init_version
=: ;;
1078 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1081 as_fn_error $?
"invalid package name: $ac_useropt"
1082 ac_useropt_orig
=$ac_useropt
1083 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1088 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1089 ac_unrecognized_sep
=', ';;
1091 eval with_
$ac_useropt=\
$ac_optarg ;;
1093 -without-* |
--without-*)
1094 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1097 as_fn_error $?
"invalid package name: $ac_useropt"
1098 ac_useropt_orig
=$ac_useropt
1099 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1104 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1105 ac_unrecognized_sep
=', ';;
1107 eval with_
$ac_useropt=no
;;
1110 # Obsolete; use --with-x.
1113 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1114 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1115 ac_prev
=x_includes
;;
1116 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1117 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1118 x_includes
=$ac_optarg ;;
1120 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1121 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1122 ac_prev
=x_libraries
;;
1123 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1124 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1125 x_libraries
=$ac_optarg ;;
1127 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1128 Try \`$0 --help' for more information"
1132 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1133 # Reject names that are not valid shell variable names.
1134 case $ac_envvar in #(
1135 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1136 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1138 eval $ac_envvar=\
$ac_optarg
1139 export $ac_envvar ;;
1142 # FIXME: should be removed in autoconf 3.0.
1143 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1144 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1145 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1146 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1152 if test -n "$ac_prev"; then
1153 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1154 as_fn_error $?
"missing argument to $ac_option"
1157 if test -n "$ac_unrecognized_opts"; then
1158 case $enable_option_checking in
1160 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1161 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1165 # Check all directory arguments for consistency.
1166 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1167 datadir sysconfdir sharedstatedir localstatedir includedir \
1168 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1169 libdir localedir mandir
1171 eval ac_val
=\$
$ac_var
1172 # Remove trailing slashes.
1175 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1176 eval $ac_var=\
$ac_val;;
1178 # Be sure to have absolute directory names.
1180 [\\/$
]* | ?
:[\\/]* ) continue;;
1181 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1183 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1186 # There might be people who depend on the old broken behavior: `$host'
1187 # used to hold the argument of --host etc.
1188 # FIXME: To remove some day.
1191 target
=$target_alias
1193 # FIXME: To remove some day.
1194 if test "x$host_alias" != x
; then
1195 if test "x$build_alias" = x
; then
1196 cross_compiling
=maybe
1197 elif test "x$build_alias" != "x$host_alias"; then
1203 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1205 test "$silent" = yes && exec 6>/dev
/null
1208 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1209 ac_ls_di
=`ls -di .` &&
1210 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1211 as_fn_error $?
"working directory cannot be determined"
1212 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1213 as_fn_error $?
"pwd does not report name of working directory"
1216 # Find the source files, if location was not specified.
1217 if test -z "$srcdir"; then
1218 ac_srcdir_defaulted
=yes
1219 # Try the directory containing this script, then the parent directory.
1220 ac_confdir
=`$as_dirname -- "$as_myself" ||
1221 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1222 X"$as_myself" : 'X\(//\)[^/]' \| \
1223 X"$as_myself" : 'X\(//\)$' \| \
1224 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1225 $as_echo X"$as_myself" |
1226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244 if test ! -r "$srcdir/$ac_unique_file"; then
1248 ac_srcdir_defaulted
=no
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1251 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1252 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1254 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1256 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1258 # When building in place, set srcdir=.
1259 if test "$ac_abs_confdir" = "$ac_pwd"; then
1262 # Remove unnecessary trailing slashes from srcdir.
1263 # Double slashes in file names in object file debugging info
1264 # mess up M-x gdb in Emacs.
1266 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1268 for ac_var
in $ac_precious_vars; do
1269 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1270 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1271 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1272 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1276 # Report the --help message.
1278 if test "$ac_init_help" = "long"; then
1279 # Omit some internal or obsolete options to make the list less imposing.
1280 # This message is too long to be a string in the A/UX 3.1 sh.
1282 \`configure' configures readline 8.1 to adapt to many kinds of systems.
1284 Usage: $0 [OPTION]... [VAR=VALUE]...
1286 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1287 VAR=VALUE. See below for descriptions of some of the useful variables.
1289 Defaults for the options are specified in brackets.
1292 -h, --help display this help and exit
1293 --help=short display options specific to this package
1294 --help=recursive display the short help of all the included packages
1295 -V, --version display version information and exit
1296 -q, --quiet, --silent do not print \`checking ...' messages
1297 --cache-file=FILE cache test results in FILE [disabled]
1298 -C, --config-cache alias for \`--cache-file=config.cache'
1299 -n, --no-create do not create output files
1300 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1302 Installation directories:
1303 --prefix=PREFIX install architecture-independent files in PREFIX
1304 [$ac_default_prefix]
1305 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1308 By default, \`make install' will install all the files in
1309 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1310 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1311 for instance \`--prefix=\$HOME'.
1313 For better control, use the options below.
1315 Fine tuning of the installation directories:
1316 --bindir=DIR user executables [EPREFIX/bin]
1317 --sbindir=DIR system admin executables [EPREFIX/sbin]
1318 --libexecdir=DIR program executables [EPREFIX/libexec]
1319 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1320 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1321 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1322 --libdir=DIR object code libraries [EPREFIX/lib]
1323 --includedir=DIR C header files [PREFIX/include]
1324 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1325 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1326 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1327 --infodir=DIR info documentation [DATAROOTDIR/info]
1328 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1329 --mandir=DIR man documentation [DATAROOTDIR/man]
1330 --docdir=DIR documentation root [DATAROOTDIR/doc/readline]
1331 --htmldir=DIR html documentation [DOCDIR]
1332 --dvidir=DIR dvi documentation [DOCDIR]
1333 --pdfdir=DIR pdf documentation [DOCDIR]
1334 --psdir=DIR ps documentation [DOCDIR]
1340 --build=BUILD configure
for building on BUILD
[guessed
]
1341 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1345 if test -n "$ac_init_help"; then
1346 case $ac_init_help in
1347 short | recursive
) echo "Configuration of readline 8.1:";;
1352 --disable-option-checking ignore unrecognized
--enable/--with options
1353 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1354 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1355 --enable-multibyte enable multibyte characters
if OS supports them
1356 --enable-static build static libraries
[[default
=YES
]]
1357 --disable-install-examples
1358 don
't install examples [[default=install]]
1359 --disable-bracketed-paste-default
1360 disable bracketed paste by default
1362 --disable-largefile omit support for large files
1365 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1366 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1367 --with-curses use the curses library instead of the termcap
1370 Some influential environment variables:
1371 CC C compiler command
1372 CFLAGS C compiler flags
1373 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1374 nonstandard directory <lib dir>
1375 LIBS libraries to pass to the linker, e.g. -l<library>
1376 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1377 you have headers in a nonstandard directory <include dir>
1380 Use these variables to override the choices made by `configure' or to
help
1381 it to
find libraries and programs with nonstandard names
/locations.
1383 Report bugs to
<bug-readline@gnu.org
>.
1388 if test "$ac_init_help" = "recursive"; then
1389 # If there are subdirs, report their specific --help.
1390 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1391 test -d "$ac_dir" ||
1392 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1397 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1399 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1400 # A ".." for each directory in $ac_dir_suffix.
1401 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1402 case $ac_top_builddir_sub in
1403 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1404 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1407 ac_abs_top_builddir
=$ac_pwd
1408 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1409 # for backward compatibility:
1410 ac_top_builddir
=$ac_top_build_prefix
1413 .
) # We are building in place.
1415 ac_top_srcdir
=$ac_top_builddir_sub
1416 ac_abs_top_srcdir
=$ac_pwd ;;
1417 [\\/]* | ?
:[\\/]* ) # Absolute name.
1418 ac_srcdir
=$srcdir$ac_dir_suffix;
1419 ac_top_srcdir
=$srcdir
1420 ac_abs_top_srcdir
=$srcdir ;;
1422 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1423 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1424 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1426 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1428 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1429 # Check for guested configure.
1430 if test -f "$ac_srcdir/configure.gnu"; then
1432 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1433 elif test -f "$ac_srcdir/configure"; then
1435 $SHELL "$ac_srcdir/configure" --help=recursive
1437 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1439 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1443 test -n "$ac_init_help" && exit $ac_status
1444 if $ac_init_version; then
1446 readline configure
8.1
1447 generated by GNU Autoconf
2.69
1449 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1450 This configure
script is free software
; the Free Software Foundation
1451 gives unlimited permission to copy
, distribute and modify it.
1456 ## ------------------------ ##
1457 ## Autoconf initialization. ##
1458 ## ------------------------ ##
1460 # ac_fn_c_try_compile LINENO
1461 # --------------------------
1462 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1463 ac_fn_c_try_compile
()
1465 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1466 rm -f conftest.
$ac_objext
1467 if { { ac_try
="$ac_compile"
1469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1470 *) ac_try_echo=$ac_try;;
1472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1473 $as_echo "$ac_try_echo"; } >&5
1474 (eval "$ac_compile") 2>conftest.err
1476 if test -s conftest.err; then
1477 grep -v '^ *+' conftest.err >conftest.er1
1478 cat conftest.er1 >&5
1479 mv -f conftest.er1 conftest.err
1481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1482 test $ac_status = 0; } && {
1483 test -z "$ac_c_werror_flag" ||
1484 test ! -s conftest.err
1485 } && test -s conftest.$ac_objext; then :
1488 $as_echo "$as_me: failed program was:" >&5
1489 sed 's/^/| /' conftest.$ac_ext >&5
1493 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1494 as_fn_set_status $ac_retval
1496 } # ac_fn_c_try_compile
1498 # ac_fn_c_try_cpp LINENO
1499 # ----------------------
1500 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504 if { { ac_try="$ac_cpp conftest.$ac_ext"
1506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1507 *) ac_try_echo
=$ac_try;;
1509 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510 $as_echo "$ac_try_echo"; } >&5
1511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1513 if test -s conftest.err
; then
1514 grep -v '^ *+' conftest.err
>conftest.er1
1515 cat conftest.er1
>&5
1516 mv -f conftest.er1 conftest.err
1518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519 test $ac_status = 0; } > conftest.i
&& {
1520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1521 test ! -s conftest.err
1525 $as_echo "$as_me: failed program was:" >&5
1526 sed 's/^/| /' conftest.
$ac_ext >&5
1530 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1531 as_fn_set_status
$ac_retval
1535 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1536 # -------------------------------------------------------
1537 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1538 # the include files in INCLUDES and setting the cache variable VAR
1540 ac_fn_c_check_header_mongrel
()
1542 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1543 if eval \
${$3+:} false
; then :
1544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1545 $as_echo_n "checking for $2... " >&6; }
1546 if eval \
${$3+:} false
; then :
1547 $as_echo_n "(cached) " >&6
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1551 $as_echo "$ac_res" >&6; }
1553 # Is the header compilable?
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1555 $as_echo_n "checking $2 usability... " >&6; }
1556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1557 /* end confdefs.h. */
1561 if ac_fn_c_try_compile
"$LINENO"; then :
1562 ac_header_compiler
=yes
1564 ac_header_compiler
=no
1566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1568 $as_echo "$ac_header_compiler" >&6; }
1570 # Is the header present?
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1572 $as_echo_n "checking $2 presence... " >&6; }
1573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1574 /* end confdefs.h. */
1577 if ac_fn_c_try_cpp
"$LINENO"; then :
1578 ac_header_preproc
=yes
1580 ac_header_preproc
=no
1582 rm -f conftest.err conftest.i conftest.
$ac_ext
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1584 $as_echo "$ac_header_preproc" >&6; }
1586 # So? What about this header?
1587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1590 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1592 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1596 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1598 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1600 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1602 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1604 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1605 ( $as_echo "## ----------------------------------- ##
1606 ## Report this to bug-readline@gnu.org ##
1607 ## ----------------------------------- ##"
1608 ) |
sed "s/^/$as_me: WARNING: /" >&2
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1612 $as_echo_n "checking for $2... " >&6; }
1613 if eval \
${$3+:} false
; then :
1614 $as_echo_n "(cached) " >&6
1616 eval "$3=\$ac_header_compiler"
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620 $as_echo "$ac_res" >&6; }
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 } # ac_fn_c_check_header_mongrel
1626 # ac_fn_c_try_run LINENO
1627 # ----------------------
1628 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1629 # that executables *can* be run.
1632 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1633 if { { ac_try
="$ac_link"
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_link") 2>&5
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1644 { { case "(($ac_try" in
1645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1646 *) ac_try_echo
=$ac_try;;
1648 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_try") 2>&5
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; }; }; then :
1656 $as_echo "$as_me: program exited with status $ac_status" >&5
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.
$ac_ext >&5
1660 ac_retval
=$ac_status
1662 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status
$ac_retval
1668 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1669 # -------------------------------------------------------
1670 # Tests whether HEADER exists and can be compiled using the include files in
1671 # INCLUDES, setting the cache variable VAR accordingly.
1672 ac_fn_c_check_header_compile
()
1674 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 $as_echo_n "checking for $2... " >&6; }
1677 if eval \
${$3+:} false
; then :
1678 $as_echo_n "(cached) " >&6
1680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1685 if ac_fn_c_try_compile
"$LINENO"; then :
1690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694 $as_echo "$ac_res" >&6; }
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 } # ac_fn_c_check_header_compile
1699 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1700 # -------------------------------------------
1701 # Tests whether TYPE exists after having included INCLUDES, setting cache
1702 # variable VAR accordingly.
1703 ac_fn_c_check_type
()
1705 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \
${$3+:} false
; then :
1709 $as_echo_n "(cached) " >&6
1712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1724 if ac_fn_c_try_compile
"$LINENO"; then :
1725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1726 /* end confdefs.h. */
1737 if ac_fn_c_try_compile
"$LINENO"; then :
1742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 } # ac_fn_c_check_type
1753 # ac_fn_c_try_link LINENO
1754 # -----------------------
1755 # Try to link conftest.$ac_ext, and return whether this succeeded.
1758 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1759 rm -f conftest.
$ac_objext conftest
$ac_exeext
1760 if { { ac_try
="$ac_link"
1762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_link") 2>conftest.err
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && {
1776 test -z "$ac_c_werror_flag" ||
1777 test ! -s conftest.err
1778 } && test -s conftest$ac_exeext && {
1779 test "$cross_compiling" = yes ||
1780 test -x conftest$ac_exeext
1784 $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1789 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1790 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1791 # interfere with the next link command; also delete a directory that is
1792 # left behind by Apple's compiler. We do this before executing the actions.
1793 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 as_fn_set_status $ac_retval
1797 } # ac_fn_c_try_link
1799 # ac_fn_c_check_func LINENO FUNC VAR
1800 # ----------------------------------
1801 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1802 ac_fn_c_check_func ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if eval \${$3+:} false; then :
1808 $as_echo_n "(cached) " >&6
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1812 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1814 #define $2 innocuous_$2
1816 /* System header to define __stub macros and hopefully few prototypes,
1817 which can conflict with char $2 (); below.
1818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1819 <limits.h> exists even on freestanding compilers. */
1822 # include <limits.h>
1824 # include <assert.h>
1829 /* Override any GCC internal prototype to avoid an error.
1830 Use char because int might match the return type of a GCC
1831 builtin and then its argument prototype would still apply. */
1836 /* The GNU C library defines this for functions which it implements
1837 to always fail with ENOSYS. Some functions are actually named
1838 something starting with __ and the normal name is an alias. */
1839 #if defined __stub_$2 || defined __stub___$2
1851 if ac_fn_c_try_link "$LINENO"; then :
1856 rm -f core conftest.err conftest.$ac_objext \
1857 conftest$ac_exeext conftest.$ac_ext
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861 $as_echo "$ac_res" >&6; }
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864 } # ac_fn_c_check_func
1866 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1867 # ---------------------------------------------
1868 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1870 ac_fn_c_check_decl ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1874 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1876 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1877 if eval \${$3+:} false; then :
1878 $as_echo_n "(cached) " >&6
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1886 #ifndef $as_decl_name
1888 (void) $as_decl_use;
1890 (void) $as_decl_name;
1898 if ac_fn_c_try_compile "$LINENO"; then :
1903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 } # ac_fn_c_check_decl
1912 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1913 # --------------------------------------------
1914 # Tries to find the compile-time value of EXPR in a program that includes
1915 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1917 ac_fn_c_compute_int ()
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 if test "$cross_compiling" = yes; then
1921 # Depending upon the size, compute the lo and hi bounds.
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1928 static int test_array [1 - 2 * !(($2) >= 0)];
1930 return test_array [0];
1936 if ac_fn_c_try_compile "$LINENO"; then :
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1945 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1947 return test_array [0];
1953 if ac_fn_c_try_compile "$LINENO"; then :
1954 ac_hi=$ac_mid; break
1956 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1957 if test $ac_lo -le $ac_mid; then
1961 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1972 static int test_array [1 - 2 * !(($2) < 0)];
1974 return test_array [0];
1980 if ac_fn_c_try_compile "$LINENO"; then :
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1989 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1991 return test_array [0];
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_lo=$ac_mid; break
2000 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2001 if test $ac_mid -le $ac_hi; then
2005 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 # Binary search between lo and hi bounds.
2016 while test "x$ac_lo" != "x$ac_hi"; do
2017 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2024 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2026 return test_array [0];
2032 if ac_fn_c_try_compile "$LINENO"; then :
2035 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2047 static long int longval () { return $2; }
2048 static unsigned long int ulongval () { return $2; }
2055 FILE *f = fopen ("conftest.val", "w");
2060 long int i = longval ();
2063 fprintf (f, "%ld", i);
2067 unsigned long int i = ulongval ();
2070 fprintf (f, "%lu", i);
2072 /* Do not output a trailing newline, as this causes \r\n confusion
2073 on some platforms. */
2074 return ferror (f) || fclose (f) != 0;
2080 if ac_fn_c_try_run "$LINENO"; then :
2081 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2086 conftest.$ac_objext conftest.beam conftest.$ac_ext
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091 as_fn_set_status $ac_retval
2093 } # ac_fn_c_compute_int
2094 cat >config.log <<_ACEOF
2095 This file contains any messages produced by compilers while
2096 running configure, to aid debugging if configure makes a mistake.
2098 It was created by readline $as_me 8.1, which was
2099 generated by GNU Autoconf 2.69. Invocation command line was
2111 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2112 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2113 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2114 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2115 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2117 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2118 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2120 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2121 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2122 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2123 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2124 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2125 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2126 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 test -z "$as_dir" && as_dir=.
2135 $as_echo "PATH: $as_dir"
2151 # Keep a trace of the command line.
2152 # Strip out --no-create and --no-recursion so they do not pile up.
2153 # Strip out --silent because we don't want to record it for future runs.
2154 # Also quote any args containing shell meta-characters.
2155 # Make two passes to allow for proper duplicate-argument suppression.
2159 ac_must_keep_next=false
2165 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2167 | -silent | --silent | --silen | --sile | --sil)
2170 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2173 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2175 as_fn_append ac_configure_args1 " '$ac_arg'"
2176 if test $ac_must_keep_next = true; then
2177 ac_must_keep_next=false # Got value, back to normal.
2180 *=* | --config-cache | -C | -disable-* | --disable-* \
2181 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2182 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2183 | -with-* | --with-* | -without-* | --without-* | --x)
2184 case "$ac_configure_args0 " in
2185 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2188 -* ) ac_must_keep_next=true ;;
2191 as_fn_append ac_configure_args " '$ac_arg'"
2196 { ac_configure_args0=; unset ac_configure_args0;}
2197 { ac_configure_args1=; unset ac_configure_args1;}
2199 # When interrupted or exit'd, cleanup temporary files, and complete
2200 # config.log. We remove comments because anyway the quotes in there
2201 # would cause problems or look ugly.
2202 # WARNING: Use '\'' to represent an apostrophe within the trap.
2203 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2204 trap 'exit_status=$?
2205 # Save into config.log some information that might help in debugging.
2209 $as_echo "## ---------------- ##
2210 ## Cache variables. ##
2211 ## ---------------- ##"
2213 # The following way of writing the cache mishandles newlines in values,
2215 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2216 eval ac_val=\$$ac_var
2220 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2221 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2224 _ | IFS | as_nl) ;; #(
2225 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2226 *) { eval $ac_var=; unset $ac_var;} ;;
2231 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2232 *${as_nl}ac_space=\ *)
2234 "s/'\''/'\''\\\\'\'''\''/g;
2235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2238 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2245 $as_echo "## ----------------- ##
2246 ## Output variables. ##
2247 ## ----------------- ##"
2249 for ac_var in $ac_subst_vars
2251 eval ac_val=\$$ac_var
2253 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2255 $as_echo "$ac_var='\''$ac_val'\''"
2259 if test -n "$ac_subst_files"; then
2260 $as_echo "## ------------------- ##
2261 ## File substitutions. ##
2262 ## ------------------- ##"
2264 for ac_var in $ac_subst_files
2266 eval ac_val=\$$ac_var
2268 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2270 $as_echo "$ac_var='\''$ac_val'\''"
2275 if test -s confdefs.h; then
2276 $as_echo "## ----------- ##
2283 test "$ac_signal" != 0 &&
2284 $as_echo "$as_me: caught signal $ac_signal"
2285 $as_echo "$as_me: exit $exit_status"
2287 rm -f core *.core core.conftest.* &&
2288 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2291 for ac_signal in 1 2 13 15; do
2292 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2296 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2297 rm -f -r conftest* confdefs.h
2299 $as_echo "/* confdefs.h */" > confdefs.h
2301 # Predefined preprocessor variables.
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_NAME "$PACKAGE_NAME"
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_STRING "$PACKAGE_STRING"
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_URL "$PACKAGE_URL"
2328 # Let the site file select an alternate cache file if it wants to.
2329 # Prefer an explicitly selected file to automatically selected ones.
2332 if test -n "$CONFIG_SITE"; then
2333 # We do not want a PATH search for config.site.
2334 case $CONFIG_SITE in #((
2335 -*) ac_site_file1=./$CONFIG_SITE;;
2336 */*) ac_site_file1=$CONFIG_SITE;;
2337 *) ac_site_file1=./$CONFIG_SITE;;
2339 elif test "x$prefix" != xNONE; then
2340 ac_site_file1=$prefix/share/config.site
2341 ac_site_file2=$prefix/etc/config.site
2343 ac_site_file1=$ac_default_prefix/share/config.site
2344 ac_site_file2=$ac_default_prefix/etc/config.site
2346 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2348 test "x$ac_site_file" = xNONE && continue
2349 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2351 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2352 sed 's/^/| /' "$ac_site_file" >&5
2354 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2356 as_fn_error $? "failed to load site
script $ac_site_file
2357 See \
`config.log' for more details" "$LINENO" 5; }
2361 if test -r "$cache_file"; then
2362 # Some versions of bash will fail to source /dev/null (special files
2363 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2364 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2366 $as_echo "$as_me: loading cache $cache_file" >&6;}
2368 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2369 *) . "./$cache_file";;
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2374 $as_echo "$as_me: creating cache $cache_file" >&6;}
2378 # Check that the precious variables saved in the cache have kept the same
2380 ac_cache_corrupted=false
2381 for ac_var in $ac_precious_vars; do
2382 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2383 eval ac_new_set=\$ac_env_${ac_var}_set
2384 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2385 eval ac_new_val=\$ac_env_${ac_var}_value
2386 case $ac_old_set,$ac_new_set in
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2389 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2390 ac_cache_corrupted=: ;;
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2393 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2394 ac_cache_corrupted=: ;;
2397 if test "x$ac_old_val" != "x$ac_new_val"; then
2398 # differences in whitespace do not lead to failure.
2399 ac_old_val_w=`echo x
$ac_old_val`
2400 ac_new_val_w=`echo x
$ac_new_val`
2401 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2403 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2404 ac_cache_corrupted=:
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2407 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2408 eval $ac_var=\$ac_old_val
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2411 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2413 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2416 # Pass precious variables to config.status.
2417 if test "$ac_new_set" = set; then
2419 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2420 *) ac_arg=$ac_var=$ac_new_val ;;
2422 case " $ac_configure_args " in
2423 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2424 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2428 if $ac_cache_corrupted; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2432 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2433 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2435 ## -------------------- ##
2436 ## Main body of script. ##
2437 ## -------------------- ##
2440 ac_cpp='$CPP $CPPFLAGS'
2441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2454 for ac_dir in ../.. "$srcdir"/../..; do
2455 if test -f "$ac_dir/install-sh"; then
2457 ac_install_sh="$ac_aux_dir/install-sh -c"
2459 elif test -f "$ac_dir/install.sh"; then
2461 ac_install_sh="$ac_aux_dir/install.sh -c"
2463 elif test -f "$ac_dir/shtool"; then
2465 ac_install_sh="$ac_aux_dir/shtool install -c"
2469 if test -z "$ac_aux_dir"; then
2470 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2473 # These three variables are undocumented and unsupported,
2474 # and are intended to be withdrawn in a future Autoconf release.
2475 # They can cause serious problems if a builder's source tree is in a directory
2476 # whose full name contains unusual characters.
2477 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2478 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2479 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2482 ac_config_headers="$ac_config_headers config.h"
2487 # Make sure we can run config.sub.
2488 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2489 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2492 $as_echo_n "checking build system type... " >&6; }
2493 if ${ac_cv_build+:} false; then :
2494 $as_echo_n "(cached) " >&6
2496 ac_build_alias=$build_alias
2497 test "x$ac_build_alias" = x &&
2498 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2499 test "x$ac_build_alias" = x &&
2500 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2501 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2502 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2506 $as_echo "$ac_cv_build" >&6; }
2507 case $ac_cv_build in
2509 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2512 ac_save_IFS=$IFS; IFS='-'
2518 # Remember, the first character of IFS is used to create $*,
2519 # except with old shells:
2522 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2526 $as_echo_n "checking host system type... " >&6; }
2527 if ${ac_cv_host+:} false; then :
2528 $as_echo_n "(cached) " >&6
2530 if test "x$host_alias" = x; then
2531 ac_cv_host=$ac_cv_build
2533 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2534 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2539 $as_echo "$ac_cv_host" >&6; }
2542 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2545 ac_save_IFS=$IFS; IFS='-'
2551 # Remember, the first character of IFS is used to create $*,
2552 # except with old shells:
2555 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2563 # Check whether --with-curses was given.
2564 if test "${with_curses+set}" = set; then :
2565 withval=$with_curses; opt_curses=$withval
2569 if test "$opt_curses" = "yes"; then
2576 opt_install_examples=no
2577 opt_bracketed_paste_default=yes
2579 # Check whether --enable-multibyte was given.
2580 if test "${enable_multibyte+set}" = set; then :
2581 enableval=$enable_multibyte; opt_multibyte=$enableval
2584 # Check whether --enable-static was given.
2585 if test "${enable_static+set}" = set; then :
2586 enableval=$enable_static; opt_static_libs=$enableval
2589 # Check whether --enable-install-examples was given.
2590 if test "${enable_install_examples+set}" = set; then :
2591 enableval=$enable_install_examples; opt_install_examples=$enableval
2595 # Check whether --enable-bracketed-paste-default was given.
2596 if test "${enable_bracketed_paste_default+set}" = set; then :
2597 enableval=$enable_bracketed_paste_default; opt_bracketed_paste_default=$enableval
2601 if test $opt_multibyte = no; then
2602 $as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h
2606 if test $opt_bracketed_paste_default = yes; then
2607 BRACKETED_PASTE='-DBRACKETED_PASTE_DEFAULT=1'
2609 BRACKETED_PASTE='-DBRACKETED_PASTE_DEFAULT=0'
2616 if test "x$cross_compiling" = "xyes"; then
2619 cross_cache=${srcdir}/cross-build/cygwin.cache
2622 cross_cache=${srcdir}/cross-build/mingw.cache
2625 cross_cache=${srcdir}/cross-build/x86-beos.cache
2627 *) echo "configure: cross-compiling for $host is not supported" >&2
2630 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
2631 echo "loading cross-build cache file ${cross_cache}"
2635 CROSS_COMPILE='-DCROSS_COMPILING'
2640 echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}"
2643 # We want these before the checks, so the checks can modify their values.
2644 test -z "$CFLAGS" && want_auto_cflags=1
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2647 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2649 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2650 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2651 $as_echo_n "(cached) " >&6
2653 cat >conftest.make <<\_ACEOF
2656 @echo '@@@%%%=$(MAKE)=@@@%%%'
2658 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2659 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
2661 eval ac_cv_prog_make_${ac_make}_set=yes;;
2663 eval ac_cv_prog_make_${ac_make}_set=no;;
2667 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2669 $as_echo "yes" >&6; }
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673 $as_echo "no" >&6; }
2674 SET_MAKE="MAKE=${MAKE-make}"
2678 ac_cpp='$CPP $CPPFLAGS'
2679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2682 if test -n "$ac_tool_prefix"; then
2683 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2684 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686 $as_echo_n "checking for $ac_word... " >&6; }
2687 if ${ac_cv_prog_CC+:} false; then :
2688 $as_echo_n "(cached) " >&6
2690 if test -n "$CC"; then
2691 ac_cv_prog_CC="$CC" # Let the user override the test.
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 test -z "$as_dir" && as_dir=.
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2700 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 if test -n "$CC"; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2713 $as_echo "$CC" >&6; }
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2721 if test -z "$ac_cv_prog_CC"; then
2723 # Extract the first word of "gcc", so it can be a program name with args.
2724 set dummy gcc; ac_word=$2
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726 $as_echo_n "checking for $ac_word... " >&6; }
2727 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2728 $as_echo_n "(cached) " >&6
2730 if test -n "$ac_ct_CC"; then
2731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 test -z "$as_dir" && as_dir=.
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2740 ac_cv_prog_ac_ct_CC="gcc"
2741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2751 if test -n "$ac_ct_CC"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2753 $as_echo "$ac_ct_CC" >&6; }
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756 $as_echo "no" >&6; }
2759 if test "x$ac_ct_CC" = x; then
2762 case $cross_compiling:$ac_tool_warned in
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2766 ac_tool_warned=yes ;;
2774 if test -z "$CC"; then
2775 if test -n "$ac_tool_prefix"; then
2776 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2777 set dummy ${ac_tool_prefix}cc; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if ${ac_cv_prog_CC+:} false; then :
2781 $as_echo_n "(cached) " >&6
2783 if test -n "$CC"; then
2784 ac_cv_prog_CC="$CC" # Let the user override the test.
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793 ac_cv_prog_CC="${ac_tool_prefix}cc"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 if test -n "$CC"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2806 $as_echo "$CC" >&6; }
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2815 if test -z "$CC"; then
2816 # Extract the first word of "cc", so it can be a program name with args.
2817 set dummy cc; ac_word=$2
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819 $as_echo_n "checking for $ac_word... " >&6; }
2820 if ${ac_cv_prog_CC+:} false; then :
2821 $as_echo_n "(cached) " >&6
2823 if test -n "$CC"; then
2824 ac_cv_prog_CC="$CC" # Let the user override the test.
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2834 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2835 ac_prog_rejected=yes
2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 if test $ac_prog_rejected = yes; then
2847 # We found a bogon in the path, so make sure we never use it.
2848 set dummy $ac_cv_prog_CC
2850 if test $# != 0; then
2851 # We chose a different compiler from the bogus one.
2852 # However, it has the same basename, so the bogon will be chosen
2853 # first if we set CC to just the basename; use the full file name.
2855 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2861 if test -n "$CC"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2863 $as_echo "$CC" >&6; }
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2871 if test -z "$CC"; then
2872 if test -n "$ac_tool_prefix"; then
2873 for ac_prog in cl.exe
2875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if ${ac_cv_prog_CC+:} false; then :
2880 $as_echo_n "(cached) " >&6
2882 if test -n "$CC"; then
2883 ac_cv_prog_CC="$CC" # Let the user override the test.
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 if test -n "$CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905 $as_echo "$CC" >&6; }
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2912 test -n "$CC" && break
2915 if test -z "$CC"; then
2917 for ac_prog in cl.exe
2919 # Extract the first word of "$ac_prog", so it can be a program name with args.
2920 set dummy $ac_prog; ac_word=$2
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922 $as_echo_n "checking for $ac_word... " >&6; }
2923 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2924 $as_echo_n "(cached) " >&6
2926 if test -n "$ac_ct_CC"; then
2927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2936 ac_cv_prog_ac_ct_CC="$ac_prog"
2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2947 if test -n "$ac_ct_CC"; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2949 $as_echo "$ac_ct_CC" >&6; }
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 $as_echo "no" >&6; }
2956 test -n "$ac_ct_CC" && break
2959 if test "x$ac_ct_CC" = x; then
2962 case $cross_compiling:$ac_tool_warned in
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2966 ac_tool_warned=yes ;;
2975 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2977 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2978 See \
`config.log' for more details" "$LINENO" 5; }
2980 # Provide some information about the compiler.
2981 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2984 for ac_option in --version -v -V -qversion; do
2985 { { ac_try="$ac_compiler $ac_option >&5"
2987 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2988 *) ac_try_echo
=$ac_try;;
2990 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2991 $as_echo "$ac_try_echo"; } >&5
2992 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2994 if test -s conftest.err
; then
2996 ... rest of stderr output deleted ...
2997 10q' conftest.err
>conftest.er1
2998 cat conftest.er1
>&5
3000 rm -f conftest.er1 conftest.err
3001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3002 test $ac_status = 0; }
3005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3006 /* end confdefs.h. */
3016 ac_clean_files_save
=$ac_clean_files
3017 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3018 # Try to create an executable without -o first, disregard a.out.
3019 # It will help us diagnose broken compilers, and finding out an intuition
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3022 $as_echo_n "checking whether the C compiler works... " >&6; }
3023 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3025 # The possible output files:
3026 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3029 for ac_file
in $ac_files
3032 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3033 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3038 if { { ac_try
="$ac_link_default"
3040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3044 $as_echo "$ac_try_echo"; } >&5
3045 (eval "$ac_link_default") 2>&5
3047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3048 test $ac_status = 0; }; then :
3049 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3050 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3051 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3052 # so that the user can short-circuit this test for compilers unknown to
3054 for ac_file in $ac_files ''
3056 test -f "$ac_file" || continue
3058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3061 # We found the default executable, but exeext='' is most
3065 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3067 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3069 # We set ac_cv_exeext here because the later test for it is not
3070 # safe: cross compilers may not add the suffix if given an `-o'
3071 # argument, so we may need to know it at that point already.
3072 # Even if this section looks crufty: it has the advantage of
3079 test "$ac_cv_exeext" = no && ac_cv_exeext=
3084 if test -z "$ac_file"; then :
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3087 $as_echo "$as_me: failed program was:" >&5
3088 sed 's
/^
/|
/' conftest.$ac_ext >&5
3090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3091 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3092 as_fn_error 77 "C compiler cannot create executables
3093 See \`config.log
' for more details" "$LINENO" 5; }
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3096 $as_echo "yes" >&6; }
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3099 $as_echo_n "checking for C compiler default output file name... " >&6; }
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3101 $as_echo "$ac_file" >&6; }
3102 ac_exeext=$ac_cv_exeext
3104 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3105 ac_clean_files=$ac_clean_files_save
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3107 $as_echo_n "checking for suffix of executables... " >&6; }
3108 if { { ac_try="$ac_link"
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114 $as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_link") 2>&5
3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118 test $ac_status = 0; }; then :
3119 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3120 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3121 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3123 for ac_file
in conftest.exe conftest conftest.
*; do
3124 test -f "$ac_file" ||
continue
3126 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3127 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3135 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3136 See \`config.log' for more details" "$LINENO" 5; }
3138 rm -f conftest conftest
$ac_cv_exeext
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3140 $as_echo "$ac_cv_exeext" >&6; }
3142 rm -f conftest.
$ac_ext
3143 EXEEXT
=$ac_cv_exeext
3145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3146 /* end confdefs.h. */
3151 FILE *f = fopen ("conftest.out", "w");
3152 return ferror (f) || fclose (f) != 0;
3158 ac_clean_files
="$ac_clean_files conftest.out"
3159 # Check that the compiler produces executables we can run. If not, either
3160 # the compiler is broken, or we cross compile.
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3162 $as_echo_n "checking whether we are cross compiling... " >&6; }
3163 if test "$cross_compiling" != yes; then
3164 { { ac_try
="$ac_link"
3166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170 $as_echo "$ac_try_echo"; } >&5
3171 (eval "$ac_link") 2>&5
3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }
3175 if { ac_try='./conftest$ac_cv_exeext'
3176 { { case "(($ac_try" in
3177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3178 *) ac_try_echo
=$ac_try;;
3180 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181 $as_echo "$ac_try_echo"; } >&5
3182 (eval "$ac_try") 2>&5
3184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185 test $ac_status = 0; }; }; then
3188 if test "$cross_compiling" = maybe
; then
3191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193 as_fn_error $?
"cannot run C compiled programs.
3194 If you meant to cross compile, use \`--host'.
3195 See \`config.log' for more details" "$LINENO" 5; }
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3200 $as_echo "$cross_compiling" >&6; }
3202 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3203 ac_clean_files
=$ac_clean_files_save
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3205 $as_echo_n "checking for suffix of object files... " >&6; }
3206 if ${ac_cv_objext+:} false
; then :
3207 $as_echo_n "(cached) " >&6
3209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3210 /* end confdefs.h. */
3220 rm -f conftest.o conftest.obj
3221 if { { ac_try
="$ac_compile"
3223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3227 $as_echo "$ac_try_echo"; } >&5
3228 (eval "$ac_compile") 2>&5
3230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3231 test $ac_status = 0; }; then :
3232 for ac_file in conftest.o conftest.obj conftest.*; do
3233 test -f "$ac_file" || continue;
3235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3236 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3241 $as_echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3247 See \
`config.log' for more details" "$LINENO" 5; }
3249 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3252 $as_echo "$ac_cv_objext" >&6; }
3253 OBJEXT=$ac_cv_objext
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3256 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3257 if ${ac_cv_c_compiler_gnu+:} false; then :
3258 $as_echo_n "(cached) " >&6
3260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3261 /* end confdefs.h. */
3274 if ac_fn_c_try_compile "$LINENO"; then :
3279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3284 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3285 if test $ac_compiler_gnu = yes; then
3290 ac_test_CFLAGS=${CFLAGS+set}
3291 ac_save_CFLAGS=$CFLAGS
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3293 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3294 if ${ac_cv_prog_cc_g+:} false; then :
3295 $as_echo_n "(cached) " >&6
3297 ac_save_c_werror_flag=$ac_c_werror_flag
3298 ac_c_werror_flag=yes
3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302 /* end confdefs.h. */
3312 if ac_fn_c_try_compile "$LINENO"; then :
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h. */
3327 if ac_fn_c_try_compile "$LINENO"; then :
3330 ac_c_werror_flag=$ac_save_c_werror_flag
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3343 if ac_fn_c_try_compile "$LINENO"; then :
3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 ac_c_werror_flag=$ac_save_c_werror_flag
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3354 $as_echo "$ac_cv_prog_cc_g" >&6; }
3355 if test "$ac_test_CFLAGS" = set; then
3356 CFLAGS=$ac_save_CFLAGS
3357 elif test $ac_cv_prog_cc_g = yes; then
3358 if test "$GCC" = yes; then
3364 if test "$GCC" = yes; then
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3371 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3372 if ${ac_cv_prog_cc_c89+:} false; then :
3373 $as_echo_n "(cached) " >&6
3375 ac_cv_prog_cc_c89=no
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h. */
3382 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3383 struct buf { int x; };
3384 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3385 static char *e (p, i)
3391 static char *f (char * (*g) (char **, int), char **p, ...)
3396 s = g (p, va_arg (v,int));
3401 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3402 function prototypes and stuff, but not '\xHH' hex character constants.
3403 These don't provoke an error unfortunately, instead are silently treated
3404 as 'x'. The following induces an error, until -std is added to get
3405 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3406 array size at least. It's necessary to write '\x00'==0 to get something
3407 that's true only with -std. */
3408 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3410 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3411 inside strings and character constants. */
3413 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3415 int test (int i, double x);
3416 struct s1 {int (*f) (int a);};
3417 struct s2 {int (*f) (double a);};
3418 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3424 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3429 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3430 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3432 CC="$ac_save_CC $ac_arg"
3433 if ac_fn_c_try_compile "$LINENO"; then :
3434 ac_cv_prog_cc_c89=$ac_arg
3436 rm -f core conftest.err conftest.$ac_objext
3437 test "x$ac_cv_prog_cc_c89" != "xno" && break
3439 rm -f conftest.$ac_ext
3444 case "x$ac_cv_prog_cc_c89" in
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3447 $as_echo "none needed" >&6; } ;;
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3450 $as_echo "unsupported" >&6; } ;;
3452 CC="$CC $ac_cv_prog_cc_c89"
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3454 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3456 if test "x$ac_cv_prog_cc_c89" != xno; then :
3461 ac_cpp='$CPP $CPPFLAGS'
3462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3468 ac_cpp='$CPP $CPPFLAGS'
3469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3473 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3474 # On Suns, sometimes $CPP names a directory.
3475 if test -n "$CPP" && test -d "$CPP"; then
3478 if test -z "$CPP"; then
3479 if ${ac_cv_prog_CPP+:} false; then :
3480 $as_echo_n "(cached) " >&6
3482 # Double quotes because CPP needs to be expanded
3483 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3486 for ac_c_preproc_warn_flag in '' yes
3488 # Use a header file that comes with gcc, so configuring glibc
3489 # with a fresh cross-compiler works.
3490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3491 # <limits.h> exists even on freestanding compilers.
3492 # On the NeXT, cc -E runs the code through the compiler's parser,
3493 # not just through cpp. "Syntax error" is here to catch this case.
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3497 # include <limits.h>
3499 # include <assert.h>
3503 if ac_fn_c_try_cpp "$LINENO"; then :
3506 # Broken: fails on valid input.
3509 rm -f conftest.err conftest.i conftest.$ac_ext
3511 # OK, works on sane cases. Now check whether nonexistent headers
3512 # can be detected and how.
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h. */
3515 #include <ac_nonexistent.h>
3517 if ac_fn_c_try_cpp "$LINENO"; then :
3518 # Broken: success on invalid input.
3521 # Passes both tests.
3525 rm -f conftest.err conftest.i conftest.$ac_ext
3528 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3529 rm -f conftest.i conftest.err conftest.
$ac_ext
3530 if $ac_preproc_ok; then :
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3543 $as_echo "$CPP" >&6; }
3545 for ac_c_preproc_warn_flag
in '' yes
3547 # Use a header file that comes with gcc, so configuring glibc
3548 # with a fresh cross-compiler works.
3549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3550 # <limits.h> exists even on freestanding compilers.
3551 # On the NeXT, cc -E runs the code through the compiler's parser,
3552 # not just through cpp. "Syntax error" is here to catch this case.
3553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3556 # include <limits.h>
3558 # include <assert.h>
3562 if ac_fn_c_try_cpp
"$LINENO"; then :
3565 # Broken: fails on valid input.
3568 rm -f conftest.err conftest.i conftest.
$ac_ext
3570 # OK, works on sane cases. Now check whether nonexistent headers
3571 # can be detected and how.
3572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3574 #include <ac_nonexistent.h>
3576 if ac_fn_c_try_cpp
"$LINENO"; then :
3577 # Broken: success on invalid input.
3580 # Passes both tests.
3584 rm -f conftest.err conftest.i conftest.
$ac_ext
3587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3588 rm -f conftest.i conftest.err conftest.
$ac_ext
3589 if $ac_preproc_ok; then :
3592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3595 See \`config.log' for more details" "$LINENO" 5; }
3599 ac_cpp
='$CPP $CPPFLAGS'
3600 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3601 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3602 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3606 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3607 if ${ac_cv_path_GREP+:} false
; then :
3608 $as_echo_n "(cached) " >&6
3610 if test -z "$GREP"; then
3611 ac_path_GREP_found
=false
3612 # Loop through the user's path and test for each of PROGNAME-LIST
3613 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3614 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3617 test -z "$as_dir" && as_dir
=.
3618 for ac_prog
in grep ggrep
; do
3619 for ac_exec_ext
in '' $ac_executable_extensions; do
3620 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3621 as_fn_executable_p
"$ac_path_GREP" ||
continue
3622 # Check for GNU ac_path_GREP and select it if it is found.
3623 # Check for GNU $ac_path_GREP
3624 case `"$ac_path_GREP" --version 2>&1` in
3626 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3629 $as_echo_n 0123456789 >"conftest.in"
3632 cat "conftest.in" "conftest.in" >"conftest.tmp"
3633 mv "conftest.tmp" "conftest.in"
3634 cp "conftest.in" "conftest.nl"
3635 $as_echo 'GREP' >> "conftest.nl"
3636 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3637 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3638 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3639 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3640 # Best one so far, save it but keep looking for a better one
3641 ac_cv_path_GREP
="$ac_path_GREP"
3642 ac_path_GREP_max
=$ac_count
3644 # 10*(2^10) chars as input seems more than enough
3645 test $ac_count -gt 10 && break
3647 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3650 $ac_path_GREP_found && break 3
3655 if test -z "$ac_cv_path_GREP"; then
3656 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3659 ac_cv_path_GREP
=$GREP
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3664 $as_echo "$ac_cv_path_GREP" >&6; }
3665 GREP
="$ac_cv_path_GREP"
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3669 $as_echo_n "checking for egrep... " >&6; }
3670 if ${ac_cv_path_EGREP+:} false
; then :
3671 $as_echo_n "(cached) " >&6
3673 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3674 then ac_cv_path_EGREP
="$GREP -E"
3676 if test -z "$EGREP"; then
3677 ac_path_EGREP_found
=false
3678 # Loop through the user's path and test for each of PROGNAME-LIST
3679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3680 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3683 test -z "$as_dir" && as_dir
=.
3684 for ac_prog
in egrep; do
3685 for ac_exec_ext
in '' $ac_executable_extensions; do
3686 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3687 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3688 # Check for GNU ac_path_EGREP and select it if it is found.
3689 # Check for GNU $ac_path_EGREP
3690 case `"$ac_path_EGREP" --version 2>&1` in
3692 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3695 $as_echo_n 0123456789 >"conftest.in"
3698 cat "conftest.in" "conftest.in" >"conftest.tmp"
3699 mv "conftest.tmp" "conftest.in"
3700 cp "conftest.in" "conftest.nl"
3701 $as_echo 'EGREP' >> "conftest.nl"
3702 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3703 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3704 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3705 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3706 # Best one so far, save it but keep looking for a better one
3707 ac_cv_path_EGREP
="$ac_path_EGREP"
3708 ac_path_EGREP_max
=$ac_count
3710 # 10*(2^10) chars as input seems more than enough
3711 test $ac_count -gt 10 && break
3713 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3716 $ac_path_EGREP_found && break 3
3721 if test -z "$ac_cv_path_EGREP"; then
3722 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3725 ac_cv_path_EGREP
=$EGREP
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3731 $as_echo "$ac_cv_path_EGREP" >&6; }
3732 EGREP
="$ac_cv_path_EGREP"
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3736 $as_echo_n "checking for ANSI C header files... " >&6; }
3737 if ${ac_cv_header_stdc+:} false
; then :
3738 $as_echo_n "(cached) " >&6
3740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3755 if ac_fn_c_try_compile
"$LINENO"; then :
3756 ac_cv_header_stdc
=yes
3758 ac_cv_header_stdc
=no
3760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3762 if test $ac_cv_header_stdc = yes; then
3763 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3770 $EGREP "memchr" >/dev
/null
2>&1; then :
3773 ac_cv_header_stdc
=no
3779 if test $ac_cv_header_stdc = yes; then
3780 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3787 $EGREP "free" >/dev
/null
2>&1; then :
3790 ac_cv_header_stdc
=no
3796 if test $ac_cv_header_stdc = yes; then
3797 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3798 if test "$cross_compiling" = yes; then :
3801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3805 #if ((' ' & 0x0FF) == 0x020)
3806 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3807 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3809 # define ISLOWER(c) \
3810 (('a' <= (c) && (c) <= 'i') \
3811 || ('j' <= (c) && (c) <= 'r') \
3812 || ('s' <= (c) && (c) <= 'z'))
3813 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3816 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3821 for (i = 0; i < 256; i++)
3822 if (XOR (islower (i), ISLOWER (i))
3823 || toupper (i) != TOUPPER (i))
3828 if ac_fn_c_try_run
"$LINENO"; then :
3831 ac_cv_header_stdc
=no
3833 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3834 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3840 $as_echo "$ac_cv_header_stdc" >&6; }
3841 if test $ac_cv_header_stdc = yes; then
3843 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3847 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3848 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3849 inttypes.h stdint.h unistd.h
3851 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3852 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3854 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3855 cat >>confdefs.h
<<_ACEOF
3856 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3865 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3866 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3873 if test "$MINIX" = yes; then
3875 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3878 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3881 $as_echo "#define _MINIX 1" >>confdefs.h
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3887 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3888 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3889 $as_echo_n "(cached) " >&6
3891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3894 # define __EXTENSIONS__ 1
3895 $ac_includes_default
3904 if ac_fn_c_try_compile
"$LINENO"; then :
3905 ac_cv_safe_to_define___extensions__
=yes
3907 ac_cv_safe_to_define___extensions__
=no
3909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3912 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3913 test $ac_cv_safe_to_define___extensions__ = yes &&
3914 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3916 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3918 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3920 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3922 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3927 # If we're using gcc and the user hasn't specified CFLAGS, add -O2 to CFLAGS
3928 if test -n "$want_auto_cflags" ; then
3929 AUTO_CFLAGS
="-g ${GCC+-O2}"
3930 STYLE_CFLAGS
="${GCC+-Wno-parentheses} ${GCC+-Wno-format-security}"
3933 if test $ac_cv_c_compiler_gnu = yes; then
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3935 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3936 if ${ac_cv_prog_gcc_traditional+:} false
; then :
3937 $as_echo_n "(cached) " >&6
3939 ac_pattern
="Autoconf.*'x'"
3940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3946 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
3947 ac_cv_prog_gcc_traditional
=yes
3949 ac_cv_prog_gcc_traditional
=no
3954 if test $ac_cv_prog_gcc_traditional = no
; then
3955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3961 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
3962 ac_cv_prog_gcc_traditional
=yes
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3969 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3970 if test $ac_cv_prog_gcc_traditional = yes; then
3971 CC
="$CC -traditional"
3975 # Find a good install program. We prefer a C program (faster),
3976 # so one script is as good as another. But avoid the broken or
3977 # incompatible versions:
3978 # SysV /etc/install, /usr/sbin/install
3979 # SunOS /usr/etc/install
3980 # IRIX /sbin/install
3982 # AmigaOS /C/install, which installs bootblocks on floppy discs
3983 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3984 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3985 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3986 # OS/2's system install, which has a completely different semantic
3987 # ./install, which can be erroneously created by make from ./install.sh.
3988 # Reject install programs that cannot install multiple files.
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3990 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3991 if test -z "$INSTALL"; then
3992 if ${ac_cv_path_install+:} false
; then :
3993 $as_echo_n "(cached) " >&6
3995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3999 test -z "$as_dir" && as_dir
=.
4000 # Account for people who put trailing slashes in PATH elements.
4001 case $as_dir/ in #((
4002 .
/ | .
// |
/[cC
]/* | \
4003 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4004 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4007 # OSF1 and SCO ODT 3.0 have their own names for install.
4008 # Don't use installbsd from OSF since it installs stuff as root
4010 for ac_prog
in ginstall scoinst
install; do
4011 for ac_exec_ext
in '' $ac_executable_extensions; do
4012 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4013 if test $ac_prog = install &&
4014 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4015 # AIX install. It has an incompatible calling convention.
4017 elif test $ac_prog = install &&
4018 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4019 # program-specific install script used by HP pwplus--don't use.
4022 rm -rf conftest.one conftest.two conftest.dir
4023 echo one
> conftest.one
4024 echo two
> conftest.two
4026 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4027 test -s conftest.one
&& test -s conftest.two
&&
4028 test -s conftest.dir
/conftest.one
&&
4029 test -s conftest.dir
/conftest.two
4031 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4044 rm -rf conftest.one conftest.two conftest.dir
4047 if test "${ac_cv_path_install+set}" = set; then
4048 INSTALL
=$ac_cv_path_install
4050 # As a last resort, use the slow shell script. Don't cache a
4051 # value for INSTALL within a source directory, because that will
4052 # break other packages using the cache if that directory is
4053 # removed, or if the value is a relative name.
4054 INSTALL
=$ac_install_sh
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4058 $as_echo "$INSTALL" >&6; }
4060 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4061 # It thinks the first close brace ends the variable substitution.
4062 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4064 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4066 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4068 if test -n "$ac_tool_prefix"; then
4069 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4070 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072 $as_echo_n "checking for $ac_word... " >&6; }
4073 if ${ac_cv_prog_AR+:} false
; then :
4074 $as_echo_n "(cached) " >&6
4076 if test -n "$AR"; then
4077 ac_cv_prog_AR
="$AR" # Let the user override the test.
4079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4083 test -z "$as_dir" && as_dir
=.
4084 for ac_exec_ext
in '' $ac_executable_extensions; do
4085 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4086 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4097 if test -n "$AR"; then
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4099 $as_echo "$AR" >&6; }
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 $as_echo "no" >&6; }
4107 if test -z "$ac_cv_prog_AR"; then
4109 # Extract the first word of "ar", so it can be a program name with args.
4110 set dummy
ar; ac_word
=$2
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 $as_echo_n "checking for $ac_word... " >&6; }
4113 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
4114 $as_echo_n "(cached) " >&6
4116 if test -n "$ac_ct_AR"; then
4117 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4123 test -z "$as_dir" && as_dir
=.
4124 for ac_exec_ext
in '' $ac_executable_extensions; do
4125 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4126 ac_cv_prog_ac_ct_AR
="ar"
4127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4137 if test -n "$ac_ct_AR"; then
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4139 $as_echo "$ac_ct_AR" >&6; }
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142 $as_echo "no" >&6; }
4145 if test "x$ac_ct_AR" = x
; then
4148 case $cross_compiling:$ac_tool_warned in
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4152 ac_tool_warned
=yes ;;
4160 test -n "$ARFLAGS" || ARFLAGS
="cr"
4161 if test -n "$ac_tool_prefix"; then
4162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4163 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165 $as_echo_n "checking for $ac_word... " >&6; }
4166 if ${ac_cv_prog_RANLIB+:} false
; then :
4167 $as_echo_n "(cached) " >&6
4169 if test -n "$RANLIB"; then
4170 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4176 test -z "$as_dir" && as_dir
=.
4177 for ac_exec_ext
in '' $ac_executable_extensions; do
4178 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4179 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 RANLIB
=$ac_cv_prog_RANLIB
4190 if test -n "$RANLIB"; then
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4192 $as_echo "$RANLIB" >&6; }
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 $as_echo "no" >&6; }
4200 if test -z "$ac_cv_prog_RANLIB"; then
4201 ac_ct_RANLIB
=$RANLIB
4202 # Extract the first word of "ranlib", so it can be a program name with args.
4203 set dummy ranlib
; ac_word
=$2
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205 $as_echo_n "checking for $ac_word... " >&6; }
4206 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4207 $as_echo_n "(cached) " >&6
4209 if test -n "$ac_ct_RANLIB"; then
4210 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4216 test -z "$as_dir" && as_dir
=.
4217 for ac_exec_ext
in '' $ac_executable_extensions; do
4218 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4219 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4230 if test -n "$ac_ct_RANLIB"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4232 $as_echo "$ac_ct_RANLIB" >&6; }
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4238 if test "x$ac_ct_RANLIB" = x
; then
4241 case $cross_compiling:$ac_tool_warned in
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4245 ac_tool_warned
=yes ;;
4247 RANLIB
=$ac_ct_RANLIB
4250 RANLIB
="$ac_cv_prog_RANLIB"
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4258 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4259 if ${ac_cv_c_const+:} false
; then :
4260 $as_echo_n "(cached) " >&6
4262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4270 /* Ultrix mips cc rejects this sort of thing. */
4271 typedef int charset[2];
4272 const charset cs = { 0, 0 };
4273 /* SunOS 4.1.1 cc rejects this. */
4274 char const *const *pcpcc;
4276 /* NEC SVR4.0.2 mips cc rejects this. */
4277 struct point {int x, y;};
4278 static struct point const zero = {0,0};
4279 /* AIX XL C 1.02.0.0 rejects this.
4280 It does not let you subtract one const X* pointer from another in
4281 an arm of an if-expression whose if-part is not a constant
4283 const char *g = "string";
4284 pcpcc = &g + (g ? g-g : 0);
4285 /* HPUX 7.0 cc rejects these. */
4287 ppc = (char**) pcpcc;
4288 pcpcc = (char const *const *) ppc;
4289 { /* SCO 3.2v4 cc rejects this sort of thing. */
4292 char const *s = 0 ? (char *) 0 : (char const *) 0;
4297 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4299 const int *foo = &x[0];
4302 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4303 typedef const int *iptr;
4307 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4308 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4309 struct s { int j; const int *ap[3]; } bx;
4310 struct s *b = &bx; b->j = 5;
4312 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4316 return !cs[0] && !zero.x;
4323 if ac_fn_c_try_compile
"$LINENO"; then :
4328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4331 $as_echo "$ac_cv_c_const" >&6; }
4332 if test $ac_cv_c_const = no
; then
4334 $as_echo "#define const /**/" >>confdefs.h
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
4339 $as_echo_n "checking for function prototypes... " >&6; }
4340 if test "$ac_cv_prog_cc_c89" != no
; then
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4342 $as_echo "yes" >&6; }
4344 $as_echo "#define PROTOTYPES 1" >>confdefs.h
4347 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
4355 $as_echo_n "checking whether char is unsigned... " >&6; }
4356 if ${ac_cv_c_char_unsigned+:} false
; then :
4357 $as_echo_n "(cached) " >&6
4359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4361 $ac_includes_default
4365 static int test_array [1 - 2 * !(((char) -1) < 0)];
4367 return test_array [0];
4373 if ac_fn_c_try_compile
"$LINENO"; then :
4374 ac_cv_c_char_unsigned
=no
4376 ac_cv_c_char_unsigned
=yes
4378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
4381 $as_echo "$ac_cv_c_char_unsigned" >&6; }
4382 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4383 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
4388 $as_echo_n "checking for working volatile... " >&6; }
4389 if ${ac_cv_c_volatile+:} false
; then :
4390 $as_echo_n "(cached) " >&6
4392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4400 int * volatile y = (int *) 0;
4406 if ac_fn_c_try_compile
"$LINENO"; then :
4407 ac_cv_c_volatile
=yes
4411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
4414 $as_echo "$ac_cv_c_volatile" >&6; }
4415 if test $ac_cv_c_volatile = no
; then
4417 $as_echo "#define volatile /**/" >>confdefs.h
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4423 $as_echo_n "checking return type of signal handlers... " >&6; }
4424 if ${ac_cv_type_signal+:} false
; then :
4425 $as_echo_n "(cached) " >&6
4427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4429 #include <sys/types.h>
4435 return *(signal (0, 0)) (0) == 1;
4440 if ac_fn_c_try_compile
"$LINENO"; then :
4441 ac_cv_type_signal
=int
4443 ac_cv_type_signal
=void
4445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4448 $as_echo "$ac_cv_type_signal" >&6; }
4450 cat >>confdefs.h
<<_ACEOF
4451 #define RETSIGTYPE $ac_cv_type_signal
4456 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4457 if test "x$ac_cv_type_size_t" = xyes
; then :
4461 cat >>confdefs.h
<<_ACEOF
4462 #define size_t unsigned int
4467 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4468 if test "x$ac_cv_type_ssize_t" = xyes
; then :
4472 cat >>confdefs.h
<<_ACEOF
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4480 $as_echo_n "checking for ANSI C header files... " >&6; }
4481 if ${ac_cv_header_stdc+:} false
; then :
4482 $as_echo_n "(cached) " >&6
4484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4499 if ac_fn_c_try_compile
"$LINENO"; then :
4500 ac_cv_header_stdc
=yes
4502 ac_cv_header_stdc
=no
4504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4506 if test $ac_cv_header_stdc = yes; then
4507 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4514 $EGREP "memchr" >/dev
/null
2>&1; then :
4517 ac_cv_header_stdc
=no
4523 if test $ac_cv_header_stdc = yes; then
4524 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4531 $EGREP "free" >/dev
/null
2>&1; then :
4534 ac_cv_header_stdc
=no
4540 if test $ac_cv_header_stdc = yes; then
4541 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4542 if test "$cross_compiling" = yes; then :
4545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4546 /* end confdefs.h. */
4549 #if ((' ' & 0x0FF) == 0x020)
4550 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4551 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4553 # define ISLOWER(c) \
4554 (('a' <= (c) && (c) <= 'i') \
4555 || ('j' <= (c) && (c) <= 'r') \
4556 || ('s' <= (c) && (c) <= 'z'))
4557 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4560 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4565 for (i = 0; i < 256; i++)
4566 if (XOR (islower (i), ISLOWER (i))
4567 || toupper (i) != TOUPPER (i))
4572 if ac_fn_c_try_run
"$LINENO"; then :
4575 ac_cv_header_stdc
=no
4577 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4578 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4584 $as_echo "$ac_cv_header_stdc" >&6; }
4585 if test $ac_cv_header_stdc = yes; then
4587 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
4593 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
4594 if ${ac_cv_header_stat_broken+:} false
; then :
4595 $as_echo_n "(cached) " >&6
4597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4599 #include <sys/types.h>
4600 #include <sys/stat.h>
4602 #if defined S_ISBLK && defined S_IFDIR
4603 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
4606 #if defined S_ISBLK && defined S_IFCHR
4607 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
4610 #if defined S_ISLNK && defined S_IFREG
4611 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
4614 #if defined S_ISSOCK && defined S_IFREG
4615 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
4619 if ac_fn_c_try_compile
"$LINENO"; then :
4620 ac_cv_header_stat_broken
=no
4622 ac_cv_header_stat_broken
=yes
4624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
4627 $as_echo "$ac_cv_header_stat_broken" >&6; }
4628 if test $ac_cv_header_stat_broken = yes; then
4630 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
4635 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4636 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4638 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4639 if eval \
${$as_ac_Header+:} false
; then :
4640 $as_echo_n "(cached) " >&6
4642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4644 #include <sys/types.h>
4656 if ac_fn_c_try_compile
"$LINENO"; then :
4657 eval "$as_ac_Header=yes"
4659 eval "$as_ac_Header=no"
4661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4663 eval ac_res
=\$
$as_ac_Header
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4665 $as_echo "$ac_res" >&6; }
4666 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4667 cat >>confdefs.h
<<_ACEOF
4668 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4671 ac_header_dirent
=$ac_hdr; break
4675 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4676 if test $ac_header_dirent = dirent.h
; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4678 $as_echo_n "checking for library containing opendir... " >&6; }
4679 if ${ac_cv_search_opendir+:} false
; then :
4680 $as_echo_n "(cached) " >&6
4682 ac_func_search_save_LIBS
=$LIBS
4683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4686 /* Override any GCC internal prototype to avoid an error.
4687 Use char because int might match the return type of a GCC
4688 builtin and then its argument prototype would still apply. */
4701 for ac_lib
in '' dir
; do
4702 if test -z "$ac_lib"; then
4703 ac_res
="none required"
4706 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4708 if ac_fn_c_try_link
"$LINENO"; then :
4709 ac_cv_search_opendir
=$ac_res
4711 rm -f core conftest.err conftest.
$ac_objext \
4713 if ${ac_cv_search_opendir+:} false
; then :
4717 if ${ac_cv_search_opendir+:} false
; then :
4720 ac_cv_search_opendir
=no
4723 LIBS
=$ac_func_search_save_LIBS
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4726 $as_echo "$ac_cv_search_opendir" >&6; }
4727 ac_res
=$ac_cv_search_opendir
4728 if test "$ac_res" != no
; then :
4729 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4735 $as_echo_n "checking for library containing opendir... " >&6; }
4736 if ${ac_cv_search_opendir+:} false
; then :
4737 $as_echo_n "(cached) " >&6
4739 ac_func_search_save_LIBS
=$LIBS
4740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4743 /* Override any GCC internal prototype to avoid an error.
4744 Use char because int might match the return type of a GCC
4745 builtin and then its argument prototype would still apply. */
4758 for ac_lib
in '' x
; do
4759 if test -z "$ac_lib"; then
4760 ac_res
="none required"
4763 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4765 if ac_fn_c_try_link
"$LINENO"; then :
4766 ac_cv_search_opendir
=$ac_res
4768 rm -f core conftest.err conftest.
$ac_objext \
4770 if ${ac_cv_search_opendir+:} false
; then :
4774 if ${ac_cv_search_opendir+:} false
; then :
4777 ac_cv_search_opendir
=no
4780 LIBS
=$ac_func_search_save_LIBS
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4783 $as_echo "$ac_cv_search_opendir" >&6; }
4784 ac_res
=$ac_cv_search_opendir
4785 if test "$ac_res" != no
; then :
4786 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4793 for ac_func
in fcntl
kill lstat readlink
4795 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4796 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4797 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4798 cat >>confdefs.h
<<_ACEOF
4799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4805 for ac_func
in fnmatch memmove pselect putenv
select setenv setlocale \
4806 strcasecmp strpbrk tcgetattr vsnprintf
4808 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4809 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4810 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4811 cat >>confdefs.h
<<_ACEOF
4812 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4818 for ac_func
in isascii isxdigit
4820 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4821 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4822 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4823 cat >>confdefs.h
<<_ACEOF
4824 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4830 for ac_func
in getpwent getpwnam getpwuid
4832 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4833 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4834 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4835 cat >>confdefs.h
<<_ACEOF
4836 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
4844 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
4845 if ${ac_cv_type_uid_t+:} false
; then :
4846 $as_echo_n "(cached) " >&6
4848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4850 #include <sys/types.h>
4853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4854 $EGREP "uid_t" >/dev
/null
2>&1; then :
4855 ac_cv_type_uid_t
=yes
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
4863 $as_echo "$ac_cv_type_uid_t" >&6; }
4864 if test $ac_cv_type_uid_t = no
; then
4866 $as_echo "#define uid_t int" >>confdefs.h
4869 $as_echo "#define gid_t int" >>confdefs.h
4873 for ac_header
in unistd.h
4875 ac_fn_c_check_header_mongrel
"$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4876 if test "x$ac_cv_header_unistd_h" = xyes
; then :
4877 cat >>confdefs.h
<<_ACEOF
4878 #define HAVE_UNISTD_H 1
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
4886 $as_echo_n "checking for working chown... " >&6; }
4887 if ${ac_cv_func_chown_works+:} false
; then :
4888 $as_echo_n "(cached) " >&6
4890 if test "$cross_compiling" = yes; then :
4891 ac_cv_func_chown_works
=no
4893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4895 $ac_includes_default
4901 char *f = "conftest.chown";
4902 struct stat before, after;
4904 if (creat (f, 0600) < 0)
4906 if (stat (f, &before) < 0)
4908 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
4910 if (stat (f, &after) < 0)
4912 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
4918 if ac_fn_c_try_run
"$LINENO"; then :
4919 ac_cv_func_chown_works
=yes
4921 ac_cv_func_chown_works
=no
4923 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4924 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4927 rm -f conftest.chown
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
4931 $as_echo "$ac_cv_func_chown_works" >&6; }
4932 if test $ac_cv_func_chown_works = yes; then
4934 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
4939 $as_echo_n "checking for working strcoll... " >&6; }
4940 if ${ac_cv_func_strcoll_works+:} false
; then :
4941 $as_echo_n "(cached) " >&6
4943 if test "$cross_compiling" = yes; then :
4944 ac_cv_func_strcoll_works
=no
4946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948 $ac_includes_default
4952 return (strcoll ("abc", "def") >= 0 ||
4953 strcoll ("ABC", "DEF") >= 0 ||
4954 strcoll ("123", "456") >= 0)
4959 if ac_fn_c_try_run
"$LINENO"; then :
4960 ac_cv_func_strcoll_works
=yes
4962 ac_cv_func_strcoll_works
=no
4964 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4965 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
4970 $as_echo "$ac_cv_func_strcoll_works" >&6; }
4971 if test $ac_cv_func_strcoll_works = yes; then
4973 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
4978 for ac_header
in fcntl.h unistd.h stdlib.h varargs.h stdarg.h stdbool.h \
4979 string.h
strings.h \
4980 limits.h locale.h
pwd.h memory.h termcap.h termios.h termio.h
4982 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4983 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4984 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4985 cat >>confdefs.h
<<_ACEOF
4986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4993 for ac_header
in sys
/ioctl.h sys
/pte.h sys
/stream.h sys
/select.h sys
/file.h
4995 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4996 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4997 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4998 cat >>confdefs.h
<<_ACEOF
4999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5007 for ac_header
in sys
/ptem.h
5009 ac_fn_c_check_header_compile
"$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "
5010 #if HAVE_SYS_STREAM_H
5011 # include <sys/stream.h>
5015 if test "x$ac_cv_header_sys_ptem_h" = xyes
; then :
5016 cat >>confdefs.h
<<_ACEOF
5017 #define HAVE_SYS_PTEM_H 1
5025 # Check whether --enable-largefile was given.
5026 if test "${enable_largefile+set}" = set; then :
5027 enableval
=$enable_largefile;
5030 if test "$enable_largefile" != no
; then
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5033 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5034 if ${ac_cv_sys_largefile_CC+:} false
; then :
5035 $as_echo_n "(cached) " >&6
5037 ac_cv_sys_largefile_CC
=no
5038 if test "$GCC" != yes; then
5041 # IRIX 6.2 and later do not support large files by default,
5042 # so use the C compiler's -n32 option if that helps.
5043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5045 #include <sys/types.h>
5046 /* Check that off_t can represent 2**63 - 1 correctly.
5047 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5048 since some C++ compilers masquerading as C compilers
5049 incorrectly reject 9223372036854775807. */
5050 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5051 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5052 && LARGE_OFF_T % 2147483647 == 1)
5062 if ac_fn_c_try_compile
"$LINENO"; then :
5065 rm -f core conftest.err conftest.
$ac_objext
5067 if ac_fn_c_try_compile
"$LINENO"; then :
5068 ac_cv_sys_largefile_CC
=' -n32'; break
5070 rm -f core conftest.err conftest.
$ac_objext
5074 rm -f conftest.
$ac_ext
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5078 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5079 if test "$ac_cv_sys_largefile_CC" != no
; then
5080 CC
=$CC$ac_cv_sys_largefile_CC
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5084 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5085 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5086 $as_echo_n "(cached) " >&6
5089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5091 #include <sys/types.h>
5092 /* Check that off_t can represent 2**63 - 1 correctly.
5093 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5094 since some C++ compilers masquerading as C compilers
5095 incorrectly reject 9223372036854775807. */
5096 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5097 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5098 && LARGE_OFF_T % 2147483647 == 1)
5108 if ac_fn_c_try_compile
"$LINENO"; then :
5109 ac_cv_sys_file_offset_bits
=no
; break
5111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5114 #define _FILE_OFFSET_BITS 64
5115 #include <sys/types.h>
5116 /* Check that off_t can represent 2**63 - 1 correctly.
5117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5118 since some C++ compilers masquerading as C compilers
5119 incorrectly reject 9223372036854775807. */
5120 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5122 && LARGE_OFF_T % 2147483647 == 1)
5132 if ac_fn_c_try_compile
"$LINENO"; then :
5133 ac_cv_sys_file_offset_bits
=64; break
5135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5136 ac_cv_sys_file_offset_bits
=unknown
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5141 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5142 case $ac_cv_sys_file_offset_bits in #(
5145 cat >>confdefs.h
<<_ACEOF
5146 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5151 if test $ac_cv_sys_file_offset_bits = unknown
; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5153 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5154 if ${ac_cv_sys_large_files+:} false
; then :
5155 $as_echo_n "(cached) " >&6
5158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5160 #include <sys/types.h>
5161 /* Check that off_t can represent 2**63 - 1 correctly.
5162 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5163 since some C++ compilers masquerading as C compilers
5164 incorrectly reject 9223372036854775807. */
5165 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5166 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5167 && LARGE_OFF_T % 2147483647 == 1)
5177 if ac_fn_c_try_compile
"$LINENO"; then :
5178 ac_cv_sys_large_files
=no
; break
5180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5183 #define _LARGE_FILES 1
5184 #include <sys/types.h>
5185 /* Check that off_t can represent 2**63 - 1 correctly.
5186 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5187 since some C++ compilers masquerading as C compilers
5188 incorrectly reject 9223372036854775807. */
5189 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5190 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5191 && LARGE_OFF_T % 2147483647 == 1)
5201 if ac_fn_c_try_compile
"$LINENO"; then :
5202 ac_cv_sys_large_files
=1; break
5204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5205 ac_cv_sys_large_files
=unknown
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5210 $as_echo "$ac_cv_sys_large_files" >&6; }
5211 case $ac_cv_sys_large_files in #(
5214 cat >>confdefs.h
<<_ACEOF
5215 #define _LARGE_FILES $ac_cv_sys_large_files
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
5228 $as_echo_n "checking for type of signal functions... " >&6; }
5229 if ${bash_cv_signal_vintage+:} false
; then :
5230 $as_echo_n "(cached) " >&6
5233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5241 struct sigaction sa;
5242 sigemptyset(&ss); sigsuspend(&ss);
5243 sigaction(SIGINT, &sa, (struct sigaction *) 0);
5244 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
5250 if ac_fn_c_try_link
"$LINENO"; then :
5251 bash_cv_signal_vintage
=posix
5254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5261 int mask = sigmask(SIGINT);
5262 sigsetmask(mask); sigblock(mask); sigpause(mask);
5268 if ac_fn_c_try_link
"$LINENO"; then :
5269 bash_cv_signal_vintage
=4.2bsd
5272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5276 RETSIGTYPE foo() { }
5281 int mask = sigmask(SIGINT);
5282 sigset(SIGINT, foo); sigrelse(SIGINT);
5283 sighold(SIGINT); sigpause(SIGINT);
5289 if ac_fn_c_try_link
"$LINENO"; then :
5290 bash_cv_signal_vintage
=svr3
5292 bash_cv_signal_vintage
=v7
5295 rm -f core conftest.err conftest.
$ac_objext \
5296 conftest
$ac_exeext conftest.
$ac_ext
5299 rm -f core conftest.err conftest.
$ac_objext \
5300 conftest
$ac_exeext conftest.
$ac_ext
5303 rm -f core conftest.err conftest.
$ac_objext \
5304 conftest
$ac_exeext conftest.
$ac_ext
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
5309 $as_echo "$bash_cv_signal_vintage" >&6; }
5310 if test "$bash_cv_signal_vintage" = posix
; then
5311 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
5313 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
5314 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
5316 elif test "$bash_cv_signal_vintage" = svr3
; then
5317 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5
5324 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
5325 if ${bash_cv_must_reinstall_sighandlers+:} false
; then :
5326 $as_echo_n "(cached) " >&6
5328 if test "$cross_compiling" = yes; then :
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
5330 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
5331 bash_cv_must_reinstall_sighandlers
=no
5334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5338 #ifdef HAVE_UNISTD_H
5343 typedef RETSIGTYPE sigfunc();
5345 volatile int nsigint;
5347 #ifdef HAVE_POSIX_SIGNALS
5349 set_signal_handler(sig, handler)
5353 struct sigaction act, oact;
5354 act.sa_handler = handler;
5356 sigemptyset (&act.sa_mask);
5357 sigemptyset (&oact.sa_mask);
5358 sigaction (sig, &act, &oact);
5359 return (oact.sa_handler);
5362 #define set_signal_handler(s, h) signal(s, h)
5376 set_signal_handler(SIGINT, sigint);
5377 kill((int)getpid(), SIGINT);
5378 kill((int)getpid(), SIGINT);
5383 if ac_fn_c_try_run
"$LINENO"; then :
5384 bash_cv_must_reinstall_sighandlers
=no
5386 bash_cv_must_reinstall_sighandlers
=yes
5388 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5389 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5
5395 $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
5396 if test $bash_cv_must_reinstall_sighandlers = yes; then
5397 $as_echo "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
5404 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
5405 if ${bash_cv_func_sigsetjmp+:} false
; then :
5406 $as_echo_n "(cached) " >&6
5408 if test "$cross_compiling" = yes; then :
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
5410 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
5411 bash_cv_func_sigsetjmp
=missing
5414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h. */
5417 #ifdef HAVE_UNISTD_H
5420 #include <sys/types.h>
5428 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
5439 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
5440 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
5443 code = sigsetjmp(xx, 1);
5445 exit(0); /* could get sigmask and compare to oset here. */
5448 sigaddset(&set, SIGINT);
5449 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
5451 /* and siglongjmp */
5457 if ac_fn_c_try_run
"$LINENO"; then :
5458 bash_cv_func_sigsetjmp
=present
5460 bash_cv_func_sigsetjmp
=missing
5462 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5463 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5
5469 $as_echo "$bash_cv_func_sigsetjmp" >&6; }
5470 if test $bash_cv_func_sigsetjmp = present
; then
5471 $as_echo "#define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
5476 $as_echo_n "checking for lstat... " >&6; }
5477 if ${bash_cv_func_lstat+:} false
; then :
5478 $as_echo_n "(cached) " >&6
5480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5483 #include <sys/types.h>
5484 #include <sys/stat.h>
5489 lstat(".",(struct stat *)0);
5494 if ac_fn_c_try_link
"$LINENO"; then :
5495 bash_cv_func_lstat
=yes
5497 bash_cv_func_lstat
=no
5499 rm -f core conftest.err conftest.
$ac_objext \
5500 conftest
$ac_exeext conftest.
$ac_ext
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5
5503 $as_echo "$bash_cv_func_lstat" >&6; }
5504 if test $bash_cv_func_lstat = yes; then
5505 $as_echo "#define HAVE_LSTAT 1" >>confdefs.h
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5
5511 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
5512 if ${bash_cv_func_strcoll_broken+:} false
; then :
5513 $as_echo_n "(cached) " >&6
5515 if test "$cross_compiling" = yes; then :
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
5517 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
5518 bash_cv_func_strcoll_broken
=no
5521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5525 #if defined (HAVE_LOCALE_H)
5537 char *deflocale, *defcoll;
5539 #ifdef HAVE_SETLOCALE
5540 deflocale = setlocale(LC_ALL, "");
5541 defcoll = setlocale(LC_COLLATE, "");
5545 /* These two values are taken from tests/glob-test. */
5546 r1 = strcoll("abd", "aXd");
5550 r2 = strcmp("abd", "aXd");
5552 /* These two should both be greater than 0. It is permissible for
5553 a system to return different values, as long as the sign is the
5556 /* Exit with 1 (failure) if these two values are both > 0, since
5557 this tests whether strcoll(3) is broken with respect to strcmp(3)
5558 in the default locale. */
5559 exit (r1 > 0 && r2 > 0);
5563 if ac_fn_c_try_run
"$LINENO"; then :
5564 bash_cv_func_strcoll_broken
=yes
5566 bash_cv_func_strcoll_broken
=no
5568 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5569 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5
5575 $as_echo "$bash_cv_func_strcoll_broken" >&6; }
5576 if test $bash_cv_func_strcoll_broken = yes; then
5577 $as_echo "#define STRCOLL_BROKEN 1" >>confdefs.h
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ctype macros accept non-ascii characters" >&5
5583 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
5584 if ${bash_cv_func_ctype_nonascii+:} false
; then :
5585 $as_echo_n "(cached) " >&6
5587 if test "$cross_compiling" = yes; then :
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
5589 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
5590 bash_cv_func_ctype_nonascii
=no
5593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5596 #ifdef HAVE_LOCALE_H
5612 #ifdef HAVE_SETLOCALE
5613 /* We take a shot here. If that locale is not known, try the
5614 system default. We try this one because '\342' (226) is
5615 known to be a printable character in that locale. */
5616 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
5618 deflocale = setlocale(LC_ALL, "");
5625 exit (r1 == 0 || r2 == 0);
5629 if ac_fn_c_try_run
"$LINENO"; then :
5630 bash_cv_func_ctype_nonascii
=yes
5632 bash_cv_func_ctype_nonascii
=no
5634 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5635 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_ctype_nonascii" >&5
5641 $as_echo "$bash_cv_func_ctype_nonascii" >&6; }
5642 if test $bash_cv_func_ctype_nonascii = yes; then
5643 $as_echo "#define CTYPE_NON_ASCII 1" >>confdefs.h
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5
5649 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
5650 if ${bash_cv_getpw_declared+:} false
; then :
5651 $as_echo_n "(cached) " >&6
5653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5656 #include <sys/types.h>
5657 #ifdef HAVE_UNISTD_H
5658 # include <unistd.h>
5663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5664 $EGREP "getpwuid" >/dev
/null
2>&1; then :
5665 bash_cv_getpw_declared
=yes
5667 bash_cv_getpw_declared
=no
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5
5674 $as_echo "$bash_cv_getpw_declared" >&6; }
5675 if test $bash_cv_getpw_declared = yes; then
5676 $as_echo "#define HAVE_GETPW_DECLS 1" >>confdefs.h
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
5682 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
5683 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
5684 $as_echo_n "(cached) " >&6
5686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5688 #include <sys/types.h>
5689 #include <termios.h>
5695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5696 $EGREP "yes" >/dev
/null
2>&1; then :
5697 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
5699 ac_cv_sys_tiocgwinsz_in_termios_h
=no
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
5705 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
5707 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
5709 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
5710 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
5711 $as_echo_n "(cached) " >&6
5713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715 #include <sys/types.h>
5716 #include <sys/ioctl.h>
5722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5723 $EGREP "yes" >/dev
/null
2>&1; then :
5724 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
5726 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
5732 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
5734 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
5736 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5
5743 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
5744 if ${ac_cv_have_sig_atomic_t+:} false
; then :
5745 $as_echo_n "(cached) " >&6
5747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5748 /* end confdefs.h. */
5760 if ac_fn_c_try_link
"$LINENO"; then :
5761 ac_cv_have_sig_atomic_t
=yes
5763 ac_cv_have_sig_atomic_t
=no
5765 rm -f core conftest.err conftest.
$ac_objext \
5766 conftest
$ac_exeext conftest.
$ac_ext
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5
5769 $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
5770 if test "$ac_cv_have_sig_atomic_t" = "no"
5772 ac_fn_c_check_type
"$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default"
5773 if test "x$ac_cv_type_sig_atomic_t" = xyes
; then :
5777 cat >>confdefs.h
<<_ACEOF
5778 #define sig_atomic_t int
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers are of type void" >&5
5786 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
5787 if ${bash_cv_void_sighandler+:} false
; then :
5788 $as_echo_n "(cached) " >&6
5790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792 #include <sys/types.h>
5800 void (*signal ()) ();
5809 if ac_fn_c_try_compile
"$LINENO"; then :
5810 bash_cv_void_sighandler
=yes
5812 bash_cv_void_sighandler
=no
5814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_void_sighandler" >&5
5817 $as_echo "$bash_cv_void_sighandler" >&6; }
5818 if test $bash_cv_void_sighandler = yes; then
5819 $as_echo "#define VOID_SIGHANDLER 1" >>confdefs.h
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5
5825 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
5826 if ${bash_cv_tiocstat_in_ioctl+:} false
; then :
5827 $as_echo_n "(cached) " >&6
5829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5830 /* end confdefs.h. */
5831 #include <sys/types.h>
5832 #include <sys/ioctl.h>
5841 if ac_fn_c_try_compile
"$LINENO"; then :
5842 bash_cv_tiocstat_in_ioctl
=yes
5844 bash_cv_tiocstat_in_ioctl
=no
5846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5
5850 $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
5851 if test $bash_cv_tiocstat_in_ioctl = yes; then
5852 $as_echo "#define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5
5857 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
5858 if ${bash_cv_fionread_in_ioctl+:} false
; then :
5859 $as_echo_n "(cached) " >&6
5861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863 #include <sys/types.h>
5864 #include <sys/ioctl.h>
5873 if ac_fn_c_try_compile
"$LINENO"; then :
5874 bash_cv_fionread_in_ioctl
=yes
5876 bash_cv_fionread_in_ioctl
=no
5878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5
5882 $as_echo "$bash_cv_fionread_in_ioctl" >&6; }
5883 if test $bash_cv_fionread_in_ioctl = yes; then
5884 $as_echo "#define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5
5889 $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
5890 if ${bash_cv_speed_t_in_sys_types+:} false
; then :
5891 $as_echo_n "(cached) " >&6
5893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5894 /* end confdefs.h. */
5895 #include <sys/types.h>
5904 if ac_fn_c_try_compile
"$LINENO"; then :
5905 bash_cv_speed_t_in_sys_types
=yes
5907 bash_cv_speed_t_in_sys_types
=no
5909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5
5913 $as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
5914 if test $bash_cv_speed_t_in_sys_types = yes; then
5915 $as_echo "#define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5
5920 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
5921 if ${bash_cv_struct_winsize_header+:} false
; then :
5922 $as_echo_n "(cached) " >&6
5924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5926 #include <sys/types.h>
5927 #include <sys/ioctl.h>
5936 if ac_fn_c_try_compile
"$LINENO"; then :
5937 bash_cv_struct_winsize_header
=ioctl_h
5939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5940 /* end confdefs.h. */
5941 #include <sys/types.h>
5942 #include <termios.h>
5951 if ac_fn_c_try_compile
"$LINENO"; then :
5952 bash_cv_struct_winsize_header
=termios_h
5954 bash_cv_struct_winsize_header
=other
5956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5962 if test $bash_cv_struct_winsize_header = ioctl_h
; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5
5964 $as_echo "sys/ioctl.h" >&6; }
5965 $as_echo "#define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h
5967 elif test $bash_cv_struct_winsize_header = termios_h
; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5
5969 $as_echo "termios.h" >&6; }
5970 $as_echo "#define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5974 $as_echo "not found" >&6; }
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5
5979 $as_echo_n "checking for struct dirent.d_ino... " >&6; }
5980 if ${bash_cv_dirent_has_dino+:} false
; then :
5981 $as_echo_n "(cached) " >&6
5983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5987 #include <sys/types.h>
5988 #ifdef HAVE_UNISTD_H
5989 # include <unistd.h>
5990 #endif /* HAVE_UNISTD_H */
5991 #if defined(HAVE_DIRENT_H)
5992 # include <dirent.h>
5994 # define dirent direct
5995 # ifdef HAVE_SYS_NDIR_H
5996 # include <sys/ndir.h>
5997 # endif /* SYSNDIR */
5998 # ifdef HAVE_SYS_DIR_H
5999 # include <sys/dir.h>
6000 # endif /* SYSDIR */
6004 #endif /* HAVE_DIRENT_H */
6010 struct dirent d; int z; z = d.d_ino;
6016 if ac_fn_c_try_compile
"$LINENO"; then :
6017 bash_cv_dirent_has_dino
=yes
6019 bash_cv_dirent_has_dino
=no
6021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_dino" >&5
6025 $as_echo "$bash_cv_dirent_has_dino" >&6; }
6026 if test $bash_cv_dirent_has_dino = yes; then
6027 $as_echo "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5
6033 $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
6034 if ${bash_cv_dirent_has_d_fileno+:} false
; then :
6035 $as_echo_n "(cached) " >&6
6037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6041 #include <sys/types.h>
6042 #ifdef HAVE_UNISTD_H
6043 # include <unistd.h>
6044 #endif /* HAVE_UNISTD_H */
6045 #if defined(HAVE_DIRENT_H)
6046 # include <dirent.h>
6048 # define dirent direct
6049 # ifdef HAVE_SYS_NDIR_H
6050 # include <sys/ndir.h>
6051 # endif /* SYSNDIR */
6052 # ifdef HAVE_SYS_DIR_H
6053 # include <sys/dir.h>
6054 # endif /* SYSDIR */
6058 #endif /* HAVE_DIRENT_H */
6064 struct dirent d; int z; z = d.d_fileno;
6070 if ac_fn_c_try_compile
"$LINENO"; then :
6071 bash_cv_dirent_has_d_fileno
=yes
6073 bash_cv_dirent_has_d_fileno
=no
6075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5
6079 $as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
6080 if test $bash_cv_dirent_has_d_fileno = yes; then
6081 $as_echo "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h
6086 for ac_header
in libaudit.h
6088 ac_fn_c_check_header_mongrel
"$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
6089 if test "x$ac_cv_header_libaudit_h" = xyes
; then :
6090 cat >>confdefs.h
<<_ACEOF
6091 #define HAVE_LIBAUDIT_H 1
6098 ac_fn_c_check_decl
"$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h>
6100 if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = xyes
; then :
6106 cat >>confdefs.h
<<_ACEOF
6107 #define HAVE_DECL_AUDIT_USER_TTY $ac_have_decl
6112 aix
*) prefer_curses
=yes ;;
6115 if test "X$bash_cv_termcap_lib" = "X"; then
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
6119 $as_echo_n "checking which library has the termcap functions... " >&6; }
6122 if ${bash_cv_termcap_lib+:} false
; then :
6123 $as_echo_n "(cached) " >&6
6125 ac_fn_c_check_func
"$LINENO" "tgetent" "ac_cv_func_tgetent"
6126 if test "x$ac_cv_func_tgetent" = xyes
; then :
6127 bash_cv_termcap_lib
=libc
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
6130 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
6131 if ${ac_cv_lib_termcap_tgetent+:} false
; then :
6132 $as_echo_n "(cached) " >&6
6134 ac_check_lib_save_LIBS
=$LIBS
6135 LIBS
="-ltermcap $LIBS"
6136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6139 /* Override any GCC internal prototype to avoid an error.
6140 Use char because int might match the return type of a GCC
6141 builtin and then its argument prototype would still apply. */
6154 if ac_fn_c_try_link
"$LINENO"; then :
6155 ac_cv_lib_termcap_tgetent
=yes
6157 ac_cv_lib_termcap_tgetent
=no
6159 rm -f core conftest.err conftest.
$ac_objext \
6160 conftest
$ac_exeext conftest.
$ac_ext
6161 LIBS
=$ac_check_lib_save_LIBS
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
6164 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
6165 if test "x$ac_cv_lib_termcap_tgetent" = xyes
; then :
6166 bash_cv_termcap_lib
=libtermcap
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
6169 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
6170 if ${ac_cv_lib_tinfo_tgetent+:} false
; then :
6171 $as_echo_n "(cached) " >&6
6173 ac_check_lib_save_LIBS
=$LIBS
6174 LIBS
="-ltinfo $LIBS"
6175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6176 /* end confdefs.h. */
6178 /* Override any GCC internal prototype to avoid an error.
6179 Use char because int might match the return type of a GCC
6180 builtin and then its argument prototype would still apply. */
6193 if ac_fn_c_try_link
"$LINENO"; then :
6194 ac_cv_lib_tinfo_tgetent
=yes
6196 ac_cv_lib_tinfo_tgetent
=no
6198 rm -f core conftest.err conftest.
$ac_objext \
6199 conftest
$ac_exeext conftest.
$ac_ext
6200 LIBS
=$ac_check_lib_save_LIBS
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
6203 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
6204 if test "x$ac_cv_lib_tinfo_tgetent" = xyes
; then :
6205 bash_cv_termcap_lib
=libtinfo
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
6208 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
6209 if ${ac_cv_lib_curses_tgetent+:} false
; then :
6210 $as_echo_n "(cached) " >&6
6212 ac_check_lib_save_LIBS
=$LIBS
6213 LIBS
="-lcurses $LIBS"
6214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h. */
6217 /* Override any GCC internal prototype to avoid an error.
6218 Use char because int might match the return type of a GCC
6219 builtin and then its argument prototype would still apply. */
6232 if ac_fn_c_try_link
"$LINENO"; then :
6233 ac_cv_lib_curses_tgetent
=yes
6235 ac_cv_lib_curses_tgetent
=no
6237 rm -f core conftest.err conftest.
$ac_objext \
6238 conftest
$ac_exeext conftest.
$ac_ext
6239 LIBS
=$ac_check_lib_save_LIBS
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
6242 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
6243 if test "x$ac_cv_lib_curses_tgetent" = xyes
; then :
6244 bash_cv_termcap_lib
=libcurses
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
6247 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
6248 if ${ac_cv_lib_ncurses_tgetent+:} false
; then :
6249 $as_echo_n "(cached) " >&6
6251 ac_check_lib_save_LIBS
=$LIBS
6252 LIBS
="-lncurses $LIBS"
6253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6254 /* end confdefs.h. */
6256 /* Override any GCC internal prototype to avoid an error.
6257 Use char because int might match the return type of a GCC
6258 builtin and then its argument prototype would still apply. */
6271 if ac_fn_c_try_link
"$LINENO"; then :
6272 ac_cv_lib_ncurses_tgetent
=yes
6274 ac_cv_lib_ncurses_tgetent
=no
6276 rm -f core conftest.err conftest.
$ac_objext \
6277 conftest
$ac_exeext conftest.
$ac_ext
6278 LIBS
=$ac_check_lib_save_LIBS
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
6281 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
6282 if test "x$ac_cv_lib_ncurses_tgetent" = xyes
; then :
6283 bash_cv_termcap_lib
=libncurses
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5
6286 $as_echo_n "checking for tgetent in -lncursesw... " >&6; }
6287 if ${ac_cv_lib_ncursesw_tgetent+:} false
; then :
6288 $as_echo_n "(cached) " >&6
6290 ac_check_lib_save_LIBS
=$LIBS
6291 LIBS
="-lncursesw $LIBS"
6292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6295 /* Override any GCC internal prototype to avoid an error.
6296 Use char because int might match the return type of a GCC
6297 builtin and then its argument prototype would still apply. */
6310 if ac_fn_c_try_link
"$LINENO"; then :
6311 ac_cv_lib_ncursesw_tgetent
=yes
6313 ac_cv_lib_ncursesw_tgetent
=no
6315 rm -f core conftest.err conftest.
$ac_objext \
6316 conftest
$ac_exeext conftest.
$ac_ext
6317 LIBS
=$ac_check_lib_save_LIBS
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tgetent" >&5
6320 $as_echo "$ac_cv_lib_ncursesw_tgetent" >&6; }
6321 if test "x$ac_cv_lib_ncursesw_tgetent" = xyes
; then :
6322 bash_cv_termcap_lib
=libncursesw
6324 bash_cv_termcap_lib
=gnutermcap
6339 if test "X$_bash_needmsg" = "Xyes"; then
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
6341 $as_echo_n "checking which library has the termcap functions... " >&6; }
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
6344 $as_echo "using $bash_cv_termcap_lib" >&6; }
6345 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
6346 LDFLAGS
="$LDFLAGS -L./lib/termcap"
6347 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
6348 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
6349 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
6350 TERMCAP_LIB
=-ltermcap
6352 elif test $bash_cv_termcap_lib = libtinfo
; then
6355 elif test $bash_cv_termcap_lib = libncurses
; then
6356 TERMCAP_LIB
=-lncurses
6358 elif test $bash_cv_termcap_lib = libc
; then
6362 TERMCAP_LIB
=-lcurses
6366 if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
6367 if test "$prefer_curses" = yes; then
6368 TERMCAP_LIB
=-lcurses
6370 TERMCAP_LIB
=-ltermcap #default
6373 # Windows ncurses installation
6374 if test "$TERMCAP_LIB" = "-lncurses"; then
6375 for ac_header
in ncurses
/termcap.h
6377 ac_fn_c_check_header_mongrel
"$LINENO" "ncurses/termcap.h" "ac_cv_header_ncurses_termcap_h" "$ac_includes_default"
6378 if test "x$ac_cv_header_ncurses_termcap_h" = xyes
; then :
6379 cat >>confdefs.h
<<_ACEOF
6380 #define HAVE_NCURSES_TERMCAP_H 1
6389 case "$TERMCAP_LIB" in
6390 -ltinfo) TERMCAP_PKG_CONFIG_LIB
=tinfo
;;
6391 -lcurses) TERMCAP_PKG_CONFIG_LIB
=ncurses
;;
6392 -lncurses) TERMCAP_PKG_CONFIG_LIB
=ncurses
;;
6393 -ltermcap) TERMCAP_PKG_CONFIG_LIB
=termcap
;;
6394 *) TERMCAP_PKG_CONFIG_LIB
=termcap
;;
6398 for ac_header
in wctype.h
6400 ac_fn_c_check_header_mongrel
"$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
6401 if test "x$ac_cv_header_wctype_h" = xyes
; then :
6402 cat >>confdefs.h
<<_ACEOF
6403 #define HAVE_WCTYPE_H 1
6410 for ac_header
in wchar.h
6412 ac_fn_c_check_header_mongrel
"$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
6413 if test "x$ac_cv_header_wchar_h" = xyes
; then :
6414 cat >>confdefs.h
<<_ACEOF
6415 #define HAVE_WCHAR_H 1
6422 for ac_header
in langinfo.h
6424 ac_fn_c_check_header_mongrel
"$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
6425 if test "x$ac_cv_header_langinfo_h" = xyes
; then :
6426 cat >>confdefs.h
<<_ACEOF
6427 #define HAVE_LANGINFO_H 1
6435 for ac_header
in mbstr.h
6437 ac_fn_c_check_header_mongrel
"$LINENO" "mbstr.h" "ac_cv_header_mbstr_h" "$ac_includes_default"
6438 if test "x$ac_cv_header_mbstr_h" = xyes
; then :
6439 cat >>confdefs.h
<<_ACEOF
6440 #define HAVE_MBSTR_H 1
6448 ac_fn_c_check_func
"$LINENO" "mbrlen" "ac_cv_func_mbrlen"
6449 if test "x$ac_cv_func_mbrlen" = xyes
; then :
6450 $as_echo "#define HAVE_MBRLEN 1" >>confdefs.h
6454 ac_fn_c_check_func
"$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp"
6455 if test "x$ac_cv_func_mbscasecmp" = xyes
; then :
6456 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
6460 ac_fn_c_check_func
"$LINENO" "mbscmp" "ac_cv_func_mbscmp"
6461 if test "x$ac_cv_func_mbscmp" = xyes
; then :
6462 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
6466 ac_fn_c_check_func
"$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs"
6467 if test "x$ac_cv_func_mbsnrtowcs" = xyes
; then :
6468 $as_echo "#define HAVE_MBSNRTOWCS 1" >>confdefs.h
6472 ac_fn_c_check_func
"$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs"
6473 if test "x$ac_cv_func_mbsrtowcs" = xyes
; then :
6474 $as_echo "#define HAVE_MBSRTOWCS 1" >>confdefs.h
6479 ac_fn_c_check_func
"$LINENO" "mbschr" "ac_cv_func_mbschr"
6480 if test "x$ac_cv_func_mbschr" = xyes
; then :
6481 $as_echo "#define HAVE_MBSCHR 1" >>confdefs.h
6484 case " $LIBOBJS " in
6485 *" mbschr.$ac_objext "* ) ;;
6486 *) LIBOBJS
="$LIBOBJS mbschr.$ac_objext"
6494 ac_fn_c_check_func
"$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
6495 if test "x$ac_cv_func_wcrtomb" = xyes
; then :
6496 $as_echo "#define HAVE_WCRTOMB 1" >>confdefs.h
6500 ac_fn_c_check_func
"$LINENO" "wcscoll" "ac_cv_func_wcscoll"
6501 if test "x$ac_cv_func_wcscoll" = xyes
; then :
6502 $as_echo "#define HAVE_WCSCOLL 1" >>confdefs.h
6506 ac_fn_c_check_func
"$LINENO" "wcsdup" "ac_cv_func_wcsdup"
6507 if test "x$ac_cv_func_wcsdup" = xyes
; then :
6508 $as_echo "#define HAVE_WCSDUP 1" >>confdefs.h
6512 ac_fn_c_check_func
"$LINENO" "wcwidth" "ac_cv_func_wcwidth"
6513 if test "x$ac_cv_func_wcwidth" = xyes
; then :
6514 $as_echo "#define HAVE_WCWIDTH 1" >>confdefs.h
6518 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
6519 if test "x$ac_cv_func_wctype" = xyes
; then :
6520 $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h
6525 ac_fn_c_check_func
"$LINENO" "wcswidth" "ac_cv_func_wcswidth"
6526 if test "x$ac_cv_func_wcswidth" = xyes
; then :
6527 $as_echo "#define HAVE_WCSWIDTH 1" >>confdefs.h
6530 case " $LIBOBJS " in
6531 *" wcswidth.$ac_objext "* ) ;;
6532 *) LIBOBJS
="$LIBOBJS wcswidth.$ac_objext"
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
6542 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
6543 if ${ac_cv_func_mbrtowc+:} false
; then :
6544 $as_echo_n "(cached) " >&6
6546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6553 char const s[] = "";
6556 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
6561 if ac_fn_c_try_link
"$LINENO"; then :
6562 ac_cv_func_mbrtowc
=yes
6564 ac_cv_func_mbrtowc
=no
6566 rm -f core conftest.err conftest.
$ac_objext \
6567 conftest
$ac_exeext conftest.
$ac_ext
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
6570 $as_echo "$ac_cv_func_mbrtowc" >&6; }
6571 if test $ac_cv_func_mbrtowc = yes; then
6573 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
6577 if test $ac_cv_func_mbrtowc = yes; then
6578 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6582 for ac_func
in iswlower iswupper towlower towupper iswctype
6584 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6585 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6586 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6587 cat >>confdefs.h
<<_ACEOF
6588 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6596 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6597 if ${bash_cv_langinfo_codeset+:} false
; then :
6598 $as_echo_n "(cached) " >&6
6600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6602 #include <langinfo.h>
6606 char* cs = nl_langinfo(CODESET);
6611 if ac_fn_c_try_link
"$LINENO"; then :
6612 bash_cv_langinfo_codeset
=yes
6614 bash_cv_langinfo_codeset
=no
6616 rm -f core conftest.err conftest.
$ac_objext \
6617 conftest
$ac_exeext conftest.
$ac_ext
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_langinfo_codeset" >&5
6620 $as_echo "$bash_cv_langinfo_codeset" >&6; }
6621 if test $bash_cv_langinfo_codeset = yes; then
6622 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5
6627 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
6628 if ${bash_cv_type_wchar_t+:} false
; then :
6629 $as_echo_n "(cached) " >&6
6631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6632 /* end confdefs.h. */
6646 if ac_fn_c_try_compile
"$LINENO"; then :
6647 bash_cv_type_wchar_t
=yes
6649 bash_cv_type_wchar_t
=no
6651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wchar_t" >&5
6654 $as_echo "$bash_cv_type_wchar_t" >&6; }
6655 if test $bash_cv_type_wchar_t = yes; then
6657 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5
6662 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
6663 if ${bash_cv_type_wctype_t+:} false
; then :
6664 $as_echo_n "(cached) " >&6
6666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6680 if ac_fn_c_try_compile
"$LINENO"; then :
6681 bash_cv_type_wctype_t
=yes
6683 bash_cv_type_wctype_t
=no
6685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wctype_t" >&5
6688 $as_echo "$bash_cv_type_wctype_t" >&6; }
6689 if test $bash_cv_type_wctype_t = yes; then
6691 $as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5
6696 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
6697 if ${bash_cv_type_wint_t+:} false
; then :
6698 $as_echo_n "(cached) " >&6
6700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6714 if ac_fn_c_try_compile
"$LINENO"; then :
6715 bash_cv_type_wint_t
=yes
6717 bash_cv_type_wint_t
=no
6719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wint_t" >&5
6722 $as_echo "$bash_cv_type_wint_t" >&6; }
6723 if test $bash_cv_type_wint_t = yes; then
6725 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcwidth broken with unicode combining characters" >&5
6730 $as_echo_n "checking for wcwidth broken with unicode combining characters... " >&6; }
6731 if ${bash_cv_wcwidth_broken+:} false
; then :
6732 $as_echo_n "(cached) " >&6
6734 if test "$cross_compiling" = yes; then :
6735 bash_cv_wcwidth_broken
=no
6737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6738 /* end confdefs.h. */
6754 setlocale(LC_ALL, "en_US.UTF-8");
6755 w = wcwidth (0x0301);
6756 exit (w == 0); /* exit 0 if wcwidth broken */
6760 if ac_fn_c_try_run
"$LINENO"; then :
6761 bash_cv_wcwidth_broken
=yes
6763 bash_cv_wcwidth_broken
=no
6765 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6766 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcwidth_broken" >&5
6771 $as_echo "$bash_cv_wcwidth_broken" >&6; }
6772 if test "$bash_cv_wcwidth_broken" = yes; then
6774 $as_echo "#define WCWIDTH_BROKEN 1" >>confdefs.h
6778 if test "$am_cv_func_iconv" = yes; then
6780 LIBS
="$LIBS $LIBINTL $LIBICONV"
6781 for ac_func
in locale_charset
6783 ac_fn_c_check_func
"$LINENO" "locale_charset" "ac_cv_func_locale_charset"
6784 if test "x$ac_cv_func_locale_charset" = xyes
; then :
6785 cat >>confdefs.h
<<_ACEOF
6786 #define HAVE_LOCALE_CHARSET 1
6795 # The cast to long int works around a bug in the HP C Compiler
6796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6798 # This bug is HP SR number 8606223364.
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
6800 $as_echo_n "checking size of wchar_t... " >&6; }
6801 if ${ac_cv_sizeof_wchar_t+:} false
; then :
6802 $as_echo_n "(cached) " >&6
6804 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then :
6807 if test "$ac_cv_type_wchar_t" = yes; then
6808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6810 as_fn_error
77 "cannot compute sizeof (wchar_t)
6811 See \`config.log' for more details" "$LINENO" 5; }
6813 ac_cv_sizeof_wchar_t
=0
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
6819 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
6823 cat >>confdefs.h
<<_ACEOF
6824 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
6832 *cray
*) LOCAL_CFLAGS
=-DCRAY ;;
6833 *s390
*) LOCAL_CFLAGS
=-fsigned-char ;;
6837 isc
*) LOCAL_CFLAGS
=-Disc386 ;;
6838 hpux
*) LOCAL_CFLAGS
="-DTGETENT_BROKEN -DTGETFLAG_BROKEN" ;;
6841 # shared library configuration section
6843 # Shared object configuration section. These values are generated by
6844 # ${srcdir}/support/shobj-conf
6846 if test -f ${srcdir}/support
/shobj-conf
; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configuration for building shared libraries" >&5
6848 $as_echo_n "checking configuration for building shared libraries... " >&6; }
6849 eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
6851 # case "$SHLIB_LIBS" in
6852 # *curses*|*termcap*|*termlib*) ;;
6853 # *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;;
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_STATUS" >&5
6872 $as_echo "$SHLIB_STATUS" >&6; }
6874 # SHLIB_STATUS is either `supported' or `unsupported'. If it's
6875 # `unsupported', turn off any default shared library building
6876 if test "$SHLIB_STATUS" = 'unsupported'; then
6880 # shared library versioning
6881 # quoted for m4 so I can use character classes
6882 SHLIB_MAJOR
=`expr "$LIBVERSION" : '\([0-9]\)\..*'`
6883 SHLIB_MINOR
=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`
6888 if test "$opt_static_libs" = "yes"; then
6889 STATIC_TARGET
=static
6890 STATIC_INSTALL_TARGET
=install-static
6892 if test "$opt_shared_libs" = "yes"; then
6893 SHARED_TARGET
=shared
6894 SHARED_INSTALL_TARGET
=install-shared
6902 if test "$opt_install_examples" = "yes"; then
6903 EXAMPLES_INSTALL_TARGET
=install-examples
6908 msdosdjgpp
*) BUILD_DIR
=`pwd.exe` ;; # to prevent //d/path/file
6909 *) BUILD_DIR
=`pwd` ;;
6912 case "$BUILD_DIR" in
6913 *\
*) BUILD_DIR
=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
6919 if test -n "$want_auto_cflags"; then
6920 CFLAGS
="$AUTO_CFLAGS"
6922 CFLAGS
="$CFLAGS $STYLE_CFLAGS"
6940 ac_config_files
="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile readline.pc"
6942 ac_config_commands
="$ac_config_commands default"
6944 cat >confcache
<<\_ACEOF
6945 # This file is a shell script that caches the results of configure
6946 # tests run on this system so they can be shared between configure
6947 # scripts and configure runs, see configure's option --config-cache.
6948 # It is not useful on other systems. If it contains results you don't
6949 # want to keep, you may remove or edit it.
6951 # config.status only pays attention to the cache file if you give it
6952 # the --recheck option to rerun configure.
6954 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6955 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6960 # The following way of writing the cache mishandles newlines in values,
6961 # but we know of no workaround that is simple, portable, and efficient.
6962 # So, we kill variables containing newlines.
6963 # Ultrix sh set writes to stderr and can't be redirected directly,
6964 # and sets the high bit in the cache file unless we assign to the vars.
6966 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6967 eval ac_val
=\$
$ac_var
6971 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6972 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6975 _ | IFS | as_nl
) ;; #(
6976 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6977 *) { eval $ac_var=; unset $ac_var;} ;;
6983 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6984 *${as_nl}ac_space
=\
*)
6985 # `set' does not quote correctly, so add quotes: double-quote
6986 # substitution turns \\\\ into \\, and sed turns \\ into \.
6989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6992 # `set' quotes correctly as required by POSIX, so do not add quotes.
6993 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7002 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7004 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7006 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7007 if test -w "$cache_file"; then
7008 if test "x$cache_file" != "x/dev/null"; then
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7010 $as_echo "$as_me: updating cache $cache_file" >&6;}
7011 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7012 cat confcache
>"$cache_file"
7014 case $cache_file in #(
7016 mv -f confcache
"$cache_file"$$
&&
7017 mv -f "$cache_file"$$
"$cache_file" ;; #(
7019 mv -f confcache
"$cache_file" ;;
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7025 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7030 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7031 # Let make expand exec_prefix.
7032 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7034 DEFS
=-DHAVE_CONFIG_H
7039 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7040 # 1. Remove the extension, and $U if already installed.
7041 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7042 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7043 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7044 # will be set to the directory where LIBOBJS objects are built.
7045 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7046 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7050 LTLIBOBJS
=$ac_ltlibobjs
7054 : "${CONFIG_STATUS=./config.status}"
7056 ac_clean_files_save
=$ac_clean_files
7057 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7059 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7061 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7063 # Generated by $as_me.
7064 # Run this file to recreate the current configuration.
7065 # Compiler output produced by configure, useful for debugging
7066 # configure, is in config.log if it exists.
7072 SHELL=\${CONFIG_SHELL-$SHELL}
7075 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7076 ## -------------------- ##
7077 ## M4sh Initialization. ##
7078 ## -------------------- ##
7080 # Be more Bourne compatible
7081 DUALCASE
=1; export DUALCASE
# for MKS sh
7082 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7085 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7086 # is contrary to our usage. Disable this feature.
7087 alias -g '${1+"$@"}'='"$@"'
7088 setopt NO_GLOB_SUBST
7090 case `(set -o) 2>/dev/null` in #(
7102 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7103 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7104 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7105 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7106 # Prefer a ksh shell builtin over an external printf program on Solaris,
7107 # but without wasting forks for bash or zsh.
7108 if test -z "$BASH_VERSION$ZSH_VERSION" \
7109 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7110 as_echo='print
-r --'
7111 as_echo_n='print
-rn --'
7112 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7113 as_echo='printf %s
\n'
7114 as_echo_n='printf %s
'
7116 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7117 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7118 as_echo_n='/usr
/ucb
/echo -n'
7120 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7121 as_echo_n_body='eval
7125 expr "X$arg" : "X\\(.*\\)$as_nl";
7126 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7128 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7130 export as_echo_n_body
7131 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7134 as_echo='sh
-c $as_echo_body as_echo
'
7137 # The user is always right.
7138 if test "${PATH_SEPARATOR+set}" != set; then
7140 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7141 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7148 # We need space, tab and new line, in precisely that order. Quoting is
7149 # there to prevent editors from complaining about space-tab.
7150 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7151 # splitting by setting IFS to empty value.)
7154 # Find who we are. Look in the path if we contain no directory separator.
7157 *[\\/]* ) as_myself=$0 ;;
7158 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 test -z "$as_dir" && as_dir=.
7163 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7169 # We did not find ourselves, most probably we were run as `sh COMMAND'
7170 # in which case we are not to be found in the path.
7171 if test "x$as_myself" = x
; then
7174 if test ! -f "$as_myself"; then
7175 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7179 # Unset variables that we do not need and which cause bugs (e.g. in
7180 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7181 # suppresses any "Segmentation fault" message there. '((' could
7182 # trigger a bug in pdksh 5.2.14.
7183 for as_var
in BASH_ENV ENV MAIL MAILPATH
7184 do eval test x\
${$as_var+set} = xset \
7185 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7198 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7201 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7202 # ----------------------------------------
7203 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7204 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7205 # script with STATUS, using 1 if that was 0.
7208 as_status
=$1; test $as_status -eq 0 && as_status
=1
7210 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7211 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7213 $as_echo "$as_me: error: $2" >&2
7214 as_fn_exit
$as_status
7218 # as_fn_set_status STATUS
7219 # -----------------------
7220 # Set $? to STATUS, without forking.
7224 } # as_fn_set_status
7228 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7238 # Portably unset VAR.
7241 { eval $1=; unset $1;}
7243 as_unset
=as_fn_unset
7244 # as_fn_append VAR VALUE
7245 # ----------------------
7246 # Append the text in VALUE to the end of the definition contained in VAR. Take
7247 # advantage of any shell optimizations that allow amortized linear growth over
7248 # repeated appends, instead of the typical quadratic growth present in naive
7250 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7251 eval 'as_fn_append ()
7262 # as_fn_arith ARG...
7263 # ------------------
7264 # Perform arithmetic evaluation on the ARGs, and store the result in the
7265 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7266 # must be portable across $(()) and expr.
7267 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7268 eval 'as_fn_arith ()
7275 as_val
=`expr "$@" || test $? -eq 1`
7280 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7281 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7287 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7288 as_basename
=basename
7293 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7299 as_me
=`$as_basename -- "$0" ||
7300 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7301 X"$0" : 'X\(//\)$' \| \
7302 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7304 sed '/^.*\/\([^/][^/]*\)\/*$/{
7318 # Avoid depending upon Character Ranges.
7319 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7320 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7321 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7322 as_cr_digits
='0123456789'
7323 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7325 ECHO_C
= ECHO_N
= ECHO_T
=
7326 case `echo -n x` in #(((((
7328 case `echo 'xy\c'` in
7329 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7331 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7338 rm -f conf$$ conf$$.exe conf$$.
file
7339 if test -d conf$$.dir
; then
7340 rm -f conf$$.dir
/conf$$.
file
7343 mkdir conf$$.dir
2>/dev
/null
7345 if (echo >conf$$.
file) 2>/dev
/null
; then
7346 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7348 # ... but there are two gotchas:
7349 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7350 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7351 # In both cases, we have to default to `cp -pR'.
7352 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7354 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7362 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7363 rmdir conf$$.dir
2>/dev
/null
7368 # Create "$as_dir" as a directory, including parents if necessary.
7373 -*) as_dir
=.
/$as_dir;;
7375 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7379 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7380 *) as_qdir
=$as_dir;;
7382 as_dirs
="'$as_qdir' $as_dirs"
7383 as_dir
=`$as_dirname -- "$as_dir" ||
7384 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7385 X"$as_dir" : 'X\(//\)[^/]' \| \
7386 X"$as_dir" : 'X\(//\)$' \| \
7387 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7388 $as_echo X"$as_dir" |
7389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7406 test -d "$as_dir" && break
7408 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7409 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7413 if mkdir
-p .
2>/dev
/null
; then
7414 as_mkdir_p
='mkdir -p "$as_dir"'
7416 test -d .
/-p && rmdir .
/-p
7421 # as_fn_executable_p FILE
7422 # -----------------------
7423 # Test if FILE is an executable regular file.
7424 as_fn_executable_p
()
7426 test -f "$1" && test -x "$1"
7427 } # as_fn_executable_p
7429 as_executable_p
=as_fn_executable_p
7431 # Sed expression to map a string onto a valid CPP name.
7432 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7434 # Sed expression to map a string onto a valid variable name.
7435 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7439 ## ----------------------------------- ##
7440 ## Main body of $CONFIG_STATUS script. ##
7441 ## ----------------------------------- ##
7443 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7446 # Save the log message, to keep $0 and so on meaningful, and to
7447 # report actual input values of CONFIG_FILES etc. instead of their
7448 # values after options handling.
7450 This file was extended by readline $as_me 8.1, which was
7451 generated by GNU Autoconf 2.69. Invocation command line was
7453 CONFIG_FILES = $CONFIG_FILES
7454 CONFIG_HEADERS = $CONFIG_HEADERS
7455 CONFIG_LINKS = $CONFIG_LINKS
7456 CONFIG_COMMANDS = $CONFIG_COMMANDS
7459 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7464 case $ac_config_files in *"
7465 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7468 case $ac_config_headers in *"
7469 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7474 # Files that config.status was made for.
7475 config_files="$ac_config_files"
7476 config_headers="$ac_config_headers"
7477 config_commands="$ac_config_commands"
7481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7483 \`$as_me' instantiates files and other configuration actions
7484 from templates according to the current configuration. Unless the files
7485 and actions are specified as TAGs, all are instantiated by default.
7487 Usage: $0 [OPTION]... [TAG]...
7489 -h, --help print this help, then exit
7490 -V, --version print version number and configuration settings, then exit
7491 --config print configuration, then exit
7492 -q, --quiet, --silent
7493 do not print progress messages
7494 -d, --debug don't remove temporary files
7495 --recheck update $as_me by reconfiguring in the same conditions
7496 --file=FILE[:TEMPLATE]
7497 instantiate the configuration file FILE
7498 --header=FILE[:TEMPLATE]
7499 instantiate the configuration header FILE
7501 Configuration files:
7504 Configuration headers:
7507 Configuration commands:
7510 Report bugs to <bug-readline@gnu.org>."
7513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7514 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7516 readline config.status 8.1
7517 configured by $0, generated by GNU Autoconf 2.69,
7518 with options \\"\$ac_cs_config\\"
7520 Copyright (C) 2012 Free Software Foundation, Inc.
7521 This config.status script is free software; the Free Software Foundation
7522 gives unlimited permission to copy, distribute and modify it."
7527 test -n "\$AWK" || AWK=awk
7530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7531 # The default lists apply if the user does not specify any file.
7537 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7538 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7542 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7554 # Handling of the options.
7555 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7557 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7558 $as_echo "$ac_cs_version"; exit ;;
7559 --config |
--confi |
--conf |
--con |
--co |
--c )
7560 $as_echo "$ac_cs_config"; exit ;;
7561 --debug |
--debu |
--deb |
--de |
--d |
-d )
7563 --file |
--fil |
--fi |
--f )
7566 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7567 '') as_fn_error $?
"missing file argument" ;;
7569 as_fn_append CONFIG_FILES
" '$ac_optarg'"
7570 ac_need_defaults
=false
;;
7571 --header |
--heade |
--head |
--hea )
7574 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7576 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
7577 ac_need_defaults
=false
;;
7579 # Conflict between --help and --header
7580 as_fn_error $?
"ambiguous option: \`$1'
7581 Try \`$0 --help' for more information.";;
7582 --help |
--hel |
-h )
7583 $as_echo "$ac_cs_usage"; exit ;;
7584 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7585 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7589 -*) as_fn_error $?
"unrecognized option: \`$1'
7590 Try \`$0 --help' for more information." ;;
7592 *) as_fn_append ac_config_targets
" $1"
7593 ac_need_defaults
=false
;;
7599 ac_configure_extra_args
=
7601 if $ac_cs_silent; then
7603 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7608 if \$ac_cs_recheck; then
7609 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7611 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7612 CONFIG_SHELL='$SHELL'
7618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7622 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7623 ## Running $as_me. ##
7629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7634 # Handling of arguments.
7635 for ac_config_target
in $ac_config_targets
7637 case $ac_config_target in
7638 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
7639 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7640 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
7641 "examples/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/Makefile" ;;
7642 "shlib/Makefile") CONFIG_FILES
="$CONFIG_FILES shlib/Makefile" ;;
7643 "readline.pc") CONFIG_FILES
="$CONFIG_FILES readline.pc" ;;
7644 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
7646 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7651 # If the user did not use the arguments to specify the items to instantiate,
7652 # then the envvar interface is used. Set only those that are not.
7653 # We use the long form for the default assignment because of an extremely
7654 # bizarre bug on SunOS 4.1.3.
7655 if $ac_need_defaults; then
7656 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7657 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7658 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7661 # Have a temporary directory for convenience. Make it in the build tree
7662 # simply because there is no reason against having it here, and in addition,
7663 # creating and moving files from /tmp can sometimes cause problems.
7664 # Hook for its removal unless debugging.
7665 # Note that there is a small window in which the directory will not be cleaned:
7666 # after its creation but before its name has been assigned to `$tmp'.
7670 trap 'exit_status=$?
7672 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7674 trap 'as_fn_exit 1' 1 2 13 15
7676 # Create a (secure) tmp directory for tmp files.
7679 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7683 tmp
=.
/conf$$
-$RANDOM
7684 (umask 077 && mkdir
"$tmp")
7685 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
7688 # Set up the scripts for CONFIG_FILES section.
7689 # No need to generate them if there are no CONFIG_FILES.
7690 # This happens for instance with `./config.status config.h'.
7691 if test -n "$CONFIG_FILES"; then
7694 ac_cr
=`echo X | tr X '\015'`
7695 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7696 # But we know of no other shell where ac_cr would be empty at this
7697 # point, so we can use a bashism as a fallback.
7698 if test "x$ac_cr" = x
; then
7699 eval ac_cr
=\$
\'\\r
\'
7701 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7702 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7708 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7713 echo "cat >conf$$subs.awk <<_ACEOF" &&
7714 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7717 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7718 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7720 for ac_last_try in false false false false false :; do
7721 . ./conf$$subs.sh ||
7722 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7724 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7725 if test $ac_delim_n = $ac_delim_num; then
7727 elif $ac_last_try; then
7728 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7730 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7736 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
7740 s/^/S["/; s
/!.
*/"]=/
7750 s/\(.\{148\}\)..*/\1/
7752 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
7757 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7764 s/\(.\{148\}\)..*/\1/
7766 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7770 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7775 ' <conf$$subs.awk | sed '
7780 ' >>$CONFIG_STATUS || ac_write_fail=1
7781 rm -f conf$$subs.awk
7782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7784 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
7785 for (key in S) S_is_set[key] = 1
7791 nfields = split(line, field, "@
")
7793 len = length(field[1])
7794 for (i = 2; i < nfields; i++) {
7796 keylen = length(key)
7797 if (S_is_set[key]) {
7799 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7800 len += length(value) + length(field[++i])
7811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7812 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7813 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
7816 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
7817 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
7820 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7821 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
7822 # trailing colons and then remove the whole line if VPATH becomes empty
7823 # (actually we leave an empty line to preserve line numbers).
7824 if test "x
$srcdir" = x.; then
7825 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7844 fi # test -n "$CONFIG_FILES"
7846 # Set up the scripts for CONFIG_HEADERS section.
7847 # No need to generate them if there are no CONFIG_HEADERS.
7848 # This happens for instance with `./config.status Makefile'.
7849 if test -n "$CONFIG_HEADERS"; then
7850 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
7854 # Transform confdefs.h into an awk script `defines.awk', embedded as
7855 # here-document in config.status, that substitutes the proper values into
7856 # config.h.in to produce config.h.
7858 # Create a delimiter string that does not exist in confdefs.h, to ease
7859 # handling of long lines.
7861 for ac_last_try in false false :; do
7862 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
7863 if test -z "$ac_tt"; then
7865 elif $ac_last_try; then
7866 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
7868 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7872 # For the awk script, D is an array of macro values keyed by name,
7873 # likewise P contains macro parameters if any. Preserve backslash
7874 # newline sequences.
7876 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7878 s/.\{148\}/&'"$ac_delim"'/g
7881 s/^[ ]*#[ ]*define[ ][ ]*/ /
7888 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
7890 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
7894 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
7895 D["\
1"]=" \
3\\\\\\n
"\\/p
7897 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
7902 s/.\{148\}/&'"$ac_delim"'/g
7907 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
7910 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
7912 ' <confdefs.h | sed '
7913 s/'"$ac_delim"'/"\\\
7914 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7917 for (key in D) D_is_set[key] = 1
7920 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7922 split(line, arg, " ")
7923 if (arg[1] == "#") {
7927 defundef
= substr
(arg
[1], 2)
7930 split(mac1
, mac2
, "(") #)
7932 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
7933 if (D_is_set
[macro
]) {
7934 # Preserve the white space surrounding the "#".
7935 print prefix
"define", macro P
[macro
] D
[macro
]
7938 # Replace #undef with comments. This is necessary, for example,
7939 # in the case of _POSIX_SOURCE, which is predefined and required
7940 # on some systems where configure will not decide to define it.
7941 if (defundef
== "undef") {
7942 print
"/*", prefix defundef
, macro
, "*/"
7950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7951 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
7952 fi # test -n "$CONFIG_HEADERS"
7955 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7960 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7962 case $ac_mode$ac_tag in
7964 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7965 :[FH
]-) ac_tag
=-:-;;
7966 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7983 -) ac_f
="$ac_tmp/stdin";;
7984 *) # Look for the file first in the build tree, then in the source tree
7985 # (if the path is not absolute). The absolute path cannot be DOS-style,
7986 # because $ac_f cannot contain `:'.
7990 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7992 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7994 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7995 as_fn_append ac_file_inputs
" '$ac_f'"
7998 # Let's still pretend it is `configure' which instantiates (i.e., don't
7999 # use $as_me), people would be surprised to read:
8000 # /* config.h. Generated by config.status. */
8001 configure_input
='Generated from '`
8002 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8004 if test x
"$ac_file" != x-
; then
8005 configure_input
="$ac_file. $configure_input"
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8007 $as_echo "$as_me: creating $ac_file" >&6;}
8009 # Neutralize special characters interpreted by sed in replacement strings.
8010 case $configure_input in #(
8011 *\
&* |
*\|
* |
*\\* )
8012 ac_sed_conf_input
=`$as_echo "$configure_input" |
8013 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8014 *) ac_sed_conf_input
=$configure_input;;
8018 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
8019 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
8024 ac_dir
=`$as_dirname -- "$ac_file" ||
8025 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8026 X"$ac_file" : 'X\(//\)[^/]' \| \
8027 X"$ac_file" : 'X\(//\)$' \| \
8028 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8029 $as_echo X"$ac_file" |
8030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8047 as_dir
="$ac_dir"; as_fn_mkdir_p
8051 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8053 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8054 # A ".." for each directory in $ac_dir_suffix.
8055 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8056 case $ac_top_builddir_sub in
8057 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8058 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8061 ac_abs_top_builddir
=$ac_pwd
8062 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8063 # for backward compatibility:
8064 ac_top_builddir
=$ac_top_build_prefix
8067 .
) # We are building in place.
8069 ac_top_srcdir
=$ac_top_builddir_sub
8070 ac_abs_top_srcdir
=$ac_pwd ;;
8071 [\\/]* | ?
:[\\/]* ) # Absolute name.
8072 ac_srcdir
=$srcdir$ac_dir_suffix;
8073 ac_top_srcdir
=$srcdir
8074 ac_abs_top_srcdir
=$srcdir ;;
8076 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8077 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8078 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8080 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8090 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8091 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8096 # If the template does not know about datarootdir, expand it.
8097 # FIXME: This hack should be removed a few years after 2.60.
8098 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8109 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8110 *datarootdir
*) ac_datarootdir_seen
=yes;;
8111 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8113 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8116 ac_datarootdir_hack='
8117 s&@datadir@&$datadir&g
8118 s&@docdir@&$docdir&g
8119 s&@infodir@&$infodir&g
8120 s&@localedir@&$localedir&g
8121 s&@mandir@&$mandir&g
8122 s&\\\${datarootdir}&$datarootdir&g' ;;
8126 # Neutralize VPATH when `$srcdir' = `.'.
8127 # Shell code in configure.ac might set extrasub.
8128 # FIXME: do we really want to maintain this feature?
8129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8130 ac_sed_extra="$ac_vpsub
8133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8135 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8136 s|@configure_input@|
$ac_sed_conf_input|
;t t
8137 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8138 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8139 s
&@srcdir@
&$ac_srcdir&;t t
8140 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8141 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8142 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8143 s
&@builddir@
&$ac_builddir&;t t
8144 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8145 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8146 s
&@INSTALL@
&$ac_INSTALL&;t t
8147 $ac_datarootdir_hack
8149 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8150 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8152 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8153 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
8154 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8155 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8157 which seems to be undefined. Please make sure it is defined" >&5
8158 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8159 which seems to be undefined. Please make sure it is defined" >&2;}
8161 rm -f "$ac_tmp/stdin"
8163 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8164 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8166 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8172 if test x"$ac_file" != x-; then
8174 $as_echo "/* $configure_input */" \
8175 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8176 } >"$ac_tmp/config.h" \
8177 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8178 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8180 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8183 mv "$ac_tmp/config.h" "$ac_file" \
8184 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8187 $as_echo "/* $configure_input */" \
8188 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8189 || as_fn_error $? "could not create -" "$LINENO" 5
8193 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8194 $as_echo "$as_me: executing $ac_file commands" >&6;}
8199 case $ac_file$ac_mode in
8201 # Makefile uses this timestamp file to record whether config.h is up to date.
8211 ac_clean_files=$ac_clean_files_save
8213 test $ac_write_fail = 0 ||
8214 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8217 # configure is writing to config.log, and then calls config.status.
8218 # config.status does its own redirection, appending to config.log.
8219 # Unfortunately, on DOS this fails, as config.log is still kept open
8220 # by configure, so config.status won't be able to
write to it
; its
8221 # output is simply discarded. So we exec the FD to /dev/null,
8222 # effectively closing config.log, so it can be properly (re)opened and
8223 # appended to by config.status. When coming back to configure, we
8224 # need to make the FD available again.
8225 if test "$no_create" != yes; then
8227 ac_config_status_args
=
8228 test "$silent" = yes &&
8229 ac_config_status_args
="$ac_config_status_args --quiet"
8231 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8233 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8234 # would make configure fail if this is the last instruction.
8235 $ac_cs_success || as_fn_exit
1
8237 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8239 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}