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.57 for readline 4.3.
6 # Report bugs to <bug-readline@gnu.org>.
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27 # Support unset when possible.
28 if (FOO=FOO; unset FOO) >/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 -n "`(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
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='readline'
271 PACKAGE_TARNAME='readline'
272 PACKAGE_VERSION='4.3'
273 PACKAGE_STRING='readline 4.3'
274 PACKAGE_BUGREPORT='bug-readline@gnu.org'
276 ac_unique_file="readline.h"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 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'
317 # Initialize some variables set by options.
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name=s,x,x,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 -version | --version | --versio | --versi | --vers | -V)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
783 \`configure' configures readline 4.3 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 if test -n "$ac_init_help"; then
843 case $ac_init_help in
844 short | recursive ) echo "Configuration of readline 4.3:";;
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --enable-static build static libraries [default=YES]
854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
856 --with-curses use the curses library instead of the termcap
859 Some influential environment variables:
860 CC C compiler command
861 CFLAGS C compiler flags
862 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
863 nonstandard directory <lib dir>
864 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
865 headers in a nonstandard directory <include dir>
868 Use these variables to override the choices made by `configure' or to help
869 it to find libraries and programs with nonstandard names/locations.
871 Report bugs to <bug-readline@gnu.org>.
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 ac_dir_suffix= ac_top_builddir=
891 .) # No --srcdir option. We are building in place.
893 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
907 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
908 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
909 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
910 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913 # Check for guested configure; otherwise get Cygnus style configure.
914 if test -f $ac_srcdir/configure.gnu; then
916 $SHELL $ac_srcdir/configure.gnu --help=recursive
917 elif test -f $ac_srcdir/configure; then
919 $SHELL $ac_srcdir/configure --help=recursive
920 elif test -f $ac_srcdir/configure.ac ||
921 test -f $ac_srcdir/configure.in; then
925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
931 test -n "$ac_init_help" && exit 0
932 if $ac_init_version; then
934 readline configure 4.3
935 generated by GNU Autoconf 2.57
937 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
938 Free Software Foundation, Inc.
939 This configure script is free software; the Free Software Foundation
940 gives unlimited permission to copy, distribute and modify it.
946 This file contains any messages produced by compilers while
947 running configure, to aid debugging if configure makes a mistake.
949 It was created by readline $as_me 4.3, which was
950 generated by GNU Autoconf 2.57. Invocation command line was
961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
968 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
970 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
971 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
973 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
974 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
975 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
976 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
984 test -z "$as_dir" && as_dir=.
1000 # Keep a trace of the command line.
1001 # Strip out --no-create and --no-recursion so they do not pile up.
1002 # Strip out --silent because we don't want to record it for future runs.
1003 # Also quote any args containing shell meta-characters.
1004 # Make two passes to allow for proper duplicate-argument suppression.
1009 ac_must_keep_next=false
1015 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017 | -silent | --silent | --silen | --sile | --sil)
1019 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1020 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1023 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1025 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1026 if test $ac_must_keep_next = true; then
1027 ac_must_keep_next=false # Got value, back to normal.
1030 *=* | --config-cache | -C | -disable-* | --disable-* \
1031 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1032 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1033 | -with-* | --with-* | -without-* | --without-* | --x)
1034 case "$ac_configure_args0 " in
1035 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1038 -* ) ac_must_keep_next=true ;;
1041 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042 # Get rid of the leading space.
1048 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1049 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1051 # When interrupted or exit'd, cleanup temporary files, and complete
1052 # config.log. We remove comments because anyway the quotes in there
1053 # would cause problems or look ugly.
1054 # WARNING: Be sure not to use single quotes in there, as some shells,
1055 # such as our DU 5.0 friend, will then `close' the trap.
1056 trap 'exit_status=$?
1057 # Save into config.log some information that might help in debugging.
1062 ## ---------------- ##
1063 ## Cache variables. ##
1064 ## ---------------- ##
1067 # The following way of writing the cache mishandles newlines in values,
1070 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1073 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1078 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1085 ## ----------------- ##
1086 ## Output variables. ##
1087 ## ----------------- ##
1090 for ac_var in $ac_subst_vars
1092 eval ac_val=$`echo $ac_var`
1093 echo "$ac_var='"'"'$ac_val'"'"'"
1097 if test -n "$ac_subst_files"; then
1104 for ac_var in $ac_subst_files
1106 eval ac_val=$`echo $ac_var`
1107 echo "$ac_var='"'"'$ac_val'"'"'"
1112 if test -s confdefs.h; then
1119 sed "/^$/d" confdefs.h | sort
1122 test "$ac_signal" != 0 &&
1123 echo "$as_me: caught signal $ac_signal"
1124 echo "$as_me: exit $exit_status"
1126 rm -f core core.* *.core &&
1127 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1130 for ac_signal in 1 2 13 15; do
1131 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1136 rm -rf conftest* confdefs.h
1137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1140 # Predefined preprocessor variables.
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_NAME "$PACKAGE_NAME"
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_STRING "$PACKAGE_STRING"
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1167 # Let the site file select an alternate cache file if it wants to.
1168 # Prefer explicitly selected file to automatically selected ones.
1169 if test -z "$CONFIG_SITE"; then
1170 if test "x$prefix" != xNONE; then
1171 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1173 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1176 for ac_site_file in $CONFIG_SITE; do
1177 if test -r "$ac_site_file"; then
1178 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1179 echo "$as_me: loading site script $ac_site_file" >&6;}
1180 sed 's/^/| /' "$ac_site_file" >&5
1185 if test -r "$cache_file"; then
1186 # Some versions of bash will fail to source /dev/null (special
1187 # files actually), so we avoid doing that.
1188 if test -f "$cache_file"; then
1189 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1190 echo "$as_me: loading cache $cache_file" >&6;}
1192 [\\/]* | ?:[\\/]* ) . $cache_file;;
1193 *) . ./$cache_file;;
1197 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1198 echo "$as_me: creating cache $cache_file" >&6;}
1202 # Check that the precious variables saved in the cache have kept the same
1204 ac_cache_corrupted=false
1205 for ac_var in `(set) 2>&1 |
1206 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1207 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1208 eval ac_new_set=\$ac_env_${ac_var}_set
1209 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1210 eval ac_new_val="\$ac_env_${ac_var}_value"
1211 case $ac_old_set,$ac_new_set in
1213 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1214 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1215 ac_cache_corrupted=: ;;
1217 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1219 ac_cache_corrupted=: ;;
1222 if test "x$ac_old_val" != "x$ac_new_val"; then
1223 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1224 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1225 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1226 echo "$as_me: former value: $ac_old_val" >&2;}
1227 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1228 echo "$as_me: current value: $ac_new_val" >&2;}
1229 ac_cache_corrupted=:
1232 # Pass precious variables to config.status.
1233 if test "$ac_new_set" = set; then
1235 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1236 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1237 *) ac_arg=$ac_var=$ac_new_val ;;
1239 case " $ac_configure_args " in
1240 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1241 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1245 if $ac_cache_corrupted; then
1246 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1247 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1248 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1249 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1250 { (exit 1); exit 1; }; }
1254 ac_cpp='$CPP $CPPFLAGS'
1255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1289 ac_config_headers="$ac_config_headers config.h"
1295 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1296 if test -f $ac_dir/install-sh; then
1298 ac_install_sh="$ac_aux_dir/install-sh -c"
1300 elif test -f $ac_dir/install.sh; then
1302 ac_install_sh="$ac_aux_dir/install.sh -c"
1304 elif test -f $ac_dir/shtool; then
1306 ac_install_sh="$ac_aux_dir/shtool install -c"
1310 if test -z "$ac_aux_dir"; then
1311 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1312 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1313 { (exit 1); exit 1; }; }
1315 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1316 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1317 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1319 # Make sure we can run config.sub.
1320 $ac_config_sub sun4 >/dev/null 2>&1 ||
1321 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1322 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1323 { (exit 1); exit 1; }; }
1325 echo "$as_me:$LINENO: checking build system type" >&5
1326 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1327 if test "${ac_cv_build+set}" = set; then
1328 echo $ECHO_N "(cached) $ECHO_C" >&6
1330 ac_cv_build_alias=$build_alias
1331 test -z "$ac_cv_build_alias" &&
1332 ac_cv_build_alias=`$ac_config_guess`
1333 test -z "$ac_cv_build_alias" &&
1334 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1335 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1336 { (exit 1); exit 1; }; }
1337 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1338 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1339 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1340 { (exit 1); exit 1; }; }
1343 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1344 echo "${ECHO_T}$ac_cv_build" >&6
1346 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1347 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1348 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1351 echo "$as_me:$LINENO: checking host system type" >&5
1352 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1353 if test "${ac_cv_host+set}" = set; then
1354 echo $ECHO_N "(cached) $ECHO_C" >&6
1356 ac_cv_host_alias=$host_alias
1357 test -z "$ac_cv_host_alias" &&
1358 ac_cv_host_alias=$ac_cv_build_alias
1359 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1360 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1361 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1362 { (exit 1); exit 1; }; }
1365 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1366 echo "${ECHO_T}$ac_cv_host" >&6
1368 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1369 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1370 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1377 # Check whether --with-curses or --without-curses was given.
1378 if test "${with_curses+set}" = set; then
1379 withval="$with_curses"
1383 if test "$opt_curses" = "yes"; then
1390 # Check whether --enable-static or --disable-static was given.
1391 if test "${enable_static+set}" = set; then
1392 enableval="$enable_static"
1393 opt_static_libs=$enableval
1397 echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}"
1400 # We want these before the checks, so the checks can modify their values.
1401 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
1403 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1404 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1405 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1406 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 cat >conftest.make <<\_ACEOF
1411 @echo 'ac_maketemp="$(MAKE)"'
1413 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1414 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1415 if test -n "$ac_maketemp"; then
1416 eval ac_cv_prog_make_${ac_make}_set=yes
1418 eval ac_cv_prog_make_${ac_make}_set=no
1422 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1423 echo "$as_me:$LINENO: result: yes" >&5
1424 echo "${ECHO_T}yes" >&6
1427 echo "$as_me:$LINENO: result: no" >&5
1428 echo "${ECHO_T}no" >&6
1429 SET_MAKE="MAKE=${MAKE-make}"
1433 ac_cpp='$CPP $CPPFLAGS'
1434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1437 if test -n "$ac_tool_prefix"; then
1438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1439 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1440 echo "$as_me:$LINENO: checking for $ac_word" >&5
1441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442 if test "${ac_cv_prog_CC+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 if test -n "$CC"; then
1446 ac_cv_prog_CC="$CC" # Let the user override the test.
1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1465 if test -n "$CC"; then
1466 echo "$as_me:$LINENO: result: $CC" >&5
1467 echo "${ECHO_T}$CC" >&6
1469 echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1474 if test -z "$ac_cv_prog_CC"; then
1476 # Extract the first word of "gcc", so it can be a program name with args.
1477 set dummy gcc; ac_word=$2
1478 echo "$as_me:$LINENO: checking for $ac_word" >&5
1479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1481 echo $ECHO_N "(cached) $ECHO_C" >&6
1483 if test -n "$ac_ct_CC"; then
1484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490 test -z "$as_dir" && as_dir=.
1491 for ac_exec_ext in '' $ac_executable_extensions; do
1492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493 ac_cv_prog_ac_ct_CC="gcc"
1494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1503 if test -n "$ac_ct_CC"; then
1504 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1505 echo "${ECHO_T}$ac_ct_CC" >&6
1507 echo "$as_me:$LINENO: result: no" >&5
1508 echo "${ECHO_T}no" >&6
1516 if test -z "$CC"; then
1517 if test -n "$ac_tool_prefix"; then
1518 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1519 set dummy ${ac_tool_prefix}cc; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 if test -n "$CC"; then
1526 ac_cv_prog_CC="$CC" # Let the user override the test.
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_CC="${ac_tool_prefix}cc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545 if test -n "$CC"; then
1546 echo "$as_me:$LINENO: result: $CC" >&5
1547 echo "${ECHO_T}$CC" >&6
1549 echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1554 if test -z "$ac_cv_prog_CC"; then
1556 # Extract the first word of "cc", so it can be a program name with args.
1557 set dummy cc; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 if test -n "$ac_ct_CC"; then
1564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 test -z "$as_dir" && as_dir=.
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573 ac_cv_prog_ac_ct_CC="cc"
1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583 if test -n "$ac_ct_CC"; then
1584 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1585 echo "${ECHO_T}$ac_ct_CC" >&6
1587 echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1597 if test -z "$CC"; then
1598 # Extract the first word of "cc", so it can be a program name with args.
1599 set dummy cc; ac_word=$2
1600 echo "$as_me:$LINENO: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 test -z "$as_dir" && as_dir=.
1614 for ac_exec_ext in '' $ac_executable_extensions; do
1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1617 ac_prog_rejected=yes
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1627 if test $ac_prog_rejected = yes; then
1628 # We found a bogon in the path, so make sure we never use it.
1629 set dummy $ac_cv_prog_CC
1631 if test $# != 0; then
1632 # We chose a different compiler from the bogus one.
1633 # However, it has the same basename, so the bogon will be chosen
1634 # first if we set CC to just the basename; use the full file name.
1636 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1642 if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644 echo "${ECHO_T}$CC" >&6
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1651 if test -z "$CC"; then
1652 if test -n "$ac_tool_prefix"; then
1655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1657 echo "$as_me:$LINENO: checking for $ac_word" >&5
1658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659 if test "${ac_cv_prog_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 test -z "$as_dir" && as_dir=.
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682 if test -n "$CC"; then
1683 echo "$as_me:$LINENO: result: $CC" >&5
1684 echo "${ECHO_T}$CC" >&6
1686 echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1690 test -n "$CC" && break
1693 if test -z "$CC"; then
1697 # Extract the first word of "$ac_prog", so it can be a program name with args.
1698 set dummy $ac_prog; ac_word=$2
1699 echo "$as_me:$LINENO: checking for $ac_word" >&5
1700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1704 if test -n "$ac_ct_CC"; then
1705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 test -z "$as_dir" && as_dir=.
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714 ac_cv_prog_ac_ct_CC="$ac_prog"
1715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1724 if test -n "$ac_ct_CC"; then
1725 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1726 echo "${ECHO_T}$ac_ct_CC" >&6
1728 echo "$as_me:$LINENO: result: no" >&5
1729 echo "${ECHO_T}no" >&6
1732 test -n "$ac_ct_CC" && break
1741 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1742 See \`config.log' for more details." >&5
1743 echo "$as_me: error: no acceptable C compiler found in \$PATH
1744 See \`config.log' for more details." >&2;}
1745 { (exit 1); exit 1; }; }
1747 # Provide some information about the compiler.
1748 echo "$as_me:$LINENO:" \
1749 "checking for C compiler version" >&5
1750 ac_compiler=`set X $ac_compile; echo $2`
1751 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1752 (eval $ac_compiler --version </dev/null >&5) 2>&5
1754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1755 (exit $ac_status); }
1756 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1757 (eval $ac_compiler -v </dev/null >&5) 2>&5
1759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1760 (exit $ac_status); }
1761 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1762 (eval $ac_compiler -V </dev/null >&5) 2>&5
1764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1765 (exit $ac_status); }
1767 cat >conftest.$ac_ext <<_ACEOF
1768 #line $LINENO "configure"
1771 cat confdefs.h >>conftest.$ac_ext
1772 cat >>conftest.$ac_ext <<_ACEOF
1773 /* end confdefs.h. */
1783 ac_clean_files_save=$ac_clean_files
1784 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1785 # Try to create an executable without -o first, disregard a.out.
1786 # It will help us diagnose broken compilers, and finding out an intuition
1788 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1789 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1790 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1791 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1792 (eval $ac_link_default) 2>&5
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }; then
1796 # Find the output, starting from the most likely. This scheme is
1797 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1800 # Be careful to initialize this variable, since it used to be cached.
1801 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1803 # b.out is created by i960 compilers.
1804 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1806 test -f "$ac_file" || continue
1808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1811 # This is the source file.
1814 # We found the default executable, but exeext='' is most
1818 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819 # FIXME: I believe we export ac_cv_exeext for Libtool,
1820 # but it would be cool to find out if it's true. Does anybody
1821 # maintain Libtool? --akim.
1829 echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1832 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: C compiler cannot create executables
1835 See \`config.log' for more details." >&2;}
1836 { (exit 77); exit 77; }; }
1839 ac_exeext=$ac_cv_exeext
1840 echo "$as_me:$LINENO: result: $ac_file" >&5
1841 echo "${ECHO_T}$ac_file" >&6
1843 # Check the compiler produces executables we can run. If not, either
1844 # the compiler is broken, or we cross compile.
1845 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1846 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1847 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1848 # If not cross compiling, check that we can run a simple program.
1849 if test "$cross_compiling" != yes; then
1850 if { ac_try='./$ac_file'
1851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }; }; then
1858 if test "$cross_compiling" = maybe; then
1861 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1862 If you meant to cross compile, use \`--host'.
1863 See \`config.log' for more details." >&5
1864 echo "$as_me: error: cannot run C compiled programs.
1865 If you meant to cross compile, use \`--host'.
1866 See \`config.log' for more details." >&2;}
1867 { (exit 1); exit 1; }; }
1871 echo "$as_me:$LINENO: result: yes" >&5
1872 echo "${ECHO_T}yes" >&6
1874 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1875 ac_clean_files=$ac_clean_files_save
1876 # Check the compiler produces executables we can run. If not, either
1877 # the compiler is broken, or we cross compile.
1878 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1879 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1880 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1881 echo "${ECHO_T}$cross_compiling" >&6
1883 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1884 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1886 (eval $ac_link) 2>&5
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; then
1890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1891 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1892 # work properly (i.e., refer to `conftest.exe'), while it won't with
1894 for ac_file in conftest.exe conftest conftest.*; do
1895 test -f "$ac_file" || continue
1897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1905 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&5
1907 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1908 See \`config.log' for more details." >&2;}
1909 { (exit 1); exit 1; }; }
1912 rm -f conftest$ac_cv_exeext
1913 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1914 echo "${ECHO_T}$ac_cv_exeext" >&6
1916 rm -f conftest.$ac_ext
1917 EXEEXT=$ac_cv_exeext
1919 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1920 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1921 if test "${ac_cv_objext+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 cat >conftest.$ac_ext <<_ACEOF
1925 #line $LINENO "configure"
1928 cat confdefs.h >>conftest.$ac_ext
1929 cat >>conftest.$ac_ext <<_ACEOF
1930 /* end confdefs.h. */
1940 rm -f conftest.o conftest.obj
1941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1942 (eval $ac_compile) 2>&5
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; then
1946 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1954 echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1957 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1958 See \`config.log' for more details." >&5
1959 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1960 See \`config.log' for more details." >&2;}
1961 { (exit 1); exit 1; }; }
1964 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1966 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1967 echo "${ECHO_T}$ac_cv_objext" >&6
1968 OBJEXT=$ac_cv_objext
1970 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1971 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1972 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 cat >conftest.$ac_ext <<_ACEOF
1976 #line $LINENO "configure"
1979 cat confdefs.h >>conftest.$ac_ext
1980 cat >>conftest.$ac_ext <<_ACEOF
1981 /* end confdefs.h. */
1994 rm -f conftest.$ac_objext
1995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1996 (eval $ac_compile) 2>&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); } &&
2000 { ac_try='test -s conftest.$ac_objext'
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; }; then
2008 echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2013 rm -f conftest.$ac_objext conftest.$ac_ext
2014 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2017 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2018 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2019 GCC=`test $ac_compiler_gnu = yes && echo yes`
2020 ac_test_CFLAGS=${CFLAGS+set}
2021 ac_save_CFLAGS=$CFLAGS
2023 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2024 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2025 if test "${ac_cv_prog_cc_g+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 cat >conftest.$ac_ext <<_ACEOF
2029 #line $LINENO "configure"
2032 cat confdefs.h >>conftest.$ac_ext
2033 cat >>conftest.$ac_ext <<_ACEOF
2034 /* end confdefs.h. */
2044 rm -f conftest.$ac_objext
2045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2046 (eval $ac_compile) 2>&5
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); } &&
2050 { ac_try='test -s conftest.$ac_objext'
2051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }; }; then
2058 echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2063 rm -f conftest.$ac_objext conftest.$ac_ext
2065 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2066 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2067 if test "$ac_test_CFLAGS" = set; then
2068 CFLAGS=$ac_save_CFLAGS
2069 elif test $ac_cv_prog_cc_g = yes; then
2070 if test "$GCC" = yes; then
2076 if test "$GCC" = yes; then
2082 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2083 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2084 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 ac_cv_prog_cc_stdc=no
2089 cat >conftest.$ac_ext <<_ACEOF
2090 #line $LINENO "configure"
2093 cat confdefs.h >>conftest.$ac_ext
2094 cat >>conftest.$ac_ext <<_ACEOF
2095 /* end confdefs.h. */
2098 #include <sys/types.h>
2099 #include <sys/stat.h>
2100 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2101 struct buf { int x; };
2102 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2103 static char *e (p, i)
2109 static char *f (char * (*g) (char **, int), char **p, ...)
2114 s = g (p, va_arg (v,int));
2118 int test (int i, double x);
2119 struct s1 {int (*f) (int a);};
2120 struct s2 {int (*f) (double a);};
2121 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2127 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2132 # Don't try gcc -ansi; that turns off useful extensions and
2133 # breaks some systems' header files.
2134 # AIX -qlanglvl=ansi
2135 # Ultrix and OSF/1 -std1
2136 # HP-UX 10.20 and later -Ae
2137 # HP-UX older versions -Aa -D_HPUX_SOURCE
2138 # SVR4 -Xc -D__EXTENSIONS__
2139 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2141 CC="$ac_save_CC $ac_arg"
2142 rm -f conftest.$ac_objext
2143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144 (eval $ac_compile) 2>&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); } &&
2148 { ac_try='test -s conftest.$ac_objext'
2149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }; }; then
2154 ac_cv_prog_cc_stdc=$ac_arg
2157 echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.$ac_ext >&5
2161 rm -f conftest.$ac_objext
2163 rm -f conftest.$ac_ext conftest.$ac_objext
2168 case "x$ac_cv_prog_cc_stdc" in
2170 echo "$as_me:$LINENO: result: none needed" >&5
2171 echo "${ECHO_T}none needed" >&6 ;;
2173 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2174 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2175 CC="$CC $ac_cv_prog_cc_stdc" ;;
2178 # Some people use a C++ compiler to compile C. Since we use `exit',
2179 # in C++ we need to declare it. In case someone uses the same compiler
2180 # for both compiling C and C++ we need to have the C++ compiler decide
2181 # the declaration of exit, since it's the most demanding environment.
2182 cat >conftest.$ac_ext <<_ACEOF
2187 rm -f conftest.$ac_objext
2188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2189 (eval $ac_compile) 2>&5
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); } &&
2193 { ac_try='test -s conftest.$ac_objext'
2194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; }; then
2199 for ac_declaration in \
2201 '#include <stdlib.h>' \
2202 'extern "C" void std::exit (int) throw (); using std::exit;' \
2203 'extern "C" void std::exit (int); using std::exit;' \
2204 'extern "C" void exit (int) throw ();' \
2205 'extern "C" void exit (int);' \
2208 cat >conftest.$ac_ext <<_ACEOF
2209 #line $LINENO "configure"
2212 cat confdefs.h >>conftest.$ac_ext
2213 cat >>conftest.$ac_ext <<_ACEOF
2214 /* end confdefs.h. */
2225 rm -f conftest.$ac_objext
2226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2227 (eval $ac_compile) 2>&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); } &&
2231 { ac_try='test -s conftest.$ac_objext'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2239 echo "$as_me: failed program was:" >&5
2240 sed 's/^/| /' conftest.$ac_ext >&5
2244 rm -f conftest.$ac_objext conftest.$ac_ext
2245 cat >conftest.$ac_ext <<_ACEOF
2246 #line $LINENO "configure"
2249 cat confdefs.h >>conftest.$ac_ext
2250 cat >>conftest.$ac_ext <<_ACEOF
2251 /* end confdefs.h. */
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263 (eval $ac_compile) 2>&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); } &&
2267 { ac_try='test -s conftest.$ac_objext'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; }; then
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2279 rm -f conftest.$ac_objext conftest.$ac_ext
2282 if test -n "$ac_declaration"; then
2283 echo '#ifdef __cplusplus' >>confdefs.h
2284 echo $ac_declaration >>confdefs.h
2285 echo '#endif' >>confdefs.h
2289 echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2293 rm -f conftest.$ac_objext conftest.$ac_ext
2295 ac_cpp='$CPP $CPPFLAGS'
2296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2302 ac_cpp='$CPP $CPPFLAGS'
2303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2306 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2307 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2308 # On Suns, sometimes $CPP names a directory.
2309 if test -n "$CPP" && test -d "$CPP"; then
2312 if test -z "$CPP"; then
2313 if test "${ac_cv_prog_CPP+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 # Double quotes because CPP needs to be expanded
2317 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2320 for ac_c_preproc_warn_flag in '' yes
2322 # Use a header file that comes with gcc, so configuring glibc
2323 # with a fresh cross-compiler works.
2324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2325 # <limits.h> exists even on freestanding compilers.
2326 # On the NeXT, cc -E runs the code through the compiler's parser,
2327 # not just through cpp. "Syntax error" is here to catch this case.
2328 cat >conftest.$ac_ext <<_ACEOF
2329 #line $LINENO "configure"
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h. */
2336 # include <limits.h>
2338 # include <assert.h>
2342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2345 grep -v '^ *+' conftest.er1 >conftest.err
2347 cat conftest.err >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); } >/dev/null; then
2350 if test -s conftest.err; then
2351 ac_cpp_err=$ac_c_preproc_warn_flag
2358 if test -z "$ac_cpp_err"; then
2361 echo "$as_me: failed program was:" >&5
2362 sed 's/^/| /' conftest.$ac_ext >&5
2364 # Broken: fails on valid input.
2367 rm -f conftest.err conftest.$ac_ext
2369 # OK, works on sane cases. Now check whether non-existent headers
2370 # can be detected and how.
2371 cat >conftest.$ac_ext <<_ACEOF
2372 #line $LINENO "configure"
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h. */
2378 #include <ac_nonexistent.h>
2380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2383 grep -v '^ *+' conftest.er1 >conftest.err
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } >/dev/null; then
2388 if test -s conftest.err; then
2389 ac_cpp_err=$ac_c_preproc_warn_flag
2396 if test -z "$ac_cpp_err"; then
2397 # Broken: success on invalid input.
2400 echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2403 # Passes both tests.
2407 rm -f conftest.err conftest.$ac_ext
2410 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2411 rm -f conftest.err conftest.$ac_ext
2412 if $ac_preproc_ok; then
2424 echo "$as_me:$LINENO: result: $CPP" >&5
2425 echo "${ECHO_T}$CPP" >&6
2427 for ac_c_preproc_warn_flag in '' yes
2429 # Use a header file that comes with gcc, so configuring glibc
2430 # with a fresh cross-compiler works.
2431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2432 # <limits.h> exists even on freestanding compilers.
2433 # On the NeXT, cc -E runs the code through the compiler's parser,
2434 # not just through cpp. "Syntax error" is here to catch this case.
2435 cat >conftest.$ac_ext <<_ACEOF
2436 #line $LINENO "configure"
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h. */
2443 # include <limits.h>
2445 # include <assert.h>
2449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2452 grep -v '^ *+' conftest.er1 >conftest.err
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } >/dev/null; then
2457 if test -s conftest.err; then
2458 ac_cpp_err=$ac_c_preproc_warn_flag
2465 if test -z "$ac_cpp_err"; then
2468 echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2471 # Broken: fails on valid input.
2474 rm -f conftest.err conftest.$ac_ext
2476 # OK, works on sane cases. Now check whether non-existent headers
2477 # can be detected and how.
2478 cat >conftest.$ac_ext <<_ACEOF
2479 #line $LINENO "configure"
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2485 #include <ac_nonexistent.h>
2487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2490 grep -v '^ *+' conftest.er1 >conftest.err
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } >/dev/null; then
2495 if test -s conftest.err; then
2496 ac_cpp_err=$ac_c_preproc_warn_flag
2503 if test -z "$ac_cpp_err"; then
2504 # Broken: success on invalid input.
2507 echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2510 # Passes both tests.
2514 rm -f conftest.err conftest.$ac_ext
2517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2518 rm -f conftest.err conftest.$ac_ext
2519 if $ac_preproc_ok; then
2522 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2523 See \`config.log' for more details." >&5
2524 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2525 See \`config.log' for more details." >&2;}
2526 { (exit 1); exit 1; }; }
2530 ac_cpp='$CPP $CPPFLAGS'
2531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536 echo "$as_me:$LINENO: checking for egrep" >&5
2537 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2538 if test "${ac_cv_prog_egrep+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2542 then ac_cv_prog_egrep='grep -E'
2543 else ac_cv_prog_egrep='egrep'
2546 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2547 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2548 EGREP=$ac_cv_prog_egrep
2551 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2552 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2553 if test "${ac_cv_header_stdc+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 cat >conftest.$ac_ext <<_ACEOF
2557 #line $LINENO "configure"
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2576 rm -f conftest.$ac_objext
2577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2578 (eval $ac_compile) 2>&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -s conftest.$ac_objext'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; }; then
2588 ac_cv_header_stdc=yes
2590 echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2593 ac_cv_header_stdc=no
2595 rm -f conftest.$ac_objext conftest.$ac_ext
2597 if test $ac_cv_header_stdc = yes; then
2598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2599 cat >conftest.$ac_ext <<_ACEOF
2600 #line $LINENO "configure"
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2610 $EGREP "memchr" >/dev/null 2>&1; then
2613 ac_cv_header_stdc=no
2619 if test $ac_cv_header_stdc = yes; then
2620 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2621 cat >conftest.$ac_ext <<_ACEOF
2622 #line $LINENO "configure"
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2632 $EGREP "free" >/dev/null 2>&1; then
2635 ac_cv_header_stdc=no
2641 if test $ac_cv_header_stdc = yes; then
2642 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2643 if test "$cross_compiling" = yes; then
2646 cat >conftest.$ac_ext <<_ACEOF
2647 #line $LINENO "configure"
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2654 #if ((' ' & 0x0FF) == 0x020)
2655 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2656 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2658 # define ISLOWER(c) \
2659 (('a' <= (c) && (c) <= 'i') \
2660 || ('j' <= (c) && (c) <= 'r') \
2661 || ('s' <= (c) && (c) <= 'z'))
2662 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2665 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2670 for (i = 0; i < 256; i++)
2671 if (XOR (islower (i), ISLOWER (i))
2672 || toupper (i) != TOUPPER (i))
2677 rm -f conftest$ac_exeext
2678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2679 (eval $ac_link) 2>&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2690 echo "$as_me: program exited with status $ac_status" >&5
2691 echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2695 ac_cv_header_stdc=no
2697 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2701 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2702 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2703 if test $ac_cv_header_stdc = yes; then
2705 cat >>confdefs.h <<\_ACEOF
2706 #define STDC_HEADERS 1
2711 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2721 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2722 inttypes.h stdint.h unistd.h
2724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2725 echo "$as_me:$LINENO: checking for $ac_header" >&5
2726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 cat >conftest.$ac_ext <<_ACEOF
2731 #line $LINENO "configure"
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h. */
2737 $ac_includes_default
2739 #include <$ac_header>
2741 rm -f conftest.$ac_objext
2742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743 (eval $ac_compile) 2>&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 { ac_try='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 eval "$as_ac_Header=yes"
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2758 eval "$as_ac_Header=no"
2760 rm -f conftest.$ac_objext conftest.$ac_ext
2762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2765 cat >>confdefs.h <<_ACEOF
2766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2774 if test "${ac_cv_header_minix_config_h+set}" = set; then
2775 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2776 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2777 if test "${ac_cv_header_minix_config_h+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2781 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2783 # Is the header compilable?
2784 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2785 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2786 cat >conftest.$ac_ext <<_ACEOF
2787 #line $LINENO "configure"
2790 cat confdefs.h >>conftest.$ac_ext
2791 cat >>conftest.$ac_ext <<_ACEOF
2792 /* end confdefs.h. */
2793 $ac_includes_default
2794 #include <minix/config.h>
2796 rm -f conftest.$ac_objext
2797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2798 (eval $ac_compile) 2>&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 { ac_try='test -s conftest.$ac_objext'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2808 ac_header_compiler=yes
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2813 ac_header_compiler=no
2815 rm -f conftest.$ac_objext conftest.$ac_ext
2816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2817 echo "${ECHO_T}$ac_header_compiler" >&6
2819 # Is the header present?
2820 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2821 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2822 cat >conftest.$ac_ext <<_ACEOF
2823 #line $LINENO "configure"
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2829 #include <minix/config.h>
2831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2834 grep -v '^ *+' conftest.er1 >conftest.err
2836 cat conftest.err >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } >/dev/null; then
2839 if test -s conftest.err; then
2840 ac_cpp_err=$ac_c_preproc_warn_flag
2847 if test -z "$ac_cpp_err"; then
2848 ac_header_preproc=yes
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2853 ac_header_preproc=no
2855 rm -f conftest.err conftest.$ac_ext
2856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2857 echo "${ECHO_T}$ac_header_preproc" >&6
2859 # So? What about this header?
2860 case $ac_header_compiler:$ac_header_preproc in
2862 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2863 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2864 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2865 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
2868 ## ------------------------------------ ##
2869 ## Report this to bug-autoconf@gnu.org. ##
2870 ## ------------------------------------ ##
2873 sed "s/^/$as_me: WARNING: /" >&2
2876 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
2877 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
2878 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2879 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2880 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2881 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
2884 ## ------------------------------------ ##
2885 ## Report this to bug-autoconf@gnu.org. ##
2886 ## ------------------------------------ ##
2889 sed "s/^/$as_me: WARNING: /" >&2
2892 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2893 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2894 if test "${ac_cv_header_minix_config_h+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
2897 ac_cv_header_minix_config_h=$ac_header_preproc
2899 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2900 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2903 if test $ac_cv_header_minix_config_h = yes; then
2910 if test "$MINIX" = yes; then
2912 cat >>confdefs.h <<\_ACEOF
2913 #define _POSIX_SOURCE 1
2917 cat >>confdefs.h <<\_ACEOF
2918 #define _POSIX_1_SOURCE 2
2922 cat >>confdefs.h <<\_ACEOF
2930 if test "x$cross_compiling" = "xyes"; then
2933 cross_cache=${srcdir}/cross-build/cygwin.cache
2934 if test -r "${cross_cache}"; then
2935 echo "loading cross-build cache file ${cross_cache}"
2938 LOCAL_CFLAGS="$LOCAL_CFLAGS -I${srcdir}/../libtermcap"
2941 *) echo "configure: cross-compiling for a non-cygwin target is not supported" >&2
2946 if test "x$cross_compiling" = "xyes"; then
2947 CROSS_COMPILING_FLAG=-DCROSS_COMPILING
2949 CROSS_COMPILING_FLAG=
2953 if test -z "$CC_FOR_BUILD"; then
2954 if test "x$cross_compiling" = "xno"; then
2955 CC_FOR_BUILD='$(CC)'
2963 # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
2964 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
2966 if test $ac_cv_c_compiler_gnu = yes; then
2967 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2968 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2969 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2972 ac_pattern="Autoconf.*'x'"
2973 cat >conftest.$ac_ext <<_ACEOF
2974 #line $LINENO "configure"
2977 cat confdefs.h >>conftest.$ac_ext
2978 cat >>conftest.$ac_ext <<_ACEOF
2979 /* end confdefs.h. */
2983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2984 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2985 ac_cv_prog_gcc_traditional=yes
2987 ac_cv_prog_gcc_traditional=no
2992 if test $ac_cv_prog_gcc_traditional = no; then
2993 cat >conftest.$ac_ext <<_ACEOF
2994 #line $LINENO "configure"
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3004 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3005 ac_cv_prog_gcc_traditional=yes
3011 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3012 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3013 if test $ac_cv_prog_gcc_traditional = yes; then
3014 CC="$CC -traditional"
3018 # Find a good install program. We prefer a C program (faster),
3019 # so one script is as good as another. But avoid the broken or
3020 # incompatible versions:
3021 # SysV /etc/install, /usr/sbin/install
3022 # SunOS /usr/etc/install
3023 # IRIX /sbin/install
3025 # AmigaOS /C/install, which installs bootblocks on floppy discs
3026 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3027 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3028 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3029 # ./install, which can be erroneously created by make from ./install.sh.
3030 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3031 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3032 if test -z "$INSTALL"; then
3033 if test "${ac_cv_path_install+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 test -z "$as_dir" && as_dir=.
3041 # Account for people who put trailing slashes in PATH elements.
3043 ./ | .// | /cC/* | \
3044 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3047 # OSF1 and SCO ODT 3.0 have their own names for install.
3048 # Don't use installbsd from OSF since it installs stuff as root
3050 for ac_prog in ginstall scoinst install; do
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3053 if test $ac_prog = install &&
3054 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3055 # AIX install. It has an incompatible calling convention.
3057 elif test $ac_prog = install &&
3058 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3059 # program-specific install script used by HP pwplus--don't use.
3062 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3074 if test "${ac_cv_path_install+set}" = set; then
3075 INSTALL=$ac_cv_path_install
3077 # As a last resort, use the slow shell script. We don't cache a
3078 # path for INSTALL within a source directory, because that will
3079 # break other packages using the cache if that directory is
3080 # removed, or if the path is relative.
3081 INSTALL=$ac_install_sh
3084 echo "$as_me:$LINENO: result: $INSTALL" >&5
3085 echo "${ECHO_T}$INSTALL" >&6
3087 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3088 # It thinks the first close brace ends the variable substitution.
3089 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3091 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3093 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3095 # Extract the first word of "ar", so it can be a program name with args.
3096 set dummy ar; ac_word=$2
3097 echo "$as_me:$LINENO: checking for $ac_word" >&5
3098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3099 if test "${ac_cv_prog_AR+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 if test -n "$AR"; then
3103 ac_cv_prog_AR="$AR" # Let the user override the test.
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3123 if test -n "$AR"; then
3124 echo "$as_me:$LINENO: result: $AR" >&5
3125 echo "${ECHO_T}$AR" >&6
3127 echo "$as_me:$LINENO: result: no" >&5
3128 echo "${ECHO_T}no" >&6
3131 test -n "$ARFLAGS" || ARFLAGS="cr"
3132 if test -n "$ac_tool_prefix"; then
3133 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3134 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3135 echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3137 if test "${ac_cv_prog_RANLIB+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3140 if test -n "$RANLIB"; then
3141 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 RANLIB=$ac_cv_prog_RANLIB
3160 if test -n "$RANLIB"; then
3161 echo "$as_me:$LINENO: result: $RANLIB" >&5
3162 echo "${ECHO_T}$RANLIB" >&6
3164 echo "$as_me:$LINENO: result: no" >&5
3165 echo "${ECHO_T}no" >&6
3169 if test -z "$ac_cv_prog_RANLIB"; then
3170 ac_ct_RANLIB=$RANLIB
3171 # Extract the first word of "ranlib", so it can be a program name with args.
3172 set dummy ranlib; ac_word=$2
3173 echo "$as_me:$LINENO: checking for $ac_word" >&5
3174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3175 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 if test -n "$ac_ct_RANLIB"; then
3179 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_prog_ac_ct_RANLIB="ranlib"
3189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3198 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3199 if test -n "$ac_ct_RANLIB"; then
3200 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3201 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3203 echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3207 RANLIB=$ac_ct_RANLIB
3209 RANLIB="$ac_cv_prog_RANLIB"
3216 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3217 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3218 if test "${ac_cv_c_const+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 cat >conftest.$ac_ext <<_ACEOF
3222 #line $LINENO "configure"
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3232 /* FIXME: Include the comments suggested by Paul. */
3234 /* Ultrix mips cc rejects this. */
3235 typedef int charset[2];
3237 /* SunOS 4.1.1 cc rejects this. */
3238 char const *const *ccp;
3240 /* NEC SVR4.0.2 mips cc rejects this. */
3241 struct point {int x, y;};
3242 static struct point const zero = {0,0};
3243 /* AIX XL C 1.02.0.0 rejects this.
3244 It does not let you subtract one const X* pointer from another in
3245 an arm of an if-expression whose if-part is not a constant
3247 const char *g = "string";
3248 ccp = &g + (g ? g-g : 0);
3249 /* HPUX 7.0 cc rejects these. */
3252 ccp = (char const *const *) p;
3253 { /* SCO 3.2v4 cc rejects this. */
3255 char const *s = 0 ? (char *) 0 : (char const *) 0;
3259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3261 const int *foo = &x[0];
3264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3265 typedef const int *iptr;
3269 { /* AIX XL C 1.02.0.0 rejects this saying
3270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3271 struct s { int j; const int *ap[3]; };
3272 struct s *b; b->j = 5;
3274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3283 rm -f conftest.$ac_objext
3284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285 (eval $ac_compile) 2>&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } &&
3289 { ac_try='test -s conftest.$ac_objext'
3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3302 rm -f conftest.$ac_objext conftest.$ac_ext
3304 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3305 echo "${ECHO_T}$ac_cv_c_const" >&6
3306 if test $ac_cv_c_const = no; then
3308 cat >>confdefs.h <<\_ACEOF
3314 echo "$as_me:$LINENO: checking for function prototypes" >&5
3315 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3316 if test "$ac_cv_prog_cc_stdc" != no; then
3317 echo "$as_me:$LINENO: result: yes" >&5
3318 echo "${ECHO_T}yes" >&6
3320 cat >>confdefs.h <<\_ACEOF
3321 #define PROTOTYPES 1
3325 cat >>confdefs.h <<\_ACEOF
3326 #define __PROTOTYPES 1
3330 echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6
3335 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
3336 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
3337 if test "${ac_cv_c_char_unsigned+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 cat >conftest.$ac_ext <<_ACEOF
3341 #line $LINENO "configure"
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3347 $ac_includes_default
3351 static int test_array [1 - 2 * !(((char) -1) < 0)];
3358 rm -f conftest.$ac_objext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3360 (eval $ac_compile) 2>&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } &&
3364 { ac_try='test -s conftest.$ac_objext'
3365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; }; then
3370 ac_cv_c_char_unsigned=no
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3375 ac_cv_c_char_unsigned=yes
3377 rm -f conftest.$ac_objext conftest.$ac_ext
3379 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
3380 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
3381 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3382 cat >>confdefs.h <<\_ACEOF
3383 #define __CHAR_UNSIGNED__ 1
3389 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3390 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3391 if test "${ac_cv_type_signal+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 cat >conftest.$ac_ext <<_ACEOF
3395 #line $LINENO "configure"
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3401 #include <sys/types.h>
3407 extern "C" void (*signal (int, void (*)(int)))(int);
3409 void (*signal ()) ();
3420 rm -f conftest.$ac_objext
3421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3422 (eval $ac_compile) 2>&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } &&
3426 { ac_try='test -s conftest.$ac_objext'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; }; then
3432 ac_cv_type_signal=void
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3437 ac_cv_type_signal=int
3439 rm -f conftest.$ac_objext conftest.$ac_ext
3441 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3442 echo "${ECHO_T}$ac_cv_type_signal" >&6
3444 cat >>confdefs.h <<_ACEOF
3445 #define RETSIGTYPE $ac_cv_type_signal
3450 echo "$as_me:$LINENO: checking for size_t" >&5
3451 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3452 if test "${ac_cv_type_size_t+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 cat >conftest.$ac_ext <<_ACEOF
3456 #line $LINENO "configure"
3459 cat confdefs.h >>conftest.$ac_ext
3460 cat >>conftest.$ac_ext <<_ACEOF
3461 /* end confdefs.h. */
3462 $ac_includes_default
3468 if (sizeof (size_t))
3474 rm -f conftest.$ac_objext
3475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3476 (eval $ac_compile) 2>&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } &&
3480 { ac_try='test -s conftest.$ac_objext'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3486 ac_cv_type_size_t=yes
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3491 ac_cv_type_size_t=no
3493 rm -f conftest.$ac_objext conftest.$ac_ext
3495 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3496 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3497 if test $ac_cv_type_size_t = yes; then
3501 cat >>confdefs.h <<_ACEOF
3502 #define size_t unsigned
3507 echo "$as_me:$LINENO: checking for ssize_t" >&5
3508 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
3509 if test "${ac_cv_type_ssize_t+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 cat >conftest.$ac_ext <<_ACEOF
3513 #line $LINENO "configure"
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3519 $ac_includes_default
3525 if (sizeof (ssize_t))
3531 rm -f conftest.$ac_objext
3532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533 (eval $ac_compile) 2>&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } &&
3537 { ac_try='test -s conftest.$ac_objext'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; }; then
3543 ac_cv_type_ssize_t=yes
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3548 ac_cv_type_ssize_t=no
3550 rm -f conftest.$ac_objext conftest.$ac_ext
3552 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
3553 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
3554 if test $ac_cv_type_ssize_t = yes; then
3558 cat >>confdefs.h <<_ACEOF
3565 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
3566 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
3567 if test "${ac_cv_header_stat_broken+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 cat >conftest.$ac_ext <<_ACEOF
3571 #line $LINENO "configure"
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3577 #include <sys/types.h>
3578 #include <sys/stat.h>
3580 #if defined(S_ISBLK) && defined(S_IFDIR)
3581 # if S_ISBLK (S_IFDIR)
3586 #if defined(S_ISBLK) && defined(S_IFCHR)
3587 # if S_ISBLK (S_IFCHR)
3592 #if defined(S_ISLNK) && defined(S_IFREG)
3593 # if S_ISLNK (S_IFREG)
3598 #if defined(S_ISSOCK) && defined(S_IFREG)
3599 # if S_ISSOCK (S_IFREG)
3605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3606 $EGREP "You lose" >/dev/null 2>&1; then
3607 ac_cv_header_stat_broken=yes
3609 ac_cv_header_stat_broken=no
3614 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
3615 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
3616 if test $ac_cv_header_stat_broken = yes; then
3618 cat >>confdefs.h <<\_ACEOF
3619 #define STAT_MACROS_BROKEN 1
3630 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3631 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3632 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3633 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 cat >conftest.$ac_ext <<_ACEOF
3638 #line $LINENO "configure"
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3644 #include <sys/types.h>
3656 rm -f conftest.$ac_objext
3657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3658 (eval $ac_compile) 2>&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } &&
3662 { ac_try='test -s conftest.$ac_objext'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; }; then
3668 eval "$as_ac_Header=yes"
3670 echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3673 eval "$as_ac_Header=no"
3675 rm -f conftest.$ac_objext conftest.$ac_ext
3677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3680 cat >>confdefs.h <<_ACEOF
3681 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3684 ac_header_dirent=$ac_hdr; break
3688 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3689 if test $ac_header_dirent = dirent.h; then
3690 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3691 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3692 if test "${ac_cv_search_opendir+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 ac_func_search_save_LIBS=$LIBS
3696 ac_cv_search_opendir=no
3697 cat >conftest.$ac_ext <<_ACEOF
3698 #line $LINENO "configure"
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3705 /* Override any gcc2 internal prototype to avoid an error. */
3709 /* We use char because int might match the return type of a gcc2
3710 builtin and then its argument prototype would still apply. */
3720 rm -f conftest.$ac_objext conftest$ac_exeext
3721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3722 (eval $ac_link) 2>&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } &&
3726 { ac_try='test -s conftest$ac_exeext'
3727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3732 ac_cv_search_opendir="none required"
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3739 if test "$ac_cv_search_opendir" = no; then
3740 for ac_lib in dir; do
3741 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3742 cat >conftest.$ac_ext <<_ACEOF
3743 #line $LINENO "configure"
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3750 /* Override any gcc2 internal prototype to avoid an error. */
3754 /* We use char because int might match the return type of a gcc2
3755 builtin and then its argument prototype would still apply. */
3765 rm -f conftest.$ac_objext conftest$ac_exeext
3766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3767 (eval $ac_link) 2>&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } &&
3771 { ac_try='test -s conftest$ac_exeext'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; }; then
3777 ac_cv_search_opendir="-l$ac_lib"
3780 echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.$ac_ext >&5
3784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3787 LIBS=$ac_func_search_save_LIBS
3789 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3790 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3791 if test "$ac_cv_search_opendir" != no; then
3792 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3797 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3798 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3799 if test "${ac_cv_search_opendir+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 ac_func_search_save_LIBS=$LIBS
3803 ac_cv_search_opendir=no
3804 cat >conftest.$ac_ext <<_ACEOF
3805 #line $LINENO "configure"
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3812 /* Override any gcc2 internal prototype to avoid an error. */
3816 /* We use char because int might match the return type of a gcc2
3817 builtin and then its argument prototype would still apply. */
3827 rm -f conftest.$ac_objext conftest$ac_exeext
3828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3829 (eval $ac_link) 2>&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } &&
3833 { ac_try='test -s conftest$ac_exeext'
3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; }; then
3839 ac_cv_search_opendir="none required"
3841 echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3846 if test "$ac_cv_search_opendir" = no; then
3848 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3849 cat >conftest.$ac_ext <<_ACEOF
3850 #line $LINENO "configure"
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3857 /* Override any gcc2 internal prototype to avoid an error. */
3861 /* We use char because int might match the return type of a gcc2
3862 builtin and then its argument prototype would still apply. */
3872 rm -f conftest.$ac_objext conftest$ac_exeext
3873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3874 (eval $ac_link) 2>&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } &&
3878 { ac_try='test -s conftest$ac_exeext'
3879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; }; then
3884 ac_cv_search_opendir="-l$ac_lib"
3887 echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3894 LIBS=$ac_func_search_save_LIBS
3896 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3897 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3898 if test "$ac_cv_search_opendir" != no; then
3899 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3918 for ac_func in lstat memmove putenv select setenv setlocale \
3919 strcasecmp strpbrk tcgetattr vsnprintf isascii isxdigit
3921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3922 echo "$as_me:$LINENO: checking for $ac_func" >&5
3923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3924 if eval "test \"\${$as_ac_var+set}\" = set"; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 cat >conftest.$ac_ext <<_ACEOF
3928 #line $LINENO "configure"
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3934 /* System header to define __stub macros and hopefully few prototypes,
3935 which can conflict with char $ac_func (); below.
3936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3937 <limits.h> exists even on freestanding compilers. */
3939 # include <limits.h>
3941 # include <assert.h>
3943 /* Override any gcc2 internal prototype to avoid an error. */
3948 /* We use char because int might match the return type of a gcc2
3949 builtin and then its argument prototype would still apply. */
3951 /* The GNU C library defines this for functions which it implements
3952 to always fail with ENOSYS. Some functions are actually named
3953 something starting with __ and the normal name is an alias. */
3954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3957 char (*f) () = $ac_func;
3966 return f != $ac_func;
3971 rm -f conftest.$ac_objext conftest$ac_exeext
3972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3973 (eval $ac_link) 2>&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } &&
3977 { ac_try='test -s conftest$ac_exeext'
3978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); }; }; then
3983 eval "$as_ac_var=yes"
3985 echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3988 eval "$as_ac_var=no"
3990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3993 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3994 if test `eval echo '${'$as_ac_var'}'` = yes; then
3995 cat >>confdefs.h <<_ACEOF
3996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4003 echo "$as_me:$LINENO: checking for working strcoll" >&5
4004 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
4005 if test "${ac_cv_func_strcoll_works+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 if test "$cross_compiling" = yes; then
4009 ac_cv_func_strcoll_works=no
4011 cat >conftest.$ac_ext <<_ACEOF
4012 #line $LINENO "configure"
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h. */
4018 $ac_includes_default
4022 exit (strcoll ("abc", "def") >= 0 ||
4023 strcoll ("ABC", "DEF") >= 0 ||
4024 strcoll ("123", "456") >= 0)
4029 rm -f conftest$ac_exeext
4030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4031 (eval $ac_link) 2>&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; }; then
4040 ac_cv_func_strcoll_works=yes
4042 echo "$as_me: program exited with status $ac_status" >&5
4043 echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4047 ac_cv_func_strcoll_works=no
4049 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4052 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
4053 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
4054 if test $ac_cv_func_strcoll_works = yes; then
4056 cat >>confdefs.h <<\_ACEOF
4057 #define HAVE_STRCOLL 1
4080 for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \
4081 limits.h sys/ptem.h sys/pte.h sys/stream.h sys/select.h \
4082 termcap.h termios.h termio.h sys/file.h locale.h memory.h
4084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4086 echo "$as_me:$LINENO: checking for $ac_header" >&5
4087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4094 # Is the header compilable?
4095 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4097 cat >conftest.$ac_ext <<_ACEOF
4098 #line $LINENO "configure"
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4104 $ac_includes_default
4105 #include <$ac_header>
4107 rm -f conftest.$ac_objext
4108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109 (eval $ac_compile) 2>&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try='test -s conftest.$ac_objext'
4114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; }; then
4119 ac_header_compiler=yes
4121 echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4124 ac_header_compiler=no
4126 rm -f conftest.$ac_objext conftest.$ac_ext
4127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4128 echo "${ECHO_T}$ac_header_compiler" >&6
4130 # Is the header present?
4131 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4133 cat >conftest.$ac_ext <<_ACEOF
4134 #line $LINENO "configure"
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4140 #include <$ac_header>
4142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4145 grep -v '^ *+' conftest.er1 >conftest.err
4147 cat conftest.err >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } >/dev/null; then
4150 if test -s conftest.err; then
4151 ac_cpp_err=$ac_c_preproc_warn_flag
4158 if test -z "$ac_cpp_err"; then
4159 ac_header_preproc=yes
4161 echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4164 ac_header_preproc=no
4166 rm -f conftest.err conftest.$ac_ext
4167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4168 echo "${ECHO_T}$ac_header_preproc" >&6
4170 # So? What about this header?
4171 case $ac_header_compiler:$ac_header_preproc in
4173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4179 ## ------------------------------------ ##
4180 ## Report this to bug-autoconf@gnu.org. ##
4181 ## ------------------------------------ ##
4184 sed "s/^/$as_me: WARNING: /" >&2
4187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4195 ## ------------------------------------ ##
4196 ## Report this to bug-autoconf@gnu.org. ##
4197 ## ------------------------------------ ##
4200 sed "s/^/$as_me: WARNING: /" >&2
4203 echo "$as_me:$LINENO: checking for $ac_header" >&5
4204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 eval "$as_ac_Header=$ac_header_preproc"
4210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4215 cat >>confdefs.h <<_ACEOF
4216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4225 echo "$as_me:$LINENO: checking for type of signal functions" >&5
4226 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
4227 if test "${bash_cv_signal_vintage+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 cat >conftest.$ac_ext <<_ACEOF
4232 #line $LINENO "configure"
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4244 struct sigaction sa;
4245 sigemptyset(&ss); sigsuspend(&ss);
4246 sigaction(SIGINT, &sa, (struct sigaction *) 0);
4247 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
4253 rm -f conftest.$ac_objext conftest$ac_exeext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4255 (eval $ac_link) 2>&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } &&
4259 { ac_try='test -s conftest$ac_exeext'
4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; }; then
4265 bash_cv_signal_vintage=posix
4267 echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4271 cat >conftest.$ac_ext <<_ACEOF
4272 #line $LINENO "configure"
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4283 int mask = sigmask(SIGINT);
4284 sigsetmask(mask); sigblock(mask); sigpause(mask);
4290 rm -f conftest.$ac_objext conftest$ac_exeext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4292 (eval $ac_link) 2>&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } &&
4296 { ac_try='test -s conftest$ac_exeext'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
4302 bash_cv_signal_vintage=4.2bsd
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4308 cat >conftest.$ac_ext <<_ACEOF
4309 #line $LINENO "configure"
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4317 RETSIGTYPE foo() { }
4322 int mask = sigmask(SIGINT);
4323 sigset(SIGINT, foo); sigrelse(SIGINT);
4324 sighold(SIGINT); sigpause(SIGINT);
4330 rm -f conftest.$ac_objext conftest$ac_exeext
4331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4332 (eval $ac_link) 2>&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
4336 { ac_try='test -s conftest$ac_exeext'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; }; then
4342 bash_cv_signal_vintage=svr3
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4347 bash_cv_signal_vintage=v7
4350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4360 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
4361 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
4362 if test "$bash_cv_signal_vintage" = posix; then
4363 cat >>confdefs.h <<\_ACEOF
4364 #define HAVE_POSIX_SIGNALS 1
4367 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
4368 cat >>confdefs.h <<\_ACEOF
4369 #define HAVE_BSD_SIGNALS 1
4372 elif test "$bash_cv_signal_vintage" = svr3; then
4373 cat >>confdefs.h <<\_ACEOF
4374 #define HAVE_USG_SIGHOLD 1
4381 echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
4382 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
4383 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 if test "$cross_compiling" = yes; then
4387 { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
4388 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
4389 bash_cv_must_reinstall_sighandlers=no
4392 cat >conftest.$ac_ext <<_ACEOF
4393 #line $LINENO "configure"
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4401 #ifdef HAVE_UNISTD_H
4405 typedef RETSIGTYPE sigfunc();
4409 #ifdef HAVE_POSIX_SIGNALS
4411 set_signal_handler(sig, handler)
4415 struct sigaction act, oact;
4416 act.sa_handler = handler;
4418 sigemptyset (&act.sa_mask);
4419 sigemptyset (&oact.sa_mask);
4420 sigaction (sig, &act, &oact);
4421 return (oact.sa_handler);
4424 #define set_signal_handler(s, h) signal(s, h)
4437 set_signal_handler(SIGINT, sigint);
4438 kill((int)getpid(), SIGINT);
4439 kill((int)getpid(), SIGINT);
4444 rm -f conftest$ac_exeext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4446 (eval $ac_link) 2>&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; }; then
4455 bash_cv_must_reinstall_sighandlers=no
4457 echo "$as_me: program exited with status $ac_status" >&5
4458 echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.$ac_ext >&5
4462 bash_cv_must_reinstall_sighandlers=yes
4464 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4468 echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
4469 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
4470 if test $bash_cv_must_reinstall_sighandlers = yes; then
4471 cat >>confdefs.h <<\_ACEOF
4472 #define MUST_REINSTALL_SIGHANDLERS 1
4479 echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
4480 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
4481 if test "${bash_cv_func_sigsetjmp+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 if test "$cross_compiling" = yes; then
4485 { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
4486 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
4487 bash_cv_func_sigsetjmp=missing
4490 cat >conftest.$ac_ext <<_ACEOF
4491 #line $LINENO "configure"
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h. */
4498 #ifdef HAVE_UNISTD_H
4501 #include <sys/types.h>
4507 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
4518 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
4519 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
4522 code = sigsetjmp(xx, 1);
4524 exit(0); /* could get sigmask and compare to oset here. */
4527 sigaddset(&set, SIGINT);
4528 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
4530 /* and siglongjmp */
4536 rm -f conftest$ac_exeext
4537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4538 (eval $ac_link) 2>&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; }; then
4547 bash_cv_func_sigsetjmp=present
4549 echo "$as_me: program exited with status $ac_status" >&5
4550 echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.$ac_ext >&5
4554 bash_cv_func_sigsetjmp=missing
4556 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4560 echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
4561 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
4562 if test $bash_cv_func_sigsetjmp = present; then
4563 cat >>confdefs.h <<\_ACEOF
4564 #define HAVE_POSIX_SIGSETJMP 1
4569 echo "$as_me:$LINENO: checking for lstat" >&5
4570 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
4571 if test "${bash_cv_func_lstat+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 cat >conftest.$ac_ext <<_ACEOF
4575 #line $LINENO "configure"
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4582 #include <sys/types.h>
4583 #include <sys/stat.h>
4588 lstat(".",(struct stat *)0);
4593 rm -f conftest.$ac_objext conftest$ac_exeext
4594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4595 (eval $ac_link) 2>&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } &&
4599 { ac_try='test -s conftest$ac_exeext'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4605 bash_cv_func_lstat=yes
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4610 bash_cv_func_lstat=no
4612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4614 echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
4615 echo "${ECHO_T}$bash_cv_func_lstat" >&6
4616 if test $bash_cv_func_lstat = yes; then
4617 cat >>confdefs.h <<\_ACEOF
4618 #define HAVE_LSTAT 1
4624 echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
4625 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
4626 if test "${bash_cv_func_strcoll_broken+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 if test "$cross_compiling" = yes; then
4630 { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
4631 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
4632 bash_cv_func_strcoll_broken=no
4635 cat >conftest.$ac_ext <<_ACEOF
4636 #line $LINENO "configure"
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4644 #if defined (HAVE_LOCALE_H)
4653 char *deflocale, *defcoll;
4655 #ifdef HAVE_SETLOCALE
4656 deflocale = setlocale(LC_ALL, "");
4657 defcoll = setlocale(LC_COLLATE, "");
4661 /* These two values are taken from tests/glob-test. */
4662 r1 = strcoll("abd", "aXd");
4666 r2 = strcmp("abd", "aXd");
4668 /* These two should both be greater than 0. It is permissible for
4669 a system to return different values, as long as the sign is the
4672 /* Exit with 1 (failure) if these two values are both > 0, since
4673 this tests whether strcoll(3) is broken with respect to strcmp(3)
4674 in the default locale. */
4675 exit (r1 > 0 && r2 > 0);
4679 rm -f conftest$ac_exeext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4681 (eval $ac_link) 2>&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
4690 bash_cv_func_strcoll_broken=yes
4692 echo "$as_me: program exited with status $ac_status" >&5
4693 echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4697 bash_cv_func_strcoll_broken=no
4699 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4703 echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
4704 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
4705 if test $bash_cv_func_strcoll_broken = yes; then
4706 cat >>confdefs.h <<\_ACEOF
4707 #define STRCOLL_BROKEN 1
4713 echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
4714 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
4715 if test "${bash_cv_getpw_declared+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 cat >conftest.$ac_ext <<_ACEOF
4719 #line $LINENO "configure"
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4726 #include <sys/types.h>
4727 #ifdef HAVE_UNISTD_H
4728 # include <unistd.h>
4733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4734 $EGREP "getpwuid" >/dev/null 2>&1; then
4735 bash_cv_getpw_declared=yes
4737 bash_cv_getpw_declared=no
4743 echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
4744 echo "${ECHO_T}$bash_cv_getpw_declared" >&6
4745 if test $bash_cv_getpw_declared = yes; then
4746 cat >>confdefs.h <<\_ACEOF
4747 #define HAVE_GETPW_DECLS 1
4753 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
4754 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
4755 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 cat >conftest.$ac_ext <<_ACEOF
4759 #line $LINENO "configure"
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h. */
4765 #include <sys/types.h>
4766 #include <termios.h>
4772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4773 $EGREP "yes" >/dev/null 2>&1; then
4774 ac_cv_sys_tiocgwinsz_in_termios_h=yes
4776 ac_cv_sys_tiocgwinsz_in_termios_h=no
4781 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
4782 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
4784 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
4785 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
4786 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
4787 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 cat >conftest.$ac_ext <<_ACEOF
4791 #line $LINENO "configure"
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4797 #include <sys/types.h>
4798 #include <sys/ioctl.h>
4804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4805 $EGREP "yes" >/dev/null 2>&1; then
4806 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
4808 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
4813 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
4814 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
4816 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
4818 cat >>confdefs.h <<\_ACEOF
4819 #define GWINSZ_IN_SYS_IOCTL 1
4826 echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
4827 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
4828 if test "${bash_cv_void_sighandler+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 cat >conftest.$ac_ext <<_ACEOF
4832 #line $LINENO "configure"
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4838 #include <sys/types.h>
4846 void (*signal ()) ();
4855 rm -f conftest.$ac_objext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } &&
4861 { ac_try='test -s conftest.$ac_objext'
4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; }; then
4867 bash_cv_void_sighandler=yes
4869 echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4872 bash_cv_void_sighandler=no
4874 rm -f conftest.$ac_objext conftest.$ac_ext
4876 echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
4877 echo "${ECHO_T}$bash_cv_void_sighandler" >&6
4878 if test $bash_cv_void_sighandler = yes; then
4879 cat >>confdefs.h <<\_ACEOF
4880 #define VOID_SIGHANDLER 1
4885 echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
4886 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
4887 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 cat >conftest.$ac_ext <<_ACEOF
4891 #line $LINENO "configure"
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4897 #include <sys/types.h>
4898 #include <sys/ioctl.h>
4907 rm -f conftest.$ac_objext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909 (eval $ac_compile) 2>&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } &&
4913 { ac_try='test -s conftest.$ac_objext'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4919 bash_cv_tiocstat_in_ioctl=yes
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4924 bash_cv_tiocstat_in_ioctl=no
4926 rm -f conftest.$ac_objext conftest.$ac_ext
4929 echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
4930 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
4931 if test $bash_cv_tiocstat_in_ioctl = yes; then
4932 cat >>confdefs.h <<\_ACEOF
4933 #define TIOCSTAT_IN_SYS_IOCTL 1
4938 echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
4939 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
4940 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 cat >conftest.$ac_ext <<_ACEOF
4944 #line $LINENO "configure"
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h. */
4950 #include <sys/types.h>
4951 #include <sys/ioctl.h>
4960 rm -f conftest.$ac_objext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962 (eval $ac_compile) 2>&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } &&
4966 { ac_try='test -s conftest.$ac_objext'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; }; then
4972 bash_cv_fionread_in_ioctl=yes
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4977 bash_cv_fionread_in_ioctl=no
4979 rm -f conftest.$ac_objext conftest.$ac_ext
4982 echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
4983 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
4984 if test $bash_cv_fionread_in_ioctl = yes; then
4985 cat >>confdefs.h <<\_ACEOF
4986 #define FIONREAD_IN_SYS_IOCTL 1
4991 echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
4992 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
4993 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 cat >conftest.$ac_ext <<_ACEOF
4997 #line $LINENO "configure"
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5003 #include <sys/types.h>
5012 rm -f conftest.$ac_objext
5013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5014 (eval $ac_compile) 2>&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } &&
5018 { ac_try='test -s conftest.$ac_objext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 bash_cv_speed_t_in_sys_types=yes
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5029 bash_cv_speed_t_in_sys_types=no
5031 rm -f conftest.$ac_objext conftest.$ac_ext
5034 echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
5035 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
5036 if test $bash_cv_speed_t_in_sys_types = yes; then
5037 cat >>confdefs.h <<\_ACEOF
5038 #define SPEED_T_IN_SYS_TYPES 1
5043 echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
5044 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
5045 if test "${bash_cv_struct_winsize_header+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 cat >conftest.$ac_ext <<_ACEOF
5049 #line $LINENO "configure"
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h. */
5055 #include <sys/types.h>
5056 #include <sys/ioctl.h>
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067 (eval $ac_compile) 2>&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } &&
5071 { ac_try='test -s conftest.$ac_objext'
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; }; then
5077 bash_cv_struct_winsize_header=ioctl_h
5079 echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5082 cat >conftest.$ac_ext <<_ACEOF
5083 #line $LINENO "configure"
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5089 #include <sys/types.h>
5090 #include <termios.h>
5099 rm -f conftest.$ac_objext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5101 (eval $ac_compile) 2>&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try='test -s conftest.$ac_objext'
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; }; then
5111 bash_cv_struct_winsize_header=termios_h
5113 echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5116 bash_cv_struct_winsize_header=other
5118 rm -f conftest.$ac_objext conftest.$ac_ext
5121 rm -f conftest.$ac_objext conftest.$ac_ext
5124 if test $bash_cv_struct_winsize_header = ioctl_h; then
5125 echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
5126 echo "${ECHO_T}sys/ioctl.h" >&6
5127 cat >>confdefs.h <<\_ACEOF
5128 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
5131 elif test $bash_cv_struct_winsize_header = termios_h; then
5132 echo "$as_me:$LINENO: result: termios.h" >&5
5133 echo "${ECHO_T}termios.h" >&6
5134 cat >>confdefs.h <<\_ACEOF
5135 #define STRUCT_WINSIZE_IN_TERMIOS 1
5139 echo "$as_me:$LINENO: result: not found" >&5
5140 echo "${ECHO_T}not found" >&6
5144 echo "$as_me:$LINENO: checking if struct dirent has a d_ino member" >&5
5145 echo $ECHO_N "checking if struct dirent has a d_ino member... $ECHO_C" >&6
5146 if test "${bash_cv_dirent_has_dino+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 cat >conftest.$ac_ext <<_ACEOF
5150 #line $LINENO "configure"
5153 cat confdefs.h >>conftest.$ac_ext
5154 cat >>conftest.$ac_ext <<_ACEOF
5155 /* end confdefs.h. */
5158 #include <sys/types.h>
5159 #ifdef HAVE_UNISTD_H
5160 # include <unistd.h>
5161 #endif /* HAVE_UNISTD_H */
5162 #if defined(HAVE_DIRENT_H)
5163 # include <dirent.h>
5165 # define dirent direct
5166 # ifdef HAVE_SYS_NDIR_H
5167 # include <sys/ndir.h>
5168 # endif /* SYSNDIR */
5169 # ifdef HAVE_SYS_DIR_H
5170 # include <sys/dir.h>
5171 # endif /* SYSDIR */
5175 #endif /* HAVE_DIRENT_H */
5181 struct dirent d; int z; z = d.d_ino;
5187 rm -f conftest.$ac_objext
5188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5189 (eval $ac_compile) 2>&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -s conftest.$ac_objext'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; }; then
5199 bash_cv_dirent_has_dino=yes
5201 echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.$ac_ext >&5
5204 bash_cv_dirent_has_dino=no
5206 rm -f conftest.$ac_objext conftest.$ac_ext
5209 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
5210 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
5211 if test $bash_cv_dirent_has_dino = yes; then
5212 cat >>confdefs.h <<\_ACEOF
5213 #define STRUCT_DIRENT_HAS_D_INO 1
5219 echo "$as_me:$LINENO: checking if struct dirent has a d_fileno member" >&5
5220 echo $ECHO_N "checking if struct dirent has a d_fileno member... $ECHO_C" >&6
5221 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 cat >conftest.$ac_ext <<_ACEOF
5225 #line $LINENO "configure"
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5233 #include <sys/types.h>
5234 #ifdef HAVE_UNISTD_H
5235 # include <unistd.h>
5236 #endif /* HAVE_UNISTD_H */
5237 #if defined(HAVE_DIRENT_H)
5238 # include <dirent.h>
5240 # define dirent direct
5241 # ifdef HAVE_SYS_NDIR_H
5242 # include <sys/ndir.h>
5243 # endif /* SYSNDIR */
5244 # ifdef HAVE_SYS_DIR_H
5245 # include <sys/dir.h>
5246 # endif /* SYSDIR */
5250 #endif /* HAVE_DIRENT_H */
5256 struct dirent d; int z; z = d.d_fileno;
5262 rm -f conftest.$ac_objext
5263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5264 (eval $ac_compile) 2>&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } &&
5268 { ac_try='test -s conftest.$ac_objext'
5269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }; }; then
5274 bash_cv_dirent_has_d_fileno=yes
5276 echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5279 bash_cv_dirent_has_d_fileno=no
5281 rm -f conftest.$ac_objext conftest.$ac_ext
5284 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
5285 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
5286 if test $bash_cv_dirent_has_d_fileno = yes; then
5287 cat >>confdefs.h <<\_ACEOF
5288 #define STRUCT_DIRENT_HAS_D_FILENO 1
5295 aix*) prefer_curses=yes ;;
5298 if test "X$bash_cv_termcap_lib" = "X"; then
5301 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5302 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
5305 if test "${bash_cv_termcap_lib+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5309 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5310 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 ac_check_lib_save_LIBS=$LIBS
5314 LIBS="-ltermcap $LIBS"
5315 cat >conftest.$ac_ext <<_ACEOF
5316 #line $LINENO "configure"
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5323 /* Override any gcc2 internal prototype to avoid an error. */
5327 /* We use char because int might match the return type of a gcc2
5328 builtin and then its argument prototype would still apply. */
5338 rm -f conftest.$ac_objext conftest$ac_exeext
5339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5340 (eval $ac_link) 2>&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); } &&
5344 { ac_try='test -s conftest$ac_exeext'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; }; then
5350 ac_cv_lib_termcap_tgetent=yes
5352 echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5355 ac_cv_lib_termcap_tgetent=no
5357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5358 LIBS=$ac_check_lib_save_LIBS
5360 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5361 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5362 if test $ac_cv_lib_termcap_tgetent = yes; then
5363 bash_cv_termcap_lib=libtermcap
5365 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
5366 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
5367 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 ac_check_lib_save_LIBS=$LIBS
5371 LIBS="-ltinfo $LIBS"
5372 cat >conftest.$ac_ext <<_ACEOF
5373 #line $LINENO "configure"
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5380 /* Override any gcc2 internal prototype to avoid an error. */
5384 /* We use char because int might match the return type of a gcc2
5385 builtin and then its argument prototype would still apply. */
5395 rm -f conftest.$ac_objext conftest$ac_exeext
5396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5397 (eval $ac_link) 2>&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } &&
5401 { ac_try='test -s conftest$ac_exeext'
5402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; }; then
5407 ac_cv_lib_tinfo_tgetent=yes
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5412 ac_cv_lib_tinfo_tgetent=no
5414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5415 LIBS=$ac_check_lib_save_LIBS
5417 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
5418 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
5419 if test $ac_cv_lib_tinfo_tgetent = yes; then
5420 bash_cv_termcap_lib=libtinfo
5422 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5423 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5424 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 ac_check_lib_save_LIBS=$LIBS
5428 LIBS="-lcurses $LIBS"
5429 cat >conftest.$ac_ext <<_ACEOF
5430 #line $LINENO "configure"
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5437 /* Override any gcc2 internal prototype to avoid an error. */
5441 /* We use char because int might match the return type of a gcc2
5442 builtin and then its argument prototype would still apply. */
5452 rm -f conftest.$ac_objext conftest$ac_exeext
5453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5454 (eval $ac_link) 2>&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } &&
5458 { ac_try='test -s conftest$ac_exeext'
5459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); }; }; then
5464 ac_cv_lib_curses_tgetent=yes
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5469 ac_cv_lib_curses_tgetent=no
5471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5472 LIBS=$ac_check_lib_save_LIBS
5474 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5475 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5476 if test $ac_cv_lib_curses_tgetent = yes; then
5477 bash_cv_termcap_lib=libcurses
5479 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5480 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5481 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 ac_check_lib_save_LIBS=$LIBS
5485 LIBS="-lncurses $LIBS"
5486 cat >conftest.$ac_ext <<_ACEOF
5487 #line $LINENO "configure"
5490 cat confdefs.h >>conftest.$ac_ext
5491 cat >>conftest.$ac_ext <<_ACEOF
5492 /* end confdefs.h. */
5494 /* Override any gcc2 internal prototype to avoid an error. */
5498 /* We use char because int might match the return type of a gcc2
5499 builtin and then its argument prototype would still apply. */
5509 rm -f conftest.$ac_objext conftest$ac_exeext
5510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5511 (eval $ac_link) 2>&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } &&
5515 { ac_try='test -s conftest$ac_exeext'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; }; then
5521 ac_cv_lib_ncurses_tgetent=yes
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5526 ac_cv_lib_ncurses_tgetent=no
5528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5529 LIBS=$ac_check_lib_save_LIBS
5531 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5532 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5533 if test $ac_cv_lib_ncurses_tgetent = yes; then
5534 bash_cv_termcap_lib=libncurses
5536 bash_cv_termcap_lib=gnutermcap
5547 if test "X$_bash_needmsg" = "Xyes"; then
5548 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5549 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
5551 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
5552 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
5553 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5554 LDFLAGS="$LDFLAGS -L./lib/termcap"
5555 TERMCAP_LIB="./lib/termcap/libtermcap.a"
5556 TERMCAP_DEP="./lib/termcap/libtermcap.a"
5557 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5558 TERMCAP_LIB=-ltermcap
5560 elif test $bash_cv_termcap_lib = libtinfo; then
5563 elif test $bash_cv_termcap_lib = libncurses; then
5564 TERMCAP_LIB=-lncurses
5567 TERMCAP_LIB=-lcurses
5571 if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
5572 if test "$prefer_curses" = yes; then
5573 TERMCAP_LIB=-lcurses
5575 TERMCAP_LIB=-ltermcap #default
5581 for ac_header in wctype.h
5583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5585 echo "$as_me:$LINENO: checking for $ac_header" >&5
5586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5593 # Is the header compilable?
5594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5596 cat >conftest.$ac_ext <<_ACEOF
5597 #line $LINENO "configure"
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5603 $ac_includes_default
5604 #include <$ac_header>
5606 rm -f conftest.$ac_objext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608 (eval $ac_compile) 2>&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } &&
5612 { ac_try='test -s conftest.$ac_objext'
5613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }; }; then
5618 ac_header_compiler=yes
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5623 ac_header_compiler=no
5625 rm -f conftest.$ac_objext conftest.$ac_ext
5626 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5627 echo "${ECHO_T}$ac_header_compiler" >&6
5629 # Is the header present?
5630 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5632 cat >conftest.$ac_ext <<_ACEOF
5633 #line $LINENO "configure"
5636 cat confdefs.h >>conftest.$ac_ext
5637 cat >>conftest.$ac_ext <<_ACEOF
5638 /* end confdefs.h. */
5639 #include <$ac_header>
5641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5644 grep -v '^ *+' conftest.er1 >conftest.err
5646 cat conftest.err >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } >/dev/null; then
5649 if test -s conftest.err; then
5650 ac_cpp_err=$ac_c_preproc_warn_flag
5657 if test -z "$ac_cpp_err"; then
5658 ac_header_preproc=yes
5660 echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5663 ac_header_preproc=no
5665 rm -f conftest.err conftest.$ac_ext
5666 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5667 echo "${ECHO_T}$ac_header_preproc" >&6
5669 # So? What about this header?
5670 case $ac_header_compiler:$ac_header_preproc in
5672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5678 ## ------------------------------------ ##
5679 ## Report this to bug-autoconf@gnu.org. ##
5680 ## ------------------------------------ ##
5683 sed "s/^/$as_me: WARNING: /" >&2
5686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5694 ## ------------------------------------ ##
5695 ## Report this to bug-autoconf@gnu.org. ##
5696 ## ------------------------------------ ##
5699 sed "s/^/$as_me: WARNING: /" >&2
5702 echo "$as_me:$LINENO: checking for $ac_header" >&5
5703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 eval "$as_ac_Header=$ac_header_preproc"
5709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5714 cat >>confdefs.h <<_ACEOF
5715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5723 for ac_header in wchar.h
5725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5727 echo "$as_me:$LINENO: checking for $ac_header" >&5
5728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5735 # Is the header compilable?
5736 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5738 cat >conftest.$ac_ext <<_ACEOF
5739 #line $LINENO "configure"
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5745 $ac_includes_default
5746 #include <$ac_header>
5748 rm -f conftest.$ac_objext
5749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5750 (eval $ac_compile) 2>&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); } &&
5754 { ac_try='test -s conftest.$ac_objext'
5755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); }; }; then
5760 ac_header_compiler=yes
5762 echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5765 ac_header_compiler=no
5767 rm -f conftest.$ac_objext conftest.$ac_ext
5768 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5769 echo "${ECHO_T}$ac_header_compiler" >&6
5771 # Is the header present?
5772 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5774 cat >conftest.$ac_ext <<_ACEOF
5775 #line $LINENO "configure"
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781 #include <$ac_header>
5783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5786 grep -v '^ *+' conftest.er1 >conftest.err
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } >/dev/null; then
5791 if test -s conftest.err; then
5792 ac_cpp_err=$ac_c_preproc_warn_flag
5799 if test -z "$ac_cpp_err"; then
5800 ac_header_preproc=yes
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5805 ac_header_preproc=no
5807 rm -f conftest.err conftest.$ac_ext
5808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5809 echo "${ECHO_T}$ac_header_preproc" >&6
5811 # So? What about this header?
5812 case $ac_header_compiler:$ac_header_preproc in
5814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5820 ## ------------------------------------ ##
5821 ## Report this to bug-autoconf@gnu.org. ##
5822 ## ------------------------------------ ##
5825 sed "s/^/$as_me: WARNING: /" >&2
5828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5831 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5836 ## ------------------------------------ ##
5837 ## Report this to bug-autoconf@gnu.org. ##
5838 ## ------------------------------------ ##
5841 sed "s/^/$as_me: WARNING: /" >&2
5844 echo "$as_me:$LINENO: checking for $ac_header" >&5
5845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 eval "$as_ac_Header=$ac_header_preproc"
5851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5856 cat >>confdefs.h <<_ACEOF
5857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5865 for ac_header in langinfo.h
5867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5869 echo "$as_me:$LINENO: checking for $ac_header" >&5
5870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5877 # Is the header compilable?
5878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5880 cat >conftest.$ac_ext <<_ACEOF
5881 #line $LINENO "configure"
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5887 $ac_includes_default
5888 #include <$ac_header>
5890 rm -f conftest.$ac_objext
5891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5892 (eval $ac_compile) 2>&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } &&
5896 { ac_try='test -s conftest.$ac_objext'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5902 ac_header_compiler=yes
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5907 ac_header_compiler=no
5909 rm -f conftest.$ac_objext conftest.$ac_ext
5910 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5911 echo "${ECHO_T}$ac_header_compiler" >&6
5913 # Is the header present?
5914 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5915 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5916 cat >conftest.$ac_ext <<_ACEOF
5917 #line $LINENO "configure"
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h. */
5923 #include <$ac_header>
5925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5928 grep -v '^ *+' conftest.er1 >conftest.err
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } >/dev/null; then
5933 if test -s conftest.err; then
5934 ac_cpp_err=$ac_c_preproc_warn_flag
5941 if test -z "$ac_cpp_err"; then
5942 ac_header_preproc=yes
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5947 ac_header_preproc=no
5949 rm -f conftest.err conftest.$ac_ext
5950 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5951 echo "${ECHO_T}$ac_header_preproc" >&6
5953 # So? What about this header?
5954 case $ac_header_compiler:$ac_header_preproc in
5956 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5957 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5962 ## ------------------------------------ ##
5963 ## Report this to bug-autoconf@gnu.org. ##
5964 ## ------------------------------------ ##
5967 sed "s/^/$as_me: WARNING: /" >&2
5970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5973 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5978 ## ------------------------------------ ##
5979 ## Report this to bug-autoconf@gnu.org. ##
5980 ## ------------------------------------ ##
5983 sed "s/^/$as_me: WARNING: /" >&2
5986 echo "$as_me:$LINENO: checking for $ac_header" >&5
5987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 eval "$as_ac_Header=$ac_header_preproc"
5993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5998 cat >>confdefs.h <<_ACEOF
5999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6007 echo "$as_me:$LINENO: checking for mbrtowc" >&5
6008 echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6
6009 if test "${ac_cv_func_mbrtowc+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 cat >conftest.$ac_ext <<_ACEOF
6013 #line $LINENO "configure"
6016 cat confdefs.h >>conftest.$ac_ext
6017 cat >>conftest.$ac_ext <<_ACEOF
6018 /* end confdefs.h. */
6019 /* System header to define __stub macros and hopefully few prototypes,
6020 which can conflict with char mbrtowc (); below.
6021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6022 <limits.h> exists even on freestanding compilers. */
6024 # include <limits.h>
6026 # include <assert.h>
6028 /* Override any gcc2 internal prototype to avoid an error. */
6033 /* We use char because int might match the return type of a gcc2
6034 builtin and then its argument prototype would still apply. */
6036 /* The GNU C library defines this for functions which it implements
6037 to always fail with ENOSYS. Some functions are actually named
6038 something starting with __ and the normal name is an alias. */
6039 #if defined (__stub_mbrtowc) || defined (__stub___mbrtowc)
6042 char (*f) () = mbrtowc;
6051 return f != mbrtowc;
6056 rm -f conftest.$ac_objext conftest$ac_exeext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6058 (eval $ac_link) 2>&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } &&
6062 { ac_try='test -s conftest$ac_exeext'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
6068 ac_cv_func_mbrtowc=yes
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6073 ac_cv_func_mbrtowc=no
6075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6077 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
6078 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
6079 if test $ac_cv_func_mbrtowc = yes; then
6080 cat >>confdefs.h <<\_ACEOF
6081 #define HAVE_MBRTOWC 1
6086 echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
6087 echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
6088 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 cat >conftest.$ac_ext <<_ACEOF
6092 #line $LINENO "configure"
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h. */
6098 /* System header to define __stub macros and hopefully few prototypes,
6099 which can conflict with char mbsrtowcs (); below.
6100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6101 <limits.h> exists even on freestanding compilers. */
6103 # include <limits.h>
6105 # include <assert.h>
6107 /* Override any gcc2 internal prototype to avoid an error. */
6112 /* We use char because int might match the return type of a gcc2
6113 builtin and then its argument prototype would still apply. */
6115 /* The GNU C library defines this for functions which it implements
6116 to always fail with ENOSYS. Some functions are actually named
6117 something starting with __ and the normal name is an alias. */
6118 #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
6121 char (*f) () = mbsrtowcs;
6130 return f != mbsrtowcs;
6135 rm -f conftest.$ac_objext conftest$ac_exeext
6136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6137 (eval $ac_link) 2>&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try='test -s conftest$ac_exeext'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
6147 ac_cv_func_mbsrtowcs=yes
6149 echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6152 ac_cv_func_mbsrtowcs=no
6154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6156 echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
6157 echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
6158 if test $ac_cv_func_mbsrtowcs = yes; then
6159 cat >>confdefs.h <<\_ACEOF
6160 #define HAVE_MBSRTOWCS 1
6165 echo "$as_me:$LINENO: checking for wcwidth" >&5
6166 echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
6167 if test "${ac_cv_func_wcwidth+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 cat >conftest.$ac_ext <<_ACEOF
6171 #line $LINENO "configure"
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6177 /* System header to define __stub macros and hopefully few prototypes,
6178 which can conflict with char wcwidth (); below.
6179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6180 <limits.h> exists even on freestanding compilers. */
6182 # include <limits.h>
6184 # include <assert.h>
6186 /* Override any gcc2 internal prototype to avoid an error. */
6191 /* We use char because int might match the return type of a gcc2
6192 builtin and then its argument prototype would still apply. */
6194 /* The GNU C library defines this for functions which it implements
6195 to always fail with ENOSYS. Some functions are actually named
6196 something starting with __ and the normal name is an alias. */
6197 #if defined (__stub_wcwidth) || defined (__stub___wcwidth)
6200 char (*f) () = wcwidth;
6209 return f != wcwidth;
6214 rm -f conftest.$ac_objext conftest$ac_exeext
6215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6216 (eval $ac_link) 2>&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } &&
6220 { ac_try='test -s conftest$ac_exeext'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 ac_cv_func_wcwidth=yes
6228 echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6231 ac_cv_func_wcwidth=no
6233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6235 echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
6236 echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
6237 if test $ac_cv_func_wcwidth = yes; then
6238 cat >>confdefs.h <<\_ACEOF
6239 #define HAVE_WCWIDTH 1
6244 if test "$ac_cv_func_wcwidth" = no && test "$ac_cv_header_wchar_h" = yes; then
6245 WCWIDTH_OBJ=wcwidth.o
6251 echo "$as_me:$LINENO: checking for mbstate_t" >&5
6252 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
6253 if test "${bash_cv_have_mbstate_t+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 if test "$cross_compiling" = yes; then
6257 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6258 See \`config.log' for more details." >&5
6259 echo "$as_me: error: cannot run test program while cross compiling
6260 See \`config.log' for more details." >&2;}
6261 { (exit 1); exit 1; }; }
6263 cat >conftest.$ac_ext <<_ACEOF
6264 #line $LINENO "configure"
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6279 rm -f conftest$ac_exeext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6281 (eval $ac_link) 2>&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
6290 bash_cv_have_mbstate_t=yes
6292 echo "$as_me: program exited with status $ac_status" >&5
6293 echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6297 bash_cv_have_mbstate_t=no
6299 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6302 echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5
6303 echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
6304 if test $bash_cv_have_mbstate_t = yes; then
6305 cat >>confdefs.h <<\_ACEOF
6306 #define HAVE_MBSTATE_T 1
6311 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
6312 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6313 if test "${bash_cv_langinfo_codeset+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 cat >conftest.$ac_ext <<_ACEOF
6317 #line $LINENO "configure"
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323 #include <langinfo.h>
6327 char* cs = nl_langinfo(CODESET);
6332 rm -f conftest.$ac_objext conftest$ac_exeext
6333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6334 (eval $ac_link) 2>&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } &&
6338 { ac_try='test -s conftest$ac_exeext'
6339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; }; then
6344 bash_cv_langinfo_codeset=yes
6346 echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6349 bash_cv_langinfo_codeset=no
6351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6353 echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
6354 echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
6355 if test $bash_cv_langinfo_codeset = yes; then
6356 cat >>confdefs.h <<\_ACEOF
6357 #define HAVE_LANGINFO_CODESET 1
6365 *cray*) LOCAL_CFLAGS=-DCRAY ;;
6366 *s390*) LOCAL_CFLAGS=-fsigned-char ;;
6370 isc*) LOCAL_CFLAGS=-Disc386 ;;
6373 # shared library configuration section
6375 # Shared object configuration section. These values are generated by
6376 # ${srcdir}/support/shobj-conf
6378 if test -f ${srcdir}/support/shobj-conf; then
6379 echo "$as_me:$LINENO: checking configuration for building shared libraries" >&5
6380 echo $ECHO_N "checking configuration for building shared libraries... $ECHO_C" >&6
6381 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
6394 echo "$as_me:$LINENO: result: $SHLIB_STATUS" >&5
6395 echo "${ECHO_T}$SHLIB_STATUS" >&6
6397 # SHLIB_STATUS is either `supported' or `unsupported'. If it's
6398 # `unsupported', turn off any default shared library building
6399 if test "$SHLIB_STATUS" = 'unsupported'; then
6403 # shared library versioning
6404 # quoted for m4 so I can use character classes
6405 SHLIB_MAJOR=`expr "$LIBVERSION" : '\([0-9]\)\..*'`
6406 SHLIB_MINOR=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`
6411 if test "$opt_static_libs" = "yes"; then
6412 STATIC_TARGET=static
6413 STATIC_INSTALL_TARGET=install-static
6415 if test "$opt_shared_libs" = "yes"; then
6416 SHARED_TARGET=shared
6417 SHARED_INSTALL_TARGET=install-shared
6426 msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file
6427 *) BUILD_DIR=`pwd` ;;
6447 ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile"
6448 ac_config_commands="$ac_config_commands default"
6449 cat >confcache <<\_ACEOF
6450 # This file is a shell script that caches the results of configure
6451 # tests run on this system so they can be shared between configure
6452 # scripts and configure runs, see configure's option --config-cache.
6453 # It is not useful on other systems. If it contains results you don't
6454 # want to keep, you may remove or edit it.
6456 # config.status only pays attention to the cache file if you give it
6457 # the --recheck option to rerun configure.
6459 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6460 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6465 # The following way of writing the cache mishandles newlines in values,
6466 # but we know of no workaround that is simple, portable, and efficient.
6467 # So, don't put newlines in cache variables' values.
6468 # Ultrix sh set writes to stderr and can't be redirected directly,
6469 # and sets the high bit in the cache file unless we assign to the vars.
6472 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6474 # `set' does not quote correctly, so add quotes (double-quote
6475 # substitution turns \\\\ into \\, and sed turns \\ into \).
6478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6481 # `set' quotes correctly as required by POSIX, so do not add quotes.
6483 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6492 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6494 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6495 if test -w $cache_file; then
6496 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6497 cat confcache >$cache_file
6499 echo "not updating unwritable cache $cache_file"
6504 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6505 # Let make expand exec_prefix.
6506 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6508 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6509 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6510 # trailing colons and then remove the whole line if VPATH becomes empty
6511 # (actually we leave an empty line to preserve line numbers).
6512 if test "x$srcdir" = x.; then
6513 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6514 s/:*\$(srcdir):*/:/;
6515 s/:*\${srcdir}:*/:/;
6517 s/^\([^=]*=[ ]*\):*/\1/;
6523 DEFS=-DHAVE_CONFIG_H
6527 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6528 # 1. Remove the extension, and $U if already installed.
6529 ac_i=`echo "$ac_i" |
6530 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6532 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6533 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6537 LTLIBOBJS=$ac_ltlibobjs
6541 : ${CONFIG_STATUS=./config.status}
6542 ac_clean_files_save=$ac_clean_files
6543 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6544 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6545 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6546 cat >$CONFIG_STATUS <<_ACEOF
6548 # Generated by $as_me.
6549 # Run this file to recreate the current configuration.
6550 # Compiler output produced by configure, useful for debugging
6551 # configure, is in config.log if it exists.
6556 SHELL=\${CONFIG_SHELL-$SHELL}
6559 cat >>$CONFIG_STATUS <<\_ACEOF
6560 ## --------------------- ##
6561 ## M4sh Initialization. ##
6562 ## --------------------- ##
6564 # Be Bourne compatible
6565 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6568 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6569 # is contrary to our usage. Disable this feature.
6570 alias -g '${1+"$@"}'='"$@"'
6571 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6575 # Support unset when possible.
6576 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6583 # Work around bugs in pre-3.0 UWIN ksh.
6584 $as_unset ENV MAIL MAILPATH
6591 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6592 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6593 LC_TELEPHONE LC_TIME
6595 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6596 eval $as_var=C; export $as_var
6602 # Required to use basename.
6603 if expr a : '\(a\)' >/dev/null 2>&1; then
6609 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6610 as_basename=basename
6616 # Name of the executable.
6617 as_me=`$as_basename "$0" ||
6618 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6619 X"$0" : 'X\(//\)$' \| \
6620 X"$0" : 'X\(/\)$' \| \
6621 . : '\(.\)' 2>/dev/null ||
6623 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6624 /^X\/\(\/\/\)$/{ s//\1/; q; }
6625 /^X\/\(\/\).*/{ s//\1/; q; }
6629 # PATH needs CR, and LINENO needs CR and PATH.
6630 # Avoid depending upon Character Ranges.
6631 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6632 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6633 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6634 as_cr_digits='0123456789'
6635 as_cr_alnum=$as_cr_Letters$as_cr_digits
6637 # The user is always right.
6638 if test "${PATH_SEPARATOR+set}" != set; then
6639 echo "#! /bin/sh" >conf$$.sh
6640 echo "exit 0" >>conf$$.sh
6642 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6653 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6654 test "x$as_lineno_1" != "x$as_lineno_2" &&
6655 test "x$as_lineno_3" = "x$as_lineno_2" || {
6656 # Find who we are. Look in the path if we contain no path at all
6659 *[\\/]* ) as_myself=$0 ;;
6660 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 test -z "$as_dir" && as_dir=.
6665 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6670 # We did not find ourselves, most probably we were run as `sh COMMAND'
6671 # in which case we are not to be found in the path.
6672 if test "x$as_myself" = x; then
6675 if test ! -f "$as_myself"; then
6676 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6677 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6678 { (exit 1); exit 1; }; }
6680 case $CONFIG_SHELL in
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6686 test -z "$as_dir" && as_dir=.
6687 for as_base in sh bash ksh sh5; do
6690 if ("$as_dir/$as_base" -c '
6693 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6694 test "x$as_lineno_1" != "x$as_lineno_2" &&
6695 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6696 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6697 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6698 CONFIG_SHELL=$as_dir/$as_base
6700 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6708 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6709 # uniformly replaced by the line number. The first 'sed' inserts a
6710 # line-number line before each line; the second 'sed' does the real
6711 # work. The second script uses 'N' to pair each line-number line
6712 # with the numbered line, and appends trailing '-' during
6713 # substitution so that $LINENO is not a special case at line end.
6714 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6715 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6716 sed '=' <$as_myself |
6721 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6724 s,^['$as_cr_digits']*\n,,
6726 chmod +x $as_me.lineno ||
6727 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6728 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6729 { (exit 1); exit 1; }; }
6731 # Don't try to exec as it changes $[0], causing all sort of problems
6732 # (the dirname of $[0] is not the place where we might find the
6733 # original and so on. Autoconf is especially sensible to this).
6735 # Exit status is that of the last command.
6740 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6741 *c*,-n*) ECHO_N= ECHO_C='
6743 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6744 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6747 if expr a : '\(a\)' >/dev/null 2>&1; then
6753 rm -f conf$$ conf$$.exe conf$$.file
6755 if ln -s conf$$.file conf$$ 2>/dev/null; then
6756 # We could just check for DJGPP; but this test a) works b) is more generic
6757 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6758 if test -f conf$$.exe; then
6759 # Don't use ln at all; we don't have any links
6764 elif ln conf$$.file conf$$ 2>/dev/null; then
6769 rm -f conf$$ conf$$.exe conf$$.file
6771 if mkdir -p . 2>/dev/null; then
6777 as_executable_p="test -f"
6779 # Sed expression to map a string onto a valid CPP name.
6780 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6782 # Sed expression to map a string onto a valid variable name.
6783 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6787 # We need space, tab and new line, in precisely that order.
6797 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6798 # report actual input values of CONFIG_FILES etc. instead of their
6799 # values after options handling. Logging --version etc. is OK.
6803 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6804 ## Running $as_me. ##
6809 This file was extended by readline $as_me 4.3, which was
6810 generated by GNU Autoconf 2.57. Invocation command line was
6812 CONFIG_FILES = $CONFIG_FILES
6813 CONFIG_HEADERS = $CONFIG_HEADERS
6814 CONFIG_LINKS = $CONFIG_LINKS
6815 CONFIG_COMMANDS = $CONFIG_COMMANDS
6819 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6823 # Files that config.status was made for.
6824 if test -n "$ac_config_files"; then
6825 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6828 if test -n "$ac_config_headers"; then
6829 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6832 if test -n "$ac_config_links"; then
6833 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6836 if test -n "$ac_config_commands"; then
6837 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6840 cat >>$CONFIG_STATUS <<\_ACEOF
6843 \`$as_me' instantiates files from templates according to the
6844 current configuration.
6846 Usage: $0 [OPTIONS] [FILE]...
6848 -h, --help print this help, then exit
6849 -V, --version print version number, then exit
6850 -q, --quiet do not print progress messages
6851 -d, --debug don't remove temporary files
6852 --recheck update $as_me by reconfiguring in the same conditions
6853 --file=FILE[:TEMPLATE]
6854 instantiate the configuration file FILE
6855 --header=FILE[:TEMPLATE]
6856 instantiate the configuration header FILE
6858 Configuration files:
6861 Configuration headers:
6864 Configuration commands:
6867 Report bugs to <bug-autoconf@gnu.org>."
6870 cat >>$CONFIG_STATUS <<_ACEOF
6872 readline config.status 4.3
6873 configured by $0, generated by GNU Autoconf 2.57,
6874 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6876 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6877 Free Software Foundation, Inc.
6878 This config.status script is free software; the Free Software Foundation
6879 gives unlimited permission to copy, distribute and modify it."
6884 cat >>$CONFIG_STATUS <<\_ACEOF
6885 # If no file are specified by the user, then we need to provide default
6886 # value. By we need to know if files were specified by the user.
6892 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6893 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6901 *) # This is not an option, so the user has probably given explicit
6904 ac_need_defaults=false;;
6908 # Handling of the options.
6910 cat >>$CONFIG_STATUS <<\_ACEOF
6911 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6913 --version | --vers* | -V )
6914 echo "$ac_cs_version"; exit 0 ;;
6916 # Conflict between --help and --header
6917 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6918 Try \`$0 --help' for more information." >&5
6919 echo "$as_me: error: ambiguous option: $1
6920 Try \`$0 --help' for more information." >&2;}
6921 { (exit 1); exit 1; }; };;
6922 --help | --hel | -h )
6923 echo "$ac_cs_usage"; exit 0 ;;
6924 --debug | --d* | -d )
6926 --file | --fil | --fi | --f )
6928 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6929 ac_need_defaults=false;;
6930 --header | --heade | --head | --hea )
6932 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6933 ac_need_defaults=false;;
6934 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6935 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6939 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6940 Try \`$0 --help' for more information." >&5
6941 echo "$as_me: error: unrecognized option: $1
6942 Try \`$0 --help' for more information." >&2;}
6943 { (exit 1); exit 1; }; } ;;
6945 *) ac_config_targets="$ac_config_targets $1" ;;
6951 ac_configure_extra_args=
6953 if $ac_cs_silent; then
6955 ac_configure_extra_args="$ac_configure_extra_args --silent"
6959 cat >>$CONFIG_STATUS <<_ACEOF
6960 if \$ac_cs_recheck; then
6961 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6962 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6971 cat >>$CONFIG_STATUS <<\_ACEOF
6972 for ac_config_target in $ac_config_targets
6974 case "$ac_config_target" in
6975 # Handling of arguments.
6976 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6977 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
6978 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
6979 "shlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES shlib/Makefile" ;;
6980 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6981 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6982 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6983 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6984 { (exit 1); exit 1; }; };;
6988 # If the user did not use the arguments to specify the items to instantiate,
6989 # then the envvar interface is used. Set only those that are not.
6990 # We use the long form for the default assignment because of an extremely
6991 # bizarre bug on SunOS 4.1.3.
6992 if $ac_need_defaults; then
6993 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6994 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6995 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6998 # Have a temporary directory for convenience. Make it in the build tree
6999 # simply because there is no reason to put it here, and in addition,
7000 # creating and moving files from /tmp can sometimes cause problems.
7001 # Create a temporary directory, and hook for its removal unless debugging.
7004 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7005 trap '{ (exit 1); exit 1; }' 1 2 13 15
7008 # Create a (secure) tmp directory for tmp files.
7011 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7012 test -n "$tmp" && test -d "$tmp"
7015 tmp=./confstat$$-$RANDOM
7016 (umask 077 && mkdir $tmp)
7019 echo "$me: cannot create a temporary directory in ." >&2
7020 { (exit 1); exit 1; }
7025 cat >>$CONFIG_STATUS <<_ACEOF
7028 # CONFIG_FILES section.
7031 # No need to generate the scripts if there are no CONFIG_FILES.
7032 # This happens for instance when ./config.status config.h
7033 if test -n "\$CONFIG_FILES"; then
7034 # Protect against being on the right side of a sed subst in config.status.
7035 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7036 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7037 s,@SHELL@,$SHELL,;t t
7038 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7039 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7040 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7041 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7042 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7043 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7044 s,@exec_prefix@,$exec_prefix,;t t
7045 s,@prefix@,$prefix,;t t
7046 s,@program_transform_name@,$program_transform_name,;t t
7047 s,@bindir@,$bindir,;t t
7048 s,@sbindir@,$sbindir,;t t
7049 s,@libexecdir@,$libexecdir,;t t
7050 s,@datadir@,$datadir,;t t
7051 s,@sysconfdir@,$sysconfdir,;t t
7052 s,@sharedstatedir@,$sharedstatedir,;t t
7053 s,@localstatedir@,$localstatedir,;t t
7054 s,@libdir@,$libdir,;t t
7055 s,@includedir@,$includedir,;t t
7056 s,@oldincludedir@,$oldincludedir,;t t
7057 s,@infodir@,$infodir,;t t
7058 s,@mandir@,$mandir,;t t
7059 s,@build_alias@,$build_alias,;t t
7060 s,@host_alias@,$host_alias,;t t
7061 s,@target_alias@,$target_alias,;t t
7063 s,@ECHO_C@,$ECHO_C,;t t
7064 s,@ECHO_N@,$ECHO_N,;t t
7065 s,@ECHO_T@,$ECHO_T,;t t
7067 s,@build@,$build,;t t
7068 s,@build_cpu@,$build_cpu,;t t
7069 s,@build_vendor@,$build_vendor,;t t
7070 s,@build_os@,$build_os,;t t
7072 s,@host_cpu@,$host_cpu,;t t
7073 s,@host_vendor@,$host_vendor,;t t
7074 s,@host_os@,$host_os,;t t
7075 s,@SET_MAKE@,$SET_MAKE,;t t
7077 s,@CFLAGS@,$CFLAGS,;t t
7078 s,@LDFLAGS@,$LDFLAGS,;t t
7079 s,@CPPFLAGS@,$CPPFLAGS,;t t
7080 s,@ac_ct_CC@,$ac_ct_CC,;t t
7081 s,@EXEEXT@,$EXEEXT,;t t
7082 s,@OBJEXT@,$OBJEXT,;t t
7084 s,@EGREP@,$EGREP,;t t
7085 s,@CROSS_COMPILING_FLAG@,$CROSS_COMPILING_FLAG,;t t
7086 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7087 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7088 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7089 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7091 s,@RANLIB@,$RANLIB,;t t
7092 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7093 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
7094 s,@WCWIDTH_OBJ@,$WCWIDTH_OBJ,;t t
7095 s,@SHOBJ_CC@,$SHOBJ_CC,;t t
7096 s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
7097 s,@SHOBJ_LD@,$SHOBJ_LD,;t t
7098 s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
7099 s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
7100 s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
7101 s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
7102 s,@SHLIB_STATUS@,$SHLIB_STATUS,;t t
7103 s,@SHLIB_XLDFLAGS@,$SHLIB_XLDFLAGS,;t t
7104 s,@SHLIB_LIBSUFF@,$SHLIB_LIBSUFF,;t t
7105 s,@SHLIB_LIBVERSION@,$SHLIB_LIBVERSION,;t t
7106 s,@SHLIB_LIBS@,$SHLIB_LIBS,;t t
7107 s,@SHLIB_MAJOR@,$SHLIB_MAJOR,;t t
7108 s,@SHLIB_MINOR@,$SHLIB_MINOR,;t t
7109 s,@STATIC_TARGET@,$STATIC_TARGET,;t t
7110 s,@SHARED_TARGET@,$SHARED_TARGET,;t t
7111 s,@STATIC_INSTALL_TARGET@,$STATIC_INSTALL_TARGET,;t t
7112 s,@SHARED_INSTALL_TARGET@,$SHARED_INSTALL_TARGET,;t t
7113 s,@BUILD_DIR@,$BUILD_DIR,;t t
7114 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
7115 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
7116 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
7117 s,@ARFLAGS@,$ARFLAGS,;t t
7118 s,@LIBVERSION@,$LIBVERSION,;t t
7119 s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
7120 s,@LIBOBJS@,$LIBOBJS,;t t
7121 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7126 cat >>$CONFIG_STATUS <<\_ACEOF
7127 # Split the substitutions into bite-sized pieces for seds with
7128 # small command number limits, like on Digital OSF/1 and HP-UX.
7130 ac_sed_frag=1 # Number of current file.
7131 ac_beg=1 # First line for current file.
7132 ac_end=$ac_max_sed_lines # Line after last line for current file.
7135 while $ac_more_lines; do
7136 if test $ac_beg -gt 1; then
7137 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7139 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7141 if test ! -s $tmp/subs.frag; then
7144 # The purpose of the label and of the branching condition is to
7145 # speed up the sed processing (if there are no `@' at all, there
7146 # is no need to browse any of the substitutions).
7147 # These are the two extra sed commands mentioned above.
7149 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7150 if test -z "$ac_sed_cmds"; then
7151 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7153 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7155 ac_sed_frag=`expr $ac_sed_frag + 1`
7157 ac_end=`expr $ac_end + $ac_max_sed_lines`
7160 if test -z "$ac_sed_cmds"; then
7163 fi # test -n "$CONFIG_FILES"
7166 cat >>$CONFIG_STATUS <<\_ACEOF
7167 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7168 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7170 - | *:- | *:-:* ) # input from stdin
7172 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7173 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7174 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7175 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7176 * ) ac_file_in=$ac_file.in ;;
7179 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7180 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7181 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7182 X"$ac_file" : 'X\(//\)[^/]' \| \
7183 X"$ac_file" : 'X\(//\)$' \| \
7184 X"$ac_file" : 'X\(/\)' \| \
7185 . : '\(.\)' 2>/dev/null ||
7187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7188 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7189 /^X\(\/\/\)$/{ s//\1/; q; }
7190 /^X\(\/\).*/{ s//\1/; q; }
7192 { if $as_mkdir_p; then
7197 while test ! -d "$as_dir"; do
7198 as_dirs="$as_dir $as_dirs"
7199 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7201 X"$as_dir" : 'X\(//\)[^/]' \| \
7202 X"$as_dir" : 'X\(//\)$' \| \
7203 X"$as_dir" : 'X\(/\)' \| \
7204 . : '\(.\)' 2>/dev/null ||
7206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7207 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7208 /^X\(\/\/\)$/{ s//\1/; q; }
7209 /^X\(\/\).*/{ s//\1/; q; }
7212 test ! -n "$as_dirs" || mkdir $as_dirs
7213 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7214 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7215 { (exit 1); exit 1; }; }; }
7219 if test "$ac_dir" != .; then
7220 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7221 # A "../" for each directory in $ac_dir_suffix.
7222 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7224 ac_dir_suffix= ac_top_builddir=
7228 .) # No --srcdir option. We are building in place.
7230 if test -z "$ac_top_builddir"; then
7233 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7235 [\\/]* | ?:[\\/]* ) # Absolute path.
7236 ac_srcdir=$srcdir$ac_dir_suffix;
7237 ac_top_srcdir=$srcdir ;;
7239 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7240 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7242 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7244 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7245 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7246 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7247 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7251 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7252 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7255 if test x"$ac_file" != x-; then
7256 { echo "$as_me:$LINENO: creating $ac_file" >&5
7257 echo "$as_me: creating $ac_file" >&6;}
7260 # Let's still pretend it is `configure' which instantiates (i.e., don't
7261 # use $as_me), people would be surprised to read:
7262 # /* config.h. Generated by config.status. */
7263 if test x"$ac_file" = x-; then
7266 configure_input="$ac_file. "
7268 configure_input=$configure_input"Generated from `echo $ac_file_in |
7269 sed 's,.*/,,'` by configure."
7271 # First look for the input files in the build tree, otherwise in the
7273 ac_file_inputs=`IFS=:
7274 for f in $ac_file_in; do
7276 -) echo $tmp/stdin ;;
7278 # Absolute (can't be DOS-style, as IFS=:)
7279 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7280 echo "$as_me: error: cannot find input file: $f" >&2;}
7281 { (exit 1); exit 1; }; }
7284 if test -f "$f"; then
7287 elif test -f "$srcdir/$f"; then
7292 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7293 echo "$as_me: error: cannot find input file: $f" >&2;}
7294 { (exit 1); exit 1; }; }
7297 done` || { (exit 1); exit 1; }
7299 cat >>$CONFIG_STATUS <<_ACEOF
7303 cat >>$CONFIG_STATUS <<\_ACEOF
7305 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7306 s,@configure_input@,$configure_input,;t t
7307 s,@srcdir@,$ac_srcdir,;t t
7308 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7309 s,@top_srcdir@,$ac_top_srcdir,;t t
7310 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7311 s,@builddir@,$ac_builddir,;t t
7312 s,@abs_builddir@,$ac_abs_builddir,;t t
7313 s,@top_builddir@,$ac_top_builddir,;t t
7314 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7315 s,@INSTALL@,$ac_INSTALL,;t t
7316 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7318 if test x"$ac_file" != x-; then
7319 mv $tmp/out $ac_file
7327 cat >>$CONFIG_STATUS <<\_ACEOF
7330 # CONFIG_HEADER section.
7333 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7334 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7336 # ac_d sets the value in "#define NAME VALUE" lines.
7337 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7338 ac_dB='[ ].*$,\1#\2'
7341 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7342 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7343 ac_uB='$,\1#\2define\3'
7347 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7348 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7350 - | *:- | *:-:* ) # input from stdin
7352 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7353 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7354 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7355 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7356 * ) ac_file_in=$ac_file.in ;;
7359 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7360 echo "$as_me: creating $ac_file" >&6;}
7362 # First look for the input files in the build tree, otherwise in the
7364 ac_file_inputs=`IFS=:
7365 for f in $ac_file_in; do
7367 -) echo $tmp/stdin ;;
7369 # Absolute (can't be DOS-style, as IFS=:)
7370 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7371 echo "$as_me: error: cannot find input file: $f" >&2;}
7372 { (exit 1); exit 1; }; }
7375 if test -f "$f"; then
7378 elif test -f "$srcdir/$f"; then
7383 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7384 echo "$as_me: error: cannot find input file: $f" >&2;}
7385 { (exit 1); exit 1; }; }
7388 done` || { (exit 1); exit 1; }
7389 # Remove the trailing spaces.
7390 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7394 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7395 # `conftest.undefs', that substitutes the proper values into
7396 # config.h.in to produce config.h. The first handles `#define'
7397 # templates, and the second `#undef' templates.
7398 # And first: Protect against being on the right side of a sed subst in
7399 # config.status. Protect against being in an unquoted here document
7401 rm -f conftest.defines conftest.undefs
7402 # Using a here document instead of a string reduces the quoting nightmare.
7403 # Putting comments in sed scripts is not portable.
7405 # `end' is used to avoid that the second main sed command (meant for
7406 # 0-ary CPP macros) applies to n-ary macro definitions.
7407 # See the Autoconf documentation for `clear'.
7408 cat >confdef2sed.sed <<\_ACEOF
7413 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7415 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7418 # If some macros were called several times there might be several times
7419 # the same #defines, which is useless. Nevertheless, we may not want to
7420 # sort them, since we want the *last* AC-DEFINE to be honored.
7421 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7422 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7423 rm -f confdef2sed.sed
7425 # This sed command replaces #undef with comments. This is necessary, for
7426 # example, in the case of _POSIX_SOURCE, which is predefined and required
7427 # on some systems where configure will not decide to define it.
7428 cat >>conftest.undefs <<\_ACEOF
7429 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7432 # Break up conftest.defines because some shells have a limit on the size
7433 # of here documents, and old seds have small limits too (100 cmds).
7434 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7435 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7436 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7437 echo ' :' >>$CONFIG_STATUS
7439 while grep . conftest.defines >/dev/null
7441 # Write a limited-size here document to $tmp/defines.sed.
7442 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7443 # Speed up: don't consider the non `#define' lines.
7444 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7445 # Work around the forget-to-reset-the-flag bug.
7446 echo 't clr' >>$CONFIG_STATUS
7447 echo ': clr' >>$CONFIG_STATUS
7448 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7450 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7454 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7455 rm -f conftest.defines
7456 mv conftest.tail conftest.defines
7458 rm -f conftest.defines
7459 echo ' fi # grep' >>$CONFIG_STATUS
7460 echo >>$CONFIG_STATUS
7462 # Break up conftest.undefs because some shells have a limit on the size
7463 # of here documents, and old seds have small limits too (100 cmds).
7464 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7466 while grep . conftest.undefs >/dev/null
7468 # Write a limited-size here document to $tmp/undefs.sed.
7469 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7470 # Speed up: don't consider the non `#undef'
7471 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7472 # Work around the forget-to-reset-the-flag bug.
7473 echo 't clr' >>$CONFIG_STATUS
7474 echo ': clr' >>$CONFIG_STATUS
7475 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7477 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7481 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7482 rm -f conftest.undefs
7483 mv conftest.tail conftest.undefs
7485 rm -f conftest.undefs
7487 cat >>$CONFIG_STATUS <<\_ACEOF
7488 # Let's still pretend it is `configure' which instantiates (i.e., don't
7489 # use $as_me), people would be surprised to read:
7490 # /* config.h. Generated by config.status. */
7491 if test x"$ac_file" = x-; then
7492 echo "/* Generated by configure. */" >$tmp/config.h
7494 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7496 cat $tmp/in >>$tmp/config.h
7498 if test x"$ac_file" != x-; then
7499 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7500 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7501 echo "$as_me: $ac_file is unchanged" >&6;}
7503 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7504 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7505 X"$ac_file" : 'X\(//\)[^/]' \| \
7506 X"$ac_file" : 'X\(//\)$' \| \
7507 X"$ac_file" : 'X\(/\)' \| \
7508 . : '\(.\)' 2>/dev/null ||
7510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7511 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7512 /^X\(\/\/\)$/{ s//\1/; q; }
7513 /^X\(\/\).*/{ s//\1/; q; }
7515 { if $as_mkdir_p; then
7520 while test ! -d "$as_dir"; do
7521 as_dirs="$as_dir $as_dirs"
7522 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7523 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7524 X"$as_dir" : 'X\(//\)[^/]' \| \
7525 X"$as_dir" : 'X\(//\)$' \| \
7526 X"$as_dir" : 'X\(/\)' \| \
7527 . : '\(.\)' 2>/dev/null ||
7529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7530 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7531 /^X\(\/\/\)$/{ s//\1/; q; }
7532 /^X\(\/\).*/{ s//\1/; q; }
7535 test ! -n "$as_dirs" || mkdir $as_dirs
7536 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7537 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7538 { (exit 1); exit 1; }; }; }
7541 mv $tmp/config.h $ac_file
7549 cat >>$CONFIG_STATUS <<\_ACEOF
7552 # CONFIG_COMMANDS section.
7554 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7555 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7556 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7557 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7558 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7559 X"$ac_dest" : 'X\(//\)[^/]' \| \
7560 X"$ac_dest" : 'X\(//\)$' \| \
7561 X"$ac_dest" : 'X\(/\)' \| \
7562 . : '\(.\)' 2>/dev/null ||
7564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7565 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7566 /^X\(\/\/\)$/{ s//\1/; q; }
7567 /^X\(\/\).*/{ s//\1/; q; }
7571 if test "$ac_dir" != .; then
7572 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7573 # A "../" for each directory in $ac_dir_suffix.
7574 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7576 ac_dir_suffix= ac_top_builddir=
7580 .) # No --srcdir option. We are building in place.
7582 if test -z "$ac_top_builddir"; then
7585 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7587 [\\/]* | ?:[\\/]* ) # Absolute path.
7588 ac_srcdir=$srcdir$ac_dir_suffix;
7589 ac_top_srcdir=$srcdir ;;
7591 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7592 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7594 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7596 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7597 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7598 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7599 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7602 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7603 echo "$as_me: executing $ac_dest commands" >&6;}
7606 # Makefile uses this timestamp file to record whether config.h is up to date.
7613 cat >>$CONFIG_STATUS <<\_ACEOF
7615 { (exit 0); exit 0; }
7617 chmod +x $CONFIG_STATUS
7618 ac_clean_files=$ac_clean_files_save
7621 # configure is writing to config.log, and then calls config.status.
7622 # config.status does its own redirection, appending to config.log.
7623 # Unfortunately, on DOS this fails, as config.log is still kept open
7624 # by configure, so config.status won't be able to write to it; its
7625 # output is simply discarded. So we exec the FD to /dev/null,
7626 # effectively closing config.log, so it can be properly (re)opened and
7627 # appended to by config.status. When coming back to configure, we
7628 # need to make the FD available again.
7629 if test "$no_create" != yes; then
7631 ac_config_status_args=
7632 test "$silent" = yes &&
7633 ac_config_status_args="$ac_config_status_args --quiet"
7635 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7637 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7638 # would make configure fail if this is the last instruction.
7639 $ac_cs_success || { (exit 1); exit 1; }