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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot 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 am__fastdepCC_TRUE am__fastdepCC_FALSE 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-widec Enable wide character support (experimental)
854 --enable-debug Enable debugging support
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
859 --with-curses=DIR Where ncurses is installed
860 --with-readline=DIR Where readline is installed
862 Some influential environment variables:
863 CC C compiler command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
866 nonstandard directory <lib dir>
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
868 headers in a nonstandard directory <include dir>
871 Use these variables to override the choices made by `configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
877 if test "$ac_init_help" = "recursive"; then
878 # If there are subdirs, report their specific --help.
880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881 test -d $ac_dir || continue
884 if test "$ac_dir" != .; then
885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886 # A "../" for each directory in $ac_dir_suffix.
887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
889 ac_dir_suffix= ac_top_builddir=
893 .) # No --srcdir option. We are building in place.
895 if test -z "$ac_top_builddir"; then
898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
900 [\\/]* | ?:[\\/]* ) # Absolute path.
901 ac_srcdir=$srcdir$ac_dir_suffix;
902 ac_top_srcdir=$srcdir ;;
904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
909 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
910 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
911 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
912 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
915 # Check for guested configure; otherwise get Cygnus style configure.
916 if test -f $ac_srcdir/configure.gnu; then
918 $SHELL $ac_srcdir/configure.gnu --help=recursive
919 elif test -f $ac_srcdir/configure; then
921 $SHELL $ac_srcdir/configure --help=recursive
922 elif test -f $ac_srcdir/configure.ac ||
923 test -f $ac_srcdir/configure.in; then
927 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
933 test -n "$ac_init_help" && exit 0
934 if $ac_init_version; then
937 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
938 Free Software Foundation, Inc.
939 This configure script is free software; the Free Software Foundation
940 gives unlimited permission to copy, distribute and modify it.
946 This file contains any messages produced by compilers while
947 running configure, to aid debugging if configure makes a mistake.
949 It was created by $as_me, which was
950 generated by GNU Autoconf 2.57. Invocation command line was
961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
968 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
970 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
971 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
973 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
974 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
975 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
976 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
984 test -z "$as_dir" && as_dir=.
1000 # Keep a trace of the command line.
1001 # Strip out --no-create and --no-recursion so they do not pile up.
1002 # Strip out --silent because we don't want to record it for future runs.
1003 # Also quote any args containing shell meta-characters.
1004 # Make two passes to allow for proper duplicate-argument suppression.
1009 ac_must_keep_next=false
1015 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017 | -silent | --silent | --silen | --sile | --sil)
1019 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1020 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1023 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1025 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1026 if test $ac_must_keep_next = true; then
1027 ac_must_keep_next=false # Got value, back to normal.
1030 *=* | --config-cache | -C | -disable-* | --disable-* \
1031 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1032 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1033 | -with-* | --with-* | -without-* | --without-* | --x)
1034 case "$ac_configure_args0 " in
1035 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1038 -* ) ac_must_keep_next=true ;;
1041 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042 # Get rid of the leading space.
1048 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1049 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1051 # When interrupted or exit'd, cleanup temporary files, and complete
1052 # config.log. We remove comments because anyway the quotes in there
1053 # would cause problems or look ugly.
1054 # WARNING: Be sure not to use single quotes in there, as some shells,
1055 # such as our DU 5.0 friend, will then `close' the trap.
1056 trap 'exit_status=$?
1057 # Save into config.log some information that might help in debugging.
1062 ## ---------------- ##
1063 ## Cache variables. ##
1064 ## ---------------- ##
1067 # The following way of writing the cache mishandles newlines in values,
1070 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1073 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1078 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1085 ## ----------------- ##
1086 ## Output variables. ##
1087 ## ----------------- ##
1090 for ac_var in $ac_subst_vars
1092 eval ac_val=$`echo $ac_var`
1093 echo "$ac_var='"'"'$ac_val'"'"'"
1097 if test -n "$ac_subst_files"; then
1104 for ac_var in $ac_subst_files
1106 eval ac_val=$`echo $ac_var`
1107 echo "$ac_var='"'"'$ac_val'"'"'"
1112 if test -s confdefs.h; then
1119 sed "/^$/d" confdefs.h | sort
1122 test "$ac_signal" != 0 &&
1123 echo "$as_me: caught signal $ac_signal"
1124 echo "$as_me: exit $exit_status"
1126 rm -f core core.* *.core &&
1127 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1130 for ac_signal in 1 2 13 15; do
1131 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1136 rm -rf conftest* confdefs.h
1137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1140 # Predefined preprocessor variables.
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_NAME "$PACKAGE_NAME"
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_STRING "$PACKAGE_STRING"
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1167 # Let the site file select an alternate cache file if it wants to.
1168 # Prefer explicitly selected file to automatically selected ones.
1169 if test -z "$CONFIG_SITE"; then
1170 if test "x$prefix" != xNONE; then
1171 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1173 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1176 for ac_site_file in $CONFIG_SITE; do
1177 if test -r "$ac_site_file"; then
1178 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1179 echo "$as_me: loading site script $ac_site_file" >&6;}
1180 sed 's/^/| /' "$ac_site_file" >&5
1185 if test -r "$cache_file"; then
1186 # Some versions of bash will fail to source /dev/null (special
1187 # files actually), so we avoid doing that.
1188 if test -f "$cache_file"; then
1189 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1190 echo "$as_me: loading cache $cache_file" >&6;}
1192 [\\/]* | ?:[\\/]* ) . $cache_file;;
1193 *) . ./$cache_file;;
1197 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1198 echo "$as_me: creating cache $cache_file" >&6;}
1202 # Check that the precious variables saved in the cache have kept the same
1204 ac_cache_corrupted=false
1205 for ac_var in `(set) 2>&1 |
1206 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1207 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1208 eval ac_new_set=\$ac_env_${ac_var}_set
1209 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1210 eval ac_new_val="\$ac_env_${ac_var}_value"
1211 case $ac_old_set,$ac_new_set in
1213 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1214 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1215 ac_cache_corrupted=: ;;
1217 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1219 ac_cache_corrupted=: ;;
1222 if test "x$ac_old_val" != "x$ac_new_val"; then
1223 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1224 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1225 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1226 echo "$as_me: former value: $ac_old_val" >&2;}
1227 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1228 echo "$as_me: current value: $ac_new_val" >&2;}
1229 ac_cache_corrupted=:
1232 # Pass precious variables to config.status.
1233 if test "$ac_new_set" = set; then
1235 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1236 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1237 *) ac_arg=$ac_var=$ac_new_val ;;
1239 case " $ac_configure_args " in
1240 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1241 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1245 if $ac_cache_corrupted; then
1246 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1247 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1248 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1249 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1250 { (exit 1); exit 1; }; }
1254 ac_cpp='$CPP $CPPFLAGS'
1255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1277 am__api_version="1.7"
1279 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1280 if test -f $ac_dir/install-sh; then
1282 ac_install_sh="$ac_aux_dir/install-sh -c"
1284 elif test -f $ac_dir/install.sh; then
1286 ac_install_sh="$ac_aux_dir/install.sh -c"
1288 elif test -f $ac_dir/shtool; then
1290 ac_install_sh="$ac_aux_dir/shtool install -c"
1294 if test -z "$ac_aux_dir"; then
1295 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1296 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1297 { (exit 1); exit 1; }; }
1299 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1300 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1301 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1303 # Find a good install program. We prefer a C program (faster),
1304 # so one script is as good as another. But avoid the broken or
1305 # incompatible versions:
1306 # SysV /etc/install, /usr/sbin/install
1307 # SunOS /usr/etc/install
1308 # IRIX /sbin/install
1310 # AmigaOS /C/install, which installs bootblocks on floppy discs
1311 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1312 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1313 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1314 # ./install, which can be erroneously created by make from ./install.sh.
1315 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1316 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1317 if test -z "$INSTALL"; then
1318 if test "${ac_cv_path_install+set}" = set; then
1319 echo $ECHO_N "(cached) $ECHO_C" >&6
1321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1325 test -z "$as_dir" && as_dir=.
1326 # Account for people who put trailing slashes in PATH elements.
1328 ./ | .// | /cC/* | \
1329 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1332 # OSF1 and SCO ODT 3.0 have their own names for install.
1333 # Don't use installbsd from OSF since it installs stuff as root
1335 for ac_prog in ginstall scoinst install; do
1336 for ac_exec_ext in '' $ac_executable_extensions; do
1337 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1338 if test $ac_prog = install &&
1339 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1340 # AIX install. It has an incompatible calling convention.
1342 elif test $ac_prog = install &&
1343 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1344 # program-specific install script used by HP pwplus--don't use.
1347 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1359 if test "${ac_cv_path_install+set}" = set; then
1360 INSTALL=$ac_cv_path_install
1362 # As a last resort, use the slow shell script. We don't cache a
1363 # path for INSTALL within a source directory, because that will
1364 # break other packages using the cache if that directory is
1365 # removed, or if the path is relative.
1366 INSTALL=$ac_install_sh
1369 echo "$as_me:$LINENO: result: $INSTALL" >&5
1370 echo "${ECHO_T}$INSTALL" >&6
1372 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1373 # It thinks the first close brace ends the variable substitution.
1374 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1376 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1378 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1380 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1381 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1384 echo timestamp > conftest.file
1385 # Do `set' in a subshell so we don't clobber the current shell's
1386 # arguments. Must try -L first in case configure is actually a
1387 # symlink; some systems play weird games with the mod time of symlinks
1388 # (eg FreeBSD returns the mod time of the symlink's containing
1391 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1392 if test "$*" = "X"; then
1394 set X `ls -t $srcdir/configure conftest.file`
1397 if test "$*" != "X $srcdir/configure conftest.file" \
1398 && test "$*" != "X conftest.file $srcdir/configure"; then
1400 # If neither matched, then we have a broken ls. This can happen
1401 # if, for instance, CONFIG_SHELL is bash and it inherits a
1402 # broken ls alias from the environment. This has actually
1403 # happened. Such a system could not be considered "sane".
1404 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1405 alias in your environment" >&5
1406 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1407 alias in your environment" >&2;}
1408 { (exit 1); exit 1; }; }
1411 test "$2" = conftest.file
1417 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1418 Check your system clock" >&5
1419 echo "$as_me: error: newly created file is older than distributed files!
1420 Check your system clock" >&2;}
1421 { (exit 1); exit 1; }; }
1423 echo "$as_me:$LINENO: result: yes" >&5
1424 echo "${ECHO_T}yes" >&6
1425 test "$program_prefix" != NONE &&
1426 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1427 # Use a double $ so make ignores it.
1428 test "$program_suffix" != NONE &&
1429 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1430 # Double any \ or $. echo might interpret backslashes.
1431 # By default was `s,x,x', remove it if useless.
1432 cat <<\_ACEOF >conftest.sed
1433 s/[\\$]/&&/g;s/;s,x,x,$//
1435 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1439 # expand $ac_aux_dir to an absolute path
1440 am_aux_dir=`cd $ac_aux_dir && pwd`
1442 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1443 # Use eval to expand $SHELL
1444 if eval "$MISSING --run true"; then
1445 am_missing_run="$MISSING --run "
1448 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1449 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1452 for ac_prog in gawk mawk nawk awk
1454 # Extract the first word of "$ac_prog", so it can be a program name with args.
1455 set dummy $ac_prog; ac_word=$2
1456 echo "$as_me:$LINENO: checking for $ac_word" >&5
1457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1458 if test "${ac_cv_prog_AWK+set}" = set; then
1459 echo $ECHO_N "(cached) $ECHO_C" >&6
1461 if test -n "$AWK"; then
1462 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1468 test -z "$as_dir" && as_dir=.
1469 for ac_exec_ext in '' $ac_executable_extensions; do
1470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1471 ac_cv_prog_AWK="$ac_prog"
1472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481 if test -n "$AWK"; then
1482 echo "$as_me:$LINENO: result: $AWK" >&5
1483 echo "${ECHO_T}$AWK" >&6
1485 echo "$as_me:$LINENO: result: no" >&5
1486 echo "${ECHO_T}no" >&6
1489 test -n "$AWK" && break
1492 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1493 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1494 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1495 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1496 echo $ECHO_N "(cached) $ECHO_C" >&6
1498 cat >conftest.make <<\_ACEOF
1500 @echo 'ac_maketemp="$(MAKE)"'
1502 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1503 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1504 if test -n "$ac_maketemp"; then
1505 eval ac_cv_prog_make_${ac_make}_set=yes
1507 eval ac_cv_prog_make_${ac_make}_set=no
1511 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1512 echo "$as_me:$LINENO: result: yes" >&5
1513 echo "${ECHO_T}yes" >&6
1516 echo "$as_me:$LINENO: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1518 SET_MAKE="MAKE=${MAKE-make}"
1521 rm -rf .tst 2>/dev/null
1522 mkdir .tst 2>/dev/null
1523 if test -d .tst; then
1528 rmdir .tst 2>/dev/null
1530 # test to see if srcdir already configured
1531 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1532 test -f $srcdir/config.status; then
1533 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1534 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1535 { (exit 1); exit 1; }; }
1538 # test whether we have cygpath
1539 if test -z "$CYGPATH_W"; then
1540 if (cygpath --version) >/dev/null 2>/dev/null; then
1541 CYGPATH_W='cygpath -w'
1548 # Define the identity of the package.
1553 cat >>confdefs.h <<_ACEOF
1554 #define PACKAGE "$PACKAGE"
1558 cat >>confdefs.h <<_ACEOF
1559 #define VERSION "$VERSION"
1562 # Some tools Automake needs.
1564 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1567 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1570 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1573 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1576 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1579 AMTAR=${AMTAR-"${am_missing_run}tar"}
1581 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1583 # Installed binaries are usually stripped using `strip' when the user
1584 # run `make install-strip'. However `strip' might not be the right
1585 # tool to use in cross-compilation environments, therefore Automake
1586 # will honor the `STRIP' environment variable to overrule this program.
1587 if test "$cross_compiling" != no; then
1588 if test -n "$ac_tool_prefix"; then
1589 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1590 set dummy ${ac_tool_prefix}strip; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_STRIP+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1596 if test -n "$STRIP"; then
1597 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 test -z "$as_dir" && as_dir=.
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 STRIP=$ac_cv_prog_STRIP
1616 if test -n "$STRIP"; then
1617 echo "$as_me:$LINENO: result: $STRIP" >&5
1618 echo "${ECHO_T}$STRIP" >&6
1620 echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1625 if test -z "$ac_cv_prog_STRIP"; then
1627 # Extract the first word of "strip", so it can be a program name with args.
1628 set dummy strip; ac_word=$2
1629 echo "$as_me:$LINENO: checking for $ac_word" >&5
1630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1634 if test -n "$ac_ct_STRIP"; then
1635 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 test -z "$as_dir" && as_dir=.
1642 for ac_exec_ext in '' $ac_executable_extensions; do
1643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644 ac_cv_prog_ac_ct_STRIP="strip"
1645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1651 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1654 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1655 if test -n "$ac_ct_STRIP"; then
1656 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1657 echo "${ECHO_T}$ac_ct_STRIP" >&6
1659 echo "$as_me:$LINENO: result: no" >&5
1660 echo "${ECHO_T}no" >&6
1665 STRIP="$ac_cv_prog_STRIP"
1669 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1671 # We need awk for the "check" target. The system "awk" is bad on
1676 ac_config_headers="$ac_config_headers config.h"
1680 cat >>confdefs.h <<\_ACEOF
1681 #define HAVE_SNPRINTF 0
1685 cat >>confdefs.h <<\_ACEOF
1686 #define HAVE_VSNPRINTF 0
1690 cat >>confdefs.h <<\_ACEOF
1691 #define HAVE_STDARG_H 0
1695 cat >>confdefs.h <<\_ACEOF
1696 #define HAVE_NCURSES 0
1700 # Make sure we can run config.sub.
1701 $ac_config_sub sun4 >/dev/null 2>&1 ||
1702 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1703 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1704 { (exit 1); exit 1; }; }
1706 echo "$as_me:$LINENO: checking build system type" >&5
1707 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1708 if test "${ac_cv_build+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 ac_cv_build_alias=$build_alias
1712 test -z "$ac_cv_build_alias" &&
1713 ac_cv_build_alias=`$ac_config_guess`
1714 test -z "$ac_cv_build_alias" &&
1715 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1716 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1717 { (exit 1); exit 1; }; }
1718 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1719 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1720 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1721 { (exit 1); exit 1; }; }
1724 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1725 echo "${ECHO_T}$ac_cv_build" >&6
1727 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1728 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1729 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1732 echo "$as_me:$LINENO: checking host system type" >&5
1733 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1734 if test "${ac_cv_host+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 ac_cv_host_alias=$host_alias
1738 test -z "$ac_cv_host_alias" &&
1739 ac_cv_host_alias=$ac_cv_build_alias
1740 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1741 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1742 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1743 { (exit 1); exit 1; }; }
1746 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1747 echo "${ECHO_T}$ac_cv_host" >&6
1749 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1750 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1751 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1756 ac_cpp='$CPP $CPPFLAGS'
1757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1760 if test -n "$ac_tool_prefix"; then
1761 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1762 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1763 echo "$as_me:$LINENO: checking for $ac_word" >&5
1764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1765 if test "${ac_cv_prog_CC+set}" = set; then
1766 echo $ECHO_N "(cached) $ECHO_C" >&6
1768 if test -n "$CC"; then
1769 ac_cv_prog_CC="$CC" # Let the user override the test.
1771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 test -z "$as_dir" && as_dir=.
1776 for ac_exec_ext in '' $ac_executable_extensions; do
1777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1778 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 if test -n "$CC"; then
1789 echo "$as_me:$LINENO: result: $CC" >&5
1790 echo "${ECHO_T}$CC" >&6
1792 echo "$as_me:$LINENO: result: no" >&5
1793 echo "${ECHO_T}no" >&6
1797 if test -z "$ac_cv_prog_CC"; then
1799 # Extract the first word of "gcc", so it can be a program name with args.
1800 set dummy gcc; ac_word=$2
1801 echo "$as_me:$LINENO: checking for $ac_word" >&5
1802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 if test -n "$ac_ct_CC"; then
1807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 test -z "$as_dir" && as_dir=.
1814 for ac_exec_ext in '' $ac_executable_extensions; do
1815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816 ac_cv_prog_ac_ct_CC="gcc"
1817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1826 if test -n "$ac_ct_CC"; then
1827 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1828 echo "${ECHO_T}$ac_ct_CC" >&6
1830 echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1839 if test -z "$CC"; then
1840 if test -n "$ac_tool_prefix"; then
1841 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1842 set dummy ${ac_tool_prefix}cc; ac_word=$2
1843 echo "$as_me:$LINENO: checking for $ac_word" >&5
1844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845 if test "${ac_cv_prog_CC+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 if test -n "$CC"; then
1849 ac_cv_prog_CC="$CC" # Let the user override the test.
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 test -z "$as_dir" && as_dir=.
1856 for ac_exec_ext in '' $ac_executable_extensions; do
1857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858 ac_cv_prog_CC="${ac_tool_prefix}cc"
1859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 if test -n "$CC"; then
1869 echo "$as_me:$LINENO: result: $CC" >&5
1870 echo "${ECHO_T}$CC" >&6
1872 echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1877 if test -z "$ac_cv_prog_CC"; then
1879 # Extract the first word of "cc", so it can be a program name with args.
1880 set dummy cc; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 if test -n "$ac_ct_CC"; then
1887 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_ac_ct_CC="cc"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1906 if test -n "$ac_ct_CC"; then
1907 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1908 echo "${ECHO_T}$ac_ct_CC" >&6
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1920 if test -z "$CC"; then
1921 # Extract the first word of "cc", so it can be a program name with args.
1922 set dummy cc; ac_word=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_CC+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 if test -n "$CC"; then
1929 ac_cv_prog_CC="$CC" # Let the user override the test.
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1940 ac_prog_rejected=yes
1944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 if test $ac_prog_rejected = yes; then
1951 # We found a bogon in the path, so make sure we never use it.
1952 set dummy $ac_cv_prog_CC
1954 if test $# != 0; then
1955 # We chose a different compiler from the bogus one.
1956 # However, it has the same basename, so the bogon will be chosen
1957 # first if we set CC to just the basename; use the full file name.
1959 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1965 if test -n "$CC"; then
1966 echo "$as_me:$LINENO: result: $CC" >&5
1967 echo "${ECHO_T}$CC" >&6
1969 echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1974 if test -z "$CC"; then
1975 if test -n "$ac_tool_prefix"; then
1978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980 echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 if test -n "$CC"; then
2006 echo "$as_me:$LINENO: result: $CC" >&5
2007 echo "${ECHO_T}$CC" >&6
2009 echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6
2013 test -n "$CC" && break
2016 if test -z "$CC"; then
2020 # Extract the first word of "$ac_prog", so it can be a program name with args.
2021 set dummy $ac_prog; ac_word=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 if test -n "$ac_ct_CC"; then
2028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037 ac_cv_prog_ac_ct_CC="$ac_prog"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2047 if test -n "$ac_ct_CC"; then
2048 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2049 echo "${ECHO_T}$ac_ct_CC" >&6
2051 echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2055 test -n "$ac_ct_CC" && break
2064 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: no acceptable C compiler found in \$PATH
2067 See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
2070 # Provide some information about the compiler.
2071 echo "$as_me:$LINENO:" \
2072 "checking for C compiler version" >&5
2073 ac_compiler=`set X $ac_compile; echo $2`
2074 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2075 (eval $ac_compiler --version </dev/null >&5) 2>&5
2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); }
2079 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2080 (eval $ac_compiler -v </dev/null >&5) 2>&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }
2084 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2085 (eval $ac_compiler -V </dev/null >&5) 2>&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }
2090 cat >conftest.$ac_ext <<_ACEOF
2091 #line $LINENO "configure"
2094 cat confdefs.h >>conftest.$ac_ext
2095 cat >>conftest.$ac_ext <<_ACEOF
2096 /* end confdefs.h. */
2106 ac_clean_files_save=$ac_clean_files
2107 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2108 # Try to create an executable without -o first, disregard a.out.
2109 # It will help us diagnose broken compilers, and finding out an intuition
2111 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2112 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2113 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2114 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2115 (eval $ac_link_default) 2>&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; then
2119 # Find the output, starting from the most likely. This scheme is
2120 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2123 # Be careful to initialize this variable, since it used to be cached.
2124 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2126 # b.out is created by i960 compilers.
2127 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2129 test -f "$ac_file" || continue
2131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2134 # This is the source file.
2137 # We found the default executable, but exeext='' is most
2141 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2142 # FIXME: I believe we export ac_cv_exeext for Libtool,
2143 # but it would be cool to find out if it's true. Does anybody
2144 # maintain Libtool? --akim.
2152 echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2155 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2156 See \`config.log' for more details." >&5
2157 echo "$as_me: error: C compiler cannot create executables
2158 See \`config.log' for more details." >&2;}
2159 { (exit 77); exit 77; }; }
2162 ac_exeext=$ac_cv_exeext
2163 echo "$as_me:$LINENO: result: $ac_file" >&5
2164 echo "${ECHO_T}$ac_file" >&6
2166 # Check the compiler produces executables we can run. If not, either
2167 # the compiler is broken, or we cross compile.
2168 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2169 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2170 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2171 # If not cross compiling, check that we can run a simple program.
2172 if test "$cross_compiling" != yes; then
2173 if { ac_try='./$ac_file'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; }; then
2181 if test "$cross_compiling" = maybe; then
2184 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2185 If you meant to cross compile, use \`--host'.
2186 See \`config.log' for more details." >&5
2187 echo "$as_me: error: cannot run C compiled programs.
2188 If you meant to cross compile, use \`--host'.
2189 See \`config.log' for more details." >&2;}
2190 { (exit 1); exit 1; }; }
2194 echo "$as_me:$LINENO: result: yes" >&5
2195 echo "${ECHO_T}yes" >&6
2197 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2198 ac_clean_files=$ac_clean_files_save
2199 # Check the compiler produces executables we can run. If not, either
2200 # the compiler is broken, or we cross compile.
2201 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2202 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2203 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2204 echo "${ECHO_T}$cross_compiling" >&6
2206 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2207 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2209 (eval $ac_link) 2>&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; then
2213 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2214 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2215 # work properly (i.e., refer to `conftest.exe'), while it won't with
2217 for ac_file in conftest.exe conftest conftest.*; do
2218 test -f "$ac_file" || continue
2220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2221 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2228 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2229 See \`config.log' for more details." >&5
2230 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2231 See \`config.log' for more details." >&2;}
2232 { (exit 1); exit 1; }; }
2235 rm -f conftest$ac_cv_exeext
2236 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2237 echo "${ECHO_T}$ac_cv_exeext" >&6
2239 rm -f conftest.$ac_ext
2240 EXEEXT=$ac_cv_exeext
2242 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2243 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2244 if test "${ac_cv_objext+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 cat >conftest.$ac_ext <<_ACEOF
2248 #line $LINENO "configure"
2251 cat confdefs.h >>conftest.$ac_ext
2252 cat >>conftest.$ac_ext <<_ACEOF
2253 /* end confdefs.h. */
2263 rm -f conftest.o conftest.obj
2264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265 (eval $ac_compile) 2>&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; then
2269 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2272 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2277 echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2280 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2281 See \`config.log' for more details." >&5
2282 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2283 See \`config.log' for more details." >&2;}
2284 { (exit 1); exit 1; }; }
2287 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2289 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2290 echo "${ECHO_T}$ac_cv_objext" >&6
2291 OBJEXT=$ac_cv_objext
2293 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2294 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2295 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 cat >conftest.$ac_ext <<_ACEOF
2299 #line $LINENO "configure"
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h. */
2317 rm -f conftest.$ac_objext
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319 (eval $ac_compile) 2>&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); } &&
2323 { ac_try='test -s conftest.$ac_objext'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; }; then
2331 echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2336 rm -f conftest.$ac_objext conftest.$ac_ext
2337 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2340 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2341 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2342 GCC=`test $ac_compiler_gnu = yes && echo yes`
2343 ac_test_CFLAGS=${CFLAGS+set}
2344 ac_save_CFLAGS=$CFLAGS
2346 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2347 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2348 if test "${ac_cv_prog_cc_g+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 cat >conftest.$ac_ext <<_ACEOF
2352 #line $LINENO "configure"
2355 cat confdefs.h >>conftest.$ac_ext
2356 cat >>conftest.$ac_ext <<_ACEOF
2357 /* end confdefs.h. */
2367 rm -f conftest.$ac_objext
2368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2369 (eval $ac_compile) 2>&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); } &&
2373 { ac_try='test -s conftest.$ac_objext'
2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; }; then
2381 echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2386 rm -f conftest.$ac_objext conftest.$ac_ext
2388 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2389 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2390 if test "$ac_test_CFLAGS" = set; then
2391 CFLAGS=$ac_save_CFLAGS
2392 elif test $ac_cv_prog_cc_g = yes; then
2393 if test "$GCC" = yes; then
2399 if test "$GCC" = yes; then
2405 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2406 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2407 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 ac_cv_prog_cc_stdc=no
2412 cat >conftest.$ac_ext <<_ACEOF
2413 #line $LINENO "configure"
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h. */
2421 #include <sys/types.h>
2422 #include <sys/stat.h>
2423 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2424 struct buf { int x; };
2425 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2426 static char *e (p, i)
2432 static char *f (char * (*g) (char **, int), char **p, ...)
2437 s = g (p, va_arg (v,int));
2441 int test (int i, double x);
2442 struct s1 {int (*f) (int a);};
2443 struct s2 {int (*f) (double a);};
2444 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2450 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2455 # Don't try gcc -ansi; that turns off useful extensions and
2456 # breaks some systems' header files.
2457 # AIX -qlanglvl=ansi
2458 # Ultrix and OSF/1 -std1
2459 # HP-UX 10.20 and later -Ae
2460 # HP-UX older versions -Aa -D_HPUX_SOURCE
2461 # SVR4 -Xc -D__EXTENSIONS__
2462 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2464 CC="$ac_save_CC $ac_arg"
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2477 ac_cv_prog_cc_stdc=$ac_arg
2480 echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2484 rm -f conftest.$ac_objext
2486 rm -f conftest.$ac_ext conftest.$ac_objext
2491 case "x$ac_cv_prog_cc_stdc" in
2493 echo "$as_me:$LINENO: result: none needed" >&5
2494 echo "${ECHO_T}none needed" >&6 ;;
2496 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2497 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2498 CC="$CC $ac_cv_prog_cc_stdc" ;;
2501 # Some people use a C++ compiler to compile C. Since we use `exit',
2502 # in C++ we need to declare it. In case someone uses the same compiler
2503 # for both compiling C and C++ we need to have the C++ compiler decide
2504 # the declaration of exit, since it's the most demanding environment.
2505 cat >conftest.$ac_ext <<_ACEOF
2510 rm -f conftest.$ac_objext
2511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2512 (eval $ac_compile) 2>&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2522 for ac_declaration in \
2524 '#include <stdlib.h>' \
2525 'extern "C" void std::exit (int) throw (); using std::exit;' \
2526 'extern "C" void std::exit (int); using std::exit;' \
2527 'extern "C" void exit (int) throw ();' \
2528 'extern "C" void exit (int);' \
2531 cat >conftest.$ac_ext <<_ACEOF
2532 #line $LINENO "configure"
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h. */
2548 rm -f conftest.$ac_objext
2549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550 (eval $ac_compile) 2>&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -s conftest.$ac_objext'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2562 echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2567 rm -f conftest.$ac_objext conftest.$ac_ext
2568 cat >conftest.$ac_ext <<_ACEOF
2569 #line $LINENO "configure"
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h. */
2584 rm -f conftest.$ac_objext
2585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586 (eval $ac_compile) 2>&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); } &&
2590 { ac_try='test -s conftest.$ac_objext'
2591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; }; then
2598 echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2602 rm -f conftest.$ac_objext conftest.$ac_ext
2605 if test -n "$ac_declaration"; then
2606 echo '#ifdef __cplusplus' >>confdefs.h
2607 echo $ac_declaration >>confdefs.h
2608 echo '#endif' >>confdefs.h
2612 echo "$as_me: failed program was:" >&5
2613 sed 's/^/| /' conftest.$ac_ext >&5
2616 rm -f conftest.$ac_objext conftest.$ac_ext
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622 DEPDIR="${am__leading_dot}deps"
2624 ac_config_commands="$ac_config_commands depfiles"
2627 am_make=${MAKE-make}
2628 cat > confinc << 'END'
2633 # If we don't find an include directive, just comment out the code.
2634 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2635 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2639 # First try GNU make style include.
2640 echo "include confinc" > confmf
2641 # We grep out `Entering directory' and `Leaving directory'
2642 # messages which can occur if `w' ends up in MAKEFLAGS.
2643 # In particular we don't look at `^make:' because GNU make might
2644 # be invoked under some other name (usually "gmake"), in which
2645 # case it prints its new name instead of `make'.
2646 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2651 # Now try BSD make style include.
2652 if test "$am__include" = "#"; then
2653 echo '.include "confinc"' > confmf
2654 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2655 am__include=.include
2662 echo "$as_me:$LINENO: result: $_am_result" >&5
2663 echo "${ECHO_T}$_am_result" >&6
2664 rm -f confinc confmf
2666 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2667 if test "${enable_dependency_tracking+set}" = set; then
2668 enableval="$enable_dependency_tracking"
2671 if test "x$enable_dependency_tracking" != xno; then
2672 am_depcomp="$ac_aux_dir/depcomp"
2677 if test "x$enable_dependency_tracking" != xno; then
2688 depcc="$CC" am_compiler_list=
2690 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2691 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2692 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2695 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2696 # We make a subdir and do the tests there. Otherwise we can end up
2697 # making bogus files that we don't know about and never remove. For
2698 # instance it was reported that on HP-UX the gcc test will end up
2699 # making a dummy file named `D' -- because `-MD' means `put the output
2702 # Copy depcomp to subdir because otherwise we won't find it if we're
2703 # using a relative directory.
2704 cp "$am_depcomp" conftest.dir
2706 # We will build objects and dependencies in a subdirectory because
2707 # it helps to detect inapplicable dependency modes. For instance
2708 # both Tru64's cc and ICC support -MD to output dependencies as a
2709 # side effect of compilation, but ICC will put the dependencies in
2710 # the current directory while Tru64 will put them in the object
2714 am_cv_CC_dependencies_compiler_type=none
2715 if test "$am_compiler_list" = ""; then
2716 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2718 for depmode in $am_compiler_list; do
2719 # Setup a source with many dependencies, because some compilers
2720 # like to wrap large dependency lists on column 80 (with \), and
2721 # we should not choose a depcomp mode which is confused by this.
2723 # We need to recreate these files for each test, as the compiler may
2724 # overwrite some of them when testing with obscure command lines.
2725 # This happens at least with the AIX C compiler.
2727 for i in 1 2 3 4 5 6; do
2728 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2731 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2735 # after this tag, mechanisms are not by side-effect, so they'll
2736 # only be used when explicitly requested
2737 if test "x$enable_dependency_tracking" = xyes; then
2745 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2746 # mode. It turns out that the SunPro C++ compiler does not properly
2747 # handle `-M -o', and we need to detect this.
2748 if depmode=$depmode \
2749 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2750 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2751 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2752 >/dev/null 2>conftest.err &&
2753 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2754 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2755 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2756 # icc doesn't choke on unknown options, it will just issue warnings
2757 # (even with -Werror). So we grep stderr for any message
2758 # that says an option was ignored.
2759 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2760 am_cv_CC_dependencies_compiler_type=$depmode
2769 am_cv_CC_dependencies_compiler_type=none
2773 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2774 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2775 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2780 test "x$enable_dependency_tracking" != xno \
2781 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2783 am__fastdepCC_FALSE='#'
2785 am__fastdepCC_TRUE='#'
2786 am__fastdepCC_FALSE=
2792 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2793 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2794 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 ac_check_lib_save_LIBS=$LIBS
2798 LIBS="-lcposix $LIBS"
2799 cat >conftest.$ac_ext <<_ACEOF
2800 #line $LINENO "configure"
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2807 /* Override any gcc2 internal prototype to avoid an error. */
2811 /* We use char because int might match the return type of a gcc2
2812 builtin and then its argument prototype would still apply. */
2822 rm -f conftest.$ac_objext conftest$ac_exeext
2823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2824 (eval $ac_link) 2>&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } &&
2828 { ac_try='test -s conftest$ac_exeext'
2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; }; then
2834 ac_cv_lib_cposix_strerror=yes
2836 echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2839 ac_cv_lib_cposix_strerror=no
2841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2842 LIBS=$ac_check_lib_save_LIBS
2844 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2845 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2846 if test $ac_cv_lib_cposix_strerror = yes; then
2847 LIBS="$LIBS -lcposix"
2855 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2856 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2857 if test "${am_cv_prog_cc_stdc+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 am_cv_prog_cc_stdc=no
2862 # Don't try gcc -ansi; that turns off useful extensions and
2863 # breaks some systems' header files.
2864 # AIX -qlanglvl=ansi
2865 # Ultrix and OSF/1 -std1
2866 # HP-UX 10.20 and later -Ae
2867 # HP-UX older versions -Aa -D_HPUX_SOURCE
2868 # SVR4 -Xc -D__EXTENSIONS__
2869 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2871 CC="$ac_save_CC $ac_arg"
2872 cat >conftest.$ac_ext <<_ACEOF
2873 #line $LINENO "configure"
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h. */
2881 #include <sys/types.h>
2882 #include <sys/stat.h>
2883 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2884 struct buf { int x; };
2885 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2886 static char *e (p, i)
2892 static char *f (char * (*g) (char **, int), char **p, ...)
2897 s = g (p, va_arg (v,int));
2901 int test (int i, double x);
2902 struct s1 {int (*f) (int a);};
2903 struct s2 {int (*f) (double a);};
2904 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2912 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920 (eval $ac_compile) 2>&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } &&
2924 { ac_try='test -s conftest.$ac_objext'
2925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; }; then
2930 am_cv_prog_cc_stdc="$ac_arg"; break
2932 echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.$ac_ext >&5
2936 rm -f conftest.$ac_objext conftest.$ac_ext
2942 if test -z "$am_cv_prog_cc_stdc"; then
2943 echo "$as_me:$LINENO: result: none needed" >&5
2944 echo "${ECHO_T}none needed" >&6
2946 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2947 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2949 case "x$am_cv_prog_cc_stdc" in
2951 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2955 ac_cpp='$CPP $CPPFLAGS'
2956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2959 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2960 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2961 # On Suns, sometimes $CPP names a directory.
2962 if test -n "$CPP" && test -d "$CPP"; then
2965 if test -z "$CPP"; then
2966 if test "${ac_cv_prog_CPP+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 # Double quotes because CPP needs to be expanded
2970 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2973 for ac_c_preproc_warn_flag in '' yes
2975 # Use a header file that comes with gcc, so configuring glibc
2976 # with a fresh cross-compiler works.
2977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2978 # <limits.h> exists even on freestanding compilers.
2979 # On the NeXT, cc -E runs the code through the compiler's parser,
2980 # not just through cpp. "Syntax error" is here to catch this case.
2981 cat >conftest.$ac_ext <<_ACEOF
2982 #line $LINENO "configure"
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2989 # include <limits.h>
2991 # include <assert.h>
2995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2998 grep -v '^ *+' conftest.er1 >conftest.err
3000 cat conftest.err >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); } >/dev/null; then
3003 if test -s conftest.err; then
3004 ac_cpp_err=$ac_c_preproc_warn_flag
3011 if test -z "$ac_cpp_err"; then
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3017 # Broken: fails on valid input.
3020 rm -f conftest.err conftest.$ac_ext
3022 # OK, works on sane cases. Now check whether non-existent headers
3023 # can be detected and how.
3024 cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3031 #include <ac_nonexistent.h>
3033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3036 grep -v '^ *+' conftest.er1 >conftest.err
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } >/dev/null; then
3041 if test -s conftest.err; then
3042 ac_cpp_err=$ac_c_preproc_warn_flag
3049 if test -z "$ac_cpp_err"; then
3050 # Broken: success on invalid input.
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3056 # Passes both tests.
3060 rm -f conftest.err conftest.$ac_ext
3063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3064 rm -f conftest.err conftest.$ac_ext
3065 if $ac_preproc_ok; then
3077 echo "$as_me:$LINENO: result: $CPP" >&5
3078 echo "${ECHO_T}$CPP" >&6
3080 for ac_c_preproc_warn_flag in '' yes
3082 # Use a header file that comes with gcc, so configuring glibc
3083 # with a fresh cross-compiler works.
3084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3085 # <limits.h> exists even on freestanding compilers.
3086 # On the NeXT, cc -E runs the code through the compiler's parser,
3087 # not just through cpp. "Syntax error" is here to catch this case.
3088 cat >conftest.$ac_ext <<_ACEOF
3089 #line $LINENO "configure"
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3096 # include <limits.h>
3098 # include <assert.h>
3102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3105 grep -v '^ *+' conftest.er1 >conftest.err
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } >/dev/null; then
3110 if test -s conftest.err; then
3111 ac_cpp_err=$ac_c_preproc_warn_flag
3118 if test -z "$ac_cpp_err"; then
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3124 # Broken: fails on valid input.
3127 rm -f conftest.err conftest.$ac_ext
3129 # OK, works on sane cases. Now check whether non-existent headers
3130 # can be detected and how.
3131 cat >conftest.$ac_ext <<_ACEOF
3132 #line $LINENO "configure"
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3138 #include <ac_nonexistent.h>
3140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3143 grep -v '^ *+' conftest.er1 >conftest.err
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } >/dev/null; then
3148 if test -s conftest.err; then
3149 ac_cpp_err=$ac_c_preproc_warn_flag
3156 if test -z "$ac_cpp_err"; then
3157 # Broken: success on invalid input.
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 # Passes both tests.
3167 rm -f conftest.err conftest.$ac_ext
3170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3171 rm -f conftest.err conftest.$ac_ext
3172 if $ac_preproc_ok; then
3175 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3176 See \`config.log' for more details." >&5
3177 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3178 See \`config.log' for more details." >&2;}
3179 { (exit 1); exit 1; }; }
3183 ac_cpp='$CPP $CPPFLAGS'
3184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189 echo "$as_me:$LINENO: checking for egrep" >&5
3190 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3191 if test "${ac_cv_prog_egrep+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3195 then ac_cv_prog_egrep='grep -E'
3196 else ac_cv_prog_egrep='egrep'
3199 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3200 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3201 EGREP=$ac_cv_prog_egrep
3204 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3214 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3215 inttypes.h stdint.h unistd.h
3217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3218 echo "$as_me:$LINENO: checking for $ac_header" >&5
3219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 cat >conftest.$ac_ext <<_ACEOF
3224 #line $LINENO "configure"
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3230 $ac_includes_default
3232 #include <$ac_header>
3234 rm -f conftest.$ac_objext
3235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3236 (eval $ac_compile) 2>&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } &&
3240 { ac_try='test -s conftest.$ac_objext'
3241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); }; }; then
3246 eval "$as_ac_Header=yes"
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3251 eval "$as_ac_Header=no"
3253 rm -f conftest.$ac_objext conftest.$ac_ext
3255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3258 cat >>confdefs.h <<_ACEOF
3259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3269 echo "$as_me:$LINENO: checking for function prototypes" >&5
3270 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3271 if test "$am_cv_prog_cc_stdc" != no; then
3272 echo "$as_me:$LINENO: result: yes" >&5
3273 echo "${ECHO_T}yes" >&6
3275 cat >>confdefs.h <<\_ACEOF
3276 #define PROTOTYPES 1
3281 echo "$as_me:$LINENO: result: no" >&5
3282 echo "${ECHO_T}no" >&6
3283 U=_ ANSI2KNR=./ansi2knr
3285 # Ensure some checks needed by ansi2knr itself.
3286 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3287 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3288 if test "${ac_cv_header_stdc+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 cat >conftest.$ac_ext <<_ACEOF
3292 #line $LINENO "configure"
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3311 rm -f conftest.$ac_objext
3312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3313 (eval $ac_compile) 2>&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); } &&
3317 { ac_try='test -s conftest.$ac_objext'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; }; then
3323 ac_cv_header_stdc=yes
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3328 ac_cv_header_stdc=no
3330 rm -f conftest.$ac_objext conftest.$ac_ext
3332 if test $ac_cv_header_stdc = yes; then
3333 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3334 cat >conftest.$ac_ext <<_ACEOF
3335 #line $LINENO "configure"
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3345 $EGREP "memchr" >/dev/null 2>&1; then
3348 ac_cv_header_stdc=no
3354 if test $ac_cv_header_stdc = yes; then
3355 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3356 cat >conftest.$ac_ext <<_ACEOF
3357 #line $LINENO "configure"
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h. */
3366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3367 $EGREP "free" >/dev/null 2>&1; then
3370 ac_cv_header_stdc=no
3376 if test $ac_cv_header_stdc = yes; then
3377 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3378 if test "$cross_compiling" = yes; then
3381 cat >conftest.$ac_ext <<_ACEOF
3382 #line $LINENO "configure"
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3389 #if ((' ' & 0x0FF) == 0x020)
3390 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3391 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3393 # define ISLOWER(c) \
3394 (('a' <= (c) && (c) <= 'i') \
3395 || ('j' <= (c) && (c) <= 'r') \
3396 || ('s' <= (c) && (c) <= 'z'))
3397 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3400 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3405 for (i = 0; i < 256; i++)
3406 if (XOR (islower (i), ISLOWER (i))
3407 || toupper (i) != TOUPPER (i))
3412 rm -f conftest$ac_exeext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3414 (eval $ac_link) 2>&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }; }; then
3425 echo "$as_me: program exited with status $ac_status" >&5
3426 echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3430 ac_cv_header_stdc=no
3432 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3436 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3437 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3438 if test $ac_cv_header_stdc = yes; then
3440 cat >>confdefs.h <<\_ACEOF
3441 #define STDC_HEADERS 1
3447 for ac_header in string.h
3449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3451 echo "$as_me:$LINENO: checking for $ac_header" >&5
3452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3459 # Is the header compilable?
3460 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3462 cat >conftest.$ac_ext <<_ACEOF
3463 #line $LINENO "configure"
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3469 $ac_includes_default
3470 #include <$ac_header>
3472 rm -f conftest.$ac_objext
3473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3474 (eval $ac_compile) 2>&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); } &&
3478 { ac_try='test -s conftest.$ac_objext'
3479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; }; then
3484 ac_header_compiler=yes
3486 echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3489 ac_header_compiler=no
3491 rm -f conftest.$ac_objext conftest.$ac_ext
3492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3493 echo "${ECHO_T}$ac_header_compiler" >&6
3495 # Is the header present?
3496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3498 cat >conftest.$ac_ext <<_ACEOF
3499 #line $LINENO "configure"
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3505 #include <$ac_header>
3507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3510 grep -v '^ *+' conftest.er1 >conftest.err
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } >/dev/null; then
3515 if test -s conftest.err; then
3516 ac_cpp_err=$ac_c_preproc_warn_flag
3523 if test -z "$ac_cpp_err"; then
3524 ac_header_preproc=yes
3526 echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3529 ac_header_preproc=no
3531 rm -f conftest.err conftest.$ac_ext
3532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3533 echo "${ECHO_T}$ac_header_preproc" >&6
3535 # So? What about this header?
3536 case $ac_header_compiler:$ac_header_preproc in
3538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3544 ## ------------------------------------ ##
3545 ## Report this to bug-autoconf@gnu.org. ##
3546 ## ------------------------------------ ##
3549 sed "s/^/$as_me: WARNING: /" >&2
3552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3560 ## ------------------------------------ ##
3561 ## Report this to bug-autoconf@gnu.org. ##
3562 ## ------------------------------------ ##
3565 sed "s/^/$as_me: WARNING: /" >&2
3568 echo "$as_me:$LINENO: checking for $ac_header" >&5
3569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 eval "$as_ac_Header=$ac_header_preproc"
3575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3580 cat >>confdefs.h <<_ACEOF
3581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3589 if test "x$U" != "x"; then
3590 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3591 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3592 { (exit 1); exit 1; }; }
3594 echo "$as_me:$LINENO: checking for inline" >&5
3595 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3596 if test "${ac_cv_c_inline+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3600 for ac_kw in inline __inline__ __inline; do
3601 cat >conftest.$ac_ext <<_ACEOF
3602 #line $LINENO "configure"
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h. */
3610 static $ac_kw foo_t static_foo () {return 0; }
3611 $ac_kw foo_t foo () {return 0; }
3615 rm -f conftest.$ac_objext
3616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3617 (eval $ac_compile) 2>&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try='test -s conftest.$ac_objext'
3622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; }; then
3627 ac_cv_c_inline=$ac_kw; break
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3633 rm -f conftest.$ac_objext conftest.$ac_ext
3637 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3638 echo "${ECHO_T}$ac_cv_c_inline" >&6
3639 case $ac_cv_c_inline in
3642 cat >>confdefs.h <<\_ACEOF
3646 *) cat >>confdefs.h <<_ACEOF
3647 #define inline $ac_cv_c_inline
3652 # Find a good install program. We prefer a C program (faster),
3653 # so one script is as good as another. But avoid the broken or
3654 # incompatible versions:
3655 # SysV /etc/install, /usr/sbin/install
3656 # SunOS /usr/etc/install
3657 # IRIX /sbin/install
3659 # AmigaOS /C/install, which installs bootblocks on floppy discs
3660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3663 # ./install, which can be erroneously created by make from ./install.sh.
3664 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3665 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3666 if test -z "$INSTALL"; then
3667 if test "${ac_cv_path_install+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 test -z "$as_dir" && as_dir=.
3675 # Account for people who put trailing slashes in PATH elements.
3677 ./ | .// | /cC/* | \
3678 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3681 # OSF1 and SCO ODT 3.0 have their own names for install.
3682 # Don't use installbsd from OSF since it installs stuff as root
3684 for ac_prog in ginstall scoinst install; do
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3687 if test $ac_prog = install &&
3688 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3689 # AIX install. It has an incompatible calling convention.
3691 elif test $ac_prog = install &&
3692 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3693 # program-specific install script used by HP pwplus--don't use.
3696 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3708 if test "${ac_cv_path_install+set}" = set; then
3709 INSTALL=$ac_cv_path_install
3711 # As a last resort, use the slow shell script. We don't cache a
3712 # path for INSTALL within a source directory, because that will
3713 # break other packages using the cache if that directory is
3714 # removed, or if the path is relative.
3715 INSTALL=$ac_install_sh
3718 echo "$as_me:$LINENO: result: $INSTALL" >&5
3719 echo "${ECHO_T}$INSTALL" >&6
3721 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3722 # It thinks the first close brace ends the variable substitution.
3723 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3725 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3727 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3729 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3730 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3731 if test "${ac_cv_header_stdc+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 cat >conftest.$ac_ext <<_ACEOF
3735 #line $LINENO "configure"
3738 cat confdefs.h >>conftest.$ac_ext
3739 cat >>conftest.$ac_ext <<_ACEOF
3740 /* end confdefs.h. */
3754 rm -f conftest.$ac_objext
3755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3756 (eval $ac_compile) 2>&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } &&
3760 { ac_try='test -s conftest.$ac_objext'
3761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; }; then
3766 ac_cv_header_stdc=yes
3768 echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3771 ac_cv_header_stdc=no
3773 rm -f conftest.$ac_objext conftest.$ac_ext
3775 if test $ac_cv_header_stdc = yes; then
3776 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3777 cat >conftest.$ac_ext <<_ACEOF
3778 #line $LINENO "configure"
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3788 $EGREP "memchr" >/dev/null 2>&1; then
3791 ac_cv_header_stdc=no
3797 if test $ac_cv_header_stdc = yes; then
3798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3799 cat >conftest.$ac_ext <<_ACEOF
3800 #line $LINENO "configure"
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3810 $EGREP "free" >/dev/null 2>&1; then
3813 ac_cv_header_stdc=no
3819 if test $ac_cv_header_stdc = yes; then
3820 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3821 if test "$cross_compiling" = yes; then
3824 cat >conftest.$ac_ext <<_ACEOF
3825 #line $LINENO "configure"
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3832 #if ((' ' & 0x0FF) == 0x020)
3833 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3834 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3836 # define ISLOWER(c) \
3837 (('a' <= (c) && (c) <= 'i') \
3838 || ('j' <= (c) && (c) <= 'r') \
3839 || ('s' <= (c) && (c) <= 'z'))
3840 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3843 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3848 for (i = 0; i < 256; i++)
3849 if (XOR (islower (i), ISLOWER (i))
3850 || toupper (i) != TOUPPER (i))
3855 rm -f conftest$ac_exeext
3856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3857 (eval $ac_link) 2>&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3868 echo "$as_me: program exited with status $ac_status" >&5
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3873 ac_cv_header_stdc=no
3875 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3879 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3880 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3881 if test $ac_cv_header_stdc = yes; then
3883 cat >>confdefs.h <<\_ACEOF
3884 #define STDC_HEADERS 1
3894 for ac_header in unistd.h locale.h termios.h linux/termios.h sys/ioctl.h
3896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3898 echo "$as_me:$LINENO: checking for $ac_header" >&5
3899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3906 # Is the header compilable?
3907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3909 cat >conftest.$ac_ext <<_ACEOF
3910 #line $LINENO "configure"
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3916 $ac_includes_default
3917 #include <$ac_header>
3919 rm -f conftest.$ac_objext
3920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3921 (eval $ac_compile) 2>&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); } &&
3925 { ac_try='test -s conftest.$ac_objext'
3926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); }; }; then
3931 ac_header_compiler=yes
3933 echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3936 ac_header_compiler=no
3938 rm -f conftest.$ac_objext conftest.$ac_ext
3939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3940 echo "${ECHO_T}$ac_header_compiler" >&6
3942 # Is the header present?
3943 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3945 cat >conftest.$ac_ext <<_ACEOF
3946 #line $LINENO "configure"
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h. */
3952 #include <$ac_header>
3954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3957 grep -v '^ *+' conftest.er1 >conftest.err
3959 cat conftest.err >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } >/dev/null; then
3962 if test -s conftest.err; then
3963 ac_cpp_err=$ac_c_preproc_warn_flag
3970 if test -z "$ac_cpp_err"; then
3971 ac_header_preproc=yes
3973 echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3976 ac_header_preproc=no
3978 rm -f conftest.err conftest.$ac_ext
3979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3980 echo "${ECHO_T}$ac_header_preproc" >&6
3982 # So? What about this header?
3983 case $ac_header_compiler:$ac_header_preproc in
3985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3991 ## ------------------------------------ ##
3992 ## Report this to bug-autoconf@gnu.org. ##
3993 ## ------------------------------------ ##
3996 sed "s/^/$as_me: WARNING: /" >&2
3999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4007 ## ------------------------------------ ##
4008 ## Report this to bug-autoconf@gnu.org. ##
4009 ## ------------------------------------ ##
4012 sed "s/^/$as_me: WARNING: /" >&2
4015 echo "$as_me:$LINENO: checking for $ac_header" >&5
4016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 eval "$as_ac_Header=$ac_header_preproc"
4022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4027 cat >>confdefs.h <<_ACEOF
4028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4035 if test "${ac_cv_header_stdarg_h+set}" = set; then
4036 echo "$as_me:$LINENO: checking for stdarg.h" >&5
4037 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
4038 if test "${ac_cv_header_stdarg_h+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
4042 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
4044 # Is the header compilable?
4045 echo "$as_me:$LINENO: checking stdarg.h usability" >&5
4046 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
4047 cat >conftest.$ac_ext <<_ACEOF
4048 #line $LINENO "configure"
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4054 $ac_includes_default
4057 rm -f conftest.$ac_objext
4058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4059 (eval $ac_compile) 2>&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } &&
4063 { ac_try='test -s conftest.$ac_objext'
4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; }; then
4069 ac_header_compiler=yes
4071 echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4074 ac_header_compiler=no
4076 rm -f conftest.$ac_objext conftest.$ac_ext
4077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4078 echo "${ECHO_T}$ac_header_compiler" >&6
4080 # Is the header present?
4081 echo "$as_me:$LINENO: checking stdarg.h presence" >&5
4082 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
4083 cat >conftest.$ac_ext <<_ACEOF
4084 #line $LINENO "configure"
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4095 grep -v '^ *+' conftest.er1 >conftest.err
4097 cat conftest.err >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } >/dev/null; then
4100 if test -s conftest.err; then
4101 ac_cpp_err=$ac_c_preproc_warn_flag
4108 if test -z "$ac_cpp_err"; then
4109 ac_header_preproc=yes
4111 echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4114 ac_header_preproc=no
4116 rm -f conftest.err conftest.$ac_ext
4117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4118 echo "${ECHO_T}$ac_header_preproc" >&6
4120 # So? What about this header?
4121 case $ac_header_compiler:$ac_header_preproc in
4123 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
4124 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4125 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
4126 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
4129 ## ------------------------------------ ##
4130 ## Report this to bug-autoconf@gnu.org. ##
4131 ## ------------------------------------ ##
4134 sed "s/^/$as_me: WARNING: /" >&2
4137 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
4138 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
4139 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
4140 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
4141 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
4142 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
4145 ## ------------------------------------ ##
4146 ## Report this to bug-autoconf@gnu.org. ##
4147 ## ------------------------------------ ##
4150 sed "s/^/$as_me: WARNING: /" >&2
4153 echo "$as_me:$LINENO: checking for stdarg.h" >&5
4154 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
4155 if test "${ac_cv_header_stdarg_h+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 ac_cv_header_stdarg_h=$ac_header_preproc
4160 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
4161 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
4164 if test $ac_cv_header_stdarg_h = yes; then
4165 cat >>confdefs.h <<\_ACEOF
4166 #define HAVE_STDARG_H 1
4170 { { echo "$as_me:$LINENO: error: *** stdarg.h is missing on your system ***" >&5
4171 echo "$as_me: error: *** stdarg.h is missing on your system ***" >&2;}
4172 { (exit 1); exit 1; }; }
4176 echo "$as_me:$LINENO: checking for working strcoll" >&5
4177 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
4178 if test "${ac_cv_func_strcoll_works+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 if test "$cross_compiling" = yes; then
4182 ac_cv_func_strcoll_works=no
4184 cat >conftest.$ac_ext <<_ACEOF
4185 #line $LINENO "configure"
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4191 $ac_includes_default
4195 exit (strcoll ("abc", "def") >= 0 ||
4196 strcoll ("ABC", "DEF") >= 0 ||
4197 strcoll ("123", "456") >= 0)
4202 rm -f conftest$ac_exeext
4203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4204 (eval $ac_link) 2>&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
4213 ac_cv_func_strcoll_works=yes
4215 echo "$as_me: program exited with status $ac_status" >&5
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4220 ac_cv_func_strcoll_works=no
4222 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4225 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
4226 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
4227 if test $ac_cv_func_strcoll_works = yes; then
4229 cat >>confdefs.h <<\_ACEOF
4230 #define HAVE_STRCOLL 1
4236 for ac_func in setlocale
4238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4239 echo "$as_me:$LINENO: checking for $ac_func" >&5
4240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4241 if eval "test \"\${$as_ac_var+set}\" = set"; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 cat >conftest.$ac_ext <<_ACEOF
4245 #line $LINENO "configure"
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4251 /* System header to define __stub macros and hopefully few prototypes,
4252 which can conflict with char $ac_func (); below.
4253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4254 <limits.h> exists even on freestanding compilers. */
4256 # include <limits.h>
4258 # include <assert.h>
4260 /* Override any gcc2 internal prototype to avoid an error. */
4265 /* We use char because int might match the return type of a gcc2
4266 builtin and then its argument prototype would still apply. */
4268 /* The GNU C library defines this for functions which it implements
4269 to always fail with ENOSYS. Some functions are actually named
4270 something starting with __ and the normal name is an alias. */
4271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4274 char (*f) () = $ac_func;
4283 return f != $ac_func;
4288 rm -f conftest.$ac_objext conftest$ac_exeext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4290 (eval $ac_link) 2>&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } &&
4294 { ac_try='test -s conftest$ac_exeext'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4300 eval "$as_ac_var=yes"
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4305 eval "$as_ac_var=no"
4307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4311 if test `eval echo '${'$as_ac_var'}'` = yes; then
4312 cat >>confdefs.h <<_ACEOF
4313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4321 if test "${ac_cv_header_wchar_h+set}" = set; then
4322 echo "$as_me:$LINENO: checking for wchar.h" >&5
4323 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
4324 if test "${ac_cv_header_wchar_h+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
4328 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
4330 # Is the header compilable?
4331 echo "$as_me:$LINENO: checking wchar.h usability" >&5
4332 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
4333 cat >conftest.$ac_ext <<_ACEOF
4334 #line $LINENO "configure"
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 $ac_includes_default
4343 rm -f conftest.$ac_objext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4345 (eval $ac_compile) 2>&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } &&
4349 { ac_try='test -s conftest.$ac_objext'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4355 ac_header_compiler=yes
4357 echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4360 ac_header_compiler=no
4362 rm -f conftest.$ac_objext conftest.$ac_ext
4363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4364 echo "${ECHO_T}$ac_header_compiler" >&6
4366 # Is the header present?
4367 echo "$as_me:$LINENO: checking wchar.h presence" >&5
4368 echo $ECHO_N "checking wchar.h presence... $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. */
4378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4381 grep -v '^ *+' conftest.er1 >conftest.err
4383 cat conftest.err >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } >/dev/null; then
4386 if test -s conftest.err; then
4387 ac_cpp_err=$ac_c_preproc_warn_flag
4394 if test -z "$ac_cpp_err"; then
4395 ac_header_preproc=yes
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4400 ac_header_preproc=no
4402 rm -f conftest.err conftest.$ac_ext
4403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4404 echo "${ECHO_T}$ac_header_preproc" >&6
4406 # So? What about this header?
4407 case $ac_header_compiler:$ac_header_preproc in
4409 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
4410 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4411 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
4412 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
4415 ## ------------------------------------ ##
4416 ## Report this to bug-autoconf@gnu.org. ##
4417 ## ------------------------------------ ##
4420 sed "s/^/$as_me: WARNING: /" >&2
4423 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
4424 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
4425 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
4426 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
4427 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
4428 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
4431 ## ------------------------------------ ##
4432 ## Report this to bug-autoconf@gnu.org. ##
4433 ## ------------------------------------ ##
4436 sed "s/^/$as_me: WARNING: /" >&2
4439 echo "$as_me:$LINENO: checking for wchar.h" >&5
4440 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
4441 if test "${ac_cv_header_wchar_h+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 ac_cv_header_wchar_h=$ac_header_preproc
4446 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
4447 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
4450 if test $ac_cv_header_wchar_h = yes; then
4459 for ac_func in mbtowc wcwidth
4461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4462 echo "$as_me:$LINENO: checking for $ac_func" >&5
4463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4464 if eval "test \"\${$as_ac_var+set}\" = set"; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 cat >conftest.$ac_ext <<_ACEOF
4468 #line $LINENO "configure"
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4474 /* System header to define __stub macros and hopefully few prototypes,
4475 which can conflict with char $ac_func (); below.
4476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4477 <limits.h> exists even on freestanding compilers. */
4479 # include <limits.h>
4481 # include <assert.h>
4483 /* Override any gcc2 internal prototype to avoid an error. */
4488 /* We use char because int might match the return type of a gcc2
4489 builtin and then its argument prototype would still apply. */
4491 /* The GNU C library defines this for functions which it implements
4492 to always fail with ENOSYS. Some functions are actually named
4493 something starting with __ and the normal name is an alias. */
4494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4497 char (*f) () = $ac_func;
4506 return f != $ac_func;
4511 rm -f conftest.$ac_objext conftest$ac_exeext
4512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4513 (eval $ac_link) 2>&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } &&
4517 { ac_try='test -s conftest$ac_exeext'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; }; then
4523 eval "$as_ac_var=yes"
4525 echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4528 eval "$as_ac_var=no"
4530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4534 if test `eval echo '${'$as_ac_var'}'` = yes; then
4535 cat >>confdefs.h <<_ACEOF
4536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4544 echo "$as_me:$LINENO: checking for wchar_t" >&5
4545 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4546 if test "${ac_cv_type_wchar_t+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 cat >conftest.$ac_ext <<_ACEOF
4550 #line $LINENO "configure"
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4556 $ac_includes_default
4562 if (sizeof (wchar_t))
4568 rm -f conftest.$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570 (eval $ac_compile) 2>&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } &&
4574 { ac_try='test -s conftest.$ac_objext'
4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; }; then
4580 ac_cv_type_wchar_t=yes
4582 echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4585 ac_cv_type_wchar_t=no
4587 rm -f conftest.$ac_objext conftest.$ac_ext
4589 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
4590 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
4591 if test $ac_cv_type_wchar_t = yes; then
4598 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
4599 ac_widec_possible=yes
4601 ac_widec_possible=no
4604 # Check whether --enable-widec or --disable-widec was given.
4605 if test "${enable_widec+set}" = set; then
4606 enableval="$enable_widec"
4607 case "${enableval}" in
4608 yes) ac_widec_support=true ;;
4609 no) ac_widec_support=false ;;
4610 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-widec" >&5
4611 echo "$as_me: error: bad value ${enableval} for --enable-widec" >&2;}
4612 { (exit 1); exit 1; }; } ;;
4615 ac_widec_support=false
4618 if test x$ac_widec_support = xtrue -a x$ac_widec_possible != xyes; then
4619 { { echo "$as_me:$LINENO: error: Wide character support is not possible due to missing wide character functions or wchar.h" >&5
4620 echo "$as_me: error: Wide character support is not possible due to missing wide character functions or wchar.h" >&2;}
4621 { (exit 1); exit 1; }; }
4625 abook_cv_curses=/usr
4627 # Check whether --with-curses or --without-curses was given.
4628 if test "${with_curses+set}" = set; then
4629 withval="$with_curses"
4630 if test $withval != yes; then
4631 abook_cv_curses=$withval
4633 if test x$abook_cv_curses != x/usr; then
4634 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
4635 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
4639 if test x$ac_widec_support = xtrue; then
4640 echo "$as_me:$LINENO: checking for initscr in -lncursesw" >&5
4641 echo $ECHO_N "checking for initscr in -lncursesw... $ECHO_C" >&6
4642 if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 ac_check_lib_save_LIBS=$LIBS
4646 LIBS="-lncursesw $LIBS"
4647 cat >conftest.$ac_ext <<_ACEOF
4648 #line $LINENO "configure"
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4655 /* Override any gcc2 internal prototype to avoid an error. */
4659 /* We use char because int might match the return type of a gcc2
4660 builtin and then its argument prototype would still apply. */
4670 rm -f conftest.$ac_objext conftest$ac_exeext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4672 (eval $ac_link) 2>&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try='test -s conftest$ac_exeext'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4682 ac_cv_lib_ncursesw_initscr=yes
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4687 ac_cv_lib_ncursesw_initscr=no
4689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4690 LIBS=$ac_check_lib_save_LIBS
4692 echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_initscr" >&5
4693 echo "${ECHO_T}$ac_cv_lib_ncursesw_initscr" >&6
4694 if test $ac_cv_lib_ncursesw_initscr = yes; then
4695 LIBS="$LIBS -lncursesw"
4696 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
4697 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
4700 for ac_header in ncurses.h
4702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4704 echo "$as_me:$LINENO: checking for $ac_header" >&5
4705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4712 # Is the header compilable?
4713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4715 cat >conftest.$ac_ext <<_ACEOF
4716 #line $LINENO "configure"
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4722 $ac_includes_default
4723 #include <$ac_header>
4725 rm -f conftest.$ac_objext
4726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4727 (eval $ac_compile) 2>&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } &&
4731 { ac_try='test -s conftest.$ac_objext'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; }; then
4737 ac_header_compiler=yes
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4742 ac_header_compiler=no
4744 rm -f conftest.$ac_objext conftest.$ac_ext
4745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4746 echo "${ECHO_T}$ac_header_compiler" >&6
4748 # Is the header present?
4749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4751 cat >conftest.$ac_ext <<_ACEOF
4752 #line $LINENO "configure"
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4758 #include <$ac_header>
4760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4763 grep -v '^ *+' conftest.er1 >conftest.err
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } >/dev/null; then
4768 if test -s conftest.err; then
4769 ac_cpp_err=$ac_c_preproc_warn_flag
4776 if test -z "$ac_cpp_err"; then
4777 ac_header_preproc=yes
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4782 ac_header_preproc=no
4784 rm -f conftest.err conftest.$ac_ext
4785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4786 echo "${ECHO_T}$ac_header_preproc" >&6
4788 # So? What about this header?
4789 case $ac_header_compiler:$ac_header_preproc in
4791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4797 ## ------------------------------------ ##
4798 ## Report this to bug-autoconf@gnu.org. ##
4799 ## ------------------------------------ ##
4802 sed "s/^/$as_me: WARNING: /" >&2
4805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4808 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4813 ## ------------------------------------ ##
4814 ## Report this to bug-autoconf@gnu.org. ##
4815 ## ------------------------------------ ##
4818 sed "s/^/$as_me: WARNING: /" >&2
4821 echo "$as_me:$LINENO: checking for $ac_header" >&5
4822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 eval "$as_ac_Header=$ac_header_preproc"
4828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4833 cat >>confdefs.h <<_ACEOF
4834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4843 { { echo "$as_me:$LINENO: error: \"Wide character support is not possible due to missing ncursesw library. Please install it or disable wide character support\"" >&5
4844 echo "$as_me: error: \"Wide character support is not possible due to missing ncursesw library. Please install it or disable wide character support\"" >&2;}
4845 { (exit 1); exit 1; }; }
4849 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
4850 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
4851 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4854 ac_check_lib_save_LIBS=$LIBS
4855 LIBS="-lncurses $LIBS"
4856 cat >conftest.$ac_ext <<_ACEOF
4857 #line $LINENO "configure"
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h. */
4864 /* Override any gcc2 internal prototype to avoid an error. */
4868 /* We use char because int might match the return type of a gcc2
4869 builtin and then its argument prototype would still apply. */
4879 rm -f conftest.$ac_objext conftest$ac_exeext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4881 (eval $ac_link) 2>&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } &&
4885 { ac_try='test -s conftest$ac_exeext'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; }; then
4891 ac_cv_lib_ncurses_initscr=yes
4893 echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4896 ac_cv_lib_ncurses_initscr=no
4898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4899 LIBS=$ac_check_lib_save_LIBS
4901 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
4902 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
4903 if test $ac_cv_lib_ncurses_initscr = yes; then
4904 LIBS="$LIBS -lncurses"
4905 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
4906 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
4909 for ac_header in ncurses.h
4911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4913 echo "$as_me:$LINENO: checking for $ac_header" >&5
4914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4921 # Is the header compilable?
4922 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4924 cat >conftest.$ac_ext <<_ACEOF
4925 #line $LINENO "configure"
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4931 $ac_includes_default
4932 #include <$ac_header>
4934 rm -f conftest.$ac_objext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } &&
4940 { ac_try='test -s conftest.$ac_objext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4946 ac_header_compiler=yes
4948 echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.$ac_ext >&5
4951 ac_header_compiler=no
4953 rm -f conftest.$ac_objext conftest.$ac_ext
4954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4955 echo "${ECHO_T}$ac_header_compiler" >&6
4957 # Is the header present?
4958 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4960 cat >conftest.$ac_ext <<_ACEOF
4961 #line $LINENO "configure"
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h. */
4967 #include <$ac_header>
4969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4972 grep -v '^ *+' conftest.er1 >conftest.err
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } >/dev/null; then
4977 if test -s conftest.err; then
4978 ac_cpp_err=$ac_c_preproc_warn_flag
4985 if test -z "$ac_cpp_err"; then
4986 ac_header_preproc=yes
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4991 ac_header_preproc=no
4993 rm -f conftest.err conftest.$ac_ext
4994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4995 echo "${ECHO_T}$ac_header_preproc" >&6
4997 # So? What about this header?
4998 case $ac_header_compiler:$ac_header_preproc in
5000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5006 ## ------------------------------------ ##
5007 ## Report this to bug-autoconf@gnu.org. ##
5008 ## ------------------------------------ ##
5011 sed "s/^/$as_me: WARNING: /" >&2
5014 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5015 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5016 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5017 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5022 ## ------------------------------------ ##
5023 ## Report this to bug-autoconf@gnu.org. ##
5024 ## ------------------------------------ ##
5027 sed "s/^/$as_me: WARNING: /" >&2
5030 echo "$as_me:$LINENO: checking for $ac_header" >&5
5031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 eval "$as_ac_Header=$ac_header_preproc"
5037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5042 cat >>confdefs.h <<_ACEOF
5043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5052 echo "$as_me:$LINENO: checking for initscr" >&5
5053 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5054 if test "${ac_cv_func_initscr+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 cat >conftest.$ac_ext <<_ACEOF
5058 #line $LINENO "configure"
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5064 /* System header to define __stub macros and hopefully few prototypes,
5065 which can conflict with char initscr (); below.
5066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5067 <limits.h> exists even on freestanding compilers. */
5069 # include <limits.h>
5071 # include <assert.h>
5073 /* Override any gcc2 internal prototype to avoid an error. */
5078 /* We use char because int might match the return type of a gcc2
5079 builtin and then its argument prototype would still apply. */
5081 /* The GNU C library defines this for functions which it implements
5082 to always fail with ENOSYS. Some functions are actually named
5083 something starting with __ and the normal name is an alias. */
5084 #if defined (__stub_initscr) || defined (__stub___initscr)
5087 char (*f) () = initscr;
5096 return f != initscr;
5101 rm -f conftest.$ac_objext conftest$ac_exeext
5102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5103 (eval $ac_link) 2>&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } &&
5107 { ac_try='test -s conftest$ac_exeext'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
5113 ac_cv_func_initscr=yes
5115 echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5118 ac_cv_func_initscr=no
5120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5122 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
5123 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5124 if test $ac_cv_func_initscr = yes; then
5128 case $host_os in #(vi
5130 echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
5131 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5132 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 ac_check_lib_save_LIBS=$LIBS
5136 LIBS="-lmytinfo $LIBS"
5137 cat >conftest.$ac_ext <<_ACEOF
5138 #line $LINENO "configure"
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5145 /* Override any gcc2 internal prototype to avoid an error. */
5149 /* We use char because int might match the return type of a gcc2
5150 builtin and then its argument prototype would still apply. */
5160 rm -f conftest.$ac_objext conftest$ac_exeext
5161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5162 (eval $ac_link) 2>&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } &&
5166 { ac_try='test -s conftest$ac_exeext'
5167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; }; then
5172 ac_cv_lib_mytinfo_tgoto=yes
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5177 ac_cv_lib_mytinfo_tgoto=no
5179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5180 LIBS=$ac_check_lib_save_LIBS
5182 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
5183 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5184 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5185 LIBS="-lmytinfo $LIBS"
5190 echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
5191 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5192 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 ac_check_lib_save_LIBS=$LIBS
5196 LIBS="-lcur_colr $LIBS"
5197 cat >conftest.$ac_ext <<_ACEOF
5198 #line $LINENO "configure"
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5205 /* Override any gcc2 internal prototype to avoid an error. */
5209 /* We use char because int might match the return type of a gcc2
5210 builtin and then its argument prototype would still apply. */
5220 rm -f conftest.$ac_objext conftest$ac_exeext
5221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5222 (eval $ac_link) 2>&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } &&
5226 { ac_try='test -s conftest$ac_exeext'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; }; then
5232 ac_cv_lib_cur_colr_initscr=yes
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5237 ac_cv_lib_cur_colr_initscr=no
5239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5240 LIBS=$ac_check_lib_save_LIBS
5242 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
5243 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5244 if test $ac_cv_lib_cur_colr_initscr = yes; then
5246 LIBS="-lcur_colr $LIBS"
5247 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
5248 ac_cv_func_initscr=yes
5252 echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
5253 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5254 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 ac_check_lib_save_LIBS=$LIBS
5258 LIBS="-lHcurses $LIBS"
5259 cat >conftest.$ac_ext <<_ACEOF
5260 #line $LINENO "configure"
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5267 /* Override any gcc2 internal prototype to avoid an error. */
5271 /* We use char because int might match the return type of a gcc2
5272 builtin and then its argument prototype would still apply. */
5282 rm -f conftest.$ac_objext conftest$ac_exeext
5283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5284 (eval $ac_link) 2>&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } &&
5288 { ac_try='test -s conftest$ac_exeext'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5294 ac_cv_lib_Hcurses_initscr=yes
5296 echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5299 ac_cv_lib_Hcurses_initscr=no
5301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5302 LIBS=$ac_check_lib_save_LIBS
5304 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
5305 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5306 if test $ac_cv_lib_Hcurses_initscr = yes; then
5308 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5309 LIBS="-lHcurses $LIBS"
5310 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
5311 ac_cv_func_initscr=yes
5318 linux*) # Suse Linux does not follow /usr/lib convention
5323 if test ".$With5lib" != ".no" ; then
5324 if test -d /usr/5lib ; then
5326 CPPFLAGS="$CPPFLAGS -I/usr/5include"
5327 LIBS="$LIBS -L/usr/5lib"
5331 if test ".$ac_cv_func_initscr" != .yes ; then
5332 cf_save_LIBS="$LIBS"
5336 # Check for library containing tgoto. Do this before curses library
5337 # because it may be needed to link the test-case for initscr.
5338 echo "$as_me:$LINENO: checking for tgoto" >&5
5339 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5340 if test "${ac_cv_func_tgoto+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 cat >conftest.$ac_ext <<_ACEOF
5344 #line $LINENO "configure"
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5350 /* System header to define __stub macros and hopefully few prototypes,
5351 which can conflict with char tgoto (); below.
5352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5353 <limits.h> exists even on freestanding compilers. */
5355 # include <limits.h>
5357 # include <assert.h>
5359 /* Override any gcc2 internal prototype to avoid an error. */
5364 /* We use char because int might match the return type of a gcc2
5365 builtin and then its argument prototype would still apply. */
5367 /* The GNU C library defines this for functions which it implements
5368 to always fail with ENOSYS. Some functions are actually named
5369 something starting with __ and the normal name is an alias. */
5370 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5373 char (*f) () = tgoto;
5387 rm -f conftest.$ac_objext conftest$ac_exeext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5389 (eval $ac_link) 2>&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } &&
5393 { ac_try='test -s conftest$ac_exeext'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; }; then
5399 ac_cv_func_tgoto=yes
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5408 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
5409 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5410 if test $ac_cv_func_tgoto = yes; then
5411 cf_term_lib=predefined
5414 for cf_term_lib in termcap termlib unknown
5416 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5417 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
5418 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5419 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 ac_check_lib_save_LIBS=$LIBS
5423 LIBS="-l$cf_term_lib $LIBS"
5424 cat >conftest.$ac_ext <<_ACEOF
5425 #line $LINENO "configure"
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5432 /* Override any gcc2 internal prototype to avoid an error. */
5436 /* We use char because int might match the return type of a gcc2
5437 builtin and then its argument prototype would still apply. */
5447 rm -f conftest.$ac_objext conftest$ac_exeext
5448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5449 (eval $ac_link) 2>&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } &&
5453 { ac_try='test -s conftest$ac_exeext'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; }; then
5459 eval "$as_ac_Lib=yes"
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5464 eval "$as_ac_Lib=no"
5466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5467 LIBS=$ac_check_lib_save_LIBS
5469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5470 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5471 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5480 # Check for library containing initscr
5481 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5482 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
5484 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5485 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
5486 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5487 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 ac_check_lib_save_LIBS=$LIBS
5491 LIBS="-l$cf_curs_lib $LIBS"
5492 cat >conftest.$ac_ext <<_ACEOF
5493 #line $LINENO "configure"
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5500 /* Override any gcc2 internal prototype to avoid an error. */
5504 /* We use char because int might match the return type of a gcc2
5505 builtin and then its argument prototype would still apply. */
5515 rm -f conftest.$ac_objext conftest$ac_exeext
5516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5517 (eval $ac_link) 2>&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try='test -s conftest$ac_exeext'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; }; then
5527 eval "$as_ac_Lib=yes"
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5532 eval "$as_ac_Lib=no"
5534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5535 LIBS=$ac_check_lib_save_LIBS
5537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5538 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5539 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5544 test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
5545 echo "$as_me: error: no curses library found" >&2;}
5546 { (exit 1); exit 1; }; }
5548 LIBS="-l$cf_curs_lib $cf_save_LIBS"
5549 if test "$cf_term_lib" = unknown ; then
5550 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
5551 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5552 cat >conftest.$ac_ext <<_ACEOF
5553 #line $LINENO "configure"
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5559 #include <${cf_cv_ncurses_header-curses.h}>
5568 rm -f conftest.$ac_objext conftest$ac_exeext
5569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5570 (eval $ac_link) 2>&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } &&
5574 { ac_try='test -s conftest$ac_exeext'
5575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }; }; then
5582 echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5588 echo "$as_me:$LINENO: result: $cf_result" >&5
5589 echo "${ECHO_T}$cf_result" >&6
5590 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
5591 echo "$as_me: error: Cannot link curses library" >&2;}
5592 { (exit 1); exit 1; }; }
5593 elif test "$cf_term_lib" != predefined ; then
5594 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5595 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5596 cat >conftest.$ac_ext <<_ACEOF
5597 #line $LINENO "configure"
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5603 #include <${cf_cv_ncurses_header-curses.h}>
5607 initscr(); tgoto((char *)0, 0, 0);
5612 rm -f conftest.$ac_objext conftest$ac_exeext
5613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5614 (eval $ac_link) 2>&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } &&
5618 { ac_try='test -s conftest$ac_exeext'
5619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; }; then
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5630 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5631 cat >conftest.$ac_ext <<_ACEOF
5632 #line $LINENO "configure"
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #include <${cf_cv_ncurses_header-curses.h}>
5647 rm -f conftest.$ac_objext conftest$ac_exeext
5648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5649 (eval $ac_link) 2>&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } &&
5653 { ac_try='test -s conftest$ac_exeext'
5654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); }; }; then
5661 echo "$as_me: failed program was:" >&5
5662 sed 's/^/| /' conftest.$ac_ext >&5
5666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5670 echo "$as_me:$LINENO: result: $cf_result" >&5
5671 echo "${ECHO_T}$cf_result" >&6
5684 abook_cv_readline=/usr
5686 # Check whether --with-readline or --without-readline was given.
5687 if test "${with_readline+set}" = set; then
5688 withval="$with_readline"
5689 if test $withval != yes; then
5690 abook_cv_readline=$withval
5692 if test x$abook_cv_readline != x/usr; then
5693 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
5694 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
5699 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
5700 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
5701 if test "${ac_cv_lib_readline+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 for readline_lib in readline edit editline; do
5707 for termcap_lib in "" termcap curses ncurses; do
5708 if test -z "$termcap_lib"; then
5709 TRY_LIB="-l$readline_lib"
5711 TRY_LIB="-l$readline_lib -l$termcap_lib"
5713 LIBS="$ORIG_LIBS $TRY_LIB"
5714 cat >conftest.$ac_ext <<_ACEOF
5715 #line $LINENO "configure"
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5722 /* Override any gcc2 internal prototype to avoid an error. */
5726 /* We use char because int might match the return type of a gcc2
5727 builtin and then its argument prototype would still apply. */
5737 rm -f conftest.$ac_objext conftest$ac_exeext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5739 (eval $ac_link) 2>&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } &&
5743 { ac_try='test -s conftest$ac_exeext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5749 ac_cv_lib_readline="$TRY_LIB"
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5756 if test -n "$ac_cv_lib_readline"; then
5760 if test -n "$ac_cv_lib_readline"; then
5764 if test -z "$ac_cv_lib_readline"; then
5765 ac_cv_lib_readline="no"
5770 echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
5771 echo "${ECHO_T}$ac_cv_lib_readline" >&6
5773 if test "$ac_cv_lib_readline" != "no"; then
5774 LIBS="$LIBS $ac_cv_lib_readline"
5776 cat >>confdefs.h <<\_ACEOF
5777 #define HAVE_LIBREADLINE 1
5782 for ac_header in readline.h readline/readline.h
5784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5786 echo "$as_me:$LINENO: checking for $ac_header" >&5
5787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5794 # Is the header compilable?
5795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5797 cat >conftest.$ac_ext <<_ACEOF
5798 #line $LINENO "configure"
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 $ac_includes_default
5805 #include <$ac_header>
5807 rm -f conftest.$ac_objext
5808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5809 (eval $ac_compile) 2>&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } &&
5813 { ac_try='test -s conftest.$ac_objext'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
5819 ac_header_compiler=yes
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5824 ac_header_compiler=no
5826 rm -f conftest.$ac_objext conftest.$ac_ext
5827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5828 echo "${ECHO_T}$ac_header_compiler" >&6
5830 # Is the header present?
5831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5833 cat >conftest.$ac_ext <<_ACEOF
5834 #line $LINENO "configure"
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5840 #include <$ac_header>
5842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5845 grep -v '^ *+' conftest.er1 >conftest.err
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } >/dev/null; then
5850 if test -s conftest.err; then
5851 ac_cpp_err=$ac_c_preproc_warn_flag
5858 if test -z "$ac_cpp_err"; then
5859 ac_header_preproc=yes
5861 echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5864 ac_header_preproc=no
5866 rm -f conftest.err conftest.$ac_ext
5867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5868 echo "${ECHO_T}$ac_header_preproc" >&6
5870 # So? What about this header?
5871 case $ac_header_compiler:$ac_header_preproc in
5873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5879 ## ------------------------------------ ##
5880 ## Report this to bug-autoconf@gnu.org. ##
5881 ## ------------------------------------ ##
5884 sed "s/^/$as_me: WARNING: /" >&2
5887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5895 ## ------------------------------------ ##
5896 ## Report this to bug-autoconf@gnu.org. ##
5897 ## ------------------------------------ ##
5900 sed "s/^/$as_me: WARNING: /" >&2
5903 echo "$as_me:$LINENO: checking for $ac_header" >&5
5904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 eval "$as_ac_Header=$ac_header_preproc"
5910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5915 cat >>confdefs.h <<_ACEOF
5916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5923 echo "$as_me:$LINENO: checking whether readline supports history" >&5
5924 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
5925 if test "${ac_cv_lib_readline_history+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 ac_cv_lib_readline_history="no"
5930 cat >conftest.$ac_ext <<_ACEOF
5931 #line $LINENO "configure"
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5938 /* Override any gcc2 internal prototype to avoid an error. */
5942 /* We use char because int might match the return type of a gcc2
5943 builtin and then its argument prototype would still apply. */
5944 char add_history ();
5953 rm -f conftest.$ac_objext conftest$ac_exeext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5955 (eval $ac_link) 2>&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
5959 { ac_try='test -s conftest$ac_exeext'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 ac_cv_lib_readline_history="yes"
5967 echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5974 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
5975 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6
5976 if test "$ac_cv_lib_readline_history" = "yes"; then
5978 cat >>confdefs.h <<\_ACEOF
5979 #define HAVE_READLINE_HISTORY 1
5984 for ac_header in history.h readline/history.h
5986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5988 echo "$as_me:$LINENO: checking for $ac_header" >&5
5989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5996 # Is the header compilable?
5997 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5999 cat >conftest.$ac_ext <<_ACEOF
6000 #line $LINENO "configure"
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h. */
6006 $ac_includes_default
6007 #include <$ac_header>
6009 rm -f conftest.$ac_objext
6010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6011 (eval $ac_compile) 2>&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } &&
6015 { ac_try='test -s conftest.$ac_objext'
6016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; }; then
6021 ac_header_compiler=yes
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6026 ac_header_compiler=no
6028 rm -f conftest.$ac_objext conftest.$ac_ext
6029 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6030 echo "${ECHO_T}$ac_header_compiler" >&6
6032 # Is the header present?
6033 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6035 cat >conftest.$ac_ext <<_ACEOF
6036 #line $LINENO "configure"
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 #include <$ac_header>
6044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6047 grep -v '^ *+' conftest.er1 >conftest.err
6049 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } >/dev/null; then
6052 if test -s conftest.err; then
6053 ac_cpp_err=$ac_c_preproc_warn_flag
6060 if test -z "$ac_cpp_err"; then
6061 ac_header_preproc=yes
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6066 ac_header_preproc=no
6068 rm -f conftest.err conftest.$ac_ext
6069 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6070 echo "${ECHO_T}$ac_header_preproc" >&6
6072 # So? What about this header?
6073 case $ac_header_compiler:$ac_header_preproc in
6075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6081 ## ------------------------------------ ##
6082 ## Report this to bug-autoconf@gnu.org. ##
6083 ## ------------------------------------ ##
6086 sed "s/^/$as_me: WARNING: /" >&2
6089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6092 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6097 ## ------------------------------------ ##
6098 ## Report this to bug-autoconf@gnu.org. ##
6099 ## ------------------------------------ ##
6102 sed "s/^/$as_me: WARNING: /" >&2
6105 echo "$as_me:$LINENO: checking for $ac_header" >&5
6106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 eval "$as_ac_Header=$ac_header_preproc"
6112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6117 cat >>confdefs.h <<_ACEOF
6118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6130 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
6131 { { echo "$as_me:$LINENO: error: *** readline library not found or it doesn't support history ***" >&5
6132 echo "$as_me: error: *** readline library not found or it doesn't support history ***" >&2;}
6133 { (exit 1); exit 1; }; }
6137 if test x$ac_widec_support = xtrue; then
6139 cat >>confdefs.h <<\_ACEOF
6140 #define HANDLE_MULTIBYTE 1
6146 for ac_func in resizeterm
6148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6149 echo "$as_me:$LINENO: checking for $ac_func" >&5
6150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6151 if eval "test \"\${$as_ac_var+set}\" = set"; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 cat >conftest.$ac_ext <<_ACEOF
6155 #line $LINENO "configure"
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6161 /* System header to define __stub macros and hopefully few prototypes,
6162 which can conflict with char $ac_func (); below.
6163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6164 <limits.h> exists even on freestanding compilers. */
6166 # include <limits.h>
6168 # include <assert.h>
6170 /* Override any gcc2 internal prototype to avoid an error. */
6175 /* We use char because int might match the return type of a gcc2
6176 builtin and then its argument prototype would still apply. */
6178 /* The GNU C library defines this for functions which it implements
6179 to always fail with ENOSYS. Some functions are actually named
6180 something starting with __ and the normal name is an alias. */
6181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6184 char (*f) () = $ac_func;
6193 return f != $ac_func;
6198 rm -f conftest.$ac_objext conftest$ac_exeext
6199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6200 (eval $ac_link) 2>&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } &&
6204 { ac_try='test -s conftest$ac_exeext'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; }; then
6210 eval "$as_ac_var=yes"
6212 echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6215 eval "$as_ac_var=no"
6217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6221 if test `eval echo '${'$as_ac_var'}'` = yes; then
6222 cat >>confdefs.h <<_ACEOF
6223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6230 echo "$as_me:$LINENO: checking for snprintf" >&5
6231 echo $ECHO_N "checking for snprintf... $ECHO_C" >&6
6232 if test "${ac_cv_func_snprintf+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 cat >conftest.$ac_ext <<_ACEOF
6236 #line $LINENO "configure"
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6242 /* System header to define __stub macros and hopefully few prototypes,
6243 which can conflict with char snprintf (); below.
6244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6245 <limits.h> exists even on freestanding compilers. */
6247 # include <limits.h>
6249 # include <assert.h>
6251 /* Override any gcc2 internal prototype to avoid an error. */
6256 /* We use char because int might match the return type of a gcc2
6257 builtin and then its argument prototype would still apply. */
6259 /* The GNU C library defines this for functions which it implements
6260 to always fail with ENOSYS. Some functions are actually named
6261 something starting with __ and the normal name is an alias. */
6262 #if defined (__stub_snprintf) || defined (__stub___snprintf)
6265 char (*f) () = snprintf;
6274 return f != snprintf;
6279 rm -f conftest.$ac_objext conftest$ac_exeext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6281 (eval $ac_link) 2>&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } &&
6285 { ac_try='test -s conftest$ac_exeext'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; }; then
6291 ac_cv_func_snprintf=yes
6293 echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6296 ac_cv_func_snprintf=no
6298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6300 echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
6301 echo "${ECHO_T}$ac_cv_func_snprintf" >&6
6302 if test $ac_cv_func_snprintf = yes; then
6303 cat >>confdefs.h <<\_ACEOF
6304 #define HAVE_SNPRINTF 1
6309 echo "$as_me:$LINENO: checking for vsnprintf" >&5
6310 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
6311 if test "${ac_cv_func_vsnprintf+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 cat >conftest.$ac_ext <<_ACEOF
6315 #line $LINENO "configure"
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h. */
6321 /* System header to define __stub macros and hopefully few prototypes,
6322 which can conflict with char vsnprintf (); below.
6323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6324 <limits.h> exists even on freestanding compilers. */
6326 # include <limits.h>
6328 # include <assert.h>
6330 /* Override any gcc2 internal prototype to avoid an error. */
6335 /* We use char because int might match the return type of a gcc2
6336 builtin and then its argument prototype would still apply. */
6338 /* The GNU C library defines this for functions which it implements
6339 to always fail with ENOSYS. Some functions are actually named
6340 something starting with __ and the normal name is an alias. */
6341 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
6344 char (*f) () = vsnprintf;
6353 return f != vsnprintf;
6358 rm -f conftest.$ac_objext conftest$ac_exeext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360 (eval $ac_link) 2>&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try='test -s conftest$ac_exeext'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6370 ac_cv_func_vsnprintf=yes
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6375 ac_cv_func_vsnprintf=no
6377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6379 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
6380 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
6381 if test $ac_cv_func_vsnprintf = yes; then
6382 cat >>confdefs.h <<\_ACEOF
6383 #define HAVE_VSNPRINTF 1
6389 # Check whether --enable-debug or --disable-debug was given.
6390 if test "${enable_debug+set}" = set; then
6391 enableval="$enable_debug"
6392 case "${enableval}" in
6395 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
6396 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
6397 { (exit 1); exit 1; }; } ;;
6403 if test x$debug = xtrue; then
6404 CPPFLAGS="-DDEBUG $CPPFLAGS"
6408 if test x$GCC = xyes; then
6409 CFLAGS="-Wall $CFLAGS"
6412 ac_config_files="$ac_config_files Makefile abook.spec"
6413 cat >confcache <<\_ACEOF
6414 # This file is a shell script that caches the results of configure
6415 # tests run on this system so they can be shared between configure
6416 # scripts and configure runs, see configure's option --config-cache.
6417 # It is not useful on other systems. If it contains results you don't
6418 # want to keep, you may remove or edit it.
6420 # config.status only pays attention to the cache file if you give it
6421 # the --recheck option to rerun configure.
6423 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6424 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6429 # The following way of writing the cache mishandles newlines in values,
6430 # but we know of no workaround that is simple, portable, and efficient.
6431 # So, don't put newlines in cache variables' values.
6432 # Ultrix sh set writes to stderr and can't be redirected directly,
6433 # and sets the high bit in the cache file unless we assign to the vars.
6436 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6438 # `set' does not quote correctly, so add quotes (double-quote
6439 # substitution turns \\\\ into \\, and sed turns \\ into \).
6442 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6445 # `set' quotes correctly as required by POSIX, so do not add quotes.
6447 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6454 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6456 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6458 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6459 if test -w $cache_file; then
6460 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6461 cat confcache >$cache_file
6463 echo "not updating unwritable cache $cache_file"
6468 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6469 # Let make expand exec_prefix.
6470 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6472 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6473 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6474 # trailing colons and then remove the whole line if VPATH becomes empty
6475 # (actually we leave an empty line to preserve line numbers).
6476 if test "x$srcdir" = x.; then
6477 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6478 s/:*\$(srcdir):*/:/;
6479 s/:*\${srcdir}:*/:/;
6481 s/^\([^=]*=[ ]*\):*/\1/;
6487 DEFS=-DHAVE_CONFIG_H
6491 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6492 # 1. Remove the extension, and $U if already installed.
6493 ac_i=`echo "$ac_i" |
6494 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6496 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6497 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6501 LTLIBOBJS=$ac_ltlibobjs
6504 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6505 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6506 Usually this means the macro was only invoked conditionally." >&5
6507 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6508 Usually this means the macro was only invoked conditionally." >&2;}
6509 { (exit 1); exit 1; }; }
6511 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6512 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6513 Usually this means the macro was only invoked conditionally." >&5
6514 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6515 Usually this means the macro was only invoked conditionally." >&2;}
6516 { (exit 1); exit 1; }; }
6519 : ${CONFIG_STATUS=./config.status}
6520 ac_clean_files_save=$ac_clean_files
6521 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6522 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6523 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6524 cat >$CONFIG_STATUS <<_ACEOF
6526 # Generated by $as_me.
6527 # Run this file to recreate the current configuration.
6528 # Compiler output produced by configure, useful for debugging
6529 # configure, is in config.log if it exists.
6534 SHELL=\${CONFIG_SHELL-$SHELL}
6537 cat >>$CONFIG_STATUS <<\_ACEOF
6538 ## --------------------- ##
6539 ## M4sh Initialization. ##
6540 ## --------------------- ##
6542 # Be Bourne compatible
6543 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6546 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6547 # is contrary to our usage. Disable this feature.
6548 alias -g '${1+"$@"}'='"$@"'
6549 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6553 # Support unset when possible.
6554 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6561 # Work around bugs in pre-3.0 UWIN ksh.
6562 $as_unset ENV MAIL MAILPATH
6569 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6570 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6571 LC_TELEPHONE LC_TIME
6573 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6574 eval $as_var=C; export $as_var
6580 # Required to use basename.
6581 if expr a : '\(a\)' >/dev/null 2>&1; then
6587 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6588 as_basename=basename
6594 # Name of the executable.
6595 as_me=`$as_basename "$0" ||
6596 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6597 X"$0" : 'X\(//\)$' \| \
6598 X"$0" : 'X\(/\)$' \| \
6599 . : '\(.\)' 2>/dev/null ||
6601 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6602 /^X\/\(\/\/\)$/{ s//\1/; q; }
6603 /^X\/\(\/\).*/{ s//\1/; q; }
6607 # PATH needs CR, and LINENO needs CR and PATH.
6608 # Avoid depending upon Character Ranges.
6609 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6610 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6611 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6612 as_cr_digits='0123456789'
6613 as_cr_alnum=$as_cr_Letters$as_cr_digits
6615 # The user is always right.
6616 if test "${PATH_SEPARATOR+set}" != set; then
6617 echo "#! /bin/sh" >conf$$.sh
6618 echo "exit 0" >>conf$$.sh
6620 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6631 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6632 test "x$as_lineno_1" != "x$as_lineno_2" &&
6633 test "x$as_lineno_3" = "x$as_lineno_2" || {
6634 # Find who we are. Look in the path if we contain no path at all
6637 *[\\/]* ) as_myself=$0 ;;
6638 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 test -z "$as_dir" && as_dir=.
6643 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6648 # We did not find ourselves, most probably we were run as `sh COMMAND'
6649 # in which case we are not to be found in the path.
6650 if test "x$as_myself" = x; then
6653 if test ! -f "$as_myself"; then
6654 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6655 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6656 { (exit 1); exit 1; }; }
6658 case $CONFIG_SHELL in
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6664 test -z "$as_dir" && as_dir=.
6665 for as_base in sh bash ksh sh5; do
6668 if ("$as_dir/$as_base" -c '
6671 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6672 test "x$as_lineno_1" != "x$as_lineno_2" &&
6673 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6674 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6675 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6676 CONFIG_SHELL=$as_dir/$as_base
6678 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6686 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6687 # uniformly replaced by the line number. The first 'sed' inserts a
6688 # line-number line before each line; the second 'sed' does the real
6689 # work. The second script uses 'N' to pair each line-number line
6690 # with the numbered line, and appends trailing '-' during
6691 # substitution so that $LINENO is not a special case at line end.
6692 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6693 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6694 sed '=' <$as_myself |
6699 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6702 s,^['$as_cr_digits']*\n,,
6704 chmod +x $as_me.lineno ||
6705 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6706 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6707 { (exit 1); exit 1; }; }
6709 # Don't try to exec as it changes $[0], causing all sort of problems
6710 # (the dirname of $[0] is not the place where we might find the
6711 # original and so on. Autoconf is especially sensible to this).
6713 # Exit status is that of the last command.
6718 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6719 *c*,-n*) ECHO_N= ECHO_C='
6721 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6722 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6725 if expr a : '\(a\)' >/dev/null 2>&1; then
6731 rm -f conf$$ conf$$.exe conf$$.file
6733 if ln -s conf$$.file conf$$ 2>/dev/null; then
6734 # We could just check for DJGPP; but this test a) works b) is more generic
6735 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6736 if test -f conf$$.exe; then
6737 # Don't use ln at all; we don't have any links
6742 elif ln conf$$.file conf$$ 2>/dev/null; then
6747 rm -f conf$$ conf$$.exe conf$$.file
6749 if mkdir -p . 2>/dev/null; then
6755 as_executable_p="test -f"
6757 # Sed expression to map a string onto a valid CPP name.
6758 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6760 # Sed expression to map a string onto a valid variable name.
6761 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6765 # We need space, tab and new line, in precisely that order.
6775 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6776 # report actual input values of CONFIG_FILES etc. instead of their
6777 # values after options handling. Logging --version etc. is OK.
6781 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6782 ## Running $as_me. ##
6787 This file was extended by $as_me, which was
6788 generated by GNU Autoconf 2.57. Invocation command line was
6790 CONFIG_FILES = $CONFIG_FILES
6791 CONFIG_HEADERS = $CONFIG_HEADERS
6792 CONFIG_LINKS = $CONFIG_LINKS
6793 CONFIG_COMMANDS = $CONFIG_COMMANDS
6797 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6801 # Files that config.status was made for.
6802 if test -n "$ac_config_files"; then
6803 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6806 if test -n "$ac_config_headers"; then
6807 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6810 if test -n "$ac_config_links"; then
6811 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6814 if test -n "$ac_config_commands"; then
6815 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6818 cat >>$CONFIG_STATUS <<\_ACEOF
6821 \`$as_me' instantiates files from templates according to the
6822 current configuration.
6824 Usage: $0 [OPTIONS] [FILE]...
6826 -h, --help print this help, then exit
6827 -V, --version print version number, then exit
6828 -q, --quiet do not print progress messages
6829 -d, --debug don't remove temporary files
6830 --recheck update $as_me by reconfiguring in the same conditions
6831 --file=FILE[:TEMPLATE]
6832 instantiate the configuration file FILE
6833 --header=FILE[:TEMPLATE]
6834 instantiate the configuration header FILE
6836 Configuration files:
6839 Configuration headers:
6842 Configuration commands:
6845 Report bugs to <bug-autoconf@gnu.org>."
6848 cat >>$CONFIG_STATUS <<_ACEOF
6851 configured by $0, generated by GNU Autoconf 2.57,
6852 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6854 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6855 Free Software Foundation, Inc.
6856 This config.status script is free software; the Free Software Foundation
6857 gives unlimited permission to copy, distribute and modify it."
6862 cat >>$CONFIG_STATUS <<\_ACEOF
6863 # If no file are specified by the user, then we need to provide default
6864 # value. By we need to know if files were specified by the user.
6870 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6871 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6879 *) # This is not an option, so the user has probably given explicit
6882 ac_need_defaults=false;;
6886 # Handling of the options.
6888 cat >>$CONFIG_STATUS <<\_ACEOF
6889 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6891 --version | --vers* | -V )
6892 echo "$ac_cs_version"; exit 0 ;;
6894 # Conflict between --help and --header
6895 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6896 Try \`$0 --help' for more information." >&5
6897 echo "$as_me: error: ambiguous option: $1
6898 Try \`$0 --help' for more information." >&2;}
6899 { (exit 1); exit 1; }; };;
6900 --help | --hel | -h )
6901 echo "$ac_cs_usage"; exit 0 ;;
6902 --debug | --d* | -d )
6904 --file | --fil | --fi | --f )
6906 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6907 ac_need_defaults=false;;
6908 --header | --heade | --head | --hea )
6910 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6911 ac_need_defaults=false;;
6912 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6913 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6917 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6918 Try \`$0 --help' for more information." >&5
6919 echo "$as_me: error: unrecognized option: $1
6920 Try \`$0 --help' for more information." >&2;}
6921 { (exit 1); exit 1; }; } ;;
6923 *) ac_config_targets="$ac_config_targets $1" ;;
6929 ac_configure_extra_args=
6931 if $ac_cs_silent; then
6933 ac_configure_extra_args="$ac_configure_extra_args --silent"
6937 cat >>$CONFIG_STATUS <<_ACEOF
6938 if \$ac_cs_recheck; then
6939 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6940 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6945 cat >>$CONFIG_STATUS <<_ACEOF
6947 # INIT-COMMANDS section.
6950 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6956 cat >>$CONFIG_STATUS <<\_ACEOF
6957 for ac_config_target in $ac_config_targets
6959 case "$ac_config_target" in
6960 # Handling of arguments.
6961 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6962 "abook.spec" ) CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
6963 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6964 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6965 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6966 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6967 { (exit 1); exit 1; }; };;
6971 # If the user did not use the arguments to specify the items to instantiate,
6972 # then the envvar interface is used. Set only those that are not.
6973 # We use the long form for the default assignment because of an extremely
6974 # bizarre bug on SunOS 4.1.3.
6975 if $ac_need_defaults; then
6976 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6977 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6978 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6981 # Have a temporary directory for convenience. Make it in the build tree
6982 # simply because there is no reason to put it here, and in addition,
6983 # creating and moving files from /tmp can sometimes cause problems.
6984 # Create a temporary directory, and hook for its removal unless debugging.
6987 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6988 trap '{ (exit 1); exit 1; }' 1 2 13 15
6991 # Create a (secure) tmp directory for tmp files.
6994 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6995 test -n "$tmp" && test -d "$tmp"
6998 tmp=./confstat$$-$RANDOM
6999 (umask 077 && mkdir $tmp)
7002 echo "$me: cannot create a temporary directory in ." >&2
7003 { (exit 1); exit 1; }
7008 cat >>$CONFIG_STATUS <<_ACEOF
7011 # CONFIG_FILES section.
7014 # No need to generate the scripts if there are no CONFIG_FILES.
7015 # This happens for instance when ./config.status config.h
7016 if test -n "\$CONFIG_FILES"; then
7017 # Protect against being on the right side of a sed subst in config.status.
7018 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7019 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7020 s,@SHELL@,$SHELL,;t t
7021 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7022 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7023 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7024 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7025 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7026 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7027 s,@exec_prefix@,$exec_prefix,;t t
7028 s,@prefix@,$prefix,;t t
7029 s,@program_transform_name@,$program_transform_name,;t t
7030 s,@bindir@,$bindir,;t t
7031 s,@sbindir@,$sbindir,;t t
7032 s,@libexecdir@,$libexecdir,;t t
7033 s,@datadir@,$datadir,;t t
7034 s,@sysconfdir@,$sysconfdir,;t t
7035 s,@sharedstatedir@,$sharedstatedir,;t t
7036 s,@localstatedir@,$localstatedir,;t t
7037 s,@libdir@,$libdir,;t t
7038 s,@includedir@,$includedir,;t t
7039 s,@oldincludedir@,$oldincludedir,;t t
7040 s,@infodir@,$infodir,;t t
7041 s,@mandir@,$mandir,;t t
7042 s,@build_alias@,$build_alias,;t t
7043 s,@host_alias@,$host_alias,;t t
7044 s,@target_alias@,$target_alias,;t t
7046 s,@ECHO_C@,$ECHO_C,;t t
7047 s,@ECHO_N@,$ECHO_N,;t t
7048 s,@ECHO_T@,$ECHO_T,;t t
7050 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7051 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7052 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7053 s,@CYGPATH_W@,$CYGPATH_W,;t t
7054 s,@PACKAGE@,$PACKAGE,;t t
7055 s,@VERSION@,$VERSION,;t t
7056 s,@ACLOCAL@,$ACLOCAL,;t t
7057 s,@AUTOCONF@,$AUTOCONF,;t t
7058 s,@AUTOMAKE@,$AUTOMAKE,;t t
7059 s,@AUTOHEADER@,$AUTOHEADER,;t t
7060 s,@MAKEINFO@,$MAKEINFO,;t t
7061 s,@AMTAR@,$AMTAR,;t t
7062 s,@install_sh@,$install_sh,;t t
7063 s,@STRIP@,$STRIP,;t t
7064 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7065 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7067 s,@SET_MAKE@,$SET_MAKE,;t t
7068 s,@am__leading_dot@,$am__leading_dot,;t t
7069 s,@build@,$build,;t t
7070 s,@build_cpu@,$build_cpu,;t t
7071 s,@build_vendor@,$build_vendor,;t t
7072 s,@build_os@,$build_os,;t t
7074 s,@host_cpu@,$host_cpu,;t t
7075 s,@host_vendor@,$host_vendor,;t t
7076 s,@host_os@,$host_os,;t t
7078 s,@CFLAGS@,$CFLAGS,;t t
7079 s,@LDFLAGS@,$LDFLAGS,;t t
7080 s,@CPPFLAGS@,$CPPFLAGS,;t t
7081 s,@ac_ct_CC@,$ac_ct_CC,;t t
7082 s,@EXEEXT@,$EXEEXT,;t t
7083 s,@OBJEXT@,$OBJEXT,;t t
7084 s,@DEPDIR@,$DEPDIR,;t t
7085 s,@am__include@,$am__include,;t t
7086 s,@am__quote@,$am__quote,;t t
7087 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7088 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7089 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7090 s,@CCDEPMODE@,$CCDEPMODE,;t t
7091 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7092 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7094 s,@EGREP@,$EGREP,;t t
7096 s,@ANSI2KNR@,$ANSI2KNR,;t t
7097 s,@LIBOBJS@,$LIBOBJS,;t t
7098 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7103 cat >>$CONFIG_STATUS <<\_ACEOF
7104 # Split the substitutions into bite-sized pieces for seds with
7105 # small command number limits, like on Digital OSF/1 and HP-UX.
7107 ac_sed_frag=1 # Number of current file.
7108 ac_beg=1 # First line for current file.
7109 ac_end=$ac_max_sed_lines # Line after last line for current file.
7112 while $ac_more_lines; do
7113 if test $ac_beg -gt 1; then
7114 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7116 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7118 if test ! -s $tmp/subs.frag; then
7121 # The purpose of the label and of the branching condition is to
7122 # speed up the sed processing (if there are no `@' at all, there
7123 # is no need to browse any of the substitutions).
7124 # These are the two extra sed commands mentioned above.
7126 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7127 if test -z "$ac_sed_cmds"; then
7128 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7130 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7132 ac_sed_frag=`expr $ac_sed_frag + 1`
7134 ac_end=`expr $ac_end + $ac_max_sed_lines`
7137 if test -z "$ac_sed_cmds"; then
7140 fi # test -n "$CONFIG_FILES"
7143 cat >>$CONFIG_STATUS <<\_ACEOF
7144 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7145 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7147 - | *:- | *:-:* ) # input from stdin
7149 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7150 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7151 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7152 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7153 * ) ac_file_in=$ac_file.in ;;
7156 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7157 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7158 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7159 X"$ac_file" : 'X\(//\)[^/]' \| \
7160 X"$ac_file" : 'X\(//\)$' \| \
7161 X"$ac_file" : 'X\(/\)' \| \
7162 . : '\(.\)' 2>/dev/null ||
7164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7166 /^X\(\/\/\)$/{ s//\1/; q; }
7167 /^X\(\/\).*/{ s//\1/; q; }
7169 { if $as_mkdir_p; then
7174 while test ! -d "$as_dir"; do
7175 as_dirs="$as_dir $as_dirs"
7176 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7178 X"$as_dir" : 'X\(//\)[^/]' \| \
7179 X"$as_dir" : 'X\(//\)$' \| \
7180 X"$as_dir" : 'X\(/\)' \| \
7181 . : '\(.\)' 2>/dev/null ||
7183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7185 /^X\(\/\/\)$/{ s//\1/; q; }
7186 /^X\(\/\).*/{ s//\1/; q; }
7189 test ! -n "$as_dirs" || mkdir $as_dirs
7190 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7191 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7192 { (exit 1); exit 1; }; }; }
7196 if test "$ac_dir" != .; then
7197 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7198 # A "../" for each directory in $ac_dir_suffix.
7199 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7201 ac_dir_suffix= ac_top_builddir=
7205 .) # No --srcdir option. We are building in place.
7207 if test -z "$ac_top_builddir"; then
7210 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7212 [\\/]* | ?:[\\/]* ) # Absolute path.
7213 ac_srcdir=$srcdir$ac_dir_suffix;
7214 ac_top_srcdir=$srcdir ;;
7216 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7217 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7219 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7221 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7222 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7223 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7224 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7228 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7229 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7232 if test x"$ac_file" != x-; then
7233 { echo "$as_me:$LINENO: creating $ac_file" >&5
7234 echo "$as_me: creating $ac_file" >&6;}
7237 # Let's still pretend it is `configure' which instantiates (i.e., don't
7238 # use $as_me), people would be surprised to read:
7239 # /* config.h. Generated by config.status. */
7240 if test x"$ac_file" = x-; then
7243 configure_input="$ac_file. "
7245 configure_input=$configure_input"Generated from `echo $ac_file_in |
7246 sed 's,.*/,,'` by configure."
7248 # First look for the input files in the build tree, otherwise in the
7250 ac_file_inputs=`IFS=:
7251 for f in $ac_file_in; do
7253 -) echo $tmp/stdin ;;
7255 # Absolute (can't be DOS-style, as IFS=:)
7256 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7257 echo "$as_me: error: cannot find input file: $f" >&2;}
7258 { (exit 1); exit 1; }; }
7261 if test -f "$f"; then
7264 elif test -f "$srcdir/$f"; then
7269 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7270 echo "$as_me: error: cannot find input file: $f" >&2;}
7271 { (exit 1); exit 1; }; }
7274 done` || { (exit 1); exit 1; }
7276 cat >>$CONFIG_STATUS <<_ACEOF
7280 cat >>$CONFIG_STATUS <<\_ACEOF
7282 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7283 s,@configure_input@,$configure_input,;t t
7284 s,@srcdir@,$ac_srcdir,;t t
7285 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7286 s,@top_srcdir@,$ac_top_srcdir,;t t
7287 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7288 s,@builddir@,$ac_builddir,;t t
7289 s,@abs_builddir@,$ac_abs_builddir,;t t
7290 s,@top_builddir@,$ac_top_builddir,;t t
7291 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7292 s,@INSTALL@,$ac_INSTALL,;t t
7293 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7295 if test x"$ac_file" != x-; then
7296 mv $tmp/out $ac_file
7304 cat >>$CONFIG_STATUS <<\_ACEOF
7307 # CONFIG_HEADER section.
7310 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7311 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7313 # ac_d sets the value in "#define NAME VALUE" lines.
7314 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7315 ac_dB='[ ].*$,\1#\2'
7318 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7319 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7320 ac_uB='$,\1#\2define\3'
7324 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7325 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7327 - | *:- | *:-:* ) # input from stdin
7329 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7330 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7331 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7332 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7333 * ) ac_file_in=$ac_file.in ;;
7336 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7337 echo "$as_me: creating $ac_file" >&6;}
7339 # First look for the input files in the build tree, otherwise in the
7341 ac_file_inputs=`IFS=:
7342 for f in $ac_file_in; do
7344 -) echo $tmp/stdin ;;
7346 # Absolute (can't be DOS-style, as IFS=:)
7347 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7348 echo "$as_me: error: cannot find input file: $f" >&2;}
7349 { (exit 1); exit 1; }; }
7352 if test -f "$f"; then
7355 elif test -f "$srcdir/$f"; then
7360 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7361 echo "$as_me: error: cannot find input file: $f" >&2;}
7362 { (exit 1); exit 1; }; }
7365 done` || { (exit 1); exit 1; }
7366 # Remove the trailing spaces.
7367 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7371 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7372 # `conftest.undefs', that substitutes the proper values into
7373 # config.h.in to produce config.h. The first handles `#define'
7374 # templates, and the second `#undef' templates.
7375 # And first: Protect against being on the right side of a sed subst in
7376 # config.status. Protect against being in an unquoted here document
7378 rm -f conftest.defines conftest.undefs
7379 # Using a here document instead of a string reduces the quoting nightmare.
7380 # Putting comments in sed scripts is not portable.
7382 # `end' is used to avoid that the second main sed command (meant for
7383 # 0-ary CPP macros) applies to n-ary macro definitions.
7384 # See the Autoconf documentation for `clear'.
7385 cat >confdef2sed.sed <<\_ACEOF
7390 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7392 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7395 # If some macros were called several times there might be several times
7396 # the same #defines, which is useless. Nevertheless, we may not want to
7397 # sort them, since we want the *last* AC-DEFINE to be honored.
7398 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7399 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7400 rm -f confdef2sed.sed
7402 # This sed command replaces #undef with comments. This is necessary, for
7403 # example, in the case of _POSIX_SOURCE, which is predefined and required
7404 # on some systems where configure will not decide to define it.
7405 cat >>conftest.undefs <<\_ACEOF
7406 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7409 # Break up conftest.defines because some shells have a limit on the size
7410 # of here documents, and old seds have small limits too (100 cmds).
7411 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7412 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7413 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7414 echo ' :' >>$CONFIG_STATUS
7416 while grep . conftest.defines >/dev/null
7418 # Write a limited-size here document to $tmp/defines.sed.
7419 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7420 # Speed up: don't consider the non `#define' lines.
7421 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7422 # Work around the forget-to-reset-the-flag bug.
7423 echo 't clr' >>$CONFIG_STATUS
7424 echo ': clr' >>$CONFIG_STATUS
7425 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7427 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7431 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7432 rm -f conftest.defines
7433 mv conftest.tail conftest.defines
7435 rm -f conftest.defines
7436 echo ' fi # grep' >>$CONFIG_STATUS
7437 echo >>$CONFIG_STATUS
7439 # Break up conftest.undefs because some shells have a limit on the size
7440 # of here documents, and old seds have small limits too (100 cmds).
7441 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7443 while grep . conftest.undefs >/dev/null
7445 # Write a limited-size here document to $tmp/undefs.sed.
7446 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7447 # Speed up: don't consider the non `#undef'
7448 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7449 # Work around the forget-to-reset-the-flag bug.
7450 echo 't clr' >>$CONFIG_STATUS
7451 echo ': clr' >>$CONFIG_STATUS
7452 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7454 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7458 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7459 rm -f conftest.undefs
7460 mv conftest.tail conftest.undefs
7462 rm -f conftest.undefs
7464 cat >>$CONFIG_STATUS <<\_ACEOF
7465 # Let's still pretend it is `configure' which instantiates (i.e., don't
7466 # use $as_me), people would be surprised to read:
7467 # /* config.h. Generated by config.status. */
7468 if test x"$ac_file" = x-; then
7469 echo "/* Generated by configure. */" >$tmp/config.h
7471 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7473 cat $tmp/in >>$tmp/config.h
7475 if test x"$ac_file" != x-; then
7476 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7477 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7478 echo "$as_me: $ac_file is unchanged" >&6;}
7480 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7482 X"$ac_file" : 'X\(//\)[^/]' \| \
7483 X"$ac_file" : 'X\(//\)$' \| \
7484 X"$ac_file" : 'X\(/\)' \| \
7485 . : '\(.\)' 2>/dev/null ||
7487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7488 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7489 /^X\(\/\/\)$/{ s//\1/; q; }
7490 /^X\(\/\).*/{ s//\1/; q; }
7492 { if $as_mkdir_p; then
7497 while test ! -d "$as_dir"; do
7498 as_dirs="$as_dir $as_dirs"
7499 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7500 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7501 X"$as_dir" : 'X\(//\)[^/]' \| \
7502 X"$as_dir" : 'X\(//\)$' \| \
7503 X"$as_dir" : 'X\(/\)' \| \
7504 . : '\(.\)' 2>/dev/null ||
7506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7507 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7508 /^X\(\/\/\)$/{ s//\1/; q; }
7509 /^X\(\/\).*/{ s//\1/; q; }
7512 test ! -n "$as_dirs" || mkdir $as_dirs
7513 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7514 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7515 { (exit 1); exit 1; }; }; }
7518 mv $tmp/config.h $ac_file
7524 # Compute $ac_file's index in $config_headers.
7526 for _am_header in $config_headers :; do
7528 $ac_file | $ac_file:* )
7531 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7534 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7535 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7536 X$ac_file : 'X\(//\)[^/]' \| \
7537 X$ac_file : 'X\(//\)$' \| \
7538 X$ac_file : 'X\(/\)' \| \
7539 . : '\(.\)' 2>/dev/null ||
7541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7542 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7543 /^X\(\/\/\)$/{ s//\1/; q; }
7544 /^X\(\/\).*/{ s//\1/; q; }
7545 s/.*/./; q'`/stamp-h$_am_stamp_count
7548 cat >>$CONFIG_STATUS <<\_ACEOF
7551 # CONFIG_COMMANDS section.
7553 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7554 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7555 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7556 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7557 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7558 X"$ac_dest" : 'X\(//\)[^/]' \| \
7559 X"$ac_dest" : 'X\(//\)$' \| \
7560 X"$ac_dest" : 'X\(/\)' \| \
7561 . : '\(.\)' 2>/dev/null ||
7563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7565 /^X\(\/\/\)$/{ s//\1/; q; }
7566 /^X\(\/\).*/{ s//\1/; q; }
7570 if test "$ac_dir" != .; then
7571 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7572 # A "../" for each directory in $ac_dir_suffix.
7573 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7575 ac_dir_suffix= ac_top_builddir=
7579 .) # No --srcdir option. We are building in place.
7581 if test -z "$ac_top_builddir"; then
7584 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7586 [\\/]* | ?:[\\/]* ) # Absolute path.
7587 ac_srcdir=$srcdir$ac_dir_suffix;
7588 ac_top_srcdir=$srcdir ;;
7590 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7591 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7593 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7595 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7596 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7597 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7598 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7601 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7602 echo "$as_me: executing $ac_dest commands" >&6;}
7604 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7605 # Strip MF so we end up with the name of the file.
7606 mf=`echo "$mf" | sed -e 's/:.*$//'`
7607 # Check whether this is an Automake generated Makefile or not.
7608 # We used to match only the files named `Makefile.in', but
7609 # some people rename them; so instead we look at the file content.
7610 # Grep'ing the first line is not enough: some people post-process
7611 # each Makefile.in and add a new line on top of each file to say so.
7612 # So let's grep whole file.
7613 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7614 dirpart=`(dirname "$mf") 2>/dev/null ||
7615 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7616 X"$mf" : 'X\(//\)[^/]' \| \
7617 X"$mf" : 'X\(//\)$' \| \
7618 X"$mf" : 'X\(/\)' \| \
7619 . : '\(.\)' 2>/dev/null ||
7621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7622 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7623 /^X\(\/\/\)$/{ s//\1/; q; }
7624 /^X\(\/\).*/{ s//\1/; q; }
7629 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7630 # Extract the definition of DEP_FILES from the Makefile without
7632 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7633 test -z "$DEPDIR" && continue
7634 # When using ansi2knr, U may be empty or an underscore; expand it
7635 U=`sed -n -e '/^U = / s///p' < "$mf"`
7636 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7637 # We invoke sed twice because it is the simplest approach to
7638 # changing $(DEPDIR) to its actual value in the expansion.
7639 for file in `sed -n -e '
7640 /^DEP_FILES = .*\\\\$/ {
7649 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7650 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7651 # Make sure the directory exists.
7652 test -f "$dirpart/$file" && continue
7653 fdir=`(dirname "$file") 2>/dev/null ||
7654 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7655 X"$file" : 'X\(//\)[^/]' \| \
7656 X"$file" : 'X\(//\)$' \| \
7657 X"$file" : 'X\(/\)' \| \
7658 . : '\(.\)' 2>/dev/null ||
7660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7661 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7662 /^X\(\/\/\)$/{ s//\1/; q; }
7663 /^X\(\/\).*/{ s//\1/; q; }
7665 { if $as_mkdir_p; then
7666 mkdir -p $dirpart/$fdir
7668 as_dir=$dirpart/$fdir
7670 while test ! -d "$as_dir"; do
7671 as_dirs="$as_dir $as_dirs"
7672 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7673 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7674 X"$as_dir" : 'X\(//\)[^/]' \| \
7675 X"$as_dir" : 'X\(//\)$' \| \
7676 X"$as_dir" : 'X\(/\)' \| \
7677 . : '\(.\)' 2>/dev/null ||
7679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7681 /^X\(\/\/\)$/{ s//\1/; q; }
7682 /^X\(\/\).*/{ s//\1/; q; }
7685 test ! -n "$as_dirs" || mkdir $as_dirs
7686 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7687 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7688 { (exit 1); exit 1; }; }; }
7690 # echo "creating $dirpart/$file"
7691 echo '# dummy' > "$dirpart/$file"
7699 cat >>$CONFIG_STATUS <<\_ACEOF
7701 { (exit 0); exit 0; }
7703 chmod +x $CONFIG_STATUS
7704 ac_clean_files=$ac_clean_files_save
7707 # configure is writing to config.log, and then calls config.status.
7708 # config.status does its own redirection, appending to config.log.
7709 # Unfortunately, on DOS this fails, as config.log is still kept open
7710 # by configure, so config.status won't be able to write to it; its
7711 # output is simply discarded. So we exec the FD to /dev/null,
7712 # effectively closing config.log, so it can be properly (re)opened and
7713 # appended to by config.status. When coming back to configure, we
7714 # need to make the FD available again.
7715 if test "$no_create" != yes; then
7717 ac_config_status_args=
7718 test "$silent" = yes &&
7719 ac_config_status_args="$ac_config_status_args --quiet"
7721 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7723 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7724 # would make configure fail if this is the last instruction.
7725 $ac_cs_success || { (exit 1); exit 1; }