2 # From configure.ac for Readline 6.3, version 2.73.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for readline 6.3.
6 # Report bugs to <bug-readline@gnu.org>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE
=1; export DUALCASE
# for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo_n='print
-rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
58 as_echo_n='/usr
/ucb
/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
71 as_echo_n='sh
-c $as_echo_n_body as_echo
'
74 as_echo='sh
-c $as_echo_body as_echo
'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
94 # Find who we are. Look in the path if we contain no directory separator.
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x
; then
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var
in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\
${$as_var+set} = xset \
125 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
138 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
140 if test "x$CONFIG_SHELL" = x
; then
141 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 case \`(set -o) 2>/dev/null\` in #(
157 as_required
="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
171 exitcode=1; echo positional parameters were not saved.
173 test x\$exitcode = x0 || exit 1"
174 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1"
179 if (eval "$as_required") 2>/dev
/null
; then :
184 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
189 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
192 test -z "$as_dir" && as_dir
=.
196 for as_base
in sh bash ksh sh5
; do
197 # Try only shells that exist, to save several forks.
198 as_shell
=$as_dir/$as_base
199 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
200 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
201 CONFIG_SHELL
=$as_shell as_have_required
=yes
202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
210 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
211 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
212 CONFIG_SHELL
=$SHELL as_have_required
=yes
217 if test "x$CONFIG_SHELL" != x
; then :
218 # We cannot yet assume a decent shell, so we have to provide a
219 # neutralization value for shells without unset; and this also
220 # works around shells that cannot unset nonexistent variables.
221 # Preserve -v and -x to the replacement shell.
224 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
232 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
235 if test x
$as_have_required = xno
; then :
236 $as_echo "$0: This script requires a shell more modern than all"
237 $as_echo "$0: the shells that I found on your system."
238 if test x
${ZSH_VERSION+set} = xset
; then
239 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
242 $as_echo "$0: Please tell bug-autoconf@gnu.org and
243 $0: bug-readline@gnu.org about your system, including any
244 $0: error possibly output before this message. Then install
245 $0: a modern shell, or manually run the script under such a
246 $0: shell if you do have one."
252 SHELL
=${CONFIG_SHELL-/bin/sh}
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE
= GREP_OPTIONS
=
256 unset CLICOLOR_FORCE GREP_OPTIONS
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
263 # Portably unset VAR.
266 { eval $1=; unset $1;}
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
290 # Create "$as_dir" as a directory, including parents if necessary.
295 -*) as_dir
=.
/$as_dir;;
297 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
301 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
304 as_dirs
="'$as_qdir' $as_dirs"
305 as_dir
=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
328 test -d "$as_dir" && break
330 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
331 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
342 eval 'as_fn_append ()
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
366 as_val
=`expr "$@" || test $? -eq 1`
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
378 as_status
=$1; test $as_status -eq 0 && as_status
=1
380 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit
$as_status
387 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
394 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
400 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
406 as_me
=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
425 # Avoid depending upon Character Ranges.
426 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits
='0123456789'
430 as_cr_alnum
=$as_cr_Letters$as_cr_digits
433 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
434 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
460 # Exit status is that of the last command.
464 ECHO_C
= ECHO_N
= ECHO_T
=
465 case `echo -n x` in #(((((
467 case `echo 'xy\c'` in
468 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
477 rm -f conf$$ conf$$.exe conf$$.
file
478 if test -d conf$$.dir
; then
479 rm -f conf$$.dir
/conf$$.
file
482 mkdir conf$$.dir
2>/dev
/null
484 if (echo >conf$$.
file) 2>/dev
/null
; then
485 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
493 elif ln conf$$.
file conf$$
2>/dev
/null
; then
501 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
502 rmdir conf$$.dir
2>/dev
/null
504 if mkdir
-p .
2>/dev
/null
; then
505 as_mkdir_p
='mkdir -p "$as_dir"'
507 test -d .
/-p && rmdir .
/-p
511 if test -x / >/dev
/null
2>&1; then
514 if ls -dL / >/dev
/null
2>&1; then
521 if test -d "$1"; then
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
532 as_executable_p
=$as_test_x
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
552 ac_default_prefix
=/usr
/local
554 ac_config_libobj_dir
=.
561 # Identity of this package.
562 PACKAGE_NAME
='readline'
563 PACKAGE_TARNAME
='readline'
564 PACKAGE_VERSION
='6.3'
565 PACKAGE_STRING
='readline 6.3'
566 PACKAGE_BUGREPORT
='bug-readline@gnu.org'
569 ac_unique_file
="readline.h"
570 # Factoring default headers for most tests.
571 ac_includes_default
="\
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
583 # ifdef HAVE_STDLIB_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
606 ac_subst_vars
='LTLIBOBJS
615 SHARED_INSTALL_TARGET
616 STATIC_INSTALL_TARGET
690 program_transform_name
703 enable_option_checking
711 ac_precious_vars
='build_alias
722 # Initialize some variables set by options.
724 ac_init_version
=false
725 ac_unrecognized_opts
=
727 # The variables have the same names as the options, with
728 # dashes changed to underlines.
736 program_transform_name
=s
,x
,x
,
744 # Installation directory options.
745 # These are left unexpanded so users can "make install exec_prefix=/foo"
746 # and all the variables that are supposed to be based on exec_prefix
747 # by default will actually change.
748 # Use braces instead of parens because sh, perl, etc. also accept them.
749 # (The list follows the same order as the GNU Coding Standards.)
750 bindir
='${exec_prefix}/bin'
751 sbindir
='${exec_prefix}/sbin'
752 libexecdir
='${exec_prefix}/libexec'
753 datarootdir
='${prefix}/share'
754 datadir
='${datarootdir}'
755 sysconfdir
='${prefix}/etc'
756 sharedstatedir
='${prefix}/com'
757 localstatedir
='${prefix}/var'
758 includedir
='${prefix}/include'
759 oldincludedir
='/usr/include'
760 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
761 infodir
='${datarootdir}/info'
766 libdir
='${exec_prefix}/lib'
767 localedir
='${datarootdir}/locale'
768 mandir
='${datarootdir}/man'
774 # If the previous option needs an argument, assign it.
775 if test -n "$ac_prev"; then
776 eval $ac_prev=\
$ac_option
782 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
787 # Accept the important Cygnus configure options, so we can diagnose typos.
789 case $ac_dashdash$ac_option in
793 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
795 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
798 -build |
--build |
--buil |
--bui |
--bu)
799 ac_prev
=build_alias
;;
800 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
801 build_alias
=$ac_optarg ;;
803 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
804 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
805 ac_prev
=cache_file
;;
806 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
807 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
808 cache_file
=$ac_optarg ;;
811 cache_file
=config.cache
;;
813 -datadir |
--datadir |
--datadi |
--datad)
815 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
816 datadir
=$ac_optarg ;;
818 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
819 |
--dataroo |
--dataro |
--datar)
820 ac_prev
=datarootdir
;;
821 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
822 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
823 datarootdir
=$ac_optarg ;;
825 -disable-* |
--disable-*)
826 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
827 # Reject names that are not valid shell variable names.
828 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
829 as_fn_error $?
"invalid feature name: $ac_useropt"
830 ac_useropt_orig
=$ac_useropt
831 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
832 case $ac_user_opts in
836 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
837 ac_unrecognized_sep
=', ';;
839 eval enable_
$ac_useropt=no
;;
841 -docdir |
--docdir |
--docdi |
--doc |
--do)
843 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
846 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
848 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
851 -enable-* |
--enable-*)
852 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
855 as_fn_error $?
"invalid feature name: $ac_useropt"
856 ac_useropt_orig
=$ac_useropt
857 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858 case $ac_user_opts in
862 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
863 ac_unrecognized_sep
=', ';;
865 eval enable_
$ac_useropt=\
$ac_optarg ;;
867 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
868 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
869 |
--exec |
--exe |
--ex)
870 ac_prev
=exec_prefix
;;
871 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
872 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
873 |
--exec=* |
--exe=* |
--ex=*)
874 exec_prefix
=$ac_optarg ;;
876 -gas |
--gas |
--ga |
--g)
877 # Obsolete; use --with-gas.
880 -help |
--help |
--hel |
--he |
-h)
882 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
883 ac_init_help
=recursive
;;
884 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
885 ac_init_help
=short
;;
887 -host |
--host |
--hos |
--ho)
888 ac_prev
=host_alias
;;
889 -host=* |
--host=* |
--hos=* |
--ho=*)
890 host_alias
=$ac_optarg ;;
892 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
894 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
896 htmldir
=$ac_optarg ;;
898 -includedir |
--includedir |
--includedi |
--included |
--include \
899 |
--includ |
--inclu |
--incl |
--inc)
900 ac_prev
=includedir
;;
901 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
902 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
903 includedir
=$ac_optarg ;;
905 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
907 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
908 infodir
=$ac_optarg ;;
910 -libdir |
--libdir |
--libdi |
--libd)
912 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
915 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
916 |
--libexe |
--libex |
--libe)
917 ac_prev
=libexecdir
;;
918 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
919 |
--libexe=* |
--libex=* |
--libe=*)
920 libexecdir
=$ac_optarg ;;
922 -localedir |
--localedir |
--localedi |
--localed |
--locale)
924 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
925 localedir
=$ac_optarg ;;
927 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
928 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
929 ac_prev
=localstatedir
;;
930 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
931 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
932 localstatedir
=$ac_optarg ;;
934 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
936 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
940 # Obsolete; use --without-fp.
943 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
944 |
--no-cr |
--no-c |
-n)
947 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
948 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
951 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
952 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
953 |
--oldin |
--oldi |
--old |
--ol |
--o)
954 ac_prev
=oldincludedir
;;
955 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
956 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
957 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
958 oldincludedir
=$ac_optarg ;;
960 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
962 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
965 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
966 |
--program-pre |
--program-pr |
--program-p)
967 ac_prev
=program_prefix
;;
968 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
969 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
970 program_prefix
=$ac_optarg ;;
972 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
973 |
--program-suf |
--program-su |
--program-s)
974 ac_prev
=program_suffix
;;
975 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
976 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
977 program_suffix
=$ac_optarg ;;
979 -program-transform-name |
--program-transform-name \
980 |
--program-transform-nam |
--program-transform-na \
981 |
--program-transform-n |
--program-transform- \
982 |
--program-transform |
--program-transfor \
983 |
--program-transfo |
--program-transf \
984 |
--program-trans |
--program-tran \
985 |
--progr-tra |
--program-tr |
--program-t)
986 ac_prev
=program_transform_name
;;
987 -program-transform-name=* |
--program-transform-name=* \
988 |
--program-transform-nam=* |
--program-transform-na=* \
989 |
--program-transform-n=* |
--program-transform-=* \
990 |
--program-transform=* |
--program-transfor=* \
991 |
--program-transfo=* |
--program-transf=* \
992 |
--program-trans=* |
--program-tran=* \
993 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
994 program_transform_name
=$ac_optarg ;;
996 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
998 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1001 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1003 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1006 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1007 |
-silent |
--silent |
--silen |
--sile |
--sil)
1010 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1012 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1014 sbindir
=$ac_optarg ;;
1016 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1017 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1018 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1020 ac_prev
=sharedstatedir
;;
1021 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1022 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1023 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1025 sharedstatedir
=$ac_optarg ;;
1027 -site |
--site |
--sit)
1029 -site=* |
--site=* |
--sit=*)
1032 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1034 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1035 srcdir
=$ac_optarg ;;
1037 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1038 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1039 ac_prev
=sysconfdir
;;
1040 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1041 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1042 sysconfdir
=$ac_optarg ;;
1044 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1045 ac_prev
=target_alias
;;
1046 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1047 target_alias
=$ac_optarg ;;
1049 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1052 -version |
--version |
--versio |
--versi |
--vers |
-V)
1053 ac_init_version
=: ;;
1056 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1059 as_fn_error $?
"invalid package name: $ac_useropt"
1060 ac_useropt_orig
=$ac_useropt
1061 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1066 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1067 ac_unrecognized_sep
=', ';;
1069 eval with_
$ac_useropt=\
$ac_optarg ;;
1071 -without-* |
--without-*)
1072 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1075 as_fn_error $?
"invalid package name: $ac_useropt"
1076 ac_useropt_orig
=$ac_useropt
1077 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1082 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1083 ac_unrecognized_sep
=', ';;
1085 eval with_
$ac_useropt=no
;;
1088 # Obsolete; use --with-x.
1091 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1092 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1093 ac_prev
=x_includes
;;
1094 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1095 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1096 x_includes
=$ac_optarg ;;
1098 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1099 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1100 ac_prev
=x_libraries
;;
1101 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1102 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1103 x_libraries
=$ac_optarg ;;
1105 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1106 Try \`$0 --help' for more information"
1110 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 case $ac_envvar in #(
1113 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1114 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1116 eval $ac_envvar=\
$ac_optarg
1117 export $ac_envvar ;;
1120 # FIXME: should be removed in autoconf 3.0.
1121 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1123 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1124 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1130 if test -n "$ac_prev"; then
1131 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1132 as_fn_error $?
"missing argument to $ac_option"
1135 if test -n "$ac_unrecognized_opts"; then
1136 case $enable_option_checking in
1138 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1139 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1143 # Check all directory arguments for consistency.
1144 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1145 datadir sysconfdir sharedstatedir localstatedir includedir \
1146 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1147 libdir localedir mandir
1149 eval ac_val
=\$
$ac_var
1150 # Remove trailing slashes.
1153 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1154 eval $ac_var=\
$ac_val;;
1156 # Be sure to have absolute directory names.
1158 [\\/$
]* | ?
:[\\/]* ) continue;;
1159 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1161 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1164 # There might be people who depend on the old broken behavior: `$host'
1165 # used to hold the argument of --host etc.
1166 # FIXME: To remove some day.
1169 target
=$target_alias
1171 # FIXME: To remove some day.
1172 if test "x$host_alias" != x
; then
1173 if test "x$build_alias" = x
; then
1174 cross_compiling
=maybe
1175 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1176 If a cross compiler is detected then cross compile mode will be used" >&2
1177 elif test "x$build_alias" != "x$host_alias"; then
1183 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1185 test "$silent" = yes && exec 6>/dev
/null
1188 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1189 ac_ls_di
=`ls -di .` &&
1190 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1191 as_fn_error $?
"working directory cannot be determined"
1192 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1193 as_fn_error $?
"pwd does not report name of working directory"
1196 # Find the source files, if location was not specified.
1197 if test -z "$srcdir"; then
1198 ac_srcdir_defaulted
=yes
1199 # Try the directory containing this script, then the parent directory.
1200 ac_confdir
=`$as_dirname -- "$as_myself" ||
1201 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1202 X"$as_myself" : 'X\(//\)[^/]' \| \
1203 X"$as_myself" : 'X\(//\)$' \| \
1204 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1205 $as_echo X"$as_myself" |
1206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224 if test ! -r "$srcdir/$ac_unique_file"; then
1228 ac_srcdir_defaulted
=no
1230 if test ! -r "$srcdir/$ac_unique_file"; then
1231 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1232 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1234 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1236 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1238 # When building in place, set srcdir=.
1239 if test "$ac_abs_confdir" = "$ac_pwd"; then
1242 # Remove unnecessary trailing slashes from srcdir.
1243 # Double slashes in file names in object file debugging info
1244 # mess up M-x gdb in Emacs.
1246 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1248 for ac_var
in $ac_precious_vars; do
1249 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1250 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1251 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1252 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1256 # Report the --help message.
1258 if test "$ac_init_help" = "long"; then
1259 # Omit some internal or obsolete options to make the list less imposing.
1260 # This message is too long to be a string in the A/UX 3.1 sh.
1262 \`configure' configures readline 6.3 to adapt to many kinds of systems.
1264 Usage: $0 [OPTION]... [VAR=VALUE]...
1266 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1267 VAR=VALUE. See below for descriptions of some of the useful variables.
1269 Defaults for the options are specified in brackets.
1272 -h, --help display this help and exit
1273 --help=short display options specific to this package
1274 --help=recursive display the short help of all the included packages
1275 -V, --version display version information and exit
1276 -q, --quiet, --silent do not print \`checking ...' messages
1277 --cache-file=FILE cache test results in FILE [disabled]
1278 -C, --config-cache alias for \`--cache-file=config.cache'
1279 -n, --no-create do not create output files
1280 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1282 Installation directories:
1283 --prefix=PREFIX install architecture-independent files in PREFIX
1284 [$ac_default_prefix]
1285 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1288 By default, \`make install' will install all the files in
1289 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1290 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1291 for instance \`--prefix=\$HOME'.
1293 For better control, use the options below.
1295 Fine tuning of the installation directories:
1296 --bindir=DIR user executables [EPREFIX/bin]
1297 --sbindir=DIR system admin executables [EPREFIX/sbin]
1298 --libexecdir=DIR program executables [EPREFIX/libexec]
1299 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1300 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1301 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1302 --libdir=DIR object code libraries [EPREFIX/lib]
1303 --includedir=DIR C header files [PREFIX/include]
1304 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1305 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1306 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1307 --infodir=DIR info documentation [DATAROOTDIR/info]
1308 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1309 --mandir=DIR man documentation [DATAROOTDIR/man]
1310 --docdir=DIR documentation root [DATAROOTDIR/doc/readline]
1311 --htmldir=DIR html documentation [DOCDIR]
1312 --dvidir=DIR dvi documentation [DOCDIR]
1313 --pdfdir=DIR pdf documentation [DOCDIR]
1314 --psdir=DIR ps documentation [DOCDIR]
1320 --build=BUILD configure
for building on BUILD
[guessed
]
1321 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1325 if test -n "$ac_init_help"; then
1326 case $ac_init_help in
1327 short | recursive
) echo "Configuration of readline 6.3:";;
1332 --disable-option-checking ignore unrecognized
--enable/--with options
1333 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1334 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1335 --enable-multibyte enable multibyte characters
if OS supports them
1336 --enable-shared build shared libraries
[[default
=YES
]]
1337 --enable-static build static libraries
[[default
=YES
]]
1338 --disable-largefile omit support
for large files
1341 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1342 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1343 --with-curses use the curses library instead of the termcap
1345 --with-purify configure to postprocess with purify
1347 Some influential environment variables
:
1348 CC C compiler
command
1349 CFLAGS C compiler flags
1350 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1351 nonstandard directory
<lib dir
>
1352 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1353 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1354 you have headers
in a nonstandard directory
<include dir
>
1357 Use these variables to override the choices made by
`configure' or to help
1358 it to find libraries and programs with nonstandard names/locations.
1360 Report bugs to <bug-readline@gnu.org>.
1365 if test "$ac_init_help" = "recursive"; then
1366 # If there are subdirs, report their specific --help.
1367 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1368 test -d "$ac_dir" ||
1369 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1374 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1376 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1377 # A ".." for each directory in $ac_dir_suffix.
1378 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1379 case $ac_top_builddir_sub in
1380 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1381 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384 ac_abs_top_builddir=$ac_pwd
1385 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1386 # for backward compatibility:
1387 ac_top_builddir=$ac_top_build_prefix
1390 .) # We are building in place.
1392 ac_top_srcdir=$ac_top_builddir_sub
1393 ac_abs_top_srcdir=$ac_pwd ;;
1394 [\\/]* | ?:[\\/]* ) # Absolute name.
1395 ac_srcdir=$srcdir$ac_dir_suffix;
1396 ac_top_srcdir=$srcdir
1397 ac_abs_top_srcdir=$srcdir ;;
1399 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1400 ac_top_srcdir=$ac_top_build_prefix$srcdir
1401 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1403 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1405 cd "$ac_dir" || { ac_status=$?; continue; }
1406 # Check for guested configure.
1407 if test -f "$ac_srcdir/configure.gnu"; then
1409 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1410 elif test -f "$ac_srcdir/configure"; then
1412 $SHELL "$ac_srcdir/configure" --help=recursive
1414 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1416 cd "$ac_pwd" || { ac_status=$?; break; }
1420 test -n "$ac_init_help" && exit $ac_status
1421 if $ac_init_version; then
1423 readline configure 6.3
1424 generated by GNU Autoconf 2.68
1426 Copyright (C) 2010 Free Software Foundation, Inc.
1427 This configure script is free software; the Free Software Foundation
1428 gives unlimited permission to copy, distribute and modify it.
1433 ## ------------------------ ##
1434 ## Autoconf initialization. ##
1435 ## ------------------------ ##
1437 # ac_fn_c_try_compile LINENO
1438 # --------------------------
1439 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1440 ac_fn_c_try_compile ()
1442 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1443 rm -f conftest.$ac_objext
1444 if { { ac_try="$ac_compile"
1446 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1447 *) ac_try_echo
=$ac_try;;
1449 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1450 $as_echo "$ac_try_echo"; } >&5
1451 (eval "$ac_compile") 2>conftest.err
1453 if test -s conftest.err
; then
1454 grep -v '^ *+' conftest.err
>conftest.er1
1455 cat conftest.er1
>&5
1456 mv -f conftest.er1 conftest.err
1458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1459 test $ac_status = 0; } && {
1460 test -z "$ac_c_werror_flag" ||
1461 test ! -s conftest.err
1462 } && test -s conftest.
$ac_objext; then :
1465 $as_echo "$as_me: failed program was:" >&5
1466 sed 's/^/| /' conftest.
$ac_ext >&5
1470 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1471 as_fn_set_status
$ac_retval
1473 } # ac_fn_c_try_compile
1475 # ac_fn_c_try_cpp LINENO
1476 # ----------------------
1477 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1480 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1481 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1484 *) ac_try_echo=$ac_try;;
1486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1487 $as_echo "$ac_try_echo"; } >&5
1488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1490 if test -s conftest.err; then
1491 grep -v '^ *+' conftest.err >conftest.er1
1492 cat conftest.er1 >&5
1493 mv -f conftest.er1 conftest.err
1495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1496 test $ac_status = 0; } > conftest.i && {
1497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1498 test ! -s conftest.err
1502 $as_echo "$as_me: failed program was:" >&5
1503 sed 's/^/| /' conftest.$ac_ext >&5
1507 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1508 as_fn_set_status $ac_retval
1512 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1513 # -------------------------------------------------------
1514 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1515 # the include files in INCLUDES and setting the cache variable VAR
1517 ac_fn_c_check_header_mongrel ()
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 if eval \${$3+:} false; then :
1521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1522 $as_echo_n "checking for $2... " >&6; }
1523 if eval \${$3+:} false; then :
1524 $as_echo_n "(cached) " >&6
1527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1528 $as_echo "$ac_res" >&6; }
1530 # Is the header compilable?
1531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1532 $as_echo_n "checking $2 usability... " >&6; }
1533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1534 /* end confdefs.h. */
1538 if ac_fn_c_try_compile "$LINENO"; then :
1539 ac_header_compiler=yes
1541 ac_header_compiler=no
1543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1545 $as_echo "$ac_header_compiler" >&6; }
1547 # Is the header present?
1548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1549 $as_echo_n "checking $2 presence... " >&6; }
1550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1551 /* end confdefs.h. */
1554 if ac_fn_c_try_cpp "$LINENO"; then :
1555 ac_header_preproc=yes
1557 ac_header_preproc=no
1559 rm -f conftest.err conftest.i conftest.$ac_ext
1560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1561 $as_echo "$ac_header_preproc" >&6; }
1563 # So? What about this header?
1564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1567 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1569 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1573 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1575 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1577 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1579 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1581 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1582 ( $as_echo "## ----------------------------------- ##
1583 ## Report this to bug-readline@gnu.org ##
1584 ## ----------------------------------- ##"
1585 ) | sed "s/^/$as_me: WARNING: /" >&2
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1589 $as_echo_n "checking for $2... " >&6; }
1590 if eval \${$3+:} false; then :
1591 $as_echo_n "(cached) " >&6
1593 eval "$3=\$ac_header_compiler"
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1597 $as_echo "$ac_res" >&6; }
1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601 } # ac_fn_c_check_header_mongrel
1603 # ac_fn_c_try_run LINENO
1604 # ----------------------
1605 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1606 # that executables *can* be run.
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 if { { ac_try="$ac_link"
1612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1613 *) ac_try_echo
=$ac_try;;
1615 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617 (eval "$ac_link") 2>&5
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1621 { { case "(($ac_try" in
1622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_try") 2>&5
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; }; }; then :
1633 $as_echo "$as_me: program exited with status $ac_status" >&5
1634 $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1637 ac_retval=$ac_status
1639 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
1645 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1646 # -------------------------------------------------------
1647 # Tests whether HEADER exists and can be compiled using the include files in
1648 # INCLUDES, setting the cache variable VAR accordingly.
1649 ac_fn_c_check_header_compile ()
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1653 $as_echo_n "checking for $2... " >&6; }
1654 if eval \${$3+:} false; then :
1655 $as_echo_n "(cached) " >&6
1657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658 /* end confdefs.h. */
1662 if ac_fn_c_try_compile "$LINENO"; then :
1667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671 $as_echo "$ac_res" >&6; }
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 } # ac_fn_c_check_header_compile
1676 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1677 # -------------------------------------------
1678 # Tests whether TYPE exists after having included INCLUDES, setting cache
1679 # variable VAR accordingly.
1680 ac_fn_c_check_type ()
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684 $as_echo_n "checking for $2... " >&6; }
1685 if eval \${$3+:} false; then :
1686 $as_echo_n "(cached) " >&6
1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690 /* end confdefs.h. */
1701 if ac_fn_c_try_compile "$LINENO"; then :
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h. */
1714 if ac_fn_c_try_compile "$LINENO"; then :
1719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725 $as_echo "$ac_res" >&6; }
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 } # ac_fn_c_check_type
1730 # ac_fn_c_try_link LINENO
1731 # -----------------------
1732 # Try to link conftest.$ac_ext, and return whether this succeeded.
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 rm -f conftest.$ac_objext conftest$ac_exeext
1737 if { { ac_try="$ac_link"
1739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1740 *) ac_try_echo
=$ac_try;;
1742 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_link") 2>conftest.err
1746 if test -s conftest.err
; then
1747 grep -v '^ *+' conftest.err
>conftest.er1
1748 cat conftest.er1
>&5
1749 mv -f conftest.er1 conftest.err
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && {
1753 test -z "$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1755 } && test -s conftest
$ac_exeext && {
1756 test "$cross_compiling" = yes ||
1757 $as_test_x conftest
$ac_exeext
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.
$ac_ext >&5
1766 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1767 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1768 # interfere with the next link command; also delete a directory that is
1769 # left behind by Apple's compiler. We do this before executing the actions.
1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 as_fn_set_status
$ac_retval
1774 } # ac_fn_c_try_link
1776 # ac_fn_c_check_func LINENO FUNC VAR
1777 # ----------------------------------
1778 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1779 ac_fn_c_check_func
()
1781 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if eval \
${$3+:} false
; then :
1785 $as_echo_n "(cached) " >&6
1787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1789 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1791 #define $2 innocuous_$2
1793 /* System header to define __stub macros and hopefully few prototypes,
1794 which can conflict with char $2 (); below.
1795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1796 <limits.h> exists even on freestanding compilers. */
1799 # include <limits.h>
1801 # include <assert.h>
1806 /* Override any GCC internal prototype to avoid an error.
1807 Use char because int might match the return type of a GCC
1808 builtin and then its argument prototype would still apply. */
1813 /* The GNU C library defines this for functions which it implements
1814 to always fail with ENOSYS. Some functions are actually named
1815 something starting with __ and the normal name is an alias. */
1816 #if defined __stub_$2 || defined __stub___$2
1828 if ac_fn_c_try_link
"$LINENO"; then :
1833 rm -f core conftest.err conftest.
$ac_objext \
1834 conftest
$ac_exeext conftest.
$ac_ext
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 $as_echo "$ac_res" >&6; }
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 } # ac_fn_c_check_func
1843 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1844 # ---------------------------------------------
1845 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1847 ac_fn_c_check_decl
()
1849 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1850 as_decl_name
=`echo $2|sed 's/ *(.*//'`
1851 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1853 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1854 if eval \
${$3+:} false
; then :
1855 $as_echo_n "(cached) " >&6
1857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h. */
1863 #ifndef $as_decl_name
1865 (void) $as_decl_use;
1867 (void) $as_decl_name;
1875 if ac_fn_c_try_compile
"$LINENO"; then :
1880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884 $as_echo "$ac_res" >&6; }
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 } # ac_fn_c_check_decl
1888 cat >config.log
<<_ACEOF
1889 This file contains any messages produced by compilers while
1890 running configure, to aid debugging if configure makes a mistake.
1892 It was created by readline $as_me 6.3, which was
1893 generated by GNU Autoconf 2.68. Invocation command line was
1905 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1906 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1907 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1908 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1909 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1911 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1912 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1914 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1915 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1916 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1917 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1918 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1919 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1920 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1928 test -z "$as_dir" && as_dir
=.
1929 $as_echo "PATH: $as_dir"
1945 # Keep a trace of the command line.
1946 # Strip out --no-create and --no-recursion so they do not pile up.
1947 # Strip out --silent because we don't want to record it for future runs.
1948 # Also quote any args containing shell meta-characters.
1949 # Make two passes to allow for proper duplicate-argument suppression.
1953 ac_must_keep_next
=false
1959 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1960 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1961 |
-silent |
--silent |
--silen |
--sile |
--sil)
1964 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1967 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1969 as_fn_append ac_configure_args1
" '$ac_arg'"
1970 if test $ac_must_keep_next = true
; then
1971 ac_must_keep_next
=false
# Got value, back to normal.
1974 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1975 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1976 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1977 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1978 case "$ac_configure_args0 " in
1979 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1982 -* ) ac_must_keep_next
=true
;;
1985 as_fn_append ac_configure_args
" '$ac_arg'"
1990 { ac_configure_args0
=; unset ac_configure_args0
;}
1991 { ac_configure_args1
=; unset ac_configure_args1
;}
1993 # When interrupted or exit'd, cleanup temporary files, and complete
1994 # config.log. We remove comments because anyway the quotes in there
1995 # would cause problems or look ugly.
1996 # WARNING: Use '\'' to represent an apostrophe within the trap.
1997 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1998 trap 'exit_status=$?
1999 # Save into config.log some information that might help in debugging.
2003 $as_echo "## ---------------- ##
2004 ## Cache variables. ##
2005 ## ---------------- ##"
2007 # The following way of writing the cache mishandles newlines in values,
2009 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2010 eval ac_val=\$$ac_var
2014 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2015 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2018 _ | IFS | as_nl) ;; #(
2019 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2020 *) { eval $ac_var=; unset $ac_var;} ;;
2025 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2026 *${as_nl}ac_space=\ *)
2028 "s/'\''/'\''\\\\'\'''\''/g;
2029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2032 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2039 $as_echo "## ----------------- ##
2040 ## Output variables. ##
2041 ## ----------------- ##"
2043 for ac_var in $ac_subst_vars
2045 eval ac_val=\$$ac_var
2047 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2049 $as_echo "$ac_var='\''$ac_val'\''"
2053 if test -n "$ac_subst_files"; then
2054 $as_echo "## ------------------- ##
2055 ## File substitutions. ##
2056 ## ------------------- ##"
2058 for ac_var
in $ac_subst_files
2060 eval ac_val
=\$
$ac_var
2062 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064 $as_echo "$ac_var='\''$ac_val'\''"
2069 if test -s confdefs.h; then
2070 $as_echo "## ----------- ##
2077 test "$ac_signal" != 0 &&
2078 $as_echo "$as_me: caught signal $ac_signal"
2079 $as_echo "$as_me: exit $exit_status"
2081 rm -f core *.core core.conftest.* &&
2082 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2085 for ac_signal
in 1 2 13 15; do
2086 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2090 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2091 rm -f -r conftest
* confdefs.h
2093 $as_echo "/* confdefs.h */" > confdefs.h
2095 # Predefined preprocessor variables.
2097 cat >>confdefs.h
<<_ACEOF
2098 #define PACKAGE_NAME "$PACKAGE_NAME"
2101 cat >>confdefs.h
<<_ACEOF
2102 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2105 cat >>confdefs.h
<<_ACEOF
2106 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2109 cat >>confdefs.h
<<_ACEOF
2110 #define PACKAGE_STRING "$PACKAGE_STRING"
2113 cat >>confdefs.h
<<_ACEOF
2114 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2117 cat >>confdefs.h
<<_ACEOF
2118 #define PACKAGE_URL "$PACKAGE_URL"
2122 # Let the site file select an alternate cache file if it wants to.
2123 # Prefer an explicitly selected file to automatically selected ones.
2126 if test -n "$CONFIG_SITE"; then
2127 # We do not want a PATH search for config.site.
2128 case $CONFIG_SITE in #((
2129 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2130 */*) ac_site_file1
=$CONFIG_SITE;;
2131 *) ac_site_file1
=.
/$CONFIG_SITE;;
2133 elif test "x$prefix" != xNONE
; then
2134 ac_site_file1
=$prefix/share
/config.site
2135 ac_site_file2
=$prefix/etc
/config.site
2137 ac_site_file1
=$ac_default_prefix/share
/config.site
2138 ac_site_file2
=$ac_default_prefix/etc
/config.site
2140 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2142 test "x$ac_site_file" = xNONE
&& continue
2143 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2145 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2146 sed 's/^/| /' "$ac_site_file" >&5
2148 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2150 as_fn_error $?
"failed to load site script $ac_site_file
2151 See \`config.log' for more details" "$LINENO" 5; }
2155 if test -r "$cache_file"; then
2156 # Some versions of bash will fail to source /dev/null (special files
2157 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2158 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2160 $as_echo "$as_me: loading cache $cache_file" >&6;}
2162 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2163 *) .
"./$cache_file";;
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2168 $as_echo "$as_me: creating cache $cache_file" >&6;}
2172 # Check that the precious variables saved in the cache have kept the same
2174 ac_cache_corrupted
=false
2175 for ac_var
in $ac_precious_vars; do
2176 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2177 eval ac_new_set
=\
$ac_env_${ac_var}_set
2178 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2179 eval ac_new_val
=\
$ac_env_${ac_var}_value
2180 case $ac_old_set,$ac_new_set in
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2183 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2184 ac_cache_corrupted
=: ;;
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2187 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2188 ac_cache_corrupted
=: ;;
2191 if test "x$ac_old_val" != "x$ac_new_val"; then
2192 # differences in whitespace do not lead to failure.
2193 ac_old_val_w
=`echo x $ac_old_val`
2194 ac_new_val_w
=`echo x $ac_new_val`
2195 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2197 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2198 ac_cache_corrupted
=:
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2201 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2202 eval $ac_var=\
$ac_old_val
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2205 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2207 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2210 # Pass precious variables to config.status.
2211 if test "$ac_new_set" = set; then
2213 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2214 *) ac_arg
=$ac_var=$ac_new_val ;;
2216 case " $ac_configure_args " in
2217 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2218 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2222 if $ac_cache_corrupted; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2226 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2227 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2229 ## -------------------- ##
2230 ## Main body of script. ##
2231 ## -------------------- ##
2234 ac_cpp
='$CPP $CPPFLAGS'
2235 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2236 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2237 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2245 for ac_dir
in .
/support
"$srcdir"/.
/support
; do
2246 if test -f "$ac_dir/install-sh"; then
2248 ac_install_sh
="$ac_aux_dir/install-sh -c"
2250 elif test -f "$ac_dir/install.sh"; then
2252 ac_install_sh
="$ac_aux_dir/install.sh -c"
2254 elif test -f "$ac_dir/shtool"; then
2256 ac_install_sh
="$ac_aux_dir/shtool install -c"
2260 if test -z "$ac_aux_dir"; then
2261 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in ./support \"$srcdir\"/./support" "$LINENO" 5
2264 # These three variables are undocumented and unsupported,
2265 # and are intended to be withdrawn in a future Autoconf release.
2266 # They can cause serious problems if a builder's source tree is in a directory
2267 # whose full name contains unusual characters.
2268 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2269 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2270 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2273 ac_config_headers
="$ac_config_headers config.h"
2278 # Make sure we can run config.sub.
2279 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2280 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2283 $as_echo_n "checking build system type... " >&6; }
2284 if ${ac_cv_build+:} false
; then :
2285 $as_echo_n "(cached) " >&6
2287 ac_build_alias
=$build_alias
2288 test "x$ac_build_alias" = x
&&
2289 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2290 test "x$ac_build_alias" = x
&&
2291 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2292 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2293 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2297 $as_echo "$ac_cv_build" >&6; }
2298 case $ac_cv_build in
2300 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2303 ac_save_IFS
=$IFS; IFS
='-'
2309 # Remember, the first character of IFS is used to create $*,
2310 # except with old shells:
2313 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2317 $as_echo_n "checking host system type... " >&6; }
2318 if ${ac_cv_host+:} false
; then :
2319 $as_echo_n "(cached) " >&6
2321 if test "x$host_alias" = x
; then
2322 ac_cv_host
=$ac_cv_build
2324 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2325 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2330 $as_echo "$ac_cv_host" >&6; }
2333 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2336 ac_save_IFS
=$IFS; IFS
='-'
2342 # Remember, the first character of IFS is used to create $*,
2343 # except with old shells:
2346 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2355 # Check whether --with-curses was given.
2356 if test "${with_curses+set}" = set; then :
2357 withval
=$with_curses; opt_curses
=$withval
2361 # Check whether --with-purify was given.
2362 if test "${with_purify+set}" = set; then :
2363 withval
=$with_purify; opt_purify
=$withval
2367 if test "$opt_curses" = "yes"; then
2371 if test "$opt_purify" = yes; then
2381 # Check whether --enable-multibyte was given.
2382 if test "${enable_multibyte+set}" = set; then :
2383 enableval
=$enable_multibyte; opt_multibyte
=$enableval
2386 # Check whether --enable-shared was given.
2387 if test "${enable_shared+set}" = set; then :
2388 enableval
=$enable_shared; opt_shared_libs
=$enableval
2391 # Check whether --enable-static was given.
2392 if test "${enable_static+set}" = set; then :
2393 enableval
=$enable_static; opt_static_libs
=$enableval
2397 if test $opt_multibyte = no
; then
2398 $as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h
2405 if test "x$cross_compiling" = "xyes"; then
2408 cross_cache
=${srcdir}/cross-build
/cygwin.cache
2411 cross_cache
=${srcdir}/cross-build
/mingw.cache
2414 cross_cache
=${srcdir}/cross-build
/x86-beos.cache
2416 *) echo "configure: cross-compiling for $host is not supported" >&2
2419 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
2420 echo "loading cross-build cache file ${cross_cache}"
2424 CROSS_COMPILE
='-DCROSS_COMPILING'
2429 echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}"
2432 # We want these before the checks, so the checks can modify their values.
2433 test -z "$CFLAGS" && CFLAGS
=-g auto_cflags
=1
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2436 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2438 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2439 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2440 $as_echo_n "(cached) " >&6
2442 cat >conftest.
make <<\_ACEOF
2445 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2447 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2448 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2450 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2452 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2456 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2458 $as_echo "yes" >&6; }
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2462 $as_echo "no" >&6; }
2463 SET_MAKE
="MAKE=${MAKE-make}"
2467 ac_cpp
='$CPP $CPPFLAGS'
2468 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2471 if test -n "$ac_tool_prefix"; then
2472 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2473 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2475 $as_echo_n "checking for $ac_word... " >&6; }
2476 if ${ac_cv_prog_CC+:} false
; then :
2477 $as_echo_n "(cached) " >&6
2479 if test -n "$CC"; then
2480 ac_cv_prog_CC
="$CC" # Let the user override the test.
2482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2486 test -z "$as_dir" && as_dir
=.
2487 for ac_exec_ext
in '' $ac_executable_extensions; do
2488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2489 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 if test -n "$CC"; then
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2502 $as_echo "$CC" >&6; }
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2505 $as_echo "no" >&6; }
2510 if test -z "$ac_cv_prog_CC"; then
2512 # Extract the first word of "gcc", so it can be a program name with args.
2513 set dummy gcc
; ac_word
=$2
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2515 $as_echo_n "checking for $ac_word... " >&6; }
2516 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2517 $as_echo_n "(cached) " >&6
2519 if test -n "$ac_ct_CC"; then
2520 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir
=.
2527 for ac_exec_ext
in '' $ac_executable_extensions; do
2528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529 ac_cv_prog_ac_ct_CC
="gcc"
2530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2540 if test -n "$ac_ct_CC"; then
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2542 $as_echo "$ac_ct_CC" >&6; }
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2545 $as_echo "no" >&6; }
2548 if test "x$ac_ct_CC" = x
; then
2551 case $cross_compiling:$ac_tool_warned in
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2555 ac_tool_warned
=yes ;;
2563 if test -z "$CC"; then
2564 if test -n "$ac_tool_prefix"; then
2565 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2566 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568 $as_echo_n "checking for $ac_word... " >&6; }
2569 if ${ac_cv_prog_CC+:} false
; then :
2570 $as_echo_n "(cached) " >&6
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC
="$CC" # Let the user override the test.
2575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2579 test -z "$as_dir" && as_dir
=.
2580 for ac_exec_ext
in '' $ac_executable_extensions; do
2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 if test -n "$CC"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2595 $as_echo "$CC" >&6; }
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598 $as_echo "no" >&6; }
2604 if test -z "$CC"; then
2605 # Extract the first word of "cc", so it can be a program name with args.
2606 set dummy cc
; ac_word
=$2
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608 $as_echo_n "checking for $ac_word... " >&6; }
2609 if ${ac_cv_prog_CC+:} false
; then :
2610 $as_echo_n "(cached) " >&6
2612 if test -n "$CC"; then
2613 ac_cv_prog_CC
="$CC" # Let the user override the test.
2616 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2620 test -z "$as_dir" && as_dir
=.
2621 for ac_exec_ext
in '' $ac_executable_extensions; do
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2624 ac_prog_rejected
=yes
2628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 if test $ac_prog_rejected = yes; then
2636 # We found a bogon in the path, so make sure we never use it.
2637 set dummy
$ac_cv_prog_CC
2639 if test $# != 0; then
2640 # We chose a different compiler from the bogus one.
2641 # However, it has the same basename, so the bogon will be chosen
2642 # first if we set CC to just the basename; use the full file name.
2644 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2650 if test -n "$CC"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2652 $as_echo "$CC" >&6; }
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655 $as_echo "no" >&6; }
2660 if test -z "$CC"; then
2661 if test -n "$ac_tool_prefix"; then
2662 for ac_prog
in cl.exe
2664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2665 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667 $as_echo_n "checking for $ac_word... " >&6; }
2668 if ${ac_cv_prog_CC+:} false
; then :
2669 $as_echo_n "(cached) " >&6
2671 if test -n "$CC"; then
2672 ac_cv_prog_CC
="$CC" # Let the user override the test.
2674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2678 test -z "$as_dir" && as_dir
=.
2679 for ac_exec_ext
in '' $ac_executable_extensions; do
2680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2681 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 if test -n "$CC"; then
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2694 $as_echo "$CC" >&6; }
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697 $as_echo "no" >&6; }
2701 test -n "$CC" && break
2704 if test -z "$CC"; then
2706 for ac_prog
in cl.exe
2708 # Extract the first word of "$ac_prog", so it can be a program name with args.
2709 set dummy
$ac_prog; ac_word
=$2
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2711 $as_echo_n "checking for $ac_word... " >&6; }
2712 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2713 $as_echo_n "(cached) " >&6
2715 if test -n "$ac_ct_CC"; then
2716 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2722 test -z "$as_dir" && as_dir
=.
2723 for ac_exec_ext
in '' $ac_executable_extensions; do
2724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2725 ac_cv_prog_ac_ct_CC
="$ac_prog"
2726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2736 if test -n "$ac_ct_CC"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2738 $as_echo "$ac_ct_CC" >&6; }
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2745 test -n "$ac_ct_CC" && break
2748 if test "x$ac_ct_CC" = x
; then
2751 case $cross_compiling:$ac_tool_warned in
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2755 ac_tool_warned
=yes ;;
2764 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2766 as_fn_error $?
"no acceptable C compiler found in \$PATH
2767 See \`config.log' for more details" "$LINENO" 5; }
2769 # Provide some information about the compiler.
2770 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2773 for ac_option
in --version -v -V -qversion; do
2774 { { ac_try
="$ac_compiler $ac_option >&5"
2776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2780 $as_echo "$ac_try_echo"; } >&5
2781 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2783 if test -s conftest.err; then
2785 ... rest of stderr output deleted ...
2786 10q' conftest.err >conftest.er1
2787 cat conftest.er1 >&5
2789 rm -f conftest.er1 conftest.err
2790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2791 test $ac_status = 0; }
2794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2795 /* end confdefs.h. */
2805 ac_clean_files_save=$ac_clean_files
2806 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2807 # Try to create an executable without -o first, disregard a.out.
2808 # It will help us diagnose broken compilers, and finding out an intuition
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2811 $as_echo_n "checking whether the C compiler works... " >&6; }
2812 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2814 # The possible output files:
2815 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2818 for ac_file in $ac_files
2821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2822 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2827 if { { ac_try="$ac_link_default"
2829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2830 *) ac_try_echo
=$ac_try;;
2832 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2833 $as_echo "$ac_try_echo"; } >&5
2834 (eval "$ac_link_default") 2>&5
2836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2837 test $ac_status = 0; }; then :
2838 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2839 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2840 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2841 # so that the user can short-circuit this test for compilers unknown to
2843 for ac_file
in $ac_files ''
2845 test -f "$ac_file" ||
continue
2847 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2850 # We found the default executable, but exeext='' is most
2854 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2856 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2858 # We set ac_cv_exeext here because the later test for it is not
2859 # safe: cross compilers may not add the suffix if given an `-o'
2860 # argument, so we may need to know it at that point already.
2861 # Even if this section looks crufty: it has the advantage of
2868 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2873 if test -z "$ac_file"; then :
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2876 $as_echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.
$ac_ext >&5
2879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2881 as_fn_error
77 "C compiler cannot create executables
2882 See \`config.log' for more details" "$LINENO" 5; }
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2885 $as_echo "yes" >&6; }
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2888 $as_echo_n "checking for C compiler default output file name... " >&6; }
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2890 $as_echo "$ac_file" >&6; }
2891 ac_exeext
=$ac_cv_exeext
2893 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
2894 ac_clean_files
=$ac_clean_files_save
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2896 $as_echo_n "checking for suffix of executables... " >&6; }
2897 if { { ac_try
="$ac_link"
2899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2903 $as_echo "$ac_try_echo"; } >&5
2904 (eval "$ac_link") 2>&5
2906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2907 test $ac_status = 0; }; then :
2908 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
2909 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
2910 # work properly (i.e., refer to `conftest.exe'), while it won't with
2912 for ac_file
in conftest.exe conftest conftest.
*; do
2913 test -f "$ac_file" ||
continue
2915 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2916 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2924 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2925 See \`config.log' for more details" "$LINENO" 5; }
2927 rm -f conftest conftest
$ac_cv_exeext
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2929 $as_echo "$ac_cv_exeext" >&6; }
2931 rm -f conftest.
$ac_ext
2932 EXEEXT
=$ac_cv_exeext
2934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2935 /* end confdefs.h. */
2940 FILE *f = fopen ("conftest.out", "w");
2941 return ferror (f) || fclose (f) != 0;
2947 ac_clean_files
="$ac_clean_files conftest.out"
2948 # Check that the compiler produces executables we can run. If not, either
2949 # the compiler is broken, or we cross compile.
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2951 $as_echo_n "checking whether we are cross compiling... " >&6; }
2952 if test "$cross_compiling" != yes; then
2953 { { ac_try
="$ac_link"
2955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959 $as_echo "$ac_try_echo"; } >&5
2960 (eval "$ac_link") 2>&5
2962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963 test $ac_status = 0; }
2964 if { ac_try='./conftest$ac_cv_exeext'
2965 { { case "(($ac_try" in
2966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2967 *) ac_try_echo
=$ac_try;;
2969 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2970 $as_echo "$ac_try_echo"; } >&5
2971 (eval "$ac_try") 2>&5
2973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2974 test $ac_status = 0; }; }; then
2977 if test "$cross_compiling" = maybe
; then
2980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2982 as_fn_error $?
"cannot run C compiled programs.
2983 If you meant to cross compile, use \`--host'.
2984 See \`config.log' for more details" "$LINENO" 5; }
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2989 $as_echo "$cross_compiling" >&6; }
2991 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2992 ac_clean_files
=$ac_clean_files_save
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2994 $as_echo_n "checking for suffix of object files... " >&6; }
2995 if ${ac_cv_objext+:} false
; then :
2996 $as_echo_n "(cached) " >&6
2998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2999 /* end confdefs.h. */
3009 rm -f conftest.o conftest.obj
3010 if { { ac_try
="$ac_compile"
3012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3016 $as_echo "$ac_try_echo"; } >&5
3017 (eval "$ac_compile") 2>&5
3019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3020 test $ac_status = 0; }; then :
3021 for ac_file in conftest.o conftest.obj conftest.*; do
3022 test -f "$ac_file" || continue;
3024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3025 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3030 $as_echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3035 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3036 See \
`config.log' for more details" "$LINENO" 5; }
3038 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3041 $as_echo "$ac_cv_objext" >&6; }
3042 OBJEXT=$ac_cv_objext
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3045 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3046 if ${ac_cv_c_compiler_gnu+:} false; then :
3047 $as_echo_n "(cached) " >&6
3049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3050 /* end confdefs.h. */
3063 if ac_fn_c_try_compile "$LINENO"; then :
3068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3069 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3073 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3074 if test $ac_compiler_gnu = yes; then
3079 ac_test_CFLAGS=${CFLAGS+set}
3080 ac_save_CFLAGS=$CFLAGS
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3082 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3083 if ${ac_cv_prog_cc_g+:} false; then :
3084 $as_echo_n "(cached) " >&6
3086 ac_save_c_werror_flag=$ac_c_werror_flag
3087 ac_c_werror_flag=yes
3090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3091 /* end confdefs.h. */
3101 if ac_fn_c_try_compile "$LINENO"; then :
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3116 if ac_fn_c_try_compile "$LINENO"; then :
3119 ac_c_werror_flag=$ac_save_c_werror_flag
3121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122 /* end confdefs.h. */
3132 if ac_fn_c_try_compile "$LINENO"; then :
3135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3140 ac_c_werror_flag=$ac_save_c_werror_flag
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3143 $as_echo "$ac_cv_prog_cc_g" >&6; }
3144 if test "$ac_test_CFLAGS" = set; then
3145 CFLAGS=$ac_save_CFLAGS
3146 elif test $ac_cv_prog_cc_g = yes; then
3147 if test "$GCC" = yes; then
3153 if test "$GCC" = yes; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3160 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3161 if ${ac_cv_prog_cc_c89+:} false; then :
3162 $as_echo_n "(cached) " >&6
3164 ac_cv_prog_cc_c89=no
3166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3167 /* end confdefs.h. */
3170 #include <sys/types.h>
3171 #include <sys/stat.h>
3172 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3173 struct buf { int x; };
3174 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3175 static char *e (p, i)
3181 static char *f (char * (*g) (char **, int), char **p, ...)
3186 s = g (p, va_arg (v,int));
3191 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3192 function prototypes and stuff, but not '\xHH' hex character constants.
3193 These don't provoke an error unfortunately, instead are silently treated
3194 as 'x'. The following induces an error, until -std is added to get
3195 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3196 array size at least. It's necessary to write '\x00'==0 to get something
3197 that's true only with -std. */
3198 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3200 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3201 inside strings and character constants. */
3203 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3205 int test (int i, double x);
3206 struct s1 {int (*f) (int a);};
3207 struct s2 {int (*f) (double a);};
3208 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3214 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3219 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3220 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3222 CC="$ac_save_CC $ac_arg"
3223 if ac_fn_c_try_compile "$LINENO"; then :
3224 ac_cv_prog_cc_c89=$ac_arg
3226 rm -f core conftest.err conftest.$ac_objext
3227 test "x$ac_cv_prog_cc_c89" != "xno" && break
3229 rm -f conftest.$ac_ext
3234 case "x$ac_cv_prog_cc_c89" in
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3237 $as_echo "none needed" >&6; } ;;
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3240 $as_echo "unsupported" >&6; } ;;
3242 CC="$CC $ac_cv_prog_cc_c89"
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3244 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3246 if test "x$ac_cv_prog_cc_c89" != xno; then :
3251 ac_cpp='$CPP $CPPFLAGS'
3252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3258 ac_cpp='$CPP $CPPFLAGS'
3259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3263 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3264 # On Suns, sometimes $CPP names a directory.
3265 if test -n "$CPP" && test -d "$CPP"; then
3268 if test -z "$CPP"; then
3269 if ${ac_cv_prog_CPP+:} false; then :
3270 $as_echo_n "(cached) " >&6
3272 # Double quotes because CPP needs to be expanded
3273 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3276 for ac_c_preproc_warn_flag in '' yes
3278 # Use a header file that comes with gcc, so configuring glibc
3279 # with a fresh cross-compiler works.
3280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3281 # <limits.h> exists even on freestanding compilers.
3282 # On the NeXT, cc -E runs the code through the compiler's parser,
3283 # not just through cpp. "Syntax error" is here to catch this case.
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3287 # include <limits.h>
3289 # include <assert.h>
3293 if ac_fn_c_try_cpp "$LINENO"; then :
3296 # Broken: fails on valid input.
3299 rm -f conftest.err conftest.i conftest.$ac_ext
3301 # OK, works on sane cases. Now check whether nonexistent headers
3302 # can be detected and how.
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3305 #include <ac_nonexistent.h>
3307 if ac_fn_c_try_cpp "$LINENO"; then :
3308 # Broken: success on invalid input.
3311 # Passes both tests.
3315 rm -f conftest.err conftest.i conftest.$ac_ext
3318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3319 rm -f conftest.i conftest.err conftest.
$ac_ext
3320 if $ac_preproc_ok; then :
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3333 $as_echo "$CPP" >&6; }
3335 for ac_c_preproc_warn_flag
in '' yes
3337 # Use a header file that comes with gcc, so configuring glibc
3338 # with a fresh cross-compiler works.
3339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3340 # <limits.h> exists even on freestanding compilers.
3341 # On the NeXT, cc -E runs the code through the compiler's parser,
3342 # not just through cpp. "Syntax error" is here to catch this case.
3343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3346 # include <limits.h>
3348 # include <assert.h>
3352 if ac_fn_c_try_cpp
"$LINENO"; then :
3355 # Broken: fails on valid input.
3358 rm -f conftest.err conftest.i conftest.
$ac_ext
3360 # OK, works on sane cases. Now check whether nonexistent headers
3361 # can be detected and how.
3362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3364 #include <ac_nonexistent.h>
3366 if ac_fn_c_try_cpp
"$LINENO"; then :
3367 # Broken: success on invalid input.
3370 # Passes both tests.
3374 rm -f conftest.err conftest.i conftest.
$ac_ext
3377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3378 rm -f conftest.i conftest.err conftest.
$ac_ext
3379 if $ac_preproc_ok; then :
3382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3385 See \`config.log' for more details" "$LINENO" 5; }
3389 ac_cpp
='$CPP $CPPFLAGS'
3390 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3396 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3397 if ${ac_cv_path_GREP+:} false
; then :
3398 $as_echo_n "(cached) " >&6
3400 if test -z "$GREP"; then
3401 ac_path_GREP_found
=false
3402 # Loop through the user's path and test for each of PROGNAME-LIST
3403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3404 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3407 test -z "$as_dir" && as_dir
=.
3408 for ac_prog
in grep ggrep
; do
3409 for ac_exec_ext
in '' $ac_executable_extensions; do
3410 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3411 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3412 # Check for GNU ac_path_GREP and select it if it is found.
3413 # Check for GNU $ac_path_GREP
3414 case `"$ac_path_GREP" --version 2>&1` in
3416 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3419 $as_echo_n 0123456789 >"conftest.in"
3422 cat "conftest.in" "conftest.in" >"conftest.tmp"
3423 mv "conftest.tmp" "conftest.in"
3424 cp "conftest.in" "conftest.nl"
3425 $as_echo 'GREP' >> "conftest.nl"
3426 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3427 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3428 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3429 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3430 # Best one so far, save it but keep looking for a better one
3431 ac_cv_path_GREP
="$ac_path_GREP"
3432 ac_path_GREP_max
=$ac_count
3434 # 10*(2^10) chars as input seems more than enough
3435 test $ac_count -gt 10 && break
3437 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3440 $ac_path_GREP_found && break 3
3445 if test -z "$ac_cv_path_GREP"; then
3446 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3449 ac_cv_path_GREP
=$GREP
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3454 $as_echo "$ac_cv_path_GREP" >&6; }
3455 GREP
="$ac_cv_path_GREP"
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3459 $as_echo_n "checking for egrep... " >&6; }
3460 if ${ac_cv_path_EGREP+:} false
; then :
3461 $as_echo_n "(cached) " >&6
3463 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3464 then ac_cv_path_EGREP
="$GREP -E"
3466 if test -z "$EGREP"; then
3467 ac_path_EGREP_found
=false
3468 # Loop through the user's path and test for each of PROGNAME-LIST
3469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3470 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3473 test -z "$as_dir" && as_dir
=.
3474 for ac_prog
in egrep; do
3475 for ac_exec_ext
in '' $ac_executable_extensions; do
3476 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3477 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3478 # Check for GNU ac_path_EGREP and select it if it is found.
3479 # Check for GNU $ac_path_EGREP
3480 case `"$ac_path_EGREP" --version 2>&1` in
3482 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3485 $as_echo_n 0123456789 >"conftest.in"
3488 cat "conftest.in" "conftest.in" >"conftest.tmp"
3489 mv "conftest.tmp" "conftest.in"
3490 cp "conftest.in" "conftest.nl"
3491 $as_echo 'EGREP' >> "conftest.nl"
3492 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3493 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3494 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3495 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3496 # Best one so far, save it but keep looking for a better one
3497 ac_cv_path_EGREP
="$ac_path_EGREP"
3498 ac_path_EGREP_max
=$ac_count
3500 # 10*(2^10) chars as input seems more than enough
3501 test $ac_count -gt 10 && break
3503 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3506 $ac_path_EGREP_found && break 3
3511 if test -z "$ac_cv_path_EGREP"; then
3512 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3515 ac_cv_path_EGREP
=$EGREP
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3521 $as_echo "$ac_cv_path_EGREP" >&6; }
3522 EGREP
="$ac_cv_path_EGREP"
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3526 $as_echo_n "checking for ANSI C header files... " >&6; }
3527 if ${ac_cv_header_stdc+:} false
; then :
3528 $as_echo_n "(cached) " >&6
3530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3545 if ac_fn_c_try_compile
"$LINENO"; then :
3546 ac_cv_header_stdc
=yes
3548 ac_cv_header_stdc
=no
3550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3552 if test $ac_cv_header_stdc = yes; then
3553 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h. */
3559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3560 $EGREP "memchr" >/dev
/null
2>&1; then :
3563 ac_cv_header_stdc
=no
3569 if test $ac_cv_header_stdc = yes; then
3570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3577 $EGREP "free" >/dev
/null
2>&1; then :
3580 ac_cv_header_stdc
=no
3586 if test $ac_cv_header_stdc = yes; then
3587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3588 if test "$cross_compiling" = yes; then :
3591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3595 #if ((' ' & 0x0FF) == 0x020)
3596 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3597 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3599 # define ISLOWER(c) \
3600 (('a' <= (c) && (c) <= 'i') \
3601 || ('j' <= (c) && (c) <= 'r') \
3602 || ('s' <= (c) && (c) <= 'z'))
3603 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3606 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3611 for (i = 0; i < 256; i++)
3612 if (XOR (islower (i), ISLOWER (i))
3613 || toupper (i) != TOUPPER (i))
3618 if ac_fn_c_try_run
"$LINENO"; then :
3621 ac_cv_header_stdc
=no
3623 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3624 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3630 $as_echo "$ac_cv_header_stdc" >&6; }
3631 if test $ac_cv_header_stdc = yes; then
3633 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3637 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3638 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3639 inttypes.h stdint.h unistd.h
3641 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3642 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3644 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3645 cat >>confdefs.h
<<_ACEOF
3646 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3655 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3656 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3663 if test "$MINIX" = yes; then
3665 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3668 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3671 $as_echo "#define _MINIX 1" >>confdefs.h
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3677 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3678 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3679 $as_echo_n "(cached) " >&6
3681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3684 # define __EXTENSIONS__ 1
3685 $ac_includes_default
3694 if ac_fn_c_try_compile
"$LINENO"; then :
3695 ac_cv_safe_to_define___extensions__
=yes
3697 ac_cv_safe_to_define___extensions__
=no
3699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3702 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3703 test $ac_cv_safe_to_define___extensions__ = yes &&
3704 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3706 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3708 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3710 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3712 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3717 # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
3718 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS
="$CFLAGS -O"
3720 if test $ac_cv_c_compiler_gnu = yes; then
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3722 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3723 if ${ac_cv_prog_gcc_traditional+:} false
; then :
3724 $as_echo_n "(cached) " >&6
3726 ac_pattern
="Autoconf.*'x'"
3727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3733 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
3734 ac_cv_prog_gcc_traditional
=yes
3736 ac_cv_prog_gcc_traditional
=no
3741 if test $ac_cv_prog_gcc_traditional = no
; then
3742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3748 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
3749 ac_cv_prog_gcc_traditional
=yes
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3756 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3757 if test $ac_cv_prog_gcc_traditional = yes; then
3758 CC
="$CC -traditional"
3762 # Find a good install program. We prefer a C program (faster),
3763 # so one script is as good as another. But avoid the broken or
3764 # incompatible versions:
3765 # SysV /etc/install, /usr/sbin/install
3766 # SunOS /usr/etc/install
3767 # IRIX /sbin/install
3769 # AmigaOS /C/install, which installs bootblocks on floppy discs
3770 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3771 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3772 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3773 # OS/2's system install, which has a completely different semantic
3774 # ./install, which can be erroneously created by make from ./install.sh.
3775 # Reject install programs that cannot install multiple files.
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3777 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3778 if test -z "$INSTALL"; then
3779 if ${ac_cv_path_install+:} false
; then :
3780 $as_echo_n "(cached) " >&6
3782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3786 test -z "$as_dir" && as_dir
=.
3787 # Account for people who put trailing slashes in PATH elements.
3788 case $as_dir/ in #((
3789 .
/ | .
// |
/[cC
]/* | \
3790 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3791 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3794 # OSF1 and SCO ODT 3.0 have their own names for install.
3795 # Don't use installbsd from OSF since it installs stuff as root
3797 for ac_prog
in ginstall scoinst
install; do
3798 for ac_exec_ext
in '' $ac_executable_extensions; do
3799 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3800 if test $ac_prog = install &&
3801 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3802 # AIX install. It has an incompatible calling convention.
3804 elif test $ac_prog = install &&
3805 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3806 # program-specific install script used by HP pwplus--don't use.
3809 rm -rf conftest.one conftest.two conftest.dir
3810 echo one
> conftest.one
3811 echo two
> conftest.two
3813 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3814 test -s conftest.one
&& test -s conftest.two
&&
3815 test -s conftest.dir
/conftest.one
&&
3816 test -s conftest.dir
/conftest.two
3818 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3831 rm -rf conftest.one conftest.two conftest.dir
3834 if test "${ac_cv_path_install+set}" = set; then
3835 INSTALL
=$ac_cv_path_install
3837 # As a last resort, use the slow shell script. Don't cache a
3838 # value for INSTALL within a source directory, because that will
3839 # break other packages using the cache if that directory is
3840 # removed, or if the value is a relative name.
3841 INSTALL
=$ac_install_sh
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3845 $as_echo "$INSTALL" >&6; }
3847 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3848 # It thinks the first close brace ends the variable substitution.
3849 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3851 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3853 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3855 if test -n "$ac_tool_prefix"; then
3856 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3857 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3859 $as_echo_n "checking for $ac_word... " >&6; }
3860 if ${ac_cv_prog_AR+:} false
; then :
3861 $as_echo_n "(cached) " >&6
3863 if test -n "$AR"; then
3864 ac_cv_prog_AR
="$AR" # Let the user override the test.
3866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3870 test -z "$as_dir" && as_dir
=.
3871 for ac_exec_ext
in '' $ac_executable_extensions; do
3872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3873 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 if test -n "$AR"; then
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3886 $as_echo "$AR" >&6; }
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889 $as_echo "no" >&6; }
3894 if test -z "$ac_cv_prog_AR"; then
3896 # Extract the first word of "ar", so it can be a program name with args.
3897 set dummy
ar; ac_word
=$2
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3899 $as_echo_n "checking for $ac_word... " >&6; }
3900 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
3901 $as_echo_n "(cached) " >&6
3903 if test -n "$ac_ct_AR"; then
3904 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
3906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3910 test -z "$as_dir" && as_dir
=.
3911 for ac_exec_ext
in '' $ac_executable_extensions; do
3912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3913 ac_cv_prog_ac_ct_AR
="ar"
3914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
3924 if test -n "$ac_ct_AR"; then
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3926 $as_echo "$ac_ct_AR" >&6; }
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3929 $as_echo "no" >&6; }
3932 if test "x$ac_ct_AR" = x
; then
3935 case $cross_compiling:$ac_tool_warned in
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3939 ac_tool_warned
=yes ;;
3947 test -n "$ARFLAGS" || ARFLAGS
="cr"
3948 if test -n "$ac_tool_prefix"; then
3949 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3950 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952 $as_echo_n "checking for $ac_word... " >&6; }
3953 if ${ac_cv_prog_RANLIB+:} false
; then :
3954 $as_echo_n "(cached) " >&6
3956 if test -n "$RANLIB"; then
3957 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3963 test -z "$as_dir" && as_dir
=.
3964 for ac_exec_ext
in '' $ac_executable_extensions; do
3965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3966 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 RANLIB
=$ac_cv_prog_RANLIB
3977 if test -n "$RANLIB"; then
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3979 $as_echo "$RANLIB" >&6; }
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982 $as_echo "no" >&6; }
3987 if test -z "$ac_cv_prog_RANLIB"; then
3988 ac_ct_RANLIB
=$RANLIB
3989 # Extract the first word of "ranlib", so it can be a program name with args.
3990 set dummy ranlib
; ac_word
=$2
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3992 $as_echo_n "checking for $ac_word... " >&6; }
3993 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
3994 $as_echo_n "(cached) " >&6
3996 if test -n "$ac_ct_RANLIB"; then
3997 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4003 test -z "$as_dir" && as_dir
=.
4004 for ac_exec_ext
in '' $ac_executable_extensions; do
4005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4017 if test -n "$ac_ct_RANLIB"; then
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4019 $as_echo "$ac_ct_RANLIB" >&6; }
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 $as_echo "no" >&6; }
4025 if test "x$ac_ct_RANLIB" = x
; then
4028 case $cross_compiling:$ac_tool_warned in
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4032 ac_tool_warned
=yes ;;
4034 RANLIB
=$ac_ct_RANLIB
4037 RANLIB
="$ac_cv_prog_RANLIB"
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4045 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4046 if ${ac_cv_c_const+:} false
; then :
4047 $as_echo_n "(cached) " >&6
4049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4055 /* FIXME: Include the comments suggested by Paul. */
4057 /* Ultrix mips cc rejects this. */
4058 typedef int charset[2];
4060 /* SunOS 4.1.1 cc rejects this. */
4061 char const *const *pcpcc;
4063 /* NEC SVR4.0.2 mips cc rejects this. */
4064 struct point {int x, y;};
4065 static struct point const zero = {0,0};
4066 /* AIX XL C 1.02.0.0 rejects this.
4067 It does not let you subtract one const X* pointer from another in
4068 an arm of an if-expression whose if-part is not a constant
4070 const char *g = "string";
4071 pcpcc = &g + (g ? g-g : 0);
4072 /* HPUX 7.0 cc rejects these. */
4074 ppc = (char**) pcpcc;
4075 pcpcc = (char const *const *) ppc;
4076 { /* SCO 3.2v4 cc rejects this. */
4078 char const *s = 0 ? (char *) 0 : (char const *) 0;
4083 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4085 const int *foo = &x[0];
4088 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4089 typedef const int *iptr;
4093 { /* AIX XL C 1.02.0.0 rejects this saying
4094 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4095 struct s { int j; const int *ap[3]; };
4096 struct s *b; b->j = 5;
4098 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4102 return !cs[0] && !zero.x;
4109 if ac_fn_c_try_compile
"$LINENO"; then :
4114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4117 $as_echo "$ac_cv_c_const" >&6; }
4118 if test $ac_cv_c_const = no
; then
4120 $as_echo "#define const /**/" >>confdefs.h
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
4125 $as_echo_n "checking for function prototypes... " >&6; }
4126 if test "$ac_cv_prog_cc_c89" != no
; then
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4128 $as_echo "yes" >&6; }
4130 $as_echo "#define PROTOTYPES 1" >>confdefs.h
4133 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137 $as_echo "no" >&6; }
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
4141 $as_echo_n "checking whether char is unsigned... " >&6; }
4142 if ${ac_cv_c_char_unsigned+:} false
; then :
4143 $as_echo_n "(cached) " >&6
4145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4147 $ac_includes_default
4151 static int test_array [1 - 2 * !(((char) -1) < 0)];
4158 if ac_fn_c_try_compile
"$LINENO"; then :
4159 ac_cv_c_char_unsigned
=no
4161 ac_cv_c_char_unsigned
=yes
4163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
4166 $as_echo "$ac_cv_c_char_unsigned" >&6; }
4167 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4168 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
4173 $as_echo_n "checking for working volatile... " >&6; }
4174 if ${ac_cv_c_volatile+:} false
; then :
4175 $as_echo_n "(cached) " >&6
4177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4185 int * volatile y = (int *) 0;
4191 if ac_fn_c_try_compile
"$LINENO"; then :
4192 ac_cv_c_volatile
=yes
4196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
4199 $as_echo "$ac_cv_c_volatile" >&6; }
4200 if test $ac_cv_c_volatile = no
; then
4202 $as_echo "#define volatile /**/" >>confdefs.h
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4208 $as_echo_n "checking return type of signal handlers... " >&6; }
4209 if ${ac_cv_type_signal+:} false
; then :
4210 $as_echo_n "(cached) " >&6
4212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214 #include <sys/types.h>
4220 return *(signal (0, 0)) (0) == 1;
4225 if ac_fn_c_try_compile
"$LINENO"; then :
4226 ac_cv_type_signal
=int
4228 ac_cv_type_signal
=void
4230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4233 $as_echo "$ac_cv_type_signal" >&6; }
4235 cat >>confdefs.h
<<_ACEOF
4236 #define RETSIGTYPE $ac_cv_type_signal
4241 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4242 if test "x$ac_cv_type_size_t" = xyes
; then :
4246 cat >>confdefs.h
<<_ACEOF
4247 #define size_t unsigned int
4252 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4253 if test "x$ac_cv_type_ssize_t" = xyes
; then :
4257 cat >>confdefs.h
<<_ACEOF
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4265 $as_echo_n "checking for ANSI C header files... " >&6; }
4266 if ${ac_cv_header_stdc+:} false
; then :
4267 $as_echo_n "(cached) " >&6
4269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4284 if ac_fn_c_try_compile
"$LINENO"; then :
4285 ac_cv_header_stdc
=yes
4287 ac_cv_header_stdc
=no
4289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4291 if test $ac_cv_header_stdc = yes; then
4292 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4299 $EGREP "memchr" >/dev
/null
2>&1; then :
4302 ac_cv_header_stdc
=no
4308 if test $ac_cv_header_stdc = yes; then
4309 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4316 $EGREP "free" >/dev
/null
2>&1; then :
4319 ac_cv_header_stdc
=no
4325 if test $ac_cv_header_stdc = yes; then
4326 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4327 if test "$cross_compiling" = yes; then :
4330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4334 #if ((' ' & 0x0FF) == 0x020)
4335 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4336 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4338 # define ISLOWER(c) \
4339 (('a' <= (c) && (c) <= 'i') \
4340 || ('j' <= (c) && (c) <= 'r') \
4341 || ('s' <= (c) && (c) <= 'z'))
4342 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4345 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4350 for (i = 0; i < 256; i++)
4351 if (XOR (islower (i), ISLOWER (i))
4352 || toupper (i) != TOUPPER (i))
4357 if ac_fn_c_try_run
"$LINENO"; then :
4360 ac_cv_header_stdc
=no
4362 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4363 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4369 $as_echo "$ac_cv_header_stdc" >&6; }
4370 if test $ac_cv_header_stdc = yes; then
4372 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
4378 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
4379 if ${ac_cv_header_stat_broken+:} false
; then :
4380 $as_echo_n "(cached) " >&6
4382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4384 #include <sys/types.h>
4385 #include <sys/stat.h>
4387 #if defined S_ISBLK && defined S_IFDIR
4388 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
4391 #if defined S_ISBLK && defined S_IFCHR
4392 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
4395 #if defined S_ISLNK && defined S_IFREG
4396 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
4399 #if defined S_ISSOCK && defined S_IFREG
4400 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
4404 if ac_fn_c_try_compile
"$LINENO"; then :
4405 ac_cv_header_stat_broken
=no
4407 ac_cv_header_stat_broken
=yes
4409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
4412 $as_echo "$ac_cv_header_stat_broken" >&6; }
4413 if test $ac_cv_header_stat_broken = yes; then
4415 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
4420 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4421 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4423 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4424 if eval \
${$as_ac_Header+:} 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>
4441 if ac_fn_c_try_compile
"$LINENO"; then :
4442 eval "$as_ac_Header=yes"
4444 eval "$as_ac_Header=no"
4446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4448 eval ac_res
=\$
$as_ac_Header
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4450 $as_echo "$ac_res" >&6; }
4451 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4452 cat >>confdefs.h
<<_ACEOF
4453 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4456 ac_header_dirent
=$ac_hdr; break
4460 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4461 if test $ac_header_dirent = dirent.h
; then
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4463 $as_echo_n "checking for library containing opendir... " >&6; }
4464 if ${ac_cv_search_opendir+:} false
; then :
4465 $as_echo_n "(cached) " >&6
4467 ac_func_search_save_LIBS
=$LIBS
4468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4471 /* Override any GCC internal prototype to avoid an error.
4472 Use char because int might match the return type of a GCC
4473 builtin and then its argument prototype would still apply. */
4486 for ac_lib
in '' dir
; do
4487 if test -z "$ac_lib"; then
4488 ac_res
="none required"
4491 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4493 if ac_fn_c_try_link
"$LINENO"; then :
4494 ac_cv_search_opendir
=$ac_res
4496 rm -f core conftest.err conftest.
$ac_objext \
4498 if ${ac_cv_search_opendir+:} false
; then :
4502 if ${ac_cv_search_opendir+:} false
; then :
4505 ac_cv_search_opendir
=no
4508 LIBS
=$ac_func_search_save_LIBS
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4511 $as_echo "$ac_cv_search_opendir" >&6; }
4512 ac_res
=$ac_cv_search_opendir
4513 if test "$ac_res" != no
; then :
4514 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4520 $as_echo_n "checking for library containing opendir... " >&6; }
4521 if ${ac_cv_search_opendir+:} false
; then :
4522 $as_echo_n "(cached) " >&6
4524 ac_func_search_save_LIBS
=$LIBS
4525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4528 /* Override any GCC internal prototype to avoid an error.
4529 Use char because int might match the return type of a GCC
4530 builtin and then its argument prototype would still apply. */
4543 for ac_lib
in '' x
; do
4544 if test -z "$ac_lib"; then
4545 ac_res
="none required"
4548 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4550 if ac_fn_c_try_link
"$LINENO"; then :
4551 ac_cv_search_opendir
=$ac_res
4553 rm -f core conftest.err conftest.
$ac_objext \
4555 if ${ac_cv_search_opendir+:} false
; then :
4559 if ${ac_cv_search_opendir+:} false
; then :
4562 ac_cv_search_opendir
=no
4565 LIBS
=$ac_func_search_save_LIBS
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4568 $as_echo "$ac_cv_search_opendir" >&6; }
4569 ac_res
=$ac_cv_search_opendir
4570 if test "$ac_res" != no
; then :
4571 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4578 for ac_func
in fcntl
kill lstat
4580 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4581 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4582 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4583 cat >>confdefs.h
<<_ACEOF
4584 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4590 for ac_func
in memmove putenv
select setenv setlocale \
4591 strcasecmp strpbrk tcgetattr vsnprintf
4593 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4594 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4595 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4596 cat >>confdefs.h
<<_ACEOF
4597 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4603 for ac_func
in isascii isxdigit
4605 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4606 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4607 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4608 cat >>confdefs.h
<<_ACEOF
4609 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4615 for ac_func
in getpwent getpwnam getpwuid
4617 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4618 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4619 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4620 cat >>confdefs.h
<<_ACEOF
4621 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
4629 $as_echo_n "checking for working strcoll... " >&6; }
4630 if ${ac_cv_func_strcoll_works+:} false
; then :
4631 $as_echo_n "(cached) " >&6
4633 if test "$cross_compiling" = yes; then :
4634 ac_cv_func_strcoll_works
=no
4636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4638 $ac_includes_default
4642 return (strcoll ("abc", "def") >= 0 ||
4643 strcoll ("ABC", "DEF") >= 0 ||
4644 strcoll ("123", "456") >= 0)
4649 if ac_fn_c_try_run
"$LINENO"; then :
4650 ac_cv_func_strcoll_works
=yes
4652 ac_cv_func_strcoll_works
=no
4654 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4655 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
4660 $as_echo "$ac_cv_func_strcoll_works" >&6; }
4661 if test $ac_cv_func_strcoll_works = yes; then
4663 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
4668 for ac_header
in fcntl.h unistd.h stdlib.h varargs.h stdarg.h stdbool.h \
4669 string.h
strings.h \
4670 limits.h locale.h
pwd.h memory.h termcap.h termios.h termio.h
4672 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4673 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4674 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4675 cat >>confdefs.h
<<_ACEOF
4676 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4683 for ac_header
in sys
/pte.h sys
/stream.h sys
/select.h sys
/file.h
4685 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4686 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4687 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4688 cat >>confdefs.h
<<_ACEOF
4689 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4697 for ac_header
in sys
/ptem.h
4699 ac_fn_c_check_header_compile
"$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "
4700 #if HAVE_SYS_STREAM_H
4701 # include <sys/stream.h>
4705 if test "x$ac_cv_header_sys_ptem_h" = xyes
; then :
4706 cat >>confdefs.h
<<_ACEOF
4707 #define HAVE_SYS_PTEM_H 1
4715 # Check whether --enable-largefile was given.
4716 if test "${enable_largefile+set}" = set; then :
4717 enableval
=$enable_largefile;
4720 if test "$enable_largefile" != no
; then
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4723 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4724 if ${ac_cv_sys_largefile_CC+:} false
; then :
4725 $as_echo_n "(cached) " >&6
4727 ac_cv_sys_largefile_CC
=no
4728 if test "$GCC" != yes; then
4731 # IRIX 6.2 and later do not support large files by default,
4732 # so use the C compiler's -n32 option if that helps.
4733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4735 #include <sys/types.h>
4736 /* Check that off_t can represent 2**63 - 1 correctly.
4737 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4738 since some C++ compilers masquerading as C compilers
4739 incorrectly reject 9223372036854775807. */
4740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4741 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4742 && LARGE_OFF_T % 2147483647 == 1)
4752 if ac_fn_c_try_compile
"$LINENO"; then :
4755 rm -f core conftest.err conftest.
$ac_objext
4757 if ac_fn_c_try_compile
"$LINENO"; then :
4758 ac_cv_sys_largefile_CC
=' -n32'; break
4760 rm -f core conftest.err conftest.
$ac_objext
4764 rm -f conftest.
$ac_ext
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4768 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4769 if test "$ac_cv_sys_largefile_CC" != no
; then
4770 CC
=$CC$ac_cv_sys_largefile_CC
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4774 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4775 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4776 $as_echo_n "(cached) " >&6
4779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4781 #include <sys/types.h>
4782 /* Check that off_t can represent 2**63 - 1 correctly.
4783 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4784 since some C++ compilers masquerading as C compilers
4785 incorrectly reject 9223372036854775807. */
4786 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4787 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4788 && LARGE_OFF_T % 2147483647 == 1)
4798 if ac_fn_c_try_compile
"$LINENO"; then :
4799 ac_cv_sys_file_offset_bits
=no
; break
4801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4804 #define _FILE_OFFSET_BITS 64
4805 #include <sys/types.h>
4806 /* Check that off_t can represent 2**63 - 1 correctly.
4807 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4808 since some C++ compilers masquerading as C compilers
4809 incorrectly reject 9223372036854775807. */
4810 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4811 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4812 && LARGE_OFF_T % 2147483647 == 1)
4822 if ac_fn_c_try_compile
"$LINENO"; then :
4823 ac_cv_sys_file_offset_bits
=64; break
4825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4826 ac_cv_sys_file_offset_bits
=unknown
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4831 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4832 case $ac_cv_sys_file_offset_bits in #(
4835 cat >>confdefs.h
<<_ACEOF
4836 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4841 if test $ac_cv_sys_file_offset_bits = unknown
; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4843 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4844 if ${ac_cv_sys_large_files+:} false
; then :
4845 $as_echo_n "(cached) " >&6
4848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4850 #include <sys/types.h>
4851 /* Check that off_t can represent 2**63 - 1 correctly.
4852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4853 since some C++ compilers masquerading as C compilers
4854 incorrectly reject 9223372036854775807. */
4855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4857 && LARGE_OFF_T % 2147483647 == 1)
4867 if ac_fn_c_try_compile
"$LINENO"; then :
4868 ac_cv_sys_large_files
=no
; break
4870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4873 #define _LARGE_FILES 1
4874 #include <sys/types.h>
4875 /* Check that off_t can represent 2**63 - 1 correctly.
4876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4877 since some C++ compilers masquerading as C compilers
4878 incorrectly reject 9223372036854775807. */
4879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4881 && LARGE_OFF_T % 2147483647 == 1)
4891 if ac_fn_c_try_compile
"$LINENO"; then :
4892 ac_cv_sys_large_files
=1; break
4894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4895 ac_cv_sys_large_files
=unknown
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4900 $as_echo "$ac_cv_sys_large_files" >&6; }
4901 case $ac_cv_sys_large_files in #(
4904 cat >>confdefs.h
<<_ACEOF
4905 #define _LARGE_FILES $ac_cv_sys_large_files
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
4916 $as_echo_n "checking for type of signal functions... " >&6; }
4917 if ${bash_cv_signal_vintage+:} false
; then :
4918 $as_echo_n "(cached) " >&6
4921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4929 struct sigaction sa;
4930 sigemptyset(&ss); sigsuspend(&ss);
4931 sigaction(SIGINT, &sa, (struct sigaction *) 0);
4932 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
4938 if ac_fn_c_try_link
"$LINENO"; then :
4939 bash_cv_signal_vintage
=posix
4942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4949 int mask = sigmask(SIGINT);
4950 sigsetmask(mask); sigblock(mask); sigpause(mask);
4956 if ac_fn_c_try_link
"$LINENO"; then :
4957 bash_cv_signal_vintage
=4.2bsd
4960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4964 RETSIGTYPE foo() { }
4969 int mask = sigmask(SIGINT);
4970 sigset(SIGINT, foo); sigrelse(SIGINT);
4971 sighold(SIGINT); sigpause(SIGINT);
4977 if ac_fn_c_try_link
"$LINENO"; then :
4978 bash_cv_signal_vintage
=svr3
4980 bash_cv_signal_vintage
=v7
4983 rm -f core conftest.err conftest.
$ac_objext \
4984 conftest
$ac_exeext conftest.
$ac_ext
4987 rm -f core conftest.err conftest.
$ac_objext \
4988 conftest
$ac_exeext conftest.
$ac_ext
4991 rm -f core conftest.err conftest.
$ac_objext \
4992 conftest
$ac_exeext conftest.
$ac_ext
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
4997 $as_echo "$bash_cv_signal_vintage" >&6; }
4998 if test "$bash_cv_signal_vintage" = posix
; then
4999 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
5001 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
5002 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
5004 elif test "$bash_cv_signal_vintage" = svr3
; then
5005 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5
5012 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
5013 if ${bash_cv_must_reinstall_sighandlers+:} false
; then :
5014 $as_echo_n "(cached) " >&6
5016 if test "$cross_compiling" = yes; then :
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
5018 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
5019 bash_cv_must_reinstall_sighandlers
=no
5022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5026 #ifdef HAVE_UNISTD_H
5030 typedef RETSIGTYPE sigfunc();
5034 #ifdef HAVE_POSIX_SIGNALS
5036 set_signal_handler(sig, handler)
5040 struct sigaction act, oact;
5041 act.sa_handler = handler;
5043 sigemptyset (&act.sa_mask);
5044 sigemptyset (&oact.sa_mask);
5045 sigaction (sig, &act, &oact);
5046 return (oact.sa_handler);
5049 #define set_signal_handler(s, h) signal(s, h)
5062 set_signal_handler(SIGINT, sigint);
5063 kill((int)getpid(), SIGINT);
5064 kill((int)getpid(), SIGINT);
5069 if ac_fn_c_try_run
"$LINENO"; then :
5070 bash_cv_must_reinstall_sighandlers
=no
5072 bash_cv_must_reinstall_sighandlers
=yes
5074 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5075 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5
5081 $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
5082 if test $bash_cv_must_reinstall_sighandlers = yes; then
5083 $as_echo "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
5090 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
5091 if ${bash_cv_func_sigsetjmp+:} false
; then :
5092 $as_echo_n "(cached) " >&6
5094 if test "$cross_compiling" = yes; then :
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
5096 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
5097 bash_cv_func_sigsetjmp
=missing
5100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5103 #ifdef HAVE_UNISTD_H
5106 #include <sys/types.h>
5112 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
5123 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
5124 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
5127 code = sigsetjmp(xx, 1);
5129 exit(0); /* could get sigmask and compare to oset here. */
5132 sigaddset(&set, SIGINT);
5133 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
5135 /* and siglongjmp */
5141 if ac_fn_c_try_run
"$LINENO"; then :
5142 bash_cv_func_sigsetjmp
=present
5144 bash_cv_func_sigsetjmp
=missing
5146 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5147 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5
5153 $as_echo "$bash_cv_func_sigsetjmp" >&6; }
5154 if test $bash_cv_func_sigsetjmp = present
; then
5155 $as_echo "#define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
5160 $as_echo_n "checking for lstat... " >&6; }
5161 if ${bash_cv_func_lstat+:} false
; then :
5162 $as_echo_n "(cached) " >&6
5164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5165 /* end confdefs.h. */
5167 #include <sys/types.h>
5168 #include <sys/stat.h>
5173 lstat(".",(struct stat *)0);
5178 if ac_fn_c_try_link
"$LINENO"; then :
5179 bash_cv_func_lstat
=yes
5181 bash_cv_func_lstat
=no
5183 rm -f core conftest.err conftest.
$ac_objext \
5184 conftest
$ac_exeext conftest.
$ac_ext
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5
5187 $as_echo "$bash_cv_func_lstat" >&6; }
5188 if test $bash_cv_func_lstat = yes; then
5189 $as_echo "#define HAVE_LSTAT 1" >>confdefs.h
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5
5195 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
5196 if ${bash_cv_func_strcoll_broken+:} false
; then :
5197 $as_echo_n "(cached) " >&6
5199 if test "$cross_compiling" = yes; then :
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
5201 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
5202 bash_cv_func_strcoll_broken
=no
5205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5209 #if defined (HAVE_LOCALE_H)
5218 char *deflocale, *defcoll;
5220 #ifdef HAVE_SETLOCALE
5221 deflocale = setlocale(LC_ALL, "");
5222 defcoll = setlocale(LC_COLLATE, "");
5226 /* These two values are taken from tests/glob-test. */
5227 r1 = strcoll("abd", "aXd");
5231 r2 = strcmp("abd", "aXd");
5233 /* These two should both be greater than 0. It is permissible for
5234 a system to return different values, as long as the sign is the
5237 /* Exit with 1 (failure) if these two values are both > 0, since
5238 this tests whether strcoll(3) is broken with respect to strcmp(3)
5239 in the default locale. */
5240 exit (r1 > 0 && r2 > 0);
5244 if ac_fn_c_try_run
"$LINENO"; then :
5245 bash_cv_func_strcoll_broken
=yes
5247 bash_cv_func_strcoll_broken
=no
5249 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5250 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5
5256 $as_echo "$bash_cv_func_strcoll_broken" >&6; }
5257 if test $bash_cv_func_strcoll_broken = yes; then
5258 $as_echo "#define STRCOLL_BROKEN 1" >>confdefs.h
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ctype macros accept non-ascii characters" >&5
5264 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
5265 if ${bash_cv_func_ctype_nonascii+:} false
; then :
5266 $as_echo_n "(cached) " >&6
5268 if test "$cross_compiling" = yes; then :
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
5270 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
5271 bash_cv_func_ctype_nonascii
=no
5274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5277 #ifdef HAVE_LOCALE_H
5291 #ifdef HAVE_SETLOCALE
5292 /* We take a shot here. If that locale is not known, try the
5293 system default. We try this one because '\342' (226) is
5294 known to be a printable character in that locale. */
5295 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
5297 deflocale = setlocale(LC_ALL, "");
5304 exit (r1 == 0 || r2 == 0);
5308 if ac_fn_c_try_run
"$LINENO"; then :
5309 bash_cv_func_ctype_nonascii
=yes
5311 bash_cv_func_ctype_nonascii
=no
5313 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5314 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_ctype_nonascii" >&5
5320 $as_echo "$bash_cv_func_ctype_nonascii" >&6; }
5321 if test $bash_cv_func_ctype_nonascii = yes; then
5322 $as_echo "#define CTYPE_NON_ASCII 1" >>confdefs.h
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5
5328 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
5329 if ${bash_cv_getpw_declared+:} false
; then :
5330 $as_echo_n "(cached) " >&6
5332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5335 #include <sys/types.h>
5336 #ifdef HAVE_UNISTD_H
5337 # include <unistd.h>
5342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5343 $EGREP "getpwuid" >/dev
/null
2>&1; then :
5344 bash_cv_getpw_declared
=yes
5346 bash_cv_getpw_declared
=no
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5
5353 $as_echo "$bash_cv_getpw_declared" >&6; }
5354 if test $bash_cv_getpw_declared = yes; then
5355 $as_echo "#define HAVE_GETPW_DECLS 1" >>confdefs.h
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
5361 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
5362 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
5363 $as_echo_n "(cached) " >&6
5365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5367 #include <sys/types.h>
5368 #include <termios.h>
5374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5375 $EGREP "yes" >/dev
/null
2>&1; then :
5376 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
5378 ac_cv_sys_tiocgwinsz_in_termios_h
=no
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
5384 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
5386 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
5388 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
5389 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
5390 $as_echo_n "(cached) " >&6
5392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5394 #include <sys/types.h>
5395 #include <sys/ioctl.h>
5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5402 $EGREP "yes" >/dev
/null
2>&1; then :
5403 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
5405 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
5411 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
5413 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
5415 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5
5422 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
5423 if ${ac_cv_have_sig_atomic_t+:} false
; then :
5424 $as_echo_n "(cached) " >&6
5426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5439 if ac_fn_c_try_link
"$LINENO"; then :
5440 ac_cv_have_sig_atomic_t
=yes
5442 ac_cv_have_sig_atomic_t
=no
5444 rm -f core conftest.err conftest.
$ac_objext \
5445 conftest
$ac_exeext conftest.
$ac_ext
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5
5448 $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
5449 if test "$ac_cv_have_sig_atomic_t" = "no"
5451 ac_fn_c_check_type
"$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default"
5452 if test "x$ac_cv_type_sig_atomic_t" = xyes
; then :
5456 cat >>confdefs.h
<<_ACEOF
5457 #define sig_atomic_t int
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers are of type void" >&5
5465 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
5466 if ${bash_cv_void_sighandler+:} false
; then :
5467 $as_echo_n "(cached) " >&6
5469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 #include <sys/types.h>
5479 void (*signal ()) ();
5488 if ac_fn_c_try_compile
"$LINENO"; then :
5489 bash_cv_void_sighandler
=yes
5491 bash_cv_void_sighandler
=no
5493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_void_sighandler" >&5
5496 $as_echo "$bash_cv_void_sighandler" >&6; }
5497 if test $bash_cv_void_sighandler = yes; then
5498 $as_echo "#define VOID_SIGHANDLER 1" >>confdefs.h
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5
5504 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
5505 if ${bash_cv_tiocstat_in_ioctl+:} false
; then :
5506 $as_echo_n "(cached) " >&6
5508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5510 #include <sys/types.h>
5511 #include <sys/ioctl.h>
5520 if ac_fn_c_try_compile
"$LINENO"; then :
5521 bash_cv_tiocstat_in_ioctl
=yes
5523 bash_cv_tiocstat_in_ioctl
=no
5525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5
5529 $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
5530 if test $bash_cv_tiocstat_in_ioctl = yes; then
5531 $as_echo "#define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5
5536 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
5537 if ${bash_cv_fionread_in_ioctl+:} false
; then :
5538 $as_echo_n "(cached) " >&6
5540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5542 #include <sys/types.h>
5543 #include <sys/ioctl.h>
5552 if ac_fn_c_try_compile
"$LINENO"; then :
5553 bash_cv_fionread_in_ioctl
=yes
5555 bash_cv_fionread_in_ioctl
=no
5557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5
5561 $as_echo "$bash_cv_fionread_in_ioctl" >&6; }
5562 if test $bash_cv_fionread_in_ioctl = yes; then
5563 $as_echo "#define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5
5568 $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
5569 if ${bash_cv_speed_t_in_sys_types+:} false
; then :
5570 $as_echo_n "(cached) " >&6
5572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 #include <sys/types.h>
5583 if ac_fn_c_try_compile
"$LINENO"; then :
5584 bash_cv_speed_t_in_sys_types
=yes
5586 bash_cv_speed_t_in_sys_types
=no
5588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5
5592 $as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
5593 if test $bash_cv_speed_t_in_sys_types = yes; then
5594 $as_echo "#define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5
5599 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
5600 if ${bash_cv_struct_winsize_header+:} false
; then :
5601 $as_echo_n "(cached) " >&6
5603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h. */
5605 #include <sys/types.h>
5606 #include <sys/ioctl.h>
5615 if ac_fn_c_try_compile
"$LINENO"; then :
5616 bash_cv_struct_winsize_header
=ioctl_h
5618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5620 #include <sys/types.h>
5621 #include <termios.h>
5630 if ac_fn_c_try_compile
"$LINENO"; then :
5631 bash_cv_struct_winsize_header
=termios_h
5633 bash_cv_struct_winsize_header
=other
5635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5641 if test $bash_cv_struct_winsize_header = ioctl_h
; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5
5643 $as_echo "sys/ioctl.h" >&6; }
5644 $as_echo "#define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h
5646 elif test $bash_cv_struct_winsize_header = termios_h
; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5
5648 $as_echo "termios.h" >&6; }
5649 $as_echo "#define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5653 $as_echo "not found" >&6; }
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5
5658 $as_echo_n "checking for struct dirent.d_ino... " >&6; }
5659 if ${bash_cv_dirent_has_dino+:} false
; then :
5660 $as_echo_n "(cached) " >&6
5662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5666 #include <sys/types.h>
5667 #ifdef HAVE_UNISTD_H
5668 # include <unistd.h>
5669 #endif /* HAVE_UNISTD_H */
5670 #if defined(HAVE_DIRENT_H)
5671 # include <dirent.h>
5673 # define dirent direct
5674 # ifdef HAVE_SYS_NDIR_H
5675 # include <sys/ndir.h>
5676 # endif /* SYSNDIR */
5677 # ifdef HAVE_SYS_DIR_H
5678 # include <sys/dir.h>
5679 # endif /* SYSDIR */
5683 #endif /* HAVE_DIRENT_H */
5689 struct dirent d; int z; z = d.d_ino;
5695 if ac_fn_c_try_compile
"$LINENO"; then :
5696 bash_cv_dirent_has_dino
=yes
5698 bash_cv_dirent_has_dino
=no
5700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_dino" >&5
5704 $as_echo "$bash_cv_dirent_has_dino" >&6; }
5705 if test $bash_cv_dirent_has_dino = yes; then
5706 $as_echo "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5
5712 $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
5713 if ${bash_cv_dirent_has_d_fileno+:} false
; then :
5714 $as_echo_n "(cached) " >&6
5716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5720 #include <sys/types.h>
5721 #ifdef HAVE_UNISTD_H
5722 # include <unistd.h>
5723 #endif /* HAVE_UNISTD_H */
5724 #if defined(HAVE_DIRENT_H)
5725 # include <dirent.h>
5727 # define dirent direct
5728 # ifdef HAVE_SYS_NDIR_H
5729 # include <sys/ndir.h>
5730 # endif /* SYSNDIR */
5731 # ifdef HAVE_SYS_DIR_H
5732 # include <sys/dir.h>
5733 # endif /* SYSDIR */
5737 #endif /* HAVE_DIRENT_H */
5743 struct dirent d; int z; z = d.d_fileno;
5749 if ac_fn_c_try_compile
"$LINENO"; then :
5750 bash_cv_dirent_has_d_fileno
=yes
5752 bash_cv_dirent_has_d_fileno
=no
5754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5
5758 $as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
5759 if test $bash_cv_dirent_has_d_fileno = yes; then
5760 $as_echo "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h
5765 ac_fn_c_check_decl
"$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h>
5767 if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = xyes
; then :
5773 cat >>confdefs.h
<<_ACEOF
5774 #define HAVE_DECL_AUDIT_USER_TTY $ac_have_decl
5779 aix
*) prefer_curses
=yes ;;
5782 if test "X$bash_cv_termcap_lib" = "X"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5786 $as_echo_n "checking which library has the termcap functions... " >&6; }
5789 if ${bash_cv_termcap_lib+:} false
; then :
5790 $as_echo_n "(cached) " >&6
5792 ac_fn_c_check_func
"$LINENO" "tgetent" "ac_cv_func_tgetent"
5793 if test "x$ac_cv_func_tgetent" = xyes
; then :
5794 bash_cv_termcap_lib
=libc
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
5797 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5798 if ${ac_cv_lib_termcap_tgetent+:} false
; then :
5799 $as_echo_n "(cached) " >&6
5801 ac_check_lib_save_LIBS
=$LIBS
5802 LIBS
="-ltermcap $LIBS"
5803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5806 /* Override any GCC internal prototype to avoid an error.
5807 Use char because int might match the return type of a GCC
5808 builtin and then its argument prototype would still apply. */
5821 if ac_fn_c_try_link
"$LINENO"; then :
5822 ac_cv_lib_termcap_tgetent
=yes
5824 ac_cv_lib_termcap_tgetent
=no
5826 rm -f core conftest.err conftest.
$ac_objext \
5827 conftest
$ac_exeext conftest.
$ac_ext
5828 LIBS
=$ac_check_lib_save_LIBS
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
5831 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5832 if test "x$ac_cv_lib_termcap_tgetent" = xyes
; then :
5833 bash_cv_termcap_lib
=libtermcap
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
5836 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5837 if ${ac_cv_lib_tinfo_tgetent+:} false
; then :
5838 $as_echo_n "(cached) " >&6
5840 ac_check_lib_save_LIBS
=$LIBS
5841 LIBS
="-ltinfo $LIBS"
5842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5845 /* Override any GCC internal prototype to avoid an error.
5846 Use char because int might match the return type of a GCC
5847 builtin and then its argument prototype would still apply. */
5860 if ac_fn_c_try_link
"$LINENO"; then :
5861 ac_cv_lib_tinfo_tgetent
=yes
5863 ac_cv_lib_tinfo_tgetent
=no
5865 rm -f core conftest.err conftest.
$ac_objext \
5866 conftest
$ac_exeext conftest.
$ac_ext
5867 LIBS
=$ac_check_lib_save_LIBS
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
5870 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5871 if test "x$ac_cv_lib_tinfo_tgetent" = xyes
; then :
5872 bash_cv_termcap_lib
=libtinfo
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
5875 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
5876 if ${ac_cv_lib_curses_tgetent+:} false
; then :
5877 $as_echo_n "(cached) " >&6
5879 ac_check_lib_save_LIBS
=$LIBS
5880 LIBS
="-lcurses $LIBS"
5881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5884 /* Override any GCC internal prototype to avoid an error.
5885 Use char because int might match the return type of a GCC
5886 builtin and then its argument prototype would still apply. */
5899 if ac_fn_c_try_link
"$LINENO"; then :
5900 ac_cv_lib_curses_tgetent
=yes
5902 ac_cv_lib_curses_tgetent
=no
5904 rm -f core conftest.err conftest.
$ac_objext \
5905 conftest
$ac_exeext conftest.
$ac_ext
5906 LIBS
=$ac_check_lib_save_LIBS
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
5909 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
5910 if test "x$ac_cv_lib_curses_tgetent" = xyes
; then :
5911 bash_cv_termcap_lib
=libcurses
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
5914 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
5915 if ${ac_cv_lib_ncurses_tgetent+:} false
; then :
5916 $as_echo_n "(cached) " >&6
5918 ac_check_lib_save_LIBS
=$LIBS
5919 LIBS
="-lncurses $LIBS"
5920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5923 /* Override any GCC internal prototype to avoid an error.
5924 Use char because int might match the return type of a GCC
5925 builtin and then its argument prototype would still apply. */
5938 if ac_fn_c_try_link
"$LINENO"; then :
5939 ac_cv_lib_ncurses_tgetent
=yes
5941 ac_cv_lib_ncurses_tgetent
=no
5943 rm -f core conftest.err conftest.
$ac_objext \
5944 conftest
$ac_exeext conftest.
$ac_ext
5945 LIBS
=$ac_check_lib_save_LIBS
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
5948 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
5949 if test "x$ac_cv_lib_ncurses_tgetent" = xyes
; then :
5950 bash_cv_termcap_lib
=libncurses
5952 bash_cv_termcap_lib
=gnutermcap
5965 if test "X$_bash_needmsg" = "Xyes"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5967 $as_echo_n "checking which library has the termcap functions... " >&6; }
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
5970 $as_echo "using $bash_cv_termcap_lib" >&6; }
5971 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
5972 LDFLAGS
="$LDFLAGS -L./lib/termcap"
5973 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
5974 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
5975 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
5976 TERMCAP_LIB
=-ltermcap
5978 elif test $bash_cv_termcap_lib = libtinfo
; then
5981 elif test $bash_cv_termcap_lib = libncurses
; then
5982 TERMCAP_LIB
=-lncurses
5984 elif test $bash_cv_termcap_lib = libc
; then
5988 TERMCAP_LIB
=-lcurses
5992 if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
5993 if test "$prefer_curses" = yes; then
5994 TERMCAP_LIB
=-lcurses
5996 TERMCAP_LIB
=-ltermcap #default
6001 for ac_header
in wctype.h
6003 ac_fn_c_check_header_mongrel
"$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
6004 if test "x$ac_cv_header_wctype_h" = xyes
; then :
6005 cat >>confdefs.h
<<_ACEOF
6006 #define HAVE_WCTYPE_H 1
6013 for ac_header
in wchar.h
6015 ac_fn_c_check_header_mongrel
"$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
6016 if test "x$ac_cv_header_wchar_h" = xyes
; then :
6017 cat >>confdefs.h
<<_ACEOF
6018 #define HAVE_WCHAR_H 1
6025 for ac_header
in langinfo.h
6027 ac_fn_c_check_header_mongrel
"$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
6028 if test "x$ac_cv_header_langinfo_h" = xyes
; then :
6029 cat >>confdefs.h
<<_ACEOF
6030 #define HAVE_LANGINFO_H 1
6038 ac_fn_c_check_func
"$LINENO" "mbrlen" "ac_cv_func_mbrlen"
6039 if test "x$ac_cv_func_mbrlen" = xyes
; then :
6040 $as_echo "#define HAVE_MBRLEN 1" >>confdefs.h
6044 ac_fn_c_check_func
"$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp"
6045 if test "x$ac_cv_func_mbscasecmp" = xyes
; then :
6046 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
6050 ac_fn_c_check_func
"$LINENO" "mbscmp" "ac_cv_func_mbscmp"
6051 if test "x$ac_cv_func_mbscmp" = xyes
; then :
6052 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
6056 ac_fn_c_check_func
"$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs"
6057 if test "x$ac_cv_func_mbsnrtowcs" = xyes
; then :
6058 $as_echo "#define HAVE_MBSNRTOWCS 1" >>confdefs.h
6062 ac_fn_c_check_func
"$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs"
6063 if test "x$ac_cv_func_mbsrtowcs" = xyes
; then :
6064 $as_echo "#define HAVE_MBSRTOWCS 1" >>confdefs.h
6069 ac_fn_c_check_func
"$LINENO" "mbschr" "ac_cv_func_mbschr"
6070 if test "x$ac_cv_func_mbschr" = xyes
; then :
6071 $as_echo "#define HAVE_MBSCHR 1" >>confdefs.h
6074 case " $LIBOBJS " in
6075 *" mbschr.$ac_objext "* ) ;;
6076 *) LIBOBJS
="$LIBOBJS mbschr.$ac_objext"
6084 ac_fn_c_check_func
"$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
6085 if test "x$ac_cv_func_wcrtomb" = xyes
; then :
6086 $as_echo "#define HAVE_WCRTOMB 1" >>confdefs.h
6090 ac_fn_c_check_func
"$LINENO" "wcscoll" "ac_cv_func_wcscoll"
6091 if test "x$ac_cv_func_wcscoll" = xyes
; then :
6092 $as_echo "#define HAVE_WCSCOLL 1" >>confdefs.h
6096 ac_fn_c_check_func
"$LINENO" "wcsdup" "ac_cv_func_wcsdup"
6097 if test "x$ac_cv_func_wcsdup" = xyes
; then :
6098 $as_echo "#define HAVE_WCSDUP 1" >>confdefs.h
6102 ac_fn_c_check_func
"$LINENO" "wcwidth" "ac_cv_func_wcwidth"
6103 if test "x$ac_cv_func_wcwidth" = xyes
; then :
6104 $as_echo "#define HAVE_WCWIDTH 1" >>confdefs.h
6108 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
6109 if test "x$ac_cv_func_wctype" = xyes
; then :
6110 $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h
6115 ac_fn_c_check_func
"$LINENO" "wcswidth" "ac_cv_func_wcswidth"
6116 if test "x$ac_cv_func_wcswidth" = xyes
; then :
6117 $as_echo "#define HAVE_WCSWIDTH 1" >>confdefs.h
6120 case " $LIBOBJS " in
6121 *" wcswidth.$ac_objext "* ) ;;
6122 *) LIBOBJS
="$LIBOBJS wcswidth.$ac_objext"
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
6132 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
6133 if ${ac_cv_func_mbrtowc+:} false
; then :
6134 $as_echo_n "(cached) " >&6
6136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6143 char const s[] = "";
6146 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
6151 if ac_fn_c_try_link
"$LINENO"; then :
6152 ac_cv_func_mbrtowc
=yes
6154 ac_cv_func_mbrtowc
=no
6156 rm -f core conftest.err conftest.
$ac_objext \
6157 conftest
$ac_exeext conftest.
$ac_ext
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
6160 $as_echo "$ac_cv_func_mbrtowc" >&6; }
6161 if test $ac_cv_func_mbrtowc = yes; then
6163 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
6167 if test $ac_cv_func_mbrtowc = yes; then
6168 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6172 for ac_func
in iswlower iswupper towlower towupper iswctype
6174 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6175 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6176 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6177 cat >>confdefs.h
<<_ACEOF
6178 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6186 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6187 if ${bash_cv_langinfo_codeset+:} false
; then :
6188 $as_echo_n "(cached) " >&6
6190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192 #include <langinfo.h>
6196 char* cs = nl_langinfo(CODESET);
6201 if ac_fn_c_try_link
"$LINENO"; then :
6202 bash_cv_langinfo_codeset
=yes
6204 bash_cv_langinfo_codeset
=no
6206 rm -f core conftest.err conftest.
$ac_objext \
6207 conftest
$ac_exeext conftest.
$ac_ext
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_langinfo_codeset" >&5
6210 $as_echo "$bash_cv_langinfo_codeset" >&6; }
6211 if test $bash_cv_langinfo_codeset = yes; then
6212 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5
6217 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
6218 if ${bash_cv_type_wchar_t+:} false
; then :
6219 $as_echo_n "(cached) " >&6
6221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h. */
6236 if ac_fn_c_try_compile
"$LINENO"; then :
6237 bash_cv_type_wchar_t
=yes
6239 bash_cv_type_wchar_t
=no
6241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wchar_t" >&5
6244 $as_echo "$bash_cv_type_wchar_t" >&6; }
6245 if test $bash_cv_type_wchar_t = yes; then
6247 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5
6252 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
6253 if ${bash_cv_type_wctype_t+:} false
; then :
6254 $as_echo_n "(cached) " >&6
6256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6270 if ac_fn_c_try_compile
"$LINENO"; then :
6271 bash_cv_type_wctype_t
=yes
6273 bash_cv_type_wctype_t
=no
6275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wctype_t" >&5
6278 $as_echo "$bash_cv_type_wctype_t" >&6; }
6279 if test $bash_cv_type_wctype_t = yes; then
6281 $as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5
6286 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
6287 if ${bash_cv_type_wint_t+:} false
; then :
6288 $as_echo_n "(cached) " >&6
6290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6304 if ac_fn_c_try_compile
"$LINENO"; then :
6305 bash_cv_type_wint_t
=yes
6307 bash_cv_type_wint_t
=no
6309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wint_t" >&5
6312 $as_echo "$bash_cv_type_wint_t" >&6; }
6313 if test $bash_cv_type_wint_t = yes; then
6315 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcwidth broken with unicode combining characters" >&5
6320 $as_echo_n "checking for wcwidth broken with unicode combining characters... " >&6; }
6321 if ${bash_cv_wcwidth_broken+:} false
; then :
6322 $as_echo_n "(cached) " >&6
6324 if test "$cross_compiling" = yes; then :
6325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6327 as_fn_error $?
"cannot run test program while cross compiling
6328 See \`config.log' for more details" "$LINENO" 5; }
6330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6346 setlocale(LC_ALL, "en_US.UTF-8");
6347 w = wcwidth (0x0301);
6348 exit (w == 0); /* exit 0 if wcwidth broken */
6352 if ac_fn_c_try_run
"$LINENO"; then :
6353 bash_cv_wcwidth_broken
=yes
6355 bash_cv_wcwdith_broken
=no
6357 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6358 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcwidth_broken" >&5
6363 $as_echo "$bash_cv_wcwidth_broken" >&6; }
6364 if test "$bash_cv_wcwidth_broken" = yes; then
6366 $as_echo "#define WCWIDTH_BROKEN 1" >>confdefs.h
6370 if test "$am_cv_func_iconv" = yes; then
6372 LIBS
="$LIBS $LIBICONV"
6373 for ac_func
in locale_charset
6375 ac_fn_c_check_func
"$LINENO" "locale_charset" "ac_cv_func_locale_charset"
6376 if test "x$ac_cv_func_locale_charset" = xyes
; then :
6377 cat >>confdefs.h
<<_ACEOF
6378 #define HAVE_LOCALE_CHARSET 1
6390 *cray
*) LOCAL_CFLAGS
=-DCRAY ;;
6391 *s390
*) LOCAL_CFLAGS
=-fsigned-char ;;
6395 isc
*) LOCAL_CFLAGS
=-Disc386 ;;
6398 # shared library configuration section
6400 # Shared object configuration section. These values are generated by
6401 # ${srcdir}/support/shobj-conf
6403 if test -f ${srcdir}/support
/shobj-conf
; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configuration for building shared libraries" >&5
6405 $as_echo_n "checking configuration for building shared libraries... " >&6; }
6406 eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
6408 # case "$SHLIB_LIBS" in
6409 # *curses*|*termcap*|*termlib*) ;;
6410 # *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;;
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_STATUS" >&5
6429 $as_echo "$SHLIB_STATUS" >&6; }
6431 # SHLIB_STATUS is either `supported' or `unsupported'. If it's
6432 # `unsupported', turn off any default shared library building
6433 if test "$SHLIB_STATUS" = 'unsupported'; then
6437 # shared library versioning
6438 # quoted for m4 so I can use character classes
6439 SHLIB_MAJOR
=`expr "$LIBVERSION" : '\([0-9]\)\..*'`
6440 SHLIB_MINOR
=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`
6445 if test "$opt_static_libs" = "yes"; then
6446 STATIC_TARGET
=static
6447 STATIC_INSTALL_TARGET
=install-static
6449 if test "$opt_shared_libs" = "yes"; then
6450 SHARED_TARGET
=shared
6451 SHARED_INSTALL_TARGET
=install-shared
6460 msdosdjgpp
*) BUILD_DIR
=`pwd.exe` ;; # to prevent //d/path/file
6461 *) BUILD_DIR
=`pwd` ;;
6464 case "$BUILD_DIR" in
6465 *\
*) BUILD_DIR
=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
6487 ac_config_files
="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile"
6489 ac_config_commands
="$ac_config_commands default"
6491 cat >confcache
<<\_ACEOF
6492 # This file is a shell script that caches the results of configure
6493 # tests run on this system so they can be shared between configure
6494 # scripts and configure runs, see configure's option --config-cache.
6495 # It is not useful on other systems. If it contains results you don't
6496 # want to keep, you may remove or edit it.
6498 # config.status only pays attention to the cache file if you give it
6499 # the --recheck option to rerun configure.
6501 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6502 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6507 # The following way of writing the cache mishandles newlines in values,
6508 # but we know of no workaround that is simple, portable, and efficient.
6509 # So, we kill variables containing newlines.
6510 # Ultrix sh set writes to stderr and can't be redirected directly,
6511 # and sets the high bit in the cache file unless we assign to the vars.
6513 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6514 eval ac_val
=\$
$ac_var
6518 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6519 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6522 _ | IFS | as_nl
) ;; #(
6523 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6524 *) { eval $ac_var=; unset $ac_var;} ;;
6530 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6531 *${as_nl}ac_space
=\
*)
6532 # `set' does not quote correctly, so add quotes: double-quote
6533 # substitution turns \\\\ into \\, and sed turns \\ into \.
6536 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6539 # `set' quotes correctly as required by POSIX, so do not add quotes.
6540 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6549 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6551 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6553 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6554 if test -w "$cache_file"; then
6555 if test "x$cache_file" != "x/dev/null"; then
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6557 $as_echo "$as_me: updating cache $cache_file" >&6;}
6558 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
6559 cat confcache
>"$cache_file"
6561 case $cache_file in #(
6563 mv -f confcache
"$cache_file"$$
&&
6564 mv -f "$cache_file"$$
"$cache_file" ;; #(
6566 mv -f confcache
"$cache_file" ;;
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6572 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6577 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6578 # Let make expand exec_prefix.
6579 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6581 DEFS
=-DHAVE_CONFIG_H
6586 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6587 # 1. Remove the extension, and $U if already installed.
6588 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6589 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
6590 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6591 # will be set to the directory where LIBOBJS objects are built.
6592 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6593 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
6597 LTLIBOBJS
=$ac_ltlibobjs
6601 : "${CONFIG_STATUS=./config.status}"
6603 ac_clean_files_save
=$ac_clean_files
6604 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6606 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6608 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6610 # Generated by $as_me.
6611 # Run this file to recreate the current configuration.
6612 # Compiler output produced by configure, useful for debugging
6613 # configure, is in config.log if it exists.
6619 SHELL=\${CONFIG_SHELL-$SHELL}
6622 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6623 ## -------------------- ##
6624 ## M4sh Initialization. ##
6625 ## -------------------- ##
6627 # Be more Bourne compatible
6628 DUALCASE
=1; export DUALCASE
# for MKS sh
6629 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
6632 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6633 # is contrary to our usage. Disable this feature.
6634 alias -g '${1+"$@"}'='"$@"'
6635 setopt NO_GLOB_SUBST
6637 case `(set -o) 2>/dev/null` in #(
6649 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6650 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6651 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6652 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6653 # Prefer a ksh shell builtin over an external printf program on Solaris,
6654 # but without wasting forks for bash or zsh.
6655 if test -z "$BASH_VERSION$ZSH_VERSION" \
6656 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6657 as_echo='print
-r --'
6658 as_echo_n='print
-rn --'
6659 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6660 as_echo='printf %s
\n'
6661 as_echo_n='printf %s
'
6663 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6664 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
6665 as_echo_n='/usr
/ucb
/echo -n'
6667 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6668 as_echo_n_body='eval
6672 expr "X$arg" : "X\\(.*\\)$as_nl";
6673 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6675 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
6677 export as_echo_n_body
6678 as_echo_n='sh
-c $as_echo_n_body as_echo
'
6681 as_echo='sh
-c $as_echo_body as_echo
'
6684 # The user is always right.
6685 if test "${PATH_SEPARATOR+set}" != set; then
6687 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6688 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6695 # We need space, tab and new line, in precisely that order. Quoting is
6696 # there to prevent editors from complaining about space-tab.
6697 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6698 # splitting by setting IFS to empty value.)
6701 # Find who we are. Look in the path if we contain no directory separator.
6704 *[\\/]* ) as_myself=$0 ;;
6705 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 test -z "$as_dir" && as_dir=.
6710 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6716 # We did not find ourselves, most probably we were run as `sh COMMAND'
6717 # in which case we are not to be found in the path.
6718 if test "x$as_myself" = x
; then
6721 if test ! -f "$as_myself"; then
6722 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6726 # Unset variables that we do not need and which cause bugs (e.g. in
6727 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6728 # suppresses any "Segmentation fault" message there. '((' could
6729 # trigger a bug in pdksh 5.2.14.
6730 for as_var
in BASH_ENV ENV MAIL MAILPATH
6731 do eval test x\
${$as_var+set} = xset \
6732 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
6745 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
6748 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6749 # ----------------------------------------
6750 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6751 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6752 # script with STATUS, using 1 if that was 0.
6755 as_status
=$1; test $as_status -eq 0 && as_status
=1
6757 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
6758 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6760 $as_echo "$as_me: error: $2" >&2
6761 as_fn_exit
$as_status
6765 # as_fn_set_status STATUS
6766 # -----------------------
6767 # Set $? to STATUS, without forking.
6771 } # as_fn_set_status
6775 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6785 # Portably unset VAR.
6788 { eval $1=; unset $1;}
6790 as_unset
=as_fn_unset
6791 # as_fn_append VAR VALUE
6792 # ----------------------
6793 # Append the text in VALUE to the end of the definition contained in VAR. Take
6794 # advantage of any shell optimizations that allow amortized linear growth over
6795 # repeated appends, instead of the typical quadratic growth present in naive
6797 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
6798 eval 'as_fn_append ()
6809 # as_fn_arith ARG...
6810 # ------------------
6811 # Perform arithmetic evaluation on the ARGs, and store the result in the
6812 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6813 # must be portable across $(()) and expr.
6814 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
6815 eval 'as_fn_arith ()
6822 as_val
=`expr "$@" || test $? -eq 1`
6827 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6828 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6834 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6835 as_basename
=basename
6840 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6846 as_me
=`$as_basename -- "$0" ||
6847 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6848 X"$0" : 'X\(//\)$' \| \
6849 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6851 sed '/^.*\/\([^/][^/]*\)\/*$/{
6865 # Avoid depending upon Character Ranges.
6866 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6867 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6868 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6869 as_cr_digits
='0123456789'
6870 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6872 ECHO_C
= ECHO_N
= ECHO_T
=
6873 case `echo -n x` in #(((((
6875 case `echo 'xy\c'` in
6876 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6878 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6885 rm -f conf$$ conf$$.exe conf$$.
file
6886 if test -d conf$$.dir
; then
6887 rm -f conf$$.dir
/conf$$.
file
6890 mkdir conf$$.dir
2>/dev
/null
6892 if (echo >conf$$.
file) 2>/dev
/null
; then
6893 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6895 # ... but there are two gotchas:
6896 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6897 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6898 # In both cases, we have to default to `cp -p'.
6899 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6901 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6909 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6910 rmdir conf$$.dir
2>/dev
/null
6915 # Create "$as_dir" as a directory, including parents if necessary.
6920 -*) as_dir
=.
/$as_dir;;
6922 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6926 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6927 *) as_qdir
=$as_dir;;
6929 as_dirs
="'$as_qdir' $as_dirs"
6930 as_dir
=`$as_dirname -- "$as_dir" ||
6931 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6932 X"$as_dir" : 'X\(//\)[^/]' \| \
6933 X"$as_dir" : 'X\(//\)$' \| \
6934 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6935 $as_echo X"$as_dir" |
6936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6953 test -d "$as_dir" && break
6955 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6956 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
6960 if mkdir
-p .
2>/dev
/null
; then
6961 as_mkdir_p
='mkdir -p "$as_dir"'
6963 test -d .
/-p && rmdir .
/-p
6967 if test -x / >/dev
/null
2>&1; then
6970 if ls -dL / >/dev
/null
2>&1; then
6977 if test -d "$1"; then
6983 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6984 ???[sx]*):;;*)false;;esac;fi
6988 as_executable_p
=$as_test_x
6990 # Sed expression to map a string onto a valid CPP name.
6991 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6993 # Sed expression to map a string onto a valid variable name.
6994 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6998 ## ----------------------------------- ##
6999 ## Main body of $CONFIG_STATUS script. ##
7000 ## ----------------------------------- ##
7002 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7005 # Save the log message, to keep $0 and so on meaningful, and to
7006 # report actual input values of CONFIG_FILES etc. instead of their
7007 # values after options handling.
7009 This file was extended by readline $as_me 6.3, which was
7010 generated by GNU Autoconf 2.68. Invocation command line was
7012 CONFIG_FILES = $CONFIG_FILES
7013 CONFIG_HEADERS = $CONFIG_HEADERS
7014 CONFIG_LINKS = $CONFIG_LINKS
7015 CONFIG_COMMANDS = $CONFIG_COMMANDS
7018 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7023 case $ac_config_files in *"
7024 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7027 case $ac_config_headers in *"
7028 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7033 # Files that config.status was made for.
7034 config_files="$ac_config_files"
7035 config_headers="$ac_config_headers"
7036 config_commands="$ac_config_commands"
7040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7042 \`$as_me' instantiates files and other configuration actions
7043 from templates according to the current configuration. Unless the files
7044 and actions are specified as TAGs, all are instantiated by default.
7046 Usage: $0 [OPTION]... [TAG]...
7048 -h, --help print this help, then exit
7049 -V, --version print version number and configuration settings, then exit
7050 --config print configuration, then exit
7051 -q, --quiet, --silent
7052 do not print progress messages
7053 -d, --debug don't remove temporary files
7054 --recheck update $as_me by reconfiguring in the same conditions
7055 --file=FILE[:TEMPLATE]
7056 instantiate the configuration file FILE
7057 --header=FILE[:TEMPLATE]
7058 instantiate the configuration header FILE
7060 Configuration files:
7063 Configuration headers:
7066 Configuration commands:
7069 Report bugs to <bug-readline@gnu.org>."
7072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7073 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7075 readline config.status 6.3
7076 configured by $0, generated by GNU Autoconf 2.68,
7077 with options \\"\$ac_cs_config\\"
7079 Copyright (C) 2010 Free Software Foundation, Inc.
7080 This config.status script is free software; the Free Software Foundation
7081 gives unlimited permission to copy, distribute and modify it."
7086 test -n "\$AWK" || AWK=awk
7089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7090 # The default lists apply if the user does not specify any file.
7096 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7097 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7101 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7113 # Handling of the options.
7114 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7116 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7117 $as_echo "$ac_cs_version"; exit ;;
7118 --config |
--confi |
--conf |
--con |
--co |
--c )
7119 $as_echo "$ac_cs_config"; exit ;;
7120 --debug |
--debu |
--deb |
--de |
--d |
-d )
7122 --file |
--fil |
--fi |
--f )
7125 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7126 '') as_fn_error $?
"missing file argument" ;;
7128 as_fn_append CONFIG_FILES
" '$ac_optarg'"
7129 ac_need_defaults
=false
;;
7130 --header |
--heade |
--head |
--hea )
7133 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7135 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
7136 ac_need_defaults
=false
;;
7138 # Conflict between --help and --header
7139 as_fn_error $?
"ambiguous option: \`$1'
7140 Try \`$0 --help' for more information.";;
7141 --help |
--hel |
-h )
7142 $as_echo "$ac_cs_usage"; exit ;;
7143 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7144 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7148 -*) as_fn_error $?
"unrecognized option: \`$1'
7149 Try \`$0 --help' for more information." ;;
7151 *) as_fn_append ac_config_targets
" $1"
7152 ac_need_defaults
=false
;;
7158 ac_configure_extra_args
=
7160 if $ac_cs_silent; then
7162 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7167 if \$ac_cs_recheck; then
7168 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7170 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7171 CONFIG_SHELL='$SHELL'
7177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7181 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7182 ## Running $as_me. ##
7188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7193 # Handling of arguments.
7194 for ac_config_target
in $ac_config_targets
7196 case $ac_config_target in
7197 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
7198 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7199 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
7200 "examples/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/Makefile" ;;
7201 "shlib/Makefile") CONFIG_FILES
="$CONFIG_FILES shlib/Makefile" ;;
7202 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
7204 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7209 # If the user did not use the arguments to specify the items to instantiate,
7210 # then the envvar interface is used. Set only those that are not.
7211 # We use the long form for the default assignment because of an extremely
7212 # bizarre bug on SunOS 4.1.3.
7213 if $ac_need_defaults; then
7214 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7215 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7216 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7219 # Have a temporary directory for convenience. Make it in the build tree
7220 # simply because there is no reason against having it here, and in addition,
7221 # creating and moving files from /tmp can sometimes cause problems.
7222 # Hook for its removal unless debugging.
7223 # Note that there is a small window in which the directory will not be cleaned:
7224 # after its creation but before its name has been assigned to `$tmp'.
7228 trap 'exit_status=$?
7230 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7232 trap 'as_fn_exit 1' 1 2 13 15
7234 # Create a (secure) tmp directory for tmp files.
7237 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7241 tmp
=.
/conf$$
-$RANDOM
7242 (umask 077 && mkdir
"$tmp")
7243 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
7246 # Set up the scripts for CONFIG_FILES section.
7247 # No need to generate them if there are no CONFIG_FILES.
7248 # This happens for instance with `./config.status config.h'.
7249 if test -n "$CONFIG_FILES"; then
7252 ac_cr
=`echo X | tr X '\015'`
7253 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7254 # But we know of no other shell where ac_cr would be empty at this
7255 # point, so we can use a bashism as a fallback.
7256 if test "x$ac_cr" = x
; then
7257 eval ac_cr
=\$
\'\\r
\'
7259 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7260 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7266 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7271 echo "cat >conf$$subs.awk <<_ACEOF" &&
7272 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7275 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7276 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7278 for ac_last_try in false false false false false :; do
7279 . ./conf$$subs.sh ||
7280 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7282 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7283 if test $ac_delim_n = $ac_delim_num; then
7285 elif $ac_last_try; then
7286 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7288 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7294 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
7298 s/^/S["/; s
/!.
*/"]=/
7308 s/\(.\{148\}\)..*/\1/
7310 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
7315 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7322 s/\(.\{148\}\)..*/\1/
7324 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7328 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7333 ' <conf$$subs.awk | sed '
7338 ' >>$CONFIG_STATUS || ac_write_fail=1
7339 rm -f conf$$subs.awk
7340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7342 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
7343 for (key in S) S_is_set[key] = 1
7349 nfields = split(line, field, "@
")
7351 len = length(field[1])
7352 for (i = 2; i < nfields; i++) {
7354 keylen = length(key)
7355 if (S_is_set[key]) {
7357 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7358 len += length(value) + length(field[++i])
7369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7370 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7371 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
7374 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
7375 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
7378 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7379 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
7380 # trailing colons and then remove the whole line if VPATH becomes empty
7381 # (actually we leave an empty line to preserve line numbers).
7382 if test "x
$srcdir" = x.; then
7383 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7402 fi # test -n "$CONFIG_FILES"
7404 # Set up the scripts for CONFIG_HEADERS section.
7405 # No need to generate them if there are no CONFIG_HEADERS.
7406 # This happens for instance with `./config.status Makefile'.
7407 if test -n "$CONFIG_HEADERS"; then
7408 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
7412 # Transform confdefs.h into an awk script `defines.awk', embedded as
7413 # here-document in config.status, that substitutes the proper values into
7414 # config.h.in to produce config.h.
7416 # Create a delimiter string that does not exist in confdefs.h, to ease
7417 # handling of long lines.
7419 for ac_last_try in false false :; do
7420 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
7421 if test -z "$ac_tt"; then
7423 elif $ac_last_try; then
7424 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
7426 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7430 # For the awk script, D is an array of macro values keyed by name,
7431 # likewise P contains macro parameters if any. Preserve backslash
7432 # newline sequences.
7434 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7436 s/.\{148\}/&'"$ac_delim"'/g
7439 s/^[ ]*#[ ]*define[ ][ ]*/ /
7446 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
7448 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
7452 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
7453 D["\
1"]=" \
3\\\\\\n
"\\/p
7455 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
7460 s/.\{148\}/&'"$ac_delim"'/g
7465 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
7468 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
7470 ' <confdefs.h | sed '
7471 s/'"$ac_delim"'/"\\\
7472 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7475 for (key in D) D_is_set[key] = 1
7478 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7480 split(line, arg, " ")
7481 if (arg[1] == "#") {
7485 defundef
= substr
(arg
[1], 2)
7488 split(mac1
, mac2
, "(") #)
7490 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
7491 if (D_is_set
[macro
]) {
7492 # Preserve the white space surrounding the "#".
7493 print prefix
"define", macro P
[macro
] D
[macro
]
7496 # Replace #undef with comments. This is necessary, for example,
7497 # in the case of _POSIX_SOURCE, which is predefined and required
7498 # on some systems where configure will not decide to define it.
7499 if (defundef
== "undef") {
7500 print
"/*", prefix defundef
, macro
, "*/"
7508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7509 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
7510 fi # test -n "$CONFIG_HEADERS"
7513 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7518 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7520 case $ac_mode$ac_tag in
7522 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7523 :[FH
]-) ac_tag
=-:-;;
7524 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7541 -) ac_f
="$ac_tmp/stdin";;
7542 *) # Look for the file first in the build tree, then in the source tree
7543 # (if the path is not absolute). The absolute path cannot be DOS-style,
7544 # because $ac_f cannot contain `:'.
7548 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7550 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7552 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7553 as_fn_append ac_file_inputs
" '$ac_f'"
7556 # Let's still pretend it is `configure' which instantiates (i.e., don't
7557 # use $as_me), people would be surprised to read:
7558 # /* config.h. Generated by config.status. */
7559 configure_input
='Generated from '`
7560 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7562 if test x
"$ac_file" != x-
; then
7563 configure_input
="$ac_file. $configure_input"
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7565 $as_echo "$as_me: creating $ac_file" >&6;}
7567 # Neutralize special characters interpreted by sed in replacement strings.
7568 case $configure_input in #(
7569 *\
&* |
*\|
* |
*\\* )
7570 ac_sed_conf_input
=`$as_echo "$configure_input" |
7571 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7572 *) ac_sed_conf_input
=$configure_input;;
7576 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
7577 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
7582 ac_dir
=`$as_dirname -- "$ac_file" ||
7583 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7584 X"$ac_file" : 'X\(//\)[^/]' \| \
7585 X"$ac_file" : 'X\(//\)$' \| \
7586 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7587 $as_echo X"$ac_file" |
7588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7605 as_dir
="$ac_dir"; as_fn_mkdir_p
7609 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7611 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7612 # A ".." for each directory in $ac_dir_suffix.
7613 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7614 case $ac_top_builddir_sub in
7615 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7616 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7619 ac_abs_top_builddir
=$ac_pwd
7620 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7621 # for backward compatibility:
7622 ac_top_builddir
=$ac_top_build_prefix
7625 .
) # We are building in place.
7627 ac_top_srcdir
=$ac_top_builddir_sub
7628 ac_abs_top_srcdir
=$ac_pwd ;;
7629 [\\/]* | ?
:[\\/]* ) # Absolute name.
7630 ac_srcdir
=$srcdir$ac_dir_suffix;
7631 ac_top_srcdir
=$srcdir
7632 ac_abs_top_srcdir
=$srcdir ;;
7634 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7635 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7636 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7638 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7648 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7649 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7654 # If the template does not know about datarootdir, expand it.
7655 # FIXME: This hack should be removed a few years after 2.60.
7656 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7667 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7668 *datarootdir
*) ac_datarootdir_seen
=yes;;
7669 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7671 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7674 ac_datarootdir_hack='
7675 s&@datadir@&$datadir&g
7676 s&@docdir@&$docdir&g
7677 s&@infodir@&$infodir&g
7678 s&@localedir@&$localedir&g
7679 s&@mandir@&$mandir&g
7680 s&\\\${datarootdir}&$datarootdir&g' ;;
7684 # Neutralize VPATH when `$srcdir' = `.'.
7685 # Shell code in configure.ac might set extrasub.
7686 # FIXME: do we really want to maintain this feature?
7687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7688 ac_sed_extra="$ac_vpsub
7691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7693 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7694 s|@configure_input@|
$ac_sed_conf_input|
;t t
7695 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7696 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
7697 s
&@srcdir@
&$ac_srcdir&;t t
7698 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7699 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7700 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7701 s
&@builddir@
&$ac_builddir&;t t
7702 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7703 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7704 s
&@INSTALL@
&$ac_INSTALL&;t t
7705 $ac_datarootdir_hack
7707 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
7708 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
7710 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7711 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
7712 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7713 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7715 which seems to be undefined. Please make sure it is defined" >&5
7716 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7717 which seems to be undefined. Please make sure it is defined" >&2;}
7719 rm -f "$ac_tmp/stdin"
7721 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7722 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7724 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7730 if test x"$ac_file" != x-; then
7732 $as_echo "/* $configure_input */" \
7733 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7734 } >"$ac_tmp/config.h" \
7735 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7736 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7738 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7741 mv "$ac_tmp/config.h" "$ac_file" \
7742 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7745 $as_echo "/* $configure_input */" \
7746 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7747 || as_fn_error $? "could not create -" "$LINENO" 5
7751 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7752 $as_echo "$as_me: executing $ac_file commands" >&6;}
7757 case $ac_file$ac_mode in
7759 # Makefile uses this timestamp file to record whether config.h is up to date.
7769 ac_clean_files=$ac_clean_files_save
7771 test $ac_write_fail = 0 ||
7772 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7775 # configure is writing to config.log, and then calls config.status.
7776 # config.status does its own redirection, appending to config.log.
7777 # Unfortunately, on DOS this fails, as config.log is still kept open
7778 # by configure, so config.status won't be able to
write to it
; its
7779 # output is simply discarded. So we exec the FD to /dev/null,
7780 # effectively closing config.log, so it can be properly (re)opened and
7781 # appended to by config.status. When coming back to configure, we
7782 # need to make the FD available again.
7783 if test "$no_create" != yes; then
7785 ac_config_status_args
=
7786 test "$silent" = yes &&
7787 ac_config_status_args
="$ac_config_status_args --quiet"
7789 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7791 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7792 # would make configure fail if this is the last instruction.
7793 $ac_cs_success || as_fn_exit
1
7795 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7797 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}