2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="abook.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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 mkdir_p 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'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
845 if test -n "$ac_init_help"; then
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-dependency-tracking speeds up one-time build
853 --enable-dependency-tracking do not reject slow dependency extractors
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 ;;
908 # Do not use `cd foo && pwd` to compute absolute paths, because
909 # the directories may not exist.
911 .) ac_abs_builddir="$ac_dir";;
914 .) ac_abs_builddir=`pwd`;;
915 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
916 *) ac_abs_builddir=`pwd`/"$ac_dir";;
919 case $ac_abs_builddir in
920 .) ac_abs_top_builddir=${ac_top_builddir}.;;
922 case ${ac_top_builddir}. in
923 .) ac_abs_top_builddir=$ac_abs_builddir;;
924 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
925 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
928 case $ac_abs_builddir in
929 .) ac_abs_srcdir=$ac_srcdir;;
932 .) ac_abs_srcdir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
934 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
937 case $ac_abs_builddir in
938 .) ac_abs_top_srcdir=$ac_top_srcdir;;
940 case $ac_top_srcdir in
941 .) ac_abs_top_srcdir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
943 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
948 # Check for guested configure; otherwise get Cygnus style configure.
949 if test -f $ac_srcdir/configure.gnu; then
951 $SHELL $ac_srcdir/configure.gnu --help=recursive
952 elif test -f $ac_srcdir/configure; then
954 $SHELL $ac_srcdir/configure --help=recursive
955 elif test -f $ac_srcdir/configure.ac ||
956 test -f $ac_srcdir/configure.in; then
960 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
966 test -n "$ac_init_help" && exit 0
967 if $ac_init_version; then
970 Copyright (C) 2003 Free Software Foundation, Inc.
971 This configure script is free software; the Free Software Foundation
972 gives unlimited permission to copy, distribute and modify it.
978 This file contains any messages produced by compilers while
979 running configure, to aid debugging if configure makes a mistake.
981 It was created by $as_me, which was
982 generated by GNU Autoconf 2.59. Invocation command line was
993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1005 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1016 test -z "$as_dir" && as_dir=.
1017 echo "PATH: $as_dir"
1032 # Keep a trace of the command line.
1033 # Strip out --no-create and --no-recursion so they do not pile up.
1034 # Strip out --silent because we don't want to record it for future runs.
1035 # Also quote any args containing shell meta-characters.
1036 # Make two passes to allow for proper duplicate-argument suppression.
1041 ac_must_keep_next=false
1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058 if test $ac_must_keep_next = true; then
1059 ac_must_keep_next=false # Got value, back to normal.
1062 *=* | --config-cache | -C | -disable-* | --disable-* \
1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065 | -with-* | --with-* | -without-* | --without-* | --x)
1066 case "$ac_configure_args0 " in
1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1070 -* ) ac_must_keep_next=true ;;
1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074 # Get rid of the leading space.
1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083 # When interrupted or exit'd, cleanup temporary files, and complete
1084 # config.log. We remove comments because anyway the quotes in there
1085 # would cause problems or look ugly.
1086 # WARNING: Be sure not to use single quotes in there, as some shells,
1087 # such as our DU 5.0 friend, will then `close' the trap.
1088 trap 'exit_status=$?
1089 # Save into config.log some information that might help in debugging.
1094 ## ---------------- ##
1095 ## Cache variables. ##
1096 ## ---------------- ##
1099 # The following way of writing the cache mishandles newlines in values,
1102 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1117 ## ----------------- ##
1118 ## Output variables. ##
1119 ## ----------------- ##
1122 for ac_var in $ac_subst_vars
1124 eval ac_val=$`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1129 if test -n "$ac_subst_files"; then
1136 for ac_var in $ac_subst_files
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1144 if test -s confdefs.h; then
1151 sed "/^$/d" confdefs.h | sort
1154 test "$ac_signal" != 0 &&
1155 echo "$as_me: caught signal $ac_signal"
1156 echo "$as_me: exit $exit_status"
1158 rm -f core *.core &&
1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1162 for ac_signal in 1 2 13 15; do
1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1168 rm -rf conftest* confdefs.h
1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1172 # Predefined preprocessor variables.
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_NAME "$PACKAGE_NAME"
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_STRING "$PACKAGE_STRING"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1199 # Let the site file select an alternate cache file if it wants to.
1200 # Prefer explicitly selected file to automatically selected ones.
1201 if test -z "$CONFIG_SITE"; then
1202 if test "x$prefix" != xNONE; then
1203 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1208 for ac_site_file in $CONFIG_SITE; do
1209 if test -r "$ac_site_file"; then
1210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211 echo "$as_me: loading site script $ac_site_file" >&6;}
1212 sed 's/^/| /' "$ac_site_file" >&5
1217 if test -r "$cache_file"; then
1218 # Some versions of bash will fail to source /dev/null (special
1219 # files actually), so we avoid doing that.
1220 if test -f "$cache_file"; then
1221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222 echo "$as_me: loading cache $cache_file" >&6;}
1224 [\\/]* | ?:[\\/]* ) . $cache_file;;
1225 *) . ./$cache_file;;
1229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230 echo "$as_me: creating cache $cache_file" >&6;}
1234 # Check that the precious variables saved in the cache have kept the same
1236 ac_cache_corrupted=false
1237 for ac_var in `(set) 2>&1 |
1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240 eval ac_new_set=\$ac_env_${ac_var}_set
1241 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242 eval ac_new_val="\$ac_env_${ac_var}_value"
1243 case $ac_old_set,$ac_new_set in
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1254 if test "x$ac_old_val" != "x$ac_new_val"; then
1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1258 echo "$as_me: former value: $ac_old_val" >&2;}
1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1260 echo "$as_me: current value: $ac_new_val" >&2;}
1261 ac_cache_corrupted=:
1264 # Pass precious variables to config.status.
1265 if test "$ac_new_set" = set; then
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 *) ac_arg=$ac_var=$ac_new_val ;;
1271 case " $ac_configure_args " in
1272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1273 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1277 if $ac_cache_corrupted; then
1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1279 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1280 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1281 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1282 { (exit 1); exit 1; }; }
1286 ac_cpp='$CPP $CPPFLAGS'
1287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309 am__api_version="1.8"
1311 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1312 if test -f $ac_dir/install-sh; then
1314 ac_install_sh="$ac_aux_dir/install-sh -c"
1316 elif test -f $ac_dir/install.sh; then
1318 ac_install_sh="$ac_aux_dir/install.sh -c"
1320 elif test -f $ac_dir/shtool; then
1322 ac_install_sh="$ac_aux_dir/shtool install -c"
1326 if test -z "$ac_aux_dir"; then
1327 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1328 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1329 { (exit 1); exit 1; }; }
1331 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1332 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1333 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1335 # Find a good install program. We prefer a C program (faster),
1336 # so one script is as good as another. But avoid the broken or
1337 # incompatible versions:
1338 # SysV /etc/install, /usr/sbin/install
1339 # SunOS /usr/etc/install
1340 # IRIX /sbin/install
1342 # AmigaOS /C/install, which installs bootblocks on floppy discs
1343 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1344 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1345 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1346 # OS/2's system install, which has a completely different semantic
1347 # ./install, which can be erroneously created by make from ./install.sh.
1348 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1349 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1350 if test -z "$INSTALL"; then
1351 if test "${ac_cv_path_install+set}" = set; then
1352 echo $ECHO_N "(cached) $ECHO_C" >&6
1354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1358 test -z "$as_dir" && as_dir=.
1359 # Account for people who put trailing slashes in PATH elements.
1361 ./ | .// | /cC/* | \
1362 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1363 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1366 # OSF1 and SCO ODT 3.0 have their own names for install.
1367 # Don't use installbsd from OSF since it installs stuff as root
1369 for ac_prog in ginstall scoinst install; do
1370 for ac_exec_ext in '' $ac_executable_extensions; do
1371 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1372 if test $ac_prog = install &&
1373 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1374 # AIX install. It has an incompatible calling convention.
1376 elif test $ac_prog = install &&
1377 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1378 # program-specific install script used by HP pwplus--don't use.
1381 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1393 if test "${ac_cv_path_install+set}" = set; then
1394 INSTALL=$ac_cv_path_install
1396 # As a last resort, use the slow shell script. We don't cache a
1397 # path for INSTALL within a source directory, because that will
1398 # break other packages using the cache if that directory is
1399 # removed, or if the path is relative.
1400 INSTALL=$ac_install_sh
1403 echo "$as_me:$LINENO: result: $INSTALL" >&5
1404 echo "${ECHO_T}$INSTALL" >&6
1406 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1407 # It thinks the first close brace ends the variable substitution.
1408 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1410 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1412 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1414 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1415 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1418 echo timestamp > conftest.file
1419 # Do `set' in a subshell so we don't clobber the current shell's
1420 # arguments. Must try -L first in case configure is actually a
1421 # symlink; some systems play weird games with the mod time of symlinks
1422 # (eg FreeBSD returns the mod time of the symlink's containing
1425 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1426 if test "$*" = "X"; then
1428 set X `ls -t $srcdir/configure conftest.file`
1431 if test "$*" != "X $srcdir/configure conftest.file" \
1432 && test "$*" != "X conftest.file $srcdir/configure"; then
1434 # If neither matched, then we have a broken ls. This can happen
1435 # if, for instance, CONFIG_SHELL is bash and it inherits a
1436 # broken ls alias from the environment. This has actually
1437 # happened. Such a system could not be considered "sane".
1438 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1439 alias in your environment" >&5
1440 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1441 alias in your environment" >&2;}
1442 { (exit 1); exit 1; }; }
1445 test "$2" = conftest.file
1451 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1452 Check your system clock" >&5
1453 echo "$as_me: error: newly created file is older than distributed files!
1454 Check your system clock" >&2;}
1455 { (exit 1); exit 1; }; }
1457 echo "$as_me:$LINENO: result: yes" >&5
1458 echo "${ECHO_T}yes" >&6
1459 test "$program_prefix" != NONE &&
1460 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1461 # Use a double $ so make ignores it.
1462 test "$program_suffix" != NONE &&
1463 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1464 # Double any \ or $. echo might interpret backslashes.
1465 # By default was `s,x,x', remove it if useless.
1466 cat <<\_ACEOF >conftest.sed
1467 s/[\\$]/&&/g;s/;s,x,x,$//
1469 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1472 # expand $ac_aux_dir to an absolute path
1473 am_aux_dir=`cd $ac_aux_dir && pwd`
1475 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1476 # Use eval to expand $SHELL
1477 if eval "$MISSING --run true"; then
1478 am_missing_run="$MISSING --run "
1481 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1482 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1485 if mkdir -p -- . 2>/dev/null; then
1486 # Keeping the `.' argument allows $(mkdir_p) to be used without
1487 # argument. Indeed, we sometimes output rules like
1488 # $(mkdir_p) $(somedir)
1489 # where $(somedir) is conditionally defined.
1490 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1491 # expensive solution, as it forces Make to start a sub-shell.)
1492 mkdir_p='mkdir -p -- .'
1494 # On NextStep and OpenStep, the `mkdir' command does not
1495 # recognize any option. It will interpret all options as
1496 # directories to create, and then abort because `.' already
1500 test -d $d && rmdir $d
1502 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1503 if test -f "$ac_aux_dir/mkinstalldirs"; then
1504 mkdir_p='$(mkinstalldirs)'
1506 mkdir_p='$(install_sh) -d'
1510 for ac_prog in gawk mawk nawk awk
1512 # Extract the first word of "$ac_prog", so it can be a program name with args.
1513 set dummy $ac_prog; ac_word=$2
1514 echo "$as_me:$LINENO: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_AWK+set}" = set; then
1517 echo $ECHO_N "(cached) $ECHO_C" >&6
1519 if test -n "$AWK"; then
1520 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 test -z "$as_dir" && as_dir=.
1527 for ac_exec_ext in '' $ac_executable_extensions; do
1528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529 ac_cv_prog_AWK="$ac_prog"
1530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 if test -n "$AWK"; then
1540 echo "$as_me:$LINENO: result: $AWK" >&5
1541 echo "${ECHO_T}$AWK" >&6
1543 echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1547 test -n "$AWK" && break
1550 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1551 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1552 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1553 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1556 cat >conftest.make <<\_ACEOF
1558 @echo 'ac_maketemp="$(MAKE)"'
1560 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1561 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1562 if test -n "$ac_maketemp"; then
1563 eval ac_cv_prog_make_${ac_make}_set=yes
1565 eval ac_cv_prog_make_${ac_make}_set=no
1569 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1570 echo "$as_me:$LINENO: result: yes" >&5
1571 echo "${ECHO_T}yes" >&6
1574 echo "$as_me:$LINENO: result: no" >&5
1575 echo "${ECHO_T}no" >&6
1576 SET_MAKE="MAKE=${MAKE-make}"
1579 rm -rf .tst 2>/dev/null
1580 mkdir .tst 2>/dev/null
1581 if test -d .tst; then
1586 rmdir .tst 2>/dev/null
1588 # test to see if srcdir already configured
1589 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1590 test -f $srcdir/config.status; then
1591 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1592 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1593 { (exit 1); exit 1; }; }
1596 # test whether we have cygpath
1597 if test -z "$CYGPATH_W"; then
1598 if (cygpath --version) >/dev/null 2>/dev/null; then
1599 CYGPATH_W='cygpath -w'
1606 # Define the identity of the package.
1611 cat >>confdefs.h <<_ACEOF
1612 #define PACKAGE "$PACKAGE"
1616 cat >>confdefs.h <<_ACEOF
1617 #define VERSION "$VERSION"
1620 # Some tools Automake needs.
1622 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1625 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1628 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1631 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1634 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1637 AMTAR=${AMTAR-"${am_missing_run}tar"}
1639 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1641 # Installed binaries are usually stripped using `strip' when the user
1642 # run `make install-strip'. However `strip' might not be the right
1643 # tool to use in cross-compilation environments, therefore Automake
1644 # will honor the `STRIP' environment variable to overrule this program.
1645 if test "$cross_compiling" != no; then
1646 if test -n "$ac_tool_prefix"; then
1647 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1648 set dummy ${ac_tool_prefix}strip; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_STRIP+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 if test -n "$STRIP"; then
1655 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 test -z "$as_dir" && as_dir=.
1662 for ac_exec_ext in '' $ac_executable_extensions; do
1663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673 STRIP=$ac_cv_prog_STRIP
1674 if test -n "$STRIP"; then
1675 echo "$as_me:$LINENO: result: $STRIP" >&5
1676 echo "${ECHO_T}$STRIP" >&6
1678 echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1683 if test -z "$ac_cv_prog_STRIP"; then
1685 # Extract the first word of "strip", so it can be a program name with args.
1686 set dummy strip; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 if test -n "$ac_ct_STRIP"; then
1693 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 ac_cv_prog_ac_ct_STRIP="strip"
1703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1712 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1713 if test -n "$ac_ct_STRIP"; then
1714 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1715 echo "${ECHO_T}$ac_ct_STRIP" >&6
1717 echo "$as_me:$LINENO: result: no" >&5
1718 echo "${ECHO_T}no" >&6
1723 STRIP="$ac_cv_prog_STRIP"
1727 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1729 # We need awk for the "check" target. The system "awk" is bad on
1734 ac_config_headers="$ac_config_headers config.h"
1737 # Make sure we can run config.sub.
1738 $ac_config_sub sun4 >/dev/null 2>&1 ||
1739 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1740 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1741 { (exit 1); exit 1; }; }
1743 echo "$as_me:$LINENO: checking build system type" >&5
1744 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1745 if test "${ac_cv_build+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 ac_cv_build_alias=$build_alias
1749 test -z "$ac_cv_build_alias" &&
1750 ac_cv_build_alias=`$ac_config_guess`
1751 test -z "$ac_cv_build_alias" &&
1752 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1753 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1754 { (exit 1); exit 1; }; }
1755 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1756 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1757 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1758 { (exit 1); exit 1; }; }
1761 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1762 echo "${ECHO_T}$ac_cv_build" >&6
1764 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1765 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1766 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1769 echo "$as_me:$LINENO: checking host system type" >&5
1770 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1771 if test "${ac_cv_host+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 ac_cv_host_alias=$host_alias
1775 test -z "$ac_cv_host_alias" &&
1776 ac_cv_host_alias=$ac_cv_build_alias
1777 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1778 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1779 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1780 { (exit 1); exit 1; }; }
1783 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1784 echo "${ECHO_T}$ac_cv_host" >&6
1786 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1787 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1788 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1793 ac_cpp='$CPP $CPPFLAGS'
1794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1797 if test -n "$ac_tool_prefix"; then
1798 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1799 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1800 echo "$as_me:$LINENO: checking for $ac_word" >&5
1801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802 if test "${ac_cv_prog_CC+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 if test -n "$CC"; then
1806 ac_cv_prog_CC="$CC" # Let the user override the test.
1808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 test -z "$as_dir" && as_dir=.
1813 for ac_exec_ext in '' $ac_executable_extensions; do
1814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 if test -n "$CC"; then
1826 echo "$as_me:$LINENO: result: $CC" >&5
1827 echo "${ECHO_T}$CC" >&6
1829 echo "$as_me:$LINENO: result: no" >&5
1830 echo "${ECHO_T}no" >&6
1834 if test -z "$ac_cv_prog_CC"; then
1836 # Extract the first word of "gcc", so it can be a program name with args.
1837 set dummy gcc; ac_word=$2
1838 echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1843 if test -n "$ac_ct_CC"; then
1844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850 test -z "$as_dir" && as_dir=.
1851 for ac_exec_ext in '' $ac_executable_extensions; do
1852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853 ac_cv_prog_ac_ct_CC="gcc"
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1863 if test -n "$ac_ct_CC"; then
1864 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1865 echo "${ECHO_T}$ac_ct_CC" >&6
1867 echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6
1876 if test -z "$CC"; then
1877 if test -n "$ac_tool_prefix"; then
1878 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1879 set dummy ${ac_tool_prefix}cc; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_CC+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 if test -n "$CC"; then
1886 ac_cv_prog_CC="$CC" # Let the user override the test.
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_CC="${ac_tool_prefix}cc"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 if test -n "$CC"; then
1906 echo "$as_me:$LINENO: result: $CC" >&5
1907 echo "${ECHO_T}$CC" >&6
1909 echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1914 if test -z "$ac_cv_prog_CC"; then
1916 # Extract the first word of "cc", so it can be a program name with args.
1917 set dummy cc; ac_word=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 if test -n "$ac_ct_CC"; then
1924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 test -z "$as_dir" && as_dir=.
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933 ac_cv_prog_ac_ct_CC="cc"
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1943 if test -n "$ac_ct_CC"; then
1944 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1945 echo "${ECHO_T}$ac_ct_CC" >&6
1947 echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1957 if test -z "$CC"; then
1958 # Extract the first word of "cc", so it can be a program name with args.
1959 set dummy cc; ac_word=$2
1960 echo "$as_me:$LINENO: checking for $ac_word" >&5
1961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1962 if test "${ac_cv_prog_CC+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
1965 if test -n "$CC"; then
1966 ac_cv_prog_CC="$CC" # Let the user override the test.
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 test -z "$as_dir" && as_dir=.
1974 for ac_exec_ext in '' $ac_executable_extensions; do
1975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1976 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1977 ac_prog_rejected=yes
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 if test $ac_prog_rejected = yes; then
1988 # We found a bogon in the path, so make sure we never use it.
1989 set dummy $ac_cv_prog_CC
1991 if test $# != 0; then
1992 # We chose a different compiler from the bogus one.
1993 # However, it has the same basename, so the bogon will be chosen
1994 # first if we set CC to just the basename; use the full file name.
1996 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2002 if test -n "$CC"; then
2003 echo "$as_me:$LINENO: result: $CC" >&5
2004 echo "${ECHO_T}$CC" >&6
2006 echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6
2011 if test -z "$CC"; then
2012 if test -n "$ac_tool_prefix"; then
2015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2017 echo "$as_me:$LINENO: checking for $ac_word" >&5
2018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2019 if test "${ac_cv_prog_CC+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 if test -n "$CC"; then
2023 ac_cv_prog_CC="$CC" # Let the user override the test.
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029 test -z "$as_dir" && as_dir=.
2030 for ac_exec_ext in '' $ac_executable_extensions; do
2031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2032 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 if test -n "$CC"; then
2043 echo "$as_me:$LINENO: result: $CC" >&5
2044 echo "${ECHO_T}$CC" >&6
2046 echo "$as_me:$LINENO: result: no" >&5
2047 echo "${ECHO_T}no" >&6
2050 test -n "$CC" && break
2053 if test -z "$CC"; then
2057 # Extract the first word of "$ac_prog", so it can be a program name with args.
2058 set dummy $ac_prog; ac_word=$2
2059 echo "$as_me:$LINENO: checking for $ac_word" >&5
2060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2061 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 if test -n "$ac_ct_CC"; then
2065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 test -z "$as_dir" && as_dir=.
2072 for ac_exec_ext in '' $ac_executable_extensions; do
2073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2074 ac_cv_prog_ac_ct_CC="$ac_prog"
2075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2084 if test -n "$ac_ct_CC"; then
2085 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2086 echo "${ECHO_T}$ac_ct_CC" >&6
2088 echo "$as_me:$LINENO: result: no" >&5
2089 echo "${ECHO_T}no" >&6
2092 test -n "$ac_ct_CC" && break
2101 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2102 See \`config.log' for more details." >&5
2103 echo "$as_me: error: no acceptable C compiler found in \$PATH
2104 See \`config.log' for more details." >&2;}
2105 { (exit 1); exit 1; }; }
2107 # Provide some information about the compiler.
2108 echo "$as_me:$LINENO:" \
2109 "checking for C compiler version" >&5
2110 ac_compiler=`set X $ac_compile; echo $2`
2111 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2112 (eval $ac_compiler --version </dev/null >&5) 2>&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }
2116 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2117 (eval $ac_compiler -v </dev/null >&5) 2>&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }
2121 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2122 (eval $ac_compiler -V </dev/null >&5) 2>&5
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }
2127 cat >conftest.$ac_ext <<_ACEOF
2130 cat confdefs.h >>conftest.$ac_ext
2131 cat >>conftest.$ac_ext <<_ACEOF
2132 /* end confdefs.h. */
2142 ac_clean_files_save=$ac_clean_files
2143 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2144 # Try to create an executable without -o first, disregard a.out.
2145 # It will help us diagnose broken compilers, and finding out an intuition
2147 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2148 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2149 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2150 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2151 (eval $ac_link_default) 2>&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; then
2155 # Find the output, starting from the most likely. This scheme is
2156 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2159 # Be careful to initialize this variable, since it used to be cached.
2160 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2162 # b.out is created by i960 compilers.
2163 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2165 test -f "$ac_file" || continue
2167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2170 # This is the source file.
2173 # We found the default executable, but exeext='' is most
2177 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2178 # FIXME: I believe we export ac_cv_exeext for Libtool,
2179 # but it would be cool to find out if it's true. Does anybody
2180 # maintain Libtool? --akim.
2188 echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2191 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2192 See \`config.log' for more details." >&5
2193 echo "$as_me: error: C compiler cannot create executables
2194 See \`config.log' for more details." >&2;}
2195 { (exit 77); exit 77; }; }
2198 ac_exeext=$ac_cv_exeext
2199 echo "$as_me:$LINENO: result: $ac_file" >&5
2200 echo "${ECHO_T}$ac_file" >&6
2202 # Check the compiler produces executables we can run. If not, either
2203 # the compiler is broken, or we cross compile.
2204 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2205 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2206 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2207 # If not cross compiling, check that we can run a simple program.
2208 if test "$cross_compiling" != yes; then
2209 if { ac_try='./$ac_file'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2217 if test "$cross_compiling" = maybe; then
2220 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2221 If you meant to cross compile, use \`--host'.
2222 See \`config.log' for more details." >&5
2223 echo "$as_me: error: cannot run C compiled programs.
2224 If you meant to cross compile, use \`--host'.
2225 See \`config.log' for more details." >&2;}
2226 { (exit 1); exit 1; }; }
2230 echo "$as_me:$LINENO: result: yes" >&5
2231 echo "${ECHO_T}yes" >&6
2233 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2234 ac_clean_files=$ac_clean_files_save
2235 # Check the compiler produces executables we can run. If not, either
2236 # the compiler is broken, or we cross compile.
2237 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2238 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2239 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2240 echo "${ECHO_T}$cross_compiling" >&6
2242 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2243 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2245 (eval $ac_link) 2>&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; then
2249 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2250 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2251 # work properly (i.e., refer to `conftest.exe'), while it won't with
2253 for ac_file in conftest.exe conftest conftest.*; do
2254 test -f "$ac_file" || continue
2256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2257 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2264 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2265 See \`config.log' for more details." >&5
2266 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2267 See \`config.log' for more details." >&2;}
2268 { (exit 1); exit 1; }; }
2271 rm -f conftest$ac_cv_exeext
2272 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2273 echo "${ECHO_T}$ac_cv_exeext" >&6
2275 rm -f conftest.$ac_ext
2276 EXEEXT=$ac_cv_exeext
2278 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2279 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2280 if test "${ac_cv_objext+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 cat >conftest.$ac_ext <<_ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2298 rm -f conftest.o conftest.obj
2299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300 (eval $ac_compile) 2>&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; then
2304 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2307 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2312 echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2315 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2316 See \`config.log' for more details." >&5
2317 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2318 See \`config.log' for more details." >&2;}
2319 { (exit 1); exit 1; }; }
2322 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2324 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2325 echo "${ECHO_T}$ac_cv_objext" >&6
2326 OBJEXT=$ac_cv_objext
2328 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2329 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2330 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 cat >conftest.$ac_ext <<_ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h. */
2351 rm -f conftest.$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353 (eval $ac_compile) 2>conftest.er1
2355 grep -v '^ *+' conftest.er1 >conftest.err
2357 cat conftest.err >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); } &&
2360 { ac_try='test -z "$ac_c_werror_flag"
2361 || test ! -s conftest.err'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; } &&
2367 { ac_try='test -s conftest.$ac_objext'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2375 echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2381 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2384 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2385 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2386 GCC=`test $ac_compiler_gnu = yes && echo yes`
2387 ac_test_CFLAGS=${CFLAGS+set}
2388 ac_save_CFLAGS=$CFLAGS
2390 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2391 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2392 if test "${ac_cv_prog_cc_g+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 cat >conftest.$ac_ext <<_ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h. */
2410 rm -f conftest.$ac_objext
2411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2412 (eval $ac_compile) 2>conftest.er1
2414 grep -v '^ *+' conftest.er1 >conftest.err
2416 cat conftest.err >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); } &&
2419 { ac_try='test -z "$ac_c_werror_flag"
2420 || test ! -s conftest.err'
2421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; } &&
2426 { ac_try='test -s conftest.$ac_objext'
2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; }; then
2434 echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2441 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2442 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2443 if test "$ac_test_CFLAGS" = set; then
2444 CFLAGS=$ac_save_CFLAGS
2445 elif test $ac_cv_prog_cc_g = yes; then
2446 if test "$GCC" = yes; then
2452 if test "$GCC" = yes; then
2458 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2459 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2460 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 ac_cv_prog_cc_stdc=no
2465 cat >conftest.$ac_ext <<_ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2473 #include <sys/types.h>
2474 #include <sys/stat.h>
2475 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2476 struct buf { int x; };
2477 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2478 static char *e (p, i)
2484 static char *f (char * (*g) (char **, int), char **p, ...)
2489 s = g (p, va_arg (v,int));
2494 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2495 function prototypes and stuff, but not '\xHH' hex character constants.
2496 These don't provoke an error unfortunately, instead are silently treated
2497 as 'x'. The following induces an error, until -std1 is added to get
2498 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2499 array size at least. It's necessary to write '\x00'==0 to get something
2500 that's true only with -std1. */
2501 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2503 int test (int i, double x);
2504 struct s1 {int (*f) (int a);};
2505 struct s2 {int (*f) (double a);};
2506 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2512 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2517 # Don't try gcc -ansi; that turns off useful extensions and
2518 # breaks some systems' header files.
2519 # AIX -qlanglvl=ansi
2520 # Ultrix and OSF/1 -std1
2521 # HP-UX 10.20 and later -Ae
2522 # HP-UX older versions -Aa -D_HPUX_SOURCE
2523 # SVR4 -Xc -D__EXTENSIONS__
2524 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2526 CC="$ac_save_CC $ac_arg"
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529 (eval $ac_compile) 2>conftest.er1
2531 grep -v '^ *+' conftest.er1 >conftest.err
2533 cat conftest.err >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } &&
2536 { ac_try='test -z "$ac_c_werror_flag"
2537 || test ! -s conftest.err'
2538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; } &&
2543 { ac_try='test -s conftest.$ac_objext'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; }; then
2549 ac_cv_prog_cc_stdc=$ac_arg
2552 echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2556 rm -f conftest.err conftest.$ac_objext
2558 rm -f conftest.$ac_ext conftest.$ac_objext
2563 case "x$ac_cv_prog_cc_stdc" in
2565 echo "$as_me:$LINENO: result: none needed" >&5
2566 echo "${ECHO_T}none needed" >&6 ;;
2568 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2569 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2570 CC="$CC $ac_cv_prog_cc_stdc" ;;
2573 # Some people use a C++ compiler to compile C. Since we use `exit',
2574 # in C++ we need to declare it. In case someone uses the same compiler
2575 # for both compiling C and C++ we need to have the C++ compiler decide
2576 # the declaration of exit, since it's the most demanding environment.
2577 cat >conftest.$ac_ext <<_ACEOF
2582 rm -f conftest.$ac_objext
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584 (eval $ac_compile) 2>conftest.er1
2586 grep -v '^ *+' conftest.er1 >conftest.err
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } &&
2591 { ac_try='test -z "$ac_c_werror_flag"
2592 || test ! -s conftest.err'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; }; then
2604 for ac_declaration in \
2606 'extern "C" void std::exit (int) throw (); using std::exit;' \
2607 'extern "C" void std::exit (int); using std::exit;' \
2608 'extern "C" void exit (int) throw ();' \
2609 'extern "C" void exit (int);' \
2612 cat >conftest.$ac_ext <<_ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h. */
2628 rm -f conftest.$ac_objext
2629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630 (eval $ac_compile) 2>conftest.er1
2632 grep -v '^ *+' conftest.er1 >conftest.err
2634 cat conftest.err >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } &&
2637 { ac_try='test -z "$ac_c_werror_flag"
2638 || test ! -s conftest.err'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; } &&
2644 { ac_try='test -s conftest.$ac_objext'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; }; then
2652 echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2658 cat >conftest.$ac_ext <<_ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h. */
2673 rm -f conftest.$ac_objext
2674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675 (eval $ac_compile) 2>conftest.er1
2677 grep -v '^ *+' conftest.er1 >conftest.err
2679 cat conftest.err >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } &&
2682 { ac_try='test -z "$ac_c_werror_flag"
2683 || test ! -s conftest.err'
2684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; } &&
2689 { ac_try='test -s conftest.$ac_objext'
2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; }; then
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2704 if test -n "$ac_declaration"; then
2705 echo '#ifdef __cplusplus' >>confdefs.h
2706 echo $ac_declaration >>confdefs.h
2707 echo '#endif' >>confdefs.h
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2717 ac_cpp='$CPP $CPPFLAGS'
2718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2721 DEPDIR="${am__leading_dot}deps"
2723 ac_config_commands="$ac_config_commands depfiles"
2726 am_make=${MAKE-make}
2727 cat > confinc << 'END'
2732 # If we don't find an include directive, just comment out the code.
2733 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2734 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2738 # First try GNU make style include.
2739 echo "include confinc" > confmf
2740 # We grep out `Entering directory' and `Leaving directory'
2741 # messages which can occur if `w' ends up in MAKEFLAGS.
2742 # In particular we don't look at `^make:' because GNU make might
2743 # be invoked under some other name (usually "gmake"), in which
2744 # case it prints its new name instead of `make'.
2745 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2750 # Now try BSD make style include.
2751 if test "$am__include" = "#"; then
2752 echo '.include "confinc"' > confmf
2753 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2754 am__include=.include
2761 echo "$as_me:$LINENO: result: $_am_result" >&5
2762 echo "${ECHO_T}$_am_result" >&6
2763 rm -f confinc confmf
2765 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2766 if test "${enable_dependency_tracking+set}" = set; then
2767 enableval="$enable_dependency_tracking"
2770 if test "x$enable_dependency_tracking" != xno; then
2771 am_depcomp="$ac_aux_dir/depcomp"
2776 if test "x$enable_dependency_tracking" != xno; then
2787 depcc="$CC" am_compiler_list=
2789 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2790 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2791 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2795 # We make a subdir and do the tests there. Otherwise we can end up
2796 # making bogus files that we don't know about and never remove. For
2797 # instance it was reported that on HP-UX the gcc test will end up
2798 # making a dummy file named `D' -- because `-MD' means `put the output
2801 # Copy depcomp to subdir because otherwise we won't find it if we're
2802 # using a relative directory.
2803 cp "$am_depcomp" conftest.dir
2805 # We will build objects and dependencies in a subdirectory because
2806 # it helps to detect inapplicable dependency modes. For instance
2807 # both Tru64's cc and ICC support -MD to output dependencies as a
2808 # side effect of compilation, but ICC will put the dependencies in
2809 # the current directory while Tru64 will put them in the object
2813 am_cv_CC_dependencies_compiler_type=none
2814 if test "$am_compiler_list" = ""; then
2815 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2817 for depmode in $am_compiler_list; do
2818 # Setup a source with many dependencies, because some compilers
2819 # like to wrap large dependency lists on column 80 (with \), and
2820 # we should not choose a depcomp mode which is confused by this.
2822 # We need to recreate these files for each test, as the compiler may
2823 # overwrite some of them when testing with obscure command lines.
2824 # This happens at least with the AIX C compiler.
2826 for i in 1 2 3 4 5 6; do
2827 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2830 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2834 # after this tag, mechanisms are not by side-effect, so they'll
2835 # only be used when explicitly requested
2836 if test "x$enable_dependency_tracking" = xyes; then
2844 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2845 # mode. It turns out that the SunPro C++ compiler does not properly
2846 # handle `-M -o', and we need to detect this.
2847 if depmode=$depmode \
2848 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2849 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2850 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2851 >/dev/null 2>conftest.err &&
2852 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2853 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2854 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2855 # icc doesn't choke on unknown options, it will just issue warnings
2856 # (even with -Werror). So we grep stderr for any message
2857 # that says an option was ignored.
2858 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2859 am_cv_CC_dependencies_compiler_type=$depmode
2868 am_cv_CC_dependencies_compiler_type=none
2872 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2873 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2874 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2879 test "x$enable_dependency_tracking" != xno \
2880 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2882 am__fastdepCC_FALSE='#'
2884 am__fastdepCC_TRUE='#'
2885 am__fastdepCC_FALSE=
2890 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2891 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2892 if test "${ac_cv_search_strerror+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 ac_func_search_save_LIBS=$LIBS
2896 ac_cv_search_strerror=no
2897 cat >conftest.$ac_ext <<_ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h. */
2904 /* Override any gcc2 internal prototype to avoid an error. */
2908 /* We use char because int might match the return type of a gcc2
2909 builtin and then its argument prototype would still apply. */
2919 rm -f conftest.$ac_objext conftest$ac_exeext
2920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2921 (eval $ac_link) 2>conftest.er1
2923 grep -v '^ *+' conftest.er1 >conftest.err
2925 cat conftest.err >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); } &&
2928 { ac_try='test -z "$ac_c_werror_flag"
2929 || test ! -s conftest.err'
2930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; } &&
2935 { ac_try='test -s conftest$ac_exeext'
2936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; }; then
2941 ac_cv_search_strerror="none required"
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2947 rm -f conftest.err conftest.$ac_objext \
2948 conftest$ac_exeext conftest.$ac_ext
2949 if test "$ac_cv_search_strerror" = no; then
2950 for ac_lib in cposix; do
2951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2952 cat >conftest.$ac_ext <<_ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2959 /* Override any gcc2 internal prototype to avoid an error. */
2963 /* We use char because int might match the return type of a gcc2
2964 builtin and then its argument prototype would still apply. */
2974 rm -f conftest.$ac_objext conftest$ac_exeext
2975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2976 (eval $ac_link) 2>conftest.er1
2978 grep -v '^ *+' conftest.er1 >conftest.err
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } &&
2983 { ac_try='test -z "$ac_c_werror_flag"
2984 || test ! -s conftest.err'
2985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; } &&
2990 { ac_try='test -s conftest$ac_exeext'
2991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; }; then
2996 ac_cv_search_strerror="-l$ac_lib"
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3003 rm -f conftest.err conftest.$ac_objext \
3004 conftest$ac_exeext conftest.$ac_ext
3007 LIBS=$ac_func_search_save_LIBS
3009 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3010 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3011 if test "$ac_cv_search_strerror" != no; then
3012 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3016 echo "$as_me:$LINENO: checking for function prototypes" >&5
3017 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3018 if test "$ac_cv_prog_cc_stdc" != no; then
3019 echo "$as_me:$LINENO: result: yes" >&5
3020 echo "${ECHO_T}yes" >&6
3022 cat >>confdefs.h <<\_ACEOF
3023 #define PROTOTYPES 1
3027 cat >>confdefs.h <<\_ACEOF
3028 #define __PROTOTYPES 1
3032 echo "$as_me:$LINENO: result: no" >&5
3033 echo "${ECHO_T}no" >&6
3037 ac_cpp='$CPP $CPPFLAGS'
3038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3041 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3042 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3043 # On Suns, sometimes $CPP names a directory.
3044 if test -n "$CPP" && test -d "$CPP"; then
3047 if test -z "$CPP"; then
3048 if test "${ac_cv_prog_CPP+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 # Double quotes because CPP needs to be expanded
3052 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3055 for ac_c_preproc_warn_flag in '' yes
3057 # Use a header file that comes with gcc, so configuring glibc
3058 # with a fresh cross-compiler works.
3059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3060 # <limits.h> exists even on freestanding compilers.
3061 # On the NeXT, cc -E runs the code through the compiler's parser,
3062 # not just through cpp. "Syntax error" is here to catch this case.
3063 cat >conftest.$ac_ext <<_ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3070 # include <limits.h>
3072 # include <assert.h>
3076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3079 grep -v '^ *+' conftest.er1 >conftest.err
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } >/dev/null; then
3084 if test -s conftest.err; then
3085 ac_cpp_err=$ac_c_preproc_warn_flag
3086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3093 if test -z "$ac_cpp_err"; then
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 # Broken: fails on valid input.
3102 rm -f conftest.err conftest.$ac_ext
3104 # OK, works on sane cases. Now check whether non-existent headers
3105 # can be detected and how.
3106 cat >conftest.$ac_ext <<_ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3112 #include <ac_nonexistent.h>
3114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3117 grep -v '^ *+' conftest.er1 >conftest.err
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } >/dev/null; then
3122 if test -s conftest.err; then
3123 ac_cpp_err=$ac_c_preproc_warn_flag
3124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3131 if test -z "$ac_cpp_err"; then
3132 # Broken: success on invalid input.
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3138 # Passes both tests.
3142 rm -f conftest.err conftest.$ac_ext
3145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3146 rm -f conftest.err conftest.$ac_ext
3147 if $ac_preproc_ok; then
3159 echo "$as_me:$LINENO: result: $CPP" >&5
3160 echo "${ECHO_T}$CPP" >&6
3162 for ac_c_preproc_warn_flag in '' yes
3164 # Use a header file that comes with gcc, so configuring glibc
3165 # with a fresh cross-compiler works.
3166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3167 # <limits.h> exists even on freestanding compilers.
3168 # On the NeXT, cc -E runs the code through the compiler's parser,
3169 # not just through cpp. "Syntax error" is here to catch this case.
3170 cat >conftest.$ac_ext <<_ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3177 # include <limits.h>
3179 # include <assert.h>
3183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3186 grep -v '^ *+' conftest.er1 >conftest.err
3188 cat conftest.err >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } >/dev/null; then
3191 if test -s conftest.err; then
3192 ac_cpp_err=$ac_c_preproc_warn_flag
3193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3200 if test -z "$ac_cpp_err"; then
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3206 # Broken: fails on valid input.
3209 rm -f conftest.err conftest.$ac_ext
3211 # OK, works on sane cases. Now check whether non-existent headers
3212 # can be detected and how.
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3219 #include <ac_nonexistent.h>
3221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3224 grep -v '^ *+' conftest.er1 >conftest.err
3226 cat conftest.err >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } >/dev/null; then
3229 if test -s conftest.err; then
3230 ac_cpp_err=$ac_c_preproc_warn_flag
3231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3238 if test -z "$ac_cpp_err"; then
3239 # Broken: success on invalid input.
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3245 # Passes both tests.
3249 rm -f conftest.err conftest.$ac_ext
3252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3253 rm -f conftest.err conftest.$ac_ext
3254 if $ac_preproc_ok; then
3257 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3258 See \`config.log' for more details." >&5
3259 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3260 See \`config.log' for more details." >&2;}
3261 { (exit 1); exit 1; }; }
3265 ac_cpp='$CPP $CPPFLAGS'
3266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271 echo "$as_me:$LINENO: checking for egrep" >&5
3272 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3273 if test "${ac_cv_prog_egrep+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3277 then ac_cv_prog_egrep='grep -E'
3278 else ac_cv_prog_egrep='egrep'
3281 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3282 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3283 EGREP=$ac_cv_prog_egrep
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
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3310 rm -f conftest.$ac_objext
3311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3312 (eval $ac_compile) 2>conftest.er1
3314 grep -v '^ *+' conftest.er1 >conftest.err
3316 cat conftest.err >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } &&
3319 { ac_try='test -z "$ac_c_werror_flag"
3320 || test ! -s conftest.err'
3321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; } &&
3326 { ac_try='test -s conftest.$ac_objext'
3327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; }; then
3332 ac_cv_header_stdc=yes
3334 echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3337 ac_cv_header_stdc=no
3339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3341 if test $ac_cv_header_stdc = yes; then
3342 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3343 cat >conftest.$ac_ext <<_ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3353 $EGREP "memchr" >/dev/null 2>&1; then
3356 ac_cv_header_stdc=no
3362 if test $ac_cv_header_stdc = yes; then
3363 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3364 cat >conftest.$ac_ext <<_ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h. */
3373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3374 $EGREP "free" >/dev/null 2>&1; then
3377 ac_cv_header_stdc=no
3383 if test $ac_cv_header_stdc = yes; then
3384 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3385 if test "$cross_compiling" = yes; then
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3395 #if ((' ' & 0x0FF) == 0x020)
3396 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3397 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3399 # define ISLOWER(c) \
3400 (('a' <= (c) && (c) <= 'i') \
3401 || ('j' <= (c) && (c) <= 'r') \
3402 || ('s' <= (c) && (c) <= 'z'))
3403 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3406 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3411 for (i = 0; i < 256; i++)
3412 if (XOR (islower (i), ISLOWER (i))
3413 || toupper (i) != TOUPPER (i))
3418 rm -f conftest$ac_exeext
3419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3420 (eval $ac_link) 2>&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); }; }; then
3431 echo "$as_me: program exited with status $ac_status" >&5
3432 echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3436 ac_cv_header_stdc=no
3438 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3442 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3443 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3444 if test $ac_cv_header_stdc = yes; then
3446 cat >>confdefs.h <<\_ACEOF
3447 #define STDC_HEADERS 1
3452 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3462 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3463 inttypes.h stdint.h unistd.h
3465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3466 echo "$as_me:$LINENO: checking for $ac_header" >&5
3467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 cat >conftest.$ac_ext <<_ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3477 $ac_includes_default
3479 #include <$ac_header>
3481 rm -f conftest.$ac_objext
3482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3483 (eval $ac_compile) 2>conftest.er1
3485 grep -v '^ *+' conftest.er1 >conftest.err
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } &&
3490 { ac_try='test -z "$ac_c_werror_flag"
3491 || test ! -s conftest.err'
3492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; } &&
3497 { ac_try='test -s conftest.$ac_objext'
3498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; }; then
3503 eval "$as_ac_Header=yes"
3505 echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3508 eval "$as_ac_Header=no"
3510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3515 cat >>confdefs.h <<_ACEOF
3516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3525 if test "$ac_cv_prog_cc_stdc" != no; then
3528 U=_ ANSI2KNR=./ansi2knr
3530 # Ensure some checks needed by ansi2knr itself.
3533 for ac_header in string.h
3535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3537 echo "$as_me:$LINENO: checking for $ac_header" >&5
3538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3545 # Is the header compilable?
3546 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3548 cat >conftest.$ac_ext <<_ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3554 $ac_includes_default
3555 #include <$ac_header>
3557 rm -f conftest.$ac_objext
3558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3559 (eval $ac_compile) 2>conftest.er1
3561 grep -v '^ *+' conftest.er1 >conftest.err
3563 cat conftest.err >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } &&
3566 { ac_try='test -z "$ac_c_werror_flag"
3567 || test ! -s conftest.err'
3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; } &&
3573 { ac_try='test -s conftest.$ac_objext'
3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; }; then
3579 ac_header_compiler=yes
3581 echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3584 ac_header_compiler=no
3586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3587 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3588 echo "${ECHO_T}$ac_header_compiler" >&6
3590 # Is the header present?
3591 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3593 cat >conftest.$ac_ext <<_ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3599 #include <$ac_header>
3601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3604 grep -v '^ *+' conftest.er1 >conftest.err
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } >/dev/null; then
3609 if test -s conftest.err; then
3610 ac_cpp_err=$ac_c_preproc_warn_flag
3611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3618 if test -z "$ac_cpp_err"; then
3619 ac_header_preproc=yes
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3624 ac_header_preproc=no
3626 rm -f conftest.err conftest.$ac_ext
3627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3628 echo "${ECHO_T}$ac_header_preproc" >&6
3630 # So? What about this header?
3631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3637 ac_header_preproc=yes
3640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3654 ## ------------------------------------------ ##
3655 ## Report this to the AC_PACKAGE_NAME lists. ##
3656 ## ------------------------------------------ ##
3659 sed "s/^/$as_me: WARNING: /" >&2
3662 echo "$as_me:$LINENO: checking for $ac_header" >&5
3663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 eval "$as_ac_Header=\$ac_header_preproc"
3669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3674 cat >>confdefs.h <<_ACEOF
3675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3683 if test "x$U" != "x"; then
3684 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3685 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3686 { (exit 1); exit 1; }; }
3688 echo "$as_me:$LINENO: checking for inline" >&5
3689 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3690 if test "${ac_cv_c_inline+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 for ac_kw in inline __inline__ __inline; do
3695 cat >conftest.$ac_ext <<_ACEOF
3698 cat confdefs.h >>conftest.$ac_ext
3699 cat >>conftest.$ac_ext <<_ACEOF
3700 /* end confdefs.h. */
3703 static $ac_kw foo_t static_foo () {return 0; }
3704 $ac_kw foo_t foo () {return 0; }
3708 rm -f conftest.$ac_objext
3709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3710 (eval $ac_compile) 2>conftest.er1
3712 grep -v '^ *+' conftest.er1 >conftest.err
3714 cat conftest.err >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } &&
3717 { ac_try='test -z "$ac_c_werror_flag"
3718 || test ! -s conftest.err'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; } &&
3724 { ac_try='test -s conftest.$ac_objext'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3730 ac_cv_c_inline=$ac_kw; break
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3740 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3741 echo "${ECHO_T}$ac_cv_c_inline" >&6
3744 case $ac_cv_c_inline in
3747 case $ac_cv_c_inline in
3749 *) ac_val=$ac_cv_c_inline;;
3751 cat >>confdefs.h <<_ACEOF
3753 #define inline $ac_val
3759 # Find a good install program. We prefer a C program (faster),
3760 # so one script is as good as another. But avoid the broken or
3761 # incompatible versions:
3762 # SysV /etc/install, /usr/sbin/install
3763 # SunOS /usr/etc/install
3764 # IRIX /sbin/install
3766 # AmigaOS /C/install, which installs bootblocks on floppy discs
3767 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3768 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3769 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3770 # OS/2's system install, which has a completely different semantic
3771 # ./install, which can be erroneously created by make from ./install.sh.
3772 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3773 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3774 if test -z "$INSTALL"; then
3775 if test "${ac_cv_path_install+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 test -z "$as_dir" && as_dir=.
3783 # Account for people who put trailing slashes in PATH elements.
3785 ./ | .// | /cC/* | \
3786 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3787 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3790 # OSF1 and SCO ODT 3.0 have their own names for install.
3791 # Don't use installbsd from OSF since it installs stuff as root
3793 for ac_prog in ginstall scoinst install; do
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3796 if test $ac_prog = install &&
3797 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3798 # AIX install. It has an incompatible calling convention.
3800 elif test $ac_prog = install &&
3801 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3802 # program-specific install script used by HP pwplus--don't use.
3805 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3817 if test "${ac_cv_path_install+set}" = set; then
3818 INSTALL=$ac_cv_path_install
3820 # As a last resort, use the slow shell script. We don't cache a
3821 # path for INSTALL within a source directory, because that will
3822 # break other packages using the cache if that directory is
3823 # removed, or if the path is relative.
3824 INSTALL=$ac_install_sh
3827 echo "$as_me:$LINENO: result: $INSTALL" >&5
3828 echo "${ECHO_T}$INSTALL" >&6
3830 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3831 # It thinks the first close brace ends the variable substitution.
3832 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3834 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3836 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3838 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3839 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3840 if test "${ac_cv_header_stdc+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 cat >conftest.$ac_ext <<_ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3862 rm -f conftest.$ac_objext
3863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3864 (eval $ac_compile) 2>conftest.er1
3866 grep -v '^ *+' conftest.er1 >conftest.err
3868 cat conftest.err >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } &&
3871 { ac_try='test -z "$ac_c_werror_flag"
3872 || test ! -s conftest.err'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; } &&
3878 { ac_try='test -s conftest.$ac_objext'
3879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; }; then
3884 ac_cv_header_stdc=yes
3886 echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3889 ac_cv_header_stdc=no
3891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3893 if test $ac_cv_header_stdc = yes; then
3894 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3895 cat >conftest.$ac_ext <<_ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3905 $EGREP "memchr" >/dev/null 2>&1; then
3908 ac_cv_header_stdc=no
3914 if test $ac_cv_header_stdc = yes; then
3915 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3916 cat >conftest.$ac_ext <<_ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h. */
3925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3926 $EGREP "free" >/dev/null 2>&1; then
3929 ac_cv_header_stdc=no
3935 if test $ac_cv_header_stdc = yes; then
3936 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3937 if test "$cross_compiling" = yes; then
3940 cat >conftest.$ac_ext <<_ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3947 #if ((' ' & 0x0FF) == 0x020)
3948 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3949 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3951 # define ISLOWER(c) \
3952 (('a' <= (c) && (c) <= 'i') \
3953 || ('j' <= (c) && (c) <= 'r') \
3954 || ('s' <= (c) && (c) <= 'z'))
3955 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3958 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3963 for (i = 0; i < 256; i++)
3964 if (XOR (islower (i), ISLOWER (i))
3965 || toupper (i) != TOUPPER (i))
3970 rm -f conftest$ac_exeext
3971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3972 (eval $ac_link) 2>&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; }; then
3983 echo "$as_me: program exited with status $ac_status" >&5
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3988 ac_cv_header_stdc=no
3990 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3994 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3995 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3996 if test $ac_cv_header_stdc = yes; then
3998 cat >>confdefs.h <<\_ACEOF
3999 #define STDC_HEADERS 1
4009 for ac_header in unistd.h locale.h termios.h linux/termios.h sys/ioctl.h
4011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4013 echo "$as_me:$LINENO: checking for $ac_header" >&5
4014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4021 # Is the header compilable?
4022 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4024 cat >conftest.$ac_ext <<_ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4030 $ac_includes_default
4031 #include <$ac_header>
4033 rm -f conftest.$ac_objext
4034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>conftest.er1
4037 grep -v '^ *+' conftest.er1 >conftest.err
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_c_werror_flag"
4043 || test ! -s conftest.err'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; } &&
4049 { ac_try='test -s conftest.$ac_objext'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
4055 ac_header_compiler=yes
4057 echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4060 ac_header_compiler=no
4062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4064 echo "${ECHO_T}$ac_header_compiler" >&6
4066 # Is the header present?
4067 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4069 cat >conftest.$ac_ext <<_ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4075 #include <$ac_header>
4077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4080 grep -v '^ *+' conftest.er1 >conftest.err
4082 cat conftest.err >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); } >/dev/null; then
4085 if test -s conftest.err; then
4086 ac_cpp_err=$ac_c_preproc_warn_flag
4087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4094 if test -z "$ac_cpp_err"; then
4095 ac_header_preproc=yes
4097 echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4100 ac_header_preproc=no
4102 rm -f conftest.err conftest.$ac_ext
4103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4104 echo "${ECHO_T}$ac_header_preproc" >&6
4106 # So? What about this header?
4107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4113 ac_header_preproc=yes
4116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4123 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4130 ## ------------------------------------------ ##
4131 ## Report this to the AC_PACKAGE_NAME lists. ##
4132 ## ------------------------------------------ ##
4135 sed "s/^/$as_me: WARNING: /" >&2
4138 echo "$as_me:$LINENO: checking for $ac_header" >&5
4139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 eval "$as_ac_Header=\$ac_header_preproc"
4145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4150 cat >>confdefs.h <<_ACEOF
4151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4158 if test "${ac_cv_header_stdarg_h+set}" = set; then
4159 echo "$as_me:$LINENO: checking for stdarg.h" >&5
4160 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
4161 if test "${ac_cv_header_stdarg_h+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
4165 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
4167 # Is the header compilable?
4168 echo "$as_me:$LINENO: checking stdarg.h usability" >&5
4169 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
4170 cat >conftest.$ac_ext <<_ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h. */
4176 $ac_includes_default
4179 rm -f conftest.$ac_objext
4180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4181 (eval $ac_compile) 2>conftest.er1
4183 grep -v '^ *+' conftest.er1 >conftest.err
4185 cat conftest.err >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } &&
4188 { ac_try='test -z "$ac_c_werror_flag"
4189 || test ! -s conftest.err'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try='test -s conftest.$ac_objext'
4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_header_compiler=yes
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4206 ac_header_compiler=no
4208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4210 echo "${ECHO_T}$ac_header_compiler" >&6
4212 # Is the header present?
4213 echo "$as_me:$LINENO: checking stdarg.h presence" >&5
4214 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
4215 cat >conftest.$ac_ext <<_ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4226 grep -v '^ *+' conftest.er1 >conftest.err
4228 cat conftest.err >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } >/dev/null; then
4231 if test -s conftest.err; then
4232 ac_cpp_err=$ac_c_preproc_warn_flag
4233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4240 if test -z "$ac_cpp_err"; then
4241 ac_header_preproc=yes
4243 echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4246 ac_header_preproc=no
4248 rm -f conftest.err conftest.$ac_ext
4249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4250 echo "${ECHO_T}$ac_header_preproc" >&6
4252 # So? What about this header?
4253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4255 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
4256 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4257 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
4258 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
4259 ac_header_preproc=yes
4262 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
4263 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
4264 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
4265 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
4266 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
4267 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
4268 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
4269 echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
4270 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
4271 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
4272 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
4273 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
4276 ## ------------------------------------------ ##
4277 ## Report this to the AC_PACKAGE_NAME lists. ##
4278 ## ------------------------------------------ ##
4281 sed "s/^/$as_me: WARNING: /" >&2
4284 echo "$as_me:$LINENO: checking for stdarg.h" >&5
4285 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
4286 if test "${ac_cv_header_stdarg_h+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 ac_cv_header_stdarg_h=$ac_header_preproc
4291 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
4292 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
4295 if test $ac_cv_header_stdarg_h = yes; then
4297 cat >>confdefs.h <<\_ACEOF
4298 #define HAVE_STDARG_H 1
4302 { { echo "$as_me:$LINENO: error: *** stdarg.h is missing on your system ***" >&5
4303 echo "$as_me: error: *** stdarg.h is missing on your system ***" >&2;}
4304 { (exit 1); exit 1; }; }
4308 echo "$as_me:$LINENO: checking for working strcoll" >&5
4309 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
4310 if test "${ac_cv_func_strcoll_works+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 if test "$cross_compiling" = yes; then
4314 ac_cv_func_strcoll_works=no
4316 cat >conftest.$ac_ext <<_ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 $ac_includes_default
4326 exit (strcoll ("abc", "def") >= 0 ||
4327 strcoll ("ABC", "DEF") >= 0 ||
4328 strcoll ("123", "456") >= 0)
4333 rm -f conftest$ac_exeext
4334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4335 (eval $ac_link) 2>&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 ac_cv_func_strcoll_works=yes
4346 echo "$as_me: program exited with status $ac_status" >&5
4347 echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4351 ac_cv_func_strcoll_works=no
4353 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4356 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
4357 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
4358 if test $ac_cv_func_strcoll_works = yes; then
4360 cat >>confdefs.h <<\_ACEOF
4361 #define HAVE_STRCOLL 1
4367 for ac_func in setlocale
4369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4370 echo "$as_me:$LINENO: checking for $ac_func" >&5
4371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4372 if eval "test \"\${$as_ac_var+set}\" = set"; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 cat >conftest.$ac_ext <<_ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4383 #define $ac_func innocuous_$ac_func
4385 /* System header to define __stub macros and hopefully few prototypes,
4386 which can conflict with char $ac_func (); below.
4387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4388 <limits.h> exists even on freestanding compilers. */
4391 # include <limits.h>
4393 # include <assert.h>
4398 /* Override any gcc2 internal prototype to avoid an error. */
4403 /* We use char because int might match the return type of a gcc2
4404 builtin and then its argument prototype would still apply. */
4406 /* The GNU C library defines this for functions which it implements
4407 to always fail with ENOSYS. Some functions are actually named
4408 something starting with __ and the normal name is an alias. */
4409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4412 char (*f) () = $ac_func;
4421 return f != $ac_func;
4426 rm -f conftest.$ac_objext conftest$ac_exeext
4427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4428 (eval $ac_link) 2>conftest.er1
4430 grep -v '^ *+' conftest.er1 >conftest.err
4432 cat conftest.err >&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); } &&
4435 { ac_try='test -z "$ac_c_werror_flag"
4436 || test ! -s conftest.err'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; } &&
4442 { ac_try='test -s conftest$ac_exeext'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; }; then
4448 eval "$as_ac_var=yes"
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 eval "$as_ac_var=no"
4455 rm -f conftest.err conftest.$ac_objext \
4456 conftest$ac_exeext conftest.$ac_ext
4458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4460 if test `eval echo '${'$as_ac_var'}'` = yes; then
4461 cat >>confdefs.h <<_ACEOF
4462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4470 if test "${ac_cv_header_wchar_h+set}" = set; then
4471 echo "$as_me:$LINENO: checking for wchar.h" >&5
4472 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
4473 if test "${ac_cv_header_wchar_h+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
4477 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
4479 # Is the header compilable?
4480 echo "$as_me:$LINENO: checking wchar.h usability" >&5
4481 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
4482 cat >conftest.$ac_ext <<_ACEOF
4485 cat confdefs.h >>conftest.$ac_ext
4486 cat >>conftest.$ac_ext <<_ACEOF
4487 /* end confdefs.h. */
4488 $ac_includes_default
4491 rm -f conftest.$ac_objext
4492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4493 (eval $ac_compile) 2>conftest.er1
4495 grep -v '^ *+' conftest.er1 >conftest.err
4497 cat conftest.err >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } &&
4500 { ac_try='test -z "$ac_c_werror_flag"
4501 || test ! -s conftest.err'
4502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }; } &&
4507 { ac_try='test -s conftest.$ac_objext'
4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; }; then
4513 ac_header_compiler=yes
4515 echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4518 ac_header_compiler=no
4520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4522 echo "${ECHO_T}$ac_header_compiler" >&6
4524 # Is the header present?
4525 echo "$as_me:$LINENO: checking wchar.h presence" >&5
4526 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
4527 cat >conftest.$ac_ext <<_ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4538 grep -v '^ *+' conftest.er1 >conftest.err
4540 cat conftest.err >&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } >/dev/null; then
4543 if test -s conftest.err; then
4544 ac_cpp_err=$ac_c_preproc_warn_flag
4545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4552 if test -z "$ac_cpp_err"; then
4553 ac_header_preproc=yes
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4558 ac_header_preproc=no
4560 rm -f conftest.err conftest.$ac_ext
4561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4562 echo "${ECHO_T}$ac_header_preproc" >&6
4564 # So? What about this header?
4565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4567 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
4568 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4569 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
4570 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
4571 ac_header_preproc=yes
4574 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
4575 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
4576 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
4577 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
4578 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
4579 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
4580 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
4581 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
4582 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
4583 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
4584 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
4585 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
4588 ## ------------------------------------------ ##
4589 ## Report this to the AC_PACKAGE_NAME lists. ##
4590 ## ------------------------------------------ ##
4593 sed "s/^/$as_me: WARNING: /" >&2
4596 echo "$as_me:$LINENO: checking for wchar.h" >&5
4597 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
4598 if test "${ac_cv_header_wchar_h+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 ac_cv_header_wchar_h=$ac_header_preproc
4603 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
4604 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
4607 if test $ac_cv_header_wchar_h = yes; then
4611 cat >>confdefs.h <<\_ACEOF
4612 #define HAVE_WCHAR_H 1
4624 for ac_func in mbtowc wcwidth mbrtowc mbsinit
4626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4627 echo "$as_me:$LINENO: checking for $ac_func" >&5
4628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4629 if eval "test \"\${$as_ac_var+set}\" = set"; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 cat >conftest.$ac_ext <<_ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4640 #define $ac_func innocuous_$ac_func
4642 /* System header to define __stub macros and hopefully few prototypes,
4643 which can conflict with char $ac_func (); below.
4644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4645 <limits.h> exists even on freestanding compilers. */
4648 # include <limits.h>
4650 # include <assert.h>
4655 /* Override any gcc2 internal prototype to avoid an error. */
4660 /* We use char because int might match the return type of a gcc2
4661 builtin and then its argument prototype would still apply. */
4663 /* The GNU C library defines this for functions which it implements
4664 to always fail with ENOSYS. Some functions are actually named
4665 something starting with __ and the normal name is an alias. */
4666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4669 char (*f) () = $ac_func;
4678 return f != $ac_func;
4683 rm -f conftest.$ac_objext conftest$ac_exeext
4684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4685 (eval $ac_link) 2>conftest.er1
4687 grep -v '^ *+' conftest.er1 >conftest.err
4689 cat conftest.err >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } &&
4692 { ac_try='test -z "$ac_c_werror_flag"
4693 || test ! -s conftest.err'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; } &&
4699 { ac_try='test -s conftest$ac_exeext'
4700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; }; then
4705 eval "$as_ac_var=yes"
4707 echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4710 eval "$as_ac_var=no"
4712 rm -f conftest.err conftest.$ac_objext \
4713 conftest$ac_exeext conftest.$ac_ext
4715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4716 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4717 if test `eval echo '${'$as_ac_var'}'` = yes; then
4718 cat >>confdefs.h <<_ACEOF
4719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4727 echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
4728 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
4729 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 cat >conftest.$ac_ext <<_ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 $ac_includes_default
4743 char *p = (char *) wcwidth;
4750 rm -f conftest.$ac_objext
4751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4752 (eval $ac_compile) 2>conftest.er1
4754 grep -v '^ *+' conftest.er1 >conftest.err
4756 cat conftest.err >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } &&
4759 { ac_try='test -z "$ac_c_werror_flag"
4760 || test ! -s conftest.err'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; } &&
4766 { ac_try='test -s conftest.$ac_objext'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; }; then
4772 ac_cv_have_decl_wcwidth=yes
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4777 ac_cv_have_decl_wcwidth=no
4779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4781 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
4782 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
4783 if test $ac_cv_have_decl_wcwidth = yes; then
4785 cat >>confdefs.h <<_ACEOF
4786 #define HAVE_DECL_WCWIDTH 1
4791 cat >>confdefs.h <<_ACEOF
4792 #define HAVE_DECL_WCWIDTH 0
4799 echo "$as_me:$LINENO: checking for wchar_t" >&5
4800 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4801 if test "${ac_cv_type_wchar_t+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 cat >conftest.$ac_ext <<_ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4810 $ac_includes_default
4816 if (sizeof (wchar_t))
4822 rm -f conftest.$ac_objext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>conftest.er1
4826 grep -v '^ *+' conftest.er1 >conftest.err
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try='test -z "$ac_c_werror_flag"
4832 || test ! -s conftest.err'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; } &&
4838 { ac_try='test -s conftest.$ac_objext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_cv_type_wchar_t=yes
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4849 ac_cv_type_wchar_t=no
4851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4853 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
4854 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
4855 if test $ac_cv_type_wchar_t = yes; then
4862 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
4863 ac_widec_possible=yes
4865 ac_widec_possible=no
4869 abook_cv_curses=/usr
4871 # Check whether --with-curses or --without-curses was given.
4872 if test "${with_curses+set}" = set; then
4873 withval="$with_curses"
4874 if test $withval != yes; then
4875 abook_cv_curses=$withval
4877 if test x$abook_cv_curses != x/usr; then
4878 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
4879 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
4883 echo "$as_me:$LINENO: checking for initscr in -lncursesw" >&5
4884 echo $ECHO_N "checking for initscr in -lncursesw... $ECHO_C" >&6
4885 if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 ac_check_lib_save_LIBS=$LIBS
4889 LIBS="-lncursesw $LIBS"
4890 cat >conftest.$ac_ext <<_ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4897 /* Override any gcc2 internal prototype to avoid an error. */
4901 /* We use char because int might match the return type of a gcc2
4902 builtin and then its argument prototype would still apply. */
4912 rm -f conftest.$ac_objext conftest$ac_exeext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4914 (eval $ac_link) 2>conftest.er1
4916 grep -v '^ *+' conftest.er1 >conftest.err
4918 cat conftest.err >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); } &&
4921 { ac_try='test -z "$ac_c_werror_flag"
4922 || test ! -s conftest.err'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; } &&
4928 { ac_try='test -s conftest$ac_exeext'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; }; then
4934 ac_cv_lib_ncursesw_initscr=yes
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4939 ac_cv_lib_ncursesw_initscr=no
4941 rm -f conftest.err conftest.$ac_objext \
4942 conftest$ac_exeext conftest.$ac_ext
4943 LIBS=$ac_check_lib_save_LIBS
4945 echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_initscr" >&5
4946 echo "${ECHO_T}$ac_cv_lib_ncursesw_initscr" >&6
4947 if test $ac_cv_lib_ncursesw_initscr = yes; then
4948 LIBS="$LIBS -lncursesw"
4949 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
4950 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
4953 for ac_header in ncurses.h
4955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4957 echo "$as_me:$LINENO: checking for $ac_header" >&5
4958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4965 # Is the header compilable?
4966 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4968 cat >conftest.$ac_ext <<_ACEOF
4971 cat confdefs.h >>conftest.$ac_ext
4972 cat >>conftest.$ac_ext <<_ACEOF
4973 /* end confdefs.h. */
4974 $ac_includes_default
4975 #include <$ac_header>
4977 rm -f conftest.$ac_objext
4978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4979 (eval $ac_compile) 2>conftest.er1
4981 grep -v '^ *+' conftest.er1 >conftest.err
4983 cat conftest.err >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } &&
4986 { ac_try='test -z "$ac_c_werror_flag"
4987 || test ! -s conftest.err'
4988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; } &&
4993 { ac_try='test -s conftest.$ac_objext'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; }; then
4999 ac_header_compiler=yes
5001 echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5004 ac_header_compiler=no
5006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5008 echo "${ECHO_T}$ac_header_compiler" >&6
5010 # Is the header present?
5011 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5013 cat >conftest.$ac_ext <<_ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5019 #include <$ac_header>
5021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5024 grep -v '^ *+' conftest.er1 >conftest.err
5026 cat conftest.err >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } >/dev/null; then
5029 if test -s conftest.err; then
5030 ac_cpp_err=$ac_c_preproc_warn_flag
5031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5038 if test -z "$ac_cpp_err"; then
5039 ac_header_preproc=yes
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5044 ac_header_preproc=no
5046 rm -f conftest.err conftest.$ac_ext
5047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5048 echo "${ECHO_T}$ac_header_preproc" >&6
5050 # So? What about this header?
5051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5057 ac_header_preproc=yes
5060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5063 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5067 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5074 ## ------------------------------------------ ##
5075 ## Report this to the AC_PACKAGE_NAME lists. ##
5076 ## ------------------------------------------ ##
5079 sed "s/^/$as_me: WARNING: /" >&2
5082 echo "$as_me:$LINENO: checking for $ac_header" >&5
5083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5087 eval "$as_ac_Header=\$ac_header_preproc"
5089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5094 cat >>confdefs.h <<_ACEOF
5095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5104 ac_widec_possible=no
5105 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
5106 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
5107 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 ac_check_lib_save_LIBS=$LIBS
5111 LIBS="-lncurses $LIBS"
5112 cat >conftest.$ac_ext <<_ACEOF
5115 cat confdefs.h >>conftest.$ac_ext
5116 cat >>conftest.$ac_ext <<_ACEOF
5117 /* end confdefs.h. */
5119 /* Override any gcc2 internal prototype to avoid an error. */
5123 /* We use char because int might match the return type of a gcc2
5124 builtin and then its argument prototype would still apply. */
5134 rm -f conftest.$ac_objext conftest$ac_exeext
5135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5136 (eval $ac_link) 2>conftest.er1
5138 grep -v '^ *+' conftest.er1 >conftest.err
5140 cat conftest.err >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); } &&
5143 { ac_try='test -z "$ac_c_werror_flag"
5144 || test ! -s conftest.err'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; } &&
5150 { ac_try='test -s conftest$ac_exeext'
5151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); }; }; then
5156 ac_cv_lib_ncurses_initscr=yes
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5161 ac_cv_lib_ncurses_initscr=no
5163 rm -f conftest.err conftest.$ac_objext \
5164 conftest$ac_exeext conftest.$ac_ext
5165 LIBS=$ac_check_lib_save_LIBS
5167 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
5168 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
5169 if test $ac_cv_lib_ncurses_initscr = yes; then
5170 LIBS="$LIBS -lncurses"
5171 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
5172 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
5175 for ac_header in ncurses.h
5177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5179 echo "$as_me:$LINENO: checking for $ac_header" >&5
5180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5187 # Is the header compilable?
5188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5190 cat >conftest.$ac_ext <<_ACEOF
5193 cat confdefs.h >>conftest.$ac_ext
5194 cat >>conftest.$ac_ext <<_ACEOF
5195 /* end confdefs.h. */
5196 $ac_includes_default
5197 #include <$ac_header>
5199 rm -f conftest.$ac_objext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201 (eval $ac_compile) 2>conftest.er1
5203 grep -v '^ *+' conftest.er1 >conftest.err
5205 cat conftest.err >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } &&
5208 { ac_try='test -z "$ac_c_werror_flag"
5209 || test ! -s conftest.err'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; } &&
5215 { ac_try='test -s conftest.$ac_objext'
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; }; then
5221 ac_header_compiler=yes
5223 echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5226 ac_header_compiler=no
5228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5230 echo "${ECHO_T}$ac_header_compiler" >&6
5232 # Is the header present?
5233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5235 cat >conftest.$ac_ext <<_ACEOF
5238 cat confdefs.h >>conftest.$ac_ext
5239 cat >>conftest.$ac_ext <<_ACEOF
5240 /* end confdefs.h. */
5241 #include <$ac_header>
5243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5246 grep -v '^ *+' conftest.er1 >conftest.err
5248 cat conftest.err >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } >/dev/null; then
5251 if test -s conftest.err; then
5252 ac_cpp_err=$ac_c_preproc_warn_flag
5253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5260 if test -z "$ac_cpp_err"; then
5261 ac_header_preproc=yes
5263 echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5266 ac_header_preproc=no
5268 rm -f conftest.err conftest.$ac_ext
5269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5270 echo "${ECHO_T}$ac_header_preproc" >&6
5272 # So? What about this header?
5273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5279 ac_header_preproc=yes
5282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5296 ## ------------------------------------------ ##
5297 ## Report this to the AC_PACKAGE_NAME lists. ##
5298 ## ------------------------------------------ ##
5301 sed "s/^/$as_me: WARNING: /" >&2
5304 echo "$as_me:$LINENO: checking for $ac_header" >&5
5305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5309 eval "$as_ac_Header=\$ac_header_preproc"
5311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5316 cat >>confdefs.h <<_ACEOF
5317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5326 echo "$as_me:$LINENO: checking for initscr" >&5
5327 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5328 if test "${ac_cv_func_initscr+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 cat >conftest.$ac_ext <<_ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5337 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
5338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5339 #define initscr innocuous_initscr
5341 /* System header to define __stub macros and hopefully few prototypes,
5342 which can conflict with char initscr (); below.
5343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5344 <limits.h> exists even on freestanding compilers. */
5347 # include <limits.h>
5349 # include <assert.h>
5354 /* Override any gcc2 internal prototype to avoid an error. */
5359 /* We use char because int might match the return type of a gcc2
5360 builtin and then its argument prototype would still apply. */
5362 /* The GNU C library defines this for functions which it implements
5363 to always fail with ENOSYS. Some functions are actually named
5364 something starting with __ and the normal name is an alias. */
5365 #if defined (__stub_initscr) || defined (__stub___initscr)
5368 char (*f) () = initscr;
5377 return f != initscr;
5382 rm -f conftest.$ac_objext conftest$ac_exeext
5383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5384 (eval $ac_link) 2>conftest.er1
5386 grep -v '^ *+' conftest.er1 >conftest.err
5388 cat conftest.err >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } &&
5391 { ac_try='test -z "$ac_c_werror_flag"
5392 || test ! -s conftest.err'
5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }; } &&
5398 { ac_try='test -s conftest$ac_exeext'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; }; then
5404 ac_cv_func_initscr=yes
5406 echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.$ac_ext >&5
5409 ac_cv_func_initscr=no
5411 rm -f conftest.err conftest.$ac_objext \
5412 conftest$ac_exeext conftest.$ac_ext
5414 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
5415 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5416 if test $ac_cv_func_initscr = yes; then
5420 case $host_os in #(vi
5422 echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
5423 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5424 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 ac_check_lib_save_LIBS=$LIBS
5428 LIBS="-lmytinfo $LIBS"
5429 cat >conftest.$ac_ext <<_ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5436 /* Override any gcc2 internal prototype to avoid an error. */
5440 /* We use char because int might match the return type of a gcc2
5441 builtin and then its argument prototype would still apply. */
5451 rm -f conftest.$ac_objext conftest$ac_exeext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5453 (eval $ac_link) 2>conftest.er1
5455 grep -v '^ *+' conftest.er1 >conftest.err
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } &&
5460 { ac_try='test -z "$ac_c_werror_flag"
5461 || test ! -s conftest.err'
5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; } &&
5467 { ac_try='test -s conftest$ac_exeext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 ac_cv_lib_mytinfo_tgoto=yes
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5478 ac_cv_lib_mytinfo_tgoto=no
5480 rm -f conftest.err conftest.$ac_objext \
5481 conftest$ac_exeext conftest.$ac_ext
5482 LIBS=$ac_check_lib_save_LIBS
5484 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
5485 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5486 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5487 LIBS="-lmytinfo $LIBS"
5492 echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
5493 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5494 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5497 ac_check_lib_save_LIBS=$LIBS
5498 LIBS="-lcur_colr $LIBS"
5499 cat >conftest.$ac_ext <<_ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5506 /* Override any gcc2 internal prototype to avoid an error. */
5510 /* We use char because int might match the return type of a gcc2
5511 builtin and then its argument prototype would still apply. */
5521 rm -f conftest.$ac_objext conftest$ac_exeext
5522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5523 (eval $ac_link) 2>conftest.er1
5525 grep -v '^ *+' conftest.er1 >conftest.err
5527 cat conftest.err >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } &&
5530 { ac_try='test -z "$ac_c_werror_flag"
5531 || test ! -s conftest.err'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; } &&
5537 { ac_try='test -s conftest$ac_exeext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5543 ac_cv_lib_cur_colr_initscr=yes
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5548 ac_cv_lib_cur_colr_initscr=no
5550 rm -f conftest.err conftest.$ac_objext \
5551 conftest$ac_exeext conftest.$ac_ext
5552 LIBS=$ac_check_lib_save_LIBS
5554 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
5555 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5556 if test $ac_cv_lib_cur_colr_initscr = yes; then
5558 LIBS="-lcur_colr $LIBS"
5559 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
5560 ac_cv_func_initscr=yes
5564 echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
5565 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5566 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 ac_check_lib_save_LIBS=$LIBS
5570 LIBS="-lHcurses $LIBS"
5571 cat >conftest.$ac_ext <<_ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5578 /* Override any gcc2 internal prototype to avoid an error. */
5582 /* We use char because int might match the return type of a gcc2
5583 builtin and then its argument prototype would still apply. */
5593 rm -f conftest.$ac_objext conftest$ac_exeext
5594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5595 (eval $ac_link) 2>conftest.er1
5597 grep -v '^ *+' conftest.er1 >conftest.err
5599 cat conftest.err >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } &&
5602 { ac_try='test -z "$ac_c_werror_flag"
5603 || test ! -s conftest.err'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; } &&
5609 { ac_try='test -s conftest$ac_exeext'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 ac_cv_lib_Hcurses_initscr=yes
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5620 ac_cv_lib_Hcurses_initscr=no
5622 rm -f conftest.err conftest.$ac_objext \
5623 conftest$ac_exeext conftest.$ac_ext
5624 LIBS=$ac_check_lib_save_LIBS
5626 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
5627 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5628 if test $ac_cv_lib_Hcurses_initscr = yes; then
5630 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5631 LIBS="-lHcurses $LIBS"
5632 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
5633 ac_cv_func_initscr=yes
5640 linux*) # Suse Linux does not follow /usr/lib convention
5645 if test ".$With5lib" != ".no" ; then
5646 if test -d /usr/5lib ; then
5648 CPPFLAGS="$CPPFLAGS -I/usr/5include"
5649 LIBS="$LIBS -L/usr/5lib"
5653 if test ".$ac_cv_func_initscr" != .yes ; then
5654 cf_save_LIBS="$LIBS"
5658 # Check for library containing tgoto. Do this before curses library
5659 # because it may be needed to link the test-case for initscr.
5660 echo "$as_me:$LINENO: checking for tgoto" >&5
5661 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5662 if test "${ac_cv_func_tgoto+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 cat >conftest.$ac_ext <<_ACEOF
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h. */
5671 /* Define tgoto to an innocuous variant, in case <limits.h> declares tgoto.
5672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5673 #define tgoto innocuous_tgoto
5675 /* System header to define __stub macros and hopefully few prototypes,
5676 which can conflict with char tgoto (); below.
5677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5678 <limits.h> exists even on freestanding compilers. */
5681 # include <limits.h>
5683 # include <assert.h>
5688 /* Override any gcc2 internal prototype to avoid an error. */
5693 /* We use char because int might match the return type of a gcc2
5694 builtin and then its argument prototype would still apply. */
5696 /* The GNU C library defines this for functions which it implements
5697 to always fail with ENOSYS. Some functions are actually named
5698 something starting with __ and the normal name is an alias. */
5699 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5702 char (*f) () = tgoto;
5716 rm -f conftest.$ac_objext conftest$ac_exeext
5717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5718 (eval $ac_link) 2>conftest.er1
5720 grep -v '^ *+' conftest.er1 >conftest.err
5722 cat conftest.err >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } &&
5725 { ac_try='test -z "$ac_c_werror_flag"
5726 || test ! -s conftest.err'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; } &&
5732 { ac_try='test -s conftest$ac_exeext'
5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; }; then
5738 ac_cv_func_tgoto=yes
5740 echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5745 rm -f conftest.err conftest.$ac_objext \
5746 conftest$ac_exeext conftest.$ac_ext
5748 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
5749 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5750 if test $ac_cv_func_tgoto = yes; then
5751 cf_term_lib=predefined
5754 for cf_term_lib in termcap termlib unknown
5756 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5757 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
5758 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5759 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 ac_check_lib_save_LIBS=$LIBS
5763 LIBS="-l$cf_term_lib $LIBS"
5764 cat >conftest.$ac_ext <<_ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5771 /* Override any gcc2 internal prototype to avoid an error. */
5775 /* We use char because int might match the return type of a gcc2
5776 builtin and then its argument prototype would still apply. */
5786 rm -f conftest.$ac_objext conftest$ac_exeext
5787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5788 (eval $ac_link) 2>conftest.er1
5790 grep -v '^ *+' conftest.er1 >conftest.err
5792 cat conftest.err >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
5795 { ac_try='test -z "$ac_c_werror_flag"
5796 || test ! -s conftest.err'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; } &&
5802 { ac_try='test -s conftest$ac_exeext'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; }; then
5808 eval "$as_ac_Lib=yes"
5810 echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5813 eval "$as_ac_Lib=no"
5815 rm -f conftest.err conftest.$ac_objext \
5816 conftest$ac_exeext conftest.$ac_ext
5817 LIBS=$ac_check_lib_save_LIBS
5819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5820 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5821 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5830 # Check for library containing initscr
5831 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5832 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
5834 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5835 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
5836 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5837 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 ac_check_lib_save_LIBS=$LIBS
5841 LIBS="-l$cf_curs_lib $LIBS"
5842 cat >conftest.$ac_ext <<_ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5849 /* Override any gcc2 internal prototype to avoid an error. */
5853 /* We use char because int might match the return type of a gcc2
5854 builtin and then its argument prototype would still apply. */
5864 rm -f conftest.$ac_objext conftest$ac_exeext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5866 (eval $ac_link) 2>conftest.er1
5868 grep -v '^ *+' conftest.er1 >conftest.err
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -z "$ac_c_werror_flag"
5874 || test ! -s conftest.err'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try='test -s conftest$ac_exeext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 eval "$as_ac_Lib=yes"
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5891 eval "$as_ac_Lib=no"
5893 rm -f conftest.err conftest.$ac_objext \
5894 conftest$ac_exeext conftest.$ac_ext
5895 LIBS=$ac_check_lib_save_LIBS
5897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5898 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5899 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5904 test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
5905 echo "$as_me: error: no curses library found" >&2;}
5906 { (exit 1); exit 1; }; }
5908 LIBS="-l$cf_curs_lib $cf_save_LIBS"
5909 if test "$cf_term_lib" = unknown ; then
5910 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
5911 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5912 cat >conftest.$ac_ext <<_ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 #include <${cf_cv_ncurses_header-curses.h}>
5927 rm -f conftest.$ac_objext conftest$ac_exeext
5928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5929 (eval $ac_link) 2>conftest.er1
5931 grep -v '^ *+' conftest.er1 >conftest.err
5933 cat conftest.err >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); } &&
5936 { ac_try='test -z "$ac_c_werror_flag"
5937 || test ! -s conftest.err'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; } &&
5943 { ac_try='test -s conftest$ac_exeext'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5956 rm -f conftest.err conftest.$ac_objext \
5957 conftest$ac_exeext conftest.$ac_ext
5958 echo "$as_me:$LINENO: result: $cf_result" >&5
5959 echo "${ECHO_T}$cf_result" >&6
5960 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
5961 echo "$as_me: error: Cannot link curses library" >&2;}
5962 { (exit 1); exit 1; }; }
5963 elif test "$cf_term_lib" != predefined ; then
5964 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5965 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5966 cat >conftest.$ac_ext <<_ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 #include <${cf_cv_ncurses_header-curses.h}>
5976 initscr(); tgoto((char *)0, 0, 0);
5981 rm -f conftest.$ac_objext conftest$ac_exeext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5983 (eval $ac_link) 2>conftest.er1
5985 grep -v '^ *+' conftest.er1 >conftest.err
5987 cat conftest.err >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } &&
5990 { ac_try='test -z "$ac_c_werror_flag"
5991 || test ! -s conftest.err'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; } &&
5997 { ac_try='test -s conftest$ac_exeext'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
6005 echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6009 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
6010 cat >conftest.$ac_ext <<_ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6016 #include <${cf_cv_ncurses_header-curses.h}>
6025 rm -f conftest.$ac_objext conftest$ac_exeext
6026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6027 (eval $ac_link) 2>conftest.er1
6029 grep -v '^ *+' conftest.er1 >conftest.err
6031 cat conftest.err >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } &&
6034 { ac_try='test -z "$ac_c_werror_flag"
6035 || test ! -s conftest.err'
6036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; } &&
6041 { ac_try='test -s conftest$ac_exeext'
6042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }; }; then
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6054 rm -f conftest.err conftest.$ac_objext \
6055 conftest$ac_exeext conftest.$ac_ext
6058 rm -f conftest.err conftest.$ac_objext \
6059 conftest$ac_exeext conftest.$ac_ext
6060 echo "$as_me:$LINENO: result: $cf_result" >&5
6061 echo "${ECHO_T}$cf_result" >&6
6076 abook_cv_readline=/usr
6078 # Check whether --with-readline or --without-readline was given.
6079 if test "${with_readline+set}" = set; then
6080 withval="$with_readline"
6081 if test $withval != yes; then
6082 abook_cv_readline=$withval
6084 if test x$abook_cv_readline != x/usr; then
6085 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
6086 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
6091 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
6092 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
6093 if test "${ac_cv_lib_readline+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 for readline_lib in readline edit editline; do
6099 for termcap_lib in "" termcap curses ncurses; do
6100 if test -z "$termcap_lib"; then
6101 TRY_LIB="-l$readline_lib"
6103 TRY_LIB="-l$readline_lib -l$termcap_lib"
6105 LIBS="$ORIG_LIBS $TRY_LIB"
6106 cat >conftest.$ac_ext <<_ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6113 /* Override any gcc2 internal prototype to avoid an error. */
6117 /* We use char because int might match the return type of a gcc2
6118 builtin and then its argument prototype would still apply. */
6128 rm -f conftest.$ac_objext conftest$ac_exeext
6129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6130 (eval $ac_link) 2>conftest.er1
6132 grep -v '^ *+' conftest.er1 >conftest.err
6134 cat conftest.err >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } &&
6137 { ac_try='test -z "$ac_c_werror_flag"
6138 || test ! -s conftest.err'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; } &&
6144 { ac_try='test -s conftest$ac_exeext'
6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; }; then
6150 ac_cv_lib_readline="$TRY_LIB"
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6156 rm -f conftest.err conftest.$ac_objext \
6157 conftest$ac_exeext conftest.$ac_ext
6158 if test -n "$ac_cv_lib_readline"; then
6162 if test -n "$ac_cv_lib_readline"; then
6166 if test -z "$ac_cv_lib_readline"; then
6167 ac_cv_lib_readline="no"
6172 echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
6173 echo "${ECHO_T}$ac_cv_lib_readline" >&6
6175 if test "$ac_cv_lib_readline" != "no"; then
6176 LIBS="$LIBS $ac_cv_lib_readline"
6178 cat >>confdefs.h <<\_ACEOF
6179 #define HAVE_LIBREADLINE 1
6184 for ac_header in readline.h readline/readline.h
6186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6188 echo "$as_me:$LINENO: checking for $ac_header" >&5
6189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6196 # Is the header compilable?
6197 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6199 cat >conftest.$ac_ext <<_ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h. */
6205 $ac_includes_default
6206 #include <$ac_header>
6208 rm -f conftest.$ac_objext
6209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6210 (eval $ac_compile) 2>conftest.er1
6212 grep -v '^ *+' conftest.er1 >conftest.err
6214 cat conftest.err >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } &&
6217 { ac_try='test -z "$ac_c_werror_flag"
6218 || test ! -s conftest.err'
6219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; } &&
6224 { ac_try='test -s conftest.$ac_objext'
6225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); }; }; then
6230 ac_header_compiler=yes
6232 echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6235 ac_header_compiler=no
6237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6239 echo "${ECHO_T}$ac_header_compiler" >&6
6241 # Is the header present?
6242 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6244 cat >conftest.$ac_ext <<_ACEOF
6247 cat confdefs.h >>conftest.$ac_ext
6248 cat >>conftest.$ac_ext <<_ACEOF
6249 /* end confdefs.h. */
6250 #include <$ac_header>
6252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6255 grep -v '^ *+' conftest.er1 >conftest.err
6257 cat conftest.err >&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); } >/dev/null; then
6260 if test -s conftest.err; then
6261 ac_cpp_err=$ac_c_preproc_warn_flag
6262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6269 if test -z "$ac_cpp_err"; then
6270 ac_header_preproc=yes
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6275 ac_header_preproc=no
6277 rm -f conftest.err conftest.$ac_ext
6278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6279 echo "${ECHO_T}$ac_header_preproc" >&6
6281 # So? What about this header?
6282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6288 ac_header_preproc=yes
6291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6298 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6305 ## ------------------------------------------ ##
6306 ## Report this to the AC_PACKAGE_NAME lists. ##
6307 ## ------------------------------------------ ##
6310 sed "s/^/$as_me: WARNING: /" >&2
6313 echo "$as_me:$LINENO: checking for $ac_header" >&5
6314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 eval "$as_ac_Header=\$ac_header_preproc"
6320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6325 cat >>confdefs.h <<_ACEOF
6326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6333 echo "$as_me:$LINENO: checking whether readline supports history" >&5
6334 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
6335 if test "${ac_cv_lib_readline_history+set}" = set; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 ac_cv_lib_readline_history="no"
6340 cat >conftest.$ac_ext <<_ACEOF
6343 cat confdefs.h >>conftest.$ac_ext
6344 cat >>conftest.$ac_ext <<_ACEOF
6345 /* end confdefs.h. */
6347 /* Override any gcc2 internal prototype to avoid an error. */
6351 /* We use char because int might match the return type of a gcc2
6352 builtin and then its argument prototype would still apply. */
6353 char add_history ();
6362 rm -f conftest.$ac_objext conftest$ac_exeext
6363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6364 (eval $ac_link) 2>conftest.er1
6366 grep -v '^ *+' conftest.er1 >conftest.err
6368 cat conftest.err >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } &&
6371 { ac_try='test -z "$ac_c_werror_flag"
6372 || test ! -s conftest.err'
6373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; } &&
6378 { ac_try='test -s conftest$ac_exeext'
6379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; }; then
6384 ac_cv_lib_readline_history="yes"
6386 echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6390 rm -f conftest.err conftest.$ac_objext \
6391 conftest$ac_exeext conftest.$ac_ext
6394 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
6395 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6
6396 if test "$ac_cv_lib_readline_history" = "yes"; then
6398 cat >>confdefs.h <<\_ACEOF
6399 #define HAVE_READLINE_HISTORY 1
6404 for ac_header in history.h readline/history.h
6406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408 echo "$as_me:$LINENO: checking for $ac_header" >&5
6409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6416 # Is the header compilable?
6417 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6419 cat >conftest.$ac_ext <<_ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6425 $ac_includes_default
6426 #include <$ac_header>
6428 rm -f conftest.$ac_objext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>conftest.er1
6432 grep -v '^ *+' conftest.er1 >conftest.err
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try='test -z "$ac_c_werror_flag"
6438 || test ! -s conftest.err'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try='test -s conftest.$ac_objext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_header_compiler=yes
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6455 ac_header_compiler=no
6457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6459 echo "${ECHO_T}$ac_header_compiler" >&6
6461 # Is the header present?
6462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6464 cat >conftest.$ac_ext <<_ACEOF
6467 cat confdefs.h >>conftest.$ac_ext
6468 cat >>conftest.$ac_ext <<_ACEOF
6469 /* end confdefs.h. */
6470 #include <$ac_header>
6472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6475 grep -v '^ *+' conftest.er1 >conftest.err
6477 cat conftest.err >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } >/dev/null; then
6480 if test -s conftest.err; then
6481 ac_cpp_err=$ac_c_preproc_warn_flag
6482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6489 if test -z "$ac_cpp_err"; then
6490 ac_header_preproc=yes
6492 echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6495 ac_header_preproc=no
6497 rm -f conftest.err conftest.$ac_ext
6498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6499 echo "${ECHO_T}$ac_header_preproc" >&6
6501 # So? What about this header?
6502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6508 ac_header_preproc=yes
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6525 ## ------------------------------------------ ##
6526 ## Report this to the AC_PACKAGE_NAME lists. ##
6527 ## ------------------------------------------ ##
6530 sed "s/^/$as_me: WARNING: /" >&2
6533 echo "$as_me:$LINENO: checking for $ac_header" >&5
6534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 eval "$as_ac_Header=\$ac_header_preproc"
6540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6545 cat >>confdefs.h <<_ACEOF
6546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6558 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
6559 { { echo "$as_me:$LINENO: error: *** readline library not found or it doesn't support history ***" >&5
6560 echo "$as_me: error: *** readline library not found or it doesn't support history ***" >&2;}
6561 { (exit 1); exit 1; }; }
6565 if test x$ac_widec_possible = xyes; then
6567 cat >>confdefs.h <<\_ACEOF
6568 #define HANDLE_MULTIBYTE 1
6574 for ac_func in resizeterm
6576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6577 echo "$as_me:$LINENO: checking for $ac_func" >&5
6578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6579 if eval "test \"\${$as_ac_var+set}\" = set"; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 cat >conftest.$ac_ext <<_ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6590 #define $ac_func innocuous_$ac_func
6592 /* System header to define __stub macros and hopefully few prototypes,
6593 which can conflict with char $ac_func (); below.
6594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6595 <limits.h> exists even on freestanding compilers. */
6598 # include <limits.h>
6600 # include <assert.h>
6605 /* Override any gcc2 internal prototype to avoid an error. */
6610 /* We use char because int might match the return type of a gcc2
6611 builtin and then its argument prototype would still apply. */
6613 /* The GNU C library defines this for functions which it implements
6614 to always fail with ENOSYS. Some functions are actually named
6615 something starting with __ and the normal name is an alias. */
6616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6619 char (*f) () = $ac_func;
6628 return f != $ac_func;
6633 rm -f conftest.$ac_objext conftest$ac_exeext
6634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6635 (eval $ac_link) 2>conftest.er1
6637 grep -v '^ *+' conftest.er1 >conftest.err
6639 cat conftest.err >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } &&
6642 { ac_try='test -z "$ac_c_werror_flag"
6643 || test ! -s conftest.err'
6644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; } &&
6649 { ac_try='test -s conftest$ac_exeext'
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; }; then
6655 eval "$as_ac_var=yes"
6657 echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6660 eval "$as_ac_var=no"
6662 rm -f conftest.err conftest.$ac_objext \
6663 conftest$ac_exeext conftest.$ac_ext
6665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6667 if test `eval echo '${'$as_ac_var'}'` = yes; then
6668 cat >>confdefs.h <<_ACEOF
6669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6678 for ac_func in snprintf vsnprintf
6680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6681 echo "$as_me:$LINENO: checking for $ac_func" >&5
6682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6683 if eval "test \"\${$as_ac_var+set}\" = set"; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 cat >conftest.$ac_ext <<_ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6694 #define $ac_func innocuous_$ac_func
6696 /* System header to define __stub macros and hopefully few prototypes,
6697 which can conflict with char $ac_func (); below.
6698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6699 <limits.h> exists even on freestanding compilers. */
6702 # include <limits.h>
6704 # include <assert.h>
6709 /* Override any gcc2 internal prototype to avoid an error. */
6714 /* We use char because int might match the return type of a gcc2
6715 builtin and then its argument prototype would still apply. */
6717 /* The GNU C library defines this for functions which it implements
6718 to always fail with ENOSYS. Some functions are actually named
6719 something starting with __ and the normal name is an alias. */
6720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6723 char (*f) () = $ac_func;
6732 return f != $ac_func;
6737 rm -f conftest.$ac_objext conftest$ac_exeext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6739 (eval $ac_link) 2>conftest.er1
6741 grep -v '^ *+' conftest.er1 >conftest.err
6743 cat conftest.err >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } &&
6746 { ac_try='test -z "$ac_c_werror_flag"
6747 || test ! -s conftest.err'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; } &&
6753 { ac_try='test -s conftest$ac_exeext'
6754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; }; then
6759 eval "$as_ac_var=yes"
6761 echo "$as_me: failed program was:" >&5
6762 sed 's/^/| /' conftest.$ac_ext >&5
6764 eval "$as_ac_var=no"
6766 rm -f conftest.err conftest.$ac_objext \
6767 conftest$ac_exeext conftest.$ac_ext
6769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6771 if test `eval echo '${'$as_ac_var'}'` = yes; then
6772 cat >>confdefs.h <<_ACEOF
6773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6780 # Check whether --enable-debug or --disable-debug was given.
6781 if test "${enable_debug+set}" = set; then
6782 enableval="$enable_debug"
6783 case "${enableval}" in
6786 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
6787 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
6788 { (exit 1); exit 1; }; } ;;
6794 if test x$debug = xtrue; then
6795 CPPFLAGS="-DDEBUG $CPPFLAGS"
6799 if test x$GCC = xyes; then
6800 CFLAGS="-Wall $CFLAGS"
6803 ac_config_files="$ac_config_files Makefile abook.spec"
6804 cat >confcache <<\_ACEOF
6805 # This file is a shell script that caches the results of configure
6806 # tests run on this system so they can be shared between configure
6807 # scripts and configure runs, see configure's option --config-cache.
6808 # It is not useful on other systems. If it contains results you don't
6809 # want to keep, you may remove or edit it.
6811 # config.status only pays attention to the cache file if you give it
6812 # the --recheck option to rerun configure.
6814 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6815 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6820 # The following way of writing the cache mishandles newlines in values,
6821 # but we know of no workaround that is simple, portable, and efficient.
6822 # So, don't put newlines in cache variables' values.
6823 # Ultrix sh set writes to stderr and can't be redirected directly,
6824 # and sets the high bit in the cache file unless we assign to the vars.
6827 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6829 # `set' does not quote correctly, so add quotes (double-quote
6830 # substitution turns \\\\ into \\, and sed turns \\ into \).
6833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6836 # `set' quotes correctly as required by POSIX, so do not add quotes.
6838 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6845 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6847 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6849 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6850 if test -w $cache_file; then
6851 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6852 cat confcache >$cache_file
6854 echo "not updating unwritable cache $cache_file"
6859 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6860 # Let make expand exec_prefix.
6861 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6863 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6864 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6865 # trailing colons and then remove the whole line if VPATH becomes empty
6866 # (actually we leave an empty line to preserve line numbers).
6867 if test "x$srcdir" = x.; then
6868 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6869 s/:*\$(srcdir):*/:/;
6870 s/:*\${srcdir}:*/:/;
6872 s/^\([^=]*=[ ]*\):*/\1/;
6878 DEFS=-DHAVE_CONFIG_H
6882 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6883 # 1. Remove the extension, and $U if already installed.
6884 ac_i=`echo "$ac_i" |
6885 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6887 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6888 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6892 LTLIBOBJS=$ac_ltlibobjs
6895 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6896 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6897 Usually this means the macro was only invoked conditionally." >&5
6898 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6899 Usually this means the macro was only invoked conditionally." >&2;}
6900 { (exit 1); exit 1; }; }
6902 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6903 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6904 Usually this means the macro was only invoked conditionally." >&5
6905 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6906 Usually this means the macro was only invoked conditionally." >&2;}
6907 { (exit 1); exit 1; }; }
6910 : ${CONFIG_STATUS=./config.status}
6911 ac_clean_files_save=$ac_clean_files
6912 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6913 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6914 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6915 cat >$CONFIG_STATUS <<_ACEOF
6917 # Generated by $as_me.
6918 # Run this file to recreate the current configuration.
6919 # Compiler output produced by configure, useful for debugging
6920 # configure, is in config.log if it exists.
6925 SHELL=\${CONFIG_SHELL-$SHELL}
6928 cat >>$CONFIG_STATUS <<\_ACEOF
6929 ## --------------------- ##
6930 ## M4sh Initialization. ##
6931 ## --------------------- ##
6933 # Be Bourne compatible
6934 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6937 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6938 # is contrary to our usage. Disable this feature.
6939 alias -g '${1+"$@"}'='"$@"'
6940 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6943 DUALCASE=1; export DUALCASE # for MKS sh
6945 # Support unset when possible.
6946 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6953 # Work around bugs in pre-3.0 UWIN ksh.
6954 $as_unset ENV MAIL MAILPATH
6961 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6962 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6963 LC_TELEPHONE LC_TIME
6965 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6966 eval $as_var=C; export $as_var
6972 # Required to use basename.
6973 if expr a : '\(a\)' >/dev/null 2>&1; then
6979 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6980 as_basename=basename
6986 # Name of the executable.
6987 as_me=`$as_basename "$0" ||
6988 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6989 X"$0" : 'X\(//\)$' \| \
6990 X"$0" : 'X\(/\)$' \| \
6991 . : '\(.\)' 2>/dev/null ||
6993 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6994 /^X\/\(\/\/\)$/{ s//\1/; q; }
6995 /^X\/\(\/\).*/{ s//\1/; q; }
6999 # PATH needs CR, and LINENO needs CR and PATH.
7000 # Avoid depending upon Character Ranges.
7001 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7002 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7003 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7004 as_cr_digits='0123456789'
7005 as_cr_alnum=$as_cr_Letters$as_cr_digits
7007 # The user is always right.
7008 if test "${PATH_SEPARATOR+set}" != set; then
7009 echo "#! /bin/sh" >conf$$.sh
7010 echo "exit 0" >>conf$$.sh
7012 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7023 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7024 test "x$as_lineno_1" != "x$as_lineno_2" &&
7025 test "x$as_lineno_3" = "x$as_lineno_2" || {
7026 # Find who we are. Look in the path if we contain no path at all
7029 *[\\/]* ) as_myself=$0 ;;
7030 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 test -z "$as_dir" && as_dir=.
7035 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7040 # We did not find ourselves, most probably we were run as `sh COMMAND'
7041 # in which case we are not to be found in the path.
7042 if test "x$as_myself" = x; then
7045 if test ! -f "$as_myself"; then
7046 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7047 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7048 { (exit 1); exit 1; }; }
7050 case $CONFIG_SHELL in
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7056 test -z "$as_dir" && as_dir=.
7057 for as_base in sh bash ksh sh5; do
7060 if ("$as_dir/$as_base" -c '
7063 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7064 test "x$as_lineno_1" != "x$as_lineno_2" &&
7065 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7066 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7067 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7068 CONFIG_SHELL=$as_dir/$as_base
7070 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7078 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7079 # uniformly replaced by the line number. The first 'sed' inserts a
7080 # line-number line before each line; the second 'sed' does the real
7081 # work. The second script uses 'N' to pair each line-number line
7082 # with the numbered line, and appends trailing '-' during
7083 # substitution so that $LINENO is not a special case at line end.
7084 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7085 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7086 sed '=' <$as_myself |
7091 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7094 s,^['$as_cr_digits']*\n,,
7096 chmod +x $as_me.lineno ||
7097 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7098 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7099 { (exit 1); exit 1; }; }
7101 # Don't try to exec as it changes $[0], causing all sort of problems
7102 # (the dirname of $[0] is not the place where we might find the
7103 # original and so on. Autoconf is especially sensible to this).
7105 # Exit status is that of the last command.
7110 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7111 *c*,-n*) ECHO_N= ECHO_C='
7113 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7114 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7117 if expr a : '\(a\)' >/dev/null 2>&1; then
7123 rm -f conf$$ conf$$.exe conf$$.file
7125 if ln -s conf$$.file conf$$ 2>/dev/null; then
7126 # We could just check for DJGPP; but this test a) works b) is more generic
7127 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7128 if test -f conf$$.exe; then
7129 # Don't use ln at all; we don't have any links
7134 elif ln conf$$.file conf$$ 2>/dev/null; then
7139 rm -f conf$$ conf$$.exe conf$$.file
7141 if mkdir -p . 2>/dev/null; then
7144 test -d ./-p && rmdir ./-p
7148 as_executable_p="test -f"
7150 # Sed expression to map a string onto a valid CPP name.
7151 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7153 # Sed expression to map a string onto a valid variable name.
7154 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7158 # We need space, tab and new line, in precisely that order.
7168 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7169 # report actual input values of CONFIG_FILES etc. instead of their
7170 # values after options handling. Logging --version etc. is OK.
7174 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7175 ## Running $as_me. ##
7180 This file was extended by $as_me, which was
7181 generated by GNU Autoconf 2.59. Invocation command line was
7183 CONFIG_FILES = $CONFIG_FILES
7184 CONFIG_HEADERS = $CONFIG_HEADERS
7185 CONFIG_LINKS = $CONFIG_LINKS
7186 CONFIG_COMMANDS = $CONFIG_COMMANDS
7190 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7194 # Files that config.status was made for.
7195 if test -n "$ac_config_files"; then
7196 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7199 if test -n "$ac_config_headers"; then
7200 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7203 if test -n "$ac_config_links"; then
7204 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7207 if test -n "$ac_config_commands"; then
7208 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7211 cat >>$CONFIG_STATUS <<\_ACEOF
7214 \`$as_me' instantiates files from templates according to the
7215 current configuration.
7217 Usage: $0 [OPTIONS] [FILE]...
7219 -h, --help print this help, then exit
7220 -V, --version print version number, then exit
7221 -q, --quiet do not print progress messages
7222 -d, --debug don't remove temporary files
7223 --recheck update $as_me by reconfiguring in the same conditions
7224 --file=FILE[:TEMPLATE]
7225 instantiate the configuration file FILE
7226 --header=FILE[:TEMPLATE]
7227 instantiate the configuration header FILE
7229 Configuration files:
7232 Configuration headers:
7235 Configuration commands:
7238 Report bugs to <bug-autoconf@gnu.org>."
7241 cat >>$CONFIG_STATUS <<_ACEOF
7244 configured by $0, generated by GNU Autoconf 2.59,
7245 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7247 Copyright (C) 2003 Free Software Foundation, Inc.
7248 This config.status script is free software; the Free Software Foundation
7249 gives unlimited permission to copy, distribute and modify it."
7254 cat >>$CONFIG_STATUS <<\_ACEOF
7255 # If no file are specified by the user, then we need to provide default
7256 # value. By we need to know if files were specified by the user.
7262 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7263 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7271 *) # This is not an option, so the user has probably given explicit
7274 ac_need_defaults=false;;
7278 # Handling of the options.
7280 cat >>$CONFIG_STATUS <<\_ACEOF
7281 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7283 --version | --vers* | -V )
7284 echo "$ac_cs_version"; exit 0 ;;
7286 # Conflict between --help and --header
7287 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7288 Try \`$0 --help' for more information." >&5
7289 echo "$as_me: error: ambiguous option: $1
7290 Try \`$0 --help' for more information." >&2;}
7291 { (exit 1); exit 1; }; };;
7292 --help | --hel | -h )
7293 echo "$ac_cs_usage"; exit 0 ;;
7294 --debug | --d* | -d )
7296 --file | --fil | --fi | --f )
7298 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7299 ac_need_defaults=false;;
7300 --header | --heade | --head | --hea )
7302 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7303 ac_need_defaults=false;;
7304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7305 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7309 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7310 Try \`$0 --help' for more information." >&5
7311 echo "$as_me: error: unrecognized option: $1
7312 Try \`$0 --help' for more information." >&2;}
7313 { (exit 1); exit 1; }; } ;;
7315 *) ac_config_targets="$ac_config_targets $1" ;;
7321 ac_configure_extra_args=
7323 if $ac_cs_silent; then
7325 ac_configure_extra_args="$ac_configure_extra_args --silent"
7329 cat >>$CONFIG_STATUS <<_ACEOF
7330 if \$ac_cs_recheck; then
7331 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7332 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7337 cat >>$CONFIG_STATUS <<_ACEOF
7339 # INIT-COMMANDS section.
7342 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7348 cat >>$CONFIG_STATUS <<\_ACEOF
7349 for ac_config_target in $ac_config_targets
7351 case "$ac_config_target" in
7352 # Handling of arguments.
7353 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7354 "abook.spec" ) CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
7355 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7356 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7357 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7358 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7359 { (exit 1); exit 1; }; };;
7363 # If the user did not use the arguments to specify the items to instantiate,
7364 # then the envvar interface is used. Set only those that are not.
7365 # We use the long form for the default assignment because of an extremely
7366 # bizarre bug on SunOS 4.1.3.
7367 if $ac_need_defaults; then
7368 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7369 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7370 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7373 # Have a temporary directory for convenience. Make it in the build tree
7374 # simply because there is no reason to put it here, and in addition,
7375 # creating and moving files from /tmp can sometimes cause problems.
7376 # Create a temporary directory, and hook for its removal unless debugging.
7379 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7380 trap '{ (exit 1); exit 1; }' 1 2 13 15
7383 # Create a (secure) tmp directory for tmp files.
7386 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7387 test -n "$tmp" && test -d "$tmp"
7390 tmp=./confstat$$-$RANDOM
7391 (umask 077 && mkdir $tmp)
7394 echo "$me: cannot create a temporary directory in ." >&2
7395 { (exit 1); exit 1; }
7400 cat >>$CONFIG_STATUS <<_ACEOF
7403 # CONFIG_FILES section.
7406 # No need to generate the scripts if there are no CONFIG_FILES.
7407 # This happens for instance when ./config.status config.h
7408 if test -n "\$CONFIG_FILES"; then
7409 # Protect against being on the right side of a sed subst in config.status.
7410 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7411 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7412 s,@SHELL@,$SHELL,;t t
7413 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7414 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7415 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7416 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7417 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7418 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7419 s,@exec_prefix@,$exec_prefix,;t t
7420 s,@prefix@,$prefix,;t t
7421 s,@program_transform_name@,$program_transform_name,;t t
7422 s,@bindir@,$bindir,;t t
7423 s,@sbindir@,$sbindir,;t t
7424 s,@libexecdir@,$libexecdir,;t t
7425 s,@datadir@,$datadir,;t t
7426 s,@sysconfdir@,$sysconfdir,;t t
7427 s,@sharedstatedir@,$sharedstatedir,;t t
7428 s,@localstatedir@,$localstatedir,;t t
7429 s,@libdir@,$libdir,;t t
7430 s,@includedir@,$includedir,;t t
7431 s,@oldincludedir@,$oldincludedir,;t t
7432 s,@infodir@,$infodir,;t t
7433 s,@mandir@,$mandir,;t t
7434 s,@build_alias@,$build_alias,;t t
7435 s,@host_alias@,$host_alias,;t t
7436 s,@target_alias@,$target_alias,;t t
7438 s,@ECHO_C@,$ECHO_C,;t t
7439 s,@ECHO_N@,$ECHO_N,;t t
7440 s,@ECHO_T@,$ECHO_T,;t t
7442 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7443 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7444 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7445 s,@CYGPATH_W@,$CYGPATH_W,;t t
7446 s,@PACKAGE@,$PACKAGE,;t t
7447 s,@VERSION@,$VERSION,;t t
7448 s,@ACLOCAL@,$ACLOCAL,;t t
7449 s,@AUTOCONF@,$AUTOCONF,;t t
7450 s,@AUTOMAKE@,$AUTOMAKE,;t t
7451 s,@AUTOHEADER@,$AUTOHEADER,;t t
7452 s,@MAKEINFO@,$MAKEINFO,;t t
7453 s,@AMTAR@,$AMTAR,;t t
7454 s,@install_sh@,$install_sh,;t t
7455 s,@STRIP@,$STRIP,;t t
7456 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7457 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7458 s,@mkdir_p@,$mkdir_p,;t t
7460 s,@SET_MAKE@,$SET_MAKE,;t t
7461 s,@am__leading_dot@,$am__leading_dot,;t t
7462 s,@build@,$build,;t t
7463 s,@build_cpu@,$build_cpu,;t t
7464 s,@build_vendor@,$build_vendor,;t t
7465 s,@build_os@,$build_os,;t t
7467 s,@host_cpu@,$host_cpu,;t t
7468 s,@host_vendor@,$host_vendor,;t t
7469 s,@host_os@,$host_os,;t t
7471 s,@CFLAGS@,$CFLAGS,;t t
7472 s,@LDFLAGS@,$LDFLAGS,;t t
7473 s,@CPPFLAGS@,$CPPFLAGS,;t t
7474 s,@ac_ct_CC@,$ac_ct_CC,;t t
7475 s,@EXEEXT@,$EXEEXT,;t t
7476 s,@OBJEXT@,$OBJEXT,;t t
7477 s,@DEPDIR@,$DEPDIR,;t t
7478 s,@am__include@,$am__include,;t t
7479 s,@am__quote@,$am__quote,;t t
7480 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7481 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7482 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7483 s,@CCDEPMODE@,$CCDEPMODE,;t t
7484 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7485 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7487 s,@EGREP@,$EGREP,;t t
7489 s,@ANSI2KNR@,$ANSI2KNR,;t t
7490 s,@LIBOBJS@,$LIBOBJS,;t t
7491 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7496 cat >>$CONFIG_STATUS <<\_ACEOF
7497 # Split the substitutions into bite-sized pieces for seds with
7498 # small command number limits, like on Digital OSF/1 and HP-UX.
7500 ac_sed_frag=1 # Number of current file.
7501 ac_beg=1 # First line for current file.
7502 ac_end=$ac_max_sed_lines # Line after last line for current file.
7505 while $ac_more_lines; do
7506 if test $ac_beg -gt 1; then
7507 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7509 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7511 if test ! -s $tmp/subs.frag; then
7514 # The purpose of the label and of the branching condition is to
7515 # speed up the sed processing (if there are no `@' at all, there
7516 # is no need to browse any of the substitutions).
7517 # These are the two extra sed commands mentioned above.
7519 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7520 if test -z "$ac_sed_cmds"; then
7521 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7523 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7525 ac_sed_frag=`expr $ac_sed_frag + 1`
7527 ac_end=`expr $ac_end + $ac_max_sed_lines`
7530 if test -z "$ac_sed_cmds"; then
7533 fi # test -n "$CONFIG_FILES"
7536 cat >>$CONFIG_STATUS <<\_ACEOF
7537 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7538 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7540 - | *:- | *:-:* ) # input from stdin
7542 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7543 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7544 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7545 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7546 * ) ac_file_in=$ac_file.in ;;
7549 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7550 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7551 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7552 X"$ac_file" : 'X\(//\)[^/]' \| \
7553 X"$ac_file" : 'X\(//\)$' \| \
7554 X"$ac_file" : 'X\(/\)' \| \
7555 . : '\(.\)' 2>/dev/null ||
7557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7558 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7559 /^X\(\/\/\)$/{ s//\1/; q; }
7560 /^X\(\/\).*/{ s//\1/; q; }
7562 { if $as_mkdir_p; then
7567 while test ! -d "$as_dir"; do
7568 as_dirs="$as_dir $as_dirs"
7569 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7571 X"$as_dir" : 'X\(//\)[^/]' \| \
7572 X"$as_dir" : 'X\(//\)$' \| \
7573 X"$as_dir" : 'X\(/\)' \| \
7574 . : '\(.\)' 2>/dev/null ||
7576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7577 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7578 /^X\(\/\/\)$/{ s//\1/; q; }
7579 /^X\(\/\).*/{ s//\1/; q; }
7582 test ! -n "$as_dirs" || mkdir $as_dirs
7583 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7584 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7585 { (exit 1); exit 1; }; }; }
7589 if test "$ac_dir" != .; then
7590 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7591 # A "../" for each directory in $ac_dir_suffix.
7592 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7594 ac_dir_suffix= ac_top_builddir=
7598 .) # No --srcdir option. We are building in place.
7600 if test -z "$ac_top_builddir"; then
7603 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7605 [\\/]* | ?:[\\/]* ) # Absolute path.
7606 ac_srcdir=$srcdir$ac_dir_suffix;
7607 ac_top_srcdir=$srcdir ;;
7609 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7610 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7613 # Do not use `cd foo && pwd` to compute absolute paths, because
7614 # the directories may not exist.
7616 .) ac_abs_builddir="$ac_dir";;
7619 .) ac_abs_builddir=`pwd`;;
7620 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7621 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7624 case $ac_abs_builddir in
7625 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7627 case ${ac_top_builddir}. in
7628 .) ac_abs_top_builddir=$ac_abs_builddir;;
7629 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7630 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7633 case $ac_abs_builddir in
7634 .) ac_abs_srcdir=$ac_srcdir;;
7637 .) ac_abs_srcdir=$ac_abs_builddir;;
7638 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7639 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7642 case $ac_abs_builddir in
7643 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7645 case $ac_top_srcdir in
7646 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7647 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7648 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7654 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7655 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7658 if test x"$ac_file" != x-; then
7659 { echo "$as_me:$LINENO: creating $ac_file" >&5
7660 echo "$as_me: creating $ac_file" >&6;}
7663 # Let's still pretend it is `configure' which instantiates (i.e., don't
7664 # use $as_me), people would be surprised to read:
7665 # /* config.h. Generated by config.status. */
7666 if test x"$ac_file" = x-; then
7669 configure_input="$ac_file. "
7671 configure_input=$configure_input"Generated from `echo $ac_file_in |
7672 sed 's,.*/,,'` by configure."
7674 # First look for the input files in the build tree, otherwise in the
7676 ac_file_inputs=`IFS=:
7677 for f in $ac_file_in; do
7679 -) echo $tmp/stdin ;;
7681 # Absolute (can't be DOS-style, as IFS=:)
7682 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7683 echo "$as_me: error: cannot find input file: $f" >&2;}
7684 { (exit 1); exit 1; }; }
7687 if test -f "$f"; then
7690 elif test -f "$srcdir/$f"; then
7695 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7696 echo "$as_me: error: cannot find input file: $f" >&2;}
7697 { (exit 1); exit 1; }; }
7700 done` || { (exit 1); exit 1; }
7702 cat >>$CONFIG_STATUS <<_ACEOF
7706 cat >>$CONFIG_STATUS <<\_ACEOF
7708 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7709 s,@configure_input@,$configure_input,;t t
7710 s,@srcdir@,$ac_srcdir,;t t
7711 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7712 s,@top_srcdir@,$ac_top_srcdir,;t t
7713 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7714 s,@builddir@,$ac_builddir,;t t
7715 s,@abs_builddir@,$ac_abs_builddir,;t t
7716 s,@top_builddir@,$ac_top_builddir,;t t
7717 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7718 s,@INSTALL@,$ac_INSTALL,;t t
7719 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7721 if test x"$ac_file" != x-; then
7722 mv $tmp/out $ac_file
7730 cat >>$CONFIG_STATUS <<\_ACEOF
7733 # CONFIG_HEADER section.
7736 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7737 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7739 # ac_d sets the value in "#define NAME VALUE" lines.
7740 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7741 ac_dB='[ ].*$,\1#\2'
7744 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7745 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7746 ac_uB='$,\1#\2define\3'
7750 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7751 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7753 - | *:- | *:-:* ) # input from stdin
7755 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7756 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7757 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7758 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7759 * ) ac_file_in=$ac_file.in ;;
7762 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7763 echo "$as_me: creating $ac_file" >&6;}
7765 # First look for the input files in the build tree, otherwise in the
7767 ac_file_inputs=`IFS=:
7768 for f in $ac_file_in; do
7770 -) echo $tmp/stdin ;;
7772 # Absolute (can't be DOS-style, as IFS=:)
7773 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7774 echo "$as_me: error: cannot find input file: $f" >&2;}
7775 { (exit 1); exit 1; }; }
7776 # Do quote $f, to prevent DOS paths from being IFS'd.
7779 if test -f "$f"; then
7782 elif test -f "$srcdir/$f"; then
7787 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7788 echo "$as_me: error: cannot find input file: $f" >&2;}
7789 { (exit 1); exit 1; }; }
7792 done` || { (exit 1); exit 1; }
7793 # Remove the trailing spaces.
7794 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7798 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7799 # `conftest.undefs', that substitutes the proper values into
7800 # config.h.in to produce config.h. The first handles `#define'
7801 # templates, and the second `#undef' templates.
7802 # And first: Protect against being on the right side of a sed subst in
7803 # config.status. Protect against being in an unquoted here document
7805 rm -f conftest.defines conftest.undefs
7806 # Using a here document instead of a string reduces the quoting nightmare.
7807 # Putting comments in sed scripts is not portable.
7809 # `end' is used to avoid that the second main sed command (meant for
7810 # 0-ary CPP macros) applies to n-ary macro definitions.
7811 # See the Autoconf documentation for `clear'.
7812 cat >confdef2sed.sed <<\_ACEOF
7817 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7819 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7822 # If some macros were called several times there might be several times
7823 # the same #defines, which is useless. Nevertheless, we may not want to
7824 # sort them, since we want the *last* AC-DEFINE to be honored.
7825 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7826 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7827 rm -f confdef2sed.sed
7829 # This sed command replaces #undef with comments. This is necessary, for
7830 # example, in the case of _POSIX_SOURCE, which is predefined and required
7831 # on some systems where configure will not decide to define it.
7832 cat >>conftest.undefs <<\_ACEOF
7833 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7836 # Break up conftest.defines because some shells have a limit on the size
7837 # of here documents, and old seds have small limits too (100 cmds).
7838 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7839 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7840 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7841 echo ' :' >>$CONFIG_STATUS
7843 while grep . conftest.defines >/dev/null
7845 # Write a limited-size here document to $tmp/defines.sed.
7846 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7847 # Speed up: don't consider the non `#define' lines.
7848 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7849 # Work around the forget-to-reset-the-flag bug.
7850 echo 't clr' >>$CONFIG_STATUS
7851 echo ': clr' >>$CONFIG_STATUS
7852 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7854 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7858 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7859 rm -f conftest.defines
7860 mv conftest.tail conftest.defines
7862 rm -f conftest.defines
7863 echo ' fi # grep' >>$CONFIG_STATUS
7864 echo >>$CONFIG_STATUS
7866 # Break up conftest.undefs because some shells have a limit on the size
7867 # of here documents, and old seds have small limits too (100 cmds).
7868 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7870 while grep . conftest.undefs >/dev/null
7872 # Write a limited-size here document to $tmp/undefs.sed.
7873 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7874 # Speed up: don't consider the non `#undef'
7875 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7876 # Work around the forget-to-reset-the-flag bug.
7877 echo 't clr' >>$CONFIG_STATUS
7878 echo ': clr' >>$CONFIG_STATUS
7879 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7881 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7885 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7886 rm -f conftest.undefs
7887 mv conftest.tail conftest.undefs
7889 rm -f conftest.undefs
7891 cat >>$CONFIG_STATUS <<\_ACEOF
7892 # Let's still pretend it is `configure' which instantiates (i.e., don't
7893 # use $as_me), people would be surprised to read:
7894 # /* config.h. Generated by config.status. */
7895 if test x"$ac_file" = x-; then
7896 echo "/* Generated by configure. */" >$tmp/config.h
7898 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7900 cat $tmp/in >>$tmp/config.h
7902 if test x"$ac_file" != x-; then
7903 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7904 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7905 echo "$as_me: $ac_file is unchanged" >&6;}
7907 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7908 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7909 X"$ac_file" : 'X\(//\)[^/]' \| \
7910 X"$ac_file" : 'X\(//\)$' \| \
7911 X"$ac_file" : 'X\(/\)' \| \
7912 . : '\(.\)' 2>/dev/null ||
7914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7915 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7916 /^X\(\/\/\)$/{ s//\1/; q; }
7917 /^X\(\/\).*/{ s//\1/; q; }
7919 { if $as_mkdir_p; then
7924 while test ! -d "$as_dir"; do
7925 as_dirs="$as_dir $as_dirs"
7926 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7928 X"$as_dir" : 'X\(//\)[^/]' \| \
7929 X"$as_dir" : 'X\(//\)$' \| \
7930 X"$as_dir" : 'X\(/\)' \| \
7931 . : '\(.\)' 2>/dev/null ||
7933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7935 /^X\(\/\/\)$/{ s//\1/; q; }
7936 /^X\(\/\).*/{ s//\1/; q; }
7939 test ! -n "$as_dirs" || mkdir $as_dirs
7940 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7941 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7942 { (exit 1); exit 1; }; }; }
7945 mv $tmp/config.h $ac_file
7951 # Compute $ac_file's index in $config_headers.
7953 for _am_header in $config_headers :; do
7955 $ac_file | $ac_file:* )
7958 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7961 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7962 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7963 X$ac_file : 'X\(//\)[^/]' \| \
7964 X$ac_file : 'X\(//\)$' \| \
7965 X$ac_file : 'X\(/\)' \| \
7966 . : '\(.\)' 2>/dev/null ||
7968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7969 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7970 /^X\(\/\/\)$/{ s//\1/; q; }
7971 /^X\(\/\).*/{ s//\1/; q; }
7972 s/.*/./; q'`/stamp-h$_am_stamp_count
7975 cat >>$CONFIG_STATUS <<\_ACEOF
7978 # CONFIG_COMMANDS section.
7980 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7981 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7982 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7983 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7984 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7985 X"$ac_dest" : 'X\(//\)[^/]' \| \
7986 X"$ac_dest" : 'X\(//\)$' \| \
7987 X"$ac_dest" : 'X\(/\)' \| \
7988 . : '\(.\)' 2>/dev/null ||
7990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7991 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7992 /^X\(\/\/\)$/{ s//\1/; q; }
7993 /^X\(\/\).*/{ s//\1/; q; }
7995 { if $as_mkdir_p; then
8000 while test ! -d "$as_dir"; do
8001 as_dirs="$as_dir $as_dirs"
8002 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8003 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8004 X"$as_dir" : 'X\(//\)[^/]' \| \
8005 X"$as_dir" : 'X\(//\)$' \| \
8006 X"$as_dir" : 'X\(/\)' \| \
8007 . : '\(.\)' 2>/dev/null ||
8009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8010 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8011 /^X\(\/\/\)$/{ s//\1/; q; }
8012 /^X\(\/\).*/{ s//\1/; q; }
8015 test ! -n "$as_dirs" || mkdir $as_dirs
8016 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8017 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8018 { (exit 1); exit 1; }; }; }
8022 if test "$ac_dir" != .; then
8023 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8024 # A "../" for each directory in $ac_dir_suffix.
8025 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8027 ac_dir_suffix= ac_top_builddir=
8031 .) # No --srcdir option. We are building in place.
8033 if test -z "$ac_top_builddir"; then
8036 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8038 [\\/]* | ?:[\\/]* ) # Absolute path.
8039 ac_srcdir=$srcdir$ac_dir_suffix;
8040 ac_top_srcdir=$srcdir ;;
8042 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8043 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8046 # Do not use `cd foo && pwd` to compute absolute paths, because
8047 # the directories may not exist.
8049 .) ac_abs_builddir="$ac_dir";;
8052 .) ac_abs_builddir=`pwd`;;
8053 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8054 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8057 case $ac_abs_builddir in
8058 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8060 case ${ac_top_builddir}. in
8061 .) ac_abs_top_builddir=$ac_abs_builddir;;
8062 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8063 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8066 case $ac_abs_builddir in
8067 .) ac_abs_srcdir=$ac_srcdir;;
8070 .) ac_abs_srcdir=$ac_abs_builddir;;
8071 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8072 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8075 case $ac_abs_builddir in
8076 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8078 case $ac_top_srcdir in
8079 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8080 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8081 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8086 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8087 echo "$as_me: executing $ac_dest commands" >&6;}
8089 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8090 # Strip MF so we end up with the name of the file.
8091 mf=`echo "$mf" | sed -e 's/:.*$//'`
8092 # Check whether this is an Automake generated Makefile or not.
8093 # We used to match only the files named `Makefile.in', but
8094 # some people rename them; so instead we look at the file content.
8095 # Grep'ing the first line is not enough: some people post-process
8096 # each Makefile.in and add a new line on top of each file to say so.
8097 # So let's grep whole file.
8098 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8099 dirpart=`(dirname "$mf") 2>/dev/null ||
8100 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8101 X"$mf" : 'X\(//\)[^/]' \| \
8102 X"$mf" : 'X\(//\)$' \| \
8103 X"$mf" : 'X\(/\)' \| \
8104 . : '\(.\)' 2>/dev/null ||
8106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8107 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8108 /^X\(\/\/\)$/{ s//\1/; q; }
8109 /^X\(\/\).*/{ s//\1/; q; }
8114 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8115 # Extract the definition of DEP_FILES from the Makefile without
8117 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
8118 test -z "$DEPDIR" && continue
8119 # When using ansi2knr, U may be empty or an underscore; expand it
8120 U=`sed -n -e '/^U = / s///p' < "$mf"`
8121 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8122 # We invoke sed twice because it is the simplest approach to
8123 # changing $(DEPDIR) to its actual value in the expansion.
8124 for file in `sed -n -e '
8125 /^DEP_FILES = .*\\\\$/ {
8134 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8135 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8136 # Make sure the directory exists.
8137 test -f "$dirpart/$file" && continue
8138 fdir=`(dirname "$file") 2>/dev/null ||
8139 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8140 X"$file" : 'X\(//\)[^/]' \| \
8141 X"$file" : 'X\(//\)$' \| \
8142 X"$file" : 'X\(/\)' \| \
8143 . : '\(.\)' 2>/dev/null ||
8145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8147 /^X\(\/\/\)$/{ s//\1/; q; }
8148 /^X\(\/\).*/{ s//\1/; q; }
8150 { if $as_mkdir_p; then
8151 mkdir -p $dirpart/$fdir
8153 as_dir=$dirpart/$fdir
8155 while test ! -d "$as_dir"; do
8156 as_dirs="$as_dir $as_dirs"
8157 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8158 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8159 X"$as_dir" : 'X\(//\)[^/]' \| \
8160 X"$as_dir" : 'X\(//\)$' \| \
8161 X"$as_dir" : 'X\(/\)' \| \
8162 . : '\(.\)' 2>/dev/null ||
8164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8166 /^X\(\/\/\)$/{ s//\1/; q; }
8167 /^X\(\/\).*/{ s//\1/; q; }
8170 test ! -n "$as_dirs" || mkdir $as_dirs
8171 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8172 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8173 { (exit 1); exit 1; }; }; }
8175 # echo "creating $dirpart/$file"
8176 echo '# dummy' > "$dirpart/$file"
8184 cat >>$CONFIG_STATUS <<\_ACEOF
8186 { (exit 0); exit 0; }
8188 chmod +x $CONFIG_STATUS
8189 ac_clean_files=$ac_clean_files_save
8192 # configure is writing to config.log, and then calls config.status.
8193 # config.status does its own redirection, appending to config.log.
8194 # Unfortunately, on DOS this fails, as config.log is still kept open
8195 # by configure, so config.status won't be able to write to it; its
8196 # output is simply discarded. So we exec the FD to /dev/null,
8197 # effectively closing config.log, so it can be properly (re)opened and
8198 # appended to by config.status. When coming back to configure, we
8199 # need to make the FD available again.
8200 if test "$no_create" != yes; then
8202 ac_config_status_args=
8203 test "$silent" = yes &&
8204 ac_config_status_args="$ac_config_status_args --quiet"
8206 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8208 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8209 # would make configure fail if this is the last instruction.
8210 $ac_cs_success || { (exit 1); exit 1; }