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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPP EGREP GLIBC2 RANLIB ac_ct_RANLIB ALLOCA GLIBC21 INTL_MACOSX_LIBS HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB localedir USE_INCLUDED_INTL_H_TRUE USE_INCLUDED_INTL_H_FALSE 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-nls do not use Native Language Support
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --disable-rpath do not hardcode runtime library paths
856 --enable-debug Enable debugging support
859 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
860 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
861 --with-gnu-ld assume the C compiler uses GNU ld default=no
862 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
863 --without-libiconv-prefix don't search for libiconv in includedir and libdir
864 --with-included-gettext use the GNU gettext library included here
865 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
866 --without-libintl-prefix don't search for libintl in includedir and libdir
867 --with-localedir=PATH Where the locale files are installed
868 --with-curses=DIR Where ncurses is installed
869 --with-readline=DIR Where readline is installed
871 Some influential environment variables:
872 CC C compiler command
873 CFLAGS C compiler flags
874 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
875 nonstandard directory <lib dir>
876 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
877 headers in a nonstandard directory <include dir>
880 Use these variables to override the choices made by `configure' or to help
881 it to find libraries and programs with nonstandard names/locations.
886 if test "$ac_init_help" = "recursive"; then
887 # If there are subdirs, report their specific --help.
889 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
890 test -d $ac_dir || continue
893 if test "$ac_dir" != .; then
894 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
895 # A "../" for each directory in $ac_dir_suffix.
896 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
898 ac_dir_suffix= ac_top_builddir=
902 .) # No --srcdir option. We are building in place.
904 if test -z "$ac_top_builddir"; then
907 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
909 [\\/]* | ?:[\\/]* ) # Absolute path.
910 ac_srcdir=$srcdir$ac_dir_suffix;
911 ac_top_srcdir=$srcdir ;;
913 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
914 ac_top_srcdir=$ac_top_builddir$srcdir ;;
917 # Do not use `cd foo && pwd` to compute absolute paths, because
918 # the directories may not exist.
920 .) ac_abs_builddir="$ac_dir";;
923 .) ac_abs_builddir=`pwd`;;
924 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
925 *) ac_abs_builddir=`pwd`/"$ac_dir";;
928 case $ac_abs_builddir in
929 .) ac_abs_top_builddir=${ac_top_builddir}.;;
931 case ${ac_top_builddir}. in
932 .) ac_abs_top_builddir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
934 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937 case $ac_abs_builddir in
938 .) ac_abs_srcdir=$ac_srcdir;;
941 .) ac_abs_srcdir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
943 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946 case $ac_abs_builddir in
947 .) ac_abs_top_srcdir=$ac_top_srcdir;;
949 case $ac_top_srcdir in
950 .) ac_abs_top_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
952 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
957 # Check for guested configure; otherwise get Cygnus style configure.
958 if test -f $ac_srcdir/configure.gnu; then
960 $SHELL $ac_srcdir/configure.gnu --help=recursive
961 elif test -f $ac_srcdir/configure; then
963 $SHELL $ac_srcdir/configure --help=recursive
964 elif test -f $ac_srcdir/configure.ac ||
965 test -f $ac_srcdir/configure.in; then
969 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
975 test -n "$ac_init_help" && exit 0
976 if $ac_init_version; then
979 Copyright (C) 2003 Free Software Foundation, Inc.
980 This configure script is free software; the Free Software Foundation
981 gives unlimited permission to copy, distribute and modify it.
987 This file contains any messages produced by compilers while
988 running configure, to aid debugging if configure makes a mistake.
990 It was created by $as_me, which was
991 generated by GNU Autoconf 2.59. Invocation command line was
1002 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1003 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1004 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1005 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1006 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1008 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1009 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1011 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1012 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1013 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1014 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1015 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1016 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1017 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025 test -z "$as_dir" && as_dir=.
1026 echo "PATH: $as_dir"
1041 # Keep a trace of the command line.
1042 # Strip out --no-create and --no-recursion so they do not pile up.
1043 # Strip out --silent because we don't want to record it for future runs.
1044 # Also quote any args containing shell meta-characters.
1045 # Make two passes to allow for proper duplicate-argument suppression.
1050 ac_must_keep_next=false
1056 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1060 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1061 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1064 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1066 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1067 if test $ac_must_keep_next = true; then
1068 ac_must_keep_next=false # Got value, back to normal.
1071 *=* | --config-cache | -C | -disable-* | --disable-* \
1072 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1073 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1074 | -with-* | --with-* | -without-* | --without-* | --x)
1075 case "$ac_configure_args0 " in
1076 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1079 -* ) ac_must_keep_next=true ;;
1082 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1083 # Get rid of the leading space.
1089 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1090 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1092 # When interrupted or exit'd, cleanup temporary files, and complete
1093 # config.log. We remove comments because anyway the quotes in there
1094 # would cause problems or look ugly.
1095 # WARNING: Be sure not to use single quotes in there, as some shells,
1096 # such as our DU 5.0 friend, will then `close' the trap.
1097 trap 'exit_status=$?
1098 # Save into config.log some information that might help in debugging.
1103 ## ---------------- ##
1104 ## Cache variables. ##
1105 ## ---------------- ##
1108 # The following way of writing the cache mishandles newlines in values,
1111 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1114 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1119 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1126 ## ----------------- ##
1127 ## Output variables. ##
1128 ## ----------------- ##
1131 for ac_var in $ac_subst_vars
1133 eval ac_val=$`echo $ac_var`
1134 echo "$ac_var='"'"'$ac_val'"'"'"
1138 if test -n "$ac_subst_files"; then
1145 for ac_var in $ac_subst_files
1147 eval ac_val=$`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1153 if test -s confdefs.h; then
1160 sed "/^$/d" confdefs.h | sort
1163 test "$ac_signal" != 0 &&
1164 echo "$as_me: caught signal $ac_signal"
1165 echo "$as_me: exit $exit_status"
1167 rm -f core *.core &&
1168 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1171 for ac_signal in 1 2 13 15; do
1172 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1177 rm -rf conftest* confdefs.h
1178 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1181 # Predefined preprocessor variables.
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_NAME "$PACKAGE_NAME"
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_STRING "$PACKAGE_STRING"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1208 # Let the site file select an alternate cache file if it wants to.
1209 # Prefer explicitly selected file to automatically selected ones.
1210 if test -z "$CONFIG_SITE"; then
1211 if test "x$prefix" != xNONE; then
1212 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1214 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1217 for ac_site_file in $CONFIG_SITE; do
1218 if test -r "$ac_site_file"; then
1219 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1220 echo "$as_me: loading site script $ac_site_file" >&6;}
1221 sed 's/^/| /' "$ac_site_file" >&5
1226 if test -r "$cache_file"; then
1227 # Some versions of bash will fail to source /dev/null (special
1228 # files actually), so we avoid doing that.
1229 if test -f "$cache_file"; then
1230 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1231 echo "$as_me: loading cache $cache_file" >&6;}
1233 [\\/]* | ?:[\\/]* ) . $cache_file;;
1234 *) . ./$cache_file;;
1238 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1239 echo "$as_me: creating cache $cache_file" >&6;}
1243 # Check that the precious variables saved in the cache have kept the same
1245 ac_cache_corrupted=false
1246 for ac_var in `(set) 2>&1 |
1247 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1248 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1249 eval ac_new_set=\$ac_env_${ac_var}_set
1250 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1251 eval ac_new_val="\$ac_env_${ac_var}_value"
1252 case $ac_old_set,$ac_new_set in
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1263 if test "x$ac_old_val" != "x$ac_new_val"; then
1264 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1265 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1266 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1267 echo "$as_me: former value: $ac_old_val" >&2;}
1268 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1269 echo "$as_me: current value: $ac_new_val" >&2;}
1270 ac_cache_corrupted=:
1273 # Pass precious variables to config.status.
1274 if test "$ac_new_set" = set; then
1276 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1277 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1278 *) ac_arg=$ac_var=$ac_new_val ;;
1280 case " $ac_configure_args " in
1281 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1282 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286 if $ac_cache_corrupted; then
1287 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1288 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1289 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1290 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1291 { (exit 1); exit 1; }; }
1295 ac_cpp='$CPP $CPPFLAGS'
1296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1318 am__api_version="1.9"
1320 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1321 if test -f $ac_dir/install-sh; then
1323 ac_install_sh="$ac_aux_dir/install-sh -c"
1325 elif test -f $ac_dir/install.sh; then
1327 ac_install_sh="$ac_aux_dir/install.sh -c"
1329 elif test -f $ac_dir/shtool; then
1331 ac_install_sh="$ac_aux_dir/shtool install -c"
1335 if test -z "$ac_aux_dir"; then
1336 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1337 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1338 { (exit 1); exit 1; }; }
1340 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1341 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1342 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1344 # Find a good install program. We prefer a C program (faster),
1345 # so one script is as good as another. But avoid the broken or
1346 # incompatible versions:
1347 # SysV /etc/install, /usr/sbin/install
1348 # SunOS /usr/etc/install
1349 # IRIX /sbin/install
1351 # AmigaOS /C/install, which installs bootblocks on floppy discs
1352 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1353 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1354 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1355 # OS/2's system install, which has a completely different semantic
1356 # ./install, which can be erroneously created by make from ./install.sh.
1357 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1358 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1359 if test -z "$INSTALL"; then
1360 if test "${ac_cv_path_install+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1367 test -z "$as_dir" && as_dir=.
1368 # Account for people who put trailing slashes in PATH elements.
1370 ./ | .// | /cC/* | \
1371 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1372 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1375 # OSF1 and SCO ODT 3.0 have their own names for install.
1376 # Don't use installbsd from OSF since it installs stuff as root
1378 for ac_prog in ginstall scoinst install; do
1379 for ac_exec_ext in '' $ac_executable_extensions; do
1380 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1381 if test $ac_prog = install &&
1382 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1383 # AIX install. It has an incompatible calling convention.
1385 elif test $ac_prog = install &&
1386 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1387 # program-specific install script used by HP pwplus--don't use.
1390 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1402 if test "${ac_cv_path_install+set}" = set; then
1403 INSTALL=$ac_cv_path_install
1405 # As a last resort, use the slow shell script. We don't cache a
1406 # path for INSTALL within a source directory, because that will
1407 # break other packages using the cache if that directory is
1408 # removed, or if the path is relative.
1409 INSTALL=$ac_install_sh
1412 echo "$as_me:$LINENO: result: $INSTALL" >&5
1413 echo "${ECHO_T}$INSTALL" >&6
1415 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1416 # It thinks the first close brace ends the variable substitution.
1417 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1419 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1421 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1423 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1424 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1427 echo timestamp > conftest.file
1428 # Do `set' in a subshell so we don't clobber the current shell's
1429 # arguments. Must try -L first in case configure is actually a
1430 # symlink; some systems play weird games with the mod time of symlinks
1431 # (eg FreeBSD returns the mod time of the symlink's containing
1434 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1435 if test "$*" = "X"; then
1437 set X `ls -t $srcdir/configure conftest.file`
1440 if test "$*" != "X $srcdir/configure conftest.file" \
1441 && test "$*" != "X conftest.file $srcdir/configure"; then
1443 # If neither matched, then we have a broken ls. This can happen
1444 # if, for instance, CONFIG_SHELL is bash and it inherits a
1445 # broken ls alias from the environment. This has actually
1446 # happened. Such a system could not be considered "sane".
1447 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1448 alias in your environment" >&5
1449 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1450 alias in your environment" >&2;}
1451 { (exit 1); exit 1; }; }
1454 test "$2" = conftest.file
1460 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1461 Check your system clock" >&5
1462 echo "$as_me: error: newly created file is older than distributed files!
1463 Check your system clock" >&2;}
1464 { (exit 1); exit 1; }; }
1466 echo "$as_me:$LINENO: result: yes" >&5
1467 echo "${ECHO_T}yes" >&6
1468 test "$program_prefix" != NONE &&
1469 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1470 # Use a double $ so make ignores it.
1471 test "$program_suffix" != NONE &&
1472 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1473 # Double any \ or $. echo might interpret backslashes.
1474 # By default was `s,x,x', remove it if useless.
1475 cat <<\_ACEOF >conftest.sed
1476 s/[\\$]/&&/g;s/;s,x,x,$//
1478 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1481 # expand $ac_aux_dir to an absolute path
1482 am_aux_dir=`cd $ac_aux_dir && pwd`
1484 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1485 # Use eval to expand $SHELL
1486 if eval "$MISSING --run true"; then
1487 am_missing_run="$MISSING --run "
1490 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1491 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1494 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1495 # We used to keeping the `.' as first argument, in order to
1496 # allow $(mkdir_p) to be used without argument. As in
1497 # $(mkdir_p) $(somedir)
1498 # where $(somedir) is conditionally defined. However this is wrong
1500 # 1. if the package is installed by a user who cannot write `.'
1501 # make install will fail,
1502 # 2. the above comment should most certainly read
1503 # $(mkdir_p) $(DESTDIR)$(somedir)
1504 # so it does not work when $(somedir) is undefined and
1505 # $(DESTDIR) is not.
1506 # To support the latter case, we have to write
1507 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1508 # so the `.' trick is pointless.
1509 mkdir_p='mkdir -p --'
1511 # On NextStep and OpenStep, the `mkdir' command does not
1512 # recognize any option. It will interpret all options as
1513 # directories to create, and then abort because `.' already
1515 for d in ./-p ./--version;
1517 test -d $d && rmdir $d
1519 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1520 if test -f "$ac_aux_dir/mkinstalldirs"; then
1521 mkdir_p='$(mkinstalldirs)'
1523 mkdir_p='$(install_sh) -d'
1527 for ac_prog in gawk mawk nawk awk
1529 # Extract the first word of "$ac_prog", so it can be a program name with args.
1530 set dummy $ac_prog; ac_word=$2
1531 echo "$as_me:$LINENO: checking for $ac_word" >&5
1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if test "${ac_cv_prog_AWK+set}" = set; then
1534 echo $ECHO_N "(cached) $ECHO_C" >&6
1536 if test -n "$AWK"; then
1537 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543 test -z "$as_dir" && as_dir=.
1544 for ac_exec_ext in '' $ac_executable_extensions; do
1545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546 ac_cv_prog_AWK="$ac_prog"
1547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556 if test -n "$AWK"; then
1557 echo "$as_me:$LINENO: result: $AWK" >&5
1558 echo "${ECHO_T}$AWK" >&6
1560 echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1564 test -n "$AWK" && break
1567 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1568 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1569 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1570 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 cat >conftest.make <<\_ACEOF
1575 @echo 'ac_maketemp="$(MAKE)"'
1577 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1578 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1579 if test -n "$ac_maketemp"; then
1580 eval ac_cv_prog_make_${ac_make}_set=yes
1582 eval ac_cv_prog_make_${ac_make}_set=no
1586 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1587 echo "$as_me:$LINENO: result: yes" >&5
1588 echo "${ECHO_T}yes" >&6
1591 echo "$as_me:$LINENO: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1593 SET_MAKE="MAKE=${MAKE-make}"
1596 rm -rf .tst 2>/dev/null
1597 mkdir .tst 2>/dev/null
1598 if test -d .tst; then
1603 rmdir .tst 2>/dev/null
1605 # test to see if srcdir already configured
1606 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1607 test -f $srcdir/config.status; then
1608 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1609 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1610 { (exit 1); exit 1; }; }
1613 # test whether we have cygpath
1614 if test -z "$CYGPATH_W"; then
1615 if (cygpath --version) >/dev/null 2>/dev/null; then
1616 CYGPATH_W='cygpath -w'
1623 # Define the identity of the package.
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE "$PACKAGE"
1633 cat >>confdefs.h <<_ACEOF
1634 #define VERSION "$VERSION"
1637 # Some tools Automake needs.
1639 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1642 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1645 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1648 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1651 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1653 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1655 # Installed binaries are usually stripped using `strip' when the user
1656 # run `make install-strip'. However `strip' might not be the right
1657 # tool to use in cross-compilation environments, therefore Automake
1658 # will honor the `STRIP' environment variable to overrule this program.
1659 if test "$cross_compiling" != no; then
1660 if test -n "$ac_tool_prefix"; then
1661 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1662 set dummy ${ac_tool_prefix}strip; ac_word=$2
1663 echo "$as_me:$LINENO: checking for $ac_word" >&5
1664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665 if test "${ac_cv_prog_STRIP+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 if test -n "$STRIP"; then
1669 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675 test -z "$as_dir" && as_dir=.
1676 for ac_exec_ext in '' $ac_executable_extensions; do
1677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1687 STRIP=$ac_cv_prog_STRIP
1688 if test -n "$STRIP"; then
1689 echo "$as_me:$LINENO: result: $STRIP" >&5
1690 echo "${ECHO_T}$STRIP" >&6
1692 echo "$as_me:$LINENO: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1697 if test -z "$ac_cv_prog_STRIP"; then
1699 # Extract the first word of "strip", so it can be a program name with args.
1700 set dummy strip; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 if test -n "$ac_ct_STRIP"; then
1707 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 ac_cv_prog_ac_ct_STRIP="strip"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1726 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1727 if test -n "$ac_ct_STRIP"; then
1728 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1729 echo "${ECHO_T}$ac_ct_STRIP" >&6
1731 echo "$as_me:$LINENO: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1737 STRIP="$ac_cv_prog_STRIP"
1741 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1743 # We need awk for the "check" target. The system "awk" is bad on
1745 # Always define AMTAR for backward compatibility.
1747 AMTAR=${AMTAR-"${am_missing_run}tar"}
1749 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1755 ac_config_headers="$ac_config_headers config.h"
1762 if test -n "$ac_aux_dir"; then
1763 case "$ac_aux_dir" in
1764 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
1765 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
1768 if test -z "$MKINSTALLDIRS"; then
1769 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1774 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
1775 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
1776 # Check whether --enable-nls or --disable-nls was given.
1777 if test "${enable_nls+set}" = set; then
1778 enableval="$enable_nls"
1783 echo "$as_me:$LINENO: result: $USE_NLS" >&5
1784 echo "${ECHO_T}$USE_NLS" >&6
1791 # Prepare PATH_SEPARATOR.
1792 # The user is always right.
1793 if test "${PATH_SEPARATOR+set}" != set; then
1794 echo "#! /bin/sh" >conf$$.sh
1795 echo "exit 0" >>conf$$.sh
1797 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1805 # Find out how to test for executable files. Don't use a zero-byte file,
1806 # as systems may use methods other than mode bits to determine executability.
1807 cat >conf$$.file <<_ASEOF
1811 chmod +x conf$$.file
1812 if test -x conf$$.file >/dev/null 2>&1; then
1813 ac_executable_p="test -x"
1815 ac_executable_p="test -f"
1819 # Extract the first word of "msgfmt", so it can be a program name with args.
1820 set dummy msgfmt; ac_word=$2
1821 echo "$as_me:$LINENO: checking for $ac_word" >&5
1822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1823 if test "${ac_cv_path_MSGFMT+set}" = set; then
1824 echo $ECHO_N "(cached) $ECHO_C" >&6
1828 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
1831 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
1832 for ac_dir in $PATH; do
1834 test -z "$ac_dir" && ac_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1837 echo "$as_me: trying $ac_dir/$ac_word..." >&5
1838 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
1839 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1840 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
1847 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
1851 MSGFMT="$ac_cv_path_MSGFMT"
1852 if test "$MSGFMT" != ":"; then
1853 echo "$as_me:$LINENO: result: $MSGFMT" >&5
1854 echo "${ECHO_T}$MSGFMT" >&6
1856 echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1860 # Extract the first word of "gmsgfmt", so it can be a program name with args.
1861 set dummy gmsgfmt; ac_word=$2
1862 echo "$as_me:$LINENO: checking for $ac_word" >&5
1863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864 if test "${ac_cv_path_GMSGFMT+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
1890 GMSGFMT=$ac_cv_path_GMSGFMT
1892 if test -n "$GMSGFMT"; then
1893 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
1894 echo "${ECHO_T}$GMSGFMT" >&6
1896 echo "$as_me:$LINENO: result: no" >&5
1897 echo "${ECHO_T}no" >&6
1902 # Prepare PATH_SEPARATOR.
1903 # The user is always right.
1904 if test "${PATH_SEPARATOR+set}" != set; then
1905 echo "#! /bin/sh" >conf$$.sh
1906 echo "exit 0" >>conf$$.sh
1908 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1916 # Find out how to test for executable files. Don't use a zero-byte file,
1917 # as systems may use methods other than mode bits to determine executability.
1918 cat >conf$$.file <<_ASEOF
1922 chmod +x conf$$.file
1923 if test -x conf$$.file >/dev/null 2>&1; then
1924 ac_executable_p="test -x"
1926 ac_executable_p="test -f"
1930 # Extract the first word of "xgettext", so it can be a program name with args.
1931 set dummy xgettext; ac_word=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_path_XGETTEXT+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
1942 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
1943 for ac_dir in $PATH; do
1945 test -z "$ac_dir" && ac_dir=.
1946 for ac_exec_ext in '' $ac_executable_extensions; do
1947 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1948 echo "$as_me: trying $ac_dir/$ac_word..." >&5
1949 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
1950 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1951 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
1958 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
1962 XGETTEXT="$ac_cv_path_XGETTEXT"
1963 if test "$XGETTEXT" != ":"; then
1964 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
1965 echo "${ECHO_T}$XGETTEXT" >&6
1967 echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1974 # Prepare PATH_SEPARATOR.
1975 # The user is always right.
1976 if test "${PATH_SEPARATOR+set}" != set; then
1977 echo "#! /bin/sh" >conf$$.sh
1978 echo "exit 0" >>conf$$.sh
1980 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1988 # Find out how to test for executable files. Don't use a zero-byte file,
1989 # as systems may use methods other than mode bits to determine executability.
1990 cat >conf$$.file <<_ASEOF
1994 chmod +x conf$$.file
1995 if test -x conf$$.file >/dev/null 2>&1; then
1996 ac_executable_p="test -x"
1998 ac_executable_p="test -f"
2002 # Extract the first word of "msgmerge", so it can be a program name with args.
2003 set dummy msgmerge; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_path_MSGMERGE+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2014 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2015 for ac_dir in $PATH; do
2017 test -z "$ac_dir" && ac_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2020 echo "$as_me: trying $ac_dir/$ac_word..." >&5
2021 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
2022 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
2029 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2033 MSGMERGE="$ac_cv_path_MSGMERGE"
2034 if test "$MSGMERGE" != ":"; then
2035 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
2036 echo "${ECHO_T}$MSGMERGE" >&6
2038 echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6
2043 if test "$GMSGFMT" != ":"; then
2044 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
2045 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2048 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2049 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
2050 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
2055 if test "$XGETTEXT" != ":"; then
2056 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2057 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2060 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
2061 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
2067 ac_config_commands="$ac_config_commands default-1"
2070 DEPDIR="${am__leading_dot}deps"
2072 ac_config_commands="$ac_config_commands depfiles"
2075 am_make=${MAKE-make}
2076 cat > confinc << 'END'
2081 # If we don't find an include directive, just comment out the code.
2082 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2083 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2087 # First try GNU make style include.
2088 echo "include confinc" > confmf
2089 # We grep out `Entering directory' and `Leaving directory'
2090 # messages which can occur if `w' ends up in MAKEFLAGS.
2091 # In particular we don't look at `^make:' because GNU make might
2092 # be invoked under some other name (usually "gmake"), in which
2093 # case it prints its new name instead of `make'.
2094 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2099 # Now try BSD make style include.
2100 if test "$am__include" = "#"; then
2101 echo '.include "confinc"' > confmf
2102 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2103 am__include=.include
2110 echo "$as_me:$LINENO: result: $_am_result" >&5
2111 echo "${ECHO_T}$_am_result" >&6
2112 rm -f confinc confmf
2114 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2115 if test "${enable_dependency_tracking+set}" = set; then
2116 enableval="$enable_dependency_tracking"
2119 if test "x$enable_dependency_tracking" != xno; then
2120 am_depcomp="$ac_aux_dir/depcomp"
2125 if test "x$enable_dependency_tracking" != xno; then
2136 ac_cpp='$CPP $CPPFLAGS'
2137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140 if test -n "$ac_tool_prefix"; then
2141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2143 echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2145 if test "${ac_cv_prog_CC+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 if test -n "$CC"; then
2149 ac_cv_prog_CC="$CC" # Let the user override the test.
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
2157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2168 if test -n "$CC"; then
2169 echo "$as_me:$LINENO: result: $CC" >&5
2170 echo "${ECHO_T}$CC" >&6
2172 echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6
2177 if test -z "$ac_cv_prog_CC"; then
2179 # Extract the first word of "gcc", so it can be a program name with args.
2180 set dummy gcc; ac_word=$2
2181 echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2183 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 if test -n "$ac_ct_CC"; then
2187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
2195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2196 ac_cv_prog_ac_ct_CC="gcc"
2197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2206 if test -n "$ac_ct_CC"; then
2207 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2208 echo "${ECHO_T}$ac_ct_CC" >&6
2210 echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6
2219 if test -z "$CC"; then
2220 if test -n "$ac_tool_prefix"; then
2221 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2222 set dummy ${ac_tool_prefix}cc; ac_word=$2
2223 echo "$as_me:$LINENO: checking for $ac_word" >&5
2224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2225 if test "${ac_cv_prog_CC+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2228 if test -n "$CC"; then
2229 ac_cv_prog_CC="$CC" # Let the user override the test.
2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 test -z "$as_dir" && as_dir=.
2236 for ac_exec_ext in '' $ac_executable_extensions; do
2237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2238 ac_cv_prog_CC="${ac_tool_prefix}cc"
2239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 if test -n "$CC"; then
2249 echo "$as_me:$LINENO: result: $CC" >&5
2250 echo "${ECHO_T}$CC" >&6
2252 echo "$as_me:$LINENO: result: no" >&5
2253 echo "${ECHO_T}no" >&6
2257 if test -z "$ac_cv_prog_CC"; then
2259 # Extract the first word of "cc", so it can be a program name with args.
2260 set dummy cc; ac_word=$2
2261 echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 if test -n "$ac_ct_CC"; then
2267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 test -z "$as_dir" && as_dir=.
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276 ac_cv_prog_ac_ct_CC="cc"
2277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2286 if test -n "$ac_ct_CC"; then
2287 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2288 echo "${ECHO_T}$ac_ct_CC" >&6
2290 echo "$as_me:$LINENO: result: no" >&5
2291 echo "${ECHO_T}no" >&6
2300 if test -z "$CC"; then
2301 # Extract the first word of "cc", so it can be a program name with args.
2302 set dummy cc; ac_word=$2
2303 echo "$as_me:$LINENO: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2305 if test "${ac_cv_prog_CC+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 if test -n "$CC"; then
2309 ac_cv_prog_CC="$CC" # Let the user override the test.
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 test -z "$as_dir" && as_dir=.
2317 for ac_exec_ext in '' $ac_executable_extensions; do
2318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2319 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2320 ac_prog_rejected=yes
2324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 if test $ac_prog_rejected = yes; then
2331 # We found a bogon in the path, so make sure we never use it.
2332 set dummy $ac_cv_prog_CC
2334 if test $# != 0; then
2335 # We chose a different compiler from the bogus one.
2336 # However, it has the same basename, so the bogon will be chosen
2337 # first if we set CC to just the basename; use the full file name.
2339 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2345 if test -n "$CC"; then
2346 echo "$as_me:$LINENO: result: $CC" >&5
2347 echo "${ECHO_T}$CC" >&6
2349 echo "$as_me:$LINENO: result: no" >&5
2350 echo "${ECHO_T}no" >&6
2354 if test -z "$CC"; then
2355 if test -n "$ac_tool_prefix"; then
2358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2360 echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2362 if test "${ac_cv_prog_CC+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 if test -n "$CC"; then
2366 ac_cv_prog_CC="$CC" # Let the user override the test.
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2375 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 if test -n "$CC"; then
2386 echo "$as_me:$LINENO: result: $CC" >&5
2387 echo "${ECHO_T}$CC" >&6
2389 echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6
2393 test -n "$CC" && break
2396 if test -z "$CC"; then
2400 # Extract the first word of "$ac_prog", so it can be a program name with args.
2401 set dummy $ac_prog; ac_word=$2
2402 echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2404 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 if test -n "$ac_ct_CC"; then
2408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 test -z "$as_dir" && as_dir=.
2415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417 ac_cv_prog_ac_ct_CC="$ac_prog"
2418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2427 if test -n "$ac_ct_CC"; then
2428 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2429 echo "${ECHO_T}$ac_ct_CC" >&6
2431 echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6
2435 test -n "$ac_ct_CC" && break
2444 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2445 See \`config.log' for more details." >&5
2446 echo "$as_me: error: no acceptable C compiler found in \$PATH
2447 See \`config.log' for more details." >&2;}
2448 { (exit 1); exit 1; }; }
2450 # Provide some information about the compiler.
2451 echo "$as_me:$LINENO:" \
2452 "checking for C compiler version" >&5
2453 ac_compiler=`set X $ac_compile; echo $2`
2454 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2455 (eval $ac_compiler --version </dev/null >&5) 2>&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }
2459 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2460 (eval $ac_compiler -v </dev/null >&5) 2>&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }
2464 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2465 (eval $ac_compiler -V </dev/null >&5) 2>&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }
2470 cat >conftest.$ac_ext <<_ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2485 ac_clean_files_save=$ac_clean_files
2486 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2487 # Try to create an executable without -o first, disregard a.out.
2488 # It will help us diagnose broken compilers, and finding out an intuition
2490 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2491 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2492 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2493 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2494 (eval $ac_link_default) 2>&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; then
2498 # Find the output, starting from the most likely. This scheme is
2499 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2502 # Be careful to initialize this variable, since it used to be cached.
2503 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2505 # b.out is created by i960 compilers.
2506 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2508 test -f "$ac_file" || continue
2510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2513 # This is the source file.
2516 # We found the default executable, but exeext='' is most
2520 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2521 # FIXME: I believe we export ac_cv_exeext for Libtool,
2522 # but it would be cool to find out if it's true. Does anybody
2523 # maintain Libtool? --akim.
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2534 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2535 See \`config.log' for more details." >&5
2536 echo "$as_me: error: C compiler cannot create executables
2537 See \`config.log' for more details." >&2;}
2538 { (exit 77); exit 77; }; }
2541 ac_exeext=$ac_cv_exeext
2542 echo "$as_me:$LINENO: result: $ac_file" >&5
2543 echo "${ECHO_T}$ac_file" >&6
2545 # Check the compiler produces executables we can run. If not, either
2546 # the compiler is broken, or we cross compile.
2547 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2548 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2549 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2550 # If not cross compiling, check that we can run a simple program.
2551 if test "$cross_compiling" != yes; then
2552 if { ac_try='./$ac_file'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; }; then
2560 if test "$cross_compiling" = maybe; then
2563 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2564 If you meant to cross compile, use \`--host'.
2565 See \`config.log' for more details." >&5
2566 echo "$as_me: error: cannot run C compiled programs.
2567 If you meant to cross compile, use \`--host'.
2568 See \`config.log' for more details." >&2;}
2569 { (exit 1); exit 1; }; }
2573 echo "$as_me:$LINENO: result: yes" >&5
2574 echo "${ECHO_T}yes" >&6
2576 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2577 ac_clean_files=$ac_clean_files_save
2578 # Check the compiler produces executables we can run. If not, either
2579 # the compiler is broken, or we cross compile.
2580 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2581 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2582 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2583 echo "${ECHO_T}$cross_compiling" >&6
2585 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2586 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2588 (eval $ac_link) 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; then
2592 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2593 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2594 # work properly (i.e., refer to `conftest.exe'), while it won't with
2596 for ac_file in conftest.exe conftest conftest.*; do
2597 test -f "$ac_file" || continue
2599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2600 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2607 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2608 See \`config.log' for more details." >&5
2609 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2610 See \`config.log' for more details." >&2;}
2611 { (exit 1); exit 1; }; }
2614 rm -f conftest$ac_cv_exeext
2615 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2616 echo "${ECHO_T}$ac_cv_exeext" >&6
2618 rm -f conftest.$ac_ext
2619 EXEEXT=$ac_cv_exeext
2621 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2622 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2623 if test "${ac_cv_objext+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 cat >conftest.$ac_ext <<_ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h. */
2641 rm -f conftest.o conftest.obj
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643 (eval $ac_compile) 2>&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; then
2647 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2650 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2655 echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2658 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2659 See \`config.log' for more details." >&5
2660 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2661 See \`config.log' for more details." >&2;}
2662 { (exit 1); exit 1; }; }
2665 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2667 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2668 echo "${ECHO_T}$ac_cv_objext" >&6
2669 OBJEXT=$ac_cv_objext
2671 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2672 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2673 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 cat >conftest.$ac_ext <<_ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2694 rm -f conftest.$ac_objext
2695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2696 (eval $ac_compile) 2>conftest.er1
2698 grep -v '^ *+' conftest.er1 >conftest.err
2700 cat conftest.err >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } &&
2703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; } &&
2709 { ac_try='test -s conftest.$ac_objext'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; }; then
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2723 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2726 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2727 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2728 GCC=`test $ac_compiler_gnu = yes && echo yes`
2729 ac_test_CFLAGS=${CFLAGS+set}
2730 ac_save_CFLAGS=$CFLAGS
2732 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2733 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2734 if test "${ac_cv_prog_cc_g+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 cat >conftest.$ac_ext <<_ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h. */
2752 rm -f conftest.$ac_objext
2753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2754 (eval $ac_compile) 2>conftest.er1
2756 grep -v '^ *+' conftest.er1 >conftest.err
2758 cat conftest.err >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); } &&
2761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }; } &&
2767 { ac_try='test -s conftest.$ac_objext'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; }; then
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2782 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2783 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2784 if test "$ac_test_CFLAGS" = set; then
2785 CFLAGS=$ac_save_CFLAGS
2786 elif test $ac_cv_prog_cc_g = yes; then
2787 if test "$GCC" = yes; then
2793 if test "$GCC" = yes; then
2799 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2800 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2801 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 ac_cv_prog_cc_stdc=no
2806 cat >conftest.$ac_ext <<_ACEOF
2809 cat confdefs.h >>conftest.$ac_ext
2810 cat >>conftest.$ac_ext <<_ACEOF
2811 /* end confdefs.h. */
2814 #include <sys/types.h>
2815 #include <sys/stat.h>
2816 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2817 struct buf { int x; };
2818 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2819 static char *e (p, i)
2825 static char *f (char * (*g) (char **, int), char **p, ...)
2830 s = g (p, va_arg (v,int));
2835 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2836 function prototypes and stuff, but not '\xHH' hex character constants.
2837 These don't provoke an error unfortunately, instead are silently treated
2838 as 'x'. The following induces an error, until -std1 is added to get
2839 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2840 array size at least. It's necessary to write '\x00'==0 to get something
2841 that's true only with -std1. */
2842 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2844 int test (int i, double x);
2845 struct s1 {int (*f) (int a);};
2846 struct s2 {int (*f) (double a);};
2847 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2853 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2858 # Don't try gcc -ansi; that turns off useful extensions and
2859 # breaks some systems' header files.
2860 # AIX -qlanglvl=ansi
2861 # Ultrix and OSF/1 -std1
2862 # HP-UX 10.20 and later -Ae
2863 # HP-UX older versions -Aa -D_HPUX_SOURCE
2864 # SVR4 -Xc -D__EXTENSIONS__
2865 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2867 CC="$ac_save_CC $ac_arg"
2868 rm -f conftest.$ac_objext
2869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2870 (eval $ac_compile) 2>conftest.er1
2872 grep -v '^ *+' conftest.er1 >conftest.err
2874 cat conftest.err >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); } &&
2877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; } &&
2883 { ac_try='test -s conftest.$ac_objext'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2889 ac_cv_prog_cc_stdc=$ac_arg
2892 echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2896 rm -f conftest.err conftest.$ac_objext
2898 rm -f conftest.$ac_ext conftest.$ac_objext
2903 case "x$ac_cv_prog_cc_stdc" in
2905 echo "$as_me:$LINENO: result: none needed" >&5
2906 echo "${ECHO_T}none needed" >&6 ;;
2908 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2909 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2910 CC="$CC $ac_cv_prog_cc_stdc" ;;
2913 # Some people use a C++ compiler to compile C. Since we use `exit',
2914 # in C++ we need to declare it. In case someone uses the same compiler
2915 # for both compiling C and C++ we need to have the C++ compiler decide
2916 # the declaration of exit, since it's the most demanding environment.
2917 cat >conftest.$ac_ext <<_ACEOF
2922 rm -f conftest.$ac_objext
2923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2924 (eval $ac_compile) 2>conftest.er1
2926 grep -v '^ *+' conftest.er1 >conftest.err
2928 cat conftest.err >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } &&
2931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; } &&
2937 { ac_try='test -s conftest.$ac_objext'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; }; then
2943 for ac_declaration in \
2945 'extern "C" void std::exit (int) throw (); using std::exit;' \
2946 'extern "C" void std::exit (int); using std::exit;' \
2947 'extern "C" void exit (int) throw ();' \
2948 'extern "C" void exit (int);' \
2951 cat >conftest.$ac_ext <<_ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2967 rm -f conftest.$ac_objext
2968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2969 (eval $ac_compile) 2>conftest.er1
2971 grep -v '^ *+' conftest.er1 >conftest.err
2973 cat conftest.err >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } &&
2976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; } &&
2982 { ac_try='test -s conftest.$ac_objext'
2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; }; then
2990 echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2996 cat >conftest.$ac_ext <<_ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3011 rm -f conftest.$ac_objext
3012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013 (eval $ac_compile) 2>conftest.er1
3015 grep -v '^ *+' conftest.er1 >conftest.err
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
3020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; } &&
3026 { ac_try='test -s conftest.$ac_objext'
3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; }; then
3034 echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3041 if test -n "$ac_declaration"; then
3042 echo '#ifdef __cplusplus' >>confdefs.h
3043 echo $ac_declaration >>confdefs.h
3044 echo '#endif' >>confdefs.h
3048 echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3054 ac_cpp='$CPP $CPPFLAGS'
3055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3059 depcc="$CC" am_compiler_list=
3061 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3062 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3063 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3067 # We make a subdir and do the tests there. Otherwise we can end up
3068 # making bogus files that we don't know about and never remove. For
3069 # instance it was reported that on HP-UX the gcc test will end up
3070 # making a dummy file named `D' -- because `-MD' means `put the output
3073 # Copy depcomp to subdir because otherwise we won't find it if we're
3074 # using a relative directory.
3075 cp "$am_depcomp" conftest.dir
3077 # We will build objects and dependencies in a subdirectory because
3078 # it helps to detect inapplicable dependency modes. For instance
3079 # both Tru64's cc and ICC support -MD to output dependencies as a
3080 # side effect of compilation, but ICC will put the dependencies in
3081 # the current directory while Tru64 will put them in the object
3085 am_cv_CC_dependencies_compiler_type=none
3086 if test "$am_compiler_list" = ""; then
3087 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3089 for depmode in $am_compiler_list; do
3090 # Setup a source with many dependencies, because some compilers
3091 # like to wrap large dependency lists on column 80 (with \), and
3092 # we should not choose a depcomp mode which is confused by this.
3094 # We need to recreate these files for each test, as the compiler may
3095 # overwrite some of them when testing with obscure command lines.
3096 # This happens at least with the AIX C compiler.
3098 for i in 1 2 3 4 5 6; do
3099 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3100 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3101 # Solaris 8's {/usr,}/bin/sh.
3102 touch sub/conftst$i.h
3104 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3108 # after this tag, mechanisms are not by side-effect, so they'll
3109 # only be used when explicitly requested
3110 if test "x$enable_dependency_tracking" = xyes; then
3118 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3119 # mode. It turns out that the SunPro C++ compiler does not properly
3120 # handle `-M -o', and we need to detect this.
3121 if depmode=$depmode \
3122 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3123 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3124 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3125 >/dev/null 2>conftest.err &&
3126 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3127 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3128 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3129 # icc doesn't choke on unknown options, it will just issue warnings
3130 # or remarks (even with -Werror). So we grep stderr for any message
3131 # that says an option was ignored or not supported.
3132 # When given -MP, icc 7.0 and 7.1 complain thusly:
3133 # icc: Command line warning: ignoring option '-M'; no argument required
3134 # The diagnosis changed in icc 8.0:
3135 # icc: Command line remark: option '-MP' not supported
3136 if (grep 'ignoring option' conftest.err ||
3137 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3138 am_cv_CC_dependencies_compiler_type=$depmode
3147 am_cv_CC_dependencies_compiler_type=none
3151 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3152 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3153 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3158 test "x$enable_dependency_tracking" != xno \
3159 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3161 am__fastdepCC_FALSE='#'
3163 am__fastdepCC_TRUE='#'
3164 am__fastdepCC_FALSE=
3168 # Make sure we can run config.sub.
3169 $ac_config_sub sun4 >/dev/null 2>&1 ||
3170 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3171 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3172 { (exit 1); exit 1; }; }
3174 echo "$as_me:$LINENO: checking build system type" >&5
3175 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3176 if test "${ac_cv_build+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3179 ac_cv_build_alias=$build_alias
3180 test -z "$ac_cv_build_alias" &&
3181 ac_cv_build_alias=`$ac_config_guess`
3182 test -z "$ac_cv_build_alias" &&
3183 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3184 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3185 { (exit 1); exit 1; }; }
3186 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3187 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3188 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3189 { (exit 1); exit 1; }; }
3192 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3193 echo "${ECHO_T}$ac_cv_build" >&6
3195 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3196 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3197 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3200 echo "$as_me:$LINENO: checking host system type" >&5
3201 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3202 if test "${ac_cv_host+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 ac_cv_host_alias=$host_alias
3206 test -z "$ac_cv_host_alias" &&
3207 ac_cv_host_alias=$ac_cv_build_alias
3208 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3209 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3210 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3211 { (exit 1); exit 1; }; }
3214 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3215 echo "${ECHO_T}$ac_cv_host" >&6
3217 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3218 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3219 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3229 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3230 # On Suns, sometimes $CPP names a directory.
3231 if test -n "$CPP" && test -d "$CPP"; then
3234 if test -z "$CPP"; then
3235 if test "${ac_cv_prog_CPP+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 # Double quotes because CPP needs to be expanded
3239 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3242 for ac_c_preproc_warn_flag in '' yes
3244 # Use a header file that comes with gcc, so configuring glibc
3245 # with a fresh cross-compiler works.
3246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3247 # <limits.h> exists even on freestanding compilers.
3248 # On the NeXT, cc -E runs the code through the compiler's parser,
3249 # not just through cpp. "Syntax error" is here to catch this case.
3250 cat >conftest.$ac_ext <<_ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3257 # include <limits.h>
3259 # include <assert.h>
3263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3266 grep -v '^ *+' conftest.er1 >conftest.err
3268 cat conftest.err >&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); } >/dev/null; then
3271 if test -s conftest.err; then
3272 ac_cpp_err=$ac_c_preproc_warn_flag
3273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3280 if test -z "$ac_cpp_err"; then
3283 echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3286 # Broken: fails on valid input.
3289 rm -f conftest.err conftest.$ac_ext
3291 # OK, works on sane cases. Now check whether non-existent headers
3292 # can be detected and how.
3293 cat >conftest.$ac_ext <<_ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3299 #include <ac_nonexistent.h>
3301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3304 grep -v '^ *+' conftest.er1 >conftest.err
3306 cat conftest.err >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } >/dev/null; then
3309 if test -s conftest.err; then
3310 ac_cpp_err=$ac_c_preproc_warn_flag
3311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3318 if test -z "$ac_cpp_err"; then
3319 # Broken: success on invalid input.
3322 echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3325 # Passes both tests.
3329 rm -f conftest.err conftest.$ac_ext
3332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3333 rm -f conftest.err conftest.$ac_ext
3334 if $ac_preproc_ok; then
3346 echo "$as_me:$LINENO: result: $CPP" >&5
3347 echo "${ECHO_T}$CPP" >&6
3349 for ac_c_preproc_warn_flag in '' yes
3351 # Use a header file that comes with gcc, so configuring glibc
3352 # with a fresh cross-compiler works.
3353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3354 # <limits.h> exists even on freestanding compilers.
3355 # On the NeXT, cc -E runs the code through the compiler's parser,
3356 # not just through cpp. "Syntax error" is here to catch this case.
3357 cat >conftest.$ac_ext <<_ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h. */
3364 # include <limits.h>
3366 # include <assert.h>
3370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3373 grep -v '^ *+' conftest.er1 >conftest.err
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null; then
3378 if test -s conftest.err; then
3379 ac_cpp_err=$ac_c_preproc_warn_flag
3380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3387 if test -z "$ac_cpp_err"; then
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3393 # Broken: fails on valid input.
3396 rm -f conftest.err conftest.$ac_ext
3398 # OK, works on sane cases. Now check whether non-existent headers
3399 # can be detected and how.
3400 cat >conftest.$ac_ext <<_ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406 #include <ac_nonexistent.h>
3408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3411 grep -v '^ *+' conftest.er1 >conftest.err
3413 cat conftest.err >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } >/dev/null; then
3416 if test -s conftest.err; then
3417 ac_cpp_err=$ac_c_preproc_warn_flag
3418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3425 if test -z "$ac_cpp_err"; then
3426 # Broken: success on invalid input.
3429 echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3432 # Passes both tests.
3436 rm -f conftest.err conftest.$ac_ext
3439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3440 rm -f conftest.err conftest.$ac_ext
3441 if $ac_preproc_ok; then
3444 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3445 See \`config.log' for more details." >&5
3446 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3447 See \`config.log' for more details." >&2;}
3448 { (exit 1); exit 1; }; }
3452 ac_cpp='$CPP $CPPFLAGS'
3453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458 echo "$as_me:$LINENO: checking for egrep" >&5
3459 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3460 if test "${ac_cv_prog_egrep+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3464 then ac_cv_prog_egrep='grep -E'
3465 else ac_cv_prog_egrep='egrep'
3468 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3469 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3470 EGREP=$ac_cv_prog_egrep
3474 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
3475 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
3476 if test "${ac_cv_gnu_library_2+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 cat >conftest.$ac_ext <<_ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3486 #include <features.h>
3487 #ifdef __GNU_LIBRARY__
3488 #if (__GLIBC__ >= 2)
3494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3495 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
3496 ac_cv_gnu_library_2=yes
3498 ac_cv_gnu_library_2=no
3505 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
3506 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
3508 GLIBC2="$ac_cv_gnu_library_2"
3511 if test -n "$ac_tool_prefix"; then
3512 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3513 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3514 echo "$as_me:$LINENO: checking for $ac_word" >&5
3515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3516 if test "${ac_cv_prog_RANLIB+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 if test -n "$RANLIB"; then
3520 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 RANLIB=$ac_cv_prog_RANLIB
3539 if test -n "$RANLIB"; then
3540 echo "$as_me:$LINENO: result: $RANLIB" >&5
3541 echo "${ECHO_T}$RANLIB" >&6
3543 echo "$as_me:$LINENO: result: no" >&5
3544 echo "${ECHO_T}no" >&6
3548 if test -z "$ac_cv_prog_RANLIB"; then
3549 ac_ct_RANLIB=$RANLIB
3550 # Extract the first word of "ranlib", so it can be a program name with args.
3551 set dummy ranlib; ac_word=$2
3552 echo "$as_me:$LINENO: checking for $ac_word" >&5
3553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3554 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 if test -n "$ac_ct_RANLIB"; then
3558 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567 ac_cv_prog_ac_ct_RANLIB="ranlib"
3568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3577 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3578 if test -n "$ac_ct_RANLIB"; then
3579 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3580 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3582 echo "$as_me:$LINENO: result: no" >&5
3583 echo "${ECHO_T}no" >&6
3586 RANLIB=$ac_ct_RANLIB
3588 RANLIB="$ac_cv_prog_RANLIB"
3591 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3592 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3593 if test "${ac_cv_search_strerror+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 ac_func_search_save_LIBS=$LIBS
3597 ac_cv_search_strerror=no
3598 cat >conftest.$ac_ext <<_ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3605 /* Override any gcc2 internal prototype to avoid an error. */
3609 /* We use char because int might match the return type of a gcc2
3610 builtin and then its argument prototype would still apply. */
3620 rm -f conftest.$ac_objext conftest$ac_exeext
3621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3622 (eval $ac_link) 2>conftest.er1
3624 grep -v '^ *+' conftest.er1 >conftest.err
3626 cat conftest.err >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } &&
3629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; } &&
3635 { ac_try='test -s conftest$ac_exeext'
3636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; }; then
3641 ac_cv_search_strerror="none required"
3643 echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3647 rm -f conftest.err conftest.$ac_objext \
3648 conftest$ac_exeext conftest.$ac_ext
3649 if test "$ac_cv_search_strerror" = no; then
3650 for ac_lib in cposix; do
3651 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3652 cat >conftest.$ac_ext <<_ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3659 /* Override any gcc2 internal prototype to avoid an error. */
3663 /* We use char because int might match the return type of a gcc2
3664 builtin and then its argument prototype would still apply. */
3674 rm -f conftest.$ac_objext conftest$ac_exeext
3675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3676 (eval $ac_link) 2>conftest.er1
3678 grep -v '^ *+' conftest.er1 >conftest.err
3680 cat conftest.err >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); } &&
3683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; } &&
3689 { ac_try='test -s conftest$ac_exeext'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; }; then
3695 ac_cv_search_strerror="-l$ac_lib"
3698 echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3702 rm -f conftest.err conftest.$ac_objext \
3703 conftest$ac_exeext conftest.$ac_ext
3706 LIBS=$ac_func_search_save_LIBS
3708 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3709 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3710 if test "$ac_cv_search_strerror" != no; then
3711 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3715 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3716 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3717 if test "${ac_cv_header_stdc+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 cat >conftest.$ac_ext <<_ACEOF
3723 cat confdefs.h >>conftest.$ac_ext
3724 cat >>conftest.$ac_ext <<_ACEOF
3725 /* end confdefs.h. */
3739 rm -f conftest.$ac_objext
3740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3741 (eval $ac_compile) 2>conftest.er1
3743 grep -v '^ *+' conftest.er1 >conftest.err
3745 cat conftest.err >&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } &&
3748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; } &&
3754 { ac_try='test -s conftest.$ac_objext'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
3760 ac_cv_header_stdc=yes
3762 echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3765 ac_cv_header_stdc=no
3767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3769 if test $ac_cv_header_stdc = yes; then
3770 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3771 cat >conftest.$ac_ext <<_ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h. */
3780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3781 $EGREP "memchr" >/dev/null 2>&1; then
3784 ac_cv_header_stdc=no
3790 if test $ac_cv_header_stdc = yes; then
3791 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3792 cat >conftest.$ac_ext <<_ACEOF
3795 cat confdefs.h >>conftest.$ac_ext
3796 cat >>conftest.$ac_ext <<_ACEOF
3797 /* end confdefs.h. */
3801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3802 $EGREP "free" >/dev/null 2>&1; then
3805 ac_cv_header_stdc=no
3811 if test $ac_cv_header_stdc = yes; then
3812 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3813 if test "$cross_compiling" = yes; then
3816 cat >conftest.$ac_ext <<_ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3823 #if ((' ' & 0x0FF) == 0x020)
3824 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3825 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3827 # define ISLOWER(c) \
3828 (('a' <= (c) && (c) <= 'i') \
3829 || ('j' <= (c) && (c) <= 'r') \
3830 || ('s' <= (c) && (c) <= 'z'))
3831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3839 for (i = 0; i < 256; i++)
3840 if (XOR (islower (i), ISLOWER (i))
3841 || toupper (i) != TOUPPER (i))
3846 rm -f conftest$ac_exeext
3847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3848 (eval $ac_link) 2>&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; }; then
3859 echo "$as_me: program exited with status $ac_status" >&5
3860 echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3864 ac_cv_header_stdc=no
3866 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3870 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3871 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3872 if test $ac_cv_header_stdc = yes; then
3874 cat >>confdefs.h <<\_ACEOF
3875 #define STDC_HEADERS 1
3880 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3881 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3882 if test "${ac_cv_c_const+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 cat >conftest.$ac_ext <<_ACEOF
3888 cat confdefs.h >>conftest.$ac_ext
3889 cat >>conftest.$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3895 /* FIXME: Include the comments suggested by Paul. */
3897 /* Ultrix mips cc rejects this. */
3898 typedef int charset[2];
3900 /* SunOS 4.1.1 cc rejects this. */
3901 char const *const *ccp;
3903 /* NEC SVR4.0.2 mips cc rejects this. */
3904 struct point {int x, y;};
3905 static struct point const zero = {0,0};
3906 /* AIX XL C 1.02.0.0 rejects this.
3907 It does not let you subtract one const X* pointer from another in
3908 an arm of an if-expression whose if-part is not a constant
3910 const char *g = "string";
3911 ccp = &g + (g ? g-g : 0);
3912 /* HPUX 7.0 cc rejects these. */
3915 ccp = (char const *const *) p;
3916 { /* SCO 3.2v4 cc rejects this. */
3918 char const *s = 0 ? (char *) 0 : (char const *) 0;
3922 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3924 const int *foo = &x[0];
3927 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3928 typedef const int *iptr;
3932 { /* AIX XL C 1.02.0.0 rejects this saying
3933 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3934 struct s { int j; const int *ap[3]; };
3935 struct s *b; b->j = 5;
3937 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3946 rm -f conftest.$ac_objext
3947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3948 (eval $ac_compile) 2>conftest.er1
3950 grep -v '^ *+' conftest.er1 >conftest.err
3952 cat conftest.err >&5
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); } &&
3955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; } &&
3961 { ac_try='test -s conftest.$ac_objext'
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; }; then
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3976 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3977 echo "${ECHO_T}$ac_cv_c_const" >&6
3978 if test $ac_cv_c_const = no; then
3980 cat >>confdefs.h <<\_ACEOF
3987 echo "$as_me:$LINENO: checking for signed" >&5
3988 echo $ECHO_N "checking for signed... $ECHO_C" >&6
3989 if test "${bh_cv_c_signed+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 cat >conftest.$ac_ext <<_ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
4007 rm -f conftest.$ac_objext
4008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4009 (eval $ac_compile) 2>conftest.er1
4011 grep -v '^ *+' conftest.er1 >conftest.err
4013 cat conftest.err >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } &&
4016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; } &&
4022 { ac_try='test -s conftest.$ac_objext'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4037 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4038 echo "${ECHO_T}$bh_cv_c_signed" >&6
4039 if test $bh_cv_c_signed = no; then
4041 cat >>confdefs.h <<\_ACEOF
4047 echo "$as_me:$LINENO: checking for inline" >&5
4048 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4049 if test "${ac_cv_c_inline+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 for ac_kw in inline __inline__ __inline; do
4054 cat >conftest.$ac_ext <<_ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4062 static $ac_kw foo_t static_foo () {return 0; }
4063 $ac_kw foo_t foo () {return 0; }
4067 rm -f conftest.$ac_objext
4068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4069 (eval $ac_compile) 2>conftest.er1
4071 grep -v '^ *+' conftest.er1 >conftest.err
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } &&
4076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; } &&
4082 { ac_try='test -s conftest.$ac_objext'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; }; then
4088 ac_cv_c_inline=$ac_kw; break
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4098 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4099 echo "${ECHO_T}$ac_cv_c_inline" >&6
4102 case $ac_cv_c_inline in
4105 case $ac_cv_c_inline in
4107 *) ac_val=$ac_cv_c_inline;;
4109 cat >>confdefs.h <<_ACEOF
4111 #define inline $ac_val
4117 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4127 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4128 inttypes.h stdint.h unistd.h
4130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4131 echo "$as_me:$LINENO: checking for $ac_header" >&5
4132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 cat >conftest.$ac_ext <<_ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 $ac_includes_default
4144 #include <$ac_header>
4146 rm -f conftest.$ac_objext
4147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148 (eval $ac_compile) 2>conftest.er1
4150 grep -v '^ *+' conftest.er1 >conftest.err
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } &&
4155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; } &&
4161 { ac_try='test -s conftest.$ac_objext'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 eval "$as_ac_Header=yes"
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4172 eval "$as_ac_Header=no"
4174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4179 cat >>confdefs.h <<_ACEOF
4180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4188 echo "$as_me:$LINENO: checking for off_t" >&5
4189 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4190 if test "${ac_cv_type_off_t+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 cat >conftest.$ac_ext <<_ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4199 $ac_includes_default
4211 rm -f conftest.$ac_objext
4212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4213 (eval $ac_compile) 2>conftest.er1
4215 grep -v '^ *+' conftest.er1 >conftest.err
4217 cat conftest.err >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } &&
4220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; } &&
4226 { ac_try='test -s conftest.$ac_objext'
4227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; }; then
4232 ac_cv_type_off_t=yes
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4241 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4242 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4243 if test $ac_cv_type_off_t = yes; then
4247 cat >>confdefs.h <<_ACEOF
4253 echo "$as_me:$LINENO: checking for size_t" >&5
4254 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4255 if test "${ac_cv_type_size_t+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 cat >conftest.$ac_ext <<_ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4264 $ac_includes_default
4270 if (sizeof (size_t))
4276 rm -f conftest.$ac_objext
4277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4278 (eval $ac_compile) 2>conftest.er1
4280 grep -v '^ *+' conftest.er1 >conftest.err
4282 cat conftest.err >&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } &&
4285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; } &&
4291 { ac_try='test -s conftest.$ac_objext'
4292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; }; then
4297 ac_cv_type_size_t=yes
4299 echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4302 ac_cv_type_size_t=no
4304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4306 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4307 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4308 if test $ac_cv_type_size_t = yes; then
4312 cat >>confdefs.h <<_ACEOF
4313 #define size_t unsigned
4319 echo "$as_me:$LINENO: checking for long long" >&5
4320 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4321 if test "${ac_cv_type_long_long+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 cat >conftest.$ac_ext <<_ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 long long ll = 1LL; int i = 63;
4334 long long llmax = (long long) -1;
4335 return ll << i | ll >> i | llmax / ll | llmax % ll;
4340 rm -f conftest.$ac_objext conftest$ac_exeext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4342 (eval $ac_link) 2>conftest.er1
4344 grep -v '^ *+' conftest.er1 >conftest.err
4346 cat conftest.err >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } &&
4349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; } &&
4355 { ac_try='test -s conftest$ac_exeext'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; }; then
4361 ac_cv_type_long_long=yes
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4366 ac_cv_type_long_long=no
4368 rm -f conftest.err conftest.$ac_objext \
4369 conftest$ac_exeext conftest.$ac_ext
4371 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4372 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4373 if test $ac_cv_type_long_long = yes; then
4375 cat >>confdefs.h <<\_ACEOF
4376 #define HAVE_LONG_LONG 1
4382 echo "$as_me:$LINENO: checking for long double" >&5
4383 echo $ECHO_N "checking for long double... $ECHO_C" >&6
4384 if test "${gt_cv_c_long_double+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 if test "$GCC" = yes; then
4388 gt_cv_c_long_double=yes
4390 cat >conftest.$ac_ext <<_ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h. */
4397 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
4398 long double foo = 0.0;
4399 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4400 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
4410 rm -f conftest.$ac_objext
4411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412 (eval $ac_compile) 2>conftest.er1
4414 grep -v '^ *+' conftest.er1 >conftest.err
4416 cat conftest.err >&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); } &&
4419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; } &&
4425 { ac_try='test -s conftest.$ac_objext'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 gt_cv_c_long_double=yes
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 gt_cv_c_long_double=no
4438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4441 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
4442 echo "${ECHO_T}$gt_cv_c_long_double" >&6
4443 if test $gt_cv_c_long_double = yes; then
4445 cat >>confdefs.h <<\_ACEOF
4446 #define HAVE_LONG_DOUBLE 1
4452 echo "$as_me:$LINENO: checking for wchar_t" >&5
4453 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4454 if test "${gt_cv_c_wchar_t+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 cat >conftest.$ac_ext <<_ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4464 wchar_t foo = (wchar_t)'\0';
4473 rm -f conftest.$ac_objext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475 (eval $ac_compile) 2>conftest.er1
4477 grep -v '^ *+' conftest.er1 >conftest.err
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; } &&
4488 { ac_try='test -s conftest.$ac_objext'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; }; then
4496 echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4503 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
4504 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
4505 if test $gt_cv_c_wchar_t = yes; then
4507 cat >>confdefs.h <<\_ACEOF
4508 #define HAVE_WCHAR_T 1
4514 echo "$as_me:$LINENO: checking for wint_t" >&5
4515 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
4516 if test "${gt_cv_c_wint_t+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 cat >conftest.$ac_ext <<_ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h. */
4526 wint_t foo = (wchar_t)'\0';
4535 rm -f conftest.$ac_objext
4536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4537 (eval $ac_compile) 2>conftest.er1
4539 grep -v '^ *+' conftest.er1 >conftest.err
4541 cat conftest.err >&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
4544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; } &&
4550 { ac_try='test -s conftest.$ac_objext'
4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4558 echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4565 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
4566 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
4567 if test $gt_cv_c_wint_t = yes; then
4569 cat >>confdefs.h <<\_ACEOF
4570 #define HAVE_WINT_T 1
4576 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4577 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4578 if test "${gl_cv_header_inttypes_h+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 cat >conftest.$ac_ext <<_ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h. */
4587 #include <sys/types.h>
4588 #include <inttypes.h>
4592 uintmax_t i = (uintmax_t) -1;
4597 rm -f conftest.$ac_objext
4598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4599 (eval $ac_compile) 2>conftest.er1
4601 grep -v '^ *+' conftest.er1 >conftest.err
4603 cat conftest.err >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; } &&
4612 { ac_try='test -s conftest.$ac_objext'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4618 gl_cv_header_inttypes_h=yes
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4623 gl_cv_header_inttypes_h=no
4625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4627 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
4628 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
4629 if test $gl_cv_header_inttypes_h = yes; then
4631 cat >>confdefs.h <<_ACEOF
4632 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4638 echo "$as_me:$LINENO: checking for stdint.h" >&5
4639 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4640 if test "${gl_cv_header_stdint_h+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 cat >conftest.$ac_ext <<_ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4649 #include <sys/types.h>
4654 uintmax_t i = (uintmax_t) -1;
4659 rm -f conftest.$ac_objext
4660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4661 (eval $ac_compile) 2>conftest.er1
4663 grep -v '^ *+' conftest.er1 >conftest.err
4665 cat conftest.err >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } &&
4668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; } &&
4674 { ac_try='test -s conftest.$ac_objext'
4675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; }; then
4680 gl_cv_header_stdint_h=yes
4682 echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4685 gl_cv_header_stdint_h=no
4687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4689 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
4690 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
4691 if test $gl_cv_header_stdint_h = yes; then
4693 cat >>confdefs.h <<_ACEOF
4694 #define HAVE_STDINT_H_WITH_UINTMAX 1
4702 echo "$as_me:$LINENO: checking for intmax_t" >&5
4703 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
4704 if test "${gt_cv_c_intmax_t+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 cat >conftest.$ac_ext <<_ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4716 #if HAVE_STDINT_H_WITH_UINTMAX
4719 #if HAVE_INTTYPES_H_WITH_UINTMAX
4720 #include <inttypes.h>
4731 rm -f conftest.$ac_objext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733 (eval $ac_compile) 2>conftest.er1
4735 grep -v '^ *+' conftest.er1 >conftest.err
4737 cat conftest.err >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } &&
4740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; } &&
4746 { ac_try='test -s conftest.$ac_objext'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; }; then
4752 gt_cv_c_intmax_t=yes
4754 echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4761 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
4762 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
4763 if test $gt_cv_c_intmax_t = yes; then
4765 cat >>confdefs.h <<\_ACEOF
4766 #define HAVE_INTMAX_T 1
4773 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
4774 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
4775 if test "${gt_cv_func_printf_posix+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 if test "$cross_compiling" = yes; then
4781 cat >conftest.$ac_ext <<_ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h. */
4788 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
4793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4794 $EGREP "notposix" >/dev/null 2>&1; then
4795 gt_cv_func_printf_posix="guessing no"
4797 gt_cv_func_printf_posix="guessing yes"
4803 cat >conftest.$ac_ext <<_ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
4812 /* The string "%2$d %1$d", with dollar characters protected from the shell's
4813 dollar expansion (possibly an autoconf bug). */
4814 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
4815 static char buf[100];
4818 sprintf (buf, format, 33, 55);
4819 return (strcmp (buf, "55 33") != 0);
4822 rm -f conftest$ac_exeext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4824 (eval $ac_link) 2>&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; }; then
4833 gt_cv_func_printf_posix=yes
4835 echo "$as_me: program exited with status $ac_status" >&5
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4840 gt_cv_func_printf_posix=no
4842 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4846 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
4847 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
4848 case $gt_cv_func_printf_posix in
4851 cat >>confdefs.h <<\_ACEOF
4852 #define HAVE_POSIX_PRINTF 1
4858 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4859 # for constant arguments. Useless!
4860 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4861 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4862 if test "${ac_cv_working_alloca_h+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 cat >conftest.$ac_ext <<_ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4875 char *p = (char *) alloca (2 * sizeof (int));
4880 rm -f conftest.$ac_objext conftest$ac_exeext
4881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4882 (eval $ac_link) 2>conftest.er1
4884 grep -v '^ *+' conftest.er1 >conftest.err
4886 cat conftest.err >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } &&
4889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; } &&
4895 { ac_try='test -s conftest$ac_exeext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4901 ac_cv_working_alloca_h=yes
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4906 ac_cv_working_alloca_h=no
4908 rm -f conftest.err conftest.$ac_objext \
4909 conftest$ac_exeext conftest.$ac_ext
4911 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4912 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4913 if test $ac_cv_working_alloca_h = yes; then
4915 cat >>confdefs.h <<\_ACEOF
4916 #define HAVE_ALLOCA_H 1
4921 echo "$as_me:$LINENO: checking for alloca" >&5
4922 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4923 if test "${ac_cv_func_alloca_works+set}" = set; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4926 cat >conftest.$ac_ext <<_ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4933 # define alloca __builtin_alloca
4936 # include <malloc.h>
4937 # define alloca _alloca
4940 # include <alloca.h>
4945 # ifndef alloca /* predefined by HP cc +Olibcalls */
4956 char *p = (char *) alloca (1);
4961 rm -f conftest.$ac_objext conftest$ac_exeext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4963 (eval $ac_link) 2>conftest.er1
4965 grep -v '^ *+' conftest.er1 >conftest.err
4967 cat conftest.err >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } &&
4970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; } &&
4976 { ac_try='test -s conftest$ac_exeext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 ac_cv_func_alloca_works=yes
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4987 ac_cv_func_alloca_works=no
4989 rm -f conftest.err conftest.$ac_objext \
4990 conftest$ac_exeext conftest.$ac_ext
4992 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4993 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4995 if test $ac_cv_func_alloca_works = yes; then
4997 cat >>confdefs.h <<\_ACEOF
4998 #define HAVE_ALLOCA 1
5002 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5003 # that cause trouble. Some versions do not even contain alloca or
5004 # contain a buggy version. If you still want to use their alloca,
5005 # use ar to extract alloca.o from them instead of compiling alloca.c.
5007 ALLOCA=alloca.$ac_objext
5009 cat >>confdefs.h <<\_ACEOF
5014 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5015 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5016 if test "${ac_cv_os_cray+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 cat >conftest.$ac_ext <<_ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 #if defined(CRAY) && ! defined(CRAY2)
5032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5033 $EGREP "webecray" >/dev/null 2>&1; then
5041 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5042 echo "${ECHO_T}$ac_cv_os_cray" >&6
5043 if test $ac_cv_os_cray = yes; then
5044 for ac_func in _getb67 GETB67 getb67; do
5045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5046 echo "$as_me:$LINENO: checking for $ac_func" >&5
5047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5048 if eval "test \"\${$as_ac_var+set}\" = set"; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 cat >conftest.$ac_ext <<_ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5059 #define $ac_func innocuous_$ac_func
5061 /* System header to define __stub macros and hopefully few prototypes,
5062 which can conflict with char $ac_func (); below.
5063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5064 <limits.h> exists even on freestanding compilers. */
5067 # include <limits.h>
5069 # include <assert.h>
5074 /* Override any gcc2 internal prototype to avoid an error. */
5079 /* We use char because int might match the return type of a gcc2
5080 builtin and then its argument prototype would still apply. */
5082 /* The GNU C library defines this for functions which it implements
5083 to always fail with ENOSYS. Some functions are actually named
5084 something starting with __ and the normal name is an alias. */
5085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5088 char (*f) () = $ac_func;
5097 return f != $ac_func;
5102 rm -f conftest.$ac_objext conftest$ac_exeext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104 (eval $ac_link) 2>conftest.er1
5106 grep -v '^ *+' conftest.er1 >conftest.err
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
5111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; } &&
5117 { ac_try='test -s conftest$ac_exeext'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5123 eval "$as_ac_var=yes"
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5128 eval "$as_ac_var=no"
5130 rm -f conftest.err conftest.$ac_objext \
5131 conftest$ac_exeext conftest.$ac_ext
5133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5135 if test `eval echo '${'$as_ac_var'}'` = yes; then
5137 cat >>confdefs.h <<_ACEOF
5138 #define CRAY_STACKSEG_END $ac_func
5147 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5148 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5149 if test "${ac_cv_c_stack_direction+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 if test "$cross_compiling" = yes; then
5153 ac_cv_c_stack_direction=0
5155 cat >conftest.$ac_ext <<_ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h. */
5162 find_stack_direction ()
5164 static char *addr = 0;
5169 return find_stack_direction ();
5172 return (&dummy > addr) ? 1 : -1;
5178 exit (find_stack_direction () < 0);
5181 rm -f conftest$ac_exeext
5182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5183 (eval $ac_link) 2>&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); }; }; then
5192 ac_cv_c_stack_direction=1
5194 echo "$as_me: program exited with status $ac_status" >&5
5195 echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5199 ac_cv_c_stack_direction=-1
5201 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5204 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5205 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5207 cat >>confdefs.h <<_ACEOF
5208 #define STACK_DIRECTION $ac_cv_c_stack_direction
5216 for ac_header in stdlib.h unistd.h
5218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5220 echo "$as_me:$LINENO: checking for $ac_header" >&5
5221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5228 # Is the header compilable?
5229 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5231 cat >conftest.$ac_ext <<_ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 $ac_includes_default
5238 #include <$ac_header>
5240 rm -f conftest.$ac_objext
5241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5242 (eval $ac_compile) 2>conftest.er1
5244 grep -v '^ *+' conftest.er1 >conftest.err
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } &&
5249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }; } &&
5255 { ac_try='test -s conftest.$ac_objext'
5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; }; then
5261 ac_header_compiler=yes
5263 echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5266 ac_header_compiler=no
5268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5270 echo "${ECHO_T}$ac_header_compiler" >&6
5272 # Is the header present?
5273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5275 cat >conftest.$ac_ext <<_ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5281 #include <$ac_header>
5283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5286 grep -v '^ *+' conftest.er1 >conftest.err
5288 cat conftest.err >&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); } >/dev/null; then
5291 if test -s conftest.err; then
5292 ac_cpp_err=$ac_c_preproc_warn_flag
5293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5300 if test -z "$ac_cpp_err"; then
5301 ac_header_preproc=yes
5303 echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5306 ac_header_preproc=no
5308 rm -f conftest.err conftest.$ac_ext
5309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5310 echo "${ECHO_T}$ac_header_preproc" >&6
5312 # So? What about this header?
5313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5319 ac_header_preproc=yes
5322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5336 ## ------------------------------------------ ##
5337 ## Report this to the AC_PACKAGE_NAME lists. ##
5338 ## ------------------------------------------ ##
5341 sed "s/^/$as_me: WARNING: /" >&2
5344 echo "$as_me:$LINENO: checking for $ac_header" >&5
5345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 eval "$as_ac_Header=\$ac_header_preproc"
5351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5356 cat >>confdefs.h <<_ACEOF
5357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5365 for ac_func in getpagesize
5367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5368 echo "$as_me:$LINENO: checking for $ac_func" >&5
5369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5370 if eval "test \"\${$as_ac_var+set}\" = set"; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 cat >conftest.$ac_ext <<_ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5381 #define $ac_func innocuous_$ac_func
5383 /* System header to define __stub macros and hopefully few prototypes,
5384 which can conflict with char $ac_func (); below.
5385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5386 <limits.h> exists even on freestanding compilers. */
5389 # include <limits.h>
5391 # include <assert.h>
5396 /* Override any gcc2 internal prototype to avoid an error. */
5401 /* We use char because int might match the return type of a gcc2
5402 builtin and then its argument prototype would still apply. */
5404 /* The GNU C library defines this for functions which it implements
5405 to always fail with ENOSYS. Some functions are actually named
5406 something starting with __ and the normal name is an alias. */
5407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5410 char (*f) () = $ac_func;
5419 return f != $ac_func;
5424 rm -f conftest.$ac_objext conftest$ac_exeext
5425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5426 (eval $ac_link) 2>conftest.er1
5428 grep -v '^ *+' conftest.er1 >conftest.err
5430 cat conftest.err >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } &&
5433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; } &&
5439 { ac_try='test -s conftest$ac_exeext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 eval "$as_ac_var=yes"
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5450 eval "$as_ac_var=no"
5452 rm -f conftest.err conftest.$ac_objext \
5453 conftest$ac_exeext conftest.$ac_ext
5455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5457 if test `eval echo '${'$as_ac_var'}'` = yes; then
5458 cat >>confdefs.h <<_ACEOF
5459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5465 echo "$as_me:$LINENO: checking for working mmap" >&5
5466 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5467 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5470 if test "$cross_compiling" = yes; then
5471 ac_cv_func_mmap_fixed_mapped=no
5473 cat >conftest.$ac_ext <<_ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h. */
5479 $ac_includes_default
5480 /* malloc might have been renamed as rpl_malloc. */
5483 /* Thanks to Mike Haertel and Jim Avera for this test.
5484 Here is a matrix of mmap possibilities:
5485 mmap private not fixed
5486 mmap private fixed at somewhere currently unmapped
5487 mmap private fixed at somewhere already mapped
5488 mmap shared not fixed
5489 mmap shared fixed at somewhere currently unmapped
5490 mmap shared fixed at somewhere already mapped
5491 For private mappings, we should verify that changes cannot be read()
5492 back from the file, nor mmap's back from the file at a different
5493 address. (There have been systems where private was not correctly
5494 implemented like the infamous i386 svr4.0, and systems where the
5495 VM page cache was not coherent with the file system buffer cache
5496 like early versions of FreeBSD and possibly contemporary NetBSD.)
5497 For shared mappings, we should conversely verify that changes get
5498 propagated back to all the places they're supposed to be.
5500 Grep wants private fixed already mapped.
5501 The main things grep needs to know about mmap are:
5502 * does it exist and is it safe to write into the mmap'd area
5503 * how to use it (BSD variants) */
5506 #include <sys/mman.h>
5508 #if !STDC_HEADERS && !HAVE_STDLIB_H
5512 /* This mess was copied from the GNU getpagesize.h. */
5513 #if !HAVE_GETPAGESIZE
5514 /* Assume that all systems that can run configure have sys/param.h. */
5515 # if !HAVE_SYS_PARAM_H
5516 # define HAVE_SYS_PARAM_H 1
5519 # ifdef _SC_PAGESIZE
5520 # define getpagesize() sysconf(_SC_PAGESIZE)
5521 # else /* no _SC_PAGESIZE */
5522 # if HAVE_SYS_PARAM_H
5523 # include <sys/param.h>
5524 # ifdef EXEC_PAGESIZE
5525 # define getpagesize() EXEC_PAGESIZE
5526 # else /* no EXEC_PAGESIZE */
5528 # define getpagesize() NBPG * CLSIZE
5531 # endif /* no CLSIZE */
5532 # else /* no NBPG */
5534 # define getpagesize() NBPC
5535 # else /* no NBPC */
5537 # define getpagesize() PAGESIZE
5538 # endif /* PAGESIZE */
5539 # endif /* no NBPC */
5540 # endif /* no NBPG */
5541 # endif /* no EXEC_PAGESIZE */
5542 # else /* no HAVE_SYS_PARAM_H */
5543 # define getpagesize() 8192 /* punt totally */
5544 # endif /* no HAVE_SYS_PARAM_H */
5545 # endif /* no _SC_PAGESIZE */
5547 #endif /* no HAVE_GETPAGESIZE */
5552 char *data, *data2, *data3;
5556 pagesize = getpagesize ();
5558 /* First, make a file with some known garbage in it. */
5559 data = (char *) malloc (pagesize);
5562 for (i = 0; i < pagesize; ++i)
5563 *(data + i) = rand ();
5565 fd = creat ("conftest.mmap", 0600);
5568 if (write (fd, data, pagesize) != pagesize)
5572 /* Next, try to mmap the file at a fixed address which already has
5573 something else allocated at it. If we can, also make sure that
5574 we see the same garbage. */
5575 fd = open ("conftest.mmap", O_RDWR);
5578 data2 = (char *) malloc (2 * pagesize);
5581 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5582 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5583 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5585 for (i = 0; i < pagesize; ++i)
5586 if (*(data + i) != *(data2 + i))
5589 /* Finally, make sure that changes to the mapped area do not
5590 percolate back to the file as seen by read(). (This is a bug on
5591 some variants of i386 svr4.0.) */
5592 for (i = 0; i < pagesize; ++i)
5593 *(data2 + i) = *(data2 + i) + 1;
5594 data3 = (char *) malloc (pagesize);
5597 if (read (fd, data3, pagesize) != pagesize)
5599 for (i = 0; i < pagesize; ++i)
5600 if (*(data + i) != *(data3 + i))
5606 rm -f conftest$ac_exeext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5608 (eval $ac_link) 2>&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; }; then
5617 ac_cv_func_mmap_fixed_mapped=yes
5619 echo "$as_me: program exited with status $ac_status" >&5
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5624 ac_cv_func_mmap_fixed_mapped=no
5626 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5629 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5630 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5631 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5633 cat >>confdefs.h <<\_ACEOF
5641 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5642 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5643 if test "${ac_cv_gnu_library_2_1+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 cat >conftest.$ac_ext <<_ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5653 #include <features.h>
5654 #ifdef __GNU_LIBRARY__
5655 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5662 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5663 ac_cv_gnu_library_2_1=yes
5665 ac_cv_gnu_library_2_1=no
5672 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5673 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5675 GLIBC21="$ac_cv_gnu_library_2_1"
5680 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5681 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
5682 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5683 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 if test "$cross_compiling" = yes; then
5688 # Guess based on the CPU.
5690 alpha* | i3456786 | m68k | s390*)
5691 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5693 gt_cv_int_divbyzero_sigfpe="guessing no";;
5697 cat >conftest.$ac_ext <<_ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5709 sigfpe_handler (int sig)
5711 sigfpe_handler (sig) int sig;
5714 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5715 exit (sig != SIGFPE);
5725 signal (SIGFPE, sigfpe_handler);
5726 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5727 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5728 signal (SIGTRAP, sigfpe_handler);
5730 /* Linux/SPARC yields signal SIGILL. */
5731 #if defined (__sparc__) && defined (__linux__)
5732 signal (SIGILL, sigfpe_handler);
5741 rm -f conftest$ac_exeext
5742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5743 (eval $ac_link) 2>&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 gt_cv_int_divbyzero_sigfpe=yes
5754 echo "$as_me: program exited with status $ac_status" >&5
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5759 gt_cv_int_divbyzero_sigfpe=no
5761 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5765 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5766 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
5767 case "$gt_cv_int_divbyzero_sigfpe" in
5772 cat >>confdefs.h <<_ACEOF
5773 #define INTDIV0_RAISES_SIGFPE $value
5778 echo "$as_me:$LINENO: checking for unsigned long long" >&5
5779 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5780 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 cat >conftest.$ac_ext <<_ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 unsigned long long ull = 1ULL; int i = 63;
5793 unsigned long long ullmax = (unsigned long long) -1;
5794 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5799 rm -f conftest.$ac_objext conftest$ac_exeext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5801 (eval $ac_link) 2>conftest.er1
5803 grep -v '^ *+' conftest.er1 >conftest.err
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; } &&
5814 { ac_try='test -s conftest$ac_exeext'
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; }; then
5820 ac_cv_type_unsigned_long_long=yes
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5825 ac_cv_type_unsigned_long_long=no
5827 rm -f conftest.err conftest.$ac_objext \
5828 conftest$ac_exeext conftest.$ac_ext
5830 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5831 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5832 if test $ac_cv_type_unsigned_long_long = yes; then
5834 cat >>confdefs.h <<\_ACEOF
5835 #define HAVE_UNSIGNED_LONG_LONG 1
5843 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
5845 test $ac_cv_type_unsigned_long_long = yes \
5846 && ac_type='unsigned long long' \
5847 || ac_type='unsigned long'
5849 cat >>confdefs.h <<_ACEOF
5850 #define uintmax_t $ac_type
5855 cat >>confdefs.h <<\_ACEOF
5856 #define HAVE_UINTMAX_T 1
5862 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5863 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5864 if test "${gt_cv_header_inttypes_h+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 cat >conftest.$ac_ext <<_ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h. */
5874 #include <sys/types.h>
5875 #include <inttypes.h>
5884 rm -f conftest.$ac_objext
5885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5886 (eval $ac_compile) 2>conftest.er1
5888 grep -v '^ *+' conftest.er1 >conftest.err
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } &&
5893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; } &&
5899 { ac_try='test -s conftest.$ac_objext'
5900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
5905 gt_cv_header_inttypes_h=yes
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5910 gt_cv_header_inttypes_h=no
5912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5915 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
5916 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
5917 if test $gt_cv_header_inttypes_h = yes; then
5919 cat >>confdefs.h <<_ACEOF
5920 #define HAVE_INTTYPES_H 1
5927 if test $gt_cv_header_inttypes_h = yes; then
5928 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
5929 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
5930 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 cat >conftest.$ac_ext <<_ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 #include <inttypes.h>
5953 rm -f conftest.$ac_objext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5955 (eval $ac_compile) 2>conftest.er1
5957 grep -v '^ *+' conftest.er1 >conftest.err
5959 cat conftest.err >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } &&
5962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; } &&
5968 { ac_try='test -s conftest.$ac_objext'
5969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; }; then
5974 gt_cv_inttypes_pri_broken=no
5976 echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5979 gt_cv_inttypes_pri_broken=yes
5981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5984 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
5985 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
5987 if test "$gt_cv_inttypes_pri_broken" = yes; then
5989 cat >>confdefs.h <<_ACEOF
5990 #define PRI_MACROS_BROKEN 1
5997 for ac_header in stdint.h
5999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6001 echo "$as_me:$LINENO: checking for $ac_header" >&5
6002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6009 # Is the header compilable?
6010 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6011 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6012 cat >conftest.$ac_ext <<_ACEOF
6015 cat confdefs.h >>conftest.$ac_ext
6016 cat >>conftest.$ac_ext <<_ACEOF
6017 /* end confdefs.h. */
6018 $ac_includes_default
6019 #include <$ac_header>
6021 rm -f conftest.$ac_objext
6022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6023 (eval $ac_compile) 2>conftest.er1
6025 grep -v '^ *+' conftest.er1 >conftest.err
6027 cat conftest.err >&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); } &&
6030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; } &&
6036 { ac_try='test -s conftest.$ac_objext'
6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; }; then
6042 ac_header_compiler=yes
6044 echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6047 ac_header_compiler=no
6049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6051 echo "${ECHO_T}$ac_header_compiler" >&6
6053 # Is the header present?
6054 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6056 cat >conftest.$ac_ext <<_ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 #include <$ac_header>
6064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6067 grep -v '^ *+' conftest.er1 >conftest.err
6069 cat conftest.err >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } >/dev/null; then
6072 if test -s conftest.err; then
6073 ac_cpp_err=$ac_c_preproc_warn_flag
6074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6081 if test -z "$ac_cpp_err"; then
6082 ac_header_preproc=yes
6084 echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6087 ac_header_preproc=no
6089 rm -f conftest.err conftest.$ac_ext
6090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6091 echo "${ECHO_T}$ac_header_preproc" >&6
6093 # So? What about this header?
6094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6100 ac_header_preproc=yes
6103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6110 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6117 ## ------------------------------------------ ##
6118 ## Report this to the AC_PACKAGE_NAME lists. ##
6119 ## ------------------------------------------ ##
6122 sed "s/^/$as_me: WARNING: /" >&2
6125 echo "$as_me:$LINENO: checking for $ac_header" >&5
6126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 eval "$as_ac_Header=\$ac_header_preproc"
6132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6137 cat >>confdefs.h <<_ACEOF
6138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6145 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6146 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6148 cat >conftest.$ac_ext <<_ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6165 $EGREP "Found it" >/dev/null 2>&1; then
6170 if test -z "$result"; then
6171 if test "$cross_compiling" = yes; then
6172 # Depending upon the size, compute the lo and hi bounds.
6173 cat >conftest.$ac_ext <<_ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6183 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6190 rm -f conftest.$ac_objext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6192 (eval $ac_compile) 2>conftest.er1
6194 grep -v '^ *+' conftest.er1 >conftest.err
6196 cat conftest.err >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } &&
6199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; } &&
6205 { ac_try='test -s conftest.$ac_objext'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; }; then
6213 cat >conftest.$ac_ext <<_ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h. */
6223 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6230 rm -f conftest.$ac_objext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232 (eval $ac_compile) 2>conftest.er1
6234 grep -v '^ *+' conftest.er1 >conftest.err
6236 cat conftest.err >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } &&
6239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 ac_hi=$ac_mid; break
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6256 ac_lo=`expr $ac_mid + 1`
6257 if test $ac_lo -le $ac_mid; then
6261 ac_mid=`expr 2 '*' $ac_mid + 1`
6263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6266 echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6269 cat >conftest.$ac_ext <<_ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6279 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6286 rm -f conftest.$ac_objext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6288 (eval $ac_compile) 2>conftest.er1
6290 grep -v '^ *+' conftest.er1 >conftest.err
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } &&
6295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; } &&
6301 { ac_try='test -s conftest.$ac_objext'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; }; then
6309 cat >conftest.$ac_ext <<_ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h. */
6319 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6326 rm -f conftest.$ac_objext
6327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6328 (eval $ac_compile) 2>conftest.er1
6330 grep -v '^ *+' conftest.er1 >conftest.err
6332 cat conftest.err >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } &&
6335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; } &&
6341 { ac_try='test -s conftest.$ac_objext'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; }; then
6347 ac_lo=$ac_mid; break
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6352 ac_hi=`expr '(' $ac_mid ')' - 1`
6353 if test $ac_mid -le $ac_hi; then
6357 ac_mid=`expr 2 '*' $ac_mid`
6359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6370 # Binary search between lo and hi bounds.
6371 while test "x$ac_lo" != "x$ac_hi"; do
6372 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6373 cat >conftest.$ac_ext <<_ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6383 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6390 rm -f conftest.$ac_objext
6391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6392 (eval $ac_compile) 2>conftest.er1
6394 grep -v '^ *+' conftest.er1 >conftest.err
6396 cat conftest.err >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } &&
6399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; } &&
6405 { ac_try='test -s conftest.$ac_objext'
6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; }; then
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6416 ac_lo=`expr '(' $ac_mid ')' + 1`
6418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6425 if test "$cross_compiling" = yes; then
6426 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6427 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6428 { (exit 1); exit 1; }; }
6430 cat >conftest.$ac_ext <<_ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6437 long longval () { return ~(size_t)0 / 10; }
6438 unsigned long ulongval () { return ~(size_t)0 / 10; }
6445 FILE *f = fopen ("conftest.val", "w");
6448 if ((~(size_t)0 / 10) < 0)
6450 long i = longval ();
6451 if (i != (~(size_t)0 / 10))
6453 fprintf (f, "%ld\n", i);
6457 unsigned long i = ulongval ();
6458 if (i != (~(size_t)0 / 10))
6460 fprintf (f, "%lu\n", i);
6462 exit (ferror (f) || fclose (f) != 0);
6468 rm -f conftest$ac_exeext
6469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6470 (eval $ac_link) 2>&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; }; then
6479 res_hi=`cat conftest.val`
6481 echo "$as_me: program exited with status $ac_status" >&5
6482 echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6488 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6492 if test "$cross_compiling" = yes; then
6493 # Depending upon the size, compute the lo and hi bounds.
6494 cat >conftest.$ac_ext <<_ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6504 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
6511 rm -f conftest.$ac_objext
6512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6513 (eval $ac_compile) 2>conftest.er1
6515 grep -v '^ *+' conftest.er1 >conftest.err
6517 cat conftest.err >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } &&
6520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }; } &&
6526 { ac_try='test -s conftest.$ac_objext'
6527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; }; then
6534 cat >conftest.$ac_ext <<_ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h. */
6544 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6551 rm -f conftest.$ac_objext
6552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6553 (eval $ac_compile) 2>conftest.er1
6555 grep -v '^ *+' conftest.er1 >conftest.err
6557 cat conftest.err >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } &&
6560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; } &&
6566 { ac_try='test -s conftest.$ac_objext'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6572 ac_hi=$ac_mid; break
6574 echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6577 ac_lo=`expr $ac_mid + 1`
6578 if test $ac_lo -le $ac_mid; then
6582 ac_mid=`expr 2 '*' $ac_mid + 1`
6584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6587 echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6590 cat >conftest.$ac_ext <<_ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h. */
6600 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
6607 rm -f conftest.$ac_objext
6608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6609 (eval $ac_compile) 2>conftest.er1
6611 grep -v '^ *+' conftest.er1 >conftest.err
6613 cat conftest.err >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } &&
6616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; } &&
6622 { ac_try='test -s conftest.$ac_objext'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; }; then
6630 cat >conftest.$ac_ext <<_ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6640 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
6647 rm -f conftest.$ac_objext
6648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6649 (eval $ac_compile) 2>conftest.er1
6651 grep -v '^ *+' conftest.er1 >conftest.err
6653 cat conftest.err >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } &&
6656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; } &&
6662 { ac_try='test -s conftest.$ac_objext'
6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
6668 ac_lo=$ac_mid; break
6670 echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6673 ac_hi=`expr '(' $ac_mid ')' - 1`
6674 if test $ac_mid -le $ac_hi; then
6678 ac_mid=`expr 2 '*' $ac_mid`
6680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6691 # Binary search between lo and hi bounds.
6692 while test "x$ac_lo" != "x$ac_hi"; do
6693 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6694 cat >conftest.$ac_ext <<_ACEOF
6697 cat confdefs.h >>conftest.$ac_ext
6698 cat >>conftest.$ac_ext <<_ACEOF
6699 /* end confdefs.h. */
6704 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6711 rm -f conftest.$ac_objext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6713 (eval $ac_compile) 2>conftest.er1
6715 grep -v '^ *+' conftest.er1 >conftest.err
6717 cat conftest.err >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } &&
6720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; } &&
6726 { ac_try='test -s conftest.$ac_objext'
6727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; }; then
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6737 ac_lo=`expr '(' $ac_mid ')' + 1`
6739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6746 if test "$cross_compiling" = yes; then
6747 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6748 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6749 { (exit 1); exit 1; }; }
6751 cat >conftest.$ac_ext <<_ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6758 long longval () { return ~(size_t)0 % 10; }
6759 unsigned long ulongval () { return ~(size_t)0 % 10; }
6766 FILE *f = fopen ("conftest.val", "w");
6769 if ((~(size_t)0 % 10) < 0)
6771 long i = longval ();
6772 if (i != (~(size_t)0 % 10))
6774 fprintf (f, "%ld\n", i);
6778 unsigned long i = ulongval ();
6779 if (i != (~(size_t)0 % 10))
6781 fprintf (f, "%lu\n", i);
6783 exit (ferror (f) || fclose (f) != 0);
6789 rm -f conftest$ac_exeext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6791 (eval $ac_link) 2>&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); }; }; then
6800 res_lo=`cat conftest.val`
6802 echo "$as_me: program exited with status $ac_status" >&5
6803 echo "$as_me: failed program was:" >&5
6804 sed 's/^/| /' conftest.$ac_ext >&5
6809 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6813 if test "$cross_compiling" = yes; then
6814 # Depending upon the size, compute the lo and hi bounds.
6815 cat >conftest.$ac_ext <<_ACEOF
6818 cat confdefs.h >>conftest.$ac_ext
6819 cat >>conftest.$ac_ext <<_ACEOF
6820 /* end confdefs.h. */
6825 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
6832 rm -f conftest.$ac_objext
6833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6834 (eval $ac_compile) 2>conftest.er1
6836 grep -v '^ *+' conftest.er1 >conftest.err
6838 cat conftest.err >&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); } &&
6841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); }; } &&
6847 { ac_try='test -s conftest.$ac_objext'
6848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; }; then
6855 cat >conftest.$ac_ext <<_ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6865 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
6872 rm -f conftest.$ac_objext
6873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6874 (eval $ac_compile) 2>conftest.er1
6876 grep -v '^ *+' conftest.er1 >conftest.err
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
6881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; } &&
6887 { ac_try='test -s conftest.$ac_objext'
6888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; }; then
6893 ac_hi=$ac_mid; break
6895 echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6898 ac_lo=`expr $ac_mid + 1`
6899 if test $ac_lo -le $ac_mid; then
6903 ac_mid=`expr 2 '*' $ac_mid + 1`
6905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6908 echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6911 cat >conftest.$ac_ext <<_ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6921 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
6928 rm -f conftest.$ac_objext
6929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6930 (eval $ac_compile) 2>conftest.er1
6932 grep -v '^ *+' conftest.er1 >conftest.err
6934 cat conftest.err >&5
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); } &&
6937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); }; } &&
6943 { ac_try='test -s conftest.$ac_objext'
6944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); }; }; then
6951 cat >conftest.$ac_ext <<_ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h. */
6961 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
6968 rm -f conftest.$ac_objext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6970 (eval $ac_compile) 2>conftest.er1
6972 grep -v '^ *+' conftest.er1 >conftest.err
6974 cat conftest.err >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } &&
6977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; } &&
6983 { ac_try='test -s conftest.$ac_objext'
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; }; then
6989 ac_lo=$ac_mid; break
6991 echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6994 ac_hi=`expr '(' $ac_mid ')' - 1`
6995 if test $ac_mid -le $ac_hi; then
6999 ac_mid=`expr 2 '*' $ac_mid`
7001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7004 echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7012 # Binary search between lo and hi bounds.
7013 while test "x$ac_lo" != "x$ac_hi"; do
7014 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7015 cat >conftest.$ac_ext <<_ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h. */
7025 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7032 rm -f conftest.$ac_objext
7033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7034 (eval $ac_compile) 2>conftest.er1
7036 grep -v '^ *+' conftest.er1 >conftest.err
7038 cat conftest.err >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); } &&
7041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; } &&
7047 { ac_try='test -s conftest.$ac_objext'
7048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); }; }; then
7055 echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.$ac_ext >&5
7058 ac_lo=`expr '(' $ac_mid ')' + 1`
7060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7063 ?*) fits_in_uint=$ac_lo;;
7067 if test "$cross_compiling" = yes; then
7068 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7069 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7070 { (exit 1); exit 1; }; }
7072 cat >conftest.$ac_ext <<_ACEOF
7075 cat confdefs.h >>conftest.$ac_ext
7076 cat >>conftest.$ac_ext <<_ACEOF
7077 /* end confdefs.h. */
7079 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7080 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7087 FILE *f = fopen ("conftest.val", "w");
7090 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7092 long i = longval ();
7093 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7095 fprintf (f, "%ld\n", i);
7099 unsigned long i = ulongval ();
7100 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7102 fprintf (f, "%lu\n", i);
7104 exit (ferror (f) || fclose (f) != 0);
7110 rm -f conftest$ac_exeext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7112 (eval $ac_link) 2>&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; }; then
7121 fits_in_uint=`cat conftest.val`
7123 echo "$as_me: program exited with status $ac_status" >&5
7124 echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7134 if test "$fits_in_uint" = 1; then
7135 cat >conftest.$ac_ext <<_ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7143 extern unsigned long foo;
7153 rm -f conftest.$ac_objext
7154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7155 (eval $ac_compile) 2>conftest.er1
7157 grep -v '^ *+' conftest.er1 >conftest.err
7159 cat conftest.err >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); } &&
7162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); }; } &&
7168 { ac_try='test -s conftest.$ac_objext'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; }; then
7176 echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7182 if test -z "$result"; then
7183 if test "$fits_in_uint" = 1; then
7184 result="$res_hi$res_lo"U
7186 result="$res_hi$res_lo"UL
7192 echo "$as_me:$LINENO: result: $result" >&5
7193 echo "${ECHO_T}$result" >&6
7194 if test "$result" != yes; then
7196 cat >>confdefs.h <<_ACEOF
7197 #define SIZE_MAX $result
7206 for ac_header in stdint.h
7208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7210 echo "$as_me:$LINENO: checking for $ac_header" >&5
7211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7218 # Is the header compilable?
7219 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7221 cat >conftest.$ac_ext <<_ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h. */
7227 $ac_includes_default
7228 #include <$ac_header>
7230 rm -f conftest.$ac_objext
7231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7232 (eval $ac_compile) 2>conftest.er1
7234 grep -v '^ *+' conftest.er1 >conftest.err
7236 cat conftest.err >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } &&
7239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; } &&
7245 { ac_try='test -s conftest.$ac_objext'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; }; then
7251 ac_header_compiler=yes
7253 echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7256 ac_header_compiler=no
7258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7260 echo "${ECHO_T}$ac_header_compiler" >&6
7262 # Is the header present?
7263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7265 cat >conftest.$ac_ext <<_ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7271 #include <$ac_header>
7273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7276 grep -v '^ *+' conftest.er1 >conftest.err
7278 cat conftest.err >&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } >/dev/null; then
7281 if test -s conftest.err; then
7282 ac_cpp_err=$ac_c_preproc_warn_flag
7283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7290 if test -z "$ac_cpp_err"; then
7291 ac_header_preproc=yes
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7296 ac_header_preproc=no
7298 rm -f conftest.err conftest.$ac_ext
7299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7300 echo "${ECHO_T}$ac_header_preproc" >&6
7302 # So? What about this header?
7303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7309 ac_header_preproc=yes
7312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7326 ## ------------------------------------------ ##
7327 ## Report this to the AC_PACKAGE_NAME lists. ##
7328 ## ------------------------------------------ ##
7331 sed "s/^/$as_me: WARNING: /" >&2
7334 echo "$as_me:$LINENO: checking for $ac_header" >&5
7335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 eval "$as_ac_Header=\$ac_header_preproc"
7341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7346 cat >>confdefs.h <<_ACEOF
7347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7356 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
7357 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
7358 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 gt_save_CPPFLAGS="$CPPFLAGS"
7362 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
7363 gt_save_LIBS="$LIBS"
7364 LIBS="$LIBS -framework CoreFoundation"
7365 cat >conftest.$ac_ext <<_ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h. */
7371 #include <CFPreferences.h>
7375 CFPreferencesCopyAppValue(NULL, NULL)
7380 rm -f conftest.$ac_objext conftest$ac_exeext
7381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7382 (eval $ac_link) 2>conftest.er1
7384 grep -v '^ *+' conftest.er1 >conftest.err
7386 cat conftest.err >&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); } &&
7389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }; } &&
7395 { ac_try='test -s conftest$ac_exeext'
7396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); }; }; then
7401 gt_cv_func_CFPreferencesCopyAppValue=yes
7403 echo "$as_me: failed program was:" >&5
7404 sed 's/^/| /' conftest.$ac_ext >&5
7406 gt_cv_func_CFPreferencesCopyAppValue=no
7408 rm -f conftest.err conftest.$ac_objext \
7409 conftest$ac_exeext conftest.$ac_ext
7410 CPPFLAGS="$gt_save_CPPFLAGS"
7411 LIBS="$gt_save_LIBS"
7413 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7414 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
7415 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7417 cat >>confdefs.h <<\_ACEOF
7418 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
7422 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
7423 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
7424 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 gt_save_CPPFLAGS="$CPPFLAGS"
7428 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
7429 gt_save_LIBS="$LIBS"
7430 LIBS="$LIBS -framework CoreFoundation"
7431 cat >conftest.$ac_ext <<_ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h. */
7437 #include <CFLocale.h>
7441 CFLocaleCopyCurrent();
7446 rm -f conftest.$ac_objext conftest$ac_exeext
7447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7448 (eval $ac_link) 2>conftest.er1
7450 grep -v '^ *+' conftest.er1 >conftest.err
7452 cat conftest.err >&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } &&
7455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); }; } &&
7461 { ac_try='test -s conftest$ac_exeext'
7462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); }; }; then
7467 gt_cv_func_CFLocaleCopyCurrent=yes
7469 echo "$as_me: failed program was:" >&5
7470 sed 's/^/| /' conftest.$ac_ext >&5
7472 gt_cv_func_CFLocaleCopyCurrent=no
7474 rm -f conftest.err conftest.$ac_objext \
7475 conftest$ac_exeext conftest.$ac_ext
7476 CPPFLAGS="$gt_save_CPPFLAGS"
7477 LIBS="$gt_save_LIBS"
7479 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
7480 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
7481 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7483 cat >>confdefs.h <<\_ACEOF
7484 #define HAVE_CFLOCALECOPYCURRENT 1
7489 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7490 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
7495 if test "X$prefix" = "XNONE"; then
7496 acl_final_prefix="$ac_default_prefix"
7498 acl_final_prefix="$prefix"
7500 if test "X$exec_prefix" = "XNONE"; then
7501 acl_final_exec_prefix='${prefix}'
7503 acl_final_exec_prefix="$exec_prefix"
7505 acl_save_prefix="$prefix"
7506 prefix="$acl_final_prefix"
7507 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7508 prefix="$acl_save_prefix"
7511 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7512 if test "${with_gnu_ld+set}" = set; then
7513 withval="$with_gnu_ld"
7514 test "$withval" = no || with_gnu_ld=yes
7518 # Prepare PATH_SEPARATOR.
7519 # The user is always right.
7520 if test "${PATH_SEPARATOR+set}" != set; then
7521 echo "#! /bin/sh" >conf$$.sh
7522 echo "exit 0" >>conf$$.sh
7524 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7532 if test "$GCC" = yes; then
7533 # Check if gcc -print-prog-name=ld gives a path.
7534 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7535 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7538 # gcc leaves a trailing carriage return which upsets mingw
7539 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7541 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7544 # Accept absolute paths.
7545 [\\/]* | [A-Za-z]:[\\/]*)
7546 re_direlt='/[^/][^/]*/\.\./'
7547 # Canonicalize the path of ld
7548 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7549 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7550 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7552 test -z "$LD" && LD="$ac_prog"
7555 # If it fails, then pretend we aren't using GCC.
7559 # If it is relative, then search for the first ld in PATH.
7563 elif test "$with_gnu_ld" = yes; then
7564 echo "$as_me:$LINENO: checking for GNU ld" >&5
7565 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7567 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7568 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7570 if test "${acl_cv_path_LD+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 if test -z "$LD"; then
7574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7575 for ac_dir in $PATH; do
7576 test -z "$ac_dir" && ac_dir=.
7577 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7578 acl_cv_path_LD="$ac_dir/$ac_prog"
7579 # Check to see if the program is GNU ld. I'd rather use --version,
7580 # but apparently some GNU ld's only accept -v.
7581 # Break only if it was the GNU/non-GNU ld that we prefer.
7582 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7583 *GNU* | *'with BFD'*)
7584 test "$with_gnu_ld" != no && break ;;
7586 test "$with_gnu_ld" != yes && break ;;
7592 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7596 LD="$acl_cv_path_LD"
7597 if test -n "$LD"; then
7598 echo "$as_me:$LINENO: result: $LD" >&5
7599 echo "${ECHO_T}$LD" >&6
7601 echo "$as_me:$LINENO: result: no" >&5
7602 echo "${ECHO_T}no" >&6
7604 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7605 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7606 { (exit 1); exit 1; }; }
7607 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7608 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7609 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7613 case `$LD -v 2>&1 </dev/null` in
7614 *GNU* | *'with BFD'*)
7615 acl_cv_prog_gnu_ld=yes ;;
7617 acl_cv_prog_gnu_ld=no ;;
7620 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7621 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7622 with_gnu_ld=$acl_cv_prog_gnu_ld
7627 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7628 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7629 if test "${acl_cv_rpath+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7634 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7640 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7641 echo "${ECHO_T}$acl_cv_rpath" >&6
7643 libext="$acl_cv_libext"
7644 shlibext="$acl_cv_shlibext"
7645 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7646 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7647 hardcode_direct="$acl_cv_hardcode_direct"
7648 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7649 # Check whether --enable-rpath or --disable-rpath was given.
7650 if test "${enable_rpath+set}" = set; then
7651 enableval="$enable_rpath"
7665 acl_save_prefix="$prefix"
7666 prefix="$acl_final_prefix"
7667 acl_save_exec_prefix="$exec_prefix"
7668 exec_prefix="$acl_final_exec_prefix"
7670 eval additional_includedir=\"$includedir\"
7671 eval additional_libdir=\"$libdir\"
7673 exec_prefix="$acl_save_exec_prefix"
7674 prefix="$acl_save_prefix"
7677 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7678 if test "${with_libiconv_prefix+set}" = set; then
7679 withval="$with_libiconv_prefix"
7681 if test "X$withval" = "Xno"; then
7684 if test "X$withval" = "X"; then
7686 acl_save_prefix="$prefix"
7687 prefix="$acl_final_prefix"
7688 acl_save_exec_prefix="$exec_prefix"
7689 exec_prefix="$acl_final_exec_prefix"
7691 eval additional_includedir=\"$includedir\"
7692 eval additional_libdir=\"$libdir\"
7694 exec_prefix="$acl_save_exec_prefix"
7695 prefix="$acl_save_prefix"
7698 additional_includedir="$withval/include"
7699 additional_libdir="$withval/lib"
7709 names_already_handled=
7710 names_next_round='iconv '
7711 while test -n "$names_next_round"; do
7712 names_this_round="$names_next_round"
7714 for name in $names_this_round; do
7716 for n in $names_already_handled; do
7717 if test "$n" = "$name"; then
7722 if test -z "$already_handled"; then
7723 names_already_handled="$names_already_handled $name"
7724 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7725 eval value=\"\$HAVE_LIB$uppername\"
7726 if test -n "$value"; then
7727 if test "$value" = yes; then
7728 eval value=\"\$LIB$uppername\"
7729 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7730 eval value=\"\$LTLIB$uppername\"
7731 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7740 if test $use_additional = yes; then
7741 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7742 found_dir="$additional_libdir"
7743 found_so="$additional_libdir/lib$name.$shlibext"
7744 if test -f "$additional_libdir/lib$name.la"; then
7745 found_la="$additional_libdir/lib$name.la"
7748 if test -f "$additional_libdir/lib$name.$libext"; then
7749 found_dir="$additional_libdir"
7750 found_a="$additional_libdir/lib$name.$libext"
7751 if test -f "$additional_libdir/lib$name.la"; then
7752 found_la="$additional_libdir/lib$name.la"
7757 if test "X$found_dir" = "X"; then
7758 for x in $LDFLAGS $LTLIBICONV; do
7760 acl_save_prefix="$prefix"
7761 prefix="$acl_final_prefix"
7762 acl_save_exec_prefix="$exec_prefix"
7763 exec_prefix="$acl_final_exec_prefix"
7765 exec_prefix="$acl_save_exec_prefix"
7766 prefix="$acl_save_prefix"
7770 dir=`echo "X$x" | sed -e 's/^X-L//'`
7771 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7773 found_so="$dir/lib$name.$shlibext"
7774 if test -f "$dir/lib$name.la"; then
7775 found_la="$dir/lib$name.la"
7778 if test -f "$dir/lib$name.$libext"; then
7780 found_a="$dir/lib$name.$libext"
7781 if test -f "$dir/lib$name.la"; then
7782 found_la="$dir/lib$name.la"
7788 if test "X$found_dir" != "X"; then
7793 if test "X$found_dir" != "X"; then
7794 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7795 if test "X$found_so" != "X"; then
7796 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7797 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7800 for x in $ltrpathdirs; do
7801 if test "X$x" = "X$found_dir"; then
7806 if test -z "$haveit"; then
7807 ltrpathdirs="$ltrpathdirs $found_dir"
7809 if test "$hardcode_direct" = yes; then
7810 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7812 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7813 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7815 for x in $rpathdirs; do
7816 if test "X$x" = "X$found_dir"; then
7821 if test -z "$haveit"; then
7822 rpathdirs="$rpathdirs $found_dir"
7826 for x in $LDFLAGS $LIBICONV; do
7828 acl_save_prefix="$prefix"
7829 prefix="$acl_final_prefix"
7830 acl_save_exec_prefix="$exec_prefix"
7831 exec_prefix="$acl_final_exec_prefix"
7833 exec_prefix="$acl_save_exec_prefix"
7834 prefix="$acl_save_prefix"
7836 if test "X$x" = "X-L$found_dir"; then
7841 if test -z "$haveit"; then
7842 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7844 if test "$hardcode_minus_L" != no; then
7845 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7847 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7853 if test "X$found_a" != "X"; then
7854 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7856 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7859 additional_includedir=
7860 case "$found_dir" in
7862 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7863 additional_includedir="$basedir/include"
7866 if test "X$additional_includedir" != "X"; then
7867 if test "X$additional_includedir" != "X/usr/include"; then
7869 if test "X$additional_includedir" = "X/usr/local/include"; then
7870 if test -n "$GCC"; then
7872 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7876 if test -z "$haveit"; then
7877 for x in $CPPFLAGS $INCICONV; do
7879 acl_save_prefix="$prefix"
7880 prefix="$acl_final_prefix"
7881 acl_save_exec_prefix="$exec_prefix"
7882 exec_prefix="$acl_final_exec_prefix"
7884 exec_prefix="$acl_save_exec_prefix"
7885 prefix="$acl_save_prefix"
7887 if test "X$x" = "X-I$additional_includedir"; then
7892 if test -z "$haveit"; then
7893 if test -d "$additional_includedir"; then
7894 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7900 if test -n "$found_la"; then
7901 save_libdir="$libdir"
7903 */* | *\\*) . "$found_la" ;;
7904 *) . "./$found_la" ;;
7906 libdir="$save_libdir"
7907 for dep in $dependency_libs; do
7910 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7911 if test "X$additional_libdir" != "X/usr/lib"; then
7913 if test "X$additional_libdir" = "X/usr/local/lib"; then
7914 if test -n "$GCC"; then
7916 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7920 if test -z "$haveit"; then
7922 for x in $LDFLAGS $LIBICONV; do
7924 acl_save_prefix="$prefix"
7925 prefix="$acl_final_prefix"
7926 acl_save_exec_prefix="$exec_prefix"
7927 exec_prefix="$acl_final_exec_prefix"
7929 exec_prefix="$acl_save_exec_prefix"
7930 prefix="$acl_save_prefix"
7932 if test "X$x" = "X-L$additional_libdir"; then
7937 if test -z "$haveit"; then
7938 if test -d "$additional_libdir"; then
7939 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7943 for x in $LDFLAGS $LTLIBICONV; do
7945 acl_save_prefix="$prefix"
7946 prefix="$acl_final_prefix"
7947 acl_save_exec_prefix="$exec_prefix"
7948 exec_prefix="$acl_final_exec_prefix"
7950 exec_prefix="$acl_save_exec_prefix"
7951 prefix="$acl_save_prefix"
7953 if test "X$x" = "X-L$additional_libdir"; then
7958 if test -z "$haveit"; then
7959 if test -d "$additional_libdir"; then
7960 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7967 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7968 if test "$enable_rpath" != no; then
7970 for x in $rpathdirs; do
7971 if test "X$x" = "X$dir"; then
7976 if test -z "$haveit"; then
7977 rpathdirs="$rpathdirs $dir"
7980 for x in $ltrpathdirs; do
7981 if test "X$x" = "X$dir"; then
7986 if test -z "$haveit"; then
7987 ltrpathdirs="$ltrpathdirs $dir"
7992 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7995 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7998 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7999 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8005 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8006 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8012 if test "X$rpathdirs" != "X"; then
8013 if test -n "$hardcode_libdir_separator"; then
8015 for found_dir in $rpathdirs; do
8016 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8018 acl_save_libdir="$libdir"
8020 eval flag=\"$hardcode_libdir_flag_spec\"
8021 libdir="$acl_save_libdir"
8022 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8024 for found_dir in $rpathdirs; do
8025 acl_save_libdir="$libdir"
8027 eval flag=\"$hardcode_libdir_flag_spec\"
8028 libdir="$acl_save_libdir"
8029 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8033 if test "X$ltrpathdirs" != "X"; then
8034 for found_dir in $ltrpathdirs; do
8035 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8046 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8047 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
8048 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8051 cat >conftest.$ac_ext <<_ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8057 $ac_includes_default
8061 if ((ptrdiff_t *) 0)
8063 if (sizeof (ptrdiff_t))
8069 rm -f conftest.$ac_objext
8070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8071 (eval $ac_compile) 2>conftest.er1
8073 grep -v '^ *+' conftest.er1 >conftest.err
8075 cat conftest.err >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } &&
8078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }; } &&
8084 { ac_try='test -s conftest.$ac_objext'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; }; then
8090 ac_cv_type_ptrdiff_t=yes
8092 echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8095 ac_cv_type_ptrdiff_t=no
8097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8099 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8100 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8101 if test $ac_cv_type_ptrdiff_t = yes; then
8105 cat >>confdefs.h <<\_ACEOF
8106 #define ptrdiff_t long
8122 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8123 stdlib.h string.h unistd.h sys/param.h
8125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8127 echo "$as_me:$LINENO: checking for $ac_header" >&5
8128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8135 # Is the header compilable?
8136 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8138 cat >conftest.$ac_ext <<_ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8144 $ac_includes_default
8145 #include <$ac_header>
8147 rm -f conftest.$ac_objext
8148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8149 (eval $ac_compile) 2>conftest.er1
8151 grep -v '^ *+' conftest.er1 >conftest.err
8153 cat conftest.err >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } &&
8156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; } &&
8162 { ac_try='test -s conftest.$ac_objext'
8163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); }; }; then
8168 ac_header_compiler=yes
8170 echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8173 ac_header_compiler=no
8175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8177 echo "${ECHO_T}$ac_header_compiler" >&6
8179 # Is the header present?
8180 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8182 cat >conftest.$ac_ext <<_ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h. */
8188 #include <$ac_header>
8190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8193 grep -v '^ *+' conftest.er1 >conftest.err
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } >/dev/null; then
8198 if test -s conftest.err; then
8199 ac_cpp_err=$ac_c_preproc_warn_flag
8200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8207 if test -z "$ac_cpp_err"; then
8208 ac_header_preproc=yes
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8213 ac_header_preproc=no
8215 rm -f conftest.err conftest.$ac_ext
8216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8217 echo "${ECHO_T}$ac_header_preproc" >&6
8219 # So? What about this header?
8220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8226 ac_header_preproc=yes
8229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8232 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8236 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8243 ## ------------------------------------------ ##
8244 ## Report this to the AC_PACKAGE_NAME lists. ##
8245 ## ------------------------------------------ ##
8248 sed "s/^/$as_me: WARNING: /" >&2
8251 echo "$as_me:$LINENO: checking for $ac_header" >&5
8252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8254 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 eval "$as_ac_Header=\$ac_header_preproc"
8258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8263 cat >>confdefs.h <<_ACEOF
8264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8294 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8295 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8296 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8300 echo "$as_me:$LINENO: checking for $ac_func" >&5
8301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8302 if eval "test \"\${$as_ac_var+set}\" = set"; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 cat >conftest.$ac_ext <<_ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8313 #define $ac_func innocuous_$ac_func
8315 /* System header to define __stub macros and hopefully few prototypes,
8316 which can conflict with char $ac_func (); below.
8317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8318 <limits.h> exists even on freestanding compilers. */
8321 # include <limits.h>
8323 # include <assert.h>
8328 /* Override any gcc2 internal prototype to avoid an error. */
8333 /* We use char because int might match the return type of a gcc2
8334 builtin and then its argument prototype would still apply. */
8336 /* The GNU C library defines this for functions which it implements
8337 to always fail with ENOSYS. Some functions are actually named
8338 something starting with __ and the normal name is an alias. */
8339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8342 char (*f) () = $ac_func;
8351 return f != $ac_func;
8356 rm -f conftest.$ac_objext conftest$ac_exeext
8357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8358 (eval $ac_link) 2>conftest.er1
8360 grep -v '^ *+' conftest.er1 >conftest.err
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
8365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; } &&
8371 { ac_try='test -s conftest$ac_exeext'
8372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8377 eval "$as_ac_var=yes"
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 eval "$as_ac_var=no"
8384 rm -f conftest.err conftest.$ac_objext \
8385 conftest$ac_exeext conftest.$ac_ext
8387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8389 if test `eval echo '${'$as_ac_var'}'` = yes; then
8390 cat >>confdefs.h <<_ACEOF
8391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8399 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8400 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8401 if test "${ac_cv_have_decl__snprintf+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 cat >conftest.$ac_ext <<_ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8416 char *p = (char *) _snprintf;
8423 rm -f conftest.$ac_objext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8425 (eval $ac_compile) 2>conftest.er1
8427 grep -v '^ *+' conftest.er1 >conftest.err
8429 cat conftest.err >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; } &&
8438 { ac_try='test -s conftest.$ac_objext'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; }; then
8444 ac_cv_have_decl__snprintf=yes
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8449 ac_cv_have_decl__snprintf=no
8451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8453 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8454 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8455 if test $ac_cv_have_decl__snprintf = yes; then
8461 cat >>confdefs.h <<_ACEOF
8462 #define HAVE_DECL__SNPRINTF $gt_value
8467 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8468 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8469 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 cat >conftest.$ac_ext <<_ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8484 char *p = (char *) _snwprintf;
8491 rm -f conftest.$ac_objext
8492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8493 (eval $ac_compile) 2>conftest.er1
8495 grep -v '^ *+' conftest.er1 >conftest.err
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; } &&
8506 { ac_try='test -s conftest.$ac_objext'
8507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 ac_cv_have_decl__snwprintf=yes
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8517 ac_cv_have_decl__snwprintf=no
8519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8521 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8522 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8523 if test $ac_cv_have_decl__snwprintf = yes; then
8529 cat >>confdefs.h <<_ACEOF
8530 #define HAVE_DECL__SNWPRINTF $gt_value
8536 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8537 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8538 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 cat >conftest.$ac_ext <<_ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8552 #ifndef feof_unlocked
8553 char *p = (char *) feof_unlocked;
8560 rm -f conftest.$ac_objext
8561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8562 (eval $ac_compile) 2>conftest.er1
8564 grep -v '^ *+' conftest.er1 >conftest.err
8566 cat conftest.err >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } &&
8569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; } &&
8575 { ac_try='test -s conftest.$ac_objext'
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; }; then
8581 ac_cv_have_decl_feof_unlocked=yes
8583 echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8586 ac_cv_have_decl_feof_unlocked=no
8588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8590 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8591 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
8592 if test $ac_cv_have_decl_feof_unlocked = yes; then
8598 cat >>confdefs.h <<_ACEOF
8599 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8604 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8605 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
8606 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8607 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 cat >conftest.$ac_ext <<_ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h. */
8620 #ifndef fgets_unlocked
8621 char *p = (char *) fgets_unlocked;
8628 rm -f conftest.$ac_objext
8629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8630 (eval $ac_compile) 2>conftest.er1
8632 grep -v '^ *+' conftest.er1 >conftest.err
8634 cat conftest.err >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } &&
8637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; } &&
8643 { ac_try='test -s conftest.$ac_objext'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; }; then
8649 ac_cv_have_decl_fgets_unlocked=yes
8651 echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8654 ac_cv_have_decl_fgets_unlocked=no
8656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8658 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8659 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
8660 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8666 cat >>confdefs.h <<_ACEOF
8667 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8672 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8673 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8674 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8675 echo $ECHO_N "(cached) $ECHO_C" >&6
8677 cat >conftest.$ac_ext <<_ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8688 #ifndef getc_unlocked
8689 char *p = (char *) getc_unlocked;
8696 rm -f conftest.$ac_objext
8697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8698 (eval $ac_compile) 2>conftest.er1
8700 grep -v '^ *+' conftest.er1 >conftest.err
8702 cat conftest.err >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } &&
8705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; } &&
8711 { ac_try='test -s conftest.$ac_objext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 ac_cv_have_decl_getc_unlocked=yes
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8722 ac_cv_have_decl_getc_unlocked=no
8724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8726 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8727 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8728 if test $ac_cv_have_decl_getc_unlocked = yes; then
8734 cat >>confdefs.h <<_ACEOF
8735 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8740 case $gt_cv_func_printf_posix in
8741 *yes) HAVE_POSIX_PRINTF=1 ;;
8742 *) HAVE_POSIX_PRINTF=0 ;;
8745 if test "$ac_cv_func_asprintf" = yes; then
8751 if test "$ac_cv_func_snprintf" = yes; then
8757 if test "$ac_cv_func_wprintf" = yes; then
8769 am_save_CPPFLAGS="$CPPFLAGS"
8771 for element in $INCICONV; do
8773 for x in $CPPFLAGS; do
8775 acl_save_prefix="$prefix"
8776 prefix="$acl_final_prefix"
8777 acl_save_exec_prefix="$exec_prefix"
8778 exec_prefix="$acl_final_exec_prefix"
8780 exec_prefix="$acl_save_exec_prefix"
8781 prefix="$acl_save_prefix"
8783 if test "X$x" = "X$element"; then
8788 if test -z "$haveit"; then
8789 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8794 echo "$as_me:$LINENO: checking for iconv" >&5
8795 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8796 if test "${am_cv_func_iconv+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8800 am_cv_func_iconv="no, consider installing GNU libiconv"
8802 cat >conftest.$ac_ext <<_ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h. */
8813 iconv_t cd = iconv_open("","");
8814 iconv(cd,NULL,NULL,NULL,NULL);
8820 rm -f conftest.$ac_objext conftest$ac_exeext
8821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8822 (eval $ac_link) 2>conftest.er1
8824 grep -v '^ *+' conftest.er1 >conftest.err
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } &&
8829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; } &&
8835 { ac_try='test -s conftest$ac_exeext'
8836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; }; then
8841 am_cv_func_iconv=yes
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8847 rm -f conftest.err conftest.$ac_objext \
8848 conftest$ac_exeext conftest.$ac_ext
8849 if test "$am_cv_func_iconv" != yes; then
8850 am_save_LIBS="$LIBS"
8851 LIBS="$LIBS $LIBICONV"
8852 cat >conftest.$ac_ext <<_ACEOF
8855 cat confdefs.h >>conftest.$ac_ext
8856 cat >>conftest.$ac_ext <<_ACEOF
8857 /* end confdefs.h. */
8863 iconv_t cd = iconv_open("","");
8864 iconv(cd,NULL,NULL,NULL,NULL);
8870 rm -f conftest.$ac_objext conftest$ac_exeext
8871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8872 (eval $ac_link) 2>conftest.er1
8874 grep -v '^ *+' conftest.er1 >conftest.err
8876 cat conftest.err >&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } &&
8879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; } &&
8885 { ac_try='test -s conftest$ac_exeext'
8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; }; then
8892 am_cv_func_iconv=yes
8894 echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8898 rm -f conftest.err conftest.$ac_objext \
8899 conftest$ac_exeext conftest.$ac_ext
8900 LIBS="$am_save_LIBS"
8904 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8905 echo "${ECHO_T}$am_cv_func_iconv" >&6
8906 if test "$am_cv_func_iconv" = yes; then
8908 cat >>confdefs.h <<\_ACEOF
8909 #define HAVE_ICONV 1
8913 if test "$am_cv_lib_iconv" = yes; then
8914 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8915 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8916 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8917 echo "${ECHO_T}$LIBICONV" >&6
8919 CPPFLAGS="$am_save_CPPFLAGS"
8926 if test "$am_cv_func_iconv" = yes; then
8927 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8928 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8929 if test "${am_cv_proto_iconv+set}" = set; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8933 cat >conftest.$ac_ext <<_ACEOF
8936 cat confdefs.h >>conftest.$ac_ext
8937 cat >>conftest.$ac_ext <<_ACEOF
8938 /* end confdefs.h. */
8946 #if defined(__STDC__) || defined(__cplusplus)
8947 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8960 rm -f conftest.$ac_objext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8962 (eval $ac_compile) 2>conftest.er1
8964 grep -v '^ *+' conftest.er1 >conftest.err
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; } &&
8975 { ac_try='test -s conftest.$ac_objext'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; }; then
8981 am_cv_proto_iconv_arg1=""
8983 echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8986 am_cv_proto_iconv_arg1="const"
8988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8989 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8992 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8993 echo "$as_me:$LINENO: result: ${ac_t:-
8994 }$am_cv_proto_iconv" >&5
8995 echo "${ECHO_T}${ac_t:-
8996 }$am_cv_proto_iconv" >&6
8998 cat >>confdefs.h <<_ACEOF
8999 #define ICONV_CONST $am_cv_proto_iconv_arg1
9005 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9006 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
9007 if test "${am_cv_langinfo_codeset+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9010 cat >conftest.$ac_ext <<_ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
9015 /* end confdefs.h. */
9016 #include <langinfo.h>
9020 char* cs = nl_langinfo(CODESET);
9025 rm -f conftest.$ac_objext conftest$ac_exeext
9026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9027 (eval $ac_link) 2>conftest.er1
9029 grep -v '^ *+' conftest.er1 >conftest.err
9031 cat conftest.err >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } &&
9034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); }; } &&
9040 { ac_try='test -s conftest$ac_exeext'
9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; }; then
9046 am_cv_langinfo_codeset=yes
9048 echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9051 am_cv_langinfo_codeset=no
9053 rm -f conftest.err conftest.$ac_objext \
9054 conftest$ac_exeext conftest.$ac_ext
9057 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9058 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9059 if test $am_cv_langinfo_codeset = yes; then
9061 cat >>confdefs.h <<\_ACEOF
9062 #define HAVE_LANGINFO_CODESET 1
9067 if test $ac_cv_header_locale_h = yes; then
9069 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9070 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9071 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
9072 echo $ECHO_N "(cached) $ECHO_C" >&6
9074 cat >conftest.$ac_ext <<_ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h. */
9089 rm -f conftest.$ac_objext conftest$ac_exeext
9090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9091 (eval $ac_link) 2>conftest.er1
9093 grep -v '^ *+' conftest.er1 >conftest.err
9095 cat conftest.err >&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); } &&
9098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }; } &&
9104 { ac_try='test -s conftest$ac_exeext'
9105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); }; }; then
9110 gt_cv_val_LC_MESSAGES=yes
9112 echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9115 gt_cv_val_LC_MESSAGES=no
9117 rm -f conftest.err conftest.$ac_objext \
9118 conftest$ac_exeext conftest.$ac_ext
9120 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
9121 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
9122 if test $gt_cv_val_LC_MESSAGES = yes; then
9124 cat >>confdefs.h <<\_ACEOF
9125 #define HAVE_LC_MESSAGES 1
9132 if test -n "$INTL_MACOSX_LIBS"; then
9133 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
9136 for ac_prog in bison
9138 # Extract the first word of "$ac_prog", so it can be a program name with args.
9139 set dummy $ac_prog; ac_word=$2
9140 echo "$as_me:$LINENO: checking for $ac_word" >&5
9141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9142 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9143 echo $ECHO_N "(cached) $ECHO_C" >&6
9145 if test -n "$INTLBISON"; then
9146 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152 test -z "$as_dir" && as_dir=.
9153 for ac_exec_ext in '' $ac_executable_extensions; do
9154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9155 ac_cv_prog_INTLBISON="$ac_prog"
9156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9164 INTLBISON=$ac_cv_prog_INTLBISON
9165 if test -n "$INTLBISON"; then
9166 echo "$as_me:$LINENO: result: $INTLBISON" >&5
9167 echo "${ECHO_T}$INTLBISON" >&6
9169 echo "$as_me:$LINENO: result: no" >&5
9170 echo "${ECHO_T}no" >&6
9173 test -n "$INTLBISON" && break
9176 if test -z "$INTLBISON"; then
9179 echo "$as_me:$LINENO: checking version of bison" >&5
9180 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
9181 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9182 case $ac_prog_version in
9183 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9184 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9185 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9186 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9188 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9189 echo "${ECHO_T}$ac_prog_version" >&6
9191 if test $ac_verc_fail = yes; then
9210 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
9211 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
9212 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 gt_save_CPPFLAGS="$CPPFLAGS"
9216 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
9217 gt_save_LIBS="$LIBS"
9218 LIBS="$LIBS -framework CoreFoundation"
9219 cat >conftest.$ac_ext <<_ACEOF
9222 cat confdefs.h >>conftest.$ac_ext
9223 cat >>conftest.$ac_ext <<_ACEOF
9224 /* end confdefs.h. */
9225 #include <CFPreferences.h>
9229 CFPreferencesCopyAppValue(NULL, NULL)
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236 (eval $ac_link) 2>conftest.er1
9238 grep -v '^ *+' conftest.er1 >conftest.err
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; } &&
9249 { ac_try='test -s conftest$ac_exeext'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; }; then
9255 gt_cv_func_CFPreferencesCopyAppValue=yes
9257 echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9260 gt_cv_func_CFPreferencesCopyAppValue=no
9262 rm -f conftest.err conftest.$ac_objext \
9263 conftest$ac_exeext conftest.$ac_ext
9264 CPPFLAGS="$gt_save_CPPFLAGS"
9265 LIBS="$gt_save_LIBS"
9267 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9268 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
9269 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9271 cat >>confdefs.h <<\_ACEOF
9272 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
9276 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
9277 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
9278 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9281 gt_save_CPPFLAGS="$CPPFLAGS"
9282 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
9283 gt_save_LIBS="$LIBS"
9284 LIBS="$LIBS -framework CoreFoundation"
9285 cat >conftest.$ac_ext <<_ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h. */
9291 #include <CFLocale.h>
9295 CFLocaleCopyCurrent();
9300 rm -f conftest.$ac_objext conftest$ac_exeext
9301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9302 (eval $ac_link) 2>conftest.er1
9304 grep -v '^ *+' conftest.er1 >conftest.err
9306 cat conftest.err >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } &&
9309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; } &&
9315 { ac_try='test -s conftest$ac_exeext'
9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); }; }; then
9321 gt_cv_func_CFLocaleCopyCurrent=yes
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9326 gt_cv_func_CFLocaleCopyCurrent=no
9328 rm -f conftest.err conftest.$ac_objext \
9329 conftest$ac_exeext conftest.$ac_ext
9330 CPPFLAGS="$gt_save_CPPFLAGS"
9331 LIBS="$gt_save_LIBS"
9333 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
9334 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
9335 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9337 cat >>confdefs.h <<\_ACEOF
9338 #define HAVE_CFLOCALECOPYCURRENT 1
9343 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9344 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9350 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9351 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9352 # Check whether --enable-nls or --disable-nls was given.
9353 if test "${enable_nls+set}" = set; then
9354 enableval="$enable_nls"
9359 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9360 echo "${ECHO_T}$USE_NLS" >&6
9365 BUILD_INCLUDED_LIBINTL=no
9366 USE_INCLUDED_LIBINTL=no
9372 if test "$USE_NLS" = "yes"; then
9373 gt_use_preinstalled_gnugettext=no
9375 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9376 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9378 # Check whether --with-included-gettext or --without-included-gettext was given.
9379 if test "${with_included_gettext+set}" = set; then
9380 withval="$with_included_gettext"
9381 nls_cv_force_use_gnu_gettext=$withval
9383 nls_cv_force_use_gnu_gettext=no
9385 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9386 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
9388 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9389 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9396 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9397 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9398 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 cat >conftest.$ac_ext <<_ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 #include <libintl.h>
9408 extern int _nl_msg_cat_cntr;
9409 extern int *_nl_domain_bindings;
9413 bindtextdomain ("", "");
9414 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9419 rm -f conftest.$ac_objext conftest$ac_exeext
9420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9421 (eval $ac_link) 2>conftest.er1
9423 grep -v '^ *+' conftest.er1 >conftest.err
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } &&
9428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); }; } &&
9434 { ac_try='test -s conftest$ac_exeext'
9435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); }; }; then
9440 gt_cv_func_gnugettext1_libc=yes
9442 echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9445 gt_cv_func_gnugettext1_libc=no
9447 rm -f conftest.err conftest.$ac_objext \
9448 conftest$ac_exeext conftest.$ac_ext
9450 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9451 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
9453 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9459 acl_save_prefix="$prefix"
9460 prefix="$acl_final_prefix"
9461 acl_save_exec_prefix="$exec_prefix"
9462 exec_prefix="$acl_final_exec_prefix"
9464 eval additional_includedir=\"$includedir\"
9465 eval additional_libdir=\"$libdir\"
9467 exec_prefix="$acl_save_exec_prefix"
9468 prefix="$acl_save_prefix"
9471 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
9472 if test "${with_libintl_prefix+set}" = set; then
9473 withval="$with_libintl_prefix"
9475 if test "X$withval" = "Xno"; then
9478 if test "X$withval" = "X"; then
9480 acl_save_prefix="$prefix"
9481 prefix="$acl_final_prefix"
9482 acl_save_exec_prefix="$exec_prefix"
9483 exec_prefix="$acl_final_exec_prefix"
9485 eval additional_includedir=\"$includedir\"
9486 eval additional_libdir=\"$libdir\"
9488 exec_prefix="$acl_save_exec_prefix"
9489 prefix="$acl_save_prefix"
9492 additional_includedir="$withval/include"
9493 additional_libdir="$withval/lib"
9503 names_already_handled=
9504 names_next_round='intl '
9505 while test -n "$names_next_round"; do
9506 names_this_round="$names_next_round"
9508 for name in $names_this_round; do
9510 for n in $names_already_handled; do
9511 if test "$n" = "$name"; then
9516 if test -z "$already_handled"; then
9517 names_already_handled="$names_already_handled $name"
9518 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9519 eval value=\"\$HAVE_LIB$uppername\"
9520 if test -n "$value"; then
9521 if test "$value" = yes; then
9522 eval value=\"\$LIB$uppername\"
9523 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9524 eval value=\"\$LTLIB$uppername\"
9525 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9534 if test $use_additional = yes; then
9535 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9536 found_dir="$additional_libdir"
9537 found_so="$additional_libdir/lib$name.$shlibext"
9538 if test -f "$additional_libdir/lib$name.la"; then
9539 found_la="$additional_libdir/lib$name.la"
9542 if test -f "$additional_libdir/lib$name.$libext"; then
9543 found_dir="$additional_libdir"
9544 found_a="$additional_libdir/lib$name.$libext"
9545 if test -f "$additional_libdir/lib$name.la"; then
9546 found_la="$additional_libdir/lib$name.la"
9551 if test "X$found_dir" = "X"; then
9552 for x in $LDFLAGS $LTLIBINTL; do
9554 acl_save_prefix="$prefix"
9555 prefix="$acl_final_prefix"
9556 acl_save_exec_prefix="$exec_prefix"
9557 exec_prefix="$acl_final_exec_prefix"
9559 exec_prefix="$acl_save_exec_prefix"
9560 prefix="$acl_save_prefix"
9564 dir=`echo "X$x" | sed -e 's/^X-L//'`
9565 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9567 found_so="$dir/lib$name.$shlibext"
9568 if test -f "$dir/lib$name.la"; then
9569 found_la="$dir/lib$name.la"
9572 if test -f "$dir/lib$name.$libext"; then
9574 found_a="$dir/lib$name.$libext"
9575 if test -f "$dir/lib$name.la"; then
9576 found_la="$dir/lib$name.la"
9582 if test "X$found_dir" != "X"; then
9587 if test "X$found_dir" != "X"; then
9588 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9589 if test "X$found_so" != "X"; then
9590 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9591 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9594 for x in $ltrpathdirs; do
9595 if test "X$x" = "X$found_dir"; then
9600 if test -z "$haveit"; then
9601 ltrpathdirs="$ltrpathdirs $found_dir"
9603 if test "$hardcode_direct" = yes; then
9604 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9606 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9607 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9609 for x in $rpathdirs; do
9610 if test "X$x" = "X$found_dir"; then
9615 if test -z "$haveit"; then
9616 rpathdirs="$rpathdirs $found_dir"
9620 for x in $LDFLAGS $LIBINTL; do
9622 acl_save_prefix="$prefix"
9623 prefix="$acl_final_prefix"
9624 acl_save_exec_prefix="$exec_prefix"
9625 exec_prefix="$acl_final_exec_prefix"
9627 exec_prefix="$acl_save_exec_prefix"
9628 prefix="$acl_save_prefix"
9630 if test "X$x" = "X-L$found_dir"; then
9635 if test -z "$haveit"; then
9636 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9638 if test "$hardcode_minus_L" != no; then
9639 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9641 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9647 if test "X$found_a" != "X"; then
9648 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9650 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9653 additional_includedir=
9654 case "$found_dir" in
9656 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9657 additional_includedir="$basedir/include"
9660 if test "X$additional_includedir" != "X"; then
9661 if test "X$additional_includedir" != "X/usr/include"; then
9663 if test "X$additional_includedir" = "X/usr/local/include"; then
9664 if test -n "$GCC"; then
9666 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9670 if test -z "$haveit"; then
9671 for x in $CPPFLAGS $INCINTL; do
9673 acl_save_prefix="$prefix"
9674 prefix="$acl_final_prefix"
9675 acl_save_exec_prefix="$exec_prefix"
9676 exec_prefix="$acl_final_exec_prefix"
9678 exec_prefix="$acl_save_exec_prefix"
9679 prefix="$acl_save_prefix"
9681 if test "X$x" = "X-I$additional_includedir"; then
9686 if test -z "$haveit"; then
9687 if test -d "$additional_includedir"; then
9688 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9694 if test -n "$found_la"; then
9695 save_libdir="$libdir"
9697 */* | *\\*) . "$found_la" ;;
9698 *) . "./$found_la" ;;
9700 libdir="$save_libdir"
9701 for dep in $dependency_libs; do
9704 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9705 if test "X$additional_libdir" != "X/usr/lib"; then
9707 if test "X$additional_libdir" = "X/usr/local/lib"; then
9708 if test -n "$GCC"; then
9710 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9714 if test -z "$haveit"; then
9716 for x in $LDFLAGS $LIBINTL; do
9718 acl_save_prefix="$prefix"
9719 prefix="$acl_final_prefix"
9720 acl_save_exec_prefix="$exec_prefix"
9721 exec_prefix="$acl_final_exec_prefix"
9723 exec_prefix="$acl_save_exec_prefix"
9724 prefix="$acl_save_prefix"
9726 if test "X$x" = "X-L$additional_libdir"; then
9731 if test -z "$haveit"; then
9732 if test -d "$additional_libdir"; then
9733 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9737 for x in $LDFLAGS $LTLIBINTL; do
9739 acl_save_prefix="$prefix"
9740 prefix="$acl_final_prefix"
9741 acl_save_exec_prefix="$exec_prefix"
9742 exec_prefix="$acl_final_exec_prefix"
9744 exec_prefix="$acl_save_exec_prefix"
9745 prefix="$acl_save_prefix"
9747 if test "X$x" = "X-L$additional_libdir"; then
9752 if test -z "$haveit"; then
9753 if test -d "$additional_libdir"; then
9754 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9761 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9762 if test "$enable_rpath" != no; then
9764 for x in $rpathdirs; do
9765 if test "X$x" = "X$dir"; then
9770 if test -z "$haveit"; then
9771 rpathdirs="$rpathdirs $dir"
9774 for x in $ltrpathdirs; do
9775 if test "X$x" = "X$dir"; then
9780 if test -z "$haveit"; then
9781 ltrpathdirs="$ltrpathdirs $dir"
9786 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9789 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9792 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9793 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9799 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9800 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9806 if test "X$rpathdirs" != "X"; then
9807 if test -n "$hardcode_libdir_separator"; then
9809 for found_dir in $rpathdirs; do
9810 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9812 acl_save_libdir="$libdir"
9814 eval flag=\"$hardcode_libdir_flag_spec\"
9815 libdir="$acl_save_libdir"
9816 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9818 for found_dir in $rpathdirs; do
9819 acl_save_libdir="$libdir"
9821 eval flag=\"$hardcode_libdir_flag_spec\"
9822 libdir="$acl_save_libdir"
9823 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9827 if test "X$ltrpathdirs" != "X"; then
9828 for found_dir in $ltrpathdirs; do
9829 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9833 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9834 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9835 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 gt_save_CPPFLAGS="$CPPFLAGS"
9839 CPPFLAGS="$CPPFLAGS $INCINTL"
9840 gt_save_LIBS="$LIBS"
9841 LIBS="$LIBS $LIBINTL"
9842 cat >conftest.$ac_ext <<_ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9848 #include <libintl.h>
9849 extern int _nl_msg_cat_cntr;
9854 const char *_nl_expand_alias (const char *);
9858 bindtextdomain ("", "");
9859 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9864 rm -f conftest.$ac_objext conftest$ac_exeext
9865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9866 (eval $ac_link) 2>conftest.er1
9868 grep -v '^ *+' conftest.er1 >conftest.err
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } &&
9873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; } &&
9879 { ac_try='test -s conftest$ac_exeext'
9880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; }; then
9885 gt_cv_func_gnugettext1_libintl=yes
9887 echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9890 gt_cv_func_gnugettext1_libintl=no
9892 rm -f conftest.err conftest.$ac_objext \
9893 conftest$ac_exeext conftest.$ac_ext
9894 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9895 LIBS="$LIBS $LIBICONV"
9896 cat >conftest.$ac_ext <<_ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9902 #include <libintl.h>
9903 extern int _nl_msg_cat_cntr;
9908 const char *_nl_expand_alias (const char *);
9912 bindtextdomain ("", "");
9913 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9918 rm -f conftest.$ac_objext conftest$ac_exeext
9919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9920 (eval $ac_link) 2>conftest.er1
9922 grep -v '^ *+' conftest.er1 >conftest.err
9924 cat conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } &&
9927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); }; } &&
9933 { ac_try='test -s conftest$ac_exeext'
9934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; }; then
9939 LIBINTL="$LIBINTL $LIBICONV"
9940 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9941 gt_cv_func_gnugettext1_libintl=yes
9944 echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.$ac_ext >&5
9948 rm -f conftest.err conftest.$ac_objext \
9949 conftest$ac_exeext conftest.$ac_ext
9951 CPPFLAGS="$gt_save_CPPFLAGS"
9952 LIBS="$gt_save_LIBS"
9954 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
9955 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
9958 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9959 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9960 && test "$PACKAGE" != gettext-runtime \
9961 && test "$PACKAGE" != gettext-tools; }; then
9962 gt_use_preinstalled_gnugettext=yes
9970 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9971 nls_cv_use_gnu_gettext=yes
9975 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9976 BUILD_INCLUDED_LIBINTL=yes
9977 USE_INCLUDED_LIBINTL=yes
9978 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9979 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9980 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9984 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9985 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9990 if test -n "$INTL_MACOSX_LIBS"; then
9991 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9992 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9993 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9994 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9998 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9999 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10001 cat >>confdefs.h <<\_ACEOF
10002 #define ENABLE_NLS 1
10010 echo "$as_me:$LINENO: checking whether to use NLS" >&5
10011 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
10012 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10013 echo "${ECHO_T}$USE_NLS" >&6
10014 if test "$USE_NLS" = "yes"; then
10015 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10016 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
10017 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10018 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10019 gt_source="external libintl"
10024 gt_source="included intl directory"
10026 echo "$as_me:$LINENO: result: $gt_source" >&5
10027 echo "${ECHO_T}$gt_source" >&6
10030 if test "$USE_NLS" = "yes"; then
10032 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10033 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10034 echo "$as_me:$LINENO: checking how to link with libintl" >&5
10035 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
10036 echo "$as_me:$LINENO: result: $LIBINTL" >&5
10037 echo "${ECHO_T}$LIBINTL" >&6
10039 for element in $INCINTL; do
10041 for x in $CPPFLAGS; do
10043 acl_save_prefix="$prefix"
10044 prefix="$acl_final_prefix"
10045 acl_save_exec_prefix="$exec_prefix"
10046 exec_prefix="$acl_final_exec_prefix"
10048 exec_prefix="$acl_save_exec_prefix"
10049 prefix="$acl_save_prefix"
10051 if test "X$x" = "X$element"; then
10056 if test -z "$haveit"; then
10057 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10064 cat >>confdefs.h <<\_ACEOF
10065 #define HAVE_GETTEXT 1
10069 cat >>confdefs.h <<\_ACEOF
10070 #define HAVE_DCGETTEXT 1
10079 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10080 BUILD_INCLUDED_LIBINTL=yes
10087 nls_cv_header_intl=
10088 nls_cv_header_libgt=
10100 if test "$USE_INCLUDED_LIBINTL" = yes; then
10101 INTLOBJS="\$(GETTOBJS)"
10105 INTL_LIBTOOL_SUFFIX_PREFIX=
10109 INTLLIBS="$LIBINTL"
10121 abook_localedir="$datadir/locale"
10122 abook_localedir=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10123 eval echo \""$abook_localedir"\" )`
10125 localedir="\$(datadir)/locale"
10128 # Check whether --with-localedir or --without-localedir was given.
10129 if test "${with_localedir+set}" = set; then
10130 withval="$with_localedir"
10133 if test "x$with_localedir" != "x"; then
10134 abook_localedir="$with_localedir"
10135 localedir="$with_localedir"
10139 cat >>confdefs.h <<_ACEOF
10140 #define LOCALEDIR "$abook_localedir"
10147 if test x$USE_INCLUDED_LIBINTL = xyes; then
10148 USE_INCLUDED_INTL_H_TRUE=
10149 USE_INCLUDED_INTL_H_FALSE='#'
10151 USE_INCLUDED_INTL_H_TRUE='#'
10152 USE_INCLUDED_INTL_H_FALSE=
10158 ac_cpp='$CPP $CPPFLAGS'
10159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10162 if test -n "$ac_tool_prefix"; then
10163 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10164 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10165 echo "$as_me:$LINENO: checking for $ac_word" >&5
10166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10167 if test "${ac_cv_prog_CC+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 if test -n "$CC"; then
10171 ac_cv_prog_CC="$CC" # Let the user override the test.
10173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10174 for as_dir in $PATH
10177 test -z "$as_dir" && as_dir=.
10178 for ac_exec_ext in '' $ac_executable_extensions; do
10179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10180 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10190 if test -n "$CC"; then
10191 echo "$as_me:$LINENO: result: $CC" >&5
10192 echo "${ECHO_T}$CC" >&6
10194 echo "$as_me:$LINENO: result: no" >&5
10195 echo "${ECHO_T}no" >&6
10199 if test -z "$ac_cv_prog_CC"; then
10201 # Extract the first word of "gcc", so it can be a program name with args.
10202 set dummy gcc; ac_word=$2
10203 echo "$as_me:$LINENO: checking for $ac_word" >&5
10204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10205 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10206 echo $ECHO_N "(cached) $ECHO_C" >&6
10208 if test -n "$ac_ct_CC"; then
10209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10212 for as_dir in $PATH
10215 test -z "$as_dir" && as_dir=.
10216 for ac_exec_ext in '' $ac_executable_extensions; do
10217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10218 ac_cv_prog_ac_ct_CC="gcc"
10219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10228 if test -n "$ac_ct_CC"; then
10229 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10230 echo "${ECHO_T}$ac_ct_CC" >&6
10232 echo "$as_me:$LINENO: result: no" >&5
10233 echo "${ECHO_T}no" >&6
10238 CC="$ac_cv_prog_CC"
10241 if test -z "$CC"; then
10242 if test -n "$ac_tool_prefix"; then
10243 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10244 set dummy ${ac_tool_prefix}cc; ac_word=$2
10245 echo "$as_me:$LINENO: checking for $ac_word" >&5
10246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10247 if test "${ac_cv_prog_CC+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10250 if test -n "$CC"; then
10251 ac_cv_prog_CC="$CC" # Let the user override the test.
10253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10254 for as_dir in $PATH
10257 test -z "$as_dir" && as_dir=.
10258 for ac_exec_ext in '' $ac_executable_extensions; do
10259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10260 ac_cv_prog_CC="${ac_tool_prefix}cc"
10261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10270 if test -n "$CC"; then
10271 echo "$as_me:$LINENO: result: $CC" >&5
10272 echo "${ECHO_T}$CC" >&6
10274 echo "$as_me:$LINENO: result: no" >&5
10275 echo "${ECHO_T}no" >&6
10279 if test -z "$ac_cv_prog_CC"; then
10281 # Extract the first word of "cc", so it can be a program name with args.
10282 set dummy cc; ac_word=$2
10283 echo "$as_me:$LINENO: checking for $ac_word" >&5
10284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10285 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 if test -n "$ac_ct_CC"; then
10289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292 for as_dir in $PATH
10295 test -z "$as_dir" && as_dir=.
10296 for ac_exec_ext in '' $ac_executable_extensions; do
10297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10298 ac_cv_prog_ac_ct_CC="cc"
10299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10307 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10308 if test -n "$ac_ct_CC"; then
10309 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10310 echo "${ECHO_T}$ac_ct_CC" >&6
10312 echo "$as_me:$LINENO: result: no" >&5
10313 echo "${ECHO_T}no" >&6
10318 CC="$ac_cv_prog_CC"
10322 if test -z "$CC"; then
10323 # Extract the first word of "cc", so it can be a program name with args.
10324 set dummy cc; ac_word=$2
10325 echo "$as_me:$LINENO: checking for $ac_word" >&5
10326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10327 if test "${ac_cv_prog_CC+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 if test -n "$CC"; then
10331 ac_cv_prog_CC="$CC" # Let the user override the test.
10333 ac_prog_rejected=no
10334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10335 for as_dir in $PATH
10338 test -z "$as_dir" && as_dir=.
10339 for ac_exec_ext in '' $ac_executable_extensions; do
10340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10341 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10342 ac_prog_rejected=yes
10346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10352 if test $ac_prog_rejected = yes; then
10353 # We found a bogon in the path, so make sure we never use it.
10354 set dummy $ac_cv_prog_CC
10356 if test $# != 0; then
10357 # We chose a different compiler from the bogus one.
10358 # However, it has the same basename, so the bogon will be chosen
10359 # first if we set CC to just the basename; use the full file name.
10361 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10367 if test -n "$CC"; then
10368 echo "$as_me:$LINENO: result: $CC" >&5
10369 echo "${ECHO_T}$CC" >&6
10371 echo "$as_me:$LINENO: result: no" >&5
10372 echo "${ECHO_T}no" >&6
10376 if test -z "$CC"; then
10377 if test -n "$ac_tool_prefix"; then
10380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10381 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10382 echo "$as_me:$LINENO: checking for $ac_word" >&5
10383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10384 if test "${ac_cv_prog_CC+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 if test -n "$CC"; then
10388 ac_cv_prog_CC="$CC" # Let the user override the test.
10390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10391 for as_dir in $PATH
10394 test -z "$as_dir" && as_dir=.
10395 for ac_exec_ext in '' $ac_executable_extensions; do
10396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10397 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10407 if test -n "$CC"; then
10408 echo "$as_me:$LINENO: result: $CC" >&5
10409 echo "${ECHO_T}$CC" >&6
10411 echo "$as_me:$LINENO: result: no" >&5
10412 echo "${ECHO_T}no" >&6
10415 test -n "$CC" && break
10418 if test -z "$CC"; then
10422 # Extract the first word of "$ac_prog", so it can be a program name with args.
10423 set dummy $ac_prog; ac_word=$2
10424 echo "$as_me:$LINENO: checking for $ac_word" >&5
10425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10426 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10427 echo $ECHO_N "(cached) $ECHO_C" >&6
10429 if test -n "$ac_ct_CC"; then
10430 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10433 for as_dir in $PATH
10436 test -z "$as_dir" && as_dir=.
10437 for ac_exec_ext in '' $ac_executable_extensions; do
10438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10439 ac_cv_prog_ac_ct_CC="$ac_prog"
10440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10448 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10449 if test -n "$ac_ct_CC"; then
10450 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10451 echo "${ECHO_T}$ac_ct_CC" >&6
10453 echo "$as_me:$LINENO: result: no" >&5
10454 echo "${ECHO_T}no" >&6
10457 test -n "$ac_ct_CC" && break
10466 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10467 See \`config.log' for more details." >&5
10468 echo "$as_me: error: no acceptable C compiler found in \$PATH
10469 See \`config.log' for more details." >&2;}
10470 { (exit 1); exit 1; }; }
10472 # Provide some information about the compiler.
10473 echo "$as_me:$LINENO:" \
10474 "checking for C compiler version" >&5
10475 ac_compiler=`set X $ac_compile; echo $2`
10476 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10477 (eval $ac_compiler --version </dev/null >&5) 2>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }
10481 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10482 (eval $ac_compiler -v </dev/null >&5) 2>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }
10486 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10487 (eval $ac_compiler -V </dev/null >&5) 2>&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }
10492 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10493 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10494 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 cat >conftest.$ac_ext <<_ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10515 rm -f conftest.$ac_objext
10516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10517 (eval $ac_compile) 2>conftest.er1
10519 grep -v '^ *+' conftest.er1 >conftest.err
10521 cat conftest.err >&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } &&
10524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10526 (eval $ac_try) 2>&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); }; } &&
10530 { ac_try='test -s conftest.$ac_objext'
10531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10532 (eval $ac_try) 2>&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); }; }; then
10536 ac_compiler_gnu=yes
10538 echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10544 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10547 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10548 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10549 GCC=`test $ac_compiler_gnu = yes && echo yes`
10550 ac_test_CFLAGS=${CFLAGS+set}
10551 ac_save_CFLAGS=$CFLAGS
10553 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10554 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10555 if test "${ac_cv_prog_cc_g+set}" = set; then
10556 echo $ECHO_N "(cached) $ECHO_C" >&6
10558 cat >conftest.$ac_ext <<_ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10573 rm -f conftest.$ac_objext
10574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10575 (eval $ac_compile) 2>conftest.er1
10577 grep -v '^ *+' conftest.er1 >conftest.err
10579 cat conftest.err >&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); } &&
10582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; } &&
10588 { ac_try='test -s conftest.$ac_objext'
10589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590 (eval $ac_try) 2>&5
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); }; }; then
10594 ac_cv_prog_cc_g=yes
10596 echo "$as_me: failed program was:" >&5
10597 sed 's/^/| /' conftest.$ac_ext >&5
10601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10603 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10604 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10605 if test "$ac_test_CFLAGS" = set; then
10606 CFLAGS=$ac_save_CFLAGS
10607 elif test $ac_cv_prog_cc_g = yes; then
10608 if test "$GCC" = yes; then
10614 if test "$GCC" = yes; then
10620 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10621 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10622 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 ac_cv_prog_cc_stdc=no
10627 cat >conftest.$ac_ext <<_ACEOF
10630 cat confdefs.h >>conftest.$ac_ext
10631 cat >>conftest.$ac_ext <<_ACEOF
10632 /* end confdefs.h. */
10633 #include <stdarg.h>
10635 #include <sys/types.h>
10636 #include <sys/stat.h>
10637 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10638 struct buf { int x; };
10639 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10640 static char *e (p, i)
10646 static char *f (char * (*g) (char **, int), char **p, ...)
10651 s = g (p, va_arg (v,int));
10656 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10657 function prototypes and stuff, but not '\xHH' hex character constants.
10658 These don't provoke an error unfortunately, instead are silently treated
10659 as 'x'. The following induces an error, until -std1 is added to get
10660 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10661 array size at least. It's necessary to write '\x00'==0 to get something
10662 that's true only with -std1. */
10663 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10665 int test (int i, double x);
10666 struct s1 {int (*f) (int a);};
10667 struct s2 {int (*f) (double a);};
10668 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10674 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10679 # Don't try gcc -ansi; that turns off useful extensions and
10680 # breaks some systems' header files.
10681 # AIX -qlanglvl=ansi
10682 # Ultrix and OSF/1 -std1
10683 # HP-UX 10.20 and later -Ae
10684 # HP-UX older versions -Aa -D_HPUX_SOURCE
10685 # SVR4 -Xc -D__EXTENSIONS__
10686 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10688 CC="$ac_save_CC $ac_arg"
10689 rm -f conftest.$ac_objext
10690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10691 (eval $ac_compile) 2>conftest.er1
10693 grep -v '^ *+' conftest.er1 >conftest.err
10695 cat conftest.err >&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } &&
10698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; } &&
10704 { ac_try='test -s conftest.$ac_objext'
10705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706 (eval $ac_try) 2>&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; }; then
10710 ac_cv_prog_cc_stdc=$ac_arg
10713 echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10717 rm -f conftest.err conftest.$ac_objext
10719 rm -f conftest.$ac_ext conftest.$ac_objext
10724 case "x$ac_cv_prog_cc_stdc" in
10726 echo "$as_me:$LINENO: result: none needed" >&5
10727 echo "${ECHO_T}none needed" >&6 ;;
10729 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10730 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10731 CC="$CC $ac_cv_prog_cc_stdc" ;;
10734 # Some people use a C++ compiler to compile C. Since we use `exit',
10735 # in C++ we need to declare it. In case someone uses the same compiler
10736 # for both compiling C and C++ we need to have the C++ compiler decide
10737 # the declaration of exit, since it's the most demanding environment.
10738 cat >conftest.$ac_ext <<_ACEOF
10739 #ifndef __cplusplus
10743 rm -f conftest.$ac_objext
10744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10745 (eval $ac_compile) 2>conftest.er1
10747 grep -v '^ *+' conftest.er1 >conftest.err
10749 cat conftest.err >&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
10752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; } &&
10758 { ac_try='test -s conftest.$ac_objext'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; }; then
10764 for ac_declaration in \
10766 'extern "C" void std::exit (int) throw (); using std::exit;' \
10767 'extern "C" void std::exit (int); using std::exit;' \
10768 'extern "C" void exit (int) throw ();' \
10769 'extern "C" void exit (int);' \
10772 cat >conftest.$ac_ext <<_ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h. */
10779 #include <stdlib.h>
10788 rm -f conftest.$ac_objext
10789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10790 (eval $ac_compile) 2>conftest.er1
10792 grep -v '^ *+' conftest.er1 >conftest.err
10794 cat conftest.err >&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } &&
10797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; } &&
10803 { ac_try='test -s conftest.$ac_objext'
10804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805 (eval $ac_try) 2>&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; }; then
10811 echo "$as_me: failed program was:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10817 cat >conftest.$ac_ext <<_ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10832 rm -f conftest.$ac_objext
10833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10834 (eval $ac_compile) 2>conftest.er1
10836 grep -v '^ *+' conftest.er1 >conftest.err
10838 cat conftest.err >&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); } &&
10841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843 (eval $ac_try) 2>&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; } &&
10847 { ac_try='test -s conftest.$ac_objext'
10848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849 (eval $ac_try) 2>&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; }; then
10855 echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.$ac_ext >&5
10859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10862 if test -n "$ac_declaration"; then
10863 echo '#ifdef __cplusplus' >>confdefs.h
10864 echo $ac_declaration >>confdefs.h
10865 echo '#endif' >>confdefs.h
10869 echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10875 ac_cpp='$CPP $CPPFLAGS'
10876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10880 depcc="$CC" am_compiler_list=
10882 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
10883 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
10884 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10888 # We make a subdir and do the tests there. Otherwise we can end up
10889 # making bogus files that we don't know about and never remove. For
10890 # instance it was reported that on HP-UX the gcc test will end up
10891 # making a dummy file named `D' -- because `-MD' means `put the output
10894 # Copy depcomp to subdir because otherwise we won't find it if we're
10895 # using a relative directory.
10896 cp "$am_depcomp" conftest.dir
10898 # We will build objects and dependencies in a subdirectory because
10899 # it helps to detect inapplicable dependency modes. For instance
10900 # both Tru64's cc and ICC support -MD to output dependencies as a
10901 # side effect of compilation, but ICC will put the dependencies in
10902 # the current directory while Tru64 will put them in the object
10906 am_cv_CC_dependencies_compiler_type=none
10907 if test "$am_compiler_list" = ""; then
10908 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10910 for depmode in $am_compiler_list; do
10911 # Setup a source with many dependencies, because some compilers
10912 # like to wrap large dependency lists on column 80 (with \), and
10913 # we should not choose a depcomp mode which is confused by this.
10915 # We need to recreate these files for each test, as the compiler may
10916 # overwrite some of them when testing with obscure command lines.
10917 # This happens at least with the AIX C compiler.
10919 for i in 1 2 3 4 5 6; do
10920 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10921 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10922 # Solaris 8's {/usr,}/bin/sh.
10923 touch sub/conftst$i.h
10925 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10929 # after this tag, mechanisms are not by side-effect, so they'll
10930 # only be used when explicitly requested
10931 if test "x$enable_dependency_tracking" = xyes; then
10939 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10940 # mode. It turns out that the SunPro C++ compiler does not properly
10941 # handle `-M -o', and we need to detect this.
10942 if depmode=$depmode \
10943 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10944 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10945 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
10946 >/dev/null 2>conftest.err &&
10947 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10948 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
10949 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10950 # icc doesn't choke on unknown options, it will just issue warnings
10951 # or remarks (even with -Werror). So we grep stderr for any message
10952 # that says an option was ignored or not supported.
10953 # When given -MP, icc 7.0 and 7.1 complain thusly:
10954 # icc: Command line warning: ignoring option '-M'; no argument required
10955 # The diagnosis changed in icc 8.0:
10956 # icc: Command line remark: option '-MP' not supported
10957 if (grep 'ignoring option' conftest.err ||
10958 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10959 am_cv_CC_dependencies_compiler_type=$depmode
10966 rm -rf conftest.dir
10968 am_cv_CC_dependencies_compiler_type=none
10972 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
10973 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
10974 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10979 test "x$enable_dependency_tracking" != xno \
10980 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10981 am__fastdepCC_TRUE=
10982 am__fastdepCC_FALSE='#'
10984 am__fastdepCC_TRUE='#'
10985 am__fastdepCC_FALSE=
10989 echo "$as_me:$LINENO: checking for library containing strerror" >&5
10990 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
10991 if test "${ac_cv_search_strerror+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 ac_func_search_save_LIBS=$LIBS
10995 ac_cv_search_strerror=no
10996 cat >conftest.$ac_ext <<_ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11003 /* Override any gcc2 internal prototype to avoid an error. */
11007 /* We use char because int might match the return type of a gcc2
11008 builtin and then its argument prototype would still apply. */
11018 rm -f conftest.$ac_objext conftest$ac_exeext
11019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11020 (eval $ac_link) 2>conftest.er1
11022 grep -v '^ *+' conftest.er1 >conftest.err
11024 cat conftest.err >&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } &&
11027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; } &&
11033 { ac_try='test -s conftest$ac_exeext'
11034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11035 (eval $ac_try) 2>&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; }; then
11039 ac_cv_search_strerror="none required"
11041 echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11045 rm -f conftest.err conftest.$ac_objext \
11046 conftest$ac_exeext conftest.$ac_ext
11047 if test "$ac_cv_search_strerror" = no; then
11048 for ac_lib in cposix; do
11049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11050 cat >conftest.$ac_ext <<_ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h. */
11057 /* Override any gcc2 internal prototype to avoid an error. */
11061 /* We use char because int might match the return type of a gcc2
11062 builtin and then its argument prototype would still apply. */
11072 rm -f conftest.$ac_objext conftest$ac_exeext
11073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11074 (eval $ac_link) 2>conftest.er1
11076 grep -v '^ *+' conftest.er1 >conftest.err
11078 cat conftest.err >&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } &&
11081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083 (eval $ac_try) 2>&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; } &&
11087 { ac_try='test -s conftest$ac_exeext'
11088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11089 (eval $ac_try) 2>&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); }; }; then
11093 ac_cv_search_strerror="-l$ac_lib"
11096 echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11100 rm -f conftest.err conftest.$ac_objext \
11101 conftest$ac_exeext conftest.$ac_ext
11104 LIBS=$ac_func_search_save_LIBS
11106 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
11107 echo "${ECHO_T}$ac_cv_search_strerror" >&6
11108 if test "$ac_cv_search_strerror" != no; then
11109 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
11113 echo "$as_me:$LINENO: checking for function prototypes" >&5
11114 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
11115 if test "$ac_cv_prog_cc_stdc" != no; then
11116 echo "$as_me:$LINENO: result: yes" >&5
11117 echo "${ECHO_T}yes" >&6
11119 cat >>confdefs.h <<\_ACEOF
11120 #define PROTOTYPES 1
11124 cat >>confdefs.h <<\_ACEOF
11125 #define __PROTOTYPES 1
11129 echo "$as_me:$LINENO: result: no" >&5
11130 echo "${ECHO_T}no" >&6
11134 if test "$ac_cv_prog_cc_stdc" != no; then
11137 U=_ ANSI2KNR=./ansi2knr
11139 # Ensure some checks needed by ansi2knr itself.
11142 for ac_header in string.h
11144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11146 echo "$as_me:$LINENO: checking for $ac_header" >&5
11147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11154 # Is the header compilable?
11155 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11157 cat >conftest.$ac_ext <<_ACEOF
11160 cat confdefs.h >>conftest.$ac_ext
11161 cat >>conftest.$ac_ext <<_ACEOF
11162 /* end confdefs.h. */
11163 $ac_includes_default
11164 #include <$ac_header>
11166 rm -f conftest.$ac_objext
11167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11168 (eval $ac_compile) 2>conftest.er1
11170 grep -v '^ *+' conftest.er1 >conftest.err
11172 cat conftest.err >&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } &&
11175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11177 (eval $ac_try) 2>&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); }; } &&
11181 { ac_try='test -s conftest.$ac_objext'
11182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183 (eval $ac_try) 2>&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; }; then
11187 ac_header_compiler=yes
11189 echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11192 ac_header_compiler=no
11194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11195 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11196 echo "${ECHO_T}$ac_header_compiler" >&6
11198 # Is the header present?
11199 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11201 cat >conftest.$ac_ext <<_ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11207 #include <$ac_header>
11209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11212 grep -v '^ *+' conftest.er1 >conftest.err
11214 cat conftest.err >&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } >/dev/null; then
11217 if test -s conftest.err; then
11218 ac_cpp_err=$ac_c_preproc_warn_flag
11219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11226 if test -z "$ac_cpp_err"; then
11227 ac_header_preproc=yes
11229 echo "$as_me: failed program was:" >&5
11230 sed 's/^/| /' conftest.$ac_ext >&5
11232 ac_header_preproc=no
11234 rm -f conftest.err conftest.$ac_ext
11235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11236 echo "${ECHO_T}$ac_header_preproc" >&6
11238 # So? What about this header?
11239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11245 ac_header_preproc=yes
11248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11262 ## ------------------------------------------ ##
11263 ## Report this to the AC_PACKAGE_NAME lists. ##
11264 ## ------------------------------------------ ##
11267 sed "s/^/$as_me: WARNING: /" >&2
11270 echo "$as_me:$LINENO: checking for $ac_header" >&5
11271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 eval "$as_ac_Header=\$ac_header_preproc"
11277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11282 cat >>confdefs.h <<_ACEOF
11283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11291 if test "x$U" != "x"; then
11292 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
11293 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
11294 { (exit 1); exit 1; }; }
11296 echo "$as_me:$LINENO: checking for inline" >&5
11297 echo $ECHO_N "checking for inline... $ECHO_C" >&6
11298 if test "${ac_cv_c_inline+set}" = set; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 for ac_kw in inline __inline__ __inline; do
11303 cat >conftest.$ac_ext <<_ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h. */
11309 #ifndef __cplusplus
11311 static $ac_kw foo_t static_foo () {return 0; }
11312 $ac_kw foo_t foo () {return 0; }
11316 rm -f conftest.$ac_objext
11317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11318 (eval $ac_compile) 2>conftest.er1
11320 grep -v '^ *+' conftest.er1 >conftest.err
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } &&
11325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; } &&
11331 { ac_try='test -s conftest.$ac_objext'
11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333 (eval $ac_try) 2>&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); }; }; then
11337 ac_cv_c_inline=$ac_kw; break
11339 echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11347 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11348 echo "${ECHO_T}$ac_cv_c_inline" >&6
11351 case $ac_cv_c_inline in
11354 case $ac_cv_c_inline in
11356 *) ac_val=$ac_cv_c_inline;;
11358 cat >>confdefs.h <<_ACEOF
11359 #ifndef __cplusplus
11360 #define inline $ac_val
11366 # Find a good install program. We prefer a C program (faster),
11367 # so one script is as good as another. But avoid the broken or
11368 # incompatible versions:
11369 # SysV /etc/install, /usr/sbin/install
11370 # SunOS /usr/etc/install
11371 # IRIX /sbin/install
11373 # AmigaOS /C/install, which installs bootblocks on floppy discs
11374 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11375 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11376 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11377 # OS/2's system install, which has a completely different semantic
11378 # ./install, which can be erroneously created by make from ./install.sh.
11379 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11380 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11381 if test -z "$INSTALL"; then
11382 if test "${ac_cv_path_install+set}" = set; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386 for as_dir in $PATH
11389 test -z "$as_dir" && as_dir=.
11390 # Account for people who put trailing slashes in PATH elements.
11392 ./ | .// | /cC/* | \
11393 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11394 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11397 # OSF1 and SCO ODT 3.0 have their own names for install.
11398 # Don't use installbsd from OSF since it installs stuff as root
11400 for ac_prog in ginstall scoinst install; do
11401 for ac_exec_ext in '' $ac_executable_extensions; do
11402 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11403 if test $ac_prog = install &&
11404 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11405 # AIX install. It has an incompatible calling convention.
11407 elif test $ac_prog = install &&
11408 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11409 # program-specific install script used by HP pwplus--don't use.
11412 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11424 if test "${ac_cv_path_install+set}" = set; then
11425 INSTALL=$ac_cv_path_install
11427 # As a last resort, use the slow shell script. We don't cache a
11428 # path for INSTALL within a source directory, because that will
11429 # break other packages using the cache if that directory is
11430 # removed, or if the path is relative.
11431 INSTALL=$ac_install_sh
11434 echo "$as_me:$LINENO: result: $INSTALL" >&5
11435 echo "${ECHO_T}$INSTALL" >&6
11437 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11438 # It thinks the first close brace ends the variable substitution.
11439 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11441 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11443 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11445 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11446 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11447 if test "${ac_cv_header_stdc+set}" = set; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 cat >conftest.$ac_ext <<_ACEOF
11453 cat confdefs.h >>conftest.$ac_ext
11454 cat >>conftest.$ac_ext <<_ACEOF
11455 /* end confdefs.h. */
11456 #include <stdlib.h>
11457 #include <stdarg.h>
11458 #include <string.h>
11469 rm -f conftest.$ac_objext
11470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11471 (eval $ac_compile) 2>conftest.er1
11473 grep -v '^ *+' conftest.er1 >conftest.err
11475 cat conftest.err >&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); } &&
11478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480 (eval $ac_try) 2>&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; } &&
11484 { ac_try='test -s conftest.$ac_objext'
11485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486 (eval $ac_try) 2>&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); }; }; then
11490 ac_cv_header_stdc=yes
11492 echo "$as_me: failed program was:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11495 ac_cv_header_stdc=no
11497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11499 if test $ac_cv_header_stdc = yes; then
11500 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11501 cat >conftest.$ac_ext <<_ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11507 #include <string.h>
11510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11511 $EGREP "memchr" >/dev/null 2>&1; then
11514 ac_cv_header_stdc=no
11520 if test $ac_cv_header_stdc = yes; then
11521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11522 cat >conftest.$ac_ext <<_ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h. */
11528 #include <stdlib.h>
11531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11532 $EGREP "free" >/dev/null 2>&1; then
11535 ac_cv_header_stdc=no
11541 if test $ac_cv_header_stdc = yes; then
11542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11543 if test "$cross_compiling" = yes; then
11546 cat >conftest.$ac_ext <<_ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h. */
11553 #if ((' ' & 0x0FF) == 0x020)
11554 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11555 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11557 # define ISLOWER(c) \
11558 (('a' <= (c) && (c) <= 'i') \
11559 || ('j' <= (c) && (c) <= 'r') \
11560 || ('s' <= (c) && (c) <= 'z'))
11561 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11564 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11569 for (i = 0; i < 256; i++)
11570 if (XOR (islower (i), ISLOWER (i))
11571 || toupper (i) != TOUPPER (i))
11576 rm -f conftest$ac_exeext
11577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11578 (eval $ac_link) 2>&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583 (eval $ac_try) 2>&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; }; then
11589 echo "$as_me: program exited with status $ac_status" >&5
11590 echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11593 ( exit $ac_status )
11594 ac_cv_header_stdc=no
11596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11600 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11601 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11602 if test $ac_cv_header_stdc = yes; then
11604 cat >>confdefs.h <<\_ACEOF
11605 #define STDC_HEADERS 1
11614 for ac_header in unistd.h locale.h sys/ioctl.h iconv.h
11616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11618 echo "$as_me:$LINENO: checking for $ac_header" >&5
11619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11626 # Is the header compilable?
11627 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11629 cat >conftest.$ac_ext <<_ACEOF
11632 cat confdefs.h >>conftest.$ac_ext
11633 cat >>conftest.$ac_ext <<_ACEOF
11634 /* end confdefs.h. */
11635 $ac_includes_default
11636 #include <$ac_header>
11638 rm -f conftest.$ac_objext
11639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11640 (eval $ac_compile) 2>conftest.er1
11642 grep -v '^ *+' conftest.er1 >conftest.err
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } &&
11647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649 (eval $ac_try) 2>&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; } &&
11653 { ac_try='test -s conftest.$ac_objext'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; }; then
11659 ac_header_compiler=yes
11661 echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11664 ac_header_compiler=no
11666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11668 echo "${ECHO_T}$ac_header_compiler" >&6
11670 # Is the header present?
11671 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11673 cat >conftest.$ac_ext <<_ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h. */
11679 #include <$ac_header>
11681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11684 grep -v '^ *+' conftest.er1 >conftest.err
11686 cat conftest.err >&5
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); } >/dev/null; then
11689 if test -s conftest.err; then
11690 ac_cpp_err=$ac_c_preproc_warn_flag
11691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11698 if test -z "$ac_cpp_err"; then
11699 ac_header_preproc=yes
11701 echo "$as_me: failed program was:" >&5
11702 sed 's/^/| /' conftest.$ac_ext >&5
11704 ac_header_preproc=no
11706 rm -f conftest.err conftest.$ac_ext
11707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11708 echo "${ECHO_T}$ac_header_preproc" >&6
11710 # So? What about this header?
11711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11717 ac_header_preproc=yes
11720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11727 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11734 ## ------------------------------------------ ##
11735 ## Report this to the AC_PACKAGE_NAME lists. ##
11736 ## ------------------------------------------ ##
11739 sed "s/^/$as_me: WARNING: /" >&2
11742 echo "$as_me:$LINENO: checking for $ac_header" >&5
11743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 eval "$as_ac_Header=\$ac_header_preproc"
11749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11754 cat >>confdefs.h <<_ACEOF
11755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11762 if test "${ac_cv_header_stdarg_h+set}" = set; then
11763 echo "$as_me:$LINENO: checking for stdarg.h" >&5
11764 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
11765 if test "${ac_cv_header_stdarg_h+set}" = set; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11768 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
11769 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
11771 # Is the header compilable?
11772 echo "$as_me:$LINENO: checking stdarg.h usability" >&5
11773 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
11774 cat >conftest.$ac_ext <<_ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11780 $ac_includes_default
11781 #include <stdarg.h>
11783 rm -f conftest.$ac_objext
11784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11785 (eval $ac_compile) 2>conftest.er1
11787 grep -v '^ *+' conftest.er1 >conftest.err
11789 cat conftest.err >&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } &&
11792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11794 (eval $ac_try) 2>&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); }; } &&
11798 { ac_try='test -s conftest.$ac_objext'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 ac_header_compiler=yes
11806 echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11809 ac_header_compiler=no
11811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11813 echo "${ECHO_T}$ac_header_compiler" >&6
11815 # Is the header present?
11816 echo "$as_me:$LINENO: checking stdarg.h presence" >&5
11817 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
11818 cat >conftest.$ac_ext <<_ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11824 #include <stdarg.h>
11826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11829 grep -v '^ *+' conftest.er1 >conftest.err
11831 cat conftest.err >&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } >/dev/null; then
11834 if test -s conftest.err; then
11835 ac_cpp_err=$ac_c_preproc_warn_flag
11836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11843 if test -z "$ac_cpp_err"; then
11844 ac_header_preproc=yes
11846 echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 ac_header_preproc=no
11851 rm -f conftest.err conftest.$ac_ext
11852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11853 echo "${ECHO_T}$ac_header_preproc" >&6
11855 # So? What about this header?
11856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11858 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
11859 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11860 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
11861 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
11862 ac_header_preproc=yes
11865 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
11866 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
11868 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
11869 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
11870 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
11872 echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
11873 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
11874 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
11875 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
11876 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
11879 ## ------------------------------------------ ##
11880 ## Report this to the AC_PACKAGE_NAME lists. ##
11881 ## ------------------------------------------ ##
11884 sed "s/^/$as_me: WARNING: /" >&2
11887 echo "$as_me:$LINENO: checking for stdarg.h" >&5
11888 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
11889 if test "${ac_cv_header_stdarg_h+set}" = set; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
11892 ac_cv_header_stdarg_h=$ac_header_preproc
11894 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
11895 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
11898 if test $ac_cv_header_stdarg_h = yes; then
11900 cat >>confdefs.h <<\_ACEOF
11901 #define HAVE_STDARG_H 1
11905 { { echo "$as_me:$LINENO: error: *** stdarg.h is missing on your system ***" >&5
11906 echo "$as_me: error: *** stdarg.h is missing on your system ***" >&2;}
11907 { (exit 1); exit 1; }; }
11911 echo "$as_me:$LINENO: checking for working strcoll" >&5
11912 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
11913 if test "${ac_cv_func_strcoll_works+set}" = set; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11916 if test "$cross_compiling" = yes; then
11917 ac_cv_func_strcoll_works=no
11919 cat >conftest.$ac_ext <<_ACEOF
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h. */
11925 $ac_includes_default
11929 exit (strcoll ("abc", "def") >= 0 ||
11930 strcoll ("ABC", "DEF") >= 0 ||
11931 strcoll ("123", "456") >= 0)
11936 rm -f conftest$ac_exeext
11937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11938 (eval $ac_link) 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; }; then
11947 ac_cv_func_strcoll_works=yes
11949 echo "$as_me: program exited with status $ac_status" >&5
11950 echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11953 ( exit $ac_status )
11954 ac_cv_func_strcoll_works=no
11956 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11959 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
11960 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
11961 if test $ac_cv_func_strcoll_works = yes; then
11963 cat >>confdefs.h <<\_ACEOF
11964 #define HAVE_STRCOLL 1
11970 for ac_func in setlocale
11972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11973 echo "$as_me:$LINENO: checking for $ac_func" >&5
11974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11975 if eval "test \"\${$as_ac_var+set}\" = set"; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11978 cat >conftest.$ac_ext <<_ACEOF
11981 cat confdefs.h >>conftest.$ac_ext
11982 cat >>conftest.$ac_ext <<_ACEOF
11983 /* end confdefs.h. */
11984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11986 #define $ac_func innocuous_$ac_func
11988 /* System header to define __stub macros and hopefully few prototypes,
11989 which can conflict with char $ac_func (); below.
11990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11991 <limits.h> exists even on freestanding compilers. */
11994 # include <limits.h>
11996 # include <assert.h>
12001 /* Override any gcc2 internal prototype to avoid an error. */
12006 /* We use char because int might match the return type of a gcc2
12007 builtin and then its argument prototype would still apply. */
12009 /* The GNU C library defines this for functions which it implements
12010 to always fail with ENOSYS. Some functions are actually named
12011 something starting with __ and the normal name is an alias. */
12012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12015 char (*f) () = $ac_func;
12024 return f != $ac_func;
12029 rm -f conftest.$ac_objext conftest$ac_exeext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12031 (eval $ac_link) 2>conftest.er1
12033 grep -v '^ *+' conftest.er1 >conftest.err
12035 cat conftest.err >&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); } &&
12038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; } &&
12044 { ac_try='test -s conftest$ac_exeext'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
12050 eval "$as_ac_var=yes"
12052 echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12055 eval "$as_ac_var=no"
12057 rm -f conftest.err conftest.$ac_objext \
12058 conftest$ac_exeext conftest.$ac_ext
12060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12062 if test `eval echo '${'$as_ac_var'}'` = yes; then
12063 cat >>confdefs.h <<_ACEOF
12064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12072 if test "${ac_cv_header_wchar_h+set}" = set; then
12073 echo "$as_me:$LINENO: checking for wchar.h" >&5
12074 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
12075 if test "${ac_cv_header_wchar_h+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12078 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
12079 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
12081 # Is the header compilable?
12082 echo "$as_me:$LINENO: checking wchar.h usability" >&5
12083 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
12084 cat >conftest.$ac_ext <<_ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12090 $ac_includes_default
12093 rm -f conftest.$ac_objext
12094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12095 (eval $ac_compile) 2>conftest.er1
12097 grep -v '^ *+' conftest.er1 >conftest.err
12099 cat conftest.err >&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } &&
12102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104 (eval $ac_try) 2>&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); }; } &&
12108 { ac_try='test -s conftest.$ac_objext'
12109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110 (eval $ac_try) 2>&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; }; then
12114 ac_header_compiler=yes
12116 echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12119 ac_header_compiler=no
12121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12123 echo "${ECHO_T}$ac_header_compiler" >&6
12125 # Is the header present?
12126 echo "$as_me:$LINENO: checking wchar.h presence" >&5
12127 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
12128 cat >conftest.$ac_ext <<_ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h. */
12136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12139 grep -v '^ *+' conftest.er1 >conftest.err
12141 cat conftest.err >&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } >/dev/null; then
12144 if test -s conftest.err; then
12145 ac_cpp_err=$ac_c_preproc_warn_flag
12146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12153 if test -z "$ac_cpp_err"; then
12154 ac_header_preproc=yes
12156 echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12159 ac_header_preproc=no
12161 rm -f conftest.err conftest.$ac_ext
12162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12163 echo "${ECHO_T}$ac_header_preproc" >&6
12165 # So? What about this header?
12166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12168 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
12169 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12170 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
12171 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
12172 ac_header_preproc=yes
12175 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
12176 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
12177 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
12178 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
12179 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
12180 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
12181 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
12182 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
12183 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
12184 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
12185 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
12186 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
12189 ## ------------------------------------------ ##
12190 ## Report this to the AC_PACKAGE_NAME lists. ##
12191 ## ------------------------------------------ ##
12194 sed "s/^/$as_me: WARNING: /" >&2
12197 echo "$as_me:$LINENO: checking for wchar.h" >&5
12198 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
12199 if test "${ac_cv_header_wchar_h+set}" = set; then
12200 echo $ECHO_N "(cached) $ECHO_C" >&6
12202 ac_cv_header_wchar_h=$ac_header_preproc
12204 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
12205 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
12208 if test $ac_cv_header_wchar_h = yes; then
12210 ac_have_wchar_h=yes
12212 cat >>confdefs.h <<\_ACEOF
12213 #define HAVE_WCHAR_H 1
12225 for ac_func in mbtowc wcwidth mbrtowc mbsinit
12227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12228 echo "$as_me:$LINENO: checking for $ac_func" >&5
12229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12230 if eval "test \"\${$as_ac_var+set}\" = set"; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 cat >conftest.$ac_ext <<_ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12241 #define $ac_func innocuous_$ac_func
12243 /* System header to define __stub macros and hopefully few prototypes,
12244 which can conflict with char $ac_func (); below.
12245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12246 <limits.h> exists even on freestanding compilers. */
12249 # include <limits.h>
12251 # include <assert.h>
12256 /* Override any gcc2 internal prototype to avoid an error. */
12261 /* We use char because int might match the return type of a gcc2
12262 builtin and then its argument prototype would still apply. */
12264 /* The GNU C library defines this for functions which it implements
12265 to always fail with ENOSYS. Some functions are actually named
12266 something starting with __ and the normal name is an alias. */
12267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12270 char (*f) () = $ac_func;
12279 return f != $ac_func;
12284 rm -f conftest.$ac_objext conftest$ac_exeext
12285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12286 (eval $ac_link) 2>conftest.er1
12288 grep -v '^ *+' conftest.er1 >conftest.err
12290 cat conftest.err >&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); } &&
12293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; } &&
12299 { ac_try='test -s conftest$ac_exeext'
12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; }; then
12305 eval "$as_ac_var=yes"
12307 echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12310 eval "$as_ac_var=no"
12312 rm -f conftest.err conftest.$ac_objext \
12313 conftest$ac_exeext conftest.$ac_ext
12315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12317 if test `eval echo '${'$as_ac_var'}'` = yes; then
12318 cat >>confdefs.h <<_ACEOF
12319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12327 echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
12328 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
12329 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
12330 echo $ECHO_N "(cached) $ECHO_C" >&6
12332 cat >conftest.$ac_ext <<_ACEOF
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h. */
12338 $ac_includes_default
12343 char *p = (char *) wcwidth;
12350 rm -f conftest.$ac_objext
12351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12352 (eval $ac_compile) 2>conftest.er1
12354 grep -v '^ *+' conftest.er1 >conftest.err
12356 cat conftest.err >&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } &&
12359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; } &&
12365 { ac_try='test -s conftest.$ac_objext'
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; }; then
12371 ac_cv_have_decl_wcwidth=yes
12373 echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12376 ac_cv_have_decl_wcwidth=no
12378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12380 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
12381 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
12382 if test $ac_cv_have_decl_wcwidth = yes; then
12384 cat >>confdefs.h <<_ACEOF
12385 #define HAVE_DECL_WCWIDTH 1
12390 cat >>confdefs.h <<_ACEOF
12391 #define HAVE_DECL_WCWIDTH 0
12398 echo "$as_me:$LINENO: checking for wchar_t" >&5
12399 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
12400 if test "${ac_cv_type_wchar_t+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12403 cat >conftest.$ac_ext <<_ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12409 $ac_includes_default
12415 if (sizeof (wchar_t))
12421 rm -f conftest.$ac_objext
12422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12423 (eval $ac_compile) 2>conftest.er1
12425 grep -v '^ *+' conftest.er1 >conftest.err
12427 cat conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } &&
12430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; } &&
12436 { ac_try='test -s conftest.$ac_objext'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12442 ac_cv_type_wchar_t=yes
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447 ac_cv_type_wchar_t=no
12449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12451 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
12452 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
12453 if test $ac_cv_type_wchar_t = yes; then
12460 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
12461 ac_widec_possible=yes
12463 ac_widec_possible=no
12467 abook_cv_curses=/usr
12469 # Check whether --with-curses or --without-curses was given.
12470 if test "${with_curses+set}" = set; then
12471 withval="$with_curses"
12472 if test $withval != yes; then
12473 abook_cv_curses=$withval
12475 if test x$abook_cv_curses != x/usr; then
12476 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
12477 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
12481 echo "$as_me:$LINENO: checking for initscr in -lncursesw" >&5
12482 echo $ECHO_N "checking for initscr in -lncursesw... $ECHO_C" >&6
12483 if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12486 ac_check_lib_save_LIBS=$LIBS
12487 LIBS="-lncursesw $LIBS"
12488 cat >conftest.$ac_ext <<_ACEOF
12491 cat confdefs.h >>conftest.$ac_ext
12492 cat >>conftest.$ac_ext <<_ACEOF
12493 /* end confdefs.h. */
12495 /* Override any gcc2 internal prototype to avoid an error. */
12499 /* We use char because int might match the return type of a gcc2
12500 builtin and then its argument prototype would still apply. */
12510 rm -f conftest.$ac_objext conftest$ac_exeext
12511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12512 (eval $ac_link) 2>conftest.er1
12514 grep -v '^ *+' conftest.er1 >conftest.err
12516 cat conftest.err >&5
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); } &&
12519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; } &&
12525 { ac_try='test -s conftest$ac_exeext'
12526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527 (eval $ac_try) 2>&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; }; then
12531 ac_cv_lib_ncursesw_initscr=yes
12533 echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12536 ac_cv_lib_ncursesw_initscr=no
12538 rm -f conftest.err conftest.$ac_objext \
12539 conftest$ac_exeext conftest.$ac_ext
12540 LIBS=$ac_check_lib_save_LIBS
12542 echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_initscr" >&5
12543 echo "${ECHO_T}$ac_cv_lib_ncursesw_initscr" >&6
12544 if test $ac_cv_lib_ncursesw_initscr = yes; then
12545 LIBS="$LIBS -lncursesw"
12546 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
12547 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
12550 for ac_header in ncurses.h
12552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12554 echo "$as_me:$LINENO: checking for $ac_header" >&5
12555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12562 # Is the header compilable?
12563 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12565 cat >conftest.$ac_ext <<_ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h. */
12571 $ac_includes_default
12572 #include <$ac_header>
12574 rm -f conftest.$ac_objext
12575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12576 (eval $ac_compile) 2>conftest.er1
12578 grep -v '^ *+' conftest.er1 >conftest.err
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } &&
12583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585 (eval $ac_try) 2>&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; } &&
12589 { ac_try='test -s conftest.$ac_objext'
12590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591 (eval $ac_try) 2>&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }; }; then
12595 ac_header_compiler=yes
12597 echo "$as_me: failed program was:" >&5
12598 sed 's/^/| /' conftest.$ac_ext >&5
12600 ac_header_compiler=no
12602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12604 echo "${ECHO_T}$ac_header_compiler" >&6
12606 # Is the header present?
12607 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12609 cat >conftest.$ac_ext <<_ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12615 #include <$ac_header>
12617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12620 grep -v '^ *+' conftest.er1 >conftest.err
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } >/dev/null; then
12625 if test -s conftest.err; then
12626 ac_cpp_err=$ac_c_preproc_warn_flag
12627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12634 if test -z "$ac_cpp_err"; then
12635 ac_header_preproc=yes
12637 echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12640 ac_header_preproc=no
12642 rm -f conftest.err conftest.$ac_ext
12643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12644 echo "${ECHO_T}$ac_header_preproc" >&6
12646 # So? What about this header?
12647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12652 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12653 ac_header_preproc=yes
12656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12659 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12660 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12661 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12662 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12663 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12666 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12667 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12670 ## ------------------------------------------ ##
12671 ## Report this to the AC_PACKAGE_NAME lists. ##
12672 ## ------------------------------------------ ##
12675 sed "s/^/$as_me: WARNING: /" >&2
12678 echo "$as_me:$LINENO: checking for $ac_header" >&5
12679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12683 eval "$as_ac_Header=\$ac_header_preproc"
12685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12690 cat >>confdefs.h <<_ACEOF
12691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12700 ac_widec_possible=no
12701 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
12702 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
12703 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 ac_check_lib_save_LIBS=$LIBS
12707 LIBS="-lncurses $LIBS"
12708 cat >conftest.$ac_ext <<_ACEOF
12711 cat confdefs.h >>conftest.$ac_ext
12712 cat >>conftest.$ac_ext <<_ACEOF
12713 /* end confdefs.h. */
12715 /* Override any gcc2 internal prototype to avoid an error. */
12719 /* We use char because int might match the return type of a gcc2
12720 builtin and then its argument prototype would still apply. */
12730 rm -f conftest.$ac_objext conftest$ac_exeext
12731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12732 (eval $ac_link) 2>conftest.er1
12734 grep -v '^ *+' conftest.er1 >conftest.err
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } &&
12739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; } &&
12745 { ac_try='test -s conftest$ac_exeext'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
12751 ac_cv_lib_ncurses_initscr=yes
12753 echo "$as_me: failed program was:" >&5
12754 sed 's/^/| /' conftest.$ac_ext >&5
12756 ac_cv_lib_ncurses_initscr=no
12758 rm -f conftest.err conftest.$ac_objext \
12759 conftest$ac_exeext conftest.$ac_ext
12760 LIBS=$ac_check_lib_save_LIBS
12762 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
12763 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
12764 if test $ac_cv_lib_ncurses_initscr = yes; then
12765 LIBS="$LIBS -lncurses"
12766 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
12767 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
12770 for ac_header in ncurses.h
12772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12774 echo "$as_me:$LINENO: checking for $ac_header" >&5
12775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12782 # Is the header compilable?
12783 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12785 cat >conftest.$ac_ext <<_ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12791 $ac_includes_default
12792 #include <$ac_header>
12794 rm -f conftest.$ac_objext
12795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12796 (eval $ac_compile) 2>conftest.er1
12798 grep -v '^ *+' conftest.er1 >conftest.err
12800 cat conftest.err >&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); } &&
12803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; } &&
12809 { ac_try='test -s conftest.$ac_objext'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }; then
12815 ac_header_compiler=yes
12817 echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12820 ac_header_compiler=no
12822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12824 echo "${ECHO_T}$ac_header_compiler" >&6
12826 # Is the header present?
12827 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12829 cat >conftest.$ac_ext <<_ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h. */
12835 #include <$ac_header>
12837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12840 grep -v '^ *+' conftest.er1 >conftest.err
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } >/dev/null; then
12845 if test -s conftest.err; then
12846 ac_cpp_err=$ac_c_preproc_warn_flag
12847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12854 if test -z "$ac_cpp_err"; then
12855 ac_header_preproc=yes
12857 echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12860 ac_header_preproc=no
12862 rm -f conftest.err conftest.$ac_ext
12863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12864 echo "${ECHO_T}$ac_header_preproc" >&6
12866 # So? What about this header?
12867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12873 ac_header_preproc=yes
12876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12880 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12882 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12883 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12886 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12890 ## ------------------------------------------ ##
12891 ## Report this to the AC_PACKAGE_NAME lists. ##
12892 ## ------------------------------------------ ##
12895 sed "s/^/$as_me: WARNING: /" >&2
12898 echo "$as_me:$LINENO: checking for $ac_header" >&5
12899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 eval "$as_ac_Header=\$ac_header_preproc"
12905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12910 cat >>confdefs.h <<_ACEOF
12911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12920 echo "$as_me:$LINENO: checking for initscr" >&5
12921 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
12922 if test "${ac_cv_func_initscr+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12925 cat >conftest.$ac_ext <<_ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12931 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
12932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12933 #define initscr innocuous_initscr
12935 /* System header to define __stub macros and hopefully few prototypes,
12936 which can conflict with char initscr (); below.
12937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12938 <limits.h> exists even on freestanding compilers. */
12941 # include <limits.h>
12943 # include <assert.h>
12948 /* Override any gcc2 internal prototype to avoid an error. */
12953 /* We use char because int might match the return type of a gcc2
12954 builtin and then its argument prototype would still apply. */
12956 /* The GNU C library defines this for functions which it implements
12957 to always fail with ENOSYS. Some functions are actually named
12958 something starting with __ and the normal name is an alias. */
12959 #if defined (__stub_initscr) || defined (__stub___initscr)
12962 char (*f) () = initscr;
12971 return f != initscr;
12976 rm -f conftest.$ac_objext conftest$ac_exeext
12977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12978 (eval $ac_link) 2>conftest.er1
12980 grep -v '^ *+' conftest.er1 >conftest.err
12982 cat conftest.err >&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } &&
12985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; } &&
12991 { ac_try='test -s conftest$ac_exeext'
12992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993 (eval $ac_try) 2>&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; }; then
12997 ac_cv_func_initscr=yes
12999 echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13002 ac_cv_func_initscr=no
13004 rm -f conftest.err conftest.$ac_objext \
13005 conftest$ac_exeext conftest.$ac_ext
13007 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
13008 echo "${ECHO_T}$ac_cv_func_initscr" >&6
13009 if test $ac_cv_func_initscr = yes; then
13013 case $host_os in #(vi
13015 echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
13016 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
13017 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
13018 echo $ECHO_N "(cached) $ECHO_C" >&6
13020 ac_check_lib_save_LIBS=$LIBS
13021 LIBS="-lmytinfo $LIBS"
13022 cat >conftest.$ac_ext <<_ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h. */
13029 /* Override any gcc2 internal prototype to avoid an error. */
13033 /* We use char because int might match the return type of a gcc2
13034 builtin and then its argument prototype would still apply. */
13044 rm -f conftest.$ac_objext conftest$ac_exeext
13045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13046 (eval $ac_link) 2>conftest.er1
13048 grep -v '^ *+' conftest.er1 >conftest.err
13050 cat conftest.err >&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); } &&
13053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055 (eval $ac_try) 2>&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; } &&
13059 { ac_try='test -s conftest$ac_exeext'
13060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; }; then
13065 ac_cv_lib_mytinfo_tgoto=yes
13067 echo "$as_me: failed program was:" >&5
13068 sed 's/^/| /' conftest.$ac_ext >&5
13070 ac_cv_lib_mytinfo_tgoto=no
13072 rm -f conftest.err conftest.$ac_objext \
13073 conftest$ac_exeext conftest.$ac_ext
13074 LIBS=$ac_check_lib_save_LIBS
13076 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
13077 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
13078 if test $ac_cv_lib_mytinfo_tgoto = yes; then
13079 LIBS="-lmytinfo $LIBS"
13084 echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
13085 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
13086 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13089 ac_check_lib_save_LIBS=$LIBS
13090 LIBS="-lcur_colr $LIBS"
13091 cat >conftest.$ac_ext <<_ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13098 /* Override any gcc2 internal prototype to avoid an error. */
13102 /* We use char because int might match the return type of a gcc2
13103 builtin and then its argument prototype would still apply. */
13113 rm -f conftest.$ac_objext conftest$ac_exeext
13114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13115 (eval $ac_link) 2>conftest.er1
13117 grep -v '^ *+' conftest.er1 >conftest.err
13119 cat conftest.err >&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); } &&
13122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124 (eval $ac_try) 2>&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; } &&
13128 { ac_try='test -s conftest$ac_exeext'
13129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130 (eval $ac_try) 2>&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }; }; then
13134 ac_cv_lib_cur_colr_initscr=yes
13136 echo "$as_me: failed program was:" >&5
13137 sed 's/^/| /' conftest.$ac_ext >&5
13139 ac_cv_lib_cur_colr_initscr=no
13141 rm -f conftest.err conftest.$ac_objext \
13142 conftest$ac_exeext conftest.$ac_ext
13143 LIBS=$ac_check_lib_save_LIBS
13145 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
13146 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
13147 if test $ac_cv_lib_cur_colr_initscr = yes; then
13149 LIBS="-lcur_colr $LIBS"
13150 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
13151 ac_cv_func_initscr=yes
13155 echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
13156 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
13157 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
13158 echo $ECHO_N "(cached) $ECHO_C" >&6
13160 ac_check_lib_save_LIBS=$LIBS
13161 LIBS="-lHcurses $LIBS"
13162 cat >conftest.$ac_ext <<_ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13169 /* Override any gcc2 internal prototype to avoid an error. */
13173 /* We use char because int might match the return type of a gcc2
13174 builtin and then its argument prototype would still apply. */
13184 rm -f conftest.$ac_objext conftest$ac_exeext
13185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13186 (eval $ac_link) 2>conftest.er1
13188 grep -v '^ *+' conftest.er1 >conftest.err
13190 cat conftest.err >&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } &&
13193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13195 (eval $ac_try) 2>&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); }; } &&
13199 { ac_try='test -s conftest$ac_exeext'
13200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201 (eval $ac_try) 2>&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; }; then
13205 ac_cv_lib_Hcurses_initscr=yes
13207 echo "$as_me: failed program was:" >&5
13208 sed 's/^/| /' conftest.$ac_ext >&5
13210 ac_cv_lib_Hcurses_initscr=no
13212 rm -f conftest.err conftest.$ac_objext \
13213 conftest$ac_exeext conftest.$ac_ext
13214 LIBS=$ac_check_lib_save_LIBS
13216 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
13217 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
13218 if test $ac_cv_lib_Hcurses_initscr = yes; then
13220 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
13221 LIBS="-lHcurses $LIBS"
13222 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
13223 ac_cv_func_initscr=yes
13230 linux*) # Suse Linux does not follow /usr/lib convention
13231 LIBS="$LIBS -L/lib"
13235 if test ".$With5lib" != ".no" ; then
13236 if test -d /usr/5lib ; then
13238 CPPFLAGS="$CPPFLAGS -I/usr/5include"
13239 LIBS="$LIBS -L/usr/5lib"
13243 if test ".$ac_cv_func_initscr" != .yes ; then
13244 cf_save_LIBS="$LIBS"
13248 # Check for library containing tgoto. Do this before curses library
13249 # because it may be needed to link the test-case for initscr.
13250 echo "$as_me:$LINENO: checking for tgoto" >&5
13251 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
13252 if test "${ac_cv_func_tgoto+set}" = set; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13255 cat >conftest.$ac_ext <<_ACEOF
13258 cat confdefs.h >>conftest.$ac_ext
13259 cat >>conftest.$ac_ext <<_ACEOF
13260 /* end confdefs.h. */
13261 /* Define tgoto to an innocuous variant, in case <limits.h> declares tgoto.
13262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13263 #define tgoto innocuous_tgoto
13265 /* System header to define __stub macros and hopefully few prototypes,
13266 which can conflict with char tgoto (); below.
13267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13268 <limits.h> exists even on freestanding compilers. */
13271 # include <limits.h>
13273 # include <assert.h>
13278 /* Override any gcc2 internal prototype to avoid an error. */
13283 /* We use char because int might match the return type of a gcc2
13284 builtin and then its argument prototype would still apply. */
13286 /* The GNU C library defines this for functions which it implements
13287 to always fail with ENOSYS. Some functions are actually named
13288 something starting with __ and the normal name is an alias. */
13289 #if defined (__stub_tgoto) || defined (__stub___tgoto)
13292 char (*f) () = tgoto;
13306 rm -f conftest.$ac_objext conftest$ac_exeext
13307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13308 (eval $ac_link) 2>conftest.er1
13310 grep -v '^ *+' conftest.er1 >conftest.err
13312 cat conftest.err >&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } &&
13315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317 (eval $ac_try) 2>&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; } &&
13321 { ac_try='test -s conftest$ac_exeext'
13322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323 (eval $ac_try) 2>&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; }; then
13327 ac_cv_func_tgoto=yes
13329 echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13332 ac_cv_func_tgoto=no
13334 rm -f conftest.err conftest.$ac_objext \
13335 conftest$ac_exeext conftest.$ac_ext
13337 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
13338 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
13339 if test $ac_cv_func_tgoto = yes; then
13340 cf_term_lib=predefined
13343 for cf_term_lib in termcap termlib unknown
13345 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
13346 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
13347 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
13348 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13351 ac_check_lib_save_LIBS=$LIBS
13352 LIBS="-l$cf_term_lib $LIBS"
13353 cat >conftest.$ac_ext <<_ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h. */
13360 /* Override any gcc2 internal prototype to avoid an error. */
13364 /* We use char because int might match the return type of a gcc2
13365 builtin and then its argument prototype would still apply. */
13375 rm -f conftest.$ac_objext conftest$ac_exeext
13376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13377 (eval $ac_link) 2>conftest.er1
13379 grep -v '^ *+' conftest.er1 >conftest.err
13381 cat conftest.err >&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } &&
13384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; } &&
13390 { ac_try='test -s conftest$ac_exeext'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; }; then
13396 eval "$as_ac_Lib=yes"
13398 echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13401 eval "$as_ac_Lib=no"
13403 rm -f conftest.err conftest.$ac_objext \
13404 conftest$ac_exeext conftest.$ac_ext
13405 LIBS=$ac_check_lib_save_LIBS
13407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13408 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13409 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13418 # Check for library containing initscr
13419 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
13420 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
13422 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
13423 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
13424 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
13425 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
13428 ac_check_lib_save_LIBS=$LIBS
13429 LIBS="-l$cf_curs_lib $LIBS"
13430 cat >conftest.$ac_ext <<_ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h. */
13437 /* Override any gcc2 internal prototype to avoid an error. */
13441 /* We use char because int might match the return type of a gcc2
13442 builtin and then its argument prototype would still apply. */
13452 rm -f conftest.$ac_objext conftest$ac_exeext
13453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13454 (eval $ac_link) 2>conftest.er1
13456 grep -v '^ *+' conftest.er1 >conftest.err
13458 cat conftest.err >&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); } &&
13461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463 (eval $ac_try) 2>&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); }; } &&
13467 { ac_try='test -s conftest$ac_exeext'
13468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; }; then
13473 eval "$as_ac_Lib=yes"
13475 echo "$as_me: failed program was:" >&5
13476 sed 's/^/| /' conftest.$ac_ext >&5
13478 eval "$as_ac_Lib=no"
13480 rm -f conftest.err conftest.$ac_objext \
13481 conftest$ac_exeext conftest.$ac_ext
13482 LIBS=$ac_check_lib_save_LIBS
13484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13485 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13486 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13491 test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
13492 echo "$as_me: error: no curses library found" >&2;}
13493 { (exit 1); exit 1; }; }
13495 LIBS="-l$cf_curs_lib $cf_save_LIBS"
13496 if test "$cf_term_lib" = unknown ; then
13497 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
13498 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
13499 cat >conftest.$ac_ext <<_ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13505 #include <${cf_cv_ncurses_header-curses.h}>
13514 rm -f conftest.$ac_objext conftest$ac_exeext
13515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13516 (eval $ac_link) 2>conftest.er1
13518 grep -v '^ *+' conftest.er1 >conftest.err
13520 cat conftest.err >&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } &&
13523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; } &&
13529 { ac_try='test -s conftest$ac_exeext'
13530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531 (eval $ac_try) 2>&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); }; }; then
13537 echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13542 rm -f conftest.err conftest.$ac_objext \
13543 conftest$ac_exeext conftest.$ac_ext
13544 echo "$as_me:$LINENO: result: $cf_result" >&5
13545 echo "${ECHO_T}$cf_result" >&6
13546 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
13547 echo "$as_me: error: Cannot link curses library" >&2;}
13548 { (exit 1); exit 1; }; }
13549 elif test "$cf_term_lib" != predefined ; then
13550 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
13551 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
13552 cat >conftest.$ac_ext <<_ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558 #include <${cf_cv_ncurses_header-curses.h}>
13562 initscr(); tgoto((char *)0, 0, 0);
13567 rm -f conftest.$ac_objext conftest$ac_exeext
13568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13569 (eval $ac_link) 2>conftest.er1
13571 grep -v '^ *+' conftest.er1 >conftest.err
13573 cat conftest.err >&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } &&
13576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; } &&
13582 { ac_try='test -s conftest$ac_exeext'
13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 (eval $ac_try) 2>&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; }; then
13590 echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13594 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
13595 cat >conftest.$ac_ext <<_ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h. */
13601 #include <${cf_cv_ncurses_header-curses.h}>
13610 rm -f conftest.$ac_objext conftest$ac_exeext
13611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13612 (eval $ac_link) 2>conftest.er1
13614 grep -v '^ *+' conftest.er1 >conftest.err
13616 cat conftest.err >&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } &&
13619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; } &&
13625 { ac_try='test -s conftest$ac_exeext'
13626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13627 (eval $ac_try) 2>&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; }; then
13633 echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13638 rm -f conftest.err conftest.$ac_objext \
13639 conftest$ac_exeext conftest.$ac_ext
13642 rm -f conftest.err conftest.$ac_objext \
13643 conftest$ac_exeext conftest.$ac_ext
13644 echo "$as_me:$LINENO: result: $cf_result" >&5
13645 echo "${ECHO_T}$cf_result" >&6
13660 abook_cv_readline=/usr
13662 # Check whether --with-readline or --without-readline was given.
13663 if test "${with_readline+set}" = set; then
13664 withval="$with_readline"
13665 if test $withval != yes; then
13666 abook_cv_readline=$withval
13668 if test x$abook_cv_readline != x/usr; then
13669 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
13670 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
13675 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
13676 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
13677 if test "${ac_cv_lib_readline+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13682 for readline_lib in readline edit editline; do
13683 for termcap_lib in "" termcap curses ncurses; do
13684 if test -z "$termcap_lib"; then
13685 TRY_LIB="-l$readline_lib"
13687 TRY_LIB="-l$readline_lib -l$termcap_lib"
13689 LIBS="$ORIG_LIBS $TRY_LIB"
13690 cat >conftest.$ac_ext <<_ACEOF
13693 cat confdefs.h >>conftest.$ac_ext
13694 cat >>conftest.$ac_ext <<_ACEOF
13695 /* end confdefs.h. */
13697 /* Override any gcc2 internal prototype to avoid an error. */
13701 /* We use char because int might match the return type of a gcc2
13702 builtin and then its argument prototype would still apply. */
13712 rm -f conftest.$ac_objext conftest$ac_exeext
13713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13714 (eval $ac_link) 2>conftest.er1
13716 grep -v '^ *+' conftest.er1 >conftest.err
13718 cat conftest.err >&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } &&
13721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; } &&
13727 { ac_try='test -s conftest$ac_exeext'
13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; }; then
13733 ac_cv_lib_readline="$TRY_LIB"
13735 echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13739 rm -f conftest.err conftest.$ac_objext \
13740 conftest$ac_exeext conftest.$ac_ext
13741 if test -n "$ac_cv_lib_readline"; then
13745 if test -n "$ac_cv_lib_readline"; then
13749 if test -z "$ac_cv_lib_readline"; then
13750 ac_cv_lib_readline="no"
13755 echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
13756 echo "${ECHO_T}$ac_cv_lib_readline" >&6
13758 if test "$ac_cv_lib_readline" != "no"; then
13759 LIBS="$LIBS $ac_cv_lib_readline"
13761 cat >>confdefs.h <<\_ACEOF
13762 #define HAVE_LIBREADLINE 1
13767 for ac_header in readline.h readline/readline.h
13769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13771 echo "$as_me:$LINENO: checking for $ac_header" >&5
13772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13779 # Is the header compilable?
13780 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13782 cat >conftest.$ac_ext <<_ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h. */
13788 $ac_includes_default
13789 #include <$ac_header>
13791 rm -f conftest.$ac_objext
13792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13793 (eval $ac_compile) 2>conftest.er1
13795 grep -v '^ *+' conftest.er1 >conftest.err
13797 cat conftest.err >&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); } &&
13800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13802 (eval $ac_try) 2>&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); }; } &&
13806 { ac_try='test -s conftest.$ac_objext'
13807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808 (eval $ac_try) 2>&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); }; }; then
13812 ac_header_compiler=yes
13814 echo "$as_me: failed program was:" >&5
13815 sed 's/^/| /' conftest.$ac_ext >&5
13817 ac_header_compiler=no
13819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13820 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13821 echo "${ECHO_T}$ac_header_compiler" >&6
13823 # Is the header present?
13824 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13825 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13826 cat >conftest.$ac_ext <<_ACEOF
13829 cat confdefs.h >>conftest.$ac_ext
13830 cat >>conftest.$ac_ext <<_ACEOF
13831 /* end confdefs.h. */
13832 #include <$ac_header>
13834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13837 grep -v '^ *+' conftest.er1 >conftest.err
13839 cat conftest.err >&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } >/dev/null; then
13842 if test -s conftest.err; then
13843 ac_cpp_err=$ac_c_preproc_warn_flag
13844 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13851 if test -z "$ac_cpp_err"; then
13852 ac_header_preproc=yes
13854 echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13857 ac_header_preproc=no
13859 rm -f conftest.err conftest.$ac_ext
13860 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13861 echo "${ECHO_T}$ac_header_preproc" >&6
13863 # So? What about this header?
13864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13866 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13867 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13870 ac_header_preproc=yes
13873 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13874 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13875 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13876 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13878 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13880 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13884 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13887 ## ------------------------------------------ ##
13888 ## Report this to the AC_PACKAGE_NAME lists. ##
13889 ## ------------------------------------------ ##
13892 sed "s/^/$as_me: WARNING: /" >&2
13895 echo "$as_me:$LINENO: checking for $ac_header" >&5
13896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13900 eval "$as_ac_Header=\$ac_header_preproc"
13902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13907 cat >>confdefs.h <<_ACEOF
13908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13915 echo "$as_me:$LINENO: checking whether readline supports history" >&5
13916 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
13917 if test "${ac_cv_lib_readline_history+set}" = set; then
13918 echo $ECHO_N "(cached) $ECHO_C" >&6
13921 ac_cv_lib_readline_history="no"
13922 cat >conftest.$ac_ext <<_ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h. */
13929 /* Override any gcc2 internal prototype to avoid an error. */
13933 /* We use char because int might match the return type of a gcc2
13934 builtin and then its argument prototype would still apply. */
13935 char add_history ();
13944 rm -f conftest.$ac_objext conftest$ac_exeext
13945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13946 (eval $ac_link) 2>conftest.er1
13948 grep -v '^ *+' conftest.er1 >conftest.err
13950 cat conftest.err >&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); } &&
13953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; } &&
13959 { ac_try='test -s conftest$ac_exeext'
13960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961 (eval $ac_try) 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; }; then
13965 ac_cv_lib_readline_history="yes"
13967 echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13971 rm -f conftest.err conftest.$ac_objext \
13972 conftest$ac_exeext conftest.$ac_ext
13975 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
13976 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6
13977 if test "$ac_cv_lib_readline_history" = "yes"; then
13979 cat >>confdefs.h <<\_ACEOF
13980 #define HAVE_READLINE_HISTORY 1
13985 for ac_header in history.h readline/history.h
13987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13989 echo "$as_me:$LINENO: checking for $ac_header" >&5
13990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
13994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13997 # Is the header compilable?
13998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14000 cat >conftest.$ac_ext <<_ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h. */
14006 $ac_includes_default
14007 #include <$ac_header>
14009 rm -f conftest.$ac_objext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14011 (eval $ac_compile) 2>conftest.er1
14013 grep -v '^ *+' conftest.er1 >conftest.err
14015 cat conftest.err >&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } &&
14018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020 (eval $ac_try) 2>&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); }; } &&
14024 { ac_try='test -s conftest.$ac_objext'
14025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14026 (eval $ac_try) 2>&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; }; then
14030 ac_header_compiler=yes
14032 echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14035 ac_header_compiler=no
14037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14039 echo "${ECHO_T}$ac_header_compiler" >&6
14041 # Is the header present?
14042 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14044 cat >conftest.$ac_ext <<_ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h. */
14050 #include <$ac_header>
14052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14055 grep -v '^ *+' conftest.er1 >conftest.err
14057 cat conftest.err >&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); } >/dev/null; then
14060 if test -s conftest.err; then
14061 ac_cpp_err=$ac_c_preproc_warn_flag
14062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14069 if test -z "$ac_cpp_err"; then
14070 ac_header_preproc=yes
14072 echo "$as_me: failed program was:" >&5
14073 sed 's/^/| /' conftest.$ac_ext >&5
14075 ac_header_preproc=no
14077 rm -f conftest.err conftest.$ac_ext
14078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14079 echo "${ECHO_T}$ac_header_preproc" >&6
14081 # So? What about this header?
14082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14088 ac_header_preproc=yes
14091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14094 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14098 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14105 ## ------------------------------------------ ##
14106 ## Report this to the AC_PACKAGE_NAME lists. ##
14107 ## ------------------------------------------ ##
14110 sed "s/^/$as_me: WARNING: /" >&2
14113 echo "$as_me:$LINENO: checking for $ac_header" >&5
14114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14118 eval "$as_ac_Header=\$ac_header_preproc"
14120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14125 cat >>confdefs.h <<_ACEOF
14126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14138 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
14139 { { echo "$as_me:$LINENO: error: *** readline library not found or it doesn't support history ***" >&5
14140 echo "$as_me: error: *** readline library not found or it doesn't support history ***" >&2;}
14141 { (exit 1); exit 1; }; }
14145 if test x$ac_widec_possible = xyes; then
14147 cat >>confdefs.h <<\_ACEOF
14148 #define HANDLE_MULTIBYTE 1
14154 for ac_func in resizeterm
14156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14157 echo "$as_me:$LINENO: checking for $ac_func" >&5
14158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14159 if eval "test \"\${$as_ac_var+set}\" = set"; then
14160 echo $ECHO_N "(cached) $ECHO_C" >&6
14162 cat >conftest.$ac_ext <<_ACEOF
14165 cat confdefs.h >>conftest.$ac_ext
14166 cat >>conftest.$ac_ext <<_ACEOF
14167 /* end confdefs.h. */
14168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14170 #define $ac_func innocuous_$ac_func
14172 /* System header to define __stub macros and hopefully few prototypes,
14173 which can conflict with char $ac_func (); below.
14174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14175 <limits.h> exists even on freestanding compilers. */
14178 # include <limits.h>
14180 # include <assert.h>
14185 /* Override any gcc2 internal prototype to avoid an error. */
14190 /* We use char because int might match the return type of a gcc2
14191 builtin and then its argument prototype would still apply. */
14193 /* The GNU C library defines this for functions which it implements
14194 to always fail with ENOSYS. Some functions are actually named
14195 something starting with __ and the normal name is an alias. */
14196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14199 char (*f) () = $ac_func;
14208 return f != $ac_func;
14213 rm -f conftest.$ac_objext conftest$ac_exeext
14214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14215 (eval $ac_link) 2>conftest.er1
14217 grep -v '^ *+' conftest.er1 >conftest.err
14219 cat conftest.err >&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); } &&
14222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; } &&
14228 { ac_try='test -s conftest$ac_exeext'
14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230 (eval $ac_try) 2>&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; }; then
14234 eval "$as_ac_var=yes"
14236 echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14239 eval "$as_ac_var=no"
14241 rm -f conftest.err conftest.$ac_objext \
14242 conftest$ac_exeext conftest.$ac_ext
14244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14246 if test `eval echo '${'$as_ac_var'}'` = yes; then
14247 cat >>confdefs.h <<_ACEOF
14248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14257 for ac_func in snprintf vsnprintf
14259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14260 echo "$as_me:$LINENO: checking for $ac_func" >&5
14261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14262 if eval "test \"\${$as_ac_var+set}\" = set"; then
14263 echo $ECHO_N "(cached) $ECHO_C" >&6
14265 cat >conftest.$ac_ext <<_ACEOF
14268 cat confdefs.h >>conftest.$ac_ext
14269 cat >>conftest.$ac_ext <<_ACEOF
14270 /* end confdefs.h. */
14271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14273 #define $ac_func innocuous_$ac_func
14275 /* System header to define __stub macros and hopefully few prototypes,
14276 which can conflict with char $ac_func (); below.
14277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14278 <limits.h> exists even on freestanding compilers. */
14281 # include <limits.h>
14283 # include <assert.h>
14288 /* Override any gcc2 internal prototype to avoid an error. */
14293 /* We use char because int might match the return type of a gcc2
14294 builtin and then its argument prototype would still apply. */
14296 /* The GNU C library defines this for functions which it implements
14297 to always fail with ENOSYS. Some functions are actually named
14298 something starting with __ and the normal name is an alias. */
14299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14302 char (*f) () = $ac_func;
14311 return f != $ac_func;
14316 rm -f conftest.$ac_objext conftest$ac_exeext
14317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14318 (eval $ac_link) 2>conftest.er1
14320 grep -v '^ *+' conftest.er1 >conftest.err
14322 cat conftest.err >&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); } &&
14325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; } &&
14331 { ac_try='test -s conftest$ac_exeext'
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; }; then
14337 eval "$as_ac_var=yes"
14339 echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14342 eval "$as_ac_var=no"
14344 rm -f conftest.err conftest.$ac_objext \
14345 conftest$ac_exeext conftest.$ac_ext
14347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14348 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14349 if test `eval echo '${'$as_ac_var'}'` = yes; then
14350 cat >>confdefs.h <<_ACEOF
14351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14358 # Check whether --enable-debug or --disable-debug was given.
14359 if test "${enable_debug+set}" = set; then
14360 enableval="$enable_debug"
14361 case "${enableval}" in
14364 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
14365 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
14366 { (exit 1); exit 1; }; } ;;
14372 if test x$debug = xtrue; then
14373 CPPFLAGS="-DDEBUG=1 $CPPFLAGS"
14374 CFLAGS="-g $CFLAGS"
14377 if test x$GCC = xyes; then
14378 CFLAGS="-Wall $CFLAGS"
14381 ac_config_files="$ac_config_files Makefile abook.spec intl/Makefile po/Makefile.in"
14382 cat >confcache <<\_ACEOF
14383 # This file is a shell script that caches the results of configure
14384 # tests run on this system so they can be shared between configure
14385 # scripts and configure runs, see configure's option --config-cache.
14386 # It is not useful on other systems. If it contains results you don't
14387 # want to keep, you may remove or edit it.
14389 # config.status only pays attention to the cache file if you give it
14390 # the --recheck option to rerun configure.
14392 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14393 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14394 # following values.
14398 # The following way of writing the cache mishandles newlines in values,
14399 # but we know of no workaround that is simple, portable, and efficient.
14400 # So, don't put newlines in cache variables' values.
14401 # Ultrix sh set writes to stderr and can't be redirected directly,
14402 # and sets the high bit in the cache file unless we assign to the vars.
14405 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14407 # `set' does not quote correctly, so add quotes (double-quote
14408 # substitution turns \\\\ into \\, and sed turns \\ into \).
14411 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14414 # `set' quotes correctly as required by POSIX, so do not add quotes.
14416 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14423 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14425 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14427 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14428 if test -w $cache_file; then
14429 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14430 cat confcache >$cache_file
14432 echo "not updating unwritable cache $cache_file"
14437 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14438 # Let make expand exec_prefix.
14439 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14441 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14442 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14443 # trailing colons and then remove the whole line if VPATH becomes empty
14444 # (actually we leave an empty line to preserve line numbers).
14445 if test "x$srcdir" = x.; then
14446 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14447 s/:*\$(srcdir):*/:/;
14448 s/:*\${srcdir}:*/:/;
14450 s/^\([^=]*=[ ]*\):*/\1/;
14456 DEFS=-DHAVE_CONFIG_H
14460 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14461 # 1. Remove the extension, and $U if already installed.
14462 ac_i=`echo "$ac_i" |
14463 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14465 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14466 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14468 LIBOBJS=$ac_libobjs
14470 LTLIBOBJS=$ac_ltlibobjs
14473 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14474 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14475 Usually this means the macro was only invoked conditionally." >&5
14476 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14477 Usually this means the macro was only invoked conditionally." >&2;}
14478 { (exit 1); exit 1; }; }
14480 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14481 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14482 Usually this means the macro was only invoked conditionally." >&5
14483 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14484 Usually this means the macro was only invoked conditionally." >&2;}
14485 { (exit 1); exit 1; }; }
14487 if test -z "${USE_INCLUDED_INTL_H_TRUE}" && test -z "${USE_INCLUDED_INTL_H_FALSE}"; then
14488 { { echo "$as_me:$LINENO: error: conditional \"USE_INCLUDED_INTL_H\" was never defined.
14489 Usually this means the macro was only invoked conditionally." >&5
14490 echo "$as_me: error: conditional \"USE_INCLUDED_INTL_H\" was never defined.
14491 Usually this means the macro was only invoked conditionally." >&2;}
14492 { (exit 1); exit 1; }; }
14494 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14495 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14496 Usually this means the macro was only invoked conditionally." >&5
14497 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14498 Usually this means the macro was only invoked conditionally." >&2;}
14499 { (exit 1); exit 1; }; }
14502 : ${CONFIG_STATUS=./config.status}
14503 ac_clean_files_save=$ac_clean_files
14504 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14505 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14506 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14507 cat >$CONFIG_STATUS <<_ACEOF
14509 # Generated by $as_me.
14510 # Run this file to recreate the current configuration.
14511 # Compiler output produced by configure, useful for debugging
14512 # configure, is in config.log if it exists.
14515 ac_cs_recheck=false
14517 SHELL=\${CONFIG_SHELL-$SHELL}
14520 cat >>$CONFIG_STATUS <<\_ACEOF
14521 ## --------------------- ##
14522 ## M4sh Initialization. ##
14523 ## --------------------- ##
14525 # Be Bourne compatible
14526 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14529 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14530 # is contrary to our usage. Disable this feature.
14531 alias -g '${1+"$@"}'='"$@"'
14532 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14535 DUALCASE=1; export DUALCASE # for MKS sh
14537 # Support unset when possible.
14538 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14545 # Work around bugs in pre-3.0 UWIN ksh.
14546 $as_unset ENV MAIL MAILPATH
14553 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14554 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14555 LC_TELEPHONE LC_TIME
14557 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14558 eval $as_var=C; export $as_var
14564 # Required to use basename.
14565 if expr a : '\(a\)' >/dev/null 2>&1; then
14571 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14572 as_basename=basename
14578 # Name of the executable.
14579 as_me=`$as_basename "$0" ||
14580 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14581 X"$0" : 'X\(//\)$' \| \
14582 X"$0" : 'X\(/\)$' \| \
14583 . : '\(.\)' 2>/dev/null ||
14585 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14586 /^X\/\(\/\/\)$/{ s//\1/; q; }
14587 /^X\/\(\/\).*/{ s//\1/; q; }
14591 # PATH needs CR, and LINENO needs CR and PATH.
14592 # Avoid depending upon Character Ranges.
14593 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14594 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14595 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14596 as_cr_digits='0123456789'
14597 as_cr_alnum=$as_cr_Letters$as_cr_digits
14599 # The user is always right.
14600 if test "${PATH_SEPARATOR+set}" != set; then
14601 echo "#! /bin/sh" >conf$$.sh
14602 echo "exit 0" >>conf$$.sh
14604 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14613 as_lineno_1=$LINENO
14614 as_lineno_2=$LINENO
14615 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14616 test "x$as_lineno_1" != "x$as_lineno_2" &&
14617 test "x$as_lineno_3" = "x$as_lineno_2" || {
14618 # Find who we are. Look in the path if we contain no path at all
14621 *[\\/]* ) as_myself=$0 ;;
14622 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14623 for as_dir in $PATH
14626 test -z "$as_dir" && as_dir=.
14627 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14632 # We did not find ourselves, most probably we were run as `sh COMMAND'
14633 # in which case we are not to be found in the path.
14634 if test "x$as_myself" = x; then
14637 if test ! -f "$as_myself"; then
14638 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14639 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14640 { (exit 1); exit 1; }; }
14642 case $CONFIG_SHELL in
14644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14645 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14648 test -z "$as_dir" && as_dir=.
14649 for as_base in sh bash ksh sh5; do
14652 if ("$as_dir/$as_base" -c '
14653 as_lineno_1=$LINENO
14654 as_lineno_2=$LINENO
14655 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14656 test "x$as_lineno_1" != "x$as_lineno_2" &&
14657 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14658 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14659 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14660 CONFIG_SHELL=$as_dir/$as_base
14661 export CONFIG_SHELL
14662 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14670 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14671 # uniformly replaced by the line number. The first 'sed' inserts a
14672 # line-number line before each line; the second 'sed' does the real
14673 # work. The second script uses 'N' to pair each line-number line
14674 # with the numbered line, and appends trailing '-' during
14675 # substitution so that $LINENO is not a special case at line end.
14676 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14677 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14678 sed '=' <$as_myself |
14683 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14686 s,^['$as_cr_digits']*\n,,
14687 ' >$as_me.lineno &&
14688 chmod +x $as_me.lineno ||
14689 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14690 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14691 { (exit 1); exit 1; }; }
14693 # Don't try to exec as it changes $[0], causing all sort of problems
14694 # (the dirname of $[0] is not the place where we might find the
14695 # original and so on. Autoconf is especially sensible to this).
14697 # Exit status is that of the last command.
14702 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14703 *c*,-n*) ECHO_N= ECHO_C='
14705 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14706 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14709 if expr a : '\(a\)' >/dev/null 2>&1; then
14715 rm -f conf$$ conf$$.exe conf$$.file
14717 if ln -s conf$$.file conf$$ 2>/dev/null; then
14718 # We could just check for DJGPP; but this test a) works b) is more generic
14719 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14720 if test -f conf$$.exe; then
14721 # Don't use ln at all; we don't have any links
14726 elif ln conf$$.file conf$$ 2>/dev/null; then
14731 rm -f conf$$ conf$$.exe conf$$.file
14733 if mkdir -p . 2>/dev/null; then
14736 test -d ./-p && rmdir ./-p
14740 as_executable_p="test -f"
14742 # Sed expression to map a string onto a valid CPP name.
14743 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14745 # Sed expression to map a string onto a valid variable name.
14746 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14750 # We need space, tab and new line, in precisely that order.
14760 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14761 # report actual input values of CONFIG_FILES etc. instead of their
14762 # values after options handling. Logging --version etc. is OK.
14766 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14767 ## Running $as_me. ##
14772 This file was extended by $as_me, which was
14773 generated by GNU Autoconf 2.59. Invocation command line was
14775 CONFIG_FILES = $CONFIG_FILES
14776 CONFIG_HEADERS = $CONFIG_HEADERS
14777 CONFIG_LINKS = $CONFIG_LINKS
14778 CONFIG_COMMANDS = $CONFIG_COMMANDS
14782 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14786 # Files that config.status was made for.
14787 if test -n "$ac_config_files"; then
14788 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14791 if test -n "$ac_config_headers"; then
14792 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14795 if test -n "$ac_config_links"; then
14796 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14799 if test -n "$ac_config_commands"; then
14800 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14803 cat >>$CONFIG_STATUS <<\_ACEOF
14806 \`$as_me' instantiates files from templates according to the
14807 current configuration.
14809 Usage: $0 [OPTIONS] [FILE]...
14811 -h, --help print this help, then exit
14812 -V, --version print version number, then exit
14813 -q, --quiet do not print progress messages
14814 -d, --debug don't remove temporary files
14815 --recheck update $as_me by reconfiguring in the same conditions
14816 --file=FILE[:TEMPLATE]
14817 instantiate the configuration file FILE
14818 --header=FILE[:TEMPLATE]
14819 instantiate the configuration header FILE
14821 Configuration files:
14824 Configuration headers:
14827 Configuration commands:
14830 Report bugs to <bug-autoconf@gnu.org>."
14833 cat >>$CONFIG_STATUS <<_ACEOF
14836 configured by $0, generated by GNU Autoconf 2.59,
14837 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14839 Copyright (C) 2003 Free Software Foundation, Inc.
14840 This config.status script is free software; the Free Software Foundation
14841 gives unlimited permission to copy, distribute and modify it."
14846 cat >>$CONFIG_STATUS <<\_ACEOF
14847 # If no file are specified by the user, then we need to provide default
14848 # value. By we need to know if files were specified by the user.
14854 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14855 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14863 *) # This is not an option, so the user has probably given explicit
14866 ac_need_defaults=false;;
14870 # Handling of the options.
14872 cat >>$CONFIG_STATUS <<\_ACEOF
14873 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14875 --version | --vers* | -V )
14876 echo "$ac_cs_version"; exit 0 ;;
14878 # Conflict between --help and --header
14879 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14880 Try \`$0 --help' for more information." >&5
14881 echo "$as_me: error: ambiguous option: $1
14882 Try \`$0 --help' for more information." >&2;}
14883 { (exit 1); exit 1; }; };;
14884 --help | --hel | -h )
14885 echo "$ac_cs_usage"; exit 0 ;;
14886 --debug | --d* | -d )
14888 --file | --fil | --fi | --f )
14890 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14891 ac_need_defaults=false;;
14892 --header | --heade | --head | --hea )
14894 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14895 ac_need_defaults=false;;
14896 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14897 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14900 # This is an error.
14901 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14902 Try \`$0 --help' for more information." >&5
14903 echo "$as_me: error: unrecognized option: $1
14904 Try \`$0 --help' for more information." >&2;}
14905 { (exit 1); exit 1; }; } ;;
14907 *) ac_config_targets="$ac_config_targets $1" ;;
14913 ac_configure_extra_args=
14915 if $ac_cs_silent; then
14917 ac_configure_extra_args="$ac_configure_extra_args --silent"
14921 cat >>$CONFIG_STATUS <<_ACEOF
14922 if \$ac_cs_recheck; then
14923 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14924 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14929 cat >>$CONFIG_STATUS <<_ACEOF
14931 # INIT-COMMANDS section.
14934 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14935 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14937 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14938 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14939 LINGUAS="${LINGUAS-%UNSET%}"
14941 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14947 cat >>$CONFIG_STATUS <<\_ACEOF
14948 for ac_config_target in $ac_config_targets
14950 case "$ac_config_target" in
14951 # Handling of arguments.
14952 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14953 "abook.spec" ) CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
14954 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
14955 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14956 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14957 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14958 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14959 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14960 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14961 { (exit 1); exit 1; }; };;
14965 # If the user did not use the arguments to specify the items to instantiate,
14966 # then the envvar interface is used. Set only those that are not.
14967 # We use the long form for the default assignment because of an extremely
14968 # bizarre bug on SunOS 4.1.3.
14969 if $ac_need_defaults; then
14970 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14971 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14972 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14975 # Have a temporary directory for convenience. Make it in the build tree
14976 # simply because there is no reason to put it here, and in addition,
14977 # creating and moving files from /tmp can sometimes cause problems.
14978 # Create a temporary directory, and hook for its removal unless debugging.
14981 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14982 trap '{ (exit 1); exit 1; }' 1 2 13 15
14985 # Create a (secure) tmp directory for tmp files.
14988 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14989 test -n "$tmp" && test -d "$tmp"
14992 tmp=./confstat$$-$RANDOM
14993 (umask 077 && mkdir $tmp)
14996 echo "$me: cannot create a temporary directory in ." >&2
14997 { (exit 1); exit 1; }
15002 cat >>$CONFIG_STATUS <<_ACEOF
15005 # CONFIG_FILES section.
15008 # No need to generate the scripts if there are no CONFIG_FILES.
15009 # This happens for instance when ./config.status config.h
15010 if test -n "\$CONFIG_FILES"; then
15011 # Protect against being on the right side of a sed subst in config.status.
15012 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15013 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15014 s,@SHELL@,$SHELL,;t t
15015 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15016 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15017 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15018 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15019 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15020 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15021 s,@exec_prefix@,$exec_prefix,;t t
15022 s,@prefix@,$prefix,;t t
15023 s,@program_transform_name@,$program_transform_name,;t t
15024 s,@bindir@,$bindir,;t t
15025 s,@sbindir@,$sbindir,;t t
15026 s,@libexecdir@,$libexecdir,;t t
15027 s,@datadir@,$datadir,;t t
15028 s,@sysconfdir@,$sysconfdir,;t t
15029 s,@sharedstatedir@,$sharedstatedir,;t t
15030 s,@localstatedir@,$localstatedir,;t t
15031 s,@libdir@,$libdir,;t t
15032 s,@includedir@,$includedir,;t t
15033 s,@oldincludedir@,$oldincludedir,;t t
15034 s,@infodir@,$infodir,;t t
15035 s,@mandir@,$mandir,;t t
15036 s,@build_alias@,$build_alias,;t t
15037 s,@host_alias@,$host_alias,;t t
15038 s,@target_alias@,$target_alias,;t t
15039 s,@DEFS@,$DEFS,;t t
15040 s,@ECHO_C@,$ECHO_C,;t t
15041 s,@ECHO_N@,$ECHO_N,;t t
15042 s,@ECHO_T@,$ECHO_T,;t t
15043 s,@LIBS@,$LIBS,;t t
15044 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15045 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15046 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15047 s,@CYGPATH_W@,$CYGPATH_W,;t t
15048 s,@PACKAGE@,$PACKAGE,;t t
15049 s,@VERSION@,$VERSION,;t t
15050 s,@ACLOCAL@,$ACLOCAL,;t t
15051 s,@AUTOCONF@,$AUTOCONF,;t t
15052 s,@AUTOMAKE@,$AUTOMAKE,;t t
15053 s,@AUTOHEADER@,$AUTOHEADER,;t t
15054 s,@MAKEINFO@,$MAKEINFO,;t t
15055 s,@install_sh@,$install_sh,;t t
15056 s,@STRIP@,$STRIP,;t t
15057 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15058 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15059 s,@mkdir_p@,$mkdir_p,;t t
15061 s,@SET_MAKE@,$SET_MAKE,;t t
15062 s,@am__leading_dot@,$am__leading_dot,;t t
15063 s,@AMTAR@,$AMTAR,;t t
15064 s,@am__tar@,$am__tar,;t t
15065 s,@am__untar@,$am__untar,;t t
15066 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15067 s,@USE_NLS@,$USE_NLS,;t t
15068 s,@MSGFMT@,$MSGFMT,;t t
15069 s,@GMSGFMT@,$GMSGFMT,;t t
15070 s,@XGETTEXT@,$XGETTEXT,;t t
15071 s,@MSGMERGE@,$MSGMERGE,;t t
15073 s,@CFLAGS@,$CFLAGS,;t t
15074 s,@LDFLAGS@,$LDFLAGS,;t t
15075 s,@CPPFLAGS@,$CPPFLAGS,;t t
15076 s,@ac_ct_CC@,$ac_ct_CC,;t t
15077 s,@EXEEXT@,$EXEEXT,;t t
15078 s,@OBJEXT@,$OBJEXT,;t t
15079 s,@DEPDIR@,$DEPDIR,;t t
15080 s,@am__include@,$am__include,;t t
15081 s,@am__quote@,$am__quote,;t t
15082 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15083 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15084 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15085 s,@CCDEPMODE@,$CCDEPMODE,;t t
15086 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15087 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15088 s,@build@,$build,;t t
15089 s,@build_cpu@,$build_cpu,;t t
15090 s,@build_vendor@,$build_vendor,;t t
15091 s,@build_os@,$build_os,;t t
15092 s,@host@,$host,;t t
15093 s,@host_cpu@,$host_cpu,;t t
15094 s,@host_vendor@,$host_vendor,;t t
15095 s,@host_os@,$host_os,;t t
15097 s,@EGREP@,$EGREP,;t t
15098 s,@GLIBC2@,$GLIBC2,;t t
15099 s,@RANLIB@,$RANLIB,;t t
15100 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15101 s,@ALLOCA@,$ALLOCA,;t t
15102 s,@GLIBC21@,$GLIBC21,;t t
15103 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
15104 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
15105 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
15106 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
15107 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
15108 s,@LIBICONV@,$LIBICONV,;t t
15109 s,@LTLIBICONV@,$LTLIBICONV,;t t
15110 s,@INTLBISON@,$INTLBISON,;t t
15111 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
15112 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15113 s,@CATOBJEXT@,$CATOBJEXT,;t t
15114 s,@DATADIRNAME@,$DATADIRNAME,;t t
15115 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15116 s,@GENCAT@,$GENCAT,;t t
15117 s,@INTLOBJS@,$INTLOBJS,;t t
15118 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
15119 s,@INTLLIBS@,$INTLLIBS,;t t
15120 s,@LIBINTL@,$LIBINTL,;t t
15121 s,@LTLIBINTL@,$LTLIBINTL,;t t
15122 s,@POSUB@,$POSUB,;t t
15123 s,@localedir@,$localedir,;t t
15124 s,@USE_INCLUDED_INTL_H_TRUE@,$USE_INCLUDED_INTL_H_TRUE,;t t
15125 s,@USE_INCLUDED_INTL_H_FALSE@,$USE_INCLUDED_INTL_H_FALSE,;t t
15127 s,@ANSI2KNR@,$ANSI2KNR,;t t
15128 s,@LIBOBJS@,$LIBOBJS,;t t
15129 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15134 cat >>$CONFIG_STATUS <<\_ACEOF
15135 # Split the substitutions into bite-sized pieces for seds with
15136 # small command number limits, like on Digital OSF/1 and HP-UX.
15137 ac_max_sed_lines=48
15138 ac_sed_frag=1 # Number of current file.
15139 ac_beg=1 # First line for current file.
15140 ac_end=$ac_max_sed_lines # Line after last line for current file.
15143 while $ac_more_lines; do
15144 if test $ac_beg -gt 1; then
15145 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15147 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15149 if test ! -s $tmp/subs.frag; then
15150 ac_more_lines=false
15152 # The purpose of the label and of the branching condition is to
15153 # speed up the sed processing (if there are no `@' at all, there
15154 # is no need to browse any of the substitutions).
15155 # These are the two extra sed commands mentioned above.
15157 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15158 if test -z "$ac_sed_cmds"; then
15159 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15161 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15163 ac_sed_frag=`expr $ac_sed_frag + 1`
15165 ac_end=`expr $ac_end + $ac_max_sed_lines`
15168 if test -z "$ac_sed_cmds"; then
15171 fi # test -n "$CONFIG_FILES"
15174 cat >>$CONFIG_STATUS <<\_ACEOF
15175 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15176 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15178 - | *:- | *:-:* ) # input from stdin
15180 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15181 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15182 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15183 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15184 * ) ac_file_in=$ac_file.in ;;
15187 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15188 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15189 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15190 X"$ac_file" : 'X\(//\)[^/]' \| \
15191 X"$ac_file" : 'X\(//\)$' \| \
15192 X"$ac_file" : 'X\(/\)' \| \
15193 . : '\(.\)' 2>/dev/null ||
15195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15197 /^X\(\/\/\)$/{ s//\1/; q; }
15198 /^X\(\/\).*/{ s//\1/; q; }
15200 { if $as_mkdir_p; then
15205 while test ! -d "$as_dir"; do
15206 as_dirs="$as_dir $as_dirs"
15207 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15208 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15209 X"$as_dir" : 'X\(//\)[^/]' \| \
15210 X"$as_dir" : 'X\(//\)$' \| \
15211 X"$as_dir" : 'X\(/\)' \| \
15212 . : '\(.\)' 2>/dev/null ||
15214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15215 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15216 /^X\(\/\/\)$/{ s//\1/; q; }
15217 /^X\(\/\).*/{ s//\1/; q; }
15220 test ! -n "$as_dirs" || mkdir $as_dirs
15221 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15222 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15223 { (exit 1); exit 1; }; }; }
15227 if test "$ac_dir" != .; then
15228 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15229 # A "../" for each directory in $ac_dir_suffix.
15230 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15232 ac_dir_suffix= ac_top_builddir=
15236 .) # No --srcdir option. We are building in place.
15238 if test -z "$ac_top_builddir"; then
15241 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15243 [\\/]* | ?:[\\/]* ) # Absolute path.
15244 ac_srcdir=$srcdir$ac_dir_suffix;
15245 ac_top_srcdir=$srcdir ;;
15246 *) # Relative path.
15247 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15248 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15251 # Do not use `cd foo && pwd` to compute absolute paths, because
15252 # the directories may not exist.
15254 .) ac_abs_builddir="$ac_dir";;
15257 .) ac_abs_builddir=`pwd`;;
15258 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15259 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15262 case $ac_abs_builddir in
15263 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15265 case ${ac_top_builddir}. in
15266 .) ac_abs_top_builddir=$ac_abs_builddir;;
15267 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15268 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15271 case $ac_abs_builddir in
15272 .) ac_abs_srcdir=$ac_srcdir;;
15275 .) ac_abs_srcdir=$ac_abs_builddir;;
15276 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15277 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15280 case $ac_abs_builddir in
15281 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15283 case $ac_top_srcdir in
15284 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15285 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15286 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15292 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15293 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15296 # Let's still pretend it is `configure' which instantiates (i.e., don't
15297 # use $as_me), people would be surprised to read:
15298 # /* config.h. Generated by config.status. */
15299 if test x"$ac_file" = x-; then
15302 configure_input="$ac_file. "
15304 configure_input=$configure_input"Generated from `echo $ac_file_in |
15305 sed 's,.*/,,'` by configure."
15307 # First look for the input files in the build tree, otherwise in the
15309 ac_file_inputs=`IFS=:
15310 for f in $ac_file_in; do
15312 -) echo $tmp/stdin ;;
15314 # Absolute (can't be DOS-style, as IFS=:)
15315 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15316 echo "$as_me: error: cannot find input file: $f" >&2;}
15317 { (exit 1); exit 1; }; }
15320 if test -f "$f"; then
15323 elif test -f "$srcdir/$f"; then
15328 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15329 echo "$as_me: error: cannot find input file: $f" >&2;}
15330 { (exit 1); exit 1; }; }
15333 done` || { (exit 1); exit 1; }
15335 if test x"$ac_file" != x-; then
15336 { echo "$as_me:$LINENO: creating $ac_file" >&5
15337 echo "$as_me: creating $ac_file" >&6;}
15341 cat >>$CONFIG_STATUS <<_ACEOF
15345 cat >>$CONFIG_STATUS <<\_ACEOF
15347 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15348 s,@configure_input@,$configure_input,;t t
15349 s,@srcdir@,$ac_srcdir,;t t
15350 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15351 s,@top_srcdir@,$ac_top_srcdir,;t t
15352 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15353 s,@builddir@,$ac_builddir,;t t
15354 s,@abs_builddir@,$ac_abs_builddir,;t t
15355 s,@top_builddir@,$ac_top_builddir,;t t
15356 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15357 s,@INSTALL@,$ac_INSTALL,;t t
15358 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15360 if test x"$ac_file" != x-; then
15361 mv $tmp/out $ac_file
15369 cat >>$CONFIG_STATUS <<\_ACEOF
15372 # CONFIG_HEADER section.
15375 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15376 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15378 # ac_d sets the value in "#define NAME VALUE" lines.
15379 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15380 ac_dB='[ ].*$,\1#\2'
15383 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15384 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15385 ac_uB='$,\1#\2define\3'
15389 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15390 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15392 - | *:- | *:-:* ) # input from stdin
15394 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15395 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15396 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15397 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15398 * ) ac_file_in=$ac_file.in ;;
15401 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15402 echo "$as_me: creating $ac_file" >&6;}
15404 # First look for the input files in the build tree, otherwise in the
15406 ac_file_inputs=`IFS=:
15407 for f in $ac_file_in; do
15409 -) echo $tmp/stdin ;;
15411 # Absolute (can't be DOS-style, as IFS=:)
15412 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15413 echo "$as_me: error: cannot find input file: $f" >&2;}
15414 { (exit 1); exit 1; }; }
15415 # Do quote $f, to prevent DOS paths from being IFS'd.
15418 if test -f "$f"; then
15421 elif test -f "$srcdir/$f"; then
15426 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15427 echo "$as_me: error: cannot find input file: $f" >&2;}
15428 { (exit 1); exit 1; }; }
15431 done` || { (exit 1); exit 1; }
15432 # Remove the trailing spaces.
15433 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15437 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15438 # `conftest.undefs', that substitutes the proper values into
15439 # config.h.in to produce config.h. The first handles `#define'
15440 # templates, and the second `#undef' templates.
15441 # And first: Protect against being on the right side of a sed subst in
15442 # config.status. Protect against being in an unquoted here document
15443 # in config.status.
15444 rm -f conftest.defines conftest.undefs
15445 # Using a here document instead of a string reduces the quoting nightmare.
15446 # Putting comments in sed scripts is not portable.
15448 # `end' is used to avoid that the second main sed command (meant for
15449 # 0-ary CPP macros) applies to n-ary macro definitions.
15450 # See the Autoconf documentation for `clear'.
15451 cat >confdef2sed.sed <<\_ACEOF
15456 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15458 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15461 # If some macros were called several times there might be several times
15462 # the same #defines, which is useless. Nevertheless, we may not want to
15463 # sort them, since we want the *last* AC-DEFINE to be honored.
15464 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15465 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15466 rm -f confdef2sed.sed
15468 # This sed command replaces #undef with comments. This is necessary, for
15469 # example, in the case of _POSIX_SOURCE, which is predefined and required
15470 # on some systems where configure will not decide to define it.
15471 cat >>conftest.undefs <<\_ACEOF
15472 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15475 # Break up conftest.defines because some shells have a limit on the size
15476 # of here documents, and old seds have small limits too (100 cmds).
15477 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15478 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15479 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15480 echo ' :' >>$CONFIG_STATUS
15481 rm -f conftest.tail
15482 while grep . conftest.defines >/dev/null
15484 # Write a limited-size here document to $tmp/defines.sed.
15485 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15486 # Speed up: don't consider the non `#define' lines.
15487 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15488 # Work around the forget-to-reset-the-flag bug.
15489 echo 't clr' >>$CONFIG_STATUS
15490 echo ': clr' >>$CONFIG_STATUS
15491 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15493 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15495 mv $tmp/out $tmp/in
15497 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15498 rm -f conftest.defines
15499 mv conftest.tail conftest.defines
15501 rm -f conftest.defines
15502 echo ' fi # grep' >>$CONFIG_STATUS
15503 echo >>$CONFIG_STATUS
15505 # Break up conftest.undefs because some shells have a limit on the size
15506 # of here documents, and old seds have small limits too (100 cmds).
15507 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15508 rm -f conftest.tail
15509 while grep . conftest.undefs >/dev/null
15511 # Write a limited-size here document to $tmp/undefs.sed.
15512 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15513 # Speed up: don't consider the non `#undef'
15514 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15515 # Work around the forget-to-reset-the-flag bug.
15516 echo 't clr' >>$CONFIG_STATUS
15517 echo ': clr' >>$CONFIG_STATUS
15518 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15520 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15522 mv $tmp/out $tmp/in
15524 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15525 rm -f conftest.undefs
15526 mv conftest.tail conftest.undefs
15528 rm -f conftest.undefs
15530 cat >>$CONFIG_STATUS <<\_ACEOF
15531 # Let's still pretend it is `configure' which instantiates (i.e., don't
15532 # use $as_me), people would be surprised to read:
15533 # /* config.h. Generated by config.status. */
15534 if test x"$ac_file" = x-; then
15535 echo "/* Generated by configure. */" >$tmp/config.h
15537 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15539 cat $tmp/in >>$tmp/config.h
15541 if test x"$ac_file" != x-; then
15542 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15543 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15544 echo "$as_me: $ac_file is unchanged" >&6;}
15546 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15547 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15548 X"$ac_file" : 'X\(//\)[^/]' \| \
15549 X"$ac_file" : 'X\(//\)$' \| \
15550 X"$ac_file" : 'X\(/\)' \| \
15551 . : '\(.\)' 2>/dev/null ||
15553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15554 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15555 /^X\(\/\/\)$/{ s//\1/; q; }
15556 /^X\(\/\).*/{ s//\1/; q; }
15558 { if $as_mkdir_p; then
15563 while test ! -d "$as_dir"; do
15564 as_dirs="$as_dir $as_dirs"
15565 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15566 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15567 X"$as_dir" : 'X\(//\)[^/]' \| \
15568 X"$as_dir" : 'X\(//\)$' \| \
15569 X"$as_dir" : 'X\(/\)' \| \
15570 . : '\(.\)' 2>/dev/null ||
15572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15573 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15574 /^X\(\/\/\)$/{ s//\1/; q; }
15575 /^X\(\/\).*/{ s//\1/; q; }
15578 test ! -n "$as_dirs" || mkdir $as_dirs
15579 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15580 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15581 { (exit 1); exit 1; }; }; }
15584 mv $tmp/config.h $ac_file
15588 rm -f $tmp/config.h
15590 # Compute $ac_file's index in $config_headers.
15592 for _am_header in $config_headers :; do
15593 case $_am_header in
15594 $ac_file | $ac_file:* )
15597 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15600 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15601 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15602 X$ac_file : 'X\(//\)[^/]' \| \
15603 X$ac_file : 'X\(//\)$' \| \
15604 X$ac_file : 'X\(/\)' \| \
15605 . : '\(.\)' 2>/dev/null ||
15607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15609 /^X\(\/\/\)$/{ s//\1/; q; }
15610 /^X\(\/\).*/{ s//\1/; q; }
15611 s/.*/./; q'`/stamp-h$_am_stamp_count
15614 cat >>$CONFIG_STATUS <<\_ACEOF
15617 # CONFIG_COMMANDS section.
15619 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15620 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15621 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15622 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15623 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15624 X"$ac_dest" : 'X\(//\)[^/]' \| \
15625 X"$ac_dest" : 'X\(//\)$' \| \
15626 X"$ac_dest" : 'X\(/\)' \| \
15627 . : '\(.\)' 2>/dev/null ||
15629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15630 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15631 /^X\(\/\/\)$/{ s//\1/; q; }
15632 /^X\(\/\).*/{ s//\1/; q; }
15634 { if $as_mkdir_p; then
15639 while test ! -d "$as_dir"; do
15640 as_dirs="$as_dir $as_dirs"
15641 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15643 X"$as_dir" : 'X\(//\)[^/]' \| \
15644 X"$as_dir" : 'X\(//\)$' \| \
15645 X"$as_dir" : 'X\(/\)' \| \
15646 . : '\(.\)' 2>/dev/null ||
15648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15650 /^X\(\/\/\)$/{ s//\1/; q; }
15651 /^X\(\/\).*/{ s//\1/; q; }
15654 test ! -n "$as_dirs" || mkdir $as_dirs
15655 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15656 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15657 { (exit 1); exit 1; }; }; }
15661 if test "$ac_dir" != .; then
15662 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15663 # A "../" for each directory in $ac_dir_suffix.
15664 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15666 ac_dir_suffix= ac_top_builddir=
15670 .) # No --srcdir option. We are building in place.
15672 if test -z "$ac_top_builddir"; then
15675 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15677 [\\/]* | ?:[\\/]* ) # Absolute path.
15678 ac_srcdir=$srcdir$ac_dir_suffix;
15679 ac_top_srcdir=$srcdir ;;
15680 *) # Relative path.
15681 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15682 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15685 # Do not use `cd foo && pwd` to compute absolute paths, because
15686 # the directories may not exist.
15688 .) ac_abs_builddir="$ac_dir";;
15691 .) ac_abs_builddir=`pwd`;;
15692 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15693 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15696 case $ac_abs_builddir in
15697 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15699 case ${ac_top_builddir}. in
15700 .) ac_abs_top_builddir=$ac_abs_builddir;;
15701 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15702 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15705 case $ac_abs_builddir in
15706 .) ac_abs_srcdir=$ac_srcdir;;
15709 .) ac_abs_srcdir=$ac_abs_builddir;;
15710 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15711 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15714 case $ac_abs_builddir in
15715 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15717 case $ac_top_srcdir in
15718 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15719 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15720 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15725 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15726 echo "$as_me: executing $ac_dest commands" >&6;}
15729 for ac_file in $CONFIG_FILES; do
15730 # Support "outfile[:infile[:infile...]]"
15732 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15734 # PO directories have a Makefile.in generated from Makefile.in.in.
15735 case "$ac_file" in */Makefile.in)
15736 # Adjust a relative srcdir.
15737 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15738 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15739 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15740 # In autoconf-2.13 it is called $ac_given_srcdir.
15741 # In autoconf-2.50 it is called $srcdir.
15742 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15743 case "$ac_given_srcdir" in
15744 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15745 /*) top_srcdir="$ac_given_srcdir" ;;
15746 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15748 # Treat a directory as a PO directory if and only if it has a
15749 # POTFILES.in file. This allows packages to have multiple PO
15750 # directories under different names or in different locations.
15751 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15752 rm -f "$ac_dir/POTFILES"
15753 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15754 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15755 POMAKEFILEDEPS="POTFILES.in"
15756 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15757 # on $ac_dir but don't depend on user-specified configuration
15759 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15760 # The LINGUAS file contains the set of available languages.
15761 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15762 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15764 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15765 # Hide the ALL_LINGUAS assigment from automake.
15766 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15767 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15769 # The set of available languages was given in configure.in.
15770 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15773 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15774 # Compute UPDATEPOFILES
15775 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15776 # Compute DUMMYPOFILES
15777 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15779 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15780 case "$ac_given_srcdir" in
15782 *) srcdirpre='$(srcdir)/' ;;
15788 for lang in $ALL_LINGUAS; do
15789 POFILES="$POFILES $srcdirpre$lang.po"
15790 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15791 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15792 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15794 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15795 # environment variable.
15797 if test -n "$ALL_LINGUAS"; then
15798 for presentlang in $ALL_LINGUAS; do
15800 if test "%UNSET%" != "$LINGUAS"; then
15801 desiredlanguages="$LINGUAS"
15803 desiredlanguages="$ALL_LINGUAS"
15805 for desiredlang in $desiredlanguages; do
15806 # Use the presentlang catalog if desiredlang is
15807 # a. equal to presentlang, or
15808 # b. a variant of presentlang (because in this case,
15809 # presentlang can be used as a fallback for messages
15810 # which are not translated in the desiredlang catalog).
15811 case "$desiredlang" in
15812 "$presentlang"*) useit=yes;;
15815 if test $useit = yes; then
15816 INST_LINGUAS="$INST_LINGUAS $presentlang"
15821 if test -n "$INST_LINGUAS"; then
15822 for lang in $INST_LINGUAS; do
15823 CATALOGS="$CATALOGS $lang.gmo"
15826 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15827 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15832 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15833 # Strip MF so we end up with the name of the file.
15834 mf=`echo "$mf" | sed -e 's/:.*$//'`
15835 # Check whether this is an Automake generated Makefile or not.
15836 # We used to match only the files named `Makefile.in', but
15837 # some people rename them; so instead we look at the file content.
15838 # Grep'ing the first line is not enough: some people post-process
15839 # each Makefile.in and add a new line on top of each file to say so.
15840 # So let's grep whole file.
15841 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15842 dirpart=`(dirname "$mf") 2>/dev/null ||
15843 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15844 X"$mf" : 'X\(//\)[^/]' \| \
15845 X"$mf" : 'X\(//\)$' \| \
15846 X"$mf" : 'X\(/\)' \| \
15847 . : '\(.\)' 2>/dev/null ||
15849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15850 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15851 /^X\(\/\/\)$/{ s//\1/; q; }
15852 /^X\(\/\).*/{ s//\1/; q; }
15857 # Extract the definition of DEPDIR, am__include, and am__quote
15858 # from the Makefile without running `make'.
15859 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15860 test -z "$DEPDIR" && continue
15861 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15862 test -z "am__include" && continue
15863 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15864 # When using ansi2knr, U may be empty or an underscore; expand it
15865 U=`sed -n 's/^U = //p' < "$mf"`
15866 # Find all dependency output files, they are included files with
15867 # $(DEPDIR) in their names. We invoke sed twice because it is the
15868 # simplest approach to changing $(DEPDIR) to its actual value in the
15870 for file in `sed -n "
15871 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15872 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15873 # Make sure the directory exists.
15874 test -f "$dirpart/$file" && continue
15875 fdir=`(dirname "$file") 2>/dev/null ||
15876 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15877 X"$file" : 'X\(//\)[^/]' \| \
15878 X"$file" : 'X\(//\)$' \| \
15879 X"$file" : 'X\(/\)' \| \
15880 . : '\(.\)' 2>/dev/null ||
15882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15884 /^X\(\/\/\)$/{ s//\1/; q; }
15885 /^X\(\/\).*/{ s//\1/; q; }
15887 { if $as_mkdir_p; then
15888 mkdir -p $dirpart/$fdir
15890 as_dir=$dirpart/$fdir
15892 while test ! -d "$as_dir"; do
15893 as_dirs="$as_dir $as_dirs"
15894 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15895 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15896 X"$as_dir" : 'X\(//\)[^/]' \| \
15897 X"$as_dir" : 'X\(//\)$' \| \
15898 X"$as_dir" : 'X\(/\)' \| \
15899 . : '\(.\)' 2>/dev/null ||
15901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15902 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15903 /^X\(\/\/\)$/{ s//\1/; q; }
15904 /^X\(\/\).*/{ s//\1/; q; }
15907 test ! -n "$as_dirs" || mkdir $as_dirs
15908 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15909 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15910 { (exit 1); exit 1; }; }; }
15912 # echo "creating $dirpart/$file"
15913 echo '# dummy' > "$dirpart/$file"
15921 cat >>$CONFIG_STATUS <<\_ACEOF
15923 { (exit 0); exit 0; }
15925 chmod +x $CONFIG_STATUS
15926 ac_clean_files=$ac_clean_files_save
15929 # configure is writing to config.log, and then calls config.status.
15930 # config.status does its own redirection, appending to config.log.
15931 # Unfortunately, on DOS this fails, as config.log is still kept open
15932 # by configure, so config.status won't be able to write to it; its
15933 # output is simply discarded. So we exec the FD to /dev/null,
15934 # effectively closing config.log, so it can be properly (re)opened and
15935 # appended to by config.status. When coming back to configure, we
15936 # need to make the FD available again.
15937 if test "$no_create" != yes; then
15939 ac_config_status_args=
15940 test "$silent" = yes &&
15941 ac_config_status_args="$ac_config_status_args --quiet"
15943 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15945 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15946 # would make configure fail if this is the last instruction.
15947 $ac_cs_success || { (exit 1); exit 1; }