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 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"
2704 || test ! -s conftest.err'
2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; } &&
2710 { ac_try='test -s conftest.$ac_objext'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; }; then
2718 echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2727 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2728 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2729 GCC=`test $ac_compiler_gnu = yes && echo yes`
2730 ac_test_CFLAGS=${CFLAGS+set}
2731 ac_save_CFLAGS=$CFLAGS
2733 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2734 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2735 if test "${ac_cv_prog_cc_g+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 cat >conftest.$ac_ext <<_ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2753 rm -f conftest.$ac_objext
2754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2755 (eval $ac_compile) 2>conftest.er1
2757 grep -v '^ *+' conftest.er1 >conftest.err
2759 cat conftest.err >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); } &&
2762 { ac_try='test -z "$ac_c_werror_flag"
2763 || test ! -s conftest.err'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; } &&
2769 { ac_try='test -s conftest.$ac_objext'
2770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; }; then
2777 echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2784 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2785 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2786 if test "$ac_test_CFLAGS" = set; then
2787 CFLAGS=$ac_save_CFLAGS
2788 elif test $ac_cv_prog_cc_g = yes; then
2789 if test "$GCC" = yes; then
2795 if test "$GCC" = yes; then
2801 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2802 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2803 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 ac_cv_prog_cc_stdc=no
2808 cat >conftest.$ac_ext <<_ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h. */
2816 #include <sys/types.h>
2817 #include <sys/stat.h>
2818 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2819 struct buf { int x; };
2820 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2821 static char *e (p, i)
2827 static char *f (char * (*g) (char **, int), char **p, ...)
2832 s = g (p, va_arg (v,int));
2837 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2838 function prototypes and stuff, but not '\xHH' hex character constants.
2839 These don't provoke an error unfortunately, instead are silently treated
2840 as 'x'. The following induces an error, until -std1 is added to get
2841 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2842 array size at least. It's necessary to write '\x00'==0 to get something
2843 that's true only with -std1. */
2844 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2846 int test (int i, double x);
2847 struct s1 {int (*f) (int a);};
2848 struct s2 {int (*f) (double a);};
2849 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2855 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2860 # Don't try gcc -ansi; that turns off useful extensions and
2861 # breaks some systems' header files.
2862 # AIX -qlanglvl=ansi
2863 # Ultrix and OSF/1 -std1
2864 # HP-UX 10.20 and later -Ae
2865 # HP-UX older versions -Aa -D_HPUX_SOURCE
2866 # SVR4 -Xc -D__EXTENSIONS__
2867 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2869 CC="$ac_save_CC $ac_arg"
2870 rm -f conftest.$ac_objext
2871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872 (eval $ac_compile) 2>conftest.er1
2874 grep -v '^ *+' conftest.er1 >conftest.err
2876 cat conftest.err >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } &&
2879 { ac_try='test -z "$ac_c_werror_flag"
2880 || test ! -s conftest.err'
2881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; } &&
2886 { ac_try='test -s conftest.$ac_objext'
2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2892 ac_cv_prog_cc_stdc=$ac_arg
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2899 rm -f conftest.err conftest.$ac_objext
2901 rm -f conftest.$ac_ext conftest.$ac_objext
2906 case "x$ac_cv_prog_cc_stdc" in
2908 echo "$as_me:$LINENO: result: none needed" >&5
2909 echo "${ECHO_T}none needed" >&6 ;;
2911 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2912 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2913 CC="$CC $ac_cv_prog_cc_stdc" ;;
2916 # Some people use a C++ compiler to compile C. Since we use `exit',
2917 # in C++ we need to declare it. In case someone uses the same compiler
2918 # for both compiling C and C++ we need to have the C++ compiler decide
2919 # the declaration of exit, since it's the most demanding environment.
2920 cat >conftest.$ac_ext <<_ACEOF
2925 rm -f conftest.$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927 (eval $ac_compile) 2>conftest.er1
2929 grep -v '^ *+' conftest.er1 >conftest.err
2931 cat conftest.err >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try='test -z "$ac_c_werror_flag"
2935 || test ! -s conftest.err'
2936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; } &&
2941 { ac_try='test -s conftest.$ac_objext'
2942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; }; then
2947 for ac_declaration in \
2949 'extern "C" void std::exit (int) throw (); using std::exit;' \
2950 'extern "C" void std::exit (int); using std::exit;' \
2951 'extern "C" void exit (int) throw ();' \
2952 'extern "C" void exit (int);' \
2955 cat >conftest.$ac_ext <<_ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h. */
2971 rm -f conftest.$ac_objext
2972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2973 (eval $ac_compile) 2>conftest.er1
2975 grep -v '^ *+' conftest.er1 >conftest.err
2977 cat conftest.err >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } &&
2980 { ac_try='test -z "$ac_c_werror_flag"
2981 || test ! -s conftest.err'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; } &&
2987 { ac_try='test -s conftest.$ac_objext'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; }; then
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
3000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3001 cat >conftest.$ac_ext <<_ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3016 rm -f conftest.$ac_objext
3017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3018 (eval $ac_compile) 2>conftest.er1
3020 grep -v '^ *+' conftest.er1 >conftest.err
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try='test -z "$ac_c_werror_flag"
3026 || test ! -s conftest.err'
3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; } &&
3032 { ac_try='test -s conftest.$ac_objext'
3033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; }; then
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3047 if test -n "$ac_declaration"; then
3048 echo '#ifdef __cplusplus' >>confdefs.h
3049 echo $ac_declaration >>confdefs.h
3050 echo '#endif' >>confdefs.h
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3060 ac_cpp='$CPP $CPPFLAGS'
3061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3065 depcc="$CC" am_compiler_list=
3067 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3068 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3069 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3073 # We make a subdir and do the tests there. Otherwise we can end up
3074 # making bogus files that we don't know about and never remove. For
3075 # instance it was reported that on HP-UX the gcc test will end up
3076 # making a dummy file named `D' -- because `-MD' means `put the output
3079 # Copy depcomp to subdir because otherwise we won't find it if we're
3080 # using a relative directory.
3081 cp "$am_depcomp" conftest.dir
3083 # We will build objects and dependencies in a subdirectory because
3084 # it helps to detect inapplicable dependency modes. For instance
3085 # both Tru64's cc and ICC support -MD to output dependencies as a
3086 # side effect of compilation, but ICC will put the dependencies in
3087 # the current directory while Tru64 will put them in the object
3091 am_cv_CC_dependencies_compiler_type=none
3092 if test "$am_compiler_list" = ""; then
3093 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3095 for depmode in $am_compiler_list; do
3096 # Setup a source with many dependencies, because some compilers
3097 # like to wrap large dependency lists on column 80 (with \), and
3098 # we should not choose a depcomp mode which is confused by this.
3100 # We need to recreate these files for each test, as the compiler may
3101 # overwrite some of them when testing with obscure command lines.
3102 # This happens at least with the AIX C compiler.
3104 for i in 1 2 3 4 5 6; do
3105 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3106 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3107 # Solaris 8's {/usr,}/bin/sh.
3108 touch sub/conftst$i.h
3110 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3114 # after this tag, mechanisms are not by side-effect, so they'll
3115 # only be used when explicitly requested
3116 if test "x$enable_dependency_tracking" = xyes; then
3124 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3125 # mode. It turns out that the SunPro C++ compiler does not properly
3126 # handle `-M -o', and we need to detect this.
3127 if depmode=$depmode \
3128 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3129 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3130 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3131 >/dev/null 2>conftest.err &&
3132 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3133 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3134 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3135 # icc doesn't choke on unknown options, it will just issue warnings
3136 # or remarks (even with -Werror). So we grep stderr for any message
3137 # that says an option was ignored or not supported.
3138 # When given -MP, icc 7.0 and 7.1 complain thusly:
3139 # icc: Command line warning: ignoring option '-M'; no argument required
3140 # The diagnosis changed in icc 8.0:
3141 # icc: Command line remark: option '-MP' not supported
3142 if (grep 'ignoring option' conftest.err ||
3143 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3144 am_cv_CC_dependencies_compiler_type=$depmode
3153 am_cv_CC_dependencies_compiler_type=none
3157 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3158 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3159 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3164 test "x$enable_dependency_tracking" != xno \
3165 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3167 am__fastdepCC_FALSE='#'
3169 am__fastdepCC_TRUE='#'
3170 am__fastdepCC_FALSE=
3174 # Make sure we can run config.sub.
3175 $ac_config_sub sun4 >/dev/null 2>&1 ||
3176 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3177 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3178 { (exit 1); exit 1; }; }
3180 echo "$as_me:$LINENO: checking build system type" >&5
3181 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3182 if test "${ac_cv_build+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 ac_cv_build_alias=$build_alias
3186 test -z "$ac_cv_build_alias" &&
3187 ac_cv_build_alias=`$ac_config_guess`
3188 test -z "$ac_cv_build_alias" &&
3189 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3190 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3191 { (exit 1); exit 1; }; }
3192 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3193 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3194 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3195 { (exit 1); exit 1; }; }
3198 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3199 echo "${ECHO_T}$ac_cv_build" >&6
3201 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3202 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3203 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3206 echo "$as_me:$LINENO: checking host system type" >&5
3207 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3208 if test "${ac_cv_host+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 ac_cv_host_alias=$host_alias
3212 test -z "$ac_cv_host_alias" &&
3213 ac_cv_host_alias=$ac_cv_build_alias
3214 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3215 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3216 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3217 { (exit 1); exit 1; }; }
3220 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3221 echo "${ECHO_T}$ac_cv_host" >&6
3223 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3224 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3225 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3235 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3236 # On Suns, sometimes $CPP names a directory.
3237 if test -n "$CPP" && test -d "$CPP"; then
3240 if test -z "$CPP"; then
3241 if test "${ac_cv_prog_CPP+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 # Double quotes because CPP needs to be expanded
3245 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3248 for ac_c_preproc_warn_flag in '' yes
3250 # Use a header file that comes with gcc, so configuring glibc
3251 # with a fresh cross-compiler works.
3252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3253 # <limits.h> exists even on freestanding compilers.
3254 # On the NeXT, cc -E runs the code through the compiler's parser,
3255 # not just through cpp. "Syntax error" is here to catch this case.
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3263 # include <limits.h>
3265 # include <assert.h>
3269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3272 grep -v '^ *+' conftest.er1 >conftest.err
3274 cat conftest.err >&5
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); } >/dev/null; then
3277 if test -s conftest.err; then
3278 ac_cpp_err=$ac_c_preproc_warn_flag
3279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3286 if test -z "$ac_cpp_err"; then
3289 echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3292 # Broken: fails on valid input.
3295 rm -f conftest.err conftest.$ac_ext
3297 # OK, works on sane cases. Now check whether non-existent headers
3298 # can be detected and how.
3299 cat >conftest.$ac_ext <<_ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3305 #include <ac_nonexistent.h>
3307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3310 grep -v '^ *+' conftest.er1 >conftest.err
3312 cat conftest.err >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } >/dev/null; then
3315 if test -s conftest.err; then
3316 ac_cpp_err=$ac_c_preproc_warn_flag
3317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3324 if test -z "$ac_cpp_err"; then
3325 # Broken: success on invalid input.
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3331 # Passes both tests.
3335 rm -f conftest.err conftest.$ac_ext
3338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3339 rm -f conftest.err conftest.$ac_ext
3340 if $ac_preproc_ok; then
3352 echo "$as_me:$LINENO: result: $CPP" >&5
3353 echo "${ECHO_T}$CPP" >&6
3355 for ac_c_preproc_warn_flag in '' yes
3357 # Use a header file that comes with gcc, so configuring glibc
3358 # with a fresh cross-compiler works.
3359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3360 # <limits.h> exists even on freestanding compilers.
3361 # On the NeXT, cc -E runs the code through the compiler's parser,
3362 # not just through cpp. "Syntax error" is here to catch this case.
3363 cat >conftest.$ac_ext <<_ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3370 # include <limits.h>
3372 # include <assert.h>
3376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3379 grep -v '^ *+' conftest.er1 >conftest.err
3381 cat conftest.err >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } >/dev/null; then
3384 if test -s conftest.err; then
3385 ac_cpp_err=$ac_c_preproc_warn_flag
3386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3393 if test -z "$ac_cpp_err"; then
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3399 # Broken: fails on valid input.
3402 rm -f conftest.err conftest.$ac_ext
3404 # OK, works on sane cases. Now check whether non-existent headers
3405 # can be detected and how.
3406 cat >conftest.$ac_ext <<_ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3412 #include <ac_nonexistent.h>
3414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3417 grep -v '^ *+' conftest.er1 >conftest.err
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } >/dev/null; then
3422 if test -s conftest.err; then
3423 ac_cpp_err=$ac_c_preproc_warn_flag
3424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431 if test -z "$ac_cpp_err"; then
3432 # Broken: success on invalid input.
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 # Passes both tests.
3442 rm -f conftest.err conftest.$ac_ext
3445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446 rm -f conftest.err conftest.$ac_ext
3447 if $ac_preproc_ok; then
3450 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3451 See \`config.log' for more details." >&5
3452 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3453 See \`config.log' for more details." >&2;}
3454 { (exit 1); exit 1; }; }
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464 echo "$as_me:$LINENO: checking for egrep" >&5
3465 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3466 if test "${ac_cv_prog_egrep+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3470 then ac_cv_prog_egrep='grep -E'
3471 else ac_cv_prog_egrep='egrep'
3474 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3475 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3476 EGREP=$ac_cv_prog_egrep
3480 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
3481 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
3482 if test "${ac_cv_gnu_library_2+set}" = set; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 cat >conftest.$ac_ext <<_ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3492 #include <features.h>
3493 #ifdef __GNU_LIBRARY__
3494 #if (__GLIBC__ >= 2)
3500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3501 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
3502 ac_cv_gnu_library_2=yes
3504 ac_cv_gnu_library_2=no
3511 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
3512 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
3514 GLIBC2="$ac_cv_gnu_library_2"
3517 if test -n "$ac_tool_prefix"; then
3518 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3519 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3520 echo "$as_me:$LINENO: checking for $ac_word" >&5
3521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3522 if test "${ac_cv_prog_RANLIB+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 if test -n "$RANLIB"; then
3526 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 test -z "$as_dir" && as_dir=.
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3535 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3544 RANLIB=$ac_cv_prog_RANLIB
3545 if test -n "$RANLIB"; then
3546 echo "$as_me:$LINENO: result: $RANLIB" >&5
3547 echo "${ECHO_T}$RANLIB" >&6
3549 echo "$as_me:$LINENO: result: no" >&5
3550 echo "${ECHO_T}no" >&6
3554 if test -z "$ac_cv_prog_RANLIB"; then
3555 ac_ct_RANLIB=$RANLIB
3556 # Extract the first word of "ranlib", so it can be a program name with args.
3557 set dummy ranlib; ac_word=$2
3558 echo "$as_me:$LINENO: checking for $ac_word" >&5
3559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3560 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 if test -n "$ac_ct_RANLIB"; then
3564 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573 ac_cv_prog_ac_ct_RANLIB="ranlib"
3574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3583 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3584 if test -n "$ac_ct_RANLIB"; then
3585 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3586 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3588 echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6
3592 RANLIB=$ac_ct_RANLIB
3594 RANLIB="$ac_cv_prog_RANLIB"
3597 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3598 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3599 if test "${ac_cv_search_strerror+set}" = set; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 ac_func_search_save_LIBS=$LIBS
3603 ac_cv_search_strerror=no
3604 cat >conftest.$ac_ext <<_ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3611 /* Override any gcc2 internal prototype to avoid an error. */
3615 /* We use char because int might match the return type of a gcc2
3616 builtin and then its argument prototype would still apply. */
3626 rm -f conftest.$ac_objext conftest$ac_exeext
3627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3628 (eval $ac_link) 2>conftest.er1
3630 grep -v '^ *+' conftest.er1 >conftest.err
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } &&
3635 { ac_try='test -z "$ac_c_werror_flag"
3636 || test ! -s conftest.err'
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; } &&
3642 { ac_try='test -s conftest$ac_exeext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 ac_cv_search_strerror="none required"
3650 echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3654 rm -f conftest.err conftest.$ac_objext \
3655 conftest$ac_exeext conftest.$ac_ext
3656 if test "$ac_cv_search_strerror" = no; then
3657 for ac_lib in cposix; do
3658 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3659 cat >conftest.$ac_ext <<_ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3666 /* Override any gcc2 internal prototype to avoid an error. */
3670 /* We use char because int might match the return type of a gcc2
3671 builtin and then its argument prototype would still apply. */
3681 rm -f conftest.$ac_objext conftest$ac_exeext
3682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3683 (eval $ac_link) 2>conftest.er1
3685 grep -v '^ *+' conftest.er1 >conftest.err
3687 cat conftest.err >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } &&
3690 { ac_try='test -z "$ac_c_werror_flag"
3691 || test ! -s conftest.err'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; } &&
3697 { ac_try='test -s conftest$ac_exeext'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; }; then
3703 ac_cv_search_strerror="-l$ac_lib"
3706 echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3710 rm -f conftest.err conftest.$ac_objext \
3711 conftest$ac_exeext conftest.$ac_ext
3714 LIBS=$ac_func_search_save_LIBS
3716 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3717 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3718 if test "$ac_cv_search_strerror" != no; then
3719 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3723 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3724 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3725 if test "${ac_cv_header_stdc+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 cat >conftest.$ac_ext <<_ACEOF
3731 cat confdefs.h >>conftest.$ac_ext
3732 cat >>conftest.$ac_ext <<_ACEOF
3733 /* end confdefs.h. */
3747 rm -f conftest.$ac_objext
3748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3749 (eval $ac_compile) 2>conftest.er1
3751 grep -v '^ *+' conftest.er1 >conftest.err
3753 cat conftest.err >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } &&
3756 { ac_try='test -z "$ac_c_werror_flag"
3757 || test ! -s conftest.err'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; } &&
3763 { ac_try='test -s conftest.$ac_objext'
3764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; }; then
3769 ac_cv_header_stdc=yes
3771 echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3774 ac_cv_header_stdc=no
3776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3778 if test $ac_cv_header_stdc = yes; then
3779 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3780 cat >conftest.$ac_ext <<_ACEOF
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3790 $EGREP "memchr" >/dev/null 2>&1; then
3793 ac_cv_header_stdc=no
3799 if test $ac_cv_header_stdc = yes; then
3800 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3801 cat >conftest.$ac_ext <<_ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3811 $EGREP "free" >/dev/null 2>&1; then
3814 ac_cv_header_stdc=no
3820 if test $ac_cv_header_stdc = yes; then
3821 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3822 if test "$cross_compiling" = yes; then
3825 cat >conftest.$ac_ext <<_ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3832 #if ((' ' & 0x0FF) == 0x020)
3833 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3834 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3836 # define ISLOWER(c) \
3837 (('a' <= (c) && (c) <= 'i') \
3838 || ('j' <= (c) && (c) <= 'r') \
3839 || ('s' <= (c) && (c) <= 'z'))
3840 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3843 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3848 for (i = 0; i < 256; i++)
3849 if (XOR (islower (i), ISLOWER (i))
3850 || toupper (i) != TOUPPER (i))
3855 rm -f conftest$ac_exeext
3856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3857 (eval $ac_link) 2>&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3868 echo "$as_me: program exited with status $ac_status" >&5
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3873 ac_cv_header_stdc=no
3875 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3879 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3880 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3881 if test $ac_cv_header_stdc = yes; then
3883 cat >>confdefs.h <<\_ACEOF
3884 #define STDC_HEADERS 1
3889 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3890 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3891 if test "${ac_cv_c_const+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 cat >conftest.$ac_ext <<_ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3904 /* FIXME: Include the comments suggested by Paul. */
3906 /* Ultrix mips cc rejects this. */
3907 typedef int charset[2];
3909 /* SunOS 4.1.1 cc rejects this. */
3910 char const *const *ccp;
3912 /* NEC SVR4.0.2 mips cc rejects this. */
3913 struct point {int x, y;};
3914 static struct point const zero = {0,0};
3915 /* AIX XL C 1.02.0.0 rejects this.
3916 It does not let you subtract one const X* pointer from another in
3917 an arm of an if-expression whose if-part is not a constant
3919 const char *g = "string";
3920 ccp = &g + (g ? g-g : 0);
3921 /* HPUX 7.0 cc rejects these. */
3924 ccp = (char const *const *) p;
3925 { /* SCO 3.2v4 cc rejects this. */
3927 char const *s = 0 ? (char *) 0 : (char const *) 0;
3931 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3933 const int *foo = &x[0];
3936 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3937 typedef const int *iptr;
3941 { /* AIX XL C 1.02.0.0 rejects this saying
3942 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3943 struct s { int j; const int *ap[3]; };
3944 struct s *b; b->j = 5;
3946 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3955 rm -f conftest.$ac_objext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3957 (eval $ac_compile) 2>conftest.er1
3959 grep -v '^ *+' conftest.er1 >conftest.err
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } &&
3964 { ac_try='test -z "$ac_c_werror_flag"
3965 || test ! -s conftest.err'
3966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; } &&
3971 { ac_try='test -s conftest.$ac_objext'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; }; then
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3986 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3987 echo "${ECHO_T}$ac_cv_c_const" >&6
3988 if test $ac_cv_c_const = no; then
3990 cat >>confdefs.h <<\_ACEOF
3997 echo "$as_me:$LINENO: checking for signed" >&5
3998 echo $ECHO_N "checking for signed... $ECHO_C" >&6
3999 if test "${bh_cv_c_signed+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 cat >conftest.$ac_ext <<_ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4017 rm -f conftest.$ac_objext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019 (eval $ac_compile) 2>conftest.er1
4021 grep -v '^ *+' conftest.er1 >conftest.err
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag"
4027 || test ! -s conftest.err'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try='test -s conftest.$ac_objext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4048 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4049 echo "${ECHO_T}$bh_cv_c_signed" >&6
4050 if test $bh_cv_c_signed = no; then
4052 cat >>confdefs.h <<\_ACEOF
4058 echo "$as_me:$LINENO: checking for inline" >&5
4059 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4060 if test "${ac_cv_c_inline+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 for ac_kw in inline __inline__ __inline; do
4065 cat >conftest.$ac_ext <<_ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4073 static $ac_kw foo_t static_foo () {return 0; }
4074 $ac_kw foo_t foo () {return 0; }
4078 rm -f conftest.$ac_objext
4079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4080 (eval $ac_compile) 2>conftest.er1
4082 grep -v '^ *+' conftest.er1 >conftest.err
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } &&
4087 { ac_try='test -z "$ac_c_werror_flag"
4088 || test ! -s conftest.err'
4089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; } &&
4094 { ac_try='test -s conftest.$ac_objext'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4100 ac_cv_c_inline=$ac_kw; break
4102 echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4110 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4111 echo "${ECHO_T}$ac_cv_c_inline" >&6
4114 case $ac_cv_c_inline in
4117 case $ac_cv_c_inline in
4119 *) ac_val=$ac_cv_c_inline;;
4121 cat >>confdefs.h <<_ACEOF
4123 #define inline $ac_val
4129 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4139 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4140 inttypes.h stdint.h unistd.h
4142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4143 echo "$as_me:$LINENO: checking for $ac_header" >&5
4144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 cat >conftest.$ac_ext <<_ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4154 $ac_includes_default
4156 #include <$ac_header>
4158 rm -f conftest.$ac_objext
4159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4160 (eval $ac_compile) 2>conftest.er1
4162 grep -v '^ *+' conftest.er1 >conftest.err
4164 cat conftest.err >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } &&
4167 { ac_try='test -z "$ac_c_werror_flag"
4168 || test ! -s conftest.err'
4169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; } &&
4174 { ac_try='test -s conftest.$ac_objext'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; }; then
4180 eval "$as_ac_Header=yes"
4182 echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4185 eval "$as_ac_Header=no"
4187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4192 cat >>confdefs.h <<_ACEOF
4193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4201 echo "$as_me:$LINENO: checking for off_t" >&5
4202 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4203 if test "${ac_cv_type_off_t+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 cat >conftest.$ac_ext <<_ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4212 $ac_includes_default
4224 rm -f conftest.$ac_objext
4225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4226 (eval $ac_compile) 2>conftest.er1
4228 grep -v '^ *+' conftest.er1 >conftest.err
4230 cat conftest.err >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } &&
4233 { ac_try='test -z "$ac_c_werror_flag"
4234 || test ! -s conftest.err'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; } &&
4240 { ac_try='test -s conftest.$ac_objext'
4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 ac_cv_type_off_t=yes
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4255 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4256 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4257 if test $ac_cv_type_off_t = yes; then
4261 cat >>confdefs.h <<_ACEOF
4267 echo "$as_me:$LINENO: checking for size_t" >&5
4268 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4269 if test "${ac_cv_type_size_t+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 cat >conftest.$ac_ext <<_ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4278 $ac_includes_default
4284 if (sizeof (size_t))
4290 rm -f conftest.$ac_objext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4292 (eval $ac_compile) 2>conftest.er1
4294 grep -v '^ *+' conftest.er1 >conftest.err
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } &&
4299 { ac_try='test -z "$ac_c_werror_flag"
4300 || test ! -s conftest.err'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; } &&
4306 { ac_try='test -s conftest.$ac_objext'
4307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4312 ac_cv_type_size_t=yes
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4317 ac_cv_type_size_t=no
4319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4321 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4322 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4323 if test $ac_cv_type_size_t = yes; then
4327 cat >>confdefs.h <<_ACEOF
4328 #define size_t unsigned
4334 echo "$as_me:$LINENO: checking for long long" >&5
4335 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4336 if test "${ac_cv_type_long_long+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 cat >conftest.$ac_ext <<_ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4345 long long ll = 1LL; int i = 63;
4349 long long llmax = (long long) -1;
4350 return ll << i | ll >> i | llmax / ll | llmax % ll;
4355 rm -f conftest.$ac_objext conftest$ac_exeext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4357 (eval $ac_link) 2>conftest.er1
4359 grep -v '^ *+' conftest.er1 >conftest.err
4361 cat conftest.err >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } &&
4364 { ac_try='test -z "$ac_c_werror_flag"
4365 || test ! -s conftest.err'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; } &&
4371 { ac_try='test -s conftest$ac_exeext'
4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; }; then
4377 ac_cv_type_long_long=yes
4379 echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4382 ac_cv_type_long_long=no
4384 rm -f conftest.err conftest.$ac_objext \
4385 conftest$ac_exeext conftest.$ac_ext
4387 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4388 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4389 if test $ac_cv_type_long_long = yes; then
4391 cat >>confdefs.h <<\_ACEOF
4392 #define HAVE_LONG_LONG 1
4398 echo "$as_me:$LINENO: checking for long double" >&5
4399 echo $ECHO_N "checking for long double... $ECHO_C" >&6
4400 if test "${gt_cv_c_long_double+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 if test "$GCC" = yes; then
4404 gt_cv_c_long_double=yes
4406 cat >conftest.$ac_ext <<_ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4413 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
4414 long double foo = 0.0;
4415 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4416 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
4426 rm -f conftest.$ac_objext
4427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4428 (eval $ac_compile) 2>conftest.er1
4430 grep -v '^ *+' conftest.er1 >conftest.err
4432 cat conftest.err >&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); } &&
4435 { ac_try='test -z "$ac_c_werror_flag"
4436 || test ! -s conftest.err'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; } &&
4442 { ac_try='test -s conftest.$ac_objext'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; }; then
4448 gt_cv_c_long_double=yes
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 gt_cv_c_long_double=no
4455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4458 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
4459 echo "${ECHO_T}$gt_cv_c_long_double" >&6
4460 if test $gt_cv_c_long_double = yes; then
4462 cat >>confdefs.h <<\_ACEOF
4463 #define HAVE_LONG_DOUBLE 1
4469 echo "$as_me:$LINENO: checking for wchar_t" >&5
4470 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4471 if test "${gt_cv_c_wchar_t+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 cat >conftest.$ac_ext <<_ACEOF
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h. */
4481 wchar_t foo = (wchar_t)'\0';
4490 rm -f conftest.$ac_objext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4492 (eval $ac_compile) 2>conftest.er1
4494 grep -v '^ *+' conftest.er1 >conftest.err
4496 cat conftest.err >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try='test -z "$ac_c_werror_flag"
4500 || test ! -s conftest.err'
4501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; } &&
4506 { ac_try='test -s conftest.$ac_objext'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; }; then
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4521 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
4522 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
4523 if test $gt_cv_c_wchar_t = yes; then
4525 cat >>confdefs.h <<\_ACEOF
4526 #define HAVE_WCHAR_T 1
4532 echo "$as_me:$LINENO: checking for wint_t" >&5
4533 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
4534 if test "${gt_cv_c_wint_t+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 cat >conftest.$ac_ext <<_ACEOF
4540 cat confdefs.h >>conftest.$ac_ext
4541 cat >>conftest.$ac_ext <<_ACEOF
4542 /* end confdefs.h. */
4544 wint_t foo = (wchar_t)'\0';
4553 rm -f conftest.$ac_objext
4554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4555 (eval $ac_compile) 2>conftest.er1
4557 grep -v '^ *+' conftest.er1 >conftest.err
4559 cat conftest.err >&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } &&
4562 { ac_try='test -z "$ac_c_werror_flag"
4563 || test ! -s conftest.err'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; } &&
4569 { ac_try='test -s conftest.$ac_objext'
4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; }; then
4577 echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4584 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
4585 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
4586 if test $gt_cv_c_wint_t = yes; then
4588 cat >>confdefs.h <<\_ACEOF
4589 #define HAVE_WINT_T 1
4595 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4596 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4597 if test "${gl_cv_header_inttypes_h+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 cat >conftest.$ac_ext <<_ACEOF
4603 cat confdefs.h >>conftest.$ac_ext
4604 cat >>conftest.$ac_ext <<_ACEOF
4605 /* end confdefs.h. */
4606 #include <sys/types.h>
4607 #include <inttypes.h>
4611 uintmax_t i = (uintmax_t) -1;
4616 rm -f conftest.$ac_objext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4618 (eval $ac_compile) 2>conftest.er1
4620 grep -v '^ *+' conftest.er1 >conftest.err
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_c_werror_flag"
4626 || test ! -s conftest.err'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try='test -s conftest.$ac_objext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 gl_cv_header_inttypes_h=yes
4640 echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4643 gl_cv_header_inttypes_h=no
4645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4647 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
4648 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
4649 if test $gl_cv_header_inttypes_h = yes; then
4651 cat >>confdefs.h <<_ACEOF
4652 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4658 echo "$as_me:$LINENO: checking for stdint.h" >&5
4659 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4660 if test "${gl_cv_header_stdint_h+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 cat >conftest.$ac_ext <<_ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4669 #include <sys/types.h>
4674 uintmax_t i = (uintmax_t) -1;
4679 rm -f conftest.$ac_objext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4681 (eval $ac_compile) 2>conftest.er1
4683 grep -v '^ *+' conftest.er1 >conftest.err
4685 cat conftest.err >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } &&
4688 { ac_try='test -z "$ac_c_werror_flag"
4689 || test ! -s conftest.err'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; } &&
4695 { ac_try='test -s conftest.$ac_objext'
4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; }; then
4701 gl_cv_header_stdint_h=yes
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4706 gl_cv_header_stdint_h=no
4708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4710 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
4711 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
4712 if test $gl_cv_header_stdint_h = yes; then
4714 cat >>confdefs.h <<_ACEOF
4715 #define HAVE_STDINT_H_WITH_UINTMAX 1
4723 echo "$as_me:$LINENO: checking for intmax_t" >&5
4724 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
4725 if test "${gt_cv_c_intmax_t+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 cat >conftest.$ac_ext <<_ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4737 #if HAVE_STDINT_H_WITH_UINTMAX
4740 #if HAVE_INTTYPES_H_WITH_UINTMAX
4741 #include <inttypes.h>
4752 rm -f conftest.$ac_objext
4753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4754 (eval $ac_compile) 2>conftest.er1
4756 grep -v '^ *+' conftest.er1 >conftest.err
4758 cat conftest.err >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } &&
4761 { ac_try='test -z "$ac_c_werror_flag"
4762 || test ! -s conftest.err'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; } &&
4768 { ac_try='test -s conftest.$ac_objext'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; }; then
4774 gt_cv_c_intmax_t=yes
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4783 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
4784 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
4785 if test $gt_cv_c_intmax_t = yes; then
4787 cat >>confdefs.h <<\_ACEOF
4788 #define HAVE_INTMAX_T 1
4795 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
4796 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
4797 if test "${gt_cv_func_printf_posix+set}" = set; then
4798 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 if test "$cross_compiling" = yes; then
4803 cat >conftest.$ac_ext <<_ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
4810 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
4815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4816 $EGREP "notposix" >/dev/null 2>&1; then
4817 gt_cv_func_printf_posix="guessing no"
4819 gt_cv_func_printf_posix="guessing yes"
4825 cat >conftest.$ac_ext <<_ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4834 /* The string "%2$d %1$d", with dollar characters protected from the shell's
4835 dollar expansion (possibly an autoconf bug). */
4836 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
4837 static char buf[100];
4840 sprintf (buf, format, 33, 55);
4841 return (strcmp (buf, "55 33") != 0);
4844 rm -f conftest$ac_exeext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4846 (eval $ac_link) 2>&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; }; then
4855 gt_cv_func_printf_posix=yes
4857 echo "$as_me: program exited with status $ac_status" >&5
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4862 gt_cv_func_printf_posix=no
4864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4868 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
4869 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
4870 case $gt_cv_func_printf_posix in
4873 cat >>confdefs.h <<\_ACEOF
4874 #define HAVE_POSIX_PRINTF 1
4880 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4881 # for constant arguments. Useless!
4882 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4883 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4884 if test "${ac_cv_working_alloca_h+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 cat >conftest.$ac_ext <<_ACEOF
4890 cat confdefs.h >>conftest.$ac_ext
4891 cat >>conftest.$ac_ext <<_ACEOF
4892 /* end confdefs.h. */
4897 char *p = (char *) alloca (2 * sizeof (int));
4902 rm -f conftest.$ac_objext conftest$ac_exeext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4904 (eval $ac_link) 2>conftest.er1
4906 grep -v '^ *+' conftest.er1 >conftest.err
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } &&
4911 { ac_try='test -z "$ac_c_werror_flag"
4912 || test ! -s conftest.err'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; } &&
4918 { ac_try='test -s conftest$ac_exeext'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
4924 ac_cv_working_alloca_h=yes
4926 echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4929 ac_cv_working_alloca_h=no
4931 rm -f conftest.err conftest.$ac_objext \
4932 conftest$ac_exeext conftest.$ac_ext
4934 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4935 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4936 if test $ac_cv_working_alloca_h = yes; then
4938 cat >>confdefs.h <<\_ACEOF
4939 #define HAVE_ALLOCA_H 1
4944 echo "$as_me:$LINENO: checking for alloca" >&5
4945 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4946 if test "${ac_cv_func_alloca_works+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 cat >conftest.$ac_ext <<_ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4956 # define alloca __builtin_alloca
4959 # include <malloc.h>
4960 # define alloca _alloca
4963 # include <alloca.h>
4968 # ifndef alloca /* predefined by HP cc +Olibcalls */
4979 char *p = (char *) alloca (1);
4984 rm -f conftest.$ac_objext conftest$ac_exeext
4985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4986 (eval $ac_link) 2>conftest.er1
4988 grep -v '^ *+' conftest.er1 >conftest.err
4990 cat conftest.err >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } &&
4993 { ac_try='test -z "$ac_c_werror_flag"
4994 || test ! -s conftest.err'
4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; } &&
5000 { ac_try='test -s conftest$ac_exeext'
5001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); }; }; then
5006 ac_cv_func_alloca_works=yes
5008 echo "$as_me: failed program was:" >&5
5009 sed 's/^/| /' conftest.$ac_ext >&5
5011 ac_cv_func_alloca_works=no
5013 rm -f conftest.err conftest.$ac_objext \
5014 conftest$ac_exeext conftest.$ac_ext
5016 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5017 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5019 if test $ac_cv_func_alloca_works = yes; then
5021 cat >>confdefs.h <<\_ACEOF
5022 #define HAVE_ALLOCA 1
5026 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5027 # that cause trouble. Some versions do not even contain alloca or
5028 # contain a buggy version. If you still want to use their alloca,
5029 # use ar to extract alloca.o from them instead of compiling alloca.c.
5031 ALLOCA=alloca.$ac_objext
5033 cat >>confdefs.h <<\_ACEOF
5038 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5039 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5040 if test "${ac_cv_os_cray+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 cat >conftest.$ac_ext <<_ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5049 #if defined(CRAY) && ! defined(CRAY2)
5056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5057 $EGREP "webecray" >/dev/null 2>&1; then
5065 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5066 echo "${ECHO_T}$ac_cv_os_cray" >&6
5067 if test $ac_cv_os_cray = yes; then
5068 for ac_func in _getb67 GETB67 getb67; do
5069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5070 echo "$as_me:$LINENO: checking for $ac_func" >&5
5071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5072 if eval "test \"\${$as_ac_var+set}\" = set"; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 cat >conftest.$ac_ext <<_ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5083 #define $ac_func innocuous_$ac_func
5085 /* System header to define __stub macros and hopefully few prototypes,
5086 which can conflict with char $ac_func (); below.
5087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5088 <limits.h> exists even on freestanding compilers. */
5091 # include <limits.h>
5093 # include <assert.h>
5098 /* Override any gcc2 internal prototype to avoid an error. */
5103 /* We use char because int might match the return type of a gcc2
5104 builtin and then its argument prototype would still apply. */
5106 /* The GNU C library defines this for functions which it implements
5107 to always fail with ENOSYS. Some functions are actually named
5108 something starting with __ and the normal name is an alias. */
5109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5112 char (*f) () = $ac_func;
5121 return f != $ac_func;
5126 rm -f conftest.$ac_objext conftest$ac_exeext
5127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5128 (eval $ac_link) 2>conftest.er1
5130 grep -v '^ *+' conftest.er1 >conftest.err
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } &&
5135 { ac_try='test -z "$ac_c_werror_flag"
5136 || test ! -s conftest.err'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; } &&
5142 { ac_try='test -s conftest$ac_exeext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 eval "$as_ac_var=yes"
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5153 eval "$as_ac_var=no"
5155 rm -f conftest.err conftest.$ac_objext \
5156 conftest$ac_exeext conftest.$ac_ext
5158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5160 if test `eval echo '${'$as_ac_var'}'` = yes; then
5162 cat >>confdefs.h <<_ACEOF
5163 #define CRAY_STACKSEG_END $ac_func
5172 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5173 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5174 if test "${ac_cv_c_stack_direction+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 if test "$cross_compiling" = yes; then
5178 ac_cv_c_stack_direction=0
5180 cat >conftest.$ac_ext <<_ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h. */
5187 find_stack_direction ()
5189 static char *addr = 0;
5194 return find_stack_direction ();
5197 return (&dummy > addr) ? 1 : -1;
5203 exit (find_stack_direction () < 0);
5206 rm -f conftest$ac_exeext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5208 (eval $ac_link) 2>&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; }; then
5217 ac_cv_c_stack_direction=1
5219 echo "$as_me: program exited with status $ac_status" >&5
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5224 ac_cv_c_stack_direction=-1
5226 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5229 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5230 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5232 cat >>confdefs.h <<_ACEOF
5233 #define STACK_DIRECTION $ac_cv_c_stack_direction
5241 for ac_header in stdlib.h unistd.h
5243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5245 echo "$as_me:$LINENO: checking for $ac_header" >&5
5246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5253 # Is the header compilable?
5254 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5256 cat >conftest.$ac_ext <<_ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5262 $ac_includes_default
5263 #include <$ac_header>
5265 rm -f conftest.$ac_objext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267 (eval $ac_compile) 2>conftest.er1
5269 grep -v '^ *+' conftest.er1 >conftest.err
5271 cat conftest.err >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } &&
5274 { ac_try='test -z "$ac_c_werror_flag"
5275 || test ! -s conftest.err'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; } &&
5281 { ac_try='test -s conftest.$ac_objext'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; }; then
5287 ac_header_compiler=yes
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5292 ac_header_compiler=no
5294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5295 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5296 echo "${ECHO_T}$ac_header_compiler" >&6
5298 # Is the header present?
5299 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5301 cat >conftest.$ac_ext <<_ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h. */
5307 #include <$ac_header>
5309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5312 grep -v '^ *+' conftest.er1 >conftest.err
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } >/dev/null; then
5317 if test -s conftest.err; then
5318 ac_cpp_err=$ac_c_preproc_warn_flag
5319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5326 if test -z "$ac_cpp_err"; then
5327 ac_header_preproc=yes
5329 echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.$ac_ext >&5
5332 ac_header_preproc=no
5334 rm -f conftest.err conftest.$ac_ext
5335 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5336 echo "${ECHO_T}$ac_header_preproc" >&6
5338 # So? What about this header?
5339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5344 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5345 ac_header_preproc=yes
5348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5351 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5353 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5355 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5359 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5362 ## ------------------------------------------ ##
5363 ## Report this to the AC_PACKAGE_NAME lists. ##
5364 ## ------------------------------------------ ##
5367 sed "s/^/$as_me: WARNING: /" >&2
5370 echo "$as_me:$LINENO: checking for $ac_header" >&5
5371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 eval "$as_ac_Header=\$ac_header_preproc"
5377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5382 cat >>confdefs.h <<_ACEOF
5383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5391 for ac_func in getpagesize
5393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5394 echo "$as_me:$LINENO: checking for $ac_func" >&5
5395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5396 if eval "test \"\${$as_ac_var+set}\" = set"; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 cat >conftest.$ac_ext <<_ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h. */
5405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5407 #define $ac_func innocuous_$ac_func
5409 /* System header to define __stub macros and hopefully few prototypes,
5410 which can conflict with char $ac_func (); below.
5411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5412 <limits.h> exists even on freestanding compilers. */
5415 # include <limits.h>
5417 # include <assert.h>
5422 /* Override any gcc2 internal prototype to avoid an error. */
5427 /* We use char because int might match the return type of a gcc2
5428 builtin and then its argument prototype would still apply. */
5430 /* The GNU C library defines this for functions which it implements
5431 to always fail with ENOSYS. Some functions are actually named
5432 something starting with __ and the normal name is an alias. */
5433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5436 char (*f) () = $ac_func;
5445 return f != $ac_func;
5450 rm -f conftest.$ac_objext conftest$ac_exeext
5451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5452 (eval $ac_link) 2>conftest.er1
5454 grep -v '^ *+' conftest.er1 >conftest.err
5456 cat conftest.err >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } &&
5459 { ac_try='test -z "$ac_c_werror_flag"
5460 || test ! -s conftest.err'
5461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; } &&
5466 { ac_try='test -s conftest$ac_exeext'
5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; }; then
5472 eval "$as_ac_var=yes"
5474 echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5477 eval "$as_ac_var=no"
5479 rm -f conftest.err conftest.$ac_objext \
5480 conftest$ac_exeext conftest.$ac_ext
5482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5484 if test `eval echo '${'$as_ac_var'}'` = yes; then
5485 cat >>confdefs.h <<_ACEOF
5486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5492 echo "$as_me:$LINENO: checking for working mmap" >&5
5493 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5494 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5497 if test "$cross_compiling" = yes; then
5498 ac_cv_func_mmap_fixed_mapped=no
5500 cat >conftest.$ac_ext <<_ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5506 $ac_includes_default
5507 /* malloc might have been renamed as rpl_malloc. */
5510 /* Thanks to Mike Haertel and Jim Avera for this test.
5511 Here is a matrix of mmap possibilities:
5512 mmap private not fixed
5513 mmap private fixed at somewhere currently unmapped
5514 mmap private fixed at somewhere already mapped
5515 mmap shared not fixed
5516 mmap shared fixed at somewhere currently unmapped
5517 mmap shared fixed at somewhere already mapped
5518 For private mappings, we should verify that changes cannot be read()
5519 back from the file, nor mmap's back from the file at a different
5520 address. (There have been systems where private was not correctly
5521 implemented like the infamous i386 svr4.0, and systems where the
5522 VM page cache was not coherent with the file system buffer cache
5523 like early versions of FreeBSD and possibly contemporary NetBSD.)
5524 For shared mappings, we should conversely verify that changes get
5525 propagated back to all the places they're supposed to be.
5527 Grep wants private fixed already mapped.
5528 The main things grep needs to know about mmap are:
5529 * does it exist and is it safe to write into the mmap'd area
5530 * how to use it (BSD variants) */
5533 #include <sys/mman.h>
5535 #if !STDC_HEADERS && !HAVE_STDLIB_H
5539 /* This mess was copied from the GNU getpagesize.h. */
5540 #if !HAVE_GETPAGESIZE
5541 /* Assume that all systems that can run configure have sys/param.h. */
5542 # if !HAVE_SYS_PARAM_H
5543 # define HAVE_SYS_PARAM_H 1
5546 # ifdef _SC_PAGESIZE
5547 # define getpagesize() sysconf(_SC_PAGESIZE)
5548 # else /* no _SC_PAGESIZE */
5549 # if HAVE_SYS_PARAM_H
5550 # include <sys/param.h>
5551 # ifdef EXEC_PAGESIZE
5552 # define getpagesize() EXEC_PAGESIZE
5553 # else /* no EXEC_PAGESIZE */
5555 # define getpagesize() NBPG * CLSIZE
5558 # endif /* no CLSIZE */
5559 # else /* no NBPG */
5561 # define getpagesize() NBPC
5562 # else /* no NBPC */
5564 # define getpagesize() PAGESIZE
5565 # endif /* PAGESIZE */
5566 # endif /* no NBPC */
5567 # endif /* no NBPG */
5568 # endif /* no EXEC_PAGESIZE */
5569 # else /* no HAVE_SYS_PARAM_H */
5570 # define getpagesize() 8192 /* punt totally */
5571 # endif /* no HAVE_SYS_PARAM_H */
5572 # endif /* no _SC_PAGESIZE */
5574 #endif /* no HAVE_GETPAGESIZE */
5579 char *data, *data2, *data3;
5583 pagesize = getpagesize ();
5585 /* First, make a file with some known garbage in it. */
5586 data = (char *) malloc (pagesize);
5589 for (i = 0; i < pagesize; ++i)
5590 *(data + i) = rand ();
5592 fd = creat ("conftest.mmap", 0600);
5595 if (write (fd, data, pagesize) != pagesize)
5599 /* Next, try to mmap the file at a fixed address which already has
5600 something else allocated at it. If we can, also make sure that
5601 we see the same garbage. */
5602 fd = open ("conftest.mmap", O_RDWR);
5605 data2 = (char *) malloc (2 * pagesize);
5608 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5609 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5610 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5612 for (i = 0; i < pagesize; ++i)
5613 if (*(data + i) != *(data2 + i))
5616 /* Finally, make sure that changes to the mapped area do not
5617 percolate back to the file as seen by read(). (This is a bug on
5618 some variants of i386 svr4.0.) */
5619 for (i = 0; i < pagesize; ++i)
5620 *(data2 + i) = *(data2 + i) + 1;
5621 data3 = (char *) malloc (pagesize);
5624 if (read (fd, data3, pagesize) != pagesize)
5626 for (i = 0; i < pagesize; ++i)
5627 if (*(data + i) != *(data3 + i))
5633 rm -f conftest$ac_exeext
5634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5635 (eval $ac_link) 2>&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; }; then
5644 ac_cv_func_mmap_fixed_mapped=yes
5646 echo "$as_me: program exited with status $ac_status" >&5
5647 echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5651 ac_cv_func_mmap_fixed_mapped=no
5653 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5656 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5657 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5658 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5660 cat >>confdefs.h <<\_ACEOF
5668 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5669 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5670 if test "${ac_cv_gnu_library_2_1+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 cat >conftest.$ac_ext <<_ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5680 #include <features.h>
5681 #ifdef __GNU_LIBRARY__
5682 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5689 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5690 ac_cv_gnu_library_2_1=yes
5692 ac_cv_gnu_library_2_1=no
5699 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5700 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5702 GLIBC21="$ac_cv_gnu_library_2_1"
5707 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5708 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
5709 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5713 if test "$cross_compiling" = yes; then
5715 # Guess based on the CPU.
5717 alpha* | i3456786 | m68k | s390*)
5718 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5720 gt_cv_int_divbyzero_sigfpe="guessing no";;
5724 cat >conftest.$ac_ext <<_ACEOF
5727 cat confdefs.h >>conftest.$ac_ext
5728 cat >>conftest.$ac_ext <<_ACEOF
5729 /* end confdefs.h. */
5736 sigfpe_handler (int sig)
5738 sigfpe_handler (sig) int sig;
5741 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5742 exit (sig != SIGFPE);
5752 signal (SIGFPE, sigfpe_handler);
5753 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5754 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5755 signal (SIGTRAP, sigfpe_handler);
5757 /* Linux/SPARC yields signal SIGILL. */
5758 #if defined (__sparc__) && defined (__linux__)
5759 signal (SIGILL, sigfpe_handler);
5768 rm -f conftest$ac_exeext
5769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5770 (eval $ac_link) 2>&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 gt_cv_int_divbyzero_sigfpe=yes
5781 echo "$as_me: program exited with status $ac_status" >&5
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.$ac_ext >&5
5786 gt_cv_int_divbyzero_sigfpe=no
5788 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5792 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5793 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
5794 case "$gt_cv_int_divbyzero_sigfpe" in
5799 cat >>confdefs.h <<_ACEOF
5800 #define INTDIV0_RAISES_SIGFPE $value
5805 echo "$as_me:$LINENO: checking for unsigned long long" >&5
5806 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5807 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 cat >conftest.$ac_ext <<_ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5816 unsigned long long ull = 1ULL; int i = 63;
5820 unsigned long long ullmax = (unsigned long long) -1;
5821 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5826 rm -f conftest.$ac_objext conftest$ac_exeext
5827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5828 (eval $ac_link) 2>conftest.er1
5830 grep -v '^ *+' conftest.er1 >conftest.err
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } &&
5835 { ac_try='test -z "$ac_c_werror_flag"
5836 || test ! -s conftest.err'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; } &&
5842 { ac_try='test -s conftest$ac_exeext'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5848 ac_cv_type_unsigned_long_long=yes
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5853 ac_cv_type_unsigned_long_long=no
5855 rm -f conftest.err conftest.$ac_objext \
5856 conftest$ac_exeext conftest.$ac_ext
5858 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5859 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5860 if test $ac_cv_type_unsigned_long_long = yes; then
5862 cat >>confdefs.h <<\_ACEOF
5863 #define HAVE_UNSIGNED_LONG_LONG 1
5871 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
5873 test $ac_cv_type_unsigned_long_long = yes \
5874 && ac_type='unsigned long long' \
5875 || ac_type='unsigned long'
5877 cat >>confdefs.h <<_ACEOF
5878 #define uintmax_t $ac_type
5883 cat >>confdefs.h <<\_ACEOF
5884 #define HAVE_UINTMAX_T 1
5890 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5891 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5892 if test "${gt_cv_header_inttypes_h+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 cat >conftest.$ac_ext <<_ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5902 #include <sys/types.h>
5903 #include <inttypes.h>
5912 rm -f conftest.$ac_objext
5913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5914 (eval $ac_compile) 2>conftest.er1
5916 grep -v '^ *+' conftest.er1 >conftest.err
5918 cat conftest.err >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } &&
5921 { ac_try='test -z "$ac_c_werror_flag"
5922 || test ! -s conftest.err'
5923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; } &&
5928 { ac_try='test -s conftest.$ac_objext'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; }; then
5934 gt_cv_header_inttypes_h=yes
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5939 gt_cv_header_inttypes_h=no
5941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5944 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
5945 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
5946 if test $gt_cv_header_inttypes_h = yes; then
5948 cat >>confdefs.h <<_ACEOF
5949 #define HAVE_INTTYPES_H 1
5956 if test $gt_cv_header_inttypes_h = yes; then
5957 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
5958 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
5959 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5963 cat >conftest.$ac_ext <<_ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5969 #include <inttypes.h>
5982 rm -f conftest.$ac_objext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5984 (eval $ac_compile) 2>conftest.er1
5986 grep -v '^ *+' conftest.er1 >conftest.err
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try='test -z "$ac_c_werror_flag"
5992 || test ! -s conftest.err'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; } &&
5998 { ac_try='test -s conftest.$ac_objext'
5999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
6004 gt_cv_inttypes_pri_broken=no
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6009 gt_cv_inttypes_pri_broken=yes
6011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6014 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6015 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6017 if test "$gt_cv_inttypes_pri_broken" = yes; then
6019 cat >>confdefs.h <<_ACEOF
6020 #define PRI_MACROS_BROKEN 1
6027 for ac_header in stdint.h
6029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6031 echo "$as_me:$LINENO: checking for $ac_header" >&5
6032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6039 # Is the header compilable?
6040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6042 cat >conftest.$ac_ext <<_ACEOF
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h. */
6048 $ac_includes_default
6049 #include <$ac_header>
6051 rm -f conftest.$ac_objext
6052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6053 (eval $ac_compile) 2>conftest.er1
6055 grep -v '^ *+' conftest.er1 >conftest.err
6057 cat conftest.err >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } &&
6060 { ac_try='test -z "$ac_c_werror_flag"
6061 || test ! -s conftest.err'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; } &&
6067 { ac_try='test -s conftest.$ac_objext'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; }; then
6073 ac_header_compiler=yes
6075 echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6078 ac_header_compiler=no
6080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6082 echo "${ECHO_T}$ac_header_compiler" >&6
6084 # Is the header present?
6085 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6087 cat >conftest.$ac_ext <<_ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h. */
6093 #include <$ac_header>
6095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6098 grep -v '^ *+' conftest.er1 >conftest.err
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } >/dev/null; then
6103 if test -s conftest.err; then
6104 ac_cpp_err=$ac_c_preproc_warn_flag
6105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6112 if test -z "$ac_cpp_err"; then
6113 ac_header_preproc=yes
6115 echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6118 ac_header_preproc=no
6120 rm -f conftest.err conftest.$ac_ext
6121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6122 echo "${ECHO_T}$ac_header_preproc" >&6
6124 # So? What about this header?
6125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6131 ac_header_preproc=yes
6134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6148 ## ------------------------------------------ ##
6149 ## Report this to the AC_PACKAGE_NAME lists. ##
6150 ## ------------------------------------------ ##
6153 sed "s/^/$as_me: WARNING: /" >&2
6156 echo "$as_me:$LINENO: checking for $ac_header" >&5
6157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 eval "$as_ac_Header=\$ac_header_preproc"
6163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6168 cat >>confdefs.h <<_ACEOF
6169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6176 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6177 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6179 cat >conftest.$ac_ext <<_ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h. */
6195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6196 $EGREP "Found it" >/dev/null 2>&1; then
6201 if test -z "$result"; then
6202 if test "$cross_compiling" = yes; then
6203 # Depending upon the size, compute the lo and hi bounds.
6204 cat >conftest.$ac_ext <<_ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h. */
6214 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6221 rm -f conftest.$ac_objext
6222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6223 (eval $ac_compile) 2>conftest.er1
6225 grep -v '^ *+' conftest.er1 >conftest.err
6227 cat conftest.err >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } &&
6230 { ac_try='test -z "$ac_c_werror_flag"
6231 || test ! -s conftest.err'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; } &&
6237 { ac_try='test -s conftest.$ac_objext'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; }; then
6245 cat >conftest.$ac_ext <<_ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h. */
6255 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6262 rm -f conftest.$ac_objext
6263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6264 (eval $ac_compile) 2>conftest.er1
6266 grep -v '^ *+' conftest.er1 >conftest.err
6268 cat conftest.err >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } &&
6271 { ac_try='test -z "$ac_c_werror_flag"
6272 || test ! -s conftest.err'
6273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); }; } &&
6278 { ac_try='test -s conftest.$ac_objext'
6279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; }; then
6284 ac_hi=$ac_mid; break
6286 echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6289 ac_lo=`expr $ac_mid + 1`
6290 if test $ac_lo -le $ac_mid; then
6294 ac_mid=`expr 2 '*' $ac_mid + 1`
6296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6302 cat >conftest.$ac_ext <<_ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6312 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6319 rm -f conftest.$ac_objext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321 (eval $ac_compile) 2>conftest.er1
6323 grep -v '^ *+' conftest.er1 >conftest.err
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } &&
6328 { ac_try='test -z "$ac_c_werror_flag"
6329 || test ! -s conftest.err'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; } &&
6335 { ac_try='test -s conftest.$ac_objext'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6343 cat >conftest.$ac_ext <<_ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h. */
6353 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6360 rm -f conftest.$ac_objext
6361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6362 (eval $ac_compile) 2>conftest.er1
6364 grep -v '^ *+' conftest.er1 >conftest.err
6366 cat conftest.err >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } &&
6369 { ac_try='test -z "$ac_c_werror_flag"
6370 || test ! -s conftest.err'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; } &&
6376 { ac_try='test -s conftest.$ac_objext'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; }; then
6382 ac_lo=$ac_mid; break
6384 echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6387 ac_hi=`expr '(' $ac_mid ')' - 1`
6388 if test $ac_mid -le $ac_hi; then
6392 ac_mid=`expr 2 '*' $ac_mid`
6394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6397 echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6405 # Binary search between lo and hi bounds.
6406 while test "x$ac_lo" != "x$ac_hi"; do
6407 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6408 cat >conftest.$ac_ext <<_ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6418 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6425 rm -f conftest.$ac_objext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427 (eval $ac_compile) 2>conftest.er1
6429 grep -v '^ *+' conftest.er1 >conftest.err
6431 cat conftest.err >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } &&
6434 { ac_try='test -z "$ac_c_werror_flag"
6435 || test ! -s conftest.err'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; } &&
6441 { ac_try='test -s conftest.$ac_objext'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
6449 echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6452 ac_lo=`expr '(' $ac_mid ')' + 1`
6454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6461 if test "$cross_compiling" = yes; then
6462 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6463 See \`config.log' for more details." >&5
6464 echo "$as_me: error: cannot run test program while cross compiling
6465 See \`config.log' for more details." >&2;}
6466 { (exit 1); exit 1; }; }
6468 cat >conftest.$ac_ext <<_ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6475 long longval () { return ~(size_t)0 / 10; }
6476 unsigned long ulongval () { return ~(size_t)0 / 10; }
6483 FILE *f = fopen ("conftest.val", "w");
6486 if ((~(size_t)0 / 10) < 0)
6488 long i = longval ();
6489 if (i != (~(size_t)0 / 10))
6491 fprintf (f, "%ld\n", i);
6495 unsigned long i = ulongval ();
6496 if (i != (~(size_t)0 / 10))
6498 fprintf (f, "%lu\n", i);
6500 exit (ferror (f) || fclose (f) != 0);
6506 rm -f conftest$ac_exeext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6508 (eval $ac_link) 2>&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); }; }; then
6517 res_hi=`cat conftest.val`
6519 echo "$as_me: program exited with status $ac_status" >&5
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6526 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6530 if test "$cross_compiling" = yes; then
6531 # Depending upon the size, compute the lo and hi bounds.
6532 cat >conftest.$ac_ext <<_ACEOF
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h. */
6542 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
6549 rm -f conftest.$ac_objext
6550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6551 (eval $ac_compile) 2>conftest.er1
6553 grep -v '^ *+' conftest.er1 >conftest.err
6555 cat conftest.err >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } &&
6558 { ac_try='test -z "$ac_c_werror_flag"
6559 || test ! -s conftest.err'
6560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); }; } &&
6565 { ac_try='test -s conftest.$ac_objext'
6566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); }; }; then
6573 cat >conftest.$ac_ext <<_ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6583 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6590 rm -f conftest.$ac_objext
6591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6592 (eval $ac_compile) 2>conftest.er1
6594 grep -v '^ *+' conftest.er1 >conftest.err
6596 cat conftest.err >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } &&
6599 { ac_try='test -z "$ac_c_werror_flag"
6600 || test ! -s conftest.err'
6601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; } &&
6606 { ac_try='test -s conftest.$ac_objext'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; }; then
6612 ac_hi=$ac_mid; break
6614 echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6617 ac_lo=`expr $ac_mid + 1`
6618 if test $ac_lo -le $ac_mid; then
6622 ac_mid=`expr 2 '*' $ac_mid + 1`
6624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6627 echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.$ac_ext >&5
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) < 0)];
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"
6657 || test ! -s conftest.err'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; } &&
6663 { ac_try='test -s conftest.$ac_objext'
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; }; then
6671 cat >conftest.$ac_ext <<_ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6681 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
6688 rm -f conftest.$ac_objext
6689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6690 (eval $ac_compile) 2>conftest.er1
6692 grep -v '^ *+' conftest.er1 >conftest.err
6694 cat conftest.err >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } &&
6697 { ac_try='test -z "$ac_c_werror_flag"
6698 || test ! -s conftest.err'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; } &&
6704 { ac_try='test -s conftest.$ac_objext'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; }; then
6710 ac_lo=$ac_mid; break
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6715 ac_hi=`expr '(' $ac_mid ')' - 1`
6716 if test $ac_mid -le $ac_hi; then
6720 ac_mid=`expr 2 '*' $ac_mid`
6722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6725 echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6733 # Binary search between lo and hi bounds.
6734 while test "x$ac_lo" != "x$ac_hi"; do
6735 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6736 cat >conftest.$ac_ext <<_ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6746 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6753 rm -f conftest.$ac_objext
6754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6755 (eval $ac_compile) 2>conftest.er1
6757 grep -v '^ *+' conftest.er1 >conftest.err
6759 cat conftest.err >&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } &&
6762 { ac_try='test -z "$ac_c_werror_flag"
6763 || test ! -s conftest.err'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; } &&
6769 { ac_try='test -s conftest.$ac_objext'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then
6777 echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6780 ac_lo=`expr '(' $ac_mid ')' + 1`
6782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6789 if test "$cross_compiling" = yes; then
6790 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6791 See \`config.log' for more details." >&5
6792 echo "$as_me: error: cannot run test program while cross compiling
6793 See \`config.log' for more details." >&2;}
6794 { (exit 1); exit 1; }; }
6796 cat >conftest.$ac_ext <<_ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6803 long longval () { return ~(size_t)0 % 10; }
6804 unsigned long ulongval () { return ~(size_t)0 % 10; }
6811 FILE *f = fopen ("conftest.val", "w");
6814 if ((~(size_t)0 % 10) < 0)
6816 long i = longval ();
6817 if (i != (~(size_t)0 % 10))
6819 fprintf (f, "%ld\n", i);
6823 unsigned long i = ulongval ();
6824 if (i != (~(size_t)0 % 10))
6826 fprintf (f, "%lu\n", i);
6828 exit (ferror (f) || fclose (f) != 0);
6834 rm -f conftest$ac_exeext
6835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6836 (eval $ac_link) 2>&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; }; then
6845 res_lo=`cat conftest.val`
6847 echo "$as_me: program exited with status $ac_status" >&5
6848 echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6858 if test "$cross_compiling" = yes; then
6859 # Depending upon the size, compute the lo and hi bounds.
6860 cat >conftest.$ac_ext <<_ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h. */
6870 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
6877 rm -f conftest.$ac_objext
6878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6879 (eval $ac_compile) 2>conftest.er1
6881 grep -v '^ *+' conftest.er1 >conftest.err
6883 cat conftest.err >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } &&
6886 { ac_try='test -z "$ac_c_werror_flag"
6887 || test ! -s conftest.err'
6888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; } &&
6893 { ac_try='test -s conftest.$ac_objext'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6901 cat >conftest.$ac_ext <<_ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h. */
6911 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
6918 rm -f conftest.$ac_objext
6919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6920 (eval $ac_compile) 2>conftest.er1
6922 grep -v '^ *+' conftest.er1 >conftest.err
6924 cat conftest.err >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } &&
6927 { ac_try='test -z "$ac_c_werror_flag"
6928 || test ! -s conftest.err'
6929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; } &&
6934 { ac_try='test -s conftest.$ac_objext'
6935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); }; }; then
6940 ac_hi=$ac_mid; break
6942 echo "$as_me: failed program was:" >&5
6943 sed 's/^/| /' conftest.$ac_ext >&5
6945 ac_lo=`expr $ac_mid + 1`
6946 if test $ac_lo -le $ac_mid; then
6950 ac_mid=`expr 2 '*' $ac_mid + 1`
6952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6958 cat >conftest.$ac_ext <<_ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h. */
6968 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
6975 rm -f conftest.$ac_objext
6976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6977 (eval $ac_compile) 2>conftest.er1
6979 grep -v '^ *+' conftest.er1 >conftest.err
6981 cat conftest.err >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } &&
6984 { ac_try='test -z "$ac_c_werror_flag"
6985 || test ! -s conftest.err'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; } &&
6991 { ac_try='test -s conftest.$ac_objext'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; }; then
6999 cat >conftest.$ac_ext <<_ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7009 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7016 rm -f conftest.$ac_objext
7017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7018 (eval $ac_compile) 2>conftest.er1
7020 grep -v '^ *+' conftest.er1 >conftest.err
7022 cat conftest.err >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } &&
7025 { ac_try='test -z "$ac_c_werror_flag"
7026 || test ! -s conftest.err'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; } &&
7032 { ac_try='test -s conftest.$ac_objext'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; }; then
7038 ac_lo=$ac_mid; break
7040 echo "$as_me: failed program was:" >&5
7041 sed 's/^/| /' conftest.$ac_ext >&5
7043 ac_hi=`expr '(' $ac_mid ')' - 1`
7044 if test $ac_mid -le $ac_hi; then
7048 ac_mid=`expr 2 '*' $ac_mid`
7050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7053 echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7061 # Binary search between lo and hi bounds.
7062 while test "x$ac_lo" != "x$ac_hi"; do
7063 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7064 cat >conftest.$ac_ext <<_ACEOF
7067 cat confdefs.h >>conftest.$ac_ext
7068 cat >>conftest.$ac_ext <<_ACEOF
7069 /* end confdefs.h. */
7074 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7081 rm -f conftest.$ac_objext
7082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7083 (eval $ac_compile) 2>conftest.er1
7085 grep -v '^ *+' conftest.er1 >conftest.err
7087 cat conftest.err >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } &&
7090 { ac_try='test -z "$ac_c_werror_flag"
7091 || test ! -s conftest.err'
7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; } &&
7097 { ac_try='test -s conftest.$ac_objext'
7098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); }; }; then
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7108 ac_lo=`expr '(' $ac_mid ')' + 1`
7110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7113 ?*) fits_in_uint=$ac_lo;;
7117 if test "$cross_compiling" = yes; then
7118 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7119 See \`config.log' for more details." >&5
7120 echo "$as_me: error: cannot run test program while cross compiling
7121 See \`config.log' for more details." >&2;}
7122 { (exit 1); exit 1; }; }
7124 cat >conftest.$ac_ext <<_ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7131 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7132 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7139 FILE *f = fopen ("conftest.val", "w");
7142 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7144 long i = longval ();
7145 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7147 fprintf (f, "%ld\n", i);
7151 unsigned long i = ulongval ();
7152 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7154 fprintf (f, "%lu\n", i);
7156 exit (ferror (f) || fclose (f) != 0);
7162 rm -f conftest$ac_exeext
7163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7164 (eval $ac_link) 2>&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; }; then
7173 fits_in_uint=`cat conftest.val`
7175 echo "$as_me: program exited with status $ac_status" >&5
7176 echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7186 if test "$fits_in_uint" = 1; then
7187 cat >conftest.$ac_ext <<_ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7195 extern unsigned long foo;
7205 rm -f conftest.$ac_objext
7206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7207 (eval $ac_compile) 2>conftest.er1
7209 grep -v '^ *+' conftest.er1 >conftest.err
7211 cat conftest.err >&5
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); } &&
7214 { ac_try='test -z "$ac_c_werror_flag"
7215 || test ! -s conftest.err'
7216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); }; } &&
7221 { ac_try='test -s conftest.$ac_objext'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; }; then
7229 echo "$as_me: failed program was:" >&5
7230 sed 's/^/| /' conftest.$ac_ext >&5
7233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7235 if test -z "$result"; then
7236 if test "$fits_in_uint" = 1; then
7237 result="$res_hi$res_lo"U
7239 result="$res_hi$res_lo"UL
7245 echo "$as_me:$LINENO: result: $result" >&5
7246 echo "${ECHO_T}$result" >&6
7247 if test "$result" != yes; then
7249 cat >>confdefs.h <<_ACEOF
7250 #define SIZE_MAX $result
7259 for ac_header in stdint.h
7261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7263 echo "$as_me:$LINENO: checking for $ac_header" >&5
7264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7271 # Is the header compilable?
7272 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7274 cat >conftest.$ac_ext <<_ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7280 $ac_includes_default
7281 #include <$ac_header>
7283 rm -f conftest.$ac_objext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7285 (eval $ac_compile) 2>conftest.er1
7287 grep -v '^ *+' conftest.er1 >conftest.err
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } &&
7292 { ac_try='test -z "$ac_c_werror_flag"
7293 || test ! -s conftest.err'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; } &&
7299 { ac_try='test -s conftest.$ac_objext'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; }; then
7305 ac_header_compiler=yes
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7310 ac_header_compiler=no
7312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7314 echo "${ECHO_T}$ac_header_compiler" >&6
7316 # Is the header present?
7317 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7318 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7319 cat >conftest.$ac_ext <<_ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7325 #include <$ac_header>
7327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7330 grep -v '^ *+' conftest.er1 >conftest.err
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } >/dev/null; then
7335 if test -s conftest.err; then
7336 ac_cpp_err=$ac_c_preproc_warn_flag
7337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7344 if test -z "$ac_cpp_err"; then
7345 ac_header_preproc=yes
7347 echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7350 ac_header_preproc=no
7352 rm -f conftest.err conftest.$ac_ext
7353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7354 echo "${ECHO_T}$ac_header_preproc" >&6
7356 # So? What about this header?
7357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7363 ac_header_preproc=yes
7366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7369 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7373 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7380 ## ------------------------------------------ ##
7381 ## Report this to the AC_PACKAGE_NAME lists. ##
7382 ## ------------------------------------------ ##
7385 sed "s/^/$as_me: WARNING: /" >&2
7388 echo "$as_me:$LINENO: checking for $ac_header" >&5
7389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 eval "$as_ac_Header=\$ac_header_preproc"
7395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7400 cat >>confdefs.h <<_ACEOF
7401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7410 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
7411 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
7412 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 gt_save_CPPFLAGS="$CPPFLAGS"
7416 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
7417 gt_save_LIBS="$LIBS"
7418 LIBS="$LIBS -framework CoreFoundation"
7419 cat >conftest.$ac_ext <<_ACEOF
7422 cat confdefs.h >>conftest.$ac_ext
7423 cat >>conftest.$ac_ext <<_ACEOF
7424 /* end confdefs.h. */
7425 #include <CFPreferences.h>
7429 CFPreferencesCopyAppValue(NULL, NULL)
7434 rm -f conftest.$ac_objext conftest$ac_exeext
7435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7436 (eval $ac_link) 2>conftest.er1
7438 grep -v '^ *+' conftest.er1 >conftest.err
7440 cat conftest.err >&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } &&
7443 { ac_try='test -z "$ac_c_werror_flag"
7444 || test ! -s conftest.err'
7445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; } &&
7450 { ac_try='test -s conftest$ac_exeext'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7456 gt_cv_func_CFPreferencesCopyAppValue=yes
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7461 gt_cv_func_CFPreferencesCopyAppValue=no
7463 rm -f conftest.err conftest.$ac_objext \
7464 conftest$ac_exeext conftest.$ac_ext
7465 CPPFLAGS="$gt_save_CPPFLAGS"
7466 LIBS="$gt_save_LIBS"
7468 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7469 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
7470 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7472 cat >>confdefs.h <<\_ACEOF
7473 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
7477 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
7478 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
7479 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 gt_save_CPPFLAGS="$CPPFLAGS"
7483 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
7484 gt_save_LIBS="$LIBS"
7485 LIBS="$LIBS -framework CoreFoundation"
7486 cat >conftest.$ac_ext <<_ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7492 #include <CFLocale.h>
7496 CFLocaleCopyCurrent();
7501 rm -f conftest.$ac_objext conftest$ac_exeext
7502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7503 (eval $ac_link) 2>conftest.er1
7505 grep -v '^ *+' conftest.er1 >conftest.err
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } &&
7510 { ac_try='test -z "$ac_c_werror_flag"
7511 || test ! -s conftest.err'
7512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); }; } &&
7517 { ac_try='test -s conftest$ac_exeext'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; }; then
7523 gt_cv_func_CFLocaleCopyCurrent=yes
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7528 gt_cv_func_CFLocaleCopyCurrent=no
7530 rm -f conftest.err conftest.$ac_objext \
7531 conftest$ac_exeext conftest.$ac_ext
7532 CPPFLAGS="$gt_save_CPPFLAGS"
7533 LIBS="$gt_save_LIBS"
7535 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
7536 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
7537 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7539 cat >>confdefs.h <<\_ACEOF
7540 #define HAVE_CFLOCALECOPYCURRENT 1
7545 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7546 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
7551 if test "X$prefix" = "XNONE"; then
7552 acl_final_prefix="$ac_default_prefix"
7554 acl_final_prefix="$prefix"
7556 if test "X$exec_prefix" = "XNONE"; then
7557 acl_final_exec_prefix='${prefix}'
7559 acl_final_exec_prefix="$exec_prefix"
7561 acl_save_prefix="$prefix"
7562 prefix="$acl_final_prefix"
7563 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7564 prefix="$acl_save_prefix"
7567 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7568 if test "${with_gnu_ld+set}" = set; then
7569 withval="$with_gnu_ld"
7570 test "$withval" = no || with_gnu_ld=yes
7574 # Prepare PATH_SEPARATOR.
7575 # The user is always right.
7576 if test "${PATH_SEPARATOR+set}" != set; then
7577 echo "#! /bin/sh" >conf$$.sh
7578 echo "exit 0" >>conf$$.sh
7580 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7588 if test "$GCC" = yes; then
7589 # Check if gcc -print-prog-name=ld gives a path.
7590 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7591 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7594 # gcc leaves a trailing carriage return which upsets mingw
7595 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7597 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7600 # Accept absolute paths.
7601 [\\/]* | [A-Za-z]:[\\/]*)
7602 re_direlt='/[^/][^/]*/\.\./'
7603 # Canonicalize the path of ld
7604 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7605 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7606 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7608 test -z "$LD" && LD="$ac_prog"
7611 # If it fails, then pretend we aren't using GCC.
7615 # If it is relative, then search for the first ld in PATH.
7619 elif test "$with_gnu_ld" = yes; then
7620 echo "$as_me:$LINENO: checking for GNU ld" >&5
7621 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7623 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7624 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7626 if test "${acl_cv_path_LD+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 if test -z "$LD"; then
7630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7631 for ac_dir in $PATH; do
7632 test -z "$ac_dir" && ac_dir=.
7633 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7634 acl_cv_path_LD="$ac_dir/$ac_prog"
7635 # Check to see if the program is GNU ld. I'd rather use --version,
7636 # but apparently some GNU ld's only accept -v.
7637 # Break only if it was the GNU/non-GNU ld that we prefer.
7638 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7639 *GNU* | *'with BFD'*)
7640 test "$with_gnu_ld" != no && break ;;
7642 test "$with_gnu_ld" != yes && break ;;
7648 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7652 LD="$acl_cv_path_LD"
7653 if test -n "$LD"; then
7654 echo "$as_me:$LINENO: result: $LD" >&5
7655 echo "${ECHO_T}$LD" >&6
7657 echo "$as_me:$LINENO: result: no" >&5
7658 echo "${ECHO_T}no" >&6
7660 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7661 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7662 { (exit 1); exit 1; }; }
7663 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7664 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7665 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7669 case `$LD -v 2>&1 </dev/null` in
7670 *GNU* | *'with BFD'*)
7671 acl_cv_prog_gnu_ld=yes ;;
7673 acl_cv_prog_gnu_ld=no ;;
7676 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7677 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7678 with_gnu_ld=$acl_cv_prog_gnu_ld
7683 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7684 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7685 if test "${acl_cv_rpath+set}" = set; then
7686 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7690 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7696 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7697 echo "${ECHO_T}$acl_cv_rpath" >&6
7699 libext="$acl_cv_libext"
7700 shlibext="$acl_cv_shlibext"
7701 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7702 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7703 hardcode_direct="$acl_cv_hardcode_direct"
7704 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7705 # Check whether --enable-rpath or --disable-rpath was given.
7706 if test "${enable_rpath+set}" = set; then
7707 enableval="$enable_rpath"
7721 acl_save_prefix="$prefix"
7722 prefix="$acl_final_prefix"
7723 acl_save_exec_prefix="$exec_prefix"
7724 exec_prefix="$acl_final_exec_prefix"
7726 eval additional_includedir=\"$includedir\"
7727 eval additional_libdir=\"$libdir\"
7729 exec_prefix="$acl_save_exec_prefix"
7730 prefix="$acl_save_prefix"
7733 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7734 if test "${with_libiconv_prefix+set}" = set; then
7735 withval="$with_libiconv_prefix"
7737 if test "X$withval" = "Xno"; then
7740 if test "X$withval" = "X"; then
7742 acl_save_prefix="$prefix"
7743 prefix="$acl_final_prefix"
7744 acl_save_exec_prefix="$exec_prefix"
7745 exec_prefix="$acl_final_exec_prefix"
7747 eval additional_includedir=\"$includedir\"
7748 eval additional_libdir=\"$libdir\"
7750 exec_prefix="$acl_save_exec_prefix"
7751 prefix="$acl_save_prefix"
7754 additional_includedir="$withval/include"
7755 additional_libdir="$withval/lib"
7765 names_already_handled=
7766 names_next_round='iconv '
7767 while test -n "$names_next_round"; do
7768 names_this_round="$names_next_round"
7770 for name in $names_this_round; do
7772 for n in $names_already_handled; do
7773 if test "$n" = "$name"; then
7778 if test -z "$already_handled"; then
7779 names_already_handled="$names_already_handled $name"
7780 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7781 eval value=\"\$HAVE_LIB$uppername\"
7782 if test -n "$value"; then
7783 if test "$value" = yes; then
7784 eval value=\"\$LIB$uppername\"
7785 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7786 eval value=\"\$LTLIB$uppername\"
7787 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7796 if test $use_additional = yes; then
7797 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7798 found_dir="$additional_libdir"
7799 found_so="$additional_libdir/lib$name.$shlibext"
7800 if test -f "$additional_libdir/lib$name.la"; then
7801 found_la="$additional_libdir/lib$name.la"
7804 if test -f "$additional_libdir/lib$name.$libext"; then
7805 found_dir="$additional_libdir"
7806 found_a="$additional_libdir/lib$name.$libext"
7807 if test -f "$additional_libdir/lib$name.la"; then
7808 found_la="$additional_libdir/lib$name.la"
7813 if test "X$found_dir" = "X"; then
7814 for x in $LDFLAGS $LTLIBICONV; do
7816 acl_save_prefix="$prefix"
7817 prefix="$acl_final_prefix"
7818 acl_save_exec_prefix="$exec_prefix"
7819 exec_prefix="$acl_final_exec_prefix"
7821 exec_prefix="$acl_save_exec_prefix"
7822 prefix="$acl_save_prefix"
7826 dir=`echo "X$x" | sed -e 's/^X-L//'`
7827 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7829 found_so="$dir/lib$name.$shlibext"
7830 if test -f "$dir/lib$name.la"; then
7831 found_la="$dir/lib$name.la"
7834 if test -f "$dir/lib$name.$libext"; then
7836 found_a="$dir/lib$name.$libext"
7837 if test -f "$dir/lib$name.la"; then
7838 found_la="$dir/lib$name.la"
7844 if test "X$found_dir" != "X"; then
7849 if test "X$found_dir" != "X"; then
7850 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7851 if test "X$found_so" != "X"; then
7852 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7853 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7856 for x in $ltrpathdirs; do
7857 if test "X$x" = "X$found_dir"; then
7862 if test -z "$haveit"; then
7863 ltrpathdirs="$ltrpathdirs $found_dir"
7865 if test "$hardcode_direct" = yes; then
7866 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7868 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7869 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7871 for x in $rpathdirs; do
7872 if test "X$x" = "X$found_dir"; then
7877 if test -z "$haveit"; then
7878 rpathdirs="$rpathdirs $found_dir"
7882 for x in $LDFLAGS $LIBICONV; do
7884 acl_save_prefix="$prefix"
7885 prefix="$acl_final_prefix"
7886 acl_save_exec_prefix="$exec_prefix"
7887 exec_prefix="$acl_final_exec_prefix"
7889 exec_prefix="$acl_save_exec_prefix"
7890 prefix="$acl_save_prefix"
7892 if test "X$x" = "X-L$found_dir"; then
7897 if test -z "$haveit"; then
7898 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7900 if test "$hardcode_minus_L" != no; then
7901 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7903 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7909 if test "X$found_a" != "X"; then
7910 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7912 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7915 additional_includedir=
7916 case "$found_dir" in
7918 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7919 additional_includedir="$basedir/include"
7922 if test "X$additional_includedir" != "X"; then
7923 if test "X$additional_includedir" != "X/usr/include"; then
7925 if test "X$additional_includedir" = "X/usr/local/include"; then
7926 if test -n "$GCC"; then
7928 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7932 if test -z "$haveit"; then
7933 for x in $CPPFLAGS $INCICONV; do
7935 acl_save_prefix="$prefix"
7936 prefix="$acl_final_prefix"
7937 acl_save_exec_prefix="$exec_prefix"
7938 exec_prefix="$acl_final_exec_prefix"
7940 exec_prefix="$acl_save_exec_prefix"
7941 prefix="$acl_save_prefix"
7943 if test "X$x" = "X-I$additional_includedir"; then
7948 if test -z "$haveit"; then
7949 if test -d "$additional_includedir"; then
7950 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7956 if test -n "$found_la"; then
7957 save_libdir="$libdir"
7959 */* | *\\*) . "$found_la" ;;
7960 *) . "./$found_la" ;;
7962 libdir="$save_libdir"
7963 for dep in $dependency_libs; do
7966 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7967 if test "X$additional_libdir" != "X/usr/lib"; then
7969 if test "X$additional_libdir" = "X/usr/local/lib"; then
7970 if test -n "$GCC"; then
7972 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7976 if test -z "$haveit"; then
7978 for x in $LDFLAGS $LIBICONV; do
7980 acl_save_prefix="$prefix"
7981 prefix="$acl_final_prefix"
7982 acl_save_exec_prefix="$exec_prefix"
7983 exec_prefix="$acl_final_exec_prefix"
7985 exec_prefix="$acl_save_exec_prefix"
7986 prefix="$acl_save_prefix"
7988 if test "X$x" = "X-L$additional_libdir"; then
7993 if test -z "$haveit"; then
7994 if test -d "$additional_libdir"; then
7995 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7999 for x in $LDFLAGS $LTLIBICONV; do
8001 acl_save_prefix="$prefix"
8002 prefix="$acl_final_prefix"
8003 acl_save_exec_prefix="$exec_prefix"
8004 exec_prefix="$acl_final_exec_prefix"
8006 exec_prefix="$acl_save_exec_prefix"
8007 prefix="$acl_save_prefix"
8009 if test "X$x" = "X-L$additional_libdir"; then
8014 if test -z "$haveit"; then
8015 if test -d "$additional_libdir"; then
8016 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8023 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8024 if test "$enable_rpath" != no; then
8026 for x in $rpathdirs; do
8027 if test "X$x" = "X$dir"; then
8032 if test -z "$haveit"; then
8033 rpathdirs="$rpathdirs $dir"
8036 for x in $ltrpathdirs; do
8037 if test "X$x" = "X$dir"; then
8042 if test -z "$haveit"; then
8043 ltrpathdirs="$ltrpathdirs $dir"
8048 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8051 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8054 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8055 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8061 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8062 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8068 if test "X$rpathdirs" != "X"; then
8069 if test -n "$hardcode_libdir_separator"; then
8071 for found_dir in $rpathdirs; do
8072 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8074 acl_save_libdir="$libdir"
8076 eval flag=\"$hardcode_libdir_flag_spec\"
8077 libdir="$acl_save_libdir"
8078 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8080 for found_dir in $rpathdirs; do
8081 acl_save_libdir="$libdir"
8083 eval flag=\"$hardcode_libdir_flag_spec\"
8084 libdir="$acl_save_libdir"
8085 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8089 if test "X$ltrpathdirs" != "X"; then
8090 for found_dir in $ltrpathdirs; do
8091 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8102 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8103 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
8104 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 cat >conftest.$ac_ext <<_ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h. */
8113 $ac_includes_default
8117 if ((ptrdiff_t *) 0)
8119 if (sizeof (ptrdiff_t))
8125 rm -f conftest.$ac_objext
8126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8127 (eval $ac_compile) 2>conftest.er1
8129 grep -v '^ *+' conftest.er1 >conftest.err
8131 cat conftest.err >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } &&
8134 { ac_try='test -z "$ac_c_werror_flag"
8135 || test ! -s conftest.err'
8136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; } &&
8141 { ac_try='test -s conftest.$ac_objext'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; }; then
8147 ac_cv_type_ptrdiff_t=yes
8149 echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8152 ac_cv_type_ptrdiff_t=no
8154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8156 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8157 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8158 if test $ac_cv_type_ptrdiff_t = yes; then
8162 cat >>confdefs.h <<\_ACEOF
8163 #define ptrdiff_t long
8179 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8180 stdlib.h string.h unistd.h sys/param.h
8182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8184 echo "$as_me:$LINENO: checking for $ac_header" >&5
8185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8192 # Is the header compilable?
8193 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8195 cat >conftest.$ac_ext <<_ACEOF
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h. */
8201 $ac_includes_default
8202 #include <$ac_header>
8204 rm -f conftest.$ac_objext
8205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8206 (eval $ac_compile) 2>conftest.er1
8208 grep -v '^ *+' conftest.er1 >conftest.err
8210 cat conftest.err >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } &&
8213 { ac_try='test -z "$ac_c_werror_flag"
8214 || test ! -s conftest.err'
8215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; } &&
8220 { ac_try='test -s conftest.$ac_objext'
8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; }; then
8226 ac_header_compiler=yes
8228 echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.$ac_ext >&5
8231 ac_header_compiler=no
8233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8235 echo "${ECHO_T}$ac_header_compiler" >&6
8237 # Is the header present?
8238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8240 cat >conftest.$ac_ext <<_ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h. */
8246 #include <$ac_header>
8248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8251 grep -v '^ *+' conftest.er1 >conftest.err
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } >/dev/null; then
8256 if test -s conftest.err; then
8257 ac_cpp_err=$ac_c_preproc_warn_flag
8258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8265 if test -z "$ac_cpp_err"; then
8266 ac_header_preproc=yes
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8271 ac_header_preproc=no
8273 rm -f conftest.err conftest.$ac_ext
8274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8275 echo "${ECHO_T}$ac_header_preproc" >&6
8277 # So? What about this header?
8278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8284 ac_header_preproc=yes
8287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8301 ## ------------------------------------------ ##
8302 ## Report this to the AC_PACKAGE_NAME lists. ##
8303 ## ------------------------------------------ ##
8306 sed "s/^/$as_me: WARNING: /" >&2
8309 echo "$as_me:$LINENO: checking for $ac_header" >&5
8310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 eval "$as_ac_Header=\$ac_header_preproc"
8316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8321 cat >>confdefs.h <<_ACEOF
8322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8352 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8353 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8354 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8358 echo "$as_me:$LINENO: checking for $ac_func" >&5
8359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8360 if eval "test \"\${$as_ac_var+set}\" = set"; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 cat >conftest.$ac_ext <<_ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h. */
8369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8371 #define $ac_func innocuous_$ac_func
8373 /* System header to define __stub macros and hopefully few prototypes,
8374 which can conflict with char $ac_func (); below.
8375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8376 <limits.h> exists even on freestanding compilers. */
8379 # include <limits.h>
8381 # include <assert.h>
8386 /* Override any gcc2 internal prototype to avoid an error. */
8391 /* We use char because int might match the return type of a gcc2
8392 builtin and then its argument prototype would still apply. */
8394 /* The GNU C library defines this for functions which it implements
8395 to always fail with ENOSYS. Some functions are actually named
8396 something starting with __ and the normal name is an alias. */
8397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8400 char (*f) () = $ac_func;
8409 return f != $ac_func;
8414 rm -f conftest.$ac_objext conftest$ac_exeext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8416 (eval $ac_link) 2>conftest.er1
8418 grep -v '^ *+' conftest.er1 >conftest.err
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -z "$ac_c_werror_flag"
8424 || test ! -s conftest.err'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; } &&
8430 { ac_try='test -s conftest$ac_exeext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 eval "$as_ac_var=yes"
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8441 eval "$as_ac_var=no"
8443 rm -f conftest.err conftest.$ac_objext \
8444 conftest$ac_exeext conftest.$ac_ext
8446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8448 if test `eval echo '${'$as_ac_var'}'` = yes; then
8449 cat >>confdefs.h <<_ACEOF
8450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8458 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8459 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8460 if test "${ac_cv_have_decl__snprintf+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 cat >conftest.$ac_ext <<_ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8475 char *p = (char *) _snprintf;
8482 rm -f conftest.$ac_objext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8484 (eval $ac_compile) 2>conftest.er1
8486 grep -v '^ *+' conftest.er1 >conftest.err
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } &&
8491 { ac_try='test -z "$ac_c_werror_flag"
8492 || test ! -s conftest.err'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; } &&
8498 { ac_try='test -s conftest.$ac_objext'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8504 ac_cv_have_decl__snprintf=yes
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8509 ac_cv_have_decl__snprintf=no
8511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8513 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8514 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8515 if test $ac_cv_have_decl__snprintf = yes; then
8521 cat >>confdefs.h <<_ACEOF
8522 #define HAVE_DECL__SNPRINTF $gt_value
8527 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8528 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8529 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 cat >conftest.$ac_ext <<_ACEOF
8535 cat confdefs.h >>conftest.$ac_ext
8536 cat >>conftest.$ac_ext <<_ACEOF
8537 /* end confdefs.h. */
8544 char *p = (char *) _snwprintf;
8551 rm -f conftest.$ac_objext
8552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8553 (eval $ac_compile) 2>conftest.er1
8555 grep -v '^ *+' conftest.er1 >conftest.err
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try='test -z "$ac_c_werror_flag"
8561 || test ! -s conftest.err'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; } &&
8567 { ac_try='test -s conftest.$ac_objext'
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 ac_cv_have_decl__snwprintf=yes
8575 echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.$ac_ext >&5
8578 ac_cv_have_decl__snwprintf=no
8580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8582 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8583 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8584 if test $ac_cv_have_decl__snwprintf = yes; then
8590 cat >>confdefs.h <<_ACEOF
8591 #define HAVE_DECL__SNWPRINTF $gt_value
8597 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8598 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8599 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
8602 cat >conftest.$ac_ext <<_ACEOF
8605 cat confdefs.h >>conftest.$ac_ext
8606 cat >>conftest.$ac_ext <<_ACEOF
8607 /* end confdefs.h. */
8613 #ifndef feof_unlocked
8614 char *p = (char *) feof_unlocked;
8621 rm -f conftest.$ac_objext
8622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8623 (eval $ac_compile) 2>conftest.er1
8625 grep -v '^ *+' conftest.er1 >conftest.err
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } &&
8630 { ac_try='test -z "$ac_c_werror_flag"
8631 || test ! -s conftest.err'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; } &&
8637 { ac_try='test -s conftest.$ac_objext'
8638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; }; then
8643 ac_cv_have_decl_feof_unlocked=yes
8645 echo "$as_me: failed program was:" >&5
8646 sed 's/^/| /' conftest.$ac_ext >&5
8648 ac_cv_have_decl_feof_unlocked=no
8650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8652 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8653 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
8654 if test $ac_cv_have_decl_feof_unlocked = yes; then
8660 cat >>confdefs.h <<_ACEOF
8661 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8666 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8667 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
8668 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8671 cat >conftest.$ac_ext <<_ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h. */
8682 #ifndef fgets_unlocked
8683 char *p = (char *) fgets_unlocked;
8690 rm -f conftest.$ac_objext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8692 (eval $ac_compile) 2>conftest.er1
8694 grep -v '^ *+' conftest.er1 >conftest.err
8696 cat conftest.err >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } &&
8699 { ac_try='test -z "$ac_c_werror_flag"
8700 || test ! -s conftest.err'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; } &&
8706 { ac_try='test -s conftest.$ac_objext'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 ac_cv_have_decl_fgets_unlocked=yes
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8717 ac_cv_have_decl_fgets_unlocked=no
8719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8721 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8722 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
8723 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8729 cat >>confdefs.h <<_ACEOF
8730 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8735 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8736 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8737 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 cat >conftest.$ac_ext <<_ACEOF
8743 cat confdefs.h >>conftest.$ac_ext
8744 cat >>conftest.$ac_ext <<_ACEOF
8745 /* end confdefs.h. */
8751 #ifndef getc_unlocked
8752 char *p = (char *) getc_unlocked;
8759 rm -f conftest.$ac_objext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8761 (eval $ac_compile) 2>conftest.er1
8763 grep -v '^ *+' conftest.er1 >conftest.err
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } &&
8768 { ac_try='test -z "$ac_c_werror_flag"
8769 || test ! -s conftest.err'
8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; } &&
8775 { ac_try='test -s conftest.$ac_objext'
8776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; }; then
8781 ac_cv_have_decl_getc_unlocked=yes
8783 echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.$ac_ext >&5
8786 ac_cv_have_decl_getc_unlocked=no
8788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8790 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8791 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8792 if test $ac_cv_have_decl_getc_unlocked = yes; then
8798 cat >>confdefs.h <<_ACEOF
8799 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8804 case $gt_cv_func_printf_posix in
8805 *yes) HAVE_POSIX_PRINTF=1 ;;
8806 *) HAVE_POSIX_PRINTF=0 ;;
8809 if test "$ac_cv_func_asprintf" = yes; then
8815 if test "$ac_cv_func_snprintf" = yes; then
8821 if test "$ac_cv_func_wprintf" = yes; then
8833 am_save_CPPFLAGS="$CPPFLAGS"
8835 for element in $INCICONV; do
8837 for x in $CPPFLAGS; do
8839 acl_save_prefix="$prefix"
8840 prefix="$acl_final_prefix"
8841 acl_save_exec_prefix="$exec_prefix"
8842 exec_prefix="$acl_final_exec_prefix"
8844 exec_prefix="$acl_save_exec_prefix"
8845 prefix="$acl_save_prefix"
8847 if test "X$x" = "X$element"; then
8852 if test -z "$haveit"; then
8853 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8858 echo "$as_me:$LINENO: checking for iconv" >&5
8859 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8860 if test "${am_cv_func_iconv+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8864 am_cv_func_iconv="no, consider installing GNU libiconv"
8866 cat >conftest.$ac_ext <<_ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h. */
8877 iconv_t cd = iconv_open("","");
8878 iconv(cd,NULL,NULL,NULL,NULL);
8884 rm -f conftest.$ac_objext conftest$ac_exeext
8885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8886 (eval $ac_link) 2>conftest.er1
8888 grep -v '^ *+' conftest.er1 >conftest.err
8890 cat conftest.err >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } &&
8893 { ac_try='test -z "$ac_c_werror_flag"
8894 || test ! -s conftest.err'
8895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); }; } &&
8900 { ac_try='test -s conftest$ac_exeext'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
8906 am_cv_func_iconv=yes
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8912 rm -f conftest.err conftest.$ac_objext \
8913 conftest$ac_exeext conftest.$ac_ext
8914 if test "$am_cv_func_iconv" != yes; then
8915 am_save_LIBS="$LIBS"
8916 LIBS="$LIBS $LIBICONV"
8917 cat >conftest.$ac_ext <<_ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8928 iconv_t cd = iconv_open("","");
8929 iconv(cd,NULL,NULL,NULL,NULL);
8935 rm -f conftest.$ac_objext conftest$ac_exeext
8936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8937 (eval $ac_link) 2>conftest.er1
8939 grep -v '^ *+' conftest.er1 >conftest.err
8941 cat conftest.err >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } &&
8944 { ac_try='test -z "$ac_c_werror_flag"
8945 || test ! -s conftest.err'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; } &&
8951 { ac_try='test -s conftest$ac_exeext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8958 am_cv_func_iconv=yes
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8964 rm -f conftest.err conftest.$ac_objext \
8965 conftest$ac_exeext conftest.$ac_ext
8966 LIBS="$am_save_LIBS"
8970 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8971 echo "${ECHO_T}$am_cv_func_iconv" >&6
8972 if test "$am_cv_func_iconv" = yes; then
8974 cat >>confdefs.h <<\_ACEOF
8975 #define HAVE_ICONV 1
8979 if test "$am_cv_lib_iconv" = yes; then
8980 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8981 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8982 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8983 echo "${ECHO_T}$LIBICONV" >&6
8985 CPPFLAGS="$am_save_CPPFLAGS"
8992 if test "$am_cv_func_iconv" = yes; then
8993 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8994 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8995 if test "${am_cv_proto_iconv+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8999 cat >conftest.$ac_ext <<_ACEOF
9002 cat confdefs.h >>conftest.$ac_ext
9003 cat >>conftest.$ac_ext <<_ACEOF
9004 /* end confdefs.h. */
9012 #if defined(__STDC__) || defined(__cplusplus)
9013 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9026 rm -f conftest.$ac_objext
9027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9028 (eval $ac_compile) 2>conftest.er1
9030 grep -v '^ *+' conftest.er1 >conftest.err
9032 cat conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } &&
9035 { ac_try='test -z "$ac_c_werror_flag"
9036 || test ! -s conftest.err'
9037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; } &&
9042 { ac_try='test -s conftest.$ac_objext'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; }; then
9048 am_cv_proto_iconv_arg1=""
9050 echo "$as_me: failed program was:" >&5
9051 sed 's/^/| /' conftest.$ac_ext >&5
9053 am_cv_proto_iconv_arg1="const"
9055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9056 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);"
9059 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9060 echo "$as_me:$LINENO: result: ${ac_t:-
9061 }$am_cv_proto_iconv" >&5
9062 echo "${ECHO_T}${ac_t:-
9063 }$am_cv_proto_iconv" >&6
9065 cat >>confdefs.h <<_ACEOF
9066 #define ICONV_CONST $am_cv_proto_iconv_arg1
9072 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9073 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
9074 if test "${am_cv_langinfo_codeset+set}" = set; then
9075 echo $ECHO_N "(cached) $ECHO_C" >&6
9077 cat >conftest.$ac_ext <<_ACEOF
9080 cat confdefs.h >>conftest.$ac_ext
9081 cat >>conftest.$ac_ext <<_ACEOF
9082 /* end confdefs.h. */
9083 #include <langinfo.h>
9087 char* cs = nl_langinfo(CODESET);
9092 rm -f conftest.$ac_objext conftest$ac_exeext
9093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9094 (eval $ac_link) 2>conftest.er1
9096 grep -v '^ *+' conftest.er1 >conftest.err
9098 cat conftest.err >&5
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 (exit $ac_status); } &&
9101 { ac_try='test -z "$ac_c_werror_flag"
9102 || test ! -s conftest.err'
9103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); }; } &&
9108 { ac_try='test -s conftest$ac_exeext'
9109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); }; }; then
9114 am_cv_langinfo_codeset=yes
9116 echo "$as_me: failed program was:" >&5
9117 sed 's/^/| /' conftest.$ac_ext >&5
9119 am_cv_langinfo_codeset=no
9121 rm -f conftest.err conftest.$ac_objext \
9122 conftest$ac_exeext conftest.$ac_ext
9125 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9126 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9127 if test $am_cv_langinfo_codeset = yes; then
9129 cat >>confdefs.h <<\_ACEOF
9130 #define HAVE_LANGINFO_CODESET 1
9135 if test $ac_cv_header_locale_h = yes; then
9137 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9138 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9139 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
9140 echo $ECHO_N "(cached) $ECHO_C" >&6
9142 cat >conftest.$ac_ext <<_ACEOF
9145 cat confdefs.h >>conftest.$ac_ext
9146 cat >>conftest.$ac_ext <<_ACEOF
9147 /* end confdefs.h. */
9157 rm -f conftest.$ac_objext conftest$ac_exeext
9158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9159 (eval $ac_link) 2>conftest.er1
9161 grep -v '^ *+' conftest.er1 >conftest.err
9163 cat conftest.err >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } &&
9166 { ac_try='test -z "$ac_c_werror_flag"
9167 || test ! -s conftest.err'
9168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; } &&
9173 { ac_try='test -s conftest$ac_exeext'
9174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; }; then
9179 gt_cv_val_LC_MESSAGES=yes
9181 echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9184 gt_cv_val_LC_MESSAGES=no
9186 rm -f conftest.err conftest.$ac_objext \
9187 conftest$ac_exeext conftest.$ac_ext
9189 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
9190 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
9191 if test $gt_cv_val_LC_MESSAGES = yes; then
9193 cat >>confdefs.h <<\_ACEOF
9194 #define HAVE_LC_MESSAGES 1
9201 if test -n "$INTL_MACOSX_LIBS"; then
9202 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
9205 for ac_prog in bison
9207 # Extract the first word of "$ac_prog", so it can be a program name with args.
9208 set dummy $ac_prog; ac_word=$2
9209 echo "$as_me:$LINENO: checking for $ac_word" >&5
9210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9211 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 if test -n "$INTLBISON"; then
9215 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221 test -z "$as_dir" && as_dir=.
9222 for ac_exec_ext in '' $ac_executable_extensions; do
9223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9224 ac_cv_prog_INTLBISON="$ac_prog"
9225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9233 INTLBISON=$ac_cv_prog_INTLBISON
9234 if test -n "$INTLBISON"; then
9235 echo "$as_me:$LINENO: result: $INTLBISON" >&5
9236 echo "${ECHO_T}$INTLBISON" >&6
9238 echo "$as_me:$LINENO: result: no" >&5
9239 echo "${ECHO_T}no" >&6
9242 test -n "$INTLBISON" && break
9245 if test -z "$INTLBISON"; then
9248 echo "$as_me:$LINENO: checking version of bison" >&5
9249 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
9250 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9251 case $ac_prog_version in
9252 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9253 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9254 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9255 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9257 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9258 echo "${ECHO_T}$ac_prog_version" >&6
9260 if test $ac_verc_fail = yes; then
9279 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
9280 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
9281 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9284 gt_save_CPPFLAGS="$CPPFLAGS"
9285 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
9286 gt_save_LIBS="$LIBS"
9287 LIBS="$LIBS -framework CoreFoundation"
9288 cat >conftest.$ac_ext <<_ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h. */
9294 #include <CFPreferences.h>
9298 CFPreferencesCopyAppValue(NULL, NULL)
9303 rm -f conftest.$ac_objext conftest$ac_exeext
9304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9305 (eval $ac_link) 2>conftest.er1
9307 grep -v '^ *+' conftest.er1 >conftest.err
9309 cat conftest.err >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } &&
9312 { ac_try='test -z "$ac_c_werror_flag"
9313 || test ! -s conftest.err'
9314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; } &&
9319 { ac_try='test -s conftest$ac_exeext'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; }; then
9325 gt_cv_func_CFPreferencesCopyAppValue=yes
9327 echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.$ac_ext >&5
9330 gt_cv_func_CFPreferencesCopyAppValue=no
9332 rm -f conftest.err conftest.$ac_objext \
9333 conftest$ac_exeext conftest.$ac_ext
9334 CPPFLAGS="$gt_save_CPPFLAGS"
9335 LIBS="$gt_save_LIBS"
9337 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9338 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
9339 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9341 cat >>confdefs.h <<\_ACEOF
9342 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
9346 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
9347 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
9348 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 gt_save_CPPFLAGS="$CPPFLAGS"
9352 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
9353 gt_save_LIBS="$LIBS"
9354 LIBS="$LIBS -framework CoreFoundation"
9355 cat >conftest.$ac_ext <<_ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9361 #include <CFLocale.h>
9365 CFLocaleCopyCurrent();
9370 rm -f conftest.$ac_objext conftest$ac_exeext
9371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9372 (eval $ac_link) 2>conftest.er1
9374 grep -v '^ *+' conftest.er1 >conftest.err
9376 cat conftest.err >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } &&
9379 { ac_try='test -z "$ac_c_werror_flag"
9380 || test ! -s conftest.err'
9381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); }; } &&
9386 { ac_try='test -s conftest$ac_exeext'
9387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); }; }; then
9392 gt_cv_func_CFLocaleCopyCurrent=yes
9394 echo "$as_me: failed program was:" >&5
9395 sed 's/^/| /' conftest.$ac_ext >&5
9397 gt_cv_func_CFLocaleCopyCurrent=no
9399 rm -f conftest.err conftest.$ac_objext \
9400 conftest$ac_exeext conftest.$ac_ext
9401 CPPFLAGS="$gt_save_CPPFLAGS"
9402 LIBS="$gt_save_LIBS"
9404 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
9405 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
9406 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9408 cat >>confdefs.h <<\_ACEOF
9409 #define HAVE_CFLOCALECOPYCURRENT 1
9414 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9415 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9421 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9422 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9423 # Check whether --enable-nls or --disable-nls was given.
9424 if test "${enable_nls+set}" = set; then
9425 enableval="$enable_nls"
9430 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9431 echo "${ECHO_T}$USE_NLS" >&6
9436 BUILD_INCLUDED_LIBINTL=no
9437 USE_INCLUDED_LIBINTL=no
9443 if test "$USE_NLS" = "yes"; then
9444 gt_use_preinstalled_gnugettext=no
9446 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9447 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9449 # Check whether --with-included-gettext or --without-included-gettext was given.
9450 if test "${with_included_gettext+set}" = set; then
9451 withval="$with_included_gettext"
9452 nls_cv_force_use_gnu_gettext=$withval
9454 nls_cv_force_use_gnu_gettext=no
9456 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9457 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
9459 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9460 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9467 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9468 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9469 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 cat >conftest.$ac_ext <<_ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9478 #include <libintl.h>
9479 extern int _nl_msg_cat_cntr;
9480 extern int *_nl_domain_bindings;
9484 bindtextdomain ("", "");
9485 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9492 (eval $ac_link) 2>conftest.er1
9494 grep -v '^ *+' conftest.er1 >conftest.err
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } &&
9499 { ac_try='test -z "$ac_c_werror_flag"
9500 || test ! -s conftest.err'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; } &&
9506 { ac_try='test -s conftest$ac_exeext'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9512 gt_cv_func_gnugettext1_libc=yes
9514 echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9517 gt_cv_func_gnugettext1_libc=no
9519 rm -f conftest.err conftest.$ac_objext \
9520 conftest$ac_exeext conftest.$ac_ext
9522 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9523 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
9525 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9531 acl_save_prefix="$prefix"
9532 prefix="$acl_final_prefix"
9533 acl_save_exec_prefix="$exec_prefix"
9534 exec_prefix="$acl_final_exec_prefix"
9536 eval additional_includedir=\"$includedir\"
9537 eval additional_libdir=\"$libdir\"
9539 exec_prefix="$acl_save_exec_prefix"
9540 prefix="$acl_save_prefix"
9543 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
9544 if test "${with_libintl_prefix+set}" = set; then
9545 withval="$with_libintl_prefix"
9547 if test "X$withval" = "Xno"; then
9550 if test "X$withval" = "X"; then
9552 acl_save_prefix="$prefix"
9553 prefix="$acl_final_prefix"
9554 acl_save_exec_prefix="$exec_prefix"
9555 exec_prefix="$acl_final_exec_prefix"
9557 eval additional_includedir=\"$includedir\"
9558 eval additional_libdir=\"$libdir\"
9560 exec_prefix="$acl_save_exec_prefix"
9561 prefix="$acl_save_prefix"
9564 additional_includedir="$withval/include"
9565 additional_libdir="$withval/lib"
9575 names_already_handled=
9576 names_next_round='intl '
9577 while test -n "$names_next_round"; do
9578 names_this_round="$names_next_round"
9580 for name in $names_this_round; do
9582 for n in $names_already_handled; do
9583 if test "$n" = "$name"; then
9588 if test -z "$already_handled"; then
9589 names_already_handled="$names_already_handled $name"
9590 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9591 eval value=\"\$HAVE_LIB$uppername\"
9592 if test -n "$value"; then
9593 if test "$value" = yes; then
9594 eval value=\"\$LIB$uppername\"
9595 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9596 eval value=\"\$LTLIB$uppername\"
9597 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9606 if test $use_additional = yes; then
9607 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9608 found_dir="$additional_libdir"
9609 found_so="$additional_libdir/lib$name.$shlibext"
9610 if test -f "$additional_libdir/lib$name.la"; then
9611 found_la="$additional_libdir/lib$name.la"
9614 if test -f "$additional_libdir/lib$name.$libext"; then
9615 found_dir="$additional_libdir"
9616 found_a="$additional_libdir/lib$name.$libext"
9617 if test -f "$additional_libdir/lib$name.la"; then
9618 found_la="$additional_libdir/lib$name.la"
9623 if test "X$found_dir" = "X"; then
9624 for x in $LDFLAGS $LTLIBINTL; do
9626 acl_save_prefix="$prefix"
9627 prefix="$acl_final_prefix"
9628 acl_save_exec_prefix="$exec_prefix"
9629 exec_prefix="$acl_final_exec_prefix"
9631 exec_prefix="$acl_save_exec_prefix"
9632 prefix="$acl_save_prefix"
9636 dir=`echo "X$x" | sed -e 's/^X-L//'`
9637 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9639 found_so="$dir/lib$name.$shlibext"
9640 if test -f "$dir/lib$name.la"; then
9641 found_la="$dir/lib$name.la"
9644 if test -f "$dir/lib$name.$libext"; then
9646 found_a="$dir/lib$name.$libext"
9647 if test -f "$dir/lib$name.la"; then
9648 found_la="$dir/lib$name.la"
9654 if test "X$found_dir" != "X"; then
9659 if test "X$found_dir" != "X"; then
9660 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9661 if test "X$found_so" != "X"; then
9662 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9663 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9666 for x in $ltrpathdirs; do
9667 if test "X$x" = "X$found_dir"; then
9672 if test -z "$haveit"; then
9673 ltrpathdirs="$ltrpathdirs $found_dir"
9675 if test "$hardcode_direct" = yes; then
9676 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9678 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9679 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9681 for x in $rpathdirs; do
9682 if test "X$x" = "X$found_dir"; then
9687 if test -z "$haveit"; then
9688 rpathdirs="$rpathdirs $found_dir"
9692 for x in $LDFLAGS $LIBINTL; do
9694 acl_save_prefix="$prefix"
9695 prefix="$acl_final_prefix"
9696 acl_save_exec_prefix="$exec_prefix"
9697 exec_prefix="$acl_final_exec_prefix"
9699 exec_prefix="$acl_save_exec_prefix"
9700 prefix="$acl_save_prefix"
9702 if test "X$x" = "X-L$found_dir"; then
9707 if test -z "$haveit"; then
9708 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9710 if test "$hardcode_minus_L" != no; then
9711 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9713 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9719 if test "X$found_a" != "X"; then
9720 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9722 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9725 additional_includedir=
9726 case "$found_dir" in
9728 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9729 additional_includedir="$basedir/include"
9732 if test "X$additional_includedir" != "X"; then
9733 if test "X$additional_includedir" != "X/usr/include"; then
9735 if test "X$additional_includedir" = "X/usr/local/include"; then
9736 if test -n "$GCC"; then
9738 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9742 if test -z "$haveit"; then
9743 for x in $CPPFLAGS $INCINTL; do
9745 acl_save_prefix="$prefix"
9746 prefix="$acl_final_prefix"
9747 acl_save_exec_prefix="$exec_prefix"
9748 exec_prefix="$acl_final_exec_prefix"
9750 exec_prefix="$acl_save_exec_prefix"
9751 prefix="$acl_save_prefix"
9753 if test "X$x" = "X-I$additional_includedir"; then
9758 if test -z "$haveit"; then
9759 if test -d "$additional_includedir"; then
9760 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9766 if test -n "$found_la"; then
9767 save_libdir="$libdir"
9769 */* | *\\*) . "$found_la" ;;
9770 *) . "./$found_la" ;;
9772 libdir="$save_libdir"
9773 for dep in $dependency_libs; do
9776 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9777 if test "X$additional_libdir" != "X/usr/lib"; then
9779 if test "X$additional_libdir" = "X/usr/local/lib"; then
9780 if test -n "$GCC"; then
9782 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9786 if test -z "$haveit"; then
9788 for x in $LDFLAGS $LIBINTL; do
9790 acl_save_prefix="$prefix"
9791 prefix="$acl_final_prefix"
9792 acl_save_exec_prefix="$exec_prefix"
9793 exec_prefix="$acl_final_exec_prefix"
9795 exec_prefix="$acl_save_exec_prefix"
9796 prefix="$acl_save_prefix"
9798 if test "X$x" = "X-L$additional_libdir"; then
9803 if test -z "$haveit"; then
9804 if test -d "$additional_libdir"; then
9805 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9809 for x in $LDFLAGS $LTLIBINTL; do
9811 acl_save_prefix="$prefix"
9812 prefix="$acl_final_prefix"
9813 acl_save_exec_prefix="$exec_prefix"
9814 exec_prefix="$acl_final_exec_prefix"
9816 exec_prefix="$acl_save_exec_prefix"
9817 prefix="$acl_save_prefix"
9819 if test "X$x" = "X-L$additional_libdir"; then
9824 if test -z "$haveit"; then
9825 if test -d "$additional_libdir"; then
9826 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9833 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9834 if test "$enable_rpath" != no; then
9836 for x in $rpathdirs; do
9837 if test "X$x" = "X$dir"; then
9842 if test -z "$haveit"; then
9843 rpathdirs="$rpathdirs $dir"
9846 for x in $ltrpathdirs; do
9847 if test "X$x" = "X$dir"; then
9852 if test -z "$haveit"; then
9853 ltrpathdirs="$ltrpathdirs $dir"
9858 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9861 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9864 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9865 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9871 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9872 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9878 if test "X$rpathdirs" != "X"; then
9879 if test -n "$hardcode_libdir_separator"; then
9881 for found_dir in $rpathdirs; do
9882 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9884 acl_save_libdir="$libdir"
9886 eval flag=\"$hardcode_libdir_flag_spec\"
9887 libdir="$acl_save_libdir"
9888 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9890 for found_dir in $rpathdirs; do
9891 acl_save_libdir="$libdir"
9893 eval flag=\"$hardcode_libdir_flag_spec\"
9894 libdir="$acl_save_libdir"
9895 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9899 if test "X$ltrpathdirs" != "X"; then
9900 for found_dir in $ltrpathdirs; do
9901 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9905 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9906 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9907 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9910 gt_save_CPPFLAGS="$CPPFLAGS"
9911 CPPFLAGS="$CPPFLAGS $INCINTL"
9912 gt_save_LIBS="$LIBS"
9913 LIBS="$LIBS $LIBINTL"
9914 cat >conftest.$ac_ext <<_ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 #include <libintl.h>
9921 extern int _nl_msg_cat_cntr;
9926 const char *_nl_expand_alias (const char *);
9930 bindtextdomain ("", "");
9931 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9936 rm -f conftest.$ac_objext conftest$ac_exeext
9937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9938 (eval $ac_link) 2>conftest.er1
9940 grep -v '^ *+' conftest.er1 >conftest.err
9942 cat conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } &&
9945 { ac_try='test -z "$ac_c_werror_flag"
9946 || test ! -s conftest.err'
9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; } &&
9952 { ac_try='test -s conftest$ac_exeext'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; }; then
9958 gt_cv_func_gnugettext1_libintl=yes
9960 echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9963 gt_cv_func_gnugettext1_libintl=no
9965 rm -f conftest.err conftest.$ac_objext \
9966 conftest$ac_exeext conftest.$ac_ext
9967 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9968 LIBS="$LIBS $LIBICONV"
9969 cat >conftest.$ac_ext <<_ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9975 #include <libintl.h>
9976 extern int _nl_msg_cat_cntr;
9981 const char *_nl_expand_alias (const char *);
9985 bindtextdomain ("", "");
9986 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9991 rm -f conftest.$ac_objext conftest$ac_exeext
9992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9993 (eval $ac_link) 2>conftest.er1
9995 grep -v '^ *+' conftest.er1 >conftest.err
9997 cat conftest.err >&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); } &&
10000 { ac_try='test -z "$ac_c_werror_flag"
10001 || test ! -s conftest.err'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; } &&
10007 { ac_try='test -s conftest$ac_exeext'
10008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10009 (eval $ac_try) 2>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; }; then
10013 LIBINTL="$LIBINTL $LIBICONV"
10014 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10015 gt_cv_func_gnugettext1_libintl=yes
10018 echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10022 rm -f conftest.err conftest.$ac_objext \
10023 conftest$ac_exeext conftest.$ac_ext
10025 CPPFLAGS="$gt_save_CPPFLAGS"
10026 LIBS="$gt_save_LIBS"
10028 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10029 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
10032 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10033 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10034 && test "$PACKAGE" != gettext-runtime \
10035 && test "$PACKAGE" != gettext-tools; }; then
10036 gt_use_preinstalled_gnugettext=yes
10044 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10045 nls_cv_use_gnu_gettext=yes
10049 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10050 BUILD_INCLUDED_LIBINTL=yes
10051 USE_INCLUDED_LIBINTL=yes
10052 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10053 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10054 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10058 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10059 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10064 if test -n "$INTL_MACOSX_LIBS"; then
10065 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10066 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10067 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10068 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10072 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10073 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10075 cat >>confdefs.h <<\_ACEOF
10076 #define ENABLE_NLS 1
10084 echo "$as_me:$LINENO: checking whether to use NLS" >&5
10085 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
10086 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10087 echo "${ECHO_T}$USE_NLS" >&6
10088 if test "$USE_NLS" = "yes"; then
10089 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10090 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
10091 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10092 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10093 gt_source="external libintl"
10098 gt_source="included intl directory"
10100 echo "$as_me:$LINENO: result: $gt_source" >&5
10101 echo "${ECHO_T}$gt_source" >&6
10104 if test "$USE_NLS" = "yes"; then
10106 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10107 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10108 echo "$as_me:$LINENO: checking how to link with libintl" >&5
10109 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
10110 echo "$as_me:$LINENO: result: $LIBINTL" >&5
10111 echo "${ECHO_T}$LIBINTL" >&6
10113 for element in $INCINTL; do
10115 for x in $CPPFLAGS; do
10117 acl_save_prefix="$prefix"
10118 prefix="$acl_final_prefix"
10119 acl_save_exec_prefix="$exec_prefix"
10120 exec_prefix="$acl_final_exec_prefix"
10122 exec_prefix="$acl_save_exec_prefix"
10123 prefix="$acl_save_prefix"
10125 if test "X$x" = "X$element"; then
10130 if test -z "$haveit"; then
10131 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10138 cat >>confdefs.h <<\_ACEOF
10139 #define HAVE_GETTEXT 1
10143 cat >>confdefs.h <<\_ACEOF
10144 #define HAVE_DCGETTEXT 1
10153 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10154 BUILD_INCLUDED_LIBINTL=yes
10161 nls_cv_header_intl=
10162 nls_cv_header_libgt=
10174 if test "$USE_INCLUDED_LIBINTL" = yes; then
10175 INTLOBJS="\$(GETTOBJS)"
10179 INTL_LIBTOOL_SUFFIX_PREFIX=
10183 INTLLIBS="$LIBINTL"
10192 localedir="$ac_default_prefix/share/locale"
10194 # Check whether --with-localedir or --without-localedir was given.
10195 if test "${with_localedir+set}" = set; then
10196 withval="$with_localedir"
10199 if test "x$with_localedir" != "x"; then
10200 localedir="$with_localedir"
10201 elif test "x${prefix}" != "xNONE"; then
10202 localedir="$prefix/share/locale"
10205 cat >>confdefs.h <<_ACEOF
10206 #define LOCALEDIR "$localedir"
10213 ac_cpp='$CPP $CPPFLAGS'
10214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10217 if test -n "$ac_tool_prefix"; then
10218 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10219 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10220 echo "$as_me:$LINENO: checking for $ac_word" >&5
10221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10222 if test "${ac_cv_prog_CC+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10225 if test -n "$CC"; then
10226 ac_cv_prog_CC="$CC" # Let the user override the test.
10228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10229 for as_dir in $PATH
10232 test -z "$as_dir" && as_dir=.
10233 for ac_exec_ext in '' $ac_executable_extensions; do
10234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10235 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10245 if test -n "$CC"; then
10246 echo "$as_me:$LINENO: result: $CC" >&5
10247 echo "${ECHO_T}$CC" >&6
10249 echo "$as_me:$LINENO: result: no" >&5
10250 echo "${ECHO_T}no" >&6
10254 if test -z "$ac_cv_prog_CC"; then
10256 # Extract the first word of "gcc", so it can be a program name with args.
10257 set dummy gcc; ac_word=$2
10258 echo "$as_me:$LINENO: checking for $ac_word" >&5
10259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10260 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 if test -n "$ac_ct_CC"; then
10264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10267 for as_dir in $PATH
10270 test -z "$as_dir" && as_dir=.
10271 for ac_exec_ext in '' $ac_executable_extensions; do
10272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10273 ac_cv_prog_ac_ct_CC="gcc"
10274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10283 if test -n "$ac_ct_CC"; then
10284 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10285 echo "${ECHO_T}$ac_ct_CC" >&6
10287 echo "$as_me:$LINENO: result: no" >&5
10288 echo "${ECHO_T}no" >&6
10293 CC="$ac_cv_prog_CC"
10296 if test -z "$CC"; then
10297 if test -n "$ac_tool_prefix"; then
10298 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10299 set dummy ${ac_tool_prefix}cc; ac_word=$2
10300 echo "$as_me:$LINENO: checking for $ac_word" >&5
10301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10302 if test "${ac_cv_prog_CC+set}" = set; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 if test -n "$CC"; then
10306 ac_cv_prog_CC="$CC" # Let the user override the test.
10308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10309 for as_dir in $PATH
10312 test -z "$as_dir" && as_dir=.
10313 for ac_exec_ext in '' $ac_executable_extensions; do
10314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10315 ac_cv_prog_CC="${ac_tool_prefix}cc"
10316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10325 if test -n "$CC"; then
10326 echo "$as_me:$LINENO: result: $CC" >&5
10327 echo "${ECHO_T}$CC" >&6
10329 echo "$as_me:$LINENO: result: no" >&5
10330 echo "${ECHO_T}no" >&6
10334 if test -z "$ac_cv_prog_CC"; then
10336 # Extract the first word of "cc", so it can be a program name with args.
10337 set dummy cc; ac_word=$2
10338 echo "$as_me:$LINENO: checking for $ac_word" >&5
10339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10340 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 if test -n "$ac_ct_CC"; then
10344 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10347 for as_dir in $PATH
10350 test -z "$as_dir" && as_dir=.
10351 for ac_exec_ext in '' $ac_executable_extensions; do
10352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10353 ac_cv_prog_ac_ct_CC="cc"
10354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10363 if test -n "$ac_ct_CC"; then
10364 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10365 echo "${ECHO_T}$ac_ct_CC" >&6
10367 echo "$as_me:$LINENO: result: no" >&5
10368 echo "${ECHO_T}no" >&6
10373 CC="$ac_cv_prog_CC"
10377 if test -z "$CC"; then
10378 # Extract the first word of "cc", so it can be a program name with args.
10379 set dummy cc; ac_word=$2
10380 echo "$as_me:$LINENO: checking for $ac_word" >&5
10381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10382 if test "${ac_cv_prog_CC+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 if test -n "$CC"; then
10386 ac_cv_prog_CC="$CC" # Let the user override the test.
10388 ac_prog_rejected=no
10389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10390 for as_dir in $PATH
10393 test -z "$as_dir" && as_dir=.
10394 for ac_exec_ext in '' $ac_executable_extensions; do
10395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10396 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10397 ac_prog_rejected=yes
10401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10407 if test $ac_prog_rejected = yes; then
10408 # We found a bogon in the path, so make sure we never use it.
10409 set dummy $ac_cv_prog_CC
10411 if test $# != 0; then
10412 # We chose a different compiler from the bogus one.
10413 # However, it has the same basename, so the bogon will be chosen
10414 # first if we set CC to just the basename; use the full file name.
10416 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10422 if test -n "$CC"; then
10423 echo "$as_me:$LINENO: result: $CC" >&5
10424 echo "${ECHO_T}$CC" >&6
10426 echo "$as_me:$LINENO: result: no" >&5
10427 echo "${ECHO_T}no" >&6
10431 if test -z "$CC"; then
10432 if test -n "$ac_tool_prefix"; then
10435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10437 echo "$as_me:$LINENO: checking for $ac_word" >&5
10438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10439 if test "${ac_cv_prog_CC+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10442 if test -n "$CC"; then
10443 ac_cv_prog_CC="$CC" # Let the user override the test.
10445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10446 for as_dir in $PATH
10449 test -z "$as_dir" && as_dir=.
10450 for ac_exec_ext in '' $ac_executable_extensions; do
10451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10452 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10462 if test -n "$CC"; then
10463 echo "$as_me:$LINENO: result: $CC" >&5
10464 echo "${ECHO_T}$CC" >&6
10466 echo "$as_me:$LINENO: result: no" >&5
10467 echo "${ECHO_T}no" >&6
10470 test -n "$CC" && break
10473 if test -z "$CC"; then
10477 # Extract the first word of "$ac_prog", so it can be a program name with args.
10478 set dummy $ac_prog; ac_word=$2
10479 echo "$as_me:$LINENO: checking for $ac_word" >&5
10480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10484 if test -n "$ac_ct_CC"; then
10485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10488 for as_dir in $PATH
10491 test -z "$as_dir" && as_dir=.
10492 for ac_exec_ext in '' $ac_executable_extensions; do
10493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10494 ac_cv_prog_ac_ct_CC="$ac_prog"
10495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10504 if test -n "$ac_ct_CC"; then
10505 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10506 echo "${ECHO_T}$ac_ct_CC" >&6
10508 echo "$as_me:$LINENO: result: no" >&5
10509 echo "${ECHO_T}no" >&6
10512 test -n "$ac_ct_CC" && break
10521 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10522 See \`config.log' for more details." >&5
10523 echo "$as_me: error: no acceptable C compiler found in \$PATH
10524 See \`config.log' for more details." >&2;}
10525 { (exit 1); exit 1; }; }
10527 # Provide some information about the compiler.
10528 echo "$as_me:$LINENO:" \
10529 "checking for C compiler version" >&5
10530 ac_compiler=`set X $ac_compile; echo $2`
10531 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10532 (eval $ac_compiler --version </dev/null >&5) 2>&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); }
10536 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10537 (eval $ac_compiler -v </dev/null >&5) 2>&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }
10541 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10542 (eval $ac_compiler -V </dev/null >&5) 2>&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }
10547 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10548 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10549 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 cat >conftest.$ac_ext <<_ACEOF
10555 cat confdefs.h >>conftest.$ac_ext
10556 cat >>conftest.$ac_ext <<_ACEOF
10557 /* end confdefs.h. */
10570 rm -f conftest.$ac_objext
10571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10572 (eval $ac_compile) 2>conftest.er1
10574 grep -v '^ *+' conftest.er1 >conftest.err
10576 cat conftest.err >&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } &&
10579 { ac_try='test -z "$ac_c_werror_flag"
10580 || test ! -s conftest.err'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; } &&
10586 { ac_try='test -s conftest.$ac_objext'
10587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then
10592 ac_compiler_gnu=yes
10594 echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.$ac_ext >&5
10599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10600 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10603 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10604 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10605 GCC=`test $ac_compiler_gnu = yes && echo yes`
10606 ac_test_CFLAGS=${CFLAGS+set}
10607 ac_save_CFLAGS=$CFLAGS
10609 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10610 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10611 if test "${ac_cv_prog_cc_g+set}" = set; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10614 cat >conftest.$ac_ext <<_ACEOF
10617 cat confdefs.h >>conftest.$ac_ext
10618 cat >>conftest.$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10629 rm -f conftest.$ac_objext
10630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10631 (eval $ac_compile) 2>conftest.er1
10633 grep -v '^ *+' conftest.er1 >conftest.err
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } &&
10638 { ac_try='test -z "$ac_c_werror_flag"
10639 || test ! -s conftest.err'
10640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641 (eval $ac_try) 2>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; } &&
10645 { ac_try='test -s conftest.$ac_objext'
10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); }; }; then
10651 ac_cv_prog_cc_g=yes
10653 echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10660 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10661 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10662 if test "$ac_test_CFLAGS" = set; then
10663 CFLAGS=$ac_save_CFLAGS
10664 elif test $ac_cv_prog_cc_g = yes; then
10665 if test "$GCC" = yes; then
10671 if test "$GCC" = yes; then
10677 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10678 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10679 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 ac_cv_prog_cc_stdc=no
10684 cat >conftest.$ac_ext <<_ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 #include <stdarg.h>
10692 #include <sys/types.h>
10693 #include <sys/stat.h>
10694 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10695 struct buf { int x; };
10696 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10697 static char *e (p, i)
10703 static char *f (char * (*g) (char **, int), char **p, ...)
10708 s = g (p, va_arg (v,int));
10713 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10714 function prototypes and stuff, but not '\xHH' hex character constants.
10715 These don't provoke an error unfortunately, instead are silently treated
10716 as 'x'. The following induces an error, until -std1 is added to get
10717 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10718 array size at least. It's necessary to write '\x00'==0 to get something
10719 that's true only with -std1. */
10720 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10722 int test (int i, double x);
10723 struct s1 {int (*f) (int a);};
10724 struct s2 {int (*f) (double a);};
10725 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10731 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10736 # Don't try gcc -ansi; that turns off useful extensions and
10737 # breaks some systems' header files.
10738 # AIX -qlanglvl=ansi
10739 # Ultrix and OSF/1 -std1
10740 # HP-UX 10.20 and later -Ae
10741 # HP-UX older versions -Aa -D_HPUX_SOURCE
10742 # SVR4 -Xc -D__EXTENSIONS__
10743 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10745 CC="$ac_save_CC $ac_arg"
10746 rm -f conftest.$ac_objext
10747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10748 (eval $ac_compile) 2>conftest.er1
10750 grep -v '^ *+' conftest.er1 >conftest.err
10752 cat conftest.err >&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } &&
10755 { ac_try='test -z "$ac_c_werror_flag"
10756 || test ! -s conftest.err'
10757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758 (eval $ac_try) 2>&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); }; } &&
10762 { ac_try='test -s conftest.$ac_objext'
10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764 (eval $ac_try) 2>&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; }; then
10768 ac_cv_prog_cc_stdc=$ac_arg
10771 echo "$as_me: failed program was:" >&5
10772 sed 's/^/| /' conftest.$ac_ext >&5
10775 rm -f conftest.err conftest.$ac_objext
10777 rm -f conftest.$ac_ext conftest.$ac_objext
10782 case "x$ac_cv_prog_cc_stdc" in
10784 echo "$as_me:$LINENO: result: none needed" >&5
10785 echo "${ECHO_T}none needed" >&6 ;;
10787 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10788 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10789 CC="$CC $ac_cv_prog_cc_stdc" ;;
10792 # Some people use a C++ compiler to compile C. Since we use `exit',
10793 # in C++ we need to declare it. In case someone uses the same compiler
10794 # for both compiling C and C++ we need to have the C++ compiler decide
10795 # the declaration of exit, since it's the most demanding environment.
10796 cat >conftest.$ac_ext <<_ACEOF
10797 #ifndef __cplusplus
10801 rm -f conftest.$ac_objext
10802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10803 (eval $ac_compile) 2>conftest.er1
10805 grep -v '^ *+' conftest.er1 >conftest.err
10807 cat conftest.err >&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } &&
10810 { ac_try='test -z "$ac_c_werror_flag"
10811 || test ! -s conftest.err'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; } &&
10817 { ac_try='test -s conftest.$ac_objext'
10818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819 (eval $ac_try) 2>&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; }; then
10823 for ac_declaration in \
10825 'extern "C" void std::exit (int) throw (); using std::exit;' \
10826 'extern "C" void std::exit (int); using std::exit;' \
10827 'extern "C" void exit (int) throw ();' \
10828 'extern "C" void exit (int);' \
10831 cat >conftest.$ac_ext <<_ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10838 #include <stdlib.h>
10847 rm -f conftest.$ac_objext
10848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10849 (eval $ac_compile) 2>conftest.er1
10851 grep -v '^ *+' conftest.er1 >conftest.err
10853 cat conftest.err >&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } &&
10856 { ac_try='test -z "$ac_c_werror_flag"
10857 || test ! -s conftest.err'
10858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859 (eval $ac_try) 2>&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; } &&
10863 { ac_try='test -s conftest.$ac_objext'
10864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865 (eval $ac_try) 2>&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; }; then
10871 echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.$ac_ext >&5
10876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10877 cat >conftest.$ac_ext <<_ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h. */
10892 rm -f conftest.$ac_objext
10893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10894 (eval $ac_compile) 2>conftest.er1
10896 grep -v '^ *+' conftest.er1 >conftest.err
10898 cat conftest.err >&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } &&
10901 { ac_try='test -z "$ac_c_werror_flag"
10902 || test ! -s conftest.err'
10903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904 (eval $ac_try) 2>&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; } &&
10908 { ac_try='test -s conftest.$ac_objext'
10909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10910 (eval $ac_try) 2>&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; }; then
10916 echo "$as_me: failed program was:" >&5
10917 sed 's/^/| /' conftest.$ac_ext >&5
10920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10923 if test -n "$ac_declaration"; then
10924 echo '#ifdef __cplusplus' >>confdefs.h
10925 echo $ac_declaration >>confdefs.h
10926 echo '#endif' >>confdefs.h
10930 echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.$ac_ext >&5
10934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10936 ac_cpp='$CPP $CPPFLAGS'
10937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10941 depcc="$CC" am_compiler_list=
10943 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
10944 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
10945 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10949 # We make a subdir and do the tests there. Otherwise we can end up
10950 # making bogus files that we don't know about and never remove. For
10951 # instance it was reported that on HP-UX the gcc test will end up
10952 # making a dummy file named `D' -- because `-MD' means `put the output
10955 # Copy depcomp to subdir because otherwise we won't find it if we're
10956 # using a relative directory.
10957 cp "$am_depcomp" conftest.dir
10959 # We will build objects and dependencies in a subdirectory because
10960 # it helps to detect inapplicable dependency modes. For instance
10961 # both Tru64's cc and ICC support -MD to output dependencies as a
10962 # side effect of compilation, but ICC will put the dependencies in
10963 # the current directory while Tru64 will put them in the object
10967 am_cv_CC_dependencies_compiler_type=none
10968 if test "$am_compiler_list" = ""; then
10969 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10971 for depmode in $am_compiler_list; do
10972 # Setup a source with many dependencies, because some compilers
10973 # like to wrap large dependency lists on column 80 (with \), and
10974 # we should not choose a depcomp mode which is confused by this.
10976 # We need to recreate these files for each test, as the compiler may
10977 # overwrite some of them when testing with obscure command lines.
10978 # This happens at least with the AIX C compiler.
10980 for i in 1 2 3 4 5 6; do
10981 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10982 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10983 # Solaris 8's {/usr,}/bin/sh.
10984 touch sub/conftst$i.h
10986 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10990 # after this tag, mechanisms are not by side-effect, so they'll
10991 # only be used when explicitly requested
10992 if test "x$enable_dependency_tracking" = xyes; then
11000 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11001 # mode. It turns out that the SunPro C++ compiler does not properly
11002 # handle `-M -o', and we need to detect this.
11003 if depmode=$depmode \
11004 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11005 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11006 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11007 >/dev/null 2>conftest.err &&
11008 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11009 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11010 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11011 # icc doesn't choke on unknown options, it will just issue warnings
11012 # or remarks (even with -Werror). So we grep stderr for any message
11013 # that says an option was ignored or not supported.
11014 # When given -MP, icc 7.0 and 7.1 complain thusly:
11015 # icc: Command line warning: ignoring option '-M'; no argument required
11016 # The diagnosis changed in icc 8.0:
11017 # icc: Command line remark: option '-MP' not supported
11018 if (grep 'ignoring option' conftest.err ||
11019 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11020 am_cv_CC_dependencies_compiler_type=$depmode
11027 rm -rf conftest.dir
11029 am_cv_CC_dependencies_compiler_type=none
11033 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11034 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
11035 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11040 test "x$enable_dependency_tracking" != xno \
11041 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11042 am__fastdepCC_TRUE=
11043 am__fastdepCC_FALSE='#'
11045 am__fastdepCC_TRUE='#'
11046 am__fastdepCC_FALSE=
11050 echo "$as_me:$LINENO: checking for library containing strerror" >&5
11051 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
11052 if test "${ac_cv_search_strerror+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11055 ac_func_search_save_LIBS=$LIBS
11056 ac_cv_search_strerror=no
11057 cat >conftest.$ac_ext <<_ACEOF
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h. */
11064 /* Override any gcc2 internal prototype to avoid an error. */
11068 /* We use char because int might match the return type of a gcc2
11069 builtin and then its argument prototype would still apply. */
11079 rm -f conftest.$ac_objext conftest$ac_exeext
11080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11081 (eval $ac_link) 2>conftest.er1
11083 grep -v '^ *+' conftest.er1 >conftest.err
11085 cat conftest.err >&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 { ac_try='test -z "$ac_c_werror_flag"
11089 || test ! -s conftest.err'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; } &&
11095 { ac_try='test -s conftest$ac_exeext'
11096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097 (eval $ac_try) 2>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; }; then
11101 ac_cv_search_strerror="none required"
11103 echo "$as_me: failed program was:" >&5
11104 sed 's/^/| /' conftest.$ac_ext >&5
11107 rm -f conftest.err conftest.$ac_objext \
11108 conftest$ac_exeext conftest.$ac_ext
11109 if test "$ac_cv_search_strerror" = no; then
11110 for ac_lib in cposix; do
11111 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11112 cat >conftest.$ac_ext <<_ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11119 /* Override any gcc2 internal prototype to avoid an error. */
11123 /* We use char because int might match the return type of a gcc2
11124 builtin and then its argument prototype would still apply. */
11134 rm -f conftest.$ac_objext conftest$ac_exeext
11135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11136 (eval $ac_link) 2>conftest.er1
11138 grep -v '^ *+' conftest.er1 >conftest.err
11140 cat conftest.err >&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } &&
11143 { ac_try='test -z "$ac_c_werror_flag"
11144 || test ! -s conftest.err'
11145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11146 (eval $ac_try) 2>&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; } &&
11150 { ac_try='test -s conftest$ac_exeext'
11151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11152 (eval $ac_try) 2>&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); }; }; then
11156 ac_cv_search_strerror="-l$ac_lib"
11159 echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11163 rm -f conftest.err conftest.$ac_objext \
11164 conftest$ac_exeext conftest.$ac_ext
11167 LIBS=$ac_func_search_save_LIBS
11169 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
11170 echo "${ECHO_T}$ac_cv_search_strerror" >&6
11171 if test "$ac_cv_search_strerror" != no; then
11172 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
11176 echo "$as_me:$LINENO: checking for function prototypes" >&5
11177 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
11178 if test "$ac_cv_prog_cc_stdc" != no; then
11179 echo "$as_me:$LINENO: result: yes" >&5
11180 echo "${ECHO_T}yes" >&6
11182 cat >>confdefs.h <<\_ACEOF
11183 #define PROTOTYPES 1
11187 cat >>confdefs.h <<\_ACEOF
11188 #define __PROTOTYPES 1
11192 echo "$as_me:$LINENO: result: no" >&5
11193 echo "${ECHO_T}no" >&6
11197 if test "$ac_cv_prog_cc_stdc" != no; then
11200 U=_ ANSI2KNR=./ansi2knr
11202 # Ensure some checks needed by ansi2knr itself.
11205 for ac_header in string.h
11207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11209 echo "$as_me:$LINENO: checking for $ac_header" >&5
11210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11217 # Is the header compilable?
11218 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11220 cat >conftest.$ac_ext <<_ACEOF
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h. */
11226 $ac_includes_default
11227 #include <$ac_header>
11229 rm -f conftest.$ac_objext
11230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11231 (eval $ac_compile) 2>conftest.er1
11233 grep -v '^ *+' conftest.er1 >conftest.err
11235 cat conftest.err >&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); } &&
11238 { ac_try='test -z "$ac_c_werror_flag"
11239 || test ! -s conftest.err'
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; } &&
11245 { ac_try='test -s conftest.$ac_objext'
11246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247 (eval $ac_try) 2>&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; }; then
11251 ac_header_compiler=yes
11253 echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11256 ac_header_compiler=no
11258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11260 echo "${ECHO_T}$ac_header_compiler" >&6
11262 # Is the header present?
11263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11265 cat >conftest.$ac_ext <<_ACEOF
11268 cat confdefs.h >>conftest.$ac_ext
11269 cat >>conftest.$ac_ext <<_ACEOF
11270 /* end confdefs.h. */
11271 #include <$ac_header>
11273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11276 grep -v '^ *+' conftest.er1 >conftest.err
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } >/dev/null; then
11281 if test -s conftest.err; then
11282 ac_cpp_err=$ac_c_preproc_warn_flag
11283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11290 if test -z "$ac_cpp_err"; then
11291 ac_header_preproc=yes
11293 echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11296 ac_header_preproc=no
11298 rm -f conftest.err conftest.$ac_ext
11299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11300 echo "${ECHO_T}$ac_header_preproc" >&6
11302 # So? What about this header?
11303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11309 ac_header_preproc=yes
11312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11326 ## ------------------------------------------ ##
11327 ## Report this to the AC_PACKAGE_NAME lists. ##
11328 ## ------------------------------------------ ##
11331 sed "s/^/$as_me: WARNING: /" >&2
11334 echo "$as_me:$LINENO: checking for $ac_header" >&5
11335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11339 eval "$as_ac_Header=\$ac_header_preproc"
11341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11346 cat >>confdefs.h <<_ACEOF
11347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11355 if test "x$U" != "x"; then
11356 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
11357 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
11358 { (exit 1); exit 1; }; }
11360 echo "$as_me:$LINENO: checking for inline" >&5
11361 echo $ECHO_N "checking for inline... $ECHO_C" >&6
11362 if test "${ac_cv_c_inline+set}" = set; then
11363 echo $ECHO_N "(cached) $ECHO_C" >&6
11366 for ac_kw in inline __inline__ __inline; do
11367 cat >conftest.$ac_ext <<_ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h. */
11373 #ifndef __cplusplus
11375 static $ac_kw foo_t static_foo () {return 0; }
11376 $ac_kw foo_t foo () {return 0; }
11380 rm -f conftest.$ac_objext
11381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11382 (eval $ac_compile) 2>conftest.er1
11384 grep -v '^ *+' conftest.er1 >conftest.err
11386 cat conftest.err >&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try='test -z "$ac_c_werror_flag"
11390 || test ! -s conftest.err'
11391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392 (eval $ac_try) 2>&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; } &&
11396 { ac_try='test -s conftest.$ac_objext'
11397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11398 (eval $ac_try) 2>&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); }; }; then
11402 ac_cv_c_inline=$ac_kw; break
11404 echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11412 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11413 echo "${ECHO_T}$ac_cv_c_inline" >&6
11416 case $ac_cv_c_inline in
11419 case $ac_cv_c_inline in
11421 *) ac_val=$ac_cv_c_inline;;
11423 cat >>confdefs.h <<_ACEOF
11424 #ifndef __cplusplus
11425 #define inline $ac_val
11431 # Find a good install program. We prefer a C program (faster),
11432 # so one script is as good as another. But avoid the broken or
11433 # incompatible versions:
11434 # SysV /etc/install, /usr/sbin/install
11435 # SunOS /usr/etc/install
11436 # IRIX /sbin/install
11438 # AmigaOS /C/install, which installs bootblocks on floppy discs
11439 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11440 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11441 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11442 # OS/2's system install, which has a completely different semantic
11443 # ./install, which can be erroneously created by make from ./install.sh.
11444 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11445 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11446 if test -z "$INSTALL"; then
11447 if test "${ac_cv_path_install+set}" = set; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11451 for as_dir in $PATH
11454 test -z "$as_dir" && as_dir=.
11455 # Account for people who put trailing slashes in PATH elements.
11457 ./ | .// | /cC/* | \
11458 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11459 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11462 # OSF1 and SCO ODT 3.0 have their own names for install.
11463 # Don't use installbsd from OSF since it installs stuff as root
11465 for ac_prog in ginstall scoinst install; do
11466 for ac_exec_ext in '' $ac_executable_extensions; do
11467 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11468 if test $ac_prog = install &&
11469 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11470 # AIX install. It has an incompatible calling convention.
11472 elif test $ac_prog = install &&
11473 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11474 # program-specific install script used by HP pwplus--don't use.
11477 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11489 if test "${ac_cv_path_install+set}" = set; then
11490 INSTALL=$ac_cv_path_install
11492 # As a last resort, use the slow shell script. We don't cache a
11493 # path for INSTALL within a source directory, because that will
11494 # break other packages using the cache if that directory is
11495 # removed, or if the path is relative.
11496 INSTALL=$ac_install_sh
11499 echo "$as_me:$LINENO: result: $INSTALL" >&5
11500 echo "${ECHO_T}$INSTALL" >&6
11502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11503 # It thinks the first close brace ends the variable substitution.
11504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11508 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11510 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11511 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11512 if test "${ac_cv_header_stdc+set}" = set; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11515 cat >conftest.$ac_ext <<_ACEOF
11518 cat confdefs.h >>conftest.$ac_ext
11519 cat >>conftest.$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11521 #include <stdlib.h>
11522 #include <stdarg.h>
11523 #include <string.h>
11534 rm -f conftest.$ac_objext
11535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11536 (eval $ac_compile) 2>conftest.er1
11538 grep -v '^ *+' conftest.er1 >conftest.err
11540 cat conftest.err >&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } &&
11543 { ac_try='test -z "$ac_c_werror_flag"
11544 || test ! -s conftest.err'
11545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546 (eval $ac_try) 2>&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; } &&
11550 { ac_try='test -s conftest.$ac_objext'
11551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11552 (eval $ac_try) 2>&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); }; }; then
11556 ac_cv_header_stdc=yes
11558 echo "$as_me: failed program was:" >&5
11559 sed 's/^/| /' conftest.$ac_ext >&5
11561 ac_cv_header_stdc=no
11563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11565 if test $ac_cv_header_stdc = yes; then
11566 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11567 cat >conftest.$ac_ext <<_ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h. */
11573 #include <string.h>
11576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11577 $EGREP "memchr" >/dev/null 2>&1; then
11580 ac_cv_header_stdc=no
11586 if test $ac_cv_header_stdc = yes; then
11587 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11588 cat >conftest.$ac_ext <<_ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h. */
11594 #include <stdlib.h>
11597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11598 $EGREP "free" >/dev/null 2>&1; then
11601 ac_cv_header_stdc=no
11607 if test $ac_cv_header_stdc = yes; then
11608 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11609 if test "$cross_compiling" = yes; then
11612 cat >conftest.$ac_ext <<_ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11619 #if ((' ' & 0x0FF) == 0x020)
11620 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11621 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11623 # define ISLOWER(c) \
11624 (('a' <= (c) && (c) <= 'i') \
11625 || ('j' <= (c) && (c) <= 'r') \
11626 || ('s' <= (c) && (c) <= 'z'))
11627 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11630 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11635 for (i = 0; i < 256; i++)
11636 if (XOR (islower (i), ISLOWER (i))
11637 || toupper (i) != TOUPPER (i))
11642 rm -f conftest$ac_exeext
11643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11644 (eval $ac_link) 2>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
11655 echo "$as_me: program exited with status $ac_status" >&5
11656 echo "$as_me: failed program was:" >&5
11657 sed 's/^/| /' conftest.$ac_ext >&5
11659 ( exit $ac_status )
11660 ac_cv_header_stdc=no
11662 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11666 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11667 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11668 if test $ac_cv_header_stdc = yes; then
11670 cat >>confdefs.h <<\_ACEOF
11671 #define STDC_HEADERS 1
11679 for ac_header in unistd.h locale.h sys/ioctl.h
11681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11683 echo "$as_me:$LINENO: checking for $ac_header" >&5
11684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11691 # Is the header compilable?
11692 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11694 cat >conftest.$ac_ext <<_ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11700 $ac_includes_default
11701 #include <$ac_header>
11703 rm -f conftest.$ac_objext
11704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11705 (eval $ac_compile) 2>conftest.er1
11707 grep -v '^ *+' conftest.er1 >conftest.err
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } &&
11712 { ac_try='test -z "$ac_c_werror_flag"
11713 || test ! -s conftest.err'
11714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715 (eval $ac_try) 2>&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; } &&
11719 { ac_try='test -s conftest.$ac_objext'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; }; then
11725 ac_header_compiler=yes
11727 echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11730 ac_header_compiler=no
11732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11734 echo "${ECHO_T}$ac_header_compiler" >&6
11736 # Is the header present?
11737 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11739 cat >conftest.$ac_ext <<_ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h. */
11745 #include <$ac_header>
11747 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11750 grep -v '^ *+' conftest.er1 >conftest.err
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } >/dev/null; then
11755 if test -s conftest.err; then
11756 ac_cpp_err=$ac_c_preproc_warn_flag
11757 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11764 if test -z "$ac_cpp_err"; then
11765 ac_header_preproc=yes
11767 echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11770 ac_header_preproc=no
11772 rm -f conftest.err conftest.$ac_ext
11773 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11774 echo "${ECHO_T}$ac_header_preproc" >&6
11776 # So? What about this header?
11777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11783 ac_header_preproc=yes
11786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11789 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11793 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11800 ## ------------------------------------------ ##
11801 ## Report this to the AC_PACKAGE_NAME lists. ##
11802 ## ------------------------------------------ ##
11805 sed "s/^/$as_me: WARNING: /" >&2
11808 echo "$as_me:$LINENO: checking for $ac_header" >&5
11809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11813 eval "$as_ac_Header=\$ac_header_preproc"
11815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11820 cat >>confdefs.h <<_ACEOF
11821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11828 if test "${ac_cv_header_stdarg_h+set}" = set; then
11829 echo "$as_me:$LINENO: checking for stdarg.h" >&5
11830 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
11831 if test "${ac_cv_header_stdarg_h+set}" = set; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11834 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
11835 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
11837 # Is the header compilable?
11838 echo "$as_me:$LINENO: checking stdarg.h usability" >&5
11839 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
11840 cat >conftest.$ac_ext <<_ACEOF
11843 cat confdefs.h >>conftest.$ac_ext
11844 cat >>conftest.$ac_ext <<_ACEOF
11845 /* end confdefs.h. */
11846 $ac_includes_default
11847 #include <stdarg.h>
11849 rm -f conftest.$ac_objext
11850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11851 (eval $ac_compile) 2>conftest.er1
11853 grep -v '^ *+' conftest.er1 >conftest.err
11855 cat conftest.err >&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } &&
11858 { ac_try='test -z "$ac_c_werror_flag"
11859 || test ! -s conftest.err'
11860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; } &&
11865 { ac_try='test -s conftest.$ac_objext'
11866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867 (eval $ac_try) 2>&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; }; then
11871 ac_header_compiler=yes
11873 echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.$ac_ext >&5
11876 ac_header_compiler=no
11878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11879 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11880 echo "${ECHO_T}$ac_header_compiler" >&6
11882 # Is the header present?
11883 echo "$as_me:$LINENO: checking stdarg.h presence" >&5
11884 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
11885 cat >conftest.$ac_ext <<_ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11891 #include <stdarg.h>
11893 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11896 grep -v '^ *+' conftest.er1 >conftest.err
11898 cat conftest.err >&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } >/dev/null; then
11901 if test -s conftest.err; then
11902 ac_cpp_err=$ac_c_preproc_warn_flag
11903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11910 if test -z "$ac_cpp_err"; then
11911 ac_header_preproc=yes
11913 echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11916 ac_header_preproc=no
11918 rm -f conftest.err conftest.$ac_ext
11919 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11920 echo "${ECHO_T}$ac_header_preproc" >&6
11922 # So? What about this header?
11923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11925 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
11926 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11927 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
11928 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
11929 ac_header_preproc=yes
11932 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
11933 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
11934 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
11935 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
11936 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
11937 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
11938 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
11939 echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
11940 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
11941 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
11942 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
11943 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
11946 ## ------------------------------------------ ##
11947 ## Report this to the AC_PACKAGE_NAME lists. ##
11948 ## ------------------------------------------ ##
11951 sed "s/^/$as_me: WARNING: /" >&2
11954 echo "$as_me:$LINENO: checking for stdarg.h" >&5
11955 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
11956 if test "${ac_cv_header_stdarg_h+set}" = set; then
11957 echo $ECHO_N "(cached) $ECHO_C" >&6
11959 ac_cv_header_stdarg_h=$ac_header_preproc
11961 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
11962 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
11965 if test $ac_cv_header_stdarg_h = yes; then
11967 cat >>confdefs.h <<\_ACEOF
11968 #define HAVE_STDARG_H 1
11972 { { echo "$as_me:$LINENO: error: *** stdarg.h is missing on your system ***" >&5
11973 echo "$as_me: error: *** stdarg.h is missing on your system ***" >&2;}
11974 { (exit 1); exit 1; }; }
11978 echo "$as_me:$LINENO: checking for working strcoll" >&5
11979 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
11980 if test "${ac_cv_func_strcoll_works+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11983 if test "$cross_compiling" = yes; then
11984 ac_cv_func_strcoll_works=no
11986 cat >conftest.$ac_ext <<_ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h. */
11992 $ac_includes_default
11996 exit (strcoll ("abc", "def") >= 0 ||
11997 strcoll ("ABC", "DEF") >= 0 ||
11998 strcoll ("123", "456") >= 0)
12003 rm -f conftest$ac_exeext
12004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12005 (eval $ac_link) 2>&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_cv_func_strcoll_works=yes
12016 echo "$as_me: program exited with status $ac_status" >&5
12017 echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12020 ( exit $ac_status )
12021 ac_cv_func_strcoll_works=no
12023 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12026 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
12027 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
12028 if test $ac_cv_func_strcoll_works = yes; then
12030 cat >>confdefs.h <<\_ACEOF
12031 #define HAVE_STRCOLL 1
12037 for ac_func in setlocale
12039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12040 echo "$as_me:$LINENO: checking for $ac_func" >&5
12041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12042 if eval "test \"\${$as_ac_var+set}\" = set"; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12045 cat >conftest.$ac_ext <<_ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12053 #define $ac_func innocuous_$ac_func
12055 /* System header to define __stub macros and hopefully few prototypes,
12056 which can conflict with char $ac_func (); below.
12057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12058 <limits.h> exists even on freestanding compilers. */
12061 # include <limits.h>
12063 # include <assert.h>
12068 /* Override any gcc2 internal prototype to avoid an error. */
12073 /* We use char because int might match the return type of a gcc2
12074 builtin and then its argument prototype would still apply. */
12076 /* The GNU C library defines this for functions which it implements
12077 to always fail with ENOSYS. Some functions are actually named
12078 something starting with __ and the normal name is an alias. */
12079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12082 char (*f) () = $ac_func;
12091 return f != $ac_func;
12096 rm -f conftest.$ac_objext conftest$ac_exeext
12097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12098 (eval $ac_link) 2>conftest.er1
12100 grep -v '^ *+' conftest.er1 >conftest.err
12102 cat conftest.err >&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } &&
12105 { ac_try='test -z "$ac_c_werror_flag"
12106 || test ! -s conftest.err'
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; } &&
12112 { ac_try='test -s conftest$ac_exeext'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; }; then
12118 eval "$as_ac_var=yes"
12120 echo "$as_me: failed program was:" >&5
12121 sed 's/^/| /' conftest.$ac_ext >&5
12123 eval "$as_ac_var=no"
12125 rm -f conftest.err conftest.$ac_objext \
12126 conftest$ac_exeext conftest.$ac_ext
12128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12130 if test `eval echo '${'$as_ac_var'}'` = yes; then
12131 cat >>confdefs.h <<_ACEOF
12132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12140 if test "${ac_cv_header_wchar_h+set}" = set; then
12141 echo "$as_me:$LINENO: checking for wchar.h" >&5
12142 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
12143 if test "${ac_cv_header_wchar_h+set}" = set; then
12144 echo $ECHO_N "(cached) $ECHO_C" >&6
12146 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
12147 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
12149 # Is the header compilable?
12150 echo "$as_me:$LINENO: checking wchar.h usability" >&5
12151 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
12152 cat >conftest.$ac_ext <<_ACEOF
12155 cat confdefs.h >>conftest.$ac_ext
12156 cat >>conftest.$ac_ext <<_ACEOF
12157 /* end confdefs.h. */
12158 $ac_includes_default
12161 rm -f conftest.$ac_objext
12162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12163 (eval $ac_compile) 2>conftest.er1
12165 grep -v '^ *+' conftest.er1 >conftest.err
12167 cat conftest.err >&5
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); } &&
12170 { ac_try='test -z "$ac_c_werror_flag"
12171 || test ! -s conftest.err'
12172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173 (eval $ac_try) 2>&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); }; } &&
12177 { ac_try='test -s conftest.$ac_objext'
12178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179 (eval $ac_try) 2>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
12183 ac_header_compiler=yes
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 ac_header_compiler=no
12190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12191 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12192 echo "${ECHO_T}$ac_header_compiler" >&6
12194 # Is the header present?
12195 echo "$as_me:$LINENO: checking wchar.h presence" >&5
12196 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
12197 cat >conftest.$ac_ext <<_ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12208 grep -v '^ *+' conftest.er1 >conftest.err
12210 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } >/dev/null; then
12213 if test -s conftest.err; then
12214 ac_cpp_err=$ac_c_preproc_warn_flag
12215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12222 if test -z "$ac_cpp_err"; then
12223 ac_header_preproc=yes
12225 echo "$as_me: failed program was:" >&5
12226 sed 's/^/| /' conftest.$ac_ext >&5
12228 ac_header_preproc=no
12230 rm -f conftest.err conftest.$ac_ext
12231 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12232 echo "${ECHO_T}$ac_header_preproc" >&6
12234 # So? What about this header?
12235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12237 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
12238 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12239 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
12240 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
12241 ac_header_preproc=yes
12244 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
12245 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
12246 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
12247 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
12248 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
12249 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
12250 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
12251 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
12252 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
12253 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
12254 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
12255 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
12258 ## ------------------------------------------ ##
12259 ## Report this to the AC_PACKAGE_NAME lists. ##
12260 ## ------------------------------------------ ##
12263 sed "s/^/$as_me: WARNING: /" >&2
12266 echo "$as_me:$LINENO: checking for wchar.h" >&5
12267 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
12268 if test "${ac_cv_header_wchar_h+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12271 ac_cv_header_wchar_h=$ac_header_preproc
12273 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
12274 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
12277 if test $ac_cv_header_wchar_h = yes; then
12279 ac_have_wchar_h=yes
12281 cat >>confdefs.h <<\_ACEOF
12282 #define HAVE_WCHAR_H 1
12294 for ac_func in mbtowc wcwidth mbrtowc mbsinit
12296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12297 echo "$as_me:$LINENO: checking for $ac_func" >&5
12298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12299 if eval "test \"\${$as_ac_var+set}\" = set"; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12302 cat >conftest.$ac_ext <<_ACEOF
12305 cat confdefs.h >>conftest.$ac_ext
12306 cat >>conftest.$ac_ext <<_ACEOF
12307 /* end confdefs.h. */
12308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12310 #define $ac_func innocuous_$ac_func
12312 /* System header to define __stub macros and hopefully few prototypes,
12313 which can conflict with char $ac_func (); below.
12314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12315 <limits.h> exists even on freestanding compilers. */
12318 # include <limits.h>
12320 # include <assert.h>
12325 /* Override any gcc2 internal prototype to avoid an error. */
12330 /* We use char because int might match the return type of a gcc2
12331 builtin and then its argument prototype would still apply. */
12333 /* The GNU C library defines this for functions which it implements
12334 to always fail with ENOSYS. Some functions are actually named
12335 something starting with __ and the normal name is an alias. */
12336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12339 char (*f) () = $ac_func;
12348 return f != $ac_func;
12353 rm -f conftest.$ac_objext conftest$ac_exeext
12354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12355 (eval $ac_link) 2>conftest.er1
12357 grep -v '^ *+' conftest.er1 >conftest.err
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
12362 { ac_try='test -z "$ac_c_werror_flag"
12363 || test ! -s conftest.err'
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; } &&
12369 { ac_try='test -s conftest$ac_exeext'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; }; then
12375 eval "$as_ac_var=yes"
12377 echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12380 eval "$as_ac_var=no"
12382 rm -f conftest.err conftest.$ac_objext \
12383 conftest$ac_exeext conftest.$ac_ext
12385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12387 if test `eval echo '${'$as_ac_var'}'` = yes; then
12388 cat >>confdefs.h <<_ACEOF
12389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12397 echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
12398 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
12399 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 cat >conftest.$ac_ext <<_ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12408 $ac_includes_default
12413 char *p = (char *) wcwidth;
12420 rm -f conftest.$ac_objext
12421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12422 (eval $ac_compile) 2>conftest.er1
12424 grep -v '^ *+' conftest.er1 >conftest.err
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } &&
12429 { ac_try='test -z "$ac_c_werror_flag"
12430 || 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_have_decl_wcwidth=yes
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447 ac_cv_have_decl_wcwidth=no
12449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12451 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
12452 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
12453 if test $ac_cv_have_decl_wcwidth = yes; then
12455 cat >>confdefs.h <<_ACEOF
12456 #define HAVE_DECL_WCWIDTH 1
12461 cat >>confdefs.h <<_ACEOF
12462 #define HAVE_DECL_WCWIDTH 0
12469 echo "$as_me:$LINENO: checking for wchar_t" >&5
12470 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
12471 if test "${ac_cv_type_wchar_t+set}" = set; then
12472 echo $ECHO_N "(cached) $ECHO_C" >&6
12474 cat >conftest.$ac_ext <<_ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h. */
12480 $ac_includes_default
12486 if (sizeof (wchar_t))
12492 rm -f conftest.$ac_objext
12493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12494 (eval $ac_compile) 2>conftest.er1
12496 grep -v '^ *+' conftest.er1 >conftest.err
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } &&
12501 { ac_try='test -z "$ac_c_werror_flag"
12502 || test ! -s conftest.err'
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; } &&
12508 { ac_try='test -s conftest.$ac_objext'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 ac_cv_type_wchar_t=yes
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12519 ac_cv_type_wchar_t=no
12521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12523 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
12524 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
12525 if test $ac_cv_type_wchar_t = yes; then
12532 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
12533 ac_widec_possible=yes
12535 ac_widec_possible=no
12539 abook_cv_curses=/usr
12541 # Check whether --with-curses or --without-curses was given.
12542 if test "${with_curses+set}" = set; then
12543 withval="$with_curses"
12544 if test $withval != yes; then
12545 abook_cv_curses=$withval
12547 if test x$abook_cv_curses != x/usr; then
12548 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
12549 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
12553 echo "$as_me:$LINENO: checking for initscr in -lncursesw" >&5
12554 echo $ECHO_N "checking for initscr in -lncursesw... $ECHO_C" >&6
12555 if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 ac_check_lib_save_LIBS=$LIBS
12559 LIBS="-lncursesw $LIBS"
12560 cat >conftest.$ac_ext <<_ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12567 /* Override any gcc2 internal prototype to avoid an error. */
12571 /* We use char because int might match the return type of a gcc2
12572 builtin and then its argument prototype would still apply. */
12582 rm -f conftest.$ac_objext conftest$ac_exeext
12583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12584 (eval $ac_link) 2>conftest.er1
12586 grep -v '^ *+' conftest.er1 >conftest.err
12588 cat conftest.err >&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); } &&
12591 { ac_try='test -z "$ac_c_werror_flag"
12592 || test ! -s conftest.err'
12593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594 (eval $ac_try) 2>&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }; } &&
12598 { ac_try='test -s conftest$ac_exeext'
12599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600 (eval $ac_try) 2>&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; }; then
12604 ac_cv_lib_ncursesw_initscr=yes
12606 echo "$as_me: failed program was:" >&5
12607 sed 's/^/| /' conftest.$ac_ext >&5
12609 ac_cv_lib_ncursesw_initscr=no
12611 rm -f conftest.err conftest.$ac_objext \
12612 conftest$ac_exeext conftest.$ac_ext
12613 LIBS=$ac_check_lib_save_LIBS
12615 echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_initscr" >&5
12616 echo "${ECHO_T}$ac_cv_lib_ncursesw_initscr" >&6
12617 if test $ac_cv_lib_ncursesw_initscr = yes; then
12618 LIBS="$LIBS -lncursesw"
12619 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
12620 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
12623 for ac_header in ncurses.h
12625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12627 echo "$as_me:$LINENO: checking for $ac_header" >&5
12628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12630 echo $ECHO_N "(cached) $ECHO_C" >&6
12632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12635 # Is the header compilable?
12636 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12638 cat >conftest.$ac_ext <<_ACEOF
12641 cat confdefs.h >>conftest.$ac_ext
12642 cat >>conftest.$ac_ext <<_ACEOF
12643 /* end confdefs.h. */
12644 $ac_includes_default
12645 #include <$ac_header>
12647 rm -f conftest.$ac_objext
12648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12649 (eval $ac_compile) 2>conftest.er1
12651 grep -v '^ *+' conftest.er1 >conftest.err
12653 cat conftest.err >&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } &&
12656 { ac_try='test -z "$ac_c_werror_flag"
12657 || test ! -s conftest.err'
12658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659 (eval $ac_try) 2>&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; } &&
12663 { ac_try='test -s conftest.$ac_objext'
12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; }; then
12669 ac_header_compiler=yes
12671 echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12674 ac_header_compiler=no
12676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12678 echo "${ECHO_T}$ac_header_compiler" >&6
12680 # Is the header present?
12681 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12683 cat >conftest.$ac_ext <<_ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h. */
12689 #include <$ac_header>
12691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12694 grep -v '^ *+' conftest.er1 >conftest.err
12696 cat conftest.err >&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } >/dev/null; then
12699 if test -s conftest.err; then
12700 ac_cpp_err=$ac_c_preproc_warn_flag
12701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12708 if test -z "$ac_cpp_err"; then
12709 ac_header_preproc=yes
12711 echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12714 ac_header_preproc=no
12716 rm -f conftest.err conftest.$ac_ext
12717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12718 echo "${ECHO_T}$ac_header_preproc" >&6
12720 # So? What about this header?
12721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12727 ac_header_preproc=yes
12730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12733 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12737 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12744 ## ------------------------------------------ ##
12745 ## Report this to the AC_PACKAGE_NAME lists. ##
12746 ## ------------------------------------------ ##
12749 sed "s/^/$as_me: WARNING: /" >&2
12752 echo "$as_me:$LINENO: checking for $ac_header" >&5
12753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12755 echo $ECHO_N "(cached) $ECHO_C" >&6
12757 eval "$as_ac_Header=\$ac_header_preproc"
12759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12764 cat >>confdefs.h <<_ACEOF
12765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12774 ac_widec_possible=no
12775 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
12776 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
12777 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12780 ac_check_lib_save_LIBS=$LIBS
12781 LIBS="-lncurses $LIBS"
12782 cat >conftest.$ac_ext <<_ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12789 /* Override any gcc2 internal prototype to avoid an error. */
12793 /* We use char because int might match the return type of a gcc2
12794 builtin and then its argument prototype would still apply. */
12804 rm -f conftest.$ac_objext conftest$ac_exeext
12805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12806 (eval $ac_link) 2>conftest.er1
12808 grep -v '^ *+' conftest.er1 >conftest.err
12810 cat conftest.err >&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); } &&
12813 { ac_try='test -z "$ac_c_werror_flag"
12814 || test ! -s conftest.err'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; } &&
12820 { ac_try='test -s conftest$ac_exeext'
12821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822 (eval $ac_try) 2>&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; }; then
12826 ac_cv_lib_ncurses_initscr=yes
12828 echo "$as_me: failed program was:" >&5
12829 sed 's/^/| /' conftest.$ac_ext >&5
12831 ac_cv_lib_ncurses_initscr=no
12833 rm -f conftest.err conftest.$ac_objext \
12834 conftest$ac_exeext conftest.$ac_ext
12835 LIBS=$ac_check_lib_save_LIBS
12837 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
12838 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
12839 if test $ac_cv_lib_ncurses_initscr = yes; then
12840 LIBS="$LIBS -lncurses"
12841 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
12842 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
12845 for ac_header in ncurses.h
12847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12849 echo "$as_me:$LINENO: checking for $ac_header" >&5
12850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12852 echo $ECHO_N "(cached) $ECHO_C" >&6
12854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12857 # Is the header compilable?
12858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12860 cat >conftest.$ac_ext <<_ACEOF
12863 cat confdefs.h >>conftest.$ac_ext
12864 cat >>conftest.$ac_ext <<_ACEOF
12865 /* end confdefs.h. */
12866 $ac_includes_default
12867 #include <$ac_header>
12869 rm -f conftest.$ac_objext
12870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12871 (eval $ac_compile) 2>conftest.er1
12873 grep -v '^ *+' conftest.er1 >conftest.err
12875 cat conftest.err >&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); } &&
12878 { ac_try='test -z "$ac_c_werror_flag"
12879 || test ! -s conftest.err'
12880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881 (eval $ac_try) 2>&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; } &&
12885 { ac_try='test -s conftest.$ac_objext'
12886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887 (eval $ac_try) 2>&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; }; then
12891 ac_header_compiler=yes
12893 echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12896 ac_header_compiler=no
12898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12899 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12900 echo "${ECHO_T}$ac_header_compiler" >&6
12902 # Is the header present?
12903 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12905 cat >conftest.$ac_ext <<_ACEOF
12908 cat confdefs.h >>conftest.$ac_ext
12909 cat >>conftest.$ac_ext <<_ACEOF
12910 /* end confdefs.h. */
12911 #include <$ac_header>
12913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12916 grep -v '^ *+' conftest.er1 >conftest.err
12918 cat conftest.err >&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } >/dev/null; then
12921 if test -s conftest.err; then
12922 ac_cpp_err=$ac_c_preproc_warn_flag
12923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12930 if test -z "$ac_cpp_err"; then
12931 ac_header_preproc=yes
12933 echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12936 ac_header_preproc=no
12938 rm -f conftest.err conftest.$ac_ext
12939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12940 echo "${ECHO_T}$ac_header_preproc" >&6
12942 # So? What about this header?
12943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12949 ac_header_preproc=yes
12952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12966 ## ------------------------------------------ ##
12967 ## Report this to the AC_PACKAGE_NAME lists. ##
12968 ## ------------------------------------------ ##
12971 sed "s/^/$as_me: WARNING: /" >&2
12974 echo "$as_me:$LINENO: checking for $ac_header" >&5
12975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12979 eval "$as_ac_Header=\$ac_header_preproc"
12981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12986 cat >>confdefs.h <<_ACEOF
12987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12996 echo "$as_me:$LINENO: checking for initscr" >&5
12997 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
12998 if test "${ac_cv_func_initscr+set}" = set; then
12999 echo $ECHO_N "(cached) $ECHO_C" >&6
13001 cat >conftest.$ac_ext <<_ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13007 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
13008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13009 #define initscr innocuous_initscr
13011 /* System header to define __stub macros and hopefully few prototypes,
13012 which can conflict with char initscr (); below.
13013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13014 <limits.h> exists even on freestanding compilers. */
13017 # include <limits.h>
13019 # include <assert.h>
13024 /* Override any gcc2 internal prototype to avoid an error. */
13029 /* We use char because int might match the return type of a gcc2
13030 builtin and then its argument prototype would still apply. */
13032 /* The GNU C library defines this for functions which it implements
13033 to always fail with ENOSYS. Some functions are actually named
13034 something starting with __ and the normal name is an alias. */
13035 #if defined (__stub_initscr) || defined (__stub___initscr)
13038 char (*f) () = initscr;
13047 return f != initscr;
13052 rm -f conftest.$ac_objext conftest$ac_exeext
13053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13054 (eval $ac_link) 2>conftest.er1
13056 grep -v '^ *+' conftest.er1 >conftest.err
13058 cat conftest.err >&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } &&
13061 { ac_try='test -z "$ac_c_werror_flag"
13062 || test ! -s conftest.err'
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; } &&
13068 { ac_try='test -s conftest$ac_exeext'
13069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070 (eval $ac_try) 2>&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; }; then
13074 ac_cv_func_initscr=yes
13076 echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13079 ac_cv_func_initscr=no
13081 rm -f conftest.err conftest.$ac_objext \
13082 conftest$ac_exeext conftest.$ac_ext
13084 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
13085 echo "${ECHO_T}$ac_cv_func_initscr" >&6
13086 if test $ac_cv_func_initscr = yes; then
13090 case $host_os in #(vi
13092 echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
13093 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
13094 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
13097 ac_check_lib_save_LIBS=$LIBS
13098 LIBS="-lmytinfo $LIBS"
13099 cat >conftest.$ac_ext <<_ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h. */
13106 /* Override any gcc2 internal prototype to avoid an error. */
13110 /* We use char because int might match the return type of a gcc2
13111 builtin and then its argument prototype would still apply. */
13121 rm -f conftest.$ac_objext conftest$ac_exeext
13122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13123 (eval $ac_link) 2>conftest.er1
13125 grep -v '^ *+' conftest.er1 >conftest.err
13127 cat conftest.err >&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } &&
13130 { ac_try='test -z "$ac_c_werror_flag"
13131 || test ! -s conftest.err'
13132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133 (eval $ac_try) 2>&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; } &&
13137 { ac_try='test -s conftest$ac_exeext'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; }; then
13143 ac_cv_lib_mytinfo_tgoto=yes
13145 echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.$ac_ext >&5
13148 ac_cv_lib_mytinfo_tgoto=no
13150 rm -f conftest.err conftest.$ac_objext \
13151 conftest$ac_exeext conftest.$ac_ext
13152 LIBS=$ac_check_lib_save_LIBS
13154 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
13155 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
13156 if test $ac_cv_lib_mytinfo_tgoto = yes; then
13157 LIBS="-lmytinfo $LIBS"
13162 echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
13163 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
13164 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
13165 echo $ECHO_N "(cached) $ECHO_C" >&6
13167 ac_check_lib_save_LIBS=$LIBS
13168 LIBS="-lcur_colr $LIBS"
13169 cat >conftest.$ac_ext <<_ACEOF
13172 cat confdefs.h >>conftest.$ac_ext
13173 cat >>conftest.$ac_ext <<_ACEOF
13174 /* end confdefs.h. */
13176 /* Override any gcc2 internal prototype to avoid an error. */
13180 /* We use char because int might match the return type of a gcc2
13181 builtin and then its argument prototype would still apply. */
13191 rm -f conftest.$ac_objext conftest$ac_exeext
13192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13193 (eval $ac_link) 2>conftest.er1
13195 grep -v '^ *+' conftest.er1 >conftest.err
13197 cat conftest.err >&5
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); } &&
13200 { ac_try='test -z "$ac_c_werror_flag"
13201 || test ! -s conftest.err'
13202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13203 (eval $ac_try) 2>&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); }; } &&
13207 { ac_try='test -s conftest$ac_exeext'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; }; then
13213 ac_cv_lib_cur_colr_initscr=yes
13215 echo "$as_me: failed program was:" >&5
13216 sed 's/^/| /' conftest.$ac_ext >&5
13218 ac_cv_lib_cur_colr_initscr=no
13220 rm -f conftest.err conftest.$ac_objext \
13221 conftest$ac_exeext conftest.$ac_ext
13222 LIBS=$ac_check_lib_save_LIBS
13224 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
13225 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
13226 if test $ac_cv_lib_cur_colr_initscr = yes; then
13228 LIBS="-lcur_colr $LIBS"
13229 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
13230 ac_cv_func_initscr=yes
13234 echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
13235 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
13236 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
13237 echo $ECHO_N "(cached) $ECHO_C" >&6
13239 ac_check_lib_save_LIBS=$LIBS
13240 LIBS="-lHcurses $LIBS"
13241 cat >conftest.$ac_ext <<_ACEOF
13244 cat confdefs.h >>conftest.$ac_ext
13245 cat >>conftest.$ac_ext <<_ACEOF
13246 /* end confdefs.h. */
13248 /* Override any gcc2 internal prototype to avoid an error. */
13252 /* We use char because int might match the return type of a gcc2
13253 builtin and then its argument prototype would still apply. */
13263 rm -f conftest.$ac_objext conftest$ac_exeext
13264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13265 (eval $ac_link) 2>conftest.er1
13267 grep -v '^ *+' conftest.er1 >conftest.err
13269 cat conftest.err >&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); } &&
13272 { ac_try='test -z "$ac_c_werror_flag"
13273 || test ! -s conftest.err'
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; } &&
13279 { ac_try='test -s conftest$ac_exeext'
13280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281 (eval $ac_try) 2>&5
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; }; then
13285 ac_cv_lib_Hcurses_initscr=yes
13287 echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13290 ac_cv_lib_Hcurses_initscr=no
13292 rm -f conftest.err conftest.$ac_objext \
13293 conftest$ac_exeext conftest.$ac_ext
13294 LIBS=$ac_check_lib_save_LIBS
13296 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
13297 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
13298 if test $ac_cv_lib_Hcurses_initscr = yes; then
13300 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
13301 LIBS="-lHcurses $LIBS"
13302 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
13303 ac_cv_func_initscr=yes
13310 linux*) # Suse Linux does not follow /usr/lib convention
13311 LIBS="$LIBS -L/lib"
13315 if test ".$With5lib" != ".no" ; then
13316 if test -d /usr/5lib ; then
13318 CPPFLAGS="$CPPFLAGS -I/usr/5include"
13319 LIBS="$LIBS -L/usr/5lib"
13323 if test ".$ac_cv_func_initscr" != .yes ; then
13324 cf_save_LIBS="$LIBS"
13328 # Check for library containing tgoto. Do this before curses library
13329 # because it may be needed to link the test-case for initscr.
13330 echo "$as_me:$LINENO: checking for tgoto" >&5
13331 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
13332 if test "${ac_cv_func_tgoto+set}" = set; then
13333 echo $ECHO_N "(cached) $ECHO_C" >&6
13335 cat >conftest.$ac_ext <<_ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h. */
13341 /* Define tgoto to an innocuous variant, in case <limits.h> declares tgoto.
13342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13343 #define tgoto innocuous_tgoto
13345 /* System header to define __stub macros and hopefully few prototypes,
13346 which can conflict with char tgoto (); below.
13347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13348 <limits.h> exists even on freestanding compilers. */
13351 # include <limits.h>
13353 # include <assert.h>
13358 /* Override any gcc2 internal prototype to avoid an error. */
13363 /* We use char because int might match the return type of a gcc2
13364 builtin and then its argument prototype would still apply. */
13366 /* The GNU C library defines this for functions which it implements
13367 to always fail with ENOSYS. Some functions are actually named
13368 something starting with __ and the normal name is an alias. */
13369 #if defined (__stub_tgoto) || defined (__stub___tgoto)
13372 char (*f) () = tgoto;
13386 rm -f conftest.$ac_objext conftest$ac_exeext
13387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13388 (eval $ac_link) 2>conftest.er1
13390 grep -v '^ *+' conftest.er1 >conftest.err
13392 cat conftest.err >&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); } &&
13395 { ac_try='test -z "$ac_c_werror_flag"
13396 || test ! -s conftest.err'
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; } &&
13402 { ac_try='test -s conftest$ac_exeext'
13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
13408 ac_cv_func_tgoto=yes
13410 echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13413 ac_cv_func_tgoto=no
13415 rm -f conftest.err conftest.$ac_objext \
13416 conftest$ac_exeext conftest.$ac_ext
13418 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
13419 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
13420 if test $ac_cv_func_tgoto = yes; then
13421 cf_term_lib=predefined
13424 for cf_term_lib in termcap termlib unknown
13426 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
13427 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
13428 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
13429 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13432 ac_check_lib_save_LIBS=$LIBS
13433 LIBS="-l$cf_term_lib $LIBS"
13434 cat >conftest.$ac_ext <<_ACEOF
13437 cat confdefs.h >>conftest.$ac_ext
13438 cat >>conftest.$ac_ext <<_ACEOF
13439 /* end confdefs.h. */
13441 /* Override any gcc2 internal prototype to avoid an error. */
13445 /* We use char because int might match the return type of a gcc2
13446 builtin and then its argument prototype would still apply. */
13456 rm -f conftest.$ac_objext conftest$ac_exeext
13457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13458 (eval $ac_link) 2>conftest.er1
13460 grep -v '^ *+' conftest.er1 >conftest.err
13462 cat conftest.err >&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } &&
13465 { ac_try='test -z "$ac_c_werror_flag"
13466 || test ! -s conftest.err'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; } &&
13472 { ac_try='test -s conftest$ac_exeext'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; }; then
13478 eval "$as_ac_Lib=yes"
13480 echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13483 eval "$as_ac_Lib=no"
13485 rm -f conftest.err conftest.$ac_objext \
13486 conftest$ac_exeext conftest.$ac_ext
13487 LIBS=$ac_check_lib_save_LIBS
13489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13490 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13491 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13500 # Check for library containing initscr
13501 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
13502 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
13504 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
13505 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
13506 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
13507 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 ac_check_lib_save_LIBS=$LIBS
13511 LIBS="-l$cf_curs_lib $LIBS"
13512 cat >conftest.$ac_ext <<_ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h. */
13519 /* Override any gcc2 internal prototype to avoid an error. */
13523 /* We use char because int might match the return type of a gcc2
13524 builtin and then its argument prototype would still apply. */
13534 rm -f conftest.$ac_objext conftest$ac_exeext
13535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13536 (eval $ac_link) 2>conftest.er1
13538 grep -v '^ *+' conftest.er1 >conftest.err
13540 cat conftest.err >&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } &&
13543 { ac_try='test -z "$ac_c_werror_flag"
13544 || test ! -s conftest.err'
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; } &&
13550 { ac_try='test -s conftest$ac_exeext'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; }; then
13556 eval "$as_ac_Lib=yes"
13558 echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.$ac_ext >&5
13561 eval "$as_ac_Lib=no"
13563 rm -f conftest.err conftest.$ac_objext \
13564 conftest$ac_exeext conftest.$ac_ext
13565 LIBS=$ac_check_lib_save_LIBS
13567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13568 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13569 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13574 test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
13575 echo "$as_me: error: no curses library found" >&2;}
13576 { (exit 1); exit 1; }; }
13578 LIBS="-l$cf_curs_lib $cf_save_LIBS"
13579 if test "$cf_term_lib" = unknown ; then
13580 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
13581 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
13582 cat >conftest.$ac_ext <<_ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h. */
13588 #include <${cf_cv_ncurses_header-curses.h}>
13597 rm -f conftest.$ac_objext conftest$ac_exeext
13598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13599 (eval $ac_link) 2>conftest.er1
13601 grep -v '^ *+' conftest.er1 >conftest.err
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } &&
13606 { ac_try='test -z "$ac_c_werror_flag"
13607 || test ! -s conftest.err'
13608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; } &&
13613 { ac_try='test -s conftest$ac_exeext'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13621 echo "$as_me: failed program was:" >&5
13622 sed 's/^/| /' conftest.$ac_ext >&5
13626 rm -f conftest.err conftest.$ac_objext \
13627 conftest$ac_exeext conftest.$ac_ext
13628 echo "$as_me:$LINENO: result: $cf_result" >&5
13629 echo "${ECHO_T}$cf_result" >&6
13630 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
13631 echo "$as_me: error: Cannot link curses library" >&2;}
13632 { (exit 1); exit 1; }; }
13633 elif test "$cf_term_lib" != predefined ; then
13634 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
13635 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
13636 cat >conftest.$ac_ext <<_ACEOF
13639 cat confdefs.h >>conftest.$ac_ext
13640 cat >>conftest.$ac_ext <<_ACEOF
13641 /* end confdefs.h. */
13642 #include <${cf_cv_ncurses_header-curses.h}>
13646 initscr(); tgoto((char *)0, 0, 0);
13651 rm -f conftest.$ac_objext conftest$ac_exeext
13652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13653 (eval $ac_link) 2>conftest.er1
13655 grep -v '^ *+' conftest.er1 >conftest.err
13657 cat conftest.err >&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } &&
13660 { ac_try='test -z "$ac_c_werror_flag"
13661 || test ! -s conftest.err'
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; } &&
13667 { ac_try='test -s conftest$ac_exeext'
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; }; then
13675 echo "$as_me: failed program was:" >&5
13676 sed 's/^/| /' conftest.$ac_ext >&5
13679 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
13680 cat >conftest.$ac_ext <<_ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h. */
13686 #include <${cf_cv_ncurses_header-curses.h}>
13695 rm -f conftest.$ac_objext conftest$ac_exeext
13696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13697 (eval $ac_link) 2>conftest.er1
13699 grep -v '^ *+' conftest.er1 >conftest.err
13701 cat conftest.err >&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } &&
13704 { ac_try='test -z "$ac_c_werror_flag"
13705 || test ! -s conftest.err'
13706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; } &&
13711 { ac_try='test -s conftest$ac_exeext'
13712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713 (eval $ac_try) 2>&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; }; then
13719 echo "$as_me: failed program was:" >&5
13720 sed 's/^/| /' conftest.$ac_ext >&5
13724 rm -f conftest.err conftest.$ac_objext \
13725 conftest$ac_exeext conftest.$ac_ext
13728 rm -f conftest.err conftest.$ac_objext \
13729 conftest$ac_exeext conftest.$ac_ext
13730 echo "$as_me:$LINENO: result: $cf_result" >&5
13731 echo "${ECHO_T}$cf_result" >&6
13746 abook_cv_readline=/usr
13748 # Check whether --with-readline or --without-readline was given.
13749 if test "${with_readline+set}" = set; then
13750 withval="$with_readline"
13751 if test $withval != yes; then
13752 abook_cv_readline=$withval
13754 if test x$abook_cv_readline != x/usr; then
13755 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
13756 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
13761 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
13762 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
13763 if test "${ac_cv_lib_readline+set}" = set; then
13764 echo $ECHO_N "(cached) $ECHO_C" >&6
13768 for readline_lib in readline edit editline; do
13769 for termcap_lib in "" termcap curses ncurses; do
13770 if test -z "$termcap_lib"; then
13771 TRY_LIB="-l$readline_lib"
13773 TRY_LIB="-l$readline_lib -l$termcap_lib"
13775 LIBS="$ORIG_LIBS $TRY_LIB"
13776 cat >conftest.$ac_ext <<_ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13783 /* Override any gcc2 internal prototype to avoid an error. */
13787 /* We use char because int might match the return type of a gcc2
13788 builtin and then its argument prototype would still apply. */
13798 rm -f conftest.$ac_objext conftest$ac_exeext
13799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13800 (eval $ac_link) 2>conftest.er1
13802 grep -v '^ *+' conftest.er1 >conftest.err
13804 cat conftest.err >&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } &&
13807 { ac_try='test -z "$ac_c_werror_flag"
13808 || test ! -s conftest.err'
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; } &&
13814 { ac_try='test -s conftest$ac_exeext'
13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816 (eval $ac_try) 2>&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; }; then
13820 ac_cv_lib_readline="$TRY_LIB"
13822 echo "$as_me: failed program was:" >&5
13823 sed 's/^/| /' conftest.$ac_ext >&5
13826 rm -f conftest.err conftest.$ac_objext \
13827 conftest$ac_exeext conftest.$ac_ext
13828 if test -n "$ac_cv_lib_readline"; then
13832 if test -n "$ac_cv_lib_readline"; then
13836 if test -z "$ac_cv_lib_readline"; then
13837 ac_cv_lib_readline="no"
13842 echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
13843 echo "${ECHO_T}$ac_cv_lib_readline" >&6
13845 if test "$ac_cv_lib_readline" != "no"; then
13846 LIBS="$LIBS $ac_cv_lib_readline"
13848 cat >>confdefs.h <<\_ACEOF
13849 #define HAVE_LIBREADLINE 1
13854 for ac_header in readline.h readline/readline.h
13856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13858 echo "$as_me:$LINENO: checking for $ac_header" >&5
13859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13861 echo $ECHO_N "(cached) $ECHO_C" >&6
13863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13866 # Is the header compilable?
13867 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13869 cat >conftest.$ac_ext <<_ACEOF
13872 cat confdefs.h >>conftest.$ac_ext
13873 cat >>conftest.$ac_ext <<_ACEOF
13874 /* end confdefs.h. */
13875 $ac_includes_default
13876 #include <$ac_header>
13878 rm -f conftest.$ac_objext
13879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13880 (eval $ac_compile) 2>conftest.er1
13882 grep -v '^ *+' conftest.er1 >conftest.err
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } &&
13887 { ac_try='test -z "$ac_c_werror_flag"
13888 || test ! -s conftest.err'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; } &&
13894 { ac_try='test -s conftest.$ac_objext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 ac_header_compiler=yes
13902 echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13905 ac_header_compiler=no
13907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13909 echo "${ECHO_T}$ac_header_compiler" >&6
13911 # Is the header present?
13912 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13914 cat >conftest.$ac_ext <<_ACEOF
13917 cat confdefs.h >>conftest.$ac_ext
13918 cat >>conftest.$ac_ext <<_ACEOF
13919 /* end confdefs.h. */
13920 #include <$ac_header>
13922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13925 grep -v '^ *+' conftest.er1 >conftest.err
13927 cat conftest.err >&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); } >/dev/null; then
13930 if test -s conftest.err; then
13931 ac_cpp_err=$ac_c_preproc_warn_flag
13932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13939 if test -z "$ac_cpp_err"; then
13940 ac_header_preproc=yes
13942 echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13945 ac_header_preproc=no
13947 rm -f conftest.err conftest.$ac_ext
13948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13949 echo "${ECHO_T}$ac_header_preproc" >&6
13951 # So? What about this header?
13952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13957 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13958 ac_header_preproc=yes
13961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13964 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13966 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13968 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13972 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13975 ## ------------------------------------------ ##
13976 ## Report this to the AC_PACKAGE_NAME lists. ##
13977 ## ------------------------------------------ ##
13980 sed "s/^/$as_me: WARNING: /" >&2
13983 echo "$as_me:$LINENO: checking for $ac_header" >&5
13984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13988 eval "$as_ac_Header=\$ac_header_preproc"
13990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13995 cat >>confdefs.h <<_ACEOF
13996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14003 echo "$as_me:$LINENO: checking whether readline supports history" >&5
14004 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
14005 if test "${ac_cv_lib_readline_history+set}" = set; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14009 ac_cv_lib_readline_history="no"
14010 cat >conftest.$ac_ext <<_ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h. */
14017 /* Override any gcc2 internal prototype to avoid an error. */
14021 /* We use char because int might match the return type of a gcc2
14022 builtin and then its argument prototype would still apply. */
14023 char add_history ();
14032 rm -f conftest.$ac_objext conftest$ac_exeext
14033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14034 (eval $ac_link) 2>conftest.er1
14036 grep -v '^ *+' conftest.er1 >conftest.err
14038 cat conftest.err >&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } &&
14041 { ac_try='test -z "$ac_c_werror_flag"
14042 || test ! -s conftest.err'
14043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14044 (eval $ac_try) 2>&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); }; } &&
14048 { ac_try='test -s conftest$ac_exeext'
14049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14050 (eval $ac_try) 2>&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; }; then
14054 ac_cv_lib_readline_history="yes"
14056 echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.$ac_ext >&5
14060 rm -f conftest.err conftest.$ac_objext \
14061 conftest$ac_exeext conftest.$ac_ext
14064 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
14065 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6
14066 if test "$ac_cv_lib_readline_history" = "yes"; then
14068 cat >>confdefs.h <<\_ACEOF
14069 #define HAVE_READLINE_HISTORY 1
14074 for ac_header in history.h readline/history.h
14076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14078 echo "$as_me:$LINENO: checking for $ac_header" >&5
14079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14081 echo $ECHO_N "(cached) $ECHO_C" >&6
14083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14086 # Is the header compilable?
14087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14089 cat >conftest.$ac_ext <<_ACEOF
14092 cat confdefs.h >>conftest.$ac_ext
14093 cat >>conftest.$ac_ext <<_ACEOF
14094 /* end confdefs.h. */
14095 $ac_includes_default
14096 #include <$ac_header>
14098 rm -f conftest.$ac_objext
14099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14100 (eval $ac_compile) 2>conftest.er1
14102 grep -v '^ *+' conftest.er1 >conftest.err
14104 cat conftest.err >&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } &&
14107 { ac_try='test -z "$ac_c_werror_flag"
14108 || test ! -s conftest.err'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; } &&
14114 { ac_try='test -s conftest.$ac_objext'
14115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116 (eval $ac_try) 2>&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; }; then
14120 ac_header_compiler=yes
14122 echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14125 ac_header_compiler=no
14127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14128 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14129 echo "${ECHO_T}$ac_header_compiler" >&6
14131 # Is the header present?
14132 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14134 cat >conftest.$ac_ext <<_ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h. */
14140 #include <$ac_header>
14142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14145 grep -v '^ *+' conftest.er1 >conftest.err
14147 cat conftest.err >&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); } >/dev/null; then
14150 if test -s conftest.err; then
14151 ac_cpp_err=$ac_c_preproc_warn_flag
14152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14159 if test -z "$ac_cpp_err"; then
14160 ac_header_preproc=yes
14162 echo "$as_me: failed program was:" >&5
14163 sed 's/^/| /' conftest.$ac_ext >&5
14165 ac_header_preproc=no
14167 rm -f conftest.err conftest.$ac_ext
14168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14169 echo "${ECHO_T}$ac_header_preproc" >&6
14171 # So? What about this header?
14172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14178 ac_header_preproc=yes
14181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14195 ## ------------------------------------------ ##
14196 ## Report this to the AC_PACKAGE_NAME lists. ##
14197 ## ------------------------------------------ ##
14200 sed "s/^/$as_me: WARNING: /" >&2
14203 echo "$as_me:$LINENO: checking for $ac_header" >&5
14204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14206 echo $ECHO_N "(cached) $ECHO_C" >&6
14208 eval "$as_ac_Header=\$ac_header_preproc"
14210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14215 cat >>confdefs.h <<_ACEOF
14216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14228 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
14229 { { echo "$as_me:$LINENO: error: *** readline library not found or it doesn't support history ***" >&5
14230 echo "$as_me: error: *** readline library not found or it doesn't support history ***" >&2;}
14231 { (exit 1); exit 1; }; }
14235 if test x$ac_widec_possible = xyes; then
14237 cat >>confdefs.h <<\_ACEOF
14238 #define HANDLE_MULTIBYTE 1
14244 for ac_func in resizeterm
14246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14247 echo "$as_me:$LINENO: checking for $ac_func" >&5
14248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14249 if eval "test \"\${$as_ac_var+set}\" = set"; then
14250 echo $ECHO_N "(cached) $ECHO_C" >&6
14252 cat >conftest.$ac_ext <<_ACEOF
14255 cat confdefs.h >>conftest.$ac_ext
14256 cat >>conftest.$ac_ext <<_ACEOF
14257 /* end confdefs.h. */
14258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14260 #define $ac_func innocuous_$ac_func
14262 /* System header to define __stub macros and hopefully few prototypes,
14263 which can conflict with char $ac_func (); below.
14264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14265 <limits.h> exists even on freestanding compilers. */
14268 # include <limits.h>
14270 # include <assert.h>
14275 /* Override any gcc2 internal prototype to avoid an error. */
14280 /* We use char because int might match the return type of a gcc2
14281 builtin and then its argument prototype would still apply. */
14283 /* The GNU C library defines this for functions which it implements
14284 to always fail with ENOSYS. Some functions are actually named
14285 something starting with __ and the normal name is an alias. */
14286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14289 char (*f) () = $ac_func;
14298 return f != $ac_func;
14303 rm -f conftest.$ac_objext conftest$ac_exeext
14304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14305 (eval $ac_link) 2>conftest.er1
14307 grep -v '^ *+' conftest.er1 >conftest.err
14309 cat conftest.err >&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } &&
14312 { ac_try='test -z "$ac_c_werror_flag"
14313 || test ! -s conftest.err'
14314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14315 (eval $ac_try) 2>&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; } &&
14319 { ac_try='test -s conftest$ac_exeext'
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; }; then
14325 eval "$as_ac_var=yes"
14327 echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14330 eval "$as_ac_var=no"
14332 rm -f conftest.err conftest.$ac_objext \
14333 conftest$ac_exeext conftest.$ac_ext
14335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14337 if test `eval echo '${'$as_ac_var'}'` = yes; then
14338 cat >>confdefs.h <<_ACEOF
14339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14348 for ac_func in snprintf vsnprintf
14350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14351 echo "$as_me:$LINENO: checking for $ac_func" >&5
14352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14353 if eval "test \"\${$as_ac_var+set}\" = set"; then
14354 echo $ECHO_N "(cached) $ECHO_C" >&6
14356 cat >conftest.$ac_ext <<_ACEOF
14359 cat confdefs.h >>conftest.$ac_ext
14360 cat >>conftest.$ac_ext <<_ACEOF
14361 /* end confdefs.h. */
14362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14364 #define $ac_func innocuous_$ac_func
14366 /* System header to define __stub macros and hopefully few prototypes,
14367 which can conflict with char $ac_func (); below.
14368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14369 <limits.h> exists even on freestanding compilers. */
14372 # include <limits.h>
14374 # include <assert.h>
14379 /* Override any gcc2 internal prototype to avoid an error. */
14384 /* We use char because int might match the return type of a gcc2
14385 builtin and then its argument prototype would still apply. */
14387 /* The GNU C library defines this for functions which it implements
14388 to always fail with ENOSYS. Some functions are actually named
14389 something starting with __ and the normal name is an alias. */
14390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14393 char (*f) () = $ac_func;
14402 return f != $ac_func;
14407 rm -f conftest.$ac_objext conftest$ac_exeext
14408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14409 (eval $ac_link) 2>conftest.er1
14411 grep -v '^ *+' conftest.er1 >conftest.err
14413 cat conftest.err >&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); } &&
14416 { ac_try='test -z "$ac_c_werror_flag"
14417 || test ! -s conftest.err'
14418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419 (eval $ac_try) 2>&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); }; } &&
14423 { ac_try='test -s conftest$ac_exeext'
14424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425 (eval $ac_try) 2>&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; }; then
14429 eval "$as_ac_var=yes"
14431 echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14434 eval "$as_ac_var=no"
14436 rm -f conftest.err conftest.$ac_objext \
14437 conftest$ac_exeext conftest.$ac_ext
14439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14440 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14441 if test `eval echo '${'$as_ac_var'}'` = yes; then
14442 cat >>confdefs.h <<_ACEOF
14443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14450 # Check whether --enable-debug or --disable-debug was given.
14451 if test "${enable_debug+set}" = set; then
14452 enableval="$enable_debug"
14453 case "${enableval}" in
14456 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
14457 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
14458 { (exit 1); exit 1; }; } ;;
14464 if test x$debug = xtrue; then
14465 CPPFLAGS="-DDEBUG=1 $CPPFLAGS"
14466 CFLAGS="-g $CFLAGS"
14469 if test x$GCC = xyes; then
14470 CFLAGS="-Wall $CFLAGS"
14473 ac_config_files="$ac_config_files Makefile abook.spec intl/Makefile po/Makefile.in"
14474 cat >confcache <<\_ACEOF
14475 # This file is a shell script that caches the results of configure
14476 # tests run on this system so they can be shared between configure
14477 # scripts and configure runs, see configure's option --config-cache.
14478 # It is not useful on other systems. If it contains results you don't
14479 # want to keep, you may remove or edit it.
14481 # config.status only pays attention to the cache file if you give it
14482 # the --recheck option to rerun configure.
14484 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14485 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14486 # following values.
14490 # The following way of writing the cache mishandles newlines in values,
14491 # but we know of no workaround that is simple, portable, and efficient.
14492 # So, don't put newlines in cache variables' values.
14493 # Ultrix sh set writes to stderr and can't be redirected directly,
14494 # and sets the high bit in the cache file unless we assign to the vars.
14497 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14499 # `set' does not quote correctly, so add quotes (double-quote
14500 # substitution turns \\\\ into \\, and sed turns \\ into \).
14503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14506 # `set' quotes correctly as required by POSIX, so do not add quotes.
14508 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14515 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14517 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14519 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14520 if test -w $cache_file; then
14521 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14522 cat confcache >$cache_file
14524 echo "not updating unwritable cache $cache_file"
14529 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14530 # Let make expand exec_prefix.
14531 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14533 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14534 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14535 # trailing colons and then remove the whole line if VPATH becomes empty
14536 # (actually we leave an empty line to preserve line numbers).
14537 if test "x$srcdir" = x.; then
14538 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14539 s/:*\$(srcdir):*/:/;
14540 s/:*\${srcdir}:*/:/;
14542 s/^\([^=]*=[ ]*\):*/\1/;
14548 DEFS=-DHAVE_CONFIG_H
14552 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14553 # 1. Remove the extension, and $U if already installed.
14554 ac_i=`echo "$ac_i" |
14555 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14557 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14558 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14560 LIBOBJS=$ac_libobjs
14562 LTLIBOBJS=$ac_ltlibobjs
14565 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14566 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14567 Usually this means the macro was only invoked conditionally." >&5
14568 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14569 Usually this means the macro was only invoked conditionally." >&2;}
14570 { (exit 1); exit 1; }; }
14572 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14573 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14574 Usually this means the macro was only invoked conditionally." >&5
14575 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14576 Usually this means the macro was only invoked conditionally." >&2;}
14577 { (exit 1); exit 1; }; }
14579 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14580 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14581 Usually this means the macro was only invoked conditionally." >&5
14582 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14583 Usually this means the macro was only invoked conditionally." >&2;}
14584 { (exit 1); exit 1; }; }
14587 : ${CONFIG_STATUS=./config.status}
14588 ac_clean_files_save=$ac_clean_files
14589 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14590 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14591 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14592 cat >$CONFIG_STATUS <<_ACEOF
14594 # Generated by $as_me.
14595 # Run this file to recreate the current configuration.
14596 # Compiler output produced by configure, useful for debugging
14597 # configure, is in config.log if it exists.
14600 ac_cs_recheck=false
14602 SHELL=\${CONFIG_SHELL-$SHELL}
14605 cat >>$CONFIG_STATUS <<\_ACEOF
14606 ## --------------------- ##
14607 ## M4sh Initialization. ##
14608 ## --------------------- ##
14610 # Be Bourne compatible
14611 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14614 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14615 # is contrary to our usage. Disable this feature.
14616 alias -g '${1+"$@"}'='"$@"'
14617 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14620 DUALCASE=1; export DUALCASE # for MKS sh
14622 # Support unset when possible.
14623 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14630 # Work around bugs in pre-3.0 UWIN ksh.
14631 $as_unset ENV MAIL MAILPATH
14638 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14639 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14640 LC_TELEPHONE LC_TIME
14642 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14643 eval $as_var=C; export $as_var
14649 # Required to use basename.
14650 if expr a : '\(a\)' >/dev/null 2>&1; then
14656 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14657 as_basename=basename
14663 # Name of the executable.
14664 as_me=`$as_basename "$0" ||
14665 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14666 X"$0" : 'X\(//\)$' \| \
14667 X"$0" : 'X\(/\)$' \| \
14668 . : '\(.\)' 2>/dev/null ||
14670 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14671 /^X\/\(\/\/\)$/{ s//\1/; q; }
14672 /^X\/\(\/\).*/{ s//\1/; q; }
14676 # PATH needs CR, and LINENO needs CR and PATH.
14677 # Avoid depending upon Character Ranges.
14678 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14679 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14680 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14681 as_cr_digits='0123456789'
14682 as_cr_alnum=$as_cr_Letters$as_cr_digits
14684 # The user is always right.
14685 if test "${PATH_SEPARATOR+set}" != set; then
14686 echo "#! /bin/sh" >conf$$.sh
14687 echo "exit 0" >>conf$$.sh
14689 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14698 as_lineno_1=$LINENO
14699 as_lineno_2=$LINENO
14700 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14701 test "x$as_lineno_1" != "x$as_lineno_2" &&
14702 test "x$as_lineno_3" = "x$as_lineno_2" || {
14703 # Find who we are. Look in the path if we contain no path at all
14706 *[\\/]* ) as_myself=$0 ;;
14707 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14708 for as_dir in $PATH
14711 test -z "$as_dir" && as_dir=.
14712 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14717 # We did not find ourselves, most probably we were run as `sh COMMAND'
14718 # in which case we are not to be found in the path.
14719 if test "x$as_myself" = x; then
14722 if test ! -f "$as_myself"; then
14723 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14724 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14725 { (exit 1); exit 1; }; }
14727 case $CONFIG_SHELL in
14729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14730 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14733 test -z "$as_dir" && as_dir=.
14734 for as_base in sh bash ksh sh5; do
14737 if ("$as_dir/$as_base" -c '
14738 as_lineno_1=$LINENO
14739 as_lineno_2=$LINENO
14740 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14741 test "x$as_lineno_1" != "x$as_lineno_2" &&
14742 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14743 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14744 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14745 CONFIG_SHELL=$as_dir/$as_base
14746 export CONFIG_SHELL
14747 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14755 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14756 # uniformly replaced by the line number. The first 'sed' inserts a
14757 # line-number line before each line; the second 'sed' does the real
14758 # work. The second script uses 'N' to pair each line-number line
14759 # with the numbered line, and appends trailing '-' during
14760 # substitution so that $LINENO is not a special case at line end.
14761 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14762 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14763 sed '=' <$as_myself |
14768 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14771 s,^['$as_cr_digits']*\n,,
14772 ' >$as_me.lineno &&
14773 chmod +x $as_me.lineno ||
14774 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14775 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14776 { (exit 1); exit 1; }; }
14778 # Don't try to exec as it changes $[0], causing all sort of problems
14779 # (the dirname of $[0] is not the place where we might find the
14780 # original and so on. Autoconf is especially sensible to this).
14782 # Exit status is that of the last command.
14787 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14788 *c*,-n*) ECHO_N= ECHO_C='
14790 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14791 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14794 if expr a : '\(a\)' >/dev/null 2>&1; then
14800 rm -f conf$$ conf$$.exe conf$$.file
14802 if ln -s conf$$.file conf$$ 2>/dev/null; then
14803 # We could just check for DJGPP; but this test a) works b) is more generic
14804 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14805 if test -f conf$$.exe; then
14806 # Don't use ln at all; we don't have any links
14811 elif ln conf$$.file conf$$ 2>/dev/null; then
14816 rm -f conf$$ conf$$.exe conf$$.file
14818 if mkdir -p . 2>/dev/null; then
14821 test -d ./-p && rmdir ./-p
14825 as_executable_p="test -f"
14827 # Sed expression to map a string onto a valid CPP name.
14828 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14830 # Sed expression to map a string onto a valid variable name.
14831 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14835 # We need space, tab and new line, in precisely that order.
14845 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14846 # report actual input values of CONFIG_FILES etc. instead of their
14847 # values after options handling. Logging --version etc. is OK.
14851 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14852 ## Running $as_me. ##
14857 This file was extended by $as_me, which was
14858 generated by GNU Autoconf 2.59. Invocation command line was
14860 CONFIG_FILES = $CONFIG_FILES
14861 CONFIG_HEADERS = $CONFIG_HEADERS
14862 CONFIG_LINKS = $CONFIG_LINKS
14863 CONFIG_COMMANDS = $CONFIG_COMMANDS
14867 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14871 # Files that config.status was made for.
14872 if test -n "$ac_config_files"; then
14873 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14876 if test -n "$ac_config_headers"; then
14877 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14880 if test -n "$ac_config_links"; then
14881 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14884 if test -n "$ac_config_commands"; then
14885 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14888 cat >>$CONFIG_STATUS <<\_ACEOF
14891 \`$as_me' instantiates files from templates according to the
14892 current configuration.
14894 Usage: $0 [OPTIONS] [FILE]...
14896 -h, --help print this help, then exit
14897 -V, --version print version number, then exit
14898 -q, --quiet do not print progress messages
14899 -d, --debug don't remove temporary files
14900 --recheck update $as_me by reconfiguring in the same conditions
14901 --file=FILE[:TEMPLATE]
14902 instantiate the configuration file FILE
14903 --header=FILE[:TEMPLATE]
14904 instantiate the configuration header FILE
14906 Configuration files:
14909 Configuration headers:
14912 Configuration commands:
14915 Report bugs to <bug-autoconf@gnu.org>."
14918 cat >>$CONFIG_STATUS <<_ACEOF
14921 configured by $0, generated by GNU Autoconf 2.59,
14922 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14924 Copyright (C) 2003 Free Software Foundation, Inc.
14925 This config.status script is free software; the Free Software Foundation
14926 gives unlimited permission to copy, distribute and modify it."
14931 cat >>$CONFIG_STATUS <<\_ACEOF
14932 # If no file are specified by the user, then we need to provide default
14933 # value. By we need to know if files were specified by the user.
14939 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14940 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14948 *) # This is not an option, so the user has probably given explicit
14951 ac_need_defaults=false;;
14955 # Handling of the options.
14957 cat >>$CONFIG_STATUS <<\_ACEOF
14958 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14960 --version | --vers* | -V )
14961 echo "$ac_cs_version"; exit 0 ;;
14963 # Conflict between --help and --header
14964 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14965 Try \`$0 --help' for more information." >&5
14966 echo "$as_me: error: ambiguous option: $1
14967 Try \`$0 --help' for more information." >&2;}
14968 { (exit 1); exit 1; }; };;
14969 --help | --hel | -h )
14970 echo "$ac_cs_usage"; exit 0 ;;
14971 --debug | --d* | -d )
14973 --file | --fil | --fi | --f )
14975 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14976 ac_need_defaults=false;;
14977 --header | --heade | --head | --hea )
14979 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14980 ac_need_defaults=false;;
14981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14982 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14985 # This is an error.
14986 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14987 Try \`$0 --help' for more information." >&5
14988 echo "$as_me: error: unrecognized option: $1
14989 Try \`$0 --help' for more information." >&2;}
14990 { (exit 1); exit 1; }; } ;;
14992 *) ac_config_targets="$ac_config_targets $1" ;;
14998 ac_configure_extra_args=
15000 if $ac_cs_silent; then
15002 ac_configure_extra_args="$ac_configure_extra_args --silent"
15006 cat >>$CONFIG_STATUS <<_ACEOF
15007 if \$ac_cs_recheck; then
15008 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15009 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15014 cat >>$CONFIG_STATUS <<_ACEOF
15016 # INIT-COMMANDS section.
15019 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15020 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15022 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15023 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15024 LINGUAS="${LINGUAS-%UNSET%}"
15026 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15032 cat >>$CONFIG_STATUS <<\_ACEOF
15033 for ac_config_target in $ac_config_targets
15035 case "$ac_config_target" in
15036 # Handling of arguments.
15037 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15038 "abook.spec" ) CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
15039 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
15040 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15041 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15042 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15043 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15044 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15045 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15046 { (exit 1); exit 1; }; };;
15050 # If the user did not use the arguments to specify the items to instantiate,
15051 # then the envvar interface is used. Set only those that are not.
15052 # We use the long form for the default assignment because of an extremely
15053 # bizarre bug on SunOS 4.1.3.
15054 if $ac_need_defaults; then
15055 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15056 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15057 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15060 # Have a temporary directory for convenience. Make it in the build tree
15061 # simply because there is no reason to put it here, and in addition,
15062 # creating and moving files from /tmp can sometimes cause problems.
15063 # Create a temporary directory, and hook for its removal unless debugging.
15066 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15067 trap '{ (exit 1); exit 1; }' 1 2 13 15
15070 # Create a (secure) tmp directory for tmp files.
15073 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15074 test -n "$tmp" && test -d "$tmp"
15077 tmp=./confstat$$-$RANDOM
15078 (umask 077 && mkdir $tmp)
15081 echo "$me: cannot create a temporary directory in ." >&2
15082 { (exit 1); exit 1; }
15087 cat >>$CONFIG_STATUS <<_ACEOF
15090 # CONFIG_FILES section.
15093 # No need to generate the scripts if there are no CONFIG_FILES.
15094 # This happens for instance when ./config.status config.h
15095 if test -n "\$CONFIG_FILES"; then
15096 # Protect against being on the right side of a sed subst in config.status.
15097 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15098 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15099 s,@SHELL@,$SHELL,;t t
15100 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15101 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15102 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15103 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15104 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15105 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15106 s,@exec_prefix@,$exec_prefix,;t t
15107 s,@prefix@,$prefix,;t t
15108 s,@program_transform_name@,$program_transform_name,;t t
15109 s,@bindir@,$bindir,;t t
15110 s,@sbindir@,$sbindir,;t t
15111 s,@libexecdir@,$libexecdir,;t t
15112 s,@datadir@,$datadir,;t t
15113 s,@sysconfdir@,$sysconfdir,;t t
15114 s,@sharedstatedir@,$sharedstatedir,;t t
15115 s,@localstatedir@,$localstatedir,;t t
15116 s,@libdir@,$libdir,;t t
15117 s,@includedir@,$includedir,;t t
15118 s,@oldincludedir@,$oldincludedir,;t t
15119 s,@infodir@,$infodir,;t t
15120 s,@mandir@,$mandir,;t t
15121 s,@build_alias@,$build_alias,;t t
15122 s,@host_alias@,$host_alias,;t t
15123 s,@target_alias@,$target_alias,;t t
15124 s,@DEFS@,$DEFS,;t t
15125 s,@ECHO_C@,$ECHO_C,;t t
15126 s,@ECHO_N@,$ECHO_N,;t t
15127 s,@ECHO_T@,$ECHO_T,;t t
15128 s,@LIBS@,$LIBS,;t t
15129 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15130 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15131 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15132 s,@CYGPATH_W@,$CYGPATH_W,;t t
15133 s,@PACKAGE@,$PACKAGE,;t t
15134 s,@VERSION@,$VERSION,;t t
15135 s,@ACLOCAL@,$ACLOCAL,;t t
15136 s,@AUTOCONF@,$AUTOCONF,;t t
15137 s,@AUTOMAKE@,$AUTOMAKE,;t t
15138 s,@AUTOHEADER@,$AUTOHEADER,;t t
15139 s,@MAKEINFO@,$MAKEINFO,;t t
15140 s,@install_sh@,$install_sh,;t t
15141 s,@STRIP@,$STRIP,;t t
15142 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15143 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15144 s,@mkdir_p@,$mkdir_p,;t t
15146 s,@SET_MAKE@,$SET_MAKE,;t t
15147 s,@am__leading_dot@,$am__leading_dot,;t t
15148 s,@AMTAR@,$AMTAR,;t t
15149 s,@am__tar@,$am__tar,;t t
15150 s,@am__untar@,$am__untar,;t t
15151 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15152 s,@USE_NLS@,$USE_NLS,;t t
15153 s,@MSGFMT@,$MSGFMT,;t t
15154 s,@GMSGFMT@,$GMSGFMT,;t t
15155 s,@XGETTEXT@,$XGETTEXT,;t t
15156 s,@MSGMERGE@,$MSGMERGE,;t t
15158 s,@CFLAGS@,$CFLAGS,;t t
15159 s,@LDFLAGS@,$LDFLAGS,;t t
15160 s,@CPPFLAGS@,$CPPFLAGS,;t t
15161 s,@ac_ct_CC@,$ac_ct_CC,;t t
15162 s,@EXEEXT@,$EXEEXT,;t t
15163 s,@OBJEXT@,$OBJEXT,;t t
15164 s,@DEPDIR@,$DEPDIR,;t t
15165 s,@am__include@,$am__include,;t t
15166 s,@am__quote@,$am__quote,;t t
15167 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15168 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15169 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15170 s,@CCDEPMODE@,$CCDEPMODE,;t t
15171 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15172 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15173 s,@build@,$build,;t t
15174 s,@build_cpu@,$build_cpu,;t t
15175 s,@build_vendor@,$build_vendor,;t t
15176 s,@build_os@,$build_os,;t t
15177 s,@host@,$host,;t t
15178 s,@host_cpu@,$host_cpu,;t t
15179 s,@host_vendor@,$host_vendor,;t t
15180 s,@host_os@,$host_os,;t t
15182 s,@EGREP@,$EGREP,;t t
15183 s,@GLIBC2@,$GLIBC2,;t t
15184 s,@RANLIB@,$RANLIB,;t t
15185 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15186 s,@ALLOCA@,$ALLOCA,;t t
15187 s,@GLIBC21@,$GLIBC21,;t t
15188 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
15189 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
15190 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
15191 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
15192 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
15193 s,@LIBICONV@,$LIBICONV,;t t
15194 s,@LTLIBICONV@,$LTLIBICONV,;t t
15195 s,@INTLBISON@,$INTLBISON,;t t
15196 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
15197 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15198 s,@CATOBJEXT@,$CATOBJEXT,;t t
15199 s,@DATADIRNAME@,$DATADIRNAME,;t t
15200 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15201 s,@GENCAT@,$GENCAT,;t t
15202 s,@INTLOBJS@,$INTLOBJS,;t t
15203 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
15204 s,@INTLLIBS@,$INTLLIBS,;t t
15205 s,@LIBINTL@,$LIBINTL,;t t
15206 s,@LTLIBINTL@,$LTLIBINTL,;t t
15207 s,@POSUB@,$POSUB,;t t
15208 s,@localedir@,$localedir,;t t
15210 s,@ANSI2KNR@,$ANSI2KNR,;t t
15211 s,@LIBOBJS@,$LIBOBJS,;t t
15212 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15217 cat >>$CONFIG_STATUS <<\_ACEOF
15218 # Split the substitutions into bite-sized pieces for seds with
15219 # small command number limits, like on Digital OSF/1 and HP-UX.
15220 ac_max_sed_lines=48
15221 ac_sed_frag=1 # Number of current file.
15222 ac_beg=1 # First line for current file.
15223 ac_end=$ac_max_sed_lines # Line after last line for current file.
15226 while $ac_more_lines; do
15227 if test $ac_beg -gt 1; then
15228 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15230 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15232 if test ! -s $tmp/subs.frag; then
15233 ac_more_lines=false
15235 # The purpose of the label and of the branching condition is to
15236 # speed up the sed processing (if there are no `@' at all, there
15237 # is no need to browse any of the substitutions).
15238 # These are the two extra sed commands mentioned above.
15240 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15241 if test -z "$ac_sed_cmds"; then
15242 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15244 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15246 ac_sed_frag=`expr $ac_sed_frag + 1`
15248 ac_end=`expr $ac_end + $ac_max_sed_lines`
15251 if test -z "$ac_sed_cmds"; then
15254 fi # test -n "$CONFIG_FILES"
15257 cat >>$CONFIG_STATUS <<\_ACEOF
15258 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15259 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15261 - | *:- | *:-:* ) # input from stdin
15263 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15264 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15265 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15266 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15267 * ) ac_file_in=$ac_file.in ;;
15270 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15271 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15272 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15273 X"$ac_file" : 'X\(//\)[^/]' \| \
15274 X"$ac_file" : 'X\(//\)$' \| \
15275 X"$ac_file" : 'X\(/\)' \| \
15276 . : '\(.\)' 2>/dev/null ||
15278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15279 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15280 /^X\(\/\/\)$/{ s//\1/; q; }
15281 /^X\(\/\).*/{ s//\1/; q; }
15283 { if $as_mkdir_p; then
15288 while test ! -d "$as_dir"; do
15289 as_dirs="$as_dir $as_dirs"
15290 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15291 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15292 X"$as_dir" : 'X\(//\)[^/]' \| \
15293 X"$as_dir" : 'X\(//\)$' \| \
15294 X"$as_dir" : 'X\(/\)' \| \
15295 . : '\(.\)' 2>/dev/null ||
15297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15298 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15299 /^X\(\/\/\)$/{ s//\1/; q; }
15300 /^X\(\/\).*/{ s//\1/; q; }
15303 test ! -n "$as_dirs" || mkdir $as_dirs
15304 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15305 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15306 { (exit 1); exit 1; }; }; }
15310 if test "$ac_dir" != .; then
15311 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15312 # A "../" for each directory in $ac_dir_suffix.
15313 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15315 ac_dir_suffix= ac_top_builddir=
15319 .) # No --srcdir option. We are building in place.
15321 if test -z "$ac_top_builddir"; then
15324 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15326 [\\/]* | ?:[\\/]* ) # Absolute path.
15327 ac_srcdir=$srcdir$ac_dir_suffix;
15328 ac_top_srcdir=$srcdir ;;
15329 *) # Relative path.
15330 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15331 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15334 # Do not use `cd foo && pwd` to compute absolute paths, because
15335 # the directories may not exist.
15337 .) ac_abs_builddir="$ac_dir";;
15340 .) ac_abs_builddir=`pwd`;;
15341 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15342 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15345 case $ac_abs_builddir in
15346 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15348 case ${ac_top_builddir}. in
15349 .) ac_abs_top_builddir=$ac_abs_builddir;;
15350 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15351 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15354 case $ac_abs_builddir in
15355 .) ac_abs_srcdir=$ac_srcdir;;
15358 .) ac_abs_srcdir=$ac_abs_builddir;;
15359 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15360 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15363 case $ac_abs_builddir in
15364 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15366 case $ac_top_srcdir in
15367 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15368 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15369 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15375 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15376 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15379 if test x"$ac_file" != x-; then
15380 { echo "$as_me:$LINENO: creating $ac_file" >&5
15381 echo "$as_me: creating $ac_file" >&6;}
15384 # Let's still pretend it is `configure' which instantiates (i.e., don't
15385 # use $as_me), people would be surprised to read:
15386 # /* config.h. Generated by config.status. */
15387 if test x"$ac_file" = x-; then
15390 configure_input="$ac_file. "
15392 configure_input=$configure_input"Generated from `echo $ac_file_in |
15393 sed 's,.*/,,'` by configure."
15395 # First look for the input files in the build tree, otherwise in the
15397 ac_file_inputs=`IFS=:
15398 for f in $ac_file_in; do
15400 -) echo $tmp/stdin ;;
15402 # Absolute (can't be DOS-style, as IFS=:)
15403 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15404 echo "$as_me: error: cannot find input file: $f" >&2;}
15405 { (exit 1); exit 1; }; }
15408 if test -f "$f"; then
15411 elif test -f "$srcdir/$f"; then
15416 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15417 echo "$as_me: error: cannot find input file: $f" >&2;}
15418 { (exit 1); exit 1; }; }
15421 done` || { (exit 1); exit 1; }
15423 cat >>$CONFIG_STATUS <<_ACEOF
15427 cat >>$CONFIG_STATUS <<\_ACEOF
15429 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15430 s,@configure_input@,$configure_input,;t t
15431 s,@srcdir@,$ac_srcdir,;t t
15432 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15433 s,@top_srcdir@,$ac_top_srcdir,;t t
15434 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15435 s,@builddir@,$ac_builddir,;t t
15436 s,@abs_builddir@,$ac_abs_builddir,;t t
15437 s,@top_builddir@,$ac_top_builddir,;t t
15438 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15439 s,@INSTALL@,$ac_INSTALL,;t t
15440 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15442 if test x"$ac_file" != x-; then
15443 mv $tmp/out $ac_file
15451 cat >>$CONFIG_STATUS <<\_ACEOF
15454 # CONFIG_HEADER section.
15457 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15458 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15460 # ac_d sets the value in "#define NAME VALUE" lines.
15461 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15462 ac_dB='[ ].*$,\1#\2'
15465 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15466 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15467 ac_uB='$,\1#\2define\3'
15471 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15472 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15474 - | *:- | *:-:* ) # input from stdin
15476 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15477 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15478 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15479 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15480 * ) ac_file_in=$ac_file.in ;;
15483 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15484 echo "$as_me: creating $ac_file" >&6;}
15486 # First look for the input files in the build tree, otherwise in the
15488 ac_file_inputs=`IFS=:
15489 for f in $ac_file_in; do
15491 -) echo $tmp/stdin ;;
15493 # Absolute (can't be DOS-style, as IFS=:)
15494 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15495 echo "$as_me: error: cannot find input file: $f" >&2;}
15496 { (exit 1); exit 1; }; }
15497 # Do quote $f, to prevent DOS paths from being IFS'd.
15500 if test -f "$f"; then
15503 elif test -f "$srcdir/$f"; then
15508 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15509 echo "$as_me: error: cannot find input file: $f" >&2;}
15510 { (exit 1); exit 1; }; }
15513 done` || { (exit 1); exit 1; }
15514 # Remove the trailing spaces.
15515 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15519 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15520 # `conftest.undefs', that substitutes the proper values into
15521 # config.h.in to produce config.h. The first handles `#define'
15522 # templates, and the second `#undef' templates.
15523 # And first: Protect against being on the right side of a sed subst in
15524 # config.status. Protect against being in an unquoted here document
15525 # in config.status.
15526 rm -f conftest.defines conftest.undefs
15527 # Using a here document instead of a string reduces the quoting nightmare.
15528 # Putting comments in sed scripts is not portable.
15530 # `end' is used to avoid that the second main sed command (meant for
15531 # 0-ary CPP macros) applies to n-ary macro definitions.
15532 # See the Autoconf documentation for `clear'.
15533 cat >confdef2sed.sed <<\_ACEOF
15538 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15540 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15543 # If some macros were called several times there might be several times
15544 # the same #defines, which is useless. Nevertheless, we may not want to
15545 # sort them, since we want the *last* AC-DEFINE to be honored.
15546 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15547 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15548 rm -f confdef2sed.sed
15550 # This sed command replaces #undef with comments. This is necessary, for
15551 # example, in the case of _POSIX_SOURCE, which is predefined and required
15552 # on some systems where configure will not decide to define it.
15553 cat >>conftest.undefs <<\_ACEOF
15554 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15557 # Break up conftest.defines because some shells have a limit on the size
15558 # of here documents, and old seds have small limits too (100 cmds).
15559 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15560 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15561 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15562 echo ' :' >>$CONFIG_STATUS
15563 rm -f conftest.tail
15564 while grep . conftest.defines >/dev/null
15566 # Write a limited-size here document to $tmp/defines.sed.
15567 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15568 # Speed up: don't consider the non `#define' lines.
15569 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15570 # Work around the forget-to-reset-the-flag bug.
15571 echo 't clr' >>$CONFIG_STATUS
15572 echo ': clr' >>$CONFIG_STATUS
15573 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15575 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15577 mv $tmp/out $tmp/in
15579 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15580 rm -f conftest.defines
15581 mv conftest.tail conftest.defines
15583 rm -f conftest.defines
15584 echo ' fi # grep' >>$CONFIG_STATUS
15585 echo >>$CONFIG_STATUS
15587 # Break up conftest.undefs because some shells have a limit on the size
15588 # of here documents, and old seds have small limits too (100 cmds).
15589 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15590 rm -f conftest.tail
15591 while grep . conftest.undefs >/dev/null
15593 # Write a limited-size here document to $tmp/undefs.sed.
15594 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15595 # Speed up: don't consider the non `#undef'
15596 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15597 # Work around the forget-to-reset-the-flag bug.
15598 echo 't clr' >>$CONFIG_STATUS
15599 echo ': clr' >>$CONFIG_STATUS
15600 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15602 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15604 mv $tmp/out $tmp/in
15606 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15607 rm -f conftest.undefs
15608 mv conftest.tail conftest.undefs
15610 rm -f conftest.undefs
15612 cat >>$CONFIG_STATUS <<\_ACEOF
15613 # Let's still pretend it is `configure' which instantiates (i.e., don't
15614 # use $as_me), people would be surprised to read:
15615 # /* config.h. Generated by config.status. */
15616 if test x"$ac_file" = x-; then
15617 echo "/* Generated by configure. */" >$tmp/config.h
15619 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15621 cat $tmp/in >>$tmp/config.h
15623 if test x"$ac_file" != x-; then
15624 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15625 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15626 echo "$as_me: $ac_file is unchanged" >&6;}
15628 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15629 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15630 X"$ac_file" : 'X\(//\)[^/]' \| \
15631 X"$ac_file" : 'X\(//\)$' \| \
15632 X"$ac_file" : 'X\(/\)' \| \
15633 . : '\(.\)' 2>/dev/null ||
15635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15636 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15637 /^X\(\/\/\)$/{ s//\1/; q; }
15638 /^X\(\/\).*/{ s//\1/; q; }
15640 { if $as_mkdir_p; then
15645 while test ! -d "$as_dir"; do
15646 as_dirs="$as_dir $as_dirs"
15647 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15648 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15649 X"$as_dir" : 'X\(//\)[^/]' \| \
15650 X"$as_dir" : 'X\(//\)$' \| \
15651 X"$as_dir" : 'X\(/\)' \| \
15652 . : '\(.\)' 2>/dev/null ||
15654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15655 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15656 /^X\(\/\/\)$/{ s//\1/; q; }
15657 /^X\(\/\).*/{ s//\1/; q; }
15660 test ! -n "$as_dirs" || mkdir $as_dirs
15661 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15662 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15663 { (exit 1); exit 1; }; }; }
15666 mv $tmp/config.h $ac_file
15670 rm -f $tmp/config.h
15672 # Compute $ac_file's index in $config_headers.
15674 for _am_header in $config_headers :; do
15675 case $_am_header in
15676 $ac_file | $ac_file:* )
15679 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15682 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15683 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15684 X$ac_file : 'X\(//\)[^/]' \| \
15685 X$ac_file : 'X\(//\)$' \| \
15686 X$ac_file : 'X\(/\)' \| \
15687 . : '\(.\)' 2>/dev/null ||
15689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15690 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15691 /^X\(\/\/\)$/{ s//\1/; q; }
15692 /^X\(\/\).*/{ s//\1/; q; }
15693 s/.*/./; q'`/stamp-h$_am_stamp_count
15696 cat >>$CONFIG_STATUS <<\_ACEOF
15699 # CONFIG_COMMANDS section.
15701 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15702 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15703 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15704 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15705 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15706 X"$ac_dest" : 'X\(//\)[^/]' \| \
15707 X"$ac_dest" : 'X\(//\)$' \| \
15708 X"$ac_dest" : 'X\(/\)' \| \
15709 . : '\(.\)' 2>/dev/null ||
15711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15712 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15713 /^X\(\/\/\)$/{ s//\1/; q; }
15714 /^X\(\/\).*/{ s//\1/; q; }
15716 { if $as_mkdir_p; then
15721 while test ! -d "$as_dir"; do
15722 as_dirs="$as_dir $as_dirs"
15723 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15724 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15725 X"$as_dir" : 'X\(//\)[^/]' \| \
15726 X"$as_dir" : 'X\(//\)$' \| \
15727 X"$as_dir" : 'X\(/\)' \| \
15728 . : '\(.\)' 2>/dev/null ||
15730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15731 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15732 /^X\(\/\/\)$/{ s//\1/; q; }
15733 /^X\(\/\).*/{ s//\1/; q; }
15736 test ! -n "$as_dirs" || mkdir $as_dirs
15737 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15738 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15739 { (exit 1); exit 1; }; }; }
15743 if test "$ac_dir" != .; then
15744 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15745 # A "../" for each directory in $ac_dir_suffix.
15746 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15748 ac_dir_suffix= ac_top_builddir=
15752 .) # No --srcdir option. We are building in place.
15754 if test -z "$ac_top_builddir"; then
15757 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15759 [\\/]* | ?:[\\/]* ) # Absolute path.
15760 ac_srcdir=$srcdir$ac_dir_suffix;
15761 ac_top_srcdir=$srcdir ;;
15762 *) # Relative path.
15763 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15764 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15767 # Do not use `cd foo && pwd` to compute absolute paths, because
15768 # the directories may not exist.
15770 .) ac_abs_builddir="$ac_dir";;
15773 .) ac_abs_builddir=`pwd`;;
15774 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15775 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15778 case $ac_abs_builddir in
15779 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15781 case ${ac_top_builddir}. in
15782 .) ac_abs_top_builddir=$ac_abs_builddir;;
15783 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15784 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15787 case $ac_abs_builddir in
15788 .) ac_abs_srcdir=$ac_srcdir;;
15791 .) ac_abs_srcdir=$ac_abs_builddir;;
15792 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15793 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15796 case $ac_abs_builddir in
15797 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15799 case $ac_top_srcdir in
15800 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15801 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15802 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15807 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15808 echo "$as_me: executing $ac_dest commands" >&6;}
15811 for ac_file in $CONFIG_FILES; do
15812 # Support "outfile[:infile[:infile...]]"
15814 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15816 # PO directories have a Makefile.in generated from Makefile.in.in.
15817 case "$ac_file" in */Makefile.in)
15818 # Adjust a relative srcdir.
15819 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15820 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15821 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15822 # In autoconf-2.13 it is called $ac_given_srcdir.
15823 # In autoconf-2.50 it is called $srcdir.
15824 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15825 case "$ac_given_srcdir" in
15826 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15827 /*) top_srcdir="$ac_given_srcdir" ;;
15828 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15830 # Treat a directory as a PO directory if and only if it has a
15831 # POTFILES.in file. This allows packages to have multiple PO
15832 # directories under different names or in different locations.
15833 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15834 rm -f "$ac_dir/POTFILES"
15835 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15836 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15837 POMAKEFILEDEPS="POTFILES.in"
15838 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15839 # on $ac_dir but don't depend on user-specified configuration
15841 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15842 # The LINGUAS file contains the set of available languages.
15843 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15844 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15846 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15847 # Hide the ALL_LINGUAS assigment from automake.
15848 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15849 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15851 # The set of available languages was given in configure.in.
15852 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15855 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15856 # Compute UPDATEPOFILES
15857 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15858 # Compute DUMMYPOFILES
15859 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15861 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15862 case "$ac_given_srcdir" in
15864 *) srcdirpre='$(srcdir)/' ;;
15870 for lang in $ALL_LINGUAS; do
15871 POFILES="$POFILES $srcdirpre$lang.po"
15872 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15873 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15874 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15876 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15877 # environment variable.
15879 if test -n "$ALL_LINGUAS"; then
15880 for presentlang in $ALL_LINGUAS; do
15882 if test "%UNSET%" != "$LINGUAS"; then
15883 desiredlanguages="$LINGUAS"
15885 desiredlanguages="$ALL_LINGUAS"
15887 for desiredlang in $desiredlanguages; do
15888 # Use the presentlang catalog if desiredlang is
15889 # a. equal to presentlang, or
15890 # b. a variant of presentlang (because in this case,
15891 # presentlang can be used as a fallback for messages
15892 # which are not translated in the desiredlang catalog).
15893 case "$desiredlang" in
15894 "$presentlang"*) useit=yes;;
15897 if test $useit = yes; then
15898 INST_LINGUAS="$INST_LINGUAS $presentlang"
15903 if test -n "$INST_LINGUAS"; then
15904 for lang in $INST_LINGUAS; do
15905 CATALOGS="$CATALOGS $lang.gmo"
15908 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15909 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"
15914 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15915 # Strip MF so we end up with the name of the file.
15916 mf=`echo "$mf" | sed -e 's/:.*$//'`
15917 # Check whether this is an Automake generated Makefile or not.
15918 # We used to match only the files named `Makefile.in', but
15919 # some people rename them; so instead we look at the file content.
15920 # Grep'ing the first line is not enough: some people post-process
15921 # each Makefile.in and add a new line on top of each file to say so.
15922 # So let's grep whole file.
15923 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15924 dirpart=`(dirname "$mf") 2>/dev/null ||
15925 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15926 X"$mf" : 'X\(//\)[^/]' \| \
15927 X"$mf" : 'X\(//\)$' \| \
15928 X"$mf" : 'X\(/\)' \| \
15929 . : '\(.\)' 2>/dev/null ||
15931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15933 /^X\(\/\/\)$/{ s//\1/; q; }
15934 /^X\(\/\).*/{ s//\1/; q; }
15939 # Extract the definition of DEPDIR, am__include, and am__quote
15940 # from the Makefile without running `make'.
15941 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15942 test -z "$DEPDIR" && continue
15943 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15944 test -z "am__include" && continue
15945 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15946 # When using ansi2knr, U may be empty or an underscore; expand it
15947 U=`sed -n 's/^U = //p' < "$mf"`
15948 # Find all dependency output files, they are included files with
15949 # $(DEPDIR) in their names. We invoke sed twice because it is the
15950 # simplest approach to changing $(DEPDIR) to its actual value in the
15952 for file in `sed -n "
15953 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15954 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15955 # Make sure the directory exists.
15956 test -f "$dirpart/$file" && continue
15957 fdir=`(dirname "$file") 2>/dev/null ||
15958 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15959 X"$file" : 'X\(//\)[^/]' \| \
15960 X"$file" : 'X\(//\)$' \| \
15961 X"$file" : 'X\(/\)' \| \
15962 . : '\(.\)' 2>/dev/null ||
15964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15965 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15966 /^X\(\/\/\)$/{ s//\1/; q; }
15967 /^X\(\/\).*/{ s//\1/; q; }
15969 { if $as_mkdir_p; then
15970 mkdir -p $dirpart/$fdir
15972 as_dir=$dirpart/$fdir
15974 while test ! -d "$as_dir"; do
15975 as_dirs="$as_dir $as_dirs"
15976 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15977 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15978 X"$as_dir" : 'X\(//\)[^/]' \| \
15979 X"$as_dir" : 'X\(//\)$' \| \
15980 X"$as_dir" : 'X\(/\)' \| \
15981 . : '\(.\)' 2>/dev/null ||
15983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15984 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15985 /^X\(\/\/\)$/{ s//\1/; q; }
15986 /^X\(\/\).*/{ s//\1/; q; }
15989 test ! -n "$as_dirs" || mkdir $as_dirs
15990 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15991 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15992 { (exit 1); exit 1; }; }; }
15994 # echo "creating $dirpart/$file"
15995 echo '# dummy' > "$dirpart/$file"
16003 cat >>$CONFIG_STATUS <<\_ACEOF
16005 { (exit 0); exit 0; }
16007 chmod +x $CONFIG_STATUS
16008 ac_clean_files=$ac_clean_files_save
16011 # configure is writing to config.log, and then calls config.status.
16012 # config.status does its own redirection, appending to config.log.
16013 # Unfortunately, on DOS this fails, as config.log is still kept open
16014 # by configure, so config.status won't be able to write to it; its
16015 # output is simply discarded. So we exec the FD to /dev/null,
16016 # effectively closing config.log, so it can be properly (re)opened and
16017 # appended to by config.status. When coming back to configure, we
16018 # need to make the FD available again.
16019 if test "$no_create" != yes; then
16021 ac_config_status_args=
16022 test "$silent" = yes &&
16023 ac_config_status_args="$ac_config_status_args --quiet"
16025 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16027 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16028 # would make configure fail if this is the last instruction.
16029 $ac_cs_success || { (exit 1); exit 1; }