2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
66 # Find who we are. Look in the path if we contain no directory separator.
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
157 if test $as_have_required = yes && (eval ":
167 as_func_ret_success () {
170 as_func_ret_failure () {
175 if as_func_success; then
179 echo as_func_success failed.
182 if as_func_failure; then
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
253 CONFIG_SHELL=$as_shell
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
280 as_func_ret_success () {
283 as_func_ret_failure () {
288 if as_func_success; then
292 echo as_func_success failed.
295 if as_func_failure; then
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
369 as_func_ret_success () {
372 as_func_ret_failure () {
377 if as_func_success; then
381 echo as_func_success failed.
384 if as_func_failure; then
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 echo positional parameters were not saved.
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 ECHO_C= ECHO_N= ECHO_T=
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
511 test -d ./-p && rmdir ./-p
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
555 SHELL=${CONFIG_SHELL-/bin/sh}
557 # Identity of this package.
564 ac_unique_file="abook.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
569 # include <sys/types.h>
572 # include <sys/stat.h>
583 # if !STDC_HEADERS && HAVE_MEMORY_H
589 # include <strings.h>
592 # include <inttypes.h>
610 program_transform_name
651 INSTALL_STRIP_PROGRAM
704 BUILD_INCLUDED_LIBINTL
711 INTL_LIBTOOL_SUFFIX_PREFIX
716 USE_INCLUDED_INTL_H_TRUE
717 USE_INCLUDED_INTL_H_FALSE
723 ac_precious_vars='build_alias
733 # Initialize some variables set by options.
735 ac_init_version=false
736 # The variables have the same names as the options, with
737 # dashes changed to underlines.
745 program_transform_name=s,x,x,
753 # Installation directory options.
754 # These are left unexpanded so users can "make install exec_prefix=/foo"
755 # and all the variables that are supposed to be based on exec_prefix
756 # by default will actually change.
757 # Use braces instead of parens because sh, perl, etc. also accept them.
758 # (The list follows the same order as the GNU Coding Standards.)
759 bindir='${exec_prefix}/bin'
760 sbindir='${exec_prefix}/sbin'
761 libexecdir='${exec_prefix}/libexec'
762 datarootdir='${prefix}/share'
763 datadir='${datarootdir}'
764 sysconfdir='${prefix}/etc'
765 sharedstatedir='${prefix}/com'
766 localstatedir='${prefix}/var'
767 includedir='${prefix}/include'
768 oldincludedir='/usr/include'
769 docdir='${datarootdir}/doc/${PACKAGE}'
770 infodir='${datarootdir}/info'
775 libdir='${exec_prefix}/lib'
776 localedir='${datarootdir}/locale'
777 mandir='${datarootdir}/man'
783 # If the previous option needs an argument, assign it.
784 if test -n "$ac_prev"; then
785 eval $ac_prev=\$ac_option
791 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
795 # Accept the important Cygnus configure options, so we can diagnose typos.
797 case $ac_dashdash$ac_option in
801 -bindir | --bindir | --bindi | --bind | --bin | --bi)
803 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
806 -build | --build | --buil | --bui | --bu)
807 ac_prev=build_alias ;;
808 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
809 build_alias=$ac_optarg ;;
811 -cache-file | --cache-file | --cache-fil | --cache-fi \
812 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
813 ac_prev=cache_file ;;
814 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
815 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
816 cache_file=$ac_optarg ;;
819 cache_file=config.cache ;;
821 -datadir | --datadir | --datadi | --datad)
823 -datadir=* | --datadir=* | --datadi=* | --datad=*)
824 datadir=$ac_optarg ;;
826 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
827 | --dataroo | --dataro | --datar)
828 ac_prev=datarootdir ;;
829 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
830 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
831 datarootdir=$ac_optarg ;;
833 -disable-* | --disable-*)
834 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
835 # Reject names that are not valid shell variable names.
836 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
837 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
838 { (exit 1); exit 1; }; }
839 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
840 eval enable_$ac_feature=no ;;
842 -docdir | --docdir | --docdi | --doc | --do)
844 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
847 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
849 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
852 -enable-* | --enable-*)
853 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
856 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
857 { (exit 1); exit 1; }; }
858 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
859 eval enable_$ac_feature=\$ac_optarg ;;
861 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
862 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
863 | --exec | --exe | --ex)
864 ac_prev=exec_prefix ;;
865 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
866 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
867 | --exec=* | --exe=* | --ex=*)
868 exec_prefix=$ac_optarg ;;
870 -gas | --gas | --ga | --g)
871 # Obsolete; use --with-gas.
874 -help | --help | --hel | --he | -h)
876 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
877 ac_init_help=recursive ;;
878 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
879 ac_init_help=short ;;
881 -host | --host | --hos | --ho)
882 ac_prev=host_alias ;;
883 -host=* | --host=* | --hos=* | --ho=*)
884 host_alias=$ac_optarg ;;
886 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
888 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
890 htmldir=$ac_optarg ;;
892 -includedir | --includedir | --includedi | --included | --include \
893 | --includ | --inclu | --incl | --inc)
894 ac_prev=includedir ;;
895 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
896 | --includ=* | --inclu=* | --incl=* | --inc=*)
897 includedir=$ac_optarg ;;
899 -infodir | --infodir | --infodi | --infod | --info | --inf)
901 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
902 infodir=$ac_optarg ;;
904 -libdir | --libdir | --libdi | --libd)
906 -libdir=* | --libdir=* | --libdi=* | --libd=*)
909 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
910 | --libexe | --libex | --libe)
911 ac_prev=libexecdir ;;
912 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
913 | --libexe=* | --libex=* | --libe=*)
914 libexecdir=$ac_optarg ;;
916 -localedir | --localedir | --localedi | --localed | --locale)
918 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
919 localedir=$ac_optarg ;;
921 -localstatedir | --localstatedir | --localstatedi | --localstated \
922 | --localstate | --localstat | --localsta | --localst | --locals)
923 ac_prev=localstatedir ;;
924 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
925 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
926 localstatedir=$ac_optarg ;;
928 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
930 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
934 # Obsolete; use --without-fp.
937 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
938 | --no-cr | --no-c | -n)
941 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
942 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
945 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
946 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
947 | --oldin | --oldi | --old | --ol | --o)
948 ac_prev=oldincludedir ;;
949 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
950 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
951 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
952 oldincludedir=$ac_optarg ;;
954 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
956 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
959 -program-prefix | --program-prefix | --program-prefi | --program-pref \
960 | --program-pre | --program-pr | --program-p)
961 ac_prev=program_prefix ;;
962 -program-prefix=* | --program-prefix=* | --program-prefi=* \
963 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
964 program_prefix=$ac_optarg ;;
966 -program-suffix | --program-suffix | --program-suffi | --program-suff \
967 | --program-suf | --program-su | --program-s)
968 ac_prev=program_suffix ;;
969 -program-suffix=* | --program-suffix=* | --program-suffi=* \
970 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
971 program_suffix=$ac_optarg ;;
973 -program-transform-name | --program-transform-name \
974 | --program-transform-nam | --program-transform-na \
975 | --program-transform-n | --program-transform- \
976 | --program-transform | --program-transfor \
977 | --program-transfo | --program-transf \
978 | --program-trans | --program-tran \
979 | --progr-tra | --program-tr | --program-t)
980 ac_prev=program_transform_name ;;
981 -program-transform-name=* | --program-transform-name=* \
982 | --program-transform-nam=* | --program-transform-na=* \
983 | --program-transform-n=* | --program-transform-=* \
984 | --program-transform=* | --program-transfor=* \
985 | --program-transfo=* | --program-transf=* \
986 | --program-trans=* | --program-tran=* \
987 | --progr-tra=* | --program-tr=* | --program-t=*)
988 program_transform_name=$ac_optarg ;;
990 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
992 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
995 -psdir | --psdir | --psdi | --psd | --ps)
997 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1001 | -silent | --silent | --silen | --sile | --sil)
1004 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1006 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1008 sbindir=$ac_optarg ;;
1010 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1011 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1012 | --sharedst | --shareds | --shared | --share | --shar \
1014 ac_prev=sharedstatedir ;;
1015 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1016 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1017 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1019 sharedstatedir=$ac_optarg ;;
1021 -site | --site | --sit)
1023 -site=* | --site=* | --sit=*)
1026 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1028 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1029 srcdir=$ac_optarg ;;
1031 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1032 | --syscon | --sysco | --sysc | --sys | --sy)
1033 ac_prev=sysconfdir ;;
1034 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1035 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1036 sysconfdir=$ac_optarg ;;
1038 -target | --target | --targe | --targ | --tar | --ta | --t)
1039 ac_prev=target_alias ;;
1040 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1041 target_alias=$ac_optarg ;;
1043 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1046 -version | --version | --versio | --versi | --vers | -V)
1047 ac_init_version=: ;;
1050 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1053 { echo "$as_me: error: invalid package name: $ac_package" >&2
1054 { (exit 1); exit 1; }; }
1055 ac_package=`echo $ac_package| sed 's/-/_/g'`
1056 eval with_$ac_package=\$ac_optarg ;;
1058 -without-* | --without-*)
1059 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1062 { echo "$as_me: error: invalid package name: $ac_package" >&2
1063 { (exit 1); exit 1; }; }
1064 ac_package=`echo $ac_package | sed 's/-/_/g'`
1065 eval with_$ac_package=no ;;
1068 # Obsolete; use --with-x.
1071 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1072 | --x-incl | --x-inc | --x-in | --x-i)
1073 ac_prev=x_includes ;;
1074 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1075 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1076 x_includes=$ac_optarg ;;
1078 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1079 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1080 ac_prev=x_libraries ;;
1081 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1082 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1083 x_libraries=$ac_optarg ;;
1085 -*) { echo "$as_me: error: unrecognized option: $ac_option
1086 Try \`$0 --help' for more information." >&2
1087 { (exit 1); exit 1; }; }
1091 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1094 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1095 { (exit 1); exit 1; }; }
1096 eval $ac_envvar=\$ac_optarg
1097 export $ac_envvar ;;
1100 # FIXME: should be removed in autoconf 3.0.
1101 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1102 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1104 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1110 if test -n "$ac_prev"; then
1111 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1112 { echo "$as_me: error: missing argument to $ac_option" >&2
1113 { (exit 1); exit 1; }; }
1116 # Be sure to have absolute directory names.
1117 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1118 datadir sysconfdir sharedstatedir localstatedir includedir \
1119 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1120 libdir localedir mandir
1122 eval ac_val=\$$ac_var
1124 [\\/$]* | ?:[\\/]* ) continue;;
1125 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1127 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1128 { (exit 1); exit 1; }; }
1131 # There might be people who depend on the old broken behavior: `$host'
1132 # used to hold the argument of --host etc.
1133 # FIXME: To remove some day.
1136 target=$target_alias
1138 # FIXME: To remove some day.
1139 if test "x$host_alias" != x; then
1140 if test "x$build_alias" = x; then
1141 cross_compiling=maybe
1142 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1143 If a cross compiler is detected then cross compile mode will be used." >&2
1144 elif test "x$build_alias" != "x$host_alias"; then
1150 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1152 test "$silent" = yes && exec 6>/dev/null
1155 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1156 ac_ls_di=`ls -di .` &&
1157 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1158 { echo "$as_me: error: Working directory cannot be determined" >&2
1159 { (exit 1); exit 1; }; }
1160 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1161 { echo "$as_me: error: pwd does not report name of working directory" >&2
1162 { (exit 1); exit 1; }; }
1165 # Find the source files, if location was not specified.
1166 if test -z "$srcdir"; then
1167 ac_srcdir_defaulted=yes
1168 # Try the directory containing this script, then the parent directory.
1169 ac_confdir=`$as_dirname -- "$0" ||
1170 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1171 X"$0" : 'X\(//\)[^/]' \| \
1172 X"$0" : 'X\(//\)$' \| \
1173 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1193 if test ! -r "$srcdir/$ac_unique_file"; then
1197 ac_srcdir_defaulted=no
1199 if test ! -r "$srcdir/$ac_unique_file"; then
1200 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1201 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1202 { (exit 1); exit 1; }; }
1204 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1206 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1207 { (exit 1); exit 1; }; }
1209 # When building in place, set srcdir=.
1210 if test "$ac_abs_confdir" = "$ac_pwd"; then
1213 # Remove unnecessary trailing slashes from srcdir.
1214 # Double slashes in file names in object file debugging info
1215 # mess up M-x gdb in Emacs.
1217 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1219 for ac_var in $ac_precious_vars; do
1220 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1221 eval ac_env_${ac_var}_value=\$${ac_var}
1222 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1223 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1227 # Report the --help message.
1229 if test "$ac_init_help" = "long"; then
1230 # Omit some internal or obsolete options to make the list less imposing.
1231 # This message is too long to be a string in the A/UX 3.1 sh.
1233 \`configure' configures this package to adapt to many kinds of systems.
1235 Usage: $0 [OPTION]... [VAR=VALUE]...
1237 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1238 VAR=VALUE. See below for descriptions of some of the useful variables.
1240 Defaults for the options are specified in brackets.
1243 -h, --help display this help and exit
1244 --help=short display options specific to this package
1245 --help=recursive display the short help of all the included packages
1246 -V, --version display version information and exit
1247 -q, --quiet, --silent do not print \`checking...' messages
1248 --cache-file=FILE cache test results in FILE [disabled]
1249 -C, --config-cache alias for \`--cache-file=config.cache'
1250 -n, --no-create do not create output files
1251 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1253 Installation directories:
1254 --prefix=PREFIX install architecture-independent files in PREFIX
1255 [$ac_default_prefix]
1256 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1259 By default, \`make install' will install all the files in
1260 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1261 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1262 for instance \`--prefix=\$HOME'.
1264 For better control, use the options below.
1266 Fine tuning of the installation directories:
1267 --bindir=DIR user executables [EPREFIX/bin]
1268 --sbindir=DIR system admin executables [EPREFIX/sbin]
1269 --libexecdir=DIR program executables [EPREFIX/libexec]
1270 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1271 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1272 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1273 --libdir=DIR object code libraries [EPREFIX/lib]
1274 --includedir=DIR C header files [PREFIX/include]
1275 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1276 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1277 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1278 --infodir=DIR info documentation [DATAROOTDIR/info]
1279 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1280 --mandir=DIR man documentation [DATAROOTDIR/man]
1281 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1282 --htmldir=DIR html documentation [DOCDIR]
1283 --dvidir=DIR dvi documentation [DOCDIR]
1284 --pdfdir=DIR pdf documentation [DOCDIR]
1285 --psdir=DIR ps documentation [DOCDIR]
1291 --program-prefix=PREFIX prepend PREFIX to installed program names
1292 --program-suffix=SUFFIX append SUFFIX to installed program names
1293 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1296 --build=BUILD configure for building on BUILD [guessed]
1297 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1301 if test -n "$ac_init_help"; then
1306 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1307 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1308 --disable-nls do not use Native Language Support
1309 --disable-dependency-tracking speeds up one-time build
1310 --enable-dependency-tracking do not reject slow dependency extractors
1311 --disable-rpath do not hardcode runtime library paths
1312 --enable-debug Enable debugging support
1315 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1316 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1317 --with-gnu-ld assume the C compiler uses GNU ld default=no
1318 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1319 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1320 --with-included-gettext use the GNU gettext library included here
1321 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1322 --without-libintl-prefix don't search for libintl in includedir and libdir
1323 --with-localedir=PATH Where the locale files are installed
1324 --with-curses=DIR Where ncurses is installed
1325 --with-readline=DIR Where readline is installed
1327 Some influential environment variables:
1328 CC C compiler command
1329 CFLAGS C compiler flags
1330 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1331 nonstandard directory <lib dir>
1332 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1333 you have headers in a nonstandard directory <include dir>
1336 Use these variables to override the choices made by `configure' or to help
1337 it to find libraries and programs with nonstandard names/locations.
1343 if test "$ac_init_help" = "recursive"; then
1344 # If there are subdirs, report their specific --help.
1345 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1346 test -d "$ac_dir" || continue
1350 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1353 # A ".." for each directory in $ac_dir_suffix.
1354 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1355 case $ac_top_builddir_sub in
1356 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1357 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1360 ac_abs_top_builddir=$ac_pwd
1361 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1362 # for backward compatibility:
1363 ac_top_builddir=$ac_top_build_prefix
1366 .) # We are building in place.
1368 ac_top_srcdir=$ac_top_builddir_sub
1369 ac_abs_top_srcdir=$ac_pwd ;;
1370 [\\/]* | ?:[\\/]* ) # Absolute name.
1371 ac_srcdir=$srcdir$ac_dir_suffix;
1372 ac_top_srcdir=$srcdir
1373 ac_abs_top_srcdir=$srcdir ;;
1375 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1376 ac_top_srcdir=$ac_top_build_prefix$srcdir
1377 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1379 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1381 cd "$ac_dir" || { ac_status=$?; continue; }
1382 # Check for guested configure.
1383 if test -f "$ac_srcdir/configure.gnu"; then
1385 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1386 elif test -f "$ac_srcdir/configure"; then
1388 $SHELL "$ac_srcdir/configure" --help=recursive
1390 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1392 cd "$ac_pwd" || { ac_status=$?; break; }
1396 test -n "$ac_init_help" && exit $ac_status
1397 if $ac_init_version; then
1400 generated by GNU Autoconf 2.60
1402 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1403 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1404 This configure script is free software; the Free Software Foundation
1405 gives unlimited permission to copy, distribute and modify it.
1409 cat >config.log <<_ACEOF
1410 This file contains any messages produced by compilers while
1411 running configure, to aid debugging if configure makes a mistake.
1413 It was created by $as_me, which was
1414 generated by GNU Autoconf 2.60. Invocation command line was
1426 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1427 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1428 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1429 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1430 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1432 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1433 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1435 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1436 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1437 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1438 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1439 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1440 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1441 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 test -z "$as_dir" && as_dir=.
1450 echo "PATH: $as_dir"
1466 # Keep a trace of the command line.
1467 # Strip out --no-create and --no-recursion so they do not pile up.
1468 # Strip out --silent because we don't want to record it for future runs.
1469 # Also quote any args containing shell meta-characters.
1470 # Make two passes to allow for proper duplicate-argument suppression.
1474 ac_must_keep_next=false
1480 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1482 | -silent | --silent | --silen | --sile | --sil)
1485 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1488 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1490 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1491 if test $ac_must_keep_next = true; then
1492 ac_must_keep_next=false # Got value, back to normal.
1495 *=* | --config-cache | -C | -disable-* | --disable-* \
1496 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1497 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1498 | -with-* | --with-* | -without-* | --without-* | --x)
1499 case "$ac_configure_args0 " in
1500 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1503 -* ) ac_must_keep_next=true ;;
1506 ac_configure_args="$ac_configure_args '$ac_arg'"
1511 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1512 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1514 # When interrupted or exit'd, cleanup temporary files, and complete
1515 # config.log. We remove comments because anyway the quotes in there
1516 # would cause problems or look ugly.
1517 # WARNING: Use '\'' to represent an apostrophe within the trap.
1518 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1519 trap 'exit_status=$?
1520 # Save into config.log some information that might help in debugging.
1525 ## ---------------- ##
1526 ## Cache variables. ##
1527 ## ---------------- ##
1530 # The following way of writing the cache mishandles newlines in values,
1532 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1533 eval ac_val=\$$ac_var
1537 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1538 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1541 _ | IFS | as_nl) ;; #(
1542 *) $as_unset $ac_var ;;
1547 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1548 *${as_nl}ac_space=\ *)
1550 "s/'\''/'\''\\\\'\'''\''/g;
1551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1562 ## ----------------- ##
1563 ## Output variables. ##
1564 ## ----------------- ##
1567 for ac_var in $ac_subst_vars
1569 eval ac_val=\$$ac_var
1571 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1573 echo "$ac_var='\''$ac_val'\''"
1577 if test -n "$ac_subst_files"; then
1579 ## ------------------- ##
1580 ## File substitutions. ##
1581 ## ------------------- ##
1584 for ac_var in $ac_subst_files
1586 eval ac_val=\$$ac_var
1588 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1590 echo "$ac_var='\''$ac_val'\''"
1595 if test -s confdefs.h; then
1605 test "$ac_signal" != 0 &&
1606 echo "$as_me: caught signal $ac_signal"
1607 echo "$as_me: exit $exit_status"
1609 rm -f core *.core core.conftest.* &&
1610 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1613 for ac_signal in 1 2 13 15; do
1614 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1618 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1619 rm -f -r conftest* confdefs.h
1621 # Predefined preprocessor variables.
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE_NAME "$PACKAGE_NAME"
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1633 cat >>confdefs.h <<_ACEOF
1634 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE_STRING "$PACKAGE_STRING"
1643 cat >>confdefs.h <<_ACEOF
1644 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1648 # Let the site file select an alternate cache file if it wants to.
1649 # Prefer explicitly selected file to automatically selected ones.
1650 if test -n "$CONFIG_SITE"; then
1651 set x "$CONFIG_SITE"
1652 elif test "x$prefix" != xNONE; then
1653 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1655 set x "$ac_default_prefix/share/config.site" \
1656 "$ac_default_prefix/etc/config.site"
1661 if test -r "$ac_site_file"; then
1662 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1663 echo "$as_me: loading site script $ac_site_file" >&6;}
1664 sed 's/^/| /' "$ac_site_file" >&5
1669 if test -r "$cache_file"; then
1670 # Some versions of bash will fail to source /dev/null (special
1671 # files actually), so we avoid doing that.
1672 if test -f "$cache_file"; then
1673 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1674 echo "$as_me: loading cache $cache_file" >&6;}
1676 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1677 *) . "./$cache_file";;
1681 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1682 echo "$as_me: creating cache $cache_file" >&6;}
1686 # Check that the precious variables saved in the cache have kept the same
1688 ac_cache_corrupted=false
1689 for ac_var in $ac_precious_vars; do
1690 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1691 eval ac_new_set=\$ac_env_${ac_var}_set
1692 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1693 eval ac_new_val=\$ac_env_${ac_var}_value
1694 case $ac_old_set,$ac_new_set in
1696 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1697 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1698 ac_cache_corrupted=: ;;
1700 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1701 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1702 ac_cache_corrupted=: ;;
1705 if test "x$ac_old_val" != "x$ac_new_val"; then
1706 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1707 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1708 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1709 echo "$as_me: former value: $ac_old_val" >&2;}
1710 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1711 echo "$as_me: current value: $ac_new_val" >&2;}
1712 ac_cache_corrupted=:
1715 # Pass precious variables to config.status.
1716 if test "$ac_new_set" = set; then
1718 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1719 *) ac_arg=$ac_var=$ac_new_val ;;
1721 case " $ac_configure_args " in
1722 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1723 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1727 if $ac_cache_corrupted; then
1728 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1729 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1730 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1731 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1732 { (exit 1); exit 1; }; }
1752 ac_cpp='$CPP $CPPFLAGS'
1753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1758 am__api_version="1.9"
1760 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1761 if test -f "$ac_dir/install-sh"; then
1763 ac_install_sh="$ac_aux_dir/install-sh -c"
1765 elif test -f "$ac_dir/install.sh"; then
1767 ac_install_sh="$ac_aux_dir/install.sh -c"
1769 elif test -f "$ac_dir/shtool"; then
1771 ac_install_sh="$ac_aux_dir/shtool install -c"
1775 if test -z "$ac_aux_dir"; then
1776 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1777 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1778 { (exit 1); exit 1; }; }
1781 # These three variables are undocumented and unsupported,
1782 # and are intended to be withdrawn in a future Autoconf release.
1783 # They can cause serious problems if a builder's source tree is in a directory
1784 # whose full name contains unusual characters.
1785 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1786 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1787 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1790 # Find a good install program. We prefer a C program (faster),
1791 # so one script is as good as another. But avoid the broken or
1792 # incompatible versions:
1793 # SysV /etc/install, /usr/sbin/install
1794 # SunOS /usr/etc/install
1795 # IRIX /sbin/install
1797 # AmigaOS /C/install, which installs bootblocks on floppy discs
1798 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1799 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1800 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1801 # OS/2's system install, which has a completely different semantic
1802 # ./install, which can be erroneously created by make from ./install.sh.
1803 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1804 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1805 if test -z "$INSTALL"; then
1806 if test "${ac_cv_path_install+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 test -z "$as_dir" && as_dir=.
1814 # Account for people who put trailing slashes in PATH elements.
1816 ./ | .// | /cC/* | \
1817 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1818 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1821 # OSF1 and SCO ODT 3.0 have their own names for install.
1822 # Don't use installbsd from OSF since it installs stuff as root
1824 for ac_prog in ginstall scoinst install; do
1825 for ac_exec_ext in '' $ac_executable_extensions; do
1826 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1827 if test $ac_prog = install &&
1828 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1829 # AIX install. It has an incompatible calling convention.
1831 elif test $ac_prog = install &&
1832 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1833 # program-specific install script used by HP pwplus--don't use.
1836 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1849 if test "${ac_cv_path_install+set}" = set; then
1850 INSTALL=$ac_cv_path_install
1852 # As a last resort, use the slow shell script. Don't cache a
1853 # value for INSTALL within a source directory, because that will
1854 # break other packages using the cache if that directory is
1855 # removed, or if the value is a relative name.
1856 INSTALL=$ac_install_sh
1859 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1860 echo "${ECHO_T}$INSTALL" >&6; }
1862 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1863 # It thinks the first close brace ends the variable substitution.
1864 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1866 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1868 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1870 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1871 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1874 echo timestamp > conftest.file
1875 # Do `set' in a subshell so we don't clobber the current shell's
1876 # arguments. Must try -L first in case configure is actually a
1877 # symlink; some systems play weird games with the mod time of symlinks
1878 # (eg FreeBSD returns the mod time of the symlink's containing
1881 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1882 if test "$*" = "X"; then
1884 set X `ls -t $srcdir/configure conftest.file`
1887 if test "$*" != "X $srcdir/configure conftest.file" \
1888 && test "$*" != "X conftest.file $srcdir/configure"; then
1890 # If neither matched, then we have a broken ls. This can happen
1891 # if, for instance, CONFIG_SHELL is bash and it inherits a
1892 # broken ls alias from the environment. This has actually
1893 # happened. Such a system could not be considered "sane".
1894 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1895 alias in your environment" >&5
1896 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1897 alias in your environment" >&2;}
1898 { (exit 1); exit 1; }; }
1901 test "$2" = conftest.file
1907 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1908 Check your system clock" >&5
1909 echo "$as_me: error: newly created file is older than distributed files!
1910 Check your system clock" >&2;}
1911 { (exit 1); exit 1; }; }
1913 { echo "$as_me:$LINENO: result: yes" >&5
1914 echo "${ECHO_T}yes" >&6; }
1915 test "$program_prefix" != NONE &&
1916 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1917 # Use a double $ so make ignores it.
1918 test "$program_suffix" != NONE &&
1919 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1920 # Double any \ or $. echo might interpret backslashes.
1921 # By default was `s,x,x', remove it if useless.
1922 cat <<\_ACEOF >conftest.sed
1923 s/[\\$]/&&/g;s/;s,x,x,$//
1925 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1928 # expand $ac_aux_dir to an absolute path
1929 am_aux_dir=`cd $ac_aux_dir && pwd`
1931 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1932 # Use eval to expand $SHELL
1933 if eval "$MISSING --run true"; then
1934 am_missing_run="$MISSING --run "
1937 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1938 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1941 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1942 # We used to keeping the `.' as first argument, in order to
1943 # allow $(mkdir_p) to be used without argument. As in
1944 # $(mkdir_p) $(somedir)
1945 # where $(somedir) is conditionally defined. However this is wrong
1947 # 1. if the package is installed by a user who cannot write `.'
1948 # make install will fail,
1949 # 2. the above comment should most certainly read
1950 # $(mkdir_p) $(DESTDIR)$(somedir)
1951 # so it does not work when $(somedir) is undefined and
1952 # $(DESTDIR) is not.
1953 # To support the latter case, we have to write
1954 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1955 # so the `.' trick is pointless.
1956 mkdir_p='mkdir -p --'
1958 # On NextStep and OpenStep, the `mkdir' command does not
1959 # recognize any option. It will interpret all options as
1960 # directories to create, and then abort because `.' already
1962 for d in ./-p ./--version;
1964 test -d $d && rmdir $d
1966 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1967 if test -f "$ac_aux_dir/mkinstalldirs"; then
1968 mkdir_p='$(mkinstalldirs)'
1970 mkdir_p='$(install_sh) -d'
1974 for ac_prog in gawk mawk nawk awk
1976 # Extract the first word of "$ac_prog", so it can be a program name with args.
1977 set dummy $ac_prog; ac_word=$2
1978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1980 if test "${ac_cv_prog_AWK+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 if test -n "$AWK"; then
1984 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 test -z "$as_dir" && as_dir=.
1991 for ac_exec_ext in '' $ac_executable_extensions; do
1992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1993 ac_cv_prog_AWK="$ac_prog"
1994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 if test -n "$AWK"; then
2005 { echo "$as_me:$LINENO: result: $AWK" >&5
2006 echo "${ECHO_T}$AWK" >&6; }
2008 { echo "$as_me:$LINENO: result: no" >&5
2009 echo "${ECHO_T}no" >&6; }
2013 test -n "$AWK" && break
2016 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2017 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2018 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2019 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 cat >conftest.make <<\_ACEOF
2025 @echo '@@@%%%=$(MAKE)=@@@%%%'
2027 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2028 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2030 eval ac_cv_prog_make_${ac_make}_set=yes;;
2032 eval ac_cv_prog_make_${ac_make}_set=no;;
2036 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2037 { echo "$as_me:$LINENO: result: yes" >&5
2038 echo "${ECHO_T}yes" >&6; }
2041 { echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6; }
2043 SET_MAKE="MAKE=${MAKE-make}"
2046 rm -rf .tst 2>/dev/null
2047 mkdir .tst 2>/dev/null
2048 if test -d .tst; then
2053 rmdir .tst 2>/dev/null
2055 # test to see if srcdir already configured
2056 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2057 test -f $srcdir/config.status; then
2058 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2059 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2060 { (exit 1); exit 1; }; }
2063 # test whether we have cygpath
2064 if test -z "$CYGPATH_W"; then
2065 if (cygpath --version) >/dev/null 2>/dev/null; then
2066 CYGPATH_W='cygpath -w'
2073 # Define the identity of the package.
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE "$PACKAGE"
2083 cat >>confdefs.h <<_ACEOF
2084 #define VERSION "$VERSION"
2087 # Some tools Automake needs.
2089 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2092 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2095 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2098 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2101 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2103 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2105 # Installed binaries are usually stripped using `strip' when the user
2106 # run `make install-strip'. However `strip' might not be the right
2107 # tool to use in cross-compilation environments, therefore Automake
2108 # will honor the `STRIP' environment variable to overrule this program.
2109 if test "$cross_compiling" != no; then
2110 if test -n "$ac_tool_prefix"; then
2111 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2112 set dummy ${ac_tool_prefix}strip; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_STRIP+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 if test -n "$STRIP"; then
2119 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2128 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 STRIP=$ac_cv_prog_STRIP
2139 if test -n "$STRIP"; then
2140 { echo "$as_me:$LINENO: result: $STRIP" >&5
2141 echo "${ECHO_T}$STRIP" >&6; }
2143 { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2149 if test -z "$ac_cv_prog_STRIP"; then
2151 # Extract the first word of "strip", so it can be a program name with args.
2152 set dummy strip; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 if test -n "$ac_ct_STRIP"; then
2159 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2168 ac_cv_prog_ac_ct_STRIP="strip"
2169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2179 if test -n "$ac_ct_STRIP"; then
2180 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2181 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2183 { echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6; }
2187 if test "x$ac_ct_STRIP" = x; then
2190 case $cross_compiling:$ac_tool_warned in
2192 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2193 whose name does not start with the host triplet. If you think this
2194 configuration is useful to you, please write to autoconf@gnu.org." >&5
2195 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2196 whose name does not start with the host triplet. If you think this
2197 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2198 ac_tool_warned=yes ;;
2203 STRIP="$ac_cv_prog_STRIP"
2207 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2209 # We need awk for the "check" target. The system "awk" is bad on
2211 # Always define AMTAR for backward compatibility.
2213 AMTAR=${AMTAR-"${am_missing_run}tar"}
2215 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2221 ac_config_headers="$ac_config_headers config.h"
2228 if test -n "$ac_aux_dir"; then
2229 case "$ac_aux_dir" in
2230 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
2231 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
2234 if test -z "$MKINSTALLDIRS"; then
2235 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2240 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2241 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
2242 # Check whether --enable-nls was given.
2243 if test "${enable_nls+set}" = set; then
2244 enableval=$enable_nls; USE_NLS=$enableval
2249 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
2250 echo "${ECHO_T}$USE_NLS" >&6; }
2257 # Prepare PATH_SEPARATOR.
2258 # The user is always right.
2259 if test "${PATH_SEPARATOR+set}" != set; then
2260 echo "#! /bin/sh" >conf$$.sh
2261 echo "exit 0" >>conf$$.sh
2263 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2271 # Find out how to test for executable files. Don't use a zero-byte file,
2272 # as systems may use methods other than mode bits to determine executability.
2273 cat >conf$$.file <<_ASEOF
2277 chmod +x conf$$.file
2278 if test -x conf$$.file >/dev/null 2>&1; then
2279 ac_executable_p="test -x"
2281 ac_executable_p="test -f"
2285 # Extract the first word of "msgfmt", so it can be a program name with args.
2286 set dummy msgfmt; ac_word=$2
2287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2289 if test "${ac_cv_path_MSGFMT+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2297 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2298 for ac_dir in $PATH; do
2300 test -z "$ac_dir" && ac_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2303 echo "$as_me: trying $ac_dir/$ac_word..." >&5
2304 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
2305 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2306 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2313 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2317 MSGFMT="$ac_cv_path_MSGFMT"
2318 if test "$MSGFMT" != ":"; then
2319 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
2320 echo "${ECHO_T}$MSGFMT" >&6; }
2322 { echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6; }
2326 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2327 set dummy gmsgfmt; ac_word=$2
2328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2330 if test "${ac_cv_path_GMSGFMT+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 test -z "$as_dir" && as_dir=.
2343 for ac_exec_ext in '' $ac_executable_extensions; do
2344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2345 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2357 GMSGFMT=$ac_cv_path_GMSGFMT
2358 if test -n "$GMSGFMT"; then
2359 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
2360 echo "${ECHO_T}$GMSGFMT" >&6; }
2362 { echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6; }
2369 # Prepare PATH_SEPARATOR.
2370 # The user is always right.
2371 if test "${PATH_SEPARATOR+set}" != set; then
2372 echo "#! /bin/sh" >conf$$.sh
2373 echo "exit 0" >>conf$$.sh
2375 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2383 # Find out how to test for executable files. Don't use a zero-byte file,
2384 # as systems may use methods other than mode bits to determine executability.
2385 cat >conf$$.file <<_ASEOF
2389 chmod +x conf$$.file
2390 if test -x conf$$.file >/dev/null 2>&1; then
2391 ac_executable_p="test -x"
2393 ac_executable_p="test -f"
2397 # Extract the first word of "xgettext", so it can be a program name with args.
2398 set dummy xgettext; ac_word=$2
2399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2401 if test "${ac_cv_path_XGETTEXT+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2409 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2410 for ac_dir in $PATH; do
2412 test -z "$ac_dir" && ac_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2415 echo "$as_me: trying $ac_dir/$ac_word..." >&5
2416 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
2417 (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
2418 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
2425 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2429 XGETTEXT="$ac_cv_path_XGETTEXT"
2430 if test "$XGETTEXT" != ":"; then
2431 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
2432 echo "${ECHO_T}$XGETTEXT" >&6; }
2434 { echo "$as_me:$LINENO: result: no" >&5
2435 echo "${ECHO_T}no" >&6; }
2441 # Prepare PATH_SEPARATOR.
2442 # The user is always right.
2443 if test "${PATH_SEPARATOR+set}" != set; then
2444 echo "#! /bin/sh" >conf$$.sh
2445 echo "exit 0" >>conf$$.sh
2447 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2455 # Find out how to test for executable files. Don't use a zero-byte file,
2456 # as systems may use methods other than mode bits to determine executability.
2457 cat >conf$$.file <<_ASEOF
2461 chmod +x conf$$.file
2462 if test -x conf$$.file >/dev/null 2>&1; then
2463 ac_executable_p="test -x"
2465 ac_executable_p="test -f"
2469 # Extract the first word of "msgmerge", so it can be a program name with args.
2470 set dummy msgmerge; ac_word=$2
2471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2473 if test "${ac_cv_path_MSGMERGE+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2481 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2482 for ac_dir in $PATH; do
2484 test -z "$ac_dir" && ac_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2487 echo "$as_me: trying $ac_dir/$ac_word..." >&5
2488 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
2489 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
2496 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2500 MSGMERGE="$ac_cv_path_MSGMERGE"
2501 if test "$MSGMERGE" != ":"; then
2502 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
2503 echo "${ECHO_T}$MSGMERGE" >&6; }
2505 { echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6; }
2510 if test "$GMSGFMT" != ":"; then
2511 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
2512 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2515 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2516 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
2517 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
2522 if test "$XGETTEXT" != ":"; then
2523 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2524 (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
2527 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
2528 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
2534 ac_config_commands="$ac_config_commands default-1"
2537 DEPDIR="${am__leading_dot}deps"
2539 ac_config_commands="$ac_config_commands depfiles"
2542 am_make=${MAKE-make}
2543 cat > confinc << 'END'
2548 # If we don't find an include directive, just comment out the code.
2549 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2550 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2554 # First try GNU make style include.
2555 echo "include confinc" > confmf
2556 # We grep out `Entering directory' and `Leaving directory'
2557 # messages which can occur if `w' ends up in MAKEFLAGS.
2558 # In particular we don't look at `^make:' because GNU make might
2559 # be invoked under some other name (usually "gmake"), in which
2560 # case it prints its new name instead of `make'.
2561 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2566 # Now try BSD make style include.
2567 if test "$am__include" = "#"; then
2568 echo '.include "confinc"' > confmf
2569 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2570 am__include=.include
2577 { echo "$as_me:$LINENO: result: $_am_result" >&5
2578 echo "${ECHO_T}$_am_result" >&6; }
2579 rm -f confinc confmf
2581 # Check whether --enable-dependency-tracking was given.
2582 if test "${enable_dependency_tracking+set}" = set; then
2583 enableval=$enable_dependency_tracking;
2586 if test "x$enable_dependency_tracking" != xno; then
2587 am_depcomp="$ac_aux_dir/depcomp"
2592 if test "x$enable_dependency_tracking" != xno; then
2603 ac_cpp='$CPP $CPPFLAGS'
2604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2607 if test -n "$ac_tool_prefix"; then
2608 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2609 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2612 if test "${ac_cv_prog_CC+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 if test -n "$CC"; then
2616 ac_cv_prog_CC="$CC" # Let the user override the test.
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 if test -n "$CC"; then
2637 { echo "$as_me:$LINENO: result: $CC" >&5
2638 echo "${ECHO_T}$CC" >&6; }
2640 { echo "$as_me:$LINENO: result: no" >&5
2641 echo "${ECHO_T}no" >&6; }
2646 if test -z "$ac_cv_prog_CC"; then
2648 # Extract the first word of "gcc", so it can be a program name with args.
2649 set dummy gcc; ac_word=$2
2650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2652 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 if test -n "$ac_ct_CC"; then
2656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2665 ac_cv_prog_ac_ct_CC="gcc"
2666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2676 if test -n "$ac_ct_CC"; then
2677 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2678 echo "${ECHO_T}$ac_ct_CC" >&6; }
2680 { echo "$as_me:$LINENO: result: no" >&5
2681 echo "${ECHO_T}no" >&6; }
2684 if test "x$ac_ct_CC" = x; then
2687 case $cross_compiling:$ac_tool_warned in
2689 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2690 whose name does not start with the host triplet. If you think this
2691 configuration is useful to you, please write to autoconf@gnu.org." >&5
2692 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2693 whose name does not start with the host triplet. If you think this
2694 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2695 ac_tool_warned=yes ;;
2703 if test -z "$CC"; then
2704 if test -n "$ac_tool_prefix"; then
2705 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2706 set dummy ${ac_tool_prefix}cc; ac_word=$2
2707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2709 if test "${ac_cv_prog_CC+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 if test -n "$CC"; then
2713 ac_cv_prog_CC="$CC" # Let the user override the test.
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2722 ac_cv_prog_CC="${ac_tool_prefix}cc"
2723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 if test -n "$CC"; then
2734 { echo "$as_me:$LINENO: result: $CC" >&5
2735 echo "${ECHO_T}$CC" >&6; }
2737 { echo "$as_me:$LINENO: result: no" >&5
2738 echo "${ECHO_T}no" >&6; }
2744 if test -z "$CC"; then
2745 # Extract the first word of "cc", so it can be a program name with args.
2746 set dummy cc; ac_word=$2
2747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2749 if test "${ac_cv_prog_CC+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 if test -n "$CC"; then
2753 ac_cv_prog_CC="$CC" # Let the user override the test.
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2763 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2764 ac_prog_rejected=yes
2768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 if test $ac_prog_rejected = yes; then
2776 # We found a bogon in the path, so make sure we never use it.
2777 set dummy $ac_cv_prog_CC
2779 if test $# != 0; then
2780 # We chose a different compiler from the bogus one.
2781 # However, it has the same basename, so the bogon will be chosen
2782 # first if we set CC to just the basename; use the full file name.
2784 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2790 if test -n "$CC"; then
2791 { echo "$as_me:$LINENO: result: $CC" >&5
2792 echo "${ECHO_T}$CC" >&6; }
2794 { echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6; }
2800 if test -z "$CC"; then
2801 if test -n "$ac_tool_prefix"; then
2802 for ac_prog in cl.exe
2804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2805 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2808 if test "${ac_cv_prog_CC+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 if test -n "$CC"; then
2833 { echo "$as_me:$LINENO: result: $CC" >&5
2834 echo "${ECHO_T}$CC" >&6; }
2836 { echo "$as_me:$LINENO: result: no" >&5
2837 echo "${ECHO_T}no" >&6; }
2841 test -n "$CC" && break
2844 if test -z "$CC"; then
2846 for ac_prog in cl.exe
2848 # Extract the first word of "$ac_prog", so it can be a program name with args.
2849 set dummy $ac_prog; ac_word=$2
2850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 if test -n "$ac_ct_CC"; then
2856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2865 ac_cv_prog_ac_ct_CC="$ac_prog"
2866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2876 if test -n "$ac_ct_CC"; then
2877 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2878 echo "${ECHO_T}$ac_ct_CC" >&6; }
2880 { echo "$as_me:$LINENO: result: no" >&5
2881 echo "${ECHO_T}no" >&6; }
2885 test -n "$ac_ct_CC" && break
2888 if test "x$ac_ct_CC" = x; then
2891 case $cross_compiling:$ac_tool_warned in
2893 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2894 whose name does not start with the host triplet. If you think this
2895 configuration is useful to you, please write to autoconf@gnu.org." >&5
2896 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2897 whose name does not start with the host triplet. If you think this
2898 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2899 ac_tool_warned=yes ;;
2908 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2909 See \`config.log' for more details." >&5
2910 echo "$as_me: error: no acceptable C compiler found in \$PATH
2911 See \`config.log' for more details." >&2;}
2912 { (exit 1); exit 1; }; }
2914 # Provide some information about the compiler.
2915 echo "$as_me:$LINENO: checking for C compiler version" >&5
2916 ac_compiler=`set X $ac_compile; echo $2`
2917 { (ac_try="$ac_compiler --version >&5"
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923 (eval "$ac_compiler --version >&5") 2>&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }
2927 { (ac_try="$ac_compiler -v >&5"
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compiler -v >&5") 2>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2937 { (ac_try="$ac_compiler -V >&5"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compiler -V >&5") 2>&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }
2948 cat >conftest.$ac_ext <<_ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h. */
2963 ac_clean_files_save=$ac_clean_files
2964 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2965 # Try to create an executable without -o first, disregard a.out.
2966 # It will help us diagnose broken compilers, and finding out an intuition
2968 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2969 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2970 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2972 # List of possible output files, starting from the most likely.
2973 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2974 # only as a last resort. b.out is created by i960 compilers.
2975 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2977 # The IRIX 6 linker writes into existing files which may not be
2978 # executable, retaining their permissions. Remove them first so a
2979 # subsequent execution test works.
2981 for ac_file in $ac_files
2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2985 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2990 if { (ac_try="$ac_link_default"
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996 (eval "$ac_link_default") 2>&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; then
3000 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3001 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3002 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3003 # so that the user can short-circuit this test for compilers unknown to
3005 for ac_file in $ac_files
3007 test -f "$ac_file" || continue
3009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3012 # We found the default executable, but exeext='' is most
3016 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3018 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3020 # We set ac_cv_exeext here because the later test for it is not
3021 # safe: cross compilers may not add the suffix if given an `-o'
3022 # argument, so we may need to know it at that point already.
3023 # Even if this section looks crufty: it has the advantage of
3030 test "$ac_cv_exeext" = no && ac_cv_exeext=
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3036 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3037 See \`config.log' for more details." >&5
3038 echo "$as_me: error: C compiler cannot create executables
3039 See \`config.log' for more details." >&2;}
3040 { (exit 77); exit 77; }; }
3043 ac_exeext=$ac_cv_exeext
3044 { echo "$as_me:$LINENO: result: $ac_file" >&5
3045 echo "${ECHO_T}$ac_file" >&6; }
3047 # Check that the compiler produces executables we can run. If not, either
3048 # the compiler is broken, or we cross compile.
3049 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3050 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3051 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3052 # If not cross compiling, check that we can run a simple program.
3053 if test "$cross_compiling" != yes; then
3054 if { ac_try='./$ac_file'
3055 { (case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_try") 2>&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3066 if test "$cross_compiling" = maybe; then
3069 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3070 If you meant to cross compile, use \`--host'.
3071 See \`config.log' for more details." >&5
3072 echo "$as_me: error: cannot run C compiled programs.
3073 If you meant to cross compile, use \`--host'.
3074 See \`config.log' for more details." >&2;}
3075 { (exit 1); exit 1; }; }
3079 { echo "$as_me:$LINENO: result: yes" >&5
3080 echo "${ECHO_T}yes" >&6; }
3082 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3083 ac_clean_files=$ac_clean_files_save
3084 # Check that the compiler produces executables we can run. If not, either
3085 # the compiler is broken, or we cross compile.
3086 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3087 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3088 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3089 echo "${ECHO_T}$cross_compiling" >&6; }
3091 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3092 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3093 if { (ac_try="$ac_link"
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_link") 2>&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; then
3103 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3104 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3105 # work properly (i.e., refer to `conftest.exe'), while it won't with
3107 for ac_file in conftest.exe conftest conftest.*; do
3108 test -f "$ac_file" || continue
3110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3111 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3117 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3120 See \`config.log' for more details." >&2;}
3121 { (exit 1); exit 1; }; }
3124 rm -f conftest$ac_cv_exeext
3125 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3126 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3128 rm -f conftest.$ac_ext
3129 EXEEXT=$ac_cv_exeext
3131 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3132 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3133 if test "${ac_cv_objext+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 cat >conftest.$ac_ext <<_ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3151 rm -f conftest.o conftest.obj
3152 if { (ac_try="$ac_compile"
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_compile") 2>&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; then
3162 for ac_file in conftest.o conftest.obj conftest.*; do
3163 test -f "$ac_file" || continue;
3165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3166 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3174 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3175 See \`config.log' for more details." >&5
3176 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3177 See \`config.log' for more details." >&2;}
3178 { (exit 1); exit 1; }; }
3181 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3183 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3184 echo "${ECHO_T}$ac_cv_objext" >&6; }
3185 OBJEXT=$ac_cv_objext
3187 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3188 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3189 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 cat >conftest.$ac_ext <<_ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3210 rm -f conftest.$ac_objext
3211 if { (ac_try="$ac_compile"
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_compile") 2>conftest.er1
3219 grep -v '^ *+' conftest.er1 >conftest.err
3221 cat conftest.err >&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); } &&
3224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3225 { (case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_try") 2>&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; } &&
3234 { ac_try='test -s conftest.$ac_objext'
3235 { (case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240 (eval "$ac_try") 2>&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; }; then
3246 echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3256 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3257 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3258 GCC=`test $ac_compiler_gnu = yes && echo yes`
3259 ac_test_CFLAGS=${CFLAGS+set}
3260 ac_save_CFLAGS=$CFLAGS
3261 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3262 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3263 if test "${ac_cv_prog_cc_g+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 ac_save_c_werror_flag=$ac_c_werror_flag
3267 ac_c_werror_flag=yes
3270 cat >conftest.$ac_ext <<_ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3285 rm -f conftest.$ac_objext
3286 if { (ac_try="$ac_compile"
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_compile") 2>conftest.er1
3294 grep -v '^ *+' conftest.er1 >conftest.err
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } &&
3299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3300 { (case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305 (eval "$ac_try") 2>&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; } &&
3309 { ac_try='test -s conftest.$ac_objext'
3310 { (case "(($ac_try" in
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315 (eval "$ac_try") 2>&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; }; then
3321 echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3325 cat >conftest.$ac_ext <<_ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3340 rm -f conftest.$ac_objext
3341 if { (ac_try="$ac_compile"
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_compile") 2>conftest.er1
3349 grep -v '^ *+' conftest.er1 >conftest.err
3351 cat conftest.err >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } &&
3354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3355 { (case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_try") 2>&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; } &&
3364 { ac_try='test -s conftest.$ac_objext'
3365 { (case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370 (eval "$ac_try") 2>&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3376 echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3379 ac_c_werror_flag=$ac_save_c_werror_flag
3381 cat >conftest.$ac_ext <<_ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3396 rm -f conftest.$ac_objext
3397 if { (ac_try="$ac_compile"
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_compile") 2>conftest.er1
3405 grep -v '^ *+' conftest.er1 >conftest.err
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } &&
3410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3411 { (case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416 (eval "$ac_try") 2>&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }; } &&
3420 { ac_try='test -s conftest.$ac_objext'
3421 { (case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426 (eval "$ac_try") 2>&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); }; }; then
3432 echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445 ac_c_werror_flag=$ac_save_c_werror_flag
3447 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3448 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3449 if test "$ac_test_CFLAGS" = set; then
3450 CFLAGS=$ac_save_CFLAGS
3451 elif test $ac_cv_prog_cc_g = yes; then
3452 if test "$GCC" = yes; then
3458 if test "$GCC" = yes; then
3464 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3465 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3466 if test "${ac_cv_prog_cc_c89+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 ac_cv_prog_cc_c89=no
3471 cat >conftest.$ac_ext <<_ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3479 #include <sys/types.h>
3480 #include <sys/stat.h>
3481 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3482 struct buf { int x; };
3483 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3484 static char *e (p, i)
3490 static char *f (char * (*g) (char **, int), char **p, ...)
3495 s = g (p, va_arg (v,int));
3500 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3501 function prototypes and stuff, but not '\xHH' hex character constants.
3502 These don't provoke an error unfortunately, instead are silently treated
3503 as 'x'. The following induces an error, until -std is added to get
3504 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3505 array size at least. It's necessary to write '\x00'==0 to get something
3506 that's true only with -std. */
3507 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3509 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3510 inside strings and character constants. */
3512 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3514 int test (int i, double x);
3515 struct s1 {int (*f) (int a);};
3516 struct s2 {int (*f) (double a);};
3517 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3523 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3528 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3529 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3531 CC="$ac_save_CC $ac_arg"
3532 rm -f conftest.$ac_objext
3533 if { (ac_try="$ac_compile"
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539 (eval "$ac_compile") 2>conftest.er1
3541 grep -v '^ *+' conftest.er1 >conftest.err
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3547 { (case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_try") 2>&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; } &&
3556 { ac_try='test -s conftest.$ac_objext'
3557 { (case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_try") 2>&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3566 ac_cv_prog_cc_c89=$ac_arg
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3574 rm -f core conftest.err conftest.$ac_objext
3575 test "x$ac_cv_prog_cc_c89" != "xno" && break
3577 rm -f conftest.$ac_ext
3582 case "x$ac_cv_prog_cc_c89" in
3584 { echo "$as_me:$LINENO: result: none needed" >&5
3585 echo "${ECHO_T}none needed" >&6; } ;;
3587 { echo "$as_me:$LINENO: result: unsupported" >&5
3588 echo "${ECHO_T}unsupported" >&6; } ;;
3590 CC="$CC $ac_cv_prog_cc_c89"
3591 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3592 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3597 ac_cpp='$CPP $CPPFLAGS'
3598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602 depcc="$CC" am_compiler_list=
3604 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3605 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3606 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3610 # We make a subdir and do the tests there. Otherwise we can end up
3611 # making bogus files that we don't know about and never remove. For
3612 # instance it was reported that on HP-UX the gcc test will end up
3613 # making a dummy file named `D' -- because `-MD' means `put the output
3616 # Copy depcomp to subdir because otherwise we won't find it if we're
3617 # using a relative directory.
3618 cp "$am_depcomp" conftest.dir
3620 # We will build objects and dependencies in a subdirectory because
3621 # it helps to detect inapplicable dependency modes. For instance
3622 # both Tru64's cc and ICC support -MD to output dependencies as a
3623 # side effect of compilation, but ICC will put the dependencies in
3624 # the current directory while Tru64 will put them in the object
3628 am_cv_CC_dependencies_compiler_type=none
3629 if test "$am_compiler_list" = ""; then
3630 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3632 for depmode in $am_compiler_list; do
3633 # Setup a source with many dependencies, because some compilers
3634 # like to wrap large dependency lists on column 80 (with \), and
3635 # we should not choose a depcomp mode which is confused by this.
3637 # We need to recreate these files for each test, as the compiler may
3638 # overwrite some of them when testing with obscure command lines.
3639 # This happens at least with the AIX C compiler.
3641 for i in 1 2 3 4 5 6; do
3642 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3643 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3644 # Solaris 8's {/usr,}/bin/sh.
3645 touch sub/conftst$i.h
3647 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3651 # after this tag, mechanisms are not by side-effect, so they'll
3652 # only be used when explicitly requested
3653 if test "x$enable_dependency_tracking" = xyes; then
3661 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3662 # mode. It turns out that the SunPro C++ compiler does not properly
3663 # handle `-M -o', and we need to detect this.
3664 if depmode=$depmode \
3665 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3666 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3667 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3668 >/dev/null 2>conftest.err &&
3669 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3670 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3671 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3672 # icc doesn't choke on unknown options, it will just issue warnings
3673 # or remarks (even with -Werror). So we grep stderr for any message
3674 # that says an option was ignored or not supported.
3675 # When given -MP, icc 7.0 and 7.1 complain thusly:
3676 # icc: Command line warning: ignoring option '-M'; no argument required
3677 # The diagnosis changed in icc 8.0:
3678 # icc: Command line remark: option '-MP' not supported
3679 if (grep 'ignoring option' conftest.err ||
3680 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3681 am_cv_CC_dependencies_compiler_type=$depmode
3690 am_cv_CC_dependencies_compiler_type=none
3694 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3695 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3696 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3701 test "x$enable_dependency_tracking" != xno \
3702 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3704 am__fastdepCC_FALSE='#'
3706 am__fastdepCC_TRUE='#'
3707 am__fastdepCC_FALSE=
3711 # Make sure we can run config.sub.
3712 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3713 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3714 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3715 { (exit 1); exit 1; }; }
3717 { echo "$as_me:$LINENO: checking build system type" >&5
3718 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3719 if test "${ac_cv_build+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 ac_build_alias=$build_alias
3723 test "x$ac_build_alias" = x &&
3724 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3725 test "x$ac_build_alias" = x &&
3726 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3727 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3728 { (exit 1); exit 1; }; }
3729 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3730 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3731 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3732 { (exit 1); exit 1; }; }
3735 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3736 echo "${ECHO_T}$ac_cv_build" >&6; }
3737 case $ac_cv_build in
3739 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3740 echo "$as_me: error: invalid value of canonical build" >&2;}
3741 { (exit 1); exit 1; }; };;
3744 ac_save_IFS=$IFS; IFS='-'
3750 # Remember, the first character of IFS is used to create $*,
3751 # except with old shells:
3754 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3757 { echo "$as_me:$LINENO: checking host system type" >&5
3758 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3759 if test "${ac_cv_host+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 if test "x$host_alias" = x; then
3763 ac_cv_host=$ac_cv_build
3765 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3766 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3767 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3768 { (exit 1); exit 1; }; }
3772 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3773 echo "${ECHO_T}$ac_cv_host" >&6; }
3776 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3777 echo "$as_me: error: invalid value of canonical host" >&2;}
3778 { (exit 1); exit 1; }; };;
3781 ac_save_IFS=$IFS; IFS='-'
3787 # Remember, the first character of IFS is used to create $*,
3788 # except with old shells:
3791 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3796 ac_cpp='$CPP $CPPFLAGS'
3797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3801 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3802 # On Suns, sometimes $CPP names a directory.
3803 if test -n "$CPP" && test -d "$CPP"; then
3806 if test -z "$CPP"; then
3807 if test "${ac_cv_prog_CPP+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 # Double quotes because CPP needs to be expanded
3811 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3814 for ac_c_preproc_warn_flag in '' yes
3816 # Use a header file that comes with gcc, so configuring glibc
3817 # with a fresh cross-compiler works.
3818 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3819 # <limits.h> exists even on freestanding compilers.
3820 # On the NeXT, cc -E runs the code through the compiler's parser,
3821 # not just through cpp. "Syntax error" is here to catch this case.
3822 cat >conftest.$ac_ext <<_ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3829 # include <limits.h>
3831 # include <assert.h>
3835 if { (ac_try="$ac_cpp conftest.$ac_ext"
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3843 grep -v '^ *+' conftest.er1 >conftest.err
3845 cat conftest.err >&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); } >/dev/null; then
3848 if test -s conftest.err; then
3849 ac_cpp_err=$ac_c_preproc_warn_flag
3850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3857 if test -z "$ac_cpp_err"; then
3860 echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3863 # Broken: fails on valid input.
3867 rm -f conftest.err conftest.$ac_ext
3869 # OK, works on sane cases. Now check whether nonexistent headers
3870 # can be detected and how.
3871 cat >conftest.$ac_ext <<_ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3877 #include <ac_nonexistent.h>
3879 if { (ac_try="$ac_cpp conftest.$ac_ext"
3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3887 grep -v '^ *+' conftest.er1 >conftest.err
3889 cat conftest.err >&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } >/dev/null; then
3892 if test -s conftest.err; then
3893 ac_cpp_err=$ac_c_preproc_warn_flag
3894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3901 if test -z "$ac_cpp_err"; then
3902 # Broken: success on invalid input.
3905 echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3908 # Passes both tests.
3913 rm -f conftest.err conftest.$ac_ext
3916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3917 rm -f conftest.err conftest.$ac_ext
3918 if $ac_preproc_ok; then
3930 { echo "$as_me:$LINENO: result: $CPP" >&5
3931 echo "${ECHO_T}$CPP" >&6; }
3933 for ac_c_preproc_warn_flag in '' yes
3935 # Use a header file that comes with gcc, so configuring glibc
3936 # with a fresh cross-compiler works.
3937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3938 # <limits.h> exists even on freestanding compilers.
3939 # On the NeXT, cc -E runs the code through the compiler's parser,
3940 # not just through cpp. "Syntax error" is here to catch this case.
3941 cat >conftest.$ac_ext <<_ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h. */
3948 # include <limits.h>
3950 # include <assert.h>
3954 if { (ac_try="$ac_cpp conftest.$ac_ext"
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3962 grep -v '^ *+' conftest.er1 >conftest.err
3964 cat conftest.err >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); } >/dev/null; then
3967 if test -s conftest.err; then
3968 ac_cpp_err=$ac_c_preproc_warn_flag
3969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3976 if test -z "$ac_cpp_err"; then
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3982 # Broken: fails on valid input.
3986 rm -f conftest.err conftest.$ac_ext
3988 # OK, works on sane cases. Now check whether nonexistent headers
3989 # can be detected and how.
3990 cat >conftest.$ac_ext <<_ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h. */
3996 #include <ac_nonexistent.h>
3998 if { (ac_try="$ac_cpp conftest.$ac_ext"
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4006 grep -v '^ *+' conftest.er1 >conftest.err
4008 cat conftest.err >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } >/dev/null; then
4011 if test -s conftest.err; then
4012 ac_cpp_err=$ac_c_preproc_warn_flag
4013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4020 if test -z "$ac_cpp_err"; then
4021 # Broken: success on invalid input.
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4027 # Passes both tests.
4032 rm -f conftest.err conftest.$ac_ext
4035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4036 rm -f conftest.err conftest.$ac_ext
4037 if $ac_preproc_ok; then
4040 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4041 See \`config.log' for more details." >&5
4042 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4043 See \`config.log' for more details." >&2;}
4044 { (exit 1); exit 1; }; }
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4054 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4055 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4056 if test "${ac_cv_path_GREP+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 # Extract the first word of "grep ggrep" to use in msg output
4060 if test -z "$GREP"; then
4061 set dummy grep ggrep; ac_prog_name=$2
4062 if test "${ac_cv_path_GREP+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 ac_path_GREP_found=false
4066 # Loop through the user's path and test for each of PROGNAME-LIST
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4071 test -z "$as_dir" && as_dir=.
4072 for ac_prog in grep ggrep; do
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4075 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4076 # Check for GNU ac_path_GREP and select it if it is found.
4077 # Check for GNU $ac_path_GREP
4078 case `"$ac_path_GREP" --version 2>&1` in
4080 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4083 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4086 cat "conftest.in" "conftest.in" >"conftest.tmp"
4087 mv "conftest.tmp" "conftest.in"
4088 cp "conftest.in" "conftest.nl"
4089 echo 'GREP' >> "conftest.nl"
4090 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4091 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4092 ac_count=`expr $ac_count + 1`
4093 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4094 # Best one so far, save it but keep looking for a better one
4095 ac_cv_path_GREP="$ac_path_GREP"
4096 ac_path_GREP_max=$ac_count
4098 # 10*(2^10) chars as input seems more than enough
4099 test $ac_count -gt 10 && break
4101 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4105 $ac_path_GREP_found && break 3
4115 GREP="$ac_cv_path_GREP"
4116 if test -z "$GREP"; then
4117 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4118 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4119 { (exit 1); exit 1; }; }
4123 ac_cv_path_GREP=$GREP
4128 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4129 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4130 GREP="$ac_cv_path_GREP"
4133 { echo "$as_me:$LINENO: checking for egrep" >&5
4134 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4135 if test "${ac_cv_path_EGREP+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4139 then ac_cv_path_EGREP="$GREP -E"
4141 # Extract the first word of "egrep" to use in msg output
4142 if test -z "$EGREP"; then
4143 set dummy egrep; ac_prog_name=$2
4144 if test "${ac_cv_path_EGREP+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 ac_path_EGREP_found=false
4148 # Loop through the user's path and test for each of PROGNAME-LIST
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4153 test -z "$as_dir" && as_dir=.
4154 for ac_prog in egrep; do
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4157 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4158 # Check for GNU ac_path_EGREP and select it if it is found.
4159 # Check for GNU $ac_path_EGREP
4160 case `"$ac_path_EGREP" --version 2>&1` in
4162 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4165 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4168 cat "conftest.in" "conftest.in" >"conftest.tmp"
4169 mv "conftest.tmp" "conftest.in"
4170 cp "conftest.in" "conftest.nl"
4171 echo 'EGREP' >> "conftest.nl"
4172 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4174 ac_count=`expr $ac_count + 1`
4175 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4176 # Best one so far, save it but keep looking for a better one
4177 ac_cv_path_EGREP="$ac_path_EGREP"
4178 ac_path_EGREP_max=$ac_count
4180 # 10*(2^10) chars as input seems more than enough
4181 test $ac_count -gt 10 && break
4183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4187 $ac_path_EGREP_found && break 3
4197 EGREP="$ac_cv_path_EGREP"
4198 if test -z "$EGREP"; then
4199 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4200 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4201 { (exit 1); exit 1; }; }
4205 ac_cv_path_EGREP=$EGREP
4211 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4212 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4213 EGREP="$ac_cv_path_EGREP"
4217 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
4218 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
4219 if test "${ac_cv_gnu_library_2+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 cat >conftest.$ac_ext <<_ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4229 #include <features.h>
4230 #ifdef __GNU_LIBRARY__
4231 #if (__GLIBC__ >= 2)
4237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4238 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
4239 ac_cv_gnu_library_2=yes
4241 ac_cv_gnu_library_2=no
4248 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
4249 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
4251 GLIBC2="$ac_cv_gnu_library_2"
4254 if test -n "$ac_tool_prefix"; then
4255 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4256 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4259 if test "${ac_cv_prog_RANLIB+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 if test -n "$RANLIB"; then
4263 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4272 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 RANLIB=$ac_cv_prog_RANLIB
4283 if test -n "$RANLIB"; then
4284 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4285 echo "${ECHO_T}$RANLIB" >&6; }
4287 { echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6; }
4293 if test -z "$ac_cv_prog_RANLIB"; then
4294 ac_ct_RANLIB=$RANLIB
4295 # Extract the first word of "ranlib", so it can be a program name with args.
4296 set dummy ranlib; ac_word=$2
4297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4299 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 if test -n "$ac_ct_RANLIB"; then
4303 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4312 ac_cv_prog_ac_ct_RANLIB="ranlib"
4313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4323 if test -n "$ac_ct_RANLIB"; then
4324 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4325 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4327 { echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6; }
4331 if test "x$ac_ct_RANLIB" = x; then
4334 case $cross_compiling:$ac_tool_warned in
4336 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4337 whose name does not start with the host triplet. If you think this
4338 configuration is useful to you, please write to autoconf@gnu.org." >&5
4339 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4340 whose name does not start with the host triplet. If you think this
4341 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4342 ac_tool_warned=yes ;;
4344 RANLIB=$ac_ct_RANLIB
4347 RANLIB="$ac_cv_prog_RANLIB"
4350 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4351 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4352 if test "${ac_cv_search_strerror+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 ac_func_search_save_LIBS=$LIBS
4356 cat >conftest.$ac_ext <<_ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4363 /* Override any GCC internal prototype to avoid an error.
4364 Use char because int might match the return type of a GCC
4365 builtin and then its argument prototype would still apply. */
4378 for ac_lib in '' cposix; do
4379 if test -z "$ac_lib"; then
4380 ac_res="none required"
4383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4385 rm -f conftest.$ac_objext conftest$ac_exeext
4386 if { (ac_try="$ac_link"
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392 (eval "$ac_link") 2>conftest.er1
4394 grep -v '^ *+' conftest.er1 >conftest.err
4396 cat conftest.err >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } &&
4399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4400 { (case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_try") 2>&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; } &&
4409 { ac_try='test -s conftest$ac_exeext'
4410 { (case "(($ac_try" in
4411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412 *) ac_try_echo=$ac_try;;
4414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4415 (eval "$ac_try") 2>&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; }; then
4419 ac_cv_search_strerror=$ac_res
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4427 rm -f core conftest.err conftest.$ac_objext \
4429 if test "${ac_cv_search_strerror+set}" = set; then
4433 if test "${ac_cv_search_strerror+set}" = set; then
4436 ac_cv_search_strerror=no
4439 LIBS=$ac_func_search_save_LIBS
4441 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4442 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4443 ac_res=$ac_cv_search_strerror
4444 if test "$ac_res" != no; then
4445 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4449 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4450 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4451 if test "${ac_cv_header_stdc+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 cat >conftest.$ac_ext <<_ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4473 rm -f conftest.$ac_objext
4474 if { (ac_try="$ac_compile"
4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477 *) ac_try_echo=$ac_try;;
4479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4480 (eval "$ac_compile") 2>conftest.er1
4482 grep -v '^ *+' conftest.er1 >conftest.err
4484 cat conftest.err >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } &&
4487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4488 { (case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_try") 2>&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; } &&
4497 { ac_try='test -s conftest.$ac_objext'
4498 { (case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4503 (eval "$ac_try") 2>&5
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }; }; then
4507 ac_cv_header_stdc=yes
4509 echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4512 ac_cv_header_stdc=no
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 if test $ac_cv_header_stdc = yes; then
4518 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4519 cat >conftest.$ac_ext <<_ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h. */
4528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4529 $EGREP "memchr" >/dev/null 2>&1; then
4532 ac_cv_header_stdc=no
4538 if test $ac_cv_header_stdc = yes; then
4539 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4540 cat >conftest.$ac_ext <<_ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h. */
4549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4550 $EGREP "free" >/dev/null 2>&1; then
4553 ac_cv_header_stdc=no
4559 if test $ac_cv_header_stdc = yes; then
4560 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4561 if test "$cross_compiling" = yes; then
4564 cat >conftest.$ac_ext <<_ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4572 #if ((' ' & 0x0FF) == 0x020)
4573 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4574 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4576 # define ISLOWER(c) \
4577 (('a' <= (c) && (c) <= 'i') \
4578 || ('j' <= (c) && (c) <= 'r') \
4579 || ('s' <= (c) && (c) <= 'z'))
4580 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4583 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4588 for (i = 0; i < 256; i++)
4589 if (XOR (islower (i), ISLOWER (i))
4590 || toupper (i) != TOUPPER (i))
4595 rm -f conftest$ac_exeext
4596 if { (ac_try="$ac_link"
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602 (eval "$ac_link") 2>&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4606 { (case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_try") 2>&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4617 echo "$as_me: program exited with status $ac_status" >&5
4618 echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4622 ac_cv_header_stdc=no
4624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4630 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4631 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4632 if test $ac_cv_header_stdc = yes; then
4634 cat >>confdefs.h <<\_ACEOF
4635 #define STDC_HEADERS 1
4640 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4641 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4642 if test "${ac_cv_c_const+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 cat >conftest.$ac_ext <<_ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4655 /* FIXME: Include the comments suggested by Paul. */
4657 /* Ultrix mips cc rejects this. */
4658 typedef int charset[2];
4660 /* SunOS 4.1.1 cc rejects this. */
4661 char const *const *ccp;
4663 /* NEC SVR4.0.2 mips cc rejects this. */
4664 struct point {int x, y;};
4665 static struct point const zero = {0,0};
4666 /* AIX XL C 1.02.0.0 rejects this.
4667 It does not let you subtract one const X* pointer from another in
4668 an arm of an if-expression whose if-part is not a constant
4670 const char *g = "string";
4671 ccp = &g + (g ? g-g : 0);
4672 /* HPUX 7.0 cc rejects these. */
4675 ccp = (char const *const *) p;
4676 { /* SCO 3.2v4 cc rejects this. */
4678 char const *s = 0 ? (char *) 0 : (char const *) 0;
4683 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4685 const int *foo = &x[0];
4688 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4689 typedef const int *iptr;
4693 { /* AIX XL C 1.02.0.0 rejects this saying
4694 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4695 struct s { int j; const int *ap[3]; };
4696 struct s *b; b->j = 5;
4698 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4702 return !x[0] && !zero.x;
4709 rm -f conftest.$ac_objext
4710 if { (ac_try="$ac_compile"
4712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713 *) ac_try_echo=$ac_try;;
4715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4716 (eval "$ac_compile") 2>conftest.er1
4718 grep -v '^ *+' conftest.er1 >conftest.err
4720 cat conftest.err >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } &&
4723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4724 { (case "(($ac_try" in
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729 (eval "$ac_try") 2>&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; } &&
4733 { ac_try='test -s conftest.$ac_objext'
4734 { (case "(($ac_try" in
4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4739 (eval "$ac_try") 2>&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4754 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4755 if test $ac_cv_c_const = no; then
4757 cat >>confdefs.h <<\_ACEOF
4764 { echo "$as_me:$LINENO: checking for signed" >&5
4765 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
4766 if test "${bh_cv_c_signed+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 cat >conftest.$ac_ext <<_ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4784 rm -f conftest.$ac_objext
4785 if { (ac_try="$ac_compile"
4787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788 *) ac_try_echo=$ac_try;;
4790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4791 (eval "$ac_compile") 2>conftest.er1
4793 grep -v '^ *+' conftest.er1 >conftest.err
4795 cat conftest.err >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); } &&
4798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4799 { (case "(($ac_try" in
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4804 (eval "$ac_try") 2>&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try='test -s conftest.$ac_objext'
4809 { (case "(($ac_try" in
4810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811 *) ac_try_echo=$ac_try;;
4813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4814 (eval "$ac_try") 2>&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; }; then
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4829 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
4830 if test $bh_cv_c_signed = no; then
4832 cat >>confdefs.h <<\_ACEOF
4838 { echo "$as_me:$LINENO: checking for inline" >&5
4839 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4840 if test "${ac_cv_c_inline+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 for ac_kw in inline __inline__ __inline; do
4845 cat >conftest.$ac_ext <<_ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4853 static $ac_kw foo_t static_foo () {return 0; }
4854 $ac_kw foo_t foo () {return 0; }
4858 rm -f conftest.$ac_objext
4859 if { (ac_try="$ac_compile"
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4865 (eval "$ac_compile") 2>conftest.er1
4867 grep -v '^ *+' conftest.er1 >conftest.err
4869 cat conftest.err >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); } &&
4872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4873 { (case "(($ac_try" in
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878 (eval "$ac_try") 2>&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; } &&
4882 { ac_try='test -s conftest.$ac_objext'
4883 { (case "(($ac_try" in
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888 (eval "$ac_try") 2>&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; }; then
4892 ac_cv_c_inline=$ac_kw
4894 echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901 test "$ac_cv_c_inline" != no && break
4905 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4906 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4909 case $ac_cv_c_inline in
4912 case $ac_cv_c_inline in
4914 *) ac_val=$ac_cv_c_inline;;
4916 cat >>confdefs.h <<_ACEOF
4918 #define inline $ac_val
4924 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4934 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4935 inttypes.h stdint.h unistd.h
4937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 cat >conftest.$ac_ext <<_ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4949 $ac_includes_default
4951 #include <$ac_header>
4953 rm -f conftest.$ac_objext
4954 if { (ac_try="$ac_compile"
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_compile") 2>conftest.er1
4962 grep -v '^ *+' conftest.er1 >conftest.err
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } &&
4967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4968 { (case "(($ac_try" in
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973 (eval "$ac_try") 2>&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; } &&
4977 { ac_try='test -s conftest.$ac_objext'
4978 { (case "(($ac_try" in
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4983 (eval "$ac_try") 2>&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; }; then
4987 eval "$as_ac_Header=yes"
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4992 eval "$as_ac_Header=no"
4995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 ac_res=`eval echo '${'$as_ac_Header'}'`
4998 { echo "$as_me:$LINENO: result: $ac_res" >&5
4999 echo "${ECHO_T}$ac_res" >&6; }
5000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5001 cat >>confdefs.h <<_ACEOF
5002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5010 { echo "$as_me:$LINENO: checking for off_t" >&5
5011 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5012 if test "${ac_cv_type_off_t+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 cat >conftest.$ac_ext <<_ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h. */
5021 $ac_includes_default
5022 typedef off_t ac__type_new_;
5026 if ((ac__type_new_ *) 0)
5028 if (sizeof (ac__type_new_))
5034 rm -f conftest.$ac_objext
5035 if { (ac_try="$ac_compile"
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041 (eval "$ac_compile") 2>conftest.er1
5043 grep -v '^ *+' conftest.er1 >conftest.err
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5049 { (case "(($ac_try" in
5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051 *) ac_try_echo=$ac_try;;
5053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5054 (eval "$ac_try") 2>&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; } &&
5058 { ac_try='test -s conftest.$ac_objext'
5059 { (case "(($ac_try" in
5060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5061 *) ac_try_echo=$ac_try;;
5063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5064 (eval "$ac_try") 2>&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5068 ac_cv_type_off_t=yes
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5079 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5080 if test $ac_cv_type_off_t = yes; then
5084 cat >>confdefs.h <<_ACEOF
5085 #define off_t long int
5090 { echo "$as_me:$LINENO: checking for size_t" >&5
5091 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5092 if test "${ac_cv_type_size_t+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 cat >conftest.$ac_ext <<_ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101 $ac_includes_default
5102 typedef size_t ac__type_new_;
5106 if ((ac__type_new_ *) 0)
5108 if (sizeof (ac__type_new_))
5114 rm -f conftest.$ac_objext
5115 if { (ac_try="$ac_compile"
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5121 (eval "$ac_compile") 2>conftest.er1
5123 grep -v '^ *+' conftest.er1 >conftest.err
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5129 { (case "(($ac_try" in
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5134 (eval "$ac_try") 2>&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }; } &&
5138 { ac_try='test -s conftest.$ac_objext'
5139 { (case "(($ac_try" in
5140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5141 *) ac_try_echo=$ac_try;;
5143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5144 (eval "$ac_try") 2>&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 ac_cv_type_size_t=yes
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5153 ac_cv_type_size_t=no
5156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5158 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5159 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5160 if test $ac_cv_type_size_t = yes; then
5164 cat >>confdefs.h <<_ACEOF
5165 #define size_t unsigned int
5171 { echo "$as_me:$LINENO: checking for long long" >&5
5172 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5173 if test "${ac_cv_type_long_long+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 cat >conftest.$ac_ext <<_ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5182 long long ll = 1LL; int i = 63;
5186 long long llmax = (long long) -1;
5187 return ll << i | ll >> i | llmax / ll | llmax % ll;
5192 rm -f conftest.$ac_objext conftest$ac_exeext
5193 if { (ac_try="$ac_link"
5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199 (eval "$ac_link") 2>conftest.er1
5201 grep -v '^ *+' conftest.er1 >conftest.err
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } &&
5206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5207 { (case "(($ac_try" in
5208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209 *) ac_try_echo=$ac_try;;
5211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5212 (eval "$ac_try") 2>&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; } &&
5216 { ac_try='test -s conftest$ac_exeext'
5217 { (case "(($ac_try" in
5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219 *) ac_try_echo=$ac_try;;
5221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5222 (eval "$ac_try") 2>&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 ac_cv_type_long_long=yes
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5231 ac_cv_type_long_long=no
5234 rm -f core conftest.err conftest.$ac_objext \
5235 conftest$ac_exeext conftest.$ac_ext
5237 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5238 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5239 if test $ac_cv_type_long_long = yes; then
5241 cat >>confdefs.h <<\_ACEOF
5242 #define HAVE_LONG_LONG 1
5248 { echo "$as_me:$LINENO: checking for long double" >&5
5249 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5250 if test "${gt_cv_c_long_double+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5253 if test "$GCC" = yes; then
5254 gt_cv_c_long_double=yes
5256 cat >conftest.$ac_ext <<_ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5263 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5264 long double foo = 0.0;
5265 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5266 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5276 rm -f conftest.$ac_objext
5277 if { (ac_try="$ac_compile"
5279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5280 *) ac_try_echo=$ac_try;;
5282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5283 (eval "$ac_compile") 2>conftest.er1
5285 grep -v '^ *+' conftest.er1 >conftest.err
5287 cat conftest.err >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
5290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5291 { (case "(($ac_try" in
5292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5296 (eval "$ac_try") 2>&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }; } &&
5300 { ac_try='test -s conftest.$ac_objext'
5301 { (case "(($ac_try" in
5302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303 *) ac_try_echo=$ac_try;;
5305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5306 (eval "$ac_try") 2>&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; }; then
5310 gt_cv_c_long_double=yes
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5315 gt_cv_c_long_double=no
5318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5322 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5323 if test $gt_cv_c_long_double = yes; then
5325 cat >>confdefs.h <<\_ACEOF
5326 #define HAVE_LONG_DOUBLE 1
5332 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5333 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5334 if test "${gt_cv_c_wchar_t+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 cat >conftest.$ac_ext <<_ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5344 wchar_t foo = (wchar_t)'\0';
5353 rm -f conftest.$ac_objext
5354 if { (ac_try="$ac_compile"
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_compile") 2>conftest.er1
5362 grep -v '^ *+' conftest.er1 >conftest.err
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5368 { (case "(($ac_try" in
5369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370 *) ac_try_echo=$ac_try;;
5372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5373 (eval "$ac_try") 2>&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; } &&
5377 { ac_try='test -s conftest.$ac_objext'
5378 { (case "(($ac_try" in
5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383 (eval "$ac_try") 2>&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5398 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5399 if test $gt_cv_c_wchar_t = yes; then
5401 cat >>confdefs.h <<\_ACEOF
5402 #define HAVE_WCHAR_T 1
5408 { echo "$as_me:$LINENO: checking for wint_t" >&5
5409 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5410 if test "${gt_cv_c_wint_t+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 cat >conftest.$ac_ext <<_ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5420 wint_t foo = (wchar_t)'\0';
5429 rm -f conftest.$ac_objext
5430 if { (ac_try="$ac_compile"
5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433 *) ac_try_echo=$ac_try;;
5435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5436 (eval "$ac_compile") 2>conftest.er1
5438 grep -v '^ *+' conftest.er1 >conftest.err
5440 cat conftest.err >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } &&
5443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5444 { (case "(($ac_try" in
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_try") 2>&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; } &&
5453 { ac_try='test -s conftest.$ac_objext'
5454 { (case "(($ac_try" in
5455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456 *) ac_try_echo=$ac_try;;
5458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5459 (eval "$ac_try") 2>&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5474 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5475 if test $gt_cv_c_wint_t = yes; then
5477 cat >>confdefs.h <<\_ACEOF
5478 #define HAVE_WINT_T 1
5484 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5485 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5486 if test "${gl_cv_header_inttypes_h+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 cat >conftest.$ac_ext <<_ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5495 #include <sys/types.h>
5496 #include <inttypes.h>
5500 uintmax_t i = (uintmax_t) -1;
5505 rm -f conftest.$ac_objext
5506 if { (ac_try="$ac_compile"
5508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509 *) ac_try_echo=$ac_try;;
5511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512 (eval "$ac_compile") 2>conftest.er1
5514 grep -v '^ *+' conftest.er1 >conftest.err
5516 cat conftest.err >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } &&
5519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5520 { (case "(($ac_try" in
5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522 *) ac_try_echo=$ac_try;;
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525 (eval "$ac_try") 2>&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; } &&
5529 { ac_try='test -s conftest.$ac_objext'
5530 { (case "(($ac_try" in
5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532 *) ac_try_echo=$ac_try;;
5534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535 (eval "$ac_try") 2>&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; }; then
5539 gl_cv_header_inttypes_h=yes
5541 echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5544 gl_cv_header_inttypes_h=no
5547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
5550 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
5551 if test $gl_cv_header_inttypes_h = yes; then
5553 cat >>confdefs.h <<_ACEOF
5554 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5560 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5561 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5562 if test "${gl_cv_header_stdint_h+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 cat >conftest.$ac_ext <<_ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5571 #include <sys/types.h>
5576 uintmax_t i = (uintmax_t) -1;
5581 rm -f conftest.$ac_objext
5582 if { (ac_try="$ac_compile"
5584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585 *) ac_try_echo=$ac_try;;
5587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5588 (eval "$ac_compile") 2>conftest.er1
5590 grep -v '^ *+' conftest.er1 >conftest.err
5592 cat conftest.err >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } &&
5595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5596 { (case "(($ac_try" in
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_try") 2>&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; } &&
5605 { ac_try='test -s conftest.$ac_objext'
5606 { (case "(($ac_try" in
5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608 *) ac_try_echo=$ac_try;;
5610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611 (eval "$ac_try") 2>&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 gl_cv_header_stdint_h=yes
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5620 gl_cv_header_stdint_h=no
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
5626 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
5627 if test $gl_cv_header_stdint_h = yes; then
5629 cat >>confdefs.h <<_ACEOF
5630 #define HAVE_STDINT_H_WITH_UINTMAX 1
5638 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5639 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5640 if test "${gt_cv_c_intmax_t+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 cat >conftest.$ac_ext <<_ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5652 #if HAVE_STDINT_H_WITH_UINTMAX
5655 #if HAVE_INTTYPES_H_WITH_UINTMAX
5656 #include <inttypes.h>
5667 rm -f conftest.$ac_objext
5668 if { (ac_try="$ac_compile"
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_compile") 2>conftest.er1
5676 grep -v '^ *+' conftest.er1 >conftest.err
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } &&
5681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5682 { (case "(($ac_try" in
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687 (eval "$ac_try") 2>&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; } &&
5691 { ac_try='test -s conftest.$ac_objext'
5692 { (case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_try") 2>&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; }; then
5701 gt_cv_c_intmax_t=yes
5703 echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5711 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5712 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5713 if test $gt_cv_c_intmax_t = yes; then
5715 cat >>confdefs.h <<\_ACEOF
5716 #define HAVE_INTMAX_T 1
5723 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5724 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5725 if test "${gt_cv_func_printf_posix+set}" = set; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 if test "$cross_compiling" = yes; then
5731 cat >conftest.$ac_ext <<_ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h. */
5738 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5744 $EGREP "notposix" >/dev/null 2>&1; then
5745 gt_cv_func_printf_posix="guessing no"
5747 gt_cv_func_printf_posix="guessing yes"
5753 cat >conftest.$ac_ext <<_ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5762 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5763 dollar expansion (possibly an autoconf bug). */
5764 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5765 static char buf[100];
5768 sprintf (buf, format, 33, 55);
5769 return (strcmp (buf, "55 33") != 0);
5772 rm -f conftest$ac_exeext
5773 if { (ac_try="$ac_link"
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_link") 2>&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5783 { (case "(($ac_try" in
5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785 *) ac_try_echo=$ac_try;;
5787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788 (eval "$ac_try") 2>&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; }; then
5792 gt_cv_func_printf_posix=yes
5794 echo "$as_me: program exited with status $ac_status" >&5
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5799 gt_cv_func_printf_posix=no
5801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5807 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5808 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5809 case $gt_cv_func_printf_posix in
5812 cat >>confdefs.h <<\_ACEOF
5813 #define HAVE_POSIX_PRINTF 1
5819 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5820 # for constant arguments. Useless!
5821 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5822 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5823 if test "${ac_cv_working_alloca_h+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 cat >conftest.$ac_ext <<_ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5836 char *p = (char *) alloca (2 * sizeof (int));
5842 rm -f conftest.$ac_objext conftest$ac_exeext
5843 if { (ac_try="$ac_link"
5845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846 *) ac_try_echo=$ac_try;;
5848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849 (eval "$ac_link") 2>conftest.er1
5851 grep -v '^ *+' conftest.er1 >conftest.err
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } &&
5856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5857 { (case "(($ac_try" in
5858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859 *) ac_try_echo=$ac_try;;
5861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5862 (eval "$ac_try") 2>&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; } &&
5866 { ac_try='test -s conftest$ac_exeext'
5867 { (case "(($ac_try" in
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_try") 2>&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; }; then
5876 ac_cv_working_alloca_h=yes
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5881 ac_cv_working_alloca_h=no
5884 rm -f core conftest.err conftest.$ac_objext \
5885 conftest$ac_exeext conftest.$ac_ext
5887 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5888 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5889 if test $ac_cv_working_alloca_h = yes; then
5891 cat >>confdefs.h <<\_ACEOF
5892 #define HAVE_ALLOCA_H 1
5897 { echo "$as_me:$LINENO: checking for alloca" >&5
5898 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5899 if test "${ac_cv_func_alloca_works+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 cat >conftest.$ac_ext <<_ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5909 # define alloca __builtin_alloca
5912 # include <malloc.h>
5913 # define alloca _alloca
5916 # include <alloca.h>
5921 # ifndef alloca /* predefined by HP cc +Olibcalls */
5932 char *p = (char *) alloca (1);
5938 rm -f conftest.$ac_objext conftest$ac_exeext
5939 if { (ac_try="$ac_link"
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945 (eval "$ac_link") 2>conftest.er1
5947 grep -v '^ *+' conftest.er1 >conftest.err
5949 cat conftest.err >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } &&
5952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5953 { (case "(($ac_try" in
5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 *) ac_try_echo=$ac_try;;
5957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958 (eval "$ac_try") 2>&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; } &&
5962 { ac_try='test -s conftest$ac_exeext'
5963 { (case "(($ac_try" in
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_try") 2>&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; }; then
5972 ac_cv_func_alloca_works=yes
5974 echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5977 ac_cv_func_alloca_works=no
5980 rm -f core conftest.err conftest.$ac_objext \
5981 conftest$ac_exeext conftest.$ac_ext
5983 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5984 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5986 if test $ac_cv_func_alloca_works = yes; then
5988 cat >>confdefs.h <<\_ACEOF
5989 #define HAVE_ALLOCA 1
5993 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5994 # that cause trouble. Some versions do not even contain alloca or
5995 # contain a buggy version. If you still want to use their alloca,
5996 # use ar to extract alloca.o from them instead of compiling alloca.c.
5998 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6000 cat >>confdefs.h <<\_ACEOF
6005 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6006 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6007 if test "${ac_cv_os_cray+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
6010 cat >conftest.$ac_ext <<_ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6016 #if defined CRAY && ! defined CRAY2
6023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6024 $EGREP "webecray" >/dev/null 2>&1; then
6032 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6033 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6034 if test $ac_cv_os_cray = yes; then
6035 for ac_func in _getb67 GETB67 getb67; do
6036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6040 echo $ECHO_N "(cached) $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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6050 #define $ac_func innocuous_$ac_func
6052 /* System header to define __stub macros and hopefully few prototypes,
6053 which can conflict with char $ac_func (); below.
6054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6055 <limits.h> exists even on freestanding compilers. */
6058 # include <limits.h>
6060 # include <assert.h>
6065 /* Override any GCC internal prototype to avoid an error.
6066 Use char because int might match the return type of a GCC
6067 builtin and then its argument prototype would still apply. */
6072 /* The GNU C library defines this for functions which it implements
6073 to always fail with ENOSYS. Some functions are actually named
6074 something starting with __ and the normal name is an alias. */
6075 #if defined __stub_$ac_func || defined __stub___$ac_func
6087 rm -f conftest.$ac_objext conftest$ac_exeext
6088 if { (ac_try="$ac_link"
6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094 (eval "$ac_link") 2>conftest.er1
6096 grep -v '^ *+' conftest.er1 >conftest.err
6098 cat conftest.err >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } &&
6101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6102 { (case "(($ac_try" in
6103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104 *) ac_try_echo=$ac_try;;
6106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107 (eval "$ac_try") 2>&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; } &&
6111 { ac_try='test -s conftest$ac_exeext'
6112 { (case "(($ac_try" in
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_try") 2>&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; }; then
6121 eval "$as_ac_var=yes"
6123 echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6126 eval "$as_ac_var=no"
6129 rm -f core conftest.err conftest.$ac_objext \
6130 conftest$ac_exeext conftest.$ac_ext
6132 ac_res=`eval echo '${'$as_ac_var'}'`
6133 { echo "$as_me:$LINENO: result: $ac_res" >&5
6134 echo "${ECHO_T}$ac_res" >&6; }
6135 if test `eval echo '${'$as_ac_var'}'` = yes; then
6137 cat >>confdefs.h <<_ACEOF
6138 #define CRAY_STACKSEG_END $ac_func
6147 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6148 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6149 if test "${ac_cv_c_stack_direction+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 if test "$cross_compiling" = yes; then
6153 ac_cv_c_stack_direction=0
6155 cat >conftest.$ac_ext <<_ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6161 $ac_includes_default
6163 find_stack_direction ()
6165 static char *addr = 0;
6170 return find_stack_direction ();
6173 return (&dummy > addr) ? 1 : -1;
6179 return find_stack_direction () < 0;
6182 rm -f conftest$ac_exeext
6183 if { (ac_try="$ac_link"
6185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6186 *) ac_try_echo=$ac_try;;
6188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6189 (eval "$ac_link") 2>&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6193 { (case "(($ac_try" in
6194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195 *) ac_try_echo=$ac_try;;
6197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198 (eval "$ac_try") 2>&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6202 ac_cv_c_stack_direction=1
6204 echo "$as_me: program exited with status $ac_status" >&5
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6209 ac_cv_c_stack_direction=-1
6211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6216 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6217 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6219 cat >>confdefs.h <<_ACEOF
6220 #define STACK_DIRECTION $ac_cv_c_stack_direction
6228 for ac_header in stdlib.h unistd.h
6230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 ac_res=`eval echo '${'$as_ac_Header'}'`
6238 { echo "$as_me:$LINENO: result: $ac_res" >&5
6239 echo "${ECHO_T}$ac_res" >&6; }
6241 # Is the header compilable?
6242 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6244 cat >conftest.$ac_ext <<_ACEOF
6247 cat confdefs.h >>conftest.$ac_ext
6248 cat >>conftest.$ac_ext <<_ACEOF
6249 /* end confdefs.h. */
6250 $ac_includes_default
6251 #include <$ac_header>
6253 rm -f conftest.$ac_objext
6254 if { (ac_try="$ac_compile"
6256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257 *) ac_try_echo=$ac_try;;
6259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6260 (eval "$ac_compile") 2>conftest.er1
6262 grep -v '^ *+' conftest.er1 >conftest.err
6264 cat conftest.err >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } &&
6267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6268 { (case "(($ac_try" in
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_try") 2>&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; } &&
6277 { ac_try='test -s conftest.$ac_objext'
6278 { (case "(($ac_try" in
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283 (eval "$ac_try") 2>&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; }; then
6287 ac_header_compiler=yes
6289 echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.$ac_ext >&5
6292 ac_header_compiler=no
6295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6297 echo "${ECHO_T}$ac_header_compiler" >&6; }
6299 # Is the header present?
6300 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6302 cat >conftest.$ac_ext <<_ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6308 #include <$ac_header>
6310 if { (ac_try="$ac_cpp conftest.$ac_ext"
6312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313 *) ac_try_echo=$ac_try;;
6315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6318 grep -v '^ *+' conftest.er1 >conftest.err
6320 cat conftest.err >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } >/dev/null; then
6323 if test -s conftest.err; then
6324 ac_cpp_err=$ac_c_preproc_warn_flag
6325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6332 if test -z "$ac_cpp_err"; then
6333 ac_header_preproc=yes
6335 echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6338 ac_header_preproc=no
6341 rm -f conftest.err conftest.$ac_ext
6342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6343 echo "${ECHO_T}$ac_header_preproc" >&6; }
6345 # So? What about this header?
6346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6352 ac_header_preproc=yes
6355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6362 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 eval "$as_ac_Header=\$ac_header_preproc"
6377 ac_res=`eval echo '${'$as_ac_Header'}'`
6378 { echo "$as_me:$LINENO: result: $ac_res" >&5
6379 echo "${ECHO_T}$ac_res" >&6; }
6382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6383 cat >>confdefs.h <<_ACEOF
6384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6392 for ac_func in getpagesize
6394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6395 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 cat >conftest.$ac_ext <<_ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6408 #define $ac_func innocuous_$ac_func
6410 /* System header to define __stub macros and hopefully few prototypes,
6411 which can conflict with char $ac_func (); below.
6412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6413 <limits.h> exists even on freestanding compilers. */
6416 # include <limits.h>
6418 # include <assert.h>
6423 /* Override any GCC internal prototype to avoid an error.
6424 Use char because int might match the return type of a GCC
6425 builtin and then its argument prototype would still apply. */
6430 /* The GNU C library defines this for functions which it implements
6431 to always fail with ENOSYS. Some functions are actually named
6432 something starting with __ and the normal name is an alias. */
6433 #if defined __stub_$ac_func || defined __stub___$ac_func
6445 rm -f conftest.$ac_objext conftest$ac_exeext
6446 if { (ac_try="$ac_link"
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_link") 2>conftest.er1
6454 grep -v '^ *+' conftest.er1 >conftest.err
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } &&
6459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6460 { (case "(($ac_try" in
6461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462 *) ac_try_echo=$ac_try;;
6464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465 (eval "$ac_try") 2>&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; } &&
6469 { ac_try='test -s conftest$ac_exeext'
6470 { (case "(($ac_try" in
6471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6472 *) ac_try_echo=$ac_try;;
6474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6475 (eval "$ac_try") 2>&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; }; then
6479 eval "$as_ac_var=yes"
6481 echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6484 eval "$as_ac_var=no"
6487 rm -f core conftest.err conftest.$ac_objext \
6488 conftest$ac_exeext conftest.$ac_ext
6490 ac_res=`eval echo '${'$as_ac_var'}'`
6491 { echo "$as_me:$LINENO: result: $ac_res" >&5
6492 echo "${ECHO_T}$ac_res" >&6; }
6493 if test `eval echo '${'$as_ac_var'}'` = yes; then
6494 cat >>confdefs.h <<_ACEOF
6495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6501 { echo "$as_me:$LINENO: checking for working mmap" >&5
6502 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6503 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 if test "$cross_compiling" = yes; then
6507 ac_cv_func_mmap_fixed_mapped=no
6509 cat >conftest.$ac_ext <<_ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6515 $ac_includes_default
6516 /* malloc might have been renamed as rpl_malloc. */
6519 /* Thanks to Mike Haertel and Jim Avera for this test.
6520 Here is a matrix of mmap possibilities:
6521 mmap private not fixed
6522 mmap private fixed at somewhere currently unmapped
6523 mmap private fixed at somewhere already mapped
6524 mmap shared not fixed
6525 mmap shared fixed at somewhere currently unmapped
6526 mmap shared fixed at somewhere already mapped
6527 For private mappings, we should verify that changes cannot be read()
6528 back from the file, nor mmap's back from the file at a different
6529 address. (There have been systems where private was not correctly
6530 implemented like the infamous i386 svr4.0, and systems where the
6531 VM page cache was not coherent with the file system buffer cache
6532 like early versions of FreeBSD and possibly contemporary NetBSD.)
6533 For shared mappings, we should conversely verify that changes get
6534 propagated back to all the places they're supposed to be.
6536 Grep wants private fixed already mapped.
6537 The main things grep needs to know about mmap are:
6538 * does it exist and is it safe to write into the mmap'd area
6539 * how to use it (BSD variants) */
6542 #include <sys/mman.h>
6544 #if !STDC_HEADERS && !HAVE_STDLIB_H
6548 /* This mess was copied from the GNU getpagesize.h. */
6549 #if !HAVE_GETPAGESIZE
6550 /* Assume that all systems that can run configure have sys/param.h. */
6551 # if !HAVE_SYS_PARAM_H
6552 # define HAVE_SYS_PARAM_H 1
6555 # ifdef _SC_PAGESIZE
6556 # define getpagesize() sysconf(_SC_PAGESIZE)
6557 # else /* no _SC_PAGESIZE */
6558 # if HAVE_SYS_PARAM_H
6559 # include <sys/param.h>
6560 # ifdef EXEC_PAGESIZE
6561 # define getpagesize() EXEC_PAGESIZE
6562 # else /* no EXEC_PAGESIZE */
6564 # define getpagesize() NBPG * CLSIZE
6567 # endif /* no CLSIZE */
6568 # else /* no NBPG */
6570 # define getpagesize() NBPC
6571 # else /* no NBPC */
6573 # define getpagesize() PAGESIZE
6574 # endif /* PAGESIZE */
6575 # endif /* no NBPC */
6576 # endif /* no NBPG */
6577 # endif /* no EXEC_PAGESIZE */
6578 # else /* no HAVE_SYS_PARAM_H */
6579 # define getpagesize() 8192 /* punt totally */
6580 # endif /* no HAVE_SYS_PARAM_H */
6581 # endif /* no _SC_PAGESIZE */
6583 #endif /* no HAVE_GETPAGESIZE */
6588 char *data, *data2, *data3;
6592 pagesize = getpagesize ();
6594 /* First, make a file with some known garbage in it. */
6595 data = (char *) malloc (pagesize);
6598 for (i = 0; i < pagesize; ++i)
6599 *(data + i) = rand ();
6601 fd = creat ("conftest.mmap", 0600);
6604 if (write (fd, data, pagesize) != pagesize)
6608 /* Next, try to mmap the file at a fixed address which already has
6609 something else allocated at it. If we can, also make sure that
6610 we see the same garbage. */
6611 fd = open ("conftest.mmap", O_RDWR);
6614 data2 = (char *) malloc (2 * pagesize);
6617 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6618 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6619 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6621 for (i = 0; i < pagesize; ++i)
6622 if (*(data + i) != *(data2 + i))
6625 /* Finally, make sure that changes to the mapped area do not
6626 percolate back to the file as seen by read(). (This is a bug on
6627 some variants of i386 svr4.0.) */
6628 for (i = 0; i < pagesize; ++i)
6629 *(data2 + i) = *(data2 + i) + 1;
6630 data3 = (char *) malloc (pagesize);
6633 if (read (fd, data3, pagesize) != pagesize)
6635 for (i = 0; i < pagesize; ++i)
6636 if (*(data + i) != *(data3 + i))
6642 rm -f conftest$ac_exeext
6643 if { (ac_try="$ac_link"
6645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646 *) ac_try_echo=$ac_try;;
6648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6649 (eval "$ac_link") 2>&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6653 { (case "(($ac_try" in
6654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655 *) ac_try_echo=$ac_try;;
6657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658 (eval "$ac_try") 2>&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6662 ac_cv_func_mmap_fixed_mapped=yes
6664 echo "$as_me: program exited with status $ac_status" >&5
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6669 ac_cv_func_mmap_fixed_mapped=no
6671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6676 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6677 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6678 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6680 cat >>confdefs.h <<\_ACEOF
6688 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6689 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6690 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 cat >conftest.$ac_ext <<_ACEOF
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h. */
6700 #include <features.h>
6701 #ifdef __GNU_LIBRARY__
6702 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6709 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6710 ac_cv_gnu_library_2_1=yes
6712 ac_cv_gnu_library_2_1=no
6719 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6720 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6722 GLIBC21="$ac_cv_gnu_library_2_1"
6727 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6728 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6729 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 if test "$cross_compiling" = yes; then
6735 # Guess based on the CPU.
6737 alpha* | i3456786 | m68k | s390*)
6738 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6740 gt_cv_int_divbyzero_sigfpe="guessing no";;
6744 cat >conftest.$ac_ext <<_ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6756 sigfpe_handler (int sig)
6758 sigfpe_handler (sig) int sig;
6761 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6762 exit (sig != SIGFPE);
6772 signal (SIGFPE, sigfpe_handler);
6773 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6774 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6775 signal (SIGTRAP, sigfpe_handler);
6777 /* Linux/SPARC yields signal SIGILL. */
6778 #if defined (__sparc__) && defined (__linux__)
6779 signal (SIGILL, sigfpe_handler);
6788 rm -f conftest$ac_exeext
6789 if { (ac_try="$ac_link"
6791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6792 *) ac_try_echo=$ac_try;;
6794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6795 (eval "$ac_link") 2>&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6799 { (case "(($ac_try" in
6800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6801 *) ac_try_echo=$ac_try;;
6803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6804 (eval "$ac_try") 2>&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; }; then
6808 gt_cv_int_divbyzero_sigfpe=yes
6810 echo "$as_me: program exited with status $ac_status" >&5
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6815 gt_cv_int_divbyzero_sigfpe=no
6817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6823 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6824 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6825 case "$gt_cv_int_divbyzero_sigfpe" in
6830 cat >>confdefs.h <<_ACEOF
6831 #define INTDIV0_RAISES_SIGFPE $value
6836 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6837 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6838 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 cat >conftest.$ac_ext <<_ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6847 unsigned long long ull = 1ULL; int i = 63;
6851 unsigned long long ullmax = (unsigned long long) -1;
6852 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6857 rm -f conftest.$ac_objext conftest$ac_exeext
6858 if { (ac_try="$ac_link"
6860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861 *) ac_try_echo=$ac_try;;
6863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6864 (eval "$ac_link") 2>conftest.er1
6866 grep -v '^ *+' conftest.er1 >conftest.err
6868 cat conftest.err >&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } &&
6871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6872 { (case "(($ac_try" in
6873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874 *) ac_try_echo=$ac_try;;
6876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6877 (eval "$ac_try") 2>&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; } &&
6881 { ac_try='test -s conftest$ac_exeext'
6882 { (case "(($ac_try" in
6883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6884 *) ac_try_echo=$ac_try;;
6886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6887 (eval "$ac_try") 2>&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6891 ac_cv_type_unsigned_long_long=yes
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6896 ac_cv_type_unsigned_long_long=no
6899 rm -f core conftest.err conftest.$ac_objext \
6900 conftest$ac_exeext conftest.$ac_ext
6902 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6903 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6904 if test $ac_cv_type_unsigned_long_long = yes; then
6906 cat >>confdefs.h <<\_ACEOF
6907 #define HAVE_UNSIGNED_LONG_LONG 1
6915 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
6917 test $ac_cv_type_unsigned_long_long = yes \
6918 && ac_type='unsigned long long' \
6919 || ac_type='unsigned long'
6921 cat >>confdefs.h <<_ACEOF
6922 #define uintmax_t $ac_type
6927 cat >>confdefs.h <<\_ACEOF
6928 #define HAVE_UINTMAX_T 1
6934 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6935 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6936 if test "${gt_cv_header_inttypes_h+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 cat >conftest.$ac_ext <<_ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h. */
6946 #include <sys/types.h>
6947 #include <inttypes.h>
6956 rm -f conftest.$ac_objext
6957 if { (ac_try="$ac_compile"
6959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6960 *) ac_try_echo=$ac_try;;
6962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6963 (eval "$ac_compile") 2>conftest.er1
6965 grep -v '^ *+' conftest.er1 >conftest.err
6967 cat conftest.err >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } &&
6970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6971 { (case "(($ac_try" in
6972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973 *) ac_try_echo=$ac_try;;
6975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976 (eval "$ac_try") 2>&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; } &&
6980 { ac_try='test -s conftest.$ac_objext'
6981 { (case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986 (eval "$ac_try") 2>&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; }; then
6990 gt_cv_header_inttypes_h=yes
6992 echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6995 gt_cv_header_inttypes_h=no
6998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7001 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7002 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7003 if test $gt_cv_header_inttypes_h = yes; then
7005 cat >>confdefs.h <<_ACEOF
7006 #define HAVE_INTTYPES_H 1
7013 if test $gt_cv_header_inttypes_h = yes; then
7014 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7015 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7016 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 cat >conftest.$ac_ext <<_ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 #include <inttypes.h>
7039 rm -f conftest.$ac_objext
7040 if { (ac_try="$ac_compile"
7042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7043 *) ac_try_echo=$ac_try;;
7045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7046 (eval "$ac_compile") 2>conftest.er1
7048 grep -v '^ *+' conftest.er1 >conftest.err
7050 cat conftest.err >&5
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); } &&
7053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7054 { (case "(($ac_try" in
7055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056 *) ac_try_echo=$ac_try;;
7058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7059 (eval "$ac_try") 2>&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; } &&
7063 { ac_try='test -s conftest.$ac_objext'
7064 { (case "(($ac_try" in
7065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066 *) ac_try_echo=$ac_try;;
7068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069 (eval "$ac_try") 2>&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; }; then
7073 gt_cv_inttypes_pri_broken=no
7075 echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7078 gt_cv_inttypes_pri_broken=yes
7081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7084 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7085 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7087 if test "$gt_cv_inttypes_pri_broken" = yes; then
7089 cat >>confdefs.h <<_ACEOF
7090 #define PRI_MACROS_BROKEN 1
7097 for ac_header in stdint.h
7099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 ac_res=`eval echo '${'$as_ac_Header'}'`
7107 { echo "$as_me:$LINENO: result: $ac_res" >&5
7108 echo "${ECHO_T}$ac_res" >&6; }
7110 # Is the header compilable?
7111 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7113 cat >conftest.$ac_ext <<_ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7119 $ac_includes_default
7120 #include <$ac_header>
7122 rm -f conftest.$ac_objext
7123 if { (ac_try="$ac_compile"
7125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7126 *) ac_try_echo=$ac_try;;
7128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7129 (eval "$ac_compile") 2>conftest.er1
7131 grep -v '^ *+' conftest.er1 >conftest.err
7133 cat conftest.err >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } &&
7136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7137 { (case "(($ac_try" in
7138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7139 *) ac_try_echo=$ac_try;;
7141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7142 (eval "$ac_try") 2>&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; } &&
7146 { ac_try='test -s conftest.$ac_objext'
7147 { (case "(($ac_try" in
7148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7149 *) ac_try_echo=$ac_try;;
7151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7152 (eval "$ac_try") 2>&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }; }; then
7156 ac_header_compiler=yes
7158 echo "$as_me: failed program was:" >&5
7159 sed 's/^/| /' conftest.$ac_ext >&5
7161 ac_header_compiler=no
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7166 echo "${ECHO_T}$ac_header_compiler" >&6; }
7168 # Is the header present?
7169 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7171 cat >conftest.$ac_ext <<_ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 #include <$ac_header>
7179 if { (ac_try="$ac_cpp conftest.$ac_ext"
7181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182 *) ac_try_echo=$ac_try;;
7184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7187 grep -v '^ *+' conftest.er1 >conftest.err
7189 cat conftest.err >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } >/dev/null; then
7192 if test -s conftest.err; then
7193 ac_cpp_err=$ac_c_preproc_warn_flag
7194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7201 if test -z "$ac_cpp_err"; then
7202 ac_header_preproc=yes
7204 echo "$as_me: failed program was:" >&5
7205 sed 's/^/| /' conftest.$ac_ext >&5
7207 ac_header_preproc=no
7210 rm -f conftest.err conftest.$ac_ext
7211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7212 echo "${ECHO_T}$ac_header_preproc" >&6; }
7214 # So? What about this header?
7215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7221 ac_header_preproc=yes
7224 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7226 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7227 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7228 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7230 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7231 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7234 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 eval "$as_ac_Header=\$ac_header_preproc"
7246 ac_res=`eval echo '${'$as_ac_Header'}'`
7247 { echo "$as_me:$LINENO: result: $ac_res" >&5
7248 echo "${ECHO_T}$ac_res" >&6; }
7251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7252 cat >>confdefs.h <<_ACEOF
7253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7260 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7261 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7263 cat >conftest.$ac_ext <<_ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h. */
7279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7280 $EGREP "Found it" >/dev/null 2>&1; then
7285 if test -z "$result"; then
7286 if test "$cross_compiling" = yes; then
7287 # Depending upon the size, compute the lo and hi bounds.
7288 cat >conftest.$ac_ext <<_ACEOF
7291 cat confdefs.h >>conftest.$ac_ext
7292 cat >>conftest.$ac_ext <<_ACEOF
7293 /* end confdefs.h. */
7298 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7305 rm -f conftest.$ac_objext
7306 if { (ac_try="$ac_compile"
7308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7309 *) ac_try_echo=$ac_try;;
7311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7312 (eval "$ac_compile") 2>conftest.er1
7314 grep -v '^ *+' conftest.er1 >conftest.err
7316 cat conftest.err >&5
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); } &&
7319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7320 { (case "(($ac_try" in
7321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7322 *) ac_try_echo=$ac_try;;
7324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7325 (eval "$ac_try") 2>&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; } &&
7329 { ac_try='test -s conftest.$ac_objext'
7330 { (case "(($ac_try" in
7331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7332 *) ac_try_echo=$ac_try;;
7334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7335 (eval "$ac_try") 2>&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); }; }; then
7341 cat >conftest.$ac_ext <<_ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7351 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7358 rm -f conftest.$ac_objext
7359 if { (ac_try="$ac_compile"
7361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362 *) ac_try_echo=$ac_try;;
7364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7365 (eval "$ac_compile") 2>conftest.er1
7367 grep -v '^ *+' conftest.er1 >conftest.err
7369 cat conftest.err >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); } &&
7372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7373 { (case "(($ac_try" in
7374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7375 *) ac_try_echo=$ac_try;;
7377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7378 (eval "$ac_try") 2>&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; } &&
7382 { ac_try='test -s conftest.$ac_objext'
7383 { (case "(($ac_try" in
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_try") 2>&5
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; }; then
7392 ac_hi=$ac_mid; break
7394 echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7397 ac_lo=`expr $ac_mid + 1`
7398 if test $ac_lo -le $ac_mid; then
7402 ac_mid=`expr 2 '*' $ac_mid + 1`
7405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408 echo "$as_me: failed program was:" >&5
7409 sed 's/^/| /' conftest.$ac_ext >&5
7411 cat >conftest.$ac_ext <<_ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h. */
7421 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7428 rm -f conftest.$ac_objext
7429 if { (ac_try="$ac_compile"
7431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432 *) ac_try_echo=$ac_try;;
7434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7435 (eval "$ac_compile") 2>conftest.er1
7437 grep -v '^ *+' conftest.er1 >conftest.err
7439 cat conftest.err >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } &&
7442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7443 { (case "(($ac_try" in
7444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7445 *) ac_try_echo=$ac_try;;
7447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7448 (eval "$ac_try") 2>&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); }; } &&
7452 { ac_try='test -s conftest.$ac_objext'
7453 { (case "(($ac_try" in
7454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7455 *) ac_try_echo=$ac_try;;
7457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7458 (eval "$ac_try") 2>&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; }; then
7464 cat >conftest.$ac_ext <<_ACEOF
7467 cat confdefs.h >>conftest.$ac_ext
7468 cat >>conftest.$ac_ext <<_ACEOF
7469 /* end confdefs.h. */
7474 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7481 rm -f conftest.$ac_objext
7482 if { (ac_try="$ac_compile"
7484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7485 *) ac_try_echo=$ac_try;;
7487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7488 (eval "$ac_compile") 2>conftest.er1
7490 grep -v '^ *+' conftest.er1 >conftest.err
7492 cat conftest.err >&5
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); } &&
7495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7496 { (case "(($ac_try" in
7497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7498 *) ac_try_echo=$ac_try;;
7500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7501 (eval "$ac_try") 2>&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; } &&
7505 { ac_try='test -s conftest.$ac_objext'
7506 { (case "(($ac_try" in
7507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7508 *) ac_try_echo=$ac_try;;
7510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7511 (eval "$ac_try") 2>&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; }; then
7515 ac_lo=$ac_mid; break
7517 echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7520 ac_hi=`expr '(' $ac_mid ')' - 1`
7521 if test $ac_mid -le $ac_hi; then
7525 ac_mid=`expr 2 '*' $ac_mid`
7528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7541 # Binary search between lo and hi bounds.
7542 while test "x$ac_lo" != "x$ac_hi"; do
7543 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7544 cat >conftest.$ac_ext <<_ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h. */
7554 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7561 rm -f conftest.$ac_objext
7562 if { (ac_try="$ac_compile"
7564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565 *) ac_try_echo=$ac_try;;
7567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7568 (eval "$ac_compile") 2>conftest.er1
7570 grep -v '^ *+' conftest.er1 >conftest.err
7572 cat conftest.err >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } &&
7575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7576 { (case "(($ac_try" in
7577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7581 (eval "$ac_try") 2>&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); }; } &&
7585 { ac_try='test -s conftest.$ac_objext'
7586 { (case "(($ac_try" in
7587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588 *) ac_try_echo=$ac_try;;
7590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7591 (eval "$ac_try") 2>&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); }; }; then
7597 echo "$as_me: failed program was:" >&5
7598 sed 's/^/| /' conftest.$ac_ext >&5
7600 ac_lo=`expr '(' $ac_mid ')' + 1`
7603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610 cat >conftest.$ac_ext <<_ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7617 static long int longval () { return ~(size_t)0 / 10; }
7618 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7625 FILE *f = fopen ("conftest.val", "w");
7628 if ((~(size_t)0 / 10) < 0)
7630 long int i = longval ();
7631 if (i != (~(size_t)0 / 10))
7633 fprintf (f, "%ld\n", i);
7637 unsigned long int i = ulongval ();
7638 if (i != (~(size_t)0 / 10))
7640 fprintf (f, "%lu\n", i);
7642 return ferror (f) || fclose (f) != 0;
7648 rm -f conftest$ac_exeext
7649 if { (ac_try="$ac_link"
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655 (eval "$ac_link") 2>&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7659 { (case "(($ac_try" in
7660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_try") 2>&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
7668 res_hi=`cat conftest.val`
7670 echo "$as_me: program exited with status $ac_status" >&5
7671 echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7680 if test "$cross_compiling" = yes; then
7681 # Depending upon the size, compute the lo and hi bounds.
7682 cat >conftest.$ac_ext <<_ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7692 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7699 rm -f conftest.$ac_objext
7700 if { (ac_try="$ac_compile"
7702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7703 *) ac_try_echo=$ac_try;;
7705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7706 (eval "$ac_compile") 2>conftest.er1
7708 grep -v '^ *+' conftest.er1 >conftest.err
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } &&
7713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7714 { (case "(($ac_try" in
7715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716 *) ac_try_echo=$ac_try;;
7718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7719 (eval "$ac_try") 2>&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try='test -s conftest.$ac_objext'
7724 { (case "(($ac_try" in
7725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7726 *) ac_try_echo=$ac_try;;
7728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7729 (eval "$ac_try") 2>&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; }; then
7735 cat >conftest.$ac_ext <<_ACEOF
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h. */
7745 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7752 rm -f conftest.$ac_objext
7753 if { (ac_try="$ac_compile"
7755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7756 *) ac_try_echo=$ac_try;;
7758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7759 (eval "$ac_compile") 2>conftest.er1
7761 grep -v '^ *+' conftest.er1 >conftest.err
7763 cat conftest.err >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } &&
7766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7767 { (case "(($ac_try" in
7768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7769 *) ac_try_echo=$ac_try;;
7771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7772 (eval "$ac_try") 2>&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); }; } &&
7776 { ac_try='test -s conftest.$ac_objext'
7777 { (case "(($ac_try" in
7778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7779 *) ac_try_echo=$ac_try;;
7781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7782 (eval "$ac_try") 2>&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; }; then
7786 ac_hi=$ac_mid; break
7788 echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7791 ac_lo=`expr $ac_mid + 1`
7792 if test $ac_lo -le $ac_mid; then
7796 ac_mid=`expr 2 '*' $ac_mid + 1`
7799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7802 echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7805 cat >conftest.$ac_ext <<_ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7815 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7822 rm -f conftest.$ac_objext
7823 if { (ac_try="$ac_compile"
7825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826 *) ac_try_echo=$ac_try;;
7828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7829 (eval "$ac_compile") 2>conftest.er1
7831 grep -v '^ *+' conftest.er1 >conftest.err
7833 cat conftest.err >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7837 { (case "(($ac_try" in
7838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842 (eval "$ac_try") 2>&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; } &&
7846 { ac_try='test -s conftest.$ac_objext'
7847 { (case "(($ac_try" in
7848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7849 *) ac_try_echo=$ac_try;;
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852 (eval "$ac_try") 2>&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); }; }; then
7858 cat >conftest.$ac_ext <<_ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h. */
7868 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7875 rm -f conftest.$ac_objext
7876 if { (ac_try="$ac_compile"
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_compile") 2>conftest.er1
7884 grep -v '^ *+' conftest.er1 >conftest.err
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } &&
7889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7890 { (case "(($ac_try" in
7891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7892 *) ac_try_echo=$ac_try;;
7894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7895 (eval "$ac_try") 2>&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; } &&
7899 { ac_try='test -s conftest.$ac_objext'
7900 { (case "(($ac_try" in
7901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7902 *) ac_try_echo=$ac_try;;
7904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7905 (eval "$ac_try") 2>&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); }; }; then
7909 ac_lo=$ac_mid; break
7911 echo "$as_me: failed program was:" >&5
7912 sed 's/^/| /' conftest.$ac_ext >&5
7914 ac_hi=`expr '(' $ac_mid ')' - 1`
7915 if test $ac_mid -le $ac_hi; then
7919 ac_mid=`expr 2 '*' $ac_mid`
7922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935 # Binary search between lo and hi bounds.
7936 while test "x$ac_lo" != "x$ac_hi"; do
7937 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7938 cat >conftest.$ac_ext <<_ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7948 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7955 rm -f conftest.$ac_objext
7956 if { (ac_try="$ac_compile"
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_compile") 2>conftest.er1
7964 grep -v '^ *+' conftest.er1 >conftest.err
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } &&
7969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7970 { (case "(($ac_try" in
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_try") 2>&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; } &&
7979 { ac_try='test -s conftest.$ac_objext'
7980 { (case "(($ac_try" in
7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_try") 2>&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7994 ac_lo=`expr '(' $ac_mid ')' + 1`
7997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004 cat >conftest.$ac_ext <<_ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8011 static long int longval () { return ~(size_t)0 % 10; }
8012 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
8019 FILE *f = fopen ("conftest.val", "w");
8022 if ((~(size_t)0 % 10) < 0)
8024 long int i = longval ();
8025 if (i != (~(size_t)0 % 10))
8027 fprintf (f, "%ld\n", i);
8031 unsigned long int i = ulongval ();
8032 if (i != (~(size_t)0 % 10))
8034 fprintf (f, "%lu\n", i);
8036 return ferror (f) || fclose (f) != 0;
8042 rm -f conftest$ac_exeext
8043 if { (ac_try="$ac_link"
8045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046 *) ac_try_echo=$ac_try;;
8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049 (eval "$ac_link") 2>&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8053 { (case "(($ac_try" in
8054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055 *) ac_try_echo=$ac_try;;
8057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058 (eval "$ac_try") 2>&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 res_lo=`cat conftest.val`
8064 echo "$as_me: program exited with status $ac_status" >&5
8065 echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8074 if test "$cross_compiling" = yes; then
8075 # Depending upon the size, compute the lo and hi bounds.
8076 cat >conftest.$ac_ext <<_ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h. */
8086 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
8093 rm -f conftest.$ac_objext
8094 if { (ac_try="$ac_compile"
8096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097 *) ac_try_echo=$ac_try;;
8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100 (eval "$ac_compile") 2>conftest.er1
8102 grep -v '^ *+' conftest.er1 >conftest.err
8104 cat conftest.err >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8108 { (case "(($ac_try" in
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_try") 2>&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; } &&
8117 { ac_try='test -s conftest.$ac_objext'
8118 { (case "(($ac_try" in
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_try") 2>&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
8129 cat >conftest.$ac_ext <<_ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h. */
8139 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8146 rm -f conftest.$ac_objext
8147 if { (ac_try="$ac_compile"
8149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150 *) ac_try_echo=$ac_try;;
8152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153 (eval "$ac_compile") 2>conftest.er1
8155 grep -v '^ *+' conftest.er1 >conftest.err
8157 cat conftest.err >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } &&
8160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8161 { (case "(($ac_try" in
8162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163 *) ac_try_echo=$ac_try;;
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166 (eval "$ac_try") 2>&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); }; } &&
8170 { ac_try='test -s conftest.$ac_objext'
8171 { (case "(($ac_try" in
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176 (eval "$ac_try") 2>&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; }; then
8180 ac_hi=$ac_mid; break
8182 echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8185 ac_lo=`expr $ac_mid + 1`
8186 if test $ac_lo -le $ac_mid; then
8190 ac_mid=`expr 2 '*' $ac_mid + 1`
8193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8199 cat >conftest.$ac_ext <<_ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h. */
8209 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8216 rm -f conftest.$ac_objext
8217 if { (ac_try="$ac_compile"
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223 (eval "$ac_compile") 2>conftest.er1
8225 grep -v '^ *+' conftest.er1 >conftest.err
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } &&
8230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8231 { (case "(($ac_try" in
8232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233 *) ac_try_echo=$ac_try;;
8235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8236 (eval "$ac_try") 2>&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; } &&
8240 { ac_try='test -s conftest.$ac_objext'
8241 { (case "(($ac_try" in
8242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243 *) ac_try_echo=$ac_try;;
8245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246 (eval "$ac_try") 2>&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; }; then
8252 cat >conftest.$ac_ext <<_ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h. */
8262 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8269 rm -f conftest.$ac_objext
8270 if { (ac_try="$ac_compile"
8272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273 *) ac_try_echo=$ac_try;;
8275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8276 (eval "$ac_compile") 2>conftest.er1
8278 grep -v '^ *+' conftest.er1 >conftest.err
8280 cat conftest.err >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } &&
8283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8284 { (case "(($ac_try" in
8285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286 *) ac_try_echo=$ac_try;;
8288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8289 (eval "$ac_try") 2>&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; } &&
8293 { ac_try='test -s conftest.$ac_objext'
8294 { (case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_try") 2>&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; }; then
8303 ac_lo=$ac_mid; break
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8308 ac_hi=`expr '(' $ac_mid ')' - 1`
8309 if test $ac_mid -le $ac_hi; then
8313 ac_mid=`expr 2 '*' $ac_mid`
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319 echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 # Binary search between lo and hi bounds.
8330 while test "x$ac_lo" != "x$ac_hi"; do
8331 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8332 cat >conftest.$ac_ext <<_ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8342 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8349 rm -f conftest.$ac_objext
8350 if { (ac_try="$ac_compile"
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_compile") 2>conftest.er1
8358 grep -v '^ *+' conftest.er1 >conftest.err
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
8363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8364 { (case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_try") 2>&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; } &&
8373 { ac_try='test -s conftest.$ac_objext'
8374 { (case "(($ac_try" in
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_try") 2>&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; }; then
8385 echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8388 ac_lo=`expr '(' $ac_mid ')' + 1`
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 ?*) fits_in_uint=$ac_lo;;
8398 cat >conftest.$ac_ext <<_ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8405 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8406 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8413 FILE *f = fopen ("conftest.val", "w");
8416 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8418 long int i = longval ();
8419 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8421 fprintf (f, "%ld\n", i);
8425 unsigned long int i = ulongval ();
8426 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8428 fprintf (f, "%lu\n", i);
8430 return ferror (f) || fclose (f) != 0;
8436 rm -f conftest$ac_exeext
8437 if { (ac_try="$ac_link"
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8443 (eval "$ac_link") 2>&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8447 { (case "(($ac_try" in
8448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8449 *) ac_try_echo=$ac_try;;
8451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8452 (eval "$ac_try") 2>&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; }; then
8456 fits_in_uint=`cat conftest.val`
8458 echo "$as_me: program exited with status $ac_status" >&5
8459 echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8468 if test "$fits_in_uint" = 1; then
8469 cat >conftest.$ac_ext <<_ACEOF
8472 cat confdefs.h >>conftest.$ac_ext
8473 cat >>conftest.$ac_ext <<_ACEOF
8474 /* end confdefs.h. */
8477 extern unsigned long foo;
8487 rm -f conftest.$ac_objext
8488 if { (ac_try="$ac_compile"
8490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8491 *) ac_try_echo=$ac_try;;
8493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8494 (eval "$ac_compile") 2>conftest.er1
8496 grep -v '^ *+' conftest.er1 >conftest.err
8498 cat conftest.err >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } &&
8501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8502 { (case "(($ac_try" in
8503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504 *) ac_try_echo=$ac_try;;
8506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507 (eval "$ac_try") 2>&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; } &&
8511 { ac_try='test -s conftest.$ac_objext'
8512 { (case "(($ac_try" in
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_try") 2>&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); }; }; then
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8531 if test -z "$result"; then
8532 if test "$fits_in_uint" = 1; then
8533 result="$res_hi$res_lo"U
8535 result="$res_hi$res_lo"UL
8541 { echo "$as_me:$LINENO: result: $result" >&5
8542 echo "${ECHO_T}$result" >&6; }
8543 if test "$result" != yes; then
8545 cat >>confdefs.h <<_ACEOF
8546 #define SIZE_MAX $result
8555 for ac_header in stdint.h
8557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 ac_res=`eval echo '${'$as_ac_Header'}'`
8565 { echo "$as_me:$LINENO: result: $ac_res" >&5
8566 echo "${ECHO_T}$ac_res" >&6; }
8568 # Is the header compilable?
8569 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8571 cat >conftest.$ac_ext <<_ACEOF
8574 cat confdefs.h >>conftest.$ac_ext
8575 cat >>conftest.$ac_ext <<_ACEOF
8576 /* end confdefs.h. */
8577 $ac_includes_default
8578 #include <$ac_header>
8580 rm -f conftest.$ac_objext
8581 if { (ac_try="$ac_compile"
8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584 *) ac_try_echo=$ac_try;;
8586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587 (eval "$ac_compile") 2>conftest.er1
8589 grep -v '^ *+' conftest.er1 >conftest.err
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } &&
8594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8595 { (case "(($ac_try" in
8596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8597 *) ac_try_echo=$ac_try;;
8599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8600 (eval "$ac_try") 2>&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; } &&
8604 { ac_try='test -s conftest.$ac_objext'
8605 { (case "(($ac_try" in
8606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8607 *) ac_try_echo=$ac_try;;
8609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8610 (eval "$ac_try") 2>&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; }; then
8614 ac_header_compiler=yes
8616 echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8619 ac_header_compiler=no
8622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8624 echo "${ECHO_T}$ac_header_compiler" >&6; }
8626 # Is the header present?
8627 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8629 cat >conftest.$ac_ext <<_ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8635 #include <$ac_header>
8637 if { (ac_try="$ac_cpp conftest.$ac_ext"
8639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640 *) ac_try_echo=$ac_try;;
8642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8645 grep -v '^ *+' conftest.er1 >conftest.err
8647 cat conftest.err >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } >/dev/null; then
8650 if test -s conftest.err; then
8651 ac_cpp_err=$ac_c_preproc_warn_flag
8652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8659 if test -z "$ac_cpp_err"; then
8660 ac_header_preproc=yes
8662 echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8665 ac_header_preproc=no
8668 rm -f conftest.err conftest.$ac_ext
8669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8670 echo "${ECHO_T}$ac_header_preproc" >&6; }
8672 # So? What about this header?
8673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8675 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8679 ac_header_preproc=yes
8682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8685 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8686 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8687 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8688 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8689 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8692 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8693 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8702 eval "$as_ac_Header=\$ac_header_preproc"
8704 ac_res=`eval echo '${'$as_ac_Header'}'`
8705 { echo "$as_me:$LINENO: result: $ac_res" >&5
8706 echo "${ECHO_T}$ac_res" >&6; }
8709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8710 cat >>confdefs.h <<_ACEOF
8711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8720 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
8721 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
8722 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
8723 echo $ECHO_N "(cached) $ECHO_C" >&6
8725 gt_save_CPPFLAGS="$CPPFLAGS"
8726 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
8727 gt_save_LIBS="$LIBS"
8728 LIBS="$LIBS -framework CoreFoundation"
8729 cat >conftest.$ac_ext <<_ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8735 #include <CFPreferences.h>
8739 CFPreferencesCopyAppValue(NULL, NULL)
8744 rm -f conftest.$ac_objext conftest$ac_exeext
8745 if { (ac_try="$ac_link"
8747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748 *) ac_try_echo=$ac_try;;
8750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8751 (eval "$ac_link") 2>conftest.er1
8753 grep -v '^ *+' conftest.er1 >conftest.err
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } &&
8758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8759 { (case "(($ac_try" in
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764 (eval "$ac_try") 2>&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; } &&
8768 { ac_try='test -s conftest$ac_exeext'
8769 { (case "(($ac_try" in
8770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771 *) ac_try_echo=$ac_try;;
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774 (eval "$ac_try") 2>&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 gt_cv_func_CFPreferencesCopyAppValue=yes
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8783 gt_cv_func_CFPreferencesCopyAppValue=no
8786 rm -f core conftest.err conftest.$ac_objext \
8787 conftest$ac_exeext conftest.$ac_ext
8788 CPPFLAGS="$gt_save_CPPFLAGS"
8789 LIBS="$gt_save_LIBS"
8791 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8792 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8793 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8795 cat >>confdefs.h <<\_ACEOF
8796 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
8800 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
8801 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
8802 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
8805 gt_save_CPPFLAGS="$CPPFLAGS"
8806 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
8807 gt_save_LIBS="$LIBS"
8808 LIBS="$LIBS -framework CoreFoundation"
8809 cat >conftest.$ac_ext <<_ACEOF
8812 cat confdefs.h >>conftest.$ac_ext
8813 cat >>conftest.$ac_ext <<_ACEOF
8814 /* end confdefs.h. */
8815 #include <CFLocale.h>
8819 CFLocaleCopyCurrent();
8824 rm -f conftest.$ac_objext conftest$ac_exeext
8825 if { (ac_try="$ac_link"
8827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828 *) ac_try_echo=$ac_try;;
8830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8831 (eval "$ac_link") 2>conftest.er1
8833 grep -v '^ *+' conftest.er1 >conftest.err
8835 cat conftest.err >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } &&
8838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8839 { (case "(($ac_try" in
8840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841 *) ac_try_echo=$ac_try;;
8843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844 (eval "$ac_try") 2>&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; } &&
8848 { ac_try='test -s conftest$ac_exeext'
8849 { (case "(($ac_try" in
8850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851 *) ac_try_echo=$ac_try;;
8853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854 (eval "$ac_try") 2>&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; }; then
8858 gt_cv_func_CFLocaleCopyCurrent=yes
8860 echo "$as_me: failed program was:" >&5
8861 sed 's/^/| /' conftest.$ac_ext >&5
8863 gt_cv_func_CFLocaleCopyCurrent=no
8866 rm -f core conftest.err conftest.$ac_objext \
8867 conftest$ac_exeext conftest.$ac_ext
8868 CPPFLAGS="$gt_save_CPPFLAGS"
8869 LIBS="$gt_save_LIBS"
8871 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8872 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8873 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8875 cat >>confdefs.h <<\_ACEOF
8876 #define HAVE_CFLOCALECOPYCURRENT 1
8881 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8882 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8887 if test "X$prefix" = "XNONE"; then
8888 acl_final_prefix="$ac_default_prefix"
8890 acl_final_prefix="$prefix"
8892 if test "X$exec_prefix" = "XNONE"; then
8893 acl_final_exec_prefix='${prefix}'
8895 acl_final_exec_prefix="$exec_prefix"
8897 acl_save_prefix="$prefix"
8898 prefix="$acl_final_prefix"
8899 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8900 prefix="$acl_save_prefix"
8903 # Check whether --with-gnu-ld was given.
8904 if test "${with_gnu_ld+set}" = set; then
8905 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8910 # Prepare PATH_SEPARATOR.
8911 # The user is always right.
8912 if test "${PATH_SEPARATOR+set}" != set; then
8913 echo "#! /bin/sh" >conf$$.sh
8914 echo "exit 0" >>conf$$.sh
8916 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8924 if test "$GCC" = yes; then
8925 # Check if gcc -print-prog-name=ld gives a path.
8926 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8927 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8930 # gcc leaves a trailing carriage return which upsets mingw
8931 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8933 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8936 # Accept absolute paths.
8937 [\\/]* | [A-Za-z]:[\\/]*)
8938 re_direlt='/[^/][^/]*/\.\./'
8939 # Canonicalize the path of ld
8940 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8941 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8942 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8944 test -z "$LD" && LD="$ac_prog"
8947 # If it fails, then pretend we aren't using GCC.
8951 # If it is relative, then search for the first ld in PATH.
8955 elif test "$with_gnu_ld" = yes; then
8956 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8957 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8959 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8960 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8962 if test "${acl_cv_path_LD+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 if test -z "$LD"; then
8966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8967 for ac_dir in $PATH; do
8968 test -z "$ac_dir" && ac_dir=.
8969 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8970 acl_cv_path_LD="$ac_dir/$ac_prog"
8971 # Check to see if the program is GNU ld. I'd rather use --version,
8972 # but apparently some GNU ld's only accept -v.
8973 # Break only if it was the GNU/non-GNU ld that we prefer.
8974 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8975 *GNU* | *'with BFD'*)
8976 test "$with_gnu_ld" != no && break ;;
8978 test "$with_gnu_ld" != yes && break ;;
8984 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8988 LD="$acl_cv_path_LD"
8989 if test -n "$LD"; then
8990 { echo "$as_me:$LINENO: result: $LD" >&5
8991 echo "${ECHO_T}$LD" >&6; }
8993 { echo "$as_me:$LINENO: result: no" >&5
8994 echo "${ECHO_T}no" >&6; }
8996 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8997 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8998 { (exit 1); exit 1; }; }
8999 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9000 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9001 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9005 case `$LD -v 2>&1 </dev/null` in
9006 *GNU* | *'with BFD'*)
9007 acl_cv_prog_gnu_ld=yes ;;
9009 acl_cv_prog_gnu_ld=no ;;
9012 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9013 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
9014 with_gnu_ld=$acl_cv_prog_gnu_ld
9019 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9020 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
9021 if test "${acl_cv_rpath+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9026 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9032 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9033 echo "${ECHO_T}$acl_cv_rpath" >&6; }
9035 libext="$acl_cv_libext"
9036 shlibext="$acl_cv_shlibext"
9037 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9038 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9039 hardcode_direct="$acl_cv_hardcode_direct"
9040 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9041 # Check whether --enable-rpath was given.
9042 if test "${enable_rpath+set}" = set; then
9043 enableval=$enable_rpath; :
9057 acl_save_prefix="$prefix"
9058 prefix="$acl_final_prefix"
9059 acl_save_exec_prefix="$exec_prefix"
9060 exec_prefix="$acl_final_exec_prefix"
9062 eval additional_includedir=\"$includedir\"
9063 eval additional_libdir=\"$libdir\"
9065 exec_prefix="$acl_save_exec_prefix"
9066 prefix="$acl_save_prefix"
9069 # Check whether --with-libiconv-prefix was given.
9070 if test "${with_libiconv_prefix+set}" = set; then
9071 withval=$with_libiconv_prefix;
9072 if test "X$withval" = "Xno"; then
9075 if test "X$withval" = "X"; then
9077 acl_save_prefix="$prefix"
9078 prefix="$acl_final_prefix"
9079 acl_save_exec_prefix="$exec_prefix"
9080 exec_prefix="$acl_final_exec_prefix"
9082 eval additional_includedir=\"$includedir\"
9083 eval additional_libdir=\"$libdir\"
9085 exec_prefix="$acl_save_exec_prefix"
9086 prefix="$acl_save_prefix"
9089 additional_includedir="$withval/include"
9090 additional_libdir="$withval/lib"
9101 names_already_handled=
9102 names_next_round='iconv '
9103 while test -n "$names_next_round"; do
9104 names_this_round="$names_next_round"
9106 for name in $names_this_round; do
9108 for n in $names_already_handled; do
9109 if test "$n" = "$name"; then
9114 if test -z "$already_handled"; then
9115 names_already_handled="$names_already_handled $name"
9116 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9117 eval value=\"\$HAVE_LIB$uppername\"
9118 if test -n "$value"; then
9119 if test "$value" = yes; then
9120 eval value=\"\$LIB$uppername\"
9121 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9122 eval value=\"\$LTLIB$uppername\"
9123 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9132 if test $use_additional = yes; then
9133 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9134 found_dir="$additional_libdir"
9135 found_so="$additional_libdir/lib$name.$shlibext"
9136 if test -f "$additional_libdir/lib$name.la"; then
9137 found_la="$additional_libdir/lib$name.la"
9140 if test -f "$additional_libdir/lib$name.$libext"; then
9141 found_dir="$additional_libdir"
9142 found_a="$additional_libdir/lib$name.$libext"
9143 if test -f "$additional_libdir/lib$name.la"; then
9144 found_la="$additional_libdir/lib$name.la"
9149 if test "X$found_dir" = "X"; then
9150 for x in $LDFLAGS $LTLIBICONV; do
9152 acl_save_prefix="$prefix"
9153 prefix="$acl_final_prefix"
9154 acl_save_exec_prefix="$exec_prefix"
9155 exec_prefix="$acl_final_exec_prefix"
9157 exec_prefix="$acl_save_exec_prefix"
9158 prefix="$acl_save_prefix"
9162 dir=`echo "X$x" | sed -e 's/^X-L//'`
9163 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9165 found_so="$dir/lib$name.$shlibext"
9166 if test -f "$dir/lib$name.la"; then
9167 found_la="$dir/lib$name.la"
9170 if test -f "$dir/lib$name.$libext"; then
9172 found_a="$dir/lib$name.$libext"
9173 if test -f "$dir/lib$name.la"; then
9174 found_la="$dir/lib$name.la"
9180 if test "X$found_dir" != "X"; then
9185 if test "X$found_dir" != "X"; then
9186 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9187 if test "X$found_so" != "X"; then
9188 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9189 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9192 for x in $ltrpathdirs; do
9193 if test "X$x" = "X$found_dir"; then
9198 if test -z "$haveit"; then
9199 ltrpathdirs="$ltrpathdirs $found_dir"
9201 if test "$hardcode_direct" = yes; then
9202 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9204 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9205 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9207 for x in $rpathdirs; do
9208 if test "X$x" = "X$found_dir"; then
9213 if test -z "$haveit"; then
9214 rpathdirs="$rpathdirs $found_dir"
9218 for x in $LDFLAGS $LIBICONV; do
9220 acl_save_prefix="$prefix"
9221 prefix="$acl_final_prefix"
9222 acl_save_exec_prefix="$exec_prefix"
9223 exec_prefix="$acl_final_exec_prefix"
9225 exec_prefix="$acl_save_exec_prefix"
9226 prefix="$acl_save_prefix"
9228 if test "X$x" = "X-L$found_dir"; then
9233 if test -z "$haveit"; then
9234 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9236 if test "$hardcode_minus_L" != no; then
9237 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9239 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9245 if test "X$found_a" != "X"; then
9246 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9248 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9251 additional_includedir=
9252 case "$found_dir" in
9254 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9255 additional_includedir="$basedir/include"
9258 if test "X$additional_includedir" != "X"; then
9259 if test "X$additional_includedir" != "X/usr/include"; then
9261 if test "X$additional_includedir" = "X/usr/local/include"; then
9262 if test -n "$GCC"; then
9264 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9268 if test -z "$haveit"; then
9269 for x in $CPPFLAGS $INCICONV; do
9271 acl_save_prefix="$prefix"
9272 prefix="$acl_final_prefix"
9273 acl_save_exec_prefix="$exec_prefix"
9274 exec_prefix="$acl_final_exec_prefix"
9276 exec_prefix="$acl_save_exec_prefix"
9277 prefix="$acl_save_prefix"
9279 if test "X$x" = "X-I$additional_includedir"; then
9284 if test -z "$haveit"; then
9285 if test -d "$additional_includedir"; then
9286 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9292 if test -n "$found_la"; then
9293 save_libdir="$libdir"
9295 */* | *\\*) . "$found_la" ;;
9296 *) . "./$found_la" ;;
9298 libdir="$save_libdir"
9299 for dep in $dependency_libs; do
9302 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9303 if test "X$additional_libdir" != "X/usr/lib"; then
9305 if test "X$additional_libdir" = "X/usr/local/lib"; then
9306 if test -n "$GCC"; then
9308 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9312 if test -z "$haveit"; then
9314 for x in $LDFLAGS $LIBICONV; do
9316 acl_save_prefix="$prefix"
9317 prefix="$acl_final_prefix"
9318 acl_save_exec_prefix="$exec_prefix"
9319 exec_prefix="$acl_final_exec_prefix"
9321 exec_prefix="$acl_save_exec_prefix"
9322 prefix="$acl_save_prefix"
9324 if test "X$x" = "X-L$additional_libdir"; then
9329 if test -z "$haveit"; then
9330 if test -d "$additional_libdir"; then
9331 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9335 for x in $LDFLAGS $LTLIBICONV; do
9337 acl_save_prefix="$prefix"
9338 prefix="$acl_final_prefix"
9339 acl_save_exec_prefix="$exec_prefix"
9340 exec_prefix="$acl_final_exec_prefix"
9342 exec_prefix="$acl_save_exec_prefix"
9343 prefix="$acl_save_prefix"
9345 if test "X$x" = "X-L$additional_libdir"; then
9350 if test -z "$haveit"; then
9351 if test -d "$additional_libdir"; then
9352 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9359 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9360 if test "$enable_rpath" != no; then
9362 for x in $rpathdirs; do
9363 if test "X$x" = "X$dir"; then
9368 if test -z "$haveit"; then
9369 rpathdirs="$rpathdirs $dir"
9372 for x in $ltrpathdirs; do
9373 if test "X$x" = "X$dir"; then
9378 if test -z "$haveit"; then
9379 ltrpathdirs="$ltrpathdirs $dir"
9384 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9387 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9390 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9391 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9397 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9398 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9404 if test "X$rpathdirs" != "X"; then
9405 if test -n "$hardcode_libdir_separator"; then
9407 for found_dir in $rpathdirs; do
9408 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9410 acl_save_libdir="$libdir"
9412 eval flag=\"$hardcode_libdir_flag_spec\"
9413 libdir="$acl_save_libdir"
9414 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9416 for found_dir in $rpathdirs; do
9417 acl_save_libdir="$libdir"
9419 eval flag=\"$hardcode_libdir_flag_spec\"
9420 libdir="$acl_save_libdir"
9421 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9425 if test "X$ltrpathdirs" != "X"; then
9426 for found_dir in $ltrpathdirs; do
9427 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9438 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9439 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
9440 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 cat >conftest.$ac_ext <<_ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9449 $ac_includes_default
9450 typedef ptrdiff_t ac__type_new_;
9454 if ((ac__type_new_ *) 0)
9456 if (sizeof (ac__type_new_))
9462 rm -f conftest.$ac_objext
9463 if { (ac_try="$ac_compile"
9465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466 *) ac_try_echo=$ac_try;;
9468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9469 (eval "$ac_compile") 2>conftest.er1
9471 grep -v '^ *+' conftest.er1 >conftest.err
9473 cat conftest.err >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } &&
9476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9477 { (case "(($ac_try" in
9478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9479 *) ac_try_echo=$ac_try;;
9481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9482 (eval "$ac_try") 2>&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; } &&
9486 { ac_try='test -s conftest.$ac_objext'
9487 { (case "(($ac_try" in
9488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489 *) ac_try_echo=$ac_try;;
9491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492 (eval "$ac_try") 2>&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); }; }; then
9496 ac_cv_type_ptrdiff_t=yes
9498 echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9501 ac_cv_type_ptrdiff_t=no
9504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9506 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9507 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9508 if test $ac_cv_type_ptrdiff_t = yes; then
9512 cat >>confdefs.h <<\_ACEOF
9513 #define ptrdiff_t long
9529 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9530 stdlib.h string.h unistd.h sys/param.h
9532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 ac_res=`eval echo '${'$as_ac_Header'}'`
9540 { echo "$as_me:$LINENO: result: $ac_res" >&5
9541 echo "${ECHO_T}$ac_res" >&6; }
9543 # Is the header compilable?
9544 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9546 cat >conftest.$ac_ext <<_ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 $ac_includes_default
9553 #include <$ac_header>
9555 rm -f conftest.$ac_objext
9556 if { (ac_try="$ac_compile"
9558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559 *) ac_try_echo=$ac_try;;
9561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9562 (eval "$ac_compile") 2>conftest.er1
9564 grep -v '^ *+' conftest.er1 >conftest.err
9566 cat conftest.err >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } &&
9569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9570 { (case "(($ac_try" in
9571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9572 *) ac_try_echo=$ac_try;;
9574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9575 (eval "$ac_try") 2>&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; } &&
9579 { ac_try='test -s conftest.$ac_objext'
9580 { (case "(($ac_try" in
9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585 (eval "$ac_try") 2>&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); }; }; then
9589 ac_header_compiler=yes
9591 echo "$as_me: failed program was:" >&5
9592 sed 's/^/| /' conftest.$ac_ext >&5
9594 ac_header_compiler=no
9597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9599 echo "${ECHO_T}$ac_header_compiler" >&6; }
9601 # Is the header present?
9602 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9604 cat >conftest.$ac_ext <<_ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9610 #include <$ac_header>
9612 if { (ac_try="$ac_cpp conftest.$ac_ext"
9614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9615 *) ac_try_echo=$ac_try;;
9617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9620 grep -v '^ *+' conftest.er1 >conftest.err
9622 cat conftest.err >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } >/dev/null; then
9625 if test -s conftest.err; then
9626 ac_cpp_err=$ac_c_preproc_warn_flag
9627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9634 if test -z "$ac_cpp_err"; then
9635 ac_header_preproc=yes
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9640 ac_header_preproc=no
9643 rm -f conftest.err conftest.$ac_ext
9644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9645 echo "${ECHO_T}$ac_header_preproc" >&6; }
9647 # So? What about this header?
9648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9654 ac_header_preproc=yes
9657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9664 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 eval "$as_ac_Header=\$ac_header_preproc"
9679 ac_res=`eval echo '${'$as_ac_Header'}'`
9680 { echo "$as_me:$LINENO: result: $ac_res" >&5
9681 echo "${ECHO_T}$ac_res" >&6; }
9684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9685 cat >>confdefs.h <<_ACEOF
9686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9716 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9717 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9718 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 cat >conftest.$ac_ext <<_ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h. */
9733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9735 #define $ac_func innocuous_$ac_func
9737 /* System header to define __stub macros and hopefully few prototypes,
9738 which can conflict with char $ac_func (); below.
9739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9740 <limits.h> exists even on freestanding compilers. */
9743 # include <limits.h>
9745 # include <assert.h>
9750 /* Override any GCC internal prototype to avoid an error.
9751 Use char because int might match the return type of a GCC
9752 builtin and then its argument prototype would still apply. */
9757 /* The GNU C library defines this for functions which it implements
9758 to always fail with ENOSYS. Some functions are actually named
9759 something starting with __ and the normal name is an alias. */
9760 #if defined __stub_$ac_func || defined __stub___$ac_func
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (ac_try="$ac_link"
9775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776 *) ac_try_echo=$ac_try;;
9778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779 (eval "$ac_link") 2>conftest.er1
9781 grep -v '^ *+' conftest.er1 >conftest.err
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
9786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9787 { (case "(($ac_try" in
9788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789 *) ac_try_echo=$ac_try;;
9791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792 (eval "$ac_try") 2>&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; } &&
9796 { ac_try='test -s conftest$ac_exeext'
9797 { (case "(($ac_try" in
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_try") 2>&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; }; then
9806 eval "$as_ac_var=yes"
9808 echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9811 eval "$as_ac_var=no"
9814 rm -f core conftest.err conftest.$ac_objext \
9815 conftest$ac_exeext conftest.$ac_ext
9817 ac_res=`eval echo '${'$as_ac_var'}'`
9818 { echo "$as_me:$LINENO: result: $ac_res" >&5
9819 echo "${ECHO_T}$ac_res" >&6; }
9820 if test `eval echo '${'$as_ac_var'}'` = yes; then
9821 cat >>confdefs.h <<_ACEOF
9822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9830 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9831 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9832 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 cat >conftest.$ac_ext <<_ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9847 char *p = (char *) _snprintf;
9854 rm -f conftest.$ac_objext
9855 if { (ac_try="$ac_compile"
9857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858 *) ac_try_echo=$ac_try;;
9860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861 (eval "$ac_compile") 2>conftest.er1
9863 grep -v '^ *+' conftest.er1 >conftest.err
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9869 { (case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_try") 2>&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; } &&
9878 { ac_try='test -s conftest.$ac_objext'
9879 { (case "(($ac_try" in
9880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881 *) ac_try_echo=$ac_try;;
9883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884 (eval "$ac_try") 2>&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
9888 ac_cv_have_decl__snprintf=yes
9890 echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9893 ac_cv_have_decl__snprintf=no
9896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9898 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9899 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9900 if test $ac_cv_have_decl__snprintf = yes; then
9906 cat >>confdefs.h <<_ACEOF
9907 #define HAVE_DECL__SNPRINTF $gt_value
9912 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9913 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9914 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9917 cat >conftest.$ac_ext <<_ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9929 char *p = (char *) _snwprintf;
9936 rm -f conftest.$ac_objext
9937 if { (ac_try="$ac_compile"
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_compile") 2>conftest.er1
9945 grep -v '^ *+' conftest.er1 >conftest.err
9947 cat conftest.err >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } &&
9950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9951 { (case "(($ac_try" in
9952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953 *) ac_try_echo=$ac_try;;
9955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956 (eval "$ac_try") 2>&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; } &&
9960 { ac_try='test -s conftest.$ac_objext'
9961 { (case "(($ac_try" in
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_try") 2>&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; }; then
9970 ac_cv_have_decl__snwprintf=yes
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9975 ac_cv_have_decl__snwprintf=no
9978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9980 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9981 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9982 if test $ac_cv_have_decl__snwprintf = yes; then
9988 cat >>confdefs.h <<_ACEOF
9989 #define HAVE_DECL__SNWPRINTF $gt_value
9995 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9996 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9997 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 cat >conftest.$ac_ext <<_ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10011 #ifndef feof_unlocked
10012 char *p = (char *) feof_unlocked;
10019 rm -f conftest.$ac_objext
10020 if { (ac_try="$ac_compile"
10021 case "(($ac_try" in
10022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023 *) ac_try_echo=$ac_try;;
10025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026 (eval "$ac_compile") 2>conftest.er1
10028 grep -v '^ *+' conftest.er1 >conftest.err
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } &&
10033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10034 { (case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039 (eval "$ac_try") 2>&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; } &&
10043 { ac_try='test -s conftest.$ac_objext'
10044 { (case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_try") 2>&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; }; then
10053 ac_cv_have_decl_feof_unlocked=yes
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10058 ac_cv_have_decl_feof_unlocked=no
10061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10063 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
10064 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
10065 if test $ac_cv_have_decl_feof_unlocked = yes; then
10071 cat >>confdefs.h <<_ACEOF
10072 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
10077 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
10078 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
10079 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10082 cat >conftest.$ac_ext <<_ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h. */
10093 #ifndef fgets_unlocked
10094 char *p = (char *) fgets_unlocked;
10101 rm -f conftest.$ac_objext
10102 if { (ac_try="$ac_compile"
10103 case "(($ac_try" in
10104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105 *) ac_try_echo=$ac_try;;
10107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10108 (eval "$ac_compile") 2>conftest.er1
10110 grep -v '^ *+' conftest.er1 >conftest.err
10112 cat conftest.err >&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } &&
10115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10116 { (case "(($ac_try" in
10117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118 *) ac_try_echo=$ac_try;;
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121 (eval "$ac_try") 2>&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); }; } &&
10125 { ac_try='test -s conftest.$ac_objext'
10126 { (case "(($ac_try" in
10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131 (eval "$ac_try") 2>&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; }; then
10135 ac_cv_have_decl_fgets_unlocked=yes
10137 echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.$ac_ext >&5
10140 ac_cv_have_decl_fgets_unlocked=no
10143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10145 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10146 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
10147 if test $ac_cv_have_decl_fgets_unlocked = yes; then
10153 cat >>confdefs.h <<_ACEOF
10154 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
10159 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10160 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
10161 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 cat >conftest.$ac_ext <<_ACEOF
10167 cat confdefs.h >>conftest.$ac_ext
10168 cat >>conftest.$ac_ext <<_ACEOF
10169 /* end confdefs.h. */
10175 #ifndef getc_unlocked
10176 char *p = (char *) getc_unlocked;
10183 rm -f conftest.$ac_objext
10184 if { (ac_try="$ac_compile"
10185 case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_compile") 2>conftest.er1
10192 grep -v '^ *+' conftest.er1 >conftest.err
10194 cat conftest.err >&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } &&
10197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10198 { (case "(($ac_try" in
10199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200 *) ac_try_echo=$ac_try;;
10202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10203 (eval "$ac_try") 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; } &&
10207 { ac_try='test -s conftest.$ac_objext'
10208 { (case "(($ac_try" in
10209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10210 *) ac_try_echo=$ac_try;;
10212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10213 (eval "$ac_try") 2>&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; }; then
10217 ac_cv_have_decl_getc_unlocked=yes
10219 echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10222 ac_cv_have_decl_getc_unlocked=no
10225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10227 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10228 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
10229 if test $ac_cv_have_decl_getc_unlocked = yes; then
10235 cat >>confdefs.h <<_ACEOF
10236 #define HAVE_DECL_GETC_UNLOCKED $gt_value
10241 case $gt_cv_func_printf_posix in
10242 *yes) HAVE_POSIX_PRINTF=1 ;;
10243 *) HAVE_POSIX_PRINTF=0 ;;
10246 if test "$ac_cv_func_asprintf" = yes; then
10252 if test "$ac_cv_func_snprintf" = yes; then
10258 if test "$ac_cv_func_wprintf" = yes; then
10270 am_save_CPPFLAGS="$CPPFLAGS"
10272 for element in $INCICONV; do
10274 for x in $CPPFLAGS; do
10276 acl_save_prefix="$prefix"
10277 prefix="$acl_final_prefix"
10278 acl_save_exec_prefix="$exec_prefix"
10279 exec_prefix="$acl_final_exec_prefix"
10281 exec_prefix="$acl_save_exec_prefix"
10282 prefix="$acl_save_prefix"
10284 if test "X$x" = "X$element"; then
10289 if test -z "$haveit"; then
10290 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10295 { echo "$as_me:$LINENO: checking for iconv" >&5
10296 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
10297 if test "${am_cv_func_iconv+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10301 am_cv_func_iconv="no, consider installing GNU libiconv"
10303 cat >conftest.$ac_ext <<_ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10309 #include <stdlib.h>
10314 iconv_t cd = iconv_open("","");
10315 iconv(cd,NULL,NULL,NULL,NULL);
10321 rm -f conftest.$ac_objext conftest$ac_exeext
10322 if { (ac_try="$ac_link"
10323 case "(($ac_try" in
10324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10325 *) ac_try_echo=$ac_try;;
10327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10328 (eval "$ac_link") 2>conftest.er1
10330 grep -v '^ *+' conftest.er1 >conftest.err
10332 cat conftest.err >&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } &&
10335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10336 { (case "(($ac_try" in
10337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10338 *) ac_try_echo=$ac_try;;
10340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341 (eval "$ac_try") 2>&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }; } &&
10345 { ac_try='test -s conftest$ac_exeext'
10346 { (case "(($ac_try" in
10347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10348 *) ac_try_echo=$ac_try;;
10350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10351 (eval "$ac_try") 2>&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; }; then
10355 am_cv_func_iconv=yes
10357 echo "$as_me: failed program was:" >&5
10358 sed 's/^/| /' conftest.$ac_ext >&5
10363 rm -f core conftest.err conftest.$ac_objext \
10364 conftest$ac_exeext conftest.$ac_ext
10365 if test "$am_cv_func_iconv" != yes; then
10366 am_save_LIBS="$LIBS"
10367 LIBS="$LIBS $LIBICONV"
10368 cat >conftest.$ac_ext <<_ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10374 #include <stdlib.h>
10379 iconv_t cd = iconv_open("","");
10380 iconv(cd,NULL,NULL,NULL,NULL);
10386 rm -f conftest.$ac_objext conftest$ac_exeext
10387 if { (ac_try="$ac_link"
10388 case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_link") 2>conftest.er1
10395 grep -v '^ *+' conftest.er1 >conftest.err
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } &&
10400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10401 { (case "(($ac_try" in
10402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403 *) ac_try_echo=$ac_try;;
10405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406 (eval "$ac_try") 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; } &&
10410 { ac_try='test -s conftest$ac_exeext'
10411 { (case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416 (eval "$ac_try") 2>&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; }; then
10420 am_cv_lib_iconv=yes
10421 am_cv_func_iconv=yes
10423 echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10429 rm -f core conftest.err conftest.$ac_objext \
10430 conftest$ac_exeext conftest.$ac_ext
10431 LIBS="$am_save_LIBS"
10435 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10436 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
10437 if test "$am_cv_func_iconv" = yes; then
10439 cat >>confdefs.h <<\_ACEOF
10440 #define HAVE_ICONV 1
10444 if test "$am_cv_lib_iconv" = yes; then
10445 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10446 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
10447 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
10448 echo "${ECHO_T}$LIBICONV" >&6; }
10450 CPPFLAGS="$am_save_CPPFLAGS"
10457 if test "$am_cv_func_iconv" = yes; then
10458 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
10459 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
10460 if test "${am_cv_proto_iconv+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10464 cat >conftest.$ac_ext <<_ACEOF
10467 cat confdefs.h >>conftest.$ac_ext
10468 cat >>conftest.$ac_ext <<_ACEOF
10469 /* end confdefs.h. */
10471 #include <stdlib.h>
10477 #if defined(__STDC__) || defined(__cplusplus)
10478 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10491 rm -f conftest.$ac_objext
10492 if { (ac_try="$ac_compile"
10493 case "(($ac_try" in
10494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495 *) ac_try_echo=$ac_try;;
10497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498 (eval "$ac_compile") 2>conftest.er1
10500 grep -v '^ *+' conftest.er1 >conftest.err
10502 cat conftest.err >&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } &&
10505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10506 { (case "(($ac_try" in
10507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508 *) ac_try_echo=$ac_try;;
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511 (eval "$ac_try") 2>&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; } &&
10515 { ac_try='test -s conftest.$ac_objext'
10516 { (case "(($ac_try" in
10517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10518 *) ac_try_echo=$ac_try;;
10520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10521 (eval "$ac_try") 2>&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; }; then
10525 am_cv_proto_iconv_arg1=""
10527 echo "$as_me: failed program was:" >&5
10528 sed 's/^/| /' conftest.$ac_ext >&5
10530 am_cv_proto_iconv_arg1="const"
10533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10534 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);"
10537 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10538 { echo "$as_me:$LINENO: result: ${ac_t:-
10539 }$am_cv_proto_iconv" >&5
10540 echo "${ECHO_T}${ac_t:-
10541 }$am_cv_proto_iconv" >&6; }
10543 cat >>confdefs.h <<_ACEOF
10544 #define ICONV_CONST $am_cv_proto_iconv_arg1
10550 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10551 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
10552 if test "${am_cv_langinfo_codeset+set}" = set; then
10553 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 cat >conftest.$ac_ext <<_ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10561 #include <langinfo.h>
10565 char* cs = nl_langinfo(CODESET);
10570 rm -f conftest.$ac_objext conftest$ac_exeext
10571 if { (ac_try="$ac_link"
10572 case "(($ac_try" in
10573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10574 *) ac_try_echo=$ac_try;;
10576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10577 (eval "$ac_link") 2>conftest.er1
10579 grep -v '^ *+' conftest.er1 >conftest.err
10581 cat conftest.err >&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } &&
10584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10585 { (case "(($ac_try" in
10586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587 *) ac_try_echo=$ac_try;;
10589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590 (eval "$ac_try") 2>&5
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); }; } &&
10594 { ac_try='test -s conftest$ac_exeext'
10595 { (case "(($ac_try" in
10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600 (eval "$ac_try") 2>&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); }; }; then
10604 am_cv_langinfo_codeset=yes
10606 echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10609 am_cv_langinfo_codeset=no
10612 rm -f core conftest.err conftest.$ac_objext \
10613 conftest$ac_exeext conftest.$ac_ext
10616 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10617 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
10618 if test $am_cv_langinfo_codeset = yes; then
10620 cat >>confdefs.h <<\_ACEOF
10621 #define HAVE_LANGINFO_CODESET 1
10626 if test $ac_cv_header_locale_h = yes; then
10628 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10629 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
10630 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10633 cat >conftest.$ac_ext <<_ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10639 #include <locale.h>
10648 rm -f conftest.$ac_objext conftest$ac_exeext
10649 if { (ac_try="$ac_link"
10650 case "(($ac_try" in
10651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652 *) ac_try_echo=$ac_try;;
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655 (eval "$ac_link") 2>conftest.er1
10657 grep -v '^ *+' conftest.er1 >conftest.err
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } &&
10662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10663 { (case "(($ac_try" in
10664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10665 *) ac_try_echo=$ac_try;;
10667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10668 (eval "$ac_try") 2>&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; } &&
10672 { ac_try='test -s conftest$ac_exeext'
10673 { (case "(($ac_try" in
10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678 (eval "$ac_try") 2>&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; }; then
10682 gt_cv_val_LC_MESSAGES=yes
10684 echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10687 gt_cv_val_LC_MESSAGES=no
10690 rm -f core conftest.err conftest.$ac_objext \
10691 conftest$ac_exeext conftest.$ac_ext
10693 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
10694 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
10695 if test $gt_cv_val_LC_MESSAGES = yes; then
10697 cat >>confdefs.h <<\_ACEOF
10698 #define HAVE_LC_MESSAGES 1
10705 if test -n "$INTL_MACOSX_LIBS"; then
10706 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
10709 for ac_prog in bison
10711 # Extract the first word of "$ac_prog", so it can be a program name with args.
10712 set dummy $ac_prog; ac_word=$2
10713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10715 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10716 echo $ECHO_N "(cached) $ECHO_C" >&6
10718 if test -n "$INTLBISON"; then
10719 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10722 for as_dir in $PATH
10725 test -z "$as_dir" && as_dir=.
10726 for ac_exec_ext in '' $ac_executable_extensions; do
10727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10728 ac_cv_prog_INTLBISON="$ac_prog"
10729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10738 INTLBISON=$ac_cv_prog_INTLBISON
10739 if test -n "$INTLBISON"; then
10740 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10741 echo "${ECHO_T}$INTLBISON" >&6; }
10743 { echo "$as_me:$LINENO: result: no" >&5
10744 echo "${ECHO_T}no" >&6; }
10748 test -n "$INTLBISON" && break
10751 if test -z "$INTLBISON"; then
10754 { echo "$as_me:$LINENO: checking version of bison" >&5
10755 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10756 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10757 case $ac_prog_version in
10758 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10759 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10760 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10761 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10763 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10764 echo "${ECHO_T}$ac_prog_version" >&6; }
10766 if test $ac_verc_fail = yes; then
10785 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
10786 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
10787 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 gt_save_CPPFLAGS="$CPPFLAGS"
10791 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
10792 gt_save_LIBS="$LIBS"
10793 LIBS="$LIBS -framework CoreFoundation"
10794 cat >conftest.$ac_ext <<_ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10800 #include <CFPreferences.h>
10804 CFPreferencesCopyAppValue(NULL, NULL)
10809 rm -f conftest.$ac_objext conftest$ac_exeext
10810 if { (ac_try="$ac_link"
10811 case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_link") 2>conftest.er1
10818 grep -v '^ *+' conftest.er1 >conftest.err
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
10823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10824 { (case "(($ac_try" in
10825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826 *) ac_try_echo=$ac_try;;
10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829 (eval "$ac_try") 2>&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; } &&
10833 { ac_try='test -s conftest$ac_exeext'
10834 { (case "(($ac_try" in
10835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10836 *) ac_try_echo=$ac_try;;
10838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10839 (eval "$ac_try") 2>&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; }; then
10843 gt_cv_func_CFPreferencesCopyAppValue=yes
10845 echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.$ac_ext >&5
10848 gt_cv_func_CFPreferencesCopyAppValue=no
10851 rm -f core conftest.err conftest.$ac_objext \
10852 conftest$ac_exeext conftest.$ac_ext
10853 CPPFLAGS="$gt_save_CPPFLAGS"
10854 LIBS="$gt_save_LIBS"
10856 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10857 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10858 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10860 cat >>confdefs.h <<\_ACEOF
10861 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
10865 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
10866 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
10867 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 gt_save_CPPFLAGS="$CPPFLAGS"
10871 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
10872 gt_save_LIBS="$LIBS"
10873 LIBS="$LIBS -framework CoreFoundation"
10874 cat >conftest.$ac_ext <<_ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h. */
10880 #include <CFLocale.h>
10884 CFLocaleCopyCurrent();
10889 rm -f conftest.$ac_objext conftest$ac_exeext
10890 if { (ac_try="$ac_link"
10891 case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_link") 2>conftest.er1
10898 grep -v '^ *+' conftest.er1 >conftest.err
10900 cat conftest.err >&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } &&
10903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10904 { (case "(($ac_try" in
10905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909 (eval "$ac_try") 2>&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; } &&
10913 { ac_try='test -s conftest$ac_exeext'
10914 { (case "(($ac_try" in
10915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10916 *) ac_try_echo=$ac_try;;
10918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10919 (eval "$ac_try") 2>&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; }; then
10923 gt_cv_func_CFLocaleCopyCurrent=yes
10925 echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10928 gt_cv_func_CFLocaleCopyCurrent=no
10931 rm -f core conftest.err conftest.$ac_objext \
10932 conftest$ac_exeext conftest.$ac_ext
10933 CPPFLAGS="$gt_save_CPPFLAGS"
10934 LIBS="$gt_save_LIBS"
10936 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10937 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10938 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10940 cat >>confdefs.h <<\_ACEOF
10941 #define HAVE_CFLOCALECOPYCURRENT 1
10946 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10947 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10953 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10954 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10955 # Check whether --enable-nls was given.
10956 if test "${enable_nls+set}" = set; then
10957 enableval=$enable_nls; USE_NLS=$enableval
10962 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10963 echo "${ECHO_T}$USE_NLS" >&6; }
10968 BUILD_INCLUDED_LIBINTL=no
10969 USE_INCLUDED_LIBINTL=no
10975 if test "$USE_NLS" = "yes"; then
10976 gt_use_preinstalled_gnugettext=no
10978 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10979 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10981 # Check whether --with-included-gettext was given.
10982 if test "${with_included_gettext+set}" = set; then
10983 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10985 nls_cv_force_use_gnu_gettext=no
10988 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10989 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10991 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10992 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10999 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11000 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
11001 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 cat >conftest.$ac_ext <<_ACEOF
11007 cat confdefs.h >>conftest.$ac_ext
11008 cat >>conftest.$ac_ext <<_ACEOF
11009 /* end confdefs.h. */
11010 #include <libintl.h>
11011 extern int _nl_msg_cat_cntr;
11012 extern int *_nl_domain_bindings;
11016 bindtextdomain ("", "");
11017 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
11022 rm -f conftest.$ac_objext conftest$ac_exeext
11023 if { (ac_try="$ac_link"
11024 case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_link") 2>conftest.er1
11031 grep -v '^ *+' conftest.er1 >conftest.err
11033 cat conftest.err >&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } &&
11036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11037 { (case "(($ac_try" in
11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 *) ac_try_echo=$ac_try;;
11041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042 (eval "$ac_try") 2>&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; } &&
11046 { ac_try='test -s conftest$ac_exeext'
11047 { (case "(($ac_try" in
11048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11049 *) ac_try_echo=$ac_try;;
11051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11052 (eval "$ac_try") 2>&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; }; then
11056 gt_cv_func_gnugettext1_libc=yes
11058 echo "$as_me: failed program was:" >&5
11059 sed 's/^/| /' conftest.$ac_ext >&5
11061 gt_cv_func_gnugettext1_libc=no
11064 rm -f core conftest.err conftest.$ac_objext \
11065 conftest$ac_exeext conftest.$ac_ext
11067 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
11068 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
11070 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
11076 acl_save_prefix="$prefix"
11077 prefix="$acl_final_prefix"
11078 acl_save_exec_prefix="$exec_prefix"
11079 exec_prefix="$acl_final_exec_prefix"
11081 eval additional_includedir=\"$includedir\"
11082 eval additional_libdir=\"$libdir\"
11084 exec_prefix="$acl_save_exec_prefix"
11085 prefix="$acl_save_prefix"
11088 # Check whether --with-libintl-prefix was given.
11089 if test "${with_libintl_prefix+set}" = set; then
11090 withval=$with_libintl_prefix;
11091 if test "X$withval" = "Xno"; then
11094 if test "X$withval" = "X"; then
11096 acl_save_prefix="$prefix"
11097 prefix="$acl_final_prefix"
11098 acl_save_exec_prefix="$exec_prefix"
11099 exec_prefix="$acl_final_exec_prefix"
11101 eval additional_includedir=\"$includedir\"
11102 eval additional_libdir=\"$libdir\"
11104 exec_prefix="$acl_save_exec_prefix"
11105 prefix="$acl_save_prefix"
11108 additional_includedir="$withval/include"
11109 additional_libdir="$withval/lib"
11120 names_already_handled=
11121 names_next_round='intl '
11122 while test -n "$names_next_round"; do
11123 names_this_round="$names_next_round"
11125 for name in $names_this_round; do
11127 for n in $names_already_handled; do
11128 if test "$n" = "$name"; then
11129 already_handled=yes
11133 if test -z "$already_handled"; then
11134 names_already_handled="$names_already_handled $name"
11135 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11136 eval value=\"\$HAVE_LIB$uppername\"
11137 if test -n "$value"; then
11138 if test "$value" = yes; then
11139 eval value=\"\$LIB$uppername\"
11140 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11141 eval value=\"\$LTLIB$uppername\"
11142 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11151 if test $use_additional = yes; then
11152 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11153 found_dir="$additional_libdir"
11154 found_so="$additional_libdir/lib$name.$shlibext"
11155 if test -f "$additional_libdir/lib$name.la"; then
11156 found_la="$additional_libdir/lib$name.la"
11159 if test -f "$additional_libdir/lib$name.$libext"; then
11160 found_dir="$additional_libdir"
11161 found_a="$additional_libdir/lib$name.$libext"
11162 if test -f "$additional_libdir/lib$name.la"; then
11163 found_la="$additional_libdir/lib$name.la"
11168 if test "X$found_dir" = "X"; then
11169 for x in $LDFLAGS $LTLIBINTL; do
11171 acl_save_prefix="$prefix"
11172 prefix="$acl_final_prefix"
11173 acl_save_exec_prefix="$exec_prefix"
11174 exec_prefix="$acl_final_exec_prefix"
11176 exec_prefix="$acl_save_exec_prefix"
11177 prefix="$acl_save_prefix"
11181 dir=`echo "X$x" | sed -e 's/^X-L//'`
11182 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11184 found_so="$dir/lib$name.$shlibext"
11185 if test -f "$dir/lib$name.la"; then
11186 found_la="$dir/lib$name.la"
11189 if test -f "$dir/lib$name.$libext"; then
11191 found_a="$dir/lib$name.$libext"
11192 if test -f "$dir/lib$name.la"; then
11193 found_la="$dir/lib$name.la"
11199 if test "X$found_dir" != "X"; then
11204 if test "X$found_dir" != "X"; then
11205 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11206 if test "X$found_so" != "X"; then
11207 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11208 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11211 for x in $ltrpathdirs; do
11212 if test "X$x" = "X$found_dir"; then
11217 if test -z "$haveit"; then
11218 ltrpathdirs="$ltrpathdirs $found_dir"
11220 if test "$hardcode_direct" = yes; then
11221 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11223 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11224 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11226 for x in $rpathdirs; do
11227 if test "X$x" = "X$found_dir"; then
11232 if test -z "$haveit"; then
11233 rpathdirs="$rpathdirs $found_dir"
11237 for x in $LDFLAGS $LIBINTL; do
11239 acl_save_prefix="$prefix"
11240 prefix="$acl_final_prefix"
11241 acl_save_exec_prefix="$exec_prefix"
11242 exec_prefix="$acl_final_exec_prefix"
11244 exec_prefix="$acl_save_exec_prefix"
11245 prefix="$acl_save_prefix"
11247 if test "X$x" = "X-L$found_dir"; then
11252 if test -z "$haveit"; then
11253 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11255 if test "$hardcode_minus_L" != no; then
11256 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11258 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11264 if test "X$found_a" != "X"; then
11265 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11267 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11270 additional_includedir=
11271 case "$found_dir" in
11273 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11274 additional_includedir="$basedir/include"
11277 if test "X$additional_includedir" != "X"; then
11278 if test "X$additional_includedir" != "X/usr/include"; then
11280 if test "X$additional_includedir" = "X/usr/local/include"; then
11281 if test -n "$GCC"; then
11283 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11287 if test -z "$haveit"; then
11288 for x in $CPPFLAGS $INCINTL; do
11290 acl_save_prefix="$prefix"
11291 prefix="$acl_final_prefix"
11292 acl_save_exec_prefix="$exec_prefix"
11293 exec_prefix="$acl_final_exec_prefix"
11295 exec_prefix="$acl_save_exec_prefix"
11296 prefix="$acl_save_prefix"
11298 if test "X$x" = "X-I$additional_includedir"; then
11303 if test -z "$haveit"; then
11304 if test -d "$additional_includedir"; then
11305 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11311 if test -n "$found_la"; then
11312 save_libdir="$libdir"
11313 case "$found_la" in
11314 */* | *\\*) . "$found_la" ;;
11315 *) . "./$found_la" ;;
11317 libdir="$save_libdir"
11318 for dep in $dependency_libs; do
11321 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11322 if test "X$additional_libdir" != "X/usr/lib"; then
11324 if test "X$additional_libdir" = "X/usr/local/lib"; then
11325 if test -n "$GCC"; then
11327 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11331 if test -z "$haveit"; then
11333 for x in $LDFLAGS $LIBINTL; do
11335 acl_save_prefix="$prefix"
11336 prefix="$acl_final_prefix"
11337 acl_save_exec_prefix="$exec_prefix"
11338 exec_prefix="$acl_final_exec_prefix"
11340 exec_prefix="$acl_save_exec_prefix"
11341 prefix="$acl_save_prefix"
11343 if test "X$x" = "X-L$additional_libdir"; then
11348 if test -z "$haveit"; then
11349 if test -d "$additional_libdir"; then
11350 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11354 for x in $LDFLAGS $LTLIBINTL; do
11356 acl_save_prefix="$prefix"
11357 prefix="$acl_final_prefix"
11358 acl_save_exec_prefix="$exec_prefix"
11359 exec_prefix="$acl_final_exec_prefix"
11361 exec_prefix="$acl_save_exec_prefix"
11362 prefix="$acl_save_prefix"
11364 if test "X$x" = "X-L$additional_libdir"; then
11369 if test -z "$haveit"; then
11370 if test -d "$additional_libdir"; then
11371 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11378 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11379 if test "$enable_rpath" != no; then
11381 for x in $rpathdirs; do
11382 if test "X$x" = "X$dir"; then
11387 if test -z "$haveit"; then
11388 rpathdirs="$rpathdirs $dir"
11391 for x in $ltrpathdirs; do
11392 if test "X$x" = "X$dir"; then
11397 if test -z "$haveit"; then
11398 ltrpathdirs="$ltrpathdirs $dir"
11403 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11406 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11409 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11410 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11416 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11417 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11423 if test "X$rpathdirs" != "X"; then
11424 if test -n "$hardcode_libdir_separator"; then
11426 for found_dir in $rpathdirs; do
11427 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11429 acl_save_libdir="$libdir"
11431 eval flag=\"$hardcode_libdir_flag_spec\"
11432 libdir="$acl_save_libdir"
11433 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11435 for found_dir in $rpathdirs; do
11436 acl_save_libdir="$libdir"
11437 libdir="$found_dir"
11438 eval flag=\"$hardcode_libdir_flag_spec\"
11439 libdir="$acl_save_libdir"
11440 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11444 if test "X$ltrpathdirs" != "X"; then
11445 for found_dir in $ltrpathdirs; do
11446 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11450 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11451 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
11452 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11453 echo $ECHO_N "(cached) $ECHO_C" >&6
11455 gt_save_CPPFLAGS="$CPPFLAGS"
11456 CPPFLAGS="$CPPFLAGS $INCINTL"
11457 gt_save_LIBS="$LIBS"
11458 LIBS="$LIBS $LIBINTL"
11459 cat >conftest.$ac_ext <<_ACEOF
11462 cat confdefs.h >>conftest.$ac_ext
11463 cat >>conftest.$ac_ext <<_ACEOF
11464 /* end confdefs.h. */
11465 #include <libintl.h>
11466 extern int _nl_msg_cat_cntr;
11471 const char *_nl_expand_alias (const char *);
11475 bindtextdomain ("", "");
11476 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11481 rm -f conftest.$ac_objext conftest$ac_exeext
11482 if { (ac_try="$ac_link"
11483 case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_link") 2>conftest.er1
11490 grep -v '^ *+' conftest.er1 >conftest.err
11492 cat conftest.err >&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } &&
11495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11496 { (case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_try") 2>&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; } &&
11505 { ac_try='test -s conftest$ac_exeext'
11506 { (case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_try") 2>&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); }; }; then
11515 gt_cv_func_gnugettext1_libintl=yes
11517 echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.$ac_ext >&5
11520 gt_cv_func_gnugettext1_libintl=no
11523 rm -f core conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11525 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11526 LIBS="$LIBS $LIBICONV"
11527 cat >conftest.$ac_ext <<_ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11533 #include <libintl.h>
11534 extern int _nl_msg_cat_cntr;
11539 const char *_nl_expand_alias (const char *);
11543 bindtextdomain ("", "");
11544 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11549 rm -f conftest.$ac_objext conftest$ac_exeext
11550 if { (ac_try="$ac_link"
11551 case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_link") 2>conftest.er1
11558 grep -v '^ *+' conftest.er1 >conftest.err
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } &&
11563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11564 { (case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_try") 2>&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; } &&
11573 { ac_try='test -s conftest$ac_exeext'
11574 { (case "(($ac_try" in
11575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576 *) ac_try_echo=$ac_try;;
11578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579 (eval "$ac_try") 2>&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 LIBINTL="$LIBINTL $LIBICONV"
11584 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11585 gt_cv_func_gnugettext1_libintl=yes
11588 echo "$as_me: failed program was:" >&5
11589 sed 's/^/| /' conftest.$ac_ext >&5
11594 rm -f core conftest.err conftest.$ac_objext \
11595 conftest$ac_exeext conftest.$ac_ext
11597 CPPFLAGS="$gt_save_CPPFLAGS"
11598 LIBS="$gt_save_LIBS"
11600 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11601 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
11604 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11605 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11606 && test "$PACKAGE" != gettext-runtime \
11607 && test "$PACKAGE" != gettext-tools; }; then
11608 gt_use_preinstalled_gnugettext=yes
11616 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11617 nls_cv_use_gnu_gettext=yes
11621 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11622 BUILD_INCLUDED_LIBINTL=yes
11623 USE_INCLUDED_LIBINTL=yes
11624 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11625 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11626 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11630 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11631 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11636 if test -n "$INTL_MACOSX_LIBS"; then
11637 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11638 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11639 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11640 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11644 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11645 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11647 cat >>confdefs.h <<\_ACEOF
11648 #define ENABLE_NLS 1
11656 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
11657 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
11658 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
11659 echo "${ECHO_T}$USE_NLS" >&6; }
11660 if test "$USE_NLS" = "yes"; then
11661 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11662 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
11663 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11664 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11665 gt_source="external libintl"
11670 gt_source="included intl directory"
11672 { echo "$as_me:$LINENO: result: $gt_source" >&5
11673 echo "${ECHO_T}$gt_source" >&6; }
11676 if test "$USE_NLS" = "yes"; then
11678 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11679 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11680 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
11681 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
11682 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
11683 echo "${ECHO_T}$LIBINTL" >&6; }
11685 for element in $INCINTL; do
11687 for x in $CPPFLAGS; do
11689 acl_save_prefix="$prefix"
11690 prefix="$acl_final_prefix"
11691 acl_save_exec_prefix="$exec_prefix"
11692 exec_prefix="$acl_final_exec_prefix"
11694 exec_prefix="$acl_save_exec_prefix"
11695 prefix="$acl_save_prefix"
11697 if test "X$x" = "X$element"; then
11702 if test -z "$haveit"; then
11703 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11710 cat >>confdefs.h <<\_ACEOF
11711 #define HAVE_GETTEXT 1
11715 cat >>confdefs.h <<\_ACEOF
11716 #define HAVE_DCGETTEXT 1
11725 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11726 BUILD_INCLUDED_LIBINTL=yes
11733 nls_cv_header_intl=
11734 nls_cv_header_libgt=
11746 if test "$USE_INCLUDED_LIBINTL" = yes; then
11747 INTLOBJS="\$(GETTOBJS)"
11751 INTL_LIBTOOL_SUFFIX_PREFIX=
11755 INTLLIBS="$LIBINTL"
11767 abook_localedir="$datarootdir/locale"
11768 abook_localedir=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix"
11769 eval echo \""$abook_localedir"\" )`
11771 localedir="\$(datarootdir)/locale"
11774 # Check whether --with-localedir was given.
11775 if test "${with_localedir+set}" = set; then
11776 withval=$with_localedir;
11779 if test "x$with_localedir" != "x"; then
11780 abook_localedir="$with_localedir"
11781 localedir="$with_localedir"
11785 cat >>confdefs.h <<_ACEOF
11786 #define LOCALEDIR "$abook_localedir"
11793 if test x$USE_INCLUDED_LIBINTL = xyes; then
11794 USE_INCLUDED_INTL_H_TRUE=
11795 USE_INCLUDED_INTL_H_FALSE='#'
11797 USE_INCLUDED_INTL_H_TRUE='#'
11798 USE_INCLUDED_INTL_H_FALSE=
11804 ac_cpp='$CPP $CPPFLAGS'
11805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11808 if test -n "$ac_tool_prefix"; then
11809 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11810 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11813 if test "${ac_cv_prog_CC+set}" = set; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
11816 if test -n "$CC"; then
11817 ac_cv_prog_CC="$CC" # Let the user override the test.
11819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820 for as_dir in $PATH
11823 test -z "$as_dir" && as_dir=.
11824 for ac_exec_ext in '' $ac_executable_extensions; do
11825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11826 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11837 if test -n "$CC"; then
11838 { echo "$as_me:$LINENO: result: $CC" >&5
11839 echo "${ECHO_T}$CC" >&6; }
11841 { echo "$as_me:$LINENO: result: no" >&5
11842 echo "${ECHO_T}no" >&6; }
11847 if test -z "$ac_cv_prog_CC"; then
11849 # Extract the first word of "gcc", so it can be a program name with args.
11850 set dummy gcc; ac_word=$2
11851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11853 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11856 if test -n "$ac_ct_CC"; then
11857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11860 for as_dir in $PATH
11863 test -z "$as_dir" && as_dir=.
11864 for ac_exec_ext in '' $ac_executable_extensions; do
11865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11866 ac_cv_prog_ac_ct_CC="gcc"
11867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11877 if test -n "$ac_ct_CC"; then
11878 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11879 echo "${ECHO_T}$ac_ct_CC" >&6; }
11881 { echo "$as_me:$LINENO: result: no" >&5
11882 echo "${ECHO_T}no" >&6; }
11885 if test "x$ac_ct_CC" = x; then
11888 case $cross_compiling:$ac_tool_warned in
11890 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11891 whose name does not start with the host triplet. If you think this
11892 configuration is useful to you, please write to autoconf@gnu.org." >&5
11893 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11894 whose name does not start with the host triplet. If you think this
11895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11896 ac_tool_warned=yes ;;
11901 CC="$ac_cv_prog_CC"
11904 if test -z "$CC"; then
11905 if test -n "$ac_tool_prefix"; then
11906 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11907 set dummy ${ac_tool_prefix}cc; ac_word=$2
11908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11910 if test "${ac_cv_prog_CC+set}" = set; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11913 if test -n "$CC"; then
11914 ac_cv_prog_CC="$CC" # Let the user override the test.
11916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917 for as_dir in $PATH
11920 test -z "$as_dir" && as_dir=.
11921 for ac_exec_ext in '' $ac_executable_extensions; do
11922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11923 ac_cv_prog_CC="${ac_tool_prefix}cc"
11924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11934 if test -n "$CC"; then
11935 { echo "$as_me:$LINENO: result: $CC" >&5
11936 echo "${ECHO_T}$CC" >&6; }
11938 { echo "$as_me:$LINENO: result: no" >&5
11939 echo "${ECHO_T}no" >&6; }
11945 if test -z "$CC"; then
11946 # Extract the first word of "cc", so it can be a program name with args.
11947 set dummy cc; ac_word=$2
11948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11950 if test "${ac_cv_prog_CC+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11953 if test -n "$CC"; then
11954 ac_cv_prog_CC="$CC" # Let the user override the test.
11956 ac_prog_rejected=no
11957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11958 for as_dir in $PATH
11961 test -z "$as_dir" && as_dir=.
11962 for ac_exec_ext in '' $ac_executable_extensions; do
11963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11964 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11965 ac_prog_rejected=yes
11969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11976 if test $ac_prog_rejected = yes; then
11977 # We found a bogon in the path, so make sure we never use it.
11978 set dummy $ac_cv_prog_CC
11980 if test $# != 0; then
11981 # We chose a different compiler from the bogus one.
11982 # However, it has the same basename, so the bogon will be chosen
11983 # first if we set CC to just the basename; use the full file name.
11985 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11991 if test -n "$CC"; then
11992 { echo "$as_me:$LINENO: result: $CC" >&5
11993 echo "${ECHO_T}$CC" >&6; }
11995 { echo "$as_me:$LINENO: result: no" >&5
11996 echo "${ECHO_T}no" >&6; }
12001 if test -z "$CC"; then
12002 if test -n "$ac_tool_prefix"; then
12003 for ac_prog in cl.exe
12005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12009 if test "${ac_cv_prog_CC+set}" = set; then
12010 echo $ECHO_N "(cached) $ECHO_C" >&6
12012 if test -n "$CC"; then
12013 ac_cv_prog_CC="$CC" # Let the user override the test.
12015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016 for as_dir in $PATH
12019 test -z "$as_dir" && as_dir=.
12020 for ac_exec_ext in '' $ac_executable_extensions; do
12021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12022 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12033 if test -n "$CC"; then
12034 { echo "$as_me:$LINENO: result: $CC" >&5
12035 echo "${ECHO_T}$CC" >&6; }
12037 { echo "$as_me:$LINENO: result: no" >&5
12038 echo "${ECHO_T}no" >&6; }
12042 test -n "$CC" && break
12045 if test -z "$CC"; then
12047 for ac_prog in cl.exe
12049 # Extract the first word of "$ac_prog", so it can be a program name with args.
12050 set dummy $ac_prog; ac_word=$2
12051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12054 echo $ECHO_N "(cached) $ECHO_C" >&6
12056 if test -n "$ac_ct_CC"; then
12057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060 for as_dir in $PATH
12063 test -z "$as_dir" && as_dir=.
12064 for ac_exec_ext in '' $ac_executable_extensions; do
12065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12066 ac_cv_prog_ac_ct_CC="$ac_prog"
12067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12077 if test -n "$ac_ct_CC"; then
12078 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12079 echo "${ECHO_T}$ac_ct_CC" >&6; }
12081 { echo "$as_me:$LINENO: result: no" >&5
12082 echo "${ECHO_T}no" >&6; }
12086 test -n "$ac_ct_CC" && break
12089 if test "x$ac_ct_CC" = x; then
12092 case $cross_compiling:$ac_tool_warned in
12094 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12095 whose name does not start with the host triplet. If you think this
12096 configuration is useful to you, please write to autoconf@gnu.org." >&5
12097 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12098 whose name does not start with the host triplet. If you think this
12099 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12100 ac_tool_warned=yes ;;
12109 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12110 See \`config.log' for more details." >&5
12111 echo "$as_me: error: no acceptable C compiler found in \$PATH
12112 See \`config.log' for more details." >&2;}
12113 { (exit 1); exit 1; }; }
12115 # Provide some information about the compiler.
12116 echo "$as_me:$LINENO: checking for C compiler version" >&5
12117 ac_compiler=`set X $ac_compile; echo $2`
12118 { (ac_try="$ac_compiler --version >&5"
12119 case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_compiler --version >&5") 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }
12128 { (ac_try="$ac_compiler -v >&5"
12129 case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_compiler -v >&5") 2>&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }
12138 { (ac_try="$ac_compiler -V >&5"
12139 case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_compiler -V >&5") 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }
12149 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12150 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
12151 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 cat >conftest.$ac_ext <<_ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12172 rm -f conftest.$ac_objext
12173 if { (ac_try="$ac_compile"
12174 case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_compile") 2>conftest.er1
12181 grep -v '^ *+' conftest.er1 >conftest.err
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } &&
12186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12187 { (case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_try") 2>&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest.$ac_objext'
12197 { (case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_try") 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
12206 ac_compiler_gnu=yes
12208 echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12215 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12218 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12219 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
12220 GCC=`test $ac_compiler_gnu = yes && echo yes`
12221 ac_test_CFLAGS=${CFLAGS+set}
12222 ac_save_CFLAGS=$CFLAGS
12223 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12224 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
12225 if test "${ac_cv_prog_cc_g+set}" = set; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12228 ac_save_c_werror_flag=$ac_c_werror_flag
12229 ac_c_werror_flag=yes
12232 cat >conftest.$ac_ext <<_ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12247 rm -f conftest.$ac_objext
12248 if { (ac_try="$ac_compile"
12249 case "(($ac_try" in
12250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251 *) ac_try_echo=$ac_try;;
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254 (eval "$ac_compile") 2>conftest.er1
12256 grep -v '^ *+' conftest.er1 >conftest.err
12258 cat conftest.err >&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } &&
12261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12262 { (case "(($ac_try" in
12263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264 *) ac_try_echo=$ac_try;;
12266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12267 (eval "$ac_try") 2>&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; } &&
12271 { ac_try='test -s conftest.$ac_objext'
12272 { (case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_try") 2>&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; }; then
12281 ac_cv_prog_cc_g=yes
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12287 cat >conftest.$ac_ext <<_ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12302 rm -f conftest.$ac_objext
12303 if { (ac_try="$ac_compile"
12304 case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_compile") 2>conftest.er1
12311 grep -v '^ *+' conftest.er1 >conftest.err
12313 cat conftest.err >&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } &&
12316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12317 { (case "(($ac_try" in
12318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319 *) ac_try_echo=$ac_try;;
12321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322 (eval "$ac_try") 2>&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }; } &&
12326 { ac_try='test -s conftest.$ac_objext'
12327 { (case "(($ac_try" in
12328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12329 *) ac_try_echo=$ac_try;;
12331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12332 (eval "$ac_try") 2>&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; }; then
12338 echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.$ac_ext >&5
12341 ac_c_werror_flag=$ac_save_c_werror_flag
12343 cat >conftest.$ac_ext <<_ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12358 rm -f conftest.$ac_objext
12359 if { (ac_try="$ac_compile"
12360 case "(($ac_try" in
12361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362 *) ac_try_echo=$ac_try;;
12364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365 (eval "$ac_compile") 2>conftest.er1
12367 grep -v '^ *+' conftest.er1 >conftest.err
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
12372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12373 { (case "(($ac_try" in
12374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375 *) ac_try_echo=$ac_try;;
12377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378 (eval "$ac_try") 2>&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; } &&
12382 { ac_try='test -s conftest.$ac_objext'
12383 { (case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_try") 2>&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; }; then
12392 ac_cv_prog_cc_g=yes
12394 echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12407 ac_c_werror_flag=$ac_save_c_werror_flag
12409 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12410 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
12411 if test "$ac_test_CFLAGS" = set; then
12412 CFLAGS=$ac_save_CFLAGS
12413 elif test $ac_cv_prog_cc_g = yes; then
12414 if test "$GCC" = yes; then
12420 if test "$GCC" = yes; then
12426 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12427 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
12428 if test "${ac_cv_prog_cc_c89+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12431 ac_cv_prog_cc_c89=no
12433 cat >conftest.$ac_ext <<_ACEOF
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h. */
12439 #include <stdarg.h>
12441 #include <sys/types.h>
12442 #include <sys/stat.h>
12443 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12444 struct buf { int x; };
12445 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12446 static char *e (p, i)
12452 static char *f (char * (*g) (char **, int), char **p, ...)
12457 s = g (p, va_arg (v,int));
12462 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12463 function prototypes and stuff, but not '\xHH' hex character constants.
12464 These don't provoke an error unfortunately, instead are silently treated
12465 as 'x'. The following induces an error, until -std is added to get
12466 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12467 array size at least. It's necessary to write '\x00'==0 to get something
12468 that's true only with -std. */
12469 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12471 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12472 inside strings and character constants. */
12474 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12476 int test (int i, double x);
12477 struct s1 {int (*f) (int a);};
12478 struct s2 {int (*f) (double a);};
12479 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12485 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12490 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12491 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12493 CC="$ac_save_CC $ac_arg"
12494 rm -f conftest.$ac_objext
12495 if { (ac_try="$ac_compile"
12496 case "(($ac_try" in
12497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498 *) ac_try_echo=$ac_try;;
12500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12501 (eval "$ac_compile") 2>conftest.er1
12503 grep -v '^ *+' conftest.er1 >conftest.err
12505 cat conftest.err >&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); } &&
12508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12509 { (case "(($ac_try" in
12510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511 *) ac_try_echo=$ac_try;;
12513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12514 (eval "$ac_try") 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; } &&
12518 { ac_try='test -s conftest.$ac_objext'
12519 { (case "(($ac_try" in
12520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521 *) ac_try_echo=$ac_try;;
12523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524 (eval "$ac_try") 2>&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; }; then
12528 ac_cv_prog_cc_c89=$ac_arg
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12536 rm -f core conftest.err conftest.$ac_objext
12537 test "x$ac_cv_prog_cc_c89" != "xno" && break
12539 rm -f conftest.$ac_ext
12544 case "x$ac_cv_prog_cc_c89" in
12546 { echo "$as_me:$LINENO: result: none needed" >&5
12547 echo "${ECHO_T}none needed" >&6; } ;;
12549 { echo "$as_me:$LINENO: result: unsupported" >&5
12550 echo "${ECHO_T}unsupported" >&6; } ;;
12552 CC="$CC $ac_cv_prog_cc_c89"
12553 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12554 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
12559 ac_cpp='$CPP $CPPFLAGS'
12560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12564 depcc="$CC" am_compiler_list=
12566 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12567 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
12568 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12571 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12572 # We make a subdir and do the tests there. Otherwise we can end up
12573 # making bogus files that we don't know about and never remove. For
12574 # instance it was reported that on HP-UX the gcc test will end up
12575 # making a dummy file named `D' -- because `-MD' means `put the output
12578 # Copy depcomp to subdir because otherwise we won't find it if we're
12579 # using a relative directory.
12580 cp "$am_depcomp" conftest.dir
12582 # We will build objects and dependencies in a subdirectory because
12583 # it helps to detect inapplicable dependency modes. For instance
12584 # both Tru64's cc and ICC support -MD to output dependencies as a
12585 # side effect of compilation, but ICC will put the dependencies in
12586 # the current directory while Tru64 will put them in the object
12590 am_cv_CC_dependencies_compiler_type=none
12591 if test "$am_compiler_list" = ""; then
12592 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12594 for depmode in $am_compiler_list; do
12595 # Setup a source with many dependencies, because some compilers
12596 # like to wrap large dependency lists on column 80 (with \), and
12597 # we should not choose a depcomp mode which is confused by this.
12599 # We need to recreate these files for each test, as the compiler may
12600 # overwrite some of them when testing with obscure command lines.
12601 # This happens at least with the AIX C compiler.
12603 for i in 1 2 3 4 5 6; do
12604 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12605 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12606 # Solaris 8's {/usr,}/bin/sh.
12607 touch sub/conftst$i.h
12609 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12613 # after this tag, mechanisms are not by side-effect, so they'll
12614 # only be used when explicitly requested
12615 if test "x$enable_dependency_tracking" = xyes; then
12623 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12624 # mode. It turns out that the SunPro C++ compiler does not properly
12625 # handle `-M -o', and we need to detect this.
12626 if depmode=$depmode \
12627 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12628 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12629 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12630 >/dev/null 2>conftest.err &&
12631 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12632 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12633 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12634 # icc doesn't choke on unknown options, it will just issue warnings
12635 # or remarks (even with -Werror). So we grep stderr for any message
12636 # that says an option was ignored or not supported.
12637 # When given -MP, icc 7.0 and 7.1 complain thusly:
12638 # icc: Command line warning: ignoring option '-M'; no argument required
12639 # The diagnosis changed in icc 8.0:
12640 # icc: Command line remark: option '-MP' not supported
12641 if (grep 'ignoring option' conftest.err ||
12642 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12643 am_cv_CC_dependencies_compiler_type=$depmode
12650 rm -rf conftest.dir
12652 am_cv_CC_dependencies_compiler_type=none
12656 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12657 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
12658 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12663 test "x$enable_dependency_tracking" != xno \
12664 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12665 am__fastdepCC_TRUE=
12666 am__fastdepCC_FALSE='#'
12668 am__fastdepCC_TRUE='#'
12669 am__fastdepCC_FALSE=
12673 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
12674 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
12675 if test "${ac_cv_search_strerror+set}" = set; then
12676 echo $ECHO_N "(cached) $ECHO_C" >&6
12678 ac_func_search_save_LIBS=$LIBS
12679 cat >conftest.$ac_ext <<_ACEOF
12682 cat confdefs.h >>conftest.$ac_ext
12683 cat >>conftest.$ac_ext <<_ACEOF
12684 /* end confdefs.h. */
12686 /* Override any GCC internal prototype to avoid an error.
12687 Use char because int might match the return type of a GCC
12688 builtin and then its argument prototype would still apply. */
12696 return strerror ();
12701 for ac_lib in '' cposix; do
12702 if test -z "$ac_lib"; then
12703 ac_res="none required"
12706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12708 rm -f conftest.$ac_objext conftest$ac_exeext
12709 if { (ac_try="$ac_link"
12710 case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_link") 2>conftest.er1
12717 grep -v '^ *+' conftest.er1 >conftest.err
12719 cat conftest.err >&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } &&
12722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12723 { (case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_try") 2>&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; } &&
12732 { ac_try='test -s conftest$ac_exeext'
12733 { (case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_try") 2>&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 ac_cv_search_strerror=$ac_res
12744 echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12750 rm -f core conftest.err conftest.$ac_objext \
12752 if test "${ac_cv_search_strerror+set}" = set; then
12756 if test "${ac_cv_search_strerror+set}" = set; then
12759 ac_cv_search_strerror=no
12761 rm conftest.$ac_ext
12762 LIBS=$ac_func_search_save_LIBS
12764 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
12765 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
12766 ac_res=$ac_cv_search_strerror
12767 if test "$ac_res" != no; then
12768 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12772 { echo "$as_me:$LINENO: checking for function prototypes" >&5
12773 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
12774 if test "$ac_cv_prog_cc_c89" != no; then
12775 { echo "$as_me:$LINENO: result: yes" >&5
12776 echo "${ECHO_T}yes" >&6; }
12778 cat >>confdefs.h <<\_ACEOF
12779 #define PROTOTYPES 1
12783 cat >>confdefs.h <<\_ACEOF
12784 #define __PROTOTYPES 1
12788 { echo "$as_me:$LINENO: result: no" >&5
12789 echo "${ECHO_T}no" >&6; }
12793 if test "$ac_cv_prog_cc_stdc" != no; then
12796 U=_ ANSI2KNR=./ansi2knr
12798 # Ensure some checks needed by ansi2knr itself.
12801 for ac_header in string.h
12803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12805 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12810 ac_res=`eval echo '${'$as_ac_Header'}'`
12811 { echo "$as_me:$LINENO: result: $ac_res" >&5
12812 echo "${ECHO_T}$ac_res" >&6; }
12814 # Is the header compilable?
12815 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12817 cat >conftest.$ac_ext <<_ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12823 $ac_includes_default
12824 #include <$ac_header>
12826 rm -f conftest.$ac_objext
12827 if { (ac_try="$ac_compile"
12828 case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_compile") 2>conftest.er1
12835 grep -v '^ *+' conftest.er1 >conftest.err
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } &&
12840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12841 { (case "(($ac_try" in
12842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12843 *) ac_try_echo=$ac_try;;
12845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12846 (eval "$ac_try") 2>&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; } &&
12850 { ac_try='test -s conftest.$ac_objext'
12851 { (case "(($ac_try" in
12852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853 *) ac_try_echo=$ac_try;;
12855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856 (eval "$ac_try") 2>&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; }; then
12860 ac_header_compiler=yes
12862 echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12865 ac_header_compiler=no
12868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12870 echo "${ECHO_T}$ac_header_compiler" >&6; }
12872 # Is the header present?
12873 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12875 cat >conftest.$ac_ext <<_ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12881 #include <$ac_header>
12883 if { (ac_try="$ac_cpp conftest.$ac_ext"
12884 case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12891 grep -v '^ *+' conftest.er1 >conftest.err
12893 cat conftest.err >&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } >/dev/null; then
12896 if test -s conftest.err; then
12897 ac_cpp_err=$ac_c_preproc_warn_flag
12898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12905 if test -z "$ac_cpp_err"; then
12906 ac_header_preproc=yes
12908 echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12911 ac_header_preproc=no
12914 rm -f conftest.err conftest.$ac_ext
12915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12916 echo "${ECHO_T}$ac_header_preproc" >&6; }
12918 # So? What about this header?
12919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12925 ac_header_preproc=yes
12928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12935 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12948 eval "$as_ac_Header=\$ac_header_preproc"
12950 ac_res=`eval echo '${'$as_ac_Header'}'`
12951 { echo "$as_me:$LINENO: result: $ac_res" >&5
12952 echo "${ECHO_T}$ac_res" >&6; }
12955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12956 cat >>confdefs.h <<_ACEOF
12957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12965 if test "x$U" != "x"; then
12966 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
12967 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
12968 { (exit 1); exit 1; }; }
12970 { echo "$as_me:$LINENO: checking for inline" >&5
12971 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
12972 if test "${ac_cv_c_inline+set}" = set; then
12973 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 for ac_kw in inline __inline__ __inline; do
12977 cat >conftest.$ac_ext <<_ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h. */
12983 #ifndef __cplusplus
12985 static $ac_kw foo_t static_foo () {return 0; }
12986 $ac_kw foo_t foo () {return 0; }
12990 rm -f conftest.$ac_objext
12991 if { (ac_try="$ac_compile"
12992 case "(($ac_try" in
12993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997 (eval "$ac_compile") 2>conftest.er1
12999 grep -v '^ *+' conftest.er1 >conftest.err
13001 cat conftest.err >&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } &&
13004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13005 { (case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010 (eval "$ac_try") 2>&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; } &&
13014 { ac_try='test -s conftest.$ac_objext'
13015 { (case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_try") 2>&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; }; then
13024 ac_cv_c_inline=$ac_kw
13026 echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13033 test "$ac_cv_c_inline" != no && break
13037 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13038 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13041 case $ac_cv_c_inline in
13044 case $ac_cv_c_inline in
13046 *) ac_val=$ac_cv_c_inline;;
13048 cat >>confdefs.h <<_ACEOF
13049 #ifndef __cplusplus
13050 #define inline $ac_val
13056 # Find a good install program. We prefer a C program (faster),
13057 # so one script is as good as another. But avoid the broken or
13058 # incompatible versions:
13059 # SysV /etc/install, /usr/sbin/install
13060 # SunOS /usr/etc/install
13061 # IRIX /sbin/install
13063 # AmigaOS /C/install, which installs bootblocks on floppy discs
13064 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13065 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13066 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13067 # OS/2's system install, which has a completely different semantic
13068 # ./install, which can be erroneously created by make from ./install.sh.
13069 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13070 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
13071 if test -z "$INSTALL"; then
13072 if test "${ac_cv_path_install+set}" = set; then
13073 echo $ECHO_N "(cached) $ECHO_C" >&6
13075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13076 for as_dir in $PATH
13079 test -z "$as_dir" && as_dir=.
13080 # Account for people who put trailing slashes in PATH elements.
13082 ./ | .// | /cC/* | \
13083 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13084 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13087 # OSF1 and SCO ODT 3.0 have their own names for install.
13088 # Don't use installbsd from OSF since it installs stuff as root
13090 for ac_prog in ginstall scoinst install; do
13091 for ac_exec_ext in '' $ac_executable_extensions; do
13092 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
13093 if test $ac_prog = install &&
13094 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13095 # AIX install. It has an incompatible calling convention.
13097 elif test $ac_prog = install &&
13098 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13099 # program-specific install script used by HP pwplus--don't use.
13102 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13115 if test "${ac_cv_path_install+set}" = set; then
13116 INSTALL=$ac_cv_path_install
13118 # As a last resort, use the slow shell script. Don't cache a
13119 # value for INSTALL within a source directory, because that will
13120 # break other packages using the cache if that directory is
13121 # removed, or if the value is a relative name.
13122 INSTALL=$ac_install_sh
13125 { echo "$as_me:$LINENO: result: $INSTALL" >&5
13126 echo "${ECHO_T}$INSTALL" >&6; }
13128 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13129 # It thinks the first close brace ends the variable substitution.
13130 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13132 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13134 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13136 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13137 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
13138 if test "${ac_cv_header_stdc+set}" = set; then
13139 echo $ECHO_N "(cached) $ECHO_C" >&6
13141 cat >conftest.$ac_ext <<_ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13147 #include <stdlib.h>
13148 #include <stdarg.h>
13149 #include <string.h>
13160 rm -f conftest.$ac_objext
13161 if { (ac_try="$ac_compile"
13162 case "(($ac_try" in
13163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13164 *) ac_try_echo=$ac_try;;
13166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13167 (eval "$ac_compile") 2>conftest.er1
13169 grep -v '^ *+' conftest.er1 >conftest.err
13171 cat conftest.err >&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); } &&
13174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13175 { (case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_try") 2>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; } &&
13184 { ac_try='test -s conftest.$ac_objext'
13185 { (case "(($ac_try" in
13186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190 (eval "$ac_try") 2>&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; }; then
13194 ac_cv_header_stdc=yes
13196 echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13199 ac_cv_header_stdc=no
13202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13204 if test $ac_cv_header_stdc = yes; then
13205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13206 cat >conftest.$ac_ext <<_ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h. */
13212 #include <string.h>
13215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13216 $EGREP "memchr" >/dev/null 2>&1; then
13219 ac_cv_header_stdc=no
13225 if test $ac_cv_header_stdc = yes; then
13226 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13227 cat >conftest.$ac_ext <<_ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13233 #include <stdlib.h>
13236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13237 $EGREP "free" >/dev/null 2>&1; then
13240 ac_cv_header_stdc=no
13246 if test $ac_cv_header_stdc = yes; then
13247 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13248 if test "$cross_compiling" = yes; then
13251 cat >conftest.$ac_ext <<_ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h. */
13258 #include <stdlib.h>
13259 #if ((' ' & 0x0FF) == 0x020)
13260 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13261 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13263 # define ISLOWER(c) \
13264 (('a' <= (c) && (c) <= 'i') \
13265 || ('j' <= (c) && (c) <= 'r') \
13266 || ('s' <= (c) && (c) <= 'z'))
13267 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13270 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13275 for (i = 0; i < 256; i++)
13276 if (XOR (islower (i), ISLOWER (i))
13277 || toupper (i) != TOUPPER (i))
13282 rm -f conftest$ac_exeext
13283 if { (ac_try="$ac_link"
13284 case "(($ac_try" in
13285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286 *) ac_try_echo=$ac_try;;
13288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13289 (eval "$ac_link") 2>&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13293 { (case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_try") 2>&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; }; then
13304 echo "$as_me: program exited with status $ac_status" >&5
13305 echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13308 ( exit $ac_status )
13309 ac_cv_header_stdc=no
13311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13317 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13318 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
13319 if test $ac_cv_header_stdc = yes; then
13321 cat >>confdefs.h <<\_ACEOF
13322 #define STDC_HEADERS 1
13331 for ac_header in unistd.h locale.h sys/ioctl.h iconv.h
13333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13338 echo $ECHO_N "(cached) $ECHO_C" >&6
13340 ac_res=`eval echo '${'$as_ac_Header'}'`
13341 { echo "$as_me:$LINENO: result: $ac_res" >&5
13342 echo "${ECHO_T}$ac_res" >&6; }
13344 # Is the header compilable?
13345 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13347 cat >conftest.$ac_ext <<_ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h. */
13353 $ac_includes_default
13354 #include <$ac_header>
13356 rm -f conftest.$ac_objext
13357 if { (ac_try="$ac_compile"
13358 case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_compile") 2>conftest.er1
13365 grep -v '^ *+' conftest.er1 >conftest.err
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } &&
13370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13371 { (case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_try") 2>&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; } &&
13380 { ac_try='test -s conftest.$ac_objext'
13381 { (case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_try") 2>&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }; then
13390 ac_header_compiler=yes
13392 echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13395 ac_header_compiler=no
13398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13400 echo "${ECHO_T}$ac_header_compiler" >&6; }
13402 # Is the header present?
13403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13405 cat >conftest.$ac_ext <<_ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h. */
13411 #include <$ac_header>
13413 if { (ac_try="$ac_cpp conftest.$ac_ext"
13414 case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13421 grep -v '^ *+' conftest.er1 >conftest.err
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } >/dev/null; then
13426 if test -s conftest.err; then
13427 ac_cpp_err=$ac_c_preproc_warn_flag
13428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13435 if test -z "$ac_cpp_err"; then
13436 ac_header_preproc=yes
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13441 ac_header_preproc=no
13444 rm -f conftest.err conftest.$ac_ext
13445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13446 echo "${ECHO_T}$ac_header_preproc" >&6; }
13448 # So? What about this header?
13449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13455 ac_header_preproc=yes
13458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13476 echo $ECHO_N "(cached) $ECHO_C" >&6
13478 eval "$as_ac_Header=\$ac_header_preproc"
13480 ac_res=`eval echo '${'$as_ac_Header'}'`
13481 { echo "$as_me:$LINENO: result: $ac_res" >&5
13482 echo "${ECHO_T}$ac_res" >&6; }
13485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13486 cat >>confdefs.h <<_ACEOF
13487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13494 if test "${ac_cv_header_stdarg_h+set}" = set; then
13495 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
13496 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
13497 if test "${ac_cv_header_stdarg_h+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13500 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
13501 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
13503 # Is the header compilable?
13504 { echo "$as_me:$LINENO: checking stdarg.h usability" >&5
13505 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
13506 cat >conftest.$ac_ext <<_ACEOF
13509 cat confdefs.h >>conftest.$ac_ext
13510 cat >>conftest.$ac_ext <<_ACEOF
13511 /* end confdefs.h. */
13512 $ac_includes_default
13513 #include <stdarg.h>
13515 rm -f conftest.$ac_objext
13516 if { (ac_try="$ac_compile"
13517 case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_compile") 2>conftest.er1
13524 grep -v '^ *+' conftest.er1 >conftest.err
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } &&
13529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13530 { (case "(($ac_try" in
13531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532 *) ac_try_echo=$ac_try;;
13534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535 (eval "$ac_try") 2>&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; } &&
13539 { ac_try='test -s conftest.$ac_objext'
13540 { (case "(($ac_try" in
13541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542 *) ac_try_echo=$ac_try;;
13544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545 (eval "$ac_try") 2>&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
13549 ac_header_compiler=yes
13551 echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.$ac_ext >&5
13554 ac_header_compiler=no
13557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13559 echo "${ECHO_T}$ac_header_compiler" >&6; }
13561 # Is the header present?
13562 { echo "$as_me:$LINENO: checking stdarg.h presence" >&5
13563 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
13564 cat >conftest.$ac_ext <<_ACEOF
13567 cat confdefs.h >>conftest.$ac_ext
13568 cat >>conftest.$ac_ext <<_ACEOF
13569 /* end confdefs.h. */
13570 #include <stdarg.h>
13572 if { (ac_try="$ac_cpp conftest.$ac_ext"
13573 case "(($ac_try" in
13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575 *) ac_try_echo=$ac_try;;
13577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13580 grep -v '^ *+' conftest.er1 >conftest.err
13582 cat conftest.err >&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } >/dev/null; then
13585 if test -s conftest.err; then
13586 ac_cpp_err=$ac_c_preproc_warn_flag
13587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13594 if test -z "$ac_cpp_err"; then
13595 ac_header_preproc=yes
13597 echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13600 ac_header_preproc=no
13603 rm -f conftest.err conftest.$ac_ext
13604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13605 echo "${ECHO_T}$ac_header_preproc" >&6; }
13607 # So? What about this header?
13608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13610 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
13611 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13612 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
13613 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
13614 ac_header_preproc=yes
13617 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
13618 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
13619 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
13620 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
13621 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
13622 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
13623 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
13624 echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
13625 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
13626 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
13627 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
13628 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
13632 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
13633 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
13634 if test "${ac_cv_header_stdarg_h+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13637 ac_cv_header_stdarg_h=$ac_header_preproc
13639 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
13640 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
13643 if test $ac_cv_header_stdarg_h = yes; then
13645 cat >>confdefs.h <<\_ACEOF
13646 #define HAVE_STDARG_H 1
13650 { { echo "$as_me:$LINENO: error: *** stdarg.h is missing on your system ***" >&5
13651 echo "$as_me: error: *** stdarg.h is missing on your system ***" >&2;}
13652 { (exit 1); exit 1; }; }
13656 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13657 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13658 if test "${ac_cv_func_strcoll_works+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 if test "$cross_compiling" = yes; then
13662 ac_cv_func_strcoll_works=no
13664 cat >conftest.$ac_ext <<_ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h. */
13670 $ac_includes_default
13674 return (strcoll ("abc", "def") >= 0 ||
13675 strcoll ("ABC", "DEF") >= 0 ||
13676 strcoll ("123", "456") >= 0)
13681 rm -f conftest$ac_exeext
13682 if { (ac_try="$ac_link"
13683 case "(($ac_try" in
13684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685 *) ac_try_echo=$ac_try;;
13687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13688 (eval "$ac_link") 2>&5
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13692 { (case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_try") 2>&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; }; then
13701 ac_cv_func_strcoll_works=yes
13703 echo "$as_me: program exited with status $ac_status" >&5
13704 echo "$as_me: failed program was:" >&5
13705 sed 's/^/| /' conftest.$ac_ext >&5
13707 ( exit $ac_status )
13708 ac_cv_func_strcoll_works=no
13710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13715 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13716 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13717 if test $ac_cv_func_strcoll_works = yes; then
13719 cat >>confdefs.h <<\_ACEOF
13720 #define HAVE_STRCOLL 1
13726 for ac_func in setlocale
13728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13734 cat >conftest.$ac_ext <<_ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h. */
13740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13742 #define $ac_func innocuous_$ac_func
13744 /* System header to define __stub macros and hopefully few prototypes,
13745 which can conflict with char $ac_func (); below.
13746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13747 <limits.h> exists even on freestanding compilers. */
13750 # include <limits.h>
13752 # include <assert.h>
13757 /* Override any GCC internal prototype to avoid an error.
13758 Use char because int might match the return type of a GCC
13759 builtin and then its argument prototype would still apply. */
13764 /* The GNU C library defines this for functions which it implements
13765 to always fail with ENOSYS. Some functions are actually named
13766 something starting with __ and the normal name is an alias. */
13767 #if defined __stub_$ac_func || defined __stub___$ac_func
13774 return $ac_func ();
13779 rm -f conftest.$ac_objext conftest$ac_exeext
13780 if { (ac_try="$ac_link"
13781 case "(($ac_try" in
13782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783 *) ac_try_echo=$ac_try;;
13785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13786 (eval "$ac_link") 2>conftest.er1
13788 grep -v '^ *+' conftest.er1 >conftest.err
13790 cat conftest.err >&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); } &&
13793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13794 { (case "(($ac_try" in
13795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13796 *) ac_try_echo=$ac_try;;
13798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799 (eval "$ac_try") 2>&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); }; } &&
13803 { ac_try='test -s conftest$ac_exeext'
13804 { (case "(($ac_try" in
13805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809 (eval "$ac_try") 2>&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; }; then
13813 eval "$as_ac_var=yes"
13815 echo "$as_me: failed program was:" >&5
13816 sed 's/^/| /' conftest.$ac_ext >&5
13818 eval "$as_ac_var=no"
13821 rm -f core conftest.err conftest.$ac_objext \
13822 conftest$ac_exeext conftest.$ac_ext
13824 ac_res=`eval echo '${'$as_ac_var'}'`
13825 { echo "$as_me:$LINENO: result: $ac_res" >&5
13826 echo "${ECHO_T}$ac_res" >&6; }
13827 if test `eval echo '${'$as_ac_var'}'` = yes; then
13828 cat >>confdefs.h <<_ACEOF
13829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13837 if test "${ac_cv_header_wchar_h+set}" = set; then
13838 { echo "$as_me:$LINENO: checking for wchar.h" >&5
13839 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
13840 if test "${ac_cv_header_wchar_h+set}" = set; then
13841 echo $ECHO_N "(cached) $ECHO_C" >&6
13843 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
13844 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
13846 # Is the header compilable?
13847 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
13848 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
13849 cat >conftest.$ac_ext <<_ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h. */
13855 $ac_includes_default
13858 rm -f conftest.$ac_objext
13859 if { (ac_try="$ac_compile"
13860 case "(($ac_try" in
13861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862 *) ac_try_echo=$ac_try;;
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865 (eval "$ac_compile") 2>conftest.er1
13867 grep -v '^ *+' conftest.er1 >conftest.err
13869 cat conftest.err >&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } &&
13872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13873 { (case "(($ac_try" in
13874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875 *) ac_try_echo=$ac_try;;
13877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13878 (eval "$ac_try") 2>&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; } &&
13882 { ac_try='test -s conftest.$ac_objext'
13883 { (case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_try") 2>&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; }; then
13892 ac_header_compiler=yes
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 ac_header_compiler=no
13900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13902 echo "${ECHO_T}$ac_header_compiler" >&6; }
13904 # Is the header present?
13905 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
13906 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
13907 cat >conftest.$ac_ext <<_ACEOF
13910 cat confdefs.h >>conftest.$ac_ext
13911 cat >>conftest.$ac_ext <<_ACEOF
13912 /* end confdefs.h. */
13915 if { (ac_try="$ac_cpp conftest.$ac_ext"
13916 case "(($ac_try" in
13917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918 *) ac_try_echo=$ac_try;;
13920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13923 grep -v '^ *+' conftest.er1 >conftest.err
13925 cat conftest.err >&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } >/dev/null; then
13928 if test -s conftest.err; then
13929 ac_cpp_err=$ac_c_preproc_warn_flag
13930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13937 if test -z "$ac_cpp_err"; then
13938 ac_header_preproc=yes
13940 echo "$as_me: failed program was:" >&5
13941 sed 's/^/| /' conftest.$ac_ext >&5
13943 ac_header_preproc=no
13946 rm -f conftest.err conftest.$ac_ext
13947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13948 echo "${ECHO_T}$ac_header_preproc" >&6; }
13950 # So? What about this header?
13951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13953 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
13954 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13955 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
13956 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
13957 ac_header_preproc=yes
13960 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
13961 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
13962 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
13963 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
13964 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
13965 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
13966 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
13967 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
13968 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
13969 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
13970 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
13971 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
13975 { echo "$as_me:$LINENO: checking for wchar.h" >&5
13976 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
13977 if test "${ac_cv_header_wchar_h+set}" = set; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13980 ac_cv_header_wchar_h=$ac_header_preproc
13982 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
13983 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
13986 if test $ac_cv_header_wchar_h = yes; then
13988 ac_have_wchar_h=yes
13990 cat >>confdefs.h <<\_ACEOF
13991 #define HAVE_WCHAR_H 1
14003 for ac_func in mbtowc wcwidth mbrtowc mbsinit
14005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14009 echo $ECHO_N "(cached) $ECHO_C" >&6
14011 cat >conftest.$ac_ext <<_ACEOF
14014 cat confdefs.h >>conftest.$ac_ext
14015 cat >>conftest.$ac_ext <<_ACEOF
14016 /* end confdefs.h. */
14017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14019 #define $ac_func innocuous_$ac_func
14021 /* System header to define __stub macros and hopefully few prototypes,
14022 which can conflict with char $ac_func (); below.
14023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14024 <limits.h> exists even on freestanding compilers. */
14027 # include <limits.h>
14029 # include <assert.h>
14034 /* Override any GCC internal prototype to avoid an error.
14035 Use char because int might match the return type of a GCC
14036 builtin and then its argument prototype would still apply. */
14041 /* The GNU C library defines this for functions which it implements
14042 to always fail with ENOSYS. Some functions are actually named
14043 something starting with __ and the normal name is an alias. */
14044 #if defined __stub_$ac_func || defined __stub___$ac_func
14051 return $ac_func ();
14056 rm -f conftest.$ac_objext conftest$ac_exeext
14057 if { (ac_try="$ac_link"
14058 case "(($ac_try" in
14059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060 *) ac_try_echo=$ac_try;;
14062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063 (eval "$ac_link") 2>conftest.er1
14065 grep -v '^ *+' conftest.er1 >conftest.err
14067 cat conftest.err >&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); } &&
14070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14071 { (case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_try") 2>&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); }; } &&
14080 { ac_try='test -s conftest$ac_exeext'
14081 { (case "(($ac_try" in
14082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083 *) ac_try_echo=$ac_try;;
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_try") 2>&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; }; then
14090 eval "$as_ac_var=yes"
14092 echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14095 eval "$as_ac_var=no"
14098 rm -f core conftest.err conftest.$ac_objext \
14099 conftest$ac_exeext conftest.$ac_ext
14101 ac_res=`eval echo '${'$as_ac_var'}'`
14102 { echo "$as_me:$LINENO: result: $ac_res" >&5
14103 echo "${ECHO_T}$ac_res" >&6; }
14104 if test `eval echo '${'$as_ac_var'}'` = yes; then
14105 cat >>confdefs.h <<_ACEOF
14106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14114 { echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
14115 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6; }
14116 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14119 cat >conftest.$ac_ext <<_ACEOF
14122 cat confdefs.h >>conftest.$ac_ext
14123 cat >>conftest.$ac_ext <<_ACEOF
14124 /* end confdefs.h. */
14125 $ac_includes_default
14130 char *p = (char *) wcwidth;
14138 rm -f conftest.$ac_objext
14139 if { (ac_try="$ac_compile"
14140 case "(($ac_try" in
14141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142 *) ac_try_echo=$ac_try;;
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145 (eval "$ac_compile") 2>conftest.er1
14147 grep -v '^ *+' conftest.er1 >conftest.err
14149 cat conftest.err >&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } &&
14152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14153 { (case "(($ac_try" in
14154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158 (eval "$ac_try") 2>&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; } &&
14162 { ac_try='test -s conftest.$ac_objext'
14163 { (case "(($ac_try" in
14164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165 *) ac_try_echo=$ac_try;;
14167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14168 (eval "$ac_try") 2>&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; }; then
14172 ac_cv_have_decl_wcwidth=yes
14174 echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14177 ac_cv_have_decl_wcwidth=no
14180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14182 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
14183 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6; }
14184 if test $ac_cv_have_decl_wcwidth = yes; then
14186 cat >>confdefs.h <<_ACEOF
14187 #define HAVE_DECL_WCWIDTH 1
14192 cat >>confdefs.h <<_ACEOF
14193 #define HAVE_DECL_WCWIDTH 0
14200 { echo "$as_me:$LINENO: checking for wchar_t" >&5
14201 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
14202 if test "${ac_cv_type_wchar_t+set}" = set; then
14203 echo $ECHO_N "(cached) $ECHO_C" >&6
14205 cat >conftest.$ac_ext <<_ACEOF
14208 cat confdefs.h >>conftest.$ac_ext
14209 cat >>conftest.$ac_ext <<_ACEOF
14210 /* end confdefs.h. */
14211 $ac_includes_default
14212 typedef wchar_t ac__type_new_;
14216 if ((ac__type_new_ *) 0)
14218 if (sizeof (ac__type_new_))
14224 rm -f conftest.$ac_objext
14225 if { (ac_try="$ac_compile"
14226 case "(($ac_try" in
14227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228 *) ac_try_echo=$ac_try;;
14230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231 (eval "$ac_compile") 2>conftest.er1
14233 grep -v '^ *+' conftest.er1 >conftest.err
14235 cat conftest.err >&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); } &&
14238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14239 { (case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_try") 2>&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; } &&
14248 { ac_try='test -s conftest.$ac_objext'
14249 { (case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_try") 2>&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; }; then
14258 ac_cv_type_wchar_t=yes
14260 echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14263 ac_cv_type_wchar_t=no
14266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14268 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
14269 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
14270 if test $ac_cv_type_wchar_t = yes; then
14277 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
14278 ac_widec_possible=yes
14280 ac_widec_possible=no
14284 abook_cv_curses=/usr
14286 # Check whether --with-curses was given.
14287 if test "${with_curses+set}" = set; then
14288 withval=$with_curses; if test $withval != yes; then
14289 abook_cv_curses=$withval
14291 if test x$abook_cv_curses != x/usr; then
14292 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
14293 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
14298 { echo "$as_me:$LINENO: checking for initscr in -lncursesw" >&5
14299 echo $ECHO_N "checking for initscr in -lncursesw... $ECHO_C" >&6; }
14300 if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14303 ac_check_lib_save_LIBS=$LIBS
14304 LIBS="-lncursesw $LIBS"
14305 cat >conftest.$ac_ext <<_ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14312 /* Override any GCC internal prototype to avoid an error.
14313 Use char because int might match the return type of a GCC
14314 builtin and then its argument prototype would still apply. */
14327 rm -f conftest.$ac_objext conftest$ac_exeext
14328 if { (ac_try="$ac_link"
14329 case "(($ac_try" in
14330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331 *) ac_try_echo=$ac_try;;
14333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334 (eval "$ac_link") 2>conftest.er1
14336 grep -v '^ *+' conftest.er1 >conftest.err
14338 cat conftest.err >&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); } &&
14341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14342 { (case "(($ac_try" in
14343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344 *) ac_try_echo=$ac_try;;
14346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347 (eval "$ac_try") 2>&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; } &&
14351 { ac_try='test -s conftest$ac_exeext'
14352 { (case "(($ac_try" in
14353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354 *) ac_try_echo=$ac_try;;
14356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357 (eval "$ac_try") 2>&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
14361 ac_cv_lib_ncursesw_initscr=yes
14363 echo "$as_me: failed program was:" >&5
14364 sed 's/^/| /' conftest.$ac_ext >&5
14366 ac_cv_lib_ncursesw_initscr=no
14369 rm -f core conftest.err conftest.$ac_objext \
14370 conftest$ac_exeext conftest.$ac_ext
14371 LIBS=$ac_check_lib_save_LIBS
14373 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_initscr" >&5
14374 echo "${ECHO_T}$ac_cv_lib_ncursesw_initscr" >&6; }
14375 if test $ac_cv_lib_ncursesw_initscr = yes; then
14376 LIBS="$LIBS -lncursesw"
14377 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
14378 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
14381 for ac_header in ncurses.h
14383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14388 echo $ECHO_N "(cached) $ECHO_C" >&6
14390 ac_res=`eval echo '${'$as_ac_Header'}'`
14391 { echo "$as_me:$LINENO: result: $ac_res" >&5
14392 echo "${ECHO_T}$ac_res" >&6; }
14394 # Is the header compilable?
14395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14397 cat >conftest.$ac_ext <<_ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h. */
14403 $ac_includes_default
14404 #include <$ac_header>
14406 rm -f conftest.$ac_objext
14407 if { (ac_try="$ac_compile"
14408 case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_compile") 2>conftest.er1
14415 grep -v '^ *+' conftest.er1 >conftest.err
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } &&
14420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14421 { (case "(($ac_try" in
14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423 *) ac_try_echo=$ac_try;;
14425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14426 (eval "$ac_try") 2>&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; } &&
14430 { ac_try='test -s conftest.$ac_objext'
14431 { (case "(($ac_try" in
14432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433 *) ac_try_echo=$ac_try;;
14435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436 (eval "$ac_try") 2>&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); }; }; then
14440 ac_header_compiler=yes
14442 echo "$as_me: failed program was:" >&5
14443 sed 's/^/| /' conftest.$ac_ext >&5
14445 ac_header_compiler=no
14448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14450 echo "${ECHO_T}$ac_header_compiler" >&6; }
14452 # Is the header present?
14453 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14455 cat >conftest.$ac_ext <<_ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14461 #include <$ac_header>
14463 if { (ac_try="$ac_cpp conftest.$ac_ext"
14464 case "(($ac_try" in
14465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466 *) ac_try_echo=$ac_try;;
14468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14471 grep -v '^ *+' conftest.er1 >conftest.err
14473 cat conftest.err >&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } >/dev/null; then
14476 if test -s conftest.err; then
14477 ac_cpp_err=$ac_c_preproc_warn_flag
14478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14485 if test -z "$ac_cpp_err"; then
14486 ac_header_preproc=yes
14488 echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14491 ac_header_preproc=no
14494 rm -f conftest.err conftest.$ac_ext
14495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14496 echo "${ECHO_T}$ac_header_preproc" >&6; }
14498 # So? What about this header?
14499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14505 ac_header_preproc=yes
14508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14515 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14526 echo $ECHO_N "(cached) $ECHO_C" >&6
14528 eval "$as_ac_Header=\$ac_header_preproc"
14530 ac_res=`eval echo '${'$as_ac_Header'}'`
14531 { echo "$as_me:$LINENO: result: $ac_res" >&5
14532 echo "${ECHO_T}$ac_res" >&6; }
14535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14536 cat >>confdefs.h <<_ACEOF
14537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14546 ac_widec_possible=no
14547 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
14548 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
14549 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
14550 echo $ECHO_N "(cached) $ECHO_C" >&6
14552 ac_check_lib_save_LIBS=$LIBS
14553 LIBS="-lncurses $LIBS"
14554 cat >conftest.$ac_ext <<_ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h. */
14561 /* Override any GCC internal prototype to avoid an error.
14562 Use char because int might match the return type of a GCC
14563 builtin and then its argument prototype would still apply. */
14576 rm -f conftest.$ac_objext conftest$ac_exeext
14577 if { (ac_try="$ac_link"
14578 case "(($ac_try" in
14579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580 *) ac_try_echo=$ac_try;;
14582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583 (eval "$ac_link") 2>conftest.er1
14585 grep -v '^ *+' conftest.er1 >conftest.err
14587 cat conftest.err >&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } &&
14590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14591 { (case "(($ac_try" in
14592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593 *) ac_try_echo=$ac_try;;
14595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596 (eval "$ac_try") 2>&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; } &&
14600 { ac_try='test -s conftest$ac_exeext'
14601 { (case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606 (eval "$ac_try") 2>&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }; then
14610 ac_cv_lib_ncurses_initscr=yes
14612 echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.$ac_ext >&5
14615 ac_cv_lib_ncurses_initscr=no
14618 rm -f core conftest.err conftest.$ac_objext \
14619 conftest$ac_exeext conftest.$ac_ext
14620 LIBS=$ac_check_lib_save_LIBS
14622 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
14623 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
14624 if test $ac_cv_lib_ncurses_initscr = yes; then
14625 LIBS="$LIBS -lncurses"
14626 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
14627 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
14630 for ac_header in ncurses.h
14632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14637 echo $ECHO_N "(cached) $ECHO_C" >&6
14639 ac_res=`eval echo '${'$as_ac_Header'}'`
14640 { echo "$as_me:$LINENO: result: $ac_res" >&5
14641 echo "${ECHO_T}$ac_res" >&6; }
14643 # Is the header compilable?
14644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14646 cat >conftest.$ac_ext <<_ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14652 $ac_includes_default
14653 #include <$ac_header>
14655 rm -f conftest.$ac_objext
14656 if { (ac_try="$ac_compile"
14657 case "(($ac_try" in
14658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659 *) ac_try_echo=$ac_try;;
14661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14662 (eval "$ac_compile") 2>conftest.er1
14664 grep -v '^ *+' conftest.er1 >conftest.err
14666 cat conftest.err >&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } &&
14669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14670 { (case "(($ac_try" in
14671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672 *) ac_try_echo=$ac_try;;
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675 (eval "$ac_try") 2>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; } &&
14679 { ac_try='test -s conftest.$ac_objext'
14680 { (case "(($ac_try" in
14681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14682 *) ac_try_echo=$ac_try;;
14684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14685 (eval "$ac_try") 2>&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); }; }; then
14689 ac_header_compiler=yes
14691 echo "$as_me: failed program was:" >&5
14692 sed 's/^/| /' conftest.$ac_ext >&5
14694 ac_header_compiler=no
14697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14699 echo "${ECHO_T}$ac_header_compiler" >&6; }
14701 # Is the header present?
14702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14704 cat >conftest.$ac_ext <<_ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h. */
14710 #include <$ac_header>
14712 if { (ac_try="$ac_cpp conftest.$ac_ext"
14713 case "(($ac_try" in
14714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715 *) ac_try_echo=$ac_try;;
14717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14720 grep -v '^ *+' conftest.er1 >conftest.err
14722 cat conftest.err >&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } >/dev/null; then
14725 if test -s conftest.err; then
14726 ac_cpp_err=$ac_c_preproc_warn_flag
14727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14734 if test -z "$ac_cpp_err"; then
14735 ac_header_preproc=yes
14737 echo "$as_me: failed program was:" >&5
14738 sed 's/^/| /' conftest.$ac_ext >&5
14740 ac_header_preproc=no
14743 rm -f conftest.err conftest.$ac_ext
14744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14745 echo "${ECHO_T}$ac_header_preproc" >&6; }
14747 # So? What about this header?
14748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14754 ac_header_preproc=yes
14757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14775 echo $ECHO_N "(cached) $ECHO_C" >&6
14777 eval "$as_ac_Header=\$ac_header_preproc"
14779 ac_res=`eval echo '${'$as_ac_Header'}'`
14780 { echo "$as_me:$LINENO: result: $ac_res" >&5
14781 echo "${ECHO_T}$ac_res" >&6; }
14784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14785 cat >>confdefs.h <<_ACEOF
14786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14795 { echo "$as_me:$LINENO: checking for initscr" >&5
14796 echo $ECHO_N "checking for initscr... $ECHO_C" >&6; }
14797 if test "${ac_cv_func_initscr+set}" = set; then
14798 echo $ECHO_N "(cached) $ECHO_C" >&6
14800 cat >conftest.$ac_ext <<_ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h. */
14806 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
14807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14808 #define initscr innocuous_initscr
14810 /* System header to define __stub macros and hopefully few prototypes,
14811 which can conflict with char initscr (); below.
14812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14813 <limits.h> exists even on freestanding compilers. */
14816 # include <limits.h>
14818 # include <assert.h>
14823 /* Override any GCC internal prototype to avoid an error.
14824 Use char because int might match the return type of a GCC
14825 builtin and then its argument prototype would still apply. */
14830 /* The GNU C library defines this for functions which it implements
14831 to always fail with ENOSYS. Some functions are actually named
14832 something starting with __ and the normal name is an alias. */
14833 #if defined __stub_initscr || defined __stub___initscr
14845 rm -f conftest.$ac_objext conftest$ac_exeext
14846 if { (ac_try="$ac_link"
14847 case "(($ac_try" in
14848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14849 *) ac_try_echo=$ac_try;;
14851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14852 (eval "$ac_link") 2>conftest.er1
14854 grep -v '^ *+' conftest.er1 >conftest.err
14856 cat conftest.err >&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } &&
14859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14860 { (case "(($ac_try" in
14861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14862 *) ac_try_echo=$ac_try;;
14864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14865 (eval "$ac_try") 2>&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); }; } &&
14869 { ac_try='test -s conftest$ac_exeext'
14870 { (case "(($ac_try" in
14871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872 *) ac_try_echo=$ac_try;;
14874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875 (eval "$ac_try") 2>&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; }; then
14879 ac_cv_func_initscr=yes
14881 echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14884 ac_cv_func_initscr=no
14887 rm -f core conftest.err conftest.$ac_objext \
14888 conftest$ac_exeext conftest.$ac_ext
14890 { echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
14891 echo "${ECHO_T}$ac_cv_func_initscr" >&6; }
14892 if test $ac_cv_func_initscr = yes; then
14896 case $host_os in #(vi
14898 { echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
14899 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6; }
14900 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
14901 echo $ECHO_N "(cached) $ECHO_C" >&6
14903 ac_check_lib_save_LIBS=$LIBS
14904 LIBS="-lmytinfo $LIBS"
14905 cat >conftest.$ac_ext <<_ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h. */
14912 /* Override any GCC internal prototype to avoid an error.
14913 Use char because int might match the return type of a GCC
14914 builtin and then its argument prototype would still apply. */
14927 rm -f conftest.$ac_objext conftest$ac_exeext
14928 if { (ac_try="$ac_link"
14929 case "(($ac_try" in
14930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931 *) ac_try_echo=$ac_try;;
14933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14934 (eval "$ac_link") 2>conftest.er1
14936 grep -v '^ *+' conftest.er1 >conftest.err
14938 cat conftest.err >&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); } &&
14941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14942 { (case "(($ac_try" in
14943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14944 *) ac_try_echo=$ac_try;;
14946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14947 (eval "$ac_try") 2>&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; } &&
14951 { ac_try='test -s conftest$ac_exeext'
14952 { (case "(($ac_try" in
14953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954 *) ac_try_echo=$ac_try;;
14956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14957 (eval "$ac_try") 2>&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); }; }; then
14961 ac_cv_lib_mytinfo_tgoto=yes
14963 echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14966 ac_cv_lib_mytinfo_tgoto=no
14969 rm -f core conftest.err conftest.$ac_objext \
14970 conftest$ac_exeext conftest.$ac_ext
14971 LIBS=$ac_check_lib_save_LIBS
14973 { echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
14974 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6; }
14975 if test $ac_cv_lib_mytinfo_tgoto = yes; then
14976 LIBS="-lmytinfo $LIBS"
14981 { echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
14982 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6; }
14983 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
14984 echo $ECHO_N "(cached) $ECHO_C" >&6
14986 ac_check_lib_save_LIBS=$LIBS
14987 LIBS="-lcur_colr $LIBS"
14988 cat >conftest.$ac_ext <<_ACEOF
14991 cat confdefs.h >>conftest.$ac_ext
14992 cat >>conftest.$ac_ext <<_ACEOF
14993 /* end confdefs.h. */
14995 /* Override any GCC internal prototype to avoid an error.
14996 Use char because int might match the return type of a GCC
14997 builtin and then its argument prototype would still apply. */
15010 rm -f conftest.$ac_objext conftest$ac_exeext
15011 if { (ac_try="$ac_link"
15012 case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_link") 2>conftest.er1
15019 grep -v '^ *+' conftest.er1 >conftest.err
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } &&
15024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15025 { (case "(($ac_try" in
15026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027 *) ac_try_echo=$ac_try;;
15029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15030 (eval "$ac_try") 2>&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; } &&
15034 { ac_try='test -s conftest$ac_exeext'
15035 { (case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_try") 2>&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 ac_cv_lib_cur_colr_initscr=yes
15046 echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15049 ac_cv_lib_cur_colr_initscr=no
15052 rm -f core conftest.err conftest.$ac_objext \
15053 conftest$ac_exeext conftest.$ac_ext
15054 LIBS=$ac_check_lib_save_LIBS
15056 { echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
15057 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6; }
15058 if test $ac_cv_lib_cur_colr_initscr = yes; then
15060 LIBS="-lcur_colr $LIBS"
15061 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
15062 ac_cv_func_initscr=yes
15066 { echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
15067 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6; }
15068 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
15069 echo $ECHO_N "(cached) $ECHO_C" >&6
15071 ac_check_lib_save_LIBS=$LIBS
15072 LIBS="-lHcurses $LIBS"
15073 cat >conftest.$ac_ext <<_ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h. */
15080 /* Override any GCC internal prototype to avoid an error.
15081 Use char because int might match the return type of a GCC
15082 builtin and then its argument prototype would still apply. */
15095 rm -f conftest.$ac_objext conftest$ac_exeext
15096 if { (ac_try="$ac_link"
15097 case "(($ac_try" in
15098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099 *) ac_try_echo=$ac_try;;
15101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102 (eval "$ac_link") 2>conftest.er1
15104 grep -v '^ *+' conftest.er1 >conftest.err
15106 cat conftest.err >&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } &&
15109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15110 { (case "(($ac_try" in
15111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112 *) ac_try_echo=$ac_try;;
15114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15115 (eval "$ac_try") 2>&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; } &&
15119 { ac_try='test -s conftest$ac_exeext'
15120 { (case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_try") 2>&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; }; then
15129 ac_cv_lib_Hcurses_initscr=yes
15131 echo "$as_me: failed program was:" >&5
15132 sed 's/^/| /' conftest.$ac_ext >&5
15134 ac_cv_lib_Hcurses_initscr=no
15137 rm -f core conftest.err conftest.$ac_objext \
15138 conftest$ac_exeext conftest.$ac_ext
15139 LIBS=$ac_check_lib_save_LIBS
15141 { echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
15142 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6; }
15143 if test $ac_cv_lib_Hcurses_initscr = yes; then
15145 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
15146 LIBS="-lHcurses $LIBS"
15147 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
15148 ac_cv_func_initscr=yes
15155 linux*) # Suse Linux does not follow /usr/lib convention
15156 LIBS="$LIBS -L/lib"
15160 if test ".$With5lib" != ".no" ; then
15161 if test -d /usr/5lib ; then
15163 CPPFLAGS="$CPPFLAGS -I/usr/5include"
15164 LIBS="$LIBS -L/usr/5lib"
15168 if test ".$ac_cv_func_initscr" != .yes ; then
15169 cf_save_LIBS="$LIBS"
15173 # Check for library containing tgoto. Do this before curses library
15174 # because it may be needed to link the test-case for initscr.
15175 { echo "$as_me:$LINENO: checking for tgoto" >&5
15176 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6; }
15177 if test "${ac_cv_func_tgoto+set}" = set; then
15178 echo $ECHO_N "(cached) $ECHO_C" >&6
15180 cat >conftest.$ac_ext <<_ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h. */
15186 /* Define tgoto to an innocuous variant, in case <limits.h> declares tgoto.
15187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15188 #define tgoto innocuous_tgoto
15190 /* System header to define __stub macros and hopefully few prototypes,
15191 which can conflict with char tgoto (); below.
15192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15193 <limits.h> exists even on freestanding compilers. */
15196 # include <limits.h>
15198 # include <assert.h>
15203 /* Override any GCC internal prototype to avoid an error.
15204 Use char because int might match the return type of a GCC
15205 builtin and then its argument prototype would still apply. */
15210 /* The GNU C library defines this for functions which it implements
15211 to always fail with ENOSYS. Some functions are actually named
15212 something starting with __ and the normal name is an alias. */
15213 #if defined __stub_tgoto || defined __stub___tgoto
15225 rm -f conftest.$ac_objext conftest$ac_exeext
15226 if { (ac_try="$ac_link"
15227 case "(($ac_try" in
15228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15229 *) ac_try_echo=$ac_try;;
15231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15232 (eval "$ac_link") 2>conftest.er1
15234 grep -v '^ *+' conftest.er1 >conftest.err
15236 cat conftest.err >&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } &&
15239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15240 { (case "(($ac_try" in
15241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242 *) ac_try_echo=$ac_try;;
15244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245 (eval "$ac_try") 2>&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; } &&
15249 { ac_try='test -s conftest$ac_exeext'
15250 { (case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_try") 2>&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; }; then
15259 ac_cv_func_tgoto=yes
15261 echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15264 ac_cv_func_tgoto=no
15267 rm -f core conftest.err conftest.$ac_objext \
15268 conftest$ac_exeext conftest.$ac_ext
15270 { echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
15271 echo "${ECHO_T}$ac_cv_func_tgoto" >&6; }
15272 if test $ac_cv_func_tgoto = yes; then
15273 cf_term_lib=predefined
15276 for cf_term_lib in termcap termlib unknown
15278 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
15279 { echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
15280 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6; }
15281 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
15282 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 ac_check_lib_save_LIBS=$LIBS
15285 LIBS="-l$cf_term_lib $LIBS"
15286 cat >conftest.$ac_ext <<_ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15293 /* Override any GCC internal prototype to avoid an error.
15294 Use char because int might match the return type of a GCC
15295 builtin and then its argument prototype would still apply. */
15308 rm -f conftest.$ac_objext conftest$ac_exeext
15309 if { (ac_try="$ac_link"
15310 case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315 (eval "$ac_link") 2>conftest.er1
15317 grep -v '^ *+' conftest.er1 >conftest.err
15319 cat conftest.err >&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } &&
15322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15323 { (case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328 (eval "$ac_try") 2>&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; } &&
15332 { ac_try='test -s conftest$ac_exeext'
15333 { (case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_try") 2>&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; }; then
15342 eval "$as_ac_Lib=yes"
15344 echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.$ac_ext >&5
15347 eval "$as_ac_Lib=no"
15350 rm -f core conftest.err conftest.$ac_objext \
15351 conftest$ac_exeext conftest.$ac_ext
15352 LIBS=$ac_check_lib_save_LIBS
15354 ac_res=`eval echo '${'$as_ac_Lib'}'`
15355 { echo "$as_me:$LINENO: result: $ac_res" >&5
15356 echo "${ECHO_T}$ac_res" >&6; }
15357 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15366 # Check for library containing initscr
15367 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
15368 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
15370 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
15371 { echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
15372 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6; }
15373 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15376 ac_check_lib_save_LIBS=$LIBS
15377 LIBS="-l$cf_curs_lib $LIBS"
15378 cat >conftest.$ac_ext <<_ACEOF
15381 cat confdefs.h >>conftest.$ac_ext
15382 cat >>conftest.$ac_ext <<_ACEOF
15383 /* end confdefs.h. */
15385 /* Override any GCC internal prototype to avoid an error.
15386 Use char because int might match the return type of a GCC
15387 builtin and then its argument prototype would still apply. */
15400 rm -f conftest.$ac_objext conftest$ac_exeext
15401 if { (ac_try="$ac_link"
15402 case "(($ac_try" in
15403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404 *) ac_try_echo=$ac_try;;
15406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15407 (eval "$ac_link") 2>conftest.er1
15409 grep -v '^ *+' conftest.er1 >conftest.err
15411 cat conftest.err >&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } &&
15414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15415 { (case "(($ac_try" in
15416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417 *) ac_try_echo=$ac_try;;
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420 (eval "$ac_try") 2>&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; } &&
15424 { ac_try='test -s conftest$ac_exeext'
15425 { (case "(($ac_try" in
15426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427 *) ac_try_echo=$ac_try;;
15429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15430 (eval "$ac_try") 2>&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; }; then
15434 eval "$as_ac_Lib=yes"
15436 echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15439 eval "$as_ac_Lib=no"
15442 rm -f core conftest.err conftest.$ac_objext \
15443 conftest$ac_exeext conftest.$ac_ext
15444 LIBS=$ac_check_lib_save_LIBS
15446 ac_res=`eval echo '${'$as_ac_Lib'}'`
15447 { echo "$as_me:$LINENO: result: $ac_res" >&5
15448 echo "${ECHO_T}$ac_res" >&6; }
15449 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15454 test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
15455 echo "$as_me: error: no curses library found" >&2;}
15456 { (exit 1); exit 1; }; }
15458 LIBS="-l$cf_curs_lib $cf_save_LIBS"
15459 if test "$cf_term_lib" = unknown ; then
15460 { echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
15461 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6; }
15462 cat >conftest.$ac_ext <<_ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h. */
15468 #include <${cf_cv_ncurses_header-curses.h}>
15477 rm -f conftest.$ac_objext conftest$ac_exeext
15478 if { (ac_try="$ac_link"
15479 case "(($ac_try" in
15480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15481 *) ac_try_echo=$ac_try;;
15483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15484 (eval "$ac_link") 2>conftest.er1
15486 grep -v '^ *+' conftest.er1 >conftest.err
15488 cat conftest.err >&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); } &&
15491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15492 { (case "(($ac_try" in
15493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494 *) ac_try_echo=$ac_try;;
15496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497 (eval "$ac_try") 2>&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; } &&
15501 { ac_try='test -s conftest$ac_exeext'
15502 { (case "(($ac_try" in
15503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504 *) ac_try_echo=$ac_try;;
15506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507 (eval "$ac_try") 2>&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); }; }; then
15513 echo "$as_me: failed program was:" >&5
15514 sed 's/^/| /' conftest.$ac_ext >&5
15519 rm -f core conftest.err conftest.$ac_objext \
15520 conftest$ac_exeext conftest.$ac_ext
15521 { echo "$as_me:$LINENO: result: $cf_result" >&5
15522 echo "${ECHO_T}$cf_result" >&6; }
15523 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
15524 echo "$as_me: error: Cannot link curses library" >&2;}
15525 { (exit 1); exit 1; }; }
15526 elif test "$cf_term_lib" != predefined ; then
15527 { echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
15528 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6; }
15529 cat >conftest.$ac_ext <<_ACEOF
15532 cat confdefs.h >>conftest.$ac_ext
15533 cat >>conftest.$ac_ext <<_ACEOF
15534 /* end confdefs.h. */
15535 #include <${cf_cv_ncurses_header-curses.h}>
15539 initscr(); tgoto((char *)0, 0, 0);
15544 rm -f conftest.$ac_objext conftest$ac_exeext
15545 if { (ac_try="$ac_link"
15546 case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_link") 2>conftest.er1
15553 grep -v '^ *+' conftest.er1 >conftest.err
15555 cat conftest.err >&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } &&
15558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15559 { (case "(($ac_try" in
15560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561 *) ac_try_echo=$ac_try;;
15563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15564 (eval "$ac_try") 2>&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; } &&
15568 { ac_try='test -s conftest$ac_exeext'
15569 { (case "(($ac_try" in
15570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15571 *) ac_try_echo=$ac_try;;
15573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15574 (eval "$ac_try") 2>&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; }; then
15580 echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.$ac_ext >&5
15584 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
15585 cat >conftest.$ac_ext <<_ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h. */
15591 #include <${cf_cv_ncurses_header-curses.h}>
15600 rm -f conftest.$ac_objext conftest$ac_exeext
15601 if { (ac_try="$ac_link"
15602 case "(($ac_try" in
15603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15604 *) ac_try_echo=$ac_try;;
15606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15607 (eval "$ac_link") 2>conftest.er1
15609 grep -v '^ *+' conftest.er1 >conftest.err
15611 cat conftest.err >&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); } &&
15614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15615 { (case "(($ac_try" in
15616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617 *) ac_try_echo=$ac_try;;
15619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15620 (eval "$ac_try") 2>&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); }; } &&
15624 { ac_try='test -s conftest$ac_exeext'
15625 { (case "(($ac_try" in
15626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627 *) ac_try_echo=$ac_try;;
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630 (eval "$ac_try") 2>&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15636 echo "$as_me: failed program was:" >&5
15637 sed 's/^/| /' conftest.$ac_ext >&5
15642 rm -f core conftest.err conftest.$ac_objext \
15643 conftest$ac_exeext conftest.$ac_ext
15647 rm -f core conftest.err conftest.$ac_objext \
15648 conftest$ac_exeext conftest.$ac_ext
15649 { echo "$as_me:$LINENO: result: $cf_result" >&5
15650 echo "${ECHO_T}$cf_result" >&6; }
15665 abook_cv_readline=/usr
15667 # Check whether --with-readline was given.
15668 if test "${with_readline+set}" = set; then
15669 withval=$with_readline; if test $withval != yes; then
15670 abook_cv_readline=$withval
15672 if test x$abook_cv_readline != x/usr; then
15673 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
15674 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
15680 { echo "$as_me:$LINENO: checking for a readline compatible library" >&5
15681 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6; }
15682 if test "${ac_cv_lib_readline+set}" = set; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15687 for readline_lib in readline edit editline; do
15688 for termcap_lib in "" termcap curses ncurses; do
15689 if test -z "$termcap_lib"; then
15690 TRY_LIB="-l$readline_lib"
15692 TRY_LIB="-l$readline_lib -l$termcap_lib"
15694 LIBS="$ORIG_LIBS $TRY_LIB"
15695 cat >conftest.$ac_ext <<_ACEOF
15698 cat confdefs.h >>conftest.$ac_ext
15699 cat >>conftest.$ac_ext <<_ACEOF
15700 /* end confdefs.h. */
15702 /* Override any GCC internal prototype to avoid an error.
15703 Use char because int might match the return type of a GCC
15704 builtin and then its argument prototype would still apply. */
15712 return readline ();
15717 rm -f conftest.$ac_objext conftest$ac_exeext
15718 if { (ac_try="$ac_link"
15719 case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724 (eval "$ac_link") 2>conftest.er1
15726 grep -v '^ *+' conftest.er1 >conftest.err
15728 cat conftest.err >&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } &&
15731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15732 { (case "(($ac_try" in
15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737 (eval "$ac_try") 2>&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); }; } &&
15741 { ac_try='test -s conftest$ac_exeext'
15742 { (case "(($ac_try" in
15743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744 *) ac_try_echo=$ac_try;;
15746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747 (eval "$ac_try") 2>&5
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15751 ac_cv_lib_readline="$TRY_LIB"
15753 echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15759 rm -f core conftest.err conftest.$ac_objext \
15760 conftest$ac_exeext conftest.$ac_ext
15761 if test -n "$ac_cv_lib_readline"; then
15765 if test -n "$ac_cv_lib_readline"; then
15769 if test -z "$ac_cv_lib_readline"; then
15770 ac_cv_lib_readline="no"
15775 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
15776 echo "${ECHO_T}$ac_cv_lib_readline" >&6; }
15778 if test "$ac_cv_lib_readline" != "no"; then
15779 LIBS="$LIBS $ac_cv_lib_readline"
15781 cat >>confdefs.h <<\_ACEOF
15782 #define HAVE_LIBREADLINE 1
15787 for ac_header in readline.h readline/readline.h
15789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15796 ac_res=`eval echo '${'$as_ac_Header'}'`
15797 { echo "$as_me:$LINENO: result: $ac_res" >&5
15798 echo "${ECHO_T}$ac_res" >&6; }
15800 # Is the header compilable?
15801 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15803 cat >conftest.$ac_ext <<_ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h. */
15809 $ac_includes_default
15810 #include <$ac_header>
15812 rm -f conftest.$ac_objext
15813 if { (ac_try="$ac_compile"
15814 case "(($ac_try" in
15815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816 *) ac_try_echo=$ac_try;;
15818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819 (eval "$ac_compile") 2>conftest.er1
15821 grep -v '^ *+' conftest.er1 >conftest.err
15823 cat conftest.err >&5
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } &&
15826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15827 { (case "(($ac_try" in
15828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15829 *) ac_try_echo=$ac_try;;
15831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15832 (eval "$ac_try") 2>&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; } &&
15836 { ac_try='test -s conftest.$ac_objext'
15837 { (case "(($ac_try" in
15838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839 *) ac_try_echo=$ac_try;;
15841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15842 (eval "$ac_try") 2>&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; }; then
15846 ac_header_compiler=yes
15848 echo "$as_me: failed program was:" >&5
15849 sed 's/^/| /' conftest.$ac_ext >&5
15851 ac_header_compiler=no
15854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15856 echo "${ECHO_T}$ac_header_compiler" >&6; }
15858 # Is the header present?
15859 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15861 cat >conftest.$ac_ext <<_ACEOF
15864 cat confdefs.h >>conftest.$ac_ext
15865 cat >>conftest.$ac_ext <<_ACEOF
15866 /* end confdefs.h. */
15867 #include <$ac_header>
15869 if { (ac_try="$ac_cpp conftest.$ac_ext"
15870 case "(($ac_try" in
15871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15872 *) ac_try_echo=$ac_try;;
15874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15877 grep -v '^ *+' conftest.er1 >conftest.err
15879 cat conftest.err >&5
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); } >/dev/null; then
15882 if test -s conftest.err; then
15883 ac_cpp_err=$ac_c_preproc_warn_flag
15884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15891 if test -z "$ac_cpp_err"; then
15892 ac_header_preproc=yes
15894 echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15897 ac_header_preproc=no
15900 rm -f conftest.err conftest.$ac_ext
15901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15902 echo "${ECHO_T}$ac_header_preproc" >&6; }
15904 # So? What about this header?
15905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15911 ac_header_preproc=yes
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15921 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15932 echo $ECHO_N "(cached) $ECHO_C" >&6
15934 eval "$as_ac_Header=\$ac_header_preproc"
15936 ac_res=`eval echo '${'$as_ac_Header'}'`
15937 { echo "$as_me:$LINENO: result: $ac_res" >&5
15938 echo "${ECHO_T}$ac_res" >&6; }
15941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15942 cat >>confdefs.h <<_ACEOF
15943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15950 { echo "$as_me:$LINENO: checking whether readline supports history" >&5
15951 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6; }
15952 if test "${ac_cv_lib_readline_history+set}" = set; then
15953 echo $ECHO_N "(cached) $ECHO_C" >&6
15956 ac_cv_lib_readline_history="no"
15957 cat >conftest.$ac_ext <<_ACEOF
15960 cat confdefs.h >>conftest.$ac_ext
15961 cat >>conftest.$ac_ext <<_ACEOF
15962 /* end confdefs.h. */
15964 /* Override any GCC internal prototype to avoid an error.
15965 Use char because int might match the return type of a GCC
15966 builtin and then its argument prototype would still apply. */
15970 char add_history ();
15974 return add_history ();
15979 rm -f conftest.$ac_objext conftest$ac_exeext
15980 if { (ac_try="$ac_link"
15981 case "(($ac_try" in
15982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983 *) ac_try_echo=$ac_try;;
15985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15986 (eval "$ac_link") 2>conftest.er1
15988 grep -v '^ *+' conftest.er1 >conftest.err
15990 cat conftest.err >&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } &&
15993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15994 { (case "(($ac_try" in
15995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996 *) ac_try_echo=$ac_try;;
15998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15999 (eval "$ac_try") 2>&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); }; } &&
16003 { ac_try='test -s conftest$ac_exeext'
16004 { (case "(($ac_try" in
16005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006 *) ac_try_echo=$ac_try;;
16008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009 (eval "$ac_try") 2>&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; }; then
16013 ac_cv_lib_readline_history="yes"
16015 echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16021 rm -f core conftest.err conftest.$ac_objext \
16022 conftest$ac_exeext conftest.$ac_ext
16025 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
16026 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6; }
16027 if test "$ac_cv_lib_readline_history" = "yes"; then
16029 cat >>confdefs.h <<\_ACEOF
16030 #define HAVE_READLINE_HISTORY 1
16035 for ac_header in history.h readline/history.h
16037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16042 echo $ECHO_N "(cached) $ECHO_C" >&6
16044 ac_res=`eval echo '${'$as_ac_Header'}'`
16045 { echo "$as_me:$LINENO: result: $ac_res" >&5
16046 echo "${ECHO_T}$ac_res" >&6; }
16048 # Is the header compilable?
16049 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16051 cat >conftest.$ac_ext <<_ACEOF
16054 cat confdefs.h >>conftest.$ac_ext
16055 cat >>conftest.$ac_ext <<_ACEOF
16056 /* end confdefs.h. */
16057 $ac_includes_default
16058 #include <$ac_header>
16060 rm -f conftest.$ac_objext
16061 if { (ac_try="$ac_compile"
16062 case "(($ac_try" in
16063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064 *) ac_try_echo=$ac_try;;
16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067 (eval "$ac_compile") 2>conftest.er1
16069 grep -v '^ *+' conftest.er1 >conftest.err
16071 cat conftest.err >&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } &&
16074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16075 { (case "(($ac_try" in
16076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077 *) ac_try_echo=$ac_try;;
16079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16080 (eval "$ac_try") 2>&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; } &&
16084 { ac_try='test -s conftest.$ac_objext'
16085 { (case "(($ac_try" in
16086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16087 *) ac_try_echo=$ac_try;;
16089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16090 (eval "$ac_try") 2>&5
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); }; }; then
16094 ac_header_compiler=yes
16096 echo "$as_me: failed program was:" >&5
16097 sed 's/^/| /' conftest.$ac_ext >&5
16099 ac_header_compiler=no
16102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16104 echo "${ECHO_T}$ac_header_compiler" >&6; }
16106 # Is the header present?
16107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16109 cat >conftest.$ac_ext <<_ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16115 #include <$ac_header>
16117 if { (ac_try="$ac_cpp conftest.$ac_ext"
16118 case "(($ac_try" in
16119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120 *) ac_try_echo=$ac_try;;
16122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16125 grep -v '^ *+' conftest.er1 >conftest.err
16127 cat conftest.err >&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } >/dev/null; then
16130 if test -s conftest.err; then
16131 ac_cpp_err=$ac_c_preproc_warn_flag
16132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16139 if test -z "$ac_cpp_err"; then
16140 ac_header_preproc=yes
16142 echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16145 ac_header_preproc=no
16148 rm -f conftest.err conftest.$ac_ext
16149 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16150 echo "${ECHO_T}$ac_header_preproc" >&6; }
16152 # So? What about this header?
16153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16159 ac_header_preproc=yes
16162 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16164 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16165 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16166 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16168 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16169 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16172 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16182 eval "$as_ac_Header=\$ac_header_preproc"
16184 ac_res=`eval echo '${'$as_ac_Header'}'`
16185 { echo "$as_me:$LINENO: result: $ac_res" >&5
16186 echo "${ECHO_T}$ac_res" >&6; }
16189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16190 cat >>confdefs.h <<_ACEOF
16191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16203 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
16204 { { echo "$as_me:$LINENO: error: *** readline library not found or it doesn't support history ***" >&5
16205 echo "$as_me: error: *** readline library not found or it doesn't support history ***" >&2;}
16206 { (exit 1); exit 1; }; }
16210 if test x$ac_widec_possible = xyes; then
16212 cat >>confdefs.h <<\_ACEOF
16213 #define HANDLE_MULTIBYTE 1
16219 for ac_func in resizeterm
16221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16222 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16224 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16225 echo $ECHO_N "(cached) $ECHO_C" >&6
16227 cat >conftest.$ac_ext <<_ACEOF
16230 cat confdefs.h >>conftest.$ac_ext
16231 cat >>conftest.$ac_ext <<_ACEOF
16232 /* end confdefs.h. */
16233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16235 #define $ac_func innocuous_$ac_func
16237 /* System header to define __stub macros and hopefully few prototypes,
16238 which can conflict with char $ac_func (); below.
16239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16240 <limits.h> exists even on freestanding compilers. */
16243 # include <limits.h>
16245 # include <assert.h>
16250 /* Override any GCC internal prototype to avoid an error.
16251 Use char because int might match the return type of a GCC
16252 builtin and then its argument prototype would still apply. */
16257 /* The GNU C library defines this for functions which it implements
16258 to always fail with ENOSYS. Some functions are actually named
16259 something starting with __ and the normal name is an alias. */
16260 #if defined __stub_$ac_func || defined __stub___$ac_func
16267 return $ac_func ();
16272 rm -f conftest.$ac_objext conftest$ac_exeext
16273 if { (ac_try="$ac_link"
16274 case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_link") 2>conftest.er1
16281 grep -v '^ *+' conftest.er1 >conftest.err
16283 cat conftest.err >&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); } &&
16286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16287 { (case "(($ac_try" in
16288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16289 *) ac_try_echo=$ac_try;;
16291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16292 (eval "$ac_try") 2>&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; } &&
16296 { ac_try='test -s conftest$ac_exeext'
16297 { (case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302 (eval "$ac_try") 2>&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); }; }; then
16306 eval "$as_ac_var=yes"
16308 echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16311 eval "$as_ac_var=no"
16314 rm -f core conftest.err conftest.$ac_objext \
16315 conftest$ac_exeext conftest.$ac_ext
16317 ac_res=`eval echo '${'$as_ac_var'}'`
16318 { echo "$as_me:$LINENO: result: $ac_res" >&5
16319 echo "${ECHO_T}$ac_res" >&6; }
16320 if test `eval echo '${'$as_ac_var'}'` = yes; then
16321 cat >>confdefs.h <<_ACEOF
16322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16331 for ac_func in snprintf vsnprintf
16333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16337 echo $ECHO_N "(cached) $ECHO_C" >&6
16339 cat >conftest.$ac_ext <<_ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16347 #define $ac_func innocuous_$ac_func
16349 /* System header to define __stub macros and hopefully few prototypes,
16350 which can conflict with char $ac_func (); below.
16351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16352 <limits.h> exists even on freestanding compilers. */
16355 # include <limits.h>
16357 # include <assert.h>
16362 /* Override any GCC internal prototype to avoid an error.
16363 Use char because int might match the return type of a GCC
16364 builtin and then its argument prototype would still apply. */
16369 /* The GNU C library defines this for functions which it implements
16370 to always fail with ENOSYS. Some functions are actually named
16371 something starting with __ and the normal name is an alias. */
16372 #if defined __stub_$ac_func || defined __stub___$ac_func
16379 return $ac_func ();
16384 rm -f conftest.$ac_objext conftest$ac_exeext
16385 if { (ac_try="$ac_link"
16386 case "(($ac_try" in
16387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16388 *) ac_try_echo=$ac_try;;
16390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16391 (eval "$ac_link") 2>conftest.er1
16393 grep -v '^ *+' conftest.er1 >conftest.err
16395 cat conftest.err >&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } &&
16398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16399 { (case "(($ac_try" in
16400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16401 *) ac_try_echo=$ac_try;;
16403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16404 (eval "$ac_try") 2>&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); }; } &&
16408 { ac_try='test -s conftest$ac_exeext'
16409 { (case "(($ac_try" in
16410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16411 *) ac_try_echo=$ac_try;;
16413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16414 (eval "$ac_try") 2>&5
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); }; }; then
16418 eval "$as_ac_var=yes"
16420 echo "$as_me: failed program was:" >&5
16421 sed 's/^/| /' conftest.$ac_ext >&5
16423 eval "$as_ac_var=no"
16426 rm -f core conftest.err conftest.$ac_objext \
16427 conftest$ac_exeext conftest.$ac_ext
16429 ac_res=`eval echo '${'$as_ac_var'}'`
16430 { echo "$as_me:$LINENO: result: $ac_res" >&5
16431 echo "${ECHO_T}$ac_res" >&6; }
16432 if test `eval echo '${'$as_ac_var'}'` = yes; then
16433 cat >>confdefs.h <<_ACEOF
16434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16441 # Check whether --enable-debug was given.
16442 if test "${enable_debug+set}" = set; then
16443 enableval=$enable_debug; case "${enableval}" in
16446 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
16447 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
16448 { (exit 1); exit 1; }; } ;;
16455 if test x$debug = xtrue; then
16456 CPPFLAGS="-DDEBUG=1 $CPPFLAGS"
16457 CFLAGS="-g $CFLAGS"
16460 if test x$GCC = xyes; then
16461 CFLAGS="-Wall $CFLAGS"
16464 ac_config_files="$ac_config_files Makefile abook.spec intl/Makefile po/Makefile.in"
16466 cat >confcache <<\_ACEOF
16467 # This file is a shell script that caches the results of configure
16468 # tests run on this system so they can be shared between configure
16469 # scripts and configure runs, see configure's option --config-cache.
16470 # It is not useful on other systems. If it contains results you don't
16471 # want to keep, you may remove or edit it.
16473 # config.status only pays attention to the cache file if you give it
16474 # the --recheck option to rerun configure.
16476 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16477 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16478 # following values.
16482 # The following way of writing the cache mishandles newlines in values,
16483 # but we know of no workaround that is simple, portable, and efficient.
16484 # So, we kill variables containing newlines.
16485 # Ultrix sh set writes to stderr and can't be redirected directly,
16486 # and sets the high bit in the cache file unless we assign to the vars.
16488 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16489 eval ac_val=\$$ac_var
16493 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16494 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16497 _ | IFS | as_nl) ;; #(
16498 *) $as_unset $ac_var ;;
16504 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16505 *${as_nl}ac_space=\ *)
16506 # `set' does not quote correctly, so add quotes (double-quote
16507 # substitution turns \\\\ into \\, and sed turns \\ into \).
16510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16513 # `set' quotes correctly as required by POSIX, so do not add quotes.
16514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16523 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16525 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16527 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16528 if test -w "$cache_file"; then
16529 test "x$cache_file" != "x/dev/null" &&
16530 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16531 echo "$as_me: updating cache $cache_file" >&6;}
16532 cat confcache >$cache_file
16534 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16535 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16540 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16541 # Let make expand exec_prefix.
16542 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16544 DEFS=-DHAVE_CONFIG_H
16548 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16549 # 1. Remove the extension, and $U if already installed.
16550 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16551 ac_i=`echo "$ac_i" | sed "$ac_script"`
16552 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16553 # will be set to the directory where LIBOBJS objects are built.
16554 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16555 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16557 LIBOBJS=$ac_libobjs
16559 LTLIBOBJS=$ac_ltlibobjs
16562 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16563 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16564 Usually this means the macro was only invoked conditionally." >&5
16565 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16566 Usually this means the macro was only invoked conditionally." >&2;}
16567 { (exit 1); exit 1; }; }
16569 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16570 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16571 Usually this means the macro was only invoked conditionally." >&5
16572 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16573 Usually this means the macro was only invoked conditionally." >&2;}
16574 { (exit 1); exit 1; }; }
16576 if test -z "${USE_INCLUDED_INTL_H_TRUE}" && test -z "${USE_INCLUDED_INTL_H_FALSE}"; then
16577 { { echo "$as_me:$LINENO: error: conditional \"USE_INCLUDED_INTL_H\" was never defined.
16578 Usually this means the macro was only invoked conditionally." >&5
16579 echo "$as_me: error: conditional \"USE_INCLUDED_INTL_H\" was never defined.
16580 Usually this means the macro was only invoked conditionally." >&2;}
16581 { (exit 1); exit 1; }; }
16583 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16584 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16585 Usually this means the macro was only invoked conditionally." >&5
16586 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16587 Usually this means the macro was only invoked conditionally." >&2;}
16588 { (exit 1); exit 1; }; }
16591 : ${CONFIG_STATUS=./config.status}
16592 ac_clean_files_save=$ac_clean_files
16593 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16594 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16595 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16596 cat >$CONFIG_STATUS <<_ACEOF
16598 # Generated by $as_me.
16599 # Run this file to recreate the current configuration.
16600 # Compiler output produced by configure, useful for debugging
16601 # configure, is in config.log if it exists.
16604 ac_cs_recheck=false
16606 SHELL=\${CONFIG_SHELL-$SHELL}
16609 cat >>$CONFIG_STATUS <<\_ACEOF
16610 ## --------------------- ##
16611 ## M4sh Initialization. ##
16612 ## --------------------- ##
16614 # Be Bourne compatible
16615 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16618 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16619 # is contrary to our usage. Disable this feature.
16620 alias -g '${1+"$@"}'='"$@"'
16621 setopt NO_GLOB_SUBST
16623 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
16625 BIN_SH=xpg4; export BIN_SH # for Tru64
16626 DUALCASE=1; export DUALCASE # for MKS sh
16630 # Avoid depending upon Character Ranges.
16631 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16632 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16633 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16634 as_cr_digits='0123456789'
16635 as_cr_alnum=$as_cr_Letters$as_cr_digits
16637 # The user is always right.
16638 if test "${PATH_SEPARATOR+set}" != set; then
16639 echo "#! /bin/sh" >conf$$.sh
16640 echo "exit 0" >>conf$$.sh
16642 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16650 # Support unset when possible.
16651 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16659 # We need space, tab and new line, in precisely that order. Quoting is
16660 # there to prevent editors from complaining about space-tab.
16661 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16662 # splitting by setting IFS to empty value.)
16667 # Find who we are. Look in the path if we contain no directory separator.
16669 *[\\/]* ) as_myself=$0 ;;
16670 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16671 for as_dir in $PATH
16674 test -z "$as_dir" && as_dir=.
16675 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16681 # We did not find ourselves, most probably we were run as `sh COMMAND'
16682 # in which case we are not to be found in the path.
16683 if test "x$as_myself" = x; then
16686 if test ! -f "$as_myself"; then
16687 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16688 { (exit 1); exit 1; }
16691 # Work around bugs in pre-3.0 UWIN ksh.
16692 for as_var in ENV MAIL MAILPATH
16693 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16701 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16702 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16703 LC_TELEPHONE LC_TIME
16705 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16706 eval $as_var=C; export $as_var
16708 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16712 # Required to use basename.
16713 if expr a : '\(a\)' >/dev/null 2>&1 &&
16714 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16720 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16721 as_basename=basename
16727 # Name of the executable.
16728 as_me=`$as_basename -- "$0" ||
16729 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16730 X"$0" : 'X\(//\)$' \| \
16731 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16733 sed '/^.*\/\([^/][^/]*\)\/*$/{
16752 as_lineno_1=$LINENO
16753 as_lineno_2=$LINENO
16754 test "x$as_lineno_1" != "x$as_lineno_2" &&
16755 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16757 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16758 # uniformly replaced by the line number. The first 'sed' inserts a
16759 # line-number line after each line using $LINENO; the second 'sed'
16760 # does the real work. The second script uses 'N' to pair each
16761 # line-number line with the line containing $LINENO, and appends
16762 # trailing '-' during substitution so that $LINENO is not a special
16763 # case at line end.
16764 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16765 # scripts with optimization help from Paolo Bonzini. Blame Lee
16766 # E. McMahon (1931-1989) for sed's syntax. :-)
16778 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16781 ' >$as_me.lineno &&
16782 chmod +x "$as_me.lineno" ||
16783 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16784 { (exit 1); exit 1; }; }
16786 # Don't try to exec as it changes $[0], causing all sort of problems
16787 # (the dirname of $[0] is not the place where we might find the
16788 # original and so on. Autoconf is especially sensitive to this).
16789 . "./$as_me.lineno"
16790 # Exit status is that of the last command.
16795 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16801 ECHO_C= ECHO_N= ECHO_T=
16802 case `echo -n x` in
16804 case `echo 'x\c'` in
16805 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16812 if expr a : '\(a\)' >/dev/null 2>&1 &&
16813 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16819 rm -f conf$$ conf$$.exe conf$$.file
16820 if test -d conf$$.dir; then
16821 rm -f conf$$.dir/conf$$.file
16827 if ln -s conf$$.file conf$$ 2>/dev/null; then
16829 # ... but there are two gotchas:
16830 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16831 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16832 # In both cases, we have to default to `cp -p'.
16833 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16835 elif ln conf$$.file conf$$ 2>/dev/null; then
16840 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16841 rmdir conf$$.dir 2>/dev/null
16843 if mkdir -p . 2>/dev/null; then
16846 test -d ./-p && rmdir ./-p
16850 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
16851 # systems may use methods other than mode bits to determine executability.
16852 cat >conf$$.file <<_ASEOF
16856 chmod +x conf$$.file
16857 if test -x conf$$.file >/dev/null 2>&1; then
16858 as_executable_p="test -x"
16864 # Sed expression to map a string onto a valid CPP name.
16865 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16867 # Sed expression to map a string onto a valid variable name.
16868 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16873 # Save the log message, to keep $[0] and so on meaningful, and to
16874 # report actual input values of CONFIG_FILES etc. instead of their
16875 # values after options handling.
16877 This file was extended by $as_me, which was
16878 generated by GNU Autoconf 2.60. Invocation command line was
16880 CONFIG_FILES = $CONFIG_FILES
16881 CONFIG_HEADERS = $CONFIG_HEADERS
16882 CONFIG_LINKS = $CONFIG_LINKS
16883 CONFIG_COMMANDS = $CONFIG_COMMANDS
16886 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16891 cat >>$CONFIG_STATUS <<_ACEOF
16892 # Files that config.status was made for.
16893 config_files="$ac_config_files"
16894 config_headers="$ac_config_headers"
16895 config_commands="$ac_config_commands"
16899 cat >>$CONFIG_STATUS <<\_ACEOF
16901 \`$as_me' instantiates files from templates according to the
16902 current configuration.
16904 Usage: $0 [OPTIONS] [FILE]...
16906 -h, --help print this help, then exit
16907 -V, --version print version number, then exit
16908 -q, --quiet do not print progress messages
16909 -d, --debug don't remove temporary files
16910 --recheck update $as_me by reconfiguring in the same conditions
16911 --file=FILE[:TEMPLATE]
16912 instantiate the configuration file FILE
16913 --header=FILE[:TEMPLATE]
16914 instantiate the configuration header FILE
16916 Configuration files:
16919 Configuration headers:
16922 Configuration commands:
16925 Report bugs to <bug-autoconf@gnu.org>."
16928 cat >>$CONFIG_STATUS <<_ACEOF
16931 configured by $0, generated by GNU Autoconf 2.60,
16932 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16934 Copyright (C) 2006 Free Software Foundation, Inc.
16935 This config.status script is free software; the Free Software Foundation
16936 gives unlimited permission to copy, distribute and modify it."
16943 cat >>$CONFIG_STATUS <<\_ACEOF
16944 # If no file are specified by the user, then we need to provide default
16945 # value. By we need to know if files were specified by the user.
16951 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16952 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16963 # Handling of the options.
16964 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16966 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16967 echo "$ac_cs_version"; exit ;;
16968 --debug | --debu | --deb | --de | --d | -d )
16970 --file | --fil | --fi | --f )
16972 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16973 ac_need_defaults=false;;
16974 --header | --heade | --head | --hea )
16976 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16977 ac_need_defaults=false;;
16979 # Conflict between --help and --header
16980 { echo "$as_me: error: ambiguous option: $1
16981 Try \`$0 --help' for more information." >&2
16982 { (exit 1); exit 1; }; };;
16983 --help | --hel | -h )
16984 echo "$ac_cs_usage"; exit ;;
16985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16986 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16989 # This is an error.
16990 -*) { echo "$as_me: error: unrecognized option: $1
16991 Try \`$0 --help' for more information." >&2
16992 { (exit 1); exit 1; }; } ;;
16994 *) ac_config_targets="$ac_config_targets $1"
16995 ac_need_defaults=false ;;
17001 ac_configure_extra_args=
17003 if $ac_cs_silent; then
17005 ac_configure_extra_args="$ac_configure_extra_args --silent"
17009 cat >>$CONFIG_STATUS <<_ACEOF
17010 if \$ac_cs_recheck; then
17011 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17012 CONFIG_SHELL=$SHELL
17013 export CONFIG_SHELL
17014 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17018 cat >>$CONFIG_STATUS <<\_ACEOF
17022 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17023 ## Running $as_me. ##
17029 cat >>$CONFIG_STATUS <<_ACEOF
17033 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17034 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17036 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17037 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17038 LINGUAS="${LINGUAS-%UNSET%}"
17040 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17044 cat >>$CONFIG_STATUS <<\_ACEOF
17046 # Handling of arguments.
17047 for ac_config_target in $ac_config_targets
17049 case $ac_config_target in
17050 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17051 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17052 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17053 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17054 "abook.spec") CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
17055 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
17056 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17058 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17059 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17060 { (exit 1); exit 1; }; };;
17065 # If the user did not use the arguments to specify the items to instantiate,
17066 # then the envvar interface is used. Set only those that are not.
17067 # We use the long form for the default assignment because of an extremely
17068 # bizarre bug on SunOS 4.1.3.
17069 if $ac_need_defaults; then
17070 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17071 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17072 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17075 # Have a temporary directory for convenience. Make it in the build tree
17076 # simply because there is no reason against having it here, and in addition,
17077 # creating and moving files from /tmp can sometimes cause problems.
17078 # Hook for its removal unless debugging.
17079 # Note that there is a small window in which the directory will not be cleaned:
17080 # after its creation but before its name has been assigned to `$tmp'.
17084 trap 'exit_status=$?
17085 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17087 trap '{ (exit 1); exit 1; }' 1 2 13 15
17089 # Create a (secure) tmp directory for tmp files.
17092 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17093 test -n "$tmp" && test -d "$tmp"
17096 tmp=./conf$$-$RANDOM
17097 (umask 077 && mkdir "$tmp")
17100 echo "$me: cannot create a temporary directory in ." >&2
17101 { (exit 1); exit 1; }
17105 # Set up the sed scripts for CONFIG_FILES section.
17108 # No need to generate the scripts if there are no CONFIG_FILES.
17109 # This happens for instance when ./config.status config.h
17110 if test -n "$CONFIG_FILES"; then
17117 for ac_last_try in false false false false false :; do
17118 cat >conf$$subs.sed <<_ACEOF
17119 SHELL!$SHELL$ac_delim
17120 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17121 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
17122 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
17123 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
17124 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
17125 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
17126 exec_prefix!$exec_prefix$ac_delim
17127 prefix!$prefix$ac_delim
17128 program_transform_name!$program_transform_name$ac_delim
17129 bindir!$bindir$ac_delim
17130 sbindir!$sbindir$ac_delim
17131 libexecdir!$libexecdir$ac_delim
17132 datarootdir!$datarootdir$ac_delim
17133 datadir!$datadir$ac_delim
17134 sysconfdir!$sysconfdir$ac_delim
17135 sharedstatedir!$sharedstatedir$ac_delim
17136 localstatedir!$localstatedir$ac_delim
17137 includedir!$includedir$ac_delim
17138 oldincludedir!$oldincludedir$ac_delim
17139 docdir!$docdir$ac_delim
17140 infodir!$infodir$ac_delim
17141 htmldir!$htmldir$ac_delim
17142 dvidir!$dvidir$ac_delim
17143 pdfdir!$pdfdir$ac_delim
17144 psdir!$psdir$ac_delim
17145 libdir!$libdir$ac_delim
17146 localedir!$localedir$ac_delim
17147 mandir!$mandir$ac_delim
17148 DEFS!$DEFS$ac_delim
17149 ECHO_C!$ECHO_C$ac_delim
17150 ECHO_N!$ECHO_N$ac_delim
17151 ECHO_T!$ECHO_T$ac_delim
17152 LIBS!$LIBS$ac_delim
17153 build_alias!$build_alias$ac_delim
17154 host_alias!$host_alias$ac_delim
17155 target_alias!$target_alias$ac_delim
17156 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
17157 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
17158 INSTALL_DATA!$INSTALL_DATA$ac_delim
17159 CYGPATH_W!$CYGPATH_W$ac_delim
17160 PACKAGE!$PACKAGE$ac_delim
17161 VERSION!$VERSION$ac_delim
17162 ACLOCAL!$ACLOCAL$ac_delim
17163 AUTOCONF!$AUTOCONF$ac_delim
17164 AUTOMAKE!$AUTOMAKE$ac_delim
17165 AUTOHEADER!$AUTOHEADER$ac_delim
17166 MAKEINFO!$MAKEINFO$ac_delim
17167 install_sh!$install_sh$ac_delim
17168 STRIP!$STRIP$ac_delim
17169 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
17170 mkdir_p!$mkdir_p$ac_delim
17172 SET_MAKE!$SET_MAKE$ac_delim
17173 am__leading_dot!$am__leading_dot$ac_delim
17174 AMTAR!$AMTAR$ac_delim
17175 am__tar!$am__tar$ac_delim
17176 am__untar!$am__untar$ac_delim
17177 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
17178 USE_NLS!$USE_NLS$ac_delim
17179 MSGFMT!$MSGFMT$ac_delim
17180 GMSGFMT!$GMSGFMT$ac_delim
17181 XGETTEXT!$XGETTEXT$ac_delim
17182 MSGMERGE!$MSGMERGE$ac_delim
17184 CFLAGS!$CFLAGS$ac_delim
17185 LDFLAGS!$LDFLAGS$ac_delim
17186 CPPFLAGS!$CPPFLAGS$ac_delim
17187 ac_ct_CC!$ac_ct_CC$ac_delim
17188 EXEEXT!$EXEEXT$ac_delim
17189 OBJEXT!$OBJEXT$ac_delim
17190 DEPDIR!$DEPDIR$ac_delim
17191 am__include!$am__include$ac_delim
17192 am__quote!$am__quote$ac_delim
17193 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
17194 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
17195 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
17196 CCDEPMODE!$CCDEPMODE$ac_delim
17197 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
17198 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
17199 build!$build$ac_delim
17200 build_cpu!$build_cpu$ac_delim
17201 build_vendor!$build_vendor$ac_delim
17202 build_os!$build_os$ac_delim
17203 host!$host$ac_delim
17204 host_cpu!$host_cpu$ac_delim
17205 host_vendor!$host_vendor$ac_delim
17206 host_os!$host_os$ac_delim
17208 GREP!$GREP$ac_delim
17209 EGREP!$EGREP$ac_delim
17210 GLIBC2!$GLIBC2$ac_delim
17211 RANLIB!$RANLIB$ac_delim
17212 ALLOCA!$ALLOCA$ac_delim
17213 GLIBC21!$GLIBC21$ac_delim
17214 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
17215 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
17218 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
17220 elif $ac_last_try; then
17221 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17222 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17223 { (exit 1); exit 1; }; }
17225 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17229 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17230 if test -n "$ac_eof"; then
17231 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17232 ac_eof=`expr $ac_eof + 1`
17235 cat >>$CONFIG_STATUS <<_ACEOF
17236 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17237 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17240 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17241 s/^/s,@/; s/!/@,|#_!!_#|/
17244 s/'"$ac_delim"'$/,g/; t
17246 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17247 ' >>$CONFIG_STATUS <conf$$subs.sed
17248 rm -f conf$$subs.sed
17249 cat >>$CONFIG_STATUS <<_ACEOF
17255 for ac_last_try in false false false false false :; do
17256 cat >conf$$subs.sed <<_ACEOF
17257 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
17258 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
17259 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
17260 LIBICONV!$LIBICONV$ac_delim
17261 LTLIBICONV!$LTLIBICONV$ac_delim
17262 INTLBISON!$INTLBISON$ac_delim
17263 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
17264 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
17265 CATOBJEXT!$CATOBJEXT$ac_delim
17266 DATADIRNAME!$DATADIRNAME$ac_delim
17267 INSTOBJEXT!$INSTOBJEXT$ac_delim
17268 GENCAT!$GENCAT$ac_delim
17269 INTLOBJS!$INTLOBJS$ac_delim
17270 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
17271 INTLLIBS!$INTLLIBS$ac_delim
17272 LIBINTL!$LIBINTL$ac_delim
17273 LTLIBINTL!$LTLIBINTL$ac_delim
17274 POSUB!$POSUB$ac_delim
17275 USE_INCLUDED_INTL_H_TRUE!$USE_INCLUDED_INTL_H_TRUE$ac_delim
17276 USE_INCLUDED_INTL_H_FALSE!$USE_INCLUDED_INTL_H_FALSE$ac_delim
17278 ANSI2KNR!$ANSI2KNR$ac_delim
17279 LIBOBJS!$LIBOBJS$ac_delim
17280 LTLIBOBJS!$LTLIBOBJS$ac_delim
17283 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
17285 elif $ac_last_try; then
17286 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17287 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17288 { (exit 1); exit 1; }; }
17290 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17294 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17295 if test -n "$ac_eof"; then
17296 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17297 ac_eof=`expr $ac_eof + 1`
17300 cat >>$CONFIG_STATUS <<_ACEOF
17301 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17302 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17305 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17306 s/^/s,@/; s/!/@,|#_!!_#|/
17309 s/'"$ac_delim"'$/,g/; t
17311 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17312 ' >>$CONFIG_STATUS <conf$$subs.sed
17313 rm -f conf$$subs.sed
17314 cat >>$CONFIG_STATUS <<_ACEOF
17321 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17322 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17323 # trailing colons and then remove the whole line if VPATH becomes empty
17324 # (actually we leave an empty line to preserve line numbers).
17325 if test "x$srcdir" = x.; then
17326 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17327 s/:*\$(srcdir):*/:/
17328 s/:*\${srcdir}:*/:/
17330 s/^\([^=]*=[ ]*\):*/\1/
17336 cat >>$CONFIG_STATUS <<\_ACEOF
17337 fi # test -n "$CONFIG_FILES"
17340 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
17343 :[FHLC]) ac_mode=$ac_tag; continue;;
17345 case $ac_mode$ac_tag in
17347 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17348 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17349 { (exit 1); exit 1; }; };;
17350 :[FH]-) ac_tag=-:-;;
17351 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17368 -) ac_f="$tmp/stdin";;
17369 *) # Look for the file first in the build tree, then in the source tree
17370 # (if the path is not absolute). The absolute path cannot be DOS-style,
17371 # because $ac_f cannot contain `:'.
17375 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17377 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17378 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17379 { (exit 1); exit 1; }; };;
17381 ac_file_inputs="$ac_file_inputs $ac_f"
17384 # Let's still pretend it is `configure' which instantiates (i.e., don't
17385 # use $as_me), people would be surprised to read:
17386 # /* config.h. Generated by config.status. */
17387 configure_input="Generated from "`IFS=:
17388 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17389 if test x"$ac_file" != x-; then
17390 configure_input="$ac_file. $configure_input"
17391 { echo "$as_me:$LINENO: creating $ac_file" >&5
17392 echo "$as_me: creating $ac_file" >&6;}
17396 *:-:* | *:-) cat >"$tmp/stdin";;
17401 ac_dir=`$as_dirname -- "$ac_file" ||
17402 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17403 X"$ac_file" : 'X\(//\)[^/]' \| \
17404 X"$ac_file" : 'X\(//\)$' \| \
17405 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17411 /^X\(\/\/\)[^/].*/{
17426 -*) as_dir=./$as_dir;;
17428 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17432 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17433 *) as_qdir=$as_dir;;
17435 as_dirs="'$as_qdir' $as_dirs"
17436 as_dir=`$as_dirname -- "$as_dir" ||
17437 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17438 X"$as_dir" : 'X\(//\)[^/]' \| \
17439 X"$as_dir" : 'X\(//\)$' \| \
17440 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17446 /^X\(\/\/\)[^/].*/{
17459 test -d "$as_dir" && break
17461 test -z "$as_dirs" || eval "mkdir $as_dirs"
17462 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17463 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17464 { (exit 1); exit 1; }; }; }
17468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17470 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17471 # A ".." for each directory in $ac_dir_suffix.
17472 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17473 case $ac_top_builddir_sub in
17474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17478 ac_abs_top_builddir=$ac_pwd
17479 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17480 # for backward compatibility:
17481 ac_top_builddir=$ac_top_build_prefix
17484 .) # We are building in place.
17486 ac_top_srcdir=$ac_top_builddir_sub
17487 ac_abs_top_srcdir=$ac_pwd ;;
17488 [\\/]* | ?:[\\/]* ) # Absolute name.
17489 ac_srcdir=$srcdir$ac_dir_suffix;
17490 ac_top_srcdir=$srcdir
17491 ac_abs_top_srcdir=$srcdir ;;
17492 *) # Relative name.
17493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17494 ac_top_srcdir=$ac_top_build_prefix$srcdir
17495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17507 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17508 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17512 cat >>$CONFIG_STATUS <<\_ACEOF
17513 # If the template does not know about datarootdir, expand it.
17514 # FIXME: This hack should be removed a few years after 2.60.
17515 ac_datarootdir_hack=; ac_datarootdir_seen=
17517 case `sed -n '/datarootdir/ {
17526 ' $ac_file_inputs` in
17527 *datarootdir*) ac_datarootdir_seen=yes;;
17528 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17529 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17530 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17532 cat >>$CONFIG_STATUS <<_ACEOF
17533 ac_datarootdir_hack='
17534 s&@datadir@&$datadir&g
17535 s&@docdir@&$docdir&g
17536 s&@infodir@&$infodir&g
17537 s&@localedir@&$localedir&g
17538 s&@mandir@&$mandir&g
17539 s&\\\${datarootdir}&$datarootdir&g' ;;
17543 # Neutralize VPATH when `$srcdir' = `.'.
17544 # Shell code in configure.ac might set extrasub.
17545 # FIXME: do we really want to maintain this feature?
17546 cat >>$CONFIG_STATUS <<_ACEOF
17550 cat >>$CONFIG_STATUS <<\_ACEOF
17552 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17553 s&@configure_input@&$configure_input&;t t
17554 s&@top_builddir@&$ac_top_builddir_sub&;t t
17555 s&@srcdir@&$ac_srcdir&;t t
17556 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17557 s&@top_srcdir@&$ac_top_srcdir&;t t
17558 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17559 s&@builddir@&$ac_builddir&;t t
17560 s&@abs_builddir@&$ac_abs_builddir&;t t
17561 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17562 s&@INSTALL@&$ac_INSTALL&;t t
17563 $ac_datarootdir_hack
17564 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
17566 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17567 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17568 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17569 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17570 which seems to be undefined. Please make sure it is defined." >&5
17571 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17572 which seems to be undefined. Please make sure it is defined." >&2;}
17576 -) cat "$tmp/out"; rm -f "$tmp/out";;
17577 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17586 # Transform confdefs.h into a sed script `conftest.defines', that
17587 # substitutes the proper values into config.h.in to produce config.h.
17588 rm -f conftest.defines conftest.tail
17589 # First, append a space to every undef/define line, to ease matching.
17590 echo 's/$/ /' >conftest.defines
17591 # Then, protect against being on the right side of a sed subst, or in
17592 # an unquoted here document, in config.status. If some macros were
17593 # called several times there might be several #defines for the same
17594 # symbol, which is useless. But do not sort them, since the last
17595 # AC_DEFINE must be honored.
17596 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17597 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17598 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17599 # PARAMS is the parameter list in the macro definition--in most cases, it's
17600 # just an empty string.
17601 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
17602 ac_dB='\\)[ (].*,\\1define\\2'
17610 s/^[ ]*#[ ]*define[ ][ ]*//
17615 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17616 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17617 ' >>conftest.defines
17619 # Remove the space that was appended to ease matching.
17620 # Then replace #undef with comments. This is necessary, for
17621 # example, in the case of _POSIX_SOURCE, which is predefined and required
17622 # on some systems where configure will not decide to define it.
17623 # (The regexp can be short, since the line contains either #define or #undef.)
17625 s,^[ #]*u.*,/* & */,' >>conftest.defines
17627 # Break up conftest.defines:
17628 ac_max_sed_lines=50
17630 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17631 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17632 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17634 ac_in='$ac_file_inputs'
17635 ac_out='"$tmp/out1"'
17636 ac_nxt='"$tmp/out2"'
17640 # Write a here document:
17641 cat >>$CONFIG_STATUS <<_ACEOF
17642 # First, check the format of the line:
17643 cat >"\$tmp/defines.sed" <<\\CEOF
17644 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
17645 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
17649 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17651 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17652 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17653 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17654 grep . conftest.tail >/dev/null || break
17655 rm -f conftest.defines
17656 mv conftest.tail conftest.defines
17658 rm -f conftest.defines conftest.tail
17660 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17661 cat >>$CONFIG_STATUS <<\_ACEOF
17662 if test x"$ac_file" != x-; then
17663 echo "/* $configure_input */" >"$tmp/config.h"
17664 cat "$ac_result" >>"$tmp/config.h"
17665 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17666 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17667 echo "$as_me: $ac_file is unchanged" >&6;}
17670 mv "$tmp/config.h" $ac_file
17673 echo "/* $configure_input */"
17677 # Compute $ac_file's index in $config_headers.
17679 for _am_header in $config_headers :; do
17680 case $_am_header in
17681 $ac_file | $ac_file:* )
17684 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17687 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
17688 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17689 X$ac_file : 'X\(//\)[^/]' \| \
17690 X$ac_file : 'X\(//\)$' \| \
17691 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
17693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17697 /^X\(\/\/\)[^/].*/{
17709 s/.*/./; q'`/stamp-h$_am_stamp_count
17712 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17713 echo "$as_me: executing $ac_file commands" >&6;}
17718 case $ac_file$ac_mode in
17720 for ac_file in $CONFIG_FILES; do
17721 # Support "outfile[:infile[:infile...]]"
17723 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17725 # PO directories have a Makefile.in generated from Makefile.in.in.
17726 case "$ac_file" in */Makefile.in)
17727 # Adjust a relative srcdir.
17728 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17729 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17730 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17731 # In autoconf-2.13 it is called $ac_given_srcdir.
17732 # In autoconf-2.50 it is called $srcdir.
17733 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17734 case "$ac_given_srcdir" in
17735 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17736 /*) top_srcdir="$ac_given_srcdir" ;;
17737 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17739 # Treat a directory as a PO directory if and only if it has a
17740 # POTFILES.in file. This allows packages to have multiple PO
17741 # directories under different names or in different locations.
17742 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17743 rm -f "$ac_dir/POTFILES"
17744 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17745 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17746 POMAKEFILEDEPS="POTFILES.in"
17747 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17748 # on $ac_dir but don't depend on user-specified configuration
17750 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17751 # The LINGUAS file contains the set of available languages.
17752 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17753 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17755 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17756 # Hide the ALL_LINGUAS assigment from automake.
17757 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17758 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17760 # The set of available languages was given in configure.in.
17761 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17764 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17765 # Compute UPDATEPOFILES
17766 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17767 # Compute DUMMYPOFILES
17768 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17770 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17771 case "$ac_given_srcdir" in
17773 *) srcdirpre='$(srcdir)/' ;;
17779 for lang in $ALL_LINGUAS; do
17780 POFILES="$POFILES $srcdirpre$lang.po"
17781 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17782 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17783 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17785 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17786 # environment variable.
17788 if test -n "$ALL_LINGUAS"; then
17789 for presentlang in $ALL_LINGUAS; do
17791 if test "%UNSET%" != "$LINGUAS"; then
17792 desiredlanguages="$LINGUAS"
17794 desiredlanguages="$ALL_LINGUAS"
17796 for desiredlang in $desiredlanguages; do
17797 # Use the presentlang catalog if desiredlang is
17798 # a. equal to presentlang, or
17799 # b. a variant of presentlang (because in this case,
17800 # presentlang can be used as a fallback for messages
17801 # which are not translated in the desiredlang catalog).
17802 case "$desiredlang" in
17803 "$presentlang"*) useit=yes;;
17806 if test $useit = yes; then
17807 INST_LINGUAS="$INST_LINGUAS $presentlang"
17812 if test -n "$INST_LINGUAS"; then
17813 for lang in $INST_LINGUAS; do
17814 CATALOGS="$CATALOGS $lang.gmo"
17817 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17818 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"
17823 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17824 # Strip MF so we end up with the name of the file.
17825 mf=`echo "$mf" | sed -e 's/:.*$//'`
17826 # Check whether this is an Automake generated Makefile or not.
17827 # We used to match only the files named `Makefile.in', but
17828 # some people rename them; so instead we look at the file content.
17829 # Grep'ing the first line is not enough: some people post-process
17830 # each Makefile.in and add a new line on top of each file to say so.
17831 # So let's grep whole file.
17832 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17833 dirpart=`$as_dirname -- "$mf" ||
17834 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17835 X"$mf" : 'X\(//\)[^/]' \| \
17836 X"$mf" : 'X\(//\)$' \| \
17837 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17843 /^X\(\/\/\)[^/].*/{
17859 # Extract the definition of DEPDIR, am__include, and am__quote
17860 # from the Makefile without running `make'.
17861 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17862 test -z "$DEPDIR" && continue
17863 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17864 test -z "am__include" && continue
17865 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17866 # When using ansi2knr, U may be empty or an underscore; expand it
17867 U=`sed -n 's/^U = //p' < "$mf"`
17868 # Find all dependency output files, they are included files with
17869 # $(DEPDIR) in their names. We invoke sed twice because it is the
17870 # simplest approach to changing $(DEPDIR) to its actual value in the
17872 for file in `sed -n "
17873 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17874 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17875 # Make sure the directory exists.
17876 test -f "$dirpart/$file" && continue
17877 fdir=`$as_dirname -- "$file" ||
17878 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17879 X"$file" : 'X\(//\)[^/]' \| \
17880 X"$file" : 'X\(//\)$' \| \
17881 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17887 /^X\(\/\/\)[^/].*/{
17900 { as_dir=$dirpart/$fdir
17902 -*) as_dir=./$as_dir;;
17904 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17908 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17909 *) as_qdir=$as_dir;;
17911 as_dirs="'$as_qdir' $as_dirs"
17912 as_dir=`$as_dirname -- "$as_dir" ||
17913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17914 X"$as_dir" : 'X\(//\)[^/]' \| \
17915 X"$as_dir" : 'X\(//\)$' \| \
17916 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17922 /^X\(\/\/\)[^/].*/{
17935 test -d "$as_dir" && break
17937 test -z "$as_dirs" || eval "mkdir $as_dirs"
17938 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17939 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17940 { (exit 1); exit 1; }; }; }
17941 # echo "creating $dirpart/$file"
17942 echo '# dummy' > "$dirpart/$file"
17951 { (exit 0); exit 0; }
17953 chmod +x $CONFIG_STATUS
17954 ac_clean_files=$ac_clean_files_save
17957 # configure is writing to config.log, and then calls config.status.
17958 # config.status does its own redirection, appending to config.log.
17959 # Unfortunately, on DOS this fails, as config.log is still kept open
17960 # by configure, so config.status won't be able to write to it; its
17961 # output is simply discarded. So we exec the FD to /dev/null,
17962 # effectively closing config.log, so it can be properly (re)opened and
17963 # appended to by config.status. When coming back to configure, we
17964 # need to make the FD available again.
17965 if test "$no_create" != yes; then
17967 ac_config_status_args=
17968 test "$silent" = yes &&
17969 ac_config_status_args="$ac_config_status_args --quiet"
17971 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17973 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17974 # would make configure fail if this is the last instruction.
17975 $ac_cs_success || { (exit 1); exit 1; }