2 # From configure.in for Readline 4.3, version 2.45, from autoconf version AC_ACVERSION.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for readline 4.3.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
197 if expr a : '\(a\)' >/dev/null 2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.file conf$$ 2>/dev/null; then
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
224 test -d ./-p && rmdir ./-p
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
263 SHELL=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
271 PACKAGE_NAME='readline'
272 PACKAGE_TARNAME='readline'
273 PACKAGE_VERSION='4.3'
274 PACKAGE_STRING='readline 4.3'
277 ac_unique_file="readline.h"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
282 # include <sys/types.h>
285 # include <sys/stat.h>
296 # if !STDC_HEADERS && HAVE_MEMORY_H
302 # include <strings.h>
305 # include <inttypes.h>
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CROSS_COMPILING_FLAG CC_FOR_BUILD INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR RANLIB ac_ct_RANLIB MAKE_SHELL WCWIDTH_OBJ SHOBJ_CC SHOBJ_CFLAGS SHOBJ_LD SHOBJ_LDFLAGS SHOBJ_XLDFLAGS SHOBJ_LIBS SHOBJ_STATUS SHLIB_STATUS SHLIB_XLDFLAGS SHLIB_LIBSUFF SHLIB_LIBVERSION SHLIB_LIBS SHLIB_MAJOR SHLIB_MINOR STATIC_TARGET SHARED_TARGET STATIC_INSTALL_TARGET SHARED_INSTALL_TARGET BUILD_DIR LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS ARFLAGS LIBVERSION TERMCAP_LIB LIBOBJS LTLIBOBJS'
318 # Initialize some variables set by options.
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name=s,x,x,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
433 -help | --help | --hel | --he | -h)
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484 # Obsolete; use --without-fp.
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
563 -site=* | --site=* | --sit=*)
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 -version | --version | --versio | --versi | --vers | -V)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
784 \`configure' configures readline 4.3 to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of readline 4.3:";;
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-static build static libraries [default=YES]
855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
857 --with-curses use the curses library instead of the termcap
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 ac_dir_suffix= ac_top_builddir=
892 .) # No --srcdir option. We are building in place.
894 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 # Do not use `cd foo && pwd` to compute absolute paths, because
908 # the directories may not exist.
910 .) ac_abs_builddir="$ac_dir";;
913 .) ac_abs_builddir=`pwd`;;
914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
921 case ${ac_top_builddir}. in
922 .) ac_abs_top_builddir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
931 .) ac_abs_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
939 case $ac_top_srcdir in
940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu; then
950 $SHELL $ac_srcdir/configure.gnu --help=recursive
951 elif test -f $ac_srcdir/configure; then
953 $SHELL $ac_srcdir/configure --help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.in; then
959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
968 readline configure 4.3
969 generated by GNU Autoconf 2.59
971 Copyright (C) 2003 Free Software Foundation, Inc.
972 This configure script is free software; the Free Software Foundation
973 gives unlimited permission to copy, distribute and modify it.
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
982 It was created by readline $as_me 4.3, which was
983 generated by GNU Autoconf 2.59. Invocation command line was
994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1003 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1017 test -z "$as_dir" && as_dir=.
1018 echo "PATH: $as_dir"
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1042 ac_must_keep_next=false
1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true; then
1060 ac_must_keep_next=false # Got value, back to normal.
1063 *=* | --config-cache | -C | -disable-* | --disable-* \
1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066 | -with-* | --with-* | -without-* | --without-* | --x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1071 -* ) ac_must_keep_next=true ;;
1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log. We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close' the trap.
1089 trap 'exit_status=$?
1090 # Save into config.log some information that might help in debugging.
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1100 # The following way of writing the cache mishandles newlines in values,
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1123 for ac_var in $ac_subst_vars
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1130 if test -n "$ac_subst_files"; then
1137 for ac_var in $ac_subst_files
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1145 if test -s confdefs.h; then
1152 sed "/^$/d" confdefs.h | sort
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1159 rm -f core *.core &&
1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1163 for ac_signal in 1 2 13 15; do
1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1173 # Predefined preprocessor variables.
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE; then
1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209 for ac_site_file in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's/^/| /' "$ac_site_file" >&5
1218 if test -r "$cache_file"; then
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1225 [\\/]* | ?:[\\/]* ) . $cache_file;;
1226 *) . ./$cache_file;;
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1235 # Check that the precious variables saved in the cache have kept the same
1237 ac_cache_corrupted=false
1238 for ac_var in `(set) 2>&1 |
1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241 eval ac_new_set=\$ac_env_${ac_var}_set
1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1257 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1258 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1259 echo "$as_me: former value: $ac_old_val" >&2;}
1260 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1261 echo "$as_me: current value: $ac_new_val" >&2;}
1262 ac_cache_corrupted=:
1265 # Pass precious variables to config.status.
1266 if test "$ac_new_set" = set; then
1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1270 *) ac_arg=$ac_var=$ac_new_val ;;
1272 case " $ac_configure_args " in
1273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1274 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1278 if $ac_cache_corrupted; then
1279 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1280 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1281 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1282 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1283 { (exit 1); exit 1; }; }
1287 ac_cpp='$CPP $CPPFLAGS'
1288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322 ac_config_headers="$ac_config_headers config.h"
1328 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1329 if test -f $ac_dir/install-sh; then
1331 ac_install_sh="$ac_aux_dir/install-sh -c"
1333 elif test -f $ac_dir/install.sh; then
1335 ac_install_sh="$ac_aux_dir/install.sh -c"
1337 elif test -f $ac_dir/shtool; then
1339 ac_install_sh="$ac_aux_dir/shtool install -c"
1343 if test -z "$ac_aux_dir"; then
1344 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1345 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1346 { (exit 1); exit 1; }; }
1348 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1349 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1350 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1352 # Make sure we can run config.sub.
1353 $ac_config_sub sun4 >/dev/null 2>&1 ||
1354 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1355 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1356 { (exit 1); exit 1; }; }
1358 echo "$as_me:$LINENO: checking build system type" >&5
1359 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1360 if test "${ac_cv_build+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1363 ac_cv_build_alias=$build_alias
1364 test -z "$ac_cv_build_alias" &&
1365 ac_cv_build_alias=`$ac_config_guess`
1366 test -z "$ac_cv_build_alias" &&
1367 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1368 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1369 { (exit 1); exit 1; }; }
1370 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1371 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1372 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1373 { (exit 1); exit 1; }; }
1376 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1377 echo "${ECHO_T}$ac_cv_build" >&6
1379 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1384 echo "$as_me:$LINENO: checking host system type" >&5
1385 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1386 if test "${ac_cv_host+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1389 ac_cv_host_alias=$host_alias
1390 test -z "$ac_cv_host_alias" &&
1391 ac_cv_host_alias=$ac_cv_build_alias
1392 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1393 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1394 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1395 { (exit 1); exit 1; }; }
1398 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1399 echo "${ECHO_T}$ac_cv_host" >&6
1401 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1410 # Check whether --with-curses or --without-curses was given.
1411 if test "${with_curses+set}" = set; then
1412 withval="$with_curses"
1416 if test "$opt_curses" = "yes"; then
1423 # Check whether --enable-static or --disable-static was given.
1424 if test "${enable_static+set}" = set; then
1425 enableval="$enable_static"
1426 opt_static_libs=$enableval
1430 echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}"
1433 # We want these before the checks, so the checks can modify their values.
1434 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
1436 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1437 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1438 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1439 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 cat >conftest.make <<\_ACEOF
1444 @echo 'ac_maketemp="$(MAKE)"'
1446 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1447 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1448 if test -n "$ac_maketemp"; then
1449 eval ac_cv_prog_make_${ac_make}_set=yes
1451 eval ac_cv_prog_make_${ac_make}_set=no
1455 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1456 echo "$as_me:$LINENO: result: yes" >&5
1457 echo "${ECHO_T}yes" >&6
1460 echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1462 SET_MAKE="MAKE=${MAKE-make}"
1466 ac_cpp='$CPP $CPPFLAGS'
1467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470 if test -n "$ac_tool_prefix"; then
1471 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1472 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1473 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_CC+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 if test -n "$CC"; then
1479 ac_cv_prog_CC="$CC" # Let the user override the test.
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 test -z "$as_dir" && as_dir=.
1486 for ac_exec_ext in '' $ac_executable_extensions; do
1487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 if test -n "$CC"; then
1499 echo "$as_me:$LINENO: result: $CC" >&5
1500 echo "${ECHO_T}$CC" >&6
1502 echo "$as_me:$LINENO: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1507 if test -z "$ac_cv_prog_CC"; then
1509 # Extract the first word of "gcc", so it can be a program name with args.
1510 set dummy gcc; ac_word=$2
1511 echo "$as_me:$LINENO: checking for $ac_word" >&5
1512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1514 echo $ECHO_N "(cached) $ECHO_C" >&6
1516 if test -n "$ac_ct_CC"; then
1517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 test -z "$as_dir" && as_dir=.
1524 for ac_exec_ext in '' $ac_executable_extensions; do
1525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1526 ac_cv_prog_ac_ct_CC="gcc"
1527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1536 if test -n "$ac_ct_CC"; then
1537 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1538 echo "${ECHO_T}$ac_ct_CC" >&6
1540 echo "$as_me:$LINENO: result: no" >&5
1541 echo "${ECHO_T}no" >&6
1549 if test -z "$CC"; then
1550 if test -n "$ac_tool_prefix"; then
1551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1552 set dummy ${ac_tool_prefix}cc; ac_word=$2
1553 echo "$as_me:$LINENO: checking for $ac_word" >&5
1554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555 if test "${ac_cv_prog_CC+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 if test -n "$CC"; then
1559 ac_cv_prog_CC="$CC" # Let the user override the test.
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 test -z "$as_dir" && as_dir=.
1566 for ac_exec_ext in '' $ac_executable_extensions; do
1567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568 ac_cv_prog_CC="${ac_tool_prefix}cc"
1569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 if test -n "$CC"; then
1579 echo "$as_me:$LINENO: result: $CC" >&5
1580 echo "${ECHO_T}$CC" >&6
1582 echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1587 if test -z "$ac_cv_prog_CC"; then
1589 # Extract the first word of "cc", so it can be a program name with args.
1590 set dummy cc; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1596 if test -n "$ac_ct_CC"; then
1597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 test -z "$as_dir" && as_dir=.
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606 ac_cv_prog_ac_ct_CC="cc"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1616 if test -n "$ac_ct_CC"; then
1617 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1618 echo "${ECHO_T}$ac_ct_CC" >&6
1620 echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1630 if test -z "$CC"; then
1631 # Extract the first word of "cc", so it can be a program name with args.
1632 set dummy cc; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_CC+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 if test -n "$CC"; then
1639 ac_cv_prog_CC="$CC" # Let the user override the test.
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 test -z "$as_dir" && as_dir=.
1647 for ac_exec_ext in '' $ac_executable_extensions; do
1648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1650 ac_prog_rejected=yes
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 if test $ac_prog_rejected = yes; then
1661 # We found a bogon in the path, so make sure we never use it.
1662 set dummy $ac_cv_prog_CC
1664 if test $# != 0; then
1665 # We chose a different compiler from the bogus one.
1666 # However, it has the same basename, so the bogon will be chosen
1667 # first if we set CC to just the basename; use the full file name.
1669 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1675 if test -n "$CC"; then
1676 echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1684 if test -z "$CC"; then
1685 if test -n "$ac_tool_prefix"; then
1688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 if test -n "$CC"; then
1696 ac_cv_prog_CC="$CC" # Let the user override the test.
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 if test -n "$CC"; then
1716 echo "$as_me:$LINENO: result: $CC" >&5
1717 echo "${ECHO_T}$CC" >&6
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1723 test -n "$CC" && break
1726 if test -z "$CC"; then
1730 # Extract the first word of "$ac_prog", so it can be a program name with args.
1731 set dummy $ac_prog; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 if test -n "$ac_ct_CC"; then
1738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_ac_ct_CC="$ac_prog"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1757 if test -n "$ac_ct_CC"; then
1758 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1759 echo "${ECHO_T}$ac_ct_CC" >&6
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1765 test -n "$ac_ct_CC" && break
1774 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1775 See \`config.log' for more details." >&5
1776 echo "$as_me: error: no acceptable C compiler found in \$PATH
1777 See \`config.log' for more details." >&2;}
1778 { (exit 1); exit 1; }; }
1780 # Provide some information about the compiler.
1781 echo "$as_me:$LINENO:" \
1782 "checking for C compiler version" >&5
1783 ac_compiler=`set X $ac_compile; echo $2`
1784 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1785 (eval $ac_compiler --version </dev/null >&5) 2>&5
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }
1789 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1790 (eval $ac_compiler -v </dev/null >&5) 2>&5
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); }
1794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1795 (eval $ac_compiler -V </dev/null >&5) 2>&5
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }
1800 cat >conftest.$ac_ext <<_ACEOF
1803 cat confdefs.h >>conftest.$ac_ext
1804 cat >>conftest.$ac_ext <<_ACEOF
1805 /* end confdefs.h. */
1815 ac_clean_files_save=$ac_clean_files
1816 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1817 # Try to create an executable without -o first, disregard a.out.
1818 # It will help us diagnose broken compilers, and finding out an intuition
1820 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1821 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1822 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1823 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1824 (eval $ac_link_default) 2>&5
1826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827 (exit $ac_status); }; then
1828 # Find the output, starting from the most likely. This scheme is
1829 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1832 # Be careful to initialize this variable, since it used to be cached.
1833 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1835 # b.out is created by i960 compilers.
1836 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1838 test -f "$ac_file" || continue
1840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1843 # This is the source file.
1846 # We found the default executable, but exeext='' is most
1850 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1851 # FIXME: I believe we export ac_cv_exeext for Libtool,
1852 # but it would be cool to find out if it's true. Does anybody
1853 # maintain Libtool? --akim.
1861 echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1864 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1865 See \`config.log' for more details." >&5
1866 echo "$as_me: error: C compiler cannot create executables
1867 See \`config.log' for more details." >&2;}
1868 { (exit 77); exit 77; }; }
1871 ac_exeext=$ac_cv_exeext
1872 echo "$as_me:$LINENO: result: $ac_file" >&5
1873 echo "${ECHO_T}$ac_file" >&6
1875 # Check the compiler produces executables we can run. If not, either
1876 # the compiler is broken, or we cross compile.
1877 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1878 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1879 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1880 # If not cross compiling, check that we can run a simple program.
1881 if test "$cross_compiling" != yes; then
1882 if { ac_try='./$ac_file'
1883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887 (exit $ac_status); }; }; then
1890 if test "$cross_compiling" = maybe; then
1893 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1894 If you meant to cross compile, use \`--host'.
1895 See \`config.log' for more details." >&5
1896 echo "$as_me: error: cannot run C compiled programs.
1897 If you meant to cross compile, use \`--host'.
1898 See \`config.log' for more details." >&2;}
1899 { (exit 1); exit 1; }; }
1903 echo "$as_me:$LINENO: result: yes" >&5
1904 echo "${ECHO_T}yes" >&6
1906 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1907 ac_clean_files=$ac_clean_files_save
1908 # Check the compiler produces executables we can run. If not, either
1909 # the compiler is broken, or we cross compile.
1910 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1911 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1912 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1913 echo "${ECHO_T}$cross_compiling" >&6
1915 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1916 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1918 (eval $ac_link) 2>&5
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); }; then
1922 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1923 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1924 # work properly (i.e., refer to `conftest.exe'), while it won't with
1926 for ac_file in conftest.exe conftest conftest.*; do
1927 test -f "$ac_file" || continue
1929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1937 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1938 See \`config.log' for more details." >&5
1939 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1940 See \`config.log' for more details." >&2;}
1941 { (exit 1); exit 1; }; }
1944 rm -f conftest$ac_cv_exeext
1945 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1946 echo "${ECHO_T}$ac_cv_exeext" >&6
1948 rm -f conftest.$ac_ext
1949 EXEEXT=$ac_cv_exeext
1951 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1952 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1953 if test "${ac_cv_objext+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 cat >conftest.$ac_ext <<_ACEOF
1959 cat confdefs.h >>conftest.$ac_ext
1960 cat >>conftest.$ac_ext <<_ACEOF
1961 /* end confdefs.h. */
1971 rm -f conftest.o conftest.obj
1972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1973 (eval $ac_compile) 2>&5
1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976 (exit $ac_status); }; then
1977 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1985 echo "$as_me: failed program was:" >&5
1986 sed 's/^/| /' conftest.$ac_ext >&5
1988 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1989 See \`config.log' for more details." >&5
1990 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1991 See \`config.log' for more details." >&2;}
1992 { (exit 1); exit 1; }; }
1995 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1997 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1998 echo "${ECHO_T}$ac_cv_objext" >&6
1999 OBJEXT=$ac_cv_objext
2001 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2002 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2003 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 cat >conftest.$ac_ext <<_ACEOF
2009 cat confdefs.h >>conftest.$ac_ext
2010 cat >>conftest.$ac_ext <<_ACEOF
2011 /* end confdefs.h. */
2024 rm -f conftest.$ac_objext
2025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2026 (eval $ac_compile) 2>conftest.er1
2028 grep -v '^ *+' conftest.er1 >conftest.err
2030 cat conftest.err >&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); } &&
2033 { ac_try='test -z "$ac_c_werror_flag"
2034 || test ! -s conftest.err'
2035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); }; } &&
2040 { ac_try='test -s conftest.$ac_objext'
2041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; }; then
2048 echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2057 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2058 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2059 GCC=`test $ac_compiler_gnu = yes && echo yes`
2060 ac_test_CFLAGS=${CFLAGS+set}
2061 ac_save_CFLAGS=$CFLAGS
2063 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2064 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2065 if test "${ac_cv_prog_cc_g+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 cat >conftest.$ac_ext <<_ACEOF
2071 cat confdefs.h >>conftest.$ac_ext
2072 cat >>conftest.$ac_ext <<_ACEOF
2073 /* end confdefs.h. */
2083 rm -f conftest.$ac_objext
2084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2085 (eval $ac_compile) 2>conftest.er1
2087 grep -v '^ *+' conftest.er1 >conftest.err
2089 cat conftest.err >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); } &&
2092 { ac_try='test -z "$ac_c_werror_flag"
2093 || test ! -s conftest.err'
2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }; } &&
2099 { ac_try='test -s conftest.$ac_objext'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; }; then
2107 echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2114 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2115 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2116 if test "$ac_test_CFLAGS" = set; then
2117 CFLAGS=$ac_save_CFLAGS
2118 elif test $ac_cv_prog_cc_g = yes; then
2119 if test "$GCC" = yes; then
2125 if test "$GCC" = yes; then
2131 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2132 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2133 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 ac_cv_prog_cc_stdc=no
2138 cat >conftest.$ac_ext <<_ACEOF
2141 cat confdefs.h >>conftest.$ac_ext
2142 cat >>conftest.$ac_ext <<_ACEOF
2143 /* end confdefs.h. */
2146 #include <sys/types.h>
2147 #include <sys/stat.h>
2148 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2149 struct buf { int x; };
2150 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2151 static char *e (p, i)
2157 static char *f (char * (*g) (char **, int), char **p, ...)
2162 s = g (p, va_arg (v,int));
2167 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2168 function prototypes and stuff, but not '\xHH' hex character constants.
2169 These don't provoke an error unfortunately, instead are silently treated
2170 as 'x'. The following induces an error, until -std1 is added to get
2171 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2172 array size at least. It's necessary to write '\x00'==0 to get something
2173 that's true only with -std1. */
2174 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2176 int test (int i, double x);
2177 struct s1 {int (*f) (int a);};
2178 struct s2 {int (*f) (double a);};
2179 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2185 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2190 # Don't try gcc -ansi; that turns off useful extensions and
2191 # breaks some systems' header files.
2192 # AIX -qlanglvl=ansi
2193 # Ultrix and OSF/1 -std1
2194 # HP-UX 10.20 and later -Ae
2195 # HP-UX older versions -Aa -D_HPUX_SOURCE
2196 # SVR4 -Xc -D__EXTENSIONS__
2197 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2199 CC="$ac_save_CC $ac_arg"
2200 rm -f conftest.$ac_objext
2201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202 (eval $ac_compile) 2>conftest.er1
2204 grep -v '^ *+' conftest.er1 >conftest.err
2206 cat conftest.err >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); } &&
2209 { ac_try='test -z "$ac_c_werror_flag"
2210 || test ! -s conftest.err'
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; } &&
2216 { ac_try='test -s conftest.$ac_objext'
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; }; then
2222 ac_cv_prog_cc_stdc=$ac_arg
2225 echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2229 rm -f conftest.err conftest.$ac_objext
2231 rm -f conftest.$ac_ext conftest.$ac_objext
2236 case "x$ac_cv_prog_cc_stdc" in
2238 echo "$as_me:$LINENO: result: none needed" >&5
2239 echo "${ECHO_T}none needed" >&6 ;;
2241 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2242 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2243 CC="$CC $ac_cv_prog_cc_stdc" ;;
2246 # Some people use a C++ compiler to compile C. Since we use `exit',
2247 # in C++ we need to declare it. In case someone uses the same compiler
2248 # for both compiling C and C++ we need to have the C++ compiler decide
2249 # the declaration of exit, since it's the most demanding environment.
2250 cat >conftest.$ac_ext <<_ACEOF
2255 rm -f conftest.$ac_objext
2256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2257 (eval $ac_compile) 2>conftest.er1
2259 grep -v '^ *+' conftest.er1 >conftest.err
2261 cat conftest.err >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } &&
2264 { ac_try='test -z "$ac_c_werror_flag"
2265 || test ! -s conftest.err'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; } &&
2271 { ac_try='test -s conftest.$ac_objext'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2277 for ac_declaration in \
2279 'extern "C" void std::exit (int) throw (); using std::exit;' \
2280 'extern "C" void std::exit (int); using std::exit;' \
2281 'extern "C" void exit (int) throw ();' \
2282 'extern "C" void exit (int);' \
2285 cat >conftest.$ac_ext <<_ACEOF
2288 cat confdefs.h >>conftest.$ac_ext
2289 cat >>conftest.$ac_ext <<_ACEOF
2290 /* end confdefs.h. */
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>conftest.er1
2305 grep -v '^ *+' conftest.er1 >conftest.err
2307 cat conftest.err >&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); } &&
2310 { ac_try='test -z "$ac_c_werror_flag"
2311 || test ! -s conftest.err'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; } &&
2317 { ac_try='test -s conftest.$ac_objext'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2331 cat >conftest.$ac_ext <<_ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h. */
2346 rm -f conftest.$ac_objext
2347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348 (eval $ac_compile) 2>conftest.er1
2350 grep -v '^ *+' conftest.er1 >conftest.err
2352 cat conftest.err >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } &&
2355 { ac_try='test -z "$ac_c_werror_flag"
2356 || test ! -s conftest.err'
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; } &&
2362 { ac_try='test -s conftest.$ac_objext'
2363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; }; then
2370 echo "$as_me: failed program was:" >&5
2371 sed 's/^/| /' conftest.$ac_ext >&5
2374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2377 if test -n "$ac_declaration"; then
2378 echo '#ifdef __cplusplus' >>confdefs.h
2379 echo $ac_declaration >>confdefs.h
2380 echo '#endif' >>confdefs.h
2384 echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2390 ac_cpp='$CPP $CPPFLAGS'
2391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2397 ac_cpp='$CPP $CPPFLAGS'
2398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2401 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2402 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2403 # On Suns, sometimes $CPP names a directory.
2404 if test -n "$CPP" && test -d "$CPP"; then
2407 if test -z "$CPP"; then
2408 if test "${ac_cv_prog_CPP+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2411 # Double quotes because CPP needs to be expanded
2412 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2415 for ac_c_preproc_warn_flag in '' yes
2417 # Use a header file that comes with gcc, so configuring glibc
2418 # with a fresh cross-compiler works.
2419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2420 # <limits.h> exists even on freestanding compilers.
2421 # On the NeXT, cc -E runs the code through the compiler's parser,
2422 # not just through cpp. "Syntax error" is here to catch this case.
2423 cat >conftest.$ac_ext <<_ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2430 # include <limits.h>
2432 # include <assert.h>
2436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2439 grep -v '^ *+' conftest.er1 >conftest.err
2441 cat conftest.err >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); } >/dev/null; then
2444 if test -s conftest.err; then
2445 ac_cpp_err=$ac_c_preproc_warn_flag
2446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2453 if test -z "$ac_cpp_err"; then
2456 echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2459 # Broken: fails on valid input.
2462 rm -f conftest.err conftest.$ac_ext
2464 # OK, works on sane cases. Now check whether non-existent headers
2465 # can be detected and how.
2466 cat >conftest.$ac_ext <<_ACEOF
2469 cat confdefs.h >>conftest.$ac_ext
2470 cat >>conftest.$ac_ext <<_ACEOF
2471 /* end confdefs.h. */
2472 #include <ac_nonexistent.h>
2474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2477 grep -v '^ *+' conftest.er1 >conftest.err
2479 cat conftest.err >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } >/dev/null; then
2482 if test -s conftest.err; then
2483 ac_cpp_err=$ac_c_preproc_warn_flag
2484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2491 if test -z "$ac_cpp_err"; then
2492 # Broken: success on invalid input.
2495 echo "$as_me: failed program was:" >&5
2496 sed 's/^/| /' conftest.$ac_ext >&5
2498 # Passes both tests.
2502 rm -f conftest.err conftest.$ac_ext
2505 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2506 rm -f conftest.err conftest.$ac_ext
2507 if $ac_preproc_ok; then
2519 echo "$as_me:$LINENO: result: $CPP" >&5
2520 echo "${ECHO_T}$CPP" >&6
2522 for ac_c_preproc_warn_flag in '' yes
2524 # Use a header file that comes with gcc, so configuring glibc
2525 # with a fresh cross-compiler works.
2526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2527 # <limits.h> exists even on freestanding compilers.
2528 # On the NeXT, cc -E runs the code through the compiler's parser,
2529 # not just through cpp. "Syntax error" is here to catch this case.
2530 cat >conftest.$ac_ext <<_ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2537 # include <limits.h>
2539 # include <assert.h>
2543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2546 grep -v '^ *+' conftest.er1 >conftest.err
2548 cat conftest.err >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } >/dev/null; then
2551 if test -s conftest.err; then
2552 ac_cpp_err=$ac_c_preproc_warn_flag
2553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2560 if test -z "$ac_cpp_err"; then
2563 echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2566 # Broken: fails on valid input.
2569 rm -f conftest.err conftest.$ac_ext
2571 # OK, works on sane cases. Now check whether non-existent headers
2572 # can be detected and how.
2573 cat >conftest.$ac_ext <<_ACEOF
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h. */
2579 #include <ac_nonexistent.h>
2581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2584 grep -v '^ *+' conftest.er1 >conftest.err
2586 cat conftest.err >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); } >/dev/null; then
2589 if test -s conftest.err; then
2590 ac_cpp_err=$ac_c_preproc_warn_flag
2591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2598 if test -z "$ac_cpp_err"; then
2599 # Broken: success on invalid input.
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2605 # Passes both tests.
2609 rm -f conftest.err conftest.$ac_ext
2612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2613 rm -f conftest.err conftest.$ac_ext
2614 if $ac_preproc_ok; then
2617 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2618 See \`config.log' for more details." >&5
2619 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2620 See \`config.log' for more details." >&2;}
2621 { (exit 1); exit 1; }; }
2625 ac_cpp='$CPP $CPPFLAGS'
2626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2631 echo "$as_me:$LINENO: checking for egrep" >&5
2632 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2633 if test "${ac_cv_prog_egrep+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2637 then ac_cv_prog_egrep='grep -E'
2638 else ac_cv_prog_egrep='egrep'
2641 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2642 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2643 EGREP=$ac_cv_prog_egrep
2646 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2647 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2648 if test "${ac_cv_header_stdc+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 cat >conftest.$ac_ext <<_ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h. */
2670 rm -f conftest.$ac_objext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672 (eval $ac_compile) 2>conftest.er1
2674 grep -v '^ *+' conftest.er1 >conftest.err
2676 cat conftest.err >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
2679 { ac_try='test -z "$ac_c_werror_flag"
2680 || test ! -s conftest.err'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; } &&
2686 { ac_try='test -s conftest.$ac_objext'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2692 ac_cv_header_stdc=yes
2694 echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2697 ac_cv_header_stdc=no
2699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2701 if test $ac_cv_header_stdc = yes; then
2702 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2703 cat >conftest.$ac_ext <<_ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h. */
2712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2713 $EGREP "memchr" >/dev/null 2>&1; then
2716 ac_cv_header_stdc=no
2722 if test $ac_cv_header_stdc = yes; then
2723 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2724 cat >conftest.$ac_ext <<_ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2734 $EGREP "free" >/dev/null 2>&1; then
2737 ac_cv_header_stdc=no
2743 if test $ac_cv_header_stdc = yes; then
2744 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2745 if test "$cross_compiling" = yes; then
2748 cat >conftest.$ac_ext <<_ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h. */
2755 #if ((' ' & 0x0FF) == 0x020)
2756 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2757 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2759 # define ISLOWER(c) \
2760 (('a' <= (c) && (c) <= 'i') \
2761 || ('j' <= (c) && (c) <= 'r') \
2762 || ('s' <= (c) && (c) <= 'z'))
2763 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2766 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2771 for (i = 0; i < 256; i++)
2772 if (XOR (islower (i), ISLOWER (i))
2773 || toupper (i) != TOUPPER (i))
2778 rm -f conftest$ac_exeext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2780 (eval $ac_link) 2>&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; }; then
2791 echo "$as_me: program exited with status $ac_status" >&5
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2796 ac_cv_header_stdc=no
2798 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2802 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2803 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2804 if test $ac_cv_header_stdc = yes; then
2806 cat >>confdefs.h <<\_ACEOF
2807 #define STDC_HEADERS 1
2812 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2822 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2823 inttypes.h stdint.h unistd.h
2825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2826 echo "$as_me:$LINENO: checking for $ac_header" >&5
2827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 cat >conftest.$ac_ext <<_ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2837 $ac_includes_default
2839 #include <$ac_header>
2841 rm -f conftest.$ac_objext
2842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843 (eval $ac_compile) 2>conftest.er1
2845 grep -v '^ *+' conftest.er1 >conftest.err
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } &&
2850 { ac_try='test -z "$ac_c_werror_flag"
2851 || test ! -s conftest.err'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; } &&
2857 { ac_try='test -s conftest.$ac_objext'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2863 eval "$as_ac_Header=yes"
2865 echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2868 eval "$as_ac_Header=no"
2870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2875 cat >>confdefs.h <<_ACEOF
2876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2884 if test "${ac_cv_header_minix_config_h+set}" = set; then
2885 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2886 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2887 if test "${ac_cv_header_minix_config_h+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2891 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2893 # Is the header compilable?
2894 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2895 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2896 cat >conftest.$ac_ext <<_ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2902 $ac_includes_default
2903 #include <minix/config.h>
2905 rm -f conftest.$ac_objext
2906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907 (eval $ac_compile) 2>conftest.er1
2909 grep -v '^ *+' conftest.er1 >conftest.err
2911 cat conftest.err >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } &&
2914 { ac_try='test -z "$ac_c_werror_flag"
2915 || test ! -s conftest.err'
2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; } &&
2921 { ac_try='test -s conftest.$ac_objext'
2922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; }; then
2927 ac_header_compiler=yes
2929 echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2932 ac_header_compiler=no
2934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2936 echo "${ECHO_T}$ac_header_compiler" >&6
2938 # Is the header present?
2939 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2940 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2941 cat >conftest.$ac_ext <<_ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2947 #include <minix/config.h>
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2952 grep -v '^ *+' conftest.er1 >conftest.err
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } >/dev/null; then
2957 if test -s conftest.err; then
2958 ac_cpp_err=$ac_c_preproc_warn_flag
2959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2966 if test -z "$ac_cpp_err"; then
2967 ac_header_preproc=yes
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2972 ac_header_preproc=no
2974 rm -f conftest.err conftest.$ac_ext
2975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2976 echo "${ECHO_T}$ac_header_preproc" >&6
2978 # So? What about this header?
2979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2981 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2982 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2983 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
2984 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
2985 ac_header_preproc=yes
2988 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
2989 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
2990 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2991 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2992 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
2993 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
2994 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
2995 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
2996 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2997 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
2998 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
2999 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3002 ## ----------------------------------- ##
3004 ## ----------------------------------- ##
3007 sed "s/^/$as_me: WARNING: /" >&2
3010 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3011 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3012 if test "${ac_cv_header_minix_config_h+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 ac_cv_header_minix_config_h=$ac_header_preproc
3017 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3018 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3021 if test $ac_cv_header_minix_config_h = yes; then
3028 if test "$MINIX" = yes; then
3030 cat >>confdefs.h <<\_ACEOF
3031 #define _POSIX_SOURCE 1
3035 cat >>confdefs.h <<\_ACEOF
3036 #define _POSIX_1_SOURCE 2
3040 cat >>confdefs.h <<\_ACEOF
3048 if test "x$cross_compiling" = "xyes"; then
3051 cross_cache=${srcdir}/cross-build/cygwin.cache
3052 LOCAL_CFLAGS="$LOCAL_CFLAGS -I${srcdir}/../libtermcap"
3055 cross_cache=${srcdir}/cross-build/mingw.cache
3057 *) echo "configure: cross-compiling for a non-cygwin target is not supported" >&2
3061 if test "x$cross_cache" != "x"; then
3062 if test -r "${cross_cache}"; then
3063 echo "loading cross-build cache file ${cross_cache}"
3070 if test "x$cross_compiling" = "xyes"; then
3071 CROSS_COMPILING_FLAG=-DCROSS_COMPILING
3073 CROSS_COMPILING_FLAG=
3077 if test -z "$CC_FOR_BUILD"; then
3078 if test "x$cross_compiling" = "xno"; then
3079 CC_FOR_BUILD='$(CC)'
3087 # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
3088 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
3090 if test $ac_cv_c_compiler_gnu = yes; then
3091 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3092 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3093 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3096 ac_pattern="Autoconf.*'x'"
3097 cat >conftest.$ac_ext <<_ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h. */
3106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3108 ac_cv_prog_gcc_traditional=yes
3110 ac_cv_prog_gcc_traditional=no
3115 if test $ac_cv_prog_gcc_traditional = no; then
3116 cat >conftest.$ac_ext <<_ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3126 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3127 ac_cv_prog_gcc_traditional=yes
3133 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3134 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3135 if test $ac_cv_prog_gcc_traditional = yes; then
3136 CC="$CC -traditional"
3140 # Find a good install program. We prefer a C program (faster),
3141 # so one script is as good as another. But avoid the broken or
3142 # incompatible versions:
3143 # SysV /etc/install, /usr/sbin/install
3144 # SunOS /usr/etc/install
3145 # IRIX /sbin/install
3147 # AmigaOS /C/install, which installs bootblocks on floppy discs
3148 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3149 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3150 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3151 # OS/2's system install, which has a completely different semantic
3152 # ./install, which can be erroneously created by make from ./install.sh.
3153 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3154 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3155 if test -z "$INSTALL"; then
3156 if test "${ac_cv_path_install+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 test -z "$as_dir" && as_dir=.
3164 # Account for people who put trailing slashes in PATH elements.
3166 ./ | .// | /cC/* | \
3167 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3168 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3171 # OSF1 and SCO ODT 3.0 have their own names for install.
3172 # Don't use installbsd from OSF since it installs stuff as root
3174 for ac_prog in ginstall scoinst install; do
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3177 if test $ac_prog = install &&
3178 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3179 # AIX install. It has an incompatible calling convention.
3181 elif test $ac_prog = install &&
3182 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3183 # program-specific install script used by HP pwplus--don't use.
3186 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3198 if test "${ac_cv_path_install+set}" = set; then
3199 INSTALL=$ac_cv_path_install
3201 # As a last resort, use the slow shell script. We don't cache a
3202 # path for INSTALL within a source directory, because that will
3203 # break other packages using the cache if that directory is
3204 # removed, or if the path is relative.
3205 INSTALL=$ac_install_sh
3208 echo "$as_me:$LINENO: result: $INSTALL" >&5
3209 echo "${ECHO_T}$INSTALL" >&6
3211 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3212 # It thinks the first close brace ends the variable substitution.
3213 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3215 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3217 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3219 # Extract the first word of "ar", so it can be a program name with args.
3220 set dummy ar; ac_word=$2
3221 echo "$as_me:$LINENO: checking for $ac_word" >&5
3222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3223 if test "${ac_cv_prog_AR+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 if test -n "$AR"; then
3227 ac_cv_prog_AR="$AR" # Let the user override the test.
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3243 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3247 if test -n "$AR"; then
3248 echo "$as_me:$LINENO: result: $AR" >&5
3249 echo "${ECHO_T}$AR" >&6
3251 echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6
3255 test -n "$ARFLAGS" || ARFLAGS="cr"
3256 if test -n "$ac_tool_prefix"; then
3257 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3258 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3259 echo "$as_me:$LINENO: checking for $ac_word" >&5
3260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3261 if test "${ac_cv_prog_RANLIB+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 if test -n "$RANLIB"; then
3265 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 RANLIB=$ac_cv_prog_RANLIB
3284 if test -n "$RANLIB"; then
3285 echo "$as_me:$LINENO: result: $RANLIB" >&5
3286 echo "${ECHO_T}$RANLIB" >&6
3288 echo "$as_me:$LINENO: result: no" >&5
3289 echo "${ECHO_T}no" >&6
3293 if test -z "$ac_cv_prog_RANLIB"; then
3294 ac_ct_RANLIB=$RANLIB
3295 # Extract the first word of "ranlib", so it can be a program name with args.
3296 set dummy ranlib; ac_word=$2
3297 echo "$as_me:$LINENO: checking for $ac_word" >&5
3298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3299 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 if test -n "$ac_ct_RANLIB"; then
3303 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 test -z "$as_dir" && as_dir=.
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3312 ac_cv_prog_ac_ct_RANLIB="ranlib"
3313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3322 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3323 if test -n "$ac_ct_RANLIB"; then
3324 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3325 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3327 echo "$as_me:$LINENO: result: no" >&5
3328 echo "${ECHO_T}no" >&6
3331 RANLIB=$ac_ct_RANLIB
3333 RANLIB="$ac_cv_prog_RANLIB"
3340 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3341 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3342 if test "${ac_cv_c_const+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 cat >conftest.$ac_ext <<_ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h. */
3355 /* FIXME: Include the comments suggested by Paul. */
3357 /* Ultrix mips cc rejects this. */
3358 typedef int charset[2];
3360 /* SunOS 4.1.1 cc rejects this. */
3361 char const *const *ccp;
3363 /* NEC SVR4.0.2 mips cc rejects this. */
3364 struct point {int x, y;};
3365 static struct point const zero = {0,0};
3366 /* AIX XL C 1.02.0.0 rejects this.
3367 It does not let you subtract one const X* pointer from another in
3368 an arm of an if-expression whose if-part is not a constant
3370 const char *g = "string";
3371 ccp = &g + (g ? g-g : 0);
3372 /* HPUX 7.0 cc rejects these. */
3375 ccp = (char const *const *) p;
3376 { /* SCO 3.2v4 cc rejects this. */
3378 char const *s = 0 ? (char *) 0 : (char const *) 0;
3382 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3384 const int *foo = &x[0];
3387 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3388 typedef const int *iptr;
3392 { /* AIX XL C 1.02.0.0 rejects this saying
3393 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3394 struct s { int j; const int *ap[3]; };
3395 struct s *b; b->j = 5;
3397 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3406 rm -f conftest.$ac_objext
3407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3408 (eval $ac_compile) 2>conftest.er1
3410 grep -v '^ *+' conftest.er1 >conftest.err
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } &&
3415 { ac_try='test -z "$ac_c_werror_flag"
3416 || test ! -s conftest.err'
3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; } &&
3422 { ac_try='test -s conftest.$ac_objext'
3423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; }; then
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3437 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3438 echo "${ECHO_T}$ac_cv_c_const" >&6
3439 if test $ac_cv_c_const = no; then
3441 cat >>confdefs.h <<\_ACEOF
3447 echo "$as_me:$LINENO: checking for function prototypes" >&5
3448 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3449 if test "$ac_cv_prog_cc_stdc" != no; then
3450 echo "$as_me:$LINENO: result: yes" >&5
3451 echo "${ECHO_T}yes" >&6
3453 cat >>confdefs.h <<\_ACEOF
3454 #define PROTOTYPES 1
3458 cat >>confdefs.h <<\_ACEOF
3459 #define __PROTOTYPES 1
3463 echo "$as_me:$LINENO: result: no" >&5
3464 echo "${ECHO_T}no" >&6
3468 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
3469 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
3470 if test "${ac_cv_c_char_unsigned+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 cat >conftest.$ac_ext <<_ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3479 $ac_includes_default
3483 static int test_array [1 - 2 * !(((char) -1) < 0)];
3490 rm -f conftest.$ac_objext
3491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492 (eval $ac_compile) 2>conftest.er1
3494 grep -v '^ *+' conftest.er1 >conftest.err
3496 cat conftest.err >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } &&
3499 { ac_try='test -z "$ac_c_werror_flag"
3500 || test ! -s conftest.err'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; } &&
3506 { ac_try='test -s conftest.$ac_objext'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; }; then
3512 ac_cv_c_char_unsigned=no
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 ac_cv_c_char_unsigned=yes
3519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3521 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
3522 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
3523 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3524 cat >>confdefs.h <<\_ACEOF
3525 #define __CHAR_UNSIGNED__ 1
3531 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3532 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3533 if test "${ac_cv_type_signal+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 cat >conftest.$ac_ext <<_ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3542 #include <sys/types.h>
3548 extern "C" void (*signal (int, void (*)(int)))(int);
3550 void (*signal ()) ();
3561 rm -f conftest.$ac_objext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563 (eval $ac_compile) 2>conftest.er1
3565 grep -v '^ *+' conftest.er1 >conftest.err
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try='test -z "$ac_c_werror_flag"
3571 || test ! -s conftest.err'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; } &&
3577 { ac_try='test -s conftest.$ac_objext'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3583 ac_cv_type_signal=void
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3588 ac_cv_type_signal=int
3590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3592 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3593 echo "${ECHO_T}$ac_cv_type_signal" >&6
3595 cat >>confdefs.h <<_ACEOF
3596 #define RETSIGTYPE $ac_cv_type_signal
3601 echo "$as_me:$LINENO: checking for size_t" >&5
3602 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3603 if test "${ac_cv_type_size_t+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 cat >conftest.$ac_ext <<_ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3612 $ac_includes_default
3618 if (sizeof (size_t))
3624 rm -f conftest.$ac_objext
3625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3626 (eval $ac_compile) 2>conftest.er1
3628 grep -v '^ *+' conftest.er1 >conftest.err
3630 cat conftest.err >&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); } &&
3633 { ac_try='test -z "$ac_c_werror_flag"
3634 || test ! -s conftest.err'
3635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; } &&
3640 { ac_try='test -s conftest.$ac_objext'
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; }; then
3646 ac_cv_type_size_t=yes
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3651 ac_cv_type_size_t=no
3653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3655 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3656 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3657 if test $ac_cv_type_size_t = yes; then
3661 cat >>confdefs.h <<_ACEOF
3662 #define size_t unsigned
3667 echo "$as_me:$LINENO: checking for ssize_t" >&5
3668 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
3669 if test "${ac_cv_type_ssize_t+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 cat >conftest.$ac_ext <<_ACEOF
3675 cat confdefs.h >>conftest.$ac_ext
3676 cat >>conftest.$ac_ext <<_ACEOF
3677 /* end confdefs.h. */
3678 $ac_includes_default
3684 if (sizeof (ssize_t))
3690 rm -f conftest.$ac_objext
3691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3692 (eval $ac_compile) 2>conftest.er1
3694 grep -v '^ *+' conftest.er1 >conftest.err
3696 cat conftest.err >&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); } &&
3699 { ac_try='test -z "$ac_c_werror_flag"
3700 || test ! -s conftest.err'
3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; } &&
3706 { ac_try='test -s conftest.$ac_objext'
3707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; }; then
3712 ac_cv_type_ssize_t=yes
3714 echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.$ac_ext >&5
3717 ac_cv_type_ssize_t=no
3719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3721 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
3722 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
3723 if test $ac_cv_type_ssize_t = yes; then
3727 cat >>confdefs.h <<_ACEOF
3734 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
3735 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
3736 if test "${ac_cv_header_stat_broken+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 cat >conftest.$ac_ext <<_ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3745 #include <sys/types.h>
3746 #include <sys/stat.h>
3748 #if defined(S_ISBLK) && defined(S_IFDIR)
3749 # if S_ISBLK (S_IFDIR)
3754 #if defined(S_ISBLK) && defined(S_IFCHR)
3755 # if S_ISBLK (S_IFCHR)
3760 #if defined(S_ISLNK) && defined(S_IFREG)
3761 # if S_ISLNK (S_IFREG)
3766 #if defined(S_ISSOCK) && defined(S_IFREG)
3767 # if S_ISSOCK (S_IFREG)
3773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3774 $EGREP "You lose" >/dev/null 2>&1; then
3775 ac_cv_header_stat_broken=yes
3777 ac_cv_header_stat_broken=no
3782 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
3783 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
3784 if test $ac_cv_header_stat_broken = yes; then
3786 cat >>confdefs.h <<\_ACEOF
3787 #define STAT_MACROS_BROKEN 1
3798 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3799 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3800 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3801 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 cat >conftest.$ac_ext <<_ACEOF
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3811 #include <sys/types.h>
3823 rm -f conftest.$ac_objext
3824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3825 (eval $ac_compile) 2>conftest.er1
3827 grep -v '^ *+' conftest.er1 >conftest.err
3829 cat conftest.err >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } &&
3832 { ac_try='test -z "$ac_c_werror_flag"
3833 || test ! -s conftest.err'
3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; } &&
3839 { ac_try='test -s conftest.$ac_objext'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; }; then
3845 eval "$as_ac_Header=yes"
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 eval "$as_ac_Header=no"
3852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3857 cat >>confdefs.h <<_ACEOF
3858 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3861 ac_header_dirent=$ac_hdr; break
3865 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3866 if test $ac_header_dirent = dirent.h; then
3867 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3868 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3869 if test "${ac_cv_search_opendir+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 ac_func_search_save_LIBS=$LIBS
3873 ac_cv_search_opendir=no
3874 cat >conftest.$ac_ext <<_ACEOF
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h. */
3881 /* Override any gcc2 internal prototype to avoid an error. */
3885 /* We use char because int might match the return type of a gcc2
3886 builtin and then its argument prototype would still apply. */
3896 rm -f conftest.$ac_objext conftest$ac_exeext
3897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3898 (eval $ac_link) 2>conftest.er1
3900 grep -v '^ *+' conftest.er1 >conftest.err
3902 cat conftest.err >&5
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); } &&
3905 { ac_try='test -z "$ac_c_werror_flag"
3906 || test ! -s conftest.err'
3907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; } &&
3912 { ac_try='test -s conftest$ac_exeext'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; }; then
3918 ac_cv_search_opendir="none required"
3920 echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3924 rm -f conftest.err conftest.$ac_objext \
3925 conftest$ac_exeext conftest.$ac_ext
3926 if test "$ac_cv_search_opendir" = no; then
3927 for ac_lib in dir; do
3928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3929 cat >conftest.$ac_ext <<_ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3936 /* Override any gcc2 internal prototype to avoid an error. */
3940 /* We use char because int might match the return type of a gcc2
3941 builtin and then its argument prototype would still apply. */
3951 rm -f conftest.$ac_objext conftest$ac_exeext
3952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3953 (eval $ac_link) 2>conftest.er1
3955 grep -v '^ *+' conftest.er1 >conftest.err
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } &&
3960 { ac_try='test -z "$ac_c_werror_flag"
3961 || test ! -s conftest.err'
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; } &&
3967 { ac_try='test -s conftest$ac_exeext'
3968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3973 ac_cv_search_opendir="-l$ac_lib"
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3980 rm -f conftest.err conftest.$ac_objext \
3981 conftest$ac_exeext conftest.$ac_ext
3984 LIBS=$ac_func_search_save_LIBS
3986 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3987 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3988 if test "$ac_cv_search_opendir" != no; then
3989 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3994 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3995 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3996 if test "${ac_cv_search_opendir+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3999 ac_func_search_save_LIBS=$LIBS
4000 ac_cv_search_opendir=no
4001 cat >conftest.$ac_ext <<_ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h. */
4008 /* Override any gcc2 internal prototype to avoid an error. */
4012 /* We use char because int might match the return type of a gcc2
4013 builtin and then its argument prototype would still apply. */
4023 rm -f conftest.$ac_objext conftest$ac_exeext
4024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4025 (eval $ac_link) 2>conftest.er1
4027 grep -v '^ *+' conftest.er1 >conftest.err
4029 cat conftest.err >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } &&
4032 { ac_try='test -z "$ac_c_werror_flag"
4033 || test ! -s conftest.err'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; } &&
4039 { ac_try='test -s conftest$ac_exeext'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
4045 ac_cv_search_opendir="none required"
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4051 rm -f conftest.err conftest.$ac_objext \
4052 conftest$ac_exeext conftest.$ac_ext
4053 if test "$ac_cv_search_opendir" = no; then
4055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4056 cat >conftest.$ac_ext <<_ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4063 /* Override any gcc2 internal prototype to avoid an error. */
4067 /* We use char because int might match the return type of a gcc2
4068 builtin and then its argument prototype would still apply. */
4078 rm -f conftest.$ac_objext conftest$ac_exeext
4079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4080 (eval $ac_link) 2>conftest.er1
4082 grep -v '^ *+' conftest.er1 >conftest.err
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } &&
4087 { ac_try='test -z "$ac_c_werror_flag"
4088 || test ! -s conftest.err'
4089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; } &&
4094 { ac_try='test -s conftest$ac_exeext'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4100 ac_cv_search_opendir="-l$ac_lib"
4103 echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4107 rm -f conftest.err conftest.$ac_objext \
4108 conftest$ac_exeext conftest.$ac_ext
4111 LIBS=$ac_func_search_save_LIBS
4113 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4114 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4115 if test "$ac_cv_search_opendir" != no; then
4116 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4140 for ac_func in fcntl kill lstat memmove putenv select setenv setlocale \
4141 strcasecmp strpbrk tcgetattr vsnprintf isascii isxdigit \
4142 getpwnam getpwent getpwuid
4144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4145 echo "$as_me:$LINENO: checking for $ac_func" >&5
4146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4147 if eval "test \"\${$as_ac_var+set}\" = set"; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 cat >conftest.$ac_ext <<_ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h. */
4156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4158 #define $ac_func innocuous_$ac_func
4160 /* System header to define __stub macros and hopefully few prototypes,
4161 which can conflict with char $ac_func (); below.
4162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4163 <limits.h> exists even on freestanding compilers. */
4166 # include <limits.h>
4168 # include <assert.h>
4173 /* Override any gcc2 internal prototype to avoid an error. */
4178 /* We use char because int might match the return type of a gcc2
4179 builtin and then its argument prototype would still apply. */
4181 /* The GNU C library defines this for functions which it implements
4182 to always fail with ENOSYS. Some functions are actually named
4183 something starting with __ and the normal name is an alias. */
4184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4187 char (*f) () = $ac_func;
4196 return f != $ac_func;
4201 rm -f conftest.$ac_objext conftest$ac_exeext
4202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4203 (eval $ac_link) 2>conftest.er1
4205 grep -v '^ *+' conftest.er1 >conftest.err
4207 cat conftest.err >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); } &&
4210 { ac_try='test -z "$ac_c_werror_flag"
4211 || test ! -s conftest.err'
4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; } &&
4217 { ac_try='test -s conftest$ac_exeext'
4218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }; }; then
4223 eval "$as_ac_var=yes"
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4228 eval "$as_ac_var=no"
4230 rm -f conftest.err conftest.$ac_objext \
4231 conftest$ac_exeext conftest.$ac_ext
4233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4235 if test `eval echo '${'$as_ac_var'}'` = yes; then
4236 cat >>confdefs.h <<_ACEOF
4237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4244 echo "$as_me:$LINENO: checking for working strcoll" >&5
4245 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
4246 if test "${ac_cv_func_strcoll_works+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 if test "$cross_compiling" = yes; then
4250 ac_cv_func_strcoll_works=no
4252 cat >conftest.$ac_ext <<_ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4258 $ac_includes_default
4262 exit (strcoll ("abc", "def") >= 0 ||
4263 strcoll ("ABC", "DEF") >= 0 ||
4264 strcoll ("123", "456") >= 0)
4269 rm -f conftest$ac_exeext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4271 (eval $ac_link) 2>&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; }; then
4280 ac_cv_func_strcoll_works=yes
4282 echo "$as_me: program exited with status $ac_status" >&5
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4287 ac_cv_func_strcoll_works=no
4289 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4292 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
4293 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
4294 if test $ac_cv_func_strcoll_works = yes; then
4296 cat >>confdefs.h <<\_ACEOF
4297 #define HAVE_STRCOLL 1
4321 for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \
4322 limits.h sys/ptem.h sys/pte.h sys/stream.h sys/select.h \
4323 termcap.h termios.h termio.h sys/file.h locale.h memory.h \
4326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4328 echo "$as_me:$LINENO: checking for $ac_header" >&5
4329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4336 # Is the header compilable?
4337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4339 cat >conftest.$ac_ext <<_ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4345 $ac_includes_default
4346 #include <$ac_header>
4348 rm -f conftest.$ac_objext
4349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4350 (eval $ac_compile) 2>conftest.er1
4352 grep -v '^ *+' conftest.er1 >conftest.err
4354 cat conftest.err >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } &&
4357 { ac_try='test -z "$ac_c_werror_flag"
4358 || test ! -s conftest.err'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; } &&
4364 { ac_try='test -s conftest.$ac_objext'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; }; then
4370 ac_header_compiler=yes
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4375 ac_header_compiler=no
4377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4379 echo "${ECHO_T}$ac_header_compiler" >&6
4381 # Is the header present?
4382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4384 cat >conftest.$ac_ext <<_ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4390 #include <$ac_header>
4392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4395 grep -v '^ *+' conftest.er1 >conftest.err
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } >/dev/null; then
4400 if test -s conftest.err; then
4401 ac_cpp_err=$ac_c_preproc_warn_flag
4402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4409 if test -z "$ac_cpp_err"; then
4410 ac_header_preproc=yes
4412 echo "$as_me: failed program was:" >&5
4413 sed 's/^/| /' conftest.$ac_ext >&5
4415 ac_header_preproc=no
4417 rm -f conftest.err conftest.$ac_ext
4418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4419 echo "${ECHO_T}$ac_header_preproc" >&6
4421 # So? What about this header?
4422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4428 ac_header_preproc=yes
4431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4445 ## ----------------------------------- ##
4447 ## ----------------------------------- ##
4450 sed "s/^/$as_me: WARNING: /" >&2
4453 echo "$as_me:$LINENO: checking for $ac_header" >&5
4454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 eval "$as_ac_Header=\$ac_header_preproc"
4460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4465 cat >>confdefs.h <<_ACEOF
4466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4475 echo "$as_me:$LINENO: checking for type of signal functions" >&5
4476 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
4477 if test "${bash_cv_signal_vintage+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 cat >conftest.$ac_ext <<_ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4493 struct sigaction sa;
4494 sigemptyset(&ss); sigsuspend(&ss);
4495 sigaction(SIGINT, &sa, (struct sigaction *) 0);
4496 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
4502 rm -f conftest.$ac_objext conftest$ac_exeext
4503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4504 (eval $ac_link) 2>conftest.er1
4506 grep -v '^ *+' conftest.er1 >conftest.err
4508 cat conftest.err >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } &&
4511 { ac_try='test -z "$ac_c_werror_flag"
4512 || test ! -s conftest.err'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; } &&
4518 { ac_try='test -s conftest$ac_exeext'
4519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; }; then
4524 bash_cv_signal_vintage=posix
4526 echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4530 cat >conftest.$ac_ext <<_ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4541 int mask = sigmask(SIGINT);
4542 sigsetmask(mask); sigblock(mask); sigpause(mask);
4548 rm -f conftest.$ac_objext conftest$ac_exeext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4550 (eval $ac_link) 2>conftest.er1
4552 grep -v '^ *+' conftest.er1 >conftest.err
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try='test -z "$ac_c_werror_flag"
4558 || test ! -s conftest.err'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; } &&
4564 { ac_try='test -s conftest$ac_exeext'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 bash_cv_signal_vintage=4.2bsd
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4576 cat >conftest.$ac_ext <<_ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4584 RETSIGTYPE foo() { }
4589 int mask = sigmask(SIGINT);
4590 sigset(SIGINT, foo); sigrelse(SIGINT);
4591 sighold(SIGINT); sigpause(SIGINT);
4597 rm -f conftest.$ac_objext conftest$ac_exeext
4598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4599 (eval $ac_link) 2>conftest.er1
4601 grep -v '^ *+' conftest.er1 >conftest.err
4603 cat conftest.err >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -z "$ac_c_werror_flag"
4607 || test ! -s conftest.err'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; } &&
4613 { ac_try='test -s conftest$ac_exeext'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
4619 bash_cv_signal_vintage=svr3
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4624 bash_cv_signal_vintage=v7
4627 rm -f conftest.err conftest.$ac_objext \
4628 conftest$ac_exeext conftest.$ac_ext
4631 rm -f conftest.err conftest.$ac_objext \
4632 conftest$ac_exeext conftest.$ac_ext
4635 rm -f conftest.err conftest.$ac_objext \
4636 conftest$ac_exeext conftest.$ac_ext
4640 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
4641 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
4642 if test "$bash_cv_signal_vintage" = posix; then
4643 cat >>confdefs.h <<\_ACEOF
4644 #define HAVE_POSIX_SIGNALS 1
4647 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
4648 cat >>confdefs.h <<\_ACEOF
4649 #define HAVE_BSD_SIGNALS 1
4652 elif test "$bash_cv_signal_vintage" = svr3; then
4653 cat >>confdefs.h <<\_ACEOF
4654 #define HAVE_USG_SIGHOLD 1
4661 echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
4662 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
4663 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 if test "$cross_compiling" = yes; then
4667 { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
4668 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
4669 bash_cv_must_reinstall_sighandlers=no
4672 cat >conftest.$ac_ext <<_ACEOF
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h. */
4680 #ifdef HAVE_UNISTD_H
4684 typedef RETSIGTYPE sigfunc();
4688 #ifdef HAVE_POSIX_SIGNALS
4690 set_signal_handler(sig, handler)
4694 struct sigaction act, oact;
4695 act.sa_handler = handler;
4697 sigemptyset (&act.sa_mask);
4698 sigemptyset (&oact.sa_mask);
4699 sigaction (sig, &act, &oact);
4700 return (oact.sa_handler);
4703 #define set_signal_handler(s, h) signal(s, h)
4716 set_signal_handler(SIGINT, sigint);
4717 kill((int)getpid(), SIGINT);
4718 kill((int)getpid(), SIGINT);
4723 rm -f conftest$ac_exeext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4725 (eval $ac_link) 2>&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4734 bash_cv_must_reinstall_sighandlers=no
4736 echo "$as_me: program exited with status $ac_status" >&5
4737 echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4741 bash_cv_must_reinstall_sighandlers=yes
4743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4747 echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
4748 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
4749 if test $bash_cv_must_reinstall_sighandlers = yes; then
4750 cat >>confdefs.h <<\_ACEOF
4751 #define MUST_REINSTALL_SIGHANDLERS 1
4758 echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
4759 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
4760 if test "${bash_cv_func_sigsetjmp+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 if test "$cross_compiling" = yes; then
4764 { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
4765 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
4766 bash_cv_func_sigsetjmp=missing
4769 cat >conftest.$ac_ext <<_ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4776 #ifdef HAVE_UNISTD_H
4779 #include <sys/types.h>
4785 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
4796 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
4797 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
4800 code = sigsetjmp(xx, 1);
4802 exit(0); /* could get sigmask and compare to oset here. */
4805 sigaddset(&set, SIGINT);
4806 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
4808 /* and siglongjmp */
4814 rm -f conftest$ac_exeext
4815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4816 (eval $ac_link) 2>&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; }; then
4825 bash_cv_func_sigsetjmp=present
4827 echo "$as_me: program exited with status $ac_status" >&5
4828 echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4832 bash_cv_func_sigsetjmp=missing
4834 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4838 echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
4839 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
4840 if test $bash_cv_func_sigsetjmp = present; then
4841 cat >>confdefs.h <<\_ACEOF
4842 #define HAVE_POSIX_SIGSETJMP 1
4847 echo "$as_me:$LINENO: checking for lstat" >&5
4848 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
4849 if test "${bash_cv_func_lstat+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 cat >conftest.$ac_ext <<_ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4859 #include <sys/types.h>
4860 #include <sys/stat.h>
4865 lstat(".",(struct stat *)0);
4870 rm -f conftest.$ac_objext conftest$ac_exeext
4871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4872 (eval $ac_link) 2>conftest.er1
4874 grep -v '^ *+' conftest.er1 >conftest.err
4876 cat conftest.err >&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } &&
4879 { ac_try='test -z "$ac_c_werror_flag"
4880 || test ! -s conftest.err'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; } &&
4886 { ac_try='test -s conftest$ac_exeext'
4887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; }; then
4892 bash_cv_func_lstat=yes
4894 echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4897 bash_cv_func_lstat=no
4899 rm -f conftest.err conftest.$ac_objext \
4900 conftest$ac_exeext conftest.$ac_ext
4902 echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
4903 echo "${ECHO_T}$bash_cv_func_lstat" >&6
4904 if test $bash_cv_func_lstat = yes; then
4905 cat >>confdefs.h <<\_ACEOF
4906 #define HAVE_LSTAT 1
4912 echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
4913 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
4914 if test "${bash_cv_func_strcoll_broken+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 if test "$cross_compiling" = yes; then
4918 { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
4919 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
4920 bash_cv_func_strcoll_broken=no
4923 cat >conftest.$ac_ext <<_ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h. */
4931 #if defined (HAVE_LOCALE_H)
4940 char *deflocale, *defcoll;
4942 #ifdef HAVE_SETLOCALE
4943 deflocale = setlocale(LC_ALL, "");
4944 defcoll = setlocale(LC_COLLATE, "");
4948 /* These two values are taken from tests/glob-test. */
4949 r1 = strcoll("abd", "aXd");
4953 r2 = strcmp("abd", "aXd");
4955 /* These two should both be greater than 0. It is permissible for
4956 a system to return different values, as long as the sign is the
4959 /* Exit with 1 (failure) if these two values are both > 0, since
4960 this tests whether strcoll(3) is broken with respect to strcmp(3)
4961 in the default locale. */
4962 exit (r1 > 0 && r2 > 0);
4966 rm -f conftest$ac_exeext
4967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4968 (eval $ac_link) 2>&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; }; then
4977 bash_cv_func_strcoll_broken=yes
4979 echo "$as_me: program exited with status $ac_status" >&5
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4984 bash_cv_func_strcoll_broken=no
4986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4990 echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
4991 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
4992 if test $bash_cv_func_strcoll_broken = yes; then
4993 cat >>confdefs.h <<\_ACEOF
4994 #define STRCOLL_BROKEN 1
5000 echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
5001 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
5002 if test "${bash_cv_getpw_declared+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 cat >conftest.$ac_ext <<_ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5012 #include <sys/types.h>
5013 #ifdef HAVE_UNISTD_H
5014 # include <unistd.h>
5019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5020 $EGREP "getpwuid" >/dev/null 2>&1; then
5021 bash_cv_getpw_declared=yes
5023 bash_cv_getpw_declared=no
5029 echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
5030 echo "${ECHO_T}$bash_cv_getpw_declared" >&6
5031 if test $bash_cv_getpw_declared = yes; then
5032 cat >>confdefs.h <<\_ACEOF
5033 #define HAVE_GETPW_DECLS 1
5039 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
5040 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
5041 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 cat >conftest.$ac_ext <<_ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5050 #include <sys/types.h>
5051 #include <termios.h>
5057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5058 $EGREP "yes" >/dev/null 2>&1; then
5059 ac_cv_sys_tiocgwinsz_in_termios_h=yes
5061 ac_cv_sys_tiocgwinsz_in_termios_h=no
5066 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
5067 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
5069 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
5070 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
5071 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
5072 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 cat >conftest.$ac_ext <<_ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5081 #include <sys/types.h>
5082 #include <sys/ioctl.h>
5088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5089 $EGREP "yes" >/dev/null 2>&1; then
5090 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
5092 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
5097 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
5098 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
5100 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
5102 cat >>confdefs.h <<\_ACEOF
5103 #define GWINSZ_IN_SYS_IOCTL 1
5110 echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
5111 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
5112 if test "${bash_cv_void_sighandler+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 cat >conftest.$ac_ext <<_ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5121 #include <sys/types.h>
5129 void (*signal ()) ();
5138 rm -f conftest.$ac_objext
5139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5140 (eval $ac_compile) 2>conftest.er1
5142 grep -v '^ *+' conftest.er1 >conftest.err
5144 cat conftest.err >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } &&
5147 { ac_try='test -z "$ac_c_werror_flag"
5148 || test ! -s conftest.err'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; } &&
5154 { ac_try='test -s conftest.$ac_objext'
5155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }; }; then
5160 bash_cv_void_sighandler=yes
5162 echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.$ac_ext >&5
5165 bash_cv_void_sighandler=no
5167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5169 echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
5170 echo "${ECHO_T}$bash_cv_void_sighandler" >&6
5171 if test $bash_cv_void_sighandler = yes; then
5172 cat >>confdefs.h <<\_ACEOF
5173 #define VOID_SIGHANDLER 1
5178 echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
5179 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
5180 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 cat >conftest.$ac_ext <<_ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5189 #include <sys/types.h>
5190 #include <sys/ioctl.h>
5199 rm -f conftest.$ac_objext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201 (eval $ac_compile) 2>conftest.er1
5203 grep -v '^ *+' conftest.er1 >conftest.err
5205 cat conftest.err >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } &&
5208 { ac_try='test -z "$ac_c_werror_flag"
5209 || test ! -s conftest.err'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; } &&
5215 { ac_try='test -s conftest.$ac_objext'
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; }; then
5221 bash_cv_tiocstat_in_ioctl=yes
5223 echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5226 bash_cv_tiocstat_in_ioctl=no
5228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5231 echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
5232 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
5233 if test $bash_cv_tiocstat_in_ioctl = yes; then
5234 cat >>confdefs.h <<\_ACEOF
5235 #define TIOCSTAT_IN_SYS_IOCTL 1
5240 echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
5241 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
5242 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 cat >conftest.$ac_ext <<_ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5251 #include <sys/types.h>
5252 #include <sys/ioctl.h>
5261 rm -f conftest.$ac_objext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5263 (eval $ac_compile) 2>conftest.er1
5265 grep -v '^ *+' conftest.er1 >conftest.err
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
5270 { ac_try='test -z "$ac_c_werror_flag"
5271 || test ! -s conftest.err'
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; } &&
5277 { ac_try='test -s conftest.$ac_objext'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 bash_cv_fionread_in_ioctl=yes
5285 echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5288 bash_cv_fionread_in_ioctl=no
5290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5293 echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
5294 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
5295 if test $bash_cv_fionread_in_ioctl = yes; then
5296 cat >>confdefs.h <<\_ACEOF
5297 #define FIONREAD_IN_SYS_IOCTL 1
5302 echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
5303 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
5304 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 cat >conftest.$ac_ext <<_ACEOF
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5313 #include <sys/types.h>
5322 rm -f conftest.$ac_objext
5323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5324 (eval $ac_compile) 2>conftest.er1
5326 grep -v '^ *+' conftest.er1 >conftest.err
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } &&
5331 { ac_try='test -z "$ac_c_werror_flag"
5332 || test ! -s conftest.err'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; } &&
5338 { ac_try='test -s conftest.$ac_objext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 bash_cv_speed_t_in_sys_types=yes
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5349 bash_cv_speed_t_in_sys_types=no
5351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5354 echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
5355 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
5356 if test $bash_cv_speed_t_in_sys_types = yes; then
5357 cat >>confdefs.h <<\_ACEOF
5358 #define SPEED_T_IN_SYS_TYPES 1
5363 echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
5364 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
5365 if test "${bash_cv_struct_winsize_header+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 cat >conftest.$ac_ext <<_ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h. */
5374 #include <sys/types.h>
5375 #include <sys/ioctl.h>
5384 rm -f conftest.$ac_objext
5385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5386 (eval $ac_compile) 2>conftest.er1
5388 grep -v '^ *+' conftest.er1 >conftest.err
5390 cat conftest.err >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } &&
5393 { ac_try='test -z "$ac_c_werror_flag"
5394 || test ! -s conftest.err'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; } &&
5400 { ac_try='test -s conftest.$ac_objext'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; }; then
5406 bash_cv_struct_winsize_header=ioctl_h
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5411 cat >conftest.$ac_ext <<_ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5417 #include <sys/types.h>
5418 #include <termios.h>
5427 rm -f conftest.$ac_objext
5428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5429 (eval $ac_compile) 2>conftest.er1
5431 grep -v '^ *+' conftest.er1 >conftest.err
5433 cat conftest.err >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); } &&
5436 { ac_try='test -z "$ac_c_werror_flag"
5437 || test ! -s conftest.err'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; } &&
5443 { ac_try='test -s conftest.$ac_objext'
5444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; }; then
5449 bash_cv_struct_winsize_header=termios_h
5451 echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5454 bash_cv_struct_winsize_header=other
5456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5462 if test $bash_cv_struct_winsize_header = ioctl_h; then
5463 echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
5464 echo "${ECHO_T}sys/ioctl.h" >&6
5465 cat >>confdefs.h <<\_ACEOF
5466 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
5469 elif test $bash_cv_struct_winsize_header = termios_h; then
5470 echo "$as_me:$LINENO: result: termios.h" >&5
5471 echo "${ECHO_T}termios.h" >&6
5472 cat >>confdefs.h <<\_ACEOF
5473 #define STRUCT_WINSIZE_IN_TERMIOS 1
5477 echo "$as_me:$LINENO: result: not found" >&5
5478 echo "${ECHO_T}not found" >&6
5482 echo "$as_me:$LINENO: checking if struct dirent has a d_ino member" >&5
5483 echo $ECHO_N "checking if struct dirent has a d_ino member... $ECHO_C" >&6
5484 if test "${bash_cv_dirent_has_dino+set}" = set; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5487 cat >conftest.$ac_ext <<_ACEOF
5490 cat confdefs.h >>conftest.$ac_ext
5491 cat >>conftest.$ac_ext <<_ACEOF
5492 /* end confdefs.h. */
5495 #include <sys/types.h>
5496 #ifdef HAVE_UNISTD_H
5497 # include <unistd.h>
5498 #endif /* HAVE_UNISTD_H */
5499 #if defined(HAVE_DIRENT_H)
5500 # include <dirent.h>
5502 # define dirent direct
5503 # ifdef HAVE_SYS_NDIR_H
5504 # include <sys/ndir.h>
5505 # endif /* SYSNDIR */
5506 # ifdef HAVE_SYS_DIR_H
5507 # include <sys/dir.h>
5508 # endif /* SYSDIR */
5512 #endif /* HAVE_DIRENT_H */
5518 struct dirent d; int z; z = d.d_ino;
5524 rm -f conftest.$ac_objext
5525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5526 (eval $ac_compile) 2>conftest.er1
5528 grep -v '^ *+' conftest.er1 >conftest.err
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } &&
5533 { ac_try='test -z "$ac_c_werror_flag"
5534 || test ! -s conftest.err'
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; } &&
5540 { ac_try='test -s conftest.$ac_objext'
5541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; }; then
5546 bash_cv_dirent_has_dino=yes
5548 echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5551 bash_cv_dirent_has_dino=no
5553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5556 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
5557 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
5558 if test $bash_cv_dirent_has_dino = yes; then
5559 cat >>confdefs.h <<\_ACEOF
5560 #define STRUCT_DIRENT_HAS_D_INO 1
5566 echo "$as_me:$LINENO: checking if struct dirent has a d_fileno member" >&5
5567 echo $ECHO_N "checking if struct dirent has a d_fileno member... $ECHO_C" >&6
5568 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 cat >conftest.$ac_ext <<_ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5579 #include <sys/types.h>
5580 #ifdef HAVE_UNISTD_H
5581 # include <unistd.h>
5582 #endif /* HAVE_UNISTD_H */
5583 #if defined(HAVE_DIRENT_H)
5584 # include <dirent.h>
5586 # define dirent direct
5587 # ifdef HAVE_SYS_NDIR_H
5588 # include <sys/ndir.h>
5589 # endif /* SYSNDIR */
5590 # ifdef HAVE_SYS_DIR_H
5591 # include <sys/dir.h>
5592 # endif /* SYSDIR */
5596 #endif /* HAVE_DIRENT_H */
5602 struct dirent d; int z; z = d.d_fileno;
5608 rm -f conftest.$ac_objext
5609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5610 (eval $ac_compile) 2>conftest.er1
5612 grep -v '^ *+' conftest.er1 >conftest.err
5614 cat conftest.err >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } &&
5617 { ac_try='test -z "$ac_c_werror_flag"
5618 || test ! -s conftest.err'
5619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; } &&
5624 { ac_try='test -s conftest.$ac_objext'
5625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; }; then
5630 bash_cv_dirent_has_d_fileno=yes
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5635 bash_cv_dirent_has_d_fileno=no
5637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5640 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
5641 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
5642 if test $bash_cv_dirent_has_d_fileno = yes; then
5643 cat >>confdefs.h <<\_ACEOF
5644 #define STRUCT_DIRENT_HAS_D_FILENO 1
5651 aix*) prefer_curses=yes ;;
5654 if test "X$bash_cv_termcap_lib" = "X"; then
5657 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5658 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
5661 if test "${bash_cv_termcap_lib+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5665 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5666 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 ac_check_lib_save_LIBS=$LIBS
5670 LIBS="-ltermcap $LIBS"
5671 cat >conftest.$ac_ext <<_ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h. */
5678 /* Override any gcc2 internal prototype to avoid an error. */
5682 /* We use char because int might match the return type of a gcc2
5683 builtin and then its argument prototype would still apply. */
5693 rm -f conftest.$ac_objext conftest$ac_exeext
5694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5695 (eval $ac_link) 2>conftest.er1
5697 grep -v '^ *+' conftest.er1 >conftest.err
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } &&
5702 { ac_try='test -z "$ac_c_werror_flag"
5703 || test ! -s conftest.err'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; } &&
5709 { ac_try='test -s conftest$ac_exeext'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
5715 ac_cv_lib_termcap_tgetent=yes
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5720 ac_cv_lib_termcap_tgetent=no
5722 rm -f conftest.err conftest.$ac_objext \
5723 conftest$ac_exeext conftest.$ac_ext
5724 LIBS=$ac_check_lib_save_LIBS
5726 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5727 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5728 if test $ac_cv_lib_termcap_tgetent = yes; then
5729 bash_cv_termcap_lib=libtermcap
5731 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
5732 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
5733 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 ac_check_lib_save_LIBS=$LIBS
5737 LIBS="-ltinfo $LIBS"
5738 cat >conftest.$ac_ext <<_ACEOF
5741 cat confdefs.h >>conftest.$ac_ext
5742 cat >>conftest.$ac_ext <<_ACEOF
5743 /* end confdefs.h. */
5745 /* Override any gcc2 internal prototype to avoid an error. */
5749 /* We use char because int might match the return type of a gcc2
5750 builtin and then its argument prototype would still apply. */
5760 rm -f conftest.$ac_objext conftest$ac_exeext
5761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5762 (eval $ac_link) 2>conftest.er1
5764 grep -v '^ *+' conftest.er1 >conftest.err
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } &&
5769 { ac_try='test -z "$ac_c_werror_flag"
5770 || test ! -s conftest.err'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; } &&
5776 { ac_try='test -s conftest$ac_exeext'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
5782 ac_cv_lib_tinfo_tgetent=yes
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5787 ac_cv_lib_tinfo_tgetent=no
5789 rm -f conftest.err conftest.$ac_objext \
5790 conftest$ac_exeext conftest.$ac_ext
5791 LIBS=$ac_check_lib_save_LIBS
5793 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
5794 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
5795 if test $ac_cv_lib_tinfo_tgetent = yes; then
5796 bash_cv_termcap_lib=libtinfo
5798 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5799 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5800 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 ac_check_lib_save_LIBS=$LIBS
5804 LIBS="-lcurses $LIBS"
5805 cat >conftest.$ac_ext <<_ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5812 /* Override any gcc2 internal prototype to avoid an error. */
5816 /* We use char because int might match the return type of a gcc2
5817 builtin and then its argument prototype would still apply. */
5827 rm -f conftest.$ac_objext conftest$ac_exeext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5829 (eval $ac_link) 2>conftest.er1
5831 grep -v '^ *+' conftest.er1 >conftest.err
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } &&
5836 { ac_try='test -z "$ac_c_werror_flag"
5837 || test ! -s conftest.err'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; } &&
5843 { ac_try='test -s conftest$ac_exeext'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; }; then
5849 ac_cv_lib_curses_tgetent=yes
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5854 ac_cv_lib_curses_tgetent=no
5856 rm -f conftest.err conftest.$ac_objext \
5857 conftest$ac_exeext conftest.$ac_ext
5858 LIBS=$ac_check_lib_save_LIBS
5860 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5861 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5862 if test $ac_cv_lib_curses_tgetent = yes; then
5863 bash_cv_termcap_lib=libcurses
5865 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5866 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5867 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 ac_check_lib_save_LIBS=$LIBS
5871 LIBS="-lncurses $LIBS"
5872 cat >conftest.$ac_ext <<_ACEOF
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h. */
5879 /* Override any gcc2 internal prototype to avoid an error. */
5883 /* We use char because int might match the return type of a gcc2
5884 builtin and then its argument prototype would still apply. */
5894 rm -f conftest.$ac_objext conftest$ac_exeext
5895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5896 (eval $ac_link) 2>conftest.er1
5898 grep -v '^ *+' conftest.er1 >conftest.err
5900 cat conftest.err >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } &&
5903 { ac_try='test -z "$ac_c_werror_flag"
5904 || test ! -s conftest.err'
5905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }; } &&
5910 { ac_try='test -s conftest$ac_exeext'
5911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; }; then
5916 ac_cv_lib_ncurses_tgetent=yes
5918 echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5921 ac_cv_lib_ncurses_tgetent=no
5923 rm -f conftest.err conftest.$ac_objext \
5924 conftest$ac_exeext conftest.$ac_ext
5925 LIBS=$ac_check_lib_save_LIBS
5927 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5928 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5929 if test $ac_cv_lib_ncurses_tgetent = yes; then
5930 bash_cv_termcap_lib=libncurses
5932 bash_cv_termcap_lib=gnutermcap
5943 if test "X$_bash_needmsg" = "Xyes"; then
5944 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5945 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
5947 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
5948 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
5949 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5950 LDFLAGS="$LDFLAGS -L./lib/termcap"
5951 TERMCAP_LIB="./lib/termcap/libtermcap.a"
5952 TERMCAP_DEP="./lib/termcap/libtermcap.a"
5953 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5954 TERMCAP_LIB=-ltermcap
5956 elif test $bash_cv_termcap_lib = libtinfo; then
5959 elif test $bash_cv_termcap_lib = libncurses; then
5960 TERMCAP_LIB=-lncurses
5963 TERMCAP_LIB=-lcurses
5967 if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
5968 if test "$prefer_curses" = yes; then
5969 TERMCAP_LIB=-lcurses
5971 TERMCAP_LIB=-ltermcap #default
5977 for ac_header in wctype.h
5979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5981 echo "$as_me:$LINENO: checking for $ac_header" >&5
5982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5989 # Is the header compilable?
5990 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5992 cat >conftest.$ac_ext <<_ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h. */
5998 $ac_includes_default
5999 #include <$ac_header>
6001 rm -f conftest.$ac_objext
6002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6003 (eval $ac_compile) 2>conftest.er1
6005 grep -v '^ *+' conftest.er1 >conftest.err
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } &&
6010 { ac_try='test -z "$ac_c_werror_flag"
6011 || test ! -s conftest.err'
6012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; } &&
6017 { ac_try='test -s conftest.$ac_objext'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; }; then
6023 ac_header_compiler=yes
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6028 ac_header_compiler=no
6030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6031 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6032 echo "${ECHO_T}$ac_header_compiler" >&6
6034 # Is the header present?
6035 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6037 cat >conftest.$ac_ext <<_ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h. */
6043 #include <$ac_header>
6045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6048 grep -v '^ *+' conftest.er1 >conftest.err
6050 cat conftest.err >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } >/dev/null; then
6053 if test -s conftest.err; then
6054 ac_cpp_err=$ac_c_preproc_warn_flag
6055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6062 if test -z "$ac_cpp_err"; then
6063 ac_header_preproc=yes
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6068 ac_header_preproc=no
6070 rm -f conftest.err conftest.$ac_ext
6071 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6072 echo "${ECHO_T}$ac_header_preproc" >&6
6074 # So? What about this header?
6075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6081 ac_header_preproc=yes
6084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6087 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6089 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6091 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6095 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6098 ## ----------------------------------- ##
6100 ## ----------------------------------- ##
6103 sed "s/^/$as_me: WARNING: /" >&2
6106 echo "$as_me:$LINENO: checking for $ac_header" >&5
6107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 eval "$as_ac_Header=\$ac_header_preproc"
6113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6118 cat >>confdefs.h <<_ACEOF
6119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6127 for ac_header in wchar.h
6129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6131 echo "$as_me:$LINENO: checking for $ac_header" >&5
6132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6139 # Is the header compilable?
6140 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6142 cat >conftest.$ac_ext <<_ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6148 $ac_includes_default
6149 #include <$ac_header>
6151 rm -f conftest.$ac_objext
6152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6153 (eval $ac_compile) 2>conftest.er1
6155 grep -v '^ *+' conftest.er1 >conftest.err
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } &&
6160 { ac_try='test -z "$ac_c_werror_flag"
6161 || test ! -s conftest.err'
6162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); }; } &&
6167 { ac_try='test -s conftest.$ac_objext'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; }; then
6173 ac_header_compiler=yes
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6178 ac_header_compiler=no
6180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6181 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6182 echo "${ECHO_T}$ac_header_compiler" >&6
6184 # Is the header present?
6185 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6187 cat >conftest.$ac_ext <<_ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 #include <$ac_header>
6195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6198 grep -v '^ *+' conftest.er1 >conftest.err
6200 cat conftest.err >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } >/dev/null; then
6203 if test -s conftest.err; then
6204 ac_cpp_err=$ac_c_preproc_warn_flag
6205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6212 if test -z "$ac_cpp_err"; then
6213 ac_header_preproc=yes
6215 echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6218 ac_header_preproc=no
6220 rm -f conftest.err conftest.$ac_ext
6221 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6222 echo "${ECHO_T}$ac_header_preproc" >&6
6224 # So? What about this header?
6225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6231 ac_header_preproc=yes
6234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6237 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6241 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6248 ## ----------------------------------- ##
6250 ## ----------------------------------- ##
6253 sed "s/^/$as_me: WARNING: /" >&2
6256 echo "$as_me:$LINENO: checking for $ac_header" >&5
6257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 eval "$as_ac_Header=\$ac_header_preproc"
6263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6268 cat >>confdefs.h <<_ACEOF
6269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6277 for ac_header in langinfo.h
6279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6281 echo "$as_me:$LINENO: checking for $ac_header" >&5
6282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6289 # Is the header compilable?
6290 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6292 cat >conftest.$ac_ext <<_ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6298 $ac_includes_default
6299 #include <$ac_header>
6301 rm -f conftest.$ac_objext
6302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6303 (eval $ac_compile) 2>conftest.er1
6305 grep -v '^ *+' conftest.er1 >conftest.err
6307 cat conftest.err >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } &&
6310 { ac_try='test -z "$ac_c_werror_flag"
6311 || test ! -s conftest.err'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; } &&
6317 { ac_try='test -s conftest.$ac_objext'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; }; then
6323 ac_header_compiler=yes
6325 echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6328 ac_header_compiler=no
6330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6332 echo "${ECHO_T}$ac_header_compiler" >&6
6334 # Is the header present?
6335 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6337 cat >conftest.$ac_ext <<_ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6343 #include <$ac_header>
6345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6348 grep -v '^ *+' conftest.er1 >conftest.err
6350 cat conftest.err >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } >/dev/null; then
6353 if test -s conftest.err; then
6354 ac_cpp_err=$ac_c_preproc_warn_flag
6355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6362 if test -z "$ac_cpp_err"; then
6363 ac_header_preproc=yes
6365 echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6368 ac_header_preproc=no
6370 rm -f conftest.err conftest.$ac_ext
6371 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6372 echo "${ECHO_T}$ac_header_preproc" >&6
6374 # So? What about this header?
6375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6381 ac_header_preproc=yes
6384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6387 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6391 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6398 ## ----------------------------------- ##
6400 ## ----------------------------------- ##
6403 sed "s/^/$as_me: WARNING: /" >&2
6406 echo "$as_me:$LINENO: checking for $ac_header" >&5
6407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 eval "$as_ac_Header=\$ac_header_preproc"
6413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6418 cat >>confdefs.h <<_ACEOF
6419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6427 echo "$as_me:$LINENO: checking for mbrtowc" >&5
6428 echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6
6429 if test "${ac_cv_func_mbrtowc+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 cat >conftest.$ac_ext <<_ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6438 /* Define mbrtowc to an innocuous variant, in case <limits.h> declares mbrtowc.
6439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6440 #define mbrtowc innocuous_mbrtowc
6442 /* System header to define __stub macros and hopefully few prototypes,
6443 which can conflict with char mbrtowc (); below.
6444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6445 <limits.h> exists even on freestanding compilers. */
6448 # include <limits.h>
6450 # include <assert.h>
6455 /* Override any gcc2 internal prototype to avoid an error. */
6460 /* We use char because int might match the return type of a gcc2
6461 builtin and then its argument prototype would still apply. */
6463 /* The GNU C library defines this for functions which it implements
6464 to always fail with ENOSYS. Some functions are actually named
6465 something starting with __ and the normal name is an alias. */
6466 #if defined (__stub_mbrtowc) || defined (__stub___mbrtowc)
6469 char (*f) () = mbrtowc;
6478 return f != mbrtowc;
6483 rm -f conftest.$ac_objext conftest$ac_exeext
6484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6485 (eval $ac_link) 2>conftest.er1
6487 grep -v '^ *+' conftest.er1 >conftest.err
6489 cat conftest.err >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } &&
6492 { ac_try='test -z "$ac_c_werror_flag"
6493 || test ! -s conftest.err'
6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; } &&
6499 { ac_try='test -s conftest$ac_exeext'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; }; then
6505 ac_cv_func_mbrtowc=yes
6507 echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.$ac_ext >&5
6510 ac_cv_func_mbrtowc=no
6512 rm -f conftest.err conftest.$ac_objext \
6513 conftest$ac_exeext conftest.$ac_ext
6515 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
6516 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
6517 if test $ac_cv_func_mbrtowc = yes; then
6518 cat >>confdefs.h <<\_ACEOF
6519 #define HAVE_MBRTOWC 1
6524 echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
6525 echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
6526 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6529 cat >conftest.$ac_ext <<_ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6535 /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
6536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6537 #define mbsrtowcs innocuous_mbsrtowcs
6539 /* System header to define __stub macros and hopefully few prototypes,
6540 which can conflict with char mbsrtowcs (); below.
6541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6542 <limits.h> exists even on freestanding compilers. */
6545 # include <limits.h>
6547 # include <assert.h>
6552 /* Override any gcc2 internal prototype to avoid an error. */
6557 /* We use char because int might match the return type of a gcc2
6558 builtin and then its argument prototype would still apply. */
6560 /* The GNU C library defines this for functions which it implements
6561 to always fail with ENOSYS. Some functions are actually named
6562 something starting with __ and the normal name is an alias. */
6563 #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
6566 char (*f) () = mbsrtowcs;
6575 return f != mbsrtowcs;
6580 rm -f conftest.$ac_objext conftest$ac_exeext
6581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6582 (eval $ac_link) 2>conftest.er1
6584 grep -v '^ *+' conftest.er1 >conftest.err
6586 cat conftest.err >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } &&
6589 { ac_try='test -z "$ac_c_werror_flag"
6590 || test ! -s conftest.err'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; } &&
6596 { ac_try='test -s conftest$ac_exeext'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; }; then
6602 ac_cv_func_mbsrtowcs=yes
6604 echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6607 ac_cv_func_mbsrtowcs=no
6609 rm -f conftest.err conftest.$ac_objext \
6610 conftest$ac_exeext conftest.$ac_ext
6612 echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
6613 echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
6614 if test $ac_cv_func_mbsrtowcs = yes; then
6615 cat >>confdefs.h <<\_ACEOF
6616 #define HAVE_MBSRTOWCS 1
6621 echo "$as_me:$LINENO: checking for wcwidth" >&5
6622 echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
6623 if test "${ac_cv_func_wcwidth+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 cat >conftest.$ac_ext <<_ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6632 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
6633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6634 #define wcwidth innocuous_wcwidth
6636 /* System header to define __stub macros and hopefully few prototypes,
6637 which can conflict with char wcwidth (); below.
6638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6639 <limits.h> exists even on freestanding compilers. */
6642 # include <limits.h>
6644 # include <assert.h>
6649 /* 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. */
6657 /* The GNU C library defines this for functions which it implements
6658 to always fail with ENOSYS. Some functions are actually named
6659 something starting with __ and the normal name is an alias. */
6660 #if defined (__stub_wcwidth) || defined (__stub___wcwidth)
6663 char (*f) () = wcwidth;
6672 return f != wcwidth;
6677 rm -f conftest.$ac_objext conftest$ac_exeext
6678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6679 (eval $ac_link) 2>conftest.er1
6681 grep -v '^ *+' conftest.er1 >conftest.err
6683 cat conftest.err >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } &&
6686 { ac_try='test -z "$ac_c_werror_flag"
6687 || test ! -s conftest.err'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; } &&
6693 { ac_try='test -s conftest$ac_exeext'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6699 ac_cv_func_wcwidth=yes
6701 echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6704 ac_cv_func_wcwidth=no
6706 rm -f conftest.err conftest.$ac_objext \
6707 conftest$ac_exeext conftest.$ac_ext
6709 echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
6710 echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
6711 if test $ac_cv_func_wcwidth = yes; then
6712 cat >>confdefs.h <<\_ACEOF
6713 #define HAVE_WCWIDTH 1
6718 if test "$ac_cv_func_wcwidth" = no && test "$ac_cv_header_wchar_h" = yes; then
6719 WCWIDTH_OBJ=wcwidth.o
6725 echo "$as_me:$LINENO: checking for mbstate_t" >&5
6726 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
6727 if test "${bash_cv_have_mbstate_t+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 cat >conftest.$ac_ext <<_ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h. */
6750 rm -f conftest.$ac_objext conftest$ac_exeext
6751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6752 (eval $ac_link) 2>conftest.er1
6754 grep -v '^ *+' conftest.er1 >conftest.err
6756 cat conftest.err >&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); } &&
6759 { ac_try='test -z "$ac_c_werror_flag"
6760 || test ! -s conftest.err'
6761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); }; } &&
6766 { ac_try='test -s conftest$ac_exeext'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; }; then
6772 bash_cv_have_mbstate_t=yes
6774 echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6777 bash_cv_have_mbstate_t=no
6779 rm -f conftest.err conftest.$ac_objext \
6780 conftest$ac_exeext conftest.$ac_ext
6782 echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5
6783 echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
6784 if test $bash_cv_have_mbstate_t = yes; then
6785 cat >>confdefs.h <<\_ACEOF
6786 #define HAVE_MBSTATE_T 1
6791 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
6792 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6793 if test "${bash_cv_langinfo_codeset+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 cat >conftest.$ac_ext <<_ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6802 #include <langinfo.h>
6806 char* cs = nl_langinfo(CODESET);
6811 rm -f conftest.$ac_objext conftest$ac_exeext
6812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6813 (eval $ac_link) 2>conftest.er1
6815 grep -v '^ *+' conftest.er1 >conftest.err
6817 cat conftest.err >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } &&
6820 { ac_try='test -z "$ac_c_werror_flag"
6821 || test ! -s conftest.err'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; } &&
6827 { ac_try='test -s conftest$ac_exeext'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; }; then
6833 bash_cv_langinfo_codeset=yes
6835 echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.$ac_ext >&5
6838 bash_cv_langinfo_codeset=no
6840 rm -f conftest.err conftest.$ac_objext \
6841 conftest$ac_exeext conftest.$ac_ext
6843 echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
6844 echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
6845 if test $bash_cv_langinfo_codeset = yes; then
6846 cat >>confdefs.h <<\_ACEOF
6847 #define HAVE_LANGINFO_CODESET 1
6855 *cray*) LOCAL_CFLAGS=-DCRAY ;;
6856 *s390*) LOCAL_CFLAGS=-fsigned-char ;;
6860 isc*) LOCAL_CFLAGS=-Disc386 ;;
6863 # shared library configuration section
6865 # Shared object configuration section. These values are generated by
6866 # ${srcdir}/support/shobj-conf
6868 if test -f ${srcdir}/support/shobj-conf; then
6869 echo "$as_me:$LINENO: checking configuration for building shared libraries" >&5
6870 echo $ECHO_N "checking configuration for building shared libraries... $ECHO_C" >&6
6871 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
6884 echo "$as_me:$LINENO: result: $SHLIB_STATUS" >&5
6885 echo "${ECHO_T}$SHLIB_STATUS" >&6
6887 # SHLIB_STATUS is either `supported' or `unsupported'. If it's
6888 # `unsupported', turn off any default shared library building
6889 if test "$SHLIB_STATUS" = 'unsupported'; then
6893 # shared library versioning
6894 # quoted for m4 so I can use character classes
6895 SHLIB_MAJOR=`expr "$LIBVERSION" : '\([0-9]\)\..*'`
6896 SHLIB_MINOR=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`
6901 if test "$opt_static_libs" = "yes"; then
6902 STATIC_TARGET=static
6903 STATIC_INSTALL_TARGET=install-static
6905 if test "$opt_shared_libs" = "yes"; then
6906 SHARED_TARGET=shared
6907 SHARED_INSTALL_TARGET=install-shared
6916 msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file
6917 *) BUILD_DIR=`pwd` ;;
6937 ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile"
6938 ac_config_commands="$ac_config_commands default"
6939 cat >confcache <<\_ACEOF
6940 # This file is a shell script that caches the results of configure
6941 # tests run on this system so they can be shared between configure
6942 # scripts and configure runs, see configure's option --config-cache.
6943 # It is not useful on other systems. If it contains results you don't
6944 # want to keep, you may remove or edit it.
6946 # config.status only pays attention to the cache file if you give it
6947 # the --recheck option to rerun configure.
6949 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6950 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6955 # The following way of writing the cache mishandles newlines in values,
6956 # but we know of no workaround that is simple, portable, and efficient.
6957 # So, don't put newlines in cache variables' values.
6958 # Ultrix sh set writes to stderr and can't be redirected directly,
6959 # and sets the high bit in the cache file unless we assign to the vars.
6962 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6964 # `set' does not quote correctly, so add quotes (double-quote
6965 # substitution turns \\\\ into \\, and sed turns \\ into \).
6968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6971 # `set' quotes correctly as required by POSIX, so do not add quotes.
6973 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6980 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6982 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6984 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6985 if test -w $cache_file; then
6986 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6987 cat confcache >$cache_file
6989 echo "not updating unwritable cache $cache_file"
6994 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6995 # Let make expand exec_prefix.
6996 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6998 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6999 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7000 # trailing colons and then remove the whole line if VPATH becomes empty
7001 # (actually we leave an empty line to preserve line numbers).
7002 if test "x$srcdir" = x.; then
7003 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7004 s/:*\$(srcdir):*/:/;
7005 s/:*\${srcdir}:*/:/;
7007 s/^\([^=]*=[ ]*\):*/\1/;
7013 DEFS=-DHAVE_CONFIG_H
7017 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7018 # 1. Remove the extension, and $U if already installed.
7019 ac_i=`echo "$ac_i" |
7020 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7022 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7023 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7027 LTLIBOBJS=$ac_ltlibobjs
7031 : ${CONFIG_STATUS=./config.status}
7032 ac_clean_files_save=$ac_clean_files
7033 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7034 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7035 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7036 cat >$CONFIG_STATUS <<_ACEOF
7038 # Generated by $as_me.
7039 # Run this file to recreate the current configuration.
7040 # Compiler output produced by configure, useful for debugging
7041 # configure, is in config.log if it exists.
7046 SHELL=\${CONFIG_SHELL-$SHELL}
7049 cat >>$CONFIG_STATUS <<\_ACEOF
7050 ## --------------------- ##
7051 ## M4sh Initialization. ##
7052 ## --------------------- ##
7054 # Be Bourne compatible
7055 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7058 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7059 # is contrary to our usage. Disable this feature.
7060 alias -g '${1+"$@"}'='"$@"'
7061 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7064 DUALCASE=1; export DUALCASE # for MKS sh
7066 # Support unset when possible.
7067 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7074 # Work around bugs in pre-3.0 UWIN ksh.
7075 $as_unset ENV MAIL MAILPATH
7082 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7083 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7084 LC_TELEPHONE LC_TIME
7086 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7087 eval $as_var=C; export $as_var
7093 # Required to use basename.
7094 if expr a : '\(a\)' >/dev/null 2>&1; then
7100 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7101 as_basename=basename
7107 # Name of the executable.
7108 as_me=`$as_basename "$0" ||
7109 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7110 X"$0" : 'X\(//\)$' \| \
7111 X"$0" : 'X\(/\)$' \| \
7112 . : '\(.\)' 2>/dev/null ||
7114 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7115 /^X\/\(\/\/\)$/{ s//\1/; q; }
7116 /^X\/\(\/\).*/{ s//\1/; q; }
7120 # PATH needs CR, and LINENO needs CR and PATH.
7121 # Avoid depending upon Character Ranges.
7122 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7123 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7124 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7125 as_cr_digits='0123456789'
7126 as_cr_alnum=$as_cr_Letters$as_cr_digits
7128 # The user is always right.
7129 if test "${PATH_SEPARATOR+set}" != set; then
7130 echo "#! /bin/sh" >conf$$.sh
7131 echo "exit 0" >>conf$$.sh
7133 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7145 test "x$as_lineno_1" != "x$as_lineno_2" &&
7146 test "x$as_lineno_3" = "x$as_lineno_2" || {
7147 # Find who we are. Look in the path if we contain no path at all
7150 *[\\/]* ) as_myself=$0 ;;
7151 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 test -z "$as_dir" && as_dir=.
7156 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7161 # We did not find ourselves, most probably we were run as `sh COMMAND'
7162 # in which case we are not to be found in the path.
7163 if test "x$as_myself" = x; then
7166 if test ! -f "$as_myself"; then
7167 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7168 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7169 { (exit 1); exit 1; }; }
7171 case $CONFIG_SHELL in
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7177 test -z "$as_dir" && as_dir=.
7178 for as_base in sh bash ksh sh5; do
7181 if ("$as_dir/$as_base" -c '
7184 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7185 test "x$as_lineno_1" != "x$as_lineno_2" &&
7186 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7187 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7188 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7189 CONFIG_SHELL=$as_dir/$as_base
7191 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7199 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7200 # uniformly replaced by the line number. The first 'sed' inserts a
7201 # line-number line before each line; the second 'sed' does the real
7202 # work. The second script uses 'N' to pair each line-number line
7203 # with the numbered line, and appends trailing '-' during
7204 # substitution so that $LINENO is not a special case at line end.
7205 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7206 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7207 sed '=' <$as_myself |
7212 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7215 s,^['$as_cr_digits']*\n,,
7217 chmod +x $as_me.lineno ||
7218 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7219 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7220 { (exit 1); exit 1; }; }
7222 # Don't try to exec as it changes $[0], causing all sort of problems
7223 # (the dirname of $[0] is not the place where we might find the
7224 # original and so on. Autoconf is especially sensible to this).
7226 # Exit status is that of the last command.
7231 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7232 *c*,-n*) ECHO_N= ECHO_C='
7234 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7235 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7238 if expr a : '\(a\)' >/dev/null 2>&1; then
7244 rm -f conf$$ conf$$.exe conf$$.file
7246 if ln -s conf$$.file conf$$ 2>/dev/null; then
7247 # We could just check for DJGPP; but this test a) works b) is more generic
7248 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7249 if test -f conf$$.exe; then
7250 # Don't use ln at all; we don't have any links
7255 elif ln conf$$.file conf$$ 2>/dev/null; then
7260 rm -f conf$$ conf$$.exe conf$$.file
7262 if mkdir -p . 2>/dev/null; then
7265 test -d ./-p && rmdir ./-p
7269 as_executable_p="test -f"
7271 # Sed expression to map a string onto a valid CPP name.
7272 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7274 # Sed expression to map a string onto a valid variable name.
7275 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7279 # We need space, tab and new line, in precisely that order.
7289 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7290 # report actual input values of CONFIG_FILES etc. instead of their
7291 # values after options handling. Logging --version etc. is OK.
7295 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7296 ## Running $as_me. ##
7301 This file was extended by readline $as_me 4.3, which was
7302 generated by GNU Autoconf 2.59. Invocation command line was
7304 CONFIG_FILES = $CONFIG_FILES
7305 CONFIG_HEADERS = $CONFIG_HEADERS
7306 CONFIG_LINKS = $CONFIG_LINKS
7307 CONFIG_COMMANDS = $CONFIG_COMMANDS
7311 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7315 # Files that config.status was made for.
7316 if test -n "$ac_config_files"; then
7317 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7320 if test -n "$ac_config_headers"; then
7321 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7324 if test -n "$ac_config_links"; then
7325 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7328 if test -n "$ac_config_commands"; then
7329 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7332 cat >>$CONFIG_STATUS <<\_ACEOF
7335 \`$as_me' instantiates files from templates according to the
7336 current configuration.
7338 Usage: $0 [OPTIONS] [FILE]...
7340 -h, --help print this help, then exit
7341 -V, --version print version number, then exit
7342 -q, --quiet do not print progress messages
7343 -d, --debug don't remove temporary files
7344 --recheck update $as_me by reconfiguring in the same conditions
7345 --file=FILE[:TEMPLATE]
7346 instantiate the configuration file FILE
7347 --header=FILE[:TEMPLATE]
7348 instantiate the configuration header FILE
7350 Configuration files:
7353 Configuration headers:
7356 Configuration commands:
7362 cat >>$CONFIG_STATUS <<_ACEOF
7364 readline config.status 4.3
7365 configured by $0, generated by GNU Autoconf 2.59,
7366 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7368 Copyright (C) 2003 Free Software Foundation, Inc.
7369 This config.status script is free software; the Free Software Foundation
7370 gives unlimited permission to copy, distribute and modify it."
7375 cat >>$CONFIG_STATUS <<\_ACEOF
7376 # If no file are specified by the user, then we need to provide default
7377 # value. By we need to know if files were specified by the user.
7383 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7384 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7392 *) # This is not an option, so the user has probably given explicit
7395 ac_need_defaults=false;;
7399 # Handling of the options.
7401 cat >>$CONFIG_STATUS <<\_ACEOF
7402 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7404 --version | --vers* | -V )
7405 echo "$ac_cs_version"; exit 0 ;;
7407 # Conflict between --help and --header
7408 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7409 Try \`$0 --help' for more information." >&5
7410 echo "$as_me: error: ambiguous option: $1
7411 Try \`$0 --help' for more information." >&2;}
7412 { (exit 1); exit 1; }; };;
7413 --help | --hel | -h )
7414 echo "$ac_cs_usage"; exit 0 ;;
7415 --debug | --d* | -d )
7417 --file | --fil | --fi | --f )
7419 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7420 ac_need_defaults=false;;
7421 --header | --heade | --head | --hea )
7423 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7424 ac_need_defaults=false;;
7425 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7426 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7430 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7431 Try \`$0 --help' for more information." >&5
7432 echo "$as_me: error: unrecognized option: $1
7433 Try \`$0 --help' for more information." >&2;}
7434 { (exit 1); exit 1; }; } ;;
7436 *) ac_config_targets="$ac_config_targets $1" ;;
7442 ac_configure_extra_args=
7444 if $ac_cs_silent; then
7446 ac_configure_extra_args="$ac_configure_extra_args --silent"
7450 cat >>$CONFIG_STATUS <<_ACEOF
7451 if \$ac_cs_recheck; then
7452 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7453 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7462 cat >>$CONFIG_STATUS <<\_ACEOF
7463 for ac_config_target in $ac_config_targets
7465 case "$ac_config_target" in
7466 # Handling of arguments.
7467 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7468 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7469 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
7470 "shlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES shlib/Makefile" ;;
7471 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7472 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7473 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7474 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7475 { (exit 1); exit 1; }; };;
7479 # If the user did not use the arguments to specify the items to instantiate,
7480 # then the envvar interface is used. Set only those that are not.
7481 # We use the long form for the default assignment because of an extremely
7482 # bizarre bug on SunOS 4.1.3.
7483 if $ac_need_defaults; then
7484 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7485 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7486 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7489 # Have a temporary directory for convenience. Make it in the build tree
7490 # simply because there is no reason to put it here, and in addition,
7491 # creating and moving files from /tmp can sometimes cause problems.
7492 # Create a temporary directory, and hook for its removal unless debugging.
7495 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7496 trap '{ (exit 1); exit 1; }' 1 2 13 15
7499 # Create a (secure) tmp directory for tmp files.
7502 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7503 test -n "$tmp" && test -d "$tmp"
7506 tmp=./confstat$$-$RANDOM
7507 (umask 077 && mkdir $tmp)
7510 echo "$me: cannot create a temporary directory in ." >&2
7511 { (exit 1); exit 1; }
7516 cat >>$CONFIG_STATUS <<_ACEOF
7519 # CONFIG_FILES section.
7522 # No need to generate the scripts if there are no CONFIG_FILES.
7523 # This happens for instance when ./config.status config.h
7524 if test -n "\$CONFIG_FILES"; then
7525 # Protect against being on the right side of a sed subst in config.status.
7526 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7527 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7528 s,@SHELL@,$SHELL,;t t
7529 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7530 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7531 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7532 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7533 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7534 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7535 s,@exec_prefix@,$exec_prefix,;t t
7536 s,@prefix@,$prefix,;t t
7537 s,@program_transform_name@,$program_transform_name,;t t
7538 s,@bindir@,$bindir,;t t
7539 s,@sbindir@,$sbindir,;t t
7540 s,@libexecdir@,$libexecdir,;t t
7541 s,@datadir@,$datadir,;t t
7542 s,@sysconfdir@,$sysconfdir,;t t
7543 s,@sharedstatedir@,$sharedstatedir,;t t
7544 s,@localstatedir@,$localstatedir,;t t
7545 s,@libdir@,$libdir,;t t
7546 s,@includedir@,$includedir,;t t
7547 s,@oldincludedir@,$oldincludedir,;t t
7548 s,@infodir@,$infodir,;t t
7549 s,@mandir@,$mandir,;t t
7550 s,@build_alias@,$build_alias,;t t
7551 s,@host_alias@,$host_alias,;t t
7552 s,@target_alias@,$target_alias,;t t
7554 s,@ECHO_C@,$ECHO_C,;t t
7555 s,@ECHO_N@,$ECHO_N,;t t
7556 s,@ECHO_T@,$ECHO_T,;t t
7558 s,@build@,$build,;t t
7559 s,@build_cpu@,$build_cpu,;t t
7560 s,@build_vendor@,$build_vendor,;t t
7561 s,@build_os@,$build_os,;t t
7563 s,@host_cpu@,$host_cpu,;t t
7564 s,@host_vendor@,$host_vendor,;t t
7565 s,@host_os@,$host_os,;t t
7566 s,@SET_MAKE@,$SET_MAKE,;t t
7568 s,@CFLAGS@,$CFLAGS,;t t
7569 s,@LDFLAGS@,$LDFLAGS,;t t
7570 s,@CPPFLAGS@,$CPPFLAGS,;t t
7571 s,@ac_ct_CC@,$ac_ct_CC,;t t
7572 s,@EXEEXT@,$EXEEXT,;t t
7573 s,@OBJEXT@,$OBJEXT,;t t
7575 s,@EGREP@,$EGREP,;t t
7576 s,@CROSS_COMPILING_FLAG@,$CROSS_COMPILING_FLAG,;t t
7577 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7578 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7579 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7580 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7582 s,@RANLIB@,$RANLIB,;t t
7583 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7584 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
7585 s,@WCWIDTH_OBJ@,$WCWIDTH_OBJ,;t t
7586 s,@SHOBJ_CC@,$SHOBJ_CC,;t t
7587 s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
7588 s,@SHOBJ_LD@,$SHOBJ_LD,;t t
7589 s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
7590 s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
7591 s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
7592 s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
7593 s,@SHLIB_STATUS@,$SHLIB_STATUS,;t t
7594 s,@SHLIB_XLDFLAGS@,$SHLIB_XLDFLAGS,;t t
7595 s,@SHLIB_LIBSUFF@,$SHLIB_LIBSUFF,;t t
7596 s,@SHLIB_LIBVERSION@,$SHLIB_LIBVERSION,;t t
7597 s,@SHLIB_LIBS@,$SHLIB_LIBS,;t t
7598 s,@SHLIB_MAJOR@,$SHLIB_MAJOR,;t t
7599 s,@SHLIB_MINOR@,$SHLIB_MINOR,;t t
7600 s,@STATIC_TARGET@,$STATIC_TARGET,;t t
7601 s,@SHARED_TARGET@,$SHARED_TARGET,;t t
7602 s,@STATIC_INSTALL_TARGET@,$STATIC_INSTALL_TARGET,;t t
7603 s,@SHARED_INSTALL_TARGET@,$SHARED_INSTALL_TARGET,;t t
7604 s,@BUILD_DIR@,$BUILD_DIR,;t t
7605 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
7606 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
7607 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
7608 s,@ARFLAGS@,$ARFLAGS,;t t
7609 s,@LIBVERSION@,$LIBVERSION,;t t
7610 s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
7611 s,@LIBOBJS@,$LIBOBJS,;t t
7612 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7617 cat >>$CONFIG_STATUS <<\_ACEOF
7618 # Split the substitutions into bite-sized pieces for seds with
7619 # small command number limits, like on Digital OSF/1 and HP-UX.
7621 ac_sed_frag=1 # Number of current file.
7622 ac_beg=1 # First line for current file.
7623 ac_end=$ac_max_sed_lines # Line after last line for current file.
7626 while $ac_more_lines; do
7627 if test $ac_beg -gt 1; then
7628 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7630 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7632 if test ! -s $tmp/subs.frag; then
7635 # The purpose of the label and of the branching condition is to
7636 # speed up the sed processing (if there are no `@' at all, there
7637 # is no need to browse any of the substitutions).
7638 # These are the two extra sed commands mentioned above.
7640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7641 if test -z "$ac_sed_cmds"; then
7642 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7644 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7646 ac_sed_frag=`expr $ac_sed_frag + 1`
7648 ac_end=`expr $ac_end + $ac_max_sed_lines`
7651 if test -z "$ac_sed_cmds"; then
7654 fi # test -n "$CONFIG_FILES"
7657 cat >>$CONFIG_STATUS <<\_ACEOF
7658 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7659 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7661 - | *:- | *:-:* ) # input from stdin
7663 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7664 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7665 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7666 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7667 * ) ac_file_in=$ac_file.in ;;
7670 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7671 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7672 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7673 X"$ac_file" : 'X\(//\)[^/]' \| \
7674 X"$ac_file" : 'X\(//\)$' \| \
7675 X"$ac_file" : 'X\(/\)' \| \
7676 . : '\(.\)' 2>/dev/null ||
7678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7680 /^X\(\/\/\)$/{ s//\1/; q; }
7681 /^X\(\/\).*/{ s//\1/; q; }
7683 { if $as_mkdir_p; then
7688 while test ! -d "$as_dir"; do
7689 as_dirs="$as_dir $as_dirs"
7690 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7691 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7692 X"$as_dir" : 'X\(//\)[^/]' \| \
7693 X"$as_dir" : 'X\(//\)$' \| \
7694 X"$as_dir" : 'X\(/\)' \| \
7695 . : '\(.\)' 2>/dev/null ||
7697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7698 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7699 /^X\(\/\/\)$/{ s//\1/; q; }
7700 /^X\(\/\).*/{ s//\1/; q; }
7703 test ! -n "$as_dirs" || mkdir $as_dirs
7704 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7705 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7706 { (exit 1); exit 1; }; }; }
7710 if test "$ac_dir" != .; then
7711 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7712 # A "../" for each directory in $ac_dir_suffix.
7713 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7715 ac_dir_suffix= ac_top_builddir=
7719 .) # No --srcdir option. We are building in place.
7721 if test -z "$ac_top_builddir"; then
7724 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7726 [\\/]* | ?:[\\/]* ) # Absolute path.
7727 ac_srcdir=$srcdir$ac_dir_suffix;
7728 ac_top_srcdir=$srcdir ;;
7730 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7731 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7734 # Do not use `cd foo && pwd` to compute absolute paths, because
7735 # the directories may not exist.
7737 .) ac_abs_builddir="$ac_dir";;
7740 .) ac_abs_builddir=`pwd`;;
7741 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7742 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7745 case $ac_abs_builddir in
7746 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7748 case ${ac_top_builddir}. in
7749 .) ac_abs_top_builddir=$ac_abs_builddir;;
7750 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7751 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7754 case $ac_abs_builddir in
7755 .) ac_abs_srcdir=$ac_srcdir;;
7758 .) ac_abs_srcdir=$ac_abs_builddir;;
7759 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7760 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7763 case $ac_abs_builddir in
7764 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7766 case $ac_top_srcdir in
7767 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7768 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7769 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7775 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7776 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7779 if test x"$ac_file" != x-; then
7780 { echo "$as_me:$LINENO: creating $ac_file" >&5
7781 echo "$as_me: creating $ac_file" >&6;}
7784 # Let's still pretend it is `configure' which instantiates (i.e., don't
7785 # use $as_me), people would be surprised to read:
7786 # /* config.h. Generated by config.status. */
7787 if test x"$ac_file" = x-; then
7790 configure_input="$ac_file. "
7792 configure_input=$configure_input"Generated from `echo $ac_file_in |
7793 sed 's,.*/,,'` by configure."
7795 # First look for the input files in the build tree, otherwise in the
7797 ac_file_inputs=`IFS=:
7798 for f in $ac_file_in; do
7800 -) echo $tmp/stdin ;;
7802 # Absolute (can't be DOS-style, as IFS=:)
7803 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7804 echo "$as_me: error: cannot find input file: $f" >&2;}
7805 { (exit 1); exit 1; }; }
7808 if test -f "$f"; then
7811 elif test -f "$srcdir/$f"; then
7816 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7817 echo "$as_me: error: cannot find input file: $f" >&2;}
7818 { (exit 1); exit 1; }; }
7821 done` || { (exit 1); exit 1; }
7823 cat >>$CONFIG_STATUS <<_ACEOF
7827 cat >>$CONFIG_STATUS <<\_ACEOF
7829 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7830 s,@configure_input@,$configure_input,;t t
7831 s,@srcdir@,$ac_srcdir,;t t
7832 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7833 s,@top_srcdir@,$ac_top_srcdir,;t t
7834 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7835 s,@builddir@,$ac_builddir,;t t
7836 s,@abs_builddir@,$ac_abs_builddir,;t t
7837 s,@top_builddir@,$ac_top_builddir,;t t
7838 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7839 s,@INSTALL@,$ac_INSTALL,;t t
7840 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7842 if test x"$ac_file" != x-; then
7843 mv $tmp/out $ac_file
7851 cat >>$CONFIG_STATUS <<\_ACEOF
7854 # CONFIG_HEADER section.
7857 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7858 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7860 # ac_d sets the value in "#define NAME VALUE" lines.
7861 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7862 ac_dB='[ ].*$,\1#\2'
7865 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7866 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7867 ac_uB='$,\1#\2define\3'
7871 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7872 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7874 - | *:- | *:-:* ) # input from stdin
7876 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7877 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7878 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7879 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7880 * ) ac_file_in=$ac_file.in ;;
7883 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7884 echo "$as_me: creating $ac_file" >&6;}
7886 # First look for the input files in the build tree, otherwise in the
7888 ac_file_inputs=`IFS=:
7889 for f in $ac_file_in; do
7891 -) echo $tmp/stdin ;;
7893 # Absolute (can't be DOS-style, as IFS=:)
7894 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7895 echo "$as_me: error: cannot find input file: $f" >&2;}
7896 { (exit 1); exit 1; }; }
7897 # Do quote $f, to prevent DOS paths from being IFS'd.
7900 if test -f "$f"; then
7903 elif test -f "$srcdir/$f"; then
7908 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7909 echo "$as_me: error: cannot find input file: $f" >&2;}
7910 { (exit 1); exit 1; }; }
7913 done` || { (exit 1); exit 1; }
7914 # Remove the trailing spaces.
7915 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7919 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7920 # `conftest.undefs', that substitutes the proper values into
7921 # config.h.in to produce config.h. The first handles `#define'
7922 # templates, and the second `#undef' templates.
7923 # And first: Protect against being on the right side of a sed subst in
7924 # config.status. Protect against being in an unquoted here document
7926 rm -f conftest.defines conftest.undefs
7927 # Using a here document instead of a string reduces the quoting nightmare.
7928 # Putting comments in sed scripts is not portable.
7930 # `end' is used to avoid that the second main sed command (meant for
7931 # 0-ary CPP macros) applies to n-ary macro definitions.
7932 # See the Autoconf documentation for `clear'.
7933 cat >confdef2sed.sed <<\_ACEOF
7938 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7940 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7943 # If some macros were called several times there might be several times
7944 # the same #defines, which is useless. Nevertheless, we may not want to
7945 # sort them, since we want the *last* AC-DEFINE to be honored.
7946 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7947 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7948 rm -f confdef2sed.sed
7950 # This sed command replaces #undef with comments. This is necessary, for
7951 # example, in the case of _POSIX_SOURCE, which is predefined and required
7952 # on some systems where configure will not decide to define it.
7953 cat >>conftest.undefs <<\_ACEOF
7954 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7957 # Break up conftest.defines because some shells have a limit on the size
7958 # of here documents, and old seds have small limits too (100 cmds).
7959 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7960 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7961 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7962 echo ' :' >>$CONFIG_STATUS
7964 while grep . conftest.defines >/dev/null
7966 # Write a limited-size here document to $tmp/defines.sed.
7967 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7968 # Speed up: don't consider the non `#define' lines.
7969 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7970 # Work around the forget-to-reset-the-flag bug.
7971 echo 't clr' >>$CONFIG_STATUS
7972 echo ': clr' >>$CONFIG_STATUS
7973 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7975 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7979 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7980 rm -f conftest.defines
7981 mv conftest.tail conftest.defines
7983 rm -f conftest.defines
7984 echo ' fi # grep' >>$CONFIG_STATUS
7985 echo >>$CONFIG_STATUS
7987 # Break up conftest.undefs because some shells have a limit on the size
7988 # of here documents, and old seds have small limits too (100 cmds).
7989 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7991 while grep . conftest.undefs >/dev/null
7993 # Write a limited-size here document to $tmp/undefs.sed.
7994 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7995 # Speed up: don't consider the non `#undef'
7996 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7997 # Work around the forget-to-reset-the-flag bug.
7998 echo 't clr' >>$CONFIG_STATUS
7999 echo ': clr' >>$CONFIG_STATUS
8000 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8002 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8006 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8007 rm -f conftest.undefs
8008 mv conftest.tail conftest.undefs
8010 rm -f conftest.undefs
8012 cat >>$CONFIG_STATUS <<\_ACEOF
8013 # Let's still pretend it is `configure' which instantiates (i.e., don't
8014 # use $as_me), people would be surprised to read:
8015 # /* config.h. Generated by config.status. */
8016 if test x"$ac_file" = x-; then
8017 echo "/* Generated by configure. */" >$tmp/config.h
8019 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8021 cat $tmp/in >>$tmp/config.h
8023 if test x"$ac_file" != x-; then
8024 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8025 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8026 echo "$as_me: $ac_file is unchanged" >&6;}
8028 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8029 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8030 X"$ac_file" : 'X\(//\)[^/]' \| \
8031 X"$ac_file" : 'X\(//\)$' \| \
8032 X"$ac_file" : 'X\(/\)' \| \
8033 . : '\(.\)' 2>/dev/null ||
8035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8036 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8037 /^X\(\/\/\)$/{ s//\1/; q; }
8038 /^X\(\/\).*/{ s//\1/; q; }
8040 { if $as_mkdir_p; then
8045 while test ! -d "$as_dir"; do
8046 as_dirs="$as_dir $as_dirs"
8047 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8048 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8049 X"$as_dir" : 'X\(//\)[^/]' \| \
8050 X"$as_dir" : 'X\(//\)$' \| \
8051 X"$as_dir" : 'X\(/\)' \| \
8052 . : '\(.\)' 2>/dev/null ||
8054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8055 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8056 /^X\(\/\/\)$/{ s//\1/; q; }
8057 /^X\(\/\).*/{ s//\1/; q; }
8060 test ! -n "$as_dirs" || mkdir $as_dirs
8061 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8062 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8063 { (exit 1); exit 1; }; }; }
8066 mv $tmp/config.h $ac_file
8074 cat >>$CONFIG_STATUS <<\_ACEOF
8077 # CONFIG_COMMANDS section.
8079 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8080 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8081 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8082 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8083 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8084 X"$ac_dest" : 'X\(//\)[^/]' \| \
8085 X"$ac_dest" : 'X\(//\)$' \| \
8086 X"$ac_dest" : 'X\(/\)' \| \
8087 . : '\(.\)' 2>/dev/null ||
8089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8090 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8091 /^X\(\/\/\)$/{ s//\1/; q; }
8092 /^X\(\/\).*/{ s//\1/; q; }
8094 { if $as_mkdir_p; then
8099 while test ! -d "$as_dir"; do
8100 as_dirs="$as_dir $as_dirs"
8101 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8102 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8103 X"$as_dir" : 'X\(//\)[^/]' \| \
8104 X"$as_dir" : 'X\(//\)$' \| \
8105 X"$as_dir" : 'X\(/\)' \| \
8106 . : '\(.\)' 2>/dev/null ||
8108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8109 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8110 /^X\(\/\/\)$/{ s//\1/; q; }
8111 /^X\(\/\).*/{ s//\1/; q; }
8114 test ! -n "$as_dirs" || mkdir $as_dirs
8115 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8116 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8117 { (exit 1); exit 1; }; }; }
8121 if test "$ac_dir" != .; then
8122 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8123 # A "../" for each directory in $ac_dir_suffix.
8124 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8126 ac_dir_suffix= ac_top_builddir=
8130 .) # No --srcdir option. We are building in place.
8132 if test -z "$ac_top_builddir"; then
8135 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8137 [\\/]* | ?:[\\/]* ) # Absolute path.
8138 ac_srcdir=$srcdir$ac_dir_suffix;
8139 ac_top_srcdir=$srcdir ;;
8141 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8142 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8145 # Do not use `cd foo && pwd` to compute absolute paths, because
8146 # the directories may not exist.
8148 .) ac_abs_builddir="$ac_dir";;
8151 .) ac_abs_builddir=`pwd`;;
8152 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8153 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8156 case $ac_abs_builddir in
8157 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8159 case ${ac_top_builddir}. in
8160 .) ac_abs_top_builddir=$ac_abs_builddir;;
8161 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8162 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8165 case $ac_abs_builddir in
8166 .) ac_abs_srcdir=$ac_srcdir;;
8169 .) ac_abs_srcdir=$ac_abs_builddir;;
8170 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8171 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8174 case $ac_abs_builddir in
8175 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8177 case $ac_top_srcdir in
8178 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8179 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8180 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8185 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8186 echo "$as_me: executing $ac_dest commands" >&6;}
8189 # Makefile uses this timestamp file to record whether config.h is up to date.
8196 cat >>$CONFIG_STATUS <<\_ACEOF
8198 { (exit 0); exit 0; }
8200 chmod +x $CONFIG_STATUS
8201 ac_clean_files=$ac_clean_files_save
8204 # configure is writing to config.log, and then calls config.status.
8205 # config.status does its own redirection, appending to config.log.
8206 # Unfortunately, on DOS this fails, as config.log is still kept open
8207 # by configure, so config.status won't be able to write to it; its
8208 # output is simply discarded. So we exec the FD to /dev/null,
8209 # effectively closing config.log, so it can be properly (re)opened and
8210 # appended to by config.status. When coming back to configure, we
8211 # need to make the FD available again.
8212 if test "$no_create" != yes; then
8214 ac_config_status_args=
8215 test "$silent" = yes &&
8216 ac_config_status_args="$ac_config_status_args --quiet"
8218 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8220 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8221 # would make configure fail if this is the last instruction.
8222 $ac_cs_success || { (exit 1); exit 1; }