2 # From configure.in for Readline 4.3, version 2.45, from autoconf version AC_ACVERSION.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for readline 4.3.
6 # Report bugs to <bug-readline@gnu.org>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
25 DUALCASE
=1; export DUALCASE
# for MKS sh
27 # Support unset when possible.
28 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C
; export $as_var
54 # Required to use basename.
55 if expr a
: '\(a\)' >/dev
/null
2>&1; then
61 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me
=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits
='0123456789'
87 as_cr_alnum
=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
105 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself
=$0 ;;
112 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir
=.
117 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x
; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
134 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir
=.
138 for as_base
in sh bash ksh sh5
; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
147 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
148 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
149 CONFIG_SHELL
=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x
$as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c
*,-n*) ECHO_N
= ECHO_C
='
193 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
194 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
197 if expr a
: '\(a\)' >/dev
/null
2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.
file
205 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe
; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.
file conf$$
2>/dev
/null
; then
219 rm -f conf$$ conf$$.exe conf$$.
file
221 if mkdir
-p .
2>/dev
/null
; then
224 test -d .
/-p && rmdir .
/-p
228 as_executable_p
="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
257 ac_default_prefix
=/usr
/local
258 ac_config_libobj_dir
=.
263 SHELL
=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
271 PACKAGE_NAME
='readline'
272 PACKAGE_TARNAME
='readline'
273 PACKAGE_VERSION
='4.3'
274 PACKAGE_STRING
='readline 4.3'
275 PACKAGE_BUGREPORT
='bug-readline@gnu.org'
277 ac_unique_file
="readline.h"
278 # Factoring default headers for most tests.
279 ac_includes_default
="\
282 # include <sys/types.h>
285 # include <sys/stat.h>
296 # if !STDC_HEADERS && HAVE_MEMORY_H
302 # include <strings.h>
305 # include <inttypes.h>
315 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CROSS_COMPILING_FLAG CC_FOR_BUILD INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR RANLIB ac_ct_RANLIB MAKE_SHELL WCWIDTH_OBJ SHOBJ_CC SHOBJ_CFLAGS SHOBJ_LD SHOBJ_LDFLAGS SHOBJ_XLDFLAGS SHOBJ_LIBS SHOBJ_STATUS SHLIB_STATUS SHLIB_XLDFLAGS SHLIB_LIBSUFF SHLIB_LIBVERSION SHLIB_LIBS SHLIB_MAJOR SHLIB_MINOR STATIC_TARGET SHARED_TARGET STATIC_INSTALL_TARGET SHARED_INSTALL_TARGET BUILD_DIR LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS ARFLAGS LIBVERSION TERMCAP_LIB LIBOBJS LTLIBOBJS'
318 # Initialize some variables set by options.
320 ac_init_version
=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name
=s
,x
,x
,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir
='${exec_prefix}/bin'
344 sbindir
='${exec_prefix}/sbin'
345 libexecdir
='${exec_prefix}/libexec'
346 datadir
='${prefix}/share'
347 sysconfdir
='${prefix}/etc'
348 sharedstatedir
='${prefix}/com'
349 localstatedir
='${prefix}/var'
350 libdir
='${exec_prefix}/lib'
351 includedir
='${prefix}/include'
352 oldincludedir
='/usr/include'
353 infodir
='${prefix}/info'
354 mandir
='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
374 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
377 -build |
--build |
--buil |
--bui |
--bu)
378 ac_prev
=build_alias
;;
379 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
380 build_alias
=$ac_optarg ;;
382 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
383 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
384 ac_prev
=cache_file
;;
385 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
386 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
387 cache_file
=$ac_optarg ;;
390 cache_file
=config.cache
;;
392 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
394 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
396 datadir
=$ac_optarg ;;
398 -disable-* |
--disable-*)
399 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* |
--enable-*)
408 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
421 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
422 |
--exec |
--exe |
--ex)
423 ac_prev
=exec_prefix
;;
424 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
425 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
426 |
--exec=* |
--exe=* |
--ex=*)
427 exec_prefix
=$ac_optarg ;;
429 -gas |
--gas |
--ga |
--g)
430 # Obsolete; use --with-gas.
433 -help |
--help |
--hel |
--he |
-h)
435 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
436 ac_init_help
=recursive
;;
437 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
438 ac_init_help
=short
;;
440 -host |
--host |
--hos |
--ho)
441 ac_prev
=host_alias
;;
442 -host=* |
--host=* |
--hos=* |
--ho=*)
443 host_alias
=$ac_optarg ;;
445 -includedir |
--includedir |
--includedi |
--included |
--include \
446 |
--includ |
--inclu |
--incl |
--inc)
447 ac_prev
=includedir
;;
448 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
449 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
450 includedir
=$ac_optarg ;;
452 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
454 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
455 infodir
=$ac_optarg ;;
457 -libdir |
--libdir |
--libdi |
--libd)
459 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
462 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
463 |
--libexe |
--libex |
--libe)
464 ac_prev
=libexecdir
;;
465 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
466 |
--libexe=* |
--libex=* |
--libe=*)
467 libexecdir
=$ac_optarg ;;
469 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
470 |
--localstate |
--localstat |
--localsta |
--localst \
471 |
--locals |
--local |
--loca |
--loc |
--lo)
472 ac_prev
=localstatedir
;;
473 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
474 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
475 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
476 localstatedir
=$ac_optarg ;;
478 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
480 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
484 # Obsolete; use --without-fp.
487 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
488 |
--no-cr |
--no-c |
-n)
491 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
492 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
495 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
496 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
497 |
--oldin |
--oldi |
--old |
--ol |
--o)
498 ac_prev
=oldincludedir
;;
499 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
500 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
501 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
502 oldincludedir
=$ac_optarg ;;
504 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
506 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
509 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
510 |
--program-pre |
--program-pr |
--program-p)
511 ac_prev
=program_prefix
;;
512 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
513 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
514 program_prefix
=$ac_optarg ;;
516 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
517 |
--program-suf |
--program-su |
--program-s)
518 ac_prev
=program_suffix
;;
519 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
520 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
521 program_suffix
=$ac_optarg ;;
523 -program-transform-name |
--program-transform-name \
524 |
--program-transform-nam |
--program-transform-na \
525 |
--program-transform-n |
--program-transform- \
526 |
--program-transform |
--program-transfor \
527 |
--program-transfo |
--program-transf \
528 |
--program-trans |
--program-tran \
529 |
--progr-tra |
--program-tr |
--program-t)
530 ac_prev
=program_transform_name
;;
531 -program-transform-name=* |
--program-transform-name=* \
532 |
--program-transform-nam=* |
--program-transform-na=* \
533 |
--program-transform-n=* |
--program-transform-=* \
534 |
--program-transform=* |
--program-transfor=* \
535 |
--program-transfo=* |
--program-transf=* \
536 |
--program-trans=* |
--program-tran=* \
537 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
538 program_transform_name
=$ac_optarg ;;
540 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
541 |
-silent |
--silent |
--silen |
--sile |
--sil)
544 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
546 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
548 sbindir
=$ac_optarg ;;
550 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
551 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
552 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
554 ac_prev
=sharedstatedir
;;
555 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
556 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
557 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
559 sharedstatedir
=$ac_optarg ;;
561 -site |
--site |
--sit)
563 -site=* |
--site=* |
--sit=*)
566 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
568 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
571 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
572 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
573 ac_prev
=sysconfdir
;;
574 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
575 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
576 sysconfdir
=$ac_optarg ;;
578 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
579 ac_prev
=target_alias
;;
580 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
581 target_alias
=$ac_optarg ;;
583 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
586 -version |
--version |
--versio |
--versi |
--vers |
-V)
590 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package
=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* |
--without-*)
603 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package
=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
616 |
--x-incl |
--x-inc |
--x-in |
--x-i)
617 ac_prev
=x_includes
;;
618 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
619 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
620 x_includes
=$ac_optarg ;;
622 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
623 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
624 ac_prev
=x_libraries
;;
625 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
626 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
627 x_libraries
=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var
in exec_prefix prefix
664 eval ac_val
=$
`echo $ac_var`
666 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val
=$
`echo $ac_var`
678 [\\/$
]* | ?
:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x
; then
693 if test "x$build_alias" = x
; then
694 cross_compiling
=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
705 test "$silent" = yes && exec 6>/dev
/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted
=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir
=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted
=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set
=${build_alias+set}
745 ac_env_build_alias_value
=$build_alias
746 ac_cv_env_build_alias_set
=${build_alias+set}
747 ac_cv_env_build_alias_value
=$build_alias
748 ac_env_host_alias_set
=${host_alias+set}
749 ac_env_host_alias_value
=$host_alias
750 ac_cv_env_host_alias_set
=${host_alias+set}
751 ac_cv_env_host_alias_value
=$host_alias
752 ac_env_target_alias_set
=${target_alias+set}
753 ac_env_target_alias_value
=$target_alias
754 ac_cv_env_target_alias_set
=${target_alias+set}
755 ac_cv_env_target_alias_value
=$target_alias
756 ac_env_CC_set
=${CC+set}
758 ac_cv_env_CC_set
=${CC+set}
759 ac_cv_env_CC_value
=$CC
760 ac_env_CFLAGS_set
=${CFLAGS+set}
761 ac_env_CFLAGS_value
=$CFLAGS
762 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value
=$CFLAGS
764 ac_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_env_LDFLAGS_value
=$LDFLAGS
766 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value
=$LDFLAGS
768 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
772 ac_env_CPP_set
=${CPP+set}
773 ac_env_CPP_value
=$CPP
774 ac_cv_env_CPP_set
=${CPP+set}
775 ac_cv_env_CPP_value
=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
784 \`configure' configures readline 4.3 to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
838 --build=BUILD configure
for building on BUILD
[guessed
]
839 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive
) echo "Configuration of readline 4.3:";;
850 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
851 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
853 --enable-shared build shared libraries [default=NO]
856 --enable-static build static libraries [default=YES]
859 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
860 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
861 --with-curses use the curses library instead of the termcap
864 Some influential environment variables:
865 CC C compiler command
866 CFLAGS C compiler flags
867 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
868 nonstandard directory <lib dir>
869 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
870 headers in a nonstandard directory <include dir>
873 Use these variables to override the choices made by `configure' or to help
874 it to find libraries and programs with nonstandard names/locations.
876 Report bugs to <bug-readline@gnu.org>.
880 if test "$ac_init_help" = "recursive"; then
881 # If there are subdirs, report their specific --help.
883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884 test -d $ac_dir || continue
887 if test "$ac_dir" != .; then
888 ac_dir_suffix=/`echo "$ac_dir" | sed 's
,^\.
[\\/],,'`
889 # A "../" for each directory in $ac_dir_suffix.
890 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's
,/[^
\\/]*,..
/,g
'`
892 ac_dir_suffix= ac_top_builddir=
896 .) # No --srcdir option. We are building in place.
898 if test -z "$ac_top_builddir"; then
901 ac_top_srcdir=`echo $ac_top_builddir | sed 's
,/$
,,'`
903 [\\/]* | ?:[\\/]* ) # Absolute path.
904 ac_srcdir=$srcdir$ac_dir_suffix;
905 ac_top_srcdir=$srcdir ;;
907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908 ac_top_srcdir=$ac_top_builddir$srcdir ;;
911 # Do not use `cd foo && pwd` to compute absolute paths, because
912 # the directories may not exist.
914 .) ac_abs_builddir="$ac_dir";;
917 .) ac_abs_builddir=`pwd`;;
918 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
919 *) ac_abs_builddir=`pwd`/"$ac_dir";;
922 case $ac_abs_builddir in
923 .) ac_abs_top_builddir=${ac_top_builddir}.;;
925 case ${ac_top_builddir}. in
926 .) ac_abs_top_builddir=$ac_abs_builddir;;
927 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
928 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
931 case $ac_abs_builddir in
932 .) ac_abs_srcdir=$ac_srcdir;;
935 .) ac_abs_srcdir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
937 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
940 case $ac_abs_builddir in
941 .) ac_abs_top_srcdir=$ac_top_srcdir;;
943 case $ac_top_srcdir in
944 .) ac_abs_top_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
946 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
951 # Check for guested configure; otherwise get Cygnus style configure.
952 if test -f $ac_srcdir/configure.gnu; then
954 $SHELL $ac_srcdir/configure.gnu --help=recursive
955 elif test -f $ac_srcdir/configure; then
957 $SHELL $ac_srcdir/configure --help=recursive
958 elif test -f $ac_srcdir/configure.ac ||
959 test -f $ac_srcdir/configure.in; then
963 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
969 test -n "$ac_init_help" && exit 0
970 if $ac_init_version; then
972 readline configure 4.3
973 generated by GNU Autoconf 2.59
975 Copyright (C) 2003 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
983 This file contains any messages produced by compilers while
984 running configure, to aid debugging if configure makes a mistake.
986 It was created by readline $as_me 4.3, which was
987 generated by GNU Autoconf 2.59. Invocation command line was
998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1010 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 test -z "$as_dir" && as_dir=.
1022 echo "PATH: $as_dir"
1037 # Keep a trace of the command line.
1038 # Strip out --no-create and --no-recursion so they do not pile up.
1039 # Strip out --silent because we don't want to record it
for future runs.
1040 # Also quote any args containing shell meta-characters.
1041 # Make two passes to allow for proper duplicate-argument suppression.
1046 ac_must_keep_next
=false
1052 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1053 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1054 |
-silent |
--silent |
--silen |
--sile |
--sil)
1056 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1060 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1062 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1063 if test $ac_must_keep_next = true
; then
1064 ac_must_keep_next
=false
# Got value, back to normal.
1067 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1068 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1069 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1070 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1071 case "$ac_configure_args0 " in
1072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1075 -* ) ac_must_keep_next
=true
;;
1078 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1079 # Get rid of the leading space.
1085 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1086 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1088 # When interrupted or exit'd, cleanup temporary files, and complete
1089 # config.log. We remove comments because anyway the quotes in there
1090 # would cause problems or look ugly.
1091 # WARNING: Be sure not to use single quotes in there, as some shells,
1092 # such as our DU 5.0 friend, will then `close' the trap.
1093 trap 'exit_status=$?
1094 # Save into config.log some information that might help in debugging.
1099 ## ---------------- ##
1100 ## Cache variables. ##
1101 ## ---------------- ##
1104 # The following way of writing the cache mishandles newlines in values,
1107 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1110 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1115 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122 ## ----------------- ##
1123 ## Output variables. ##
1124 ## ----------------- ##
1127 for ac_var in $ac_subst_vars
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1134 if test -n "$ac_subst_files"; then
1141 for ac_var in $ac_subst_files
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1149 if test -s confdefs.h; then
1156 sed "/^$/d" confdefs.h | sort
1159 test "$ac_signal" != 0 &&
1160 echo "$as_me: caught signal $ac_signal"
1161 echo "$as_me: exit $exit_status"
1163 rm -f core *.core &&
1164 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1167 for ac_signal
in 1 2 13 15; do
1168 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1173 rm -rf conftest
* confdefs.h
1174 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1177 # Predefined preprocessor variables.
1179 cat >>confdefs.h
<<_ACEOF
1180 #define PACKAGE_NAME "$PACKAGE_NAME"
1184 cat >>confdefs.h
<<_ACEOF
1185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189 cat >>confdefs.h
<<_ACEOF
1190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1194 cat >>confdefs.h
<<_ACEOF
1195 #define PACKAGE_STRING "$PACKAGE_STRING"
1199 cat >>confdefs.h
<<_ACEOF
1200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204 # Let the site file select an alternate cache file if it wants to.
1205 # Prefer explicitly selected file to automatically selected ones.
1206 if test -z "$CONFIG_SITE"; then
1207 if test "x$prefix" != xNONE
; then
1208 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1210 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1213 for ac_site_file
in $CONFIG_SITE; do
1214 if test -r "$ac_site_file"; then
1215 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1216 echo "$as_me: loading site script $ac_site_file" >&6;}
1217 sed 's/^/| /' "$ac_site_file" >&5
1222 if test -r "$cache_file"; then
1223 # Some versions of bash will fail to source /dev/null (special
1224 # files actually), so we avoid doing that.
1225 if test -f "$cache_file"; then
1226 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1227 echo "$as_me: loading cache $cache_file" >&6;}
1229 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1230 *) . .
/$cache_file;;
1234 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1235 echo "$as_me: creating cache $cache_file" >&6;}
1239 # Check that the precious variables saved in the cache have kept the same
1241 ac_cache_corrupted
=false
1242 for ac_var
in `(set) 2>&1 |
1243 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1244 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1245 eval ac_new_set
=\
$ac_env_${ac_var}_set
1246 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1247 eval ac_new_val
="\$ac_env_${ac_var}_value"
1248 case $ac_old_set,$ac_new_set in
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1252 ac_cache_corrupted
=: ;;
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1256 ac_cache_corrupted
=: ;;
1259 if test "x$ac_old_val" != "x$ac_new_val"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1263 echo "$as_me: former value: $ac_old_val" >&2;}
1264 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1265 echo "$as_me: current value: $ac_new_val" >&2;}
1266 ac_cache_corrupted
=:
1269 # Pass precious variables to config.status.
1270 if test "$ac_new_set" = set; then
1272 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 *) ac_arg
=$ac_var=$ac_new_val ;;
1276 case " $ac_configure_args " in
1277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1278 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1282 if $ac_cache_corrupted; then
1283 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1284 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1285 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1286 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1287 { (exit 1); exit 1; }; }
1291 ac_cpp
='$CPP $CPPFLAGS'
1292 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1293 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1294 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1326 ac_config_headers
="$ac_config_headers config.h"
1332 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1333 if test -f $ac_dir/install-sh
; then
1335 ac_install_sh
="$ac_aux_dir/install-sh -c"
1337 elif test -f $ac_dir/install.sh
; then
1339 ac_install_sh
="$ac_aux_dir/install.sh -c"
1341 elif test -f $ac_dir/shtool
; then
1343 ac_install_sh
="$ac_aux_dir/shtool install -c"
1347 if test -z "$ac_aux_dir"; then
1348 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1349 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1350 { (exit 1); exit 1; }; }
1352 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1353 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1354 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1356 # Make sure we can run config.sub.
1357 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1358 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1359 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1360 { (exit 1); exit 1; }; }
1362 echo "$as_me:$LINENO: checking build system type" >&5
1363 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1364 if test "${ac_cv_build+set}" = set; then
1365 echo $ECHO_N "(cached) $ECHO_C" >&6
1367 ac_cv_build_alias
=$build_alias
1368 test -z "$ac_cv_build_alias" &&
1369 ac_cv_build_alias
=`$ac_config_guess`
1370 test -z "$ac_cv_build_alias" &&
1371 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1372 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1373 { (exit 1); exit 1; }; }
1374 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1375 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1376 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1377 { (exit 1); exit 1; }; }
1380 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1381 echo "${ECHO_T}$ac_cv_build" >&6
1383 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1384 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1385 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1388 echo "$as_me:$LINENO: checking host system type" >&5
1389 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1390 if test "${ac_cv_host+set}" = set; then
1391 echo $ECHO_N "(cached) $ECHO_C" >&6
1393 ac_cv_host_alias
=$host_alias
1394 test -z "$ac_cv_host_alias" &&
1395 ac_cv_host_alias
=$ac_cv_build_alias
1396 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1397 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1398 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1399 { (exit 1); exit 1; }; }
1402 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1403 echo "${ECHO_T}$ac_cv_host" >&6
1405 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1406 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1407 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1414 # Check whether --with-curses or --without-curses was given.
1415 if test "${with_curses+set}" = set; then
1416 withval
="$with_curses"
1420 if test "$opt_curses" = "yes"; then
1427 # Check whether --enable-static or --disable-static was given.
1428 if test "${enable_static+set}" = set; then
1429 enableval
="$enable_static"
1430 opt_static_libs
=$enableval
1434 echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}"
1437 # We want these before the checks, so the checks can modify their values.
1438 test -z "$CFLAGS" && CFLAGS
=-g auto_cflags
=1
1440 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1441 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1442 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1443 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 cat >conftest.
make <<\_ACEOF
1448 @
echo 'ac_maketemp="$(MAKE)"'
1450 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1451 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1452 if test -n "$ac_maketemp"; then
1453 eval ac_cv_prog_make_
${ac_make}_set
=yes
1455 eval ac_cv_prog_make_
${ac_make}_set
=no
1459 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1460 echo "$as_me:$LINENO: result: yes" >&5
1461 echo "${ECHO_T}yes" >&6
1464 echo "$as_me:$LINENO: result: no" >&5
1465 echo "${ECHO_T}no" >&6
1466 SET_MAKE
="MAKE=${MAKE-make}"
1470 ac_cpp
='$CPP $CPPFLAGS'
1471 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1472 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1473 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1474 if test -n "$ac_tool_prefix"; then
1475 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1476 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_CC+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 if test -n "$CC"; then
1483 ac_cv_prog_CC
="$CC" # Let the user override the test.
1485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1489 test -z "$as_dir" && as_dir
=.
1490 for ac_exec_ext
in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502 if test -n "$CC"; then
1503 echo "$as_me:$LINENO: result: $CC" >&5
1504 echo "${ECHO_T}$CC" >&6
1506 echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1511 if test -z "$ac_cv_prog_CC"; then
1513 # Extract the first word of "gcc", so it can be a program name with args.
1514 set dummy gcc
; ac_word
=$2
1515 echo "$as_me:$LINENO: checking for $ac_word" >&5
1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1518 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 if test -n "$ac_ct_CC"; then
1521 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1527 test -z "$as_dir" && as_dir
=.
1528 for ac_exec_ext
in '' $ac_executable_extensions; do
1529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1530 ac_cv_prog_ac_ct_CC
="gcc"
1531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1540 if test -n "$ac_ct_CC"; then
1541 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1542 echo "${ECHO_T}$ac_ct_CC" >&6
1544 echo "$as_me:$LINENO: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1553 if test -z "$CC"; then
1554 if test -n "$ac_tool_prefix"; then
1555 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1556 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_CC+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 if test -n "$CC"; then
1563 ac_cv_prog_CC
="$CC" # Let the user override the test.
1565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1569 test -z "$as_dir" && as_dir
=.
1570 for ac_exec_ext
in '' $ac_executable_extensions; do
1571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1582 if test -n "$CC"; then
1583 echo "$as_me:$LINENO: result: $CC" >&5
1584 echo "${ECHO_T}$CC" >&6
1586 echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1591 if test -z "$ac_cv_prog_CC"; then
1593 # Extract the first word of "cc", so it can be a program name with args.
1594 set dummy cc
; ac_word
=$2
1595 echo "$as_me:$LINENO: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 if test -n "$ac_ct_CC"; then
1601 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1607 test -z "$as_dir" && as_dir
=.
1608 for ac_exec_ext
in '' $ac_executable_extensions; do
1609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610 ac_cv_prog_ac_ct_CC
="cc"
1611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1620 if test -n "$ac_ct_CC"; then
1621 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1622 echo "${ECHO_T}$ac_ct_CC" >&6
1624 echo "$as_me:$LINENO: result: no" >&5
1625 echo "${ECHO_T}no" >&6
1634 if test -z "$CC"; then
1635 # Extract the first word of "cc", so it can be a program name with args.
1636 set dummy cc
; ac_word
=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 if test -n "$CC"; then
1643 ac_cv_prog_CC
="$CC" # Let the user override the test.
1646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1650 test -z "$as_dir" && as_dir
=.
1651 for ac_exec_ext
in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1654 ac_prog_rejected
=yes
1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664 if test $ac_prog_rejected = yes; then
1665 # We found a bogon in the path, so make sure we never use it.
1666 set dummy
$ac_cv_prog_CC
1668 if test $# != 0; then
1669 # We chose a different compiler from the bogus one.
1670 # However, it has the same basename, so the bogon will be chosen
1671 # first if we set CC to just the basename; use the full file name.
1673 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1679 if test -n "$CC"; then
1680 echo "$as_me:$LINENO: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1688 if test -z "$CC"; then
1689 if test -n "$ac_tool_prefix"; then
1692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1693 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1694 echo "$as_me:$LINENO: checking for $ac_word" >&5
1695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1696 if test "${ac_cv_prog_CC+set}" = set; then
1697 echo $ECHO_N "(cached) $ECHO_C" >&6
1699 if test -n "$CC"; then
1700 ac_cv_prog_CC
="$CC" # Let the user override the test.
1702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1706 test -z "$as_dir" && as_dir
=.
1707 for ac_exec_ext
in '' $ac_executable_extensions; do
1708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1709 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719 if test -n "$CC"; then
1720 echo "$as_me:$LINENO: result: $CC" >&5
1721 echo "${ECHO_T}$CC" >&6
1723 echo "$as_me:$LINENO: result: no" >&5
1724 echo "${ECHO_T}no" >&6
1727 test -n "$CC" && break
1730 if test -z "$CC"; then
1734 # Extract the first word of "$ac_prog", so it can be a program name with args.
1735 set dummy
$ac_prog; ac_word
=$2
1736 echo "$as_me:$LINENO: checking for $ac_word" >&5
1737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1739 echo $ECHO_N "(cached) $ECHO_C" >&6
1741 if test -n "$ac_ct_CC"; then
1742 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1744 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1748 test -z "$as_dir" && as_dir
=.
1749 for ac_exec_ext
in '' $ac_executable_extensions; do
1750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751 ac_cv_prog_ac_ct_CC
="$ac_prog"
1752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1761 if test -n "$ac_ct_CC"; then
1762 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1763 echo "${ECHO_T}$ac_ct_CC" >&6
1765 echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1769 test -n "$ac_ct_CC" && break
1778 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1779 See \`config.log' for more details." >&5
1780 echo "$as_me: error: no acceptable C compiler found in \$PATH
1781 See \`config.log' for more details." >&2;}
1782 { (exit 1); exit 1; }; }
1784 # Provide some information about the compiler.
1785 echo "$as_me:$LINENO:" \
1786 "checking for C compiler version" >&5
1787 ac_compiler
=`set X $ac_compile; echo $2`
1788 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1789 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }
1793 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1794 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }
1798 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1799 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1802 (exit $ac_status); }
1804 cat >conftest.
$ac_ext <<_ACEOF
1807 cat confdefs.h
>>conftest.
$ac_ext
1808 cat >>conftest.
$ac_ext <<_ACEOF
1809 /* end confdefs.h. */
1819 ac_clean_files_save
=$ac_clean_files
1820 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1821 # Try to create an executable without -o first, disregard a.out.
1822 # It will help us diagnose broken compilers, and finding out an intuition
1824 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1825 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1826 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1827 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1828 (eval $ac_link_default) 2>&5
1830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1831 (exit $ac_status); }; then
1832 # Find the output, starting from the most likely. This scheme is
1833 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1836 # Be careful to initialize this variable, since it used to be cached.
1837 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1839 # b.out is created by i960 compilers.
1840 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1842 test -f "$ac_file" ||
continue
1844 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1847 # This is the source file.
1850 # We found the default executable, but exeext='' is most
1854 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1855 # FIXME: I believe we export ac_cv_exeext for Libtool,
1856 # but it would be cool to find out if it's true. Does anybody
1857 # maintain Libtool? --akim.
1865 echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.
$ac_ext >&5
1868 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1869 See \`config.log' for more details." >&5
1870 echo "$as_me: error: C compiler cannot create executables
1871 See \`config.log' for more details." >&2;}
1872 { (exit 77); exit 77; }; }
1875 ac_exeext
=$ac_cv_exeext
1876 echo "$as_me:$LINENO: result: $ac_file" >&5
1877 echo "${ECHO_T}$ac_file" >&6
1879 # Check the compiler produces executables we can run. If not, either
1880 # the compiler is broken, or we cross compile.
1881 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1884 # If not cross compiling, check that we can run a simple program.
1885 if test "$cross_compiling" != yes; then
1886 if { ac_try
='./$ac_file'
1887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; }; then
1894 if test "$cross_compiling" = maybe
; then
1897 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1898 If you meant to cross compile, use \`--host'.
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot run C compiled programs.
1901 If you meant to cross compile, use \`--host'.
1902 See \`config.log' for more details." >&2;}
1903 { (exit 1); exit 1; }; }
1907 echo "$as_me:$LINENO: result: yes" >&5
1908 echo "${ECHO_T}yes" >&6
1910 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1911 ac_clean_files
=$ac_clean_files_save
1912 # Check the compiler produces executables we can run. If not, either
1913 # the compiler is broken, or we cross compile.
1914 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1915 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1916 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1917 echo "${ECHO_T}$cross_compiling" >&6
1919 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1920 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1922 (eval $ac_link) 2>&5
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }; then
1926 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1927 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1928 # work properly (i.e., refer to `conftest.exe'), while it won't with
1930 for ac_file
in conftest.exe conftest conftest.
*; do
1931 test -f "$ac_file" ||
continue
1933 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1934 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1941 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1942 See \`config.log' for more details." >&5
1943 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1944 See \`config.log' for more details." >&2;}
1945 { (exit 1); exit 1; }; }
1948 rm -f conftest
$ac_cv_exeext
1949 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1950 echo "${ECHO_T}$ac_cv_exeext" >&6
1952 rm -f conftest.
$ac_ext
1953 EXEEXT
=$ac_cv_exeext
1955 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1956 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1957 if test "${ac_cv_objext+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 cat >conftest.
$ac_ext <<_ACEOF
1963 cat confdefs.h
>>conftest.
$ac_ext
1964 cat >>conftest.
$ac_ext <<_ACEOF
1965 /* end confdefs.h. */
1975 rm -f conftest.o conftest.obj
1976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1977 (eval $ac_compile) 2>&5
1979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980 (exit $ac_status); }; then
1981 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1983 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1984 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1989 echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.
$ac_ext >&5
1992 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1993 See \`config.log' for more details." >&5
1994 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1995 See \`config.log' for more details." >&2;}
1996 { (exit 1); exit 1; }; }
1999 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2001 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2002 echo "${ECHO_T}$ac_cv_objext" >&6
2003 OBJEXT
=$ac_cv_objext
2005 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2006 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2007 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 cat >conftest.
$ac_ext <<_ACEOF
2013 cat confdefs.h
>>conftest.
$ac_ext
2014 cat >>conftest.
$ac_ext <<_ACEOF
2015 /* end confdefs.h. */
2028 rm -f conftest.
$ac_objext
2029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2030 (eval $ac_compile) 2>conftest.er1
2032 grep -v '^ *+' conftest.er1
>conftest.err
2034 cat conftest.err
>&5
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); } &&
2037 { ac_try
='test -z "$ac_c_werror_flag"
2038 || test ! -s conftest.err'
2039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }; } &&
2044 { ac_try
='test -s conftest.$ac_objext'
2045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); }; }; then
2052 echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.
$ac_ext >&5
2057 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2058 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2061 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2062 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2063 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2064 ac_test_CFLAGS
=${CFLAGS+set}
2065 ac_save_CFLAGS
=$CFLAGS
2067 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2068 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2069 if test "${ac_cv_prog_cc_g+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 cat >conftest.
$ac_ext <<_ACEOF
2075 cat confdefs.h
>>conftest.
$ac_ext
2076 cat >>conftest.
$ac_ext <<_ACEOF
2077 /* end confdefs.h. */
2087 rm -f conftest.
$ac_objext
2088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2089 (eval $ac_compile) 2>conftest.er1
2091 grep -v '^ *+' conftest.er1
>conftest.err
2093 cat conftest.err
>&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); } &&
2096 { ac_try
='test -z "$ac_c_werror_flag"
2097 || test ! -s conftest.err'
2098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }; } &&
2103 { ac_try
='test -s conftest.$ac_objext'
2104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; }; then
2111 echo "$as_me: failed program was:" >&5
2112 sed 's/^/| /' conftest.
$ac_ext >&5
2116 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2118 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2119 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2120 if test "$ac_test_CFLAGS" = set; then
2121 CFLAGS
=$ac_save_CFLAGS
2122 elif test $ac_cv_prog_cc_g = yes; then
2123 if test "$GCC" = yes; then
2129 if test "$GCC" = yes; then
2135 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2136 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2137 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 ac_cv_prog_cc_stdc
=no
2142 cat >conftest.
$ac_ext <<_ACEOF
2145 cat confdefs.h
>>conftest.
$ac_ext
2146 cat >>conftest.
$ac_ext <<_ACEOF
2147 /* end confdefs.h. */
2150 #include <sys/types.h>
2151 #include <sys/stat.h>
2152 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2153 struct buf { int x; };
2154 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2155 static char *e (p, i)
2161 static char *f (char * (*g) (char **, int), char **p, ...)
2166 s = g (p, va_arg (v,int));
2171 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2172 function prototypes and stuff, but not '\xHH' hex character constants.
2173 These don't provoke an error unfortunately, instead are silently treated
2174 as 'x'. The following induces an error, until -std1 is added to get
2175 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2176 array size at least. It's necessary to write '\x00'==0 to get something
2177 that's true only with -std1. */
2178 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2180 int test (int i, double x);
2181 struct s1 {int (*f) (int a);};
2182 struct s2 {int (*f) (double a);};
2183 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2189 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2194 # Don't try gcc -ansi; that turns off useful extensions and
2195 # breaks some systems' header files.
2196 # AIX -qlanglvl=ansi
2197 # Ultrix and OSF/1 -std1
2198 # HP-UX 10.20 and later -Ae
2199 # HP-UX older versions -Aa -D_HPUX_SOURCE
2200 # SVR4 -Xc -D__EXTENSIONS__
2201 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2203 CC
="$ac_save_CC $ac_arg"
2204 rm -f conftest.
$ac_objext
2205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206 (eval $ac_compile) 2>conftest.er1
2208 grep -v '^ *+' conftest.er1
>conftest.err
2210 cat conftest.err
>&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); } &&
2213 { ac_try
='test -z "$ac_c_werror_flag"
2214 || test ! -s conftest.err'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; } &&
2220 { ac_try
='test -s conftest.$ac_objext'
2221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2226 ac_cv_prog_cc_stdc
=$ac_arg
2229 echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.
$ac_ext >&5
2233 rm -f conftest.err conftest.
$ac_objext
2235 rm -f conftest.
$ac_ext conftest.
$ac_objext
2240 case "x$ac_cv_prog_cc_stdc" in
2242 echo "$as_me:$LINENO: result: none needed" >&5
2243 echo "${ECHO_T}none needed" >&6 ;;
2245 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2246 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2247 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2250 # Some people use a C++ compiler to compile C. Since we use `exit',
2251 # in C++ we need to declare it. In case someone uses the same compiler
2252 # for both compiling C and C++ we need to have the C++ compiler decide
2253 # the declaration of exit, since it's the most demanding environment.
2254 cat >conftest.
$ac_ext <<_ACEOF
2259 rm -f conftest.
$ac_objext
2260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261 (eval $ac_compile) 2>conftest.er1
2263 grep -v '^ *+' conftest.er1
>conftest.err
2265 cat conftest.err
>&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); } &&
2268 { ac_try
='test -z "$ac_c_werror_flag"
2269 || test ! -s conftest.err'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; } &&
2275 { ac_try
='test -s conftest.$ac_objext'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; }; then
2281 for ac_declaration
in \
2283 'extern "C" void std::exit (int) throw (); using std::exit;' \
2284 'extern "C" void std::exit (int); using std::exit;' \
2285 'extern "C" void exit (int) throw ();' \
2286 'extern "C" void exit (int);' \
2289 cat >conftest.
$ac_ext <<_ACEOF
2292 cat confdefs.h
>>conftest.
$ac_ext
2293 cat >>conftest.
$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2305 rm -f conftest.
$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2309 grep -v '^ *+' conftest.er1
>conftest.err
2311 cat conftest.err
>&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try
='test -z "$ac_c_werror_flag"
2315 || test ! -s conftest.err'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; } &&
2321 { ac_try
='test -s conftest.$ac_objext'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
2329 echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.
$ac_ext >&5
2334 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2335 cat >conftest.
$ac_ext <<_ACEOF
2338 cat confdefs.h
>>conftest.
$ac_ext
2339 cat >>conftest.
$ac_ext <<_ACEOF
2340 /* end confdefs.h. */
2350 rm -f conftest.
$ac_objext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 (eval $ac_compile) 2>conftest.er1
2354 grep -v '^ *+' conftest.er1
>conftest.err
2356 cat conftest.err
>&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
2359 { ac_try
='test -z "$ac_c_werror_flag"
2360 || test ! -s conftest.err'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; } &&
2366 { ac_try
='test -s conftest.$ac_objext'
2367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }; }; then
2374 echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.
$ac_ext >&5
2378 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2381 if test -n "$ac_declaration"; then
2382 echo '#ifdef __cplusplus' >>confdefs.h
2383 echo $ac_declaration >>confdefs.h
2384 echo '#endif' >>confdefs.h
2388 echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.
$ac_ext >&5
2392 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2394 ac_cpp
='$CPP $CPPFLAGS'
2395 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2401 ac_cpp
='$CPP $CPPFLAGS'
2402 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2403 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2404 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2405 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2406 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2407 # On Suns, sometimes $CPP names a directory.
2408 if test -n "$CPP" && test -d "$CPP"; then
2411 if test -z "$CPP"; then
2412 if test "${ac_cv_prog_CPP+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2415 # Double quotes because CPP needs to be expanded
2416 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2419 for ac_c_preproc_warn_flag
in '' yes
2421 # Use a header file that comes with gcc, so configuring glibc
2422 # with a fresh cross-compiler works.
2423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2424 # <limits.h> exists even on freestanding compilers.
2425 # On the NeXT, cc -E runs the code through the compiler's parser,
2426 # not just through cpp. "Syntax error" is here to catch this case.
2427 cat >conftest.
$ac_ext <<_ACEOF
2430 cat confdefs.h
>>conftest.
$ac_ext
2431 cat >>conftest.
$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2434 # include <limits.h>
2436 # include <assert.h>
2440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2441 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2443 grep -v '^ *+' conftest.er1
>conftest.err
2445 cat conftest.err
>&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); } >/dev
/null
; then
2448 if test -s conftest.err
; then
2449 ac_cpp_err
=$ac_c_preproc_warn_flag
2450 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2457 if test -z "$ac_cpp_err"; then
2460 echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.
$ac_ext >&5
2463 # Broken: fails on valid input.
2466 rm -f conftest.err conftest.
$ac_ext
2468 # OK, works on sane cases. Now check whether non-existent headers
2469 # can be detected and how.
2470 cat >conftest.
$ac_ext <<_ACEOF
2473 cat confdefs.h
>>conftest.
$ac_ext
2474 cat >>conftest.
$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2476 #include <ac_nonexistent.h>
2478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2479 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2481 grep -v '^ *+' conftest.er1
>conftest.err
2483 cat conftest.err
>&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); } >/dev
/null
; then
2486 if test -s conftest.err
; then
2487 ac_cpp_err
=$ac_c_preproc_warn_flag
2488 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2495 if test -z "$ac_cpp_err"; then
2496 # Broken: success on invalid input.
2499 echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.
$ac_ext >&5
2502 # Passes both tests.
2506 rm -f conftest.err conftest.
$ac_ext
2509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2510 rm -f conftest.err conftest.
$ac_ext
2511 if $ac_preproc_ok; then
2523 echo "$as_me:$LINENO: result: $CPP" >&5
2524 echo "${ECHO_T}$CPP" >&6
2526 for ac_c_preproc_warn_flag
in '' yes
2528 # Use a header file that comes with gcc, so configuring glibc
2529 # with a fresh cross-compiler works.
2530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2531 # <limits.h> exists even on freestanding compilers.
2532 # On the NeXT, cc -E runs the code through the compiler's parser,
2533 # not just through cpp. "Syntax error" is here to catch this case.
2534 cat >conftest.
$ac_ext <<_ACEOF
2537 cat confdefs.h
>>conftest.
$ac_ext
2538 cat >>conftest.
$ac_ext <<_ACEOF
2539 /* end confdefs.h. */
2541 # include <limits.h>
2543 # include <assert.h>
2547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2548 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2550 grep -v '^ *+' conftest.er1
>conftest.err
2552 cat conftest.err
>&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); } >/dev
/null
; then
2555 if test -s conftest.err
; then
2556 ac_cpp_err
=$ac_c_preproc_warn_flag
2557 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2564 if test -z "$ac_cpp_err"; then
2567 echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.
$ac_ext >&5
2570 # Broken: fails on valid input.
2573 rm -f conftest.err conftest.
$ac_ext
2575 # OK, works on sane cases. Now check whether non-existent headers
2576 # can be detected and how.
2577 cat >conftest.
$ac_ext <<_ACEOF
2580 cat confdefs.h
>>conftest.
$ac_ext
2581 cat >>conftest.
$ac_ext <<_ACEOF
2582 /* end confdefs.h. */
2583 #include <ac_nonexistent.h>
2585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2586 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2588 grep -v '^ *+' conftest.er1
>conftest.err
2590 cat conftest.err
>&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } >/dev
/null
; then
2593 if test -s conftest.err
; then
2594 ac_cpp_err
=$ac_c_preproc_warn_flag
2595 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2602 if test -z "$ac_cpp_err"; then
2603 # Broken: success on invalid input.
2606 echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.
$ac_ext >&5
2609 # Passes both tests.
2613 rm -f conftest.err conftest.
$ac_ext
2616 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2617 rm -f conftest.err conftest.
$ac_ext
2618 if $ac_preproc_ok; then
2621 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2622 See \`config.log' for more details." >&5
2623 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2624 See \`config.log' for more details." >&2;}
2625 { (exit 1); exit 1; }; }
2629 ac_cpp
='$CPP $CPPFLAGS'
2630 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2631 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2632 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2635 echo "$as_me:$LINENO: checking for egrep" >&5
2636 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2637 if test "${ac_cv_prog_egrep+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2641 then ac_cv_prog_egrep
='grep -E'
2642 else ac_cv_prog_egrep
='egrep'
2645 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2646 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2647 EGREP
=$ac_cv_prog_egrep
2650 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2651 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2652 if test "${ac_cv_header_stdc+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 cat >conftest.
$ac_ext <<_ACEOF
2658 cat confdefs.h
>>conftest.
$ac_ext
2659 cat >>conftest.
$ac_ext <<_ACEOF
2660 /* end confdefs.h. */
2674 rm -f conftest.
$ac_objext
2675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2676 (eval $ac_compile) 2>conftest.er1
2678 grep -v '^ *+' conftest.er1
>conftest.err
2680 cat conftest.err
>&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); } &&
2683 { ac_try
='test -z "$ac_c_werror_flag"
2684 || test ! -s conftest.err'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; } &&
2690 { ac_try
='test -s conftest.$ac_objext'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; }; then
2696 ac_cv_header_stdc
=yes
2698 echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.
$ac_ext >&5
2701 ac_cv_header_stdc
=no
2703 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2705 if test $ac_cv_header_stdc = yes; then
2706 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2707 cat >conftest.
$ac_ext <<_ACEOF
2710 cat confdefs.h
>>conftest.
$ac_ext
2711 cat >>conftest.
$ac_ext <<_ACEOF
2712 /* end confdefs.h. */
2716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2717 $EGREP "memchr" >/dev
/null
2>&1; then
2720 ac_cv_header_stdc
=no
2726 if test $ac_cv_header_stdc = yes; then
2727 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2728 cat >conftest.
$ac_ext <<_ACEOF
2731 cat confdefs.h
>>conftest.
$ac_ext
2732 cat >>conftest.
$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2738 $EGREP "free" >/dev
/null
2>&1; then
2741 ac_cv_header_stdc
=no
2747 if test $ac_cv_header_stdc = yes; then
2748 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2749 if test "$cross_compiling" = yes; then
2752 cat >conftest.
$ac_ext <<_ACEOF
2755 cat confdefs.h
>>conftest.
$ac_ext
2756 cat >>conftest.
$ac_ext <<_ACEOF
2757 /* end confdefs.h. */
2759 #if ((' ' & 0x0FF) == 0x020)
2760 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2761 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2763 # define ISLOWER(c) \
2764 (('a' <= (c) && (c) <= 'i') \
2765 || ('j' <= (c) && (c) <= 'r') \
2766 || ('s' <= (c) && (c) <= 'z'))
2767 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2770 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2775 for (i = 0; i < 256; i++)
2776 if (XOR (islower (i), ISLOWER (i))
2777 || toupper (i) != TOUPPER (i))
2782 rm -f conftest
$ac_exeext
2783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2784 (eval $ac_link) 2>&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2795 echo "$as_me: program exited with status $ac_status" >&5
2796 echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.
$ac_ext >&5
2800 ac_cv_header_stdc
=no
2802 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2806 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2807 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2808 if test $ac_cv_header_stdc = yes; then
2810 cat >>confdefs.h
<<\_ACEOF
2811 #define STDC_HEADERS 1
2816 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2826 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2827 inttypes.h stdint.h unistd.h
2829 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2830 echo "$as_me:$LINENO: checking for $ac_header" >&5
2831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 cat >conftest.
$ac_ext <<_ACEOF
2838 cat confdefs.h
>>conftest.
$ac_ext
2839 cat >>conftest.
$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2841 $ac_includes_default
2843 #include <$ac_header>
2845 rm -f conftest.
$ac_objext
2846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2847 (eval $ac_compile) 2>conftest.er1
2849 grep -v '^ *+' conftest.er1
>conftest.err
2851 cat conftest.err
>&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); } &&
2854 { ac_try
='test -z "$ac_c_werror_flag"
2855 || test ! -s conftest.err'
2856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }; } &&
2861 { ac_try
='test -s conftest.$ac_objext'
2862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; }; then
2867 eval "$as_ac_Header=yes"
2869 echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.
$ac_ext >&5
2872 eval "$as_ac_Header=no"
2874 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2879 cat >>confdefs.h
<<_ACEOF
2880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2888 if test "${ac_cv_header_minix_config_h+set}" = set; then
2889 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2890 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2891 if test "${ac_cv_header_minix_config_h+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2895 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2897 # Is the header compilable?
2898 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2899 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2900 cat >conftest.
$ac_ext <<_ACEOF
2903 cat confdefs.h
>>conftest.
$ac_ext
2904 cat >>conftest.
$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2906 $ac_includes_default
2907 #include <minix/config.h>
2909 rm -f conftest.
$ac_objext
2910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2911 (eval $ac_compile) 2>conftest.er1
2913 grep -v '^ *+' conftest.er1
>conftest.err
2915 cat conftest.err
>&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } &&
2918 { ac_try
='test -z "$ac_c_werror_flag"
2919 || test ! -s conftest.err'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; } &&
2925 { ac_try
='test -s conftest.$ac_objext'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2931 ac_header_compiler
=yes
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.
$ac_ext >&5
2936 ac_header_compiler
=no
2938 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2940 echo "${ECHO_T}$ac_header_compiler" >&6
2942 # Is the header present?
2943 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2944 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2945 cat >conftest.
$ac_ext <<_ACEOF
2948 cat confdefs.h
>>conftest.
$ac_ext
2949 cat >>conftest.
$ac_ext <<_ACEOF
2950 /* end confdefs.h. */
2951 #include <minix/config.h>
2953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2954 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2956 grep -v '^ *+' conftest.er1
>conftest.err
2958 cat conftest.err
>&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } >/dev
/null
; then
2961 if test -s conftest.err
; then
2962 ac_cpp_err
=$ac_c_preproc_warn_flag
2963 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2970 if test -z "$ac_cpp_err"; then
2971 ac_header_preproc
=yes
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.
$ac_ext >&5
2976 ac_header_preproc
=no
2978 rm -f conftest.err conftest.
$ac_ext
2979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2980 echo "${ECHO_T}$ac_header_preproc" >&6
2982 # So? What about this header?
2983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2985 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2986 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2987 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
2988 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
2989 ac_header_preproc
=yes
2992 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
2993 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
2994 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2995 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2996 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
2997 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
2998 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
2999 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3000 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3001 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3002 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3003 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3006 ## ----------------------------------- ##
3007 ## Report this to bug-readline@gnu.org ##
3008 ## ----------------------------------- ##
3011 sed "s/^/$as_me: WARNING: /" >&2
3014 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3015 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3016 if test "${ac_cv_header_minix_config_h+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 ac_cv_header_minix_config_h
=$ac_header_preproc
3021 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3022 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3025 if test $ac_cv_header_minix_config_h = yes; then
3032 if test "$MINIX" = yes; then
3034 cat >>confdefs.h
<<\_ACEOF
3035 #define _POSIX_SOURCE 1
3039 cat >>confdefs.h
<<\_ACEOF
3040 #define _POSIX_1_SOURCE 2
3044 cat >>confdefs.h
<<\_ACEOF
3052 if test "x$cross_compiling" = "xyes"; then
3055 cross_cache
=${srcdir}/cross-build
/cygwin.cache
3056 LOCAL_CFLAGS
="$LOCAL_CFLAGS -I${srcdir}/../libtermcap"
3059 cross_cache
=${srcdir}/cross-build
/mingw.cache
3061 *) echo "configure: cross-compiling for a non-cygwin target is not supported" >&2
3065 if test "x$cross_cache" != "x"; then
3066 if test -r "${cross_cache}"; then
3067 echo "loading cross-build cache file ${cross_cache}"
3074 if test "x$cross_compiling" = "xyes"; then
3075 CROSS_COMPILING_FLAG
=-DCROSS_COMPILING
3077 CROSS_COMPILING_FLAG
=
3081 if test -z "$CC_FOR_BUILD"; then
3082 if test "x$cross_compiling" = "xno"; then
3083 CC_FOR_BUILD
='$(CC)'
3091 # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
3092 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS
="$CFLAGS -O"
3094 if test $ac_cv_c_compiler_gnu = yes; then
3095 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3096 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3097 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 ac_pattern
="Autoconf.*'x'"
3101 cat >conftest.
$ac_ext <<_ACEOF
3104 cat confdefs.h
>>conftest.
$ac_ext
3105 cat >>conftest.
$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3111 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3112 ac_cv_prog_gcc_traditional
=yes
3114 ac_cv_prog_gcc_traditional
=no
3119 if test $ac_cv_prog_gcc_traditional = no
; then
3120 cat >conftest.
$ac_ext <<_ACEOF
3123 cat confdefs.h
>>conftest.
$ac_ext
3124 cat >>conftest.
$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3130 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3131 ac_cv_prog_gcc_traditional
=yes
3137 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3138 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3139 if test $ac_cv_prog_gcc_traditional = yes; then
3140 CC
="$CC -traditional"
3144 # Find a good install program. We prefer a C program (faster),
3145 # so one script is as good as another. But avoid the broken or
3146 # incompatible versions:
3147 # SysV /etc/install, /usr/sbin/install
3148 # SunOS /usr/etc/install
3149 # IRIX /sbin/install
3151 # AmigaOS /C/install, which installs bootblocks on floppy discs
3152 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3153 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3154 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3155 # OS/2's system install, which has a completely different semantic
3156 # ./install, which can be erroneously created by make from ./install.sh.
3157 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3158 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3159 if test -z "$INSTALL"; then
3160 if test "${ac_cv_path_install+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3167 test -z "$as_dir" && as_dir
=.
3168 # Account for people who put trailing slashes in PATH elements.
3170 .
/ | .
// |
/cC
/* | \
3171 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3172 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3175 # OSF1 and SCO ODT 3.0 have their own names for install.
3176 # Don't use installbsd from OSF since it installs stuff as root
3178 for ac_prog
in ginstall scoinst
install; do
3179 for ac_exec_ext
in '' $ac_executable_extensions; do
3180 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3181 if test $ac_prog = install &&
3182 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3183 # AIX install. It has an incompatible calling convention.
3185 elif test $ac_prog = install &&
3186 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3187 # program-specific install script used by HP pwplus--don't use.
3190 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3202 if test "${ac_cv_path_install+set}" = set; then
3203 INSTALL
=$ac_cv_path_install
3205 # As a last resort, use the slow shell script. We don't cache a
3206 # path for INSTALL within a source directory, because that will
3207 # break other packages using the cache if that directory is
3208 # removed, or if the path is relative.
3209 INSTALL
=$ac_install_sh
3212 echo "$as_me:$LINENO: result: $INSTALL" >&5
3213 echo "${ECHO_T}$INSTALL" >&6
3215 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3216 # It thinks the first close brace ends the variable substitution.
3217 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3219 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3221 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3223 # Extract the first word of "ar", so it can be a program name with args.
3224 set dummy
ar; ac_word
=$2
3225 echo "$as_me:$LINENO: checking for $ac_word" >&5
3226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3227 if test "${ac_cv_prog_AR+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 if test -n "$AR"; then
3231 ac_cv_prog_AR
="$AR" # Let the user override the test.
3233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3237 test -z "$as_dir" && as_dir
=.
3238 for ac_exec_ext
in '' $ac_executable_extensions; do
3239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3251 if test -n "$AR"; then
3252 echo "$as_me:$LINENO: result: $AR" >&5
3253 echo "${ECHO_T}$AR" >&6
3255 echo "$as_me:$LINENO: result: no" >&5
3256 echo "${ECHO_T}no" >&6
3259 test -n "$ARFLAGS" || ARFLAGS
="cr"
3260 if test -n "$ac_tool_prefix"; then
3261 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3262 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3263 echo "$as_me:$LINENO: checking for $ac_word" >&5
3264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3265 if test "${ac_cv_prog_RANLIB+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 if test -n "$RANLIB"; then
3269 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3275 test -z "$as_dir" && as_dir
=.
3276 for ac_exec_ext
in '' $ac_executable_extensions; do
3277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 RANLIB
=$ac_cv_prog_RANLIB
3288 if test -n "$RANLIB"; then
3289 echo "$as_me:$LINENO: result: $RANLIB" >&5
3290 echo "${ECHO_T}$RANLIB" >&6
3292 echo "$as_me:$LINENO: result: no" >&5
3293 echo "${ECHO_T}no" >&6
3297 if test -z "$ac_cv_prog_RANLIB"; then
3298 ac_ct_RANLIB
=$RANLIB
3299 # Extract the first word of "ranlib", so it can be a program name with args.
3300 set dummy ranlib
; ac_word
=$2
3301 echo "$as_me:$LINENO: checking for $ac_word" >&5
3302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3303 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 if test -n "$ac_ct_RANLIB"; then
3307 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3313 test -z "$as_dir" && as_dir
=.
3314 for ac_exec_ext
in '' $ac_executable_extensions; do
3315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3316 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3326 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3327 if test -n "$ac_ct_RANLIB"; then
3328 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3329 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3331 echo "$as_me:$LINENO: result: no" >&5
3332 echo "${ECHO_T}no" >&6
3335 RANLIB
=$ac_ct_RANLIB
3337 RANLIB
="$ac_cv_prog_RANLIB"
3344 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3345 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3346 if test "${ac_cv_c_const+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 cat >conftest.
$ac_ext <<_ACEOF
3352 cat confdefs.h
>>conftest.
$ac_ext
3353 cat >>conftest.
$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3359 /* FIXME: Include the comments suggested by Paul. */
3361 /* Ultrix mips cc rejects this. */
3362 typedef int charset[2];
3364 /* SunOS 4.1.1 cc rejects this. */
3365 char const *const *ccp;
3367 /* NEC SVR4.0.2 mips cc rejects this. */
3368 struct point {int x, y;};
3369 static struct point const zero = {0,0};
3370 /* AIX XL C 1.02.0.0 rejects this.
3371 It does not let you subtract one const X* pointer from another in
3372 an arm of an if-expression whose if-part is not a constant
3374 const char *g = "string";
3375 ccp = &g + (g ? g-g : 0);
3376 /* HPUX 7.0 cc rejects these. */
3379 ccp = (char const *const *) p;
3380 { /* SCO 3.2v4 cc rejects this. */
3382 char const *s = 0 ? (char *) 0 : (char const *) 0;
3386 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3388 const int *foo = &x[0];
3391 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3392 typedef const int *iptr;
3396 { /* AIX XL C 1.02.0.0 rejects this saying
3397 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3398 struct s { int j; const int *ap[3]; };
3399 struct s *b; b->j = 5;
3401 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3410 rm -f conftest.
$ac_objext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412 (eval $ac_compile) 2>conftest.er1
3414 grep -v '^ *+' conftest.er1
>conftest.err
3416 cat conftest.err
>&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try
='test -z "$ac_c_werror_flag"
3420 || test ! -s conftest.err'
3421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; } &&
3426 { ac_try
='test -s conftest.$ac_objext'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; }; then
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.
$ac_ext >&5
3439 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3441 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3442 echo "${ECHO_T}$ac_cv_c_const" >&6
3443 if test $ac_cv_c_const = no
; then
3445 cat >>confdefs.h
<<\_ACEOF
3451 echo "$as_me:$LINENO: checking for function prototypes" >&5
3452 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3453 if test "$ac_cv_prog_cc_stdc" != no
; then
3454 echo "$as_me:$LINENO: result: yes" >&5
3455 echo "${ECHO_T}yes" >&6
3457 cat >>confdefs.h
<<\_ACEOF
3458 #define PROTOTYPES 1
3462 cat >>confdefs.h
<<\_ACEOF
3463 #define __PROTOTYPES 1
3467 echo "$as_me:$LINENO: result: no" >&5
3468 echo "${ECHO_T}no" >&6
3472 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
3473 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
3474 if test "${ac_cv_c_char_unsigned+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 cat >conftest.
$ac_ext <<_ACEOF
3480 cat confdefs.h
>>conftest.
$ac_ext
3481 cat >>conftest.
$ac_ext <<_ACEOF
3482 /* end confdefs.h. */
3483 $ac_includes_default
3487 static int test_array [1 - 2 * !(((char) -1) < 0)];
3494 rm -f conftest.
$ac_objext
3495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3496 (eval $ac_compile) 2>conftest.er1
3498 grep -v '^ *+' conftest.er1
>conftest.err
3500 cat conftest.err
>&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } &&
3503 { ac_try
='test -z "$ac_c_werror_flag"
3504 || test ! -s conftest.err'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; } &&
3510 { ac_try
='test -s conftest.$ac_objext'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; }; then
3516 ac_cv_c_char_unsigned
=no
3518 echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.
$ac_ext >&5
3521 ac_cv_c_char_unsigned
=yes
3523 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3525 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
3526 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
3527 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3528 cat >>confdefs.h
<<\_ACEOF
3529 #define __CHAR_UNSIGNED__ 1
3535 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3536 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3537 if test "${ac_cv_type_signal+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 cat >conftest.
$ac_ext <<_ACEOF
3543 cat confdefs.h
>>conftest.
$ac_ext
3544 cat >>conftest.
$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3546 #include <sys/types.h>
3552 extern "C" void (*signal (int, void (*)(int)))(int);
3554 void (*signal ()) ();
3565 rm -f conftest.
$ac_objext
3566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3567 (eval $ac_compile) 2>conftest.er1
3569 grep -v '^ *+' conftest.er1
>conftest.err
3571 cat conftest.err
>&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } &&
3574 { ac_try
='test -z "$ac_c_werror_flag"
3575 || test ! -s conftest.err'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; } &&
3581 { ac_try
='test -s conftest.$ac_objext'
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; }; then
3587 ac_cv_type_signal
=void
3589 echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.
$ac_ext >&5
3592 ac_cv_type_signal
=int
3594 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3596 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3597 echo "${ECHO_T}$ac_cv_type_signal" >&6
3599 cat >>confdefs.h
<<_ACEOF
3600 #define RETSIGTYPE $ac_cv_type_signal
3605 echo "$as_me:$LINENO: checking for size_t" >&5
3606 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3607 if test "${ac_cv_type_size_t+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 cat >conftest.
$ac_ext <<_ACEOF
3613 cat confdefs.h
>>conftest.
$ac_ext
3614 cat >>conftest.
$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3616 $ac_includes_default
3622 if (sizeof (size_t))
3628 rm -f conftest.
$ac_objext
3629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3630 (eval $ac_compile) 2>conftest.er1
3632 grep -v '^ *+' conftest.er1
>conftest.err
3634 cat conftest.err
>&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } &&
3637 { ac_try
='test -z "$ac_c_werror_flag"
3638 || test ! -s conftest.err'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; } &&
3644 { ac_try
='test -s conftest.$ac_objext'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; }; then
3650 ac_cv_type_size_t
=yes
3652 echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.
$ac_ext >&5
3655 ac_cv_type_size_t
=no
3657 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3659 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3660 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3661 if test $ac_cv_type_size_t = yes; then
3665 cat >>confdefs.h
<<_ACEOF
3666 #define size_t unsigned
3671 echo "$as_me:$LINENO: checking for ssize_t" >&5
3672 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
3673 if test "${ac_cv_type_ssize_t+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 cat >conftest.
$ac_ext <<_ACEOF
3679 cat confdefs.h
>>conftest.
$ac_ext
3680 cat >>conftest.
$ac_ext <<_ACEOF
3681 /* end confdefs.h. */
3682 $ac_includes_default
3688 if (sizeof (ssize_t))
3694 rm -f conftest.
$ac_objext
3695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3696 (eval $ac_compile) 2>conftest.er1
3698 grep -v '^ *+' conftest.er1
>conftest.err
3700 cat conftest.err
>&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } &&
3703 { ac_try
='test -z "$ac_c_werror_flag"
3704 || test ! -s conftest.err'
3705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; } &&
3710 { ac_try
='test -s conftest.$ac_objext'
3711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; }; then
3716 ac_cv_type_ssize_t
=yes
3718 echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.
$ac_ext >&5
3721 ac_cv_type_ssize_t
=no
3723 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3725 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
3726 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
3727 if test $ac_cv_type_ssize_t = yes; then
3731 cat >>confdefs.h
<<_ACEOF
3738 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
3739 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
3740 if test "${ac_cv_header_stat_broken+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 cat >conftest.
$ac_ext <<_ACEOF
3746 cat confdefs.h
>>conftest.
$ac_ext
3747 cat >>conftest.
$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3749 #include <sys/types.h>
3750 #include <sys/stat.h>
3752 #if defined(S_ISBLK) && defined(S_IFDIR)
3753 # if S_ISBLK (S_IFDIR)
3758 #if defined(S_ISBLK) && defined(S_IFCHR)
3759 # if S_ISBLK (S_IFCHR)
3764 #if defined(S_ISLNK) && defined(S_IFREG)
3765 # if S_ISLNK (S_IFREG)
3770 #if defined(S_ISSOCK) && defined(S_IFREG)
3771 # if S_ISSOCK (S_IFREG)
3777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3778 $EGREP "You lose" >/dev
/null
2>&1; then
3779 ac_cv_header_stat_broken
=yes
3781 ac_cv_header_stat_broken
=no
3786 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
3787 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
3788 if test $ac_cv_header_stat_broken = yes; then
3790 cat >>confdefs.h
<<\_ACEOF
3791 #define STAT_MACROS_BROKEN 1
3802 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
3803 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3804 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3805 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 cat >conftest.
$ac_ext <<_ACEOF
3812 cat confdefs.h
>>conftest.
$ac_ext
3813 cat >>conftest.
$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3815 #include <sys/types.h>
3827 rm -f conftest.
$ac_objext
3828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3829 (eval $ac_compile) 2>conftest.er1
3831 grep -v '^ *+' conftest.er1
>conftest.err
3833 cat conftest.err
>&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
3836 { ac_try
='test -z "$ac_c_werror_flag"
3837 || test ! -s conftest.err'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; } &&
3843 { ac_try
='test -s conftest.$ac_objext'
3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; }; then
3849 eval "$as_ac_Header=yes"
3851 echo "$as_me: failed program was:" >&5
3852 sed 's/^/| /' conftest.
$ac_ext >&5
3854 eval "$as_ac_Header=no"
3856 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3861 cat >>confdefs.h
<<_ACEOF
3862 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3865 ac_header_dirent
=$ac_hdr; break
3869 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3870 if test $ac_header_dirent = dirent.h
; then
3871 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3872 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3873 if test "${ac_cv_search_opendir+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 ac_func_search_save_LIBS
=$LIBS
3877 ac_cv_search_opendir
=no
3878 cat >conftest.
$ac_ext <<_ACEOF
3881 cat confdefs.h
>>conftest.
$ac_ext
3882 cat >>conftest.
$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3885 /* Override any gcc2 internal prototype to avoid an error. */
3889 /* We use char because int might match the return type of a gcc2
3890 builtin and then its argument prototype would still apply. */
3900 rm -f conftest.
$ac_objext conftest
$ac_exeext
3901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3902 (eval $ac_link) 2>conftest.er1
3904 grep -v '^ *+' conftest.er1
>conftest.err
3906 cat conftest.err
>&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } &&
3909 { ac_try
='test -z "$ac_c_werror_flag"
3910 || test ! -s conftest.err'
3911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; } &&
3916 { ac_try
='test -s conftest$ac_exeext'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; }; then
3922 ac_cv_search_opendir
="none required"
3924 echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.
$ac_ext >&5
3928 rm -f conftest.err conftest.
$ac_objext \
3929 conftest
$ac_exeext conftest.
$ac_ext
3930 if test "$ac_cv_search_opendir" = no
; then
3931 for ac_lib
in dir
; do
3932 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
3933 cat >conftest.
$ac_ext <<_ACEOF
3936 cat confdefs.h
>>conftest.
$ac_ext
3937 cat >>conftest.
$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3940 /* Override any gcc2 internal prototype to avoid an error. */
3944 /* We use char because int might match the return type of a gcc2
3945 builtin and then its argument prototype would still apply. */
3955 rm -f conftest.
$ac_objext conftest
$ac_exeext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3957 (eval $ac_link) 2>conftest.er1
3959 grep -v '^ *+' conftest.er1
>conftest.err
3961 cat conftest.err
>&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } &&
3964 { ac_try
='test -z "$ac_c_werror_flag"
3965 || test ! -s conftest.err'
3966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; } &&
3971 { ac_try
='test -s conftest$ac_exeext'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; }; then
3977 ac_cv_search_opendir
="-l$ac_lib"
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.
$ac_ext >&5
3984 rm -f conftest.err conftest.
$ac_objext \
3985 conftest
$ac_exeext conftest.
$ac_ext
3988 LIBS
=$ac_func_search_save_LIBS
3990 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3991 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3992 if test "$ac_cv_search_opendir" != no
; then
3993 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
3998 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3999 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4000 if test "${ac_cv_search_opendir+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 ac_func_search_save_LIBS
=$LIBS
4004 ac_cv_search_opendir
=no
4005 cat >conftest.
$ac_ext <<_ACEOF
4008 cat confdefs.h
>>conftest.
$ac_ext
4009 cat >>conftest.
$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4012 /* Override any gcc2 internal prototype to avoid an error. */
4016 /* We use char because int might match the return type of a gcc2
4017 builtin and then its argument prototype would still apply. */
4027 rm -f conftest.
$ac_objext conftest
$ac_exeext
4028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4029 (eval $ac_link) 2>conftest.er1
4031 grep -v '^ *+' conftest.er1
>conftest.err
4033 cat conftest.err
>&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } &&
4036 { ac_try
='test -z "$ac_c_werror_flag"
4037 || test ! -s conftest.err'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; } &&
4043 { ac_try
='test -s conftest$ac_exeext'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; }; then
4049 ac_cv_search_opendir
="none required"
4051 echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.
$ac_ext >&5
4055 rm -f conftest.err conftest.
$ac_objext \
4056 conftest
$ac_exeext conftest.
$ac_ext
4057 if test "$ac_cv_search_opendir" = no
; then
4059 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4060 cat >conftest.
$ac_ext <<_ACEOF
4063 cat confdefs.h
>>conftest.
$ac_ext
4064 cat >>conftest.
$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4067 /* Override any gcc2 internal prototype to avoid an error. */
4071 /* We use char because int might match the return type of a gcc2
4072 builtin and then its argument prototype would still apply. */
4082 rm -f conftest.
$ac_objext conftest
$ac_exeext
4083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4084 (eval $ac_link) 2>conftest.er1
4086 grep -v '^ *+' conftest.er1
>conftest.err
4088 cat conftest.err
>&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } &&
4091 { ac_try
='test -z "$ac_c_werror_flag"
4092 || test ! -s conftest.err'
4093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; } &&
4098 { ac_try
='test -s conftest$ac_exeext'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; }; then
4104 ac_cv_search_opendir
="-l$ac_lib"
4107 echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.
$ac_ext >&5
4111 rm -f conftest.err conftest.
$ac_objext \
4112 conftest
$ac_exeext conftest.
$ac_ext
4115 LIBS
=$ac_func_search_save_LIBS
4117 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4118 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4119 if test "$ac_cv_search_opendir" != no
; then
4120 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4144 for ac_func
in fcntl
kill lstat memmove putenv
select setenv setlocale \
4145 strcasecmp strpbrk tcgetattr vsnprintf isascii isxdigit \
4146 getpwnam getpwent getpwuid
4148 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4149 echo "$as_me:$LINENO: checking for $ac_func" >&5
4150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4151 if eval "test \"\${$as_ac_var+set}\" = set"; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 cat >conftest.
$ac_ext <<_ACEOF
4157 cat confdefs.h
>>conftest.
$ac_ext
4158 cat >>conftest.
$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4162 #define $ac_func innocuous_$ac_func
4164 /* System header to define __stub macros and hopefully few prototypes,
4165 which can conflict with char $ac_func (); below.
4166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4167 <limits.h> exists even on freestanding compilers. */
4170 # include <limits.h>
4172 # include <assert.h>
4177 /* Override any gcc2 internal prototype to avoid an error. */
4182 /* We use char because int might match the return type of a gcc2
4183 builtin and then its argument prototype would still apply. */
4185 /* The GNU C library defines this for functions which it implements
4186 to always fail with ENOSYS. Some functions are actually named
4187 something starting with __ and the normal name is an alias. */
4188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4191 char (*f) () = $ac_func;
4200 return f != $ac_func;
4205 rm -f conftest.
$ac_objext conftest
$ac_exeext
4206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4207 (eval $ac_link) 2>conftest.er1
4209 grep -v '^ *+' conftest.er1
>conftest.err
4211 cat conftest.err
>&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } &&
4214 { ac_try
='test -z "$ac_c_werror_flag"
4215 || test ! -s conftest.err'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; } &&
4221 { ac_try
='test -s conftest$ac_exeext'
4222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; }; then
4227 eval "$as_ac_var=yes"
4229 echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.
$ac_ext >&5
4232 eval "$as_ac_var=no"
4234 rm -f conftest.err conftest.
$ac_objext \
4235 conftest
$ac_exeext conftest.
$ac_ext
4237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4239 if test `eval echo '${'$as_ac_var'}'` = yes; then
4240 cat >>confdefs.h
<<_ACEOF
4241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4248 echo "$as_me:$LINENO: checking for working strcoll" >&5
4249 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
4250 if test "${ac_cv_func_strcoll_works+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 if test "$cross_compiling" = yes; then
4254 ac_cv_func_strcoll_works
=no
4256 cat >conftest.
$ac_ext <<_ACEOF
4259 cat confdefs.h
>>conftest.
$ac_ext
4260 cat >>conftest.
$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4262 $ac_includes_default
4266 exit (strcoll ("abc", "def") >= 0 ||
4267 strcoll ("ABC", "DEF") >= 0 ||
4268 strcoll ("123", "456") >= 0)
4273 rm -f conftest
$ac_exeext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4275 (eval $ac_link) 2>&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 ac_cv_func_strcoll_works
=yes
4286 echo "$as_me: program exited with status $ac_status" >&5
4287 echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.
$ac_ext >&5
4291 ac_cv_func_strcoll_works
=no
4293 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4296 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
4297 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
4298 if test $ac_cv_func_strcoll_works = yes; then
4300 cat >>confdefs.h
<<\_ACEOF
4301 #define HAVE_STRCOLL 1
4325 for ac_header
in unistd.h stdlib.h varargs.h stdarg.h string.h
strings.h \
4326 limits.h sys
/ptem.h sys
/pte.h sys
/stream.h sys
/select.h \
4327 termcap.h termios.h termio.h sys
/file.h locale.h memory.h \
4330 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4332 echo "$as_me:$LINENO: checking for $ac_header" >&5
4333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4340 # Is the header compilable?
4341 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4343 cat >conftest.
$ac_ext <<_ACEOF
4346 cat confdefs.h
>>conftest.
$ac_ext
4347 cat >>conftest.
$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4349 $ac_includes_default
4350 #include <$ac_header>
4352 rm -f conftest.
$ac_objext
4353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4354 (eval $ac_compile) 2>conftest.er1
4356 grep -v '^ *+' conftest.er1
>conftest.err
4358 cat conftest.err
>&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); } &&
4361 { ac_try
='test -z "$ac_c_werror_flag"
4362 || test ! -s conftest.err'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; } &&
4368 { ac_try
='test -s conftest.$ac_objext'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4374 ac_header_compiler
=yes
4376 echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.
$ac_ext >&5
4379 ac_header_compiler
=no
4381 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4383 echo "${ECHO_T}$ac_header_compiler" >&6
4385 # Is the header present?
4386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4388 cat >conftest.
$ac_ext <<_ACEOF
4391 cat confdefs.h
>>conftest.
$ac_ext
4392 cat >>conftest.
$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4394 #include <$ac_header>
4396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4397 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4399 grep -v '^ *+' conftest.er1
>conftest.err
4401 cat conftest.err
>&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } >/dev
/null
; then
4404 if test -s conftest.err
; then
4405 ac_cpp_err
=$ac_c_preproc_warn_flag
4406 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4413 if test -z "$ac_cpp_err"; then
4414 ac_header_preproc
=yes
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.
$ac_ext >&5
4419 ac_header_preproc
=no
4421 rm -f conftest.err conftest.
$ac_ext
4422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4423 echo "${ECHO_T}$ac_header_preproc" >&6
4425 # So? What about this header?
4426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4432 ac_header_preproc
=yes
4435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4449 ## ----------------------------------- ##
4450 ## Report this to bug-readline@gnu.org ##
4451 ## ----------------------------------- ##
4454 sed "s/^/$as_me: WARNING: /" >&2
4457 echo "$as_me:$LINENO: checking for $ac_header" >&5
4458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 eval "$as_ac_Header=\$ac_header_preproc"
4464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4469 cat >>confdefs.h
<<_ACEOF
4470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4479 echo "$as_me:$LINENO: checking for type of signal functions" >&5
4480 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
4481 if test "${bash_cv_signal_vintage+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 cat >conftest.
$ac_ext <<_ACEOF
4488 cat confdefs.h
>>conftest.
$ac_ext
4489 cat >>conftest.
$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4497 struct sigaction sa;
4498 sigemptyset(&ss); sigsuspend(&ss);
4499 sigaction(SIGINT, &sa, (struct sigaction *) 0);
4500 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
4506 rm -f conftest.
$ac_objext conftest
$ac_exeext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4508 (eval $ac_link) 2>conftest.er1
4510 grep -v '^ *+' conftest.er1
>conftest.err
4512 cat conftest.err
>&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try
='test -z "$ac_c_werror_flag"
4516 || test ! -s conftest.err'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; } &&
4522 { ac_try
='test -s conftest$ac_exeext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 bash_cv_signal_vintage
=posix
4530 echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.
$ac_ext >&5
4534 cat >conftest.
$ac_ext <<_ACEOF
4537 cat confdefs.h
>>conftest.
$ac_ext
4538 cat >>conftest.
$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4545 int mask = sigmask(SIGINT);
4546 sigsetmask(mask); sigblock(mask); sigpause(mask);
4552 rm -f conftest.
$ac_objext conftest
$ac_exeext
4553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4554 (eval $ac_link) 2>conftest.er1
4556 grep -v '^ *+' conftest.er1
>conftest.err
4558 cat conftest.err
>&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); } &&
4561 { ac_try
='test -z "$ac_c_werror_flag"
4562 || test ! -s conftest.err'
4563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; } &&
4568 { ac_try
='test -s conftest$ac_exeext'
4569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; }; then
4574 bash_cv_signal_vintage
=4.2bsd
4576 echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.
$ac_ext >&5
4580 cat >conftest.
$ac_ext <<_ACEOF
4583 cat confdefs.h
>>conftest.
$ac_ext
4584 cat >>conftest.
$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4588 RETSIGTYPE foo() { }
4593 int mask = sigmask(SIGINT);
4594 sigset(SIGINT, foo); sigrelse(SIGINT);
4595 sighold(SIGINT); sigpause(SIGINT);
4601 rm -f conftest.
$ac_objext conftest
$ac_exeext
4602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4603 (eval $ac_link) 2>conftest.er1
4605 grep -v '^ *+' conftest.er1
>conftest.err
4607 cat conftest.err
>&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } &&
4610 { ac_try
='test -z "$ac_c_werror_flag"
4611 || test ! -s conftest.err'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; } &&
4617 { ac_try
='test -s conftest$ac_exeext'
4618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4623 bash_cv_signal_vintage
=svr3
4625 echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.
$ac_ext >&5
4628 bash_cv_signal_vintage
=v7
4631 rm -f conftest.err conftest.
$ac_objext \
4632 conftest
$ac_exeext conftest.
$ac_ext
4635 rm -f conftest.err conftest.
$ac_objext \
4636 conftest
$ac_exeext conftest.
$ac_ext
4639 rm -f conftest.err conftest.
$ac_objext \
4640 conftest
$ac_exeext conftest.
$ac_ext
4644 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
4645 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
4646 if test "$bash_cv_signal_vintage" = posix
; then
4647 cat >>confdefs.h
<<\_ACEOF
4648 #define HAVE_POSIX_SIGNALS 1
4651 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
4652 cat >>confdefs.h
<<\_ACEOF
4653 #define HAVE_BSD_SIGNALS 1
4656 elif test "$bash_cv_signal_vintage" = svr3
; then
4657 cat >>confdefs.h
<<\_ACEOF
4658 #define HAVE_USG_SIGHOLD 1
4665 echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
4666 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
4667 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 if test "$cross_compiling" = yes; then
4671 { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
4672 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
4673 bash_cv_must_reinstall_sighandlers
=no
4676 cat >conftest.
$ac_ext <<_ACEOF
4679 cat confdefs.h
>>conftest.
$ac_ext
4680 cat >>conftest.
$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4684 #ifdef HAVE_UNISTD_H
4688 typedef RETSIGTYPE sigfunc();
4692 #ifdef HAVE_POSIX_SIGNALS
4694 set_signal_handler(sig, handler)
4698 struct sigaction act, oact;
4699 act.sa_handler = handler;
4701 sigemptyset (&act.sa_mask);
4702 sigemptyset (&oact.sa_mask);
4703 sigaction (sig, &act, &oact);
4704 return (oact.sa_handler);
4707 #define set_signal_handler(s, h) signal(s, h)
4720 set_signal_handler(SIGINT, sigint);
4721 kill((int)getpid(), SIGINT);
4722 kill((int)getpid(), SIGINT);
4727 rm -f conftest
$ac_exeext
4728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4729 (eval $ac_link) 2>&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 bash_cv_must_reinstall_sighandlers
=no
4740 echo "$as_me: program exited with status $ac_status" >&5
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.
$ac_ext >&5
4745 bash_cv_must_reinstall_sighandlers
=yes
4747 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4751 echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
4752 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
4753 if test $bash_cv_must_reinstall_sighandlers = yes; then
4754 cat >>confdefs.h
<<\_ACEOF
4755 #define MUST_REINSTALL_SIGHANDLERS 1
4762 echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
4763 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
4764 if test "${bash_cv_func_sigsetjmp+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 if test "$cross_compiling" = yes; then
4768 { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
4769 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
4770 bash_cv_func_sigsetjmp
=missing
4773 cat >conftest.
$ac_ext <<_ACEOF
4776 cat confdefs.h
>>conftest.
$ac_ext
4777 cat >>conftest.
$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4780 #ifdef HAVE_UNISTD_H
4783 #include <sys/types.h>
4789 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
4800 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
4801 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
4804 code = sigsetjmp(xx, 1);
4806 exit(0); /* could get sigmask and compare to oset here. */
4809 sigaddset(&set, SIGINT);
4810 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
4812 /* and siglongjmp */
4818 rm -f conftest
$ac_exeext
4819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4820 (eval $ac_link) 2>&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 bash_cv_func_sigsetjmp
=present
4831 echo "$as_me: program exited with status $ac_status" >&5
4832 echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.
$ac_ext >&5
4836 bash_cv_func_sigsetjmp
=missing
4838 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4842 echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
4843 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
4844 if test $bash_cv_func_sigsetjmp = present
; then
4845 cat >>confdefs.h
<<\_ACEOF
4846 #define HAVE_POSIX_SIGSETJMP 1
4851 echo "$as_me:$LINENO: checking for lstat" >&5
4852 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
4853 if test "${bash_cv_func_lstat+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 cat >conftest.
$ac_ext <<_ACEOF
4859 cat confdefs.h
>>conftest.
$ac_ext
4860 cat >>conftest.
$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4863 #include <sys/types.h>
4864 #include <sys/stat.h>
4869 lstat(".",(struct stat *)0);
4874 rm -f conftest.
$ac_objext conftest
$ac_exeext
4875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4876 (eval $ac_link) 2>conftest.er1
4878 grep -v '^ *+' conftest.er1
>conftest.err
4880 cat conftest.err
>&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } &&
4883 { ac_try
='test -z "$ac_c_werror_flag"
4884 || test ! -s conftest.err'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; } &&
4890 { ac_try
='test -s conftest$ac_exeext'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; }; then
4896 bash_cv_func_lstat
=yes
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.
$ac_ext >&5
4901 bash_cv_func_lstat
=no
4903 rm -f conftest.err conftest.
$ac_objext \
4904 conftest
$ac_exeext conftest.
$ac_ext
4906 echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
4907 echo "${ECHO_T}$bash_cv_func_lstat" >&6
4908 if test $bash_cv_func_lstat = yes; then
4909 cat >>confdefs.h
<<\_ACEOF
4910 #define HAVE_LSTAT 1
4916 echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
4917 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
4918 if test "${bash_cv_func_strcoll_broken+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4921 if test "$cross_compiling" = yes; then
4922 { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
4923 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
4924 bash_cv_func_strcoll_broken
=no
4927 cat >conftest.
$ac_ext <<_ACEOF
4930 cat confdefs.h
>>conftest.
$ac_ext
4931 cat >>conftest.
$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4935 #if defined (HAVE_LOCALE_H)
4944 char *deflocale, *defcoll;
4946 #ifdef HAVE_SETLOCALE
4947 deflocale = setlocale(LC_ALL, "");
4948 defcoll = setlocale(LC_COLLATE, "");
4952 /* These two values are taken from tests/glob-test. */
4953 r1 = strcoll("abd", "aXd");
4957 r2 = strcmp("abd", "aXd");
4959 /* These two should both be greater than 0. It is permissible for
4960 a system to return different values, as long as the sign is the
4963 /* Exit with 1 (failure) if these two values are both > 0, since
4964 this tests whether strcoll(3) is broken with respect to strcmp(3)
4965 in the default locale. */
4966 exit (r1 > 0 && r2 > 0);
4970 rm -f conftest
$ac_exeext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4972 (eval $ac_link) 2>&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 bash_cv_func_strcoll_broken
=yes
4983 echo "$as_me: program exited with status $ac_status" >&5
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.
$ac_ext >&5
4988 bash_cv_func_strcoll_broken
=no
4990 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4994 echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
4995 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
4996 if test $bash_cv_func_strcoll_broken = yes; then
4997 cat >>confdefs.h
<<\_ACEOF
4998 #define STRCOLL_BROKEN 1
5004 echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
5005 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
5006 if test "${bash_cv_getpw_declared+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 cat >conftest.
$ac_ext <<_ACEOF
5012 cat confdefs.h
>>conftest.
$ac_ext
5013 cat >>conftest.
$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5016 #include <sys/types.h>
5017 #ifdef HAVE_UNISTD_H
5018 # include <unistd.h>
5023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5024 $EGREP "getpwuid" >/dev
/null
2>&1; then
5025 bash_cv_getpw_declared
=yes
5027 bash_cv_getpw_declared
=no
5033 echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
5034 echo "${ECHO_T}$bash_cv_getpw_declared" >&6
5035 if test $bash_cv_getpw_declared = yes; then
5036 cat >>confdefs.h
<<\_ACEOF
5037 #define HAVE_GETPW_DECLS 1
5043 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
5044 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
5045 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 cat >conftest.
$ac_ext <<_ACEOF
5051 cat confdefs.h
>>conftest.
$ac_ext
5052 cat >>conftest.
$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5054 #include <sys/types.h>
5055 #include <termios.h>
5061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5062 $EGREP "yes" >/dev
/null
2>&1; then
5063 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
5065 ac_cv_sys_tiocgwinsz_in_termios_h
=no
5070 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
5071 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
5073 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
5074 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
5075 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
5076 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 cat >conftest.
$ac_ext <<_ACEOF
5082 cat confdefs.h
>>conftest.
$ac_ext
5083 cat >>conftest.
$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5085 #include <sys/types.h>
5086 #include <sys/ioctl.h>
5092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5093 $EGREP "yes" >/dev
/null
2>&1; then
5094 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
5096 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
5101 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
5102 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
5104 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
5106 cat >>confdefs.h
<<\_ACEOF
5107 #define GWINSZ_IN_SYS_IOCTL 1
5114 echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
5115 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
5116 if test "${bash_cv_void_sighandler+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 cat >conftest.
$ac_ext <<_ACEOF
5122 cat confdefs.h
>>conftest.
$ac_ext
5123 cat >>conftest.
$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125 #include <sys/types.h>
5133 void (*signal ()) ();
5142 rm -f conftest.
$ac_objext
5143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5144 (eval $ac_compile) 2>conftest.er1
5146 grep -v '^ *+' conftest.er1
>conftest.err
5148 cat conftest.err
>&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } &&
5151 { ac_try
='test -z "$ac_c_werror_flag"
5152 || test ! -s conftest.err'
5153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; } &&
5158 { ac_try
='test -s conftest.$ac_objext'
5159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); }; }; then
5164 bash_cv_void_sighandler
=yes
5166 echo "$as_me: failed program was:" >&5
5167 sed 's/^/| /' conftest.
$ac_ext >&5
5169 bash_cv_void_sighandler
=no
5171 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5173 echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
5174 echo "${ECHO_T}$bash_cv_void_sighandler" >&6
5175 if test $bash_cv_void_sighandler = yes; then
5176 cat >>confdefs.h
<<\_ACEOF
5177 #define VOID_SIGHANDLER 1
5182 echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
5183 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
5184 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 cat >conftest.
$ac_ext <<_ACEOF
5190 cat confdefs.h
>>conftest.
$ac_ext
5191 cat >>conftest.
$ac_ext <<_ACEOF
5192 /* end confdefs.h. */
5193 #include <sys/types.h>
5194 #include <sys/ioctl.h>
5203 rm -f conftest.
$ac_objext
5204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5205 (eval $ac_compile) 2>conftest.er1
5207 grep -v '^ *+' conftest.er1
>conftest.err
5209 cat conftest.err
>&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } &&
5212 { ac_try
='test -z "$ac_c_werror_flag"
5213 || test ! -s conftest.err'
5214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); }; } &&
5219 { ac_try
='test -s conftest.$ac_objext'
5220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; }; then
5225 bash_cv_tiocstat_in_ioctl
=yes
5227 echo "$as_me: failed program was:" >&5
5228 sed 's/^/| /' conftest.
$ac_ext >&5
5230 bash_cv_tiocstat_in_ioctl
=no
5232 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5235 echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
5236 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
5237 if test $bash_cv_tiocstat_in_ioctl = yes; then
5238 cat >>confdefs.h
<<\_ACEOF
5239 #define TIOCSTAT_IN_SYS_IOCTL 1
5244 echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
5245 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
5246 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 cat >conftest.
$ac_ext <<_ACEOF
5252 cat confdefs.h
>>conftest.
$ac_ext
5253 cat >>conftest.
$ac_ext <<_ACEOF
5254 /* end confdefs.h. */
5255 #include <sys/types.h>
5256 #include <sys/ioctl.h>
5265 rm -f conftest.
$ac_objext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267 (eval $ac_compile) 2>conftest.er1
5269 grep -v '^ *+' conftest.er1
>conftest.err
5271 cat conftest.err
>&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } &&
5274 { ac_try
='test -z "$ac_c_werror_flag"
5275 || test ! -s conftest.err'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; } &&
5281 { ac_try
='test -s conftest.$ac_objext'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; }; then
5287 bash_cv_fionread_in_ioctl
=yes
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.
$ac_ext >&5
5292 bash_cv_fionread_in_ioctl
=no
5294 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5297 echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
5298 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
5299 if test $bash_cv_fionread_in_ioctl = yes; then
5300 cat >>confdefs.h
<<\_ACEOF
5301 #define FIONREAD_IN_SYS_IOCTL 1
5306 echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
5307 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
5308 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 cat >conftest.
$ac_ext <<_ACEOF
5314 cat confdefs.h
>>conftest.
$ac_ext
5315 cat >>conftest.
$ac_ext <<_ACEOF
5316 /* end confdefs.h. */
5317 #include <sys/types.h>
5326 rm -f conftest.
$ac_objext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5328 (eval $ac_compile) 2>conftest.er1
5330 grep -v '^ *+' conftest.er1
>conftest.err
5332 cat conftest.err
>&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } &&
5335 { ac_try
='test -z "$ac_c_werror_flag"
5336 || test ! -s conftest.err'
5337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }; } &&
5342 { ac_try
='test -s conftest.$ac_objext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 bash_cv_speed_t_in_sys_types
=yes
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.
$ac_ext >&5
5353 bash_cv_speed_t_in_sys_types
=no
5355 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5358 echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
5359 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
5360 if test $bash_cv_speed_t_in_sys_types = yes; then
5361 cat >>confdefs.h
<<\_ACEOF
5362 #define SPEED_T_IN_SYS_TYPES 1
5367 echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
5368 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
5369 if test "${bash_cv_struct_winsize_header+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 cat >conftest.
$ac_ext <<_ACEOF
5375 cat confdefs.h
>>conftest.
$ac_ext
5376 cat >>conftest.
$ac_ext <<_ACEOF
5377 /* end confdefs.h. */
5378 #include <sys/types.h>
5379 #include <sys/ioctl.h>
5388 rm -f conftest.
$ac_objext
5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390 (eval $ac_compile) 2>conftest.er1
5392 grep -v '^ *+' conftest.er1
>conftest.err
5394 cat conftest.err
>&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try
='test -z "$ac_c_werror_flag"
5398 || test ! -s conftest.err'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; } &&
5404 { ac_try
='test -s conftest.$ac_objext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 bash_cv_struct_winsize_header
=ioctl_h
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.
$ac_ext >&5
5415 cat >conftest.
$ac_ext <<_ACEOF
5418 cat confdefs.h
>>conftest.
$ac_ext
5419 cat >>conftest.
$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5421 #include <sys/types.h>
5422 #include <termios.h>
5431 rm -f conftest.
$ac_objext
5432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5433 (eval $ac_compile) 2>conftest.er1
5435 grep -v '^ *+' conftest.er1
>conftest.err
5437 cat conftest.err
>&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } &&
5440 { ac_try
='test -z "$ac_c_werror_flag"
5441 || test ! -s conftest.err'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; } &&
5447 { ac_try
='test -s conftest.$ac_objext'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; }; then
5453 bash_cv_struct_winsize_header
=termios_h
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.
$ac_ext >&5
5458 bash_cv_struct_winsize_header
=other
5460 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5463 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5466 if test $bash_cv_struct_winsize_header = ioctl_h
; then
5467 echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
5468 echo "${ECHO_T}sys/ioctl.h" >&6
5469 cat >>confdefs.h
<<\_ACEOF
5470 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
5473 elif test $bash_cv_struct_winsize_header = termios_h
; then
5474 echo "$as_me:$LINENO: result: termios.h" >&5
5475 echo "${ECHO_T}termios.h" >&6
5476 cat >>confdefs.h
<<\_ACEOF
5477 #define STRUCT_WINSIZE_IN_TERMIOS 1
5481 echo "$as_me:$LINENO: result: not found" >&5
5482 echo "${ECHO_T}not found" >&6
5486 echo "$as_me:$LINENO: checking if struct dirent has a d_ino member" >&5
5487 echo $ECHO_N "checking if struct dirent has a d_ino member... $ECHO_C" >&6
5488 if test "${bash_cv_dirent_has_dino+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 cat >conftest.
$ac_ext <<_ACEOF
5494 cat confdefs.h
>>conftest.
$ac_ext
5495 cat >>conftest.
$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5499 #include <sys/types.h>
5500 #ifdef HAVE_UNISTD_H
5501 # include <unistd.h>
5502 #endif /* HAVE_UNISTD_H */
5503 #if defined(HAVE_DIRENT_H)
5504 # include <dirent.h>
5506 # define dirent direct
5507 # ifdef HAVE_SYS_NDIR_H
5508 # include <sys/ndir.h>
5509 # endif /* SYSNDIR */
5510 # ifdef HAVE_SYS_DIR_H
5511 # include <sys/dir.h>
5512 # endif /* SYSDIR */
5516 #endif /* HAVE_DIRENT_H */
5522 struct dirent d; int z; z = d.d_ino;
5528 rm -f conftest.
$ac_objext
5529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5530 (eval $ac_compile) 2>conftest.er1
5532 grep -v '^ *+' conftest.er1
>conftest.err
5534 cat conftest.err
>&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } &&
5537 { ac_try
='test -z "$ac_c_werror_flag"
5538 || test ! -s conftest.err'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; } &&
5544 { ac_try
='test -s conftest.$ac_objext'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; }; then
5550 bash_cv_dirent_has_dino
=yes
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.
$ac_ext >&5
5555 bash_cv_dirent_has_dino
=no
5557 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5560 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
5561 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
5562 if test $bash_cv_dirent_has_dino = yes; then
5563 cat >>confdefs.h
<<\_ACEOF
5564 #define STRUCT_DIRENT_HAS_D_INO 1
5570 echo "$as_me:$LINENO: checking if struct dirent has a d_fileno member" >&5
5571 echo $ECHO_N "checking if struct dirent has a d_fileno member... $ECHO_C" >&6
5572 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 cat >conftest.
$ac_ext <<_ACEOF
5578 cat confdefs.h
>>conftest.
$ac_ext
5579 cat >>conftest.
$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5583 #include <sys/types.h>
5584 #ifdef HAVE_UNISTD_H
5585 # include <unistd.h>
5586 #endif /* HAVE_UNISTD_H */
5587 #if defined(HAVE_DIRENT_H)
5588 # include <dirent.h>
5590 # define dirent direct
5591 # ifdef HAVE_SYS_NDIR_H
5592 # include <sys/ndir.h>
5593 # endif /* SYSNDIR */
5594 # ifdef HAVE_SYS_DIR_H
5595 # include <sys/dir.h>
5596 # endif /* SYSDIR */
5600 #endif /* HAVE_DIRENT_H */
5606 struct dirent d; int z; z = d.d_fileno;
5612 rm -f conftest.
$ac_objext
5613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5614 (eval $ac_compile) 2>conftest.er1
5616 grep -v '^ *+' conftest.er1
>conftest.err
5618 cat conftest.err
>&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } &&
5621 { ac_try
='test -z "$ac_c_werror_flag"
5622 || test ! -s conftest.err'
5623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; } &&
5628 { ac_try
='test -s conftest.$ac_objext'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; }; then
5634 bash_cv_dirent_has_d_fileno
=yes
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.
$ac_ext >&5
5639 bash_cv_dirent_has_d_fileno
=no
5641 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5644 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
5645 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
5646 if test $bash_cv_dirent_has_d_fileno = yes; then
5647 cat >>confdefs.h
<<\_ACEOF
5648 #define STRUCT_DIRENT_HAS_D_FILENO 1
5655 aix
*) prefer_curses
=yes ;;
5658 if test "X$bash_cv_termcap_lib" = "X"; then
5661 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5662 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
5665 if test "${bash_cv_termcap_lib+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5669 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5670 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 ac_check_lib_save_LIBS
=$LIBS
5674 LIBS
="-ltermcap $LIBS"
5675 cat >conftest.
$ac_ext <<_ACEOF
5678 cat confdefs.h
>>conftest.
$ac_ext
5679 cat >>conftest.
$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5682 /* Override any gcc2 internal prototype to avoid an error. */
5686 /* We use char because int might match the return type of a gcc2
5687 builtin and then its argument prototype would still apply. */
5697 rm -f conftest.
$ac_objext conftest
$ac_exeext
5698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5699 (eval $ac_link) 2>conftest.er1
5701 grep -v '^ *+' conftest.er1
>conftest.err
5703 cat conftest.err
>&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } &&
5706 { ac_try
='test -z "$ac_c_werror_flag"
5707 || test ! -s conftest.err'
5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; } &&
5713 { ac_try
='test -s conftest$ac_exeext'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5719 ac_cv_lib_termcap_tgetent
=yes
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.
$ac_ext >&5
5724 ac_cv_lib_termcap_tgetent
=no
5726 rm -f conftest.err conftest.
$ac_objext \
5727 conftest
$ac_exeext conftest.
$ac_ext
5728 LIBS
=$ac_check_lib_save_LIBS
5730 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5731 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5732 if test $ac_cv_lib_termcap_tgetent = yes; then
5733 bash_cv_termcap_lib
=libtermcap
5735 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
5736 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
5737 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 ac_check_lib_save_LIBS
=$LIBS
5741 LIBS
="-ltinfo $LIBS"
5742 cat >conftest.
$ac_ext <<_ACEOF
5745 cat confdefs.h
>>conftest.
$ac_ext
5746 cat >>conftest.
$ac_ext <<_ACEOF
5747 /* end confdefs.h. */
5749 /* Override any gcc2 internal prototype to avoid an error. */
5753 /* We use char because int might match the return type of a gcc2
5754 builtin and then its argument prototype would still apply. */
5764 rm -f conftest.
$ac_objext conftest
$ac_exeext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5766 (eval $ac_link) 2>conftest.er1
5768 grep -v '^ *+' conftest.er1
>conftest.err
5770 cat conftest.err
>&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try
='test -z "$ac_c_werror_flag"
5774 || test ! -s conftest.err'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; } &&
5780 { ac_try
='test -s conftest$ac_exeext'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; }; then
5786 ac_cv_lib_tinfo_tgetent
=yes
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.
$ac_ext >&5
5791 ac_cv_lib_tinfo_tgetent
=no
5793 rm -f conftest.err conftest.
$ac_objext \
5794 conftest
$ac_exeext conftest.
$ac_ext
5795 LIBS
=$ac_check_lib_save_LIBS
5797 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
5798 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
5799 if test $ac_cv_lib_tinfo_tgetent = yes; then
5800 bash_cv_termcap_lib
=libtinfo
5802 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5803 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5804 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 ac_check_lib_save_LIBS
=$LIBS
5808 LIBS
="-lcurses $LIBS"
5809 cat >conftest.
$ac_ext <<_ACEOF
5812 cat confdefs.h
>>conftest.
$ac_ext
5813 cat >>conftest.
$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5816 /* Override any gcc2 internal prototype to avoid an error. */
5820 /* We use char because int might match the return type of a gcc2
5821 builtin and then its argument prototype would still apply. */
5831 rm -f conftest.
$ac_objext conftest
$ac_exeext
5832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5833 (eval $ac_link) 2>conftest.er1
5835 grep -v '^ *+' conftest.er1
>conftest.err
5837 cat conftest.err
>&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } &&
5840 { ac_try
='test -z "$ac_c_werror_flag"
5841 || test ! -s conftest.err'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try
='test -s conftest$ac_exeext'
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; }; then
5853 ac_cv_lib_curses_tgetent
=yes
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.
$ac_ext >&5
5858 ac_cv_lib_curses_tgetent
=no
5860 rm -f conftest.err conftest.
$ac_objext \
5861 conftest
$ac_exeext conftest.
$ac_ext
5862 LIBS
=$ac_check_lib_save_LIBS
5864 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5865 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5866 if test $ac_cv_lib_curses_tgetent = yes; then
5867 bash_cv_termcap_lib
=libcurses
5869 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5870 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5871 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 ac_check_lib_save_LIBS
=$LIBS
5875 LIBS
="-lncurses $LIBS"
5876 cat >conftest.
$ac_ext <<_ACEOF
5879 cat confdefs.h
>>conftest.
$ac_ext
5880 cat >>conftest.
$ac_ext <<_ACEOF
5881 /* end confdefs.h. */
5883 /* Override any gcc2 internal prototype to avoid an error. */
5887 /* We use char because int might match the return type of a gcc2
5888 builtin and then its argument prototype would still apply. */
5898 rm -f conftest.
$ac_objext conftest
$ac_exeext
5899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5900 (eval $ac_link) 2>conftest.er1
5902 grep -v '^ *+' conftest.er1
>conftest.err
5904 cat conftest.err
>&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try
='test -z "$ac_c_werror_flag"
5908 || test ! -s conftest.err'
5909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; } &&
5914 { ac_try
='test -s conftest$ac_exeext'
5915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; }; then
5920 ac_cv_lib_ncurses_tgetent
=yes
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.
$ac_ext >&5
5925 ac_cv_lib_ncurses_tgetent
=no
5927 rm -f conftest.err conftest.
$ac_objext \
5928 conftest
$ac_exeext conftest.
$ac_ext
5929 LIBS
=$ac_check_lib_save_LIBS
5931 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5932 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5933 if test $ac_cv_lib_ncurses_tgetent = yes; then
5934 bash_cv_termcap_lib
=libncurses
5936 bash_cv_termcap_lib
=gnutermcap
5947 if test "X$_bash_needmsg" = "Xyes"; then
5948 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5949 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
5951 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
5952 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
5953 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
5954 LDFLAGS
="$LDFLAGS -L./lib/termcap"
5955 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
5956 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
5957 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
5958 TERMCAP_LIB
=-ltermcap
5960 elif test $bash_cv_termcap_lib = libtinfo
; then
5963 elif test $bash_cv_termcap_lib = libncurses
; then
5964 TERMCAP_LIB
=-lncurses
5967 TERMCAP_LIB
=-lcurses
5971 if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
5972 if test "$prefer_curses" = yes; then
5973 TERMCAP_LIB
=-lcurses
5975 TERMCAP_LIB
=-ltermcap #default
5981 for ac_header
in wctype.h
5983 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5985 echo "$as_me:$LINENO: checking for $ac_header" >&5
5986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5993 # Is the header compilable?
5994 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5996 cat >conftest.
$ac_ext <<_ACEOF
5999 cat confdefs.h
>>conftest.
$ac_ext
6000 cat >>conftest.
$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6002 $ac_includes_default
6003 #include <$ac_header>
6005 rm -f conftest.
$ac_objext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6007 (eval $ac_compile) 2>conftest.er1
6009 grep -v '^ *+' conftest.er1
>conftest.err
6011 cat conftest.err
>&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } &&
6014 { ac_try
='test -z "$ac_c_werror_flag"
6015 || test ! -s conftest.err'
6016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; } &&
6021 { ac_try
='test -s conftest.$ac_objext'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6027 ac_header_compiler
=yes
6029 echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.
$ac_ext >&5
6032 ac_header_compiler
=no
6034 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6036 echo "${ECHO_T}$ac_header_compiler" >&6
6038 # Is the header present?
6039 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6041 cat >conftest.
$ac_ext <<_ACEOF
6044 cat confdefs.h
>>conftest.
$ac_ext
6045 cat >>conftest.
$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 #include <$ac_header>
6049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6050 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6052 grep -v '^ *+' conftest.er1
>conftest.err
6054 cat conftest.err
>&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } >/dev
/null
; then
6057 if test -s conftest.err
; then
6058 ac_cpp_err
=$ac_c_preproc_warn_flag
6059 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6066 if test -z "$ac_cpp_err"; then
6067 ac_header_preproc
=yes
6069 echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.
$ac_ext >&5
6072 ac_header_preproc
=no
6074 rm -f conftest.err conftest.
$ac_ext
6075 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6076 echo "${ECHO_T}$ac_header_preproc" >&6
6078 # So? What about this header?
6079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6085 ac_header_preproc
=yes
6088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6095 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6102 ## ----------------------------------- ##
6103 ## Report this to bug-readline@gnu.org ##
6104 ## ----------------------------------- ##
6107 sed "s/^/$as_me: WARNING: /" >&2
6110 echo "$as_me:$LINENO: checking for $ac_header" >&5
6111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 eval "$as_ac_Header=\$ac_header_preproc"
6117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6122 cat >>confdefs.h
<<_ACEOF
6123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6131 for ac_header
in wchar.h
6133 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6135 echo "$as_me:$LINENO: checking for $ac_header" >&5
6136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6143 # Is the header compilable?
6144 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6146 cat >conftest.
$ac_ext <<_ACEOF
6149 cat confdefs.h
>>conftest.
$ac_ext
6150 cat >>conftest.
$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6152 $ac_includes_default
6153 #include <$ac_header>
6155 rm -f conftest.
$ac_objext
6156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6157 (eval $ac_compile) 2>conftest.er1
6159 grep -v '^ *+' conftest.er1
>conftest.err
6161 cat conftest.err
>&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } &&
6164 { ac_try
='test -z "$ac_c_werror_flag"
6165 || test ! -s conftest.err'
6166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; } &&
6171 { ac_try
='test -s conftest.$ac_objext'
6172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }; }; then
6177 ac_header_compiler
=yes
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.
$ac_ext >&5
6182 ac_header_compiler
=no
6184 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6186 echo "${ECHO_T}$ac_header_compiler" >&6
6188 # Is the header present?
6189 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6191 cat >conftest.
$ac_ext <<_ACEOF
6194 cat confdefs.h
>>conftest.
$ac_ext
6195 cat >>conftest.
$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6197 #include <$ac_header>
6199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6200 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6202 grep -v '^ *+' conftest.er1
>conftest.err
6204 cat conftest.err
>&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } >/dev
/null
; then
6207 if test -s conftest.err
; then
6208 ac_cpp_err
=$ac_c_preproc_warn_flag
6209 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6216 if test -z "$ac_cpp_err"; then
6217 ac_header_preproc
=yes
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.
$ac_ext >&5
6222 ac_header_preproc
=no
6224 rm -f conftest.err conftest.
$ac_ext
6225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6226 echo "${ECHO_T}$ac_header_preproc" >&6
6228 # So? What about this header?
6229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6235 ac_header_preproc
=yes
6238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6245 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6252 ## ----------------------------------- ##
6253 ## Report this to bug-readline@gnu.org ##
6254 ## ----------------------------------- ##
6257 sed "s/^/$as_me: WARNING: /" >&2
6260 echo "$as_me:$LINENO: checking for $ac_header" >&5
6261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 eval "$as_ac_Header=\$ac_header_preproc"
6267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6272 cat >>confdefs.h
<<_ACEOF
6273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6281 for ac_header
in langinfo.h
6283 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6285 echo "$as_me:$LINENO: checking for $ac_header" >&5
6286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6293 # Is the header compilable?
6294 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6296 cat >conftest.
$ac_ext <<_ACEOF
6299 cat confdefs.h
>>conftest.
$ac_ext
6300 cat >>conftest.
$ac_ext <<_ACEOF
6301 /* end confdefs.h. */
6302 $ac_includes_default
6303 #include <$ac_header>
6305 rm -f conftest.
$ac_objext
6306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6307 (eval $ac_compile) 2>conftest.er1
6309 grep -v '^ *+' conftest.er1
>conftest.err
6311 cat conftest.err
>&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } &&
6314 { ac_try
='test -z "$ac_c_werror_flag"
6315 || test ! -s conftest.err'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; } &&
6321 { ac_try
='test -s conftest.$ac_objext'
6322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
6327 ac_header_compiler
=yes
6329 echo "$as_me: failed program was:" >&5
6330 sed 's/^/| /' conftest.
$ac_ext >&5
6332 ac_header_compiler
=no
6334 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6336 echo "${ECHO_T}$ac_header_compiler" >&6
6338 # Is the header present?
6339 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6341 cat >conftest.
$ac_ext <<_ACEOF
6344 cat confdefs.h
>>conftest.
$ac_ext
6345 cat >>conftest.
$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 #include <$ac_header>
6349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6350 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6352 grep -v '^ *+' conftest.er1
>conftest.err
6354 cat conftest.err
>&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } >/dev
/null
; then
6357 if test -s conftest.err
; then
6358 ac_cpp_err
=$ac_c_preproc_warn_flag
6359 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6366 if test -z "$ac_cpp_err"; then
6367 ac_header_preproc
=yes
6369 echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.
$ac_ext >&5
6372 ac_header_preproc
=no
6374 rm -f conftest.err conftest.
$ac_ext
6375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6376 echo "${ECHO_T}$ac_header_preproc" >&6
6378 # So? What about this header?
6379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6385 ac_header_preproc
=yes
6388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6391 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6395 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6402 ## ----------------------------------- ##
6403 ## Report this to bug-readline@gnu.org ##
6404 ## ----------------------------------- ##
6407 sed "s/^/$as_me: WARNING: /" >&2
6410 echo "$as_me:$LINENO: checking for $ac_header" >&5
6411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6415 eval "$as_ac_Header=\$ac_header_preproc"
6417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6422 cat >>confdefs.h
<<_ACEOF
6423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6431 echo "$as_me:$LINENO: checking for mbrtowc" >&5
6432 echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6
6433 if test "${ac_cv_func_mbrtowc+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 cat >conftest.
$ac_ext <<_ACEOF
6439 cat confdefs.h
>>conftest.
$ac_ext
6440 cat >>conftest.
$ac_ext <<_ACEOF
6441 /* end confdefs.h. */
6442 /* Define mbrtowc to an innocuous variant, in case <limits.h> declares mbrtowc.
6443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6444 #define mbrtowc innocuous_mbrtowc
6446 /* System header to define __stub macros and hopefully few prototypes,
6447 which can conflict with char mbrtowc (); below.
6448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6449 <limits.h> exists even on freestanding compilers. */
6452 # include <limits.h>
6454 # include <assert.h>
6459 /* Override any gcc2 internal prototype to avoid an error. */
6464 /* We use char because int might match the return type of a gcc2
6465 builtin and then its argument prototype would still apply. */
6467 /* The GNU C library defines this for functions which it implements
6468 to always fail with ENOSYS. Some functions are actually named
6469 something starting with __ and the normal name is an alias. */
6470 #if defined (__stub_mbrtowc) || defined (__stub___mbrtowc)
6473 char (*f) () = mbrtowc;
6482 return f != mbrtowc;
6487 rm -f conftest.
$ac_objext conftest
$ac_exeext
6488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6489 (eval $ac_link) 2>conftest.er1
6491 grep -v '^ *+' conftest.er1
>conftest.err
6493 cat conftest.err
>&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); } &&
6496 { ac_try
='test -z "$ac_c_werror_flag"
6497 || test ! -s conftest.err'
6498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; } &&
6503 { ac_try
='test -s conftest$ac_exeext'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6509 ac_cv_func_mbrtowc
=yes
6511 echo "$as_me: failed program was:" >&5
6512 sed 's/^/| /' conftest.
$ac_ext >&5
6514 ac_cv_func_mbrtowc
=no
6516 rm -f conftest.err conftest.
$ac_objext \
6517 conftest
$ac_exeext conftest.
$ac_ext
6519 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
6520 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
6521 if test $ac_cv_func_mbrtowc = yes; then
6522 cat >>confdefs.h
<<\_ACEOF
6523 #define HAVE_MBRTOWC 1
6528 echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
6529 echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
6530 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 cat >conftest.
$ac_ext <<_ACEOF
6536 cat confdefs.h
>>conftest.
$ac_ext
6537 cat >>conftest.
$ac_ext <<_ACEOF
6538 /* end confdefs.h. */
6539 /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
6540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6541 #define mbsrtowcs innocuous_mbsrtowcs
6543 /* System header to define __stub macros and hopefully few prototypes,
6544 which can conflict with char mbsrtowcs (); below.
6545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6546 <limits.h> exists even on freestanding compilers. */
6549 # include <limits.h>
6551 # include <assert.h>
6556 /* Override any gcc2 internal prototype to avoid an error. */
6561 /* We use char because int might match the return type of a gcc2
6562 builtin and then its argument prototype would still apply. */
6564 /* The GNU C library defines this for functions which it implements
6565 to always fail with ENOSYS. Some functions are actually named
6566 something starting with __ and the normal name is an alias. */
6567 #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
6570 char (*f) () = mbsrtowcs;
6579 return f != mbsrtowcs;
6584 rm -f conftest.
$ac_objext conftest
$ac_exeext
6585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6586 (eval $ac_link) 2>conftest.er1
6588 grep -v '^ *+' conftest.er1
>conftest.err
6590 cat conftest.err
>&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } &&
6593 { ac_try
='test -z "$ac_c_werror_flag"
6594 || test ! -s conftest.err'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; } &&
6600 { ac_try
='test -s conftest$ac_exeext'
6601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; }; then
6606 ac_cv_func_mbsrtowcs
=yes
6608 echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.
$ac_ext >&5
6611 ac_cv_func_mbsrtowcs
=no
6613 rm -f conftest.err conftest.
$ac_objext \
6614 conftest
$ac_exeext conftest.
$ac_ext
6616 echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
6617 echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
6618 if test $ac_cv_func_mbsrtowcs = yes; then
6619 cat >>confdefs.h
<<\_ACEOF
6620 #define HAVE_MBSRTOWCS 1
6625 echo "$as_me:$LINENO: checking for wcwidth" >&5
6626 echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
6627 if test "${ac_cv_func_wcwidth+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 cat >conftest.
$ac_ext <<_ACEOF
6633 cat confdefs.h
>>conftest.
$ac_ext
6634 cat >>conftest.
$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6636 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
6637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6638 #define wcwidth innocuous_wcwidth
6640 /* System header to define __stub macros and hopefully few prototypes,
6641 which can conflict with char wcwidth (); below.
6642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6643 <limits.h> exists even on freestanding compilers. */
6646 # include <limits.h>
6648 # include <assert.h>
6653 /* Override any gcc2 internal prototype to avoid an error. */
6658 /* We use char because int might match the return type of a gcc2
6659 builtin and then its argument prototype would still apply. */
6661 /* The GNU C library defines this for functions which it implements
6662 to always fail with ENOSYS. Some functions are actually named
6663 something starting with __ and the normal name is an alias. */
6664 #if defined (__stub_wcwidth) || defined (__stub___wcwidth)
6667 char (*f) () = wcwidth;
6676 return f != wcwidth;
6681 rm -f conftest.
$ac_objext conftest
$ac_exeext
6682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6683 (eval $ac_link) 2>conftest.er1
6685 grep -v '^ *+' conftest.er1
>conftest.err
6687 cat conftest.err
>&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } &&
6690 { ac_try
='test -z "$ac_c_werror_flag"
6691 || test ! -s conftest.err'
6692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; } &&
6697 { ac_try
='test -s conftest$ac_exeext'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; }; then
6703 ac_cv_func_wcwidth
=yes
6705 echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.
$ac_ext >&5
6708 ac_cv_func_wcwidth
=no
6710 rm -f conftest.err conftest.
$ac_objext \
6711 conftest
$ac_exeext conftest.
$ac_ext
6713 echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
6714 echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
6715 if test $ac_cv_func_wcwidth = yes; then
6716 cat >>confdefs.h
<<\_ACEOF
6717 #define HAVE_WCWIDTH 1
6722 if test "$ac_cv_func_wcwidth" = no
&& test "$ac_cv_header_wchar_h" = yes; then
6723 WCWIDTH_OBJ
=wcwidth.o
6729 echo "$as_me:$LINENO: checking for mbstate_t" >&5
6730 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
6731 if test "${bash_cv_have_mbstate_t+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 cat >conftest.
$ac_ext <<_ACEOF
6737 cat confdefs.h
>>conftest.
$ac_ext
6738 cat >>conftest.
$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6754 rm -f conftest.
$ac_objext conftest
$ac_exeext
6755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6756 (eval $ac_link) 2>conftest.er1
6758 grep -v '^ *+' conftest.er1
>conftest.err
6760 cat conftest.err
>&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } &&
6763 { ac_try
='test -z "$ac_c_werror_flag"
6764 || test ! -s conftest.err'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; } &&
6770 { ac_try
='test -s conftest$ac_exeext'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6776 bash_cv_have_mbstate_t
=yes
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.
$ac_ext >&5
6781 bash_cv_have_mbstate_t
=no
6783 rm -f conftest.err conftest.
$ac_objext \
6784 conftest
$ac_exeext conftest.
$ac_ext
6786 echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5
6787 echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
6788 if test $bash_cv_have_mbstate_t = yes; then
6789 cat >>confdefs.h
<<\_ACEOF
6790 #define HAVE_MBSTATE_T 1
6795 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
6796 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6797 if test "${bash_cv_langinfo_codeset+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 cat >conftest.
$ac_ext <<_ACEOF
6803 cat confdefs.h
>>conftest.
$ac_ext
6804 cat >>conftest.
$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6806 #include <langinfo.h>
6810 char* cs = nl_langinfo(CODESET);
6815 rm -f conftest.
$ac_objext conftest
$ac_exeext
6816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6817 (eval $ac_link) 2>conftest.er1
6819 grep -v '^ *+' conftest.er1
>conftest.err
6821 cat conftest.err
>&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } &&
6824 { ac_try
='test -z "$ac_c_werror_flag"
6825 || test ! -s conftest.err'
6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; } &&
6831 { ac_try
='test -s conftest$ac_exeext'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; }; then
6837 bash_cv_langinfo_codeset
=yes
6839 echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.
$ac_ext >&5
6842 bash_cv_langinfo_codeset
=no
6844 rm -f conftest.err conftest.
$ac_objext \
6845 conftest
$ac_exeext conftest.
$ac_ext
6847 echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
6848 echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
6849 if test $bash_cv_langinfo_codeset = yes; then
6850 cat >>confdefs.h
<<\_ACEOF
6851 #define HAVE_LANGINFO_CODESET 1
6859 *cray
*) LOCAL_CFLAGS
=-DCRAY ;;
6860 *s390
*) LOCAL_CFLAGS
=-fsigned-char ;;
6864 isc
*) LOCAL_CFLAGS
=-Disc386 ;;
6867 # shared library configuration section
6869 # Shared object configuration section. These values are generated by
6870 # ${srcdir}/support/shobj-conf
6872 if test -f ${srcdir}/support
/shobj-conf
; then
6873 echo "$as_me:$LINENO: checking configuration for building shared libraries" >&5
6874 echo $ECHO_N "checking configuration for building shared libraries... $ECHO_C" >&6
6875 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
6888 echo "$as_me:$LINENO: result: $SHLIB_STATUS" >&5
6889 echo "${ECHO_T}$SHLIB_STATUS" >&6
6891 # SHLIB_STATUS is either `supported' or `unsupported'. If it's
6892 # `unsupported', turn off any default shared library building
6893 if test "$SHLIB_STATUS" = 'unsupported'; then
6897 # shared library versioning
6898 # quoted for m4 so I can use character classes
6899 SHLIB_MAJOR
=`expr "$LIBVERSION" : '\([0-9]\)\..*'`
6900 SHLIB_MINOR
=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`
6905 if test "$opt_static_libs" = "yes"; then
6906 STATIC_TARGET
=static
6907 STATIC_INSTALL_TARGET
=install-static
6909 if test "$opt_shared_libs" = "yes"; then
6910 SHARED_TARGET
=shared
6911 SHARED_INSTALL_TARGET
=install-shared
6920 msdosdjgpp
*) BUILD_DIR
=`pwd.exe` ;; # to prevent //d/path/file
6921 *) BUILD_DIR
=`pwd` ;;
6941 ac_config_files
="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile"
6942 ac_config_commands
="$ac_config_commands default"
6943 cat >confcache
<<\_ACEOF
6944 # This file is a shell script that caches the results of configure
6945 # tests run on this system so they can be shared between configure
6946 # scripts and configure runs, see configure's option --config-cache.
6947 # It is not useful on other systems. If it contains results you don't
6948 # want to keep, you may remove or edit it.
6950 # config.status only pays attention to the cache file if you give it
6951 # the --recheck option to rerun configure.
6953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6959 # The following way of writing the cache mishandles newlines in values,
6960 # but we know of no workaround that is simple, portable, and efficient.
6961 # So, don't put newlines in cache variables' values.
6962 # Ultrix sh set writes to stderr and can't be redirected directly,
6963 # and sets the high bit in the cache file unless we assign to the vars.
6966 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6968 # `set' does not quote correctly, so add quotes (double-quote
6969 # substitution turns \\\\ into \\, and sed turns \\ into \).
6972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6975 # `set' quotes correctly as required by POSIX, so do not add quotes.
6977 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6986 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6988 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
6989 if test -w $cache_file; then
6990 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6991 cat confcache
>$cache_file
6993 echo "not updating unwritable cache $cache_file"
6998 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6999 # Let make expand exec_prefix.
7000 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7002 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7003 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7004 # trailing colons and then remove the whole line if VPATH becomes empty
7005 # (actually we leave an empty line to preserve line numbers).
7006 if test "x$srcdir" = x.
; then
7007 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
7008 s/:*\$(srcdir):*/:/;
7009 s/:*\${srcdir}:*/:/;
7011 s/^\([^=]*=[ ]*\):*/\1/;
7017 DEFS
=-DHAVE_CONFIG_H
7021 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7022 # 1. Remove the extension, and $U if already installed.
7023 ac_i
=`echo "$ac_i" |
7024 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7026 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
7027 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
7031 LTLIBOBJS
=$ac_ltlibobjs
7035 : ${CONFIG_STATUS=./config.status}
7036 ac_clean_files_save
=$ac_clean_files
7037 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7038 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7039 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7040 cat >$CONFIG_STATUS <<_ACEOF
7042 # Generated by $as_me.
7043 # Run this file to recreate the current configuration.
7044 # Compiler output produced by configure, useful for debugging
7045 # configure, is in config.log if it exists.
7050 SHELL=\${CONFIG_SHELL-$SHELL}
7053 cat >>$CONFIG_STATUS <<\_ACEOF
7054 ## --------------------- ##
7055 ## M4sh Initialization. ##
7056 ## --------------------- ##
7058 # Be Bourne compatible
7059 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
7062 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7063 # is contrary to our usage. Disable this feature.
7064 alias -g '${1+"$@"}'='"$@"'
7065 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
7068 DUALCASE
=1; export DUALCASE
# for MKS sh
7070 # Support unset when possible.
7071 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
7078 # Work around bugs in pre-3.0 UWIN ksh.
7079 $as_unset ENV MAIL MAILPATH
7086 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7087 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7088 LC_TELEPHONE LC_TIME
7090 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7091 eval $as_var=C
; export $as_var
7097 # Required to use basename.
7098 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7104 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
7105 as_basename
=basename
7111 # Name of the executable.
7112 as_me
=`$as_basename "$0" ||
7113 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7114 X"$0" : 'X\(//\)$' \| \
7115 X"$0" : 'X\(/\)$' \| \
7116 . : '\(.\)' 2>/dev/null ||
7118 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7119 /^X\/\(\/\/\)$/{ s//\1/; q; }
7120 /^X\/\(\/\).*/{ s//\1/; q; }
7124 # PATH needs CR, and LINENO needs CR and PATH.
7125 # Avoid depending upon Character Ranges.
7126 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7127 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7128 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7129 as_cr_digits
='0123456789'
7130 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7132 # The user is always right.
7133 if test "${PATH_SEPARATOR+set}" != set; then
7134 echo "#! /bin/sh" >conf$$.sh
7135 echo "exit 0" >>conf$$.sh
7137 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7148 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
7149 test "x$as_lineno_1" != "x$as_lineno_2" &&
7150 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
7151 # Find who we are. Look in the path if we contain no path at all
7154 *[\\/]* ) as_myself
=$0 ;;
7155 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7159 test -z "$as_dir" && as_dir
=.
7160 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
7165 # We did not find ourselves, most probably we were run as `sh COMMAND'
7166 # in which case we are not to be found in the path.
7167 if test "x$as_myself" = x
; then
7170 if test ! -f "$as_myself"; then
7171 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7172 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7173 { (exit 1); exit 1; }; }
7175 case $CONFIG_SHELL in
7177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7178 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
7181 test -z "$as_dir" && as_dir
=.
7182 for as_base
in sh bash ksh sh5
; do
7185 if ("$as_dir/$as_base" -c '
7188 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7189 test "x$as_lineno_1" != "x$as_lineno_2" &&
7190 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
7191 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
7192 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
7193 CONFIG_SHELL
=$as_dir/$as_base
7195 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7203 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7204 # uniformly replaced by the line number. The first 'sed' inserts a
7205 # line-number line before each line; the second 'sed' does the real
7206 # work. The second script uses 'N' to pair each line-number line
7207 # with the numbered line, and appends trailing '-' during
7208 # substitution so that $LINENO is not a special case at line end.
7209 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7210 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7211 sed '=' <$as_myself |
7216 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7219 s,^['$as_cr_digits']*\n,,
7221 chmod +x
$as_me.lineno ||
7222 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7223 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7224 { (exit 1); exit 1; }; }
7226 # Don't try to exec as it changes $[0], causing all sort of problems
7227 # (the dirname of $[0] is not the place where we might find the
7228 # original and so on. Autoconf is especially sensible to this).
7230 # Exit status is that of the last command.
7235 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7236 *c
*,-n*) ECHO_N
= ECHO_C
='
7238 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
7239 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
7242 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7248 rm -f conf$$ conf$$.exe conf$$.
file
7250 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7251 # We could just check for DJGPP; but this test a) works b) is more generic
7252 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7253 if test -f conf$$.exe
; then
7254 # Don't use ln at all; we don't have any links
7259 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7264 rm -f conf$$ conf$$.exe conf$$.
file
7266 if mkdir
-p .
2>/dev
/null
; then
7269 test -d .
/-p && rmdir .
/-p
7273 as_executable_p
="test -f"
7275 # Sed expression to map a string onto a valid CPP name.
7276 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7278 # Sed expression to map a string onto a valid variable name.
7279 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7283 # We need space, tab and new line, in precisely that order.
7293 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7294 # report actual input values of CONFIG_FILES etc. instead of their
7295 # values after options handling. Logging --version etc. is OK.
7299 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7300 ## Running $as_me. ##
7305 This file was extended by readline $as_me 4.3, which was
7306 generated by GNU Autoconf 2.59. Invocation command line was
7308 CONFIG_FILES = $CONFIG_FILES
7309 CONFIG_HEADERS = $CONFIG_HEADERS
7310 CONFIG_LINKS = $CONFIG_LINKS
7311 CONFIG_COMMANDS = $CONFIG_COMMANDS
7315 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7319 # Files that config.status was made for.
7320 if test -n "$ac_config_files"; then
7321 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7324 if test -n "$ac_config_headers"; then
7325 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7328 if test -n "$ac_config_links"; then
7329 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7332 if test -n "$ac_config_commands"; then
7333 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7336 cat >>$CONFIG_STATUS <<\_ACEOF
7339 \`$as_me' instantiates files from templates according to the
7340 current configuration.
7342 Usage: $0 [OPTIONS] [FILE]...
7344 -h, --help print this help, then exit
7345 -V, --version print version number, then exit
7346 -q, --quiet do not print progress messages
7347 -d, --debug don't remove temporary files
7348 --recheck update $as_me by reconfiguring in the same conditions
7349 --file=FILE[:TEMPLATE]
7350 instantiate the configuration file FILE
7351 --header=FILE[:TEMPLATE]
7352 instantiate the configuration header FILE
7354 Configuration files:
7357 Configuration headers:
7360 Configuration commands:
7363 Report bugs to <bug-autoconf@gnu.org>."
7366 cat >>$CONFIG_STATUS <<_ACEOF
7368 readline config.status 4.3
7369 configured by $0, generated by GNU Autoconf 2.59,
7370 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7372 Copyright (C) 2003 Free Software Foundation, Inc.
7373 This config.status script is free software; the Free Software Foundation
7374 gives unlimited permission to copy, distribute and modify it."
7379 cat >>$CONFIG_STATUS <<\_ACEOF
7380 # If no file are specified by the user, then we need to provide default
7381 # value. By we need to know if files were specified by the user.
7387 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
7388 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
7396 *) # This is not an option, so the user has probably given explicit
7399 ac_need_defaults
=false
;;
7403 # Handling of the options.
7405 cat >>$CONFIG_STATUS <<\_ACEOF
7406 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7408 --version |
--vers* |
-V )
7409 echo "$ac_cs_version"; exit 0 ;;
7411 # Conflict between --help and --header
7412 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7413 Try \`$0 --help' for more information." >&5
7414 echo "$as_me: error: ambiguous option: $1
7415 Try \`$0 --help' for more information." >&2;}
7416 { (exit 1); exit 1; }; };;
7417 --help |
--hel |
-h )
7418 echo "$ac_cs_usage"; exit 0 ;;
7419 --debug |
--d* |
-d )
7421 --file |
--fil |
--fi |
--f )
7423 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
7424 ac_need_defaults
=false
;;
7425 --header |
--heade |
--head |
--hea )
7427 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
7428 ac_need_defaults
=false
;;
7429 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7430 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7434 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7435 Try \`$0 --help' for more information." >&5
7436 echo "$as_me: error: unrecognized option: $1
7437 Try \`$0 --help' for more information." >&2;}
7438 { (exit 1); exit 1; }; } ;;
7440 *) ac_config_targets
="$ac_config_targets $1" ;;
7446 ac_configure_extra_args
=
7448 if $ac_cs_silent; then
7450 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7454 cat >>$CONFIG_STATUS <<_ACEOF
7455 if \$ac_cs_recheck; then
7456 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7457 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7466 cat >>$CONFIG_STATUS <<\_ACEOF
7467 for ac_config_target
in $ac_config_targets
7469 case "$ac_config_target" in
7470 # Handling of arguments.
7471 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7472 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
7473 "examples/Makefile" ) CONFIG_FILES
="$CONFIG_FILES examples/Makefile" ;;
7474 "shlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES shlib/Makefile" ;;
7475 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
7476 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
7477 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7478 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7479 { (exit 1); exit 1; }; };;
7483 # If the user did not use the arguments to specify the items to instantiate,
7484 # then the envvar interface is used. Set only those that are not.
7485 # We use the long form for the default assignment because of an extremely
7486 # bizarre bug on SunOS 4.1.3.
7487 if $ac_need_defaults; then
7488 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7489 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7490 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7493 # Have a temporary directory for convenience. Make it in the build tree
7494 # simply because there is no reason to put it here, and in addition,
7495 # creating and moving files from /tmp can sometimes cause problems.
7496 # Create a temporary directory, and hook for its removal unless debugging.
7499 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7500 trap '{ (exit 1); exit 1; }' 1 2 13 15
7503 # Create a (secure) tmp directory for tmp files.
7506 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7507 test -n "$tmp" && test -d "$tmp"
7510 tmp
=.
/confstat$$
-$RANDOM
7511 (umask 077 && mkdir
$tmp)
7514 echo "$me: cannot create a temporary directory in ." >&2
7515 { (exit 1); exit 1; }
7520 cat >>$CONFIG_STATUS <<_ACEOF
7523 # CONFIG_FILES section.
7526 # No need to generate the scripts if there are no CONFIG_FILES.
7527 # This happens for instance when ./config.status config.h
7528 if test -n "\$CONFIG_FILES"; then
7529 # Protect against being on the right side of a sed subst in config.status.
7530 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7531 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7532 s,@SHELL@,$SHELL,;t t
7533 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7534 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7535 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7536 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7537 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7538 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7539 s,@exec_prefix@,$exec_prefix,;t t
7540 s,@prefix@,$prefix,;t t
7541 s,@program_transform_name@,$program_transform_name,;t t
7542 s,@bindir@,$bindir,;t t
7543 s,@sbindir@,$sbindir,;t t
7544 s,@libexecdir@,$libexecdir,;t t
7545 s,@datadir@,$datadir,;t t
7546 s,@sysconfdir@,$sysconfdir,;t t
7547 s,@sharedstatedir@,$sharedstatedir,;t t
7548 s,@localstatedir@,$localstatedir,;t t
7549 s,@libdir@,$libdir,;t t
7550 s,@includedir@,$includedir,;t t
7551 s,@oldincludedir@,$oldincludedir,;t t
7552 s,@infodir@,$infodir,;t t
7553 s,@mandir@,$mandir,;t t
7554 s,@build_alias@,$build_alias,;t t
7555 s,@host_alias@,$host_alias,;t t
7556 s,@target_alias@,$target_alias,;t t
7558 s,@ECHO_C@,$ECHO_C,;t t
7559 s,@ECHO_N@,$ECHO_N,;t t
7560 s,@ECHO_T@,$ECHO_T,;t t
7562 s,@build@,$build,;t t
7563 s,@build_cpu@,$build_cpu,;t t
7564 s,@build_vendor@,$build_vendor,;t t
7565 s,@build_os@,$build_os,;t t
7567 s,@host_cpu@,$host_cpu,;t t
7568 s,@host_vendor@,$host_vendor,;t t
7569 s,@host_os@,$host_os,;t t
7570 s,@SET_MAKE@,$SET_MAKE,;t t
7572 s,@CFLAGS@,$CFLAGS,;t t
7573 s,@LDFLAGS@,$LDFLAGS,;t t
7574 s,@CPPFLAGS@,$CPPFLAGS,;t t
7575 s,@ac_ct_CC@,$ac_ct_CC,;t t
7576 s,@EXEEXT@,$EXEEXT,;t t
7577 s,@OBJEXT@,$OBJEXT,;t t
7579 s,@EGREP@,$EGREP,;t t
7580 s,@CROSS_COMPILING_FLAG@,$CROSS_COMPILING_FLAG,;t t
7581 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7582 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7583 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7584 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7586 s,@RANLIB@,$RANLIB,;t t
7587 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7588 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
7589 s,@WCWIDTH_OBJ@,$WCWIDTH_OBJ,;t t
7590 s,@SHOBJ_CC@,$SHOBJ_CC,;t t
7591 s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
7592 s,@SHOBJ_LD@,$SHOBJ_LD,;t t
7593 s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
7594 s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
7595 s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
7596 s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
7597 s,@SHLIB_STATUS@,$SHLIB_STATUS,;t t
7598 s,@SHLIB_XLDFLAGS@,$SHLIB_XLDFLAGS,;t t
7599 s,@SHLIB_LIBSUFF@,$SHLIB_LIBSUFF,;t t
7600 s,@SHLIB_LIBVERSION@,$SHLIB_LIBVERSION,;t t
7601 s,@SHLIB_LIBS@,$SHLIB_LIBS,;t t
7602 s,@SHLIB_MAJOR@,$SHLIB_MAJOR,;t t
7603 s,@SHLIB_MINOR@,$SHLIB_MINOR,;t t
7604 s,@STATIC_TARGET@,$STATIC_TARGET,;t t
7605 s,@SHARED_TARGET@,$SHARED_TARGET,;t t
7606 s,@STATIC_INSTALL_TARGET@,$STATIC_INSTALL_TARGET,;t t
7607 s,@SHARED_INSTALL_TARGET@,$SHARED_INSTALL_TARGET,;t t
7608 s,@BUILD_DIR@,$BUILD_DIR,;t t
7609 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
7610 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
7611 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
7612 s,@ARFLAGS@,$ARFLAGS,;t t
7613 s,@LIBVERSION@,$LIBVERSION,;t t
7614 s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
7615 s,@LIBOBJS@,$LIBOBJS,;t t
7616 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7621 cat >>$CONFIG_STATUS <<\_ACEOF
7622 # Split the substitutions into bite-sized pieces for seds with
7623 # small command number limits, like on Digital OSF/1 and HP-UX.
7625 ac_sed_frag
=1 # Number of current file.
7626 ac_beg
=1 # First line for current file.
7627 ac_end
=$ac_max_sed_lines # Line after last line for current file.
7630 while $ac_more_lines; do
7631 if test $ac_beg -gt 1; then
7632 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7634 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7636 if test ! -s $tmp/subs.frag
; then
7639 # The purpose of the label and of the branching condition is to
7640 # speed up the sed processing (if there are no `@' at all, there
7641 # is no need to browse any of the substitutions).
7642 # These are the two extra sed commands mentioned above.
7644 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
7645 if test -z "$ac_sed_cmds"; then
7646 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
7648 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7650 ac_sed_frag
=`expr $ac_sed_frag + 1`
7652 ac_end
=`expr $ac_end + $ac_max_sed_lines`
7655 if test -z "$ac_sed_cmds"; then
7658 fi # test -n "$CONFIG_FILES"
7661 cat >>$CONFIG_STATUS <<\_ACEOF
7662 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
7663 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7665 - |
*:- |
*:-:* ) # input from stdin
7667 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7668 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7669 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7670 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7671 * ) ac_file_in
=$ac_file.
in ;;
7674 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7675 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7676 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7677 X"$ac_file" : 'X\(//\)[^/]' \| \
7678 X"$ac_file" : 'X\(//\)$' \| \
7679 X"$ac_file" : 'X\(/\)' \| \
7680 . : '\(.\)' 2>/dev/null ||
7682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7683 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7684 /^X\(\/\/\)$/{ s//\1/; q; }
7685 /^X\(\/\).*/{ s//\1/; q; }
7687 { if $as_mkdir_p; then
7692 while test ! -d "$as_dir"; do
7693 as_dirs
="$as_dir $as_dirs"
7694 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7695 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7696 X"$as_dir" : 'X\(//\)[^/]' \| \
7697 X"$as_dir" : 'X\(//\)$' \| \
7698 X"$as_dir" : 'X\(/\)' \| \
7699 . : '\(.\)' 2>/dev/null ||
7701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7703 /^X\(\/\/\)$/{ s//\1/; q; }
7704 /^X\(\/\).*/{ s//\1/; q; }
7707 test ! -n "$as_dirs" || mkdir
$as_dirs
7708 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7709 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7710 { (exit 1); exit 1; }; }; }
7714 if test "$ac_dir" != .
; then
7715 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7716 # A "../" for each directory in $ac_dir_suffix.
7717 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7719 ac_dir_suffix
= ac_top_builddir
=
7723 .
) # No --srcdir option. We are building in place.
7725 if test -z "$ac_top_builddir"; then
7728 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7730 [\\/]* | ?
:[\\/]* ) # Absolute path.
7731 ac_srcdir
=$srcdir$ac_dir_suffix;
7732 ac_top_srcdir
=$srcdir ;;
7734 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7735 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7738 # Do not use `cd foo && pwd` to compute absolute paths, because
7739 # the directories may not exist.
7741 .
) ac_abs_builddir
="$ac_dir";;
7744 .
) ac_abs_builddir
=`pwd`;;
7745 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
7746 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
7749 case $ac_abs_builddir in
7750 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7752 case ${ac_top_builddir}.
in
7753 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
7754 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7755 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
7758 case $ac_abs_builddir in
7759 .
) ac_abs_srcdir
=$ac_srcdir;;
7762 .
) ac_abs_srcdir
=$ac_abs_builddir;;
7763 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
7764 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
7767 case $ac_abs_builddir in
7768 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
7770 case $ac_top_srcdir in
7771 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
7772 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
7773 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
7779 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7780 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
7783 if test x
"$ac_file" != x-
; then
7784 { echo "$as_me:$LINENO: creating $ac_file" >&5
7785 echo "$as_me: creating $ac_file" >&6;}
7788 # Let's still pretend it is `configure' which instantiates (i.e., don't
7789 # use $as_me), people would be surprised to read:
7790 # /* config.h. Generated by config.status. */
7791 if test x
"$ac_file" = x-
; then
7794 configure_input
="$ac_file. "
7796 configure_input
=$configure_input"Generated from `echo $ac_file_in |
7797 sed 's,.*/,,'` by configure."
7799 # First look for the input files in the build tree, otherwise in the
7801 ac_file_inputs
=`IFS=:
7802 for f in $ac_file_in; do
7804 -) echo $tmp/stdin ;;
7806 # Absolute (can't be DOS-style, as IFS=:)
7807 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7808 echo "$as_me: error: cannot find input file: $f" >&2;}
7809 { (exit 1); exit 1; }; }
7812 if test -f "$f"; then
7815 elif test -f "$srcdir/$f"; then
7820 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7821 echo "$as_me: error: cannot find input file: $f" >&2;}
7822 { (exit 1); exit 1; }; }
7825 done` ||
{ (exit 1); exit 1; }
7827 cat >>$CONFIG_STATUS <<_ACEOF
7831 cat >>$CONFIG_STATUS <<\_ACEOF
7833 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7834 s
,@configure_input@
,$configure_input,;t t
7835 s
,@srcdir@
,$ac_srcdir,;t t
7836 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
7837 s
,@top_srcdir@
,$ac_top_srcdir,;t t
7838 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
7839 s
,@builddir@
,$ac_builddir,;t t
7840 s
,@abs_builddir@
,$ac_abs_builddir,;t t
7841 s
,@top_builddir@
,$ac_top_builddir,;t t
7842 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
7843 s
,@INSTALL@
,$ac_INSTALL,;t t
7844 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7846 if test x"$ac_file" != x-; then
7847 mv $tmp/out $ac_file
7855 cat >>$CONFIG_STATUS <<\_ACEOF
7858 # CONFIG_HEADER section.
7861 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
7862 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7864 # ac_d sets the value in "#define NAME VALUE" lines.
7865 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7866 ac_dB
='[ ].*$,\1#\2'
7869 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7870 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7871 ac_uB
='$,\1#\2define\3'
7875 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
7876 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7878 - |
*:- |
*:-:* ) # input from stdin
7880 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7881 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7882 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7883 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7884 * ) ac_file_in
=$ac_file.
in ;;
7887 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
7888 echo "$as_me: creating $ac_file" >&6;}
7890 # First look for the input files in the build tree, otherwise in the
7892 ac_file_inputs
=`IFS=:
7893 for f in $ac_file_in; do
7895 -) echo $tmp/stdin ;;
7897 # Absolute (can't be DOS-style, as IFS=:)
7898 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7899 echo "$as_me: error: cannot find input file: $f" >&2;}
7900 { (exit 1); exit 1; }; }
7901 # Do quote $f, to prevent DOS paths from being IFS'd.
7904 if test -f "$f"; then
7907 elif test -f "$srcdir/$f"; then
7912 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7913 echo "$as_me: error: cannot find input file: $f" >&2;}
7914 { (exit 1); exit 1; }; }
7917 done` ||
{ (exit 1); exit 1; }
7918 # Remove the trailing spaces.
7919 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7923 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7924 # `conftest.undefs', that substitutes the proper values into
7925 # config.h.in to produce config.h. The first handles `#define'
7926 # templates, and the second `#undef' templates.
7927 # And first: Protect against being on the right side of a sed subst in
7928 # config.status. Protect against being in an unquoted here document
7930 rm -f conftest.defines conftest.undefs
7931 # Using a here document instead of a string reduces the quoting nightmare.
7932 # Putting comments in sed scripts is not portable.
7934 # `end' is used to avoid that the second main sed command (meant for
7935 # 0-ary CPP macros) applies to n-ary macro definitions.
7936 # See the Autoconf documentation for `clear'.
7937 cat >confdef2sed.
sed <<\_ACEOF
7942 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7944 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7947 # If some macros were called several times there might be several times
7948 # the same #defines, which is useless. Nevertheless, we may not want to
7949 # sort them, since we want the *last* AC-DEFINE to be honored.
7950 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7951 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7952 rm -f confdef2sed.sed
7954 # This sed command replaces #undef with comments. This is necessary, for
7955 # example, in the case of _POSIX_SOURCE, which is predefined and required
7956 # on some systems where configure will not decide to define it.
7957 cat >>conftest.undefs <<\_ACEOF
7958 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7961 # Break up conftest.defines because some shells have a limit on the size
7962 # of here documents, and old seds have small limits too (100 cmds).
7963 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7964 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7965 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7966 echo ' :' >>$CONFIG_STATUS
7968 while grep . conftest.defines >/dev/null
7970 # Write a limited-size here document to $tmp/defines.sed.
7971 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7972 # Speed up: don't consider the non `#define' lines.
7973 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7974 # Work around the forget-to-reset-the-flag bug.
7975 echo 't clr' >>$CONFIG_STATUS
7976 echo ': clr' >>$CONFIG_STATUS
7977 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
7979 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7983 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
7984 rm -f conftest.defines
7985 mv conftest.
tail conftest.defines
7987 rm -f conftest.defines
7988 echo ' fi # grep' >>$CONFIG_STATUS
7989 echo >>$CONFIG_STATUS
7991 # Break up conftest.undefs because some shells have a limit on the size
7992 # of here documents, and old seds have small limits too (100 cmds).
7993 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7995 while grep . conftest.undefs
>/dev
/null
7997 # Write a limited-size here document to $tmp/undefs.sed.
7998 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7999 # Speed up: don't consider the non
`#undef'
8000 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8001 # Work around the forget-to-reset-the-flag bug.
8002 echo 't clr' >>$CONFIG_STATUS
8003 echo ': clr' >>$CONFIG_STATUS
8004 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8006 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8010 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8011 rm -f conftest.undefs
8012 mv conftest.tail conftest.undefs
8014 rm -f conftest.undefs
8016 cat >>$CONFIG_STATUS <<\_ACEOF
8017 # Let's still pretend it is `configure
' which instantiates (i.e., don't
8018 # use $as_me), people would be surprised to read:
8019 # /* config.h. Generated by config.status. */
8020 if test x
"$ac_file" = x-
; then
8021 echo "/* Generated by configure. */" >$tmp/config.h
8023 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8025 cat $tmp/in >>$tmp/config.h
8027 if test x
"$ac_file" != x-
; then
8028 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
8029 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8030 echo "$as_me: $ac_file is unchanged" >&6;}
8032 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8034 X"$ac_file" : 'X\(//\)[^/]' \| \
8035 X"$ac_file" : 'X\(//\)$' \| \
8036 X"$ac_file" : 'X\(/\)' \| \
8037 . : '\(.\)' 2>/dev/null ||
8039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8040 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8041 /^X\(\/\/\)$/{ s//\1/; q; }
8042 /^X\(\/\).*/{ s//\1/; q; }
8044 { if $as_mkdir_p; then
8049 while test ! -d "$as_dir"; do
8050 as_dirs
="$as_dir $as_dirs"
8051 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8052 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8053 X"$as_dir" : 'X\(//\)[^/]' \| \
8054 X"$as_dir" : 'X\(//\)$' \| \
8055 X"$as_dir" : 'X\(/\)' \| \
8056 . : '\(.\)' 2>/dev/null ||
8058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8060 /^X\(\/\/\)$/{ s//\1/; q; }
8061 /^X\(\/\).*/{ s//\1/; q; }
8064 test ! -n "$as_dirs" || mkdir
$as_dirs
8065 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8066 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8067 { (exit 1); exit 1; }; }; }
8070 mv $tmp/config.h
$ac_file
8078 cat >>$CONFIG_STATUS <<\_ACEOF
8081 # CONFIG_COMMANDS section.
8083 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
8084 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
8085 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8086 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
8087 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8088 X"$ac_dest" : 'X\(//\)[^/]' \| \
8089 X"$ac_dest" : 'X\(//\)$' \| \
8090 X"$ac_dest" : 'X\(/\)' \| \
8091 . : '\(.\)' 2>/dev/null ||
8093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8095 /^X\(\/\/\)$/{ s//\1/; q; }
8096 /^X\(\/\).*/{ s//\1/; q; }
8098 { if $as_mkdir_p; then
8103 while test ! -d "$as_dir"; do
8104 as_dirs
="$as_dir $as_dirs"
8105 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8106 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8107 X"$as_dir" : 'X\(//\)[^/]' \| \
8108 X"$as_dir" : 'X\(//\)$' \| \
8109 X"$as_dir" : 'X\(/\)' \| \
8110 . : '\(.\)' 2>/dev/null ||
8112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8114 /^X\(\/\/\)$/{ s//\1/; q; }
8115 /^X\(\/\).*/{ s//\1/; q; }
8118 test ! -n "$as_dirs" || mkdir
$as_dirs
8119 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8120 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8121 { (exit 1); exit 1; }; }; }
8125 if test "$ac_dir" != .
; then
8126 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8127 # A "../" for each directory in $ac_dir_suffix.
8128 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8130 ac_dir_suffix
= ac_top_builddir
=
8134 .
) # No --srcdir option. We are building in place.
8136 if test -z "$ac_top_builddir"; then
8139 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8141 [\\/]* | ?
:[\\/]* ) # Absolute path.
8142 ac_srcdir
=$srcdir$ac_dir_suffix;
8143 ac_top_srcdir
=$srcdir ;;
8145 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8146 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8149 # Do not use `cd foo && pwd` to compute absolute paths, because
8150 # the directories may not exist.
8152 .
) ac_abs_builddir
="$ac_dir";;
8155 .
) ac_abs_builddir
=`pwd`;;
8156 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8157 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8160 case $ac_abs_builddir in
8161 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8163 case ${ac_top_builddir}.
in
8164 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8165 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8166 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8169 case $ac_abs_builddir in
8170 .
) ac_abs_srcdir
=$ac_srcdir;;
8173 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8174 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8175 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8178 case $ac_abs_builddir in
8179 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8181 case $ac_top_srcdir in
8182 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8183 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8184 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8189 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8190 echo "$as_me: executing $ac_dest commands" >&6;}
8193 # Makefile uses this timestamp file to record whether config.h is up to date.
8200 cat >>$CONFIG_STATUS <<\_ACEOF
8202 { (exit 0); exit 0; }
8204 chmod +x
$CONFIG_STATUS
8205 ac_clean_files
=$ac_clean_files_save
8208 # configure is writing to config.log, and then calls config.status.
8209 # config.status does its own redirection, appending to config.log.
8210 # Unfortunately, on DOS this fails, as config.log is still kept open
8211 # by configure, so config.status won't be able to write to it; its
8212 # output is simply discarded. So we exec the FD to /dev/null,
8213 # effectively closing config.log, so it can be properly (re)opened and
8214 # appended to by config.status. When coming back to configure, we
8215 # need to make the FD available again.
8216 if test "$no_create" != yes; then
8218 ac_config_status_args
=
8219 test "$silent" = yes &&
8220 ac_config_status_args
="$ac_config_status_args --quiet"
8222 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8224 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8225 # would make configure fail if this is the last instruction.
8226 $ac_cs_success ||
{ (exit 1); exit 1; }