2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="abook.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CPP EGREP U ANSI2KNR LIBOBJS LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 if test -n "$ac_init_help"; then
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --disable-dependency-tracking Speeds up one-time builds
852 --enable-dependency-tracking Do not reject slow dependency extractors
853 --enable-debug Enable debugging support
856 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
857 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
858 --with-curses=DIR Where ncurses is installed
859 --with-readline=DIR Where readline is installed
861 Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 ac_dir_suffix= ac_top_builddir=
892 .) # No --srcdir option. We are building in place.
894 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
908 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
909 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
910 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
911 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
914 # Check for guested configure; otherwise get Cygnus style configure.
915 if test -f $ac_srcdir/configure.gnu; then
917 $SHELL $ac_srcdir/configure.gnu --help=recursive
918 elif test -f $ac_srcdir/configure; then
920 $SHELL $ac_srcdir/configure --help=recursive
921 elif test -f $ac_srcdir/configure.ac ||
922 test -f $ac_srcdir/configure.in; then
926 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
932 test -n "$ac_init_help" && exit 0
933 if $ac_init_version; then
936 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
937 Free Software Foundation, Inc.
938 This configure script is free software; the Free Software Foundation
939 gives unlimited permission to copy, distribute and modify it.
945 This file contains any messages produced by compilers while
946 running configure, to aid debugging if configure makes a mistake.
948 It was created by $as_me, which was
949 generated by GNU Autoconf 2.57. Invocation command line was
960 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
961 uname -m = `(uname -m) 2>/dev/null || echo unknown`
962 uname -r = `(uname -r) 2>/dev/null || echo unknown`
963 uname -s = `(uname -s) 2>/dev/null || echo unknown`
964 uname -v = `(uname -v) 2>/dev/null || echo unknown`
966 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
967 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
969 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
970 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
971 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
972 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
973 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
974 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
975 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
983 test -z "$as_dir" && as_dir=.
999 # Keep a trace of the command line.
1000 # Strip out --no-create and --no-recursion so they do not pile up.
1001 # Strip out --silent because we don't want to record it for future runs.
1002 # Also quote any args containing shell meta-characters.
1003 # Make two passes to allow for proper duplicate-argument suppression.
1008 ac_must_keep_next=false
1014 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1016 | -silent | --silent | --silen | --sile | --sil)
1018 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1019 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1022 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1024 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1025 if test $ac_must_keep_next = true; then
1026 ac_must_keep_next=false # Got value, back to normal.
1029 *=* | --config-cache | -C | -disable-* | --disable-* \
1030 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1031 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1032 | -with-* | --with-* | -without-* | --without-* | --x)
1033 case "$ac_configure_args0 " in
1034 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1037 -* ) ac_must_keep_next=true ;;
1040 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1041 # Get rid of the leading space.
1047 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1048 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1050 # When interrupted or exit'd, cleanup temporary files, and complete
1051 # config.log. We remove comments because anyway the quotes in there
1052 # would cause problems or look ugly.
1053 # WARNING: Be sure not to use single quotes in there, as some shells,
1054 # such as our DU 5.0 friend, will then `close' the trap.
1055 trap 'exit_status=$?
1056 # Save into config.log some information that might help in debugging.
1061 ## ---------------- ##
1062 ## Cache variables. ##
1063 ## ---------------- ##
1066 # The following way of writing the cache mishandles newlines in values,
1069 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1072 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1077 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1084 ## ----------------- ##
1085 ## Output variables. ##
1086 ## ----------------- ##
1089 for ac_var in $ac_subst_vars
1091 eval ac_val=$`echo $ac_var`
1092 echo "$ac_var='"'"'$ac_val'"'"'"
1096 if test -n "$ac_subst_files"; then
1103 for ac_var in $ac_subst_files
1105 eval ac_val=$`echo $ac_var`
1106 echo "$ac_var='"'"'$ac_val'"'"'"
1111 if test -s confdefs.h; then
1118 sed "/^$/d" confdefs.h | sort
1121 test "$ac_signal" != 0 &&
1122 echo "$as_me: caught signal $ac_signal"
1123 echo "$as_me: exit $exit_status"
1125 rm -f core core.* *.core &&
1126 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1129 for ac_signal in 1 2 13 15; do
1130 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1135 rm -rf conftest* confdefs.h
1136 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1139 # Predefined preprocessor variables.
1141 cat >>confdefs.h <<_ACEOF
1142 #define PACKAGE_NAME "$PACKAGE_NAME"
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_STRING "$PACKAGE_STRING"
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1166 # Let the site file select an alternate cache file if it wants to.
1167 # Prefer explicitly selected file to automatically selected ones.
1168 if test -z "$CONFIG_SITE"; then
1169 if test "x$prefix" != xNONE; then
1170 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1172 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1175 for ac_site_file in $CONFIG_SITE; do
1176 if test -r "$ac_site_file"; then
1177 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1178 echo "$as_me: loading site script $ac_site_file" >&6;}
1179 sed 's/^/| /' "$ac_site_file" >&5
1184 if test -r "$cache_file"; then
1185 # Some versions of bash will fail to source /dev/null (special
1186 # files actually), so we avoid doing that.
1187 if test -f "$cache_file"; then
1188 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1189 echo "$as_me: loading cache $cache_file" >&6;}
1191 [\\/]* | ?:[\\/]* ) . $cache_file;;
1192 *) . ./$cache_file;;
1196 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1197 echo "$as_me: creating cache $cache_file" >&6;}
1201 # Check that the precious variables saved in the cache have kept the same
1203 ac_cache_corrupted=false
1204 for ac_var in `(set) 2>&1 |
1205 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1206 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1207 eval ac_new_set=\$ac_env_${ac_var}_set
1208 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1209 eval ac_new_val="\$ac_env_${ac_var}_value"
1210 case $ac_old_set,$ac_new_set in
1212 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1213 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1214 ac_cache_corrupted=: ;;
1216 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1217 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1218 ac_cache_corrupted=: ;;
1221 if test "x$ac_old_val" != "x$ac_new_val"; then
1222 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1223 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1224 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1225 echo "$as_me: former value: $ac_old_val" >&2;}
1226 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1227 echo "$as_me: current value: $ac_new_val" >&2;}
1228 ac_cache_corrupted=:
1231 # Pass precious variables to config.status.
1232 if test "$ac_new_set" = set; then
1234 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1235 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1236 *) ac_arg=$ac_var=$ac_new_val ;;
1238 case " $ac_configure_args " in
1239 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1240 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1244 if $ac_cache_corrupted; then
1245 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1246 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1247 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1248 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1249 { (exit 1); exit 1; }; }
1253 ac_cpp='$CPP $CPPFLAGS'
1254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1276 am__api_version="1.6"
1278 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1279 if test -f $ac_dir/install-sh; then
1281 ac_install_sh="$ac_aux_dir/install-sh -c"
1283 elif test -f $ac_dir/install.sh; then
1285 ac_install_sh="$ac_aux_dir/install.sh -c"
1287 elif test -f $ac_dir/shtool; then
1289 ac_install_sh="$ac_aux_dir/shtool install -c"
1293 if test -z "$ac_aux_dir"; then
1294 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1295 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1296 { (exit 1); exit 1; }; }
1298 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1299 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1300 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1302 # Find a good install program. We prefer a C program (faster),
1303 # so one script is as good as another. But avoid the broken or
1304 # incompatible versions:
1305 # SysV /etc/install, /usr/sbin/install
1306 # SunOS /usr/etc/install
1307 # IRIX /sbin/install
1309 # AmigaOS /C/install, which installs bootblocks on floppy discs
1310 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1311 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1312 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1313 # ./install, which can be erroneously created by make from ./install.sh.
1314 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1315 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1316 if test -z "$INSTALL"; then
1317 if test "${ac_cv_path_install+set}" = set; then
1318 echo $ECHO_N "(cached) $ECHO_C" >&6
1320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1324 test -z "$as_dir" && as_dir=.
1325 # Account for people who put trailing slashes in PATH elements.
1327 ./ | .// | /cC/* | \
1328 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1331 # OSF1 and SCO ODT 3.0 have their own names for install.
1332 # Don't use installbsd from OSF since it installs stuff as root
1334 for ac_prog in ginstall scoinst install; do
1335 for ac_exec_ext in '' $ac_executable_extensions; do
1336 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1337 if test $ac_prog = install &&
1338 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1339 # AIX install. It has an incompatible calling convention.
1341 elif test $ac_prog = install &&
1342 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1343 # program-specific install script used by HP pwplus--don't use.
1346 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1358 if test "${ac_cv_path_install+set}" = set; then
1359 INSTALL=$ac_cv_path_install
1361 # As a last resort, use the slow shell script. We don't cache a
1362 # path for INSTALL within a source directory, because that will
1363 # break other packages using the cache if that directory is
1364 # removed, or if the path is relative.
1365 INSTALL=$ac_install_sh
1368 echo "$as_me:$LINENO: result: $INSTALL" >&5
1369 echo "${ECHO_T}$INSTALL" >&6
1371 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1372 # It thinks the first close brace ends the variable substitution.
1373 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1375 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1377 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1379 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1380 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1383 echo timestamp > conftest.file
1384 # Do `set' in a subshell so we don't clobber the current shell's
1385 # arguments. Must try -L first in case configure is actually a
1386 # symlink; some systems play weird games with the mod time of symlinks
1387 # (eg FreeBSD returns the mod time of the symlink's containing
1390 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1391 if test "$*" = "X"; then
1393 set X `ls -t $srcdir/configure conftest.file`
1396 if test "$*" != "X $srcdir/configure conftest.file" \
1397 && test "$*" != "X conftest.file $srcdir/configure"; then
1399 # If neither matched, then we have a broken ls. This can happen
1400 # if, for instance, CONFIG_SHELL is bash and it inherits a
1401 # broken ls alias from the environment. This has actually
1402 # happened. Such a system could not be considered "sane".
1403 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1404 alias in your environment" >&5
1405 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1406 alias in your environment" >&2;}
1407 { (exit 1); exit 1; }; }
1410 test "$2" = conftest.file
1416 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1417 Check your system clock" >&5
1418 echo "$as_me: error: newly created file is older than distributed files!
1419 Check your system clock" >&2;}
1420 { (exit 1); exit 1; }; }
1422 echo "$as_me:$LINENO: result: yes" >&5
1423 echo "${ECHO_T}yes" >&6
1424 test "$program_prefix" != NONE &&
1425 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1426 # Use a double $ so make ignores it.
1427 test "$program_suffix" != NONE &&
1428 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1429 # Double any \ or $. echo might interpret backslashes.
1430 # By default was `s,x,x', remove it if useless.
1431 cat <<\_ACEOF >conftest.sed
1432 s/[\\$]/&&/g;s/;s,x,x,$//
1434 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1438 # expand $ac_aux_dir to an absolute path
1439 am_aux_dir=`cd $ac_aux_dir && pwd`
1441 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1442 # Use eval to expand $SHELL
1443 if eval "$MISSING --run true"; then
1444 am_missing_run="$MISSING --run "
1447 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1448 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1451 for ac_prog in gawk mawk nawk awk
1453 # Extract the first word of "$ac_prog", so it can be a program name with args.
1454 set dummy $ac_prog; ac_word=$2
1455 echo "$as_me:$LINENO: checking for $ac_word" >&5
1456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1457 if test "${ac_cv_prog_AWK+set}" = set; then
1458 echo $ECHO_N "(cached) $ECHO_C" >&6
1460 if test -n "$AWK"; then
1461 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1467 test -z "$as_dir" && as_dir=.
1468 for ac_exec_ext in '' $ac_executable_extensions; do
1469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1470 ac_cv_prog_AWK="$ac_prog"
1471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1480 if test -n "$AWK"; then
1481 echo "$as_me:$LINENO: result: $AWK" >&5
1482 echo "${ECHO_T}$AWK" >&6
1484 echo "$as_me:$LINENO: result: no" >&5
1485 echo "${ECHO_T}no" >&6
1488 test -n "$AWK" && break
1491 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1492 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1493 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1494 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1495 echo $ECHO_N "(cached) $ECHO_C" >&6
1497 cat >conftest.make <<\_ACEOF
1499 @echo 'ac_maketemp="$(MAKE)"'
1501 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1502 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1503 if test -n "$ac_maketemp"; then
1504 eval ac_cv_prog_make_${ac_make}_set=yes
1506 eval ac_cv_prog_make_${ac_make}_set=no
1510 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1511 echo "$as_me:$LINENO: result: yes" >&5
1512 echo "${ECHO_T}yes" >&6
1515 echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1517 SET_MAKE="MAKE=${MAKE-make}"
1520 # test to see if srcdir already configured
1521 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1522 test -f $srcdir/config.status; then
1523 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1524 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1525 { (exit 1); exit 1; }; }
1528 # Define the identity of the package.
1533 cat >>confdefs.h <<_ACEOF
1534 #define PACKAGE "$PACKAGE"
1538 cat >>confdefs.h <<_ACEOF
1539 #define VERSION "$VERSION"
1542 # Some tools Automake needs.
1544 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1547 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1550 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1553 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1556 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1559 AMTAR=${AMTAR-"${am_missing_run}tar"}
1561 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1563 # Installed binaries are usually stripped using `strip' when the user
1564 # run `make install-strip'. However `strip' might not be the right
1565 # tool to use in cross-compilation environments, therefore Automake
1566 # will honor the `STRIP' environment variable to overrule this program.
1567 if test "$cross_compiling" != no; then
1568 if test -n "$ac_tool_prefix"; then
1569 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1570 set dummy ${ac_tool_prefix}strip; ac_word=$2
1571 echo "$as_me:$LINENO: checking for $ac_word" >&5
1572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1573 if test "${ac_cv_prog_STRIP+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1576 if test -n "$STRIP"; then
1577 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 test -z "$as_dir" && as_dir=.
1584 for ac_exec_ext in '' $ac_executable_extensions; do
1585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1586 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1595 STRIP=$ac_cv_prog_STRIP
1596 if test -n "$STRIP"; then
1597 echo "$as_me:$LINENO: result: $STRIP" >&5
1598 echo "${ECHO_T}$STRIP" >&6
1600 echo "$as_me:$LINENO: result: no" >&5
1601 echo "${ECHO_T}no" >&6
1605 if test -z "$ac_cv_prog_STRIP"; then
1607 # Extract the first word of "strip", so it can be a program name with args.
1608 set dummy strip; ac_word=$2
1609 echo "$as_me:$LINENO: checking for $ac_word" >&5
1610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1614 if test -n "$ac_ct_STRIP"; then
1615 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621 test -z "$as_dir" && as_dir=.
1622 for ac_exec_ext in '' $ac_executable_extensions; do
1623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624 ac_cv_prog_ac_ct_STRIP="strip"
1625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1634 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1635 if test -n "$ac_ct_STRIP"; then
1636 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1637 echo "${ECHO_T}$ac_ct_STRIP" >&6
1639 echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1645 STRIP="$ac_cv_prog_STRIP"
1649 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1651 # We need awk for the "check" target. The system "awk" is bad on
1656 # Add the stamp file to the list of files AC keeps track of,
1657 # along with our hook.
1658 ac_config_headers="$ac_config_headers config.h"
1664 cat >>confdefs.h <<\_ACEOF
1665 #define HAVE_SNPRINTF 0
1669 cat >>confdefs.h <<\_ACEOF
1670 #define HAVE_VSNPRINTF 0
1674 cat >>confdefs.h <<\_ACEOF
1675 #define HAVE_STDARG_H 0
1679 cat >>confdefs.h <<\_ACEOF
1680 #define HAVE_NCURSES 0
1684 # Make sure we can run config.sub.
1685 $ac_config_sub sun4 >/dev/null 2>&1 ||
1686 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1687 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1688 { (exit 1); exit 1; }; }
1690 echo "$as_me:$LINENO: checking build system type" >&5
1691 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1692 if test "${ac_cv_build+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 ac_cv_build_alias=$build_alias
1696 test -z "$ac_cv_build_alias" &&
1697 ac_cv_build_alias=`$ac_config_guess`
1698 test -z "$ac_cv_build_alias" &&
1699 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1700 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1701 { (exit 1); exit 1; }; }
1702 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1703 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1704 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1705 { (exit 1); exit 1; }; }
1708 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1709 echo "${ECHO_T}$ac_cv_build" >&6
1711 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1712 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1713 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1716 echo "$as_me:$LINENO: checking host system type" >&5
1717 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1718 if test "${ac_cv_host+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1721 ac_cv_host_alias=$host_alias
1722 test -z "$ac_cv_host_alias" &&
1723 ac_cv_host_alias=$ac_cv_build_alias
1724 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1725 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1726 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1727 { (exit 1); exit 1; }; }
1730 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1731 echo "${ECHO_T}$ac_cv_host" >&6
1733 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1734 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1735 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1740 ac_cpp='$CPP $CPPFLAGS'
1741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1744 if test -n "$ac_tool_prefix"; then
1745 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1746 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1747 echo "$as_me:$LINENO: checking for $ac_word" >&5
1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749 if test "${ac_cv_prog_CC+set}" = set; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 if test -n "$CC"; then
1753 ac_cv_prog_CC="$CC" # Let the user override the test.
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 test -z "$as_dir" && as_dir=.
1760 for ac_exec_ext in '' $ac_executable_extensions; do
1761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772 if test -n "$CC"; then
1773 echo "$as_me:$LINENO: result: $CC" >&5
1774 echo "${ECHO_T}$CC" >&6
1776 echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1781 if test -z "$ac_cv_prog_CC"; then
1783 # Extract the first word of "gcc", so it can be a program name with args.
1784 set dummy gcc; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 if test -n "$ac_ct_CC"; then
1791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 test -z "$as_dir" && as_dir=.
1798 for ac_exec_ext in '' $ac_executable_extensions; do
1799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800 ac_cv_prog_ac_ct_CC="gcc"
1801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1810 if test -n "$ac_ct_CC"; then
1811 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1812 echo "${ECHO_T}$ac_ct_CC" >&6
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1823 if test -z "$CC"; then
1824 if test -n "$ac_tool_prefix"; then
1825 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1826 set dummy ${ac_tool_prefix}cc; ac_word=$2
1827 echo "$as_me:$LINENO: checking for $ac_word" >&5
1828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829 if test "${ac_cv_prog_CC+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1832 if test -n "$CC"; then
1833 ac_cv_prog_CC="$CC" # Let the user override the test.
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842 ac_cv_prog_CC="${ac_tool_prefix}cc"
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852 if test -n "$CC"; then
1853 echo "$as_me:$LINENO: result: $CC" >&5
1854 echo "${ECHO_T}$CC" >&6
1856 echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1861 if test -z "$ac_cv_prog_CC"; then
1863 # Extract the first word of "cc", so it can be a program name with args.
1864 set dummy cc; ac_word=$2
1865 echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1870 if test -n "$ac_ct_CC"; then
1871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 test -z "$as_dir" && as_dir=.
1878 for ac_exec_ext in '' $ac_executable_extensions; do
1879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880 ac_cv_prog_ac_ct_CC="cc"
1881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1890 if test -n "$ac_ct_CC"; then
1891 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1892 echo "${ECHO_T}$ac_ct_CC" >&6
1894 echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1904 if test -z "$CC"; then
1905 # Extract the first word of "cc", so it can be a program name with args.
1906 set dummy cc; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_CC+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1912 if test -n "$CC"; then
1913 ac_cv_prog_CC="$CC" # Let the user override the test.
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 test -z "$as_dir" && as_dir=.
1921 for ac_exec_ext in '' $ac_executable_extensions; do
1922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1924 ac_prog_rejected=yes
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 if test $ac_prog_rejected = yes; then
1935 # We found a bogon in the path, so make sure we never use it.
1936 set dummy $ac_cv_prog_CC
1938 if test $# != 0; then
1939 # We chose a different compiler from the bogus one.
1940 # However, it has the same basename, so the bogon will be chosen
1941 # first if we set CC to just the basename; use the full file name.
1943 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1949 if test -n "$CC"; then
1950 echo "$as_me:$LINENO: result: $CC" >&5
1951 echo "${ECHO_T}$CC" >&6
1953 echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1958 if test -z "$CC"; then
1959 if test -n "$ac_tool_prefix"; then
1962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1964 echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1966 if test "${ac_cv_prog_CC+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 if test -n "$CC"; then
1970 ac_cv_prog_CC="$CC" # Let the user override the test.
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1979 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989 if test -n "$CC"; then
1990 echo "$as_me:$LINENO: result: $CC" >&5
1991 echo "${ECHO_T}$CC" >&6
1993 echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6
1997 test -n "$CC" && break
2000 if test -z "$CC"; then
2004 # Extract the first word of "$ac_prog", so it can be a program name with args.
2005 set dummy $ac_prog; ac_word=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 if test -n "$ac_ct_CC"; then
2012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 test -z "$as_dir" && as_dir=.
2019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021 ac_cv_prog_ac_ct_CC="$ac_prog"
2022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2031 if test -n "$ac_ct_CC"; then
2032 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033 echo "${ECHO_T}$ac_ct_CC" >&6
2035 echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2039 test -n "$ac_ct_CC" && break
2048 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2049 See \`config.log' for more details." >&5
2050 echo "$as_me: error: no acceptable C compiler found in \$PATH
2051 See \`config.log' for more details." >&2;}
2052 { (exit 1); exit 1; }; }
2054 # Provide some information about the compiler.
2055 echo "$as_me:$LINENO:" \
2056 "checking for C compiler version" >&5
2057 ac_compiler=`set X $ac_compile; echo $2`
2058 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2059 (eval $ac_compiler --version </dev/null >&5) 2>&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }
2063 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2064 (eval $ac_compiler -v </dev/null >&5) 2>&5
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }
2068 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2069 (eval $ac_compiler -V </dev/null >&5) 2>&5
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }
2074 cat >conftest.$ac_ext <<_ACEOF
2075 #line $LINENO "configure"
2078 cat confdefs.h >>conftest.$ac_ext
2079 cat >>conftest.$ac_ext <<_ACEOF
2080 /* end confdefs.h. */
2090 ac_clean_files_save=$ac_clean_files
2091 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2092 # Try to create an executable without -o first, disregard a.out.
2093 # It will help us diagnose broken compilers, and finding out an intuition
2095 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2096 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2097 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2098 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2099 (eval $ac_link_default) 2>&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }; then
2103 # Find the output, starting from the most likely. This scheme is
2104 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2107 # Be careful to initialize this variable, since it used to be cached.
2108 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2110 # b.out is created by i960 compilers.
2111 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2113 test -f "$ac_file" || continue
2115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2118 # This is the source file.
2121 # We found the default executable, but exeext='' is most
2125 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2126 # FIXME: I believe we export ac_cv_exeext for Libtool,
2127 # but it would be cool to find out if it's true. Does anybody
2128 # maintain Libtool? --akim.
2136 echo "$as_me: failed program was:" >&5
2137 sed 's/^/| /' conftest.$ac_ext >&5
2139 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2140 See \`config.log' for more details." >&5
2141 echo "$as_me: error: C compiler cannot create executables
2142 See \`config.log' for more details." >&2;}
2143 { (exit 77); exit 77; }; }
2146 ac_exeext=$ac_cv_exeext
2147 echo "$as_me:$LINENO: result: $ac_file" >&5
2148 echo "${ECHO_T}$ac_file" >&6
2150 # Check the compiler produces executables we can run. If not, either
2151 # the compiler is broken, or we cross compile.
2152 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2153 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2154 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2155 # If not cross compiling, check that we can run a simple program.
2156 if test "$cross_compiling" != yes; then
2157 if { ac_try='./$ac_file'
2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; }; then
2165 if test "$cross_compiling" = maybe; then
2168 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2169 If you meant to cross compile, use \`--host'.
2170 See \`config.log' for more details." >&5
2171 echo "$as_me: error: cannot run C compiled programs.
2172 If you meant to cross compile, use \`--host'.
2173 See \`config.log' for more details." >&2;}
2174 { (exit 1); exit 1; }; }
2178 echo "$as_me:$LINENO: result: yes" >&5
2179 echo "${ECHO_T}yes" >&6
2181 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2182 ac_clean_files=$ac_clean_files_save
2183 # Check the compiler produces executables we can run. If not, either
2184 # the compiler is broken, or we cross compile.
2185 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2186 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2187 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2188 echo "${ECHO_T}$cross_compiling" >&6
2190 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2191 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2193 (eval $ac_link) 2>&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; then
2197 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2198 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2199 # work properly (i.e., refer to `conftest.exe'), while it won't with
2201 for ac_file in conftest.exe conftest conftest.*; do
2202 test -f "$ac_file" || continue
2204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2205 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2212 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2213 See \`config.log' for more details." >&5
2214 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2215 See \`config.log' for more details." >&2;}
2216 { (exit 1); exit 1; }; }
2219 rm -f conftest$ac_cv_exeext
2220 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2221 echo "${ECHO_T}$ac_cv_exeext" >&6
2223 rm -f conftest.$ac_ext
2224 EXEEXT=$ac_cv_exeext
2226 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2227 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2228 if test "${ac_cv_objext+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 cat >conftest.$ac_ext <<_ACEOF
2232 #line $LINENO "configure"
2235 cat confdefs.h >>conftest.$ac_ext
2236 cat >>conftest.$ac_ext <<_ACEOF
2237 /* end confdefs.h. */
2247 rm -f conftest.o conftest.obj
2248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249 (eval $ac_compile) 2>&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; then
2253 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2256 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2261 echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2264 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2265 See \`config.log' for more details." >&5
2266 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2267 See \`config.log' for more details." >&2;}
2268 { (exit 1); exit 1; }; }
2271 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2273 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2274 echo "${ECHO_T}$ac_cv_objext" >&6
2275 OBJEXT=$ac_cv_objext
2277 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2278 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2279 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 cat >conftest.$ac_ext <<_ACEOF
2283 #line $LINENO "configure"
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); } &&
2307 { ac_try='test -s conftest.$ac_objext'
2308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; }; then
2315 echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2320 rm -f conftest.$ac_objext conftest.$ac_ext
2321 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2324 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2325 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2326 GCC=`test $ac_compiler_gnu = yes && echo yes`
2327 ac_test_CFLAGS=${CFLAGS+set}
2328 ac_save_CFLAGS=$CFLAGS
2330 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2331 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2332 if test "${ac_cv_prog_cc_g+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 cat >conftest.$ac_ext <<_ACEOF
2336 #line $LINENO "configure"
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2351 rm -f conftest.$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353 (eval $ac_compile) 2>&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); } &&
2357 { ac_try='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2370 rm -f conftest.$ac_objext conftest.$ac_ext
2372 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2373 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2374 if test "$ac_test_CFLAGS" = set; then
2375 CFLAGS=$ac_save_CFLAGS
2376 elif test $ac_cv_prog_cc_g = yes; then
2377 if test "$GCC" = yes; then
2383 if test "$GCC" = yes; then
2389 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2390 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2391 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 ac_cv_prog_cc_stdc=no
2396 cat >conftest.$ac_ext <<_ACEOF
2397 #line $LINENO "configure"
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2405 #include <sys/types.h>
2406 #include <sys/stat.h>
2407 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2408 struct buf { int x; };
2409 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2410 static char *e (p, i)
2416 static char *f (char * (*g) (char **, int), char **p, ...)
2421 s = g (p, va_arg (v,int));
2425 int test (int i, double x);
2426 struct s1 {int (*f) (int a);};
2427 struct s2 {int (*f) (double a);};
2428 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2434 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2439 # Don't try gcc -ansi; that turns off useful extensions and
2440 # breaks some systems' header files.
2441 # AIX -qlanglvl=ansi
2442 # Ultrix and OSF/1 -std1
2443 # HP-UX 10.20 and later -Ae
2444 # HP-UX older versions -Aa -D_HPUX_SOURCE
2445 # SVR4 -Xc -D__EXTENSIONS__
2446 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2448 CC="$ac_save_CC $ac_arg"
2449 rm -f conftest.$ac_objext
2450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451 (eval $ac_compile) 2>&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
2455 { ac_try='test -s conftest.$ac_objext'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; }; then
2461 ac_cv_prog_cc_stdc=$ac_arg
2464 echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2468 rm -f conftest.$ac_objext
2470 rm -f conftest.$ac_ext conftest.$ac_objext
2475 case "x$ac_cv_prog_cc_stdc" in
2477 echo "$as_me:$LINENO: result: none needed" >&5
2478 echo "${ECHO_T}none needed" >&6 ;;
2480 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2481 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2482 CC="$CC $ac_cv_prog_cc_stdc" ;;
2485 # Some people use a C++ compiler to compile C. Since we use `exit',
2486 # in C++ we need to declare it. In case someone uses the same compiler
2487 # for both compiling C and C++ we need to have the C++ compiler decide
2488 # the declaration of exit, since it's the most demanding environment.
2489 cat >conftest.$ac_ext <<_ACEOF
2494 rm -f conftest.$ac_objext
2495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496 (eval $ac_compile) 2>&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
2500 { ac_try='test -s conftest.$ac_objext'
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; }; then
2506 for ac_declaration in \
2508 '#include <stdlib.h>' \
2509 'extern "C" void std::exit (int) throw (); using std::exit;' \
2510 'extern "C" void std::exit (int); using std::exit;' \
2511 'extern "C" void exit (int) throw ();' \
2512 'extern "C" void exit (int);' \
2515 cat >conftest.$ac_ext <<_ACEOF
2516 #line $LINENO "configure"
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2532 rm -f conftest.$ac_objext
2533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2534 (eval $ac_compile) 2>&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); } &&
2538 { ac_try='test -s conftest.$ac_objext'
2539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }; }; then
2546 echo "$as_me: failed program was:" >&5
2547 sed 's/^/| /' conftest.$ac_ext >&5
2551 rm -f conftest.$ac_objext conftest.$ac_ext
2552 cat >conftest.$ac_ext <<_ACEOF
2553 #line $LINENO "configure"
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h. */
2568 rm -f conftest.$ac_objext
2569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570 (eval $ac_compile) 2>&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -s conftest.$ac_objext'
2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; }; then
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2586 rm -f conftest.$ac_objext conftest.$ac_ext
2589 if test -n "$ac_declaration"; then
2590 echo '#ifdef __cplusplus' >>confdefs.h
2591 echo $ac_declaration >>confdefs.h
2592 echo '#endif' >>confdefs.h
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2600 rm -f conftest.$ac_objext conftest.$ac_ext
2602 ac_cpp='$CPP $CPPFLAGS'
2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606 rm -f .deps 2>/dev/null
2607 mkdir .deps 2>/dev/null
2608 if test -d .deps; then
2611 # MS-DOS does not allow filenames that begin with a dot.
2614 rmdir .deps 2>/dev/null
2617 ac_config_commands="$ac_config_commands depfiles"
2620 am_make=${MAKE-make}
2621 cat > confinc << 'END'
2625 # If we don't find an include directive, just comment out the code.
2626 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2627 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2631 # First try GNU make style include.
2632 echo "include confinc" > confmf
2633 # We grep out `Entering directory' and `Leaving directory'
2634 # messages which can occur if `w' ends up in MAKEFLAGS.
2635 # In particular we don't look at `^make:' because GNU make might
2636 # be invoked under some other name (usually "gmake"), in which
2637 # case it prints its new name instead of `make'.
2638 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2643 # Now try BSD make style include.
2644 if test "$am__include" = "#"; then
2645 echo '.include "confinc"' > confmf
2646 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2647 am__include=.include
2654 echo "$as_me:$LINENO: result: $_am_result" >&5
2655 echo "${ECHO_T}$_am_result" >&6
2656 rm -f confinc confmf
2658 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2659 if test "${enable_dependency_tracking+set}" = set; then
2660 enableval="$enable_dependency_tracking"
2663 if test "x$enable_dependency_tracking" != xno; then
2664 am_depcomp="$ac_aux_dir/depcomp"
2669 if test "x$enable_dependency_tracking" != xno; then
2680 depcc="$CC" am_compiler_list=
2682 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2683 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2684 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2688 # We make a subdir and do the tests there. Otherwise we can end up
2689 # making bogus files that we don't know about and never remove. For
2690 # instance it was reported that on HP-UX the gcc test will end up
2691 # making a dummy file named `D' -- because `-MD' means `put the output
2694 # Copy depcomp to subdir because otherwise we won't find it if we're
2695 # using a relative directory.
2696 cp "$am_depcomp" conftest.dir
2699 am_cv_CC_dependencies_compiler_type=none
2700 if test "$am_compiler_list" = ""; then
2701 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2703 for depmode in $am_compiler_list; do
2704 # We need to recreate these files for each test, as the compiler may
2705 # overwrite some of them when testing with obscure command lines.
2706 # This happens at least with the AIX C compiler.
2707 echo '#include "conftest.h"' > conftest.c
2708 echo 'int i;' > conftest.h
2709 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2713 # after this tag, mechanisms are not by side-effect, so they'll
2714 # only be used when explicitly requested
2715 if test "x$enable_dependency_tracking" = xyes; then
2723 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2724 # mode. It turns out that the SunPro C++ compiler does not properly
2725 # handle `-M -o', and we need to detect this.
2726 if depmode=$depmode \
2727 source=conftest.c object=conftest.o \
2728 depfile=conftest.Po tmpdepfile=conftest.TPo \
2729 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2730 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2731 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2732 am_cv_CC_dependencies_compiler_type=$depmode
2740 am_cv_CC_dependencies_compiler_type=none
2744 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2745 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2746 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2751 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2752 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2753 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 ac_check_lib_save_LIBS=$LIBS
2757 LIBS="-lcposix $LIBS"
2758 cat >conftest.$ac_ext <<_ACEOF
2759 #line $LINENO "configure"
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h. */
2766 /* Override any gcc2 internal prototype to avoid an error. */
2770 /* We use char because int might match the return type of a gcc2
2771 builtin and then its argument prototype would still apply. */
2781 rm -f conftest.$ac_objext conftest$ac_exeext
2782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2783 (eval $ac_link) 2>&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 { ac_try='test -s conftest$ac_exeext'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2793 ac_cv_lib_cposix_strerror=yes
2795 echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2798 ac_cv_lib_cposix_strerror=no
2800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2801 LIBS=$ac_check_lib_save_LIBS
2803 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2804 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2805 if test $ac_cv_lib_cposix_strerror = yes; then
2806 LIBS="$LIBS -lcposix"
2814 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2815 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2816 if test "${am_cv_prog_cc_stdc+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 am_cv_prog_cc_stdc=no
2821 # Don't try gcc -ansi; that turns off useful extensions and
2822 # breaks some systems' header files.
2823 # AIX -qlanglvl=ansi
2824 # Ultrix and OSF/1 -std1
2825 # HP-UX 10.20 and later -Ae
2826 # HP-UX older versions -Aa -D_HPUX_SOURCE
2827 # SVR4 -Xc -D__EXTENSIONS__
2828 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2830 CC="$ac_save_CC $ac_arg"
2831 cat >conftest.$ac_ext <<_ACEOF
2832 #line $LINENO "configure"
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2840 #include <sys/types.h>
2841 #include <sys/stat.h>
2842 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2843 struct buf { int x; };
2844 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2845 static char *e (p, i)
2851 static char *f (char * (*g) (char **, int), char **p, ...)
2856 s = g (p, va_arg (v,int));
2860 int test (int i, double x);
2861 struct s1 {int (*f) (int a);};
2862 struct s2 {int (*f) (double a);};
2863 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2871 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2877 rm -f conftest.$ac_objext
2878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2879 (eval $ac_compile) 2>&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } &&
2883 { ac_try='test -s conftest.$ac_objext'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2889 am_cv_prog_cc_stdc="$ac_arg"; break
2891 echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2895 rm -f conftest.$ac_objext conftest.$ac_ext
2901 if test -z "$am_cv_prog_cc_stdc"; then
2902 echo "$as_me:$LINENO: result: none needed" >&5
2903 echo "${ECHO_T}none needed" >&6
2905 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2906 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2908 case "x$am_cv_prog_cc_stdc" in
2910 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2919 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2920 # On Suns, sometimes $CPP names a directory.
2921 if test -n "$CPP" && test -d "$CPP"; then
2924 if test -z "$CPP"; then
2925 if test "${ac_cv_prog_CPP+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 # Double quotes because CPP needs to be expanded
2929 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2932 for ac_c_preproc_warn_flag in '' yes
2934 # Use a header file that comes with gcc, so configuring glibc
2935 # with a fresh cross-compiler works.
2936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2937 # <limits.h> exists even on freestanding compilers.
2938 # On the NeXT, cc -E runs the code through the compiler's parser,
2939 # not just through cpp. "Syntax error" is here to catch this case.
2940 cat >conftest.$ac_ext <<_ACEOF
2941 #line $LINENO "configure"
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2948 # include <limits.h>
2950 # include <assert.h>
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2957 grep -v '^ *+' conftest.er1 >conftest.err
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } >/dev/null; then
2962 if test -s conftest.err; then
2963 ac_cpp_err=$ac_c_preproc_warn_flag
2970 if test -z "$ac_cpp_err"; then
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2976 # Broken: fails on valid input.
2979 rm -f conftest.err conftest.$ac_ext
2981 # OK, works on sane cases. Now check whether non-existent headers
2982 # can be detected and how.
2983 cat >conftest.$ac_ext <<_ACEOF
2984 #line $LINENO "configure"
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2990 #include <ac_nonexistent.h>
2992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2995 grep -v '^ *+' conftest.er1 >conftest.err
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } >/dev/null; then
3000 if test -s conftest.err; then
3001 ac_cpp_err=$ac_c_preproc_warn_flag
3008 if test -z "$ac_cpp_err"; then
3009 # Broken: success on invalid input.
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3015 # Passes both tests.
3019 rm -f conftest.err conftest.$ac_ext
3022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3023 rm -f conftest.err conftest.$ac_ext
3024 if $ac_preproc_ok; then
3036 echo "$as_me:$LINENO: result: $CPP" >&5
3037 echo "${ECHO_T}$CPP" >&6
3039 for ac_c_preproc_warn_flag in '' yes
3041 # Use a header file that comes with gcc, so configuring glibc
3042 # with a fresh cross-compiler works.
3043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3044 # <limits.h> exists even on freestanding compilers.
3045 # On the NeXT, cc -E runs the code through the compiler's parser,
3046 # not just through cpp. "Syntax error" is here to catch this case.
3047 cat >conftest.$ac_ext <<_ACEOF
3048 #line $LINENO "configure"
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3055 # include <limits.h>
3057 # include <assert.h>
3061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3064 grep -v '^ *+' conftest.er1 >conftest.err
3066 cat conftest.err >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } >/dev/null; then
3069 if test -s conftest.err; then
3070 ac_cpp_err=$ac_c_preproc_warn_flag
3077 if test -z "$ac_cpp_err"; then
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3083 # Broken: fails on valid input.
3086 rm -f conftest.err conftest.$ac_ext
3088 # OK, works on sane cases. Now check whether non-existent headers
3089 # can be detected and how.
3090 cat >conftest.$ac_ext <<_ACEOF
3091 #line $LINENO "configure"
3094 cat confdefs.h >>conftest.$ac_ext
3095 cat >>conftest.$ac_ext <<_ACEOF
3096 /* end confdefs.h. */
3097 #include <ac_nonexistent.h>
3099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3102 grep -v '^ *+' conftest.er1 >conftest.err
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } >/dev/null; then
3107 if test -s conftest.err; then
3108 ac_cpp_err=$ac_c_preproc_warn_flag
3115 if test -z "$ac_cpp_err"; then
3116 # Broken: success on invalid input.
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3122 # Passes both tests.
3126 rm -f conftest.err conftest.$ac_ext
3129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3130 rm -f conftest.err conftest.$ac_ext
3131 if $ac_preproc_ok; then
3134 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3135 See \`config.log' for more details." >&5
3136 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3137 See \`config.log' for more details." >&2;}
3138 { (exit 1); exit 1; }; }
3142 ac_cpp='$CPP $CPPFLAGS'
3143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148 echo "$as_me:$LINENO: checking for egrep" >&5
3149 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3150 if test "${ac_cv_prog_egrep+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3154 then ac_cv_prog_egrep='grep -E'
3155 else ac_cv_prog_egrep='egrep'
3158 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3159 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3160 EGREP=$ac_cv_prog_egrep
3163 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3173 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3174 inttypes.h stdint.h unistd.h
3176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3177 echo "$as_me:$LINENO: checking for $ac_header" >&5
3178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 cat >conftest.$ac_ext <<_ACEOF
3183 #line $LINENO "configure"
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3189 $ac_includes_default
3191 #include <$ac_header>
3193 rm -f conftest.$ac_objext
3194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3195 (eval $ac_compile) 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } &&
3199 { ac_try='test -s conftest.$ac_objext'
3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; }; then
3205 eval "$as_ac_Header=yes"
3207 echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3210 eval "$as_ac_Header=no"
3212 rm -f conftest.$ac_objext conftest.$ac_ext
3214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3217 cat >>confdefs.h <<_ACEOF
3218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3228 echo "$as_me:$LINENO: checking for function prototypes" >&5
3229 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3230 if test "$am_cv_prog_cc_stdc" != no; then
3231 echo "$as_me:$LINENO: result: yes" >&5
3232 echo "${ECHO_T}yes" >&6
3234 cat >>confdefs.h <<\_ACEOF
3235 #define PROTOTYPES 1
3240 echo "$as_me:$LINENO: result: no" >&5
3241 echo "${ECHO_T}no" >&6
3242 U=_ ANSI2KNR=./ansi2knr
3244 # Ensure some checks needed by ansi2knr itself.
3245 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3246 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3247 if test "${ac_cv_header_stdc+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 cat >conftest.$ac_ext <<_ACEOF
3251 #line $LINENO "configure"
3254 cat confdefs.h >>conftest.$ac_ext
3255 cat >>conftest.$ac_ext <<_ACEOF
3256 /* end confdefs.h. */
3270 rm -f conftest.$ac_objext
3271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3272 (eval $ac_compile) 2>&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } &&
3276 { ac_try='test -s conftest.$ac_objext'
3277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }; }; then
3282 ac_cv_header_stdc=yes
3284 echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3287 ac_cv_header_stdc=no
3289 rm -f conftest.$ac_objext conftest.$ac_ext
3291 if test $ac_cv_header_stdc = yes; then
3292 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3293 cat >conftest.$ac_ext <<_ACEOF
3294 #line $LINENO "configure"
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3304 $EGREP "memchr" >/dev/null 2>&1; then
3307 ac_cv_header_stdc=no
3313 if test $ac_cv_header_stdc = yes; then
3314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3315 cat >conftest.$ac_ext <<_ACEOF
3316 #line $LINENO "configure"
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3326 $EGREP "free" >/dev/null 2>&1; then
3329 ac_cv_header_stdc=no
3335 if test $ac_cv_header_stdc = yes; then
3336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3337 if test "$cross_compiling" = yes; then
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. */
3348 #if ((' ' & 0x0FF) == 0x020)
3349 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3350 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3352 # define ISLOWER(c) \
3353 (('a' <= (c) && (c) <= 'i') \
3354 || ('j' <= (c) && (c) <= 'r') \
3355 || ('s' <= (c) && (c) <= 'z'))
3356 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3359 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3364 for (i = 0; i < 256; i++)
3365 if (XOR (islower (i), ISLOWER (i))
3366 || toupper (i) != TOUPPER (i))
3371 rm -f conftest$ac_exeext
3372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3373 (eval $ac_link) 2>&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; }; then
3384 echo "$as_me: program exited with status $ac_status" >&5
3385 echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3389 ac_cv_header_stdc=no
3391 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3395 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3396 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3397 if test $ac_cv_header_stdc = yes; then
3399 cat >>confdefs.h <<\_ACEOF
3400 #define STDC_HEADERS 1
3406 for ac_header in string.h
3408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3410 echo "$as_me:$LINENO: checking for $ac_header" >&5
3411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3418 # Is the header compilable?
3419 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3421 cat >conftest.$ac_ext <<_ACEOF
3422 #line $LINENO "configure"
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428 $ac_includes_default
3429 #include <$ac_header>
3431 rm -f conftest.$ac_objext
3432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3433 (eval $ac_compile) 2>&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } &&
3437 { ac_try='test -s conftest.$ac_objext'
3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; }; then
3443 ac_header_compiler=yes
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3448 ac_header_compiler=no
3450 rm -f conftest.$ac_objext conftest.$ac_ext
3451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3452 echo "${ECHO_T}$ac_header_compiler" >&6
3454 # Is the header present?
3455 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3457 cat >conftest.$ac_ext <<_ACEOF
3458 #line $LINENO "configure"
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3464 #include <$ac_header>
3466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3469 grep -v '^ *+' conftest.er1 >conftest.err
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } >/dev/null; then
3474 if test -s conftest.err; then
3475 ac_cpp_err=$ac_c_preproc_warn_flag
3482 if test -z "$ac_cpp_err"; then
3483 ac_header_preproc=yes
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3488 ac_header_preproc=no
3490 rm -f conftest.err conftest.$ac_ext
3491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3492 echo "${ECHO_T}$ac_header_preproc" >&6
3494 # So? What about this header?
3495 case $ac_header_compiler:$ac_header_preproc in
3497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3503 ## ------------------------------------ ##
3504 ## Report this to bug-autoconf@gnu.org. ##
3505 ## ------------------------------------ ##
3508 sed "s/^/$as_me: WARNING: /" >&2
3511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3519 ## ------------------------------------ ##
3520 ## Report this to bug-autoconf@gnu.org. ##
3521 ## ------------------------------------ ##
3524 sed "s/^/$as_me: WARNING: /" >&2
3527 echo "$as_me:$LINENO: checking for $ac_header" >&5
3528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3532 eval "$as_ac_Header=$ac_header_preproc"
3534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3539 cat >>confdefs.h <<_ACEOF
3540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3548 if test "x$U" != "x"; then
3549 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3550 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3551 { (exit 1); exit 1; }; }
3553 echo "$as_me:$LINENO: checking for inline" >&5
3554 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3555 if test "${ac_cv_c_inline+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 for ac_kw in inline __inline__ __inline; do
3560 cat >conftest.$ac_ext <<_ACEOF
3561 #line $LINENO "configure"
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3569 static $ac_kw foo_t static_foo () {return 0; }
3570 $ac_kw foo_t foo () {return 0; }
3574 rm -f conftest.$ac_objext
3575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3576 (eval $ac_compile) 2>&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } &&
3580 { ac_try='test -s conftest.$ac_objext'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 ac_cv_c_inline=$ac_kw; break
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3592 rm -f conftest.$ac_objext conftest.$ac_ext
3596 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3597 echo "${ECHO_T}$ac_cv_c_inline" >&6
3598 case $ac_cv_c_inline in
3601 cat >>confdefs.h <<\_ACEOF
3605 *) cat >>confdefs.h <<_ACEOF
3606 #define inline $ac_cv_c_inline
3611 # Find a good install program. We prefer a C program (faster),
3612 # so one script is as good as another. But avoid the broken or
3613 # incompatible versions:
3614 # SysV /etc/install, /usr/sbin/install
3615 # SunOS /usr/etc/install
3616 # IRIX /sbin/install
3618 # AmigaOS /C/install, which installs bootblocks on floppy discs
3619 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3620 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3621 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3622 # ./install, which can be erroneously created by make from ./install.sh.
3623 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3624 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3625 if test -z "$INSTALL"; then
3626 if test "${ac_cv_path_install+set}" = set; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 test -z "$as_dir" && as_dir=.
3634 # Account for people who put trailing slashes in PATH elements.
3636 ./ | .// | /cC/* | \
3637 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3640 # OSF1 and SCO ODT 3.0 have their own names for install.
3641 # Don't use installbsd from OSF since it installs stuff as root
3643 for ac_prog in ginstall scoinst install; do
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3646 if test $ac_prog = install &&
3647 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3648 # AIX install. It has an incompatible calling convention.
3650 elif test $ac_prog = install &&
3651 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3652 # program-specific install script used by HP pwplus--don't use.
3655 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3667 if test "${ac_cv_path_install+set}" = set; then
3668 INSTALL=$ac_cv_path_install
3670 # As a last resort, use the slow shell script. We don't cache a
3671 # path for INSTALL within a source directory, because that will
3672 # break other packages using the cache if that directory is
3673 # removed, or if the path is relative.
3674 INSTALL=$ac_install_sh
3677 echo "$as_me:$LINENO: result: $INSTALL" >&5
3678 echo "${ECHO_T}$INSTALL" >&6
3680 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3681 # It thinks the first close brace ends the variable substitution.
3682 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3684 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3686 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3688 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3689 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3690 if test "${ac_cv_header_stdc+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 cat >conftest.$ac_ext <<_ACEOF
3694 #line $LINENO "configure"
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h. */
3713 rm -f conftest.$ac_objext
3714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3715 (eval $ac_compile) 2>&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); } &&
3719 { ac_try='test -s conftest.$ac_objext'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; }; then
3725 ac_cv_header_stdc=yes
3727 echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3730 ac_cv_header_stdc=no
3732 rm -f conftest.$ac_objext conftest.$ac_ext
3734 if test $ac_cv_header_stdc = yes; then
3735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3736 cat >conftest.$ac_ext <<_ACEOF
3737 #line $LINENO "configure"
3740 cat confdefs.h >>conftest.$ac_ext
3741 cat >>conftest.$ac_ext <<_ACEOF
3742 /* end confdefs.h. */
3746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3747 $EGREP "memchr" >/dev/null 2>&1; then
3750 ac_cv_header_stdc=no
3756 if test $ac_cv_header_stdc = yes; then
3757 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3758 cat >conftest.$ac_ext <<_ACEOF
3759 #line $LINENO "configure"
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3769 $EGREP "free" >/dev/null 2>&1; then
3772 ac_cv_header_stdc=no
3778 if test $ac_cv_header_stdc = yes; then
3779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3780 if test "$cross_compiling" = yes; then
3783 cat >conftest.$ac_ext <<_ACEOF
3784 #line $LINENO "configure"
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3791 #if ((' ' & 0x0FF) == 0x020)
3792 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3793 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3795 # define ISLOWER(c) \
3796 (('a' <= (c) && (c) <= 'i') \
3797 || ('j' <= (c) && (c) <= 'r') \
3798 || ('s' <= (c) && (c) <= 'z'))
3799 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3802 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3807 for (i = 0; i < 256; i++)
3808 if (XOR (islower (i), ISLOWER (i))
3809 || toupper (i) != TOUPPER (i))
3814 rm -f conftest$ac_exeext
3815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3816 (eval $ac_link) 2>&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); }; }; then
3827 echo "$as_me: program exited with status $ac_status" >&5
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3832 ac_cv_header_stdc=no
3834 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3838 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3839 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3840 if test $ac_cv_header_stdc = yes; then
3842 cat >>confdefs.h <<\_ACEOF
3843 #define STDC_HEADERS 1
3853 for ac_header in unistd.h locale.h termios.h linux/termios.h sys/ioctl.h
3855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3857 echo "$as_me:$LINENO: checking for $ac_header" >&5
3858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3865 # Is the header compilable?
3866 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3868 cat >conftest.$ac_ext <<_ACEOF
3869 #line $LINENO "configure"
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3875 $ac_includes_default
3876 #include <$ac_header>
3878 rm -f conftest.$ac_objext
3879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3880 (eval $ac_compile) 2>&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } &&
3884 { ac_try='test -s conftest.$ac_objext'
3885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }; }; then
3890 ac_header_compiler=yes
3892 echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3895 ac_header_compiler=no
3897 rm -f conftest.$ac_objext conftest.$ac_ext
3898 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3899 echo "${ECHO_T}$ac_header_compiler" >&6
3901 # Is the header present?
3902 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3904 cat >conftest.$ac_ext <<_ACEOF
3905 #line $LINENO "configure"
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3911 #include <$ac_header>
3913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3916 grep -v '^ *+' conftest.er1 >conftest.err
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } >/dev/null; then
3921 if test -s conftest.err; then
3922 ac_cpp_err=$ac_c_preproc_warn_flag
3929 if test -z "$ac_cpp_err"; then
3930 ac_header_preproc=yes
3932 echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3935 ac_header_preproc=no
3937 rm -f conftest.err conftest.$ac_ext
3938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3939 echo "${ECHO_T}$ac_header_preproc" >&6
3941 # So? What about this header?
3942 case $ac_header_compiler:$ac_header_preproc in
3944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3950 ## ------------------------------------ ##
3951 ## Report this to bug-autoconf@gnu.org. ##
3952 ## ------------------------------------ ##
3955 sed "s/^/$as_me: WARNING: /" >&2
3958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3966 ## ------------------------------------ ##
3967 ## Report this to bug-autoconf@gnu.org. ##
3968 ## ------------------------------------ ##
3971 sed "s/^/$as_me: WARNING: /" >&2
3974 echo "$as_me:$LINENO: checking for $ac_header" >&5
3975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 eval "$as_ac_Header=$ac_header_preproc"
3981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3986 cat >>confdefs.h <<_ACEOF
3987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3994 if test "${ac_cv_header_stdarg_h+set}" = set; then
3995 echo "$as_me:$LINENO: checking for stdarg.h" >&5
3996 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
3997 if test "${ac_cv_header_stdarg_h+set}" = set; then
3998 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
4001 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
4003 # Is the header compilable?
4004 echo "$as_me:$LINENO: checking stdarg.h usability" >&5
4005 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
4006 cat >conftest.$ac_ext <<_ACEOF
4007 #line $LINENO "configure"
4010 cat confdefs.h >>conftest.$ac_ext
4011 cat >>conftest.$ac_ext <<_ACEOF
4012 /* end confdefs.h. */
4013 $ac_includes_default
4016 rm -f conftest.$ac_objext
4017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018 (eval $ac_compile) 2>&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } &&
4022 { ac_try='test -s conftest.$ac_objext'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4028 ac_header_compiler=yes
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4033 ac_header_compiler=no
4035 rm -f conftest.$ac_objext conftest.$ac_ext
4036 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4037 echo "${ECHO_T}$ac_header_compiler" >&6
4039 # Is the header present?
4040 echo "$as_me:$LINENO: checking stdarg.h presence" >&5
4041 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
4042 cat >conftest.$ac_ext <<_ACEOF
4043 #line $LINENO "configure"
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4054 grep -v '^ *+' conftest.er1 >conftest.err
4056 cat conftest.err >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); } >/dev/null; then
4059 if test -s conftest.err; then
4060 ac_cpp_err=$ac_c_preproc_warn_flag
4067 if test -z "$ac_cpp_err"; then
4068 ac_header_preproc=yes
4070 echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4073 ac_header_preproc=no
4075 rm -f conftest.err conftest.$ac_ext
4076 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4077 echo "${ECHO_T}$ac_header_preproc" >&6
4079 # So? What about this header?
4080 case $ac_header_compiler:$ac_header_preproc in
4082 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
4083 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4084 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
4085 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
4088 ## ------------------------------------ ##
4089 ## Report this to bug-autoconf@gnu.org. ##
4090 ## ------------------------------------ ##
4093 sed "s/^/$as_me: WARNING: /" >&2
4096 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
4097 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
4098 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
4099 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
4100 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
4101 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
4104 ## ------------------------------------ ##
4105 ## Report this to bug-autoconf@gnu.org. ##
4106 ## ------------------------------------ ##
4109 sed "s/^/$as_me: WARNING: /" >&2
4112 echo "$as_me:$LINENO: checking for stdarg.h" >&5
4113 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
4114 if test "${ac_cv_header_stdarg_h+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 ac_cv_header_stdarg_h=$ac_header_preproc
4119 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
4120 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
4123 if test $ac_cv_header_stdarg_h = yes; then
4124 cat >>confdefs.h <<\_ACEOF
4125 #define HAVE_STDARG_H 1
4129 { { echo "$as_me:$LINENO: error: *** stdarg.h is missing on your system ***" >&5
4130 echo "$as_me: error: *** stdarg.h is missing on your system ***" >&2;}
4131 { (exit 1); exit 1; }; }
4135 echo "$as_me:$LINENO: checking for working strcoll" >&5
4136 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
4137 if test "${ac_cv_func_strcoll_works+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 if test "$cross_compiling" = yes; then
4141 ac_cv_func_strcoll_works=no
4143 cat >conftest.$ac_ext <<_ACEOF
4144 #line $LINENO "configure"
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h. */
4150 $ac_includes_default
4154 exit (strcoll ("abc", "def") >= 0 ||
4155 strcoll ("ABC", "DEF") >= 0 ||
4156 strcoll ("123", "456") >= 0)
4161 rm -f conftest$ac_exeext
4162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4163 (eval $ac_link) 2>&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
4172 ac_cv_func_strcoll_works=yes
4174 echo "$as_me: program exited with status $ac_status" >&5
4175 echo "$as_me: failed program was:" >&5
4176 sed 's/^/| /' conftest.$ac_ext >&5
4179 ac_cv_func_strcoll_works=no
4181 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4184 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
4185 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
4186 if test $ac_cv_func_strcoll_works = yes; then
4188 cat >>confdefs.h <<\_ACEOF
4189 #define HAVE_STRCOLL 1
4195 for ac_func in setlocale
4197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4198 echo "$as_me:$LINENO: checking for $ac_func" >&5
4199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4200 if eval "test \"\${$as_ac_var+set}\" = set"; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 cat >conftest.$ac_ext <<_ACEOF
4204 #line $LINENO "configure"
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 /* System header to define __stub macros and hopefully few prototypes,
4211 which can conflict with char $ac_func (); below.
4212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4213 <limits.h> exists even on freestanding compilers. */
4215 # include <limits.h>
4217 # include <assert.h>
4219 /* Override any gcc2 internal prototype to avoid an error. */
4224 /* We use char because int might match the return type of a gcc2
4225 builtin and then its argument prototype would still apply. */
4227 /* The GNU C library defines this for functions which it implements
4228 to always fail with ENOSYS. Some functions are actually named
4229 something starting with __ and the normal name is an alias. */
4230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4233 char (*f) () = $ac_func;
4242 return f != $ac_func;
4247 rm -f conftest.$ac_objext conftest$ac_exeext
4248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4249 (eval $ac_link) 2>&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); } &&
4253 { ac_try='test -s conftest$ac_exeext'
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4259 eval "$as_ac_var=yes"
4261 echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.$ac_ext >&5
4264 eval "$as_ac_var=no"
4266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4270 if test `eval echo '${'$as_ac_var'}'` = yes; then
4271 cat >>confdefs.h <<_ACEOF
4272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4280 abook_cv_curses=/usr
4282 # Check whether --with-curses or --without-curses was given.
4283 if test "${with_curses+set}" = set; then
4284 withval="$with_curses"
4285 if test $withval != yes; then
4286 abook_cv_curses=$withval
4288 if test x$abook_cv_curses != x/usr; then
4289 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
4290 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
4294 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
4295 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
4296 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 ac_check_lib_save_LIBS=$LIBS
4300 LIBS="-lncurses $LIBS"
4301 cat >conftest.$ac_ext <<_ACEOF
4302 #line $LINENO "configure"
4305 cat confdefs.h >>conftest.$ac_ext
4306 cat >>conftest.$ac_ext <<_ACEOF
4307 /* end confdefs.h. */
4309 /* Override any gcc2 internal prototype to avoid an error. */
4313 /* We use char because int might match the return type of a gcc2
4314 builtin and then its argument prototype would still apply. */
4324 rm -f conftest.$ac_objext conftest$ac_exeext
4325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4326 (eval $ac_link) 2>&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } &&
4330 { ac_try='test -s conftest$ac_exeext'
4331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
4336 ac_cv_lib_ncurses_initscr=yes
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4341 ac_cv_lib_ncurses_initscr=no
4343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4344 LIBS=$ac_check_lib_save_LIBS
4346 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
4347 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
4348 if test $ac_cv_lib_ncurses_initscr = yes; then
4349 LIBS="$LIBS -lncurses"
4350 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
4351 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
4354 for ac_header in ncurses.h
4356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4358 echo "$as_me:$LINENO: checking for $ac_header" >&5
4359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4366 # Is the header compilable?
4367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4369 cat >conftest.$ac_ext <<_ACEOF
4370 #line $LINENO "configure"
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h. */
4376 $ac_includes_default
4377 #include <$ac_header>
4379 rm -f conftest.$ac_objext
4380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4381 (eval $ac_compile) 2>&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } &&
4385 { ac_try='test -s conftest.$ac_objext'
4386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; }; then
4391 ac_header_compiler=yes
4393 echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.$ac_ext >&5
4396 ac_header_compiler=no
4398 rm -f conftest.$ac_objext conftest.$ac_ext
4399 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4400 echo "${ECHO_T}$ac_header_compiler" >&6
4402 # Is the header present?
4403 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4405 cat >conftest.$ac_ext <<_ACEOF
4406 #line $LINENO "configure"
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 #include <$ac_header>
4414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4417 grep -v '^ *+' conftest.er1 >conftest.err
4419 cat conftest.err >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } >/dev/null; then
4422 if test -s conftest.err; then
4423 ac_cpp_err=$ac_c_preproc_warn_flag
4430 if test -z "$ac_cpp_err"; then
4431 ac_header_preproc=yes
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 ac_header_preproc=no
4438 rm -f conftest.err conftest.$ac_ext
4439 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4440 echo "${ECHO_T}$ac_header_preproc" >&6
4442 # So? What about this header?
4443 case $ac_header_compiler:$ac_header_preproc in
4445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4451 ## ------------------------------------ ##
4452 ## Report this to bug-autoconf@gnu.org. ##
4453 ## ------------------------------------ ##
4456 sed "s/^/$as_me: WARNING: /" >&2
4459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4467 ## ------------------------------------ ##
4468 ## Report this to bug-autoconf@gnu.org. ##
4469 ## ------------------------------------ ##
4472 sed "s/^/$as_me: WARNING: /" >&2
4475 echo "$as_me:$LINENO: checking for $ac_header" >&5
4476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 eval "$as_ac_Header=$ac_header_preproc"
4482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4487 cat >>confdefs.h <<_ACEOF
4488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4497 echo "$as_me:$LINENO: checking for initscr" >&5
4498 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
4499 if test "${ac_cv_func_initscr+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 cat >conftest.$ac_ext <<_ACEOF
4503 #line $LINENO "configure"
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h. */
4509 /* System header to define __stub macros and hopefully few prototypes,
4510 which can conflict with char initscr (); below.
4511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4512 <limits.h> exists even on freestanding compilers. */
4514 # include <limits.h>
4516 # include <assert.h>
4518 /* Override any gcc2 internal prototype to avoid an error. */
4523 /* We use char because int might match the return type of a gcc2
4524 builtin and then its argument prototype would still apply. */
4526 /* The GNU C library defines this for functions which it implements
4527 to always fail with ENOSYS. Some functions are actually named
4528 something starting with __ and the normal name is an alias. */
4529 #if defined (__stub_initscr) || defined (__stub___initscr)
4532 char (*f) () = initscr;
4541 return f != initscr;
4546 rm -f conftest.$ac_objext conftest$ac_exeext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4548 (eval $ac_link) 2>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -s conftest$ac_exeext'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 ac_cv_func_initscr=yes
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4563 ac_cv_func_initscr=no
4565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4567 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
4568 echo "${ECHO_T}$ac_cv_func_initscr" >&6
4569 if test $ac_cv_func_initscr = yes; then
4573 case $host_os in #(vi
4575 echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
4576 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
4577 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 ac_check_lib_save_LIBS=$LIBS
4581 LIBS="-lmytinfo $LIBS"
4582 cat >conftest.$ac_ext <<_ACEOF
4583 #line $LINENO "configure"
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4590 /* Override any gcc2 internal prototype to avoid an error. */
4594 /* We use char because int might match the return type of a gcc2
4595 builtin and then its argument prototype would still apply. */
4605 rm -f conftest.$ac_objext conftest$ac_exeext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4607 (eval $ac_link) 2>&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -s conftest$ac_exeext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_cv_lib_mytinfo_tgoto=yes
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4622 ac_cv_lib_mytinfo_tgoto=no
4624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4625 LIBS=$ac_check_lib_save_LIBS
4627 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
4628 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
4629 if test $ac_cv_lib_mytinfo_tgoto = yes; then
4630 LIBS="-lmytinfo $LIBS"
4635 echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
4636 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
4637 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 ac_check_lib_save_LIBS=$LIBS
4641 LIBS="-lcur_colr $LIBS"
4642 cat >conftest.$ac_ext <<_ACEOF
4643 #line $LINENO "configure"
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4650 /* Override any gcc2 internal prototype to avoid an error. */
4654 /* We use char because int might match the return type of a gcc2
4655 builtin and then its argument prototype would still apply. */
4665 rm -f conftest.$ac_objext conftest$ac_exeext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4667 (eval $ac_link) 2>&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } &&
4671 { ac_try='test -s conftest$ac_exeext'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; }; then
4677 ac_cv_lib_cur_colr_initscr=yes
4679 echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4682 ac_cv_lib_cur_colr_initscr=no
4684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4685 LIBS=$ac_check_lib_save_LIBS
4687 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
4688 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
4689 if test $ac_cv_lib_cur_colr_initscr = yes; then
4691 LIBS="-lcur_colr $LIBS"
4692 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
4693 ac_cv_func_initscr=yes
4697 echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
4698 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
4699 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 ac_check_lib_save_LIBS=$LIBS
4703 LIBS="-lHcurses $LIBS"
4704 cat >conftest.$ac_ext <<_ACEOF
4705 #line $LINENO "configure"
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4712 /* Override any gcc2 internal prototype to avoid an error. */
4716 /* We use char because int might match the return type of a gcc2
4717 builtin and then its argument prototype would still apply. */
4727 rm -f conftest.$ac_objext conftest$ac_exeext
4728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4729 (eval $ac_link) 2>&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } &&
4733 { ac_try='test -s conftest$ac_exeext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 ac_cv_lib_Hcurses_initscr=yes
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4744 ac_cv_lib_Hcurses_initscr=no
4746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4747 LIBS=$ac_check_lib_save_LIBS
4749 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
4750 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
4751 if test $ac_cv_lib_Hcurses_initscr = yes; then
4753 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
4754 LIBS="-lHcurses $LIBS"
4755 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
4756 ac_cv_func_initscr=yes
4763 linux*) # Suse Linux does not follow /usr/lib convention
4768 if test ".$With5lib" != ".no" ; then
4769 if test -d /usr/5lib ; then
4771 CPPFLAGS="$CPPFLAGS -I/usr/5include"
4772 LIBS="$LIBS -L/usr/5lib"
4776 if test ".$ac_cv_func_initscr" != .yes ; then
4777 cf_save_LIBS="$LIBS"
4781 # Check for library containing tgoto. Do this before curses library
4782 # because it may be needed to link the test-case for initscr.
4783 echo "$as_me:$LINENO: checking for tgoto" >&5
4784 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
4785 if test "${ac_cv_func_tgoto+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 cat >conftest.$ac_ext <<_ACEOF
4789 #line $LINENO "configure"
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4795 /* System header to define __stub macros and hopefully few prototypes,
4796 which can conflict with char tgoto (); below.
4797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4798 <limits.h> exists even on freestanding compilers. */
4800 # include <limits.h>
4802 # include <assert.h>
4804 /* Override any gcc2 internal prototype to avoid an error. */
4809 /* We use char because int might match the return type of a gcc2
4810 builtin and then its argument prototype would still apply. */
4812 /* The GNU C library defines this for functions which it implements
4813 to always fail with ENOSYS. Some functions are actually named
4814 something starting with __ and the normal name is an alias. */
4815 #if defined (__stub_tgoto) || defined (__stub___tgoto)
4818 char (*f) () = tgoto;
4832 rm -f conftest.$ac_objext conftest$ac_exeext
4833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4834 (eval $ac_link) 2>&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } &&
4838 { ac_try='test -s conftest$ac_exeext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_cv_func_tgoto=yes
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4853 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
4854 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
4855 if test $ac_cv_func_tgoto = yes; then
4856 cf_term_lib=predefined
4859 for cf_term_lib in termcap termlib unknown
4861 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
4862 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
4863 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
4864 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 ac_check_lib_save_LIBS=$LIBS
4868 LIBS="-l$cf_term_lib $LIBS"
4869 cat >conftest.$ac_ext <<_ACEOF
4870 #line $LINENO "configure"
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4877 /* Override any gcc2 internal prototype to avoid an error. */
4881 /* We use char because int might match the return type of a gcc2
4882 builtin and then its argument prototype would still apply. */
4892 rm -f conftest.$ac_objext conftest$ac_exeext
4893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4894 (eval $ac_link) 2>&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } &&
4898 { ac_try='test -s conftest$ac_exeext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 eval "$as_ac_Lib=yes"
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4909 eval "$as_ac_Lib=no"
4911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4912 LIBS=$ac_check_lib_save_LIBS
4914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4915 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4916 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4925 # Check for library containing initscr
4926 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
4927 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
4929 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
4930 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
4931 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
4932 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 ac_check_lib_save_LIBS=$LIBS
4936 LIBS="-l$cf_curs_lib $LIBS"
4937 cat >conftest.$ac_ext <<_ACEOF
4938 #line $LINENO "configure"
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4945 /* Override any gcc2 internal prototype to avoid an error. */
4949 /* We use char because int might match the return type of a gcc2
4950 builtin and then its argument prototype would still apply. */
4960 rm -f conftest.$ac_objext conftest$ac_exeext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4962 (eval $ac_link) 2>&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } &&
4966 { ac_try='test -s conftest$ac_exeext'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; }; then
4972 eval "$as_ac_Lib=yes"
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4977 eval "$as_ac_Lib=no"
4979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4980 LIBS=$ac_check_lib_save_LIBS
4982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4983 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4984 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4989 test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
4990 echo "$as_me: error: no curses library found" >&2;}
4991 { (exit 1); exit 1; }; }
4993 LIBS="-l$cf_curs_lib $cf_save_LIBS"
4994 if test "$cf_term_lib" = unknown ; then
4995 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
4996 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
4997 cat >conftest.$ac_ext <<_ACEOF
4998 #line $LINENO "configure"
5001 cat confdefs.h >>conftest.$ac_ext
5002 cat >>conftest.$ac_ext <<_ACEOF
5003 /* end confdefs.h. */
5004 #include <${cf_cv_ncurses_header-curses.h}>
5013 rm -f conftest.$ac_objext conftest$ac_exeext
5014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5015 (eval $ac_link) 2>&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } &&
5019 { ac_try='test -s conftest$ac_exeext'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5033 echo "$as_me:$LINENO: result: $cf_result" >&5
5034 echo "${ECHO_T}$cf_result" >&6
5035 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
5036 echo "$as_me: error: Cannot link curses library" >&2;}
5037 { (exit 1); exit 1; }; }
5038 elif test "$cf_term_lib" != predefined ; then
5039 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5040 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5041 cat >conftest.$ac_ext <<_ACEOF
5042 #line $LINENO "configure"
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5048 #include <${cf_cv_ncurses_header-curses.h}>
5052 initscr(); tgoto((char *)0, 0, 0);
5057 rm -f conftest.$ac_objext conftest$ac_exeext
5058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5059 (eval $ac_link) 2>&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } &&
5063 { ac_try='test -s conftest$ac_exeext'
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; }; then
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5075 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5076 cat >conftest.$ac_ext <<_ACEOF
5077 #line $LINENO "configure"
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5083 #include <${cf_cv_ncurses_header-curses.h}>
5092 rm -f conftest.$ac_objext conftest$ac_exeext
5093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5094 (eval $ac_link) 2>&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } &&
5098 { ac_try='test -s conftest$ac_exeext'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; }; then
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5115 echo "$as_me:$LINENO: result: $cf_result" >&5
5116 echo "${ECHO_T}$cf_result" >&6
5128 abook_cv_readline=/usr
5130 # Check whether --with-readline or --without-readline was given.
5131 if test "${with_readline+set}" = set; then
5132 withval="$with_readline"
5133 if test $withval != yes; then
5134 abook_cv_readline=$withval
5136 if test x$abook_cv_readline != x/usr; then
5137 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
5138 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
5143 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
5144 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
5145 if test "${ac_cv_lib_readline+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 for readline_lib in readline edit editline; do
5151 for termcap_lib in "" termcap curses ncurses; do
5152 if test -z "$termcap_lib"; then
5153 TRY_LIB="-l$readline_lib"
5155 TRY_LIB="-l$readline_lib -l$termcap_lib"
5157 LIBS="$ORIG_LIBS $TRY_LIB"
5158 cat >conftest.$ac_ext <<_ACEOF
5159 #line $LINENO "configure"
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5166 /* Override any gcc2 internal prototype to avoid an error. */
5170 /* We use char because int might match the return type of a gcc2
5171 builtin and then its argument prototype would still apply. */
5181 rm -f conftest.$ac_objext conftest$ac_exeext
5182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5183 (eval $ac_link) 2>&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } &&
5187 { ac_try='test -s conftest$ac_exeext'
5188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); }; }; then
5193 ac_cv_lib_readline="$TRY_LIB"
5195 echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5200 if test -n "$ac_cv_lib_readline"; then
5204 if test -n "$ac_cv_lib_readline"; then
5208 if test -z "$ac_cv_lib_readline"; then
5209 ac_cv_lib_readline="no"
5214 echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
5215 echo "${ECHO_T}$ac_cv_lib_readline" >&6
5217 if test "$ac_cv_lib_readline" != "no"; then
5218 LIBS="$LIBS $ac_cv_lib_readline"
5220 cat >>confdefs.h <<\_ACEOF
5221 #define HAVE_LIBREADLINE 1
5226 for ac_header in readline.h readline/readline.h
5228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5230 echo "$as_me:$LINENO: checking for $ac_header" >&5
5231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5238 # Is the header compilable?
5239 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5241 cat >conftest.$ac_ext <<_ACEOF
5242 #line $LINENO "configure"
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5248 $ac_includes_default
5249 #include <$ac_header>
5251 rm -f conftest.$ac_objext
5252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5253 (eval $ac_compile) 2>&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } &&
5257 { ac_try='test -s conftest.$ac_objext'
5258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }; }; then
5263 ac_header_compiler=yes
5265 echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5268 ac_header_compiler=no
5270 rm -f conftest.$ac_objext conftest.$ac_ext
5271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5272 echo "${ECHO_T}$ac_header_compiler" >&6
5274 # Is the header present?
5275 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5277 cat >conftest.$ac_ext <<_ACEOF
5278 #line $LINENO "configure"
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5284 #include <$ac_header>
5286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5289 grep -v '^ *+' conftest.er1 >conftest.err
5291 cat conftest.err >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } >/dev/null; then
5294 if test -s conftest.err; then
5295 ac_cpp_err=$ac_c_preproc_warn_flag
5302 if test -z "$ac_cpp_err"; then
5303 ac_header_preproc=yes
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5308 ac_header_preproc=no
5310 rm -f conftest.err conftest.$ac_ext
5311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5312 echo "${ECHO_T}$ac_header_preproc" >&6
5314 # So? What about this header?
5315 case $ac_header_compiler:$ac_header_preproc in
5317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5323 ## ------------------------------------ ##
5324 ## Report this to bug-autoconf@gnu.org. ##
5325 ## ------------------------------------ ##
5328 sed "s/^/$as_me: WARNING: /" >&2
5331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5339 ## ------------------------------------ ##
5340 ## Report this to bug-autoconf@gnu.org. ##
5341 ## ------------------------------------ ##
5344 sed "s/^/$as_me: WARNING: /" >&2
5347 echo "$as_me:$LINENO: checking for $ac_header" >&5
5348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 eval "$as_ac_Header=$ac_header_preproc"
5354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5359 cat >>confdefs.h <<_ACEOF
5360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5367 echo "$as_me:$LINENO: checking whether readline supports history" >&5
5368 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
5369 if test "${ac_cv_lib_readline_history+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 ac_cv_lib_readline_history="no"
5374 cat >conftest.$ac_ext <<_ACEOF
5375 #line $LINENO "configure"
5378 cat confdefs.h >>conftest.$ac_ext
5379 cat >>conftest.$ac_ext <<_ACEOF
5380 /* end confdefs.h. */
5382 /* Override any gcc2 internal prototype to avoid an error. */
5386 /* We use char because int might match the return type of a gcc2
5387 builtin and then its argument prototype would still apply. */
5388 char add_history ();
5397 rm -f conftest.$ac_objext conftest$ac_exeext
5398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5399 (eval $ac_link) 2>&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } &&
5403 { ac_try='test -s conftest$ac_exeext'
5404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; }; then
5409 ac_cv_lib_readline_history="yes"
5411 echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5418 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
5419 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6
5420 if test "$ac_cv_lib_readline_history" = "yes"; then
5422 cat >>confdefs.h <<\_ACEOF
5423 #define HAVE_READLINE_HISTORY 1
5428 for ac_header in history.h readline/history.h
5430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5432 echo "$as_me:$LINENO: checking for $ac_header" >&5
5433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5440 # Is the header compilable?
5441 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5443 cat >conftest.$ac_ext <<_ACEOF
5444 #line $LINENO "configure"
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5450 $ac_includes_default
5451 #include <$ac_header>
5453 rm -f conftest.$ac_objext
5454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5455 (eval $ac_compile) 2>&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } &&
5459 { ac_try='test -s conftest.$ac_objext'
5460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }; }; then
5465 ac_header_compiler=yes
5467 echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.$ac_ext >&5
5470 ac_header_compiler=no
5472 rm -f conftest.$ac_objext conftest.$ac_ext
5473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5474 echo "${ECHO_T}$ac_header_compiler" >&6
5476 # Is the header present?
5477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5479 cat >conftest.$ac_ext <<_ACEOF
5480 #line $LINENO "configure"
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5486 #include <$ac_header>
5488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5491 grep -v '^ *+' conftest.er1 >conftest.err
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } >/dev/null; then
5496 if test -s conftest.err; then
5497 ac_cpp_err=$ac_c_preproc_warn_flag
5504 if test -z "$ac_cpp_err"; then
5505 ac_header_preproc=yes
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5510 ac_header_preproc=no
5512 rm -f conftest.err conftest.$ac_ext
5513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5514 echo "${ECHO_T}$ac_header_preproc" >&6
5516 # So? What about this header?
5517 case $ac_header_compiler:$ac_header_preproc in
5519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5525 ## ------------------------------------ ##
5526 ## Report this to bug-autoconf@gnu.org. ##
5527 ## ------------------------------------ ##
5530 sed "s/^/$as_me: WARNING: /" >&2
5533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5541 ## ------------------------------------ ##
5542 ## Report this to bug-autoconf@gnu.org. ##
5543 ## ------------------------------------ ##
5546 sed "s/^/$as_me: WARNING: /" >&2
5549 echo "$as_me:$LINENO: checking for $ac_header" >&5
5550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 eval "$as_ac_Header=$ac_header_preproc"
5556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5561 cat >>confdefs.h <<_ACEOF
5562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5574 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
5575 { { echo "$as_me:$LINENO: error: *** readline library not found or it doesn't support history ***" >&5
5576 echo "$as_me: error: *** readline library not found or it doesn't support history ***" >&2;}
5577 { (exit 1); exit 1; }; }
5582 for ac_func in resizeterm
5584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5585 echo "$as_me:$LINENO: checking for $ac_func" >&5
5586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5587 if eval "test \"\${$as_ac_var+set}\" = set"; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 cat >conftest.$ac_ext <<_ACEOF
5591 #line $LINENO "configure"
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5597 /* System header to define __stub macros and hopefully few prototypes,
5598 which can conflict with char $ac_func (); below.
5599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5600 <limits.h> exists even on freestanding compilers. */
5602 # include <limits.h>
5604 # include <assert.h>
5606 /* Override any gcc2 internal prototype to avoid an error. */
5611 /* We use char because int might match the return type of a gcc2
5612 builtin and then its argument prototype would still apply. */
5614 /* The GNU C library defines this for functions which it implements
5615 to always fail with ENOSYS. Some functions are actually named
5616 something starting with __ and the normal name is an alias. */
5617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5620 char (*f) () = $ac_func;
5629 return f != $ac_func;
5634 rm -f conftest.$ac_objext conftest$ac_exeext
5635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5636 (eval $ac_link) 2>&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try='test -s conftest$ac_exeext'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; }; then
5646 eval "$as_ac_var=yes"
5648 echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5651 eval "$as_ac_var=no"
5653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5657 if test `eval echo '${'$as_ac_var'}'` = yes; then
5658 cat >>confdefs.h <<_ACEOF
5659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5666 echo "$as_me:$LINENO: checking for snprintf" >&5
5667 echo $ECHO_N "checking for snprintf... $ECHO_C" >&6
5668 if test "${ac_cv_func_snprintf+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 cat >conftest.$ac_ext <<_ACEOF
5672 #line $LINENO "configure"
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5678 /* System header to define __stub macros and hopefully few prototypes,
5679 which can conflict with char snprintf (); below.
5680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5681 <limits.h> exists even on freestanding compilers. */
5683 # include <limits.h>
5685 # include <assert.h>
5687 /* Override any gcc2 internal prototype to avoid an error. */
5692 /* We use char because int might match the return type of a gcc2
5693 builtin and then its argument prototype would still apply. */
5695 /* The GNU C library defines this for functions which it implements
5696 to always fail with ENOSYS. Some functions are actually named
5697 something starting with __ and the normal name is an alias. */
5698 #if defined (__stub_snprintf) || defined (__stub___snprintf)
5701 char (*f) () = snprintf;
5710 return f != snprintf;
5715 rm -f conftest.$ac_objext conftest$ac_exeext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5717 (eval $ac_link) 2>&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } &&
5721 { ac_try='test -s conftest$ac_exeext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 ac_cv_func_snprintf=yes
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5732 ac_cv_func_snprintf=no
5734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5736 echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
5737 echo "${ECHO_T}$ac_cv_func_snprintf" >&6
5738 if test $ac_cv_func_snprintf = yes; then
5739 cat >>confdefs.h <<\_ACEOF
5740 #define HAVE_SNPRINTF 1
5745 echo "$as_me:$LINENO: checking for vsnprintf" >&5
5746 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
5747 if test "${ac_cv_func_vsnprintf+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 cat >conftest.$ac_ext <<_ACEOF
5751 #line $LINENO "configure"
5754 cat confdefs.h >>conftest.$ac_ext
5755 cat >>conftest.$ac_ext <<_ACEOF
5756 /* end confdefs.h. */
5757 /* System header to define __stub macros and hopefully few prototypes,
5758 which can conflict with char vsnprintf (); below.
5759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5760 <limits.h> exists even on freestanding compilers. */
5762 # include <limits.h>
5764 # include <assert.h>
5766 /* Override any gcc2 internal prototype to avoid an error. */
5771 /* We use char because int might match the return type of a gcc2
5772 builtin and then its argument prototype would still apply. */
5774 /* The GNU C library defines this for functions which it implements
5775 to always fail with ENOSYS. Some functions are actually named
5776 something starting with __ and the normal name is an alias. */
5777 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
5780 char (*f) () = vsnprintf;
5789 return f != vsnprintf;
5794 rm -f conftest.$ac_objext conftest$ac_exeext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5796 (eval $ac_link) 2>&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } &&
5800 { ac_try='test -s conftest$ac_exeext'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
5806 ac_cv_func_vsnprintf=yes
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811 ac_cv_func_vsnprintf=no
5813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5815 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
5816 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
5817 if test $ac_cv_func_vsnprintf = yes; then
5818 cat >>confdefs.h <<\_ACEOF
5819 #define HAVE_VSNPRINTF 1
5825 # Check whether --enable-debug or --disable-debug was given.
5826 if test "${enable_debug+set}" = set; then
5827 enableval="$enable_debug"
5828 case "${enableval}" in
5831 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
5832 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
5833 { (exit 1); exit 1; }; } ;;
5839 if test x$debug = xtrue; then
5840 CPPFLAGS="-DDEBUG $CPPFLAGS"
5844 if test x$GCC = xyes; then
5845 CFLAGS="-Wall $CFLAGS"
5848 ac_config_files="$ac_config_files Makefile abook.spec"
5849 cat >confcache <<\_ACEOF
5850 # This file is a shell script that caches the results of configure
5851 # tests run on this system so they can be shared between configure
5852 # scripts and configure runs, see configure's option --config-cache.
5853 # It is not useful on other systems. If it contains results you don't
5854 # want to keep, you may remove or edit it.
5856 # config.status only pays attention to the cache file if you give it
5857 # the --recheck option to rerun configure.
5859 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5860 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5865 # The following way of writing the cache mishandles newlines in values,
5866 # but we know of no workaround that is simple, portable, and efficient.
5867 # So, don't put newlines in cache variables' values.
5868 # Ultrix sh set writes to stderr and can't be redirected directly,
5869 # and sets the high bit in the cache file unless we assign to the vars.
5872 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5874 # `set' does not quote correctly, so add quotes (double-quote
5875 # substitution turns \\\\ into \\, and sed turns \\ into \).
5878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5881 # `set' quotes correctly as required by POSIX, so do not add quotes.
5883 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5890 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5892 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5894 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5895 if test -w $cache_file; then
5896 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5897 cat confcache >$cache_file
5899 echo "not updating unwritable cache $cache_file"
5904 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5905 # Let make expand exec_prefix.
5906 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5908 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5909 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5910 # trailing colons and then remove the whole line if VPATH becomes empty
5911 # (actually we leave an empty line to preserve line numbers).
5912 if test "x$srcdir" = x.; then
5913 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5914 s/:*\$(srcdir):*/:/;
5915 s/:*\${srcdir}:*/:/;
5917 s/^\([^=]*=[ ]*\):*/\1/;
5923 DEFS=-DHAVE_CONFIG_H
5927 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5928 # 1. Remove the extension, and $U if already installed.
5929 ac_i=`echo "$ac_i" |
5930 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5932 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5933 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5937 LTLIBOBJS=$ac_ltlibobjs
5940 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5941 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5942 Usually this means the macro was only invoked conditionally." >&5
5943 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5944 Usually this means the macro was only invoked conditionally." >&2;}
5945 { (exit 1); exit 1; }; }
5948 : ${CONFIG_STATUS=./config.status}
5949 ac_clean_files_save=$ac_clean_files
5950 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5951 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5952 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5953 cat >$CONFIG_STATUS <<_ACEOF
5955 # Generated by $as_me.
5956 # Run this file to recreate the current configuration.
5957 # Compiler output produced by configure, useful for debugging
5958 # configure, is in config.log if it exists.
5963 SHELL=\${CONFIG_SHELL-$SHELL}
5966 cat >>$CONFIG_STATUS <<\_ACEOF
5967 ## --------------------- ##
5968 ## M4sh Initialization. ##
5969 ## --------------------- ##
5971 # Be Bourne compatible
5972 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5975 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5976 # is contrary to our usage. Disable this feature.
5977 alias -g '${1+"$@"}'='"$@"'
5978 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5982 # Support unset when possible.
5983 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5990 # Work around bugs in pre-3.0 UWIN ksh.
5991 $as_unset ENV MAIL MAILPATH
5998 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5999 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6000 LC_TELEPHONE LC_TIME
6002 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6003 eval $as_var=C; export $as_var
6009 # Required to use basename.
6010 if expr a : '\(a\)' >/dev/null 2>&1; then
6016 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6017 as_basename=basename
6023 # Name of the executable.
6024 as_me=`$as_basename "$0" ||
6025 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6026 X"$0" : 'X\(//\)$' \| \
6027 X"$0" : 'X\(/\)$' \| \
6028 . : '\(.\)' 2>/dev/null ||
6030 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6031 /^X\/\(\/\/\)$/{ s//\1/; q; }
6032 /^X\/\(\/\).*/{ s//\1/; q; }
6036 # PATH needs CR, and LINENO needs CR and PATH.
6037 # Avoid depending upon Character Ranges.
6038 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6039 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6040 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6041 as_cr_digits='0123456789'
6042 as_cr_alnum=$as_cr_Letters$as_cr_digits
6044 # The user is always right.
6045 if test "${PATH_SEPARATOR+set}" != set; then
6046 echo "#! /bin/sh" >conf$$.sh
6047 echo "exit 0" >>conf$$.sh
6049 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6060 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6061 test "x$as_lineno_1" != "x$as_lineno_2" &&
6062 test "x$as_lineno_3" = "x$as_lineno_2" || {
6063 # Find who we are. Look in the path if we contain no path at all
6066 *[\\/]* ) as_myself=$0 ;;
6067 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 test -z "$as_dir" && as_dir=.
6072 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6077 # We did not find ourselves, most probably we were run as `sh COMMAND'
6078 # in which case we are not to be found in the path.
6079 if test "x$as_myself" = x; then
6082 if test ! -f "$as_myself"; then
6083 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6084 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6085 { (exit 1); exit 1; }; }
6087 case $CONFIG_SHELL in
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6093 test -z "$as_dir" && as_dir=.
6094 for as_base in sh bash ksh sh5; do
6097 if ("$as_dir/$as_base" -c '
6100 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6101 test "x$as_lineno_1" != "x$as_lineno_2" &&
6102 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6103 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6104 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6105 CONFIG_SHELL=$as_dir/$as_base
6107 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6115 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6116 # uniformly replaced by the line number. The first 'sed' inserts a
6117 # line-number line before each line; the second 'sed' does the real
6118 # work. The second script uses 'N' to pair each line-number line
6119 # with the numbered line, and appends trailing '-' during
6120 # substitution so that $LINENO is not a special case at line end.
6121 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6122 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6123 sed '=' <$as_myself |
6128 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6131 s,^['$as_cr_digits']*\n,,
6133 chmod +x $as_me.lineno ||
6134 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6135 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6136 { (exit 1); exit 1; }; }
6138 # Don't try to exec as it changes $[0], causing all sort of problems
6139 # (the dirname of $[0] is not the place where we might find the
6140 # original and so on. Autoconf is especially sensible to this).
6142 # Exit status is that of the last command.
6147 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6148 *c*,-n*) ECHO_N= ECHO_C='
6150 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6151 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6154 if expr a : '\(a\)' >/dev/null 2>&1; then
6160 rm -f conf$$ conf$$.exe conf$$.file
6162 if ln -s conf$$.file conf$$ 2>/dev/null; then
6163 # We could just check for DJGPP; but this test a) works b) is more generic
6164 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6165 if test -f conf$$.exe; then
6166 # Don't use ln at all; we don't have any links
6171 elif ln conf$$.file conf$$ 2>/dev/null; then
6176 rm -f conf$$ conf$$.exe conf$$.file
6178 if mkdir -p . 2>/dev/null; then
6184 as_executable_p="test -f"
6186 # Sed expression to map a string onto a valid CPP name.
6187 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6189 # Sed expression to map a string onto a valid variable name.
6190 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6194 # We need space, tab and new line, in precisely that order.
6204 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6205 # report actual input values of CONFIG_FILES etc. instead of their
6206 # values after options handling. Logging --version etc. is OK.
6210 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6211 ## Running $as_me. ##
6216 This file was extended by $as_me, which was
6217 generated by GNU Autoconf 2.57. Invocation command line was
6219 CONFIG_FILES = $CONFIG_FILES
6220 CONFIG_HEADERS = $CONFIG_HEADERS
6221 CONFIG_LINKS = $CONFIG_LINKS
6222 CONFIG_COMMANDS = $CONFIG_COMMANDS
6226 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6230 # Files that config.status was made for.
6231 if test -n "$ac_config_files"; then
6232 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6235 if test -n "$ac_config_headers"; then
6236 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6239 if test -n "$ac_config_links"; then
6240 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6243 if test -n "$ac_config_commands"; then
6244 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6247 cat >>$CONFIG_STATUS <<\_ACEOF
6250 \`$as_me' instantiates files from templates according to the
6251 current configuration.
6253 Usage: $0 [OPTIONS] [FILE]...
6255 -h, --help print this help, then exit
6256 -V, --version print version number, then exit
6257 -q, --quiet do not print progress messages
6258 -d, --debug don't remove temporary files
6259 --recheck update $as_me by reconfiguring in the same conditions
6260 --file=FILE[:TEMPLATE]
6261 instantiate the configuration file FILE
6262 --header=FILE[:TEMPLATE]
6263 instantiate the configuration header FILE
6265 Configuration files:
6268 Configuration headers:
6271 Configuration commands:
6274 Report bugs to <bug-autoconf@gnu.org>."
6277 cat >>$CONFIG_STATUS <<_ACEOF
6280 configured by $0, generated by GNU Autoconf 2.57,
6281 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6283 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6284 Free Software Foundation, Inc.
6285 This config.status script is free software; the Free Software Foundation
6286 gives unlimited permission to copy, distribute and modify it."
6291 cat >>$CONFIG_STATUS <<\_ACEOF
6292 # If no file are specified by the user, then we need to provide default
6293 # value. By we need to know if files were specified by the user.
6299 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6300 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6308 *) # This is not an option, so the user has probably given explicit
6311 ac_need_defaults=false;;
6315 # Handling of the options.
6317 cat >>$CONFIG_STATUS <<\_ACEOF
6318 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6320 --version | --vers* | -V )
6321 echo "$ac_cs_version"; exit 0 ;;
6323 # Conflict between --help and --header
6324 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6325 Try \`$0 --help' for more information." >&5
6326 echo "$as_me: error: ambiguous option: $1
6327 Try \`$0 --help' for more information." >&2;}
6328 { (exit 1); exit 1; }; };;
6329 --help | --hel | -h )
6330 echo "$ac_cs_usage"; exit 0 ;;
6331 --debug | --d* | -d )
6333 --file | --fil | --fi | --f )
6335 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6336 ac_need_defaults=false;;
6337 --header | --heade | --head | --hea )
6339 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6340 ac_need_defaults=false;;
6341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6342 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6346 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6347 Try \`$0 --help' for more information." >&5
6348 echo "$as_me: error: unrecognized option: $1
6349 Try \`$0 --help' for more information." >&2;}
6350 { (exit 1); exit 1; }; } ;;
6352 *) ac_config_targets="$ac_config_targets $1" ;;
6358 ac_configure_extra_args=
6360 if $ac_cs_silent; then
6362 ac_configure_extra_args="$ac_configure_extra_args --silent"
6366 cat >>$CONFIG_STATUS <<_ACEOF
6367 if \$ac_cs_recheck; then
6368 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6369 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6374 cat >>$CONFIG_STATUS <<_ACEOF
6376 # INIT-COMMANDS section.
6379 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6385 cat >>$CONFIG_STATUS <<\_ACEOF
6386 for ac_config_target in $ac_config_targets
6388 case "$ac_config_target" in
6389 # Handling of arguments.
6390 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6391 "abook.spec" ) CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
6392 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6393 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6394 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6395 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6396 { (exit 1); exit 1; }; };;
6400 # If the user did not use the arguments to specify the items to instantiate,
6401 # then the envvar interface is used. Set only those that are not.
6402 # We use the long form for the default assignment because of an extremely
6403 # bizarre bug on SunOS 4.1.3.
6404 if $ac_need_defaults; then
6405 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6406 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6407 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6410 # Have a temporary directory for convenience. Make it in the build tree
6411 # simply because there is no reason to put it here, and in addition,
6412 # creating and moving files from /tmp can sometimes cause problems.
6413 # Create a temporary directory, and hook for its removal unless debugging.
6416 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6417 trap '{ (exit 1); exit 1; }' 1 2 13 15
6420 # Create a (secure) tmp directory for tmp files.
6423 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6424 test -n "$tmp" && test -d "$tmp"
6427 tmp=./confstat$$-$RANDOM
6428 (umask 077 && mkdir $tmp)
6431 echo "$me: cannot create a temporary directory in ." >&2
6432 { (exit 1); exit 1; }
6437 cat >>$CONFIG_STATUS <<_ACEOF
6440 # CONFIG_FILES section.
6443 # No need to generate the scripts if there are no CONFIG_FILES.
6444 # This happens for instance when ./config.status config.h
6445 if test -n "\$CONFIG_FILES"; then
6446 # Protect against being on the right side of a sed subst in config.status.
6447 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6448 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6449 s,@SHELL@,$SHELL,;t t
6450 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6451 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6452 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6453 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6454 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6455 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6456 s,@exec_prefix@,$exec_prefix,;t t
6457 s,@prefix@,$prefix,;t t
6458 s,@program_transform_name@,$program_transform_name,;t t
6459 s,@bindir@,$bindir,;t t
6460 s,@sbindir@,$sbindir,;t t
6461 s,@libexecdir@,$libexecdir,;t t
6462 s,@datadir@,$datadir,;t t
6463 s,@sysconfdir@,$sysconfdir,;t t
6464 s,@sharedstatedir@,$sharedstatedir,;t t
6465 s,@localstatedir@,$localstatedir,;t t
6466 s,@libdir@,$libdir,;t t
6467 s,@includedir@,$includedir,;t t
6468 s,@oldincludedir@,$oldincludedir,;t t
6469 s,@infodir@,$infodir,;t t
6470 s,@mandir@,$mandir,;t t
6471 s,@build_alias@,$build_alias,;t t
6472 s,@host_alias@,$host_alias,;t t
6473 s,@target_alias@,$target_alias,;t t
6475 s,@ECHO_C@,$ECHO_C,;t t
6476 s,@ECHO_N@,$ECHO_N,;t t
6477 s,@ECHO_T@,$ECHO_T,;t t
6479 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6480 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6481 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6482 s,@PACKAGE@,$PACKAGE,;t t
6483 s,@VERSION@,$VERSION,;t t
6484 s,@ACLOCAL@,$ACLOCAL,;t t
6485 s,@AUTOCONF@,$AUTOCONF,;t t
6486 s,@AUTOMAKE@,$AUTOMAKE,;t t
6487 s,@AUTOHEADER@,$AUTOHEADER,;t t
6488 s,@MAKEINFO@,$MAKEINFO,;t t
6489 s,@AMTAR@,$AMTAR,;t t
6490 s,@install_sh@,$install_sh,;t t
6491 s,@STRIP@,$STRIP,;t t
6492 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6493 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6495 s,@SET_MAKE@,$SET_MAKE,;t t
6496 s,@build@,$build,;t t
6497 s,@build_cpu@,$build_cpu,;t t
6498 s,@build_vendor@,$build_vendor,;t t
6499 s,@build_os@,$build_os,;t t
6501 s,@host_cpu@,$host_cpu,;t t
6502 s,@host_vendor@,$host_vendor,;t t
6503 s,@host_os@,$host_os,;t t
6505 s,@CFLAGS@,$CFLAGS,;t t
6506 s,@LDFLAGS@,$LDFLAGS,;t t
6507 s,@CPPFLAGS@,$CPPFLAGS,;t t
6508 s,@ac_ct_CC@,$ac_ct_CC,;t t
6509 s,@EXEEXT@,$EXEEXT,;t t
6510 s,@OBJEXT@,$OBJEXT,;t t
6511 s,@DEPDIR@,$DEPDIR,;t t
6512 s,@am__include@,$am__include,;t t
6513 s,@am__quote@,$am__quote,;t t
6514 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6515 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6516 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6517 s,@CCDEPMODE@,$CCDEPMODE,;t t
6519 s,@EGREP@,$EGREP,;t t
6521 s,@ANSI2KNR@,$ANSI2KNR,;t t
6522 s,@LIBOBJS@,$LIBOBJS,;t t
6523 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6528 cat >>$CONFIG_STATUS <<\_ACEOF
6529 # Split the substitutions into bite-sized pieces for seds with
6530 # small command number limits, like on Digital OSF/1 and HP-UX.
6532 ac_sed_frag=1 # Number of current file.
6533 ac_beg=1 # First line for current file.
6534 ac_end=$ac_max_sed_lines # Line after last line for current file.
6537 while $ac_more_lines; do
6538 if test $ac_beg -gt 1; then
6539 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6541 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6543 if test ! -s $tmp/subs.frag; then
6546 # The purpose of the label and of the branching condition is to
6547 # speed up the sed processing (if there are no `@' at all, there
6548 # is no need to browse any of the substitutions).
6549 # These are the two extra sed commands mentioned above.
6551 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6552 if test -z "$ac_sed_cmds"; then
6553 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6555 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6557 ac_sed_frag=`expr $ac_sed_frag + 1`
6559 ac_end=`expr $ac_end + $ac_max_sed_lines`
6562 if test -z "$ac_sed_cmds"; then
6565 fi # test -n "$CONFIG_FILES"
6568 cat >>$CONFIG_STATUS <<\_ACEOF
6569 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6570 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6572 - | *:- | *:-:* ) # input from stdin
6574 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6575 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6576 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6577 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6578 * ) ac_file_in=$ac_file.in ;;
6581 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6582 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6583 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6584 X"$ac_file" : 'X\(//\)[^/]' \| \
6585 X"$ac_file" : 'X\(//\)$' \| \
6586 X"$ac_file" : 'X\(/\)' \| \
6587 . : '\(.\)' 2>/dev/null ||
6589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6590 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6591 /^X\(\/\/\)$/{ s//\1/; q; }
6592 /^X\(\/\).*/{ s//\1/; q; }
6594 { if $as_mkdir_p; then
6599 while test ! -d "$as_dir"; do
6600 as_dirs="$as_dir $as_dirs"
6601 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6602 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6603 X"$as_dir" : 'X\(//\)[^/]' \| \
6604 X"$as_dir" : 'X\(//\)$' \| \
6605 X"$as_dir" : 'X\(/\)' \| \
6606 . : '\(.\)' 2>/dev/null ||
6608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6609 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6610 /^X\(\/\/\)$/{ s//\1/; q; }
6611 /^X\(\/\).*/{ s//\1/; q; }
6614 test ! -n "$as_dirs" || mkdir $as_dirs
6615 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6616 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6617 { (exit 1); exit 1; }; }; }
6621 if test "$ac_dir" != .; then
6622 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6623 # A "../" for each directory in $ac_dir_suffix.
6624 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6626 ac_dir_suffix= ac_top_builddir=
6630 .) # No --srcdir option. We are building in place.
6632 if test -z "$ac_top_builddir"; then
6635 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6637 [\\/]* | ?:[\\/]* ) # Absolute path.
6638 ac_srcdir=$srcdir$ac_dir_suffix;
6639 ac_top_srcdir=$srcdir ;;
6641 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6642 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6644 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6646 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6647 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6648 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6649 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6653 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6654 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6657 if test x"$ac_file" != x-; then
6658 { echo "$as_me:$LINENO: creating $ac_file" >&5
6659 echo "$as_me: creating $ac_file" >&6;}
6662 # Let's still pretend it is `configure' which instantiates (i.e., don't
6663 # use $as_me), people would be surprised to read:
6664 # /* config.h. Generated by config.status. */
6665 if test x"$ac_file" = x-; then
6668 configure_input="$ac_file. "
6670 configure_input=$configure_input"Generated from `echo $ac_file_in |
6671 sed 's,.*/,,'` by configure."
6673 # First look for the input files in the build tree, otherwise in the
6675 ac_file_inputs=`IFS=:
6676 for f in $ac_file_in; do
6678 -) echo $tmp/stdin ;;
6680 # Absolute (can't be DOS-style, as IFS=:)
6681 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6682 echo "$as_me: error: cannot find input file: $f" >&2;}
6683 { (exit 1); exit 1; }; }
6686 if test -f "$f"; then
6689 elif test -f "$srcdir/$f"; then
6694 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6695 echo "$as_me: error: cannot find input file: $f" >&2;}
6696 { (exit 1); exit 1; }; }
6699 done` || { (exit 1); exit 1; }
6701 cat >>$CONFIG_STATUS <<_ACEOF
6705 cat >>$CONFIG_STATUS <<\_ACEOF
6707 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6708 s,@configure_input@,$configure_input,;t t
6709 s,@srcdir@,$ac_srcdir,;t t
6710 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6711 s,@top_srcdir@,$ac_top_srcdir,;t t
6712 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6713 s,@builddir@,$ac_builddir,;t t
6714 s,@abs_builddir@,$ac_abs_builddir,;t t
6715 s,@top_builddir@,$ac_top_builddir,;t t
6716 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6717 s,@INSTALL@,$ac_INSTALL,;t t
6718 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6720 if test x"$ac_file" != x-; then
6721 mv $tmp/out $ac_file
6729 cat >>$CONFIG_STATUS <<\_ACEOF
6732 # CONFIG_HEADER section.
6735 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6736 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6738 # ac_d sets the value in "#define NAME VALUE" lines.
6739 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6740 ac_dB='[ ].*$,\1#\2'
6743 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6744 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6745 ac_uB='$,\1#\2define\3'
6749 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6750 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6752 - | *:- | *:-:* ) # input from stdin
6754 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6755 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6756 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6757 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6758 * ) ac_file_in=$ac_file.in ;;
6761 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6762 echo "$as_me: creating $ac_file" >&6;}
6764 # First look for the input files in the build tree, otherwise in the
6766 ac_file_inputs=`IFS=:
6767 for f in $ac_file_in; do
6769 -) echo $tmp/stdin ;;
6771 # Absolute (can't be DOS-style, as IFS=:)
6772 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6773 echo "$as_me: error: cannot find input file: $f" >&2;}
6774 { (exit 1); exit 1; }; }
6777 if test -f "$f"; then
6780 elif test -f "$srcdir/$f"; then
6785 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6786 echo "$as_me: error: cannot find input file: $f" >&2;}
6787 { (exit 1); exit 1; }; }
6790 done` || { (exit 1); exit 1; }
6791 # Remove the trailing spaces.
6792 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6796 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6797 # `conftest.undefs', that substitutes the proper values into
6798 # config.h.in to produce config.h. The first handles `#define'
6799 # templates, and the second `#undef' templates.
6800 # And first: Protect against being on the right side of a sed subst in
6801 # config.status. Protect against being in an unquoted here document
6803 rm -f conftest.defines conftest.undefs
6804 # Using a here document instead of a string reduces the quoting nightmare.
6805 # Putting comments in sed scripts is not portable.
6807 # `end' is used to avoid that the second main sed command (meant for
6808 # 0-ary CPP macros) applies to n-ary macro definitions.
6809 # See the Autoconf documentation for `clear'.
6810 cat >confdef2sed.sed <<\_ACEOF
6815 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6817 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6820 # If some macros were called several times there might be several times
6821 # the same #defines, which is useless. Nevertheless, we may not want to
6822 # sort them, since we want the *last* AC-DEFINE to be honored.
6823 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6824 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6825 rm -f confdef2sed.sed
6827 # This sed command replaces #undef with comments. This is necessary, for
6828 # example, in the case of _POSIX_SOURCE, which is predefined and required
6829 # on some systems where configure will not decide to define it.
6830 cat >>conftest.undefs <<\_ACEOF
6831 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6834 # Break up conftest.defines because some shells have a limit on the size
6835 # of here documents, and old seds have small limits too (100 cmds).
6836 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6837 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6838 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6839 echo ' :' >>$CONFIG_STATUS
6841 while grep . conftest.defines >/dev/null
6843 # Write a limited-size here document to $tmp/defines.sed.
6844 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6845 # Speed up: don't consider the non `#define' lines.
6846 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6847 # Work around the forget-to-reset-the-flag bug.
6848 echo 't clr' >>$CONFIG_STATUS
6849 echo ': clr' >>$CONFIG_STATUS
6850 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6852 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6856 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6857 rm -f conftest.defines
6858 mv conftest.tail conftest.defines
6860 rm -f conftest.defines
6861 echo ' fi # grep' >>$CONFIG_STATUS
6862 echo >>$CONFIG_STATUS
6864 # Break up conftest.undefs because some shells have a limit on the size
6865 # of here documents, and old seds have small limits too (100 cmds).
6866 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6868 while grep . conftest.undefs >/dev/null
6870 # Write a limited-size here document to $tmp/undefs.sed.
6871 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6872 # Speed up: don't consider the non `#undef'
6873 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6874 # Work around the forget-to-reset-the-flag bug.
6875 echo 't clr' >>$CONFIG_STATUS
6876 echo ': clr' >>$CONFIG_STATUS
6877 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6879 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6883 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6884 rm -f conftest.undefs
6885 mv conftest.tail conftest.undefs
6887 rm -f conftest.undefs
6889 cat >>$CONFIG_STATUS <<\_ACEOF
6890 # Let's still pretend it is `configure' which instantiates (i.e., don't
6891 # use $as_me), people would be surprised to read:
6892 # /* config.h. Generated by config.status. */
6893 if test x"$ac_file" = x-; then
6894 echo "/* Generated by configure. */" >$tmp/config.h
6896 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6898 cat $tmp/in >>$tmp/config.h
6900 if test x"$ac_file" != x-; then
6901 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6902 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6903 echo "$as_me: $ac_file is unchanged" >&6;}
6905 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6906 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6907 X"$ac_file" : 'X\(//\)[^/]' \| \
6908 X"$ac_file" : 'X\(//\)$' \| \
6909 X"$ac_file" : 'X\(/\)' \| \
6910 . : '\(.\)' 2>/dev/null ||
6912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6914 /^X\(\/\/\)$/{ s//\1/; q; }
6915 /^X\(\/\).*/{ s//\1/; q; }
6917 { if $as_mkdir_p; then
6922 while test ! -d "$as_dir"; do
6923 as_dirs="$as_dir $as_dirs"
6924 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6926 X"$as_dir" : 'X\(//\)[^/]' \| \
6927 X"$as_dir" : 'X\(//\)$' \| \
6928 X"$as_dir" : 'X\(/\)' \| \
6929 . : '\(.\)' 2>/dev/null ||
6931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6933 /^X\(\/\/\)$/{ s//\1/; q; }
6934 /^X\(\/\).*/{ s//\1/; q; }
6937 test ! -n "$as_dirs" || mkdir $as_dirs
6938 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6939 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6940 { (exit 1); exit 1; }; }; }
6943 mv $tmp/config.h $ac_file
6949 # Run the commands associated with the file.
6951 config.h ) # update the timestamp
6952 echo 'timestamp for config.h' >"./stamp-h1"
6957 cat >>$CONFIG_STATUS <<\_ACEOF
6960 # CONFIG_COMMANDS section.
6962 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6963 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6964 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6965 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6966 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6967 X"$ac_dest" : 'X\(//\)[^/]' \| \
6968 X"$ac_dest" : 'X\(//\)$' \| \
6969 X"$ac_dest" : 'X\(/\)' \| \
6970 . : '\(.\)' 2>/dev/null ||
6972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6974 /^X\(\/\/\)$/{ s//\1/; q; }
6975 /^X\(\/\).*/{ s//\1/; q; }
6979 if test "$ac_dir" != .; then
6980 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6981 # A "../" for each directory in $ac_dir_suffix.
6982 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6984 ac_dir_suffix= ac_top_builddir=
6988 .) # No --srcdir option. We are building in place.
6990 if test -z "$ac_top_builddir"; then
6993 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6995 [\\/]* | ?:[\\/]* ) # Absolute path.
6996 ac_srcdir=$srcdir$ac_dir_suffix;
6997 ac_top_srcdir=$srcdir ;;
6999 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7000 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7002 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7004 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7005 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7006 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7007 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7010 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7011 echo "$as_me: executing $ac_dest commands" >&6;}
7013 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7014 # Strip MF so we end up with the name of the file.
7015 mf=`echo "$mf" | sed -e 's/:.*$//'`
7016 # Check whether this is an Automake generated Makefile or not.
7017 # We used to match only the files named `Makefile.in', but
7018 # some people rename them; so instead we look at the file content.
7019 # Grep'ing the first line is not enough: some people post-process
7020 # each Makefile.in and add a new line on top of each file to say so.
7021 # So let's grep whole file.
7022 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7023 dirpart=`(dirname "$mf") 2>/dev/null ||
7024 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7025 X"$mf" : 'X\(//\)[^/]' \| \
7026 X"$mf" : 'X\(//\)$' \| \
7027 X"$mf" : 'X\(/\)' \| \
7028 . : '\(.\)' 2>/dev/null ||
7030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7031 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7032 /^X\(\/\/\)$/{ s//\1/; q; }
7033 /^X\(\/\).*/{ s//\1/; q; }
7038 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7039 # Extract the definition of DEP_FILES from the Makefile without
7041 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7042 test -z "$DEPDIR" && continue
7043 # When using ansi2knr, U may be empty or an underscore; expand it
7044 U=`sed -n -e '/^U = / s///p' < "$mf"`
7045 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7046 # We invoke sed twice because it is the simplest approach to
7047 # changing $(DEPDIR) to its actual value in the expansion.
7048 for file in `sed -n -e '
7049 /^DEP_FILES = .*\\\\$/ {
7058 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7059 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7060 # Make sure the directory exists.
7061 test -f "$dirpart/$file" && continue
7062 fdir=`(dirname "$file") 2>/dev/null ||
7063 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7064 X"$file" : 'X\(//\)[^/]' \| \
7065 X"$file" : 'X\(//\)$' \| \
7066 X"$file" : 'X\(/\)' \| \
7067 . : '\(.\)' 2>/dev/null ||
7069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7070 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7071 /^X\(\/\/\)$/{ s//\1/; q; }
7072 /^X\(\/\).*/{ s//\1/; q; }
7074 { if $as_mkdir_p; then
7075 mkdir -p $dirpart/$fdir
7077 as_dir=$dirpart/$fdir
7079 while test ! -d "$as_dir"; do
7080 as_dirs="$as_dir $as_dirs"
7081 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7082 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7083 X"$as_dir" : 'X\(//\)[^/]' \| \
7084 X"$as_dir" : 'X\(//\)$' \| \
7085 X"$as_dir" : 'X\(/\)' \| \
7086 . : '\(.\)' 2>/dev/null ||
7088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7089 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7090 /^X\(\/\/\)$/{ s//\1/; q; }
7091 /^X\(\/\).*/{ s//\1/; q; }
7094 test ! -n "$as_dirs" || mkdir $as_dirs
7095 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7096 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7097 { (exit 1); exit 1; }; }; }
7099 # echo "creating $dirpart/$file"
7100 echo '# dummy' > "$dirpart/$file"
7108 cat >>$CONFIG_STATUS <<\_ACEOF
7110 { (exit 0); exit 0; }
7112 chmod +x $CONFIG_STATUS
7113 ac_clean_files=$ac_clean_files_save
7116 # configure is writing to config.log, and then calls config.status.
7117 # config.status does its own redirection, appending to config.log.
7118 # Unfortunately, on DOS this fails, as config.log is still kept open
7119 # by configure, so config.status won't be able to write to it; its
7120 # output is simply discarded. So we exec the FD to /dev/null,
7121 # effectively closing config.log, so it can be properly (re)opened and
7122 # appended to by config.status. When coming back to configure, we
7123 # need to make the FD available again.
7124 if test "$no_create" != yes; then
7126 ac_config_status_args=
7127 test "$silent" = yes &&
7128 ac_config_status_args="$ac_config_status_args --quiet"
7130 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7132 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7133 # would make configure fail if this is the last instruction.
7134 $ac_cs_success || { (exit 1); exit 1; }