2 # From configure.in for Readline 5.1, version 2.59.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for readline 5.1-release.
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
='5.1-release'
274 PACKAGE_STRING
='readline 5.1-release'
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 CROSS_COMPILE SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP 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_DOT SHLIB_LIBPREF SHLIB_LIBSUFF SHLIB_LIBVERSION SHLIB_DLLVERSION SHLIB_LIBS SHLIB_MAJOR SHLIB_MINOR STATIC_TARGET SHARED_TARGET STATIC_INSTALL_TARGET SHARED_INSTALL_TARGET PURIFY 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 5.1-release 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 5.1-release:";;
850 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
851 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
852 --enable-multibyte enable multibyte characters
if OS supports them
853 --enable-static build static libraries
[default
=YES
]
856 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
857 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
858 --with-curses use the curses library instead of the termcap
860 --with-purify configure to postprocess with purify
862 Some influential environment variables
:
863 CC C compiler
command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
866 nonstandard directory
<lib dir
>
867 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
868 headers
in a nonstandard directory
<include dir
>
871 Use these variables to override the choices made by
`configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
874 Report bugs to <bug-readline@gnu.org>.
878 if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882 test -d $ac_dir || continue
885 if test "$ac_dir" != .; then
886 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
890 ac_dir_suffix= ac_top_builddir=
894 .) # No --srcdir option. We are building in place.
896 if test -z "$ac_top_builddir"; then
899 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_srcdir=$srcdir$ac_dir_suffix;
903 ac_top_srcdir=$srcdir ;;
905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
909 # Do not use `cd foo
&& pwd` to compute absolute paths, because
910 # the directories may not exist.
912 .) ac_abs_builddir="$ac_dir";;
915 .) ac_abs_builddir=`pwd`;;
916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
917 *) ac_abs_builddir=`pwd`/"$ac_dir";;
920 case $ac_abs_builddir in
921 .) ac_abs_top_builddir=${ac_top_builddir}.;;
923 case ${ac_top_builddir}. in
924 .) ac_abs_top_builddir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
929 case $ac_abs_builddir in
930 .) ac_abs_srcdir=$ac_srcdir;;
933 .) ac_abs_srcdir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
938 case $ac_abs_builddir in
939 .) ac_abs_top_srcdir=$ac_top_srcdir;;
941 case $ac_top_srcdir in
942 .) ac_abs_top_srcdir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
949 # Check for guested configure; otherwise get Cygnus style configure.
950 if test -f $ac_srcdir/configure.gnu; then
952 $SHELL $ac_srcdir/configure.gnu --help=recursive
953 elif test -f $ac_srcdir/configure; then
955 $SHELL $ac_srcdir/configure --help=recursive
956 elif test -f $ac_srcdir/configure.ac ||
957 test -f $ac_srcdir/configure.in; then
961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
970 readline configure 5.1-release
971 generated by GNU Autoconf 2.59
973 Copyright (C) 2003 Free Software Foundation, Inc.
974 This configure script is free software; the Free Software Foundation
975 gives unlimited permission to copy, distribute and modify it.
981 This file contains any messages produced by compilers while
982 running configure, to aid debugging if configure makes a mistake.
984 It was created by readline $as_me 5.1-release, which was
985 generated by GNU Autoconf 2.59. Invocation command line was
996 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
997 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
998 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
999 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1000 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1002 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1003 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1005 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1006 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1007 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1008 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1009 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1010 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1011 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1019 test -z "$as_dir" && as_dir=.
1020 echo "PATH: $as_dir"
1035 # Keep a trace of the command line.
1036 # Strip out --no-create and --no-recursion so they do not pile up.
1037 # Strip out --silent because we don't want to record it for future runs.
1038 # Also quote any args containing shell meta-characters.
1039 # Make two passes to allow for proper duplicate-argument suppression.
1044 ac_must_keep_next=false
1050 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1054 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1055 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1058 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1060 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1061 if test $ac_must_keep_next = true; then
1062 ac_must_keep_next=false # Got value, back to normal.
1065 *=* | --config-cache | -C | -disable-* | --disable-* \
1066 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1067 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1068 | -with-* | --with-* | -without-* | --without-* | --x)
1069 case "$ac_configure_args0 " in
1070 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1073 -* ) ac_must_keep_next=true ;;
1076 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1077 # Get rid of the leading space.
1083 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1084 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1086 # When interrupted or exit'd, cleanup temporary files, and complete
1087 # config.log. We remove comments because anyway the quotes in there
1088 # would cause problems or look ugly.
1089 # WARNING: Be sure not to use single quotes in there, as some shells,
1090 # such as our DU 5.0 friend, will then `close
' the trap.
1091 trap 'exit_status
=$?
1092 # Save into config.log some information that might help in debugging.
1097 ## ---------------- ##
1098 ## Cache variables. ##
1099 ## ---------------- ##
1102 # The following way of writing the cache mishandles newlines in values,
1105 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1108 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1113 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1120 ## ----------------- ##
1121 ## Output variables. ##
1122 ## ----------------- ##
1125 for ac_var
in $ac_subst_vars
1127 eval ac_val
=$
`echo $ac_var`
1128 echo "$ac_var='"'"'$ac_val'"'"'"
1132 if test -n "$ac_subst_files"; then
1139 for ac_var
in $ac_subst_files
1141 eval ac_val
=$
`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1147 if test -s confdefs.h
; then
1154 sed "/^$/d" confdefs.h |
sort
1157 test "$ac_signal" != 0 &&
1158 echo "$as_me: caught signal $ac_signal"
1159 echo "$as_me: exit $exit_status"
1161 rm -f core
*.core
&&
1162 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1165 for ac_signal in 1 2 13 15; do
1166 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1170 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1171 rm -rf conftest* confdefs.h
1172 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1175 # Predefined preprocessor variables.
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_NAME "$PACKAGE_NAME"
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_STRING "$PACKAGE_STRING"
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1202 # Let the site file select an alternate cache file if it wants to.
1203 # Prefer explicitly selected file to automatically selected ones.
1204 if test -z "$CONFIG_SITE"; then
1205 if test "x$prefix" != xNONE; then
1206 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1208 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1211 for ac_site_file in $CONFIG_SITE; do
1212 if test -r "$ac_site_file"; then
1213 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1214 echo "$as_me: loading site script $ac_site_file" >&6;}
1215 sed 's
/^
/|
/' "$ac_site_file" >&5
1220 if test -r "$cache_file"; then
1221 # Some versions of bash will fail to source /dev/null (special
1222 # files actually), so we avoid doing that.
1223 if test -f "$cache_file"; then
1224 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1225 echo "$as_me: loading cache $cache_file" >&6;}
1227 [\\/]* | ?:[\\/]* ) . $cache_file;;
1228 *) . ./$cache_file;;
1232 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1233 echo "$as_me: creating cache $cache_file" >&6;}
1237 # Check that the precious variables saved in the cache have kept the same
1239 ac_cache_corrupted=false
1240 for ac_var in `(set) 2>&1 |
1241 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1242 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1243 eval ac_new_set=\$ac_env_${ac_var}_set
1244 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1245 eval ac_new_val="\$ac_env_${ac_var}_value"
1246 case $ac_old_set,$ac_new_set in
1248 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1250 ac_cache_corrupted=: ;;
1252 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1257 if test "x$ac_old_val" != "x$ac_new_val"; then
1258 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1259 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1260 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1261 echo "$as_me: former value: $ac_old_val" >&2;}
1262 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1263 echo "$as_me: current value: $ac_new_val" >&2;}
1264 ac_cache_corrupted=:
1267 # Pass precious variables to config.status.
1268 if test "$ac_new_set" = set; then
1270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1272 *) ac_arg=$ac_var=$ac_new_val ;;
1274 case " $ac_configure_args " in
1275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1276 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1280 if $ac_cache_corrupted; then
1281 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1282 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1283 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1284 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1285 { (exit 1); exit 1; }; }
1289 ac_cpp='$CPP $CPPFLAGS'
1290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1291 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1325 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
1326 if test -f $ac_dir/install-sh; then
1328 ac_install_sh="$ac_aux_dir/install-sh -c"
1330 elif test -f $ac_dir/install.sh; then
1332 ac_install_sh="$ac_aux_dir/install.sh -c"
1334 elif test -f $ac_dir/shtool; then
1336 ac_install_sh="$ac_aux_dir/shtool install -c"
1340 if test -z "$ac_aux_dir"; then
1341 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
1342 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
1343 { (exit 1); exit 1; }; }
1345 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1346 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1347 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1349 ac_config_headers="$ac_config_headers config.h"
1354 # Make sure we can run config.sub.
1355 $ac_config_sub sun4 >/dev/null 2>&1 ||
1356 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1357 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1358 { (exit 1); exit 1; }; }
1360 echo "$as_me:$LINENO: checking build system type" >&5
1361 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1362 if test "${ac_cv_build+set}" = set; then
1363 echo $ECHO_N "(cached) $ECHO_C" >&6
1365 ac_cv_build_alias=$build_alias
1366 test -z "$ac_cv_build_alias" &&
1367 ac_cv_build_alias=`$ac_config_guess`
1368 test -z "$ac_cv_build_alias" &&
1369 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1370 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1371 { (exit 1); exit 1; }; }
1372 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1373 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1374 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1375 { (exit 1); exit 1; }; }
1378 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1379 echo "${ECHO_T}$ac_cv_build" >&6
1381 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1382 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1383 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1386 echo "$as_me:$LINENO: checking host system type" >&5
1387 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1388 if test "${ac_cv_host+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1391 ac_cv_host_alias=$host_alias
1392 test -z "$ac_cv_host_alias" &&
1393 ac_cv_host_alias=$ac_cv_build_alias
1394 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1396 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1397 { (exit 1); exit 1; }; }
1400 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1401 echo "${ECHO_T}$ac_cv_host" >&6
1403 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1404 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1405 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1413 # Check whether --with-curses or --without-curses was given.
1414 if test "${with_curses+set}" = set; then
1415 withval="$with_curses"
1419 # Check whether --with-purify or --without-purify was given.
1420 if test "${with_purify+set}" = set; then
1421 withval="$with_purify"
1425 if test "$opt_curses" = "yes"; then
1429 if test "$opt_purify" = yes; then
1439 # Check whether --enable-multibyte or --disable-multibyte was given.
1440 if test "${enable_multibyte+set}" = set; then
1441 enableval="$enable_multibyte"
1442 opt_multibyte=$enableval
1444 # Check whether --enable-static or --disable-static was given.
1445 if test "${enable_static+set}" = set; then
1446 enableval="$enable_static"
1447 opt_static_libs=$enableval
1450 if test $opt_multibyte = no; then
1451 cat >>confdefs.h <<\_ACEOF
1452 #define NO_MULTIBYTE_SUPPORT 1
1460 if test "x$cross_compiling" = "xyes"; then
1463 cross_cache=${srcdir}/cross-build/cygwin.cache
1466 cross_cache=${srcdir}/cross-build/mingw.cache
1469 cross_cache=${srcdir}/cross-build/x86-beos.cache
1471 *) echo "configure: cross-compiling for $host is not supported" >&2
1474 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
1475 echo "loading cross-build cache file ${cross_cache}"
1479 CROSS_COMPILE='-DCROSS_COMPILING'
1484 echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}"
1487 # We want these before the checks, so the checks can modify their values.
1488 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
1490 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1491 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1492 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y
,:.
/+-,___p_
,'`
1493 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1494 echo $ECHO_N "(cached) $ECHO_C" >&6
1496 cat >conftest.make <<\_ACEOF
1498 @echo 'ac_maketemp
="$(MAKE)"'
1500 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1501 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1502 if test -n "$ac_maketemp"; then
1503 eval ac_cv_prog_make_${ac_make}_set=yes
1505 eval ac_cv_prog_make_${ac_make}_set=no
1509 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1510 echo "$as_me:$LINENO: result: yes" >&5
1511 echo "${ECHO_T}yes" >&6
1514 echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1516 SET_MAKE="MAKE=${MAKE-make}"
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1522 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524 if test -n "$ac_tool_prefix"; then
1525 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_CC+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 if test -n "$CC"; then
1533 ac_cv_prog_CC="$CC" # Let the user override the test.
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 test -z "$as_dir" && as_dir=.
1540 for ac_exec_ext in '' $ac_executable_extensions; do
1541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1552 if test -n "$CC"; then
1553 echo "$as_me:$LINENO: result: $CC" >&5
1554 echo "${ECHO_T}$CC" >&6
1556 echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1561 if test -z "$ac_cv_prog_CC"; then
1563 # Extract the first word of "gcc", so it can be a program name with args.
1564 set dummy gcc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 if test -n "$ac_ct_CC"; then
1571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577 test -z "$as_dir" && as_dir=.
1578 for ac_exec_ext in '' $ac_executable_extensions; do
1579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580 ac_cv_prog_ac_ct_CC="gcc"
1581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1590 if test -n "$ac_ct_CC"; then
1591 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1592 echo "${ECHO_T}$ac_ct_CC" >&6
1594 echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1603 if test -z "$CC"; then
1604 if test -n "$ac_tool_prefix"; then
1605 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1606 set dummy ${ac_tool_prefix}cc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 if test -n "$CC"; then
1613 ac_cv_prog_CC="$CC" # Let the user override the test.
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 test -z "$as_dir" && as_dir=.
1620 for ac_exec_ext in '' $ac_executable_extensions; do
1621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622 ac_cv_prog_CC="${ac_tool_prefix}cc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632 if test -n "$CC"; then
1633 echo "$as_me:$LINENO: result: $CC" >&5
1634 echo "${ECHO_T}$CC" >&6
1636 echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1641 if test -z "$ac_cv_prog_CC"; then
1643 # Extract the first word of "cc", so it can be a program name with args.
1644 set dummy cc; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 if test -n "$ac_ct_CC"; then
1651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 test -z "$as_dir" && as_dir=.
1658 for ac_exec_ext in '' $ac_executable_extensions; do
1659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660 ac_cv_prog_ac_ct_CC="cc"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1674 echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1684 if test -z "$CC"; then
1685 # Extract the first word of "cc", so it can be a program name with args.
1686 set dummy cc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 if test -n "$CC"; then
1693 ac_cv_prog_CC="$CC" # Let the user override the test.
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1704 ac_prog_rejected=yes
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 if test $ac_prog_rejected = yes; then
1715 # We found a bogon in the path, so make sure we never use it.
1716 set dummy $ac_cv_prog_CC
1718 if test $# != 0; then
1719 # We chose a different compiler from the bogus one.
1720 # However, it has the same basename, so the bogon will be chosen
1721 # first if we set CC to just the basename; use the full file name.
1723 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1729 if test -n "$CC"; then
1730 echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1738 if test -z "$CC"; then
1739 if test -n "$ac_tool_prefix"; then
1742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_prog_CC+set}" = set; then
1747 echo $ECHO_N "(cached) $ECHO_C" >&6
1749 if test -n "$CC"; then
1750 ac_cv_prog_CC="$CC" # Let the user override the test.
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 test -z "$as_dir" && as_dir=.
1757 for ac_exec_ext in '' $ac_executable_extensions; do
1758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769 if test -n "$CC"; then
1770 echo "$as_me:$LINENO: result: $CC" >&5
1771 echo "${ECHO_T}$CC" >&6
1773 echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1777 test -n "$CC" && break
1780 if test -z "$CC"; then
1784 # Extract the first word of "$ac_prog", so it can be a program name with args.
1785 set dummy $ac_prog; ac_word=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 if test -n "$ac_ct_CC"; then
1792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 test -z "$as_dir" && as_dir=.
1799 for ac_exec_ext in '' $ac_executable_extensions; do
1800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801 ac_cv_prog_ac_ct_CC="$ac_prog"
1802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1811 if test -n "$ac_ct_CC"; then
1812 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1813 echo "${ECHO_T}$ac_ct_CC" >&6
1815 echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1819 test -n "$ac_ct_CC" && break
1828 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1829 See \`config.log' for more details.
" >&5
1830 echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
1831 See \
`config.log' for more details." >&2;}
1832 { (exit 1); exit 1; }; }
1834 # Provide some information about the compiler.
1835 echo "$as_me:$LINENO:" \
1836 "checking for C compiler version" >&5
1837 ac_compiler=`set X
$ac_compile; echo $2`
1838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1839 (eval $ac_compiler --version </dev/null >&5) 2>&5
1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842 (exit $ac_status); }
1843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1844 (eval $ac_compiler -v </dev/null >&5) 2>&5
1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847 (exit $ac_status); }
1848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1849 (eval $ac_compiler -V </dev/null >&5) 2>&5
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }
1854 cat >conftest.$ac_ext <<_ACEOF
1857 cat confdefs.h >>conftest.$ac_ext
1858 cat >>conftest.$ac_ext <<_ACEOF
1859 /* end confdefs.h. */
1869 ac_clean_files_save=$ac_clean_files
1870 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1871 # Try to create an executable without -o first, disregard a.out.
1872 # It will help us diagnose broken compilers, and finding out an intuition
1874 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1875 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1876 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
1877 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1878 (eval $ac_link_default) 2>&5
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); }; then
1882 # Find the output, starting from the most likely. This scheme is
1883 # not robust to junk in `.
', hence go to wildcards (a.*) only as a last
1886 # Be careful to initialize this variable, since it used to be cached.
1887 # Otherwise an old cache value of `no' led to
`EXEEXT = no' in a Makefile.
1889 # b.out is created by i960 compilers.
1890 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1892 test -f "$ac_file" || continue
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1897 # This is the source file.
1900 # We found the default executable, but exeext='' is most
1904 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1905 # FIXME: I believe we export ac_cv_exeext for Libtool,
1906 # but it would be cool to find out if it's true. Does anybody
1907 # maintain Libtool? --akim.
1915 echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1919 See \`config.log
' for more details." >&5
1920 echo "$as_me: error: C compiler cannot create executables
1921 See \`config.log' for more details.
" >&2;}
1922 { (exit 77); exit 77; }; }
1925 ac_exeext=$ac_cv_exeext
1926 echo "$as_me:$LINENO: result
: $ac_file" >&5
1927 echo "${ECHO_T}$ac_file" >&6
1929 # Check the compiler produces executables we can run. If not, either
1930 # the compiler is broken, or we cross compile.
1931 echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
1932 echo $ECHO_N "checking whether the C compiler works...
$ECHO_C" >&6
1933 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1934 # If not cross compiling, check that we can run a simple program.
1935 if test "$cross_compiling" != yes; then
1936 if { ac_try='./$ac_file'
1937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
1941 (exit $ac_status); }; }; then
1944 if test "$cross_compiling" = maybe; then
1947 { { echo "$as_me:$LINENO: error
: cannot run C compiled programs.
1948 If you meant to cross compile
, use \
`--host'.
1949 See \`config.log
' for more details." >&5
1950 echo "$as_me: error: cannot run C compiled programs.
1951 If you meant to cross compile, use \`--host'.
1952 See \
`config.log' for more details." >&2;}
1953 { (exit 1); exit 1; }; }
1957 echo "$as_me:$LINENO: result: yes" >&5
1958 echo "${ECHO_T}yes" >&6
1960 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1961 ac_clean_files=$ac_clean_files_save
1962 # Check the compiler produces executables we can run. If not, either
1963 # the compiler is broken, or we cross compile.
1964 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1965 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1966 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1967 echo "${ECHO_T}$cross_compiling" >&6
1969 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1970 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1972 (eval $ac_link) 2>&5
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); }; then
1976 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
1977 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
1978 # work properly (i.e., refer to `conftest.exe'), while it won't with
1980 for ac_file
in conftest.exe conftest conftest.
*; do
1981 test -f "$ac_file" ||
continue
1983 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1984 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1991 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1992 See \`config.log' for more details." >&5
1993 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&2;}
1995 { (exit 1); exit 1; }; }
1998 rm -f conftest
$ac_cv_exeext
1999 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2000 echo "${ECHO_T}$ac_cv_exeext" >&6
2002 rm -f conftest.
$ac_ext
2003 EXEEXT
=$ac_cv_exeext
2005 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2006 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2007 if test "${ac_cv_objext+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. */
2025 rm -f conftest.o conftest.obj
2026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027 (eval $ac_compile) 2>&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; then
2031 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2033 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2034 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2039 echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.
$ac_ext >&5
2042 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2043 See \`config.log' for more details." >&5
2044 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&2;}
2046 { (exit 1); exit 1; }; }
2049 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2051 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2052 echo "${ECHO_T}$ac_cv_objext" >&6
2053 OBJEXT
=$ac_cv_objext
2055 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2056 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2057 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 cat >conftest.
$ac_ext <<_ACEOF
2063 cat confdefs.h
>>conftest.
$ac_ext
2064 cat >>conftest.
$ac_ext <<_ACEOF
2065 /* end confdefs.h. */
2078 rm -f conftest.
$ac_objext
2079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080 (eval $ac_compile) 2>conftest.er1
2082 grep -v '^ *+' conftest.er1
>conftest.err
2084 cat conftest.err
>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
2087 { ac_try
='test -z "$ac_c_werror_flag"
2088 || test ! -s conftest.err'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; } &&
2094 { ac_try
='test -s conftest.$ac_objext'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; }; then
2102 echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.
$ac_ext >&5
2107 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2108 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2111 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2112 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2113 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2114 ac_test_CFLAGS
=${CFLAGS+set}
2115 ac_save_CFLAGS
=$CFLAGS
2117 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2118 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2119 if test "${ac_cv_prog_cc_g+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 cat >conftest.
$ac_ext <<_ACEOF
2125 cat confdefs.h
>>conftest.
$ac_ext
2126 cat >>conftest.
$ac_ext <<_ACEOF
2127 /* end confdefs.h. */
2137 rm -f conftest.
$ac_objext
2138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139 (eval $ac_compile) 2>conftest.er1
2141 grep -v '^ *+' conftest.er1
>conftest.err
2143 cat conftest.err
>&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); } &&
2146 { ac_try
='test -z "$ac_c_werror_flag"
2147 || test ! -s conftest.err'
2148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; } &&
2153 { ac_try
='test -s conftest.$ac_objext'
2154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; }; then
2161 echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.
$ac_ext >&5
2166 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2168 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2169 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2170 if test "$ac_test_CFLAGS" = set; then
2171 CFLAGS
=$ac_save_CFLAGS
2172 elif test $ac_cv_prog_cc_g = yes; then
2173 if test "$GCC" = yes; then
2179 if test "$GCC" = yes; then
2185 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2186 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2187 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 ac_cv_prog_cc_stdc
=no
2192 cat >conftest.
$ac_ext <<_ACEOF
2195 cat confdefs.h
>>conftest.
$ac_ext
2196 cat >>conftest.
$ac_ext <<_ACEOF
2197 /* end confdefs.h. */
2200 #include <sys/types.h>
2201 #include <sys/stat.h>
2202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2203 struct buf { int x; };
2204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2205 static char *e (p, i)
2211 static char *f (char * (*g) (char **, int), char **p, ...)
2216 s = g (p, va_arg (v,int));
2221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2222 function prototypes and stuff, but not '\xHH' hex character constants.
2223 These don't provoke an error unfortunately, instead are silently treated
2224 as 'x'. The following induces an error, until -std1 is added to get
2225 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2226 array size at least. It's necessary to write '\x00'==0 to get something
2227 that's true only with -std1. */
2228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2230 int test (int i, double x);
2231 struct s1 {int (*f) (int a);};
2232 struct s2 {int (*f) (double a);};
2233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2239 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2244 # Don't try gcc -ansi; that turns off useful extensions and
2245 # breaks some systems' header files.
2246 # AIX -qlanglvl=ansi
2247 # Ultrix and OSF/1 -std1
2248 # HP-UX 10.20 and later -Ae
2249 # HP-UX older versions -Aa -D_HPUX_SOURCE
2250 # SVR4 -Xc -D__EXTENSIONS__
2251 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2253 CC
="$ac_save_CC $ac_arg"
2254 rm -f conftest.
$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>conftest.er1
2258 grep -v '^ *+' conftest.er1
>conftest.err
2260 cat conftest.err
>&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } &&
2263 { ac_try
='test -z "$ac_c_werror_flag"
2264 || test ! -s conftest.err'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; } &&
2270 { ac_try
='test -s conftest.$ac_objext'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; }; then
2276 ac_cv_prog_cc_stdc
=$ac_arg
2279 echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.
$ac_ext >&5
2283 rm -f conftest.err conftest.
$ac_objext
2285 rm -f conftest.
$ac_ext conftest.
$ac_objext
2290 case "x$ac_cv_prog_cc_stdc" in
2292 echo "$as_me:$LINENO: result: none needed" >&5
2293 echo "${ECHO_T}none needed" >&6 ;;
2295 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2296 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2297 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2300 # Some people use a C++ compiler to compile C. Since we use `exit',
2301 # in C++ we need to declare it. In case someone uses the same compiler
2302 # for both compiling C and C++ we need to have the C++ compiler decide
2303 # the declaration of exit, since it's the most demanding environment.
2304 cat >conftest.
$ac_ext <<_ACEOF
2309 rm -f conftest.
$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>conftest.er1
2313 grep -v '^ *+' conftest.er1
>conftest.err
2315 cat conftest.err
>&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
2318 { ac_try
='test -z "$ac_c_werror_flag"
2319 || test ! -s conftest.err'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; } &&
2325 { ac_try
='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 for ac_declaration
in \
2333 'extern "C" void std::exit (int) throw (); using std::exit;' \
2334 'extern "C" void std::exit (int); using std::exit;' \
2335 'extern "C" void exit (int) throw ();' \
2336 'extern "C" void exit (int);' \
2339 cat >conftest.
$ac_ext <<_ACEOF
2342 cat confdefs.h
>>conftest.
$ac_ext
2343 cat >>conftest.
$ac_ext <<_ACEOF
2344 /* end confdefs.h. */
2355 rm -f conftest.
$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>conftest.er1
2359 grep -v '^ *+' conftest.er1
>conftest.err
2361 cat conftest.err
>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try
='test -z "$ac_c_werror_flag"
2365 || test ! -s conftest.err'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; } &&
2371 { ac_try
='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.
$ac_ext >&5
2384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2385 cat >conftest.
$ac_ext <<_ACEOF
2388 cat confdefs.h
>>conftest.
$ac_ext
2389 cat >>conftest.
$ac_ext <<_ACEOF
2390 /* end confdefs.h. */
2400 rm -f conftest.
$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2404 grep -v '^ *+' conftest.er1
>conftest.err
2406 cat conftest.err
>&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try
='test -z "$ac_c_werror_flag"
2410 || test ! -s conftest.err'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try
='test -s conftest.$ac_objext'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.
$ac_ext >&5
2428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2431 if test -n "$ac_declaration"; then
2432 echo '#ifdef __cplusplus' >>confdefs.h
2433 echo $ac_declaration >>confdefs.h
2434 echo '#endif' >>confdefs.h
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.
$ac_ext >&5
2442 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2444 ac_cpp
='$CPP $CPPFLAGS'
2445 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2451 ac_cpp
='$CPP $CPPFLAGS'
2452 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2455 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2456 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2457 # On Suns, sometimes $CPP names a directory.
2458 if test -n "$CPP" && test -d "$CPP"; then
2461 if test -z "$CPP"; then
2462 if test "${ac_cv_prog_CPP+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 # Double quotes because CPP needs to be expanded
2466 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2469 for ac_c_preproc_warn_flag
in '' yes
2471 # Use a header file that comes with gcc, so configuring glibc
2472 # with a fresh cross-compiler works.
2473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2474 # <limits.h> exists even on freestanding compilers.
2475 # On the NeXT, cc -E runs the code through the compiler's parser,
2476 # not just through cpp. "Syntax error" is here to catch this case.
2477 cat >conftest.
$ac_ext <<_ACEOF
2480 cat confdefs.h
>>conftest.
$ac_ext
2481 cat >>conftest.
$ac_ext <<_ACEOF
2482 /* end confdefs.h. */
2484 # include <limits.h>
2486 # include <assert.h>
2490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2491 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2493 grep -v '^ *+' conftest.er1
>conftest.err
2495 cat conftest.err
>&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } >/dev
/null
; then
2498 if test -s conftest.err
; then
2499 ac_cpp_err
=$ac_c_preproc_warn_flag
2500 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2507 if test -z "$ac_cpp_err"; then
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.
$ac_ext >&5
2513 # Broken: fails on valid input.
2516 rm -f conftest.err conftest.
$ac_ext
2518 # OK, works on sane cases. Now check whether non-existent headers
2519 # can be detected and how.
2520 cat >conftest.
$ac_ext <<_ACEOF
2523 cat confdefs.h
>>conftest.
$ac_ext
2524 cat >>conftest.
$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2526 #include <ac_nonexistent.h>
2528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2529 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2531 grep -v '^ *+' conftest.er1
>conftest.err
2533 cat conftest.err
>&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } >/dev
/null
; then
2536 if test -s conftest.err
; then
2537 ac_cpp_err
=$ac_c_preproc_warn_flag
2538 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2545 if test -z "$ac_cpp_err"; then
2546 # Broken: success on invalid input.
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.
$ac_ext >&5
2552 # Passes both tests.
2556 rm -f conftest.err conftest.
$ac_ext
2559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2560 rm -f conftest.err conftest.
$ac_ext
2561 if $ac_preproc_ok; then
2573 echo "$as_me:$LINENO: result: $CPP" >&5
2574 echo "${ECHO_T}$CPP" >&6
2576 for ac_c_preproc_warn_flag
in '' yes
2578 # Use a header file that comes with gcc, so configuring glibc
2579 # with a fresh cross-compiler works.
2580 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2581 # <limits.h> exists even on freestanding compilers.
2582 # On the NeXT, cc -E runs the code through the compiler's parser,
2583 # not just through cpp. "Syntax error" is here to catch this case.
2584 cat >conftest.
$ac_ext <<_ACEOF
2587 cat confdefs.h
>>conftest.
$ac_ext
2588 cat >>conftest.
$ac_ext <<_ACEOF
2589 /* end confdefs.h. */
2591 # include <limits.h>
2593 # include <assert.h>
2597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2598 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2600 grep -v '^ *+' conftest.er1
>conftest.err
2602 cat conftest.err
>&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } >/dev
/null
; then
2605 if test -s conftest.err
; then
2606 ac_cpp_err
=$ac_c_preproc_warn_flag
2607 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2614 if test -z "$ac_cpp_err"; then
2617 echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.
$ac_ext >&5
2620 # Broken: fails on valid input.
2623 rm -f conftest.err conftest.
$ac_ext
2625 # OK, works on sane cases. Now check whether non-existent headers
2626 # can be detected and how.
2627 cat >conftest.
$ac_ext <<_ACEOF
2630 cat confdefs.h
>>conftest.
$ac_ext
2631 cat >>conftest.
$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2633 #include <ac_nonexistent.h>
2635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2636 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2638 grep -v '^ *+' conftest.er1
>conftest.err
2640 cat conftest.err
>&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } >/dev
/null
; then
2643 if test -s conftest.err
; then
2644 ac_cpp_err
=$ac_c_preproc_warn_flag
2645 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2652 if test -z "$ac_cpp_err"; then
2653 # Broken: success on invalid input.
2656 echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.
$ac_ext >&5
2659 # Passes both tests.
2663 rm -f conftest.err conftest.
$ac_ext
2666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2667 rm -f conftest.err conftest.
$ac_ext
2668 if $ac_preproc_ok; then
2671 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2672 See \`config.log' for more details." >&5
2673 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2674 See \`config.log' for more details." >&2;}
2675 { (exit 1); exit 1; }; }
2679 ac_cpp
='$CPP $CPPFLAGS'
2680 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2681 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2682 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2685 echo "$as_me:$LINENO: checking for egrep" >&5
2686 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2687 if test "${ac_cv_prog_egrep+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2691 then ac_cv_prog_egrep
='grep -E'
2692 else ac_cv_prog_egrep
='egrep'
2695 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2696 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2697 EGREP
=$ac_cv_prog_egrep
2700 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2701 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2702 if test "${ac_cv_header_stdc+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 cat >conftest.
$ac_ext <<_ACEOF
2708 cat confdefs.h
>>conftest.
$ac_ext
2709 cat >>conftest.
$ac_ext <<_ACEOF
2710 /* end confdefs.h. */
2724 rm -f conftest.
$ac_objext
2725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726 (eval $ac_compile) 2>conftest.er1
2728 grep -v '^ *+' conftest.er1
>conftest.err
2730 cat conftest.err
>&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } &&
2733 { ac_try
='test -z "$ac_c_werror_flag"
2734 || test ! -s conftest.err'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; } &&
2740 { ac_try
='test -s conftest.$ac_objext'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; }; then
2746 ac_cv_header_stdc
=yes
2748 echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.
$ac_ext >&5
2751 ac_cv_header_stdc
=no
2753 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2755 if test $ac_cv_header_stdc = yes; then
2756 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2757 cat >conftest.
$ac_ext <<_ACEOF
2760 cat confdefs.h
>>conftest.
$ac_ext
2761 cat >>conftest.
$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2767 $EGREP "memchr" >/dev
/null
2>&1; then
2770 ac_cv_header_stdc
=no
2776 if test $ac_cv_header_stdc = yes; then
2777 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2778 cat >conftest.
$ac_ext <<_ACEOF
2781 cat confdefs.h
>>conftest.
$ac_ext
2782 cat >>conftest.
$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2788 $EGREP "free" >/dev
/null
2>&1; then
2791 ac_cv_header_stdc
=no
2797 if test $ac_cv_header_stdc = yes; then
2798 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2799 if test "$cross_compiling" = yes; then
2802 cat >conftest.
$ac_ext <<_ACEOF
2805 cat confdefs.h
>>conftest.
$ac_ext
2806 cat >>conftest.
$ac_ext <<_ACEOF
2807 /* end confdefs.h. */
2809 #if ((' ' & 0x0FF) == 0x020)
2810 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2811 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2813 # define ISLOWER(c) \
2814 (('a' <= (c) && (c) <= 'i') \
2815 || ('j' <= (c) && (c) <= 'r') \
2816 || ('s' <= (c) && (c) <= 'z'))
2817 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2820 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2825 for (i = 0; i < 256; i++)
2826 if (XOR (islower (i), ISLOWER (i))
2827 || toupper (i) != TOUPPER (i))
2832 rm -f conftest
$ac_exeext
2833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2834 (eval $ac_link) 2>&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2845 echo "$as_me: program exited with status $ac_status" >&5
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.
$ac_ext >&5
2850 ac_cv_header_stdc
=no
2852 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2856 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2857 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2858 if test $ac_cv_header_stdc = yes; then
2860 cat >>confdefs.h
<<\_ACEOF
2861 #define STDC_HEADERS 1
2866 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2876 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2877 inttypes.h stdint.h unistd.h
2879 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2880 echo "$as_me:$LINENO: checking for $ac_header" >&5
2881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 cat >conftest.
$ac_ext <<_ACEOF
2888 cat confdefs.h
>>conftest.
$ac_ext
2889 cat >>conftest.
$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2891 $ac_includes_default
2893 #include <$ac_header>
2895 rm -f conftest.
$ac_objext
2896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2897 (eval $ac_compile) 2>conftest.er1
2899 grep -v '^ *+' conftest.er1
>conftest.err
2901 cat conftest.err
>&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } &&
2904 { ac_try
='test -z "$ac_c_werror_flag"
2905 || test ! -s conftest.err'
2906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; } &&
2911 { ac_try
='test -s conftest.$ac_objext'
2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2917 eval "$as_ac_Header=yes"
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.
$ac_ext >&5
2922 eval "$as_ac_Header=no"
2924 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2929 cat >>confdefs.h
<<_ACEOF
2930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2938 if test "${ac_cv_header_minix_config_h+set}" = set; then
2939 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2940 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2941 if test "${ac_cv_header_minix_config_h+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2945 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2947 # Is the header compilable?
2948 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2949 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2950 cat >conftest.
$ac_ext <<_ACEOF
2953 cat confdefs.h
>>conftest.
$ac_ext
2954 cat >>conftest.
$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2956 $ac_includes_default
2957 #include <minix/config.h>
2959 rm -f conftest.
$ac_objext
2960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2961 (eval $ac_compile) 2>conftest.er1
2963 grep -v '^ *+' conftest.er1
>conftest.err
2965 cat conftest.err
>&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); } &&
2968 { ac_try
='test -z "$ac_c_werror_flag"
2969 || test ! -s conftest.err'
2970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; } &&
2975 { ac_try
='test -s conftest.$ac_objext'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2981 ac_header_compiler
=yes
2983 echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.
$ac_ext >&5
2986 ac_header_compiler
=no
2988 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2990 echo "${ECHO_T}$ac_header_compiler" >&6
2992 # Is the header present?
2993 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2994 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2995 cat >conftest.
$ac_ext <<_ACEOF
2998 cat confdefs.h
>>conftest.
$ac_ext
2999 cat >>conftest.
$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3001 #include <minix/config.h>
3003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3004 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3006 grep -v '^ *+' conftest.er1
>conftest.err
3008 cat conftest.err
>&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } >/dev
/null
; then
3011 if test -s conftest.err
; then
3012 ac_cpp_err
=$ac_c_preproc_warn_flag
3013 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3020 if test -z "$ac_cpp_err"; then
3021 ac_header_preproc
=yes
3023 echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.
$ac_ext >&5
3026 ac_header_preproc
=no
3028 rm -f conftest.err conftest.
$ac_ext
3029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3030 echo "${ECHO_T}$ac_header_preproc" >&6
3032 # So? What about this header?
3033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3035 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3036 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3037 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3038 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3039 ac_header_preproc
=yes
3042 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3043 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3044 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3045 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3046 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3047 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3048 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3049 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3050 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3051 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3052 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3053 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3056 ## ----------------------------------- ##
3057 ## Report this to bug-readline@gnu.org ##
3058 ## ----------------------------------- ##
3061 sed "s/^/$as_me: WARNING: /" >&2
3064 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3065 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3066 if test "${ac_cv_header_minix_config_h+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 ac_cv_header_minix_config_h
=$ac_header_preproc
3071 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3072 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3075 if test $ac_cv_header_minix_config_h = yes; then
3082 if test "$MINIX" = yes; then
3084 cat >>confdefs.h
<<\_ACEOF
3085 #define _POSIX_SOURCE 1
3089 cat >>confdefs.h
<<\_ACEOF
3090 #define _POSIX_1_SOURCE 2
3094 cat >>confdefs.h
<<\_ACEOF
3102 if test "x$cross_compiling" = "xyes"; then
3105 cross_cache
=${srcdir}/cross-build
/cygwin.cache
3106 LOCAL_CFLAGS
="$LOCAL_CFLAGS -I${srcdir}/../libtermcap"
3109 cross_cache
=${srcdir}/cross-build
/mingw.cache
3111 *) echo "configure: cross-compiling for a non-cygwin target is not supported" >&2
3115 if test "x$cross_cache" != "x"; then
3116 if test -r "${cross_cache}"; then
3117 echo "loading cross-build cache file ${cross_cache}"
3124 if test -z "$CC_FOR_BUILD"; then
3125 if test "x$cross_compiling" = "xno"; then
3126 CC_FOR_BUILD
='$(CC)'
3134 # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
3135 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS
="$CFLAGS -O"
3137 if test $ac_cv_c_compiler_gnu = yes; then
3138 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3139 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3140 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 ac_pattern
="Autoconf.*'x'"
3144 cat >conftest.
$ac_ext <<_ACEOF
3147 cat confdefs.h
>>conftest.
$ac_ext
3148 cat >>conftest.
$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3154 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3155 ac_cv_prog_gcc_traditional
=yes
3157 ac_cv_prog_gcc_traditional
=no
3162 if test $ac_cv_prog_gcc_traditional = no
; then
3163 cat >conftest.
$ac_ext <<_ACEOF
3166 cat confdefs.h
>>conftest.
$ac_ext
3167 cat >>conftest.
$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3173 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3174 ac_cv_prog_gcc_traditional
=yes
3180 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3181 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3182 if test $ac_cv_prog_gcc_traditional = yes; then
3183 CC
="$CC -traditional"
3187 # Find a good install program. We prefer a C program (faster),
3188 # so one script is as good as another. But avoid the broken or
3189 # incompatible versions:
3190 # SysV /etc/install, /usr/sbin/install
3191 # SunOS /usr/etc/install
3192 # IRIX /sbin/install
3194 # AmigaOS /C/install, which installs bootblocks on floppy discs
3195 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3196 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3197 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3198 # OS/2's system install, which has a completely different semantic
3199 # ./install, which can be erroneously created by make from ./install.sh.
3200 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3201 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3202 if test -z "$INSTALL"; then
3203 if test "${ac_cv_path_install+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3210 test -z "$as_dir" && as_dir
=.
3211 # Account for people who put trailing slashes in PATH elements.
3213 .
/ | .
// |
/cC
/* | \
3214 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3215 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3218 # OSF1 and SCO ODT 3.0 have their own names for install.
3219 # Don't use installbsd from OSF since it installs stuff as root
3221 for ac_prog
in ginstall scoinst
install; do
3222 for ac_exec_ext
in '' $ac_executable_extensions; do
3223 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3224 if test $ac_prog = install &&
3225 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3226 # AIX install. It has an incompatible calling convention.
3228 elif test $ac_prog = install &&
3229 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3230 # program-specific install script used by HP pwplus--don't use.
3233 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3245 if test "${ac_cv_path_install+set}" = set; then
3246 INSTALL
=$ac_cv_path_install
3248 # As a last resort, use the slow shell script. We don't cache a
3249 # path for INSTALL within a source directory, because that will
3250 # break other packages using the cache if that directory is
3251 # removed, or if the path is relative.
3252 INSTALL
=$ac_install_sh
3255 echo "$as_me:$LINENO: result: $INSTALL" >&5
3256 echo "${ECHO_T}$INSTALL" >&6
3258 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3259 # It thinks the first close brace ends the variable substitution.
3260 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3262 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3264 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3266 # Extract the first word of "ar", so it can be a program name with args.
3267 set dummy
ar; ac_word
=$2
3268 echo "$as_me:$LINENO: checking for $ac_word" >&5
3269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3270 if test "${ac_cv_prog_AR+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 if test -n "$AR"; then
3274 ac_cv_prog_AR
="$AR" # Let the user override the test.
3276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3280 test -z "$as_dir" && as_dir
=.
3281 for ac_exec_ext
in '' $ac_executable_extensions; do
3282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3294 if test -n "$AR"; then
3295 echo "$as_me:$LINENO: result: $AR" >&5
3296 echo "${ECHO_T}$AR" >&6
3298 echo "$as_me:$LINENO: result: no" >&5
3299 echo "${ECHO_T}no" >&6
3302 test -n "$ARFLAGS" || ARFLAGS
="cr"
3303 if test -n "$ac_tool_prefix"; then
3304 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3305 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3306 echo "$as_me:$LINENO: checking for $ac_word" >&5
3307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3308 if test "${ac_cv_prog_RANLIB+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 if test -n "$RANLIB"; then
3312 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3318 test -z "$as_dir" && as_dir
=.
3319 for ac_exec_ext
in '' $ac_executable_extensions; do
3320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 RANLIB
=$ac_cv_prog_RANLIB
3331 if test -n "$RANLIB"; then
3332 echo "$as_me:$LINENO: result: $RANLIB" >&5
3333 echo "${ECHO_T}$RANLIB" >&6
3335 echo "$as_me:$LINENO: result: no" >&5
3336 echo "${ECHO_T}no" >&6
3340 if test -z "$ac_cv_prog_RANLIB"; then
3341 ac_ct_RANLIB
=$RANLIB
3342 # Extract the first word of "ranlib", so it can be a program name with args.
3343 set dummy ranlib
; ac_word
=$2
3344 echo "$as_me:$LINENO: checking for $ac_word" >&5
3345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3346 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 if test -n "$ac_ct_RANLIB"; then
3350 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3356 test -z "$as_dir" && as_dir
=.
3357 for ac_exec_ext
in '' $ac_executable_extensions; do
3358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3359 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3369 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3370 if test -n "$ac_ct_RANLIB"; then
3371 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3372 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3374 echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3378 RANLIB
=$ac_ct_RANLIB
3380 RANLIB
="$ac_cv_prog_RANLIB"
3387 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3388 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3389 if test "${ac_cv_c_const+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 cat >conftest.
$ac_ext <<_ACEOF
3395 cat confdefs.h
>>conftest.
$ac_ext
3396 cat >>conftest.
$ac_ext <<_ACEOF
3397 /* end confdefs.h. */
3402 /* FIXME: Include the comments suggested by Paul. */
3404 /* Ultrix mips cc rejects this. */
3405 typedef int charset[2];
3407 /* SunOS 4.1.1 cc rejects this. */
3408 char const *const *ccp;
3410 /* NEC SVR4.0.2 mips cc rejects this. */
3411 struct point {int x, y;};
3412 static struct point const zero = {0,0};
3413 /* AIX XL C 1.02.0.0 rejects this.
3414 It does not let you subtract one const X* pointer from another in
3415 an arm of an if-expression whose if-part is not a constant
3417 const char *g = "string";
3418 ccp = &g + (g ? g-g : 0);
3419 /* HPUX 7.0 cc rejects these. */
3422 ccp = (char const *const *) p;
3423 { /* SCO 3.2v4 cc rejects this. */
3425 char const *s = 0 ? (char *) 0 : (char const *) 0;
3429 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3431 const int *foo = &x[0];
3434 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3435 typedef const int *iptr;
3439 { /* AIX XL C 1.02.0.0 rejects this saying
3440 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3441 struct s { int j; const int *ap[3]; };
3442 struct s *b; b->j = 5;
3444 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3453 rm -f conftest.
$ac_objext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455 (eval $ac_compile) 2>conftest.er1
3457 grep -v '^ *+' conftest.er1
>conftest.err
3459 cat conftest.err
>&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try
='test -z "$ac_c_werror_flag"
3463 || test ! -s conftest.err'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; } &&
3469 { ac_try
='test -s conftest.$ac_objext'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; }; then
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.
$ac_ext >&5
3482 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3484 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3485 echo "${ECHO_T}$ac_cv_c_const" >&6
3486 if test $ac_cv_c_const = no
; then
3488 cat >>confdefs.h
<<\_ACEOF
3494 echo "$as_me:$LINENO: checking for function prototypes" >&5
3495 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3496 if test "$ac_cv_prog_cc_stdc" != no
; then
3497 echo "$as_me:$LINENO: result: yes" >&5
3498 echo "${ECHO_T}yes" >&6
3500 cat >>confdefs.h
<<\_ACEOF
3501 #define PROTOTYPES 1
3505 cat >>confdefs.h
<<\_ACEOF
3506 #define __PROTOTYPES 1
3510 echo "$as_me:$LINENO: result: no" >&5
3511 echo "${ECHO_T}no" >&6
3515 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
3516 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
3517 if test "${ac_cv_c_char_unsigned+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 cat >conftest.
$ac_ext <<_ACEOF
3523 cat confdefs.h
>>conftest.
$ac_ext
3524 cat >>conftest.
$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3526 $ac_includes_default
3530 static int test_array [1 - 2 * !(((char) -1) < 0)];
3537 rm -f conftest.
$ac_objext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3539 (eval $ac_compile) 2>conftest.er1
3541 grep -v '^ *+' conftest.er1
>conftest.err
3543 cat conftest.err
>&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try
='test -z "$ac_c_werror_flag"
3547 || test ! -s conftest.err'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; } &&
3553 { ac_try
='test -s conftest.$ac_objext'
3554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; }; then
3559 ac_cv_c_char_unsigned
=no
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.
$ac_ext >&5
3564 ac_cv_c_char_unsigned
=yes
3566 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3568 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
3569 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
3570 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3571 cat >>confdefs.h
<<\_ACEOF
3572 #define __CHAR_UNSIGNED__ 1
3578 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3579 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3580 if test "${ac_cv_type_signal+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 cat >conftest.
$ac_ext <<_ACEOF
3586 cat confdefs.h
>>conftest.
$ac_ext
3587 cat >>conftest.
$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589 #include <sys/types.h>
3595 extern "C" void (*signal (int, void (*)(int)))(int);
3597 void (*signal ()) ();
3608 rm -f conftest.
$ac_objext
3609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3610 (eval $ac_compile) 2>conftest.er1
3612 grep -v '^ *+' conftest.er1
>conftest.err
3614 cat conftest.err
>&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } &&
3617 { ac_try
='test -z "$ac_c_werror_flag"
3618 || test ! -s conftest.err'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; } &&
3624 { ac_try
='test -s conftest.$ac_objext'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; }; then
3630 ac_cv_type_signal
=void
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.
$ac_ext >&5
3635 ac_cv_type_signal
=int
3637 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3639 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3640 echo "${ECHO_T}$ac_cv_type_signal" >&6
3642 cat >>confdefs.h
<<_ACEOF
3643 #define RETSIGTYPE $ac_cv_type_signal
3648 echo "$as_me:$LINENO: checking for size_t" >&5
3649 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3650 if test "${ac_cv_type_size_t+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 cat >conftest.
$ac_ext <<_ACEOF
3656 cat confdefs.h
>>conftest.
$ac_ext
3657 cat >>conftest.
$ac_ext <<_ACEOF
3658 /* end confdefs.h. */
3659 $ac_includes_default
3665 if (sizeof (size_t))
3671 rm -f conftest.
$ac_objext
3672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3673 (eval $ac_compile) 2>conftest.er1
3675 grep -v '^ *+' conftest.er1
>conftest.err
3677 cat conftest.err
>&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } &&
3680 { ac_try
='test -z "$ac_c_werror_flag"
3681 || test ! -s conftest.err'
3682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); }; } &&
3687 { ac_try
='test -s conftest.$ac_objext'
3688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; }; then
3693 ac_cv_type_size_t
=yes
3695 echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.
$ac_ext >&5
3698 ac_cv_type_size_t
=no
3700 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3702 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3703 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3704 if test $ac_cv_type_size_t = yes; then
3708 cat >>confdefs.h
<<_ACEOF
3709 #define size_t unsigned
3714 echo "$as_me:$LINENO: checking for ssize_t" >&5
3715 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
3716 if test "${ac_cv_type_ssize_t+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 cat >conftest.
$ac_ext <<_ACEOF
3722 cat confdefs.h
>>conftest.
$ac_ext
3723 cat >>conftest.
$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3725 $ac_includes_default
3731 if (sizeof (ssize_t))
3737 rm -f conftest.
$ac_objext
3738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3739 (eval $ac_compile) 2>conftest.er1
3741 grep -v '^ *+' conftest.er1
>conftest.err
3743 cat conftest.err
>&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } &&
3746 { ac_try
='test -z "$ac_c_werror_flag"
3747 || test ! -s conftest.err'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; } &&
3753 { ac_try
='test -s conftest.$ac_objext'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
3759 ac_cv_type_ssize_t
=yes
3761 echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.
$ac_ext >&5
3764 ac_cv_type_ssize_t
=no
3766 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3768 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
3769 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
3770 if test $ac_cv_type_ssize_t = yes; then
3774 cat >>confdefs.h
<<_ACEOF
3781 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3782 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3783 if test "${ac_cv_header_stdc+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 cat >conftest.
$ac_ext <<_ACEOF
3789 cat confdefs.h
>>conftest.
$ac_ext
3790 cat >>conftest.
$ac_ext <<_ACEOF
3791 /* end confdefs.h. */
3805 rm -f conftest.
$ac_objext
3806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3807 (eval $ac_compile) 2>conftest.er1
3809 grep -v '^ *+' conftest.er1
>conftest.err
3811 cat conftest.err
>&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } &&
3814 { ac_try
='test -z "$ac_c_werror_flag"
3815 || test ! -s conftest.err'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; } &&
3821 { ac_try
='test -s conftest.$ac_objext'
3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
3827 ac_cv_header_stdc
=yes
3829 echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.
$ac_ext >&5
3832 ac_cv_header_stdc
=no
3834 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3836 if test $ac_cv_header_stdc = yes; then
3837 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3838 cat >conftest.
$ac_ext <<_ACEOF
3841 cat confdefs.h
>>conftest.
$ac_ext
3842 cat >>conftest.
$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3848 $EGREP "memchr" >/dev
/null
2>&1; then
3851 ac_cv_header_stdc
=no
3857 if test $ac_cv_header_stdc = yes; then
3858 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3859 cat >conftest.
$ac_ext <<_ACEOF
3862 cat confdefs.h
>>conftest.
$ac_ext
3863 cat >>conftest.
$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3869 $EGREP "free" >/dev
/null
2>&1; then
3872 ac_cv_header_stdc
=no
3878 if test $ac_cv_header_stdc = yes; then
3879 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3880 if test "$cross_compiling" = yes; then
3883 cat >conftest.
$ac_ext <<_ACEOF
3886 cat confdefs.h
>>conftest.
$ac_ext
3887 cat >>conftest.
$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3890 #if ((' ' & 0x0FF) == 0x020)
3891 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3892 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3894 # define ISLOWER(c) \
3895 (('a' <= (c) && (c) <= 'i') \
3896 || ('j' <= (c) && (c) <= 'r') \
3897 || ('s' <= (c) && (c) <= 'z'))
3898 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3901 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3906 for (i = 0; i < 256; i++)
3907 if (XOR (islower (i), ISLOWER (i))
3908 || toupper (i) != TOUPPER (i))
3913 rm -f conftest
$ac_exeext
3914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3915 (eval $ac_link) 2>&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
3926 echo "$as_me: program exited with status $ac_status" >&5
3927 echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.
$ac_ext >&5
3931 ac_cv_header_stdc
=no
3933 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3937 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3938 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3939 if test $ac_cv_header_stdc = yes; then
3941 cat >>confdefs.h
<<\_ACEOF
3942 #define STDC_HEADERS 1
3948 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
3949 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
3950 if test "${ac_cv_header_stat_broken+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 cat >conftest.
$ac_ext <<_ACEOF
3956 cat confdefs.h
>>conftest.
$ac_ext
3957 cat >>conftest.
$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3959 #include <sys/types.h>
3960 #include <sys/stat.h>
3962 #if defined(S_ISBLK) && defined(S_IFDIR)
3963 # if S_ISBLK (S_IFDIR)
3968 #if defined(S_ISBLK) && defined(S_IFCHR)
3969 # if S_ISBLK (S_IFCHR)
3974 #if defined(S_ISLNK) && defined(S_IFREG)
3975 # if S_ISLNK (S_IFREG)
3980 #if defined(S_ISSOCK) && defined(S_IFREG)
3981 # if S_ISSOCK (S_IFREG)
3987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3988 $EGREP "You lose" >/dev
/null
2>&1; then
3989 ac_cv_header_stat_broken
=yes
3991 ac_cv_header_stat_broken
=no
3996 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
3997 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
3998 if test $ac_cv_header_stat_broken = yes; then
4000 cat >>confdefs.h
<<\_ACEOF
4001 #define STAT_MACROS_BROKEN 1
4012 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4013 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4014 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4015 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 cat >conftest.
$ac_ext <<_ACEOF
4022 cat confdefs.h
>>conftest.
$ac_ext
4023 cat >>conftest.
$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 #include <sys/types.h>
4037 rm -f conftest.
$ac_objext
4038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4039 (eval $ac_compile) 2>conftest.er1
4041 grep -v '^ *+' conftest.er1
>conftest.err
4043 cat conftest.err
>&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); } &&
4046 { ac_try
='test -z "$ac_c_werror_flag"
4047 || test ! -s conftest.err'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; } &&
4053 { ac_try
='test -s conftest.$ac_objext'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; }; then
4059 eval "$as_ac_Header=yes"
4061 echo "$as_me: failed program was:" >&5
4062 sed 's/^/| /' conftest.
$ac_ext >&5
4064 eval "$as_ac_Header=no"
4066 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4071 cat >>confdefs.h
<<_ACEOF
4072 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4075 ac_header_dirent
=$ac_hdr; break
4079 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4080 if test $ac_header_dirent = dirent.h
; then
4081 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4082 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4083 if test "${ac_cv_search_opendir+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 ac_func_search_save_LIBS
=$LIBS
4087 ac_cv_search_opendir
=no
4088 cat >conftest.
$ac_ext <<_ACEOF
4091 cat confdefs.h
>>conftest.
$ac_ext
4092 cat >>conftest.
$ac_ext <<_ACEOF
4093 /* end confdefs.h. */
4095 /* Override any gcc2 internal prototype to avoid an error. */
4099 /* We use char because int might match the return type of a gcc2
4100 builtin and then its argument prototype would still apply. */
4110 rm -f conftest.
$ac_objext conftest
$ac_exeext
4111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4112 (eval $ac_link) 2>conftest.er1
4114 grep -v '^ *+' conftest.er1
>conftest.err
4116 cat conftest.err
>&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } &&
4119 { ac_try
='test -z "$ac_c_werror_flag"
4120 || test ! -s conftest.err'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; } &&
4126 { ac_try
='test -s conftest$ac_exeext'
4127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
4132 ac_cv_search_opendir
="none required"
4134 echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.
$ac_ext >&5
4138 rm -f conftest.err conftest.
$ac_objext \
4139 conftest
$ac_exeext conftest.
$ac_ext
4140 if test "$ac_cv_search_opendir" = no
; then
4141 for ac_lib
in dir
; do
4142 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4143 cat >conftest.
$ac_ext <<_ACEOF
4146 cat confdefs.h
>>conftest.
$ac_ext
4147 cat >>conftest.
$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4150 /* Override any gcc2 internal prototype to avoid an error. */
4154 /* We use char because int might match the return type of a gcc2
4155 builtin and then its argument prototype would still apply. */
4165 rm -f conftest.
$ac_objext conftest
$ac_exeext
4166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4167 (eval $ac_link) 2>conftest.er1
4169 grep -v '^ *+' conftest.er1
>conftest.err
4171 cat conftest.err
>&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } &&
4174 { ac_try
='test -z "$ac_c_werror_flag"
4175 || test ! -s conftest.err'
4176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; } &&
4181 { ac_try
='test -s conftest$ac_exeext'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
4187 ac_cv_search_opendir
="-l$ac_lib"
4190 echo "$as_me: failed program was:" >&5
4191 sed 's/^/| /' conftest.
$ac_ext >&5
4194 rm -f conftest.err conftest.
$ac_objext \
4195 conftest
$ac_exeext conftest.
$ac_ext
4198 LIBS
=$ac_func_search_save_LIBS
4200 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4201 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4202 if test "$ac_cv_search_opendir" != no
; then
4203 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4208 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4209 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4210 if test "${ac_cv_search_opendir+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4213 ac_func_search_save_LIBS
=$LIBS
4214 ac_cv_search_opendir
=no
4215 cat >conftest.
$ac_ext <<_ACEOF
4218 cat confdefs.h
>>conftest.
$ac_ext
4219 cat >>conftest.
$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4222 /* Override any gcc2 internal prototype to avoid an error. */
4226 /* We use char because int might match the return type of a gcc2
4227 builtin and then its argument prototype would still apply. */
4237 rm -f conftest.
$ac_objext conftest
$ac_exeext
4238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4239 (eval $ac_link) 2>conftest.er1
4241 grep -v '^ *+' conftest.er1
>conftest.err
4243 cat conftest.err
>&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } &&
4246 { ac_try
='test -z "$ac_c_werror_flag"
4247 || test ! -s conftest.err'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; } &&
4253 { ac_try
='test -s conftest$ac_exeext'
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4259 ac_cv_search_opendir
="none required"
4261 echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.
$ac_ext >&5
4265 rm -f conftest.err conftest.
$ac_objext \
4266 conftest
$ac_exeext conftest.
$ac_ext
4267 if test "$ac_cv_search_opendir" = no
; then
4269 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4270 cat >conftest.
$ac_ext <<_ACEOF
4273 cat confdefs.h
>>conftest.
$ac_ext
4274 cat >>conftest.
$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4277 /* Override any gcc2 internal prototype to avoid an error. */
4281 /* We use char because int might match the return type of a gcc2
4282 builtin and then its argument prototype would still apply. */
4292 rm -f conftest.
$ac_objext conftest
$ac_exeext
4293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4294 (eval $ac_link) 2>conftest.er1
4296 grep -v '^ *+' conftest.er1
>conftest.err
4298 cat conftest.err
>&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } &&
4301 { ac_try
='test -z "$ac_c_werror_flag"
4302 || test ! -s conftest.err'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; } &&
4308 { ac_try
='test -s conftest$ac_exeext'
4309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; }; then
4314 ac_cv_search_opendir
="-l$ac_lib"
4317 echo "$as_me: failed program was:" >&5
4318 sed 's/^/| /' conftest.
$ac_ext >&5
4321 rm -f conftest.err conftest.
$ac_objext \
4322 conftest
$ac_exeext conftest.
$ac_ext
4325 LIBS
=$ac_func_search_save_LIBS
4327 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4328 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4329 if test "$ac_cv_search_opendir" != no
; then
4330 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4340 for ac_func
in fcntl
kill lstat
4342 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4343 echo "$as_me:$LINENO: checking for $ac_func" >&5
4344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4345 if eval "test \"\${$as_ac_var+set}\" = set"; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 cat >conftest.
$ac_ext <<_ACEOF
4351 cat confdefs.h
>>conftest.
$ac_ext
4352 cat >>conftest.
$ac_ext <<_ACEOF
4353 /* end confdefs.h. */
4354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4356 #define $ac_func innocuous_$ac_func
4358 /* System header to define __stub macros and hopefully few prototypes,
4359 which can conflict with char $ac_func (); below.
4360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4361 <limits.h> exists even on freestanding compilers. */
4364 # include <limits.h>
4366 # include <assert.h>
4371 /* Override any gcc2 internal prototype to avoid an error. */
4376 /* We use char because int might match the return type of a gcc2
4377 builtin and then its argument prototype would still apply. */
4379 /* The GNU C library defines this for functions which it implements
4380 to always fail with ENOSYS. Some functions are actually named
4381 something starting with __ and the normal name is an alias. */
4382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4385 char (*f) () = $ac_func;
4394 return f != $ac_func;
4399 rm -f conftest.
$ac_objext conftest
$ac_exeext
4400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4401 (eval $ac_link) 2>conftest.er1
4403 grep -v '^ *+' conftest.er1
>conftest.err
4405 cat conftest.err
>&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } &&
4408 { ac_try
='test -z "$ac_c_werror_flag"
4409 || test ! -s conftest.err'
4410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; } &&
4415 { ac_try
='test -s conftest$ac_exeext'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; }; then
4421 eval "$as_ac_var=yes"
4423 echo "$as_me: failed program was:" >&5
4424 sed 's/^/| /' conftest.
$ac_ext >&5
4426 eval "$as_ac_var=no"
4428 rm -f conftest.err conftest.
$ac_objext \
4429 conftest
$ac_exeext conftest.
$ac_ext
4431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4433 if test `eval echo '${'$as_ac_var'}'` = yes; then
4434 cat >>confdefs.h
<<_ACEOF
4435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4450 for ac_func
in memmove putenv
select setenv setlocale \
4451 strcasecmp strpbrk tcgetattr vsnprintf
4453 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4454 echo "$as_me:$LINENO: checking for $ac_func" >&5
4455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4456 if eval "test \"\${$as_ac_var+set}\" = set"; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 cat >conftest.
$ac_ext <<_ACEOF
4462 cat confdefs.h
>>conftest.
$ac_ext
4463 cat >>conftest.
$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4467 #define $ac_func innocuous_$ac_func
4469 /* System header to define __stub macros and hopefully few prototypes,
4470 which can conflict with char $ac_func (); below.
4471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4472 <limits.h> exists even on freestanding compilers. */
4475 # include <limits.h>
4477 # include <assert.h>
4482 /* Override any gcc2 internal prototype to avoid an error. */
4487 /* We use char because int might match the return type of a gcc2
4488 builtin and then its argument prototype would still apply. */
4490 /* The GNU C library defines this for functions which it implements
4491 to always fail with ENOSYS. Some functions are actually named
4492 something starting with __ and the normal name is an alias. */
4493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4496 char (*f) () = $ac_func;
4505 return f != $ac_func;
4510 rm -f conftest.
$ac_objext conftest
$ac_exeext
4511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4512 (eval $ac_link) 2>conftest.er1
4514 grep -v '^ *+' conftest.er1
>conftest.err
4516 cat conftest.err
>&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } &&
4519 { ac_try
='test -z "$ac_c_werror_flag"
4520 || test ! -s conftest.err'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; } &&
4526 { ac_try
='test -s conftest$ac_exeext'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; }; then
4532 eval "$as_ac_var=yes"
4534 echo "$as_me: failed program was:" >&5
4535 sed 's/^/| /' conftest.
$ac_ext >&5
4537 eval "$as_ac_var=no"
4539 rm -f conftest.err conftest.
$ac_objext \
4540 conftest
$ac_exeext conftest.
$ac_ext
4542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4544 if test `eval echo '${'$as_ac_var'}'` = yes; then
4545 cat >>confdefs.h
<<_ACEOF
4546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4554 for ac_func
in isascii isxdigit
4556 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4557 echo "$as_me:$LINENO: checking for $ac_func" >&5
4558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4559 if eval "test \"\${$as_ac_var+set}\" = set"; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 cat >conftest.
$ac_ext <<_ACEOF
4565 cat confdefs.h
>>conftest.
$ac_ext
4566 cat >>conftest.
$ac_ext <<_ACEOF
4567 /* end confdefs.h. */
4568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4570 #define $ac_func innocuous_$ac_func
4572 /* System header to define __stub macros and hopefully few prototypes,
4573 which can conflict with char $ac_func (); below.
4574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4575 <limits.h> exists even on freestanding compilers. */
4578 # include <limits.h>
4580 # include <assert.h>
4585 /* Override any gcc2 internal prototype to avoid an error. */
4590 /* We use char because int might match the return type of a gcc2
4591 builtin and then its argument prototype would still apply. */
4593 /* The GNU C library defines this for functions which it implements
4594 to always fail with ENOSYS. Some functions are actually named
4595 something starting with __ and the normal name is an alias. */
4596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4599 char (*f) () = $ac_func;
4608 return f != $ac_func;
4613 rm -f conftest.
$ac_objext conftest
$ac_exeext
4614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4615 (eval $ac_link) 2>conftest.er1
4617 grep -v '^ *+' conftest.er1
>conftest.err
4619 cat conftest.err
>&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } &&
4622 { ac_try
='test -z "$ac_c_werror_flag"
4623 || test ! -s conftest.err'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; } &&
4629 { ac_try
='test -s conftest$ac_exeext'
4630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; }; then
4635 eval "$as_ac_var=yes"
4637 echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.
$ac_ext >&5
4640 eval "$as_ac_var=no"
4642 rm -f conftest.err conftest.
$ac_objext \
4643 conftest
$ac_exeext conftest.
$ac_ext
4645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4646 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4647 if test `eval echo '${'$as_ac_var'}'` = yes; then
4648 cat >>confdefs.h
<<_ACEOF
4649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4658 for ac_func
in getpwent getpwnam getpwuid
4660 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4661 echo "$as_me:$LINENO: checking for $ac_func" >&5
4662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4663 if eval "test \"\${$as_ac_var+set}\" = set"; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 cat >conftest.
$ac_ext <<_ACEOF
4669 cat confdefs.h
>>conftest.
$ac_ext
4670 cat >>conftest.
$ac_ext <<_ACEOF
4671 /* end confdefs.h. */
4672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4674 #define $ac_func innocuous_$ac_func
4676 /* System header to define __stub macros and hopefully few prototypes,
4677 which can conflict with char $ac_func (); below.
4678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4679 <limits.h> exists even on freestanding compilers. */
4682 # include <limits.h>
4684 # include <assert.h>
4689 /* Override any gcc2 internal prototype to avoid an error. */
4694 /* We use char because int might match the return type of a gcc2
4695 builtin and then its argument prototype would still apply. */
4697 /* The GNU C library defines this for functions which it implements
4698 to always fail with ENOSYS. Some functions are actually named
4699 something starting with __ and the normal name is an alias. */
4700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4703 char (*f) () = $ac_func;
4712 return f != $ac_func;
4717 rm -f conftest.
$ac_objext conftest
$ac_exeext
4718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4719 (eval $ac_link) 2>conftest.er1
4721 grep -v '^ *+' conftest.er1
>conftest.err
4723 cat conftest.err
>&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } &&
4726 { ac_try
='test -z "$ac_c_werror_flag"
4727 || test ! -s conftest.err'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; } &&
4733 { ac_try
='test -s conftest$ac_exeext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 eval "$as_ac_var=yes"
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.
$ac_ext >&5
4744 eval "$as_ac_var=no"
4746 rm -f conftest.err conftest.
$ac_objext \
4747 conftest
$ac_exeext conftest.
$ac_ext
4749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4751 if test `eval echo '${'$as_ac_var'}'` = yes; then
4752 cat >>confdefs.h
<<_ACEOF
4753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4760 echo "$as_me:$LINENO: checking for working strcoll" >&5
4761 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
4762 if test "${ac_cv_func_strcoll_works+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 if test "$cross_compiling" = yes; then
4766 ac_cv_func_strcoll_works
=no
4768 cat >conftest.
$ac_ext <<_ACEOF
4771 cat confdefs.h
>>conftest.
$ac_ext
4772 cat >>conftest.
$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4774 $ac_includes_default
4778 exit (strcoll ("abc", "def") >= 0 ||
4779 strcoll ("ABC", "DEF") >= 0 ||
4780 strcoll ("123", "456") >= 0)
4785 rm -f conftest
$ac_exeext
4786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4787 (eval $ac_link) 2>&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; }; then
4796 ac_cv_func_strcoll_works
=yes
4798 echo "$as_me: program exited with status $ac_status" >&5
4799 echo "$as_me: failed program was:" >&5
4800 sed 's/^/| /' conftest.
$ac_ext >&5
4803 ac_cv_func_strcoll_works
=no
4805 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4808 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
4809 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
4810 if test $ac_cv_func_strcoll_works = yes; then
4812 cat >>confdefs.h
<<\_ACEOF
4813 #define HAVE_STRCOLL 1
4833 for ac_header
in fcntl.h unistd.h stdlib.h varargs.h stdarg.h string.h
strings.h \
4834 limits.h locale.h
pwd.h memory.h termcap.h termios.h termio.h
4836 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4838 echo "$as_me:$LINENO: checking for $ac_header" >&5
4839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4846 # Is the header compilable?
4847 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4849 cat >conftest.
$ac_ext <<_ACEOF
4852 cat confdefs.h
>>conftest.
$ac_ext
4853 cat >>conftest.
$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4855 $ac_includes_default
4856 #include <$ac_header>
4858 rm -f conftest.
$ac_objext
4859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4860 (eval $ac_compile) 2>conftest.er1
4862 grep -v '^ *+' conftest.er1
>conftest.err
4864 cat conftest.err
>&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } &&
4867 { ac_try
='test -z "$ac_c_werror_flag"
4868 || test ! -s conftest.err'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; } &&
4874 { ac_try
='test -s conftest.$ac_objext'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; }; then
4880 ac_header_compiler
=yes
4882 echo "$as_me: failed program was:" >&5
4883 sed 's/^/| /' conftest.
$ac_ext >&5
4885 ac_header_compiler
=no
4887 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4889 echo "${ECHO_T}$ac_header_compiler" >&6
4891 # Is the header present?
4892 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4894 cat >conftest.
$ac_ext <<_ACEOF
4897 cat confdefs.h
>>conftest.
$ac_ext
4898 cat >>conftest.
$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 #include <$ac_header>
4902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4903 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4905 grep -v '^ *+' conftest.er1
>conftest.err
4907 cat conftest.err
>&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } >/dev
/null
; then
4910 if test -s conftest.err
; then
4911 ac_cpp_err
=$ac_c_preproc_warn_flag
4912 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4919 if test -z "$ac_cpp_err"; then
4920 ac_header_preproc
=yes
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.
$ac_ext >&5
4925 ac_header_preproc
=no
4927 rm -f conftest.err conftest.
$ac_ext
4928 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4929 echo "${ECHO_T}$ac_header_preproc" >&6
4931 # So? What about this header?
4932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4937 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4938 ac_header_preproc
=yes
4941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4944 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4946 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4948 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4952 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4955 ## ----------------------------------- ##
4956 ## Report this to bug-readline@gnu.org ##
4957 ## ----------------------------------- ##
4960 sed "s/^/$as_me: WARNING: /" >&2
4963 echo "$as_me:$LINENO: checking for $ac_header" >&5
4964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 eval "$as_ac_Header=\$ac_header_preproc"
4970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4975 cat >>confdefs.h
<<_ACEOF
4976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4987 for ac_header
in sys
/pte.h sys
/stream.h sys
/select.h sys
/file.h
4989 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4991 echo "$as_me:$LINENO: checking for $ac_header" >&5
4992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4999 # Is the header compilable?
5000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5002 cat >conftest.
$ac_ext <<_ACEOF
5005 cat confdefs.h
>>conftest.
$ac_ext
5006 cat >>conftest.
$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5008 $ac_includes_default
5009 #include <$ac_header>
5011 rm -f conftest.
$ac_objext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5013 (eval $ac_compile) 2>conftest.er1
5015 grep -v '^ *+' conftest.er1
>conftest.err
5017 cat conftest.err
>&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } &&
5020 { ac_try
='test -z "$ac_c_werror_flag"
5021 || test ! -s conftest.err'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; } &&
5027 { ac_try
='test -s conftest.$ac_objext'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; }; then
5033 ac_header_compiler
=yes
5035 echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.
$ac_ext >&5
5038 ac_header_compiler
=no
5040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5042 echo "${ECHO_T}$ac_header_compiler" >&6
5044 # Is the header present?
5045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5047 cat >conftest.
$ac_ext <<_ACEOF
5050 cat confdefs.h
>>conftest.
$ac_ext
5051 cat >>conftest.
$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5053 #include <$ac_header>
5055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5056 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5058 grep -v '^ *+' conftest.er1
>conftest.err
5060 cat conftest.err
>&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } >/dev
/null
; then
5063 if test -s conftest.err
; then
5064 ac_cpp_err
=$ac_c_preproc_warn_flag
5065 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5072 if test -z "$ac_cpp_err"; then
5073 ac_header_preproc
=yes
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.
$ac_ext >&5
5078 ac_header_preproc
=no
5080 rm -f conftest.err conftest.
$ac_ext
5081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5082 echo "${ECHO_T}$ac_header_preproc" >&6
5084 # So? What about this header?
5085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5091 ac_header_preproc
=yes
5094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5108 ## ----------------------------------- ##
5109 ## Report this to bug-readline@gnu.org ##
5110 ## ----------------------------------- ##
5113 sed "s/^/$as_me: WARNING: /" >&2
5116 echo "$as_me:$LINENO: checking for $ac_header" >&5
5117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 eval "$as_ac_Header=\$ac_header_preproc"
5123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5128 cat >>confdefs.h
<<_ACEOF
5129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5138 for ac_header
in sys
/ptem.h
5140 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5141 echo "$as_me:$LINENO: checking for $ac_header" >&5
5142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 cat >conftest.
$ac_ext <<_ACEOF
5149 cat confdefs.h
>>conftest.
$ac_ext
5150 cat >>conftest.
$ac_ext <<_ACEOF
5151 /* end confdefs.h. */
5153 #if HAVE_SYS_STREAM_H
5154 # include <sys/stream.h>
5158 #include <$ac_header>
5160 rm -f conftest.
$ac_objext
5161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5162 (eval $ac_compile) 2>conftest.er1
5164 grep -v '^ *+' conftest.er1
>conftest.err
5166 cat conftest.err
>&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } &&
5169 { ac_try
='test -z "$ac_c_werror_flag"
5170 || test ! -s conftest.err'
5171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }; } &&
5176 { ac_try
='test -s conftest.$ac_objext'
5177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; }; then
5182 eval "$as_ac_Header=yes"
5184 echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.
$ac_ext >&5
5187 eval "$as_ac_Header=no"
5189 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5194 cat >>confdefs.h
<<_ACEOF
5195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5204 echo "$as_me:$LINENO: checking for type of signal functions" >&5
5205 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
5206 if test "${bash_cv_signal_vintage+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 cat >conftest.
$ac_ext <<_ACEOF
5213 cat confdefs.h
>>conftest.
$ac_ext
5214 cat >>conftest.
$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5222 struct sigaction sa;
5223 sigemptyset(&ss); sigsuspend(&ss);
5224 sigaction(SIGINT, &sa, (struct sigaction *) 0);
5225 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
5231 rm -f conftest.
$ac_objext conftest
$ac_exeext
5232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5233 (eval $ac_link) 2>conftest.er1
5235 grep -v '^ *+' conftest.er1
>conftest.err
5237 cat conftest.err
>&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); } &&
5240 { ac_try
='test -z "$ac_c_werror_flag"
5241 || test ! -s conftest.err'
5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; } &&
5247 { ac_try
='test -s conftest$ac_exeext'
5248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }; }; then
5253 bash_cv_signal_vintage
=posix
5255 echo "$as_me: failed program was:" >&5
5256 sed 's/^/| /' conftest.
$ac_ext >&5
5259 cat >conftest.
$ac_ext <<_ACEOF
5262 cat confdefs.h
>>conftest.
$ac_ext
5263 cat >>conftest.
$ac_ext <<_ACEOF
5264 /* end confdefs.h. */
5270 int mask = sigmask(SIGINT);
5271 sigsetmask(mask); sigblock(mask); sigpause(mask);
5277 rm -f conftest.
$ac_objext conftest
$ac_exeext
5278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5279 (eval $ac_link) 2>conftest.er1
5281 grep -v '^ *+' conftest.er1
>conftest.err
5283 cat conftest.err
>&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } &&
5286 { ac_try
='test -z "$ac_c_werror_flag"
5287 || test ! -s conftest.err'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; } &&
5293 { ac_try
='test -s conftest$ac_exeext'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; }; then
5299 bash_cv_signal_vintage
=4.2bsd
5301 echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.
$ac_ext >&5
5305 cat >conftest.
$ac_ext <<_ACEOF
5308 cat confdefs.h
>>conftest.
$ac_ext
5309 cat >>conftest.
$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5313 RETSIGTYPE foo() { }
5318 int mask = sigmask(SIGINT);
5319 sigset(SIGINT, foo); sigrelse(SIGINT);
5320 sighold(SIGINT); sigpause(SIGINT);
5326 rm -f conftest.
$ac_objext conftest
$ac_exeext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5328 (eval $ac_link) 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_exeext'
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_signal_vintage
=svr3
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.
$ac_ext >&5
5353 bash_cv_signal_vintage
=v7
5356 rm -f conftest.err conftest.
$ac_objext \
5357 conftest
$ac_exeext conftest.
$ac_ext
5360 rm -f conftest.err conftest.
$ac_objext \
5361 conftest
$ac_exeext conftest.
$ac_ext
5364 rm -f conftest.err conftest.
$ac_objext \
5365 conftest
$ac_exeext conftest.
$ac_ext
5369 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
5370 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
5371 if test "$bash_cv_signal_vintage" = posix
; then
5372 cat >>confdefs.h
<<\_ACEOF
5373 #define HAVE_POSIX_SIGNALS 1
5376 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
5377 cat >>confdefs.h
<<\_ACEOF
5378 #define HAVE_BSD_SIGNALS 1
5381 elif test "$bash_cv_signal_vintage" = svr3
; then
5382 cat >>confdefs.h
<<\_ACEOF
5383 #define HAVE_USG_SIGHOLD 1
5390 echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
5391 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
5392 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 if test "$cross_compiling" = yes; then
5396 { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
5397 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
5398 bash_cv_must_reinstall_sighandlers
=no
5401 cat >conftest.
$ac_ext <<_ACEOF
5404 cat confdefs.h
>>conftest.
$ac_ext
5405 cat >>conftest.
$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5409 #ifdef HAVE_UNISTD_H
5413 typedef RETSIGTYPE sigfunc();
5417 #ifdef HAVE_POSIX_SIGNALS
5419 set_signal_handler(sig, handler)
5423 struct sigaction act, oact;
5424 act.sa_handler = handler;
5426 sigemptyset (&act.sa_mask);
5427 sigemptyset (&oact.sa_mask);
5428 sigaction (sig, &act, &oact);
5429 return (oact.sa_handler);
5432 #define set_signal_handler(s, h) signal(s, h)
5445 set_signal_handler(SIGINT, sigint);
5446 kill((int)getpid(), SIGINT);
5447 kill((int)getpid(), SIGINT);
5452 rm -f conftest
$ac_exeext
5453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5454 (eval $ac_link) 2>&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5463 bash_cv_must_reinstall_sighandlers
=no
5465 echo "$as_me: program exited with status $ac_status" >&5
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.
$ac_ext >&5
5470 bash_cv_must_reinstall_sighandlers
=yes
5472 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5476 echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
5477 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
5478 if test $bash_cv_must_reinstall_sighandlers = yes; then
5479 cat >>confdefs.h
<<\_ACEOF
5480 #define MUST_REINSTALL_SIGHANDLERS 1
5487 echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
5488 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
5489 if test "${bash_cv_func_sigsetjmp+set}" = set; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5492 if test "$cross_compiling" = yes; then
5493 { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
5494 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
5495 bash_cv_func_sigsetjmp
=missing
5498 cat >conftest.
$ac_ext <<_ACEOF
5501 cat confdefs.h
>>conftest.
$ac_ext
5502 cat >>conftest.
$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5505 #ifdef HAVE_UNISTD_H
5508 #include <sys/types.h>
5514 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
5525 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
5526 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
5529 code = sigsetjmp(xx, 1);
5531 exit(0); /* could get sigmask and compare to oset here. */
5534 sigaddset(&set, SIGINT);
5535 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
5537 /* and siglongjmp */
5543 rm -f conftest
$ac_exeext
5544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5545 (eval $ac_link) 2>&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; }; then
5554 bash_cv_func_sigsetjmp
=present
5556 echo "$as_me: program exited with status $ac_status" >&5
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.
$ac_ext >&5
5561 bash_cv_func_sigsetjmp
=missing
5563 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5567 echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
5568 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
5569 if test $bash_cv_func_sigsetjmp = present
; then
5570 cat >>confdefs.h
<<\_ACEOF
5571 #define HAVE_POSIX_SIGSETJMP 1
5576 echo "$as_me:$LINENO: checking for lstat" >&5
5577 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
5578 if test "${bash_cv_func_lstat+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 cat >conftest.
$ac_ext <<_ACEOF
5584 cat confdefs.h
>>conftest.
$ac_ext
5585 cat >>conftest.
$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5588 #include <sys/types.h>
5589 #include <sys/stat.h>
5594 lstat(".",(struct stat *)0);
5599 rm -f conftest.
$ac_objext conftest
$ac_exeext
5600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5601 (eval $ac_link) 2>conftest.er1
5603 grep -v '^ *+' conftest.er1
>conftest.err
5605 cat conftest.err
>&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } &&
5608 { ac_try
='test -z "$ac_c_werror_flag"
5609 || test ! -s conftest.err'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; } &&
5615 { ac_try
='test -s conftest$ac_exeext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5621 bash_cv_func_lstat
=yes
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.
$ac_ext >&5
5626 bash_cv_func_lstat
=no
5628 rm -f conftest.err conftest.
$ac_objext \
5629 conftest
$ac_exeext conftest.
$ac_ext
5631 echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
5632 echo "${ECHO_T}$bash_cv_func_lstat" >&6
5633 if test $bash_cv_func_lstat = yes; then
5634 cat >>confdefs.h
<<\_ACEOF
5635 #define HAVE_LSTAT 1
5641 echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
5642 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
5643 if test "${bash_cv_func_strcoll_broken+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 if test "$cross_compiling" = yes; then
5647 { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
5648 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
5649 bash_cv_func_strcoll_broken
=no
5652 cat >conftest.
$ac_ext <<_ACEOF
5655 cat confdefs.h
>>conftest.
$ac_ext
5656 cat >>conftest.
$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5660 #if defined (HAVE_LOCALE_H)
5669 char *deflocale, *defcoll;
5671 #ifdef HAVE_SETLOCALE
5672 deflocale = setlocale(LC_ALL, "");
5673 defcoll = setlocale(LC_COLLATE, "");
5677 /* These two values are taken from tests/glob-test. */
5678 r1 = strcoll("abd", "aXd");
5682 r2 = strcmp("abd", "aXd");
5684 /* These two should both be greater than 0. It is permissible for
5685 a system to return different values, as long as the sign is the
5688 /* Exit with 1 (failure) if these two values are both > 0, since
5689 this tests whether strcoll(3) is broken with respect to strcmp(3)
5690 in the default locale. */
5691 exit (r1 > 0 && r2 > 0);
5695 rm -f conftest
$ac_exeext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5697 (eval $ac_link) 2>&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5706 bash_cv_func_strcoll_broken
=yes
5708 echo "$as_me: program exited with status $ac_status" >&5
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.
$ac_ext >&5
5713 bash_cv_func_strcoll_broken
=no
5715 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5719 echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
5720 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
5721 if test $bash_cv_func_strcoll_broken = yes; then
5722 cat >>confdefs.h
<<\_ACEOF
5723 #define STRCOLL_BROKEN 1
5729 echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
5730 echo $ECHO_N "checking whether the ctype macros accept non-ascii characters... $ECHO_C" >&6
5731 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 if test "$cross_compiling" = yes; then
5735 { echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
5736 echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
5737 bash_cv_func_ctype_nonascii
=no
5740 cat >conftest.
$ac_ext <<_ACEOF
5743 cat confdefs.h
>>conftest.
$ac_ext
5744 cat >>conftest.
$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5747 #ifdef HAVE_LOCALE_H
5761 #ifdef HAVE_SETLOCALE
5762 /* We take a shot here. If that locale is not known, try the
5763 system default. We try this one because '\342' (226) is
5764 known to be a printable character in that locale. */
5765 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
5767 deflocale = setlocale(LC_ALL, "");
5774 exit (r1 == 0 || r2 == 0);
5778 rm -f conftest
$ac_exeext
5779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5780 (eval $ac_link) 2>&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5789 bash_cv_func_ctype_nonascii
=yes
5791 echo "$as_me: program exited with status $ac_status" >&5
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.
$ac_ext >&5
5796 bash_cv_func_ctype_nonascii
=no
5798 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5802 echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
5803 echo "${ECHO_T}$bash_cv_func_ctype_nonascii" >&6
5804 if test $bash_cv_func_ctype_nonascii = yes; then
5805 cat >>confdefs.h
<<\_ACEOF
5806 #define CTYPE_NON_ASCII 1
5812 echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
5813 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
5814 if test "${bash_cv_getpw_declared+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 cat >conftest.
$ac_ext <<_ACEOF
5820 cat confdefs.h
>>conftest.
$ac_ext
5821 cat >>conftest.
$ac_ext <<_ACEOF
5822 /* end confdefs.h. */
5824 #include <sys/types.h>
5825 #ifdef HAVE_UNISTD_H
5826 # include <unistd.h>
5831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5832 $EGREP "getpwuid" >/dev
/null
2>&1; then
5833 bash_cv_getpw_declared
=yes
5835 bash_cv_getpw_declared
=no
5841 echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
5842 echo "${ECHO_T}$bash_cv_getpw_declared" >&6
5843 if test $bash_cv_getpw_declared = yes; then
5844 cat >>confdefs.h
<<\_ACEOF
5845 #define HAVE_GETPW_DECLS 1
5851 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
5852 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
5853 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 cat >conftest.
$ac_ext <<_ACEOF
5859 cat confdefs.h
>>conftest.
$ac_ext
5860 cat >>conftest.
$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5862 #include <sys/types.h>
5863 #include <termios.h>
5869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5870 $EGREP "yes" >/dev
/null
2>&1; then
5871 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
5873 ac_cv_sys_tiocgwinsz_in_termios_h
=no
5878 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
5879 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
5881 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
5882 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
5883 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
5884 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 cat >conftest.
$ac_ext <<_ACEOF
5890 cat confdefs.h
>>conftest.
$ac_ext
5891 cat >>conftest.
$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5893 #include <sys/types.h>
5894 #include <sys/ioctl.h>
5900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5901 $EGREP "yes" >/dev
/null
2>&1; then
5902 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
5904 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
5909 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
5910 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
5912 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
5914 cat >>confdefs.h
<<\_ACEOF
5915 #define GWINSZ_IN_SYS_IOCTL 1
5922 echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
5923 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
5924 if test "${bash_cv_void_sighandler+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 cat >conftest.
$ac_ext <<_ACEOF
5930 cat confdefs.h
>>conftest.
$ac_ext
5931 cat >>conftest.
$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5933 #include <sys/types.h>
5941 void (*signal ()) ();
5950 rm -f conftest.
$ac_objext
5951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5952 (eval $ac_compile) 2>conftest.er1
5954 grep -v '^ *+' conftest.er1
>conftest.err
5956 cat conftest.err
>&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
5959 { ac_try
='test -z "$ac_c_werror_flag"
5960 || test ! -s conftest.err'
5961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; } &&
5966 { ac_try
='test -s conftest.$ac_objext'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; }; then
5972 bash_cv_void_sighandler
=yes
5974 echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.
$ac_ext >&5
5977 bash_cv_void_sighandler
=no
5979 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5981 echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
5982 echo "${ECHO_T}$bash_cv_void_sighandler" >&6
5983 if test $bash_cv_void_sighandler = yes; then
5984 cat >>confdefs.h
<<\_ACEOF
5985 #define VOID_SIGHANDLER 1
5990 echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
5991 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
5992 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 cat >conftest.
$ac_ext <<_ACEOF
5998 cat confdefs.h
>>conftest.
$ac_ext
5999 cat >>conftest.
$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 #include <sys/types.h>
6002 #include <sys/ioctl.h>
6011 rm -f conftest.
$ac_objext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6013 (eval $ac_compile) 2>conftest.er1
6015 grep -v '^ *+' conftest.er1
>conftest.err
6017 cat conftest.err
>&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try
='test -z "$ac_c_werror_flag"
6021 || test ! -s conftest.err'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; } &&
6027 { ac_try
='test -s conftest.$ac_objext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 bash_cv_tiocstat_in_ioctl
=yes
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.
$ac_ext >&5
6038 bash_cv_tiocstat_in_ioctl
=no
6040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6043 echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
6044 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
6045 if test $bash_cv_tiocstat_in_ioctl = yes; then
6046 cat >>confdefs.h
<<\_ACEOF
6047 #define TIOCSTAT_IN_SYS_IOCTL 1
6052 echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
6053 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
6054 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 cat >conftest.
$ac_ext <<_ACEOF
6060 cat confdefs.h
>>conftest.
$ac_ext
6061 cat >>conftest.
$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 #include <sys/types.h>
6064 #include <sys/ioctl.h>
6073 rm -f conftest.
$ac_objext
6074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6075 (eval $ac_compile) 2>conftest.er1
6077 grep -v '^ *+' conftest.er1
>conftest.err
6079 cat conftest.err
>&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } &&
6082 { ac_try
='test -z "$ac_c_werror_flag"
6083 || test ! -s conftest.err'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; } &&
6089 { ac_try
='test -s conftest.$ac_objext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 bash_cv_fionread_in_ioctl
=yes
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.
$ac_ext >&5
6100 bash_cv_fionread_in_ioctl
=no
6102 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6105 echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
6106 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
6107 if test $bash_cv_fionread_in_ioctl = yes; then
6108 cat >>confdefs.h
<<\_ACEOF
6109 #define FIONREAD_IN_SYS_IOCTL 1
6114 echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
6115 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
6116 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 cat >conftest.
$ac_ext <<_ACEOF
6122 cat confdefs.h
>>conftest.
$ac_ext
6123 cat >>conftest.
$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125 #include <sys/types.h>
6134 rm -f conftest.
$ac_objext
6135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6136 (eval $ac_compile) 2>conftest.er1
6138 grep -v '^ *+' conftest.er1
>conftest.err
6140 cat conftest.err
>&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } &&
6143 { ac_try
='test -z "$ac_c_werror_flag"
6144 || test ! -s conftest.err'
6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; } &&
6150 { ac_try
='test -s conftest.$ac_objext'
6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; }; then
6156 bash_cv_speed_t_in_sys_types
=yes
6158 echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.
$ac_ext >&5
6161 bash_cv_speed_t_in_sys_types
=no
6163 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6166 echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
6167 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
6168 if test $bash_cv_speed_t_in_sys_types = yes; then
6169 cat >>confdefs.h
<<\_ACEOF
6170 #define SPEED_T_IN_SYS_TYPES 1
6175 echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
6176 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
6177 if test "${bash_cv_struct_winsize_header+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 cat >conftest.
$ac_ext <<_ACEOF
6183 cat confdefs.h
>>conftest.
$ac_ext
6184 cat >>conftest.
$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6186 #include <sys/types.h>
6187 #include <sys/ioctl.h>
6196 rm -f conftest.
$ac_objext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6198 (eval $ac_compile) 2>conftest.er1
6200 grep -v '^ *+' conftest.er1
>conftest.err
6202 cat conftest.err
>&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } &&
6205 { ac_try
='test -z "$ac_c_werror_flag"
6206 || test ! -s conftest.err'
6207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }; } &&
6212 { ac_try
='test -s conftest.$ac_objext'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }; then
6218 bash_cv_struct_winsize_header
=ioctl_h
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.
$ac_ext >&5
6223 cat >conftest.
$ac_ext <<_ACEOF
6226 cat confdefs.h
>>conftest.
$ac_ext
6227 cat >>conftest.
$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6229 #include <sys/types.h>
6230 #include <termios.h>
6239 rm -f conftest.
$ac_objext
6240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6241 (eval $ac_compile) 2>conftest.er1
6243 grep -v '^ *+' conftest.er1
>conftest.err
6245 cat conftest.err
>&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try
='test -z "$ac_c_werror_flag"
6249 || test ! -s conftest.err'
6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; } &&
6255 { ac_try
='test -s conftest.$ac_objext'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; }; then
6261 bash_cv_struct_winsize_header
=termios_h
6263 echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.
$ac_ext >&5
6266 bash_cv_struct_winsize_header
=other
6268 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6271 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6274 if test $bash_cv_struct_winsize_header = ioctl_h
; then
6275 echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
6276 echo "${ECHO_T}sys/ioctl.h" >&6
6277 cat >>confdefs.h
<<\_ACEOF
6278 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
6281 elif test $bash_cv_struct_winsize_header = termios_h
; then
6282 echo "$as_me:$LINENO: result: termios.h" >&5
6283 echo "${ECHO_T}termios.h" >&6
6284 cat >>confdefs.h
<<\_ACEOF
6285 #define STRUCT_WINSIZE_IN_TERMIOS 1
6289 echo "$as_me:$LINENO: result: not found" >&5
6290 echo "${ECHO_T}not found" >&6
6294 echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
6295 echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6
6296 if test "${bash_cv_dirent_has_dino+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 cat >conftest.
$ac_ext <<_ACEOF
6302 cat confdefs.h
>>conftest.
$ac_ext
6303 cat >>conftest.
$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6307 #include <sys/types.h>
6308 #ifdef HAVE_UNISTD_H
6309 # include <unistd.h>
6310 #endif /* HAVE_UNISTD_H */
6311 #if defined(HAVE_DIRENT_H)
6312 # include <dirent.h>
6314 # define dirent direct
6315 # ifdef HAVE_SYS_NDIR_H
6316 # include <sys/ndir.h>
6317 # endif /* SYSNDIR */
6318 # ifdef HAVE_SYS_DIR_H
6319 # include <sys/dir.h>
6320 # endif /* SYSDIR */
6324 #endif /* HAVE_DIRENT_H */
6330 struct dirent d; int z; z = d.d_ino;
6336 rm -f conftest.
$ac_objext
6337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6338 (eval $ac_compile) 2>conftest.er1
6340 grep -v '^ *+' conftest.er1
>conftest.err
6342 cat conftest.err
>&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } &&
6345 { ac_try
='test -z "$ac_c_werror_flag"
6346 || test ! -s conftest.err'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; } &&
6352 { ac_try
='test -s conftest.$ac_objext'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6358 bash_cv_dirent_has_dino
=yes
6360 echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.
$ac_ext >&5
6363 bash_cv_dirent_has_dino
=no
6365 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6368 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
6369 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
6370 if test $bash_cv_dirent_has_dino = yes; then
6371 cat >>confdefs.h
<<\_ACEOF
6372 #define HAVE_STRUCT_DIRENT_D_INO 1
6378 echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
6379 echo $ECHO_N "checking for struct dirent.d_fileno... $ECHO_C" >&6
6380 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 cat >conftest.
$ac_ext <<_ACEOF
6386 cat confdefs.h
>>conftest.
$ac_ext
6387 cat >>conftest.
$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6391 #include <sys/types.h>
6392 #ifdef HAVE_UNISTD_H
6393 # include <unistd.h>
6394 #endif /* HAVE_UNISTD_H */
6395 #if defined(HAVE_DIRENT_H)
6396 # include <dirent.h>
6398 # define dirent direct
6399 # ifdef HAVE_SYS_NDIR_H
6400 # include <sys/ndir.h>
6401 # endif /* SYSNDIR */
6402 # ifdef HAVE_SYS_DIR_H
6403 # include <sys/dir.h>
6404 # endif /* SYSDIR */
6408 #endif /* HAVE_DIRENT_H */
6414 struct dirent d; int z; z = d.d_fileno;
6420 rm -f conftest.
$ac_objext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422 (eval $ac_compile) 2>conftest.er1
6424 grep -v '^ *+' conftest.er1
>conftest.err
6426 cat conftest.err
>&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } &&
6429 { ac_try
='test -z "$ac_c_werror_flag"
6430 || test ! -s conftest.err'
6431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; } &&
6436 { ac_try
='test -s conftest.$ac_objext'
6437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); }; }; then
6442 bash_cv_dirent_has_d_fileno
=yes
6444 echo "$as_me: failed program was:" >&5
6445 sed 's/^/| /' conftest.
$ac_ext >&5
6447 bash_cv_dirent_has_d_fileno
=no
6449 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6452 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
6453 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
6454 if test $bash_cv_dirent_has_d_fileno = yes; then
6455 cat >>confdefs.h
<<\_ACEOF
6456 #define HAVE_STRUCT_DIRENT_D_FILENO 1
6463 aix
*) prefer_curses
=yes ;;
6466 if test "X$bash_cv_termcap_lib" = "X"; then
6469 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
6470 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
6473 if test "${bash_cv_termcap_lib+set}" = set; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
6476 echo "$as_me:$LINENO: checking for tgetent" >&5
6477 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
6478 if test "${ac_cv_func_tgetent+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 cat >conftest.
$ac_ext <<_ACEOF
6484 cat confdefs.h
>>conftest.
$ac_ext
6485 cat >>conftest.
$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6487 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
6488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6489 #define tgetent innocuous_tgetent
6491 /* System header to define __stub macros and hopefully few prototypes,
6492 which can conflict with char tgetent (); below.
6493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6494 <limits.h> exists even on freestanding compilers. */
6497 # include <limits.h>
6499 # include <assert.h>
6504 /* Override any gcc2 internal prototype to avoid an error. */
6509 /* We use char because int might match the return type of a gcc2
6510 builtin and then its argument prototype would still apply. */
6512 /* The GNU C library defines this for functions which it implements
6513 to always fail with ENOSYS. Some functions are actually named
6514 something starting with __ and the normal name is an alias. */
6515 #if defined (__stub_tgetent) || defined (__stub___tgetent)
6518 char (*f) () = tgetent;
6527 return f != tgetent;
6532 rm -f conftest.
$ac_objext conftest
$ac_exeext
6533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6534 (eval $ac_link) 2>conftest.er1
6536 grep -v '^ *+' conftest.er1
>conftest.err
6538 cat conftest.err
>&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } &&
6541 { ac_try
='test -z "$ac_c_werror_flag"
6542 || test ! -s conftest.err'
6543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); }; } &&
6548 { ac_try
='test -s conftest$ac_exeext'
6549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); }; }; then
6554 ac_cv_func_tgetent
=yes
6556 echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.
$ac_ext >&5
6559 ac_cv_func_tgetent
=no
6561 rm -f conftest.err conftest.
$ac_objext \
6562 conftest
$ac_exeext conftest.
$ac_ext
6564 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
6565 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
6566 if test $ac_cv_func_tgetent = yes; then
6567 bash_cv_termcap_lib
=libc
6569 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
6570 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
6571 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 ac_check_lib_save_LIBS
=$LIBS
6575 LIBS
="-ltermcap $LIBS"
6576 cat >conftest.
$ac_ext <<_ACEOF
6579 cat confdefs.h
>>conftest.
$ac_ext
6580 cat >>conftest.
$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6583 /* Override any gcc2 internal prototype to avoid an error. */
6587 /* We use char because int might match the return type of a gcc2
6588 builtin and then its argument prototype would still apply. */
6598 rm -f conftest.
$ac_objext conftest
$ac_exeext
6599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6600 (eval $ac_link) 2>conftest.er1
6602 grep -v '^ *+' conftest.er1
>conftest.err
6604 cat conftest.err
>&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } &&
6607 { ac_try
='test -z "$ac_c_werror_flag"
6608 || test ! -s conftest.err'
6609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; } &&
6614 { ac_try
='test -s conftest$ac_exeext'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; }; then
6620 ac_cv_lib_termcap_tgetent
=yes
6622 echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.
$ac_ext >&5
6625 ac_cv_lib_termcap_tgetent
=no
6627 rm -f conftest.err conftest.
$ac_objext \
6628 conftest
$ac_exeext conftest.
$ac_ext
6629 LIBS
=$ac_check_lib_save_LIBS
6631 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
6632 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
6633 if test $ac_cv_lib_termcap_tgetent = yes; then
6634 bash_cv_termcap_lib
=libtermcap
6636 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
6637 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
6638 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 ac_check_lib_save_LIBS
=$LIBS
6642 LIBS
="-ltinfo $LIBS"
6643 cat >conftest.
$ac_ext <<_ACEOF
6646 cat confdefs.h
>>conftest.
$ac_ext
6647 cat >>conftest.
$ac_ext <<_ACEOF
6648 /* end confdefs.h. */
6650 /* Override any gcc2 internal prototype to avoid an error. */
6654 /* We use char because int might match the return type of a gcc2
6655 builtin and then its argument prototype would still apply. */
6665 rm -f conftest.
$ac_objext conftest
$ac_exeext
6666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6667 (eval $ac_link) 2>conftest.er1
6669 grep -v '^ *+' conftest.er1
>conftest.err
6671 cat conftest.err
>&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } &&
6674 { ac_try
='test -z "$ac_c_werror_flag"
6675 || test ! -s conftest.err'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; } &&
6681 { ac_try
='test -s conftest$ac_exeext'
6682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; }; then
6687 ac_cv_lib_tinfo_tgetent
=yes
6689 echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.
$ac_ext >&5
6692 ac_cv_lib_tinfo_tgetent
=no
6694 rm -f conftest.err conftest.
$ac_objext \
6695 conftest
$ac_exeext conftest.
$ac_ext
6696 LIBS
=$ac_check_lib_save_LIBS
6698 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
6699 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
6700 if test $ac_cv_lib_tinfo_tgetent = yes; then
6701 bash_cv_termcap_lib
=libtinfo
6703 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
6704 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
6705 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 ac_check_lib_save_LIBS
=$LIBS
6709 LIBS
="-lcurses $LIBS"
6710 cat >conftest.
$ac_ext <<_ACEOF
6713 cat confdefs.h
>>conftest.
$ac_ext
6714 cat >>conftest.
$ac_ext <<_ACEOF
6715 /* end confdefs.h. */
6717 /* Override any gcc2 internal prototype to avoid an error. */
6721 /* We use char because int might match the return type of a gcc2
6722 builtin and then its argument prototype would still apply. */
6732 rm -f conftest.
$ac_objext conftest
$ac_exeext
6733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6734 (eval $ac_link) 2>conftest.er1
6736 grep -v '^ *+' conftest.er1
>conftest.err
6738 cat conftest.err
>&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } &&
6741 { ac_try
='test -z "$ac_c_werror_flag"
6742 || test ! -s conftest.err'
6743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; } &&
6748 { ac_try
='test -s conftest$ac_exeext'
6749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); }; }; then
6754 ac_cv_lib_curses_tgetent
=yes
6756 echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.
$ac_ext >&5
6759 ac_cv_lib_curses_tgetent
=no
6761 rm -f conftest.err conftest.
$ac_objext \
6762 conftest
$ac_exeext conftest.
$ac_ext
6763 LIBS
=$ac_check_lib_save_LIBS
6765 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
6766 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
6767 if test $ac_cv_lib_curses_tgetent = yes; then
6768 bash_cv_termcap_lib
=libcurses
6770 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
6771 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
6772 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 ac_check_lib_save_LIBS
=$LIBS
6776 LIBS
="-lncurses $LIBS"
6777 cat >conftest.
$ac_ext <<_ACEOF
6780 cat confdefs.h
>>conftest.
$ac_ext
6781 cat >>conftest.
$ac_ext <<_ACEOF
6782 /* end confdefs.h. */
6784 /* Override any gcc2 internal prototype to avoid an error. */
6788 /* We use char because int might match the return type of a gcc2
6789 builtin and then its argument prototype would still apply. */
6799 rm -f conftest.
$ac_objext conftest
$ac_exeext
6800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6801 (eval $ac_link) 2>conftest.er1
6803 grep -v '^ *+' conftest.er1
>conftest.err
6805 cat conftest.err
>&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } &&
6808 { ac_try
='test -z "$ac_c_werror_flag"
6809 || test ! -s conftest.err'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; } &&
6815 { ac_try
='test -s conftest$ac_exeext'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; }; then
6821 ac_cv_lib_ncurses_tgetent
=yes
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.
$ac_ext >&5
6826 ac_cv_lib_ncurses_tgetent
=no
6828 rm -f conftest.err conftest.
$ac_objext \
6829 conftest
$ac_exeext conftest.
$ac_ext
6830 LIBS
=$ac_check_lib_save_LIBS
6832 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
6833 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
6834 if test $ac_cv_lib_ncurses_tgetent = yes; then
6835 bash_cv_termcap_lib
=libncurses
6837 bash_cv_termcap_lib
=gnutermcap
6850 if test "X$_bash_needmsg" = "Xyes"; then
6851 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
6852 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
6854 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
6855 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
6856 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
6857 LDFLAGS
="$LDFLAGS -L./lib/termcap"
6858 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
6859 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
6860 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
6861 TERMCAP_LIB
=-ltermcap
6863 elif test $bash_cv_termcap_lib = libtinfo
; then
6866 elif test $bash_cv_termcap_lib = libncurses
; then
6867 TERMCAP_LIB
=-lncurses
6869 elif test $bash_cv_termcap_lib = libc
; then
6873 TERMCAP_LIB
=-lcurses
6877 if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
6878 if test "$prefer_curses" = yes; then
6879 TERMCAP_LIB
=-lcurses
6881 TERMCAP_LIB
=-ltermcap #default
6887 for ac_header
in wctype.h
6889 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6891 echo "$as_me:$LINENO: checking for $ac_header" >&5
6892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6899 # Is the header compilable?
6900 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6902 cat >conftest.
$ac_ext <<_ACEOF
6905 cat confdefs.h
>>conftest.
$ac_ext
6906 cat >>conftest.
$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6908 $ac_includes_default
6909 #include <$ac_header>
6911 rm -f conftest.
$ac_objext
6912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6913 (eval $ac_compile) 2>conftest.er1
6915 grep -v '^ *+' conftest.er1
>conftest.err
6917 cat conftest.err
>&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try
='test -z "$ac_c_werror_flag"
6921 || test ! -s conftest.err'
6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; } &&
6927 { ac_try
='test -s conftest.$ac_objext'
6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
6933 ac_header_compiler
=yes
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.
$ac_ext >&5
6938 ac_header_compiler
=no
6940 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6941 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6942 echo "${ECHO_T}$ac_header_compiler" >&6
6944 # Is the header present?
6945 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6947 cat >conftest.
$ac_ext <<_ACEOF
6950 cat confdefs.h
>>conftest.
$ac_ext
6951 cat >>conftest.
$ac_ext <<_ACEOF
6952 /* end confdefs.h. */
6953 #include <$ac_header>
6955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6956 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6958 grep -v '^ *+' conftest.er1
>conftest.err
6960 cat conftest.err
>&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } >/dev
/null
; then
6963 if test -s conftest.err
; then
6964 ac_cpp_err
=$ac_c_preproc_warn_flag
6965 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6972 if test -z "$ac_cpp_err"; then
6973 ac_header_preproc
=yes
6975 echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.
$ac_ext >&5
6978 ac_header_preproc
=no
6980 rm -f conftest.err conftest.
$ac_ext
6981 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6982 echo "${ECHO_T}$ac_header_preproc" >&6
6984 # So? What about this header?
6985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6991 ac_header_preproc
=yes
6994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7008 ## ----------------------------------- ##
7009 ## Report this to bug-readline@gnu.org ##
7010 ## ----------------------------------- ##
7013 sed "s/^/$as_me: WARNING: /" >&2
7016 echo "$as_me:$LINENO: checking for $ac_header" >&5
7017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 eval "$as_ac_Header=\$ac_header_preproc"
7023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7028 cat >>confdefs.h
<<_ACEOF
7029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7037 for ac_header
in wchar.h
7039 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7041 echo "$as_me:$LINENO: checking for $ac_header" >&5
7042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7049 # Is the header compilable?
7050 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7052 cat >conftest.
$ac_ext <<_ACEOF
7055 cat confdefs.h
>>conftest.
$ac_ext
7056 cat >>conftest.
$ac_ext <<_ACEOF
7057 /* end confdefs.h. */
7058 $ac_includes_default
7059 #include <$ac_header>
7061 rm -f conftest.
$ac_objext
7062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7063 (eval $ac_compile) 2>conftest.er1
7065 grep -v '^ *+' conftest.er1
>conftest.err
7067 cat conftest.err
>&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } &&
7070 { ac_try
='test -z "$ac_c_werror_flag"
7071 || test ! -s conftest.err'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; } &&
7077 { ac_try
='test -s conftest.$ac_objext'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7083 ac_header_compiler
=yes
7085 echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.
$ac_ext >&5
7088 ac_header_compiler
=no
7090 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7091 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7092 echo "${ECHO_T}$ac_header_compiler" >&6
7094 # Is the header present?
7095 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7097 cat >conftest.
$ac_ext <<_ACEOF
7100 cat confdefs.h
>>conftest.
$ac_ext
7101 cat >>conftest.
$ac_ext <<_ACEOF
7102 /* end confdefs.h. */
7103 #include <$ac_header>
7105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7106 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7108 grep -v '^ *+' conftest.er1
>conftest.err
7110 cat conftest.err
>&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } >/dev
/null
; then
7113 if test -s conftest.err
; then
7114 ac_cpp_err
=$ac_c_preproc_warn_flag
7115 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7122 if test -z "$ac_cpp_err"; then
7123 ac_header_preproc
=yes
7125 echo "$as_me: failed program was:" >&5
7126 sed 's/^/| /' conftest.
$ac_ext >&5
7128 ac_header_preproc
=no
7130 rm -f conftest.err conftest.
$ac_ext
7131 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7132 echo "${ECHO_T}$ac_header_preproc" >&6
7134 # So? What about this header?
7135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7137 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7138 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7140 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7141 ac_header_preproc
=yes
7144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7145 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7147 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7148 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7149 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7150 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7151 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7154 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7155 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7158 ## ----------------------------------- ##
7159 ## Report this to bug-readline@gnu.org ##
7160 ## ----------------------------------- ##
7163 sed "s/^/$as_me: WARNING: /" >&2
7166 echo "$as_me:$LINENO: checking for $ac_header" >&5
7167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 eval "$as_ac_Header=\$ac_header_preproc"
7173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7178 cat >>confdefs.h
<<_ACEOF
7179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7187 for ac_header
in langinfo.h
7189 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7191 echo "$as_me:$LINENO: checking for $ac_header" >&5
7192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7199 # Is the header compilable?
7200 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7202 cat >conftest.
$ac_ext <<_ACEOF
7205 cat confdefs.h
>>conftest.
$ac_ext
7206 cat >>conftest.
$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7208 $ac_includes_default
7209 #include <$ac_header>
7211 rm -f conftest.
$ac_objext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7213 (eval $ac_compile) 2>conftest.er1
7215 grep -v '^ *+' conftest.er1
>conftest.err
7217 cat conftest.err
>&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } &&
7220 { ac_try
='test -z "$ac_c_werror_flag"
7221 || test ! -s conftest.err'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; } &&
7227 { ac_try
='test -s conftest.$ac_objext'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7233 ac_header_compiler
=yes
7235 echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.
$ac_ext >&5
7238 ac_header_compiler
=no
7240 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7242 echo "${ECHO_T}$ac_header_compiler" >&6
7244 # Is the header present?
7245 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7247 cat >conftest.
$ac_ext <<_ACEOF
7250 cat confdefs.h
>>conftest.
$ac_ext
7251 cat >>conftest.
$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 #include <$ac_header>
7255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7256 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7258 grep -v '^ *+' conftest.er1
>conftest.err
7260 cat conftest.err
>&5
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); } >/dev
/null
; then
7263 if test -s conftest.err
; then
7264 ac_cpp_err
=$ac_c_preproc_warn_flag
7265 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7272 if test -z "$ac_cpp_err"; then
7273 ac_header_preproc
=yes
7275 echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.
$ac_ext >&5
7278 ac_header_preproc
=no
7280 rm -f conftest.err conftest.
$ac_ext
7281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7282 echo "${ECHO_T}$ac_header_preproc" >&6
7284 # So? What about this header?
7285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7291 ac_header_preproc
=yes
7294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7308 ## ----------------------------------- ##
7309 ## Report this to bug-readline@gnu.org ##
7310 ## ----------------------------------- ##
7313 sed "s/^/$as_me: WARNING: /" >&2
7316 echo "$as_me:$LINENO: checking for $ac_header" >&5
7317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 eval "$as_ac_Header=\$ac_header_preproc"
7323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7328 cat >>confdefs.h
<<_ACEOF
7329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7337 echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
7338 echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
7339 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 cat >conftest.
$ac_ext <<_ACEOF
7345 cat confdefs.h
>>conftest.
$ac_ext
7346 cat >>conftest.
$ac_ext <<_ACEOF
7347 /* end confdefs.h. */
7348 /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
7349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7350 #define mbsrtowcs innocuous_mbsrtowcs
7352 /* System header to define __stub macros and hopefully few prototypes,
7353 which can conflict with char mbsrtowcs (); below.
7354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7355 <limits.h> exists even on freestanding compilers. */
7358 # include <limits.h>
7360 # include <assert.h>
7365 /* Override any gcc2 internal prototype to avoid an error. */
7370 /* We use char because int might match the return type of a gcc2
7371 builtin and then its argument prototype would still apply. */
7373 /* The GNU C library defines this for functions which it implements
7374 to always fail with ENOSYS. Some functions are actually named
7375 something starting with __ and the normal name is an alias. */
7376 #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
7379 char (*f) () = mbsrtowcs;
7388 return f != mbsrtowcs;
7393 rm -f conftest.
$ac_objext conftest
$ac_exeext
7394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7395 (eval $ac_link) 2>conftest.er1
7397 grep -v '^ *+' conftest.er1
>conftest.err
7399 cat conftest.err
>&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } &&
7402 { ac_try
='test -z "$ac_c_werror_flag"
7403 || test ! -s conftest.err'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; } &&
7409 { ac_try
='test -s conftest$ac_exeext'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; }; then
7415 ac_cv_func_mbsrtowcs
=yes
7417 echo "$as_me: failed program was:" >&5
7418 sed 's/^/| /' conftest.
$ac_ext >&5
7420 ac_cv_func_mbsrtowcs
=no
7422 rm -f conftest.err conftest.
$ac_objext \
7423 conftest
$ac_exeext conftest.
$ac_ext
7425 echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
7426 echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
7427 if test $ac_cv_func_mbsrtowcs = yes; then
7428 cat >>confdefs.h
<<\_ACEOF
7429 #define HAVE_MBSRTOWCS 1
7434 echo "$as_me:$LINENO: checking for mbrtowc" >&5
7435 echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6
7436 if test "${ac_cv_func_mbrtowc+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 cat >conftest.
$ac_ext <<_ACEOF
7442 cat confdefs.h
>>conftest.
$ac_ext
7443 cat >>conftest.
$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7445 /* Define mbrtowc to an innocuous variant, in case <limits.h> declares mbrtowc.
7446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7447 #define mbrtowc innocuous_mbrtowc
7449 /* System header to define __stub macros and hopefully few prototypes,
7450 which can conflict with char mbrtowc (); below.
7451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7452 <limits.h> exists even on freestanding compilers. */
7455 # include <limits.h>
7457 # include <assert.h>
7462 /* Override any gcc2 internal prototype to avoid an error. */
7467 /* We use char because int might match the return type of a gcc2
7468 builtin and then its argument prototype would still apply. */
7470 /* The GNU C library defines this for functions which it implements
7471 to always fail with ENOSYS. Some functions are actually named
7472 something starting with __ and the normal name is an alias. */
7473 #if defined (__stub_mbrtowc) || defined (__stub___mbrtowc)
7476 char (*f) () = mbrtowc;
7485 return f != mbrtowc;
7490 rm -f conftest.
$ac_objext conftest
$ac_exeext
7491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7492 (eval $ac_link) 2>conftest.er1
7494 grep -v '^ *+' conftest.er1
>conftest.err
7496 cat conftest.err
>&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } &&
7499 { ac_try
='test -z "$ac_c_werror_flag"
7500 || test ! -s conftest.err'
7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; } &&
7506 { ac_try
='test -s conftest$ac_exeext'
7507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); }; }; then
7512 ac_cv_func_mbrtowc
=yes
7514 echo "$as_me: failed program was:" >&5
7515 sed 's/^/| /' conftest.
$ac_ext >&5
7517 ac_cv_func_mbrtowc
=no
7519 rm -f conftest.err conftest.
$ac_objext \
7520 conftest
$ac_exeext conftest.
$ac_ext
7522 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
7523 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
7524 if test $ac_cv_func_mbrtowc = yes; then
7525 cat >>confdefs.h
<<\_ACEOF
7526 #define HAVE_MBRTOWC 1
7531 echo "$as_me:$LINENO: checking for mbrlen" >&5
7532 echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6
7533 if test "${ac_cv_func_mbrlen+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 cat >conftest.
$ac_ext <<_ACEOF
7539 cat confdefs.h
>>conftest.
$ac_ext
7540 cat >>conftest.
$ac_ext <<_ACEOF
7541 /* end confdefs.h. */
7542 /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
7543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7544 #define mbrlen innocuous_mbrlen
7546 /* System header to define __stub macros and hopefully few prototypes,
7547 which can conflict with char mbrlen (); below.
7548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7549 <limits.h> exists even on freestanding compilers. */
7552 # include <limits.h>
7554 # include <assert.h>
7559 /* Override any gcc2 internal prototype to avoid an error. */
7564 /* We use char because int might match the return type of a gcc2
7565 builtin and then its argument prototype would still apply. */
7567 /* The GNU C library defines this for functions which it implements
7568 to always fail with ENOSYS. Some functions are actually named
7569 something starting with __ and the normal name is an alias. */
7570 #if defined (__stub_mbrlen) || defined (__stub___mbrlen)
7573 char (*f) () = mbrlen;
7587 rm -f conftest.
$ac_objext conftest
$ac_exeext
7588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7589 (eval $ac_link) 2>conftest.er1
7591 grep -v '^ *+' conftest.er1
>conftest.err
7593 cat conftest.err
>&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } &&
7596 { ac_try
='test -z "$ac_c_werror_flag"
7597 || test ! -s conftest.err'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; } &&
7603 { ac_try
='test -s conftest$ac_exeext'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; }; then
7609 ac_cv_func_mbrlen
=yes
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.
$ac_ext >&5
7614 ac_cv_func_mbrlen
=no
7616 rm -f conftest.err conftest.
$ac_objext \
7617 conftest
$ac_exeext conftest.
$ac_ext
7619 echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
7620 echo "${ECHO_T}$ac_cv_func_mbrlen" >&6
7621 if test $ac_cv_func_mbrlen = yes; then
7622 cat >>confdefs.h
<<\_ACEOF
7623 #define HAVE_MBRLEN 1
7628 echo "$as_me:$LINENO: checking for wctomb" >&5
7629 echo $ECHO_N "checking for wctomb... $ECHO_C" >&6
7630 if test "${ac_cv_func_wctomb+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 cat >conftest.
$ac_ext <<_ACEOF
7636 cat confdefs.h
>>conftest.
$ac_ext
7637 cat >>conftest.
$ac_ext <<_ACEOF
7638 /* end confdefs.h. */
7639 /* Define wctomb to an innocuous variant, in case <limits.h> declares wctomb.
7640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7641 #define wctomb innocuous_wctomb
7643 /* System header to define __stub macros and hopefully few prototypes,
7644 which can conflict with char wctomb (); below.
7645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7646 <limits.h> exists even on freestanding compilers. */
7649 # include <limits.h>
7651 # include <assert.h>
7656 /* Override any gcc2 internal prototype to avoid an error. */
7661 /* We use char because int might match the return type of a gcc2
7662 builtin and then its argument prototype would still apply. */
7664 /* The GNU C library defines this for functions which it implements
7665 to always fail with ENOSYS. Some functions are actually named
7666 something starting with __ and the normal name is an alias. */
7667 #if defined (__stub_wctomb) || defined (__stub___wctomb)
7670 char (*f) () = wctomb;
7684 rm -f conftest.
$ac_objext conftest
$ac_exeext
7685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7686 (eval $ac_link) 2>conftest.er1
7688 grep -v '^ *+' conftest.er1
>conftest.err
7690 cat conftest.err
>&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } &&
7693 { ac_try
='test -z "$ac_c_werror_flag"
7694 || test ! -s conftest.err'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; } &&
7700 { ac_try
='test -s conftest$ac_exeext'
7701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; }; then
7706 ac_cv_func_wctomb
=yes
7708 echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.
$ac_ext >&5
7711 ac_cv_func_wctomb
=no
7713 rm -f conftest.err conftest.
$ac_objext \
7714 conftest
$ac_exeext conftest.
$ac_ext
7716 echo "$as_me:$LINENO: result: $ac_cv_func_wctomb" >&5
7717 echo "${ECHO_T}$ac_cv_func_wctomb" >&6
7718 if test $ac_cv_func_wctomb = yes; then
7719 cat >>confdefs.h
<<\_ACEOF
7720 #define HAVE_WCTOMB 1
7725 echo "$as_me:$LINENO: checking for wcwidth" >&5
7726 echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
7727 if test "${ac_cv_func_wcwidth+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7730 cat >conftest.
$ac_ext <<_ACEOF
7733 cat confdefs.h
>>conftest.
$ac_ext
7734 cat >>conftest.
$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7736 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
7737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7738 #define wcwidth innocuous_wcwidth
7740 /* System header to define __stub macros and hopefully few prototypes,
7741 which can conflict with char wcwidth (); below.
7742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7743 <limits.h> exists even on freestanding compilers. */
7746 # include <limits.h>
7748 # include <assert.h>
7753 /* Override any gcc2 internal prototype to avoid an error. */
7758 /* We use char because int might match the return type of a gcc2
7759 builtin and then its argument prototype would still apply. */
7761 /* The GNU C library defines this for functions which it implements
7762 to always fail with ENOSYS. Some functions are actually named
7763 something starting with __ and the normal name is an alias. */
7764 #if defined (__stub_wcwidth) || defined (__stub___wcwidth)
7767 char (*f) () = wcwidth;
7776 return f != wcwidth;
7781 rm -f conftest.
$ac_objext conftest
$ac_exeext
7782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7783 (eval $ac_link) 2>conftest.er1
7785 grep -v '^ *+' conftest.er1
>conftest.err
7787 cat conftest.err
>&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); } &&
7790 { ac_try
='test -z "$ac_c_werror_flag"
7791 || test ! -s conftest.err'
7792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); }; } &&
7797 { ac_try
='test -s conftest$ac_exeext'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; }; then
7803 ac_cv_func_wcwidth
=yes
7805 echo "$as_me: failed program was:" >&5
7806 sed 's/^/| /' conftest.
$ac_ext >&5
7808 ac_cv_func_wcwidth
=no
7810 rm -f conftest.err conftest.
$ac_objext \
7811 conftest
$ac_exeext conftest.
$ac_ext
7813 echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
7814 echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
7815 if test $ac_cv_func_wcwidth = yes; then
7816 cat >>confdefs.h
<<\_ACEOF
7817 #define HAVE_WCWIDTH 1
7822 echo "$as_me:$LINENO: checking for wcsdup" >&5
7823 echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6
7824 if test "${ac_cv_func_wcsdup+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 cat >conftest.
$ac_ext <<_ACEOF
7830 cat confdefs.h
>>conftest.
$ac_ext
7831 cat >>conftest.
$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7833 /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
7834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7835 #define wcsdup innocuous_wcsdup
7837 /* System header to define __stub macros and hopefully few prototypes,
7838 which can conflict with char wcsdup (); below.
7839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7840 <limits.h> exists even on freestanding compilers. */
7843 # include <limits.h>
7845 # include <assert.h>
7850 /* Override any gcc2 internal prototype to avoid an error. */
7855 /* We use char because int might match the return type of a gcc2
7856 builtin and then its argument prototype would still apply. */
7858 /* The GNU C library defines this for functions which it implements
7859 to always fail with ENOSYS. Some functions are actually named
7860 something starting with __ and the normal name is an alias. */
7861 #if defined (__stub_wcsdup) || defined (__stub___wcsdup)
7864 char (*f) () = wcsdup;
7878 rm -f conftest.
$ac_objext conftest
$ac_exeext
7879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7880 (eval $ac_link) 2>conftest.er1
7882 grep -v '^ *+' conftest.er1
>conftest.err
7884 cat conftest.err
>&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } &&
7887 { ac_try
='test -z "$ac_c_werror_flag"
7888 || test ! -s conftest.err'
7889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; } &&
7894 { ac_try
='test -s conftest$ac_exeext'
7895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 ac_cv_func_wcsdup
=yes
7902 echo "$as_me: failed program was:" >&5
7903 sed 's/^/| /' conftest.
$ac_ext >&5
7905 ac_cv_func_wcsdup
=no
7907 rm -f conftest.err conftest.
$ac_objext \
7908 conftest
$ac_exeext conftest.
$ac_ext
7910 echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
7911 echo "${ECHO_T}$ac_cv_func_wcsdup" >&6
7912 if test $ac_cv_func_wcsdup = yes; then
7913 cat >>confdefs.h
<<\_ACEOF
7914 #define HAVE_WCSDUP 1
7920 if test "$ac_cv_func_wcwidth" = no
&& test "$ac_cv_header_wchar_h" = yes; then
7921 WCWIDTH_OBJ
=wcwidth.o
7927 echo "$as_me:$LINENO: checking for mbstate_t" >&5
7928 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
7929 if test "${bash_cv_have_mbstate_t+set}" = set; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 cat >conftest.
$ac_ext <<_ACEOF
7935 cat confdefs.h
>>conftest.
$ac_ext
7936 cat >>conftest.
$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7946 psp = (mbstate_t *)0;
7952 rm -f conftest.
$ac_objext
7953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7954 (eval $ac_compile) 2>conftest.er1
7956 grep -v '^ *+' conftest.er1
>conftest.err
7958 cat conftest.err
>&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
7961 { ac_try
='test -z "$ac_c_werror_flag"
7962 || test ! -s conftest.err'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; } &&
7968 { ac_try
='test -s conftest.$ac_objext'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 bash_cv_have_mbstate_t
=yes
7976 echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.
$ac_ext >&5
7979 bash_cv_have_mbstate_t
=no
7981 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7983 echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5
7984 echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
7985 if test $bash_cv_have_mbstate_t = yes; then
7986 cat >>confdefs.h
<<\_ACEOF
7987 #define HAVE_MBSTATE_T 1
7992 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7993 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7994 if test "${bash_cv_langinfo_codeset+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7997 cat >conftest.
$ac_ext <<_ACEOF
8000 cat confdefs.h
>>conftest.
$ac_ext
8001 cat >>conftest.
$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8003 #include <langinfo.h>
8007 char* cs = nl_langinfo(CODESET);
8012 rm -f conftest.
$ac_objext conftest
$ac_exeext
8013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8014 (eval $ac_link) 2>conftest.er1
8016 grep -v '^ *+' conftest.er1
>conftest.err
8018 cat conftest.err
>&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); } &&
8021 { ac_try
='test -z "$ac_c_werror_flag"
8022 || test ! -s conftest.err'
8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; } &&
8028 { ac_try
='test -s conftest$ac_exeext'
8029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; }; then
8034 bash_cv_langinfo_codeset
=yes
8036 echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.
$ac_ext >&5
8039 bash_cv_langinfo_codeset
=no
8041 rm -f conftest.err conftest.
$ac_objext \
8042 conftest
$ac_exeext conftest.
$ac_ext
8044 echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
8045 echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
8046 if test $bash_cv_langinfo_codeset = yes; then
8047 cat >>confdefs.h
<<\_ACEOF
8048 #define HAVE_LANGINFO_CODESET 1
8056 *cray
*) LOCAL_CFLAGS
=-DCRAY ;;
8057 *s390
*) LOCAL_CFLAGS
=-fsigned-char ;;
8061 isc
*) LOCAL_CFLAGS
=-Disc386 ;;
8064 # shared library configuration section
8066 # Shared object configuration section. These values are generated by
8067 # ${srcdir}/support/shobj-conf
8069 if test -f ${srcdir}/support
/shobj-conf
; then
8070 echo "$as_me:$LINENO: checking configuration for building shared libraries" >&5
8071 echo $ECHO_N "checking configuration for building shared libraries... $ECHO_C" >&6
8072 eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
8074 # case "$SHLIB_LIBS" in
8075 # *curses*|*termcap*|*termlib*) ;;
8076 # *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;;
8094 echo "$as_me:$LINENO: result: $SHLIB_STATUS" >&5
8095 echo "${ECHO_T}$SHLIB_STATUS" >&6
8097 # SHLIB_STATUS is either `supported' or `unsupported'. If it's
8098 # `unsupported', turn off any default shared library building
8099 if test "$SHLIB_STATUS" = 'unsupported'; then
8103 # shared library versioning
8104 # quoted for m4 so I can use character classes
8105 SHLIB_MAJOR
=`expr "$LIBVERSION" : '\([0-9]\)\..*'`
8106 SHLIB_MINOR
=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`
8111 if test "$opt_static_libs" = "yes"; then
8112 STATIC_TARGET
=static
8113 STATIC_INSTALL_TARGET
=install-static
8115 if test "$opt_shared_libs" = "yes"; then
8116 SHARED_TARGET
=shared
8117 SHARED_INSTALL_TARGET
=install-shared
8126 msdosdjgpp
*) BUILD_DIR
=`pwd.exe` ;; # to prevent //d/path/file
8127 *) BUILD_DIR
=`pwd` ;;
8130 case "$BUILD_DIR" in
8131 *\
*) BUILD_DIR
=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
8153 ac_config_files
="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile"
8154 ac_config_commands
="$ac_config_commands default"
8155 cat >confcache
<<\_ACEOF
8156 # This file is a shell script that caches the results of configure
8157 # tests run on this system so they can be shared between configure
8158 # scripts and configure runs, see configure's option --config-cache.
8159 # It is not useful on other systems. If it contains results you don't
8160 # want to keep, you may remove or edit it.
8162 # config.status only pays attention to the cache file if you give it
8163 # the --recheck option to rerun configure.
8165 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8166 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8171 # The following way of writing the cache mishandles newlines in values,
8172 # but we know of no workaround that is simple, portable, and efficient.
8173 # So, don't put newlines in cache variables' values.
8174 # Ultrix sh set writes to stderr and can't be redirected directly,
8175 # and sets the high bit in the cache file unless we assign to the vars.
8178 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8180 # `set' does not quote correctly, so add quotes (double-quote
8181 # substitution turns \\\\ into \\, and sed turns \\ into \).
8184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8187 # `set' quotes correctly as required by POSIX, so do not add quotes.
8189 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8196 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8198 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8200 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8201 if test -w $cache_file; then
8202 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8203 cat confcache
>$cache_file
8205 echo "not updating unwritable cache $cache_file"
8210 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8211 # Let make expand exec_prefix.
8212 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8214 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8215 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8216 # trailing colons and then remove the whole line if VPATH becomes empty
8217 # (actually we leave an empty line to preserve line numbers).
8218 if test "x$srcdir" = x.
; then
8219 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8220 s/:*\$(srcdir):*/:/;
8221 s/:*\${srcdir}:*/:/;
8223 s/^\([^=]*=[ ]*\):*/\1/;
8229 DEFS
=-DHAVE_CONFIG_H
8233 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8234 # 1. Remove the extension, and $U if already installed.
8235 ac_i
=`echo "$ac_i" |
8236 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8238 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
8239 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
8243 LTLIBOBJS
=$ac_ltlibobjs
8247 : ${CONFIG_STATUS=./config.status}
8248 ac_clean_files_save
=$ac_clean_files
8249 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8250 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8251 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8252 cat >$CONFIG_STATUS <<_ACEOF
8254 # Generated by $as_me.
8255 # Run this file to recreate the current configuration.
8256 # Compiler output produced by configure, useful for debugging
8257 # configure, is in config.log if it exists.
8262 SHELL=\${CONFIG_SHELL-$SHELL}
8265 cat >>$CONFIG_STATUS <<\_ACEOF
8266 ## --------------------- ##
8267 ## M4sh Initialization. ##
8268 ## --------------------- ##
8270 # Be Bourne compatible
8271 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8274 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8275 # is contrary to our usage. Disable this feature.
8276 alias -g '${1+"$@"}'='"$@"'
8277 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8280 DUALCASE
=1; export DUALCASE
# for MKS sh
8282 # Support unset when possible.
8283 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
8290 # Work around bugs in pre-3.0 UWIN ksh.
8291 $as_unset ENV MAIL MAILPATH
8298 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8299 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8300 LC_TELEPHONE LC_TIME
8302 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8303 eval $as_var=C
; export $as_var
8309 # Required to use basename.
8310 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8316 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
8317 as_basename
=basename
8323 # Name of the executable.
8324 as_me
=`$as_basename "$0" ||
8325 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8326 X"$0" : 'X\(//\)$' \| \
8327 X"$0" : 'X\(/\)$' \| \
8328 . : '\(.\)' 2>/dev/null ||
8330 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8331 /^X\/\(\/\/\)$/{ s//\1/; q; }
8332 /^X\/\(\/\).*/{ s//\1/; q; }
8336 # PATH needs CR, and LINENO needs CR and PATH.
8337 # Avoid depending upon Character Ranges.
8338 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8339 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8340 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8341 as_cr_digits
='0123456789'
8342 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8344 # The user is always right.
8345 if test "${PATH_SEPARATOR+set}" != set; then
8346 echo "#! /bin/sh" >conf$$.sh
8347 echo "exit 0" >>conf$$.sh
8349 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8360 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
8361 test "x$as_lineno_1" != "x$as_lineno_2" &&
8362 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
8363 # Find who we are. Look in the path if we contain no path at all
8366 *[\\/]* ) as_myself
=$0 ;;
8367 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8371 test -z "$as_dir" && as_dir
=.
8372 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8377 # We did not find ourselves, most probably we were run as `sh COMMAND'
8378 # in which case we are not to be found in the path.
8379 if test "x$as_myself" = x
; then
8382 if test ! -f "$as_myself"; then
8383 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8384 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8385 { (exit 1); exit 1; }; }
8387 case $CONFIG_SHELL in
8389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8390 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
8393 test -z "$as_dir" && as_dir
=.
8394 for as_base
in sh bash ksh sh5
; do
8397 if ("$as_dir/$as_base" -c '
8400 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8401 test "x$as_lineno_1" != "x$as_lineno_2" &&
8402 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
8403 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
8404 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
8405 CONFIG_SHELL
=$as_dir/$as_base
8407 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8415 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8416 # uniformly replaced by the line number. The first 'sed' inserts a
8417 # line-number line before each line; the second 'sed' does the real
8418 # work. The second script uses 'N' to pair each line-number line
8419 # with the numbered line, and appends trailing '-' during
8420 # substitution so that $LINENO is not a special case at line end.
8421 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8422 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8423 sed '=' <$as_myself |
8428 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8431 s,^['$as_cr_digits']*\n,,
8433 chmod +x
$as_me.lineno ||
8434 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8435 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8436 { (exit 1); exit 1; }; }
8438 # Don't try to exec as it changes $[0], causing all sort of problems
8439 # (the dirname of $[0] is not the place where we might find the
8440 # original and so on. Autoconf is especially sensible to this).
8442 # Exit status is that of the last command.
8447 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8448 *c
*,-n*) ECHO_N
= ECHO_C
='
8450 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8451 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8454 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8460 rm -f conf$$ conf$$.exe conf$$.
file
8462 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8463 # We could just check for DJGPP; but this test a) works b) is more generic
8464 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8465 if test -f conf$$.exe
; then
8466 # Don't use ln at all; we don't have any links
8471 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8476 rm -f conf$$ conf$$.exe conf$$.
file
8478 if mkdir
-p .
2>/dev
/null
; then
8481 test -d .
/-p && rmdir .
/-p
8485 as_executable_p
="test -f"
8487 # Sed expression to map a string onto a valid CPP name.
8488 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8490 # Sed expression to map a string onto a valid variable name.
8491 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8495 # We need space, tab and new line, in precisely that order.
8505 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8506 # report actual input values of CONFIG_FILES etc. instead of their
8507 # values after options handling. Logging --version etc. is OK.
8511 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8512 ## Running $as_me. ##
8517 This file was extended by readline $as_me 5.1-release, which was
8518 generated by GNU Autoconf 2.59. Invocation command line was
8520 CONFIG_FILES = $CONFIG_FILES
8521 CONFIG_HEADERS = $CONFIG_HEADERS
8522 CONFIG_LINKS = $CONFIG_LINKS
8523 CONFIG_COMMANDS = $CONFIG_COMMANDS
8527 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8531 # Files that config.status was made for.
8532 if test -n "$ac_config_files"; then
8533 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8536 if test -n "$ac_config_headers"; then
8537 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8540 if test -n "$ac_config_links"; then
8541 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8544 if test -n "$ac_config_commands"; then
8545 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8548 cat >>$CONFIG_STATUS <<\_ACEOF
8551 \`$as_me' instantiates files from templates according to the
8552 current configuration.
8554 Usage: $0 [OPTIONS] [FILE]...
8556 -h, --help print this help, then exit
8557 -V, --version print version number, then exit
8558 -q, --quiet do not print progress messages
8559 -d, --debug don't remove temporary files
8560 --recheck update $as_me by reconfiguring in the same conditions
8561 --file=FILE[:TEMPLATE]
8562 instantiate the configuration file FILE
8563 --header=FILE[:TEMPLATE]
8564 instantiate the configuration header FILE
8566 Configuration files:
8569 Configuration headers:
8572 Configuration commands:
8575 Report bugs to <bug-autoconf@gnu.org>."
8578 cat >>$CONFIG_STATUS <<_ACEOF
8580 readline config.status 5.1-release
8581 configured by $0, generated by GNU Autoconf 2.59,
8582 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8584 Copyright (C) 2003 Free Software Foundation, Inc.
8585 This config.status script is free software; the Free Software Foundation
8586 gives unlimited permission to copy, distribute and modify it."
8591 cat >>$CONFIG_STATUS <<\_ACEOF
8592 # If no file are specified by the user, then we need to provide default
8593 # value. By we need to know if files were specified by the user.
8599 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8600 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8608 *) # This is not an option, so the user has probably given explicit
8611 ac_need_defaults
=false
;;
8615 # Handling of the options.
8617 cat >>$CONFIG_STATUS <<\_ACEOF
8618 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8620 --version |
--vers* |
-V )
8621 echo "$ac_cs_version"; exit 0 ;;
8623 # Conflict between --help and --header
8624 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8625 Try \`$0 --help' for more information." >&5
8626 echo "$as_me: error: ambiguous option: $1
8627 Try \`$0 --help' for more information." >&2;}
8628 { (exit 1); exit 1; }; };;
8629 --help |
--hel |
-h )
8630 echo "$ac_cs_usage"; exit 0 ;;
8631 --debug |
--d* |
-d )
8633 --file |
--fil |
--fi |
--f )
8635 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8636 ac_need_defaults
=false
;;
8637 --header |
--heade |
--head |
--hea )
8639 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8640 ac_need_defaults
=false
;;
8641 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8642 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8646 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8647 Try \`$0 --help' for more information." >&5
8648 echo "$as_me: error: unrecognized option: $1
8649 Try \`$0 --help' for more information." >&2;}
8650 { (exit 1); exit 1; }; } ;;
8652 *) ac_config_targets
="$ac_config_targets $1" ;;
8658 ac_configure_extra_args
=
8660 if $ac_cs_silent; then
8662 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8666 cat >>$CONFIG_STATUS <<_ACEOF
8667 if \$ac_cs_recheck; then
8668 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8669 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8678 cat >>$CONFIG_STATUS <<\_ACEOF
8679 for ac_config_target
in $ac_config_targets
8681 case "$ac_config_target" in
8682 # Handling of arguments.
8683 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8684 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
8685 "examples/Makefile" ) CONFIG_FILES
="$CONFIG_FILES examples/Makefile" ;;
8686 "shlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES shlib/Makefile" ;;
8687 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
8688 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
8689 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8690 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8691 { (exit 1); exit 1; }; };;
8695 # If the user did not use the arguments to specify the items to instantiate,
8696 # then the envvar interface is used. Set only those that are not.
8697 # We use the long form for the default assignment because of an extremely
8698 # bizarre bug on SunOS 4.1.3.
8699 if $ac_need_defaults; then
8700 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8701 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8702 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8705 # Have a temporary directory for convenience. Make it in the build tree
8706 # simply because there is no reason to put it here, and in addition,
8707 # creating and moving files from /tmp can sometimes cause problems.
8708 # Create a temporary directory, and hook for its removal unless debugging.
8711 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8712 trap '{ (exit 1); exit 1; }' 1 2 13 15
8715 # Create a (secure) tmp directory for tmp files.
8718 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8719 test -n "$tmp" && test -d "$tmp"
8722 tmp
=.
/confstat$$
-$RANDOM
8723 (umask 077 && mkdir
$tmp)
8726 echo "$me: cannot create a temporary directory in ." >&2
8727 { (exit 1); exit 1; }
8732 cat >>$CONFIG_STATUS <<_ACEOF
8735 # CONFIG_FILES section.
8738 # No need to generate the scripts if there are no CONFIG_FILES.
8739 # This happens for instance when ./config.status config.h
8740 if test -n "\$CONFIG_FILES"; then
8741 # Protect against being on the right side of a sed subst in config.status.
8742 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8743 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8744 s,@SHELL@,$SHELL,;t t
8745 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8746 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8747 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8748 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8749 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8750 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8751 s,@exec_prefix@,$exec_prefix,;t t
8752 s,@prefix@,$prefix,;t t
8753 s,@program_transform_name@,$program_transform_name,;t t
8754 s,@bindir@,$bindir,;t t
8755 s,@sbindir@,$sbindir,;t t
8756 s,@libexecdir@,$libexecdir,;t t
8757 s,@datadir@,$datadir,;t t
8758 s,@sysconfdir@,$sysconfdir,;t t
8759 s,@sharedstatedir@,$sharedstatedir,;t t
8760 s,@localstatedir@,$localstatedir,;t t
8761 s,@libdir@,$libdir,;t t
8762 s,@includedir@,$includedir,;t t
8763 s,@oldincludedir@,$oldincludedir,;t t
8764 s,@infodir@,$infodir,;t t
8765 s,@mandir@,$mandir,;t t
8766 s,@build_alias@,$build_alias,;t t
8767 s,@host_alias@,$host_alias,;t t
8768 s,@target_alias@,$target_alias,;t t
8770 s,@ECHO_C@,$ECHO_C,;t t
8771 s,@ECHO_N@,$ECHO_N,;t t
8772 s,@ECHO_T@,$ECHO_T,;t t
8774 s,@build@,$build,;t t
8775 s,@build_cpu@,$build_cpu,;t t
8776 s,@build_vendor@,$build_vendor,;t t
8777 s,@build_os@,$build_os,;t t
8779 s,@host_cpu@,$host_cpu,;t t
8780 s,@host_vendor@,$host_vendor,;t t
8781 s,@host_os@,$host_os,;t t
8782 s,@CROSS_COMPILE@,$CROSS_COMPILE,;t t
8783 s,@SET_MAKE@,$SET_MAKE,;t t
8785 s,@CFLAGS@,$CFLAGS,;t t
8786 s,@LDFLAGS@,$LDFLAGS,;t t
8787 s,@CPPFLAGS@,$CPPFLAGS,;t t
8788 s,@ac_ct_CC@,$ac_ct_CC,;t t
8789 s,@EXEEXT@,$EXEEXT,;t t
8790 s,@OBJEXT@,$OBJEXT,;t t
8792 s,@EGREP@,$EGREP,;t t
8793 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8794 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8795 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8796 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8798 s,@RANLIB@,$RANLIB,;t t
8799 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8800 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
8801 s,@WCWIDTH_OBJ@,$WCWIDTH_OBJ,;t t
8802 s,@SHOBJ_CC@,$SHOBJ_CC,;t t
8803 s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
8804 s,@SHOBJ_LD@,$SHOBJ_LD,;t t
8805 s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
8806 s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
8807 s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
8808 s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
8809 s,@SHLIB_STATUS@,$SHLIB_STATUS,;t t
8810 s,@SHLIB_XLDFLAGS@,$SHLIB_XLDFLAGS,;t t
8811 s,@SHLIB_DOT@,$SHLIB_DOT,;t t
8812 s,@SHLIB_LIBPREF@,$SHLIB_LIBPREF,;t t
8813 s,@SHLIB_LIBSUFF@,$SHLIB_LIBSUFF,;t t
8814 s,@SHLIB_LIBVERSION@,$SHLIB_LIBVERSION,;t t
8815 s,@SHLIB_DLLVERSION@,$SHLIB_DLLVERSION,;t t
8816 s,@SHLIB_LIBS@,$SHLIB_LIBS,;t t
8817 s,@SHLIB_MAJOR@,$SHLIB_MAJOR,;t t
8818 s,@SHLIB_MINOR@,$SHLIB_MINOR,;t t
8819 s,@STATIC_TARGET@,$STATIC_TARGET,;t t
8820 s,@SHARED_TARGET@,$SHARED_TARGET,;t t
8821 s,@STATIC_INSTALL_TARGET@,$STATIC_INSTALL_TARGET,;t t
8822 s,@SHARED_INSTALL_TARGET@,$SHARED_INSTALL_TARGET,;t t
8823 s,@PURIFY@,$PURIFY,;t t
8824 s,@BUILD_DIR@,$BUILD_DIR,;t t
8825 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
8826 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
8827 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
8828 s,@ARFLAGS@,$ARFLAGS,;t t
8829 s,@LIBVERSION@,$LIBVERSION,;t t
8830 s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
8831 s,@LIBOBJS@,$LIBOBJS,;t t
8832 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8837 cat >>$CONFIG_STATUS <<\_ACEOF
8838 # Split the substitutions into bite-sized pieces for seds with
8839 # small command number limits, like on Digital OSF/1 and HP-UX.
8841 ac_sed_frag
=1 # Number of current file.
8842 ac_beg
=1 # First line for current file.
8843 ac_end
=$ac_max_sed_lines # Line after last line for current file.
8846 while $ac_more_lines; do
8847 if test $ac_beg -gt 1; then
8848 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8850 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8852 if test ! -s $tmp/subs.frag
; then
8855 # The purpose of the label and of the branching condition is to
8856 # speed up the sed processing (if there are no `@' at all, there
8857 # is no need to browse any of the substitutions).
8858 # These are the two extra sed commands mentioned above.
8860 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
8861 if test -z "$ac_sed_cmds"; then
8862 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
8864 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8866 ac_sed_frag
=`expr $ac_sed_frag + 1`
8868 ac_end
=`expr $ac_end + $ac_max_sed_lines`
8871 if test -z "$ac_sed_cmds"; then
8874 fi # test -n "$CONFIG_FILES"
8877 cat >>$CONFIG_STATUS <<\_ACEOF
8878 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
8879 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8881 - |
*:- |
*:-:* ) # input from stdin
8883 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8884 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8885 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8886 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8887 * ) ac_file_in
=$ac_file.
in ;;
8890 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8891 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8892 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8893 X"$ac_file" : 'X\(//\)[^/]' \| \
8894 X"$ac_file" : 'X\(//\)$' \| \
8895 X"$ac_file" : 'X\(/\)' \| \
8896 . : '\(.\)' 2>/dev/null ||
8898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8900 /^X\(\/\/\)$/{ s//\1/; q; }
8901 /^X\(\/\).*/{ s//\1/; q; }
8903 { if $as_mkdir_p; then
8908 while test ! -d "$as_dir"; do
8909 as_dirs
="$as_dir $as_dirs"
8910 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8912 X"$as_dir" : 'X\(//\)[^/]' \| \
8913 X"$as_dir" : 'X\(//\)$' \| \
8914 X"$as_dir" : 'X\(/\)' \| \
8915 . : '\(.\)' 2>/dev/null ||
8917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8919 /^X\(\/\/\)$/{ s//\1/; q; }
8920 /^X\(\/\).*/{ s//\1/; q; }
8923 test ! -n "$as_dirs" || mkdir
$as_dirs
8924 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8925 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8926 { (exit 1); exit 1; }; }; }
8930 if test "$ac_dir" != .
; then
8931 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8932 # A "../" for each directory in $ac_dir_suffix.
8933 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8935 ac_dir_suffix
= ac_top_builddir
=
8939 .
) # No --srcdir option. We are building in place.
8941 if test -z "$ac_top_builddir"; then
8944 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8946 [\\/]* | ?
:[\\/]* ) # Absolute path.
8947 ac_srcdir
=$srcdir$ac_dir_suffix;
8948 ac_top_srcdir
=$srcdir ;;
8950 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8951 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8954 # Do not use `cd foo && pwd` to compute absolute paths, because
8955 # the directories may not exist.
8957 .
) ac_abs_builddir
="$ac_dir";;
8960 .
) ac_abs_builddir
=`pwd`;;
8961 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8962 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8965 case $ac_abs_builddir in
8966 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8968 case ${ac_top_builddir}.
in
8969 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8970 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8971 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8974 case $ac_abs_builddir in
8975 .
) ac_abs_srcdir
=$ac_srcdir;;
8978 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8979 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8980 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8983 case $ac_abs_builddir in
8984 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8986 case $ac_top_srcdir in
8987 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8988 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8989 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8995 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8996 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
8999 if test x
"$ac_file" != x-
; then
9000 { echo "$as_me:$LINENO: creating $ac_file" >&5
9001 echo "$as_me: creating $ac_file" >&6;}
9004 # Let's still pretend it is `configure' which instantiates (i.e., don't
9005 # use $as_me), people would be surprised to read:
9006 # /* config.h. Generated by config.status. */
9007 if test x
"$ac_file" = x-
; then
9010 configure_input
="$ac_file. "
9012 configure_input
=$configure_input"Generated from `echo $ac_file_in |
9013 sed 's,.*/,,'` by configure."
9015 # First look for the input files in the build tree, otherwise in the
9017 ac_file_inputs
=`IFS=:
9018 for f in $ac_file_in; do
9020 -) echo $tmp/stdin ;;
9022 # Absolute (can't be DOS-style, as IFS=:)
9023 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9024 echo "$as_me: error: cannot find input file: $f" >&2;}
9025 { (exit 1); exit 1; }; }
9028 if test -f "$f"; then
9031 elif test -f "$srcdir/$f"; then
9036 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9037 echo "$as_me: error: cannot find input file: $f" >&2;}
9038 { (exit 1); exit 1; }; }
9041 done` ||
{ (exit 1); exit 1; }
9043 cat >>$CONFIG_STATUS <<_ACEOF
9047 cat >>$CONFIG_STATUS <<\_ACEOF
9049 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9050 s
,@configure_input@
,$configure_input,;t t
9051 s
,@srcdir@
,$ac_srcdir,;t t
9052 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
9053 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9054 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
9055 s
,@builddir@
,$ac_builddir,;t t
9056 s
,@abs_builddir@
,$ac_abs_builddir,;t t
9057 s
,@top_builddir@
,$ac_top_builddir,;t t
9058 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
9059 s
,@INSTALL@
,$ac_INSTALL,;t t
9060 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9062 if test x"$ac_file" != x-; then
9063 mv $tmp/out $ac_file
9071 cat >>$CONFIG_STATUS <<\_ACEOF
9074 # CONFIG_HEADER section.
9077 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9078 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9080 # ac_d sets the value in "#define NAME VALUE" lines.
9081 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9082 ac_dB
='[ ].*$,\1#\2'
9085 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9086 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9087 ac_uB
='$,\1#\2define\3'
9091 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9092 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9094 - |
*:- |
*:-:* ) # input from stdin
9096 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9097 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9098 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9099 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9100 * ) ac_file_in
=$ac_file.
in ;;
9103 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
9104 echo "$as_me: creating $ac_file" >&6;}
9106 # First look for the input files in the build tree, otherwise in the
9108 ac_file_inputs
=`IFS=:
9109 for f in $ac_file_in; do
9111 -) echo $tmp/stdin ;;
9113 # Absolute (can't be DOS-style, as IFS=:)
9114 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9115 echo "$as_me: error: cannot find input file: $f" >&2;}
9116 { (exit 1); exit 1; }; }
9117 # Do quote $f, to prevent DOS paths from being IFS'd.
9120 if test -f "$f"; then
9123 elif test -f "$srcdir/$f"; then
9128 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9129 echo "$as_me: error: cannot find input file: $f" >&2;}
9130 { (exit 1); exit 1; }; }
9133 done` ||
{ (exit 1); exit 1; }
9134 # Remove the trailing spaces.
9135 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9139 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9140 # `conftest.undefs', that substitutes the proper values into
9141 # config.h.in to produce config.h. The first handles `#define'
9142 # templates, and the second `#undef' templates.
9143 # And first: Protect against being on the right side of a sed subst in
9144 # config.status. Protect against being in an unquoted here document
9146 rm -f conftest.defines conftest.undefs
9147 # Using a here document instead of a string reduces the quoting nightmare.
9148 # Putting comments in sed scripts is not portable.
9150 # `end' is used to avoid that the second main sed command (meant for
9151 # 0-ary CPP macros) applies to n-ary macro definitions.
9152 # See the Autoconf documentation for `clear'.
9153 cat >confdef2sed.
sed <<\_ACEOF
9158 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9160 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9163 # If some macros were called several times there might be several times
9164 # the same #defines, which is useless. Nevertheless, we may not want to
9165 # sort them, since we want the *last* AC-DEFINE to be honored.
9166 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9167 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9168 rm -f confdef2sed.sed
9170 # This sed command replaces #undef with comments. This is necessary, for
9171 # example, in the case of _POSIX_SOURCE, which is predefined and required
9172 # on some systems where configure will not decide to define it.
9173 cat >>conftest.undefs <<\_ACEOF
9174 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9177 # Break up conftest.defines because some shells have a limit on the size
9178 # of here documents, and old seds have small limits too (100 cmds).
9179 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9180 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9181 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9182 echo ' :' >>$CONFIG_STATUS
9184 while grep . conftest.defines >/dev/null
9186 # Write a limited-size here document to $tmp/defines.sed.
9187 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9188 # Speed up: don't consider the non `#define' lines.
9189 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9190 # Work around the forget-to-reset-the-flag bug.
9191 echo 't clr' >>$CONFIG_STATUS
9192 echo ': clr' >>$CONFIG_STATUS
9193 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9195 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9199 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9200 rm -f conftest.defines
9201 mv conftest.
tail conftest.defines
9203 rm -f conftest.defines
9204 echo ' fi # grep' >>$CONFIG_STATUS
9205 echo >>$CONFIG_STATUS
9207 # Break up conftest.undefs because some shells have a limit on the size
9208 # of here documents, and old seds have small limits too (100 cmds).
9209 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9211 while grep . conftest.undefs
>/dev
/null
9213 # Write a limited-size here document to $tmp/undefs.sed.
9214 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9215 # Speed up: don't consider the non
`#undef'
9216 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9217 # Work around the forget-to-reset-the-flag bug.
9218 echo 't clr' >>$CONFIG_STATUS
9219 echo ': clr' >>$CONFIG_STATUS
9220 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9222 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9226 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9227 rm -f conftest.undefs
9228 mv conftest.tail conftest.undefs
9230 rm -f conftest.undefs
9232 cat >>$CONFIG_STATUS <<\_ACEOF
9233 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9234 # use $as_me), people would be surprised to read:
9235 # /* config.h. Generated by config.status. */
9236 if test x
"$ac_file" = x-
; then
9237 echo "/* Generated by configure. */" >$tmp/config.h
9239 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9241 cat $tmp/in >>$tmp/config.h
9243 if test x
"$ac_file" != x-
; then
9244 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
9245 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9246 echo "$as_me: $ac_file is unchanged" >&6;}
9248 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9249 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9250 X"$ac_file" : 'X\(//\)[^/]' \| \
9251 X"$ac_file" : 'X\(//\)$' \| \
9252 X"$ac_file" : 'X\(/\)' \| \
9253 . : '\(.\)' 2>/dev/null ||
9255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9256 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9257 /^X\(\/\/\)$/{ s//\1/; q; }
9258 /^X\(\/\).*/{ s//\1/; q; }
9260 { if $as_mkdir_p; then
9265 while test ! -d "$as_dir"; do
9266 as_dirs
="$as_dir $as_dirs"
9267 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9268 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9269 X"$as_dir" : 'X\(//\)[^/]' \| \
9270 X"$as_dir" : 'X\(//\)$' \| \
9271 X"$as_dir" : 'X\(/\)' \| \
9272 . : '\(.\)' 2>/dev/null ||
9274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9275 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9276 /^X\(\/\/\)$/{ s//\1/; q; }
9277 /^X\(\/\).*/{ s//\1/; q; }
9280 test ! -n "$as_dirs" || mkdir
$as_dirs
9281 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9282 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9283 { (exit 1); exit 1; }; }; }
9286 mv $tmp/config.h
$ac_file
9294 cat >>$CONFIG_STATUS <<\_ACEOF
9297 # CONFIG_COMMANDS section.
9299 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9300 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9301 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9302 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
9303 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9304 X"$ac_dest" : 'X\(//\)[^/]' \| \
9305 X"$ac_dest" : 'X\(//\)$' \| \
9306 X"$ac_dest" : 'X\(/\)' \| \
9307 . : '\(.\)' 2>/dev/null ||
9309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9310 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9311 /^X\(\/\/\)$/{ s//\1/; q; }
9312 /^X\(\/\).*/{ s//\1/; q; }
9314 { if $as_mkdir_p; then
9319 while test ! -d "$as_dir"; do
9320 as_dirs
="$as_dir $as_dirs"
9321 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9323 X"$as_dir" : 'X\(//\)[^/]' \| \
9324 X"$as_dir" : 'X\(//\)$' \| \
9325 X"$as_dir" : 'X\(/\)' \| \
9326 . : '\(.\)' 2>/dev/null ||
9328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9330 /^X\(\/\/\)$/{ s//\1/; q; }
9331 /^X\(\/\).*/{ s//\1/; q; }
9334 test ! -n "$as_dirs" || mkdir
$as_dirs
9335 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9336 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9337 { (exit 1); exit 1; }; }; }
9341 if test "$ac_dir" != .
; then
9342 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9343 # A "../" for each directory in $ac_dir_suffix.
9344 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9346 ac_dir_suffix
= ac_top_builddir
=
9350 .
) # No --srcdir option. We are building in place.
9352 if test -z "$ac_top_builddir"; then
9355 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9357 [\\/]* | ?
:[\\/]* ) # Absolute path.
9358 ac_srcdir
=$srcdir$ac_dir_suffix;
9359 ac_top_srcdir
=$srcdir ;;
9361 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9362 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9365 # Do not use `cd foo && pwd` to compute absolute paths, because
9366 # the directories may not exist.
9368 .
) ac_abs_builddir
="$ac_dir";;
9371 .
) ac_abs_builddir
=`pwd`;;
9372 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
9373 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
9376 case $ac_abs_builddir in
9377 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9379 case ${ac_top_builddir}.
in
9380 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9381 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9382 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9385 case $ac_abs_builddir in
9386 .
) ac_abs_srcdir
=$ac_srcdir;;
9389 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9390 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9391 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9394 case $ac_abs_builddir in
9395 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9397 case $ac_top_srcdir in
9398 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9399 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9400 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9405 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9406 echo "$as_me: executing $ac_dest commands" >&6;}
9409 # Makefile uses this timestamp file to record whether config.h is up to date.
9416 cat >>$CONFIG_STATUS <<\_ACEOF
9418 { (exit 0); exit 0; }
9420 chmod +x
$CONFIG_STATUS
9421 ac_clean_files
=$ac_clean_files_save
9424 # configure is writing to config.log, and then calls config.status.
9425 # config.status does its own redirection, appending to config.log.
9426 # Unfortunately, on DOS this fails, as config.log is still kept open
9427 # by configure, so config.status won't be able to write to it; its
9428 # output is simply discarded. So we exec the FD to /dev/null,
9429 # effectively closing config.log, so it can be properly (re)opened and
9430 # appended to by config.status. When coming back to configure, we
9431 # need to make the FD available again.
9432 if test "$no_create" != yes; then
9434 ac_config_status_args
=
9435 test "$silent" = yes &&
9436 ac_config_status_args
="$ac_config_status_args --quiet"
9438 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9440 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9441 # would make configure fail if this is the last instruction.
9442 $ac_cs_success ||
{ (exit 1); exit 1; }